/* Network owner portal — tokens and base. Layout/components follow below. */
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cairo-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cairo-arabic-500-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/cairo-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/cairo-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cairo-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cairo-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/cairo-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/cairo-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root, :root[data-color="blue"] { --brand-50: 239 246 255; --brand-100: 219 234 254; --brand-300: 147 197 253; --brand-500: 59 130 246; --brand-600: 37 99 235; --brand-700: 29 78 216; }
:root[data-color="emerald"] { --brand-50: 236 253 245; --brand-100: 209 250 229; --brand-300: 110 231 183; --brand-500: 16 185 129; --brand-600: 5 150 105; --brand-700: 4 120 87; }
:root[data-color="violet"] { --brand-50: 245 243 255; --brand-100: 237 233 254; --brand-300: 196 181 253; --brand-500: 139 92 246; --brand-600: 124 58 237; --brand-700: 109 40 217; }
:root[data-color="identity"] { --brand-50: 245 243 255; --brand-100: 237 233 254; --brand-300: 196 181 253; --brand-500: 139 120 242; --brand-600: 123 104 238; --brand-700: 102 84 217; }
:root[data-color="rose"] { --brand-50: 255 241 242; --brand-100: 255 228 230; --brand-300: 253 164 175; --brand-500: 244 63 94; --brand-600: 225 29 72; --brand-700: 190 18 60; }
:root[data-color="crimson"] { --brand-50: 254 242 242; --brand-100: 254 226 226; --brand-300: 252 165 165; --brand-500: 220 38 38; --brand-600: 185 28 28; --brand-700: 153 27 27; }
:root[data-color="orange"] { --brand-50: 255 247 237; --brand-100: 255 237 213; --brand-300: 253 186 116; --brand-500: 249 115 22; --brand-600: 234 88 12; --brand-700: 194 65 12; }
:root[data-color="slate"] { --brand-50: 248 250 252; --brand-100: 241 245 249; --brand-300: 203 213 225; --brand-500: 100 116 139; --brand-600: 71 85 105; --brand-700: 51 65 85; }

:root {
  color-scheme: light;
  --bg: #f4f6fb; --sf: #ffffff; --bd: #e8edf5; --tx: #0f172a; --mu: #64748b; --mu2: #94a3b8;
  --soft: #f4f7fd; --track: #eef2f8;
  --brand: rgb(var(--brand-600)); --brand-strong: rgb(var(--brand-700));
  --brand-soft: rgb(var(--brand-50)); --brand-tx: rgb(var(--brand-700));
  --hero: radial-gradient(120% 140% at 100% 0%, rgb(var(--brand-500)) 0%, rgb(var(--brand-600)) 45%, color-mix(in srgb, rgb(var(--brand-700)) 70%, #000) 100%);
  --ok: #16a34a; --ok-soft: #dcfce7; --ok-tx: #166534;
  --warn: #d97706; --warn-soft: #fef3c7; --warn-tx: #92400e;
  --bad: #e11d48; --bad-soft: #ffe4e6; --bad-tx: #9f1239;
  --shadow: 0 1px 2px #0f172a0d, 0 6px 16px #0f172a0a;
  --shadow-lg: 0 18px 40px #0f172a33, 0 0 0 1px #e6ebf3;
  --r-sm: 10px; --r: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 22px;
  --space: 1rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220; --sf: #121b2d; --bd: #22304a; --tx: #e5ecf6; --mu: #9aa8bd; --mu2: #6b7a92;
  --soft: #182338; --track: #22304a;
  --brand: rgb(var(--brand-500)); --brand-strong: rgb(var(--brand-600));
  --brand-soft: rgb(var(--brand-500) / .16); --brand-tx: rgb(var(--brand-300));
  --hero: radial-gradient(120% 140% at 100% 0%, rgb(var(--brand-600)) 0%, rgb(var(--brand-700)) 45%, color-mix(in srgb, rgb(var(--brand-700)) 45%, #000) 100%);
  --ok: #22c55e; --ok-soft: #12351f; --ok-tx: #86efac;
  --warn: #f59e0b; --warn-soft: #3a2a0b; --warn-tx: #fcd34d;
  --bad: #fb7185; --bad-soft: #3b1420; --bad-tx: #fda4af;
  --shadow: 0 1px 2px #0006, 0 8px 22px #0005;
  --shadow-lg: 0 18px 40px #000a, 0 0 0 1px #22304a;
}
:root[data-density="compact"] { --space: .75rem; }
:root[data-density="spacious"] { --space: 1.35rem; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.unit { font-size: .55em; font-weight: 600; opacity: .75; margin-inline-start: 3px; }
.i { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Shell layout ─────────────────────────────────────────── */
@media (max-width: 1023.98px) { .no-desk { display: none !important; } }
@media (min-width: 1024px) { .no-mob { display: none !important; } }
.no-shell { display: flex; flex-direction: column; min-height: 100vh; }
.no-body { flex: 1; display: flex; }
.no-main { --gutter: calc(var(--space) * 1.1); flex: 1; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .no-main { --gutter: calc(var(--space) * 1.5); } }
.no-page { flex: 1; position: relative; padding: var(--gutter); }
:root[data-container="boxed"] .no-page > div { max-width: 1180px; margin-inline: auto; }

.no-sidebar { position: sticky; top: 60px; height: calc(100vh - 60px); width: 248px; flex-shrink: 0; overflow-y: auto; background: var(--sf); border-inline-end: 1px solid var(--bd); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.no-brand { padding: 2px 8px 6px; }
.no-brand img { display: block; height: 42px; width: auto; background: #fff; border-radius: 8px; padding: 3px; }
.no-nav { position: relative; display: grid; gap: 4px; }
.no-pill { position: absolute; top: 0; inset-inline: 0; height: 42px; border-radius: var(--r); background: var(--brand); box-shadow: 0 8px 18px rgb(var(--brand-600) / .28); opacity: 0; pointer-events: none; transition: transform .32s var(--ease), opacity .2s; }
.no-nav.has-pill .no-pill { opacity: 1; }
.no-nav-link { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: var(--r); font-size: 14px; font-weight: 700; color: var(--mu); transition: color .25s, background-color .2s; }
.no-nav-link:hover { color: var(--tx); background: var(--soft); }
.no-nav-link[aria-current="page"] { color: #fff; background: transparent; }
.no-nav:not(.has-pill) .no-nav-link[aria-current="page"] { background: var(--brand); }

.no-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; height: 60px; padding: 0 14px; background: color-mix(in srgb, var(--sf) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bd); }
.no-logo { flex: 1; min-width: 0; display: flex; }
.no-logo img { height: 40px; width: auto; }
.no-logo-white, :root[data-header="brand"] .no-logo-color, :root[data-theme="dark"] .no-logo-color { display: none; }
:root[data-header="brand"] .no-logo-white, :root[data-theme="dark"] .no-logo-white { display: block; }
.no-actions { display: flex; align-items: center; gap: 4px; }
.no-ib { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--mu); font-size: 13px; font-weight: 700; cursor: pointer; }
.no-ib:hover { color: var(--tx); }
.no-ib[hidden] { display: none !important; }
.no-ib-brand { color: var(--brand-tx); }
.no-ib-lock { color: var(--ok-tx); background: var(--ok-soft); cursor: default; }
.no-ib[aria-expanded="true"] { color: var(--brand-tx); }
.no-badge { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; background: #e11d48; color: #fff; font-size: 9.5px; font-weight: 800; box-shadow: 0 0 0 2px var(--sf); }
.no-avatar { width: 38px; height: 38px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, rgb(var(--brand-300)), rgb(var(--brand-600))); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.no-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Default avatar follows the colour and theme. */
.no-av { display: block; width: 100%; height: 100%; }
.no-av-bg { fill: rgb(var(--brand-100)); }
.no-av-fg { fill: rgb(var(--brand-600)); }
:root[data-theme="dark"] .no-av-bg { fill: rgb(var(--brand-700)); }
:root[data-theme="dark"] .no-av-fg { fill: rgb(var(--brand-300)); }
/* Header icons: one size for all. */
.no-topbar .no-ib { height: 40px; min-width: 40px; }
.no-topbar .no-ib .i { width: 21px; height: 21px; }
.no-topbar .no-avatar { width: 40px; height: 40px; }
:root[data-header="brand"] .no-topbar { background: linear-gradient(to right, rgb(var(--brand-500)), rgb(var(--brand-700))); border-color: transparent; color: #fff; }
:root[data-header="brand"] .no-topbar .no-ib { color: #ffffffd9; }
:root[data-header="brand"] .no-topbar .no-ib:hover, :root[data-header="brand"] .no-topbar .no-ib[aria-expanded="true"] { color: #fff; }
:root[data-header="brand"] .no-topbar .no-badge { background: #fff; color: var(--brand-strong); box-shadow: none; }
:root[data-header="brand"] .no-topbar .no-avatar { box-shadow: 0 0 0 2px #ffffff80; }
:root[data-header="brand"] .no-topbar :focus-visible { outline-color: #fff; }
@media (max-width: 1023.98px) { .no-topbar { gap: 2px; padding: 0 10px; } .no-ib { min-width: 36px; padding: 0 6px; } }

.no-netbar { display: flex; align-items: center; gap: 12px; margin: 10px var(--gutter) 0; padding: 12px 14px; border: 1px solid var(--bd); border-top: 3px solid var(--brand); border-radius: var(--r-lg); background: var(--sf); box-shadow: var(--shadow); }
.no-netbar-ico { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-tx); }
.no-netbar-ico .i { width: 22px; height: 22px; }
.no-netbar-txt { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.35; }
.no-netbar-txt b { overflow: hidden; font-size: 17px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.no-netbar-txt p { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12.5px; font-weight: 600; color: var(--mu); }
.no-netbar-txt p > span + span::before { content: '·'; margin-inline-end: 8px; color: var(--mu2); }
.no-status { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ok-tx); }
.no-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.no-status[data-status="pending"] { color: var(--warn-tx); }
.no-status[data-status="suspended"] { color: var(--bad-tx); }
.no-netbar ~ .no-page { padding-top: 12px; }
:root[data-container="boxed"] .no-netbar, :root[data-container="boxed"][data-layout="top"] .no-tabs { margin-inline: max(var(--gutter), (100% - 1180px) / 2); }
.no-tabs { position: sticky; top: 60px; z-index: 29; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px 8px 8px; background: var(--sf); border-bottom: 1px solid var(--bd); }
.no-tab { display: grid; justify-items: center; gap: 3px; padding: 7px 0; border-radius: var(--r); font-size: 11.5px; font-weight: 700; color: var(--mu); transition: background-color .25s, color .25s; }
.no-tab .i { width: 20px; height: 20px; }
:root[data-tabs="scroll"]:not([data-layout="bottom"]) .no-tabs { position: relative; top: auto; }
@media (min-width: 1024px) { :root[data-tabs="scroll"] .no-sidebar { position: relative; top: auto; height: auto; } }
:root[data-layout="top"] .no-tabs { top: 68px; margin: 10px var(--gutter) 0; padding: 6px; border: 1px solid var(--bd); border-radius: 18px; box-shadow: var(--shadow); }
.no-tab[aria-current="page"] { background: var(--brand); color: #fff; box-shadow: 0 6px 14px rgb(var(--brand-600) / .25); }

/* ── Buttons, placeholders ────────────────────────────────── */
.no-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r); font-size: 14px; font-weight: 800; cursor: pointer; }
.no-btn[hidden] { display: none !important; }
.no-btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgb(var(--brand-600) / .25); }
.no-placeholder { max-width: 520px; margin: 8vh auto; display: grid; justify-items: center; gap: 12px; padding: 32px 24px; text-align: center; background: var(--sf); border: 1px solid var(--bd); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.no-placeholder-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-soft); color: var(--brand-tx); }
.no-placeholder-icon .i { width: 28px; height: 28px; }
.no-placeholder h1 { font-size: 20px; font-weight: 800; }
.no-placeholder p { color: var(--mu); }

/* ── Layers: popovers, sheets, drawer ─────────────────────── */
.no-layer { position: fixed; inset: 0; z-index: 90; }
.no-layer[hidden] { display: none; }
.no-scrim { position: absolute; inset: 0; background: #0f172a59; animation: no-fade .2s ease both; }
.no-layer-pop .no-scrim { background: transparent; }
.no-pop { position: absolute; top: 64px; inset-inline-end: 14px; width: min(360px, calc(100vw - 28px)); max-height: calc(100vh - 84px); overflow: auto; padding: 8px; background: var(--sf); color: var(--tx); border-radius: var(--r-md); box-shadow: var(--shadow-lg); animation: no-pop .18s var(--ease) both; }
.no-grab { display: none; }
.no-drawer { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(340px, 88vw); overflow-y: auto; display: grid; align-content: start; gap: 16px; padding: 16px; background: var(--sf); color: var(--tx); box-shadow: 18px 0 40px #0f172a33; animation: no-drawer .26s var(--ease) both; }
@media (max-width: 1023.98px) {
  .no-layer-pop .no-scrim { background: #0f172a59; }
  .no-pop { top: auto; bottom: 0; inset-inline: 0; width: auto; max-height: 82vh; padding: 8px 12px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; animation: no-sheet .26s var(--ease) both; }
  .no-grab { display: block; width: 38px; height: 4px; margin: 4px auto 8px; border-radius: 99px; background: var(--bd); }
}
@keyframes no-fade { from { opacity: 0; } }
@keyframes no-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes no-sheet { from { transform: translateY(100%); } }
@keyframes no-drawer { from { transform: translateX(-100%); } }
.no-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 8px; }
.no-panel-head h2 { font-size: 15px; font-weight: 800; }
.no-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 0; background: none; color: var(--brand-tx); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.no-mi { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--tx); font-size: 13.5px; font-weight: 600; text-align: start; cursor: pointer; }
.no-mi:hover { background: var(--soft); }
.no-mi .i { color: var(--mu); }
.no-mi-brand, .no-mi-brand .i { color: var(--brand-tx); }
.no-mi-danger, .no-mi-danger .i { color: var(--bad); }
.no-count { margin-inline-start: auto; padding: 1px 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok-tx); font-size: 10.5px; font-style: normal; font-weight: 800; }
.no-pop hr { margin: 4px 0; border: 0; border-top: 1px solid var(--bd); }

.no-pref-group b { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 800; }
.no-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.no-seg button { display: grid; justify-items: center; gap: 4px; padding: 9px 4px; border: 1px solid var(--bd); border-radius: var(--r); background: var(--sf); color: var(--mu); font-size: 12px; font-weight: 700; cursor: pointer; }
.no-seg button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-tx); box-shadow: inset 0 0 0 1px var(--brand); }
.no-dots { display: flex; flex-wrap: wrap; gap: 10px; }
.no-dots button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--dot); cursor: pointer; }
.no-dots button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--sf), 0 0 0 4px var(--dot); }
.no-reset { padding: 10px; border: 1px dashed var(--bd); border-radius: var(--r); background: none; color: var(--mu); font-weight: 700; cursor: pointer; }

.no-netlist { display: grid; gap: 6px; }
.no-netrow { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--bd); border-radius: var(--r-md); }
.no-netrow:hover { background: var(--soft); }
.no-netrow.is-current { border-color: var(--brand); background: var(--brand-soft); }
.no-netrow-board { border-style: dashed; border-color: rgb(var(--brand-300)); }
.no-netrow-board .no-netrow-ico { background: var(--brand); color: #fff; }
.no-netrow-ico { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-tx); }
.no-netrow-txt { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.no-netrow-txt b { font-size: 13.5px; }
.no-netrow-txt > span { font-size: 11.5px; font-weight: 600; color: var(--mu); }
.no-chip { padding: 2px 8px; border-radius: 99px; font-size: 10.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.no-chip-ok { background: var(--ok-soft); color: var(--ok-tx); }
.no-chip-warn { background: var(--warn-soft); color: var(--warn-tx); }
.no-chip-bad { background: var(--bad-soft); color: var(--bad-tx); }
.no-check { color: var(--brand-tx); }

.no-notes { display: grid; }
.no-note { display: flex; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--bd); border-radius: var(--r-sm); cursor: pointer; }
.no-note:last-child { border-bottom: 0; }
.no-note:hover { background: var(--soft); }
.no-note-ico { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand-tx); }
.no-note-ico.is-admin { background: #ede9fe; color: #6d28d9; }
:root[data-theme="dark"] .no-note-ico.is-admin { background: #2e1f5e; color: #c4b5fd; }
.no-note-body { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.45; }
.no-note-body b { font-size: 13px; }
.no-note-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 12px; color: var(--mu); }
.no-note.is-open .no-note-body p { display: block; -webkit-line-clamp: unset; }
.no-note-body time { font-size: 11px; color: var(--mu2); }
.no-note-open { display: none; justify-self: start; }
.no-note.is-open .no-note-open { display: inline-flex; }
.no-dot { width: 8px; height: 8px; flex-shrink: 0; margin-top: 6px; border-radius: 50%; background: var(--brand); }
.no-more { display: block; padding: 10px; border-top: 1px solid var(--bd); text-align: center; color: var(--brand-tx); font-size: 13px; font-weight: 800; }
.no-empty { padding: 20px 8px; text-align: center; color: var(--mu); font-size: 13px; }

.no-toasts { position: fixed; z-index: 120; inset-inline: 0; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.no-toast { max-width: 480px; padding: 12px 16px; border-radius: var(--r); background: #0f172a; color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); pointer-events: auto; animation: no-pop .2s var(--ease) both; transition: opacity .3s; }
.no-toast[data-level="success"] { background: #166534; }
.no-toast[data-level="error"] { background: #9f1239; }
.no-toast[data-level="warning"] { background: #92400e; }
.no-toast.is-leaving { opacity: 0; }
.no-imp { position: relative; z-index: 100; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; background: #f59e0b; color: #451a03; font-size: 13px; font-weight: 600; }
.no-imp button { padding: 6px 12px; border: 0; border-radius: 8px; background: #451a03; color: #fef3c7; font-weight: 700; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ── Navigation engine: loader + view transitions ─────────── */
#no-page { view-transition-name: no-page; transition: opacity .2s; }
#no-shell.htmx-request #no-page { opacity: .45; transition: opacity .12s .05s; }
.no-loader { position: fixed; z-index: 25; top: 60px; bottom: 0; inset-inline: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .15s; }
#no-shell.htmx-request .no-loader { opacity: 1; transition-delay: .08s; }
#no-shell.is-styling #no-page { visibility: hidden; }
#no-shell.is-styling .no-loader { opacity: 1; }
.no-loader-card { display: grid; justify-items: center; gap: 10px; padding: 18px 22px; border-radius: 18px; background: color-mix(in srgb, var(--sf) 88%, transparent); backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); color: var(--mu); font-size: 12.5px; font-weight: 700; }
.no-spin { width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, var(--brand) 300deg, transparent 360deg); -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 calc(100% - 4px)); animation: no-rot .8s linear infinite; }
@keyframes no-rot { to { transform: rotate(360deg); } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(no-page) { animation: no-vt-out .06s ease-in both; }
::view-transition-new(no-page) { animation: no-vt-in .14s var(--ease) both; }
@keyframes no-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes no-vt-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
.no-error { max-width: 460px; margin: 10vh auto; display: grid; justify-items: center; gap: 10px; padding: 28px 22px; text-align: center; background: var(--sf); border: 1px solid var(--bd); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.no-error .i { width: 32px; height: 32px; color: var(--bad); }
.no-error h2 { font-size: 18px; font-weight: 800; }
.no-error p { color: var(--mu); }

/* ── Home ─────────────────────────────────────────────────── */
.no-notice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--space); padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn-tx); }
.no-notice p { font-size: 13px; opacity: .9; }
.no-home { display: grid; gap: calc(var(--space) * .75); }
@media (min-width: 1024px) {
  .no-home { grid-template-columns: 1.25fr 1fr; align-items: start; }
  /* Balance card and the three tiles share one row of equal height (no gap under the balance). */
  .no-home > .no-hero, .no-home > .no-tiles { align-self: stretch; }
  .no-home > .no-hero { align-content: center; }
  .no-home > .no-tiles { grid-template-columns: repeat(3, 1fr); }
  .no-home .no-tile.is-wide { grid-column: auto; }
}
.no-hero { display: grid; align-content: start; padding: 20px; border-radius: var(--r-xl); background: var(--hero); color: #fff; box-shadow: 0 14px 30px rgb(var(--brand-600) / .3); }
.no-hero small { font-size: 13px; font-weight: 500; opacity: .88; }
.no-hero-amount { margin: 6px 0 10px; font-size: clamp(34px, 5vw, 44px); font-weight: 800; line-height: 1.1; }
.no-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.no-tile { display: grid; justify-items: center; gap: 2px; padding: 14px; text-align: center; border: 1px solid var(--bd); border-radius: 18px; background: var(--sf); box-shadow: var(--shadow); }
.no-tile.is-wide { grid-column: 1 / -1; }
.no-tile-ico { width: 32px; height: 32px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand-tx); }
.no-tile i { font-size: 12.5px; font-style: normal; font-weight: 600; color: var(--mu); }
.no-tile b { font-size: 24px; font-weight: 800; }
.no-tile em { font-size: 12px; font-style: normal; font-weight: 600; color: var(--mu2); }
.no-tile .is-warn { color: var(--warn-tx); font-weight: 700; }
.no-tiles-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.no-tiles-compact .no-tile { padding: 10px; border-radius: 16px; }
.no-tiles-compact .no-tile b { font-size: 19px; }
.no-card { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--bd); border-radius: var(--r-lg); background: var(--sf); box-shadow: var(--shadow); }
.no-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.no-card-head h2 { font-size: 15px; font-weight: 800; }
.no-card-head a { font-size: 12.5px; font-weight: 700; color: var(--brand-tx); }
.no-stock-summary { padding: 8px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok-tx); font-size: 13px; }
.no-stock-summary p { opacity: .85; }
.no-stock-summary.is-warn { background: var(--warn-soft); color: var(--warn-tx); }
.no-stock-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.no-card-head + .no-stock-list { margin-top: 4px; }
.no-stock-list li { display: grid; grid-template-columns: 1fr auto auto 32px; align-items: center; gap: 4px 10px; font-size: 14px; font-weight: 700; }
.no-stock-name { min-width: 0; overflow-wrap: anywhere; }
.no-stock-add { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand-tx); }
.no-bar { grid-column: 1 / 4; height: 6px; overflow: hidden; border-radius: 99px; background: var(--track); }
.no-bar span { display: block; height: 100%; width: calc(var(--pct) * 1%); border-radius: 99px; background: var(--ok); transition: width .4s var(--ease); }
.no-stock-list li[data-stock="low"] .no-bar span { background: var(--warn); }
.no-stock-list li[data-stock="empty"] .no-bar span { background: var(--bad); }
.no-stock-list li.no-empty, .no-sales-list li.no-empty { display: block; padding: 12px 0; text-align: center; color: var(--mu); font-weight: 500; }
.no-seg-tabs { display: flex; padding: 3px; border-radius: 12px; background: var(--soft); }
.no-seg-tabs button { flex: 1; padding: 7px; border: 0; border-radius: 9px; background: none; color: var(--mu); font-size: 13px; font-weight: 700; cursor: pointer; }
.no-seg-tabs button[aria-selected="true"] { background: var(--sf); color: var(--tx); box-shadow: 0 1px 3px #0f172a1a; }
.no-sales-list { display: grid; margin: 0; padding: 0; list-style: none; }
.no-sales-list[hidden] { display: none; }
.no-sales-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--bd); font-size: 14px; font-weight: 600; }
.no-sales-list li:last-child { border-bottom: 0; }
.no-sales-list small { color: var(--mu2); }
@media (max-width: 1023.98px) { .no-hero { padding: 16px; border-radius: 20px; } .no-card { padding: 13px; border-radius: 18px; } }

/* ── Menu position: top (default) / bottom / side ─────────── */
.no-nav-toggle, .no-nav-scrim { display: none; }
:root:not([data-layout="side"]) .no-sidebar { display: none; }
:root[data-layout="side"] .no-tabs { display: none; }
@media (min-width: 1024px) {
  :root[data-layout="top"] .no-tabs { display: flex; justify-content: center; gap: 6px; padding: 8px 14px; }
  :root[data-layout="top"] .no-tab, :root[data-layout="bottom"] .no-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 14px; }
  :root[data-layout="top"] .no-tab .i, :root[data-layout="bottom"] .no-tab .i { width: 18px; height: 18px; }
  :root[data-layout="bottom"] .no-tabs { position: fixed; z-index: 40; top: auto; bottom: 16px; inset-inline: 0; width: fit-content; margin-inline: auto; display: flex; gap: 4px; padding: 6px; border: 1px solid var(--bd); border-radius: 18px; background: color-mix(in srgb, var(--sf) 90%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); }
  :root[data-layout="bottom"] .no-page { padding-bottom: 104px; }
  :root[data-layout="side"] .no-loader { inset-inline-start: 248px; }
}
@media (max-width: 1023.98px) {
  :root[data-layout="bottom"] .no-tabs { position: fixed; z-index: 40; top: auto; bottom: 0; inset-inline: 0; padding-bottom: calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bd); border-bottom: 0; background: color-mix(in srgb, var(--sf) 94%, transparent); backdrop-filter: blur(10px); }
  :root[data-layout="bottom"] .no-page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  :root[data-layout="side"] .no-nav-toggle { display: inline-flex; }
  :root[data-layout="side"] .no-sidebar { position: fixed; z-index: 95; top: 0; bottom: 0; inset-inline-start: 0; width: min(280px, 84vw); height: 100dvh; transform: translateX(105%); transition: transform .26s var(--ease); box-shadow: -18px 0 40px #0f172a33; }
  :root.no-nav-open[data-layout="side"] .no-sidebar { transform: none; }
  :root.no-nav-open[data-layout="side"] .no-nav-scrim { display: block; position: fixed; z-index: 94; inset: 0; background: #0f172a59; animation: no-fade .2s ease both; }
}

/* ── Panels anchored under their icon ─────────────────────── */
.no-pop.is-anchored { position: fixed; inset-inline: auto; top: var(--a-top); bottom: auto; left: var(--a-left); width: var(--a-width); max-height: calc(100dvh - var(--a-top) - 12px); overflow-y: auto; padding: 8px; border-radius: var(--r-md); animation: no-pop .18s var(--ease) both; }
.is-anchored .no-grab { display: none; }
@media (max-width: 1023.98px) { .no-layer-pop .no-scrim { background: #0f172a33; } }

/* ── Forms (shared by account, password and network request pages) ── */
.no-field { display: grid; align-content: start; gap: 6px; font-size: 13px; font-weight: 700; }
.no-field input, .no-field select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--bd); border-radius: var(--r); background: var(--sf); color: var(--tx); font: inherit; font-weight: 500; }
.no-field input:focus, .no-field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(var(--brand-500) / .18); }
.no-field input:disabled { opacity: .55; }
.no-field.has-error input, .no-field.has-error select { border-color: var(--bad); }
.no-field-error, .no-form-error { color: var(--bad-tx); font-size: 12.5px; font-weight: 600; }
.no-form-error { padding: 10px 12px; border-radius: var(--r); background: var(--bad-soft); }
.no-hint { font-size: 12px; font-weight: 500; color: var(--mu); }
.no-btn-ghost { border: 1px solid var(--bd); background: transparent; color: var(--bad); }
.no-btn-line { border: 1px solid var(--bd); background: var(--sf); color: var(--tx); }
.no-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--mu); font-size: 13px; font-weight: 700; }
.no-back:hover { color: var(--brand-tx); }

/* ── Admin message (centered, once after login) ───────────── */
.no-layer-modal { z-index: 110; }
.no-modal { position: absolute; top: 50%; left: 50%; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; display: grid; background: var(--sf); color: var(--tx); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); transform: translate(-50%, -50%); animation: no-modal .22s var(--ease) both; }
.no-modal:focus { outline: none; }
@keyframes no-modal { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.no-modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 12px; border-bottom: 1px solid var(--bd); background: linear-gradient(to left, #ede9fe66, transparent); }
.no-modal-ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: #ede9fe; color: #6d28d9; }
:root[data-theme="dark"] .no-modal-ico { background: #2e1f5e; color: #c4b5fd; }
.no-modal-titles { flex: 1; min-width: 0; display: grid; gap: 4px; }
.no-modal-titles h2 { font-size: 18px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.no-modal-titles time, .no-modal-titles p { font-size: 12px; color: var(--mu); }
.no-chip-admin { width: fit-content; background: #ede9fe; color: #6d28d9; }
:root[data-theme="dark"] .no-chip-admin { background: #2e1f5e; color: #c4b5fd; }
.no-modal-body { display: grid; gap: 12px; padding: 16px 18px; }
.no-modal-text { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.no-note-full { white-space: pre-line; }  /* the notification window keeps the message's line breaks */
.no-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 18px; }
.no-btn-soft { background: var(--soft); color: var(--tx); }
.no-netcards { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--bd); border-radius: var(--r-md); background: var(--soft); }
.no-netcards-head { display: flex; align-items: center; gap: 10px; color: var(--brand-tx); }
.no-netcards-head div { display: grid; line-height: 1.35; color: var(--tx); }
.no-netcards-head small { font-size: 11.5px; color: var(--mu); }
.no-netcard-item { padding: 10px 12px; border-radius: var(--r); background: var(--sf); }
.no-netcard-item h3 { font-size: 14px; font-weight: 800; }
.no-netcard-item p { font-size: 12px; color: var(--mu); }
.no-netcard-item dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 0; }
.no-netcard-item dl div { padding: 6px; border-radius: 10px; background: var(--ok-soft); color: var(--ok-tx); text-align: center; }
.no-netcard-item dl div.is-bad { background: var(--bad-soft); color: var(--bad-tx); }
.no-netcard-item dl div.is-warn { background: var(--warn-soft); color: var(--warn-tx); }
.no-netcard-item dt { font-size: 10.5px; font-weight: 700; }
.no-netcard-item dd { margin: 0; font-size: 16px; font-weight: 800; }
@media (max-width: 520px) { .no-netcard-item dl { grid-template-columns: repeat(2, 1fr); } }
:root.no-modal-open #device-push-prompt { display: none !important; }

/* ── Attention popup (home, once a day) ───────────────────── */
.no-modal-head.is-warn { background: linear-gradient(to left, var(--warn-soft), transparent); }
.no-modal-head.is-warn .no-modal-ico { background: var(--warn-soft); color: var(--warn-tx); }
.no-alerts { margin: 0; list-style: none; }
.no-alerts li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--bd); border-radius: var(--r-md); }
.no-alerts li div { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.45; }
.no-alerts b { font-size: 14px; }
.no-alerts p { font-size: 12.5px; color: var(--mu); overflow-wrap: anywhere; }
.no-alert-ico { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-tx); }
.no-alerts [data-tone="rose"] .no-alert-ico { background: var(--bad-soft); color: var(--bad-tx); }
.no-alerts [data-tone="amber"] .no-alert-ico { background: var(--warn-soft); color: var(--warn-tx); }

/* ── Account drawer ───────────────────────────────────────── */
.no-user { display: flex; flex-direction: column; gap: 0; padding: 0; }
.no-user-hero, .no-user-foot { flex-shrink: 0; }
.no-user-hero { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 2px; padding: 30px 16px 20px; text-align: center; color: #fff; background: var(--hero); }
.no-user-hero::before, .no-user-hero::after { content: ''; position: absolute; border-radius: 50%; background: #ffffff14; }
.no-user-hero::before { width: 220px; height: 220px; top: -120px; left: -70px; }
.no-user-hero::after { width: 150px; height: 150px; bottom: -80px; right: -40px; }
.no-user-hero > * { position: relative; z-index: 1; }
.no-user-hero .no-user-close { position: absolute; top: 10px; inset-inline-end: 10px; color: #fff; }
.no-user-photo { width: 76px; height: 76px; margin-bottom: 8px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 4px #ffffff40, 0 10px 24px #0003; }
.no-user-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-user-hero b { font-size: 17px; font-weight: 800; }
.no-user-hero span { font-size: 13px; opacity: .85; }
.no-user-body { flex: 1; display: grid; align-content: start; gap: 14px; padding: 14px 10px; }
.no-user-group { display: grid; gap: 2px; }
.no-user-group small { padding: 0 10px 2px; font-size: 11.5px; font-weight: 800; color: var(--mu2); }
.no-mi-ico { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); }
.no-mi .no-mi-ico .i { color: var(--brand-tx); }
.no-mi .no-mi-go { margin-inline-start: auto; color: var(--mu2); }
.no-user-foot { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bd); }
.no-user-foot .no-btn { width: 100%; }
