/* Modern look for every page — loaded last, so it restyles what each page already has (see modern.js). */
@property --hue  { syntax: '<number>'; inherits: true; initial-value: 28; }
@property --hue2 { syntax: '<number>'; inherits: true; initial-value: 350; }

:root {
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 1px 1px rgba(16, 24, 40, 0.04), 0 14px 34px -20px rgba(16, 24, 40, 0.28);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --glass: rgba(255, 255, 255, 0.72);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glass: rgba(27, 33, 36, 0.72); --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 16px 36px -20px rgba(0, 0, 0, 0.7); } }
:root[data-theme="dark"] { --glass: rgba(27, 33, 36, 0.72); --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 16px 36px -20px rgba(0, 0, 0, 0.7); }
:root[data-theme="black"] { --glass: rgba(11, 11, 12, 0.72); --shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 16px 36px -20px rgba(0, 0, 0, 0.9); }

/* Rainbow accent: cycle the two hue variables the whole app is built on (drives hovers, chips, borders…). */
@keyframes mb-hue-cycle { from { --hue: 0; --hue2: 320; } to { --hue: 360; --hue2: 680; } }
/* !important so the rainbow still moves even when the OS has "reduce motion" on — it is an effect
   a person deliberately switched on, so we honour that choice over the global reduced-motion freeze. */
:root[data-accent^="rainbow"] { animation: mb-hue-cycle calc(6s / var(--fx-speed, 1)) linear infinite !important; }

/* …and a flowing rainbow "wave". To loop seamlessly (no "slideshow" jump) the rainbow is laid down
   TWICE across the image and we pan exactly one copy's width (0%→100%), so the end frame is identical
   to the start. mb-flow-x pans horizontally, mb-flow-y vertically (for the tall sidebar). */
@keyframes mb-flow-x { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes mb-flow-y { from { background-position: 50% 0%; } to { background-position: 50% 100%; } }
:root[data-accent^="rainbow"] .btn-primary,
:root[data-accent^="rainbow"] .tab-ind,
:root[data-accent^="rainbow"] .mb-logo,
:root[data-accent^="rainbow"] .cw-launcher,
:root[data-accent^="rainbow"] .cw-head,
:root[data-accent^="rainbow"] .cw-send,
:root[data-accent^="rainbow"] .cw-tray-connect,
:root[data-accent^="rainbow"] .brand,
:root[data-accent^="rainbow"] input[type="file"]::file-selector-button {
  background-image: linear-gradient(90deg, #ff6b6b 0%, #ffb23e 7.1%, #ffe23e 14.3%, #5fe08a 21.4%, #3ec8ff 28.6%, #7b6bff 35.7%, #e06bff 42.9%, #ff6b6b 50%, #ffb23e 57.1%, #ffe23e 64.3%, #5fe08a 71.4%, #3ec8ff 78.6%, #7b6bff 85.7%, #e06bff 92.9%, #ff6b6b 100%) !important;
  background-size: 200% 100% !important;
  background-repeat: no-repeat !important;
  animation: mb-flow-x calc(4s / var(--fx-speed, 1)) linear infinite !important;
}
:root[data-accent^="rainbow"] body.mb-side .tabs .tab-btn.active { color: #fff !important; }

/* "Rainbow (whole page)" — flood the page background with the same seamless flow. Cards stay
   readable because they sit on their own near-opaque surface. */
:root[data-accent="rainbow-full"] body,
:root[data-accent="rainbow-full"] body.mb-side {
  background-image: linear-gradient(90deg, #ff6b6b 0%, #ffb23e 7.1%, #ffe23e 14.3%, #5fe08a 21.4%, #3ec8ff 28.6%, #7b6bff 35.7%, #e06bff 42.9%, #ff6b6b 50%, #ffb23e 57.1%, #ffe23e 64.3%, #5fe08a 71.4%, #3ec8ff 78.6%, #7b6bff 85.7%, #e06bff 92.9%, #ff6b6b 100%) !important;
  background-size: 200% 100% !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  animation: mb-flow-x calc(12s / var(--fx-speed, 1)) linear infinite !important;
}
/* …and the sidebar panel itself — flows vertically. White tab text gets a soft shadow for legibility. */
:root[data-accent="rainbow-full"] body.mb-side .tabs {
  background-image: linear-gradient(180deg, #ff6b6b 0%, #ffb23e 7.1%, #ffe23e 14.3%, #5fe08a 21.4%, #3ec8ff 28.6%, #7b6bff 35.7%, #e06bff 42.9%, #ff6b6b 50%, #ffb23e 57.1%, #ffe23e 64.3%, #5fe08a 71.4%, #3ec8ff 78.6%, #7b6bff 85.7%, #e06bff 92.9%, #ff6b6b 100%) !important;
  background-size: 100% 200% !important;
  background-repeat: no-repeat !important;
  animation: mb-flow-y calc(10s / var(--fx-speed, 1)) linear infinite !important;
}
/* on phones the tab bar is a short, wide horizontal strip — flow the rainbow across it instead */
@media (max-width: 960px) {
  :root[data-accent="rainbow-full"] body.mb-side .tabs {
    background-image: linear-gradient(90deg, #ff6b6b 0%, #ffb23e 7.1%, #ffe23e 14.3%, #5fe08a 21.4%, #3ec8ff 28.6%, #7b6bff 35.7%, #e06bff 42.9%, #ff6b6b 50%, #ffb23e 57.1%, #ffe23e 64.3%, #5fe08a 71.4%, #3ec8ff 78.6%, #7b6bff 85.7%, #e06bff 92.9%, #ff6b6b 100%) !important;
    background-size: 200% 100% !important;
    animation: mb-flow-x calc(8s / var(--fx-speed, 1)) linear infinite !important;
  }
}
:root[data-accent="rainbow-full"] body.mb-side .tabs .tab-btn,
:root[data-accent="rainbow-full"] .mb-brand b,
:root[data-accent="rainbow-full"] .mb-brand small { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.55); }

/* random floating "light" shapes over the whole-page rainbow (built in public/modern.js) */
#mb-rainbow-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; mix-blend-mode: screen; animation: fx-hue calc(16s / var(--fx-speed, 1)) linear infinite; }
.mb-fx { position: absolute; animation-timing-function: ease-in-out; animation-iteration-count: infinite; will-change: transform, border-radius; }
.mb-fx-glow { border-radius: 50%; background: radial-gradient(circle at 50% 50%, hsl(var(--h) 95% 62% / .92), hsl(var(--h) 95% 55% / 0) 70%); filter: blur(16px); }
.mb-fx-blob { background: radial-gradient(circle at 50% 50%, hsl(var(--h) 95% 62% / .85), transparent 72%); filter: blur(12px); border-radius: 46% 54% 60% 40% / 48% 44% 56% 52%; }
.mb-fx-star { background: hsl(var(--h) 95% 60% / .85); filter: blur(5px); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.mb-fx-tri { background: hsl(var(--h) 95% 60% / .85); filter: blur(5px); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mb-fx-ring { border-radius: 50%; border: 1.8vmax solid hsl(var(--h) 95% 60% / .8); filter: blur(7px); }
.mb-fx-hex { background: hsl(var(--h) 95% 60% / .82); filter: blur(5px); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.mb-fx-sparkle { background: hsl(var(--h) 100% 72% / .95); filter: blur(1.5px); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.mb-fx-streak { border-radius: 50%; filter: blur(6px); background: linear-gradient(90deg, transparent, hsl(var(--h) 95% 66% / .9) 50%, transparent); }
@keyframes fx-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* drifting Telegram-sticker background layer (built in public/modern.js) */
#mb-sticker-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mb-sfx { position: absolute; animation-timing-function: ease-in-out; animation-iteration-count: infinite; will-change: transform; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.mb-sfx img, .mb-sfx video { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes fx-hue { to { filter: hue-rotate(360deg); } }
@keyframes fx-morph { 0%, 100% { border-radius: 46% 54% 60% 40% / 48% 44% 56% 52%; } 50% { border-radius: 62% 38% 34% 66% / 58% 64% 36% 42%; } }
@keyframes fx-drift-a { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); } 33% { transform: translate(16vw, 9vh) scale(1.3) rotate(80deg); } 66% { transform: translate(-11vw, 17vh) scale(.85) rotate(-50deg); } }
@keyframes fx-drift-b { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); } 50% { transform: translate(-17vw, -13vh) scale(1.45) rotate(140deg); } }
@keyframes fx-drift-c { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); } 50% { transform: translate(15vw, -19vh) scale(1.15) rotate(200deg); } }
:root[data-accent="rainbow-full"] body.mb-side .tabs.tabs-js .tab-btn:hover:not(.active) { background: rgba(255,255,255,.18) !important; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: --hue 0.6s var(--ease), --hue2 0.6s var(--ease);
  background:
    radial-gradient(900px 520px at 6% -10%, hsl(var(--hue) 95% 90% / 0.7), transparent 70%),
    radial-gradient(800px 500px at 100% -5%, hsl(var(--hue2) 90% 91% / 0.6), transparent 70%),
    radial-gradient(900px 600px at 50% 115%, hsl(var(--hue) 85% 93% / 0.45), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background:
      radial-gradient(900px 520px at 6% -10%, hsl(var(--hue) 60% 22% / 0.55), transparent 70%),
      radial-gradient(800px 500px at 100% -5%, hsl(var(--hue2) 55% 22% / 0.45), transparent 70%),
      var(--bg);
    background-attachment: fixed;
  }
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(900px 520px at 6% -10%, hsl(var(--hue) 60% 22% / 0.55), transparent 70%),
    radial-gradient(800px 500px at 100% -5%, hsl(var(--hue2) 55% 22% / 0.45), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
:root[data-theme="black"] body {
  background:
    radial-gradient(900px 520px at 6% -10%, hsl(var(--hue) 60% 16% / 0.35), transparent 70%),
    radial-gradient(800px 500px at 100% -5%, hsl(var(--hue2) 55% 16% / 0.28), transparent 70%),
    #000;
  background-attachment: fixed;
}

/* ---- header ---- */
header h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.025em; }
header h1 .dot { animation: mb-pulse 2.8s ease-in-out infinite; }
header .mode-badge { border-radius: 999px; backdrop-filter: blur(6px); }
header p { opacity: 0.9; }
.nav { align-items: center; gap: 0.5rem; }
.nav-btn {
  background: var(--glass) !important; backdrop-filter: blur(10px);
  border: 1px solid var(--border) !important; color: var(--text) !important;
  border-radius: 999px !important; font-weight: 600;
}
.nav-btn:hover { border-color: var(--accent) !important; color: var(--accent-dark) !important; background: var(--accent-soft) !important; }
.who { font-weight: 700; color: var(--muted); }

/* ---- cards ---- */
.card, .login {
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover { box-shadow: 0 1px 1px rgba(16, 24, 40, 0.04), 0 22px 44px -22px hsl(var(--hue) 60% 30% / 0.35); }

/* ---- tabs: one pill that slides between tabs ---- */
.tabs { position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--glass); backdrop-filter: blur(12px); }
.tabs::-webkit-scrollbar { display: none; }
.tabs.tabs-js .tab-btn { position: relative; z-index: 1; transition: color 0.25s, background 0.2s; }
.tabs.tabs-js .tab-btn.active { background: transparent !important; box-shadow: none !important; color: #fff !important; }
.tabs.tabs-js .tab-btn:hover:not(.active) { color: var(--text); background: var(--accent-soft); }
.tab-ind {
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px -10px hsl(var(--hue) 85% 45% / 0.65);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), height 0.3s var(--ease), opacity 0.2s;
}

/* ---- buttons & fields ---- */
:where(button, .nav-btn, a.nav-btn) { transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s, background 0.2s, border-color 0.2s, color 0.2s; }
:where(button:not(:disabled):not(.tab-btn)):hover { transform: translateY(-1px); }
:where(button:not(:disabled):not(.tab-btn)):active { transform: translateY(0) scale(0.97); }
:where(button:not(:disabled)):focus-visible, a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.25s var(--ease), background 0.2s;
}
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* ---- tables ---- */
table { border-radius: var(--radius-sm); }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: var(--accent-soft); }
tbody tr { animation: mb-row 0.4s var(--ease) backwards; }
tbody tr:nth-child(2) { animation-delay: 0.02s; } tbody tr:nth-child(3) { animation-delay: 0.04s; } tbody tr:nth-child(4) { animation-delay: 0.06s; }
tbody tr:nth-child(5) { animation-delay: 0.08s; } tbody tr:nth-child(6) { animation-delay: 0.1s; } tbody tr:nth-child(7) { animation-delay: 0.12s; }
tbody tr:nth-child(8) { animation-delay: 0.14s; } tbody tr:nth-child(9) { animation-delay: 0.16s; } tbody tr:nth-child(10) { animation-delay: 0.18s; }
tbody tr:nth-child(n+11) { animation-delay: 0.2s; }

/* ---- entrance + live status animations ---- */
header { animation: mb-rise 0.55s var(--ease) backwards; }
.tabs { animation: mb-rise 0.55s var(--ease) 0.06s backwards; }
.card, [id$="Area"], .directory-status, .actions { animation: mb-rise 0.55s var(--ease) 0.1s backwards; }
.row-pass, .row-fail, .row-info, .sa-err, .cv-err { animation: mb-slide 0.35s var(--ease) backwards; }
#accountChooser.show .box { animation: mb-pop 0.45s var(--ease) backwards; }
@keyframes mb-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes mb-row { from { opacity: 0; transform: translateX(-8px); } }
@keyframes mb-slide { from { opacity: 0; transform: translateX(-10px); } }
@keyframes mb-pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } }
@keyframes mb-pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 9px transparent; } }

/* ---- profile picture ---- */
.mb-avatar-wrap { position: relative; display: inline-flex; }
.mb-avatar {
  width: 2.5rem; height: 2.5rem; padding: 0 !important; border-radius: 50% !important; overflow: hidden; cursor: pointer;
  border: 2px solid transparent !important; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--accent), var(--accent-2)) border-box !important;
  display: inline-grid; place-items: center; font-weight: 800; font-size: 0.95rem; color: #fff; box-shadow: var(--shadow-sm);
}
.mb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-avatar .mb-ini { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; }
.mb-avatar:hover { transform: scale(1.07) !important; box-shadow: 0 8px 20px -8px hsl(var(--hue) 80% 40% / 0.6); }
.mb-menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 60; min-width: 13rem; padding: 0.4rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  display: none; flex-direction: column; gap: 0.15rem; transform-origin: top right;
}
.mb-menu.open { display: flex; animation: mb-pop 0.25s var(--ease); }
.mb-menu .mb-menu-head { padding: 0.45rem 0.6rem 0.55rem; font-weight: 800; border-bottom: 1px solid var(--border-soft); margin-bottom: 0.2rem; }
.mb-menu button { all: unset; box-sizing: border-box; cursor: pointer; padding: 0.5rem 0.6rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.mb-menu button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.mb-menu .mb-note { padding: 0.2rem 0.6rem 0.4rem; font-size: 0.74rem; color: var(--muted); }
.mb-menu .mb-note.err { color: var(--danger); }

@media (max-width: 720px) { header { flex-wrap: wrap !important; } .nav { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* =====================================================================================================
   Sidebar layout (pages with the tab list: Bulk Add and Approving) — body.mb-side is set by modern.js
   ===================================================================================================== */
body.mb-side {
  --side-w: 16rem;
  max-width: none; margin: 0; padding: 0 2.4rem 4rem calc(var(--side-w) + 2.4rem);
  background: #f2f3f8;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.mb-side { background: #0b0d15; } }
:root[data-theme="dark"] body.mb-side { background: #0b0d15; }
:root[data-theme="black"] body.mb-side { background: #000; }
body.mb-side > :not(.tabs):not(.mb-brand):not(script):not(#accountChooser) { max-width: none; }

/* the sidebar */
body.mb-side .tabs {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: var(--side-w); max-width: none; margin: 0;
  display: flex; flex-direction: column; gap: 0.2rem; flex-wrap: nowrap; overflow-y: auto; overflow-x: hidden;
  padding: 6.4rem 0.9rem 1.5rem; border-radius: 0; border: 0; backdrop-filter: none; animation: mb-slide-in 0.6s var(--ease) backwards;
  background:
    radial-gradient(260px 220px at 0% 0%, hsl(var(--hue) 80% 40% / 0.45), transparent 70%),
    radial-gradient(260px 260px at 100% 100%, hsl(var(--hue2) 80% 40% / 0.35), transparent 70%),
    linear-gradient(180deg, #12142a, #0b0d1c);
  box-shadow: 8px 0 40px -18px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
body.mb-side .tabs .tab-btn {
  display: flex; align-items: center; gap: 0.8rem; width: 100%; text-align: left; white-space: normal;
  padding: 0.7rem 0.95rem; border-radius: 14px; font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.62);
  line-height: 1.2;
}
body.mb-side .tabs.tabs-js .tab-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.07); color: #fff; }
body.mb-side .tabs.tabs-js .tab-btn.active { color: #fff !important; }
body.mb-side .tab-btn .ti { width: 1.25rem; height: 1.25rem; flex: none; display: inline-grid; place-items: center; }
body.mb-side .tab-btn .ti svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.mb-side .tab-ind { border-radius: 14px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 26px -12px hsl(var(--hue) 90% 55% / 0.8); }

/* brand block at the top of the sidebar */
.mb-brand { position: fixed; left: 0; top: 0; z-index: 41; width: var(--side-w); padding: 1.5rem 1.4rem 0; display: flex; align-items: center; gap: 0.8rem; pointer-events: none; }
.mb-logo { width: 2.5rem; height: 2.5rem; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 0.78rem; letter-spacing: -0.03em; box-shadow: 0 10px 24px -10px hsl(var(--hue) 90% 55% / 0.9); }
.mb-brand b { display: block; color: #fff; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.1; }
.mb-brand small { color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* top bar: page title + account controls */
body.mb-side header { margin: 0; padding: 1.7rem 0 1.4rem; align-items: center; animation: none; }
body.mb-side header > div:first-child > :not(.mb-title) { display: none !important; }
body.mb-side header h1, body.mb-side header > div > p { display: none !important; }
.mb-title { animation: mb-rise 0.5s var(--ease) backwards; }
.mb-title h2 { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(100deg, var(--text) 30%, var(--accent) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mb-title p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }
body.mb-side .nav { gap: 0.55rem; }
body.mb-side .nav-btn { background: var(--card) !important; box-shadow: var(--shadow-sm); backdrop-filter: none; }
body.mb-side .who { display: none; }
body.mb-side .app-version { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--muted); padding: .2rem .55rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }

/* content surfaces */
body.mb-side .card { background: var(--card); backdrop-filter: none; border: 1px solid var(--border-soft); border-radius: 22px; padding: 1.6rem 1.8rem; box-shadow: 0 1px 2px rgba(20, 24, 50, 0.04), 0 18px 40px -26px rgba(30, 36, 90, 0.3); }
body.mb-side .card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20, 24, 50, 0.04), 0 26px 50px -26px hsl(var(--hue) 60% 35% / 0.38); }
body.mb-side textarea, body.mb-side input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), body.mb-side select { background-color: var(--card-soft); }
@keyframes mb-slide-in { from { transform: translateX(-100%); opacity: 0; } }

/* small screens: the sidebar folds back into a scrolling bar */
@media (max-width: 960px) {
  body.mb-side { padding: 0 1rem 3rem; }
  .mb-brand { display: none; }
  body.mb-side .tabs { position: sticky; top: 0.5rem; width: auto; flex-direction: row; padding: 0.35rem; border-radius: 999px; margin: 0.8rem 0 1rem; overflow-x: auto; overflow-y: hidden;
    background: #12142a; animation: none; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6); }
  body.mb-side .tabs .tab-btn { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 0.55rem 0.9rem; border-radius: 999px; }
  body.mb-side .tab-ind { border-radius: 999px; }
  body.mb-side header { padding: 1rem 0 0.4rem; flex-wrap: wrap; }
  .mb-title h2 { font-size: 1.5rem; }
}

body.mb-side .directory-status { background: var(--card); border: 1px solid var(--border-soft); border-radius: 999px; padding: 0.45rem 0.6rem 0.45rem 1.1rem; width: fit-content; max-width: 100%; box-shadow: var(--shadow-sm); font-size: 0.85rem; margin: 0 0 1.4rem; }
body.mb-side hr, body.mb-side .divider { border-color: var(--border-soft); }
.sa-sched .sa-in-short { width: auto; min-width: 14rem; }

/* ---- sign-in / reset pages: split screen ---- */
body:has(> main.login) { display: grid; place-items: stretch; align-items: stretch; justify-items: stretch; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); max-width: none; margin: 0; padding: 0; min-height: 100vh; background: var(--bg); }
body:has(> main.login)::before { align-self: stretch; justify-self: stretch; height: auto; width: auto;
  content: "Keat Hong Node\A Mobius"; white-space: pre; display: flex; flex-direction: column; justify-content: flex-end; padding: 4rem;
  font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.04em; color: #fff;
  background:
    radial-gradient(520px 420px at 15% 10%, hsl(var(--hue) 90% 55% / 0.65), transparent 70%),
    radial-gradient(520px 520px at 90% 90%, hsl(var(--hue2) 90% 55% / 0.55), transparent 70%),
    linear-gradient(160deg, #12142a, #0b0d1c);
  animation: mb-slide-in 0.8s var(--ease) backwards;
}
body:has(> main.login) > main.login { align-self: center; justify-self: center; width: min(26rem, calc(100% - 3rem)); margin: 2rem 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; }
body:has(> main.login) > main.login .brand { display: none; }
body:has(> main.login) > main.login .sub { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin: 0 0 1.4rem; }
@media (max-width: 800px) { body:has(> main.login) { grid-template-columns: 1fr; } body:has(> main.login)::before { align-self: stretch; justify-self: stretch; height: auto; width: auto; display: none; } }

/* =====================================================================================================
   Polish pass: controls, motion, feedback
   ===================================================================================================== */

/* ---- file pickers ("Choose File") ---- */
input[type="file"] {
  font-size: 0.85rem; color: var(--muted); max-width: 100%; padding: 0.35rem; cursor: pointer;
  border: 1.5px dashed var(--border); border-radius: 999px; background: var(--card-soft);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
input[type="file"]:hover { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 10px 24px -16px hsl(var(--hue) 80% 40% / 0.6); }
input[type="file"]::file-selector-button {
  margin-right: 0.85rem; border: 0; padding: 0.5rem 1.1rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.82rem; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 18px -10px hsl(var(--hue) 85% 45% / 0.7);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s;
}
input[type="file"]::file-selector-button:hover { transform: translateY(-1px) scale(1.03); filter: brightness(1.07); box-shadow: 0 12px 24px -10px hsl(var(--hue) 85% 45% / 0.85); }
input[type="file"]::file-selector-button:active { transform: scale(0.96); }

/* ---- dropdowns ---- */
select:not([multiple]) {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.3rem !important;
  border: 1px solid var(--border); background-color: var(--card-soft); color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.25s var(--ease), background-color 0.2s, background-position 0.25s var(--ease);
}
select:not([multiple]):hover { border-color: var(--accent); background-color: var(--accent-soft); background-position: right 0.75rem center; }
select:not([multiple]):focus { background-position: right 0.75rem center; }
select option { background: var(--card); color: var(--text); }

/* ---- checkboxes & radios ---- */
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; width: 1.15rem; height: 1.15rem; margin: 0; flex: none; display: inline-grid; place-content: center; vertical-align: -0.22rem; cursor: pointer;
  border: 1.6px solid var(--muted-soft); background: var(--card);
  transition: background 0.2s, border-color 0.2s, transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
}
input[type="checkbox"] { border-radius: 6px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::before { content: ""; width: 0.62rem; height: 0.62rem; background: #fff; transform: scale(0) rotate(-25deg); transition: transform 0.25s var(--ease); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
input[type="radio"]::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.25s var(--ease); }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 6px 14px -6px hsl(var(--hue) 85% 45% / 0.8); }
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { transform: scale(1) rotate(0); }
input[type="checkbox"]:hover:not(:disabled), input[type="radio"]:hover:not(:disabled) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="checkbox"]:active:not(:disabled), input[type="radio"]:active:not(:disabled) { transform: scale(0.85); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: 0.45; cursor: not-allowed; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---- buttons: ripple + glow ---- */
:where(button, a.nav-btn, .nav-btn):not(.mb-menu button):not(.mb-avatar) { position: relative; overflow: hidden; }
:where(button:not(:disabled):not(.tab-btn)):hover { filter: brightness(1.05) saturate(1.08); box-shadow: 0 10px 22px -12px hsl(var(--hue) 80% 40% / 0.55); }
.mb-rip { position: absolute; border-radius: 50%; background: currentColor; opacity: 0.22; transform: scale(0); pointer-events: none; animation: mb-ripple 0.65s var(--ease) forwards; }
@keyframes mb-ripple { to { transform: scale(1); opacity: 0; } }
button:disabled { cursor: not-allowed; }

/* ---- sidebar motion ---- */
.tab-btn .ti svg { transition: transform 0.35s var(--ease); }
.tab-btn:hover .ti svg { transform: scale(1.18) rotate(-7deg); }
.tab-btn.active .ti svg { animation: mb-icon-pop 0.5s var(--ease); }
body.mb-side .tabs .tab-btn:hover:not(.active) { transform: translateX(4px); }
@keyframes mb-icon-pop { 0% { transform: scale(0.6) rotate(-20deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.mb-logo { animation: mb-glow 3.6s ease-in-out infinite; }
@keyframes mb-glow { 0%, 100% { box-shadow: 0 10px 24px -10px hsl(var(--hue) 90% 55% / 0.9); transform: translateY(0); } 50% { box-shadow: 0 16px 34px -8px hsl(var(--hue2) 90% 60% / 0.95); transform: translateY(-2px); } }

/* ---- cards: spotlight that follows the pointer, staggered contents ---- */
body.mb-side .card { background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), hsl(var(--hue) 95% 60% / 0.09), transparent 65%), var(--card); }
.card > * { animation: mb-rise 0.5s var(--ease) backwards; }
.card > :nth-child(1) { animation-delay: 0.08s; } .card > :nth-child(2) { animation-delay: 0.13s; } .card > :nth-child(3) { animation-delay: 0.18s; }
.card > :nth-child(4) { animation-delay: 0.23s; } .card > :nth-child(5) { animation-delay: 0.28s; } .card > :nth-child(n+6) { animation-delay: 0.32s; }
details[open] > :not(summary) { animation: mb-rise 0.35s var(--ease); }
summary { cursor: pointer; transition: color 0.2s; }
summary:hover { color: var(--accent-dark); }

/* ---- tables ---- */
tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tbody tr td, thead th { transition: background 0.15s, box-shadow 0.2s; }

/* ---- links ---- */
a:not(.nav-btn) { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.3s var(--ease), color 0.2s; }
a:not(.nav-btn):hover { background-size: 100% 1.5px; }

/* ---- top progress bar while the app is talking to the server ---- */
.mb-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 200; overflow: hidden; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.mb-progress.on { opacity: 1; }
.mb-progress::before { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); animation: mb-bar 1.1s linear infinite; }
@keyframes mb-bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---- busy buttons breathe ---- */
button:disabled:not(.tab-btn) { animation: none; }
label input[type="checkbox"], label input[type="radio"] { vertical-align: -0.28rem; margin-right: 0.35rem; }

/* ---- added since: command palette, search hint, theme buttons ---- */
.mb-kbd.mb-kbd { position: fixed !important; overflow: visible; left: .75rem; top: 4.4rem; z-index: 42; width: calc(var(--side-w) - 1.5rem); margin: 0; padding: .45rem .7rem; border: 1px solid rgb(255 255 255 / 14%); border-radius: 12px; color: rgba(255,255,255,.6); font-size: 12px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: rgba(255,255,255,.04); }
.mb-kbd:hover { background: rgba(255,255,255,.1); color: #fff; }
.mb-kbd kbd { font-family: ui-monospace, Consolas, monospace; font-size: 11px; opacity: .85; }
@media (max-width: 960px) { .mb-kbd.mb-kbd { display: none !important; } }
.mb-theme { display: flex; gap: .25rem; padding: .35rem .4rem .5rem; }
.mb-theme button { all: unset; box-sizing: border-box; flex: 1; text-align: center; cursor: pointer; border: 1px solid var(--border); border-radius: 8px; padding: .35rem 0; font-size: .78rem; font-weight: 600; }
.mb-theme button:hover { background: var(--accent-soft); }
.mb-theme button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
/* custom background (a picture or looping video the person picks — public/modern.js).
   Overshoots the viewport (inset: -40px) so the blur filter's soft edges never show. Brightness and
   blur are driven by --bg-bright / --bg-blur, set from the sliders in the profile menu. */
#mb-bg { position: fixed; inset: -40px; z-index: -1; pointer-events: none; overflow: hidden;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: brightness(var(--bg-bright, 0.7)) blur(var(--bg-blur, 0px)); will-change: filter; }
#mb-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* fit modes (data-fit set from the Fill / Fit / Tile buttons) */
#mb-bg[data-fit="contain"] { background-size: contain; }
#mb-bg[data-fit="contain"] video { object-fit: contain; }
#mb-bg[data-fit="tile"] { background-size: auto; background-repeat: repeat; }
/* let the chosen media show through: drop the page's own backgrounds (!important beats the theme ones) */
body.mb-has-bg, body.mb-has-bg.mb-side { background: transparent !important; }
body.mb-has-bg.mb-side .card, body.mb-has-bg .card { backdrop-filter: blur(16px) saturate(1.2); }
/* frost the sidebar panel so the photo reads through it as one glass surface */
body.mb-has-bg.mb-side .tabs { background: linear-gradient(180deg, rgba(18,20,42,.74), rgba(11,13,28,.74)) !important; backdrop-filter: blur(16px) saturate(1.2); }

/* the sliders + fit buttons under "Custom background…" */
.mb-bg-ctrls { display: flex; flex-direction: column; gap: .3rem; padding: .35rem .6rem .5rem; }
.mb-bg-slider { display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: .5rem; margin: 0; font-size: .78rem; font-weight: 600; color: var(--muted); }
.mb-bg-slider input[type="range"] { width: 100%; min-height: 0; accent-color: var(--accent); cursor: pointer; }
.mb-bg-fit { display: flex; gap: .25rem; margin-top: .15rem; }
.mb-bg-fit button { all: unset; box-sizing: border-box; flex: 1; text-align: center; cursor: pointer; border: 1px solid var(--border); border-radius: 8px; padding: .3rem 0; font-size: .74rem; font-weight: 600; color: var(--muted); }
.mb-bg-fit button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
/* preset thumbnails */
.mb-bg-presets { display: flex; gap: .4rem; padding: .1rem .6rem .35rem; }
.mb-bg-preset { all: unset; box-sizing: border-box; flex: 1; height: 2.1rem; border-radius: 8px; cursor: pointer; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); transition: box-shadow .15s, transform .15s; }
.mb-bg-preset:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px var(--accent); }

/* accent colour swatches */
.mb-accent { display: flex; flex-wrap: wrap; gap: .4rem; padding: .15rem .4rem .5rem; }
.mb-accent button.mb-swatch { all: unset; box-sizing: border-box; width: 1.4rem; height: 1.4rem; border-radius: 50%; cursor: pointer; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .15s var(--ease), box-shadow .2s var(--ease); }
.mb-accent button.mb-swatch:hover { transform: scale(1.12); }
.mb-accent button.mb-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text); }
/* the "whole page" rainbow swatch gets an inner ring so it reads as the bigger/bolder one */
.mb-accent button.mb-swatch-full { box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px rgba(0,0,0,.18); }
.mb-accent button.mb-swatch-full[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--card), 0 0 0 2px var(--card), 0 0 0 4px var(--text); }
/* ============================ command palette (Ctrl+K) ============================ */
.mobius-palette { width: min(520px, calc(100% - 32px)); max-height: min(70vh, 620px); padding: 0; border: 1px solid var(--border); border-radius: 17px; background: var(--card); color: var(--text); box-shadow: var(--shadow-float); }
.mobius-palette::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
.palette-heading, .palette-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--muted); font-size: .8rem; }
.palette-heading { border-bottom: 1px solid var(--border); }
.palette-heading label { margin: 0; font-weight: 650; }
.mobius-palette input { width: calc(100% - 24px); margin: 12px; min-height: 40px; padding: 9px 11px; }
.palette-results { display: grid; gap: 3px; max-height: 340px; overflow: auto; padding: 4px 8px 8px; }
.palette-item { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; border: 1px solid transparent !important; background: transparent !important; text-align: left; color: var(--text); font-weight: 600; cursor: pointer; padding: .5rem .8rem; }
.palette-item[aria-selected="true"], .palette-item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important; background: var(--accent-soft) !important; }
.palette-item kbd, .palette-heading kbd { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.palette-empty { padding: 20px; color: var(--muted); text-align: center; }
.palette-footer { border-top: 1px solid var(--border); }



/* =====================================================================================================
   Phone layout: full-width content, one tidy header, scrolling tab bar, thumb-sized controls
   ===================================================================================================== */
.mb-mobile-only { display: none !important; }
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  body.mb-side { padding: 0 0.7rem 2.5rem; }
  body.mb-side .tabs { top: 0.4rem; margin: 0.5rem 0 0.8rem; border-radius: 16px; }
  body.mb-side .tabs .tab-btn { min-height: 44px; padding: 0.5rem 0.85rem; font-size: 0.85rem; }
  body.mb-side header { flex-wrap: nowrap; align-items: center; gap: 0.5rem; padding: 0.5rem 0 0.6rem; }
  body.mb-side header > div:first-child { flex: 1 1 auto; min-width: 0; }
  .mb-title h2 { font-size: 1.3rem; }
  .mb-title p { display: none; }
  /* the account buttons live in the avatar menu on a phone */
  body.mb-side .nav { flex-wrap: nowrap; gap: 0.35rem; flex: 0 0 auto; width: auto; }
  .nav > .nav-btn, .nav > a.nav-btn, body.mb-side .app-version { display: none !important; }
  .nav .sound-toggle { padding: 0.25rem 0.4rem; }
  .mb-mobile-only { display: flex !important; }
  .mb-menu { right: 0; min-width: 12.5rem; }
  .mb-menu button { min-height: 42px; display: flex; align-items: center; }
  .card { padding: 1rem 0.95rem !important; border-radius: 16px !important; }
  body.mb-side .directory-status { border-radius: 16px; width: 100%; padding: 0.6rem 0.8rem; }
  .session-pick { justify-content: stretch !important; margin: 0 0 0.8rem !important; }
  .session-pick label { width: 100%; }
  .session-pick-select { flex: 1; min-width: 0; }
  button, select, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { min-height: 44px; }
  textarea { font-size: 16px; }
  input, select, textarea { font-size: 16px; }
  .actions, .mu-bar, .rp-bar, .sa-defaults, .cv-row { gap: 0.5rem; }
  .actions button, .mu-bar > button, .mu-go, .mu-up { flex: 1 1 auto; }
  .mu-in-wide { min-width: 0; width: 100%; }
  .mu-table th, .mu-table td, .sa-table th, .sa-table td, table th, table td { white-space: nowrap; }
  .mu-wrap, .sa-wrap, .table-wrap { -webkit-overflow-scrolling: touch; }
  .mobius-palette { width: calc(100% - 16px); }
  #accountChooser .choices { flex-direction: column; }
}
@media (max-width: 720px) and (orientation: landscape) { body.mb-side .tabs { position: static; } }

/* Tabular figures so vehicle numbers, times and mileage line up in every table (design review, 2026-11-02).
   Zero-specificity :where() so it changes nothing else. */
:where(table) { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---- Dashboard tab ---- */
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.dash-tile { position: relative; padding: 0.9rem 1rem; border-radius: 14px; background: var(--card-soft); border: 1px solid var(--border); overflow: hidden; }
.dash-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tile, var(--accent)); }
.dash-num { font-size: 1.7rem; font-weight: 750; line-height: 1; color: var(--text); }
.dash-lbl { margin-top: 0.3rem; font-size: 0.78rem; color: var(--muted); }
.dash-h { font-size: 0.95rem; margin: 0 0 0.7rem; }
.dash-block { margin-top: 0.5rem; }
.dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.4rem; align-items: start; }
.dash-cell-num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.5rem; vertical-align: middle; }

/* Dashboard: bar charts, deadline chips, collapsible lists */
.dash-bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 0.6rem; margin: 0.3rem 0; }
.dash-bar-label { font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-bar-track { background: var(--border-soft); border-radius: 6px; height: 14px; overflow: hidden; }
.dash-bar-fill { height: 100%; border-radius: 6px; min-width: 4px; transition: width 0.3s; }
.dash-bar-val { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 0.85rem; color: var(--text); }
.dash-details { margin: 0.4rem 0; border: 1px solid var(--border); border-radius: 10px; padding: 0.35rem 0.65rem; background: var(--card-soft); }
.dash-details summary { cursor: pointer; font-size: 0.88rem; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.dash-chip { display: inline-flex; align-items: baseline; gap: 0.3rem; padding: 0.2rem 0.5rem; border-radius: 999px; background: var(--border-soft); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.dash-chip small { color: var(--muted); font-size: 0.72rem; }
.dash-chip-urgent { background: var(--danger-soft); color: var(--danger); }
.dash-chip-urgent small { color: var(--danger); opacity: 0.8; }
