/* ==========================================================================
   Exoticz staff app — BENTO layer (2026-10-08)
   Dribbble "Health Monitoring Dashboard" look, Exoticz palette:
   dark plum frame + sidebar, light grey main panel, flat white 22px cards,
   pills everywhere, outline icons in round chips, Plus Jakarta Sans.
   Loaded after noir.css. Styling only. Rollback: remove the <link>/<script>.
   ========================================================================== */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans-latin-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
body.noir {
  --bx-ink: #0B0612; --bx-ink-2: #2A1A45; --bx-ink-3: #3A2A58;
  --bx-panel: #F2F2F4; --bx-card: #fff; --bx-soft: #F5F3F9; --bx-line: #E6E1EE;
  --bx-muted: #6B6280; --bx-quiet: #8E86A3;
  --bx-purple: #5A23B8; --bx-violet: #7B3FE4; --bx-pink: #B58CFF; --bx-teal: #6FCF1F; --bx-teal-2: #9BE22D;
  --bx-r: 22px; --bx-r-sm: 14px; --bx-gap: 10px;
  --bx-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nx-ui: var(--bx-font); --nx-display: var(--bx-font); --nx-mono: var(--bx-font);
  font-family: var(--bx-font);
}
body.noir, body.noir button, body.noir input, body.noir select, body.noir textarea { font-family: var(--bx-font); }
body.noir #main-view:not([hidden]) ~ *, body.noir { -webkit-font-smoothing: antialiased; }
body.noir .nx-bl, body.noir .nx-kana, body.noir .nx-kana-line { font-family: var(--bx-font) !important; }
body.noir .nx-kana, body.noir .nx-kana-line, body.noir .nx-kana-login { display: none !important; }

/* ---------- frame ---------- */
body.noir.nx-in-app, body.noir:has(#main-view:not([hidden])) { background: var(--bx-panel); }
@media (min-width: 1024px) { body.noir.nx-in-app, body.noir:has(#main-view:not([hidden])) { background: var(--bx-ink); } }
body.noir:has(#main-view:not([hidden])) .nx-bg { display: none; }
body.noir .nx-main { background: var(--bx-panel); min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1024px) {
  body.noir #main-view.nx-shell { grid-template-columns: 248px minmax(0, 1fr); background: var(--bx-ink); }
  body.noir .nx-main { margin: 12px 12px 12px 0; border-radius: 30px; min-height: calc(100dvh - 24px); overflow: clip; }
  body.noir .nx-side, body.noir .nx-shell[data-mgroup] .nx-side { background: var(--bx-ink) !important; border-right: 0 !important; padding: 26px 16px 16px; }
  body.noir .nx-brand { border-bottom: 0; padding: 0 8px 14px; }
  body.noir .nx-brand-mark { color: #fff !important; font-weight: 800; font-size: 1.5rem !important; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
  body.noir .nx-brand-mark::before {
    content: "EX"; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: conic-gradient(from 210deg, #5A23B8, #B58CFF, #6FCF1F, #5A23B8); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0;
  }
  body.noir .nx-brand-sub { color: #A79FC0 !important; font-size: 0.68rem !important; letter-spacing: 0.08em !important; text-transform: none !important; margin-left: 48px !important; margin-top: -4px !important; }
  body.noir .nx-group-h, body.noir .nx-shell[data-mgroup="owner"] .nx-group-h { color: #A49BC2 !important; font-size: 0.64rem !important; letter-spacing: 0.12em !important; padding-left: 14px !important; }
  body.noir .nx-group-h em { color: #9A91B8 !important; }
  body.noir .tab, body.noir .nx-home-tab { color: #CFC8E3 !important; min-height: 44px !important; border-radius: 999px !important; padding: 8px 14px !important; font-weight: 500 !important; }
  body.noir .tab .nx-i, body.noir .nx-home-tab .nx-i { color: #A79FC0 !important; }
  body.noir .tab:hover, body.noir .nx-home-tab:hover { background: rgba(255,255,255,0.06) !important; color: #fff !important; }
  body.noir .tab.active, body.noir .nx-home-tab.active { background: #fff !important; color: var(--bx-ink) !important; font-weight: 700 !important; }
  body.noir .tab.active .nx-i, body.noir .nx-home-tab.active .nx-i { color: var(--bx-ink) !important; }
  body.noir .tab small { color: #8E86A3 !important; }
  body.noir .nx-ink { display: none !important; }
  body.noir .nx-side-foot { border-top: 0 !important; color: #8E86A3 !important; }
  body.noir .nx-side-foot::before {
    content: "Exoticz SF · Mission"; display: block; padding: 16px; margin-bottom: 12px; border-radius: 20px;
    background: linear-gradient(135deg, #9BE22D, #6FCF1F); color: #1A2E05; font-weight: 800; font-size: 0.9rem; letter-spacing: -0.01em; text-transform: none;
  }
}

/* ---------- top bar: search-pill style ---------- */
body.noir .topbar { background: transparent !important; border-bottom: 0 !important; box-shadow: none !important; }
body.noir .topbar::after { display: none !important; }
body.noir .nx-pill {
  height: 44px !important; min-height: 44px; border-radius: 999px !important; background: #fff !important; border: 0 !important;
  color: var(--bx-ink) !important; font-family: var(--bx-font) !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; padding: 0 16px 0 12px !important;
}
body.noir .nx-pill[data-state="in"] { background: #E9F9D2 !important; color: #2A4A08 !important; }
body.noir .nx-pill[data-state="in"] .nx-dot { background: #6FCF1F !important; border-color: #6FCF1F !important; box-shadow: 0 0 0 4px rgba(20,184,166,0.2); }
body.noir .nx-qa { height: 44px !important; min-height: 44px !important; border-radius: 999px !important; background: var(--bx-ink) !important; background-image: none !important; border: 0 !important; color: #fff !important; font-weight: 700; }
body.noir .nx-qa:hover { background: var(--bx-ink-2) !important; box-shadow: none !important; }
body.noir .nx-logout { width: 44px !important; height: 44px !important; min-height: 44px !important; border-radius: 50% !important; background: #fff !important; border: 0 !important; }
body.noir .nx-who .who { color: var(--bx-ink); font-weight: 700; }
body.noir .role-badge { background: #EDE9FE !important; color: #5B21B6 !important; border: 0 !important; border-radius: 999px !important; padding: 2px 8px !important; font-family: var(--bx-font) !important; font-size: 0.62rem !important; letter-spacing: 0.06em !important; }
body.noir .nx-crumb { font-family: var(--bx-font) !important; letter-spacing: 0.04em !important; color: var(--bx-muted) !important; }
body.noir .topbar-brand .nx-bl { font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 1024px) {
  body.noir .nx-qa { width: auto !important; padding: 0 18px !important; }
  body.noir .nx-qa span { position: static !important; width: auto !important; height: auto !important; clip: auto !important; }
}

/* ---------- page heading ---------- */
body.noir .nx-kicker { font-family: var(--bx-font) !important; letter-spacing: 0.08em !important; color: #5A23B8 !important; font-weight: 700; }
body.noir .nx-kicker::before { display: none !important; }
body.noir .nx-title { font-family: var(--bx-font) !important; font-style: normal !important; font-weight: 800 !important; letter-spacing: -0.035em !important; color: var(--bx-ink) !important; font-size: clamp(1.9rem, 4vw, 2.6rem) !important; }
body.noir .nx-desc { color: var(--bx-muted) !important; }

/* ---------- cards everywhere ---------- */
body.noir .card, body.noir .register-card, body.noir .hv-emp, body.noir .exz-bizdash .bd-card {
  background: #fff !important; border: 0 !important; border-radius: var(--bx-r) !important; box-shadow: none !important;
}
body.noir .card::before, body.noir .card::after { display: none !important; }
body.noir .card h2, body.noir .card h3 { font-family: var(--bx-font) !important; font-weight: 700 !important; letter-spacing: -0.015em !important; color: var(--bx-ink) !important; font-style: normal !important; }
body.noir .btn { border-radius: 999px !important; font-family: var(--bx-font) !important; font-weight: 700; min-height: 44px; }
body.noir .btn.sm { min-height: 40px; }
body.noir .btn.big { min-height: 54px; }
body.noir .btn.primary { background: var(--bx-ink) !important; background-image: none !important; border-color: var(--bx-ink) !important; color: #fff !important; }
body.noir .btn.primary:hover { background: var(--bx-ink-2) !important; box-shadow: none !important; }
body.noir .btn.success { background: linear-gradient(120deg, #6FCF1F, #9BE22D) !important; color: #1A2E05 !important; border: 0 !important; }
body.noir .btn.ghost { background: #fff !important; border: 1.5px solid var(--bx-line) !important; }
body.noir input:not([type="checkbox"]):not([type="radio"]), body.noir select, body.noir textarea {
  border-radius: var(--bx-r-sm) !important; background-color: var(--bx-soft) !important; border-color: transparent !important; min-height: 48px; font-size: 1rem;
}
body.noir input:focus, body.noir select:focus, body.noir textarea:focus { background-color: #fff !important; }
body.noir .badge { border-radius: 999px !important; padding: 2px 10px; }
body.noir .list li, body.noir .task-row { border-color: var(--bx-line) !important; }
body.noir .panels { padding-top: 6px; }

/* ---------- home: header row ---------- */
body.noir .nx-home.bx-on { padding-top: 4px; }
body.noir .bx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 2px 14px; }
body.noir .bx-head .nx-hero { padding: 0; }
body.noir .bx-head .nx-hero-title { font-family: var(--bx-font) !important; font-weight: 800 !important; letter-spacing: -0.04em !important; font-size: clamp(2rem, 5vw, 3rem) !important; margin: 0 0 4px !important; color: var(--bx-ink) !important; }
body.noir .bx-head .nx-hero-title em { font-style: normal; color: var(--bx-ink); background: linear-gradient(120deg, #5A23B8, #B58CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.noir .bx-head .nx-hero-sub { color: var(--bx-muted); font-size: 0.9rem; }
body.noir .bx-datepill {
  flex: 0 0 auto; display: inline-flex !important; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; background: #fff;
  color: var(--bx-ink) !important; font-family: var(--bx-font) !important; font-size: 0.82rem !important; font-weight: 600; letter-spacing: 0 !important; text-transform: none !important;
}
body.noir .bx-datepill::before { display: none !important; }
@media (max-width: 599px) {
  body.noir .bx-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  body.noir .bx-datepill { height: 36px; order: -1; }
}

/* ---------- bento grid ---------- */
body.noir .bx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--bx-gap); }
body.noir .bx-grid > * { grid-column: 1 / -1; min-width: 0; }
body.noir .bx-card { background: #fff; border-radius: var(--bx-r); padding: 16px; position: relative; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
body.noir .bx-dark { background: var(--bx-ink) !important; color: #fff; }
body.noir .bx-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
body.noir .bx-chip {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bx-soft); color: var(--bx-ink); border: 1px solid var(--bx-line);
}
body.noir .bx-chip svg { width: 18px; height: 18px; }
body.noir .bx-t { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; color: var(--bx-ink); flex: 1 1 auto; min-width: 0; }
body.noir .bx-dark .bx-chip { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #fff; }
body.noir .bx-dark .bx-t { color: #fff; }
body.noir .bx-more {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--bx-muted); display: grid; place-items: center; cursor: pointer;
}
body.noir .bx-more svg { width: 18px; height: 18px; }
body.noir .bx-more:hover { background: var(--bx-soft); color: var(--bx-ink); }
body.noir .bx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (hover: hover) and (pointer: fine) {
  body.noir .bx-card { transition: transform 0.25s cubic-bezier(.2,.7,.2,1); }
  body.noir .bx-card:hover { transform: translateY(-3px); }
}

/* video: dark feature card */
body.noir .bx-video.nx-hero-video { border-radius: var(--bx-r) !important; overflow: hidden; padding: 0; aspect-ratio: 16 / 9; max-height: none !important; height: auto !important; margin: 0 !important; border: 0 !important; }
body.noir .bx-video.nx-hero-video::after { display: none !important; }
body.noir .bx-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* stat cards */
body.noir .bx-stat { display: flex; flex-direction: column; border-top: 0 !important; padding: 16px !important; }
body.noir .bx-stat dd {
  margin: auto 0 0; font-family: var(--bx-font) !important; font-weight: 800 !important; font-size: 2.3rem !important; line-height: 1 !important;
  letter-spacing: -0.04em !important; color: var(--bx-ink) !important; font-style: normal !important;
}
body.noir .bx-stat dd small { display: inline !important; font-size: 0.8rem !important; font-weight: 600 !important; letter-spacing: 0 !important; color: var(--bx-muted) !important; margin-left: 4px; font-family: var(--bx-font) !important; }
body.noir .bx-stat dd .nx-on { color: #3D6E0B !important; }
body.noir .bx-sub { margin-top: 8px; font-size: 0.8rem; color: var(--bx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.noir .bx-clock .bx-chip { background: linear-gradient(135deg, #E9F9D2, #C7F08A); border: 0; color: #2A4A08; }
body.noir .bx-sales .bx-chip { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); border: 0; color: #9D174D; }
body.noir .bx-tasks .bx-chip { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); border: 0; color: #5B21B6; }
body.noir .bx-clockbtn { margin-top: 12px; align-self: stretch; }
body.noir .bx-dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(16px, 1fr)); gap: 6px; margin-top: 14px; }
body.noir .bx-dots i { aspect-ratio: 1; border-radius: 50%; background: #E9E4F2; transform: scale(0.4); opacity: 0; animation: bx-pop 0.4s cubic-bezier(.2,.8,.2,1.3) forwards; animation-delay: calc(var(--i) * 25ms); }
body.noir .bx-dots i.on { background: linear-gradient(135deg, #7B3FE4, #5A23B8); }
@keyframes bx-pop { to { transform: scale(1); opacity: 1; } }
body.noir .bx-bar { height: 8px; border-radius: 999px; background: #EEE9F5; margin-top: 12px; overflow: hidden; }
body.noir .bx-bar i { display: block; height: 100%; width: 6%; border-radius: 999px; background: linear-gradient(90deg, #7B3FE4, #B58CFF); transition: width 0.8s cubic-bezier(.2,.7,.2,1); }
body.noir .bx-reg[data-state="closed"] .bx-bar i { background: linear-gradient(90deg, #6FCF1F, #9BE22D); }
body.noir .bx-reg[data-state="open"] dd { color: #3D6E0B !important; }
body.noir .bx-low[data-state="warn"] .bx-chip { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); border: 0; color: #9D174D; }
body.noir .bx-low[data-state="ok"] .bx-chip { background: linear-gradient(135deg, #E9F9D2, #C7F08A); border: 0; color: #2A4A08; }

/* week chart: paired pill bars, hatched inactive */
body.noir .bx-week { display: flex; flex-direction: column; }
body.noir .bx-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: #BFB4D6; }
body.noir .bx-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 6px; }
body.noir .bx-legend .c1, body.noir .bx-pair .c1 { background: #9BE22D; }
body.noir .bx-legend .c2, body.noir .bx-pair .c2 { background: #B58CFF; }
body.noir .bx-wk-top { display: flex; gap: 22px; margin: 2px 0 14px; }
body.noir .bx-wk-top b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
body.noir .bx-wk-top span { font-size: 0.74rem; color: #BFB4D6; }
body.noir .bx-wk-top > div { padding-left: 12px; border-left: 4px solid #9BE22D; border-radius: 2px; }
body.noir .bx-wk-top > div + div { border-left-color: #B58CFF; }
body.noir .bx-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; flex: 1 1 auto; min-height: 150px; }
body.noir .bx-day { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
body.noir .bx-pair { flex: 1 1 auto; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 4px; min-height: 120px; }
body.noir .bx-pair i {
  width: min(16px, 40%); height: 0; border-radius: 999px; transition: height 0.7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 3px, transparent 3px 7px) !important; background-color: rgba(255,255,255,0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
body.noir .bx-bars.grow .bx-pair i { height: var(--h); }
body.noir .bx-day.is-today .bx-pair .c1 { background: #9BE22D !important; background-image: none !important; box-shadow: none; }
body.noir .bx-day.is-today .bx-pair .c2 { background: #B58CFF !important; background-image: none !important; box-shadow: none; }
body.noir .bx-day span { font-size: 0.7rem; color: #BFB4D6; }
body.noir .bx-day.is-today span { color: #fff; font-weight: 700; background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 999px; }

/* quick actions card (existing tiles) */
body.noir .bx-actions .nx-tiles { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 !important; }
body.noir .bx-actions .nx-tile {
  min-height: 64px !important; border-radius: 18px !important; background: var(--bx-soft) !important; border: 0 !important; box-shadow: none !important;
  padding: 12px 14px !important; display: grid !important; grid-template-columns: 36px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; text-align: left;
}
body.noir .bx-actions .nx-tile::before, body.noir .bx-actions .nx-tile::after { display: none !important; }
body.noir .bx-actions .nx-tile-n { display: none !important; }
body.noir .bx-actions .nx-tile > .nx-i:first-of-type {
  grid-row: 1 / span 2; width: 36px !important; height: 36px !important; padding: 8px; border-radius: 50%; background: #fff; color: var(--bx-ink) !important; position: static !important;
}
body.noir .bx-actions .nx-tile-t { font-family: var(--bx-font) !important; font-weight: 700 !important; font-size: 0.95rem !important; color: var(--bx-ink) !important; margin: 0 !important; font-style: normal !important; }
body.noir .bx-actions .nx-tile-d { grid-column: 2; font-size: 0.74rem !important; color: var(--bx-muted) !important; margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.noir .bx-actions .nx-tile > .nx-i:last-of-type { grid-column: 3; grid-row: 1 / span 2; width: 18px !important; height: 18px !important; color: var(--bx-quiet) !important; position: static !important; }
body.noir .bx-actions .nx-tile-lead { background: var(--bx-ink) !important; }
body.noir .bx-actions .nx-tile-lead .nx-tile-t { color: #fff !important; }
body.noir .bx-actions .nx-tile-lead .nx-tile-d { color: #BFB4D6 !important; }
body.noir .bx-actions .nx-tile-lead > .nx-i:first-of-type { background: linear-gradient(135deg, #9BE22D, #6FCF1F); color: #1A2E05 !important; }
body.noir .bx-actions .nx-tile-lead + .nx-tile-lead > .nx-i:first-of-type { background: linear-gradient(135deg, #B58CFF, #7B3FE4); color: #fff !important; }
@media (max-width: 420px) { body.noir .bx-actions .nx-tiles { grid-template-columns: 1fr; } }

/* owner desk tiles */
body.noir .nx-owner-desk .nx-sec { font-family: var(--bx-font) !important; letter-spacing: 0.06em !important; color: var(--bx-muted) !important; margin-top: 18px; }
body.noir .nx-owner-desk .nx-sec::after { display: none !important; }
body.noir .nx-tiles-sm .nx-tile { border-radius: 999px !important; background: #fff !important; border: 0 !important; box-shadow: none !important; min-height: 48px !important; }
body.noir .nx-tiles-sm .nx-tile::before, body.noir .nx-tiles-sm .nx-tile::after { display: none !important; }
body.noir .nx-tiles-sm .nx-tile-t { font-family: var(--bx-font) !important; font-weight: 600 !important; font-style: normal !important; }

/* layout breakpoints */
@media (min-width: 700px) {
  body.noir .bx-video { grid-column: 1 / span 12; }
  body.noir .bx-clock, body.noir .bx-tasks, body.noir .bx-sales, body.noir .bx-floor { grid-column: span 6; }
  body.noir .bx-reg, body.noir .bx-low { grid-column: span 6; }
  body.noir .bx-week, body.noir .bx-actions { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
  body.noir .bx-video { grid-column: 1 / span 8; grid-row: 1 / span 2; aspect-ratio: auto; min-height: 340px; }
  body.noir .bx-clock { grid-column: 9 / span 4; grid-row: 1; }
  body.noir .bx-tasks { grid-column: 9 / span 4; grid-row: 2; }
  body.noir .bx-sales { grid-column: 1 / span 3; }
  body.noir .bx-floor { grid-column: 4 / span 3; }
  body.noir .bx-reg { grid-column: 7 / span 3; }
  body.noir .bx-low { grid-column: 10 / span 3; }
  body.noir .bx-week { grid-column: 1 / span 7; }
  body.noir .bx-actions { grid-column: 8 / span 5; }
  body.noir .bx-actions .nx-tiles { grid-template-columns: 1fr; }
}

/* ---------- mobile bottom bar: dark floating pill ---------- */
@media (max-width: 1023px) {
  body.noir .nx-bottom {
    left: max(10px, env(safe-area-inset-left)) !important; right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important; height: 64px !important; padding: 6px !important;
    border-radius: 999px !important; background: var(--bx-ink) !important; border: 0 !important; box-shadow: 0 14px 34px rgba(11,6,18,0.32) !important; gap: 2px;
  }
  body.noir .nx-bottom button { border-radius: 999px; color: #BFB4D6 !important; font-family: var(--bx-font) !important; letter-spacing: 0.02em !important; text-transform: none !important; font-size: 0.68rem !important; font-weight: 600 !important; gap: 3px !important; min-height: 52px; }
  body.noir .nx-bottom button .nx-i { width: 20px !important; height: 20px !important; }
  body.noir .nx-bottom button.on { background: #fff; color: var(--bx-ink) !important; }
  body.noir .nx-bottom button.on .nx-i { color: var(--bx-ink) !important; }
  body.noir .nx-bottom button.on::before { display: none !important; }
  body.noir .panels, body.noir .nx-home { padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important; }
  body.noir .nx-side { background: var(--bx-panel) !important; border-bottom: 0 !important; }
  body.noir .tab { border-radius: 999px !important; height: 40px !important; min-height: 40px !important; margin: 6px 2px; }
  body.noir .tab::after { display: none !important; }
  body.noir .tab.active { background: var(--bx-ink) !important; color: #fff !important; }
  body.noir .tab.active .nx-i { color: #fff !important; }
  body.noir .topbar { background: var(--bx-panel) !important; }
}

/* ---------- sticky primary actions on phones (forms) ---------- */
@media (max-width: 1023px) {
  body.noir #sale-form button[type="submit"], body.noir #register-open-form button[type="submit"], body.noir #register-close-form button[type="submit"] {
    position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 10px 24px -10px rgba(11,6,18,0.45) !important;
  }
}

/* ---------- toasts ---------- */
body.noir .toast.bx-toast, body.noir .toast {
  display: flex; align-items: center; gap: 10px; border-radius: 999px !important; border: 0 !important; padding: 10px 12px 10px 10px !important;
  background: var(--bx-ink) !important; color: #fff !important; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(11,6,18,0.55) !important;
  bottom: calc(92px + env(safe-area-inset-bottom)) !important; max-width: min(92vw, 460px);
}
body.noir .toast[hidden] { display: none !important; }
body.noir .toast .bx-ti { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.12); }
body.noir .toast.is-ok .bx-ti { background: linear-gradient(135deg, #9BE22D, #6FCF1F); }
body.noir .toast.is-ok .bx-ti::before { content: "✓"; color: #1A2E05; font-weight: 800; }
body.noir .toast.is-warn .bx-ti { background: linear-gradient(135deg, #F472B6, #B58CFF); }
body.noir .toast.is-warn .bx-ti::before { content: "!"; color: #fff; font-weight: 800; }
body.noir .toast.is-info .bx-ti::before { content: "i"; color: #fff; font-weight: 800; }
body.noir .toast.bx-toast:not(:has(.bx-ti))::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #B58CFF; margin-left: 6px; }
body.noir .toast.is-ok:not(:has(.bx-ti))::before { background: #9BE22D; }
body.noir .toast.is-warn:not(:has(.bx-ti))::before { background: #B58CFF; }
body.noir .bx-undo { margin-left: auto; border: 0; background: #fff; color: var(--bx-ink); font-weight: 800; border-radius: 999px; min-height: 36px; padding: 0 14px; cursor: pointer; }
@media (min-width: 1024px) { body.noir .toast { bottom: 24px !important; } }

/* ---------- geo: consent / blocked sheets, banner, owner cards ---------- */
.exz-geo-ov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center; background: rgba(11,6,18,0.55); padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@media (min-width: 700px) { .exz-geo-ov { place-items: center; } }
.exz-geo-card { width: min(100%, 460px); background: #fff; color: #0B0612; border-radius: 28px; padding: 22px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; animation: bx-up 0.3s cubic-bezier(.2,.7,.2,1); max-height: calc(100dvh - 24px); overflow: auto; }
@keyframes bx-up { from { transform: translateY(24px); opacity: 0; } }
.exz-geo-card h2, body.noir .exz-geo-card h2 { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; text-transform: none !important; margin: 12px 0 8px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: #0B0612; }
.exz-geo-card p, .exz-geo-card li { color: #3A2D52; font-size: 0.92rem; line-height: 1.5; }
.exz-geo-card ol { padding-left: 20px; margin: 8px 0 14px; }
.exz-geo-small { font-size: 0.82rem !important; color: #6B6280 !important; }
.exz-geo-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #E9F9D2, #C7F08A); color: #2A4A08; font-weight: 800; font-size: 1.4rem; }
.exz-geo-ic.warn { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); color: #9D174D; }
.exz-geo-card .btn { width: 100%; margin-top: 8px; border-radius: 999px !important; min-height: 54px; }
.exz-geo-row { display: grid; gap: 8px; }
body.noir .exz-geo-banner { display: flex; align-items: center; gap: 10px; background: #FCE7F3; color: #831843; border-radius: 20px; padding: 10px 10px 10px 12px; margin: 0 0 10px; font-weight: 600; font-size: 0.88rem; }
body.noir .exz-geo-bi { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #9D174D; }
body.noir .exz-geo-bt { flex: 1 1 auto; min-width: 0; }
body.noir .exz-geo-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #831843; font-size: 1.3rem; cursor: pointer; }
body.noir .geo-owner-card .geo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.noir .geo-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; min-height: 44px; }
body.noir .geo-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body.noir .geo-slider { width: 52px; height: 30px; border-radius: 999px; background: #E6E1EE; position: relative; transition: background 0.2s; }
body.noir .geo-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s; }
body.noir .geo-switch input:checked + .geo-slider { background: linear-gradient(120deg, #6FCF1F, #9BE22D); }
body.noir .geo-switch input:checked + .geo-slider::after { transform: translateX(22px); }
body.noir .geo-switch input:focus-visible + .geo-slider { outline: 2px solid #5A23B8; outline-offset: 2px; }
body.noir .geo-form { align-items: center; gap: 8px; flex-wrap: wrap; }
body.noir .geo-form input { max-width: 120px; }
body.noir .geo-sub { font-size: 0.9rem !important; margin: 14px 0 6px !important; }
body.noir .geo-addr { font-size: 0.78rem; margin: 6px 0 0; }
body.noir .os-card { padding: 16px !important; margin-bottom: 10px !important; }
body.noir .os-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
body.noir .os-head h2 { margin: 0 !important; font-size: 1rem !important; flex: 1 1 auto; }
body.noir .os-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: #5B21B6; }
body.noir .os-pill { border-radius: 999px; padding: 4px 10px; font-size: 0.74rem; font-weight: 700; }
body.noir .os-pill.warn, body.noir .os-tag.warn { background: #FCE7F3; color: #9D174D; }
body.noir .os-pill.req, body.noir .os-tag.req { background: #EDE9FE; color: #5B21B6; }
body.noir .os-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.noir .os-list li { background: var(--bx-soft); border-radius: 18px; padding: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
body.noir .os-list li.is-late { box-shadow: inset 4px 0 0 #B58CFF; }
body.noir .os-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.noir .os-who span { font-size: 0.8rem; color: var(--bx-muted); }
body.noir .os-tag { font-style: normal; font-size: 0.74rem; font-weight: 700; border-radius: 999px; padding: 3px 8px; align-self: flex-start; }
body.noir .os-act { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- staff music: compact pill in the top bar ---------- */
body.noir .nx-music-slot { display: inline-flex; }
body.noir .music-dock--staff { position: static !important; display: inline-flex; gap: 6px; align-items: center; }
body.noir .music-dock--staff .music-toggle {
  position: static !important; height: 44px; min-height: 44px; border-radius: 999px; border: 0; background: #fff; color: var(--bx-ink);
  box-shadow: none; padding: 0 12px 0 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.8rem; cursor: pointer;
}
body.noir .music-dock--staff .music-ico { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #7B3FE4, #B58CFF); color: #fff; border: 0; }
body.noir .music-dock--staff .music-toggle.is-on .music-ico { background: linear-gradient(135deg, #6FCF1F, #9BE22D); color: #1A2E05; animation: none; box-shadow: none; }
body.noir .music-dock--staff .music-now { display: none; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--bx-muted); }
body.noir .music-dock--staff.is-on .music-now { display: inline-block; }
body.noir .music-skip[hidden] { display: none !important; }
body.noir .music-dock--staff .music-skip { width: 44px; height: 44px; background: #fff; }
@media (max-width: 1023px) {
  body.noir .music-dock--staff .music-label, body.noir .music-dock--staff .music-now { display: none !important; }
  body.noir .music-dock--staff .music-toggle { width: 44px; padding: 0; justify-content: center; }
  body.noir .music-dock--staff .music-skip { display: none !important; }
}
@media (max-width: 374px) { body.noir .nx-music-slot { display: none; } }

@media (prefers-reduced-motion: reduce) {
  body.noir .bx-dots i { animation: none; transform: none; opacity: 1; }
  body.noir .bx-pair i, body.noir .bx-bar i { transition: none; }
  body.noir .bx-card { transition: none; }
  .exz-geo-card { animation: none; }
}

/* mobile header with the music button */
@media (max-width: 1023px) {
  body.noir .topbar { grid-template-columns: max-content minmax(0, 1fr) auto auto auto !important; grid-template-areas: "brand pill music sale out" "who pill music sale out" !important; column-gap: 6px !important; }
  body.noir .nx-music-slot { grid-area: music; }
  body.noir .nx-pill { height: 40px !important; min-height: 40px; padding: 0 12px 0 10px !important; font-size: 0.74rem !important; }
  body.noir .nx-qa, body.noir .nx-logout, body.noir .music-dock--staff .music-toggle { width: 40px !important; height: 40px !important; min-height: 40px !important; }
  body.noir .music-dock--staff .music-ico { width: 28px; height: 28px; }
  body.noir .topbar-brand .nx-bl { font-size: 1.25rem; }
}
@media (max-width: 374px) { body.noir .topbar { grid-template-areas: "brand pill sale out" "who pill sale out" !important; grid-template-columns: max-content minmax(0, 1fr) auto auto !important; } }
body.noir .amt-pos { color: #3D6E0B !important; }

/* ================= Business Dashboard → bento ================= */
body.noir .exz-bizdash { --bd-teal: #3D6E0B; --bd-teal-soft: #E9F9D2; font-family: var(--bx-font) !important; }
body.noir .exz-bizdash .bd-kpis { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; gap: 10px !important; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; overflow: visible !important; }
body.noir .exz-bizdash .bd-kpi { background: #fff !important; border: 0 !important; border-radius: 22px !important; box-shadow: none !important; padding: 16px 18px !important; transition: transform .18s ease; }
body.noir .exz-bizdash .bd-kpi:hover { transform: translateY(-2px); }
body.noir .exz-bizdash .bd-kpi::before { display: none !important; }
body.noir .exz-bizdash .bd-kpi .k { font-family: var(--bx-font) !important; font-size: 0.74rem !important; font-weight: 600 !important; letter-spacing: 0.02em !important; text-transform: none !important; color: #6B6280 !important; }
body.noir .exz-bizdash .bd-kpi .v { font-family: var(--bx-font) !important; font-size: 2rem !important; font-weight: 800 !important; letter-spacing: -0.04em !important; line-height: 1.05 !important; overflow-wrap: normal !important; white-space: nowrap; color: #0B0612 !important; }
body.noir .exz-bizdash .bd-kpi .v.sm { font-size: 1.1rem !important; letter-spacing: -0.01em !important; white-space: normal; }
body.noir .exz-bizdash .bd-kpi .s { color: #6B6280 !important; font-size: 0.78rem !important; }
body.noir .exz-bizdash .bd-kpi.accent { background: #0B0612 !important; box-shadow: none !important; }
body.noir .exz-bizdash .bd-kpi.accent .k, body.noir .exz-bizdash .bd-kpi.accent .s { color: #C9BEE0 !important; }
body.noir .exz-bizdash .bd-kpi.accent .v { color: #fff !important; }
body.noir .exz-bizdash .bd-kpis > .bd-kpi:first-child { background: #0B0612 !important; }
body.noir .exz-bizdash .bd-kpis > .bd-kpi:first-child .k, body.noir .exz-bizdash .bd-kpis > .bd-kpi:first-child .s { color: #C9BEE0 !important; }
body.noir .exz-bizdash .bd-kpis > .bd-kpi:first-child .v { background: linear-gradient(90deg, #9BE22D, #B58CFF); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
body.noir .exz-bizdash .bd-seg { background: #fff !important; border: 0 !important; padding: 4px !important; }
body.noir .exz-bizdash .bd-seg button { min-height: 40px; padding: 0 14px !important; border-radius: 999px !important; font-family: var(--bx-font) !important; font-weight: 600 !important; color: #3A2D52 !important; background: transparent !important; border: 0 !important; }
body.noir .exz-bizdash .bd-seg button.on { background: #0B0612 !important; color: #fff !important; box-shadow: none !important; }
body.noir .exz-bizdash .bd-refresh { min-height: 44px; border-radius: 999px !important; background: #fff !important; border: 0 !important; color: #0B0612 !important; font-weight: 600 !important; padding: 0 16px !important; }
body.noir .exz-bizdash .bd-issues { background: #fff !important; border: 0 !important; border-radius: 22px !important; box-shadow: none !important; padding: 18px 20px !important; margin-top: 10px !important; }
body.noir .exz-bizdash .bd-issues h3 { font-family: var(--bx-font) !important; font-size: 1rem !important; font-weight: 700 !important; color: #0B0612 !important; text-transform: none !important; letter-spacing: 0 !important; }
body.noir .exz-bizdash .bd-issues li { border-top-color: #F2F2F4 !important; color: #3A2D52 !important; }
body.noir .exz-bizdash .bd-grid { gap: 10px !important; }
body.noir .exz-bizdash .bd-card { border-radius: 22px !important; }
body.noir .exz-bizdash .bd-bars .track { height: 10px !important; background: repeating-linear-gradient(135deg, #F2F2F4 0 4px, #F7F5FA 4px 8px) !important; }
body.noir .exz-bizdash .bd-bars .fill { background: linear-gradient(90deg, #6FCF1F, #9BE22D) !important; animation: bx-grow .7s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
body.noir .exz-bizdash .bd-bars .fill.warn { background: linear-gradient(90deg, #7B3FE4, #B58CFF) !important; }
body.noir .exz-bizdash .bd-bars .fill.bad { background: linear-gradient(90deg, #7B3FE4, #B58CFF) !important; }
@keyframes bx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 699px) { body.noir .exz-bizdash .bd-kpis { grid-template-columns: 1fr 1fr !important; } body.noir .exz-bizdash .bd-kpi .v { font-size: 1.55rem !important; } }
@media (prefers-reduced-motion: reduce) { body.noir .exz-bizdash .bd-bars .fill { animation: none; } }

/* ================= Add to home (staff) ================= */
.exz-standalone [data-exz-install] { display: none !important; }
body.noir .bx-install { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; background: linear-gradient(135deg, #F5F0FF 0%, #FDF2F8 100%) !important; }
body.noir .nx-inst-side { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0 0 10px; padding: 0 14px 0 6px; border: 0; border-radius: 999px; background: linear-gradient(120deg, #5A23B8, #B58CFF); color: #fff; font: 700 0.86rem/1 var(--bx-font); cursor: pointer; }
body.noir .nx-inst-side .exz-inst-bi { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.18); }
body.noir .nx-inst-side { display: none; }
@media (min-width: 1024px) {
  body.noir .nx-inst-side { display: flex; margin: auto 0 0; width: auto; flex: 0 0 auto; }
  body.noir .nx-inst-side + .nx-side-foot { margin-top: 10px !important; }
}
body.noir .bx-install { padding: 14px 16px !important; }
@media (min-width: 700px) {
  body.noir .bx-install { flex-direction: row !important; align-items: center; }
  body.noir .bx-install .exz-inst-btn { width: auto; }
}
body.noir .bx-install .exz-inst-row { flex: 0 0 auto; } @media (min-width: 700px) { body.noir .bx-install .exz-inst-row { flex: 1 1 auto; } }
