/* ===================================================================
   Doebooka — hi-fi design tokens & components
   Palette B: navy (logo) + turquoise primary, terracotta secondary
   Type: Mulish (humanist). Shape: soft, heavily rounded. Theme: light.
   =================================================================== */
:root{
  /* brand */
  --navy:#16242e;
  --navy-700:#1d3340;
  --navy-600:#28505f;
  --teal:#0d9488;
  --teal-600:#0f766e;
  --teal-700:#115e56;
  --teal-50:#e9fbf6;
  --teal-100:#cdf3ea;
  --clay:#d97742;
  --clay-50:#fbeee5;

  /* neutrals (cool, faintly teal-tinted) */
  --bg:#f1f5f5;
  --surface:#ffffff;
  --surface-2:#f7faf9;
  --line:#e3eaea;
  --line-2:#eef3f3;
  --text:#15252c;
  --muted:#5f7178;
  --faint:#93a3a8;

  /* status semantics */
  --st-new:#64748b;    --st-new-bg:#eef1f4;
  --st-quote:#c5891d;  --st-quote-bg:#fbf2dd;
  --st-wait:#6d6fd1;   --st-wait-bg:#ecedfb;
  --st-prog:#2f6fd0;   --st-prog-bg:#e6effb;
  --st-accept:#0d9488; --st-accept-bg:#e1f6f1;
  --st-done:#2f9e5f;   --st-done-bg:#e6f6ec;

  /* radius (soft) */
  --r-xs:8px; --r-sm:12px; --r:16px; --r-lg:20px; --r-xl:26px; --r-pill:999px;

  /* shadow */
  --sh-1:0 1px 2px rgba(20,40,48,.05), 0 1px 3px rgba(20,40,48,.04);
  --sh-2:0 2px 6px rgba(20,40,48,.06), 0 10px 26px rgba(20,40,48,.07);
  --sh-card:0 1px 2px rgba(20,40,48,.04), 0 6px 18px rgba(20,40,48,.05);

  --font:'Mulish', system-ui, -apple-system, sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-size:15px;
  line-height:1.5;
}

/* ===================== APP SHELL ===================== */
.app{ display:flex; min-height:100vh; }

/* sidebar */
.side{
  width:256px; flex-shrink:0;
  background:linear-gradient(180deg,#1a2b35 0%, var(--navy) 60%);
  color:#cfdadd;
  display:flex; flex-direction:column;
  padding:22px 16px 18px;
  position:sticky; top:0; height:100vh;
}
.side .logo{ display:flex; align-items:center; gap:11px; padding:6px 8px 24px; }
.side .logo img{ height:30px; width:auto; display:block; }
.side .logo .wordmark{ font-weight:800; font-size:21px; letter-spacing:-.01em; color:#fff; line-height:1; }
.side .logo .wordmark b{ color:var(--teal); }
.nav-label{ font-size:11px; font-weight:800; letter-spacing:.10em; text-transform:uppercase; color:rgba(255,255,255,.38); padding:0 12px 10px; }
.nav{ display:flex; flex-direction:column; gap:4px; }
.nav a{
  display:flex; align-items:center; gap:12px; text-decoration:none;
  font-size:15px; font-weight:600; color:rgba(255,255,255,.72);
  padding:11px 13px; border-radius:13px; position:relative; transition:.15s;
}
.nav a svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.9; flex-shrink:0; }
.nav a:hover{ background:rgba(255,255,255,.07); color:#fff; }
.nav a.active{ background:rgba(13,148,136,.22); color:#fff; box-shadow:inset 0 0 0 1px rgba(13,148,136,.4); }
.nav a.active svg{ color:var(--teal); }
.side .spacer{ flex:1; }
.side .upsell{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius:var(--r); padding:14px; margin-bottom:14px; }
.side .upsell .t{ font-weight:700; color:#fff; font-size:14px; }
.side .upsell .d{ font-size:12.5px; color:rgba(255,255,255,.6); margin-top:3px; line-height:1.45; }
.side .upsell a{ display:inline-block; margin-top:10px; font-size:13px; font-weight:700; color:var(--teal); text-decoration:none; }
.side .me{ display:flex; align-items:center; gap:11px; padding:10px 8px 2px; border-top:1px solid rgba(255,255,255,.1); padding-top:14px; }
.side .me .av{ width:38px; height:38px; border-radius:var(--r-pill); background:linear-gradient(135deg,var(--teal),#0bb3a1); display:grid; place-items:center; color:#04332e; font-weight:800; font-size:15px; flex-shrink:0; }
.side .me .who{ min-width:0; line-height:1.3; }
.side .me .who .n{ font-size:13.5px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.side .me .who a{ font-size:12px; color:rgba(255,255,255,.55); text-decoration:none; }

/* main */
.main{ flex:1; min-width:0; padding:34px 44px 56px; }
.main-narrow{ max-width:1080px; margin:0 auto; }

/* ===================== TYPOGRAPHY ===================== */
.h1{ font-size:29px; font-weight:800; letter-spacing:-.015em; color:var(--text); line-height:1.12; }
.lead{ font-size:16px; color:var(--muted); margin-top:6px; }
.lead b{ color:var(--text); font-weight:800; }
.h2{ font-size:18px; font-weight:800; letter-spacing:-.01em; color:var(--text); }
.eyebrow{ font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--teal-600); }
.muted{ color:var(--muted); }

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex; align-items:center; gap:9px; cursor:pointer; text-decoration:none;
  font-family:var(--font); font-weight:700; font-size:14.5px; line-height:1;
  padding:12px 18px; border-radius:var(--r-pill); border:1.5px solid transparent;
  transition:.16s; white-space:nowrap;
}
.btn svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2; }
.btn.primary{ background:var(--teal); color:#fff; box-shadow:0 2px 10px rgba(13,148,136,.32); }
.btn.primary:hover{ background:var(--teal-600); }
.btn.ghost{ background:var(--surface); color:var(--text); border-color:var(--line); box-shadow:var(--sh-1); }
.btn.ghost:hover{ border-color:var(--teal); color:var(--teal-600); }
.btn.white{ background:#fff; color:var(--navy); }
.btn.white:hover{ background:#f2f5f5; }
.btn.clay{ background:var(--clay); color:#fff; box-shadow:0 2px 10px rgba(217,119,66,.30); }
.btn.sm{ padding:9px 14px; font-size:13.5px; }
.btn.link{ background:none; border:none; padding:0; color:var(--teal-600); box-shadow:none; }

/* ===================== STATUS BADGE ===================== */
.badge{
  display:inline-flex; align-items:center; gap:7px; line-height:1;
  font-size:12.5px; font-weight:800; padding:6px 11px 6px 9px;
  border-radius:var(--r-pill); color:var(--c,var(--st-new)); background:var(--cb,var(--st-new-bg));
}
.badge .dot{ width:7px; height:7px; border-radius:50%; background:var(--c,var(--st-new)); }
.b-new{ --c:var(--st-new); --cb:var(--st-new-bg); }
.b-quote{ --c:var(--st-quote); --cb:var(--st-quote-bg); }
.b-wait{ --c:var(--st-wait); --cb:var(--st-wait-bg); }
.b-prog{ --c:var(--st-prog); --cb:var(--st-prog-bg); }
.b-accept{ --c:var(--st-accept); --cb:var(--st-accept-bg); }
.b-done{ --c:var(--st-done); --cb:var(--st-done-bg); }

/* ===================== CARD ===================== */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-card); }

/* row helper */
.row-between{ display:flex; align-items:center; justify-content:space-between; gap:18px; }
.section-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.count-pill{ display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 7px; border-radius:var(--r-pill); background:var(--teal-50); color:var(--teal-700); font-size:12px; font-weight:800; }

/* ===================== QUICK ACTIONS ===================== */
.qa-grid{ display:grid; grid-template-columns:1.35fr 1fr 1fr; gap:16px; }
.qa{
  display:flex; flex-direction:column; gap:14px; justify-content:space-between;
  padding:20px; min-height:140px; border-radius:var(--r-lg);
  background:var(--surface); border:1px solid var(--line); box-shadow:var(--sh-card);
  text-decoration:none; color:var(--text); transition:.16s; cursor:pointer;
}
.qa:hover{ transform:translateY(-2px); box-shadow:var(--sh-2); }
.qa .ico{ width:46px; height:46px; border-radius:14px; background:var(--teal-50); color:var(--teal-600); display:grid; place-items:center; }
.qa .ico svg{ width:23px; height:23px; stroke:currentColor; fill:none; stroke-width:1.9; }
.qa .t{ font-size:18px; font-weight:800; letter-spacing:-.01em; }
.qa .d{ font-size:13.5px; color:var(--muted); margin-top:2px; }
.qa.primary{ background:linear-gradient(150deg,var(--teal) 0%, var(--teal-600) 100%); border-color:transparent; color:#fff; box-shadow:0 8px 24px rgba(13,148,136,.28); }
.qa.primary .ico{ background:rgba(255,255,255,.2); color:#fff; }
.qa.primary .d{ color:rgba(255,255,255,.85); }
.qa .arrow{ font-size:18px; color:var(--teal-600); }
.qa.primary .arrow{ color:#fff; }

/* ===================== RECENT — list & cards ===================== */
.job-line{ display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:20px; padding:16px 8px; border-bottom:1px solid var(--line-2); text-decoration:none; color:inherit; transition:.14s; }
.job-line:last-child{ border-bottom:none; }
.job-line:hover{ background:var(--surface-2); border-radius:12px; }
.job-line .ti{ font-size:16px; font-weight:700; color:var(--text); }
.job-line .mi{ font-size:13px; color:var(--muted); margin-top:2px; display:flex; align-items:center; gap:8px; }
.job-line .go{ color:var(--faint); font-size:18px; }
.job-line:hover .go{ color:var(--teal-600); }
.attn-tab{ box-shadow:inset 3px 0 0 var(--c,var(--st-accept)); }

.job-card{ display:flex; flex-direction:column; gap:12px; padding:18px; border-radius:var(--r); background:var(--surface); border:1px solid var(--line); box-shadow:var(--sh-card); text-decoration:none; color:inherit; transition:.16s; }
.job-card:hover{ transform:translateY(-2px); box-shadow:var(--sh-2); }
.job-card .ti{ font-size:16.5px; font-weight:800; letter-spacing:-.01em; }
.job-card .mi{ font-size:13px; color:var(--muted); }
.job-card .foot{ display:flex; align-items:center; justify-content:space-between; }

/* ===================== KPI / pipeline strip (variant B) ===================== */
.kpi-strip{ display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.kpi{ padding:15px 14px 14px; border-radius:var(--r); background:var(--surface); border:1px solid var(--line); box-shadow:var(--sh-card); position:relative; overflow:hidden; }
.kpi::before{ content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--c,var(--st-new)); }
.kpi .num{ font-size:30px; font-weight:800; letter-spacing:-.02em; line-height:1; }
.kpi .lab{ font-size:12px; color:var(--muted); margin-top:7px; line-height:1.25; font-weight:600; }

/* ===================== HERO card (variant C) ===================== */
.hero{ border-radius:var(--r-xl); padding:30px 32px; color:#fff; position:relative; overflow:hidden;
  background:radial-gradient(120% 140% at 90% 10%, #1c8f84 0%, var(--navy) 55%); box-shadow:0 14px 40px rgba(13,148,136,.18); }
.hero .eyebrow{ color:var(--teal-100); }
.hero h1{ font-size:30px; font-weight:800; letter-spacing:-.02em; margin-top:8px; max-width:18ch; line-height:1.1; }
.hero p{ color:rgba(255,255,255,.82); margin-top:10px; max-width:48ch; font-size:15.5px; }
.hero .actions{ display:flex; gap:12px; margin-top:22px; flex-wrap:wrap; }
.hero .deco{ position:absolute; right:-30px; bottom:-50px; width:230px; height:230px; opacity:.10; }
.hero .deco img{ width:100%; height:100%; object-fit:contain; }
.hero-stats{ display:flex; gap:26px; margin-top:24px; }
.hero-stats .s .n{ font-size:24px; font-weight:800; }
.hero-stats .s .l{ font-size:12.5px; color:rgba(255,255,255,.7); }

/* ===================== LIST VIEW — filter bar ===================== */
.filterbar{ display:flex; align-items:center; gap:14px; margin-top:24px; flex-wrap:wrap; }
.search{ display:flex; align-items:center; gap:10px; flex:1; min-width:260px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-pill);
  padding:11px 18px; box-shadow:var(--sh-1); color:var(--faint); }
.search svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2; flex-shrink:0; }
.search input{ border:none; outline:none; background:none; font-family:var(--font);
  font-size:14.5px; color:var(--text); width:100%; }
.search input::placeholder{ color:var(--faint); }
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{ font-size:13.5px; font-weight:700; color:var(--muted); cursor:pointer;
  padding:9px 15px; border-radius:var(--r-pill); background:var(--surface);
  border:1px solid var(--line); transition:.14s; white-space:nowrap; }
.chip:hover{ border-color:var(--teal); color:var(--teal-600); }
.chip.on{ background:var(--navy); color:#fff; border-color:var(--navy); }

/* ===================== LIST VIEW — status groups ===================== */
.grp{ margin-top:26px; }
.grp-head{ display:flex; align-items:center; gap:11px; padding:0 4px 11px; }
.grp-head .grp-count{ display:inline-grid; place-items:center; min-width:22px; height:22px;
  padding:0 7px; border-radius:var(--r-pill); background:var(--line-2); color:var(--muted);
  font-size:12px; font-weight:800; }
.grp-list{ overflow:hidden; }
.grp-list .job-line{ padding:16px 20px; }
.grp-empty{ padding:18px 20px; color:var(--faint); font-size:14px; font-weight:600;
  background:var(--surface); border:1px dashed var(--line); border-radius:var(--r-lg); }

/* termin pill inside a job row */
.due{ font-size:13px; font-weight:700; color:var(--muted); display:inline-flex;
  align-items:center; gap:7px; white-space:nowrap; }
.due svg{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; }
.due.soon{ color:var(--clay); }
.due.done{ color:var(--faint); }

.show-more{ display:flex; justify-content:center; padding:14px 0 4px; }

/* attention banner (warm) */
.attn-banner{ display:flex; align-items:center; gap:16px; padding:16px 20px; border-radius:var(--r); background:var(--clay-50); border:1px solid #f0d6c4; }
.attn-banner .ic{ width:40px; height:40px; border-radius:12px; background:#fff; color:var(--clay); display:grid; place-items:center; flex-shrink:0; box-shadow:var(--sh-1); }
.attn-banner .ic svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; }
.attn-banner .tx{ flex:1; }
.attn-banner .tx .t{ font-weight:800; font-size:15px; }
.attn-banner .tx .d{ font-size:13px; color:var(--muted); }

/* extra buttons */
.btn.warn{ background:#fff; color:var(--clay); border-color:#ecc4ab; box-shadow:var(--sh-1); }
.btn.warn:hover{ background:var(--clay-50); border-color:var(--clay); }
.btn.accept{ background:var(--st-done); color:#fff; box-shadow:0 2px 10px rgba(47,158,95,.28); }
.btn.accept:hover{ background:#28814f; }

/* ===================== ASSIGN PANEL ===================== */
.assign-panel{ border:1px solid #e4d3b4; border-radius:var(--r-lg); overflow:hidden;
  background:linear-gradient(135deg,#fbf4e6,var(--surface)); box-shadow:0 8px 24px rgba(197,137,29,.10); }
.assign-panel .ap-head{ display:flex; align-items:flex-start; gap:13px; padding:20px 22px 14px; }
.assign-panel .ap-ico{ width:46px; height:46px; flex-shrink:0; border-radius:14px; background:var(--st-quote); color:#fff;
  display:grid; place-items:center; box-shadow:0 4px 12px rgba(197,137,29,.3); }
.assign-panel .ap-ico.ap-ico-wait{ background:var(--st-wait); box-shadow:0 4px 12px rgba(109,111,209,.3); }
.assign-panel .ap-ico svg{ width:23px; height:23px; stroke:currentColor; fill:none; stroke-width:1.9; }
.assign-panel .ap-t{ font-size:17px; font-weight:800; letter-spacing:-.01em; }
.assign-panel .ap-d{ font-size:13.5px; color:var(--muted); margin-top:3px; line-height:1.5; }
.assign-panel .ap-body{ padding:4px 22px 22px; }
.ap-expected{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:var(--st-quote);
  background:rgba(197,137,29,.1); border-radius:var(--r-pill); padding:7px 13px; margin-bottom:18px; }
.ap-expected svg{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; }
.price-wrap{ position:relative; }
.price-wrap .inp{ padding-right:46px; }
.price-wrap .suffix{ position:absolute; right:14px; top:50%; transform:translateY(-50%); font-size:14px; font-weight:800; color:var(--muted); pointer-events:none; }
.ap-foot{ display:flex; align-items:center; gap:11px; margin-top:20px; padding-top:18px; border-top:1px solid var(--line-2); }
.ap-foot .grow{ flex:1; }
.apc-recap{ display:inline-flex; border:1px solid var(--line); border-radius:var(--r); overflow:hidden; margin-bottom:20px; background:var(--surface); }
.apc-recap > div{ padding:11px 22px; }
.apc-recap > div + div{ border-left:1px solid var(--line); }
.apc-recap .rl{ display:block; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--faint); white-space:nowrap; }
.apc-recap .rv{ display:block; font-size:16px; font-weight:800; color:var(--text); margin-top:3px; white-space:nowrap; }
.btn:disabled{ opacity:.45; cursor:not-allowed; pointer-events:none; }
.btn.decline{ background:#fff; color:#c2502f; border-color:#ecc7ba; box-shadow:var(--sh-1); }
.btn.decline:hover{ background:#fbe7df; border-color:#c2502f; }
.inp-readonly{ color:var(--muted); background:var(--surface-2); cursor:default; }

/* ===================== DETAIL VIEW ===================== */
.backlink{ display:inline-flex; align-items:center; gap:7px; text-decoration:none;
  font-size:13.5px; font-weight:700; color:var(--muted); margin-bottom:18px; transition:.14s; }
.backlink:hover{ color:var(--teal-600); }
.backlink svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2.2; flex-shrink:0; }

.detail-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }
.crumbs{ font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); margin-bottom:7px; }
.metaline{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:12px; }
.header-note{ font-size:13px; color:var(--muted); margin-top:8px; font-weight:600; }
.info-card-success{ display:flex; align-items:flex-start; gap:14px; padding:18px 20px; border-radius:var(--r-lg);
  background:var(--st-done-bg); border:1px solid #bfe7cd; margin-bottom:4px; }
.info-card-success svg{ width:22px; height:22px; stroke:var(--st-done); fill:none; stroke-width:2.2; flex-shrink:0; margin-top:1px; }
.info-card-success .ics-t{ font-size:14.5px; font-weight:800; color:var(--st-done); }
.info-card-success .ics-d{ font-size:13px; color:var(--st-done); opacity:.8; margin-top:3px; }
.metaline .mi{ font-size:14px; color:var(--muted); font-weight:600; }
.metaline .mi b{ color:var(--text); font-weight:800; }
.metaline .sep{ color:var(--faint); }

.detail-grid{ display:grid; grid-template-columns:minmax(0,1fr) 388px; gap:24px; align-items:start; margin-top:26px; }
.left-col{ display:flex; flex-direction:column; gap:20px; min-width:0; }

.card-h{ font-size:16px; font-weight:800; letter-spacing:-.01em; padding:18px 22px 4px; }
.card-body{ padding:8px 22px 20px; }

/* definition list */
.dl{ display:grid; grid-template-columns:130px 1fr; gap:0; padding:10px 22px 20px; }
.dl dt{ font-size:13.5px; font-weight:700; color:var(--muted); padding:11px 0; border-top:1px solid var(--line-2); }
.dl dd{ font-size:14.5px; color:var(--text); font-weight:600; padding:11px 0; border-top:1px solid var(--line-2); }
.dl dt:first-of-type, .dl dd:first-of-type{ border-top:none; }
.dl dd.note{ font-weight:500; color:var(--muted); line-height:1.5; }

/* files */
.file-sub{ display:flex; align-items:center; gap:9px; font-size:13.5px; font-weight:800;
  letter-spacing:-.005em; padding:6px 22px 12px; color:var(--text); }
.file-sub .count{ display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px;
  border-radius:var(--r-pill); background:var(--line-2); color:var(--muted); font-size:11.5px; font-weight:800; }
.file-sub.deliver-sub{ color:var(--teal-700); }
.file-sub.deliver-sub .count{ background:var(--teal-50); color:var(--teal-700); }
.filelist{ display:flex; flex-direction:column; gap:9px; padding:0 22px; }
.file{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px;
  padding:12px 14px; border-radius:var(--r); border:1px solid var(--line); background:var(--surface-2); }
.file .ext{ display:grid; place-items:center; width:44px; height:44px; border-radius:11px;
  background:#fff; border:1px solid var(--line); font-size:11px; font-weight:900; letter-spacing:.03em; color:var(--muted); }
.file .fn{ font-size:14.5px; font-weight:700; color:var(--text); word-break:break-all; }
.file .fi{ font-size:12.5px; color:var(--muted); margin-top:1px; }
.file.deliver{ background:var(--teal-50); border-color:var(--teal-100); }
.file.deliver .ext{ background:#fff; border-color:var(--teal-100); color:var(--teal-700); }
.divider{ border:none; border-top:1px solid var(--line-2); margin:20px 22px; }
.files-card{ padding-bottom:22px; }

/* accept panel */
.accept-panel{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  padding:20px 22px; border-radius:var(--r-lg); background:linear-gradient(135deg,var(--teal-50),var(--surface-2));
  border:1px solid var(--teal-100); box-shadow:var(--sh-card); }
.accept-panel .at{ font-size:15.5px; font-weight:800; color:var(--text); }
.accept-panel .at .tinytag{ font-size:11.5px; font-weight:700; color:var(--faint); }
.accept-panel .ad{ font-size:13.5px; color:var(--muted); margin-top:3px; max-width:42ch; }
.accept-panel .acts{ display:flex; gap:11px; flex-wrap:wrap; }

/* ===================== CHAT ===================== */
.chat{ display:flex; flex-direction:column; position:sticky; top:34px;
  height:calc(100vh - 68px); max-height:760px; overflow:hidden; }
.chat-h{ display:flex; align-items:center; gap:10px; padding:17px 20px; border-bottom:1px solid var(--line-2); }
.chat-h .ct{ font-size:15.5px; font-weight:800; }
.chat-h .count{ margin-left:auto; display:inline-grid; place-items:center; min-width:22px; height:22px;
  padding:0 7px; border-radius:var(--r-pill); background:var(--teal-50); color:var(--teal-700); font-size:12px; font-weight:800; }
.chat-body{ flex:1; overflow-y:auto; padding:18px 20px; display:flex; flex-direction:column; gap:14px; background:var(--surface-2); }
.daysep{ align-self:center; font-size:11.5px; font-weight:700; color:var(--faint);
  background:var(--surface); border:1px solid var(--line); padding:3px 12px; border-radius:var(--r-pill); margin:4px 0; }
.msg{ display:flex; flex-direction:column; gap:5px; max-width:88%; }
.msg.theirs{ align-self:flex-start; }
.msg.mine{ align-self:flex-end; }
.msg .who{ display:flex; align-items:center; gap:7px; font-size:11.5px; }
.msg.mine .who{ flex-direction:row-reverse; }
.msg .who .nm{ font-weight:800; color:var(--text); }
.msg .who .tm{ color:var(--faint); }
.role-badge{ font-size:10px; font-weight:800; letter-spacing:.02em; padding:2px 7px; border-radius:var(--r-pill); }
.rb-konw{ background:var(--teal-50); color:var(--teal-700); }
.rb-wyd{ background:var(--st-new-bg); color:var(--st-new); }
.rb-admin{ background:var(--clay-50); color:var(--clay); }
.bubble{ font-size:14px; line-height:1.5; padding:11px 14px; border-radius:15px; }
.msg.theirs .bubble{ background:#fff; border:1px solid var(--line); border-top-left-radius:5px; color:var(--text); }
.msg.mine .bubble{ background:var(--teal); color:#fff; border-top-right-radius:5px; }
.chat-empty{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; }
.chat-empty .big{ font-size:15.5px; font-weight:800; color:var(--text); }
.chat-empty .sm{ font-size:13.5px; color:var(--muted); }
.chat-compose{ border-top:1px solid var(--line-2); padding:14px 16px; background:var(--surface); }
.chat-compose textarea{ width:100%; border:1px solid var(--line); border-radius:var(--r); resize:none;
  font-family:var(--font); font-size:14px; color:var(--text); padding:11px 13px; outline:none; min-height:54px; }
.chat-compose textarea:focus{ border-color:var(--teal); box-shadow:0 0 0 3px var(--teal-50); }
.chat-compose .crow{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; }
.chat-compose .hint{ font-size:12px; color:var(--faint); }

/* ===================== MODAL + TOAST ===================== */
.modal-overlay{ position:fixed; inset:0; background:rgba(16,32,38,.5); backdrop-filter:blur(2px);
  display:none; align-items:center; justify-content:center; padding:24px; z-index:100; }
.modal-overlay.open{ display:flex; }
.modal{ background:var(--surface); border-radius:var(--r-xl); box-shadow:0 24px 70px rgba(16,32,38,.35);
  width:100%; max-width:520px; padding:28px 28px 24px; position:relative; }
.modal .m-close{ position:absolute; top:16px; right:16px; width:32px; height:32px; border:none; cursor:pointer;
  border-radius:var(--r-pill); background:var(--line-2); color:var(--muted); font-size:14px; }
.modal .m-close:hover{ background:var(--line); color:var(--text); }
.modal .m-icon{ margin-bottom:14px; }
.modal h3{ font-size:21px; font-weight:800; letter-spacing:-.015em; }
.modal .m-desc{ font-size:14px; color:var(--muted); margin-top:8px; line-height:1.55; }
.modal .m-field{ margin-top:18px; }
.modal .m-field label{ display:block; font-size:13px; font-weight:800; margin-bottom:7px; }
.modal .m-field textarea{ width:100%; border:1px solid var(--line); border-radius:var(--r); resize:vertical;
  font-family:var(--font); font-size:14px; color:var(--text); padding:12px 14px; outline:none; min-height:120px; }
.modal .m-field textarea:focus{ border-color:var(--clay); box-shadow:0 0 0 3px var(--clay-50); }
.modal .m-meta{ display:flex; justify-content:space-between; gap:12px; margin-top:8px; }
.modal .m-meta .hint{ font-size:12px; color:var(--faint); }
.modal .m-actions{ display:flex; justify-content:flex-end; gap:11px; margin-top:22px; }
.toast{ position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--navy); color:#fff; font-size:14px; font-weight:700; padding:13px 20px; border-radius:var(--r-pill);
  box-shadow:0 12px 34px rgba(16,32,38,.35); opacity:0; pointer-events:none; transition:.28s; z-index:120; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width:1080px){
  .detail-grid{ grid-template-columns:1fr; }
  .chat{ position:static; height:auto; max-height:640px; }
}

/* ===================== FORMS / PROFILE ===================== */
.form-wrap{ max-width:680px; }
.field2{ display:flex; flex-direction:column; gap:7px; }
.field2 + .field2, .field-row + .field2, .field2 + .field-row{ margin-top:18px; }
.field-row .field2 + .field2, .ctrl-grid .field2 + .field2{ margin-top:0; }
.field2 label{ font-size:13px; font-weight:800; color:var(--text); display:flex; align-items:center; gap:9px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.inp{ width:100%; font-family:var(--font); font-size:14.5px; font-weight:600; color:var(--text);
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:12px 14px; outline:none; transition:.14s; }
.inp::placeholder{ color:var(--faint); font-weight:500; }
.inp:focus{ border-color:var(--teal); box-shadow:0 0 0 3px var(--teal-50); }
.help{ font-size:12.5px; color:var(--muted); }
.field-error{ font-size:12.5px; color:#b33b31; font-weight:700; }
.verified{ font-size:11px; font-weight:800; color:var(--st-done); background:var(--st-done-bg);
  padding:2px 9px; border-radius:var(--r-pill); letter-spacing:.01em; }
.card-pad{ padding:8px 22px 20px; }
.card-foot{ display:flex; justify-content:flex-end; gap:11px; padding:18px 22px; margin-top:6px; border-top:1px solid var(--line-2); }

/* password card */
.pw-collapsed{ display:flex; align-items:center; justify-content:space-between; gap:18px; padding:6px 22px 22px; }
.pw-collapsed .dots{ font-size:22px; letter-spacing:3px; color:var(--text); line-height:1; }
.pw-fields{ display:none; }
.pw-open .pw-collapsed{ display:none; }
.pw-open .pw-fields{ display:block; padding:8px 22px 0; }

/* ===================== CREATE FORM ===================== */
.req{ color:var(--teal-600); font-weight:900; }
.opt{ color:var(--faint); font-weight:600; font-size:12px; }
.inp-wrap{ position:relative; }
.inp-wrap .inp{ padding-right:42px; }
.inp-wrap .inp-ico{ position:absolute; right:13px; top:50%; transform:translateY(-50%); width:18px; height:18px; stroke:var(--faint); fill:none; stroke-width:2; pointer-events:none; }
textarea.inp{ min-height:108px; resize:vertical; line-height:1.55; font-weight:500; }

/* tryb (mode) selectable tiles */
.tryb-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.tryb{ display:flex; align-items:flex-start; gap:12px; padding:15px 16px; cursor:pointer;
  border:1px solid var(--line); border-radius:var(--r); background:var(--surface); transition:.15s; }
.tryb:hover{ border-color:var(--teal); }
.tryb .rd{ width:20px; height:20px; border:2px solid var(--line); border-radius:50%; flex-shrink:0; margin-top:1px; position:relative; transition:.15s; }
.tryb.on{ border-color:var(--teal); background:var(--teal-50); box-shadow:0 0 0 1px var(--teal); }
.tryb.on .rd{ border-color:var(--teal); }
.tryb.on .rd::after{ content:''; position:absolute; inset:3px; border-radius:50%; background:var(--teal); }
.tryb .tt{ display:block; font-size:15.5px; font-weight:800; color:var(--text); }
.tryb .td{ font-size:12.5px; color:var(--muted); margin-top:3px; line-height:1.45; }

/* dropzone */
.dropzone{ position:relative; display:flex; flex-direction:column; align-items:center; gap:9px; text-align:center;
  padding:34px 24px; border:2px dashed var(--line); border-radius:var(--r-lg); background:var(--surface-2);
  cursor:pointer; transition:.16s; }
.dropzone:hover,.dropzone.drag-over{ border-color:var(--teal); background:var(--teal-50); }
.dropzone input[type="file"]{ position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.dropzone .dz-ico{ width:54px; height:54px; border-radius:15px; background:var(--teal-50); color:var(--teal-600); display:grid; place-items:center; }
.dropzone .dz-ico svg{ width:26px; height:26px; stroke:currentColor; fill:none; stroke-width:1.9; }
.dropzone .dz-t{ font-size:16px; font-weight:800; color:var(--text); }
.dropzone .dz-t b{ color:var(--teal-600); }
.dropzone .dz-d{ font-size:12.5px; color:var(--muted); }

/* uploaded file rows */
.up-head{ display:flex; align-items:center; gap:9px; font-size:13.5px; font-weight:800; color:var(--text); margin:18px 0 10px; }
.up-head .count{ display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px;
  border-radius:var(--r-pill); background:var(--teal-50); color:var(--teal-700); font-size:11.5px; font-weight:800; }
.up-list{ display:flex; flex-direction:column; gap:10px; }
.file .rm{ flex-shrink:0; width:34px; height:34px; border:1px solid var(--line); border-radius:11px;
  background:#fff; cursor:pointer; color:var(--faint); display:grid; place-items:center; font-size:14px; transition:.14s; }
.file .rm:hover{ border-color:var(--clay); color:var(--clay); background:var(--clay-50); }
.file .bar{ height:6px; border-radius:var(--r-pill); margin-top:8px; overflow:hidden; background:var(--line-2); }
.file .bar span{ display:block; height:100%; border-radius:var(--r-pill); background:var(--st-done); }

/* ===================== AUTH (login / register) ===================== */
.auth{ display:grid; grid-template-columns:1.04fr 1fr; min-height:100vh; }
.auth-brand{ position:relative; overflow:hidden; color:#fff; padding:46px 52px;
  display:flex; flex-direction:column;
  background:radial-gradient(125% 130% at 88% 8%, #1c8f84 0%, var(--navy) 56%); }
.auth-brand .logo{ display:flex; align-items:center; gap:11px; }
.auth-brand .logo img{ height:30px; width:auto; display:block; }
.auth-brand .logo .wordmark{ font-weight:800; font-size:21px; letter-spacing:-.01em; color:#fff; line-height:1; }
.auth-brand .logo .wordmark b{ color:var(--teal-100); }
.auth-brand .pitch{ margin-top:auto; }
.auth-brand .eyebrow{ color:var(--teal-100); }
.auth-brand h2{ font-size:31px; font-weight:800; letter-spacing:-.02em; line-height:1.16; max-width:16ch; margin-top:10px; }
.auth-brand .lede{ color:rgba(255,255,255,.82); margin-top:14px; max-width:42ch; font-size:15.5px; line-height:1.55; }
.auth-feats{ display:flex; flex-direction:column; gap:13px; margin-top:28px; }
.auth-feat{ display:flex; align-items:center; gap:12px; font-size:14.5px; font-weight:600; color:rgba(255,255,255,.92); }
.auth-feat .ck{ width:24px; height:24px; border-radius:var(--r-pill); background:rgba(255,255,255,.14); display:grid; place-items:center; flex-shrink:0; }
.auth-feat .ck svg{ width:13px; height:13px; stroke:var(--teal-100); fill:none; stroke-width:2.6; }
.auth-brand .deco{ position:absolute; right:-70px; top:-46px; width:300px; height:300px; opacity:.08; }
.auth-brand .deco img{ width:100%; height:100%; object-fit:contain; }

.auth-main{ display:grid; place-items:center; padding:40px; background:var(--bg); }
.auth-card{ width:100%; max-width:430px; }
.auth-card .logo-sm{ display:none; align-items:center; gap:10px; margin-bottom:26px; }
.auth-card .logo-sm img{ height:28px; }
.auth-card .logo-sm .wordmark{ font-weight:800; font-size:20px; color:var(--navy); }
.auth-card .logo-sm .wordmark b{ color:var(--teal); }
.auth-head{ margin-bottom:24px; }
.auth-head .h1{ font-size:26px; }
.auth-head .lead{ font-size:15px; margin-top:7px; }
.auth-form .field2 + .field2{ margin-top:16px; }
.auth-form .field-row .field2 + .field2{ margin-top:0; }
.auth-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }
.check{ display:inline-flex; align-items:center; gap:9px; font-size:13.5px; color:var(--muted); font-weight:600; cursor:pointer; user-select:none; }
.check input{ width:17px; height:17px; accent-color:var(--teal); }
.tlink{ color:var(--teal-600); font-weight:700; text-decoration:none; font-size:13.5px; }
.tlink:hover{ text-decoration:underline; }
.btn.full{ width:100%; justify-content:center; padding:13px 18px; font-size:15px; }
.auth-foot{ text-align:center; margin-top:22px; font-size:14px; color:var(--muted); }
.auth-sep{ display:flex; align-items:center; gap:14px; margin:22px 0; color:var(--faint); font-size:12.5px; font-weight:700; }
.auth-sep::before, .auth-sep::after{ content:''; flex:1; height:1px; background:var(--line); }
.legal{ font-size:12px; color:var(--faint); line-height:1.5; margin-top:18px; }
.legal a{ color:var(--muted); }

@media (max-width:880px){
  .auth{ grid-template-columns:1fr; }
  .auth-brand{ display:none; }
  .auth-card .logo-sm{ display:flex; }
}

/* solo centered auth (status / confirmation) */
.auth-solo{ min-height:100vh; display:grid; place-items:center; padding:40px; background:var(--bg); }
.auth-solo .auth-card{ text-align:center; }
.auth-solo .logo-sm{ display:inline-flex; justify-content:center; }
.status-ico{ width:64px; height:64px; border-radius:var(--r-xl); margin:0 auto 22px;
  display:grid; place-items:center; background:var(--teal-50); color:var(--teal-600); }
.status-ico svg{ width:30px; height:30px; stroke:currentColor; fill:none; stroke-width:1.9; }
.auth-solo .h1{ font-size:25px; }
.auth-solo .lead{ margin-top:9px; }
.auth-solo .lead b{ color:var(--text); font-weight:800; }

/* ===================== LIVE APP INTEGRATION ===================== */
.page-head{ margin-bottom:26px; }
.dashboard-actions{ margin-top:26px; }
.form-row-gap{ margin-top:18px; }
.form-card-gap,.profile-password{ margin-top:22px; }
.form-actions{ display:flex; justify-content:flex-end; gap:11px; margin-top:24px; }
.auth-submit{ margin-top:20px; }
.auth-status-head{ margin-bottom:0; }
.auth-card-wide{ max-width:540px; }
.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.alert{ padding:13px 16px; margin-bottom:18px; border-radius:var(--r); font-size:14px; font-weight:700; }
.alert-success{ color:var(--st-done); background:var(--st-done-bg); border:1px solid #bfe7cd; }
.alert-error{ color:#b33b31; background:#fff0ee; border:1px solid #f1c8c3; }
.list-empty{ margin-top:24px; }
.file-empty{ padding:0 22px; color:var(--muted); font-size:13.5px; }
.role-pill{ display:inline-block; margin-top:3px; font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--teal-100); background:rgba(13,148,136,.3); padding:2px 8px; border-radius:var(--r-pill); }
.me .who a{ display:block; }
.email-tag{ display:inline-flex; align-items:center; gap:5px; color:var(--teal-700); font-weight:800; }
.email-tag svg{ width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:2; }
.meta-tag{ display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:800;
  padding:2px 8px; border-radius:var(--r-pill); }
.meta-tag svg{ width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2.5; }
.tag-price{ color:var(--st-quote); background:var(--st-quote-bg); }
.tag-files{ color:var(--st-done); background:var(--st-done-bg); }
.job-line[hidden],.grp[hidden]{ display:none; }
.tryb{ position:relative; }
.tryb input{ position:absolute; opacity:0; pointer-events:none; }
.tryb:has(input:checked){ border-color:var(--teal); background:var(--teal-50); box-shadow:0 0 0 1px var(--teal); }
.tryb:has(input:checked) .rd{ border-color:var(--teal); }
.tryb:has(input:checked) .rd::after{ content:''; position:absolute; inset:3px; border-radius:50%; background:var(--teal); }
.deliverable-upload{ padding:20px 22px; border-radius:var(--r-lg); background:linear-gradient(135deg,var(--teal-50),var(--surface-2)); border:1px solid var(--teal-100); box-shadow:var(--sh-card); }
.deliverable-upload form{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:14px; }
.deliverable-upload .inp{ flex:1; min-width:220px; background:#fff; }
.admin-ctrl{ border:1px solid #d9daf5; border-radius:var(--r-lg); overflow:hidden; background:linear-gradient(135deg,#ecedfb,var(--surface)); box-shadow:0 8px 24px rgba(109,111,209,.10); }
.admin-ctrl .ac-head{ display:flex; align-items:center; gap:10px; padding:18px 22px 4px; }
.admin-ctrl .ac-t{ font-size:16px; font-weight:800; }
.admin-ctrl .ac-tag{ font-size:10.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:#5a5cc4; background:rgba(109,111,209,.16); padding:3px 9px; border-radius:var(--r-pill); }
.ac-body{ padding:12px 22px 18px; }
.ctrl-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sel{ width:100%; font-family:var(--font); font-size:14px; font-weight:700; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:12px 14px; outline:none; }
.sel:focus{ border-color:#7c7ee0; box-shadow:0 0 0 3px rgba(109,111,209,.16); }
.ac-foot{ display:flex; padding:13px 22px; border-top:1px solid rgba(109,111,209,.18); }
.ac-foot .note{ display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); font-weight:600; }
.ac-foot svg{ width:16px; height:16px; stroke:var(--teal-600); fill:none; stroke-width:2; }
.btn.violet{ background:#6d6fd1; color:#fff; box-shadow:0 2px 10px rgba(109,111,209,.32); }
.mobile-menu-btn{ display:none; }

@media (max-width:760px){
  .side{ position:fixed; left:-272px; z-index:40; transition:left .2s ease; box-shadow:var(--sh-2); }
  .side.open{ left:0; }
  .mobile-menu-btn{ display:grid; gap:4px; position:fixed; top:14px; right:14px; z-index:50; padding:11px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--sh-1); }
  .mobile-menu-btn span{ width:20px; height:2px; background:var(--navy); }
  .main{ padding:72px 18px 36px; }
  .qa-grid{ grid-template-columns:1fr; }
  .row-between{ align-items:flex-start; flex-direction:column; }
  .field-row,.tryb-grid,.ctrl-grid{ grid-template-columns:1fr; }
  .detail-head{ align-items:flex-start; }
  .job-line{ grid-template-columns:1fr auto; gap:10px; padding:14px 16px; }
  .job-line .due{ grid-column:1; }
  .job-line .go{ grid-column:2; grid-row:1 / span 2; }
  .file{ grid-template-columns:auto 1fr; }
  .file .btn{ grid-column:1 / -1; justify-content:center; }
  .chat{ max-height:560px; }
}
