/* ============================================================
   Hyves Clone v4 — Authentieke stijl + chat + sticky footer
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --hv-blue:        #4a90c4;
  --hv-blue-dark:   #2e6da4;
  --hv-blue-light:  #d6e8f5;
  --hv-orange:      #e07820;
  --hv-orange-dark: #c05e00;
  --hv-yellow:      #f5c842;
  --hv-beige:       #f5ede0;
  --hv-beige-dark:  #e8d9c4;
  --hv-beige-border:#c8b99a;
  --hv-text:        #333;
  --hv-muted:       #888;
  --hv-link:        #2e6da4;
  --hv-red:         #cc3333;
  --hv-green:       #4a9e4a;
  --hv-bg:          #ede4d3;
}

/* ── STICKY FOOTER LAYOUT ────────────────────────────────── */
html { height: 100%; }
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px; color: var(--hv-text);
  background: var(--hv-bg);
  background-image: radial-gradient(circle, rgba(200,185,154,.35) 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
#wrap { flex: 1; max-width: 960px; margin: 12px auto; padding: 0 12px; width: 100%; }
a { color: var(--hv-link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--hv-orange); }
img { display: block; }
.inner { max-width: 960px; margin: 0 auto; padding: 0 12px; }

/* ── TOPBAR ──────────────────────────────────────────────── */
#topbar {
  background: linear-gradient(180deg, #5ba0d0 0%, #2e6da4 100%);
  border-bottom: 3px solid #1a4f80;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  flex-shrink: 0;
}
#topbar .inner { display: flex; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }

.hv-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.hv-logo:hover { text-decoration: none; }
.hv-logo-text { font-family: 'Trebuchet MS', Arial, sans-serif; font-weight: 900; font-size: 30px; color: #fff; letter-spacing: -1px; text-shadow: 1px 2px 3px rgba(0,0,0,.3); line-height: 1; }
.hv-logo-h { color: #ffe066; }
.hv-logo-dots { display: flex; flex-direction: column; gap: 2px; margin-bottom: 2px; }
.hv-logo-dot1 { width: 9px; height: 9px; border-radius: 50%; background: #e84040; }
.hv-logo-dot2 { width: 9px; height: 9px; border-radius: 50%; background: #44cc44; }
.hv-tagline { color: rgba(255,255,255,.75); font-size: 10px; font-style: italic; margin-top: 2px; }

.hv-search { display: flex; gap: 4px; margin-left: auto; }
.hv-search input { border: 1px solid #1a4f80; border-radius: 3px; padding: 4px 10px; font-size: 12px; width: 180px; background: rgba(255,255,255,.95); outline: none; }
.hv-search button { background: var(--hv-yellow); border: 1px solid #c9a020; border-radius: 3px; color: #333; padding: 4px 10px; cursor: pointer; font-weight: 700; font-size: 12px; }
.hv-search button:hover { background: #e8b800; }

.hv-nav-user { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); border-radius: 3px; padding: 3px 10px 3px 5px; color: #fff; font-weight: 700; font-size: 12px; }
.hv-nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.6); }

/* ── NAV TABS ─────────────────────────────────────────────── */
#navtabs { background: linear-gradient(180deg, #3a7abf 0%, #2a5f99 100%); border-bottom: 2px solid #1a4060; flex-shrink: 0; }
#navtabs .inner { display: flex; gap: 1px; flex-wrap: wrap; }
.tab { display: inline-block; padding: 7px 13px; color: rgba(255,255,255,.85); font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; border-radius: 4px 4px 0 0; transition: background .1s; text-decoration: none; }
.tab:hover { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.tab.active { background: var(--hv-bg); color: var(--hv-blue-dark); }
.hv-badge { display: inline-block; background: #e84040; color: #fff; border-radius: 10px; padding: 1px 5px; font-size: 10px; font-weight: 700; margin-left: 2px; }

/* ── BREADCRUMB ───────────────────────────────────────────── */
#breadcrumb { background: var(--hv-beige-dark); border-bottom: 1px solid var(--hv-beige-border); padding: 3px 0; font-size: 11px; color: #7a6040; flex-shrink: 0; }

/* ── FLASH ────────────────────────────────────────────────── */
.hv-flash { padding: 8px 14px; border-radius: 4px; font-weight: 600; font-size: 13px; margin: 8px 0; }
.hv-flash-success { background: #d4edda; border: 1px solid #b6d4be; color: #155724; }
.hv-flash-error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.hv-flash-info    { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.layout-cols { display: flex; gap: 12px; align-items: flex-start; }
.col-main    { flex: 1; min-width: 0; }
.col-side    { width: 210px; flex-shrink: 0; }
.col-side-lg { width: 245px; flex-shrink: 0; }
.mb-12 { margin-bottom: 12px; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; }

/* ── HV-BOX ───────────────────────────────────────────────── */
.hv-box { background: #fff; border: 1px solid var(--hv-beige-border); border-radius: 5px; overflow: hidden; }
.hv-box-title { background: linear-gradient(180deg, #e8d5b4 0%, #d4b896 100%); border-bottom: 1px solid var(--hv-beige-border); padding: 6px 10px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 13px; color: #5a3800; }
.hv-box-count { background: var(--hv-blue); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 11px; }
.hv-box-body { padding: 10px; }

/* ── HV-CARD ──────────────────────────────────────────────── */
.hv-card { background: #fff; border: 1px solid var(--hv-beige-border); border-radius: 5px; overflow: hidden; }
.hv-card-banner { background: linear-gradient(135deg, var(--hv-orange) 0%, #f5a050 100%); height: 65px; }
.hv-card-body { padding: 0 12px 14px; text-align: center; margin-top: -36px; }

/* ── AVATARS ──────────────────────────────────────────────── */
.hv-avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); margin: 0 auto; }
.hv-avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.hv-avatar-xs { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.hv-online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--hv-green); border: 2px solid #fff; }

/* ── PROFILE CARD ─────────────────────────────────────────── */
.hv-profile-name { font-weight: 700; font-size: 15px; color: #333; font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 6px; }
.hv-profile-sub  { font-size: 11px; color: var(--hv-muted); margin-top: 3px; }
.hv-mood { display: inline-block; margin-top: 7px; padding: 3px 10px; background: #fff8ee; border: 1px solid #e8c888; border-radius: 12px; font-size: 11px; color: #7a4800; }
.hv-stats { display: flex; margin-top: 10px; border-top: 1px solid var(--hv-beige-border); padding-top: 8px; }
.hv-stat { flex: 1; text-align: center; border-right: 1px solid var(--hv-beige-border); }
.hv-stat:last-child { border-right: none; }
.hv-stat-num { display: block; font-size: 17px; font-weight: 700; color: var(--hv-orange-dark); }
.hv-stat-lbl { display: block; font-size: 10px; color: var(--hv-muted); margin-top: 1px; }

/* ── PROFILE DETAIL ROWS ──────────────────────────────────── */
.hv-profile-info { margin-top: 10px; }
.hv-info-row { display: flex; gap: 6px; padding: 4px 0; border-bottom: 1px solid #f5ece0; font-size: 12px; align-items: flex-start; }
.hv-info-row:last-child { border-bottom: none; }
.hv-info-label { color: var(--hv-muted); min-width: 90px; flex-shrink: 0; font-weight: 600; }
.hv-info-value { color: #333; flex: 1; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.hv-btn { display: inline-block; border: none; border-radius: 4px; padding: 6px 14px; cursor: pointer; font-weight: 700; font-family: Arial, sans-serif; font-size: 12px; text-decoration: none; text-align: center; transition: filter .12s, transform .1s; line-height: 1.4; }
.hv-btn:hover { filter: brightness(1.08); text-decoration: none; }
.hv-btn:active { transform: scale(.97); }
.hv-btn-orange { background: linear-gradient(180deg, #f09030 0%, var(--hv-orange-dark) 100%); color: #fff; border: 1px solid #a04800; }
.hv-btn-blue   { background: linear-gradient(180deg, #5aa0d0 0%, var(--hv-blue-dark) 100%); color: #fff; border: 1px solid #1a4f80; }
.hv-btn-red    { background: var(--hv-red); color: #fff; border: 1px solid #aa1111; }
.hv-btn-green  { background: var(--hv-green); color: #fff; border: 1px solid #2a6e2a; }
.hv-btn-grey   { background: #aaa; color: #fff; border: 1px solid #888; }
.hv-btn-yellow { background: var(--hv-yellow); color: #333; border: 1px solid #c9a020; }
.hv-btn-full   { width: 100%; display: block; }
.hv-btn-sm     { padding: 3px 10px; font-size: 11px; }

/* ── FORMS ────────────────────────────────────────────────── */
.hv-form-row { display: flex; gap: 10px; }
.hv-form-group { flex: 1; margin-bottom: 10px; }
.hv-form-group label { display: block; font-weight: 700; font-size: 12px; color: #555; margin-bottom: 3px; }
.hv-form-group input, .hv-form-group textarea, .hv-form-group select { width: 100%; border: 1px solid var(--hv-beige-border); border-radius: 4px; padding: 6px 8px; font-family: Arial, sans-serif; font-size: 13px; outline: none; background: #fffdf9; transition: border-color .2s; }
.hv-form-group input:focus, .hv-form-group textarea:focus { border-color: var(--hv-orange); }
.hv-form-group textarea { resize: vertical; min-height: 80px; }

/* ── SCRAPS / KRABBELS ────────────────────────────────────── */
.hv-scrap-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--hv-beige-dark); }
.hv-scrap-content { flex: 1; min-width: 0; }
.hv-scrap-header  { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 5px; }
.hv-scrap-author  { font-weight: 700; color: var(--hv-link); font-size: 13px; }
.hv-scrap-author:hover { color: var(--hv-orange); }
.hv-scrap-time    { font-size: 10px; color: var(--hv-muted); }
.hv-scrap-text    { background: #fffbf3; border: 1px solid #e8d5a8; border-radius: 5px; padding: 7px 10px; font-size: 13px; color: #333; line-height: 1.55; }
.hv-scrap-delete  { display: inline-block; margin-top: 4px; font-size: 10px; color: var(--hv-muted); cursor: pointer; text-decoration: none; }
.hv-scrap-delete:hover { color: var(--hv-red); }

/* Krabbel editor toolbar */
.krab-toolbar { display: flex; gap: 2px; padding: 5px 8px; background: #f0e8d8; border: 1px solid #c8b99a; border-bottom: none; border-radius: 5px 5px 0 0; }
.krab-toolbar button { background: #fff; border: 1px solid #c8b99a; border-radius: 3px; padding: 2px 8px; font-size: 12px; cursor: pointer; font-family: Arial; }
.krab-toolbar button:hover { background: #fdf0e0; border-color: var(--hv-orange); }
.krab-toolbar button.bold-btn { font-weight: 700; }
.krab-toolbar button.italic-btn { font-style: italic; }
.krab-toolbar button.strike-btn { text-decoration: line-through; }
.krab-textarea { border-radius: 0 0 5px 5px !important; border-top: none !important; }

/* Smiley picker */
.krab-tabs { display: flex; gap: 0; border-bottom: 1px solid #c8b99a; margin-top: 8px; }
.krab-tab { padding: 5px 12px; font-size: 12px; cursor: pointer; border: 1px solid transparent; border-bottom: none; border-radius: 4px 4px 0 0; color: var(--hv-link); background: #f5ede0; margin-bottom: -1px; }
.krab-tab.active { background: #fff; border-color: #c8b99a; color: var(--hv-orange-dark); font-weight: 700; }
.krab-panel { display: none; border: 1px solid #c8b99a; border-top: none; border-radius: 0 0 5px 5px; background: #fff; padding: 8px; }
.krab-panel.active { display: block; }
.smiley-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.smiley-item { cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: background .1s; }
.smiley-item:hover { background: #fdf0e0; }
.smiley-item img { width: 24px; height: 24px; object-fit: contain; }

/* ── FRIENDS ──────────────────────────────────────────────── */
.hv-friend-grid { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.hv-friend-grid a:hover img { box-shadow: 0 0 0 2px var(--hv-orange); }
.hv-friend-card { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid #eee; border-radius: 5px; background: #fff; margin-bottom: 6px; transition: border-color .15s; }
.hv-friend-card:hover { border-color: var(--hv-blue-light); }
.hv-friend-name { font-weight: 700; font-size: 13px; color: var(--hv-link); }
.hv-friend-city { font-size: 11px; color: var(--hv-muted); }

/* ── ALBUM / PHOTOS ───────────────────────────────────────── */
.hv-album-mini { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.hv-album-mini-thumb { height: 55px; background: var(--hv-beige); border-radius: 4px; border: 1px solid var(--hv-beige-border); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 20px; transition: border-color .15s; }
.hv-album-mini-thumb:hover { border-color: var(--hv-orange); }
.hv-album-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hv-photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.hv-photo-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.hv-album-thumb { border-radius: 5px; overflow: hidden; cursor: pointer; border: 2px solid var(--hv-beige-border); transition: border-color .15s, transform .15s; }
.hv-album-thumb:hover { border-color: var(--hv-orange); transform: scale(1.02); }
.hv-album-cover { height: 90px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.hv-album-label { padding: 5px 8px; background: #fff; font-size: 12px; font-weight: 600; color: #444; border-top: 1px solid #eee; }
.hv-photo-thumb { height: 80px; border-radius: 4px; border: 1px solid var(--hv-beige-border); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.hv-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── MESSAGES ─────────────────────────────────────────────── */
.hv-msg-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--hv-beige-dark); cursor: pointer; text-decoration: none; color: inherit; transition: background .1s; }
.hv-msg-row:hover { background: #fdf6ec; text-decoration: none; }
.hv-msg-row.active { background: #fdf0e0; }
.hv-msg-row.unread .hv-msg-from { font-weight: 700; }
.hv-msg-from { font-size: 12px; color: #333; }
.hv-msg-preview { font-size: 11px; color: var(--hv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-msg-time { font-size: 10px; color: var(--hv-muted); white-space: nowrap; }
.hv-msg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hv-orange); flex-shrink: 0; }
.hv-bubble { display: flex; margin-bottom: 8px; }
.hv-bubble.me { justify-content: flex-end; }
.hv-bubble.them { justify-content: flex-start; }
.hv-bubble-text { max-width: 70%; padding: 7px 11px; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.hv-bubble.me   .hv-bubble-text { background: var(--hv-orange); color: #fff; border-radius: 14px 14px 4px 14px; }
.hv-bubble.them .hv-bubble-text { background: #f5ece0; color: #333; border-radius: 14px 14px 14px 4px; }
.hv-bubble-time { font-size: 10px; opacity: .65; margin-top: 3px; text-align: right; }

/* ── GROUPS ───────────────────────────────────────────────── */
.hv-group-icon { width: 46px; height: 46px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; background: #fff8ee; border: 2px solid #e8c888; }

/* ── NOTIFICATIONS ────────────────────────────────────────── */
.hv-notif-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--hv-beige-dark); }
.hv-notif-row.unread { background: #fffbf0; margin: 0 -10px; padding: 8px 10px; }
.hv-notif-msg { font-size: 12px; flex: 1; line-height: 1.4; }
.hv-notif-time { font-size: 10px; color: var(--hv-muted); white-space: nowrap; }

/* ── SEARCH ───────────────────────────────────────────────── */
.hv-search-result { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hv-beige-dark); }

/* ── UTILITIES ────────────────────────────────────────────── */
.hv-muted { color: var(--hv-muted); font-size: 12px; }
.hv-link-small { font-size: 11px; color: var(--hv-link); display: block; margin-top: 5px; }
.hv-link-small:hover { color: var(--hv-orange); }

/* ── AUTH PAGES ───────────────────────────────────────────── */
.hv-auth-wrap { max-width: 460px; margin: 40px auto; padding: 0 12px; }

/* ── FOOTER ───────────────────────────────────────────────── */
#footer { background: linear-gradient(180deg, #3a7abf 0%, #2a5f99 100%); color: rgba(255,255,255,.75); text-align: center; padding: 12px; font-size: 11px; border-top: 2px solid #1a4060; flex-shrink: 0; }
#footer a { color: rgba(255,255,255,.85); }
#footer a:hover { color: #fff; text-decoration: none; }

/* ── INDEX / LANDING PAGE ─────────────────────────────────── */
.idx-hero { background: linear-gradient(135deg, #4a90c4 0%, #2e6da4 60%, #1a4f80 100%); padding: 50px 20px; text-align: center; color: #fff; }
.idx-hero h1 { font-size: 52px; font-family: 'Trebuchet MS', sans-serif; font-weight: 900; text-shadow: 2px 3px 6px rgba(0,0,0,.3); margin-bottom: 8px; }
.idx-hero p  { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 30px; }
.idx-hero .counter { font-size: 28px; font-weight: 700; color: #ffe066; margin-bottom: 6px; }
.idx-hero .counter-sub { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 30px; }
.idx-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.idx-cta a { padding: 12px 28px; border-radius: 6px; font-weight: 700; font-size: 15px; text-decoration: none; transition: filter .15s; }
.idx-cta a:hover { filter: brightness(1.1); text-decoration: none; }
.idx-cta .btn-register { background: #ffe066; color: #333; border: 2px solid #c9a020; }
.idx-cta .btn-login    { background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.4); }

.idx-features { background: var(--hv-beige); padding: 30px 20px; }
.idx-features-inner { max-width: 960px; margin: 0 auto; }
.idx-features h2 { text-align: center; font-size: 22px; color: var(--hv-blue-dark); margin-bottom: 24px; font-family: 'Trebuchet MS', sans-serif; }
.idx-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.idx-feature-card { background: #fff; border: 1px solid var(--hv-beige-border); border-radius: 8px; padding: 20px; text-align: center; }
.idx-feature-icon { font-size: 36px; margin-bottom: 10px; }
.idx-feature-card h3 { font-size: 15px; color: var(--hv-blue-dark); margin-bottom: 6px; }
.idx-feature-card p  { font-size: 12px; color: var(--hv-muted); line-height: 1.5; }

.idx-login-box { max-width: 420px; margin: 30px auto; padding: 0 20px 40px; }

/* ── CHAT WIDGET ──────────────────────────────────────────── */
#chat-widget {
  position: fixed; bottom: 0; right: 20px;
  width: 240px; z-index: 1000;
  font-family: Arial, sans-serif; font-size: 12px;
}
#chat-header {
  background: linear-gradient(180deg, #4a90c4 0%, #2e6da4 100%);
  color: #fff; padding: 7px 10px; border-radius: 8px 8px 0 0;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 13px; user-select: none;
  border: 1px solid #1a4f80; border-bottom: none;
}
#chat-header .chat-status { display: flex; align-items: center; gap: 5px; }
#chat-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #44dd44; display: inline-block; }
#chat-body { background: #fff; border: 1px solid #1a4f80; border-top: none; display: none; }
#chat-widget.open #chat-body { display: block; }
#chat-friends-list { max-height: 220px; overflow-y: auto; border-bottom: 1px solid #e8e0d0; }
.chat-friend-row { display: flex; align-items: center; gap: 7px; padding: 6px 10px; cursor: pointer; transition: background .1s; }
.chat-friend-row:hover { background: #fdf6ec; }
.chat-friend-name { flex: 1; font-size: 12px; color: #333; }
.chat-friend-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chat-friend-status.online  { background: #44dd44; }
.chat-friend-status.offline { background: #ccc; }
.chat-search-box { padding: 6px 8px; border-bottom: 1px solid #e8e0d0; }
.chat-search-box input { width: 100%; border: 1px solid #c8b99a; border-radius: 3px; padding: 4px 7px; font-size: 11px; outline: none; }

/* Chat conversation panel */
#chat-convo { display: none; flex-direction: column; height: 300px; }
#chat-widget.in-convo #chat-friends-list,
#chat-widget.in-convo .chat-search-box { display: none; }
#chat-widget.in-convo #chat-convo { display: flex; }
#chat-convo-header { background: #f5ede0; padding: 6px 10px; border-bottom: 1px solid #e8d5b4; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
#chat-convo-header button { margin-left: auto; background: none; border: none; cursor: pointer; color: #888; font-size: 14px; }
#chat-messages { flex: 1; overflow-y: auto; padding: 8px; }
.chat-msg { margin-bottom: 5px; }
.chat-msg.mine { text-align: right; }
.chat-msg.mine span  { background: var(--hv-orange); color: #fff; border-radius: 10px 10px 2px 10px; }
.chat-msg.theirs span { background: #f0e8d8; color: #333; border-radius: 10px 10px 10px 2px; }
.chat-msg span { display: inline-block; padding: 4px 9px; font-size: 12px; max-width: 80%; word-break: break-word; }
.chat-msg span img { display: inline; width: 20px; height: 20px; vertical-align: middle; }
.chat-msg .chat-time { font-size: 9px; color: #bbb; display: block; margin-top: 1px; }
#chat-input-row { display: flex; border-top: 1px solid #e8d5b4; }
#chat-input-row input { flex: 1; border: none; padding: 7px 8px; font-size: 12px; outline: none; }
#chat-input-row button { background: var(--hv-orange); color: #fff; border: none; padding: 0 10px; cursor: pointer; font-size: 12px; font-weight: 700; }
