/* =====================================================================================================================
   LIOS for Business — design system (single stylesheet; replaces site / uat-premium / uat-executive / lios-v2 / lios-v3)
   2026-10-28: matches the public LIOS website (liosocial.com): Catamaran 400–800, night #1C1B2B, cards #26253A on #36354D lines,
   mint #96DCC0 as the action colour (peach #F7B489, lavender #B7B2EA as accents), pill buttons, round 24–28px cards, spaced
   uppercase eyebrows. Dark is the website itself (default); light ("white version") is the same system on white with night ink.
   Dark mode = token swap: html[data-theme="dark"] (+ data-bs-theme="dark" so Bootstrap components follow).
   Rules: one radius scale, one button system, colour only from tokens, min 13px — no !important wars.
   ===================================================================================================================== */

/* ---------- Tokens ---------- */
:root{
  --font:"Catamaran",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --bg:#f6f5fa;--surface:#ffffff;--surface-2:#efeef5;--surface-3:#e4e3ee;--sidebar-bg:#ffffff;--input-bg:#ffffff;
  --border:#e4e3ee;--border-strong:#cfcddf;
  --text:#1c1b2b;--text-2:#4a4863;--text-3:#67657e;
  --ink:#1c1b2b;--on-ink:#ffffff;--ink-hover:#2f2e45;
  --eyebrow:#2e6b56;
  --accent-mint:#96dcc0;--accent-lavender:#b7b2ea;--accent-peach:#f7b489;
  --success-bg:#ddf3ea;--success-fg:#1f6b52;--success:#2e7d62;
  --info-bg:#ebe9fa;--info-fg:#4a4390;
  --warning-bg:#fdeadb;--warning-fg:#8a4515;
  --danger-bg:#fbe8ea;--danger-fg:#b02a3d;--danger:#c73a4e;
  --neutral-bg:#efeef5;--neutral-fg:#4a4863;
  --focus-ring:0 0 0 2px var(--surface),0 0 0 4px var(--ink);   /* WCAG 2.4.7: a visible two-tone ring on any background */
  --overlay:rgba(20,19,31,.5);
  --radius-sm:10px;--radius:14px;--radius-md:18px;--radius-lg:24px;--radius-xl:28px;--radius-pill:999px;
  --shadow-sm:0 1px 2px rgba(28,27,43,.05);
  --shadow:0 8px 24px rgba(28,27,43,.08);
  --shadow-lg:0 28px 64px rgba(28,27,43,.2);
  --logo-mark:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3e%3cpath d='M11 3C6.5 3 3 6 3 10s3.5 7 8 7c7 0 11 -14 18 -14 4.5 0 8 3 8 7s-3.5 7 -8 7c-7 0 -11 -14 -18 -14z' fill='none' stroke='%231C1B2B' stroke-width='3.4' stroke-linecap='round'/%3e%3c/svg%3e");
  --sidebar-w:272px;--topbar-h:72px;
  color-scheme:light;
}
/* The website, exactly: page #1C1B2B, bands #232235, cards #26253A, lines #302F46/#36354D, outlines #4A4863. */
html[data-theme="dark"]{
  --bg:#1c1b2b;--surface:#26253a;--surface-2:#2f2e45;--surface-3:#36354d;--sidebar-bg:#1c1b2b;--input-bg:#1c1b2b;
  --border:#36354d;--border-strong:#4a4863;
  --text:#ffffff;--text-2:#d4d2e2;--text-3:#b9b7cc;
  --ink:#96dcc0;--on-ink:#1c1b2b;--ink-hover:#c9f0e0;
  --eyebrow:#96dcc0;
  --success-bg:rgba(150,220,192,.14);--success-fg:#96dcc0;--success:#96dcc0;
  --info-bg:rgba(183,178,234,.16);--info-fg:#c9c5f2;
  --warning-bg:rgba(247,180,137,.16);--warning-fg:#f7b489;
  --danger-bg:rgba(240,110,128,.16);--danger-fg:#f59aa7;--danger:#ef7d8e;
  --neutral-bg:#36354d;--neutral-fg:#d4d2e2;
  --focus-ring:0 0 0 2px var(--bg),0 0 0 4px var(--ink);
  --overlay:rgba(10,9,18,.7);
  --shadow-sm:0 1px 2px rgba(0,0,0,.35);
  --shadow:0 10px 28px rgba(0,0,0,.3);
  --shadow-lg:0 28px 64px rgba(0,0,0,.55);
  --logo-mark:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3e%3cpath d='M11 3C6.5 3 3 6 3 10s3.5 7 8 7c7 0 11 -14 18 -14 4.5 0 8 3 8 7s-3.5 7 -8 7c-7 0 -11 -14 -18 -14z' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round'/%3e%3c/svg%3e");
  color-scheme:dark;
}

/* Bootstrap bridge: its components read these, so modals, forms, tables, dropdowns follow the tokens in both themes. */
:root,html[data-theme="dark"]{
  --bs-body-font-family:var(--font);--bs-body-font-size:15px;--bs-body-font-weight:400;--bs-body-line-height:1.55;
  --bs-body-bg:var(--bg);--bs-body-color:var(--text);--bs-emphasis-color:var(--text);
  --bs-secondary-color:var(--text-3);--bs-tertiary-color:var(--text-3);
  --bs-secondary-bg:var(--surface-2);--bs-tertiary-bg:var(--surface-2);
  --bs-border-color:var(--border);--bs-border-color-translucent:var(--border);
  --bs-border-radius:var(--radius);--bs-border-radius-sm:var(--radius-sm);--bs-border-radius-lg:var(--radius-md);
  --bs-link-color:var(--text);--bs-link-color-rgb:28,27,43;--bs-link-hover-color:var(--text-2);
  --bs-heading-color:var(--text);
  --bs-focus-ring-color:var(--ink);
  --bs-code-color:var(--eyebrow);
}
html[data-theme="dark"]{--bs-link-color-rgb:255,255,255;--bs-danger-rgb:239,125,142;--bs-success-rgb:150,220,192;--bs-warning-rgb:247,180,137}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:15px;line-height:1.55;font-weight:400;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,h5,h6{font-family:var(--font);font-weight:800;color:var(--text);letter-spacing:-.01em;line-height:1.15;margin:0}
h1{font-size:34px;letter-spacing:-.02em;line-height:1.05}h2{font-size:24px}h3{font-size:18px}h4{font-size:17px}h5{font-size:17px}h6{font-size:15px}
p{margin:0 0 .75rem}
strong,b,.fw-bold,th{font-weight:700}
.fw-semibold,.fw-medium{font-weight:600}
small,.small{font-size:13px}
a{color:var(--text);text-decoration:none}
a:hover{color:var(--text-2)}
:focus-visible{outline:none;box-shadow:var(--focus-ring)!important;border-radius:var(--radius-sm)}
hr{border-color:var(--border);opacity:1}
img{max-width:100%}
.text-muted,.text-secondary,.text-body-secondary{color:var(--text-3)!important}
.text-success{color:var(--success-fg)!important}
.text-danger{color:var(--danger-fg)!important}
.text-warning{color:var(--warning-fg)!important}
.text-primary{color:var(--text)!important}
.bg-white,.bg-body,.bg-light{background-color:var(--surface)!important}
.border,.border-top,.border-bottom,.border-start,.border-end{border-color:var(--border)!important}
.shadow-sm{box-shadow:var(--shadow-sm)!important}
.skip-link{position:fixed;left:16px;top:-80px;z-index:3000;padding:10px 14px;border-radius:var(--radius);background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.skip-link:focus{top:16px}
.text-link{font-weight:700;color:var(--text);display:inline-flex;align-items:center;gap:6px}
.text-link:hover{color:var(--text-2)}

/* Labels, as on the website: eyebrow/kicker = spaced uppercase in the accent; nav/column labels = the same in the quiet grey. */
.eyebrow,.section-kicker,.plan-tier,.nav-label,.announcement-label{display:block;font-size:13px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--eyebrow);line-height:1.4}
.nav-label,.announcement-label{letter-spacing:.15em;color:var(--text-3)}

/* ---------- Buttons (Bootstrap variables, so hover/active/disabled states stay coherent) ---------- */
.btn{
  --bs-btn-padding-x:20px;--bs-btn-padding-y:0;--bs-btn-font-family:var(--font);--bs-btn-font-size:15px;--bs-btn-font-weight:700;--bs-btn-line-height:1.2;
  --bs-btn-border-radius:var(--radius-pill);--bs-btn-border-width:1.5px;--bs-btn-focus-box-shadow:var(--focus-ring);--bs-btn-disabled-opacity:.45;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;white-space:nowrap;letter-spacing:0;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;
}
.btn i{font-size:1em;line-height:1}
.btn .me-1,.btn .me-2,.btn .ms-1,.btn .ms-2{margin:0!important}
.btn-sm{--bs-btn-padding-x:14px;--bs-btn-font-size:14px;--bs-btn-border-radius:var(--radius-pill);min-height:36px}
.btn-lg{--bs-btn-padding-x:28px;--bs-btn-font-size:17px;min-height:52px}
.btn-group>.btn{--bs-btn-border-radius:var(--radius-pill)}
.table .btn-sm{--bs-btn-padding-x:12px;--bs-btn-font-size:13px}   /* rows keep their previous width */
.btn-primary,.btn-dark{
  --bs-btn-color:var(--on-ink);--bs-btn-bg:var(--ink);--bs-btn-border-color:var(--ink);
  --bs-btn-hover-color:var(--on-ink);--bs-btn-hover-bg:var(--ink-hover);--bs-btn-hover-border-color:var(--ink-hover);
  --bs-btn-active-color:var(--on-ink);--bs-btn-active-bg:var(--ink-hover);--bs-btn-active-border-color:var(--ink-hover);
  --bs-btn-disabled-color:var(--on-ink);--bs-btn-disabled-bg:var(--ink);--bs-btn-disabled-border-color:var(--ink);
}
/* Secondary = the website's outline pill (1.5px #4A4863 on dark). */
.btn-light,.btn-outline-primary,.btn-outline-secondary,.btn-outline-dark,.btn-secondary,.btn-outline-light{
  --bs-btn-color:var(--text);--bs-btn-bg:transparent;--bs-btn-border-color:var(--border-strong);
  --bs-btn-hover-color:var(--text);--bs-btn-hover-bg:var(--surface-2);--bs-btn-hover-border-color:var(--text-3);
  --bs-btn-active-color:var(--text);--bs-btn-active-bg:var(--surface-3);--bs-btn-active-border-color:var(--border-strong);
  --bs-btn-disabled-color:var(--text-3);--bs-btn-disabled-bg:var(--surface);--bs-btn-disabled-border-color:var(--border);
}
.btn-success{
  --bs-btn-color:#fff;--bs-btn-bg:var(--success);--bs-btn-border-color:var(--success);
  --bs-btn-hover-color:#fff;--bs-btn-hover-bg:var(--success-fg);--bs-btn-hover-border-color:var(--success-fg);
  --bs-btn-active-color:#fff;--bs-btn-active-bg:var(--success-fg);--bs-btn-active-border-color:var(--success-fg);
}
html[data-theme="dark"] .btn-success{--bs-btn-color:#10241c;--bs-btn-hover-color:#10241c;--bs-btn-active-color:#10241c}
html[data-theme="dark"] .btn-danger{--bs-btn-color:#2a0d13;--bs-btn-hover-color:#2a0d13;--bs-btn-active-color:#2a0d13}
.btn-outline-success{
  --bs-btn-color:var(--success-fg);--bs-btn-bg:var(--surface);--bs-btn-border-color:var(--border-strong);
  --bs-btn-hover-color:var(--success-fg);--bs-btn-hover-bg:var(--success-bg);--bs-btn-hover-border-color:var(--success-fg);
  --bs-btn-active-color:var(--success-fg);--bs-btn-active-bg:var(--success-bg);--bs-btn-active-border-color:var(--success-fg);
}
.btn-danger{
  --bs-btn-color:#fff;--bs-btn-bg:var(--danger);--bs-btn-border-color:var(--danger);
  --bs-btn-hover-color:#fff;--bs-btn-hover-bg:var(--danger-fg);--bs-btn-hover-border-color:var(--danger-fg);
  --bs-btn-active-color:#fff;--bs-btn-active-bg:var(--danger-fg);--bs-btn-active-border-color:var(--danger-fg);
}
.btn-outline-danger{
  --bs-btn-color:var(--danger-fg);--bs-btn-bg:var(--surface);--bs-btn-border-color:var(--border-strong);
  --bs-btn-hover-color:var(--danger-fg);--bs-btn-hover-bg:var(--danger-bg);--bs-btn-hover-border-color:var(--danger-fg);
  --bs-btn-active-color:var(--danger-fg);--bs-btn-active-bg:var(--danger-bg);--bs-btn-active-border-color:var(--danger-fg);
}
.btn-warning{--bs-btn-color:var(--warning-fg);--bs-btn-bg:var(--warning-bg);--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--warning-fg);--bs-btn-hover-bg:var(--warning-bg);--bs-btn-hover-border-color:var(--warning-fg)}
.btn-link{--bs-btn-color:var(--text-2);--bs-btn-hover-color:var(--text);--bs-btn-active-color:var(--text);text-decoration:none;min-height:32px;--bs-btn-padding-x:8px}
.btn-link.text-danger{color:var(--danger-fg)!important}
.btn-close{--bs-btn-close-focus-shadow:var(--focus-ring);opacity:.6}
html[data-theme="dark"] .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}
.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;border:1.5px solid var(--border-strong);background:transparent;color:var(--text-2);font-size:17px;cursor:pointer;transition:background-color .15s ease,color .15s ease}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}

/* ---------- Forms ---------- */
/* Website fields: 14px corners, 1.5px #4A4863 outline, a well darker than the card it sits on, 600-weight labels. */
label,.form-label{display:inline-block;font-size:14px;font-weight:600;color:var(--text-2);margin-bottom:6px}
.form-text,.field-hint{display:block;font-size:13px;color:var(--text-3);margin-top:6px;font-weight:400}
.form-control,.form-select{
  min-height:44px;font-family:var(--font);font-size:15px;color:var(--text);background-color:var(--input-bg);
  border:1.5px solid var(--border-strong);border-radius:var(--radius);padding:9px 14px;box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease;
}
.form-select{padding-right:38px}
.form-control::placeholder{color:var(--text-3);opacity:1}
.form-control:focus,.form-select:focus{border-color:var(--ink);box-shadow:var(--focus-ring);background-color:var(--input-bg);color:var(--text)}
.form-control[readonly],.form-control:disabled,.form-select:disabled{background-color:var(--surface-2);color:var(--text-2)}
.form-control-sm,.form-select-sm{min-height:36px;font-size:14px;border-radius:var(--radius-sm);padding-top:5px;padding-bottom:5px}
.form-control-lg{min-height:52px;font-size:17px}
textarea.form-control{min-height:96px}
.input-group-text{background:var(--surface-2);border:1.5px solid var(--border-strong);color:var(--text-2);font-size:15px;border-radius:var(--radius)}
.input-group-sm .form-control,.input-group-sm .btn{min-height:36px}
.input-group>.btn{--bs-btn-border-radius:var(--radius)}
.form-check{display:flex;align-items:center;gap:8px;padding-left:0;margin:0}
.form-check .form-check-input{margin:0;float:none}
.form-check-label{font-weight:400;font-size:14px;color:var(--text);margin:0}
.form-check-input{width:18px;height:18px;border:1.5px solid var(--border-strong);background-color:var(--surface);cursor:pointer;flex:0 0 auto}
.form-check-input:checked{background-color:var(--ink);border-color:var(--ink)}
html[data-theme="dark"] .form-check-input:checked[type=checkbox]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%231c1b2b' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}
.form-check-input:focus{box-shadow:var(--focus-ring);border-color:var(--text)}
.form-switch .form-check-input{width:36px;height:20px;border-radius:var(--radius-pill)}
input[type=file].form-control{padding:6px 8px}
input[type=file].form-control::file-selector-button{border:0;border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);font-weight:700;padding:6px 12px;margin-right:12px}
.form-error-inline,.invalid-feedback{color:var(--danger-fg);font-size:13px}

/* ---------- Badges & chips ---------- */
.badge{--bs-badge-font-size:13px;--bs-badge-font-weight:700;--bs-badge-padding-x:10px;--bs-badge-padding-y:3px;--bs-badge-border-radius:var(--radius-pill);display:inline-flex;align-items:center;gap:6px;line-height:20px;letter-spacing:0}
.status-chip,.soft-badge,.verified-badge,.privacy-badge,.notification-count,.analytics-level-badge,.hero-pill,.soon-badge,.billing-scope span,.onboarding-state span{
  display:inline-flex;align-items:center;gap:6px;padding:2px 10px;min-height:24px;border-radius:var(--radius-pill);font-size:13px;font-weight:700;line-height:20px;white-space:nowrap;letter-spacing:0;text-transform:none;
  background:var(--neutral-bg);color:var(--neutral-fg);border:0;
}
.status-chip.active,.status-chip.published,.status-chip.paid,.status-chip.completed,.status-chip.approved,.status-chip.verified,.status-chip.visible,.status-chip.confirmed,.status-chip.sent,.status-chip.delivered,.status-chip.released,.status-chip.processed,.status-chip.liosapproved,.status-chip.sellerapproved,.status-chip.used,.verified-badge,.text-bg-success{background:var(--success-bg)!important;color:var(--success-fg)!important}
.status-chip.pending,.status-chip.pendingfulfillment,.status-chip.awaitingpayment,.status-chip.scheduled,.status-chip.pendingverification,.status-chip.requested,.status-chip.pendingownerconfirmation,.status-chip.pendingpayment,.status-chip.disputed,.status-chip.escalated,.status-chip.outofstock,.status-chip.reschedulerequested,.status-chip.partiallyrefunded,.status-chip.pendingreview,.status-chip.moreinformationrequired,.status-chip.pastdue,.status-chip.pendingdelivery,.status-chip.refundpending,.status-chip.submitted,.status-chip.reconciliationrequired,.status-chip.eligibleforrelease,.status-chip.payoutpending,.text-bg-warning{background:var(--warning-bg)!important;color:var(--warning-fg)!important}
.status-chip.cancelled,.status-chip.rejected,.status-chip.removed,.status-chip.suspended,.status-chip.disabled,.status-chip.revoked,.status-chip.failed,.status-chip.paymentfailed,.status-chip.refundfailed,.status-chip.lios-rejected,.status-chip.liosrejected,.status-chip.sellerrejected,.text-bg-danger{background:var(--danger-bg)!important;color:var(--danger-fg)!important}
.status-chip.draft,.status-chip.inactive,.status-chip.archived,.status-chip.hidden,.status-chip.refunded,.status-chip.expired,.text-bg-secondary,.text-bg-light{background:var(--neutral-bg)!important;color:var(--neutral-fg)!important}
.text-bg-dark,.hero-pill.dark{background:var(--ink)!important;color:var(--on-ink)!important}
.text-bg-primary,.text-bg-info,.analytics-level-badge.advanced{background:var(--info-bg)!important;color:var(--info-fg)!important}
.soon-badge{margin-left:auto;min-height:22px;padding:0 8px}

/* ---------- Shell ---------- */
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-w);z-index:1040;display:flex;flex-direction:column;gap:16px;padding:22px 14px 16px;background:var(--sidebar-bg);border-right:1px solid var(--border);overflow-y:auto;scrollbar-width:thin}
.sidebar-topline{display:flex;align-items:center;justify-content:space-between;padding:0 8px 4px}
.brandmark{display:flex;flex-direction:column;align-items:flex-start;gap:4px;color:var(--text)}
/* The website's wordmark: the loop mark + "LIOS" in Catamaran 800 (drawn here, so every page's markup stays as it is). */
.brand-orb,.auth-brand-orb{display:inline-flex;align-items:center;gap:0;height:32px;font-size:0;color:transparent;white-space:nowrap}
.brand-orb::before,.auth-brand-orb::before{content:"";width:40px;height:20px;flex:0 0 40px;background:var(--logo-mark) center/contain no-repeat}
.brand-orb::after,.auth-brand-orb::after{content:"LIOS";margin-left:10px;font-size:26px;font-weight:800;letter-spacing:1px;line-height:1;color:var(--text)}
.auth-brand .auth-brand-orb+span strong{display:none}   /* Register spelled "LIOS" next to the old icon */
.brandmark small{font-size:13px;font-weight:700;color:var(--text-3);letter-spacing:.15em;text-transform:uppercase;padding-left:50px}
.sidebar-close{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;border:0;background:transparent;color:var(--text-2);font-size:18px}
.side-nav{display:flex;flex-direction:column;gap:2px}
.side-nav .nav-label{padding:20px 14px 8px}
.side-nav .nav-label:first-child{padding-top:4px}
.side-nav a{display:flex;align-items:center;gap:12px;min-height:42px;padding:9px 14px;border-radius:var(--radius-pill);color:var(--text-2);font-size:15px;font-weight:600;line-height:1.25;transition:background-color .12s ease,color .12s ease}
.side-nav a i{font-size:18px;width:20px;text-align:center;color:var(--text-3);flex:0 0 20px}
.side-nav a:hover{background:var(--surface-2);color:var(--text)}
.side-nav a:hover i{color:var(--text)}
.side-nav a.active{background:var(--surface);color:var(--text);font-weight:700;box-shadow:inset 0 0 0 1px var(--border)}
.side-nav a.active i{color:var(--eyebrow)}
.sidebar-foot{margin-top:auto;padding:14px 8px 0;border-top:1px solid var(--border)}
.secure-note{display:flex;gap:10px;align-items:flex-start;color:var(--text-3);font-size:13px}
.secure-note i{font-size:16px;color:var(--success-fg);margin-top:1px}
.secure-note strong{display:block;font-size:13px;color:var(--text-2)}
.secure-note small{display:block}
.sidebar-backdrop{display:none}

.main{margin-left:var(--sidebar-w);min-width:0;min-height:100vh;display:flex;flex-direction:column}
.topbar{position:sticky;top:0;z-index:1020;height:var(--topbar-h);display:flex;align-items:center;gap:16px;padding:0 32px;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--border)}
.workspace-context{min-width:0}
.workspace-context span{display:flex;flex-direction:column;line-height:1.3}
.workspace-context small{font-size:13px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--text-3)}
.workspace-context strong{font-size:17px;font-weight:800;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.theme-toggle-btn .bi-sun{display:none}
html[data-theme="dark"] .theme-toggle-btn .bi-sun{display:inline}
html[data-theme="dark"] .theme-toggle-btn .bi-moon-stars{display:none}
.notification-dot{position:absolute;top:10px;right:11px;width:8px;height:8px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 2px var(--surface)}
.notification-dot.all-read{display:none}
.user-menu{margin-left:4px}
.user-chip{display:flex;align-items:center;gap:10px;padding:4px 10px 4px 4px;border-radius:var(--radius-pill);background:transparent;color:var(--text);cursor:pointer;transition:background-color .15s ease}
.user-chip:hover{background:var(--surface-2)}
.avatar,.user-avatar,.logo-chip{display:inline-grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:var(--ink);color:var(--on-ink);font-size:13px;font-weight:700}
.user-avatar{width:36px;height:36px;flex-basis:36px;background:var(--surface-3);color:var(--text)}
.user-chip-copy{flex-direction:column;align-items:flex-start;line-height:1.25;text-align:left;max-width:200px}
.user-chip-copy strong{font-size:14px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-chip-copy small{color:var(--text-3)}
.user-chip .bi-chevron-down{font-size:13px;color:var(--text-3)}
.premium-dropdown{min-width:240px}
.content{flex:1;width:100%;max-width:1440px;padding:36px 40px 72px}
.content:focus{outline:none;box-shadow:none!important}

/* ---------- Page heading ---------- */
.page-heading,.page-head,.billing-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:28px}
.page-heading>div:first-child,.page-head>div:first-child,.billing-hero>div:first-child{min-width:0;max-width:760px}
.page-heading .eyebrow,.page-head .eyebrow,.billing-hero .eyebrow{margin-bottom:10px}
.page-heading h1,.page-head h1,.billing-hero h1{font-size:clamp(28px,3vw,40px);margin-bottom:8px}
.page-heading p,.page-head p,.billing-hero p{font-size:16px;color:var(--text-2);margin:0}
.heading-actions,.dashboard-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.billing-scope{display:flex;gap:8px;flex-wrap:wrap}

/* ---------- Surfaces ---------- */
.panel,.panel-card,.form-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px;color:var(--text)}
.panel.p-0{padding:0}
.panel-head,.order-toolbar,.notification-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.panel-head>div:first-child{min-width:0}
.panel-head .section-kicker,.order-toolbar .section-kicker{margin-bottom:4px}
.panel-head h3,.panel-head h5,.order-toolbar h5,.panel h3{font-size:20px;margin:0}
.panel-head p,.panel-head small,.order-toolbar .small{display:block;font-size:14px;color:var(--text-3);margin:4px 0 0}
.panel>h3{margin:4px 0 8px}
.card{--bs-card-bg:var(--surface);--bs-card-border-color:var(--border);--bs-card-border-radius:var(--radius-lg);color:var(--text)}

/* ---------- KPI cards ---------- */
.kpi-grid,.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-bottom:24px}
.kpi-card{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%;padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);color:var(--text);text-align:left;font:inherit}
.kpi-card>div:first-child{min-width:0;flex:1 1 auto}
/* The value never hides behind "…": the icon sits in the corner beside the label, the value gets the full card width,
   scales with the card (container query) and, if it is still too long, wraps at a space. */
.kpi-card{position:relative;container-type:inline-size}
.kpi-card>.kpi-icon{position:absolute;top:20px;right:20px}
.kpi-card:has(>.kpi-icon)>div>span:first-child{min-height:44px;display:flex;align-items:center;padding-right:56px}
.kpi-card>div>span{display:block;font-size:14px;font-weight:600;color:var(--text-2)}
.kpi-card h3{font-size:30px;font-weight:800;line-height:1.1;margin:6px 0 8px;white-space:normal;overflow:visible;overflow-wrap:break-word}
.kpi-card h3.kpi-fit{white-space:nowrap}   /* site.js shrinks it to fit (30px → 18px); only a value that still does not fit wraps */
.kpi-card small{display:block;font-size:13px;color:var(--text-3);margin-top:2px}
.kpi-card small a{color:var(--text);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.kpi-card small.up,.kpi-card small.down,.kpi-card small.flat{display:inline-flex;align-items:center;padding:2px 10px;border-radius:var(--radius-sm);font-weight:700;margin:0 0 6px}
.kpi-card small.up{background:var(--success-bg);color:var(--success-fg)}
.kpi-card small.down{background:var(--danger-bg);color:var(--danger-fg)}
.kpi-card small.flat{background:var(--neutral-bg);color:var(--neutral-fg)}
.kpi-card small.kpi-fact{display:block}
.kpi-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:var(--surface-2);color:var(--text-2);font-size:18px}
.kpi-icon.green{background:var(--success-bg);color:var(--success-fg)}
.kpi-icon.orange{background:var(--warning-bg);color:var(--warning-fg)}
.kpi-icon.purple,.kpi-icon.blue{background:var(--info-bg);color:var(--info-fg)}
.kpi-card-clickable{cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.kpi-card-clickable:hover{border-color:var(--border-strong)}
.kpi-card-clickable[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.kpi-progress,.progress{--bs-progress-height:6px;--bs-progress-bg:var(--surface-3);--bs-progress-bar-bg:var(--ink);--bs-progress-border-radius:var(--radius-pill);height:6px;background:var(--surface-3);border-radius:var(--radius-pill);overflow:hidden;margin-top:12px}
.kpi-progress .progress-bar,.progress .progress-bar{background:var(--ink);border-radius:var(--radius-pill)}

/* ---------- Tables ---------- */
.table{--bs-table-bg:transparent;--bs-table-color:var(--text);--bs-table-border-color:var(--border);--bs-table-striped-bg:var(--surface-2);--bs-table-hover-bg:var(--surface-2);margin-bottom:0;font-size:14px}
.table>thead>tr>th,.table th{font-size:13px;font-weight:700;color:var(--text-3);text-transform:uppercase;letter-spacing:.06em;padding:12px 12px;border-bottom:1px solid var(--border);white-space:nowrap;background:transparent}
.table>tbody>tr>td{padding:14px 12px;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--text);background:transparent}
.table>tbody>tr:last-child>td{border-bottom:0}
.table td>strong:first-child{white-space:nowrap}
.table td small,.table td .small{color:var(--text-3)}
.table td small.d-block,.analytics-table td small{display:block}
.table-light,.table-light>td{--bs-table-bg:var(--surface-2);background:var(--surface-2)!important;color:var(--text)}
.table-responsive{border-radius:var(--radius-md)}
.user-cell{display:flex;align-items:center;gap:12px}
.user-cell span:last-child{display:flex;flex-direction:column;min-width:0}
.user-cell small{color:var(--text-3)}
.table-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:40px 16px;text-align:center;color:var(--text-3)}
.table-empty i{font-size:24px;margin-bottom:6px}
.table-empty strong{color:var(--text)}

/* ---------- Empty states ---------- */
.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:48px 16px;color:var(--text-3)}
.empty-state i{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--surface-2);color:var(--text-2);font-size:24px;margin-bottom:14px}
.empty-state h3{font-size:16px;margin-bottom:4px}
.empty-state p{margin:0;max-width:420px}
.empty-state.compact{padding:24px 12px}
.empty-state.compact i{width:44px;height:44px;font-size:20px}
.product-grid .empty-state{grid-column:1/-1}

/* ---------- Modals, dropdowns, offcanvas, alerts, pagination ---------- */
.modal{--bs-modal-bg:var(--surface);--bs-modal-color:var(--text);--bs-modal-border-color:var(--border);--bs-modal-border-radius:var(--radius-lg);--bs-modal-inner-border-radius:calc(var(--radius-lg) - 1px);--bs-modal-header-border-color:var(--border);--bs-modal-footer-border-color:var(--border);--bs-modal-header-padding:20px 24px;--bs-modal-padding:24px;--bs-modal-box-shadow:var(--shadow-lg)}
.modal-backdrop{--bs-backdrop-bg:#000;--bs-backdrop-opacity:.5}
.modal-content{box-shadow:var(--shadow-lg)}
.modal-header .section-kicker{margin-bottom:2px}
.modal-header h4,.modal-title{font-size:18px;overflow-wrap:anywhere;min-width:0}
.modal-footer{gap:8px;padding:16px 24px}
.modal-footer>*{margin:0}
.dropdown-menu{--bs-dropdown-bg:var(--surface);--bs-dropdown-color:var(--text);--bs-dropdown-border-color:var(--border);--bs-dropdown-border-radius:var(--radius-md);--bs-dropdown-link-color:var(--text);--bs-dropdown-link-hover-bg:var(--surface-2);--bs-dropdown-link-hover-color:var(--text);--bs-dropdown-link-active-bg:var(--surface-3);--bs-dropdown-link-active-color:var(--text);--bs-dropdown-divider-bg:var(--border);--bs-dropdown-font-size:14px;padding:6px;box-shadow:var(--shadow)}
.dropdown-item{border-radius:var(--radius-sm);padding:8px 10px;display:flex;align-items:center;gap:8px}
.dropdown-item.text-danger{color:var(--danger-fg)!important}
.dropdown-item.text-warning{color:var(--warning-fg)!important}
.dropdown-item-text{padding:8px 10px}
.offcanvas{--bs-offcanvas-bg:var(--surface);--bs-offcanvas-color:var(--text);--bs-offcanvas-border-color:var(--border)}
.alert{--bs-alert-border-radius:var(--radius-md);--bs-alert-padding-x:16px;--bs-alert-padding-y:12px;border:1px solid transparent;font-size:14px}
.alert-light{--bs-alert-bg:var(--surface-2);--bs-alert-color:var(--text-2);--bs-alert-border-color:var(--border)}
.alert-info,.alert-primary{--bs-alert-bg:var(--info-bg);--bs-alert-color:var(--info-fg);--bs-alert-border-color:transparent}
.alert-warning{--bs-alert-bg:var(--warning-bg);--bs-alert-color:var(--warning-fg);--bs-alert-border-color:transparent}
.alert-danger{--bs-alert-bg:var(--danger-bg);--bs-alert-color:var(--danger-fg);--bs-alert-border-color:transparent}
.alert-success{--bs-alert-bg:var(--success-bg);--bs-alert-color:var(--success-fg);--bs-alert-border-color:transparent}
.pagination{--bs-pagination-color:var(--text);--bs-pagination-bg:var(--surface);--bs-pagination-border-color:var(--border);--bs-pagination-hover-color:var(--text);--bs-pagination-hover-bg:var(--surface-2);--bs-pagination-hover-border-color:var(--border-strong);--bs-pagination-focus-box-shadow:var(--focus-ring);--bs-pagination-active-color:var(--on-ink);--bs-pagination-active-bg:var(--ink);--bs-pagination-active-border-color:var(--ink);--bs-pagination-disabled-color:var(--text-3);--bs-pagination-disabled-bg:var(--surface);--bs-pagination-disabled-border-color:var(--border);gap:6px;margin:0}
.pagination .page-link{display:grid;place-items:center;min-width:34px;height:34px;padding:0 10px;border-radius:var(--radius-sm)!important;font-size:13px;font-weight:700;margin:0}
.lios-pager{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}
.lios-pager-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--text-3)}
.lios-pager-size label,label.lios-pager-size{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:400;color:var(--text-3)}
.lios-pager-size .form-select{width:auto;min-width:72px}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--text-3)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--text-3)}
.dot-primary{background:var(--ink)}

/* ---------- Filter bar ---------- */
.filter-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.filter-bar .form-select,.filter-bar .btn{min-height:40px}
.filter-bar .form-select{width:auto;min-width:150px;font-size:14px;border-radius:var(--radius)}
.search-field{display:flex;align-items:center;gap:8px;min-height:40px;min-width:240px;padding:0 12px;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);color:var(--text-3);transition:border-color .15s ease,box-shadow .15s ease}
.search-field:focus-within{border-color:var(--text);box-shadow:var(--focus-ring)}
.search-field input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-family:var(--font);font-size:14px}
.search-field input::placeholder{color:var(--text-3)}

/* ---------- Lists used across pages ---------- */
.metric-stack>div{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}
.metric-stack>div:first-child{padding-top:0}
.metric-stack>div:last-child{border-bottom:0;padding-bottom:0}
.metric-stack span{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--text)}
.metric-stack span i{display:grid;place-items:center;width:32px;height:32px;border-radius:var(--radius);background:var(--surface-2);color:var(--text-2);font-size:15px}
.metric-stack strong{font-size:18px}
.metric-stack small{grid-column:1/-1;padding-left:42px;color:var(--text-3);margin-top:2px}
.dashboard-action-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.dashboard-action-grid>a{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text);transition:background-color .15s ease,border-color .15s ease}
.dashboard-action-grid>a:hover{background:var(--surface-2);border-color:var(--border-strong);color:var(--text)}
.dashboard-action-grid>a>div{flex:1;min-width:0}
.dashboard-action-grid>a strong{display:block;font-size:14px}
.dashboard-action-grid>a small{display:block;color:var(--text-3);margin-top:2px}
.dashboard-action-grid>a>.bi-chevron-right{color:var(--text-3)}
.action-icon,.room-icon,.notification-icon,.locked-icon,.analytics-lock-icon,.verification-status-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:var(--radius-md);background:var(--surface-2);color:var(--text-2);font-size:18px}
.launch-step.done .action-icon{background:var(--success-bg);color:var(--success-fg)}
.launch-step.done strong{color:var(--text-2)}
.launch-progress{width:180px;height:6px;border-radius:var(--radius-pill);background:var(--surface-3);overflow:hidden;align-self:center}
.launch-progress span{display:block;height:100%;background:var(--ink);border-radius:inherit}
.people-list{display:flex;flex-direction:column}
.person-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.person-row:last-child{border-bottom:0}
.person-row strong{display:flex;align-items:center;gap:6px;font-size:14px}
.person-row small{display:block;color:var(--text-3);overflow-wrap:anywhere}
.person-row form{margin:0}

/* ---------- Dashboard / analytics ---------- */
.analytics-level-badge.basic{background:var(--neutral-bg);color:var(--neutral-fg)}
.analytics-level-badge i{font-size:13px}
.analytics-access-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.analytics-access-line small{color:var(--text-3)}
.analytics-range{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.analytics-range .form-control{width:auto;min-width:150px}
.analytics-range span{color:var(--text-3)}
.analytics-upgrade-panel{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.analytics-upgrade-panel>div:nth-child(2){flex:1;min-width:240px}
.analytics-upgrade-panel h3{margin:4px 0 6px}
.analytics-upgrade-panel p{color:var(--text-2);margin-bottom:6px}
.analytics-price{display:block;font-size:18px}
.analytics-finance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.analytics-finance-grid>div{padding:16px 18px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md)}
.analytics-finance-grid small{display:block;color:var(--text-3)}
.analytics-finance-grid strong{display:block;font-size:18px;margin-top:4px}
.analytics-finance-grid span{display:block;font-size:13px;color:var(--text-3)}
.analytics-funnel{display:flex;flex-direction:column;gap:10px}
.funnel-step{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-md)}
.funnel-step>div{display:flex;align-items:center;gap:10px;min-width:0}
.funnel-step>div span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--surface-2);font-size:13px;font-weight:700;color:var(--text-2)}
.funnel-step b{font-size:16px}
.funnel-step small{grid-column:1/-1;color:var(--text-3);padding-left:36px}

/* ---------- Products ---------- */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px}
.product-card{position:relative;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}
.product-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow)}
.product-image{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;aspect-ratio:4/3;padding:12px;background-color:var(--surface-2);background-size:contain;background-position:center;background-repeat:no-repeat}
.product-image>.d-flex{flex-wrap:wrap}
.product-badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 10px;border-radius:var(--radius-pill);font-size:13px;font-weight:700;line-height:20px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}
.product-badge.dark{background:var(--ink);color:var(--on-ink)}
.product-image .status-chip{box-shadow:var(--shadow-sm)}
.product-placeholder-icon{position:absolute;inset:0;display:grid;place-items:center;font-size:36px;color:var(--text-3);pointer-events:none}
.gallery-thumbs{display:flex;flex-wrap:wrap;gap:6px;padding:12px 16px 0}
.gallery-thumb{width:40px;height:40px;padding:0;border-radius:var(--radius-sm);border:2px solid transparent;background-color:var(--surface-2);background-size:cover;background-position:center;cursor:pointer}
.gallery-thumb.active{border-color:var(--ink)}
.product-content{display:flex;flex-direction:column;flex:1;padding:16px 20px 20px}
.product-content .product-category{font-size:13px;color:var(--text-3)}
.product-content>.d-flex:first-child small{color:var(--text-3)}
.product-content h4{font-size:16px;margin:6px 0 8px;overflow-wrap:anywhere}
.price-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.price-line strong{font-size:18px}
.price-line small{color:var(--text-3)}
.product-content>.d-flex.gap-2.mt-3{margin-top:auto!important;padding-top:16px}
.product-card .inventory-line{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:13px;color:var(--text-3)}
.product-card .inventory-line i{margin-right:4px}
.product-card .inventory-line .inventory-low{color:var(--warning-fg);font-weight:700}
.product-card .inventory-line .inventory-out{color:var(--danger-fg);font-weight:700}
.inventory-table th{font-size:13px;color:var(--text-3)}
.inventory-table td{min-width:90px}

/* ---------- Events ---------- */
.event-list{display:flex;flex-direction:column;gap:12px}
.event-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}
.date-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;width:60px;height:64px;flex:0 0 60px;border-radius:var(--radius-md);background:var(--surface-2)}
.date-tile strong{font-size:22px;line-height:1}
.date-tile span{font-size:13px;color:var(--text-3);margin-top:4px;letter-spacing:.04em}
.event-info{flex:1;min-width:240px}
.event-type{font-size:13px;color:var(--text-3)}
.event-info h4{font-size:16px;margin:8px 0 4px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.event-info p{margin:0;font-size:13px;color:var(--text-3)}
.event-demand{display:flex;flex-direction:column;gap:2px;width:240px;flex:0 0 240px}
.event-actions{width:160px;flex:0 0 160px;justify-content:flex-end}
.event-demand>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--text-3)}
.event-demand>div:first-child strong{color:var(--text);font-size:14px}
.event-demand .progress{margin:6px 0 4px}
.event-demand small{color:var(--text-3)}

/* ---------- Notifications ---------- */
.notification-center{padding:0;overflow:hidden}
.notification-toolbar{padding:16px 24px;margin:0;border-bottom:1px solid var(--border);align-items:center}
.notification-toolbar small{font-size:13px}
.notification-item{display:flex;align-items:flex-start;gap:14px;padding:16px 24px;border-bottom:1px solid var(--border)}
.notification-item:last-child{border-bottom:0}
.notification-item.unread{background:color-mix(in srgb,var(--info-bg) 55%,transparent)}
.notification-item strong{font-size:14px}
.notification-item small{color:var(--text-3);white-space:nowrap}
.notification-item p{margin:4px 0 6px;color:var(--text-2)}
.notification-item form{margin:0}
.notification-icon{border-radius:50%}
.notification-list>.px-3{padding:16px 24px 4px!important}

/* ---------- Settings ---------- */
.settings-toggle-list{display:flex;flex-direction:column}
.settings-toggle-list label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:14px 0;border-bottom:1px solid var(--border);font-weight:400;cursor:pointer}
.settings-toggle-list label:last-child{border-bottom:0}
.settings-toggle-list strong{display:block;font-size:14px}
.settings-toggle-list small{display:block;color:var(--text-3)}
.security-list>div{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.security-list>div:last-child{border-bottom:0}
.security-list i{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:var(--radius);background:var(--surface-2);color:var(--text-2);font-size:16px}
.security-list span{flex:1;min-width:0}
.security-list strong{display:block;font-size:14px}
.security-list small{display:block;color:var(--text-3)}
.security-list b{font-size:13px;padding:2px 10px;border-radius:var(--radius-pill);background:var(--success-bg);color:var(--success-fg)}
.audit-timeline{display:flex;flex-direction:column}
.audit-timeline>div{display:flex;gap:12px;padding:10px 0}
.audit-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--ink);margin-top:7px}
.audit-timeline strong{display:block;font-size:14px}
.audit-timeline small,.audit-timeline time{display:block;font-size:13px;color:var(--text-3)}

/* ---------- Subscription ---------- */
.billing-hero h1{font-size:clamp(28px,3vw,40px)}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-bottom:24px}
.plan-card{position:relative;display:flex;flex-direction:column;padding:32px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl)}
.plan-card.recommended{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.plan-ribbon{position:absolute;top:20px;right:20px;display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:var(--radius-pill);background:var(--ink);color:var(--on-ink);font-size:13px;font-weight:700}
.plan-card h2{font-size:26px;margin:8px 0 16px}
.plan-price{display:flex;align-items:baseline;gap:6px}
.plan-price strong{font-size:40px;font-weight:800;line-height:1;letter-spacing:-.02em}
.plan-price span{color:var(--text-3)}
.plan-vat{font-size:13px;color:var(--text-3);margin-top:4px}
.plan-features{list-style:none;padding:0;margin:20px 0;display:flex;flex-direction:column;gap:10px}
.plan-features li{display:flex;gap:10px;align-items:flex-start;color:var(--text-2)}
.plan-features li i{color:var(--success-fg);margin-top:2px}
.plan-features li i.bi-dash-circle{color:var(--text-3)}
.plan-features li strong{color:var(--text)}
.plan-card form{margin-top:auto}
.add-on-panel{margin-top:4px}
.add-on-card{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);font-size:14px;margin:0}

/* ---------- Business page management + phone preview ---------- */
.sticky-preview{position:sticky;top:calc(var(--topbar-h) + 20px)}
.status-dot-live{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2)}
.status-dot-live::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--success)}
.preview-confidence{display:flex;gap:10px;align-items:flex-start;margin-top:16px;padding:12px 14px;border-radius:var(--radius-md);background:var(--surface-2);font-size:13px;color:var(--text-2)}
.preview-confidence i{color:var(--success-fg);font-size:16px}
.preview-confidence strong{display:block;color:var(--text)}
.preview-confidence small{display:block}
/* The phone is a device mock-up of the customer app: always light, own scale. */
.premium-phone{--p-ink:#1c1b2b;--p-text-2:#55546a;--p-line:#e6e6eb;--p-soft:#f2f2f5;position:relative;width:100%;max-width:320px;margin:0 auto;padding:0 14px 18px;border:10px solid #2f2e45;border-radius:48px;background:#fff;color:var(--p-ink);overflow:hidden;font-size:13px;line-height:1.4;color-scheme:light}
.premium-phone .phone-notch{width:120px;height:22px;margin:0 auto;border-radius:0 0 14px 14px;background:#1c1b2b}
.premium-phone .phone-bar{display:flex;justify-content:space-between;padding:6px 6px 10px;font-size:12px;font-weight:700}
.premium-phone .brand-cover-mini{height:112px;border-radius:16px;background:linear-gradient(120deg,var(--accent-lavender),var(--accent-peach));display:grid;place-items:center}
.premium-phone .brand-cover-mini img{width:100%;height:100%;object-fit:cover}
.premium-phone .brand-cover-placeholder span{font-weight:700;font-size:20px;letter-spacing:.2em;color:rgba(30,29,45,.35)}
.premium-phone .brand-mini{display:flex;align-items:flex-start;gap:10px;margin:-28px 6px 0;position:relative}
.premium-phone .brand-mini>.flex-grow-1,.premium-phone .brand-mini>.preview-more{margin-top:34px;min-width:0}
.premium-phone .du-logo{display:grid;place-items:center;width:58px;height:58px;flex:0 0 58px;border-radius:50%;border:3px solid #fff;background:#1c1b2b;color:#fff;font-weight:700;font-size:20px}
.premium-phone .du-logo img{width:100%;height:100%;object-fit:cover}
.premium-phone .brand-mini strong{font-size:15px}
.premium-phone .brand-mini small{display:block;color:var(--p-text-2);font-size:12px}
.premium-phone .preview-verified{color:#1c1b2b;font-size:13px}
.premium-phone .preview-more{border:0;background:transparent;color:var(--p-text-2);font-size:18px;padding:0}
.premium-phone>p{margin:12px 6px;color:var(--p-text-2);font-size:13px}
.premium-phone .mobile-stats{display:grid;gap:8px;margin:0 6px 12px}
.premium-phone .mobile-stats span{display:flex;flex-direction:column;align-items:center;padding:8px;border-radius:12px;background:var(--p-soft);font-size:12px;color:var(--p-text-2)}
.premium-phone .mobile-stats b{font-size:15px;color:var(--p-ink)}
.premium-phone .preview-action-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 6px}
.premium-phone .preview-action-row button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;border-radius:10px;border:1px solid var(--p-line);background:#fff;color:var(--p-ink);font-size:12px;font-weight:700;font-family:var(--font)}
.premium-phone .preview-action-row button:first-child{background:#1c1b2b;border-color:#1c1b2b;color:#fff}
.premium-phone .mobile-announcement{margin:12px 6px 0;padding:12px;border-radius:12px;background:#fdf0e6}
.premium-phone .mobile-announcement .announcement-label{font-size:11px;font-weight:700;color:#8a4a15}
.premium-phone .mobile-announcement b{display:block;margin-top:2px}
.premium-phone .mobile-announcement small{display:block;color:var(--p-text-2);font-size:12px}
.premium-phone .mobile-tabs{display:flex;gap:16px;margin:14px 6px 10px;border-bottom:1px solid var(--p-line);font-size:13px;color:var(--p-text-2)}
.premium-phone .mobile-tabs>*{padding:8px 0}
.premium-phone .mobile-tabs b{color:var(--p-ink);border-bottom:2px solid var(--p-ink)}
.premium-phone .preview-shop-header{display:flex;justify-content:space-between;margin:0 6px 8px}
.premium-phone .preview-shop-header span{color:var(--p-text-2)}
.premium-phone .preview-product-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 6px}
.premium-phone .preview-product-grid span{display:grid;place-items:center;aspect-ratio:1;border-radius:12px;background:var(--p-soft);color:#9c9bad;font-size:20px}
.premium-phone .preview-team{margin:12px 6px 0;font-size:12px;color:var(--p-text-2)}
.premium-phone .preview-team strong{display:block;color:var(--p-ink);font-size:13px}
.preview-offcanvas{--bs-offcanvas-width:400px}

/* ---------- Employee Room ---------- */
.employee-room-locked{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.employee-room-locked>div:nth-child(2){flex:1;min-width:240px}
.employee-room-locked h3{margin:4px 0 6px}
.employee-room-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;padding:28px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}
.employee-room-hero h2{margin:14px 0 6px}
.employee-room-hero p{color:var(--text-2);margin:0}
.employee-room-metrics{display:grid;gap:10px}
.employee-room-metrics>div{padding:14px 16px;border-radius:var(--radius-md);background:var(--surface-2)}
.employee-room-metrics small,.employee-room-metrics span{display:block;font-size:13px;color:var(--text-3)}
.employee-room-metrics strong{display:block;font-size:18px;margin:2px 0}
.employee-room-metrics .progress{margin-top:8px}
.employee-room-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:16px}
.employee-room-list article .flex-grow-1{min-width:0}
.room-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.room-title-row strong{flex:1 1 auto;min-width:0;font-size:16px;overflow-wrap:anywhere}
.employee-room-list article{display:flex;flex-direction:column;padding:20px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}
.employee-room-list article>.d-flex.mt-3{margin-top:auto!important;padding-top:16px}
.employee-room-list p{margin:4px 0 8px;font-size:13px;color:var(--text-3)}
.room-meta{display:flex;gap:14px;font-size:13px;color:var(--text-3)}
.room-meta i{margin-right:4px}
.room-grant-chips{display:flex;flex-wrap:wrap;gap:6px}
.room-grant-chips span:not(.text-muted){display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:var(--radius-pill);background:var(--success-bg);color:var(--success-fg);font-size:13px;font-weight:700}
.employee-grant-menu{min-width:260px}
.invite-room-picker{display:flex;flex-direction:column;gap:8px}
.invite-room-picker label{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--border);border-radius:var(--radius);font-weight:400;cursor:pointer;margin:0}
.invite-room-picker strong{display:block}
.invite-room-picker small{display:block;color:var(--text-3)}

/* ---------- Wellbeing report ---------- */
.wb-banner{display:flex;gap:10px;align-items:flex-start;padding:12px 16px;border-radius:var(--radius-md);background:var(--success-bg);color:var(--success-fg);font-size:13px;font-weight:700;margin-bottom:16px}
.wb-banner.test{background:var(--warning-bg);color:var(--warning-fg)}
.wb-banner.info{background:var(--info-bg);color:var(--info-fg);font-weight:400}
.page-heading p.wb-enrolled{font-size:16px;color:var(--text);margin-bottom:4px}
.wb-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}
.wb-toolbar form{display:flex;gap:8px;align-items:center}
.wb-meta{color:var(--text-3);font-size:13px}
.wb-dims{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.wb-dim{border:1px solid var(--border);border-radius:var(--radius-md);padding:16px}
.wb-dim h4{font-size:15px;margin:0 0 4px}
.wb-score{font-size:32px;font-weight:800;color:var(--text);line-height:1.2}
.wb-bars{display:grid;gap:8px;margin-top:12px}
.wb-bar{display:grid;grid-template-columns:96px minmax(0,1fr) 92px;gap:10px;align-items:center;font-size:13px;color:var(--text-2)}
.wb-bar .track{display:block;height:10px;border-radius:var(--radius-pill);background:var(--neutral-bg);overflow:hidden}
.wb-bar .fill{display:block;height:100%;background:var(--ink);border-radius:var(--radius-pill)}
.wb-bar .val{text-align:right;color:var(--text)}
.wb-hidden{color:var(--text-3);font-style:italic}
.wb-bar .wb-bar-note{grid-column:2/-1}   /* Pulse: a hidden share replaces both bar and value with its sentence */
/* Pulse page: filters side by side, bars that fit four narrow question cards, tables that fit a phone without side-scrolling */
.pulse-filters .form-select{width:auto;min-width:220px;max-width:100%}
.pulse-dims .wb-bar{grid-template-columns:88px minmax(32px,1fr) 40px}
.pulse-table{table-layout:fixed;width:100%}
.table.pulse-table>thead>tr>th,.pulse-table td{white-space:normal;overflow-wrap:break-word}
.pulse-table th:first-child,.pulse-table td:first-child{width:34%}
@media (max-width:575.98px){.pulse-filters,.pulse-filters .form-select{width:100%}.table.pulse-table>thead>tr>th,.table.pulse-table>tbody>tr>td{padding-left:6px;padding-right:6px}.table.pulse-table>thead>tr>th{letter-spacing:.02em}.pulse-table th:first-child,.pulse-table td:first-child{width:30%}}
.wb-chart{position:relative;height:240px}
.wb-never{margin:0;padding-left:18px;color:var(--text-2)}
.wb-never li{margin-bottom:6px}
.wb-reasons dt{font-weight:700;color:var(--text)}
.wb-reasons dd{color:var(--text-2);margin-bottom:8px}

/* ---------- Onboarding & verification ---------- */
.onboarding-hero{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px;margin-bottom:24px}
.onboarding-welcome,.journey-progress{padding:28px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}
.onboarding-welcome .eyebrow{margin-bottom:6px}
.onboarding-welcome h1{font-size:clamp(28px,3vw,40px);margin-bottom:10px}
.onboarding-welcome p{color:var(--text-2)}
.onboarding-state{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.journey-progress h3{margin-bottom:12px}
.journey-step{display:flex;align-items:center;gap:12px;padding:10px 0}
.journey-step>span:last-child{display:flex;flex-direction:column;min-width:0}
.journey-step small{color:var(--text-3)}
.step-dot{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:var(--surface-2);color:var(--text-2);font-size:13px;font-weight:700}
.journey-step.complete .step-dot{background:var(--success-bg);color:var(--success-fg)}
.journey-step.current .step-dot{background:var(--ink);color:var(--on-ink)}
.path-choice-card{margin:0;font-weight:400}
.path-choice-card .panel{transition:border-color .15s ease,opacity .15s ease}
.path-choice-card input:focus-visible+.panel{box-shadow:var(--focus-ring)}
.setup-checklist{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}
.setup-checklist li{display:flex;gap:10px;color:var(--text-2)}
.setup-checklist i{color:var(--success-fg);margin-top:2px}
.verification-doc-card{height:100%;padding:16px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}
.verification-doc-state{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.verification-doc-card p{font-size:13px;color:var(--text-3)}
.verification-status-card{display:flex;align-items:center;gap:12px;padding:16px;border-radius:var(--radius-md);background:var(--surface-2)}
.verification-status-icon{background:var(--info-bg);color:var(--info-fg);border-radius:50%}

/* ---------- Media ---------- */
.content-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.content-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}
.content-thumb{position:relative;aspect-ratio:16/10;background-color:var(--surface-2);background-size:cover;background-position:center;padding:12px;display:flex;align-items:flex-start;justify-content:space-between}
.content-placeholder{display:grid;place-items:center;color:var(--text-3);font-size:28px}
.content-type{display:inline-flex;padding:2px 10px;border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font-size:13px;font-weight:700;box-shadow:var(--shadow-sm)}
.content-placeholder>.content-type,.content-placeholder>.status-chip{position:absolute;top:12px}
.content-placeholder>.content-type{left:12px}
.content-placeholder>.status-chip{right:12px}
.content-body{display:flex;flex-direction:column;flex:1;padding:16px 20px 20px}
.content-body h4{font-size:16px;margin:4px 0 6px}
.content-body p{font-size:13px;color:var(--text-3)}
.content-meta{display:flex;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--text-3)}
.engagement-row{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--text-3);margin-top:auto;padding-top:12px}
.comment-cell{max-width:420px;color:var(--text-2)}

/* ---------- Bookings ---------- */
.booking-list{display:flex;flex-direction:column;gap:12px}
.booking-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 20px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}
.booking-time strong{display:block}
.booking-time small,.booking-person small,.booking-value small{display:block;color:var(--text-3)}
.booking-actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}
.booking-response-note{font-size:13px;color:var(--text-3)}
.booking-calendar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}

/* ---------- Auth pages & payment return ---------- */
.auth-body{min-height:100vh;margin:0;display:flex;align-items:center;justify-content:center;padding:40px 20px;background:var(--bg)}
.auth-shell,.auth-centered-wrap{width:100%;display:flex;justify-content:center}
.auth-visual{display:none}
.auth-panel{width:100%;display:flex;justify-content:center;background:transparent!important;padding:0!important;min-height:0!important}
.auth-card{width:100%;max-width:460px;padding:40px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl);box-shadow:var(--shadow)}
/* Standalone step pages (_AuthLayout, e.g. setting up two-step during sign-in): wider card for a QR code, its sections flat inside it. */
.auth-card-wide{max-width:640px}
.auth-card .panel{background:transparent;border:0;border-radius:0;padding:0;margin-top:24px}
.auth-card .panel+.panel{padding-top:24px;border-top:1px solid var(--border)}
.auth-card .panel>.panel-head{display:none}   /* the card heading already says it */
.auth-card h2{text-wrap:balance}
.auth-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:28px;padding-top:16px;border-top:1px solid var(--border);font-size:14px;color:var(--text-3)}
.auth-card-foot form{margin:0}
.auth-card-logo{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:28px}
.auth-card-logo small{font-size:13px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--text-3);padding-left:50px}
.auth-card .eyebrow{margin-bottom:6px}
.auth-card h2{font-size:32px;margin-bottom:8px}
.auth-card>p{color:var(--text-2)}
.auth-choice-label{font-size:13px;color:var(--text-3);margin:20px 0 10px}
.auth-credential-form{display:grid;gap:14px}
.auth-field label{display:block}
.auth-field .form-control{min-height:52px;font-size:17px}
.auth-help-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
.auth-help-row a{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.auth-secondary-btn,.auth-btn{min-height:52px;width:100%;--bs-btn-font-size:17px}
.auth-method-note{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:12px 14px;border-radius:var(--radius-md);background:var(--surface-2);color:var(--text-2);font-size:13px}
.auth-status{padding:12px 14px;border-radius:var(--radius-md);background:var(--success-bg);color:var(--success-fg);font-size:14px}
.auth-errors{padding:12px 14px;border-radius:var(--radius-md);background:var(--danger-bg);color:var(--danger-fg);font-size:14px}
/* Phase 16: two-step prompt page and the "set it up by" banner */
.mfa-prompt-required{margin:12px 0;padding:12px 14px;border-radius:var(--radius-md);background:var(--warning-bg);color:var(--warning-fg);font-size:14px}
.mfa-prompt-actions{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.mfa-banner{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:16px;padding:10px 16px;border-radius:var(--radius-md);background:var(--warning-bg);color:var(--warning-fg);font-size:14px}
.mfa-banner a{font-weight:700;color:inherit;text-decoration:underline;text-underline-offset:3px}
.mfa-banner .btn-close{margin-left:auto}
.auth-errors ul{margin:0;padding-left:18px}
.auth-password-policy{font-size:13px;color:var(--text-3);margin-top:4px}
.auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:24px}
.payment-return-card{text-align:center}
.payment-return-card .auth-card-logo{align-items:center}
.payment-return-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 18px;border-radius:50%;background:var(--surface-2);font-size:28px;color:var(--text-2)}
.payment-return-icon.success,.payment-return-icon.text-success{background:var(--success-bg);color:var(--success-fg)}

/* ---------- Gallery lightbox (Products) ---------- */
.product-image.gallery-main{cursor:zoom-in;background-color:var(--surface);border-bottom:1px solid var(--border)}
.gallery-lightbox .modal-dialog{max-width:min(920px,92vw)}
.gallery-lightbox .modal-content{position:relative;background:transparent;border:0;box-shadow:none}
.gallery-lightbox-stage{display:flex;align-items:center;justify-content:center;max-height:78vh}
.gallery-lightbox-img{max-width:100%;max-height:78vh;object-fit:contain;border-radius:var(--radius-md);cursor:zoom-in;transition:transform .2s ease}
.gallery-lightbox-img.zoomed{cursor:zoom-out;transform:scale(1.8)}
.gallery-lightbox-thumbs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.gallery-lightbox-thumbs .gallery-thumb{width:56px;height:56px}
.gallery-lightbox-close{position:absolute;top:-40px;right:0;filter:invert(1) grayscale(100%) brightness(200%)}

/* ---------- SweetAlert (toasts/confirms) ---------- */
.swal2-popup{font-family:var(--font)!important;border-radius:var(--radius-xl)!important;border:1px solid var(--border)!important;background:var(--surface)!important;color:var(--text)!important}
.swal2-title{color:var(--text)!important;font-size:22px!important;font-weight:800!important}
.swal2-html-container{color:var(--text-2)!important;font-size:15px!important}
.swal2-styled.swal2-confirm{background:var(--ink)!important;color:var(--on-ink)!important;border-radius:var(--radius-pill)!important;font-weight:700!important;padding:.7em 1.6em!important}
.swal2-styled.swal2-cancel{background:var(--surface-2)!important;color:var(--text)!important;border-radius:var(--radius-pill)!important;font-weight:700!important;padding:.7em 1.6em!important}
.swal2-styled:focus{box-shadow:var(--focus-ring)!important}

/* ---------- Responsive ---------- */
@media (max-width:1199.98px){
  .sidebar{transform:translateX(-100%);transition:transform .22s ease;box-shadow:var(--shadow-lg)}
  .sidebar.open,.sidebar.show,body.sidebar-open .sidebar{transform:none}
  .sidebar-backdrop{position:fixed;inset:0;z-index:1035;background:var(--overlay)}
  .sidebar-backdrop.show,body.sidebar-open .sidebar-backdrop{display:block}
  .main{margin-left:0}
  .topbar{padding:0 20px}
  .content{padding:24px 24px 56px}
  .onboarding-hero,.employee-room-hero{grid-template-columns:1fr}
}
@media (max-width:767.98px){
  .topbar{gap:10px;padding:0 16px}
  .publish-btn{display:none}
  .content{padding:20px 16px 48px}
  .page-heading,.page-head,.billing-hero{align-items:flex-start;margin-bottom:20px}
  .page-heading h1,.page-head h1,.billing-hero h1,.onboarding-welcome h1{font-size:24px}
  .panel,.panel-card,.form-panel{padding:18px}
  .kpi-grid,.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .kpi-card{padding:14px}
  .kpi-card .kpi-icon{display:none}
  .kpi-card:has(>.kpi-icon)>div>span:first-child{min-height:0;padding-right:0}
  .kpi-card h3{font-size:22px;margin:4px 0 6px}
  .kpi-card small.up,.kpi-card small.down,.kpi-card small.flat{white-space:normal}
  .panel-head,.order-toolbar{flex-direction:column;align-items:flex-start}
  .panel-head>.filter-bar,.order-toolbar>.d-flex{width:100%}
  .filter-bar{width:100%}
  .search-field{min-width:0;flex:1 1 100%}
  .filter-bar .form-select{flex:1}
  .event-demand,.event-info,.event-actions{min-width:0;width:100%;flex:1 1 100%}
  .event-actions{justify-content:flex-start}
  .notification-item,.notification-toolbar{padding-left:16px;padding-right:16px}
  .auth-card{padding:24px}
  .lios-pager{justify-content:center}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
@media print{.sidebar,.topbar,.heading-actions,.btn{display:none!important}.main{margin:0}.content{padding:0;max-width:none}.panel{break-inside:avoid}}

/* ---------- Switches for on/off settings (settings, visibility controls) ---------- */
.settings-toggle-list .form-check-input{width:40px;height:22px;flex:0 0 40px;border-radius:var(--radius-pill);border:0;background-color:var(--surface-3);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");background-position:left center;background-repeat:no-repeat;background-size:contain;transition:background-position .15s ease,background-color .15s ease}
.settings-toggle-list .form-check-input:checked{background-color:var(--ink);background-position:right center;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}
html[data-theme="dark"] .settings-toggle-list .form-check-input:checked{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%231c1b2b'/%3e%3c/svg%3e")}

/* ---------- Orders table ---------- */
.table .order-id{min-width:190px}
.order-buyer{margin-top:8px;font-size:13px;color:var(--text)}
.order-buyer small{display:block;color:var(--text-3)}
.order-shipto{font-size:13px;color:var(--text-2);margin-bottom:10px;max-width:260px}
.table .order-status{min-width:140px}
.table .order-items{min-width:180px;max-width:260px}
.table .order-items strong{white-space:normal}
.table .order-amount{white-space:nowrap}
.table .order-actions{min-width:250px}
.table .order-actions .btn{white-space:nowrap}
.refund-card{padding:14px 16px;border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--border)}
.plan-state{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;border-radius:var(--radius);font-size:14px;text-align:center}
.plan-state.current{background:var(--success-bg);color:var(--success-fg);font-weight:700}
.plan-state.locked{background:var(--surface-2);color:var(--text-3)}

/* ---------- Messages (internal rooms + customer conversations) ---------- */
.chat-shell{display:grid;grid-template-columns:320px 1fr;gap:16px;min-height:calc(100vh - var(--topbar-h) - 220px)}
.chat-list,.chat-thread{display:flex;flex-direction:column;overflow:hidden;min-height:520px}
.chat-tabs{display:flex;gap:4px;margin:10px;padding:4px;border-radius:var(--radius-pill);background:var(--surface-2)}
.chat-tabs a{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;padding:8px 10px;border-radius:var(--radius-pill);font-weight:700;color:var(--text-2);text-decoration:none;font-size:14px;line-height:1.4}
.chat-tabs a .chat-badge{margin-left:2px}
.chat-tabs a.active{background:var(--text);color:var(--bg);font-weight:700}
.chat-items{overflow-y:auto;flex:1}
.chat-item{display:flex;align-items:center;gap:12px;padding:12px 16px;color:var(--text);text-decoration:none;border-bottom:1px solid var(--border)}
.chat-item:hover,.chat-item.active{background:var(--surface-2)}
.chat-item-text{display:flex;flex-direction:column;min-width:0;flex:1}
.chat-item-text small{color:var(--text-3);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-item-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.chat-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:var(--radius-pill);background:var(--ink);color:var(--on-ink);font-size:13px;font-weight:700}
.chat-thread-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--border)}
.chat-thread-head div{display:flex;flex-direction:column}
.chat-thread-head small{color:var(--text-3);font-size:13px}
.chat-messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;max-height:60vh}
.chat-msg{max-width:72%;align-self:flex-start;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-md) var(--radius-md) var(--radius-md) 6px;padding:10px 14px}
.chat-msg.customer{background:var(--info-bg);color:var(--info-fg);border-color:transparent}
.chat-msg.mine{align-self:flex-end;border-radius:var(--radius-md) var(--radius-md) 6px var(--radius-md);background:var(--ink);color:var(--on-ink);border-color:transparent}
.chat-msg-meta{font-size:13px;opacity:.75;margin-bottom:4px}
.chat-msg-body{white-space:pre-wrap;word-break:break-word}
.chat-composer{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--border)}
.chat-composer textarea{resize:none}
.chat-closed{padding:14px 20px;border-top:1px solid var(--border)}
@media (max-width:900px){.chat-shell{grid-template-columns:1fr}.chat-msg{max-width:90%}
  /* Phones: the conversation list, or the conversation someone opened (with a back button), never both stacked. */
  .chat-list,.chat-thread{min-height:0}.chat-shell.is-thread .chat-list{display:none}.chat-shell:not(.is-thread) .chat-thread{display:none}.chat-back{display:inline-flex}}
.chat-back{display:none}

/* ---- Former inline styles (security phase 13, CSP style-src without 'unsafe-inline') ----
   One class per value that used to be a style="" attribute. !important keeps the old precedence (an inline style beat every rule),
   so the pages look exactly as before. Values computed in Razor are data-width / data-bg / data-grid-cols, applied by site.js. */
.s-block-pointer{display:block!important;cursor:pointer!important}
.s-cover-sm{object-fit:cover!important;border-radius:var(--radius-sm)!important}
.s-fs-2-5rem{font-size:2.5rem!important}
.s-fs-15{font-size:15px!important}
.s-h-90-cover{height:90px!important;object-fit:cover!important}
.s-h-280{height:280px!important}
.s-h-340{height:340px!important}
.s-minw-260{min-width:260px!important}
.s-minw-300{min-width:300px!important}
.s-minw-330{min-width:330px!important}
.s-mw-160{max-width:160px!important}
.s-mw-200{max-width:200px!important}
.s-mw-220{max-width:220px!important}
.s-mw-240{max-width:240px!important}
.s-mw-320{max-width:320px!important}
.s-mw-360{max-width:360px!important}
.s-mw-420{max-width:420px!important}
.s-mw-520{max-width:520px!important}
.s-mw-560{max-width:560px!important}
.s-mw-720{max-width:720px!important}
.s-qr-box{width:200px!important;background:#fff!important}
.s-top-90{top:90px!important}
.s-w-44{width:44px!important}
.s-w-70{width:70px!important}
.s-w-100{width:100px!important}
.s-w-120{width:120px!important}
.s-w-135{width:135px!important}
.s-w-150{width:150px!important}

/* ---------- Pre-demo polish (2026-10-27 audit) ---------- */
/* "More info" / "Request more information" buttons: Bootstrap's yellow on white was ~1.6:1; use the warning tokens. */
.btn-outline-warning{
  --bs-btn-color:var(--warning-fg);--bs-btn-bg:var(--surface);--bs-btn-border-color:var(--border-strong);
  --bs-btn-hover-color:var(--warning-fg);--bs-btn-hover-bg:var(--warning-bg);--bs-btn-hover-border-color:var(--warning-fg);
  --bs-btn-active-color:var(--warning-fg);--bs-btn-active-bg:var(--warning-bg);--bs-btn-active-border-color:var(--warning-fg);
}
/* Dark theme: checked radios and switches draw their dot in the on-ink colour (Bootstrap's white dot vanished on the light ink). */
html[data-theme="dark"] .form-check-input:checked[type=radio]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%231c1b2b'/%3e%3c/svg%3e")}
html[data-theme="dark"] .form-switch .form-check-input:checked{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%231c1b2b'/%3e%3c/svg%3e")}
/* The page behind the open mobile menu does not scroll. */
body.nav-open{overflow:hidden}
@media (max-width:767.98px){
  /* Two KPI cards per row: let large amounts wrap instead of "AED 123,4…". */
  .kpi-card h3{overflow-wrap:break-word}
}
