/* ======================================================================
   SHABAB NEXUS 1.8.5 — PREMIUM LOOK (+ 1.8.5: licence wizard, logins & access, company documents) (one SHABAB identity: navy + gold, Montserrat + Cormorant, self-hosted, strict CSP, no inline styles)
   THEME STUDIO: html[data-skin] = navygold | royal | ivory | midnight | emerald | sand (each light + dark), html[data-accent], html[data-fs],
   html[data-density], html[data-radius], html[data-logo]. Light / dark / auto: html[data-theme] (per device, as since 1.0).
   Every class name of 1.0 … 1.8.3 still exists (the 1.6 PRO LOOK layer is folded in here). Phone first (360 / 390 / 430), print friendly.
   HOW IT WORKS: each skin only defines --L-* (light) and --D-* (dark) tokens; the two mode blocks below map them onto the live tokens once.
   ====================================================================== */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/montserrat-400-latin.woff2?v=1.6.0) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/montserrat-600-latin.woff2?v=1.6.0) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/montserrat-700-latin.woff2?v=1.6.0) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/cormorant-700-latin.woff2?v=1.6.0) format("woff2"); }

/* ---------- 1. SKIN TOKENS (brand guide 2.0: navy #0B263A, gold #D9AE4E, deep #081D2E, ivory #F4F1EA) — default = SHABAB Navy Gold */
:root, html[data-skin="navygold"] {
  --navy: #0B263A; --navy2: #081D2E; --navy3: #173D55; --cream: #F4F1EA;
  --L-bg: #F2EFE8; --L-bg2: #E9E4D8; --L-card: #FFFFFF; --L-soft: #F7F4EE; --L-ink: #132433; --L-muted: #5A6B7B; --L-line: #DCD6C9; --L-chip: #EFE7D3; --L-chip-ink: #0B263A; --L-link: #123B5A; --L-zebra: #FAF8F3; --L-hover: #F3EEE2;
  --L-shadow: 0 1px 2px rgba(11,38,58,.05), 0 8px 24px rgba(11,38,58,.07); --L-shadow2: 0 2px 4px rgba(11,38,58,.07), 0 14px 36px rgba(11,38,58,.12);
  --L-red: #B3261E; --L-red-bg: #FBECEA; --L-amber: #9A5B00; --L-amber-bg: #FFF3DF; --L-green: #1B6E3A; --L-green-bg: #E6F3EA;
  --D-bg: #06121D; --D-bg2: #0A1C2B; --D-card: #0E2538; --D-soft: #10304A; --D-ink: #F4F1EA; --D-muted: #AEBBC7; --D-line: #1F3F58; --D-chip: #184460; --D-chip-ink: #F4F1EA; --D-link: #E2BA5E; --D-zebra: #0D2131; --D-hover: #133A56;
  --D-shadow: 0 1px 2px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.4); --D-shadow2: 0 2px 4px rgba(0,0,0,.5), 0 16px 44px rgba(0,0,0,.5);
  --D-red: #FF7B72; --D-red-bg: #3B171A; --D-amber: #FFC26B; --D-amber-bg: #3A2A10; --D-green: #6ED897; --D-green-bg: #0F2E1C;
  --side1: #0B263A; --side2: #071A29; --side-ink: #D7DEE6; --side-muted: #AAB8C5; --top1: #081D2E; --top2: #0D2C43; --top3: #0B263A;
  --gold: #D9AE4E; --gold2: #E8C56B; --gold3: #B48A2C; --gold-ink: #2A1C00; --hair: rgba(217,174,78,.42); --hair2: rgba(217,174,78,.18);
  --L-page-nav: #0B263A; --D-page-nav: #F4F1EA;
}
html[data-skin="royal"] {
  --navy: #141414; --navy2: #0A0A0A; --navy3: #2A2A2A; --cream: #F6F2EA;
  --L-bg: #F3F1EC; --L-bg2: #E8E4DC; --L-card: #FFFFFF; --L-soft: #F7F5F0; --L-ink: #151515; --L-muted: #5F5F5F; --L-line: #DED9CF; --L-chip: #EFE8D6; --L-chip-ink: #2A2A2A; --L-link: #4D3A0C; --L-zebra: #FAF8F4; --L-hover: #F2EEE4;
  --D-bg: #0A0A0A; --D-bg2: #121212; --D-card: #181818; --D-soft: #222222; --D-ink: #F2EEE6; --D-muted: #ADA89E; --D-line: #2E2E2E; --D-chip: #2A2619; --D-chip-ink: #F2EEE6; --D-link: #E3B341; --D-zebra: #151515; --D-hover: #262320;
  --side1: #121212; --side2: #050505; --side-ink: #E0DCD3; --side-muted: #A6A29A; --top1: #000000; --top2: #1A1A1A; --top3: #0D0D0D;
  --gold: #D4A63A; --gold2: #E8C25C; --gold3: #A8812A; --hair: rgba(212,166,58,.45); --hair2: rgba(212,166,58,.18);
  --L-page-nav: #1A1A1A; --D-page-nav: #F2EEE6;
}
html[data-skin="ivory"] {
  --navy: #2B2F36; --navy2: #1E2126; --navy3: #3C414A; --cream: #FFFDF8;
  --L-bg: #FBF8F1; --L-bg2: #F3EEE1; --L-card: #FFFFFF; --L-soft: #F8F5EC; --L-ink: #262A30; --L-muted: #6C6F74; --L-line: #E6E0D2; --L-chip: #F3ECD8; --L-chip-ink: #3B3306; --L-link: #6B5214; --L-zebra: #FCFAF5; --L-hover: #F6F1E4;
  --D-bg: #171613; --D-bg2: #1F1E1A; --D-card: #24231F; --D-soft: #2D2C27; --D-ink: #F2EEE4; --D-muted: #B2ADA2; --D-line: #39372F; --D-chip: #3A3522; --D-chip-ink: #F2EEE4; --D-link: #E3C06A; --D-zebra: #211F1B; --D-hover: #2F2D26;
  --side1: #FFFFFF; --side2: #F6F2E8; --side-ink: #2B2F36; --side-muted: #6C6F74; --top1: #FFFFFF; --top2: #FBF8F1; --top3: #FFFFFF;
  --gold: #B8902E; --gold2: #D4AD4A; --gold3: #8E6E22; --hair: rgba(184,144,46,.5); --hair2: rgba(184,144,46,.18);
  --L-page-nav: #2B2F36; --D-page-nav: #F2EEE4;
}
html[data-skin="midnight"] {
  --navy: #0B2A6F; --navy2: #06194A; --navy3: #0A1A47; --cream: #F3F5FA;
  --L-bg: #EEF1F8; --L-bg2: #E2E7F2; --L-card: #FFFFFF; --L-soft: #F4F6FB; --L-ink: #0A1A47; --L-muted: #566480; --L-line: #D7DEEC; --L-chip: #E4E9F7; --L-chip-ink: #0B2A6F; --L-link: #0B2A6F; --L-zebra: #F7F9FD; --L-hover: #EDF1FA;
  --D-bg: #050E26; --D-bg2: #081538; --D-card: #0B1E4A; --D-soft: #10275C; --D-ink: #EEF1F8; --D-muted: #A9B6D6; --D-line: #1C3470; --D-chip: #16306E; --D-chip-ink: #EEF1F8; --D-link: #E3B341; --D-zebra: #0A1A43; --D-hover: #13296A;
  --side1: #0B2A6F; --side2: #06194A; --side-ink: #DCE3F5; --side-muted: #A9B6D6; --top1: #06194A; --top2: #0B2A6F; --top3: #0A1A47;
  --gold: #E3B341; --gold2: #F0C65E; --gold3: #B88B22; --hair: rgba(227,179,65,.45); --hair2: rgba(227,179,65,.18);
  --L-page-nav: #0B2A6F; --D-page-nav: #EEF1F8;
}
html[data-skin="emerald"] {
  --navy: #0F3D2E; --navy2: #092B20; --navy3: #17523E; --cream: #F2F5F0;
  --L-bg: #EFF3EE; --L-bg2: #E3EAE2; --L-card: #FFFFFF; --L-soft: #F4F7F3; --L-ink: #10261D; --L-muted: #5A6D62; --L-line: #D6DFD8; --L-chip: #E4EEE3; --L-chip-ink: #0F3D2E; --L-link: #0F3D2E; --L-zebra: #F7FAF6; --L-hover: #ECF2EA;
  --D-bg: #06130E; --D-bg2: #0A1E16; --D-card: #0E2A20; --D-soft: #13382B; --D-ink: #F0F4EE; --D-muted: #A8BDB1; --D-line: #1C4636; --D-chip: #174A38; --D-chip-ink: #F0F4EE; --D-link: #E2BA5E; --D-zebra: #0C2419; --D-hover: #164233;
  --side1: #0F3D2E; --side2: #092B20; --side-ink: #DCE6DF; --side-muted: #A8BDB1; --top1: #092B20; --top2: #124A38; --top3: #0F3D2E;
  --gold: #D9AE4E; --gold2: #E8C56B; --gold3: #B48A2C; --hair: rgba(217,174,78,.45); --hair2: rgba(217,174,78,.18);
  --L-page-nav: #0F3D2E; --D-page-nav: #F0F4EE;
}
html[data-skin="sand"] {
  --navy: #4A3A28; --navy2: #33281B; --navy3: #5E4B34; --cream: #FBF6EE;
  --L-bg: #F6EFE3; --L-bg2: #EDE2D0; --L-card: #FFFDF9; --L-soft: #F9F3E9; --L-ink: #2E2418; --L-muted: #6E6253; --L-line: #E3D7C3; --L-chip: #F0E4CF; --L-chip-ink: #4A3A28; --L-link: #6B4A1E; --L-zebra: #FBF7F0; --L-hover: #F4EBDC;
  --D-bg: #171310; --D-bg2: #211B15; --D-card: #28211A; --D-soft: #332A21; --D-ink: #F3EBDF; --D-muted: #B6A897; --D-line: #3E3328; --D-chip: #3F3222; --D-chip-ink: #F3EBDF; --D-link: #E0B25A; --D-zebra: #241E17; --D-hover: #352B22;
  --side1: #4A3A28; --side2: #33281B; --side-ink: #EDE3D5; --side-muted: #C2B3A0; --top1: #33281B; --top2: #5E4B34; --top3: #4A3A28;
  --gold: #C8961E; --gold2: #E0B25A; --gold3: #9C7314; --hair: rgba(200,150,30,.45); --hair2: rgba(200,150,30,.18);
  --L-page-nav: #4A3A28; --D-page-nav: #F3EBDF;
}
/* accent colour (replaces the gold of the chosen theme) */
html[data-accent="gold"] { --gold: #D9AE4E; --gold2: #E8C56B; --gold3: #B48A2C; --gold-ink: #2A1C00; --hair: rgba(217,174,78,.45); --hair2: rgba(217,174,78,.18); }
html[data-accent="champagne"] { --gold: #E6CF8E; --gold2: #F2E2B4; --gold3: #B9A062; --gold-ink: #3A2E0C; --hair: rgba(230,207,142,.5); --hair2: rgba(230,207,142,.2); }
html[data-accent="rose"] { --gold: #D29A86; --gold2: #E6B6A5; --gold3: #A86F5C; --gold-ink: #3A1A10; --hair: rgba(210,154,134,.5); --hair2: rgba(210,154,134,.2); }
html[data-accent="copper"] { --gold: #C27A3C; --gold2: #D99A62; --gold3: #8F5522; --gold-ink: #2E1606; --hair: rgba(194,122,60,.5); --hair2: rgba(194,122,60,.2); }
html[data-accent="teal"] { --gold: #3FB8A6; --gold2: #6FD2C3; --gold3: #238676; --gold-ink: #062A25; --hair: rgba(63,184,166,.5); --hair2: rgba(63,184,166,.2); }
html[data-accent="sapphire"] { --gold: #5B8DEF; --gold2: #86ABF5; --gold3: #3461B8; --gold-ink: #06183A; --hair: rgba(91,141,239,.5); --hair2: rgba(91,141,239,.2); }
html[data-accent="silver"] { --gold: #B9C0CA; --gold2: #D6DBE2; --gold3: #8A929C; --gold-ink: #1C222B; --hair: rgba(185,192,202,.55); --hair2: rgba(185,192,202,.22); }

/* ---------- 2. MODE MAPPING (written once) */
:root {
  --bg: var(--L-bg); --bg2: var(--L-bg2); --card: var(--L-card); --soft: var(--L-soft); --ink: var(--L-ink); --muted: var(--L-muted); --line: var(--L-line); --chip: var(--L-chip); --chip-ink: var(--L-chip-ink); --blue: var(--L-link);
  --zebra: var(--L-zebra); --hover: var(--L-hover); --shadow: var(--L-shadow); --shadow2: var(--L-shadow2); --red: var(--L-red); --red-bg: var(--L-red-bg); --amber: var(--L-amber); --amber-bg: var(--L-amber-bg); --green: var(--L-green); --green-bg: var(--L-green-bg);
  --page-nav: var(--L-page-nav); --glass: rgba(255,255,255,.94); --glass-line: var(--hair); --focus: rgba(217,174,78,.35);
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --radius: 14px; --radius-sm: 10px; --radius-xs: 8px; --pad: 16px; --pad-sm: 12px; --gap: 12px; --fs: 14.5px; --topH: 58px; --sideW: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--D-bg); --bg2: var(--D-bg2); --card: var(--D-card); --soft: var(--D-soft); --ink: var(--D-ink); --muted: var(--D-muted); --line: var(--D-line); --chip: var(--D-chip); --chip-ink: var(--D-chip-ink); --blue: var(--D-link);
    --zebra: var(--D-zebra); --hover: var(--D-hover); --shadow: var(--D-shadow); --shadow2: var(--D-shadow2); --red: var(--D-red); --red-bg: var(--D-red-bg); --amber: var(--D-amber); --amber-bg: var(--D-amber-bg); --green: var(--D-green); --green-bg: var(--D-green-bg);
    --page-nav: var(--D-page-nav); --glass: rgba(10,22,34,.94); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--D-bg); --bg2: var(--D-bg2); --card: var(--D-card); --soft: var(--D-soft); --ink: var(--D-ink); --muted: var(--D-muted); --line: var(--D-line); --chip: var(--D-chip); --chip-ink: var(--D-chip-ink); --blue: var(--D-link);
  --zebra: var(--D-zebra); --hover: var(--D-hover); --shadow: var(--D-shadow); --shadow2: var(--D-shadow2); --red: var(--D-red); --red-bg: var(--D-red-bg); --amber: var(--D-amber); --amber-bg: var(--D-amber-bg); --green: var(--D-green); --green-bg: var(--D-green-bg);
  --page-nav: var(--D-page-nav); --glass: rgba(10,22,34,.94); color-scheme: dark;
}
/* ivory keeps a light sidebar / top bar: readable text on it in every mode */
html[data-skin="ivory"] .top, html[data-skin="ivory"] .side { color: var(--side-ink); }
/* font size · density · corners · logo (Theme Studio) */
html[data-fs="s"] { --fs: 13.5px; } html[data-fs="l"] { --fs: 16px; }
html[data-density="compact"] { --pad: 11px; --pad-sm: 8px; --gap: 8px; }
html[data-radius="sharp"] { --radius: 6px; --radius-sm: 4px; --radius-xs: 3px; } html[data-radius="round"] { --radius: 22px; --radius-sm: 16px; --radius-xs: 12px; }
html[data-logo="off"] .side-brand { display: none; }

/* ---------- 3. BASE */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font: var(--fs)/1.5 var(--font); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.boot { display: grid; place-items: center; min-height: 80vh; color: var(--muted); letter-spacing: .2em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .88em; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.amber { color: var(--amber); } .red { color: var(--red); } .green { color: var(--green); }
.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
textarea.mono { font-size: 12.5px; }
.hidden-x { position: fixed; left: -9999px; top: 0; opacity: 0; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 4. LOGIN / SETUP */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(900px 520px at 85% -10%, var(--hair2) 0%, transparent 60%), radial-gradient(700px 500px at -10% 110%, var(--hair2) 0%, transparent 55%), linear-gradient(160deg, var(--navy3) 0%, var(--navy) 45%, var(--navy2) 100%); }
.auth-card { width: 100%; max-width: 410px; background: var(--card); border-radius: calc(var(--radius) + 6px); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px var(--hair); overflow: hidden; border-top: 3px solid var(--gold); }
.auth-card .logo { display: block; width: 100%; height: auto; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px 20px 6px; }
.auth-brand .logo { width: 72px; height: 72px; flex: none; border-radius: 18px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.28)); }
.auth-brand b { display: block; font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: .2em; color: var(--page-nav); }
.auth-brand small { display: block; margin-top: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .26em; color: var(--gold3); }
@media (max-width: 340px) { .auth-brand { gap: 10px; } .auth-brand .logo { width: 58px; height: 58px; } .auth-brand b { font-size: 24px; } }
.auth-body { padding: 16px 22px 24px; }
.auth h1 { margin: 0 0 2px; font-family: var(--serif); font-size: 21px; letter-spacing: .01em; font-weight: 700; color: var(--page-nav); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth .sub { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; }
.field { display: block; margin: 10px 0; }
.field span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); outline: none; min-width: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--focus); }
.check { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; font-size: 13px; color: var(--muted); }
.msg { margin: 10px 0 0; padding: 9px 11px; border-radius: var(--radius-sm); font-size: 13.5px; background: var(--soft); border: 1px solid var(--line); }
.msg.err { background: var(--red-bg); color: var(--red); border-color: transparent; }
.msg.ok { background: var(--green-bg); color: var(--green); border-color: transparent; }
.msg.warn { background: var(--amber-bg); color: var(--amber); border-color: transparent; }

/* ---------- 5. BUTTONS · CHIPS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--hair); background: linear-gradient(180deg, var(--navy3), var(--navy)); color: var(--cream); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 42px; letter-spacing: .02em; box-shadow: 0 2px 8px rgba(0,0,0,.14); transition: transform .08s ease, filter .15s ease, box-shadow .15s ease, border-color .15s ease; }
.btn:hover { filter: brightness(1.1); border-color: var(--gold2); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; color: var(--blue); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--hover); border-color: var(--hair); }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold3)); color: var(--gold-ink, #2A1C00); border-color: transparent; box-shadow: 0 3px 12px var(--hair); }
.btn.red { background: linear-gradient(180deg, #D23B3B, #A92222); border-color: rgba(255,255,255,.2); color: #fff; }
.btn.wa { background: #128C7E; border-color: rgba(255,255,255,.25); color: #fff; }
.btn.dk { background: #6D28D9; border-color: rgba(255,255,255,.25); color: #fff; }
.btn.sm { padding: 6px 10px; min-height: 34px; font-size: 13px; }
.btn.red-t { color: var(--red); border-color: var(--red); } .btn.red-t.red { color: #fff; background: var(--red); }
.btn .ic, .kpi .ic { width: 18px; height: 18px; display: inline-flex; vertical-align: -3px; }
.btn .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row > input.field, .row > select.field { flex: 1 1 160px; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); }
.row > select.field { flex: 0 1 160px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; background: var(--chip); color: var(--chip-ink); white-space: nowrap; line-height: 1.5; }
.chip.cc { background: var(--navy); color: var(--gold2); border: 1px solid var(--gold); letter-spacing: .1em; }
.chip.on { background: var(--green-bg); color: var(--green); }
.chip.off { background: var(--red-bg); color: var(--red); }
.chip.ns { background: var(--soft); color: var(--muted); border: 1px dashed var(--line); }
.chip.soon { background: var(--amber-bg); color: var(--amber); }
.chip.wa { background: #E3F6EA; color: #0E7A3E; border: 1px solid #9FDDB4; letter-spacing: .1em; }
.chip.dk { background: #EDE9FE; color: #5B21B6; border: 1px solid #C4B5FD; letter-spacing: .1em; }
:root[data-theme="dark"] .chip.wa { background: #0F2E1C; color: #5ED38A; border-color: #1E5A36; } :root[data-theme="dark"] .chip.dk { background: #2A1B4E; color: #C4B5FD; border-color: #4C3A8A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.wa { background: #0F2E1C; color: #5ED38A; border-color: #1E5A36; } :root:not([data-theme="light"]) .chip.dk { background: #2A1B4E; color: #C4B5FD; border-color: #4C3A8A; } }
.badge-red { display: inline-block; background: var(--red); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tag { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0 6px; }

/* ---------- 6. SHELL: top bar · sidebar · main · bottom bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: var(--topH); padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); color: var(--cream); background: linear-gradient(90deg, var(--top1) 0%, var(--top2) 55%, var(--top3) 100%); border-bottom: 1px solid var(--gold); box-shadow: 0 2px 16px rgba(0,0,0,.28); }
.top .brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.top .brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.top .brand b { letter-spacing: .18em; font-size: 14.5px; white-space: nowrap; font-weight: 700; }
.top .brand small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--gold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.top .brand > div { min-width: 0; }
.top .tbtn { background: var(--hair2); border: 1px solid var(--hair); color: inherit; border-radius: var(--radius-xs); min-width: 38px; height: 36px; padding: 0 10px; cursor: pointer; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; transition: background .15s ease; }
.top .tbtn:hover { background: var(--hair); }
.top .tbtn.keychip { background: linear-gradient(180deg, var(--gold2), var(--gold3)); color: var(--gold-ink, #2A1C00); border-color: var(--gold2); white-space: nowrap; }
.tbtn .ic svg, .tbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tsearch { flex: 1 1 260px; max-width: 420px; margin: 0 8px; }
.tsearch input { width: 100%; height: 38px; padding: 0 12px; border-radius: var(--radius-xs); border: 1px solid var(--hair); background: rgba(255,255,255,.08); color: inherit; font: inherit; }
.tsearch input::placeholder { color: var(--side-muted); }
html[data-skin="ivory"] .tsearch input { background: var(--soft); }
.show-phone { display: none; }
@media (max-width: 760px) { .tsearch { display: none; } .show-phone { display: inline-flex; } }
.layout { display: flex; min-height: calc(100vh - var(--topH)); }
.side { width: var(--sideW); flex: none; background: linear-gradient(180deg, var(--side1) 0%, var(--side2) 100%); border-right: 1px solid var(--hair); padding: 10px 10px 90px; position: sticky; top: var(--topH); height: calc(100vh - var(--topH)); overflow-y: auto; color: var(--side-ink); scrollbar-width: thin; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; margin: 0 0 4px; border-bottom: 1px solid var(--hair); }
.side-brand img { width: 30px; height: 30px; flex: none; border-radius: 8px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.side-brand b { display: block; font-size: 11px; letter-spacing: .22em; color: var(--gold2); font-weight: 700; white-space: nowrap; }
.side-brand small { display: block; font-size: 9.5px; letter-spacing: .2em; color: var(--side-muted); font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-brand > div { min-width: 0; }
.side h4 { color: var(--gold2); letter-spacing: .24em; font-size: 10px; font-weight: 700; margin: 16px 12px 6px; text-transform: uppercase; position: relative; }
.side h4::after { content: ""; display: block; height: 1px; margin-top: 6px; background: linear-gradient(90deg, var(--hair), transparent); }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--side-ink); text-decoration: none; font-weight: 500; position: relative; transition: background .15s ease, color .15s ease; }
.side a > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side a .ic { display: inline-flex; width: 20px; height: 20px; flex: none; color: var(--side-muted); }
.side a .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side a:hover { background: var(--hair2); color: var(--gold2); }
.side a:hover .ic { color: var(--gold2); }
.side a.on { background: linear-gradient(90deg, var(--hair2), transparent); color: var(--gold2); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.side a.on .ic { color: var(--gold2); }
.side .badge { background: var(--red); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11.5px; font-weight: 700; }
.side .tag { color: var(--side-muted); border-color: rgba(128,128,128,.4); }
.side a.on .tag { color: var(--gold2); border-color: var(--hair); }
.side .chip.cc { background: transparent; color: var(--gold2); border: 1px solid var(--hair); font-size: 10.5px; padding: 1px 7px; }
.side p.muted { padding: 0 10px; color: var(--side-muted); font-size: 11px; letter-spacing: .08em; }
html[data-skin="ivory"] .side a.on { background: var(--L-chip); }
main { flex: 1; min-width: 0; padding: var(--pad); padding-bottom: 96px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.bottom { display: none; }
.scrim { display: none; }
@media (max-width: 899px) {
  .side { position: fixed; z-index: 40; top: 0; left: 0; height: 100vh; width: min(84vw, 300px); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); padding-top: max(16px, env(safe-area-inset-top)); }
  .side.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(3,12,35,.45); z-index: 39; }
  .bottom { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--glass); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--glass-line); box-shadow: 0 -6px 20px rgba(0,0,0,.12); padding: 4px 10px; padding-bottom: max(4px, env(safe-area-inset-bottom)); gap: 6px; }
  .bottom button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; padding: 6px 2px; min-height: 52px; border-radius: var(--radius-sm); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
  .bottom button .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--gold2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bottom button:active { background: var(--hair2); }
  .top .hide-phone { display: none; }
  main { padding: 14px 14px calc(100px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) { .top .menu-btn { display: none; } }
@media (max-width: 380px) { main { padding-left: 12px; padding-right: 12px; } .top .brand small { letter-spacing: .08em; } }
html.in-app .top { padding-top: 8px; }

/* ---------- 7. CONTENT: headings · cards · KPIs · grids */
h2.page { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: .01em; color: var(--page-nav); margin: 2px 0 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.15; }
h2.page::after { content: ""; flex-basis: 100%; height: 2px; max-width: 54px; margin-top: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
h2.page .chip, h2.page small, h2.page span.muted { font-family: var(--font); font-size: 12.5px; }
h2.page .ic { width: 24px; height: 24px; display: inline-flex; vertical-align: -4px; color: var(--gold); }
h2.page .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
h3 { margin: 20px 0 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h3 .muted.small, h3 .chip { text-transform: none; letter-spacing: .02em; font-weight: 500; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 1px solid var(--hair); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--pad); min-width: 0; transition: box-shadow .2s ease; }
.card:hover { box-shadow: var(--shadow2); }
.card + .card { margin-top: var(--gap); }
.card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c2 { grid-template-columns: 1fr; } }
.grid + .grid { margin-top: var(--gap); }
.grid > .card + .card, .grid .card + .card { margin-top: 0; }
[data-mt] { margin-top: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px 11px; box-shadow: var(--shadow); position: relative; overflow: hidden; min-width: 0; transition: box-shadow .2s ease, transform .12s ease; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--hair), transparent 70%); }
.kpi.red::before { background: var(--red); } .kpi.green::before { background: var(--green); } .kpi.gold::before { background: var(--gold); } .kpi.wa::before { background: #1FA855; } .kpi.dk::before { background: #7C3AED; }
.kpi .l { font-size: 10.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-size: 20px; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.kpi .v.red { color: var(--red); } .kpi .v.green { color: var(--green); }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: normal; overflow: visible; line-height: 1.35; }
@media (max-width: 460px) { .kpi .v { font-size: 16.5px; } .kpi { padding: 11px 11px 10px; } .top .brand small { letter-spacing: .12em; } }
a.kpi { text-decoration: none; color: inherit; display: block; }
a.kpi:hover { box-shadow: var(--shadow2); transform: translateY(-1px); }
.country { display: flex; flex-direction: column; gap: 8px; }
.country .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.country .head b { font-size: 16px; }
.country .kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13.5px; }
.country .kv span:nth-child(odd) { color: var(--muted); }
.country .kv span:nth-child(even) { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy3), var(--gold)); border-radius: 99px; transition: width .4s ease; }
.bar.done i { background: linear-gradient(90deg, #1B7F3B, #36B368); }
.alertbox { background: var(--red-bg); border: 1px solid var(--red); border-left-width: 5px; color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: var(--gap); }
.alertbox b { color: var(--red); }
.alertbox ul { margin: 6px 0 4px; padding-left: 18px; }
.alertbox li { margin: 2px 0; word-break: break-word; }
.okbox { background: var(--green-bg); border: 1px solid var(--green); color: var(--green); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: var(--gap); font-weight: 600; }
.banner { background: var(--amber-bg); color: var(--amber); border: 1px solid currentColor; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; font-weight: 600; margin-bottom: var(--gap); }
.warnbox { border: 1px solid var(--amber); background: var(--amber-bg); }
.warnbox p, .warnbox b { color: var(--ink); }
.help { font-size: 13px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.help ol { margin: 6px 0 0; padding-left: 18px; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--soft); }
.empty a { font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 2px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; min-width: 0; }
.list li > div { min-width: 0; word-break: break-word; }
.list li:last-child { border-bottom: 0; }
.list li b.num, .list li .num { white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }
.lvl { width: 9px; height: 9px; border-radius: 99px; flex: none; margin-top: 6px; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.lvl.red { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.tabs button, .tabs a { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 6px 12px; cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease; }
.tabs button:hover, .tabs a:hover { background: var(--hover); }
.tabs button.on, .tabs a.on { background: var(--navy); color: var(--gold2); border-color: var(--gold); }
.tabs a .ic { width: 16px; height: 16px; display: inline-flex; vertical-align: -3px; } .tabs a .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form2 { display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); background: var(--navy2); color: var(--cream); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 60; box-shadow: var(--shadow2); max-width: calc(100vw - 32px); border-bottom: 2px solid var(--gold); text-align: center; }
.soon-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin-top: 10px; }
.soon-tile { border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; background: var(--card); text-align: center; }
.soon-tile b { display: block; margin: 6px 0 2px; }
a.soon-tile { text-decoration: none; color: var(--ink); }

/* ---------- 8. TABLES: sticky header (PC), zebra, hover, numbers right */
.tbl-wrap { width: 100%; min-width: 0; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.t th, table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { font-size: 10.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; white-space: nowrap; background: var(--card); border-bottom: 1px solid var(--hair); }
table.t thead th, table.t > tr:first-child th, table.t > tbody > tr:first-child th { position: sticky; top: var(--topH); z-index: 1; }
table.t tbody tr:nth-child(even) td { background: var(--zebra); }
table.t tbody tr:hover td { background: var(--hover); }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.bad td { color: var(--red); }
table.t tr:last-child td { border-bottom: 0; }
table.t a { font-weight: 600; }
@media (max-width: 899px) { .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } table.t thead th, table.t > tr:first-child th, table.t > tbody > tr:first-child th { position: static; } }
.chart { max-width: 640px; }
.chart .val { font-size: 11px; fill: currentColor; font-weight: 600; }
.chart rect.bar-hq { fill: var(--navy3); } .chart rect.bar-off { fill: var(--muted); }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .lbl { font-size: 10px; fill: currentColor; opacity: .7; font-weight: 600; }
.chart .legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; margin-top: 6px; color: var(--muted); }
.chart .legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart .legend .dot.c0 { background: #123B5A; } .chart .legend .dot.c1 { background: #D9AE4E; } .chart .legend .dot.c2 { background: #1E8449; } .chart .legend .dot.c3 { background: #C0392B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chart rect[fill="#123B5A"] { fill: #6FA8DC; } :root:not([data-theme="light"]) .chart .legend .dot.c0 { background: #6FA8DC; } }
:root[data-theme="dark"] .chart rect[fill="#123B5A"] { fill: #6FA8DC; } :root[data-theme="dark"] .chart .legend .dot.c0 { background: #6FA8DC; }

/* ---------- 9. MODALS · LOCKER · LICENCES */
.modal { position: fixed; inset: 0; background: rgba(3,12,35,.55); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal .box { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border-radius: calc(var(--radius) + 2px); padding: 16px; border-top: 3px solid var(--gold); box-shadow: var(--shadow2); }
.litem { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.litem .info { min-width: 0; flex: 1; }
.litem .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.litem .info span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw { display: flex; gap: 6px; }
.pw input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.keyok { border-color: var(--green); }
.prodgrid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .prodgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prod { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: var(--soft); cursor: pointer; min-width: 0; position: relative; transition: border-color .15s ease, box-shadow .15s ease; }
.prod input { position: absolute; opacity: 0; pointer-events: none; }
.prod b { font-size: 13.5px; letter-spacing: .02em; overflow-wrap: anywhere; }
.prod small { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.prod.on { border-color: var(--gold); background: var(--chip); box-shadow: 0 0 0 2px var(--focus); }
.prod:focus-within { outline: 2px solid var(--gold); outline-offset: 1px; }
.codecard { border-color: var(--gold); margin-top: 12px; }
.codebox { width: 100%; font: 600 15px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .03em; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); resize: vertical; overflow-wrap: anywhere; word-break: break-all; margin: 8px 0; min-width: 0; color: var(--ink); }
.licrow + .licrow { margin-top: 10px; }
.licrow .row { margin: 2px 0; }
.lr-name { font-weight: 600; overflow-wrap: anywhere; }
.lr-mach { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.hist-tools { margin: 12px 0 10px; }
.hist-tools input[type=search] { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin: 0; }
.steps { margin: 0 0 6px; padding-left: 20px; }
#fprev { overflow-wrap: anywhere; }

/* ---------- 10. REPORT (screen + print) */
.report { background: #fff; color: #0B263A; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.report .lh { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid #0B263A; padding-bottom: 8px; position: relative; flex-wrap: wrap; }
.report .lh::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: #D9AE4E; }
.report .lh img { height: 54px; width: auto; }
.report .lh .ttl { text-align: right; }
.report .lh .ttl b { display: block; font-size: 19px; letter-spacing: .04em; color: #0B263A; font-family: var(--serif); }
.report .kpi { background: #fff; border-color: #DCD6C9; box-shadow: none; color: #0B263A; } .report .kpi .l, .report .kpi .s { color: #5F6E7C; }
.report table.t th { color: #5B6B8C; background: #fff; position: static; } .report table.t td, .report table.t th { border-color: #DCE3EE; } .report table.t tbody tr:nth-child(even) td { background: #F7F5F0; }
.report .chart text { fill: #5B6B8C; } .report .chart .lbl, .report .chart .val { fill: #0B1B44; } .report .chart rect.bar-hq { fill: #123B5A; }
.report .foot { margin-top: 12px; font-size: 11px; color: #5B6B8C; border-top: 1px solid #DCE3EE; padding-top: 6px; }
img.preview { max-width: 100%; height: auto; display: block; margin: 0 auto 10px; border-radius: var(--radius-sm); }

/* ---------- 11. QUICK REVIEW · LIBRARY · PRODUCTS · HANDBOOK · ADS · WA · DUKKAN · NEXA */
.qsearch { display: flex; gap: 8px; margin: 0 0 10px; }
.qsearch input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font-size: 15px; color: var(--ink); }
.qr-head { margin-bottom: 4px; }
.qr-att li { border-left: 3px solid var(--amber); padding-left: 8px; }
.qr-att li.red { border-left-color: var(--red); }
.qr-att .fix { color: var(--muted); margin-top: 2px; }
.qr-upd li > div, .feed li > div { flex: 1; }
.feed li .chip { flex: none; margin-top: 2px; }
.mdoc { line-height: 1.6; overflow-wrap: anywhere; }
.mdoc h1 { font-family: var(--serif); font-size: 26px; margin: 6px 0 10px; color: var(--page-nav); border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.mdoc h2 { font-size: 17px; margin: 18px 0 6px; } .mdoc h3 { font-size: 15px; margin: 14px 0 4px; text-transform: none; letter-spacing: 0; color: var(--ink); display: block; } .mdoc h4, .mdoc h5, .mdoc h6 { font-size: 14px; margin: 10px 0 4px; }
.mdoc p { margin: 6px 0; } .mdoc ul, .mdoc ol { margin: 6px 0; padding-left: 22px; } .mdoc li { margin: 2px 0; } .mdoc li.sub { margin-left: 18px; }
.mdoc code { font-family: ui-monospace, Consolas, monospace; background: var(--soft); border-radius: 5px; padding: 0 4px; font-size: 13px; }
.mdoc pre { overflow-x: auto; white-space: pre; font-size: 12.5px; } .mdoc pre code { background: none; padding: 0; }
.mdoc blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--gold); background: var(--soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.mdoc hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.mdoc table.t td, .mdoc table.t th { font-size: 13px; }
.mdoc img.mdimg { max-width: 100%; height: auto; display: block; margin: 8px 0; border-radius: var(--radius-sm); border: 1px solid var(--line); } .mdoc img.mdimg + img.mdimg { margin-top: 10px; }
a.prodcard { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
a.prodcard .row b { flex: 1; min-width: 0; }
.prodcard .kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.kvl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
.kvl > span:nth-child(odd) { color: var(--muted); }
.kvl > * { min-width: 0; overflow-wrap: anywhere; }
.hb-toc { counter-reset: none; }
.adcard { display: flex; flex-direction: column; gap: 6px; }
.adcard .kv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 2px 10px; }
.adcard .kv span:nth-child(odd) { color: var(--muted); } .adcard .kv span:nth-child(even) { text-align: right; overflow-wrap: anywhere; }
.leads li { align-items: center; } .leads select.field { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); max-width: 120px; }
#lFil { max-width: 140px; }
.wa-card { border-top: 3px solid #1FA855; } .wa-card .grid { margin: 2px 0; }
.dk-card { border-top: 3px solid #7C3AED; } .dk-card .grid { margin: 2px 0; }
.jarvis-tile { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius); text-decoration: none; color: #E8FBFF; background: radial-gradient(120% 140% at 0% 0%, #0E6E86 0%, var(--navy) 55%, var(--navy2) 100%); border: 1px solid rgba(46, 230, 214, .45); box-shadow: var(--shadow); min-height: 72px; transition: filter .15s ease; }
.jarvis-tile:hover { filter: brightness(1.08); }
.jarvis-tile .jv-ring { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #2EE6D6; box-shadow: 0 0 14px rgba(46, 230, 214, .55), inset 0 0 10px rgba(56, 189, 248, .4); font-size: 24px; }
.jarvis-tile .jv-txt { flex: 1; min-width: 0; }
.jarvis-tile .jv-txt b { display: block; letter-spacing: .28em; font-size: 16px; }
.jarvis-tile .jv-txt small { display: block; color: #A9D8E6; font-size: 12.5px; line-height: 1.3; }
.jarvis-tile .jv-go { flex: none; font-weight: 700; color: var(--gold-ink, #2A1C00); background: linear-gradient(180deg, var(--gold2), var(--gold3)); border-radius: var(--radius-xs); padding: 8px 12px; font-size: 14px; }
.jarvis-tile.busy { opacity: .7; pointer-events: none; }
.jarvis-tile.busy .jv-go::after { content: " …"; }
.jv-help li { display: block; }

/* ---------- 12. LEADS · TODAY · SEARCH · RESEARCH */
.lead-strip { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-left: 4px solid var(--gold); margin-bottom: var(--gap); }
.lead-strip.red { border-left-color: var(--red); }
.lead-strip .ic { width: 28px; height: 28px; color: var(--gold); flex: none; }
.lead-strip .ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.bigsearch, .askbox { display: flex; gap: 8px; margin: 0 0 12px; }
.bigsearch input, .askbox input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); font-size: 16px; color: var(--ink); box-shadow: var(--shadow); }
.bigsearch input:focus, .askbox input:focus { outline: 2px solid var(--gold); }
.bigsearch .btn, .askbox .btn { min-height: 48px; white-space: nowrap; }
@media (max-width: 560px) { .askbox { flex-direction: column; } }
.today-acts { margin: 4px 0 14px; flex-wrap: wrap; }
.today-group { margin-bottom: var(--gap); }
.today-group h4.area { margin: 0 0 6px; font-size: 11px; letter-spacing: .18em; color: var(--muted); display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.today-group h4.area .ic { width: 18px; height: 18px; color: var(--gold); }
.today-group h4.area .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.today-list li { gap: 10px; align-items: center; }
.today-list li .btn { flex: none; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.qbtn { cursor: pointer; text-align: left; padding: 8px 12px; border-radius: var(--radius-sm); white-space: normal; line-height: 1.3; border: 1px solid var(--line); }
.chip.qbtn:hover { background: var(--hover); }

/* ---------- 13. CLOUD & RENEWALS (1.8.3). GREEN < 75 % · YELLOW 75–89 % · RED ≥ 90 % */
.cr-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.cr-grid > .card + .card { margin-top: 0; }
.cr-grid .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cr-grid .head b { letter-spacing: .1em; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.cr-re, .cr-add { margin-left: auto; }
.cr-meters { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cr-meter { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 11px; background: var(--soft); min-width: 0; border-left: 4px solid var(--line); }
.cr-meter .small { overflow-wrap: anywhere; }
.cr-mh { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.cr-mh .l { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.cr-mv { font-size: 20px; font-weight: 700; margin: 2px 0 4px; }
.cr-lv { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 1px 7px; border-radius: 99px; }
.cr-meter.lv-green { border-left-color: var(--green); } .cr-meter.lv-green .cr-lv { background: var(--green-bg); color: var(--green); } .cr-meter.lv-green .bar i { background: var(--green); }
.cr-meter.lv-yellow { border-left-color: var(--amber); } .cr-meter.lv-yellow .cr-lv { background: var(--amber-bg); color: var(--amber); } .cr-meter.lv-yellow .bar i { background: var(--amber); } .cr-meter.lv-yellow .cr-mv { color: var(--amber); }
.cr-meter.lv-red { border-left-color: var(--red); } .cr-meter.lv-red .cr-lv { background: var(--red-bg); color: var(--red); } .cr-meter.lv-red .bar i { background: var(--red); } .cr-meter.lv-red .cr-mv { color: var(--red); }
.cr-two { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); margin-top: var(--gap); }
@media (min-width: 640px) { .cr-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cr-apps li { align-items: center; padding: 6px 2px; }
.cr-an { flex: 0 0 34%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cr-ab { flex: 1 1 auto; height: 6px; min-width: 30px; }
.cr-apps b.num { flex: 0 0 auto; font-size: 13px; min-width: 62px; text-align: right; }
.cr-nosecret { margin: 0 0 8px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--amber-bg); color: var(--amber); font-weight: 600; }
.cr-ren li.cr-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: start; border-left: 4px solid transparent; padding-left: 8px; }
.cr-ren li.c-red { border-left-color: var(--red); } .cr-ren li.c-yellow { border-left-color: var(--amber); } .cr-ren li.c-green { border-left-color: var(--green); }
.cr-ren li.c-done { opacity: .6; } .cr-ren li.c-nodate { border-left: 4px dashed var(--line); }
.cr-rn { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
.cr-rp { text-align: left; font-weight: 600; }
.cr-rd { text-align: right; }
.cr-ra { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 700px) { .cr-ren li.cr-r { grid-template-columns: minmax(0, 1fr) 110px 120px auto; align-items: center; } .cr-rn { grid-column: auto; } .cr-ra { grid-column: auto; } .cr-rp { text-align: right; } }
.chip.cr-days { font-weight: 700; white-space: nowrap; }
.chip.d-red { background: var(--red-bg); color: var(--red); } .chip.d-yellow { background: var(--amber-bg); color: var(--amber); } .chip.d-green { background: var(--green-bg); color: var(--green); }
.chip.d-nodate { background: var(--soft); color: var(--muted); border: 1px dashed var(--line); } .chip.d-auto { background: var(--chip); color: var(--chip-ink); } .chip.d-done { background: var(--soft); color: var(--muted); }
.cr-log { margin-top: 8px; } .cr-log summary { cursor: pointer; color: var(--blue); } .cr-log li { justify-content: flex-start; } .cr-log li .muted { flex: none; min-width: 120px; }
.cr-pc { flex-wrap: nowrap; } .cr-pc > input.field:first-child { flex: 1 1 60%; } .cr-pc > input.field + input.field { flex: 0 0 90px; }
.field.cr-chk { display: flex; align-items: center; gap: 8px; } .field.cr-chk input { width: auto; } .field.cr-chk span { margin: 0; }
@media (max-width: 380px) { .cr-meters { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 14. 1.8.4 EVERYTHING IN ONE PLACE: launcher tiles + the panel (apps inside NEXUS) */
.launch { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin: 0 0 6px; }
.launch a { display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 12px 12px 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .12s ease, box-shadow .2s ease; min-width: 0; }
.launch a::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, var(--hair2), transparent 70%); pointer-events: none; }
.launch a:hover { transform: translateY(-2px); box-shadow: var(--shadow2); }
.launch a.hq { background: linear-gradient(160deg, var(--navy3), var(--navy2)); color: var(--cream); border-color: var(--hair); }
.launch a.hq .ic, .launch a.hq small { color: var(--gold2); }
.launch .ic { width: 26px; height: 26px; display: inline-flex; color: var(--gold); }
.launch .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.launch b { display: block; font-size: 13px; letter-spacing: .06em; line-height: 1.25; overflow-wrap: anywhere; }
.launch small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.launch .lf { margin-top: auto; display: flex; align-items: center; gap: 6px; }
.launch .chip { font-size: 9.5px; padding: 1px 7px; }
.launch .chip.cc { font-size: 10px; }
.launch .st { width: 8px; height: 8px; border-radius: 99px; flex: none; background: var(--muted); opacity: .55; }
.launch .st.yes { background: var(--green); opacity: 1; } .launch .st.no { background: var(--amber); opacity: 1; }
.launch-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.launch-head .small { margin-left: auto; }
.panel { display: none; flex: 1; min-width: 0; flex-direction: column; height: calc(100vh - var(--topH)); position: sticky; top: var(--topH); background: var(--bg); }
body.panel-open .panel { display: flex; }
body.panel-open main { display: none; }
.pbar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; min-height: 46px; background: linear-gradient(90deg, var(--top1), var(--top3)); color: var(--cream); border-bottom: 1px solid var(--gold); flex: none; }
html[data-skin="ivory"] .pbar { color: var(--side-ink); }
.pbar .pb { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; min-width: 36px; padding: 0 10px; border-radius: var(--radius-xs); border: 1px solid var(--hair); background: var(--hair2); color: inherit; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s ease; }
.pbar .pb:hover { background: var(--hair); }
.pbar .pb.home { background: linear-gradient(180deg, var(--gold2), var(--gold3)); color: var(--gold-ink, #2A1C00); border-color: transparent; }
.pbar .pb .ic { width: 18px; height: 18px; display: inline-flex; } .pbar .pb .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pbar .ptitle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 4px; overflow: hidden; }
.pbar .ptitle .grow { min-width: 0; overflow: hidden; }
.pbar .ptitle b { display: block; font-size: 13px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar .ptitle small { display: block; color: var(--gold2); font-size: 10.5px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar .ptitle .ic { width: 18px; height: 18px; flex: none; color: var(--gold2); } .pbar .ptitle .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pbar .ptitle .chip.cc { flex: none; }
.pbar .hqsw { display: inline-flex; border: 1px solid var(--hair); border-radius: 99px; overflow: hidden; flex: none; }
.pbar .hqsw a { padding: 5px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: inherit; text-decoration: none; background: transparent; }
.pbar .hqsw a.on { background: var(--gold); color: var(--gold-ink, #2A1C00); }
.pbar .ptabs { display: inline-flex; gap: 4px; flex: none; }
.pbar .ptabs a { padding: 5px 10px; font-size: 12px; font-weight: 600; border-radius: 99px; color: inherit; text-decoration: none; border: 1px solid transparent; }
.pbar .ptabs a.on { border-color: var(--gold); color: var(--gold2); }
.pbar .pb.ext { min-width: 34px; padding: 0 8px; opacity: .85; }
.frames { flex: 1; min-height: 0; position: relative; background: var(--card); }
.frames iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.frames iframe.hidden { display: none; }
.pload { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold)); background-size: 200% 100%; animation: pload 1.1s linear infinite; z-index: 2; }
@keyframes pload { from { background-position: 0 0; } to { background-position: 200% 0; } }
.phint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 2; background: var(--navy2); color: var(--cream); border: 1px solid var(--hair); border-radius: 99px; padding: 7px 12px; font-size: 12.5px; box-shadow: var(--shadow2); display: flex; gap: 10px; align-items: center; max-width: calc(100% - 24px); }
.phint a { color: var(--gold2); font-weight: 700; white-space: nowrap; }
.pblock { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; overflow: auto; background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.pblock .card { max-width: 520px; width: 100%; text-align: center; padding: 26px 22px; }
.pblock .ic { width: 44px; height: 44px; display: inline-flex; color: var(--gold); margin-bottom: 6px; }
.pblock .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pblock .btn .ic { width: 18px; height: 18px; margin: 0; color: inherit; } .pblock .btn .ic svg { stroke-width: 1.8; }
.pblock h3 { text-transform: none; letter-spacing: 0; font-size: 19px; color: var(--page-nav); font-family: var(--serif); margin: 4px 0 6px; display: block; }
.pblock p { margin: 4px 0 12px; color: var(--muted); font-size: 13.5px; }
.pblock .row { justify-content: center; }
.hqtabs { margin: -4px 0 12px; }
@media (max-width: 899px) {
  .panel { position: fixed; inset: 0; z-index: 35; height: 100vh; height: 100dvh; top: 0; }
  body.panel-open .top, body.panel-open .bottom { display: none; }
  .pbar { padding-top: max(6px, env(safe-area-inset-top)); }
  .pbar { gap: 5px; padding-left: 8px; padding-right: 8px; }
  .pbar .pb { padding: 0 8px; min-width: 34px; } .pbar .hide-phone { display: none; } .pbar .pb .ic + span { margin-left: 0; }
  .pbar .ptitle { gap: 6px; padding: 0 2px; }
  .pbar .ptitle b { font-size: 12px; letter-spacing: .06em; }
  .pbar .ptitle small { display: none; }
  .pbar .ptitle .chip.cc { display: none; }
  .pbar .hqsw a { padding: 5px 7px; font-size: 11px; }
  .pbar .ptabs { display: none; }
  .pblock { padding: 14px; }
  .pblock .card { padding: 20px 14px; }
  .pblock .row { flex-direction: column; align-items: stretch; }
  .pblock .row .btn { white-space: normal; width: 100%; }
}
.pblock .row .btn { max-width: 100%; }
.pblock .row .btn .ic { flex: none; }
@media (min-width: 900px) { .pbar .hqsw { display: inline-flex; } }

/* ---------- 15. THEME STUDIO */
.ts-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.ts-skin { position: relative; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--card); box-shadow: var(--shadow); transition: transform .12s ease, border-color .15s ease, box-shadow .2s ease; }
.ts-skin:hover { transform: translateY(-2px); box-shadow: var(--shadow2); }
.ts-skin.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--focus), var(--shadow2); }
.ts-skin input { position: absolute; opacity: 0; pointer-events: none; }
.ts-prev { display: grid; grid-template-columns: 34% 1fr; height: 96px; }
.ts-prev .pv-side { padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; }
.ts-prev .pv-side i { display: block; height: 5px; border-radius: 3px; background: currentColor; opacity: .45; }
.ts-prev .pv-side i:first-child { height: 7px; opacity: 1; }
.ts-prev .pv-main { padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; align-content: start; }
.ts-prev .pv-main i { display: block; height: 22px; border-radius: 5px; border: 1px solid rgba(0,0,0,.08); border-top: 2px solid currentColor; }
.ts-prev .pv-main i.wide { grid-column: 1 / -1; height: 26px; }
.ts-prev.light .pv-side { background: var(--ts-side); color: var(--ts-gold); }
.ts-prev.light .pv-main { background: var(--ts-bg); } .ts-prev.light .pv-main i { background: #fff; color: var(--ts-gold); }
.ts-prev.dark .pv-side { background: var(--ts-side2); color: var(--ts-gold); }
.ts-prev.dark .pv-main { background: var(--ts-dbg); } .ts-prev.dark .pv-main i { background: var(--ts-dcard); color: var(--ts-gold); border-color: rgba(255,255,255,.08); }
.ts-two { display: grid; grid-template-columns: 1fr 1fr; }
.ts-two .ts-prev { height: 84px; }
.ts-name { padding: 9px 11px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ts-name b { display: block; font-size: 13px; letter-spacing: .04em; }
.ts-name small { display: block; color: var(--muted); font-size: 11px; }
.ts-name .chip { flex: none; }
.ts-opts { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.ts-opt { display: flex; flex-direction: column; gap: 8px; }
.ts-opt .lbl { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ts-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-seg button { border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 99px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s ease; }
.ts-seg button:hover { background: var(--hover); }
.ts-seg button.on { background: var(--navy); color: var(--gold2); border-color: var(--gold); }
.ts-seg .sw { width: 14px; height: 14px; border-radius: 99px; border: 1px solid rgba(0,0,0,.15); flex: none; }
.ts-seg .sw.gold { background: #D9AE4E; } .ts-seg .sw.champagne { background: #E6CF8E; } .ts-seg .sw.rose { background: #D29A86; } .ts-seg .sw.copper { background: #C27A3C; } .ts-seg .sw.teal { background: #3FB8A6; } .ts-seg .sw.sapphire { background: #5B8DEF; } .ts-seg .sw.silver { background: #B9C0CA; } .ts-seg .sw.skin { background: linear-gradient(135deg, #D9AE4E, #0B263A); }
.ts-live { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ts-foot { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 5; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--hair); border-radius: var(--radius); padding: 10px 12px; margin-top: 14px; box-shadow: var(--shadow2); }
@media (min-width: 900px) { .ts-foot { bottom: 12px; } }
.ts-skin[data-skin="navygold"] { --ts-side: #0B263A; --ts-side2: #071A29; --ts-gold: #D9AE4E; --ts-bg: #F2EFE8; --ts-dbg: #06121D; --ts-dcard: #0E2538; }
.ts-skin[data-skin="royal"] { --ts-side: #121212; --ts-side2: #050505; --ts-gold: #D4A63A; --ts-bg: #F3F1EC; --ts-dbg: #0A0A0A; --ts-dcard: #181818; }
.ts-skin[data-skin="ivory"] { --ts-side: #FFFFFF; --ts-side2: #24231F; --ts-gold: #B8902E; --ts-bg: #FBF8F1; --ts-dbg: #171613; --ts-dcard: #24231F; }
.ts-skin[data-skin="midnight"] { --ts-side: #0B2A6F; --ts-side2: #06194A; --ts-gold: #E3B341; --ts-bg: #EEF1F8; --ts-dbg: #050E26; --ts-dcard: #0B1E4A; }
.ts-skin[data-skin="emerald"] { --ts-side: #0F3D2E; --ts-side2: #092B20; --ts-gold: #D9AE4E; --ts-bg: #EFF3EE; --ts-dbg: #06130E; --ts-dcard: #0E2A20; }
.ts-skin[data-skin="sand"] { --ts-side: #4A3A28; --ts-side2: #33281B; --ts-gold: #C8961E; --ts-bg: #F6EFE3; --ts-dbg: #171310; --ts-dcard: #28211A; }
.ts-skin[data-skin="ivory"] .ts-prev.light .pv-side { border-right: 1px solid #E6E0D2; }

/* ---------- 17. 1.8.5 LICENCE WIZARD · LOGINS & ACCESS · COMPANY DOCUMENTS */
.wz-bar { display: flex; gap: 4px; margin: 10px 0 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.wz-bar::-webkit-scrollbar { display: none; }
.wz-bar a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 600; white-space: nowrap; flex: none; }
.wz-bar a.done { border-color: var(--green); color: var(--green); }
.wz-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; background: var(--navy); color: var(--gold2); font-size: 12px; font-weight: 700; flex: none; }
.wz-step.done .wz-no, .wz-bar a.done .wz-no { background: var(--green); color: #fff; }
.wizard .card.wz-step { margin-top: var(--gap); border-left: 4px solid var(--line); }
.wizard .card.wz-step.done { border-left-color: var(--green); }
.wizard .card.wz-step:target { border-left-color: var(--gold); box-shadow: 0 0 0 3px var(--focus), var(--shadow2); }
.wz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wz-head b { display: block; font-size: 15px; letter-spacing: .02em; }
.wz-head small { display: block; color: var(--muted); font-size: 12px; }
.wz-head .wz-no { width: 28px; height: 28px; font-size: 13px; }
.prod .ic { width: 26px; height: 26px; display: inline-flex; color: var(--gold); margin-bottom: 2px; }
.prod .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prod .chip { align-self: flex-start; margin-top: 4px; font-size: 10px; }
.prod.off { opacity: .55; cursor: not-allowed; border-style: dashed; }
.prod.off .chip { white-space: normal; text-align: left; line-height: 1.3; }
.wz-periods button { min-height: 40px; }
.wz-dim { opacity: .55; }
.wz-ends { font-size: 15px; margin: 8px 0 4px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); overflow-wrap: anywhere; }
.wz-more { margin: 8px 0; } .wz-more summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.wz-review { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; }
.wz-review b { overflow-wrap: anywhere; }
.codecard .codebox { font-size: 17px; line-height: 1.6; min-height: 120px; }
.secret-row { margin: 10px 0; }
.secret { display: block; font: 700 24px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--navy); color: var(--gold2); text-align: center; overflow-wrap: anywhere; user-select: all; }
.acc-inv th, .acc-inv td { font-size: 12.5px; vertical-align: top; }
.acc-inv td b { font-size: 13px; }
.acc-list li { align-items: center; flex-wrap: wrap; }
.acc-list li .btn { flex: none; }
.acc-acts { flex: none; justify-content: flex-end; }
.acc-company .list li { flex-wrap: wrap; }
@media (max-width: 560px) { .acc-acts { width: 100%; justify-content: flex-start; } }
.docs-list .chip.num { font-weight: 600; letter-spacing: .04em; font-size: 11px; }
.chip.d-pending, .chip.d-not-started { background: var(--chip); color: var(--chip-ink); } .chip.d-noexpiry { background: var(--soft); color: var(--muted); } .chip.d-expired { background: var(--red-bg); color: var(--red); } .chip.d-closed { background: var(--soft); color: var(--muted); }
.cr-ren li.c-pending, .cr-ren li.c-not-started { border-left: 4px dashed var(--line); } .cr-ren li.c-expired { border-left-color: var(--red); opacity: .8; } .cr-ren li.c-closed { opacity: .6; } .cr-ren li.c-noexpiry { border-left-color: var(--line); }


/* ---------- 18. 1.8.5 CLOUD & RENEWALS REPORT (white A4 sheet on screen too; every .report is white in every theme) */
.report { --ink: #132433; --muted: #5A6B7B; --line: #DCE3EE; --card: #FFFFFF; --soft: #F7F5F0; --chip: #EFE7D3; --chip-ink: #0B263A; --blue: #123B5A; --zebra: #FAF8F3;
  --red: #B42318; --red-bg: #FDECEA; --amber: #8A5A00; --amber-bg: #FFF4D6; --green: #1D7A3E; --green-bg: #E6F4EA; color-scheme: light; }
.report h3 { color: #0B263A; margin: 16px 0 6px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.report h3 .small { text-transform: none; letter-spacing: 0; }
.cr-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cr-title h3 { margin-right: auto; }
.cr-acts { gap: 6px; }
.rp-tools { gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rpt { max-width: 210mm; margin: 0 auto; padding: 14mm; box-shadow: var(--shadow2); }
@media (max-width: 640px) { .rpt { padding: 14px; } }
.rpt .lh img { height: 48px; width: auto; }
.rp-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 15px; }
.rp-status .rp-dot { width: 14px; height: 14px; border-radius: 99px; flex: none; background: #1D7A3E; }
.rp-status.st-ok { background: #E6F4EA; border-color: #A8D5B5; color: #14532D; }
.rp-status.st-watch { background: #FFF4D6; border-color: #EBCB7A; color: #6B4500; } .rp-status.st-watch .rp-dot { background: #D99A00; }
.rp-status.st-action { background: #FDECEA; border-color: #F1A9A0; color: #7A1A12; } .rp-status.st-action .rp-dot { background: #B42318; }
.rp-meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .rp-meters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-m { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; break-inside: avoid; }
.rp-m .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rp-m b { font-size: 20px; color: #0B263A; }
.rp-m small { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.rp-m .bar { height: 6px; border-radius: 99px; background: #EEF1F5; overflow: hidden; margin: 2px 0; } .rp-m .bar i { display: block; height: 100%; background: #1D7A3E; }
.rp-m.lv-green { border-left-color: #1D7A3E; } .rp-m.lv-yellow { border-left-color: #D99A00; } .rp-m.lv-yellow .bar i { background: #D99A00; } .rp-m.lv-red { border-left-color: #B42318; } .rp-m.lv-red .bar i { background: #B42318; }
.rp-lv { font-size: 10.5px; font-weight: 700; align-self: flex-start; padding: 1px 6px; border-radius: 99px; background: #E6F4EA; color: #14532D; }
.rp-m.lv-yellow .rp-lv { background: #FFF4D6; color: #6B4500; } .rp-m.lv-red .rp-lv { background: #FDECEA; color: #7A1A12; }
.rp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 640px) { .rp-two { grid-template-columns: minmax(0, 1fr); } }
.rpt table.t { width: 100%; font-size: 12px; } .rpt table.t td, .rpt table.t th { padding: 5px 6px; } .rpt table.t tfoot td { border-top: 2px solid #0B263A; }
.rpt table.t tr { break-inside: avoid; }
.rp-tw { max-width: 100%; overflow-x: auto; }
@media (max-width: 640px) { .rpt .rp-ph { display: none; } .rpt table.t { font-size: 11.5px; } .rpt table.t td, .rpt table.t th { padding: 4px 4px; } .rpt .lh .ttl { text-align: left; } }
@media print { .rp-tw { overflow: visible; } .rpt .rp-ph { display: table-cell; } }
.rp-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: #EEF1F5; color: #34475A; white-space: nowrap; }
.rp-chip.lv-green { background: #E6F4EA; color: #14532D; } .rp-chip.lv-yellow { background: #FFF4D6; color: #6B4500; } .rp-chip.lv-red { background: #FDECEA; color: #7A1A12; }
.rp-recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rp-recs li { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; break-inside: avoid; }
.rp-recs li.lv-green { border-left-color: #1D7A3E; } .rp-recs li.lv-yellow { border-left-color: #D99A00; } .rp-recs li.lv-red { border-left-color: #B42318; }

/* ---------- 16. PRINT */
@media print { /* 1.8.5: EVERY print view = white A4 page, 14 mm margins, light colours even when NEXUS is in dark mode */
  @page { size: A4; margin: 14mm; }
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] { --bg: #fff; --bg2: #fff; --card: #fff; --soft: var(--L-soft); --ink: var(--L-ink); --muted: var(--L-muted); --line: var(--L-line); --chip: var(--L-chip); --chip-ink: var(--L-chip-ink); --blue: var(--L-link);
    --zebra: var(--L-zebra); --hover: var(--L-hover); --red: var(--L-red); --red-bg: var(--L-red-bg); --amber: var(--L-amber); --amber-bg: var(--L-amber-bg); --green: var(--L-green); --green-bg: var(--L-green-bg); color-scheme: light; }
  html, body { background: #fff !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .layout { display: block; min-height: 0; } .panel { display: none !important; }
  main { padding: 0 !important; margin: 0; background: #fff !important; }
  .rpt { max-width: none; margin: 0; padding: 0; box-shadow: none; border: 0; }
  .rpt h3 { break-after: avoid; }
  .top, .side, .bottom, .scrim, .noprint, .toast, .qsearch, .bigsearch, .askbox, .today-acts, .jarvis-tile, .pbar, .ts-foot { display: none !important; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
  .report { border: 0; padding: 0; }
  .mdoc { border: 0; box-shadow: none; padding: 0; color: #000; background: #fff; }
  .print-page { break-after: page; }
  #hbAll ~ *, body.hb-printing main > :not(#hbAll) { display: none; }
  table.t th { position: static; }
  a { color: inherit; text-decoration: none; }
}
/* 1.8.5 APPS ON / OFF card (Cloud & Renewals) */
.oo-list { margin: 6px 0 0; }
.oo-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oo-r .oo-n { display: flex; flex-direction: column; min-width: 0; flex: 1 1 160px; overflow-wrap: anywhere; }
.oo-r .oo-ls { flex: 1 0 100%; }
@media (min-width: 640px) { .oo-r .oo-ls { flex: 0 0 auto; } }
.oo-must .oo-n b::after { content: " · must run"; font-weight: 400; color: var(--muted); font-size: 11px; }
.oo-det { margin-top: 8px; } .oo-det summary { cursor: pointer; color: var(--blue); }
/* 1.8.6 ALL MY SOFTWARE · HQ users · country HQs */
.sw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,370px),1fr));gap:12px;margin-top:10px}
.sw-tile{display:flex;flex-direction:column;gap:6px;min-width:0}
.sw-tile .row b.grow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sw-links li.sw-link{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 0;border-top:1px dashed var(--line,rgba(11,38,58,.12))}
.sw-links li.sw-link:first-child{border-top:0}
.sw-link .grow{display:flex;flex-direction:column;min-width:150px;flex:1 1 150px}
.sw-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.sw-acts{gap:6px;flex-wrap:wrap}
.sw-acts a[aria-disabled="true"]{opacity:.5;pointer-events:none}
.hu-list li{flex-wrap:wrap;gap:6px}
.ahq ul.list li{padding:2px 0}
/* 1.8.6 LICENCES – ALL APPS */
.lm-h{margin:18px 0 2px}
.lm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:12px;margin-top:8px}
.lm-tile{display:flex;flex-direction:column;gap:6px;min-width:0}
.lm-t th{width:105px;text-align:left;font-weight:600;color:var(--muted);vertical-align:top}.lm-t td{word-break:break-word}
.lm-acts{gap:6px;flex-wrap:wrap}.tiny{font-size:11px}
/* 1.8.7 AWS CLOUD (one page, 8 tabs) + FREE UP PAUSED = grey everywhere */
:root { --aws-blue: #2F6F9F; --pz: #8A94A6; --pz-bg: #E8EBF0; --pz-line: #C9CFD8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --aws-blue: #7FB6E6; --pz: #A3ADBB; --pz-bg: #262D36; --pz-line: #3A4350; } }
:root[data-theme="dark"] { --aws-blue: #7FB6E6; --pz: #A3ADBB; --pz-bg: #262D36; --pz-line: #3A4350; }
.chip.paused { background: var(--pz-bg); color: var(--pz); border: 1px solid var(--pz-line); }
.lvl.paused { background: var(--pz); box-shadow: 0 0 0 3px var(--pz-bg); }
.lvl.inl { display: inline-block; margin: 0 4px 0 0; vertical-align: 1px; }
li.paused b { color: var(--muted); font-weight: 600; }
.kpi.paused::before { background: var(--pz); }
.aws-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.aws-head h2.page { margin-bottom: 4px; }
.aws-head .ic { width: 26px; height: 26px; display: inline-flex; vertical-align: -5px; color: var(--gold); } .aws-head .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aws-lang { font-weight: 700; min-width: 76px; }
.aws-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 4px; }
.aws-tabs a { flex: none; font-size: 14px; padding: 8px 14px; }
.aws-tabs .badge { background: var(--red); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 11px; margin-inline-start: 6px; }
.aws-range { align-items: center; }
.aws-server .aws-sname { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.aws-server .aws-sname .muted { font-family: var(--font); font-size: 14px; font-weight: 500; }
.aws-cap { display: inline-flex; align-items: center; border-radius: 99px; padding: 8px 14px; font-weight: 800; font-size: 14px; letter-spacing: .02em; border: 1px solid transparent; }
.aws-cap.ok { background: var(--green-bg); color: var(--green); border-color: var(--green); }
.aws-cap.warn { background: var(--amber-bg); color: var(--amber); border-color: var(--amber); }
.aws-cap.bad { background: var(--red-bg); color: var(--red); border-color: var(--red); }
.aws-gauges { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--gap) 0; }
.aws-gauges .card + .card { margin-top: 0; }
@media (max-width: 899px) { .aws-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aws-gauge { text-align: center; padding: 12px 10px; }
.aws-gauge svg { width: 100%; max-width: 230px; height: auto; display: block; margin: 0 auto; }
.g-track { fill: none; stroke: var(--soft); stroke-width: 16; stroke-linecap: round; }
.g-val { fill: none; stroke-width: 16; stroke-linecap: round; stroke: var(--green); }
.g-val.warn { stroke: var(--amber); } .g-val.bad { stroke: var(--red); } .g-val.ok { stroke: var(--green); }
.g-big { font: 700 28px var(--font); fill: var(--ink); text-anchor: middle; }
.g-l { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold3); margin-top: -2px; }
.g-s { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.aws-counts .kpi .v { font-size: 30px; }
.aws-counts { margin-bottom: var(--gap); }
.aws-two { margin-bottom: var(--gap); }
.aws-exp li { align-items: center; }
.aws-go { margin: 6px 0 10px; }
.aws-note, .aws-help { margin-top: 10px; }
.aws-cbox { margin-bottom: var(--gap); }
.aws-cbox h3 { margin: 0; font-size: 18px; }
.aws-stat { display: flex; gap: 16px; flex-wrap: wrap; }
.aws-stat span { display: flex; flex-direction: column; align-items: flex-end; }
.aws-stat small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.aws-stat b { font-size: 20px; }
.aws-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-y { font: 12px var(--font); fill: var(--muted); text-anchor: end; }
.c-x { font: 12px var(--font); fill: var(--muted); text-anchor: middle; }
.c-limit { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 6 5; }
.c-limtx { font: 600 12px var(--font); fill: var(--red); text-anchor: end; }
.c-line { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.c-line.gold { stroke: var(--gold); } .c-line.navy { stroke: var(--aws-blue); } .c-line.green { stroke: var(--green); } .c-line.peak { stroke: var(--red); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: .75; }
.c-area { stroke: none; opacity: .18; } .c-area.gold { fill: var(--gold); } .c-area.navy { fill: var(--aws-blue); } .c-area.green { fill: var(--green); }
.c-cross { stroke: var(--ink); stroke-width: 1; opacity: .5; }
.c-read { min-height: 18px; margin-top: 4px; }
.aws-apps { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.aws-apps .card + .card { margin-top: 0; }
.aws-app { display: flex; flex-direction: column; gap: 8px; border-inline-start: 4px solid var(--green); }
.aws-app.paused { border-inline-start-color: var(--pz); background: linear-gradient(0deg, var(--pz-bg), var(--card) 70%); }
.aws-app.down { border-inline-start-color: var(--red); background: linear-gradient(0deg, var(--red-bg), var(--card) 70%); }
.aws-an { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aws-ag { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.aws-ag span { display: flex; flex-direction: column; min-width: 0; }
.aws-ag small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.aws-ag b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aws-doms { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-bottom: var(--gap); }
.aws-doms .card + .card { margin-top: 0; }
.aws-dn { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.aws-days { font-size: 44px; font-weight: 800; line-height: 1.1; margin: 4px 0; color: var(--green); font-variant-numeric: tabular-nums; }
.aws-days small { font-size: 13px; font-weight: 600; color: var(--muted); margin-inline-start: 8px; }
.aws-days.warn { color: var(--amber); } .aws-days.bad { color: var(--red); }
.aws-web { border-inline-start: 5px solid var(--green); margin-bottom: var(--gap); } .aws-web.down { border-inline-start-color: var(--red); }
.aws-webst { font-size: 26px; font-weight: 800; color: var(--green); } .aws-web.down .aws-webst { color: var(--red); }
.aws-plan .aws-pn { font-family: var(--serif); font-size: 22px; font-weight: 700; margin: 2px 0; }
.aws-price { margin: 10px 0 6px; } .aws-price b { font-size: 34px; color: var(--gold3); } .aws-price span { font-weight: 700; margin-inline-start: 6px; } .aws-price small { color: var(--muted); }
.aws-plan .aws-cap { margin: 8px 0 6px; }
.aws-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0 12px; }
.aws-form .check { grid-column: 1 / -1; }
.aws-key { margin-top: var(--gap); }
.aws-rules { margin: var(--gap) 0; }
.aws.rtl { font-family: "Segoe UI", Tahoma, var(--font); }
.aws.rtl table.t th, .aws.rtl table.t td { text-align: right; }
.aws.rtl table.t td.r, .aws.rtl table.t th.r { text-align: left; }
.aws.rtl .aws-stat span { align-items: flex-start; }
.aws.rtl .kpi .l, .aws.rtl .g-l, .aws.rtl .aws-ag small, .aws.rtl .aws-stat small { letter-spacing: 0; }
@media (max-width: 520px) { .aws-ag { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aws-stat b { font-size: 16px; } .aws-cbox h3 { font-size: 16px; } .g-big { font-size: 26px; } .aws-days { font-size: 38px; } .aws-price b { font-size: 28px; } }
.aws-chart svg, .aws-gauge svg { direction: ltr; } /* charts read left → right in Arabic too */
.aws .num, .aws .aws-stat b, .aws .g-s, .aws .chip { unicode-bidi: isolate; }
.aws .num, .aws .aws-stat b { direction: ltr; }
.aws-chart.ph .c-y, .aws-chart.ph .c-x { font-size: 17px; } .aws-chart.ph .c-limtx { font-size: 16px; } .aws-chart.ph .c-line { stroke-width: 3; }
.c-x.c-x0 { text-anchor: start; } .c-x.c-xn { text-anchor: end; }

/* ---------- 1.9 PLESK (same look as AWS CLOUD: .aws tokens) */
.pl-top { margin: 2px 0 10px; align-items: center; }
.pl-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pl-search { margin: 0 0 10px; align-items: center; flex-wrap: wrap; }
.pl-search input, .pl-search select { height: 38px; padding: 0 12px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; min-width: 0; flex: 1 1 160px; max-width: 360px; }
.pl-doms .pl-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.pl-doms .pl-card:hover { box-shadow: var(--shadow2); }
.pl-doms .pl-card.bad { border-inline-start: 4px solid var(--red); }
.pl-dn { font-size: 19px; margin: 6px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-ag { margin-bottom: 6px; }
.pl-val { max-width: 420px; overflow-wrap: anywhere; font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; }
.pl-dns td, .pl-log td { vertical-align: top; }
.pl-confirm { display: grid; gap: 6px; margin: 8px 0 12px; }
.pl-confirm > div { display: flex; flex-direction: column; } .pl-confirm small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; } .pl-confirm b { overflow-wrap: anywhere; }
.pl-errs { margin-top: 10px; } .pl-errs ul { margin: 4px 0 0 18px; }
.cloud-tiles { margin-top: 0; }
.pl-counts .kpi .v { font-size: 26px; }
@media (max-width: 640px) { .pl-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-ag { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-val { max-width: 200px; } }

/* ---------- 1.9 SIDEBAR ICON RAIL (PC): ☰ = full ↔ icons only · an app open inside NEXUS = rail by itself · hover = temporary overlay (does not push the app) */
.side a .lbl { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-rail-btn { display: none; }
@media (min-width: 900px) {
  .top .menu-btn { display: inline-flex; }
  .side { transition: none; }
  .side-rail-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 6px 4px 0; border-radius: var(--radius-xs); border: 1px solid var(--hair); background: var(--hair2); color: var(--side-ink); cursor: pointer; }
  .side-rail-btn .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .side.rail:not(.peek) { width: 64px; padding-left: 6px; padding-right: 6px; overflow-x: hidden; }
  .side.rail:not(.peek) .side-brand { justify-content: center; padding: 8px 0 10px; } .side.rail:not(.peek) .side-brand > div { display: none; }
  .side.rail:not(.peek) h4 { font-size: 0; margin: 10px 8px 4px; } .side.rail:not(.peek) h4::after { margin-top: 0; }
  .side.rail:not(.peek) a { justify-content: center; padding: 10px 0; }
  .side.rail:not(.peek) a > span:first-child { justify-content: center; gap: 0; }
  .side.rail:not(.peek) .lbl, .side.rail:not(.peek) .tag, .side.rail:not(.peek) .chip.cc, .side.rail:not(.peek) p.muted { display: none; }
  .side.rail:not(.peek) .ic { width: 22px; height: 22px; } .side.rail:not(.peek) a .ic svg { width: 22px; height: 22px; }
  .side.rail:not(.peek) .badge { position: absolute; top: 4px; right: 6px; padding: 0 5px; font-size: 10px; }
  .side.rail.peek { width: var(--sideW); margin-right: calc(64px - var(--sideW)); z-index: 45; box-shadow: 8px 0 30px rgba(0,0,0,.35); }
  body.panel-open .side { display: block; }
}
/* 1.9 Arabic (AWS / PLESK language) = NEXUS menu on the right side */
html[data-rtl="1"] .layout { flex-direction: row-reverse; }
html[data-rtl="1"] .side { border-right: 0; border-left: 1px solid var(--hair); }
html[data-rtl="1"] .side a.on { box-shadow: inset -3px 0 0 var(--gold); }
@media (min-width: 900px) { html[data-rtl="1"] .side.rail.peek { margin-right: 0; margin-left: calc(64px - var(--sideW)); box-shadow: -8px 0 30px rgba(0,0,0,.35); } html[data-rtl="1"] .side.rail:not(.peek) .badge { right: auto; left: 6px; } }
@media (max-width: 899px) { html[data-rtl="1"] .side { left: auto; right: 0; transform: translateX(105%); } html[data-rtl="1"] .side.open { transform: none; } }
