/* ===================================================================
   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;
  --st-late:#d97742;   --st-late-bg:#fbeee5;
  --st-cancel:#b33b31; --st-cancel-bg:#fff0ee;

  /* 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; text-decoration:none;}
.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; }
.side .me a.av{ text-decoration:none; }
.side .me .who a.me-name{ text-decoration:none; display:block; margin-bottom:6px; }
.side .me a.av:hover,
.side .me .who a.me-name:hover{ opacity:.85; }
.side .me .who .logout-form{ margin-top:2px; }

/* main */
.main{ flex:1; min-width:0; padding:34px 44px 56px; }
.main-narrow{ width:100%; max-width:1280px; 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); }
.b-late{ --c:var(--st-late); --cb:var(--st-late-bg); }
.b-cancel{ --c:var(--st-cancel); --cb:var(--st-cancel-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; }

/* ===================== PUBLISHER ONBOARDING ===================== */
.publisher-onboarding{ margin-top:24px; padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-card); }
.publisher-onboarding-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line-2); padding-bottom:16px; }
.publisher-onboarding-kicker{ color:var(--teal-700); font-size:12px; font-weight:800; text-transform:uppercase; }
.publisher-onboarding h2{ margin:3px 0 4px; font-size:20px; }
.publisher-onboarding p{ margin:0; color:var(--muted); font-size:13px; }
.publisher-onboarding-dismiss{ display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:6px; background:transparent; color:var(--muted); cursor:pointer; }
.publisher-onboarding-dismiss:hover{ background:var(--surface-2); color:var(--text); }
.publisher-onboarding-dismiss svg{ width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:2; }
.publisher-onboarding-steps{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; margin:16px 0 0; padding:0; list-style:none; }
.publisher-onboarding-steps li{ display:grid; grid-template-columns:auto 1fr; align-items:start; gap:10px; min-width:0; padding:12px; border:1px solid var(--line-2); border-radius:6px; }
.publisher-onboarding-steps li.current{ border-color:var(--teal-200); background:var(--teal-50); }
.publisher-onboarding-mark{ display:grid; place-items:center; width:20px; height:20px; border:1px solid var(--line); border-radius:50%; color:var(--muted); }
.publisher-onboarding-steps .complete .publisher-onboarding-mark{ border-color:var(--teal); background:var(--teal); color:#fff; }
.publisher-onboarding-mark svg{ width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:2.5; }
.publisher-onboarding-copy{ min-width:0; }
.publisher-onboarding-copy strong,.publisher-onboarding-copy span{ display:block; }
.publisher-onboarding-copy strong{ font-size:13px; }
.publisher-onboarding-copy span{ margin-top:3px; color:var(--muted); font-size:12px; line-height:1.35; }
.publisher-onboarding-steps .btn{ grid-column:2; justify-self:start; margin-top:2px; }

/* ===================== 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); }
.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-line .ti{ display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; }
.unread-badge{ display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:800;
  line-height:1; padding:3px 8px; border-radius:var(--r-pill); background:var(--clay); color:#fff;
  vertical-align:middle; }
.unread-badge svg{ width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2.5; }
.has-unread .ti{ font-weight:800; }
.has-unread{ background:linear-gradient(90deg,rgba(217,119,66,.07),transparent 60%); }

.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); }
/* Kontakt page */
.kontakt-grid{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:20px; align-items:start; margin-top:26px; width:100%; }
.cat-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cat-grid .tt, .cat-grid .td{ display:block; }
.info-list{ display:flex; flex-direction:column; gap:6px; }
.info-item{ display:flex; gap:13px; align-items:flex-start; padding:13px 0; border-top:1px solid var(--line-2); }
.info-item:first-child{ border-top:none; padding-top:4px; }
.info-item .ii-ico{ width:40px; height:40px; flex-shrink:0; border-radius:12px; background:var(--teal-50); color:var(--teal-600); display:grid; place-items:center; }
.info-item .ii-ico svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.9; }
.info-item .ii-l{ font-size:11.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--faint); }
.info-item .ii-v{ font-size:15.5px; font-weight:800; color:var(--text); margin-top:2px; letter-spacing:-.01em; }
.info-item .ii-d{ font-size:12.5px; color:var(--muted); margin-top:1px; line-height:1.45; }
.faq-list{ display:flex; flex-direction:column; }
.faq-list a{ display:flex; align-items:center; justify-content:space-between; gap:12px; text-decoration:none;
  font-size:14px; font-weight:700; color:var(--text); padding:13px 0; border-top:1px solid var(--line-2); transition:.14s; }
.faq-list a:first-child{ border-top:none; }
.faq-list a:hover{ color:var(--teal-600); }
.faq-list a .go{ color:var(--faint); font-size:16px; }
.faq-list a:hover .go{ color:var(--teal-600); }

/* 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; }

/* collapsible "Pliki źródłowe" — deliverables stay visible, sources tuck away */
.src-details{ padding:0; }
.src-details summary{ cursor:pointer; font-size:13.5px; font-weight:800; color:var(--muted);
  padding:6px 22px 12px; list-style:none; display:flex; align-items:center; gap:7px; }
.src-details summary::-webkit-details-marker{ display:none; }
.src-details summary .chev{ transition:.18s; width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2.3; }
.src-details[open] summary .chev{ transform:rotate(90deg); }
.src-details .filelist{ padding-bottom:20px; }

/* 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; }

/* ===================== NEXT STEP PANEL (publisher) ===================== */
.compact-head{ display:flex; flex-direction:column; gap:16px; }
.ch-top{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.ch-title{ font-size:22px; font-weight:800; letter-spacing:-.015em; color:var(--text); line-height:1.2; }
.ch-meta{ display:flex; align-items:center; gap:11px; flex-wrap:wrap; margin-top:10px; font-size:13.5px; }
.ch-meta .mi{ color:var(--muted); font-weight:600; }
.ch-meta .mi b{ color:var(--text); font-weight:800; }
.ch-meta .sep{ color:var(--faint); }

.stepper{ display:flex; align-items:center; flex-wrap:wrap; gap:0; padding:14px 0 2px; }
.step .dot{ width:22px; height:22px; border-radius:50%; background:var(--line-2); color:var(--faint);
  display:grid; place-items:center; font-size:11px; font-weight:800; flex-shrink:0; }
.step .dot svg{ width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:3; }
.step.done .dot{ background:var(--st-done); color:#fff; }
.step.active .dot{ background:var(--teal); color:#fff; box-shadow:0 0 0 4px var(--teal-50); }
.step .lab{ font-size:12.5px; font-weight:700; color:var(--faint); white-space:nowrap; }
.step.active .lab, .step.done .lab{ color:var(--text); }
.step-sep{ width:26px; height:2px; background:var(--line); margin:0 7px; flex-shrink:0; }
.step-sep.done{ background:var(--st-done); }

/* Single-line "Krok X z Y — {label}" shown instead of the full stepper on
   narrow screens — the full stepper only becomes horizontally scrollable
   there, which is hard to read on a phone. */
.stepper-compact{ display:none; align-items:center; gap:10px; padding:12px 0 2px; font-size:13.5px; font-weight:700; color:var(--muted); }
.stepper-compact .dot{ width:26px; height:26px; border-radius:50%; background:var(--teal); color:#fff;
  display:grid; place-items:center; flex-shrink:0; font-size:12px; font-weight:800; }
.stepper-compact .dot svg{ width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:2.6; }
.stepper-compact b{ color:var(--text); }

.next-step{ border-radius:var(--r-xl); padding:26px 28px; display:flex; flex-direction:column; gap:16px;
  box-shadow:var(--sh-2); border:1px solid var(--line); }
.next-step.ns-new{ background:linear-gradient(135deg,var(--st-new-bg),var(--surface) 60%); border-color:#dde2e7; }
.next-step.ns-wait{ background:linear-gradient(135deg,var(--st-wait-bg),var(--surface) 60%); border-color:#d9daf7; }
.next-step.ns-quote{ background:linear-gradient(135deg,var(--st-quote-bg),var(--surface) 60%); border-color:#f2ddb0; }
.next-step.ns-prog{ background:linear-gradient(135deg,var(--st-prog-bg),var(--surface) 60%); border-color:#cfe0f5; }
.next-step.ns-ready{ background:linear-gradient(135deg,var(--teal-50),var(--surface) 60%); border-color:var(--teal-100); }
.next-step.ns-done{ background:linear-gradient(135deg,var(--st-done-bg),var(--surface) 60%); border-color:#c9ecd7; }
.next-step.ns-cancel{ background:var(--surface-2); border-color:var(--line); }
.next-step .ns-top{ display:flex; align-items:flex-start; gap:15px; }
.next-step .ns-ico{ width:48px; height:48px; border-radius:14px; background:#fff; display:grid; place-items:center;
  box-shadow:var(--sh-1); flex-shrink:0; color:var(--text); }
.next-step .ns-ico svg{ width:23px; height:23px; stroke:currentColor; fill:none; stroke-width:1.9; }
.next-step .ns-title{ font-size:19.5px; font-weight:800; letter-spacing:-.01em; }
.next-step .ns-desc{ font-size:14.5px; color:var(--muted); margin-top:5px; line-height:1.55; max-width:58ch; }
.next-step .ns-facts{ display:flex; gap:26px; flex-wrap:wrap; margin-top:2px; }
.next-step .ns-facts .f .l{ font-size:11px; color:var(--muted); font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.next-step .ns-facts .f .v{ font-size:18px; font-weight:800; margin-top:3px; }
.next-step .ns-actions{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.ns-noaction{ display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:700; color:var(--muted); }
.ns-noaction svg{ width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:2; }

/* ===================== 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); }
.mention-badge{ display:inline-flex; align-items:center; gap:3px; background:var(--clay); color:#fff; }
.mention-badge svg{ width:10px; height:10px; stroke:currentColor; fill:none; stroke-width:2.4; }
.bubble-flagged{ box-shadow:inset 3px 0 0 var(--clay); }
.msg.mine .bubble-flagged{ box-shadow:inset -3px 0 0 #fff6; }
.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); }
.notify-row{ display:flex; align-items:center; gap:9px; font-size:13px; color:var(--muted); font-weight:600;
  cursor:pointer; user-select:none; margin-top:8px; }
.notify-row input{ width:16px; height:16px; accent-color:var(--teal); }

/* ===================== 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{ width:100%; max-width:100%; margin-inline:auto; }
.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; }
.upload-progress{ margin:18px 0 6px; }
.upload-bar{ height:10px; background:var(--teal-50); border-radius:var(--r-pill); overflow:hidden; }
.upload-bar-fill{ height:100%; width:0; background:var(--teal); border-radius:var(--r-pill); transition:width .15s ease; }
.upload-progress-text{ margin-top:8px; font-size:13px; color:var(--muted); font-weight:600; }
/* Jak działa (peek + fade + Rozwiń/Zwiń) */
.howto-body{ position:relative; max-height:96px; overflow:hidden; transition:max-height .2s ease; }
.howto-body::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:60px;
  background:linear-gradient(to bottom, rgba(255,255,255,0), var(--surface)); pointer-events:none; transition:opacity .2s; }
.howto-cb:checked ~ .howto-body{ max-height:1600px; }
.howto-cb:checked ~ .howto-body::after{ opacity:0; }
.howto-btn{ margin-top:14px; }
.howto-less{ display:none; }
.howto-cb:checked ~ .howto-btn .howto-more{ display:none; }
.howto-cb:checked ~ .howto-btn .howto-less{ display:inline; }

/* Co nowego (dashboard card) */
.whatsnew .h2{ display:flex; align-items:center; gap:9px; }
.whatsnew .h2 svg{ width:19px; height:19px; stroke:var(--teal-600); fill:none; stroke-width:2; }
.wn-item{ display:grid; grid-template-columns:auto 1fr auto; gap:16px; align-items:start;
  padding:13px 8px; border-top:1px solid var(--line-2); text-decoration:none; color:inherit; transition:.14s; }
.wn-item:first-child{ border-top:none; }
.wn-item:hover{ background:var(--surface-2); }
.wn-date{ font-size:12.5px; font-weight:700; color:var(--faint); white-space:nowrap; padding-top:2px; }
.wn-title{ display:block; font-size:15px; font-weight:800; color:var(--text); }
.wn-ex{ display:block; font-size:13px; color:var(--muted); margin-top:2px; }
.wn-item .go{ color:var(--faint); font-size:18px; }
.wn-item:hover .go{ color:var(--teal-600); }

/* Aktualności page */
.cl-date{ font-size:12.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--teal-600); }
.cl-title{ font-size:20px; font-weight:800; letter-spacing:-.01em; color:var(--text); margin:6px 0 12px; }
.cl-body{ color:var(--text); font-size:14.5px; line-height:1.62; }
.cl-body p{ margin:0 0 10px; }
.cl-body ul, .cl-body ol{ margin:0 0 10px 22px; }
.cl-body li{ margin:3px 0; }
.cl-body h2, .cl-body h3{ margin:16px 0 8px; font-weight:800; }
.cl-body a{ color:var(--teal-600); font-weight:700; text-decoration:none; }
.cl-body a:hover{ text-decoration:underline; }

/* Pomoc / FAQ */
.help-wrap{ max-width:760px; margin:0 auto; }
.help-search{ display:flex; align-items:center; gap:12px; margin-top:24px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-pill);
  padding:15px 20px; box-shadow:var(--sh-1); }
.help-search svg{ width:20px; height:20px; stroke:var(--faint); fill:none; stroke-width:2; flex-shrink:0; }
.help-search input{ flex:1; border:none; outline:none; background:none; font-family:inherit;
  font-size:15.5px; color:var(--text); }
.help-search input::placeholder{ color:var(--faint); }
.help-search:focus-within{ border-color:var(--teal); box-shadow:0 0 0 3px var(--teal-50); }
.help-search .k{ font-size:12px; font-weight:800; color:var(--muted); background:var(--surface-2);
  border:1px solid var(--line); border-radius:7px; padding:3px 9px; }
.faq-head{ font-size:13px; font-weight:800; letter-spacing:.04em; text-transform:uppercase;
  color:var(--faint); margin:30px 4px 12px; }
.faq{ overflow:hidden; }
.faq-item{ border-top:1px solid var(--line-2); }
.faq-item:first-child{ border-top:none; }
.faq-q{ display:flex; align-items:center; justify-content:space-between; gap:16px; cursor:pointer;
  padding:18px 22px; list-style:none; transition:.14s; }
.faq-q::-webkit-details-marker{ display:none; }
.faq-q:hover{ background:var(--surface-2); }
.faq-q .qt{ font-size:16px; font-weight:800; letter-spacing:-.01em; color:var(--text); }
.faq-q .pm{ width:28px; height:28px; flex-shrink:0; border-radius:var(--r-pill);
  background:var(--surface-2); color:var(--muted); display:grid; place-items:center; transition:.16s; }
.faq-q .pm svg{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2.4; transition:transform .18s; }
details[open] .faq-q .pm{ background:var(--teal); color:#fff; }
details[open] .faq-q .pm svg{ transform:rotate(180deg); }
.faq-a{ font-size:14.5px; color:var(--muted); line-height:1.6; padding:0 56px 20px 22px; }
.faq-a a{ color:var(--teal-600); font-weight:700; text-decoration:none; }
.faq-a a:hover{ text-decoration:underline; }
.faq-item.is-hidden{ display:none; }
.faq-empty{ padding:22px; color:var(--muted); font-size:14px; }
.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; }
.consent{ display:flex; align-items:flex-start; gap:9px; margin:18px 0 4px; font-size:13.5px; color:var(--muted); line-height:1.45; cursor:pointer; }
.consent input{ margin-top:2px; flex:0 0 auto; }
.consent .tlink{ font-size:inherit; }
.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; }
.alert-warning{ color:#8a5b00; background:#fff7df; border:1px solid #ecd79f; }
.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; }
.logout-form{ display:block; margin:0; padding:0; }
.logout-btn{ background:none; border:none; padding:0; cursor:pointer; font:inherit; font-size:12px; color:rgba(255,255,255,.55); text-decoration:none; 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; }

/* ===================== AUDIT TIMELINE ===================== */
.audit-timeline{ padding:0 22px 8px; }
.audit-entry{ display:flex; gap:14px; padding:13px 0; border-bottom:1px solid var(--line-2); align-items:flex-start; }
.audit-entry:last-child{ border-bottom:none; }
.audit-ico{ width:32px; height:32px; border-radius:10px; background:var(--surface-2); border:1px solid var(--line); display:grid; place-items:center; flex-shrink:0; color:var(--muted); }
.audit-ico svg{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; }
.audit-text{ font-size:13.5px; font-weight:600; color:var(--text); line-height:1.45; }
.audit-meta{ font-size:11.5px; color:var(--faint); margin-top:3px; }
.audit-entry.audit-hidden{ display:none; }
.audit-toggle{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:700;
  color:var(--teal-600); cursor:pointer; margin:8px 22px 4px; background:none; border:none; padding:0; }
.audit-toggle svg{ width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:2.4; transition:.18s; }
.audit-toggle.open svg{ transform:rotate(180deg); }

/* ===================== ADMIN PUBLISHER TABLE ===================== */
.pub-table{ width:100%; border-collapse:collapse; }
.pub-table thead th{ padding:11px 18px; text-align:left; font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--faint); border-bottom:1px solid var(--line); white-space:nowrap; }
.pub-table tbody tr{ border-bottom:1px solid var(--line-2); transition:.12s; }
.pub-table tbody tr:last-child{ border-bottom:none; }
.pub-table tbody tr:hover{ background:var(--surface-2); }
.pub-table td{ padding:14px 18px; font-size:14px; color:var(--text); vertical-align:middle; }
.pub-name{ font-weight:700; }
.pub-meta{ font-size:12.5px; color:var(--muted); margin-top:2px; }
.pub-nip{ display:inline-block; font-size:11.5px; font-weight:700; color:var(--muted); background:var(--surface-2); border:1px solid var(--line-2); padding:2px 8px; border-radius:var(--r-pill); margin-top:3px; }
.stat-val{ font-size:15px; font-weight:800; }
.stat-zero{ color:var(--faint); font-weight:600; }
.stat-active{ color:var(--st-prog); }
.stat-done{ color:var(--st-done); }
.stat-revenue{ color:var(--text); }
.pub-table-wrap{ overflow-x:auto; }

/* ===================== FILE METHOD TOGGLE ===================== */
.method-tabs{ display:flex; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-pill); padding:3px; gap:3px; }
.method-tab{ flex:1; font-family:var(--font); font-size:13.5px; font-weight:700; color:var(--muted); border:none; background:none; padding:9px 16px; border-radius:var(--r-pill); cursor:pointer; transition:.14s; text-align:center; }
.method-tab.active{ background:var(--surface); color:var(--text); box-shadow:var(--sh-1); }
.method-panel{ display:none; }
.method-panel.active{ display:block; }
.link-input-row{ display:grid; grid-template-columns:180px 1fr; gap:10px; align-items:start; }
.link-input-row .field2 + .field2{ margin-top:0; }
.file.file-link{ background:var(--surface-2); }
.file.file-link .ext{ color:var(--teal-700); font-size:8px; letter-spacing:.01em; }
.file.file-link .ext svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; }
.file.file-link .fn{ word-break:break-all; }

.storage-kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin-top:20px; }
.storage-kpi-value{ font-size:22px!important; }
.storage-capacity{ height:8px; margin-top:12px; overflow:hidden; border-radius:4px; background:var(--line-2); }
.storage-capacity-fill{ height:100%; border-radius:4px; background:var(--teal); }
.storage-alert{ margin-top:16px; }
.storage-section{ margin-top:20px; }
.storage-columns{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:20px; align-items:start; }
.storage-breakdown{ padding:4px 22px 20px; }
.storage-breakdown-row + .storage-breakdown-row{ margin-top:16px; }
.storage-breakdown-label{ display:flex; justify-content:space-between; gap:16px; font-size:13px; }
.storage-breakdown-label span{ color:var(--muted); }
.storage-mini-bar,.storage-publisher-bar{ height:6px; overflow:hidden; border-radius:3px; background:var(--line-2); }
.storage-mini-bar{ margin-top:7px; }
.storage-mini-bar span,.storage-publisher-bar span{ display:block; height:100%; border-radius:3px; }
.storage-publisher-bar span{ background:var(--teal); }
.storage-actions{ padding:0 22px 20px; }
.storage-actions form{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 0; }
.storage-actions form + form{ border-top:1px solid var(--line-2); }
.storage-actions form > div{ min-width:0; }
.storage-actions form strong,.storage-actions form span{ display:block; }
.storage-actions form span{ margin-top:2px; font-size:12px; color:var(--muted); line-height:1.35; }
.storage-actions .storage-cleanup-form{ align-items:flex-end; }
.storage-confirm{ display:flex; align-items:flex-start; gap:8px; cursor:pointer; }
.storage-confirm input{ margin-top:3px; }
.storage-confirm span{ color:var(--text)!important; }
.storage-result-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:1px; background:var(--line-2); border-top:1px solid var(--line-2); }
.storage-result-grid > div{ padding:18px 22px; background:var(--surface); }
.storage-result-grid strong,.storage-result-grid span{ display:block; }
.storage-result-grid strong{ font-size:20px; }
.storage-result-grid span,.storage-run-time,.storage-publisher-email{ color:var(--muted); font-size:12px; }
.storage-result-errors{ margin:16px 22px 20px; }
.storage-publisher-link{ color:var(--text); font-weight:700; text-decoration:none; }
.storage-publisher-link:hover{ color:var(--teal-700); }
.storage-publisher-bar{ width:140px; margin-top:6px; }
.storage-file-filters{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:0 22px 18px; }
.storage-file-filters input[type="text"]{ flex:1; min-width:220px; }
.storage-file-filters select{ width:auto; }

/* ===================== PUBLISHER CONVERSIONS ===================== */
.publisher-list-head{ gap:24px; }
.publisher-list-actions{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.publisher-empty-state,.publisher-no-results{ padding:48px 24px; text-align:center; }
.empty-state-icon,.no-results-icon{ width:52px; height:52px; margin:0 auto 16px; border-radius:8px; background:var(--teal-50); color:var(--teal-600); display:grid; place-items:center; }
.empty-state-icon svg,.no-results-icon svg{ width:24px; height:24px; }
.empty-state-title,.no-results-title{ font-size:18px; font-weight:800; }
.empty-state-copy,.no-results-copy{ max-width:540px; margin:7px auto 0; color:var(--muted); line-height:1.55; }

/* ===================== ACCESS DENIED ===================== */
.forbidden-state{ min-height:calc(100vh - 150px); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:48px 24px; }
.forbidden-icon{ width:56px; height:56px; display:grid; place-items:center; color:var(--teal-700); background:var(--teal-50); border:1px solid var(--teal-100); border-radius:8px; }
.forbidden-icon svg{ width:27px; height:27px; }
.forbidden-code{ margin:20px 0 0; color:var(--faint); font-size:12px; font-weight:800; letter-spacing:.04em; }
.forbidden-state h1{ margin:5px 0 0; font-size:24px; line-height:1.25; }
.forbidden-copy{ max-width:420px; margin:8px 0 0; color:var(--muted); line-height:1.55; }
.forbidden-actions{ display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:24px; }
.forbidden-actions .btn{ display:inline-flex; align-items:center; gap:7px; }
.forbidden-actions .btn svg{ width:16px; height:16px; }
@media (max-width:640px){ .forbidden-state{ min-height:calc(100vh - 112px); padding:36px 18px; } .forbidden-actions{ width:100%; flex-direction:column; } .forbidden-actions .btn{ justify-content:center; width:100%; } }
.publisher-empty-actions{ display:flex; justify-content:center; gap:10px; margin-top:22px; }

.publisher-summary{ display:flex; flex-wrap:wrap; gap:8px; margin:20px 0 14px; }
.publisher-summary-pill{ display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:6px 11px; border:1px solid var(--line); border-radius:var(--r-pill); background:var(--surface); color:var(--muted); font:600 13px/1.2 var(--font); letter-spacing:0; cursor:pointer; transition:border-color .14s,color .14s,background .14s; }
.publisher-summary-pill strong{ color:var(--text); font-size:14px; }
.publisher-summary-pill svg{ width:15px; height:15px; }
.publisher-summary-pill:hover,.publisher-summary-pill.on{ border-color:var(--teal); color:var(--teal-700); background:var(--teal-50); }
.publisher-summary-pill.attention strong{ color:var(--st-quote); }
.publisher-summary-pill.unread strong{ color:var(--teal-700); }
.publisher-summary-pill:focus-visible{ outline:3px solid var(--teal-100); outline-offset:2px; }

.publisher-order-tools{ display:grid; grid-template-columns:minmax(260px,1fr) auto auto; gap:12px; align-items:center; margin-bottom:24px; }
.publisher-order-search{ min-width:0; }
.publisher-order-filters{ flex-wrap:nowrap; }
.publisher-order-filters .chip{ white-space:nowrap; font-family:var(--font); letter-spacing:0; }
.publisher-order-filters .chip:focus-visible{ outline:3px solid var(--teal-100); outline-offset:2px; }
.publisher-order-sort{ min-height:42px; padding:0 36px 0 12px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); color:var(--text); font:700 13px/1.2 var(--font); letter-spacing:0; cursor:pointer; }
.publisher-order-sort:focus-visible{ outline:3px solid var(--teal-100); border-color:var(--teal); }

.publisher-order-group{ margin-top:24px; }
.publisher-order-group-head{ display:flex; align-items:center; gap:8px; margin:0 0 9px 3px; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:0; text-transform:uppercase; }
.publisher-order-group-head .grp-count{ display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 7px; border-radius:var(--r-pill); background:var(--surface-2); color:var(--muted); font-size:12px; }
.publisher-order-group.attention .publisher-order-group-head{ color:var(--st-quote); }
.publisher-order-group.attention .publisher-order-group-head .grp-count{ color:var(--st-quote); background:var(--st-quote-bg); }
.publisher-order-list{ overflow:hidden; }
.publisher-order-row{ --order-status-color:var(--st-new); position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,.62fr) minmax(160px,auto) 48px; gap:18px; align-items:center; min-height:86px; padding:16px 18px; border-bottom:1px solid var(--line-2); color:var(--text); text-decoration:none; transition:background .14s,box-shadow .14s; }
.publisher-order-row[hidden]{ display:none; }
.publisher-order-row:last-child{ border-bottom:none; }
.publisher-order-row::before{ content:''; position:absolute; inset:0 auto 0 0; width:3px; background:var(--order-status-color); opacity:0; transition:opacity .14s; }
.publisher-order-row:hover{ background:var(--surface-2); }
.publisher-order-row:hover::before,.publisher-order-row:focus-visible::before{ opacity:1; }
.publisher-order-row:focus-visible{ z-index:1; outline:3px solid var(--teal-100); outline-offset:-3px; }
.publisher-order-row.status-new{ --order-status-color:var(--st-new); }
.publisher-order-row.status-quote{ --order-status-color:var(--st-quote); }
.publisher-order-row.status-wait{ --order-status-color:var(--st-wait); }
.publisher-order-row.status-progress{ --order-status-color:var(--st-prog); }
.publisher-order-row.status-ready{ --order-status-color:var(--st-accept); }
.publisher-order-row.status-done{ --order-status-color:var(--st-done); }
.publisher-order-row.status-cancelled{ --order-status-color:var(--st-cancel); }
.publisher-order-row.cancelled{ opacity:.76; }
.publisher-order-primary,.publisher-order-context{ min-width:0; }
.publisher-order-primary,.publisher-order-context{ display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.publisher-order-title{ max-width:100%; overflow:hidden; color:var(--text); font-size:15px; font-weight:800; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.publisher-order-meta{ display:flex; flex-wrap:wrap; gap:4px; color:var(--faint); font-size:12px; line-height:1.45; }
.publisher-order-meta .sep{ color:var(--line); }
.publisher-order-status{ display:flex; align-items:flex-start; gap:8px; color:var(--muted); font-size:13px; font-weight:700; line-height:1.35; }
.publisher-order-status-dot{ width:8px; height:8px; margin-top:5px; border-radius:50%; background:var(--order-status-color); flex-shrink:0; }
.publisher-order-context{ color:var(--muted); font-size:12px; line-height:1.35; }
.publisher-order-context strong{ color:var(--text); font-size:13px; }
.publisher-order-context.soon strong{ color:var(--st-quote); }
.publisher-order-context.overdue strong{ color:var(--st-cancel); }
.publisher-order-action{ margin-top:2px; pointer-events:none; }
.publisher-order-unread{ display:flex; justify-content:flex-end; }
.o-unread{ display:inline-flex; align-items:center; gap:5px; min-width:30px; height:28px; justify-content:center; padding:0 8px; border-radius:var(--r-pill); background:var(--teal-50); color:var(--teal-700); font-size:12px; font-weight:800; }
.o-unread svg{ width:14px; height:14px; }
.publisher-order-more{ display:flex; justify-content:center; padding:11px 0 0; }
.publisher-order-more button{ font-family:var(--font); letter-spacing:0; }
.publisher-order-more button[hidden]{ display:none; }
.publisher-order-group:not(.expanded):not(.filtering) .publisher-order-row.history-row{ display:none; }
.publisher-no-results{ margin-top:24px; }

@media (max-width:1100px){
  .publisher-order-tools{ grid-template-columns:1fr auto; }
  .publisher-order-filters{ grid-column:1 / -1; grid-row:2; overflow-x:auto; padding:2px 2px 5px; }
  .publisher-order-row{ grid-template-columns:minmax(0,1fr) minmax(180px,.7fr) minmax(150px,auto) 44px; gap:13px; }
}

@media (max-width:820px){
  .publisher-order-row{ grid-template-columns:minmax(0,1fr) auto; gap:9px 16px; padding:15px 16px; }
  .publisher-order-primary{ grid-column:1; grid-row:1; }
  .publisher-order-unread{ grid-column:2; grid-row:1; align-self:start; }
  .publisher-order-status{ grid-column:1 / -1; grid-row:2; }
  .publisher-order-context{ grid-column:1 / -1; grid-row:3; display:flex; flex-direction:row; align-items:center; flex-wrap:wrap; gap:6px 10px; padding-top:3px; }
  .publisher-order-action{ margin:0 0 0 auto; }
}

@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; }
  .publisher-onboarding-steps{ grid-template-columns:1fr; }
  .row-between{ align-items:flex-start; flex-direction:column; }
  .field-row,.tryb-grid,.ctrl-grid,.link-input-row,.kontakt-grid,.cat-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; }
  .storage-columns{ grid-template-columns:1fr; }
  .storage-actions form{ align-items:flex-start; flex-direction:column; }
  .storage-actions form .btn{ width:100%; justify-content:center; }
  .ch-top{ flex-direction:column; align-items:flex-start; }
  .publisher-list-actions{ width:100%; }
  .publisher-list-actions .btn{ flex:1; justify-content:center; }
  .publisher-order-tools{ grid-template-columns:1fr; gap:10px; }
  .publisher-order-tools > label:last-child{ grid-row:2; }
  .publisher-order-sort{ width:100%; }
  .publisher-order-filters{ grid-column:1; grid-row:3; margin:0 -2px; }
  .publisher-summary{ margin-top:18px; }
  /* A 5-step (or 4-step) stepper has no room on a phone — swap the full
     stepper for a single-line "Krok X z Y" summary instead of letting it
     scroll horizontally. */
  .stepper{ display:none; }
  .stepper-compact{ display:flex; }
  .next-step .ns-actions .btn{ width:100%; justify-content:center; }
}

@media (max-width:480px){
  .publisher-list-actions,.publisher-empty-actions{ flex-direction:column; }
  .publisher-list-actions .btn,.publisher-empty-actions .btn{ width:100%; justify-content:center; }
  .publisher-summary{ display:grid; grid-template-columns:1fr 1fr; }
  .publisher-summary-pill{ justify-content:center; }
  .publisher-summary-pill.unread{ grid-column:1 / -1; }
  .publisher-order-row{ gap:9px 10px; }
  .publisher-order-title{ white-space:normal; overflow-wrap:anywhere; }
  .publisher-order-meta{ gap:3px; }
  .publisher-order-context{ align-items:flex-start; flex-direction:column; }
  .publisher-order-action{ width:100%; margin:4px 0 0; justify-content:center; }
}
