/* ============================================================================
   StoreForge design system — "Quiet Indigo"
   Modern SaaS design language: neutral surfaces, indigo/violet accent,
   light + dark mode, token-driven colour / type / space / radius / motion.
   Type: Inter (UI) + Poppins (display) + Hind Siliguri (বাংলা)
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root{
  color-scheme:light;

  /* surfaces — neutral gray */
  --bg:#F5F6F8;
  --surface:#FFFFFF;
  --surface-2:#FAFAFB;
  --surface-3:#EFF1F4;
  --line:#E5E7EB;
  --line-2:#D3D7DE;
  --overlay:rgba(17,24,39,.45);

  /* ink */
  --text:#111827;
  --text-2:#374151;
  --muted:#6B7280;
  --faint:#9CA3AF;

  /* brand — indigo */
  --brand:#4F46E5;
  --brand-hover:#4338CA;
  --brand-active:#3730A3;
  --brand-soft:#EEF2FF;
  --brand-softer:#F7F8FF;
  --brand-line:#C7D2FE;
  --brand-ink:#3730A3;
  --brand-btn:#4F46E5;
  --brand-btn-hover:#4338CA;

  /* accent — violet (used sparingly) */
  --accent:#7C3AED;
  --accent-soft:#F5F3FF;
  --accent-line:#DDD6FE;
  --accent-ink:#5B21B6;

  /* status */
  --ok:#0F7B4F;   --ok-soft:#E9F7F0;   --ok-line:#B7E4CD;   --ok-ink:#0B5C3B;
  --warn:#9A5B06; --warn-soft:#FFF6E8; --warn-line:#F7D9A4;  --warn-ink:#7A4705;
  --err:#C53030;  --err-soft:#FDEEEE;  --err-line:#F5C2C2;   --err-ink:#9B2222;
  --ok-solid:#0F7B4F; --warn-solid:#9A5B06; --err-solid:#C53030; --err-solid-hover:#9B2222;

  /* frosted surfaces (topbar / headers) */
  --blur-bg:rgba(255,255,255,.88);
  --blur-bg-96:rgba(255,255,255,.96);
  --info:var(--brand);

  /* shape — 10–14px */
  --r-xs:6px; --r-sm:10px; --r-md:12px; --r-lg:14px; --r-xl:14px; --r-pill:999px;

  /* elevation — minimal */
  --sh-xs:0 1px 2px rgba(17,24,39,.05);
  --sh-sm:0 1px 2px rgba(17,24,39,.06);
  --sh-md:0 4px 14px rgba(17,24,39,.07);
  --sh-lg:0 18px 44px rgba(17,24,39,.12);
  --ring:0 0 0 3px rgba(79,70,229,.24);

  /* type */
  --font:'Inter','Hind Siliguri',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --display:'Poppins','Hind Siliguri',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;
  --fs-xs:12px; --fs-sm:13px; --fs-md:14px; --fs-lg:15px;

  /* motion */
  --t-fast:120ms cubic-bezier(.2,0,.2,1);
  --t-base:180ms cubic-bezier(.2,0,.2,1);
  --t-slow:260ms cubic-bezier(.2,0,.2,1);

  /* layout */
  --sidebar:254px;
  --topbar:64px;
  --shell:1440px;
  --wrap:1180px;
  --pad:24px;
  --gap:18px;
}

/* ── 1b. Dark theme ────────────────────────────────────────────────────── */
:root[data-theme="dark"]{
  color-scheme:dark;

  --bg:#0B0D12;
  --surface:#11141B;
  --surface-2:#151922;
  --surface-3:#1B202A;
  --line:#242A35;
  --line-2:#333A47;
  --overlay:rgba(0,0,0,.6);

  --text:#E8EAF0;
  --text-2:#C4C9D4;
  --muted:#8E96A8;
  --faint:#6C7486;

  --brand:#818CF8;
  --brand-hover:#A5B4FC;
  --brand-active:#6366F1;
  --brand-soft:#1A1E3C;
  --brand-softer:#14172E;
  --brand-line:#333B6B;
  --brand-ink:#A5B4FC;
  --brand-btn:#4F46E5;
  --brand-btn-hover:#6366F1;

  --accent:#A78BFA;
  --accent-soft:#1E1A38;
  --accent-line:#403566;
  --accent-ink:#C4B5FD;

  --ok:#34D399;   --ok-soft:#0F2A21;   --ok-line:#1E4E3D;   --ok-ink:#6EE7B7;
  --warn:#FBBF24; --warn-soft:#2B2110; --warn-line:#57411A;  --warn-ink:#FCD34D;
  --err:#F87171;  --err-soft:#2C1618;  --err-line:#5B2A2C;   --err-ink:#FCA5A5;
  --ok-solid:#15803D; --warn-solid:#A16207; --err-solid:#B91C1C; --err-solid-hover:#DC2626;

  --blur-bg:rgba(17,20,27,.88);
  --blur-bg-96:rgba(17,20,27,.96);

  --sh-xs:0 1px 2px rgba(0,0,0,.4);
  --sh-sm:0 1px 2px rgba(0,0,0,.45);
  --sh-md:0 4px 14px rgba(0,0,0,.5);
  --sh-lg:0 18px 44px rgba(0,0,0,.6);
  --ring:0 0 0 3px rgba(99,102,241,.35);
}

/* ── 2. Reset ──────────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body,h1,h2,h3,h4,h5,h6,p,ul,ol,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
img,svg,video{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
hr{border:none;border-top:1px solid var(--line);margin:20px 0}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-variant-ligatures:none;
}
h1,h2,h3,h4,h5{font-family:var(--display);line-height:1.25;letter-spacing:-.015em;color:var(--text);font-weight:600}
h1{font-size:30px}
h2{font-size:24px}
h3{font-size:18px}
h4{font-size:16px}
p{margin:0 0 1em}
p:last-child{margin-bottom:0}
::selection{background:var(--brand-line);color:var(--text)}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.muted{color:var(--muted)}
.faint{color:var(--faint)}
.small{font-size:13px}
.tiny{font-size:12px}
.center{text-align:center}
.nowrap{white-space:nowrap}
.num{font-variant-numeric:tabular-nums}
.mono{font-family:var(--mono);font-size:13px;letter-spacing:-.01em}
.clip{overflow-wrap:anywhere}
.bold{font-weight:600}
.stack-sm>*+*{margin-top:6px}
.stack>*+*{margin-top:14px}
.stack-lg>*+*{margin-top:26px}
.row{display:flex;align-items:center;gap:10px}
.row-wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.spacer{flex:1 1 auto}
.hide{display:none !important}

/* ── 3. Layout ─────────────────────────────────────────────────────────── */
.container{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}
.container-narrow{width:100%;max-width:760px;margin:0 auto;padding:0 var(--pad)}
.section{padding:76px 0}
.section-sm{padding:48px 0}
.page{padding:28px 0 64px}

/* ── 4. Buttons ────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:9px 16px;border-radius:var(--r-sm);
  border:1px solid var(--line-2);background:var(--surface);color:var(--text-2);
  font-weight:600;font-size:14px;line-height:1.35;
  cursor:pointer;white-space:nowrap;text-decoration:none;
  transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,transform .06s ease,color .14s ease;
}
.btn:hover{background:var(--surface-2);border-color:var(--line-2);color:var(--text);text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--brand-btn);border-color:var(--brand-btn);color:#fff;box-shadow:var(--sh-xs)}
.btn-primary:hover{background:var(--brand-btn-hover);border-color:var(--brand-btn-hover);color:#fff}
.btn-primary:active{background:var(--brand-active);border-color:var(--brand-active)}
.btn-soft{background:var(--brand-soft);border-color:var(--brand-line);color:var(--brand)}
.btn-soft:hover{background:var(--brand-soft);border-color:var(--brand-line);color:var(--brand-ink)}
.btn-ghost{background:transparent;border-color:transparent;color:var(--muted)}
.btn-ghost:hover{background:var(--surface-3);border-color:transparent;color:var(--text)}
.btn-danger{background:var(--err-solid);border-color:var(--err-solid);color:#fff}
.btn-danger:hover{background:var(--err-solid-hover);border-color:var(--err-solid-hover);color:#fff}
.btn-danger-ghost{background:transparent;border-color:var(--err-line);color:var(--err)}
.btn-danger-ghost:hover{background:var(--err-soft);border-color:var(--err-line);color:var(--err)}
.btn-lg{padding:13px 24px;font-size:15px;border-radius:var(--r-md)}
.btn-sm{padding:6px 11px;font-size:13px;border-radius:var(--r-xs)}
.btn-xs{padding:4px 9px;font-size:12px;border-radius:var(--r-xs)}
.btn-icon{padding:8px;width:36px;height:36px;border-radius:var(--r-sm)}
.btn-icon.btn-sm{width:30px;height:30px;padding:6px}
.btn-block{width:100%}
.btn[disabled],.btn[aria-disabled=true]{opacity:.55;pointer-events:none}
.btn .spinner{width:14px;height:14px}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.actions-end{justify-content:flex-end}
.inline-form{display:inline}

.spinner{
  width:16px;height:16px;border-radius:50%;
  border:2px solid rgba(255,255,255,.4);border-top-color:#fff;
  animation:spin .7s linear infinite;flex:none;
}
.spinner-dark{border-color:rgba(129,140,248,.3);border-top-color:var(--brand)}
@keyframes spin{to{transform:rotate(360deg)}}

/* Spinner runs beside the label, so the button keeps saying what it is doing. */
.btn.is-loading{pointer-events:none}
.btn.is-loading::before{
  content:"";display:inline-block;width:13px;height:13px;margin-right:8px;vertical-align:-2px;
  border:2px solid currentColor;border-right-color:transparent;border-radius:50%;
  opacity:.7;animation:spin .7s linear infinite;
}

/* ── 5. Forms ──────────────────────────────────────────────────────────── */
label,.label{display:block;font-weight:600;font-size:13px;color:var(--text-2);margin:0 0 6px}
label .req,.label .req{color:var(--err);font-weight:600}
.hint{font-size:12.5px;color:var(--muted);margin:6px 0 0}

input[type=text],input[type=email],input[type=password],input[type=number],
input[type=search],input[type=tel],input[type=url],input[type=date],input[type=time],
input[type=datetime-local],input[type=month],select,textarea{
  width:100%;padding:9px 12px;
  background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r-sm);
  color:var(--text);font-size:14px;line-height:1.5;
  transition:border-color .14s ease,box-shadow .14s ease,background .14s ease;
}
input::placeholder,textarea::placeholder{color:var(--faint)}
input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled){border-color:var(--line-2)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:var(--ring);background:var(--surface)}
input:disabled,select:disabled,textarea:disabled{background:var(--surface-3);color:var(--faint);cursor:not-allowed}
textarea{min-height:110px;resize:vertical}
select{
  appearance:none;padding-right:34px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366748C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 11px center;
}
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true],
.input-error{border-color:var(--err) !important;box-shadow:0 0 0 3px var(--err-soft) !important}
.help,.field-error{font-size:12.5px;color:var(--muted);margin:-8px 0 14px}
.field-error{color:var(--err);font-weight:500;margin:6px 0 0}
.field{margin-bottom:18px}
.field:last-child{margin-bottom:0}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.form-actions{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;
  padding-top:18px;margin-top:22px;border-top:1px solid var(--line);
}
.form-actions .spacer{flex:1 1 auto}
.form-card-hint{font-size:13px;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-sm);padding:11px 13px}

.check{display:flex;gap:9px;align-items:flex-start;font-size:14px;color:var(--text-2);cursor:pointer;margin-bottom:12px}
.check input{margin-top:3px;accent-color:var(--brand);width:16px;height:16px;flex:none;cursor:pointer}
.check span{flex:1}
.check .hint{margin-top:2px}

/* search + filter controls */
.input-icon{position:relative;display:block}
.input-icon input{padding-left:36px}
.input-icon>svg,.input-icon>.ic{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--faint);pointer-events:none}
.input-action{position:relative;display:flex}
.input-action input{padding-right:74px}
.input-action .btn{position:absolute;right:5px;top:50%;transform:translateY(-50%);padding:5px 10px;font-size:12.5px}

.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:18px}
.filters input,.filters select{margin:0;min-width:150px;width:auto}
.filters .input-icon{min-width:230px;flex:1 1 230px;max-width:340px}
.filters .input-icon input{width:100%}
.filter-chip{
  display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:var(--r-pill);
  background:var(--surface);border:1px solid var(--line-2);color:var(--muted);
  font-size:13px;font-weight:600;cursor:pointer;
}
.filter-chip:hover{border-color:var(--line-2);color:var(--text);text-decoration:none;background:var(--surface-2)}
.filter-chip.on{background:var(--brand-soft);border-color:var(--brand-line);color:var(--brand)}

/* ── 6. Surfaces & cards ───────────────────────────────────────────────── */
.card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:22px;
  box-shadow:var(--sh-xs);
}
.card-flush{padding:0;overflow:hidden}
.card-pad{padding:20px}
.card-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-bottom:16px;
}
.card-head h3,.card-head h2{margin:0}
.card-head .sub{color:var(--muted);font-size:13.5px;margin-top:3px}
.card-title{display:flex;align-items:center;gap:9px}
.card-foot{
  display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;
  padding:14px 22px;background:var(--surface-2);border-top:1px solid var(--line);
}
.card-quiet{background:var(--surface-2);border-color:var(--line)}
.card-accent{background:linear-gradient(150deg,var(--brand-softer),var(--surface));border-color:var(--brand-line)}

.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.grid-6{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.dash-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px;margin-bottom:18px}
.split{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}
.split-wide{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:22px;align-items:start}

/* ── 7. Badges, tags, pills ────────────────────────────────────────────── */
.badge{
  display:inline-flex;align-items:center;gap:5px;
  padding:3px 9px;border-radius:var(--r-pill);
  font-size:12px;font-weight:600;line-height:1.5;
  border:1px solid transparent;white-space:nowrap;
}
.badge-neutral{background:var(--surface-3);color:var(--muted);border-color:var(--line-2)}
.badge-ok{background:var(--ok-soft);color:var(--ok);border-color:var(--ok-line)}
.badge-warn{background:var(--warn-soft);color:var(--warn);border-color:var(--warn-line)}
.badge-err{background:var(--err-soft);color:var(--err);border-color:var(--err-line)}
.badge-info{background:var(--brand-soft);color:var(--brand);border-color:var(--brand-line)}
.badge-accent{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}
.badge-lg{padding:5px 12px;font-size:13px}
.dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}

.eyebrow{
  display:inline-flex;align-items:center;gap:7px;
  font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--brand);background:var(--brand-soft);
  border:1px solid var(--brand-line);
  padding:5px 13px;border-radius:var(--r-pill);margin:0 0 16px;
}
.eyebrow-accent{color:var(--accent);background:var(--accent-soft);border-color:var(--accent-line)}

.tag{
  display:inline-flex;align-items:center;padding:3px 9px;border-radius:var(--r-xs);
  background:var(--surface-3);color:var(--muted);font-size:12px;font-weight:600;
}

/* ── 8. Alerts / flash / toasts ────────────────────────────────────────── */
.flash{
  display:flex;gap:11px;align-items:flex-start;
  padding:13px 16px;border-radius:var(--r-md);
  font-size:14px;border:1px solid;margin-bottom:16px;box-shadow:var(--sh-xs);
}
.flash strong{display:block;font-weight:600;margin-bottom:1px}
.flash p{margin:0;color:inherit;opacity:.9}
.flash::before{content:"";width:18px;height:18px;flex:none;margin-top:1px;background:no-repeat center/contain}
.flash-ok{background:var(--ok-soft);border-color:var(--ok-line);color:var(--ok-ink)}
.flash-ok::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A56' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E")}
.flash-err{background:var(--err-soft);border-color:var(--err-line);color:var(--err-ink)}
.flash-err::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C92A21' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E")}
.flash-warn{background:var(--warn-soft);border-color:var(--warn-line);color:var(--warn-ink)}
.flash-warn::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A65708' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E")}
.flash-info{background:var(--brand-soft);border-color:var(--brand-line);color:var(--brand-ink)}
.flash-info::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155EEF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E")}

.alert{padding:14px 16px;border-radius:var(--r-md);font-size:14px;border:1px solid}
.alert h4{margin-bottom:4px;font-size:14.5px}
.alert-ok{background:var(--ok-soft);border-color:var(--ok-line);color:var(--ok-ink)}
.alert-warn{background:var(--warn-soft);border-color:var(--warn-line);color:var(--warn-ink)}
.alert-err{background:var(--err-soft);border-color:var(--err-line);color:var(--err-ink)}
.alert-info{background:var(--brand-soft);border-color:var(--brand-line);color:var(--brand-ink)}

.toast-stack{position:fixed;right:20px;bottom:20px;z-index:120;display:grid;gap:10px;max-width:min(380px,calc(100vw - 40px))}
.toast{
  display:flex;gap:10px;align-items:flex-start;
  background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--brand);
  border-radius:var(--r-md);padding:13px 15px;box-shadow:var(--sh-lg);font-size:14px;
  animation:toast-in .22s ease both;
}
.toast-ok{border-left-color:var(--ok)}
.toast-err{border-left-color:var(--err)}
.toast-warn{border-left-color:var(--warn)}
.toast strong{display:block;font-weight:600}
.toast p{margin:2px 0 0;color:var(--muted);font-size:13px}
@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ── 9. Tables ─────────────────────────────────────────────────────────── */
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-size:14px}
caption{caption-side:top;text-align:left;font-size:13px;color:var(--muted);padding-bottom:10px}
th,td{text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
thead th{
  background:var(--surface-2);color:var(--muted);
  font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  white-space:nowrap;border-bottom:1px solid var(--line);
}
thead th:first-child{border-top-left-radius:var(--r-sm)}
thead th:last-child{border-top-right-radius:var(--r-sm)}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover{background:var(--surface-2)}
tbody tr.is-clickable{cursor:pointer}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
th.sortable a{display:inline-flex;align-items:center;gap:5px;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit}
th.sortable a:hover{color:var(--text);text-decoration:none}
.cell-main{font-weight:600;color:var(--text)}
.cell-sub{display:block;font-size:12.5px;color:var(--muted);font-weight:400;margin-top:2px}
.cell-with-thumb{display:flex;align-items:center;gap:11px;min-width:0}
.thumb{
  width:38px;height:38px;border-radius:var(--r-sm);flex:none;
  background:var(--surface-3);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--faint);font-size:11px;font-weight:700;overflow:hidden;
}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb-lg{width:52px;height:52px;font-size:14px}
.row-actions{display:flex;gap:6px;justify-content:flex-end}
.table-empty td{padding:0}
.pagination{
  display:flex;gap:6px;align-items:center;justify-content:space-between;
  flex-wrap:wrap;padding-top:16px;
}
.pager{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.pager a,.pager span{
  min-width:34px;height:34px;padding:0 10px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line-2);border-radius:var(--r-sm);
  background:var(--surface);color:var(--text-2);font-size:13.5px;font-weight:600;
}
.pager a:hover{background:var(--surface-2);text-decoration:none;border-color:var(--line-2)}
.pager .on{background:var(--brand-btn);border-color:var(--brand-btn);color:#fff}
.pager .disabled{color:var(--faint);background:var(--surface-2);pointer-events:none}
.pager-info{font-size:13px;color:var(--muted)}

/* ── 10. Page header / breadcrumbs ─────────────────────────────────────── */
.breadcrumb{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-bottom:12px}
.breadcrumb a{color:var(--muted);font-weight:500}
.breadcrumb a:hover{color:var(--brand)}
.breadcrumb li{display:flex;gap:7px;align-items:center}
.breadcrumb li+li::before{content:"/";color:var(--faint)}
.breadcrumb .current{color:var(--text-2);font-weight:600}

.page-head{
  display:flex;gap:18px;align-items:flex-start;justify-content:space-between;
  flex-wrap:wrap;margin-bottom:24px;
}
.page-head h1{margin:0;font-size:26px}
.page-head .sub{color:var(--muted);font-size:14.5px;margin-top:6px;max-width:64ch}
.page-head .actions{flex:none}
.page-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.section-head h2,.section-head h3{margin:0}
.section-head .sub{color:var(--muted);font-size:13.5px;margin-top:4px}
.divider{height:1px;background:var(--line);margin:22px 0;border:none}

/* ── 11. KPI / stat cards ──────────────────────────────────────────────── */
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));gap:16px}
.kpi{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:17px 18px;box-shadow:var(--sh-xs);position:relative;overflow:hidden;
}
.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.kpi-label{font-size:12.5px;font-weight:600;color:var(--muted);letter-spacing:.02em}
.kpi-ic{
  width:32px;height:32px;border-radius:var(--r-sm);flex:none;
  display:flex;align-items:center;justify-content:center;
  background:var(--brand-soft);color:var(--brand);border:1px solid var(--brand-line);
}
.kpi-ic svg{width:16px;height:16px}
.kpi-ic.ok{background:var(--ok-soft);color:var(--ok);border-color:var(--ok-line)}
.kpi-ic.warn{background:var(--warn-soft);color:var(--warn);border-color:var(--warn-line)}
.kpi-ic.err{background:var(--err-soft);color:var(--err);border-color:var(--err-line)}
.kpi-ic.accent{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}
.kpi-value{font-size:27px;font-weight:700;letter-spacing:-.03em;line-height:1.15;font-variant-numeric:tabular-nums}
.kpi-foot{display:flex;align-items:center;gap:7px;margin-top:7px;font-size:12.5px;color:var(--muted)}
.trend{display:inline-flex;align-items:center;gap:3px;font-weight:600;font-size:12.5px}
.trend-up{color:var(--ok)}
.trend-down{color:var(--err)}
.trend-flat{color:var(--muted)}

.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px}
.stat .n{font-size:26px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat .l{color:var(--muted);font-size:12.5px;font-weight:600;margin-top:3px}
.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;text-align:center}
.mini-stats{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:12px;font-size:13px;color:var(--muted)}
.mini-stats b{color:var(--text);font-weight:600}
.warn-text{color:var(--warn)}

/* ── 12. Charts ────────────────────────────────────────────────────────── */
.chart-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;box-shadow:var(--sh-xs)}
.chart-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);margin-top:12px}
.chart-legend span{display:inline-flex;align-items:center;gap:6px}
.chart-legend i{width:9px;height:9px;border-radius:3px;display:inline-block}
.chart-summary{font-size:13.5px;color:var(--muted);margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.chart-summary b{color:var(--text);font-weight:600}

.bars{display:flex;align-items:flex-end;gap:8px;height:172px;padding-top:8px;min-width:0;overflow:hidden}
.bar-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px;height:100%}
.bar{
  width:100%;max-width:38px;border-radius:6px 6px 3px 3px;
  background:linear-gradient(180deg,var(--brand-btn-hover),var(--brand-btn));
  min-height:4px;position:relative;transition:filter .14s ease;
}
.bar.alt{background:linear-gradient(180deg,#8B5CF6,var(--accent))}
.bar:hover{filter:brightness(1.08)}
.bar-label{font-size:11.5px;color:var(--faint);font-weight:600;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.bar-val{font-size:11px;color:var(--muted);font-weight:700;font-variant-numeric:tabular-nums;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.spark{width:100%;height:56px;display:block}
.area-line{fill:none;stroke:var(--brand);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.area-fill{fill:url(#sfGrad);opacity:.5}
.grid-line{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
.axis-text{font-size:10.5px;fill:var(--faint);font-family:var(--font)}

.progress{height:8px;border-radius:var(--r-pill);background:var(--surface-3);overflow:hidden;width:100%}
.progress>span{display:block;height:100%;border-radius:var(--r-pill);background:var(--brand);transition:width .3s ease}
.progress.ok>span{background:var(--ok)}
.progress.warn>span{background:var(--warn)}
.progress.err>span{background:var(--err)}
.progress.accent>span{background:var(--accent)}

.meter-row{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center;margin-bottom:14px}
.meter-row:last-child{margin-bottom:0}
.meter-row .m-label{font-size:13.5px;color:var(--text-2);font-weight:500}
.meter-row .m-val{font-size:13px;color:var(--muted);font-weight:600;font-variant-numeric:tabular-nums}
.meter-row .progress{grid-column:1/-1}

/* ── 13. App shell ─────────────────────────────────────────────────────── */
.shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}

.sidebar{
  background:var(--surface);border-right:1px solid var(--line);
  display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh;overflow-y:auto;z-index:60;
}
.sb-brand{
  display:flex;align-items:center;gap:11px;
  height:var(--topbar);padding:0 18px;flex:none;
  border-bottom:1px solid var(--line);
}
.logo{
  width:34px;height:34px;border-radius:9px;flex:none;
  background:linear-gradient(145deg,var(--brand-btn),var(--brand-btn-hover));
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-family:var(--display);font-weight:700;font-size:16px;letter-spacing:-.03em;
  box-shadow:0 3px 8px rgba(79,70,229,.35);
}
.logo-mark{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
.logo-mark:hover{text-decoration:none}
.logo-name{font-family:var(--display);font-weight:600;font-size:16.5px;letter-spacing:-.02em}
.logo-sub{display:block;font-size:10.5px;color:var(--faint);font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-top:-2px}
.logo-sm{width:28px;height:28px;border-radius:8px;font-size:13px}

.sb-nav{padding:14px 12px 24px;flex:1}
.sb-group{margin-bottom:20px}
.sb-group-title{
  font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--faint);padding:0 12px;margin-bottom:7px;
}
.sb-link{
  display:flex;align-items:center;gap:11px;
  padding:8px 12px;border-radius:var(--r-sm);
  color:var(--text-2);font-size:14px;font-weight:500;
  text-decoration:none;transition:background .12s ease,color .12s ease;
}
.sb-link svg{width:17px;height:17px;flex:none;color:var(--muted);transition:color .12s ease}
.sb-link:hover{background:var(--surface-3);color:var(--text);text-decoration:none}
.sb-link:hover svg{color:var(--text-2)}
.sb-link.on{background:var(--brand-soft);color:var(--brand);font-weight:600}
.sb-link.on svg{color:var(--brand)}
.sb-link .count{
  margin-left:auto;font-size:11.5px;font-weight:700;
  background:var(--surface-3);color:var(--muted);
  border-radius:var(--r-pill);padding:1px 7px;min-width:20px;text-align:center;
}
.sb-link.on .count{background:var(--brand-soft);color:var(--brand-ink)}
.sb-link .count.alert{background:var(--err-soft);color:var(--err)}
.sb-foot{padding:14px 16px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}
.sb-foot a{color:var(--muted)}

.main{display:flex;flex-direction:column;min-width:0;background:var(--bg)}

.topbar{
  height:var(--topbar);flex:none;
  background:var(--blur-bg);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  display:flex;align-items:center;gap:14px;
  padding:0 var(--pad);position:sticky;top:0;z-index:55;
}
.tb-search{flex:1 1 auto;max-width:420px;position:relative}
.tb-search input{padding:8px 12px 8px 36px;background:var(--surface-3);border-color:transparent;font-size:14px}
.tb-search input:hover{border-color:var(--line-2)}
.tb-search input:focus{background:var(--surface);border-color:var(--brand)}
.tb-search>svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--faint);pointer-events:none}
.tb-right{display:flex;align-items:center;gap:8px;margin-left:auto}
.tb-divider{width:1px;height:24px;background:var(--line);margin:0 3px}
.menu-btn{display:none}
.store-switch{
  display:flex;align-items:center;gap:9px;padding:5px 10px 5px 6px;
  border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);
  font-size:13.5px;font-weight:600;color:var(--text-2);text-decoration:none;
}
.store-switch:hover{background:var(--surface-2);text-decoration:none;color:var(--text)}
.store-switch .logo-sm{width:24px;height:24px;border-radius:6px;font-size:11px}
.store-switch svg{width:14px;height:14px;color:var(--faint)}

.content{padding:26px var(--pad) 64px;flex:1;width:100%;max-width:var(--shell);margin:0 auto}
.content-full{max-width:none}

/* mobile drawer (CSS-only, no JS required) */
.sb-toggle{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.sb-overlay{display:none}
.sb-close{display:none}

/* ── 14. Dropdown / details menus ──────────────────────────────────────── */
.dd{position:relative;display:inline-block}
.dd>summary{
  list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:7px;
  padding:7px 11px;border:1px solid var(--line);border-radius:var(--r-sm);
  background:var(--surface);font-size:13.5px;font-weight:600;color:var(--text-2);
  transition:background .12s ease;
}
.dd>summary::-webkit-details-marker{display:none}
.dd>summary::marker{content:""}
.dd>summary:hover{background:var(--surface-2);color:var(--text)}
.dd>summary .caret{width:14px;height:14px;color:var(--faint);transition:transform .16s ease}
.dd[open]>summary .caret{transform:rotate(180deg)}
.dd-panel{
  position:absolute;right:0;top:calc(100% + 7px);z-index:80;
  min-width:222px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-md);
  box-shadow:var(--sh-lg);padding:6px;
  animation:dd-in .14s ease both;
}
.dd-panel.left{right:auto;left:0}
.dd-panel.wide{min-width:300px}
@keyframes dd-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.dd-title{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);padding:8px 10px 6px}
.dd-item{
  display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  padding:8px 10px;border-radius:var(--r-xs);border:none;background:none;
  color:var(--text-2);font-size:13.5px;font-weight:500;cursor:pointer;text-decoration:none;
}
.dd-item:hover{background:var(--surface-3);color:var(--text);text-decoration:none}
.dd-item.on{background:var(--brand-soft);color:var(--brand);font-weight:600}
.dd-item.danger{color:var(--err)}
.dd-item.danger:hover{background:var(--err-soft)}
.dd-item svg{width:15px;height:15px;color:var(--muted);flex:none}
.dd-item .count{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--muted)}
.dd-sep{height:1px;background:var(--line);margin:5px 0}
.dd-foot{padding:7px 10px;border-top:1px solid var(--line);margin-top:5px}

.notif{position:relative}
.notif .dot-badge{
  position:absolute;top:4px;right:5px;width:8px;height:8px;border-radius:50%;
  background:var(--err);border:1.5px solid var(--surface);
}
.notif-item{display:flex;gap:10px;padding:10px;border-radius:var(--r-sm);text-decoration:none;color:inherit}
.notif-item:hover{background:var(--surface-3);text-decoration:none}
.notif-item .ni-ic{
  width:30px;height:30px;border-radius:50%;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:var(--brand-soft);color:var(--brand);border:1px solid var(--brand-line);
}
.notif-item .ni-ic svg{width:14px;height:14px}
.notif-item .ni-body{min-width:0}
.notif-item .ni-title{font-size:13.5px;font-weight:600;color:var(--text)}
.notif-item .ni-text{font-size:12.5px;color:var(--muted);margin-top:1px}
.notif-item .ni-time{font-size:11.5px;color:var(--faint);margin-top:3px}
.notif-item.unread{background:var(--brand-softer)}

.avatar{
  width:32px;height:32px;border-radius:50%;flex:none;
  background:linear-gradient(140deg,var(--brand-btn-hover),var(--brand-active));
  color:#fff;font-size:12.5px;font-weight:700;
  display:flex;align-items:center;justify-content:center;letter-spacing:.02em;
}
.avatar-lg{width:44px;height:44px;font-size:16px}
.avatar-sm{width:26px;height:26px;font-size:11px}
.avatar-row{display:flex;align-items:center;gap:9px;padding:7px 10px;border-radius:var(--r-sm)}
.avatar-row .who{min-width:0}
.avatar-row .who b{display:block;font-size:13.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.avatar-row .who span{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ── 15. Tabs ──────────────────────────────────────────────────────────── */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow-x:auto;scrollbar-width:thin}
.tab{
  padding:10px 15px;border-bottom:2px solid transparent;margin-bottom:-1px;
  color:var(--muted);font-size:14px;font-weight:600;white-space:nowrap;
  text-decoration:none;display:inline-flex;align-items:center;gap:7px;
}
.tab:hover{color:var(--text);text-decoration:none}
.tab.on{color:var(--brand);border-bottom-color:var(--brand)}
.tab .count{font-size:11.5px;background:var(--surface-3);color:var(--muted);border-radius:var(--r-pill);padding:1px 7px;font-weight:700}
.tab.on .count{background:var(--brand-soft);color:var(--brand)}

.seg{display:inline-flex;background:var(--surface-3);border:1px solid var(--line);border-radius:var(--r-sm);padding:3px;gap:2px}
.seg button,.seg a{
  padding:5px 13px;border-radius:6px;border:none;background:none;
  font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;text-decoration:none;
}
.seg button:hover,.seg a:hover{color:var(--text)}
.seg .on{background:var(--surface);color:var(--text);box-shadow:var(--sh-xs)}

/* ── 16. Modal (no-JS) ─────────────────────────────────────────────────── */
.modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:20px}
.modal>summary{display:none}
.modal::backdrop{background:var(--overlay)}
.modal-panel{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);box-shadow:var(--sh-lg);
  width:100%;max-width:520px;max-height:calc(100vh - 40px);overflow-y:auto;
  animation:modal-in .18s ease both;
}
@keyframes modal-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
.modal-head{padding:20px 22px 0}
.modal-head h3{margin:0 0 5px}
.modal-head p{color:var(--muted);font-size:14px;margin:0}
.modal-body{padding:18px 22px}
.modal-foot{
  display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;
  padding:16px 22px;background:var(--surface-2);border-top:1px solid var(--line);
  border-radius:0 0 var(--r-lg) var(--r-lg);
}
.modal-danger .modal-head h3{color:var(--err)}
details.modal[open]{display:flex}
details.modal:not([open]){display:none}
details.modal::before{
  content:"";position:fixed;inset:0;background:var(--overlay);z-index:-1;
}

/* ── 17. Tooltip ───────────────────────────────────────────────────────── */
.tip{position:relative;display:inline-flex}
.tip::after{
  content:attr(data-tip);
  position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%) translateY(4px);
  background:var(--text);color:var(--surface);font-size:12px;font-weight:500;line-height:1.4;
  padding:6px 9px;border-radius:6px;white-space:nowrap;max-width:240px;
  opacity:0;pointer-events:none;transition:opacity .14s ease,transform .14s ease;z-index:150;
}
.tip:hover::after,.tip:focus-visible::after{opacity:1;transform:translateX(-50%) translateY(0)}
.tip.tip-wrap::after{white-space:normal;width:220px}

.info-dot{
  width:15px;height:15px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  border:1.5px solid var(--line-2);color:var(--faint);font-size:10px;font-weight:700;
  cursor:help;vertical-align:middle;flex:none;
}
.info-dot:hover{border-color:var(--brand);color:var(--brand)}

/* ── 18. Empty / loading / skeleton ────────────────────────────────────── */
.empty{
  padding:44px 24px;text-align:center;color:var(--muted);
  display:flex;flex-direction:column;align-items:center;gap:8px;
}
.empty-ic{
  width:56px;height:56px;border-radius:50%;
  background:var(--surface-3);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--faint);
  margin-bottom:6px;
}
.empty-ic svg{width:26px;height:26px}
.empty h3{font-size:17px;margin:0;color:var(--text)}
.empty p{max-width:44ch;font-size:14px;margin:0}
.empty .actions{margin-top:12px}

.skeleton{
  background:linear-gradient(90deg,var(--surface-3) 25%,var(--surface-2) 37%,var(--surface-3) 63%);
  background-size:400% 100%;animation:shimmer 1.3s ease infinite;
  border-radius:var(--r-xs);
}
@keyframes shimmer{0%{background-position:100% 50%}100%{background-position:0 50%}}
.sk-line{height:12px;margin-bottom:9px}
.sk-line.w40{width:40%}.sk-line.w60{width:60%}.sk-line.w80{width:80%}
.sk-title{height:20px;width:34%;margin-bottom:16px}
.sk-card{height:96px;border-radius:var(--r-lg)}
.sk-row{height:44px;border-radius:var(--r-sm);margin-bottom:9px}

.spinner-page{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;padding:70px 20px;color:var(--muted);font-size:14px;
}

/* ── 19. Stepper / wizard / checklist ──────────────────────────────────── */
.stepper{display:flex;gap:0;margin-bottom:30px;counter-reset:step;overflow-x:auto;padding-bottom:4px}
.step{
  flex:1;min-width:150px;position:relative;
  display:flex;flex-direction:column;gap:9px;padding-right:16px;
}
.step::after{
  content:"";position:absolute;top:15px;left:38px;right:8px;height:2px;
  background:var(--line);border-radius:2px;
}
.step:last-child{flex:0 0 auto;min-width:auto}
.step:last-child::after{display:none}
.step-n{
  width:30px;height:30px;border-radius:50%;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface);border:2px solid var(--line-2);
  color:var(--muted);font-size:13px;font-weight:700;
  position:relative;z-index:1;transition:.16s;
}
.step-n svg{width:15px;height:15px}
.step-label{font-size:13.5px;font-weight:600;color:var(--muted)}
.step-sub{font-size:12px;color:var(--faint);margin-top:-6px}
.step.done .step-n{background:var(--ok-solid);border-color:var(--ok-solid);color:#fff}
.step.done .step-label{color:var(--text-2)}
.step.done::after{background:var(--ok)}
.step.on .step-n{background:var(--brand-btn);border-color:var(--brand-btn);color:#fff;box-shadow:0 0 0 4px var(--brand-soft)}
.step.on .step-label{color:var(--brand)}
.step.on .step-sub{color:var(--muted)}

.checklist{display:grid;gap:10px}
.check-item{
  display:flex;gap:13px;align-items:flex-start;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);padding:15px 17px;
  transition:border-color .14s ease,box-shadow .14s ease;
}
.check-item:hover{border-color:var(--line-2);box-shadow:var(--sh-sm)}
.check-mark{
  width:24px;height:24px;border-radius:50%;flex:none;margin-top:1px;
  border:2px solid var(--line-2);background:var(--surface);
  display:flex;align-items:center;justify-content:center;color:var(--faint);
}
.check-mark svg{width:13px;height:13px}
.check-item.done .check-mark{background:var(--ok-solid);border-color:var(--ok-solid);color:#fff}
.check-item.done .ci-title{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}
.ci-body{flex:1;min-width:0}
.ci-title{font-size:14.5px;font-weight:600;color:var(--text);margin-bottom:2px}
.ci-desc{font-size:13.5px;color:var(--muted)}
.ci-cta{flex:none;align-self:center}
.check-item.done .ci-cta{display:none}

/* ── 20. Auth ──────────────────────────────────────────────────────────── */
.auth{display:grid;grid-template-columns:1fr;min-height:100vh;background:var(--surface)}
.auth-side{display:none}
.auth-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px 56px;background:var(--bg)}
.auth-card{width:100%;max-width:440px}
.auth-head{text-align:center;margin-bottom:26px}
.auth-head .logo{margin:0 auto 16px;width:46px;height:46px;border-radius:13px;font-size:21px}
.auth-head h1{font-size:25px;margin-bottom:7px}
.auth-head p{color:var(--muted);font-size:14.5px;margin:0}
.auth-card .card{padding:28px}
.auth-alt{text-align:center;font-size:14px;color:var(--muted);margin-top:20px}
.auth-legal{font-size:12.5px;color:var(--faint);text-align:center;margin-top:22px;line-height:1.6}
.auth-brand{
  display:flex;align-items:center;gap:11px;justify-content:center;margin-bottom:24px;
}
.divider-or{display:flex;align-items:center;gap:14px;margin:20px 0;color:var(--faint);font-size:12.5px;font-weight:600}
.divider-or::before,.divider-or::after{content:"";flex:1;height:1px;background:var(--line)}

/* ── 21. Marketing ─────────────────────────────────────────────────────── */
.site-header{
  position:sticky;top:0;z-index:70;
  background:var(--blur-bg);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.site-header .container{display:flex;align-items:center;gap:22px;height:70px}
.site-nav{display:flex;gap:4px;align-items:center;flex:1}
.site-nav a{
  padding:8px 13px;border-radius:var(--r-sm);
  color:var(--text-2);font-size:14.5px;font-weight:500;text-decoration:none;
}
.site-nav a:hover{background:var(--surface-3);color:var(--text);text-decoration:none}
.site-nav a.on{color:var(--brand);font-weight:600;background:var(--brand-soft)}
.site-cta{display:flex;gap:9px;align-items:center}
.nav-toggle{display:none}

.hero{
  position:relative;overflow:hidden;
  padding:82px 0 64px;text-align:center;
  background:
    radial-gradient(1000px 420px at 50% -8%,rgba(79,70,229,.10),transparent 70%),
    radial-gradient(700px 320px at 88% 12%,rgba(242,98,31,.09),transparent 68%),
    var(--surface);
  border-bottom:1px solid var(--line);
}
.hero::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(700px 340px at 50% 0,#000,transparent 75%);
  mask-image:radial-gradient(700px 340px at 50% 0,#000,transparent 75%);
  opacity:.5;
}
.hero>*{position:relative;z-index:1}
.hero h1{
  font-size:clamp(32px,5.2vw,54px);line-height:1.12;letter-spacing:-.03em;
  max-width:900px;margin:0 auto 20px;font-weight:600;
}
.hero h1 em{font-style:normal;color:var(--brand);position:relative;white-space:nowrap}
.hero h1 em::after{
  content:"";position:absolute;left:0;right:0;bottom:.07em;height:.28em;
  background:var(--accent-soft);border-radius:4px;z-index:-1;
}
.lede{font-size:clamp(16px,2vw,19px);color:var(--muted);max-width:660px;margin:0 auto 28px;line-height:1.65}
.hero-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.hero-note{color:var(--faint);font-size:13.5px;margin-top:16px}
.hero-host{
  display:inline-block;font-family:var(--mono);font-size:.92em;
  background:var(--surface-3);border:1px solid var(--line);
  border-radius:6px;padding:1px 7px;color:var(--brand);
}
.hero-badges{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:22px}

.trust-strip{
  background:var(--surface);border-bottom:1px solid var(--line);
  padding:26px 0;
}
.trust-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:20px;text-align:center}
.trust-item b{display:block;font-size:26px;font-weight:700;letter-spacing:-.02em;color:var(--text);font-variant-numeric:tabular-nums}
.trust-item span{font-size:13px;color:var(--muted)}

.section-title{font-size:clamp(25px,3.4vw,36px);max-width:760px;margin:0 0 14px;letter-spacing:-.025em}
.section-lede{color:var(--muted);max-width:640px;font-size:16.5px;margin-bottom:44px;line-height:1.65}
.section-head-block{text-align:center;display:flex;flex-direction:column;align-items:center}
.section-head-block .section-title,.section-head-block .section-lede{text-align:center;margin-left:auto;margin-right:auto}
.section-head-block .eyebrow{margin-bottom:14px}

.feature-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:24px;box-shadow:var(--sh-xs);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.feature-card:hover{transform:translateY(-3px);box-shadow:var(--sh-md);border-color:var(--brand-line)}
.feature-ic{
  width:44px;height:44px;border-radius:12px;margin-bottom:16px;
  display:flex;align-items:center;justify-content:center;
  background:var(--brand-soft);border:1px solid var(--brand-line);color:var(--brand);
}
.feature-ic svg{width:21px;height:21px}
.feature-ic.accent{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.feature-ic.ok{background:var(--ok-soft);border-color:var(--ok-line);color:var(--ok)}
.feature-ic.warn{background:var(--warn-soft);border-color:var(--warn-line);color:var(--warn)}
.feature-card h3{font-size:17px;margin-bottom:8px}
.feature-card p{color:var(--muted);font-size:14.5px;margin:0;line-height:1.6}
.feature-card ul{margin-top:12px;display:grid;gap:7px}
.feature-card ul li{position:relative;padding-left:22px;font-size:14px;color:var(--text-2)}
.feature-card ul li::before{
  content:"";position:absolute;left:0;top:5px;width:14px;height:14px;
  background:no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A56' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;counter-reset:st}
.step-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:26px 24px;position:relative;box-shadow:var(--sh-xs);
}
.step-card::before{
  counter-increment:st;content:counter(st,decimal-leading-zero);
  display:block;font-family:var(--display);font-size:34px;font-weight:700;
  color:var(--brand-line);line-height:1;margin-bottom:14px;letter-spacing:-.04em;
}
.step-card h3{font-size:17.5px;margin-bottom:9px}
.step-card p{color:var(--muted);font-size:14.5px;margin:0}
.step-card .step-note{
  margin-top:14px;padding-top:14px;border-top:1px dashed var(--line);
  font-size:13px;color:var(--text-2);display:flex;gap:8px;align-items:flex-start;
}
.step-card .step-note svg{width:15px;height:15px;color:var(--brand);flex:none;margin-top:2px}

.showcase{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl);
  padding:10px;box-shadow:var(--sh-lg);overflow:hidden;
}
.showcase-bar{
  display:flex;gap:6px;align-items:center;padding:8px 12px 12px;
}
.showcase-bar i{width:9px;height:9px;border-radius:50%;background:var(--line-2);display:block}
.showcase-bar span{
  margin-left:8px;font-size:11.5px;color:var(--faint);
  background:var(--surface-3);border-radius:var(--r-pill);padding:3px 12px;font-family:var(--mono);
}
.showcase-body{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-md);padding:18px}

.pain-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:22px;position:relative;overflow:hidden;box-shadow:var(--sh-xs);
}
.pain-num{
  position:absolute;top:12px;right:16px;
  font-family:var(--display);font-size:34px;font-weight:700;
  color:var(--surface-3);line-height:1;letter-spacing:-.04em;
}
.pain-card h3{font-size:16px;padding-right:44px;margin-bottom:8px}
.pain-card p{color:var(--muted);font-size:14.5px;margin:0}
.answer{
  margin-top:26px;border:1px solid var(--brand-line);
  background:linear-gradient(120deg,var(--brand-softer),var(--surface));
  border-radius:var(--r-lg);padding:24px 26px;
  display:flex;gap:16px;align-items:flex-start;
}
.answer .a-ic{
  width:38px;height:38px;border-radius:10px;flex:none;
  background:var(--brand-btn);color:#fff;display:flex;align-items:center;justify-content:center;
}
.answer .a-ic svg{width:19px;height:19px}
.answer h3{font-size:16.5px;margin-bottom:6px}
.answer p{color:var(--text-2);font-size:15px;margin:0}

.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px;align-items:stretch}
.price-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl);
  padding:28px 26px;position:relative;display:flex;flex-direction:column;box-shadow:var(--sh-xs);
}
.price-card.featured{
  border-color:var(--brand);
  box-shadow:0 0 0 1px var(--brand),var(--sh-lg);
  background:linear-gradient(170deg,var(--brand-softer),var(--surface) 45%);
}
.price-flag{
  position:absolute;top:-13px;left:26px;
  background:var(--brand-btn);color:#fff;font-size:11.5px;font-weight:700;
  padding:5px 13px;border-radius:var(--r-pill);letter-spacing:.03em;
  box-shadow:0 4px 10px rgba(79,70,229,.32);
}
.price-card h3{font-size:19px;margin-bottom:4px}
.price-card .price-desc{font-size:13.5px;color:var(--muted);margin-bottom:18px;min-height:40px}
.price{font-size:38px;font-weight:700;letter-spacing:-.035em;line-height:1.1;font-family:var(--display);color:var(--text)}
.price small{font-size:15px;font-weight:500;color:var(--muted);letter-spacing:0}
.price-note{font-size:12.5px;color:var(--faint);margin-top:5px}
.price-cta{margin:22px 0 20px}
.ticks{display:grid;gap:11px;margin-bottom:6px}
.ticks li{position:relative;padding-left:27px;font-size:14.5px;color:var(--text-2);line-height:1.5}
.ticks li::before{
  content:"";position:absolute;left:0;top:3px;width:17px;height:17px;border-radius:50%;
  background:var(--ok-soft) no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A56' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ticks li.off{color:var(--faint)}
.ticks li.off::before{
  background:var(--surface-3) no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A1B5' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}
.price-incl{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);margin-bottom:14px}

.faq{display:grid;gap:11px;max-width:820px;margin:0 auto}
.faq-item{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);padding:0 20px;transition:border-color .14s ease,box-shadow .14s ease;
}
.faq-item:hover{border-color:var(--line-2);box-shadow:var(--sh-sm)}
.faq-item[open]{border-color:var(--brand-line);box-shadow:var(--sh-sm)}
.faq-item>summary{
  cursor:pointer;list-style:none;font-weight:600;font-size:15.5px;
  padding:18px 34px 18px 0;position:relative;color:var(--text);display:block;
}
.faq-item>summary::-webkit-details-marker{display:none}
.faq-item>summary::marker{content:""}
.faq-item>summary::after{
  content:"";position:absolute;right:2px;top:50%;width:16px;height:16px;
  transform:translateY(-50%);transition:transform .18s ease;
  background:no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155EEF' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.faq-item[open]>summary::after{
  transform:translateY(-50%) rotate(45deg);
}
.faq-item>p,.faq-item>.faq-a{
  margin:0 0 18px;color:var(--muted);font-size:14.5px;line-height:1.7;padding-right:34px;
}

.cta-band{
  border-radius:var(--r-xl);padding:52px 40px;text-align:center;position:relative;overflow:hidden;
  background:linear-gradient(135deg,#0F3FBF,#155EEF 45%,#3B7BF5);
  color:#fff;box-shadow:var(--sh-lg);
}
.cta-band::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(500px 200px at 80% 100%,rgba(242,98,31,.35),transparent 70%);
}
.cta-band>*{position:relative;z-index:1}
.cta-band h2{color:#fff;font-size:clamp(24px,3.4vw,34px);margin-bottom:12px;letter-spacing:-.025em}
.cta-band p{color:rgba(255,255,255,.86);max-width:620px;margin:0 auto 26px;font-size:16.5px}
.cta-band .btn-primary{background:#fff;border-color:#fff;color:var(--brand);box-shadow:0 6px 18px rgba(0,0,0,.16)}
.cta-band .btn-primary:hover{background:#F2F6FF;border-color:#F2F6FF;color:var(--brand-active)}
.cta-band .btn-ghost{border-color:rgba(255,255,255,.5);color:#fff}
.cta-band .btn-ghost:hover{background:rgba(255,255,255,.14);color:#fff}

.site-footer{background:var(--surface);border-top:1px solid var(--line);padding:52px 0 26px;margin-top:0}
.foot-grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:32px}
.foot-col h4{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin-bottom:14px;font-weight:700}
.foot-col ul{display:grid;gap:9px}
.foot-col a{color:var(--muted);font-size:14px}
.foot-col a:hover{color:var(--brand)}
.foot-brand p{color:var(--muted);font-size:14px;margin-top:14px;max-width:36ch}
.foot-bottom{
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-top:40px;padding-top:22px;border-top:1px solid var(--line);
  font-size:13px;color:var(--faint);
}
.foot-bottom a{color:var(--faint)}

.compare{width:100%;border-collapse:separate;border-spacing:0;font-size:14.5px}
.compare th,.compare td{padding:15px 16px;border-bottom:1px solid var(--line)}
.compare thead th{background:transparent;font-size:13px;text-transform:none;letter-spacing:0;color:var(--muted);border-bottom:1px solid var(--line-2)}
.compare tbody th{text-align:left;font-weight:500;color:var(--text-2)}
.compare .col-feat{width:40%}
.compare .yes{color:var(--ok);font-weight:700}
.compare .no{color:var(--faint)}
.compare .plan-hl{background:var(--brand-softer)}
.compare td{text-align:center;color:var(--muted)}
.compare tbody th{text-align:left}
.compare .plan-name{font-family:var(--display);font-size:16px;font-weight:600;color:var(--text);display:block}
.compare .plan-price{font-size:13px;color:var(--muted);font-weight:500}

/* ── 22. Misc utility layouts ──────────────────────────────────────────── */
.two-col-form{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}
.list-reset{list-style:none;margin:0;padding:0}
.link-list{display:grid;gap:0;grid-template-columns:minmax(0,1fr)}
.link-list a{
  min-width:0;
  display:flex;align-items:center;gap:12px;padding:14px 4px;
  border-bottom:1px solid var(--line);color:var(--text-2);text-decoration:none;font-size:14.5px;
}
.link-list a:last-child{border-bottom:none}
.link-list a:hover{color:var(--brand);text-decoration:none}
.link-list .li-ic{
  width:34px;height:34px;border-radius:9px;flex:none;
  background:var(--surface-3);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--muted);
}
.link-list .li-ic svg{width:16px;height:16px}
.link-list a:hover .li-ic{background:var(--brand-soft);border-color:var(--brand-line);color:var(--brand)}
.link-list .li-body{flex:1;min-width:0}
.link-list .li-title{font-weight:600;color:var(--text);font-size:14.5px}
.link-list .li-sub{font-size:12.5px;color:var(--muted);margin-top:1px}
.link-list .li-end{color:var(--faint);flex:none;display:flex;align-items:center;gap:8px;font-size:13px}
.link-list .li-end svg{width:16px;height:16px}

.activity{display:grid;gap:0;position:relative}
.activity-item{display:flex;gap:14px;padding:0 0 20px;position:relative}
.activity-item:last-child{padding-bottom:0}
.activity-item::before{
  content:"";position:absolute;left:14px;top:30px;bottom:0;width:1px;background:var(--line);
}
.activity-item:last-child::before{display:none}
.activity-dot{
  width:29px;height:29px;border-radius:50%;flex:none;z-index:1;
  background:var(--surface);border:1.5px solid var(--line-2);
  display:flex;align-items:center;justify-content:center;color:var(--muted);
}
.activity-dot svg{width:13px;height:13px}
.activity-dot.ok{background:var(--ok-soft);border-color:var(--ok-line);color:var(--ok)}
.activity-dot.warn{background:var(--warn-soft);border-color:var(--warn-line);color:var(--warn)}
.activity-dot.info{background:var(--brand-soft);border-color:var(--brand-line);color:var(--brand)}
.activity-body{flex:1;min-width:0;padding-top:3px}
.activity-body p{margin:0;font-size:14px;color:var(--text-2)}
.activity-body p b{font-weight:600;color:var(--text)}
.activity-body time{display:block;font-size:12.5px;color:var(--faint);margin-top:3px}

.kv{display:grid;grid-template-columns:auto 1fr;gap:11px 20px;font-size:14px}
.kv dt{color:var(--muted);font-weight:500}
.kv dd{margin:0;color:var(--text);font-weight:500;text-align:right;word-break:break-word}

.summary-line{display:flex;justify-content:space-between;padding:7px 0;font-size:14px;color:var(--text-2)}
.summary-line.muted-line{color:var(--muted)}
.summary-total{
  display:flex;justify-content:space-between;
  border-top:1px solid var(--line);margin-top:8px;padding-top:14px;
  font-weight:700;font-size:17px;color:var(--text);
}

.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.theme-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;box-shadow:var(--sh-xs);transition:.16s;position:relative;
}
.theme-card:hover{box-shadow:var(--sh-md);transform:translateY(-2px)}
.theme-card.current{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.theme-preview{
  aspect-ratio:16/11;background:var(--surface-3);position:relative;
  border-bottom:1px solid var(--line);overflow:hidden;padding:10px;
}
.tp-bar{height:9px;background:var(--surface);border:1px solid var(--line);border-radius:3px;margin-bottom:7px;display:flex;gap:4px;align-items:center;padding:0 5px}
.tp-bar i{width:16px;height:3px;background:var(--line-2);border-radius:2px}
.tp-hero{height:44%;background:linear-gradient(135deg,#DCE7FA,#EEF3FC);border-radius:5px;margin-bottom:7px;position:relative;overflow:hidden}
.tp-hero::after{content:"";position:absolute;left:8px;bottom:9px;width:45%;height:7px;background:#B9CDF3;border-radius:3px}
.tp-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tp-cols div{height:34px;background:var(--surface);border:1px solid var(--line);border-radius:4px}
.theme-meta{padding:14px 16px}
.theme-meta h4{margin:0 0 3px;font-size:15px}
.theme-meta p{font-size:12.5px;color:var(--muted);margin:0}
.theme-actions{display:flex;gap:7px;padding:0 16px 16px}
.theme-current-flag{
  position:absolute;top:10px;right:10px;z-index:2;
  background:var(--brand-btn);color:#fff;font-size:11px;font-weight:700;
  padding:3px 9px;border-radius:var(--r-pill);box-shadow:var(--sh-sm);
}

.color-swatches{display:flex;gap:10px;flex-wrap:wrap}
.swatch{
  width:52px;height:52px;border-radius:12px;border:1px solid rgba(14,26,43,.12);
  box-shadow:inset 0 0 0 3px #fff;cursor:pointer;position:relative;
}
.swatch.on::after{
  content:"";position:absolute;inset:-5px;border:2px solid var(--brand);border-radius:15px;
}
.swatch span{
  position:absolute;left:50%;transform:translateX(-50%);bottom:-19px;
  font-size:10px;color:var(--faint);font-family:var(--mono);
}

.plan-bar{
  display:flex;gap:14px;align-items:center;flex-wrap:wrap;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:18px 20px;box-shadow:var(--sh-xs);
}
.plan-bar .pb-body{flex:1;min-width:220px}
.plan-bar .pb-title{display:flex;align-items:center;gap:10px;margin-bottom:6px;flex-wrap:wrap}
.plan-bar .pb-title b{font-size:16px}
.plan-bar .pb-meta{font-size:13px;color:var(--muted);margin-top:8px;display:flex;gap:16px;flex-wrap:wrap}
.plan-bar .pb-meta b{color:var(--text);font-weight:600}

.usage{display:grid;gap:14px}
.usage-item .u-top{display:flex;justify-content:space-between;font-size:13.5px;margin-bottom:6px}
.usage-item .u-top span{color:var(--muted)}
.usage-item .u-top b{font-variant-numeric:tabular-nums}

/* ── 23. Storefront (customer facing) ─────────────────────────────────── */
.sf-header{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px 0;border-bottom:1px solid var(--line);flex-wrap:wrap;
  background:var(--surface);
}
.sf-title{font-size:20px;font-weight:700;color:var(--text);font-family:var(--display)}
.sf-nav{display:flex;gap:6px;flex-wrap:wrap;font-size:14px;align-items:center}
.sf-nav a{color:var(--text-2);padding:6px 10px;border-radius:var(--r-sm);font-weight:500}
.sf-nav a:hover{background:var(--surface-3);text-decoration:none;color:var(--text)}
.sf-bar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px 0;border-bottom:1px solid var(--line);flex-wrap:wrap;
}
.p-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:20px}
.p-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.p-card:hover{border-color:var(--brand-line);box-shadow:var(--sh-md);transform:translateY(-3px)}
.p-thumb{
  aspect-ratio:4/3;background:linear-gradient(140deg,#EAF0FB,#F6F8FC);
  display:flex;align-items:center;justify-content:center;
  color:#A9B8CF;font-size:32px;border-bottom:1px solid var(--line);overflow:hidden;
}
.p-thumb img{width:100%;height:100%;object-fit:cover}
.p-body{padding:15px;display:flex;flex-direction:column;gap:6px;flex:1}
.p-name{font-weight:600;color:var(--text);font-size:15px;line-height:1.4}
.p-price{font-weight:700;color:var(--brand);font-size:16.5px;font-variant-numeric:tabular-nums}
.p-was{color:var(--faint);text-decoration:line-through;font-size:13px;font-weight:500}
.qty{width:76px;display:inline-block;margin:0;text-align:center}
.detail{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.checkout-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:26px;align-items:start}
.cart-line{
  display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:14px;
  align-items:center;padding:16px 0;border-bottom:1px solid var(--line);
}
.var-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:12px}
.var-row input{margin:0}
.shop-host{font-family:var(--mono);color:var(--brand);word-break:break-all}
.shop-card{
  display:flex;justify-content:space-between;gap:18px;
  align-items:center;flex-wrap:wrap;
}
.admin-layout{display:grid;grid-template-columns:210px 1fr;gap:26px;align-items:start}
.side-nav{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:8px}
.side-nav a{display:block;padding:9px 12px;border-radius:var(--r-sm);color:var(--muted);font-weight:600;font-size:14px}
.side-nav a:hover{background:var(--surface-3);color:var(--text);text-decoration:none}
.side-nav a.on{background:var(--brand-soft);color:var(--brand)}

/* confirm gate (delete confirmations without JS) */
.confirm-gate{display:inline-block}
.confirm-gate>summary{
  list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:7px;
  padding:6px 12px;border:1px solid var(--line-2);border-radius:var(--r-sm);
  background:var(--surface);color:var(--text-2);font-size:13px;font-weight:600;
}
.confirm-gate>summary::-webkit-details-marker{display:none}
.confirm-gate>summary::marker{content:""}
.confirm-gate>summary:hover{background:var(--err-soft);border-color:var(--err-line);color:var(--err)}
.confirm-gate[open]>summary{background:var(--surface-3);border-color:var(--line);color:var(--muted)}
.confirm-actions{
  display:inline-flex;gap:9px;align-items:center;flex-wrap:wrap;
  margin-left:10px;padding:5px 6px;border-radius:var(--r-sm);
  background:var(--err-soft);border:1px solid var(--err-line);
  animation:dd-in .14s ease both;
}
.confirm-actions .q{font-size:13px;color:var(--err-ink);font-weight:600;padding:0 4px}

/* ── 24. Responsive ────────────────────────────────────────────────────── */
@media (min-width:900px){
  .auth{grid-template-columns:1.05fr 1fr}
  .auth-side{
    display:flex;flex-direction:column;justify-content:space-between;
    padding:44px 48px;position:relative;overflow:hidden;
    background:linear-gradient(155deg,#0F3FBF,#155EEF 55%,#2C7BF7);
    color:#fff;
  }
  .auth-side::after{
    content:"";position:absolute;inset:0;
    background:radial-gradient(560px 320px at 90% 90%,rgba(242,98,31,.4),transparent 70%);
  }
  .auth-side>*{position:relative;z-index:1}
  .auth-side .logo-name{color:#fff}
  .auth-side .logo-sub{color:rgba(255,255,255,.7)}
  .auth-side h2{color:#fff;font-size:clamp(24px,2.6vw,32px);line-height:1.25;margin-bottom:14px;letter-spacing:-.025em}
  .auth-side p{color:rgba(255,255,255,.85);font-size:16px;line-height:1.65}
  .auth-points{display:grid;gap:14px;margin-top:26px}
  .auth-points li{display:flex;gap:11px;align-items:flex-start;font-size:14.5px;color:rgba(255,255,255,.92)}
  .auth-points .pt-ic{
    width:23px;height:23px;border-radius:50%;flex:none;margin-top:1px;
    background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.32);
    display:flex;align-items:center;justify-content:center;
  }
  .auth-points .pt-ic svg{width:12px;height:12px}
  .auth-quote{
    border-left:2px solid rgba(255,255,255,.4);padding-left:16px;
    font-size:15px;line-height:1.65;color:rgba(255,255,255,.94);
  }
  .auth-quote cite{display:block;font-style:normal;font-size:13px;color:rgba(255,255,255,.7);margin-top:8px}
}

@media (max-width:1180px){
  :root{--sidebar:232px}
}

@media (max-width:1024px){
  .split,.split-wide{grid-template-columns:minmax(0,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:900px){
  :root{--pad:18px}
  .shell{grid-template-columns:minmax(0,1fr)}
  .sidebar{
    position:fixed;top:0;left:0;height:100vh;width:278px;
    transform:translateX(-100%);transition:transform .22s ease;
    box-shadow:none;z-index:110;
  }
  .sb-toggle:checked~.sidebar{transform:none;box-shadow:var(--sh-lg)}
  .sb-toggle:checked~.sb-overlay{display:block}
  .sb-overlay{
    display:none;position:fixed;inset:0;background:var(--overlay);z-index:105;
    animation:fade-in .2s ease both;
  }
  @keyframes fade-in{from{opacity:0}to{opacity:1}}
  .sb-close{display:inline-flex}
  .menu-btn{display:inline-flex}
  .tb-search{max-width:none}
  .content{padding-top:20px}
  .page-head h1{font-size:23px}
  .form-row,.two-col-form{grid-template-columns:1fr}
  .detail{grid-template-columns:1fr}
  .checkout-grid{grid-template-columns:1fr}
  .admin-layout{grid-template-columns:1fr}
  .hero{padding:56px 0 44px}
  .section{padding:52px 0}
  .stepper{margin-bottom:24px}
}

@media (max-width:760px){
  .grid-2,.grid-3,.grid-4,.grid-6{grid-template-columns:1fr}
  .dash-row{grid-template-columns:1fr}
  .kpi-row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  .kpi-value{font-size:23px}
  .price{font-size:32px}
  .foot-grid{grid-template-columns:1fr;gap:26px}
  .cta-band{padding:38px 22px}
  .page-head{gap:14px}
  .page-head .actions{width:100%}
  .page-head .actions .btn{flex:1 1 auto}

  /* tables → stacked cards (no horizontal scrolling) */
  table.responsive,
  table.responsive tbody,
  table.responsive tr,
  table.responsive td{display:block;width:100%}
  table.responsive thead{display:none}
  table.responsive{
    border:1px solid var(--line);border-radius:var(--r-md);
    background:var(--surface);overflow:hidden;
  }
  table.responsive tr{padding:13px 15px;border-bottom:1px solid var(--line)}
  table.responsive tr:last-child{border-bottom:none}
  table.responsive tr:hover{background:transparent}
  table.responsive td{
    display:flex;justify-content:space-between;gap:16px;align-items:center;
    padding:7px 0;border:none;text-align:right;
  }
  table.responsive td[data-label]::before{
    content:attr(data-label);
    font-size:12px;font-weight:600;color:var(--muted);
    text-align:left;flex:none;
  }
  table.responsive td[data-label=""]::before{content:""}
  table.responsive td.cell-lead{
    display:block;text-align:left;padding-bottom:11px;margin-bottom:6px;
    border-bottom:1px dashed var(--line);
  }
  table.responsive td.cell-lead::before{content:none}
  table.responsive td.num{text-align:right}
  .row-actions{justify-content:flex-end}
  .hide-sm{display:none !important}
  .filters{gap:8px}
  .filters .input-icon{min-width:100%;max-width:none;flex:1 1 100%}
  .filters select,.filters input:not([type=search]){flex:1 1 calc(50% - 4px);min-width:0}
  .modal{padding:0;align-items:flex-end}
  .modal-panel{max-width:none;border-radius:var(--r-lg) var(--r-lg) 0 0;max-height:92vh}
  .modal-foot{border-radius:0}
  .modal-foot .btn{flex:1 1 auto}
  .toast-stack{right:12px;left:12px;bottom:12px;max-width:none}
  .tabs{gap:2px}
  .tab{padding:9px 12px;font-size:13.5px}
  .kv{grid-template-columns:1fr;gap:3px 0}
  .kv dt{font-size:12.5px}
  .kv dd{text-align:left;margin-bottom:9px;font-weight:600}
  .cart-line{grid-template-columns:1fr 1fr;gap:10px}
  .step{min-width:130px}
  .step::after{left:34px}
}

@media (max-width:560px){
  body{font-size:14.5px}
  .site-header .container{height:62px;gap:10px}
  .site-nav{
    display:none;position:absolute;left:0;right:0;top:100%;
    flex-direction:column;align-items:stretch;gap:2px;
    background:var(--surface);border-bottom:1px solid var(--line);
    padding:12px 18px 18px;box-shadow:var(--sh-lg);
  }
  .site-nav a{padding:11px 12px;font-size:15px;border-radius:var(--r-sm)}
  .site-nav .btn{width:100%;margin-top:4px}
  .nav-toggle{display:inline-flex}
  .nav-toggle>summary{display:none}
  .site-header:has(.nav-toggle[open]) .site-nav{display:flex}
  .site-cta .btn-signin{display:none}
  .hero h1{font-size:clamp(27px,7.4vw,36px)}
  .hero-cta .btn{width:100%}
  .auth-main{padding:26px 16px 40px}
  .auth-card .card{padding:22px 18px}
  .card{padding:18px 16px;border-radius:var(--r-md)}
  .card-foot{padding:12px 16px}
  .content{padding-left:14px;padding-right:14px;padding-bottom:96px}
  .topbar{padding:0 14px;gap:8px}
  .tb-search{display:none}
  .page-head h1{font-size:21px}
  .kpi-row{grid-template-columns:1fr 1fr;gap:11px}
  .kpi{padding:14px}
  .kpi-ic{display:none}
  .kpi-value{font-size:22px}
  .bars{height:132px;gap:5px}
  .bar-label{font-size:10px}
  .stepper{gap:0}
  .step{min-width:112px}
  .step-label{font-size:12.5px}
  .step-sub{display:none}
  .form-actions{position:sticky;bottom:0;background:var(--bg);padding-bottom:14px}
  .form-actions .btn{flex:1 1 auto}
  .mobile-bar{
    position:fixed;left:0;right:0;bottom:0;z-index:90;
    background:var(--blur-bg-96);backdrop-filter:blur(10px);
    border-top:1px solid var(--line);padding:11px 14px;
    display:flex;gap:9px;box-shadow:var(--sh-md);
  }
  .mobile-bar .btn{flex:1}
  .compare-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -16px;padding:0 16px}
  .compare{min-width:560px}
}

@media (max-width:400px){
  .kpi-row{grid-template-columns:1fr}
}

/* ── 25. Print ─────────────────────────────────────────────────────────── */
@media print{
  .sidebar,.topbar,.site-header,.site-footer,.btn,.filters,.pagination{display:none !important}
  .shell{grid-template-columns:minmax(0,1fr)}
  body{background:#fff}
  .card{box-shadow:none;border-color:#ccc}
}

/* ── 26. Theme picker (store creation + online store settings) ─────── */
fieldset.field{border:0;padding:0;margin:0 0 18px;min-width:0}
fieldset.field legend{font-size:13.5px;font-weight:600;color:var(--text);padding:0;margin-bottom:4px}
fieldset.field .help{margin:-4px 0 4px}
.theme-pick{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-top:10px}
.theme-opt{position:relative;display:block;cursor:pointer}
.theme-opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.theme-opt-in{
  display:flex;flex-direction:column;gap:7px;height:100%;
  padding:14px;border:1.5px solid var(--line-2);border-radius:var(--r-lg);
  background:var(--surface);transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease;
}
.theme-opt:hover .theme-opt-in{border-color:var(--brand-line);transform:translateY(-2px);box-shadow:var(--sh-sm)}
.theme-opt input:focus-visible+.theme-opt-in{outline:2px solid var(--brand);outline-offset:2px}
.theme-opt input:checked+.theme-opt-in{
  border-color:var(--brand);background:var(--brand-soft);box-shadow:0 0 0 3px rgba(79,70,229,.16);
}
.theme-opt-in b{font-size:15px}
.theme-opt-in .theme-desc{font-size:12.8px;line-height:1.55;color:var(--muted);margin:0}
.theme-opt-in .theme-best{
  font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  color:var(--faint);margin-top:auto;padding-top:4px;
}
.theme-opt input:checked+.theme-opt-in .theme-best{color:var(--brand)}
.theme-swatch{
  display:flex;flex-direction:column;gap:6px;height:64px;
  padding:9px 10px;border-radius:calc(var(--swr,10px) * .9);
  background:var(--swt,#EDF3FF);border:1px solid rgba(15,26,43,.07);overflow:hidden;
}
.theme-swatch .sw-bar{
  display:flex;align-items:center;justify-content:space-between;gap:6px;
  height:14px;border-radius:3px;background:var(--sw,#155EEF);
}
.theme-swatch .sw-bar::after{content:"";width:34%;height:4px;border-radius:2px;background:rgba(255,255,255,.75);margin-right:6px}
.theme-swatch .sw-bar::before{content:"";width:8px;height:8px;border-radius:2px;background:rgba(255,255,255,.55);margin-left:6px;order:2}
.theme-swatch .sw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;flex:1}
.theme-swatch .sw-grid i{display:block;border-radius:2px;background:#fff;border:1px solid rgba(15,26,43,.09)}
.theme-swatch .sw-rows{display:flex;flex-direction:column;gap:5px;flex:1}
.theme-swatch .sw-rows i{display:block;height:8px;border-radius:2px;background:#fff;border:1px solid rgba(15,26,43,.09)}
.theme-swatch .sw-rows i:nth-child(2){width:78%}
.theme-swatch .sw-rows i:nth-child(3){width:56%}
.theme-swatch .sw-single{flex:1;border-radius:2px;background:#fff;border:1px solid rgba(15,26,43,.09)}
.theme-tick{
  display:none;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--brand);
}
.theme-opt input:checked+.theme-opt-in .theme-tick{display:inline-flex}

/* ── 27. Platform deploy (Update site) ─────────────────────────────── */
.deploy-steps{display:flex;flex-direction:column;gap:0;margin-top:8px}
.deploy-step{
  display:flex;gap:14px;align-items:flex-start;padding:14px 4px;
  border-bottom:1px solid var(--line);
}
.deploy-step:last-child{border-bottom:none}
.deploy-step .ds-n{
  flex:none;width:26px;height:26px;border-radius:999px;
  background:var(--surface-3);color:var(--muted);
  display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;
}
.deploy-step code{
  display:block;font-family:var(--mono);font-size:13px;
  background:var(--surface-3);border:1px solid var(--line);border-radius:var(--r-sm);
  padding:7px 10px;margin-top:7px;word-break:break-all;color:var(--text-2);
}
.deploy-step .ds-out{
  font-family:var(--mono);font-size:12.4px;white-space:pre-wrap;word-break:break-word;
  background:#0E1A2B;color:#C9D6E8;border-radius:var(--r-sm);
  padding:10px 12px;margin-top:8px;max-height:340px;overflow:auto;line-height:1.55;
}
.deploy-step .ds-ok{color:var(--ok);font-weight:700;font-size:13px}
.deploy-step .ds-fail{color:var(--err);font-weight:700;font-size:13px}
.deploy-summary{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}

/* ── 28. v2 shell components ───────────────────────────────────────────── */

/* theme toggle ---------------------------------------------------------- */
.theme-btn .i-sun{display:none}
:root[data-theme="dark"] .theme-btn .i-sun{display:block}
:root[data-theme="dark"] .theme-btn .i-moon{display:none}
.theme-btn svg{width:17px;height:17px}

/* store switcher -------------------------------------------------------- */
.sw-panel{min-width:292px}
.sw-panel .dd-item{padding:9px 10px}
.sw-meta{display:flex;flex-direction:column;min-width:0;text-align:left}
.sw-meta b{font-size:13.5px;font-weight:600;color:var(--text)}
.sw-meta span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sw-now{
  margin-left:auto;flex:none;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  background:var(--brand-soft);color:var(--brand-ink);border:1px solid var(--brand-line);
  border-radius:var(--r-pill);padding:2px 7px;
}
.sw-create{font-weight:600;color:var(--brand-ink)}
.sw-create svg{color:var(--brand-ink)}

/* platform shell — violet accent, tighter identity ---------------------- */
body.pf .logo{background:linear-gradient(145deg,var(--accent),#5B21B6);box-shadow:0 3px 8px rgba(124,58,237,.32)}
body.pf .sb-brand{background:linear-gradient(180deg,var(--accent-soft),transparent)}
body.pf .logo-sub{color:var(--accent-ink);letter-spacing:.1em}
body.pf .sb-link.on{background:var(--accent-soft);color:var(--accent-ink)}
body.pf .sb-link.on svg{color:var(--accent)}
body.pf .sb-link.on .count{background:var(--accent-soft);color:var(--accent-ink)}
body.pf .tb-badge{
  display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);
  background:var(--accent-soft);border:1px solid var(--accent-line);
  border-radius:var(--r-pill);padding:4px 10px;
}
.tb-badge{display:none}

/* health / system check rows -------------------------------------------- */
.health-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.health-row:last-child{border-bottom:0}
.health-row .hr-name{font-size:13.5px;font-weight:600;color:var(--text)}
.health-row .hr-sub{font-size:12.5px;color:var(--muted);margin-top:1px}
.health-row .hr-state{margin-left:auto;font-size:12.5px;font-weight:600}
.health-dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--muted)}
.health-dot.ok{background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}
.health-dot.warn{background:var(--warn);box-shadow:0 0 0 3px var(--warn-soft)}
.health-dot.err{background:var(--err);box-shadow:0 0 0 3px var(--err-soft)}
.hr-state.ok{color:var(--ok-ink)}
.hr-state.warn{color:var(--warn-ink)}
.hr-state.err{color:var(--err-ink)}

/* timeline --------------------------------------------------------------- */
.tl{list-style:none;margin:0;padding:0}
.tl li{position:relative;padding:0 0 18px 26px}
.tl li::before{
  content:"";position:absolute;left:5px;top:4px;width:9px;height:9px;border-radius:50%;
  background:var(--brand-btn);border:2px solid var(--surface);box-shadow:0 0 0 2px var(--brand-line);
}
.tl li::after{content:"";position:absolute;left:9.5px;top:17px;bottom:0;width:1.5px;background:var(--line)}
.tl li:last-child{padding-bottom:0}
.tl li:last-child::after{display:none}
.tl li.pending::before{background:var(--surface-3);box-shadow:0 0 0 2px var(--line-2)}
.tl b{display:block;font-size:13.5px;color:var(--text)}
.tl span{font-size:12.5px;color:var(--muted)}

/* keyboard hint ---------------------------------------------------------- */
kbd{
  font-family:var(--mono);font-size:11px;font-weight:600;
  background:var(--surface-3);border:1px solid var(--line-2);border-bottom-width:2px;
  border-radius:5px;padding:1px 5px;color:var(--muted);
}

/* mobile bottom navigation ----------------------------------------------- */
.bnav{display:none}
@media (max-width:900px){
  .bnav{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:95;
    background:var(--blur-bg-96);backdrop-filter:blur(12px);
    border-top:1px solid var(--line);padding:5px 4px calc(7px + env(safe-area-inset-bottom));
    box-shadow:var(--sh-md);
  }
  .bnav a,.bnav .dd>summary{
    flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;
    padding:6px 2px 3px;border-radius:var(--r-sm);text-decoration:none;
    color:var(--muted);font-size:10.5px;font-weight:600;cursor:pointer;list-style:none;
  }
  .bnav .dd>summary::-webkit-details-marker{display:none}
  .bnav a svg,.bnav .dd>summary svg{width:20px;height:20px}
  .bnav a.on,.bnav .dd>summary.on{color:var(--brand)}
  .bnav .bn-add{flex:0 0 auto;justify-content:center}
  .bnav .bn-add .bn-plus{
    width:34px;height:34px;border-radius:50%;
    background:var(--brand-btn);color:#fff;display:flex;align-items:center;justify-content:center;
    box-shadow:0 4px 10px rgba(79,70,229,.35);
  }
  .bnav .bn-add .bn-plus svg{width:18px;height:18px}
  .bnav .dd{flex:1;min-width:0}
  .bnav .dd-panel{position:fixed;left:10px;right:10px;bottom:74px;top:auto;min-width:0;max-height:62vh;overflow:auto}
  .shell{padding-bottom:78px}
  .mobile-bar{bottom:74px}
  .toast-stack{bottom:88px}
}

/* dark-mode polish ------------------------------------------------------- */
:root[data-theme="dark"] .flash-ok::before{filter:brightness(1.75) saturate(.9)}
:root[data-theme="dark"] .flash-err::before{filter:brightness(1.55)}
:root[data-theme="dark"] .flash-warn::before{filter:brightness(1.5)}
:root[data-theme="dark"] .flash-info::before{filter:brightness(1.65)}
:root[data-theme="dark"] .cta-band,
:root[data-theme="dark"] .auth-side{filter:brightness(.92)}
