/* ============================================================================
   Vidaara Homework Assistance — Design System
   Premium SaaS UI: glassmorphism, gradients, soft depth, full dark mode.
   ========================================================================== */
:root {
  /* Vidaara brand — Saffron on Navy / cream (synced with vidaara.org) */
  --brand: #ff7a18;
  --brand-2: #e85d04;
  --brand-3: #1a7fe8;
  --grad: linear-gradient(135deg, #ff7a18 0%, #e85d04 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,122,24,.14), rgba(232,93,4,.08));

  --bg: #fbf8f1;
  --bg-2: #f4efe4;
  --surface: #ffffff;
  --surface-2: #fbf8f1;
  --glass: rgba(251, 248, 241, .78);
  --border: rgba(19, 33, 46, .10);
  --border-2: rgba(19, 33, 46, .07);

  --text: #0a1628;
  --muted: #6d6459;
  --faint: #9a9184;

  --ok: #16a34a; --ok-bg: #e8f7ee;
  --warn: #d97706; --warn-bg: #fdf1e3;
  --danger: #dc2626; --danger-bg: #fdecec;
  --info: #2563eb; --info-bg: #e8f0fe;

  --shadow-sm: 0 1px 2px rgba(16,19,28,.06), 0 1px 3px rgba(16,19,28,.05);
  --shadow: 0 6px 24px rgba(16,19,28,.08);
  --shadow-lg: 0 18px 50px rgba(16,19,28,.14);
  --ring: 0 0 0 4px rgba(255,122,24,.22);

  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --sidebar: 260px;
  --topbar: 66px;
  --maxw: 1200px;

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
}

[data-theme="dark"] {
  --bg: #0a1628;
  --bg-2: #0d1c33;
  --surface: #12213b;
  --surface-2: #172a49;
  --glass: rgba(10, 22, 40, .78);
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .06);
  --text: #eef2f8;
  --muted: #a9b4c6;
  --faint: #6f7d93;
  --ok-bg: #10241a; --warn-bg: #2a2012; --danger-bg: #2a1616; --info-bg: #131f36;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 8px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .3s ease, color .3s ease;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
.brand, .btn { font-family: var(--font); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; padding: .7rem 1.25rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  background: var(--surface); color: var(--text); min-height: 44px; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(79,70,229,.32); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(79,70,229,.42); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand); }
.btn-soft { background: var(--grad-soft); color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; min-height: 36px; }
.btn-lg { padding: .95rem 1.75rem; font-size: 1.05rem; min-height: 52px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 1.5rem;
}
.card-pad { padding: 1.5rem; }
.card-glass { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---- Stat cards --------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.stat {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.35rem 1.4rem; box-shadow: var(--shadow-sm);
}
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  background: var(--grad); opacity: .09; border-radius: 50%;
}
.stat .stat-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.25rem; color: #fff; background: var(--grad); margin-bottom: .8rem;
}
.stat .stat-num { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.stat .stat-label { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* ---- Badges / pills ----------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600;
  padding: .28rem .65rem; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border);
}
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.badge-info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---- Forms -------------------------------------------------------------- */
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .4rem; }
.field { margin-bottom: 1.1rem; }
.input, input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text); font-size: 1rem; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease; min-height: 46px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring); background: var(--surface);
}
.hint { font-size: .82rem; color: var(--faint); margin-top: .35rem; }

/* CAPTCHA */
.captcha-row { display: flex; align-items: stretch; gap: .6rem; }
.captcha-box { flex: 0 0 auto; display: grid; place-items: center; padding: 4px 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.captcha-svg { display: block; user-select: none; }
.captcha-row input { flex: 1; letter-spacing: .18em; text-transform: uppercase; font-family: var(--mono, ui-monospace, monospace); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ---- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); }
table.data th, table.data td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border-2); }
table.data th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--surface-2); }

/* ---- Alerts / flash ----------------------------------------------------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-size: .93rem; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--info-bg); color: var(--info); }
.flash-stack { position: fixed; top: 82px; right: 20px; z-index: 120; max-width: 360px; width: calc(100% - 40px); }
.flash-stack .alert { box-shadow: var(--shadow); animation: slideIn .35s ease; }

/* ---- Progress ----------------------------------------------------------- */
.progress { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .6s cubic-bezier(.4,0,.2,1); }

/* ---- Topbar ------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 100; height: var(--topbar); display: flex; align-items: center;
  gap: 1rem; padding: 0 22px; background: var(--glass); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.1rem; box-shadow: 0 6px 16px rgba(79,70,229,.35); }
.topbar-nav { display: flex; align-items: center; gap: .3rem; margin-left: .5rem; }
.topbar-nav a { padding: .5rem .85rem; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .93rem; }
.topbar-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: 1.1rem; position: relative; transition: all .15s; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn .count { position: absolute; top: -5px; right: -5px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; cursor: pointer; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }

.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .16s; z-index: 130; }
.menu.open .menu-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .7rem; border-radius: 10px; color: var(--text); font-size: .92rem; background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); text-decoration: none; }
.menu-divider { height: 1px; background: var(--border); margin: .4rem 0; }

/* ---- App shell (sidebar + main) ----------------------------------------- */
.shell { display: flex; min-height: calc(100vh - var(--topbar)); }
.sidebar {
  width: var(--sidebar); flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border);
  padding: 1.25rem .9rem; position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto;
}
.side-group { margin-bottom: 1.4rem; }
.side-group h6 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 .7rem .5rem; font-weight: 700; }
.side-link { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .93rem; margin-bottom: 2px; transition: all .14s; }
.side-link i { font-size: 1.15rem; width: 22px; text-align: center; }
.side-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side-link.active { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.side-link .side-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }
.side-link.active .side-badge { background: rgba(255,255,255,.28); }

.main { flex: 1; min-width: 0; padding: 1.75rem clamp(1rem, 3vw, 2.25rem); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.page-head p { margin: .3rem 0 0; color: var(--muted); }

/* ---- Sections / hero (marketing) ---------------------------------------- */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 7rem) 0 clamp(2rem, 6vw, 5rem); }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(60% 60% at 15% 10%, rgba(79,70,229,.16), transparent 60%),
  radial-gradient(55% 55% at 90% 20%, rgba(6,182,212,.14), transparent 60%); z-index: -1; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: var(--grad-soft); color: var(--brand); font-weight: 600; font-size: .85rem; margin-bottom: 1.2rem; border: 1px solid var(--border); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.7rem); margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.feature { padding: 1.6rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.feature .fico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--grad); margin-bottom: 1rem; }

/* ---- Timeline (status tracker) ------------------------------------------ */
.timeline { position: relative; padding-left: 8px; }
.tl-item { position: relative; padding: 0 0 1.5rem 2.4rem; }
.tl-item::before { content: ""; position: absolute; left: 10px; top: 4px; bottom: -4px; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: grid; place-items: center; font-size: .7rem; color: var(--faint); z-index: 1; }
.tl-item.done .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl-item.current .tl-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(79,70,229,.16); animation: pulse 2s infinite; }
.tl-item.current .tl-title { color: var(--brand); }
.tl-title { font-weight: 700; }
.tl-time { font-size: .82rem; color: var(--faint); }

/* ---- Chat --------------------------------------------------------------- */
.chat { display: flex; flex-direction: column; gap: .8rem; max-height: 420px; overflow-y: auto; padding: .5rem; }
.msg { max-width: 78%; padding: .7rem .95rem; border-radius: 16px; font-size: .93rem; line-height: 1.5; }
.msg .msg-meta { font-size: .72rem; color: var(--faint); margin-bottom: .2rem; }
.msg.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.me .msg-meta { color: rgba(255,255,255,.8); }

/* ---- Dropzone ----------------------------------------------------------- */
.dropzone { border: 2px dashed var(--border); border-radius: var(--r-lg); padding: 2.2rem 1.5rem; text-align: center; background: var(--surface-2); cursor: pointer; transition: all .18s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--grad-soft); }
.dropzone .dz-ico { font-size: 2.4rem; color: var(--brand); }
.file-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.file-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; }
.file-item .fi-ico { color: var(--brand); font-size: 1.2rem; }
.file-item .fi-rm { margin-left: auto; color: var(--faint); cursor: pointer; background: none; border: none; font-size: 1rem; }

/* ---- Wizard ------------------------------------------------------------- */
.stepper { display: flex; align-items: center; gap: .4rem; margin-bottom: 2rem; overflow-x: auto; padding-bottom: .5rem; }
.step { display: flex; align-items: center; gap: .5rem; color: var(--faint); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.step .step-n { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: .85rem; background: var(--surface); flex-shrink: 0; }
.step.active { color: var(--brand); }
.step.active .step-n { border-color: var(--brand); background: var(--grad); color: #fff; }
.step.complete .step-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.step-sep { flex: 1; min-width: 16px; height: 2px; background: var(--border); }
.wizard-panel { display: none; animation: fadeUp .35s ease; }
.wizard-panel.active { display: block; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.choice { border: 2px solid var(--border); border-radius: var(--r); padding: 1rem; cursor: pointer; text-align: center; background: var(--surface); transition: all .15s; font-weight: 600; }
.choice:hover { border-color: var(--brand); transform: translateY(-2px); }
.choice.selected { border-color: var(--brand); background: var(--grad-soft); box-shadow: var(--ring); }
.choice .ch-ico { font-size: 1.6rem; color: var(--brand); display: block; margin-bottom: .4rem; }

/* ---- Price summary ------------------------------------------------------ */
.price-box { background: var(--grad); color: #fff; border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-lg); }
.price-box .pb-total { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .92rem; }
.price-row.total { border-top: 1px solid rgba(255,255,255,.25); margin-top: .5rem; padding-top: .7rem; font-weight: 700; }

/* ---- QR pay ------------------------------------------------------------- */
.qr-card { text-align: center; }
.qr-card img { width: 240px; height: 240px; border-radius: var(--r); border: 1px solid var(--border); background: #fff; padding: 8px; }

/* ---- Misc --------------------------------------------------------------- */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gap { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { padding: .3rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--muted); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--faint); }
.empty i { font-size: 3rem; opacity: .5; display: block; margin-bottom: .8rem; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
footer.site { border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 3rem; color: var(--muted); font-size: .9rem; background: var(--surface); }

/* ---- Animations --------------------------------------------------------- */
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 5px rgba(79,70,229,.16); } 50% { box-shadow: 0 0 0 9px rgba(79,70,229,.05); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.count-up { font-variant-numeric: tabular-nums; }

/* ---- Mobile ------------------------------------------------------------- */
.hamburger { display: none; }
@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: var(--topbar); z-index: 90; transform: translateX(-100%); transition: transform .28s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .hamburger { display: grid; }
  .topbar-nav { display: none; }
  .sidebar-scrim { display: none; position: fixed; inset: var(--topbar) 0 0; background: rgba(0,0,0,.4); z-index: 85; }
  .sidebar-scrim.show { display: block; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .main { padding: 1.25rem 1rem; }
  .flash-stack { top: 76px; }
  .msg { max-width: 88%; }
  .topbar-actions .hide-sm { display: none; }
}

/* ---- Live-class whiteboard ---- */
.wb-wrap { padding: .6rem; }
.wb-toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .3rem .4rem .7rem; }
.wb-colors { display: flex; gap: .35rem; }
.wb-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0; }
.wb-color.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,122,24,.2); }
.wb-tbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); font-size: 1.05rem; }
.wb-tbtn.on { background: var(--grad-soft); border-color: var(--brand); color: var(--brand); }
.wb-size { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.wb-size input { width: 110px; }
.wb-canvas-wrap { position: relative; width: 100%; height: 60vh; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; touch-action: none; }
#wb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.wb-chat { margin-top: .7rem; }
.wb-chat-box { height: 130px; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .5rem .7rem; font-size: .9rem; margin-bottom: .5rem; }
.wb-chat-line { margin-bottom: .25rem; }
