@font-face {
  font-family: 'Inter';
  src: url('vendor/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* ===== iOS dark-mode system tokens; accent is the single theme variable =====
   To switch to the Aevum navy palette, swap this block back (kept in git history):
   bg #0e1620, card #182434, ink #f3efe4, line #26364a. */
:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --card2: #F2F2F7;
  --fill: #E5E5EA;
  --ink: #000000;
  --muted: rgba(60,60,67,0.6);
  --faint: rgba(60,60,67,0.3);
  --accent: #007AFF;
  --accent-ink: #FFFFFF;
  --body-size: 17px; /* DVM20Nov explicit body choice, not hints/control overrides. */
  --gold: var(--accent);
  --gold-ink: var(--accent-ink);
  --warn: #FF9F0A;
  --danger: #FF3B30;
  --line: rgba(60,60,67,0.12);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --radius: 20px;
}
[data-mode="dark"] {
  --bg: #000000;
  --card: rgba(255,255,255,0.07);
  --card2: rgba(255,255,255,0.10);
  --fill: #3A3A3C;
  --ink: #FFFFFF;
  --muted: rgba(235,235,245,0.6);
  --faint: rgba(235,235,245,0.3);
  --accent: #0A84FF;
  --accent-ink: #FFFFFF;
  --danger: #FF453A;
  --line: rgba(84,84,88,0.65);
  --shadow: none;
}
* { box-sizing: border-box; }
button { color: inherit; font-family: inherit; }
body {
  margin: 0 auto; max-width: 560px; padding: 0 16px 120px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  font-size: var(--body-size);
  font-variant-numeric: tabular-nums;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
header { position: relative; padding: 30px 52px 14px 4px; display: flex; align-items: center; gap: 14px; }
header h1 { margin: 0; }
h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.tagline { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.tabs {
  display: flex; gap: 4px; position: fixed; bottom: 14px; left: 72px; right: 72px; z-index: 20;
  max-width: 524px; margin: 0 auto;
  background: rgba(22,22,24,.96);
  border: 0.5px solid var(--line); border-radius: 24px; padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.tab {
  flex: 1; padding: 7px 4px 6px; border: none; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; position: relative;
  transition: background .2s, color .2s;
}
.tab.active { background: var(--accent); color: var(--accent-ink); }
.badge {
  position: absolute; top: -4px; right: 2px; background: var(--gold); color: var(--gold-ink);
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px;
}
.hidden { display: none !important; }
.tabpane { display: none; }
.tabpane.active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.sectionlabel, label { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
input, select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 16px;
  background: var(--card); color: var(--ink); border: 0.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.center { text-align: center; }
.error { color: var(--danger); font-size: 12px; margin: 4px 0 10px; }
.mono { font-family: ui-monospace, monospace; font-size: 11px; word-break: break-all; color: var(--muted); }
.small { font-size: 11px; }

.btnrow { display: flex; gap: 10px; margin-top: 8px; }
.btn {
  border: none; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 13px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; flex: 1; transition: transform .12s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn.secondary { background: var(--fill); color: var(--ink); border: none; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn.small { padding: 8px 12px; font-size: 12px; flex: none; position: relative; }
.btn.tiny { padding: 5px 10px; font-size: 11px; flex: none; }
.btn.gold { background: var(--gold); color: var(--gold-ink); flex: none; padding: 10px 22px; }

.card { background: var(--card); border: 0.5px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.card h4 { margin: 16px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card ul { margin: 6px 0; padding-left: 18px; font-size: 12px; line-height: 1.6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--card); color: var(--ink); border: 0.5px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 12px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .12s;
}
.chip:active { transform: scale(.96); }

.row { display: flex; align-items: center; gap: 8px; }
.row.space { justify-content: space-between; }
h2 { font-size: 11px; margin: 26px 4px 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }

.entry {
  background: transparent; border: none; border-radius: 0; box-shadow: none;
  border-bottom: 0.5px solid var(--line); padding: 11px 16px; margin: 0;
  background: var(--card); border: 0.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; display: flex; gap: 10px; box-shadow: var(--shadow);
}
.entry.confirmed { opacity: .72; }
.entry-main { flex: 1; min-width: 0; }
.entry-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.amount { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.entry-reason { color: var(--ink); font-size: 12px; margin-top: 3px; }
.entry-meta { color: var(--muted); font-size: 11px; margin-top: 4px; }
.entry-utr { color: var(--muted); font-size: 11px; margin-top: 4px; word-break: break-all; }
.entry-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.chipstatus { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.chipstatus.pending { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.chipstatus.confirmed { background: color-mix(in srgb, #ffffff 10%, transparent); color: rgba(255,255,255,.75); }

.statrow { display: flex; gap: 10px; margin-bottom: 10px; }
.stat {
  flex: 1; background: var(--card2); border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted);
}
.statnum { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.statnum.warn { color: var(--warn); }
.catrow { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.daylist { font-size: 12px; line-height: 1.7; padding-left: 18px; }
.ok { color: rgba(255,255,255,.75); font-weight: 600; }
.bigok { color: var(--ink); font-size: 14px; font-weight: 600; margin: 8px 0; }

.sumtable { width: 100%; border-collapse: collapse; font-size: 12px; }
.sumtable th, .sumtable td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.sumtable th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.sumtable tr[data-day] { cursor: pointer; }

input[type="file"].btn { display: block; width: 100%; padding: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(20px);
  background: var(--fill); color: var(--ink);
  padding: 11px 18px; border-radius: 999px; font-size: 12px; opacity: 0; transition: all .25s; z-index: 50;
  max-width: 90vw; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer { margin-top: 40px; text-align: center; color: var(--faint); font-size: 11px; }

.seg { display: flex; border: 0.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); padding: 2px; }
.segbtn { background: transparent; color: var(--muted); border: none; padding: 8px 6px; font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 10px; white-space: nowrap; position: relative; flex: 1 1 0; text-align: center; }
.segbtn.active { background: var(--accent); color: var(--accent-ink); }
.weeklabel { font-size: 12px; color: var(--muted); }
.reasonedit { display: flex; gap: 6px; margin-top: 8px; }
.reasonedit input { margin-top: 0; padding: 8px 10px; font-size: 12px; border-radius: 10px; }
.reasonedit .btn { align-self: center; }
.warn { color: var(--warn); }
h3 { font-size: 14px; }

/* module home */
#moduleGrid { display: grid; gap: 14px; margin-top: 6px; padding-bottom: 170px; }
.modulecard {
  display: block; width: 100%; text-align: left; padding: 22px;
  border-radius: 20px; border: 0.5px solid var(--line); background: var(--card);
  box-shadow: var(--shadow); cursor: pointer; transition: transform .15s;
}
.modulecard.active:hover { transform: translateY(-2px); }
.modulecard strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.modulecard.planned { opacity: .5; cursor: default; box-shadow: none; }
.modulecard .chipstatus { margin-top: 10px; display: inline-block; background: var(--bg); color: var(--muted); }
#backHome { margin-bottom: 8px; }

/* dashboard */
.hero { text-align: center; padding: 28px 18px 22px; }
.hero .hero-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hero .hero-num { display: block; color: var(--accent); font-size: 20px; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 6px; }
.hero .hero-delta { font-size: 12px; color: var(--muted); }
.dashgrid { display: grid; gap: 14px; margin-top: 6px; }
.statcard { padding: 18px; border-radius: var(--radius); }
.statcard > .hint { display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.bignum { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 2px 0 6px; }
.promo {
  margin-top: 16px; border: none; color: var(--ink);
  background: var(--card); border: 0.5px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer;
}
.promo strong { display: block; font-size: 18px; }
.promo .hint { color: var(--muted); }
.donutrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.donut { width: 128px; flex: none; }
.donut-num { font-size: 14px; font-weight: 700; fill: var(--accent); }
.donut-sub { font-size: 8.5px; fill: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 12px; flex: 1; min-width: 130px; }
.legend li { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; color: var(--ink); }
.bars { width: 100%; }
.bar { fill: color-mix(in srgb, var(--ink) 18%, transparent); }
.bar-cur { fill: var(--accent); }
.bar-label { font-size: 12px; fill: #aeaeb2; }
.bar-val { font-size: 12px; fill: var(--muted); }
.toplist { list-style: none; margin: 0; padding: 0; }
.toplist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.toplist li:last-child { border-bottom: 0; }
.toplist b { }
.toplist i { font-style: normal; font-size: 11px; margin-left: 6px; color: var(--faint); }

/* minimal log rows */
.entry {
  background: transparent; border: none; border-radius: 0; box-shadow: none;
  border-bottom: 0.5px solid var(--line); padding: 11px 16px; margin: 0; align-items: flex-start; cursor: pointer; }
.dot { width: 9px; height: 9px; border-radius: 999px; margin-top: 6px; flex: none; }
.dot.ok { background: rgba(235,235,245,.45); }
.dot.warn { background: var(--accent); }
.dot.pend { background: var(--faint); }
.dot.bad { background: #FF453A; }
.entry-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.entry-details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.reasonchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.reasonchips .chip { padding: 5px 10px; font-size: 12px; }
.reasonchips .reason-input { flex: 1; min-width: 110px; margin-top: 0; padding: 6px 10px; font-size: 11px; border-radius: 999px; }
/* compact import */
.importrow { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.importrow:last-of-type { border-bottom: 0; }
.iicon { font-size: 20px; text-align: center; grid-row: 1; }
.ilabel { grid-column: 2; grid-row: 1; }
.ilabel b { display: block; font-size: 14px; }
.importrow input[type="file"], .importrow select { grid-column: 2; width: 100%; margin-top: 4px; font-size: 11px; }
.importrow select { padding: 8px 10px; font-size: 11px; border-radius: 10px; }
#importInfoBtn { margin-top: 8px; }
#importInfo { margin-top: 8px; }
/* report */
#reportView .btnrow { gap: 8px; }
@media print {
  header, .tabs, footer, .btnrow, #backHome, #openReport, #dockBg, .chatbtn, #instinctFab { display: none !important; }
  body { background: #fff; color: #000; }
}

#appLogoImg.home-mark { width: 56px; height: 56px; border-radius: 15px; }
#appLogoImg.mark { width: 56px; height: 48px; min-width: 56px; flex: 0 0 56px; border-radius: 12px; padding: 0; margin: 0 -2px 0 8px; object-fit: contain; transform: scale(1.7); cursor: pointer; -webkit-tap-highlight-color: transparent; position: relative; z-index: 3; }
#appBack { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 20px; background: rgba(120,120,128,.24); color: inherit; font-size: 30px; line-height: 36px; padding: 0 0 3px; margin-left: 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#appBack.hidden { display: none; }

/* icon-led import */
.importicons { display: flex; gap: 12px; margin-top: 8px; }
.importbtn { flex: 1; background: var(--card); border: 0.5px solid var(--line); border-radius: 16px; padding: 16px 8px; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.importbtn span { font-size: 24px; }
.importbtn small { color: var(--muted); font-size: 11px; }
#shotApp { margin-top: 10px; }
/* placeholder module */
.modulecard.planned { display: flex; align-items: center; justify-content: center; min-height: 84px; }
.modulecard .plus { font-size: 26px; color: var(--faint); }

/* Apple-style tap states + SF-like icons */
.btn, .tab, .importbtn, .modulecard, .chip, .segbtn, .iconbtn { transition: transform .12s ease, opacity .12s ease, background .2s, color .2s, border-color .15s, box-shadow .15s; }
.btn:active, .tab:active, .importbtn:active, .modulecard:active, .chip:active, .segbtn:active { transform: scale(.96); opacity: .8; }
.importbtn svg { width: 26px; height: 26px; stroke: var(--muted); }
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.iconbtn svg { width: 14px; height: 14px; stroke: currentColor; vertical-align: -2px; margin-right: 5px; }

/* grouped inset log list + row chevrons */
.grouped { padding: 0; overflow: hidden; }
.grouped > h4 { padding: 12px 14px 0; }
.grouped > .hint { padding: 0 14px 10px; }
.entry:last-child { border-bottom: none; }
.chev { width: 8px; height: 14px; min-width: 8px; stroke: var(--faint); stroke-width: 2.5; fill: none; flex: none; margin-top: 5px; }
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ---- landing: black hero ---- */
#appLogoImg.hero { display: block; width: 166px; max-width: 60%; margin: 0 auto; }
#appTitle.hero-title { font-size: 12px; letter-spacing: .28em; color: #8e8e93; font-weight: 600; text-align: center; margin: -14px 0 0; }
body.landing-dark { background: #000; color: #f5f5f7; }
body.landing-dark header { display: block; text-align: center; padding: 14px 4px 24px; }
body.landing-dark .modulecard.active { background: rgba(44,44,46,.85); color: #f5f5f7; box-shadow: 0 10px 34px rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.09); }
body.landing-dark .modulecard.planned { background: rgba(44,44,46,.38); border: 1px solid rgba(255,255,255,.05); opacity: 1; box-shadow: none; }
body.landing-dark .modulecard.planned .plus { color: #48484a; }
body.landing-dark footer { color: #636366; }


/* ---------- bottom dock: opaque strip so content never sits under the corner buttons ---------- */
#dockBg { position: fixed; left: 0; right: 0; bottom: 0; height: 74px; background: var(--bg); z-index: 15; }
[data-mode="dark"] #dockBg, body.landing-dark #dockBg { background: #000; border-top: 0.5px solid rgba(255,255,255,0.08); }

/* ---------- app lock ---------- */
.lockbtn {
  position: absolute; top: 12px; right: 12px; z-index: 30;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: transparent; color: inherit; opacity: 0.55; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lockbtn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lockbtn:active { opacity: 1; transform: scale(0.92); }
#lockScreen {
  position: fixed; inset: 0; z-index: 200; background: #000; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 32px; text-align: center;
}
#lockScreen.hidden { display: none; }
#lockLogo { width: 120px; height: auto; opacity: 0.95; margin-bottom: -6px; }
.locktitle { letter-spacing: 0.35em; font-size: 14px; font-weight: 600; margin: 0; }
#lockMsg { margin: 0; }
#lockPinWrap { display: flex; gap: 8px; }
#lockPinWrap.hidden, #lockBioBtn.hidden { display: none; }
#lockPin {
  width: 140px; text-align: center; font-size: 20px; letter-spacing: 0.4em;
  padding: 10px 12px; border-radius: 12px; border: 1px solid #333; background: #111; color: #fff;
}
#lockSetup {
  position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
#lockSetup.hidden { display: none; }
.lockcard { max-width: 340px; width: 100%; display: flex; flex-direction: column; gap: 10px; background: #161618 !important; max-height: 88vh; overflow-y: auto; }
#pinSetWrap { display: flex; flex-direction: column; gap: 8px; }
#pinSetWrap.hidden { display: none; }
#syncSheet { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
#syncSheet.hidden { display: none; }
#syncSheet input { width: 100%; margin: 6px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: inherit; font-size: 16px; box-sizing: border-box; }
#syncSheet .btn { margin-top: 8px; }
#pinSetWrap input {
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--card-border, #d8d8de);
  background: var(--card, #fff); color: inherit; font-size: 16px; text-align: center; letter-spacing: 0.3em;
}

/* dark glass: modules match the landing */
[data-mode="dark"] .card, [data-mode="dark"] .modulecard, [data-mode="dark"] .entry {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
[data-mode="dark"] input, [data-mode="dark"] select, [data-mode="dark"] textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--ink);
}
/* collection modules */
.clabel { display: block; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.cinput { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 12px; font-size: 16px; font-family: inherit; background: var(--card2); color: var(--ink); border: 1px solid var(--line); }
textarea.cinput { resize: vertical; }
.act-del { border: none; background: transparent; color: var(--faint); font-size: 20px; cursor: pointer; padding: 4px 8px; }
.act-del:active { color: var(--danger); }

.linkbtn { border: none; background: none; color: var(--accent); font-size: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.passline { display: flex; gap: 8px; align-items: center; }
.passline input { flex: 1 1 auto; min-width: 0; }

/* ---- home dashboard (charts) ---- */
.home-modules-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 4px 8px; }
#dashboardGrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 10px; }
#dashboardGrid > * { min-width: 0; }
.dashcard, .todaystrip { min-width: 0; }
.todaychips { min-width: 0; max-width: 100%; }
.dashcard { text-align: left; cursor: pointer; padding: 14px 16px; border: 0.5px solid var(--line); transition: transform .16s ease, border-color .16s ease; animation: dashIn .4s ease both; }
.dashcard:active { transform: scale(.985); border-color: var(--accent); }
.dashcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dashcard-title { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dashcard-go { color: var(--faint); font-size: 18px; line-height: 1; }
.dashcard-big { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); margin: 2px 0; }
.dashcard-sub { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.dashcard-stat { padding-bottom: 18px; }
.dash-svg { width: 100%; height: auto; display: block; margin-top: 6px; }
.dash-x { font-size: 8.5px; fill: var(--faint); text-anchor: middle; }
.dash-bar { animation: barGrow .5s cubic-bezier(.2,.8,.25,1) both; transform-origin: bottom; transform-box: fill-box; }
.dash-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: lineDraw 1s ease .1s forwards; }
.dash-line.dim { stroke: rgba(235,235,245,.3); stroke-width: 1.5; animation-delay: .3s; }
.dash-area { fill: var(--accent); opacity: .08; animation: dashIn .8s ease .5s both; }
.dash-pt { fill: var(--accent); opacity: 0; animation: dashIn .3s ease forwards; }
.dash-hbars { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.dash-hrow { display: flex; align-items: center; gap: 8px; }
.dash-hlabel { width: 74px; font-size: 11px; color: var(--muted); flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-htrack { flex: 1; height: 8px; border-radius: 4px; background: rgba(235,235,245,.08); overflow: hidden; }
.dash-hfill { display: block; height: 100%; border-radius: 4px; animation: hGrow .6s cubic-bezier(.2,.8,.25,1) both; }
.dash-hval { min-width: 26px; width: auto; text-align: right; font-size: 11px; color: var(--text); font-weight: 600; flex: none; }
.dash-donutwrap { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.dash-donut { width: 88px; height: 88px; flex: none; transform: rotate(-90deg); }
.dash-donut-seg { fill: none; stroke-width: 9; animation: dashIn .6s ease both; }
.dash-donut-num { fill: #ffffff; font-size: 20px; font-weight: 700; text-anchor: middle; transform: rotate(90deg); transform-origin: 45px 45px; }
.dash-legend { display: flex; flex-direction: column; gap: 4px; }
.dash-leg { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dash-leg i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.dashcard-empty { padding: 18px; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hGrow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
@keyframes dashIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* sync status line on home */
.sync-home { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; }

/* HR rota grid */
.rotagrid { display: grid; gap: 3px; margin-top: 8px; }
.rotah { font-size: 9px; color: var(--faint); text-align: center; line-height: 1.25; }
.rotaname { font-size: 11px; color: var(--text); align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rotacell { font-size: 11px; padding: 6px 0; border-radius: 8px; border: 0.5px solid var(--line); background: var(--card); color: var(--faint); }
.rotacell.set { color: var(--accent); border-color: var(--accent); }
.rotacell.clash { border-color: #FF453A; color: #FF453A; box-shadow: 0 0 0 1px #FF453A inset; }
/* HR polish */
.rotacell { font-size: 9px; padding: 7px 0; letter-spacing: -0.02em; }
#collectionBody .entry { flex-wrap: wrap; }
#collectionBody .entry-main { min-width: 0; flex: 1 1 40%; }
#collectionBody .btnrow .cinput { min-width: 0; width: 100%; }
#collectionBody label.clabel { min-width: 0; }

/* ---------- in-app help ---------- */
.helpbtn {
  position: fixed; bottom: 86px; right: 16px; z-index: 25;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); cursor: pointer;
  background: rgba(22,22,24,.94);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
}
.helpbtn svg { width: 20px; height: 20px; }
.helpbtn:active { transform: scale(0.92); color: var(--ink); }
.helpsheet {
  position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-end; justify-content: center;
}
.helpcard {
  width: 100%; max-width: 528px; max-height: 70vh; overflow-y: auto;
  background: #1c1c1e; border-radius: 18px 18px 0 0; padding: 18px 20px 28px;
  border-top: 1px solid rgba(255,255,255,.12); color: #f5f5f7;
}
.helpbody p { margin: 8px 0; color: #d1d1d6; font-size: 14px; }
.helpline { margin: 6px 0 6px 4px; color: #d1d1d6; font-size: 14px; line-height: 1.45; }

/* Owner Brief (visibility layer) */
.brief { border-color: rgba(255,255,255,0.16); }
.brief-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.brief-greet { font-size:19px; font-weight:600; letter-spacing:-0.01em; }
.brief-badge { font-size:11px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; padding:4px 10px; border-radius:999px; white-space:nowrap; }
.brief-badge.bad { background:rgba(255,69,58,0.16); color:#FF453A; border:1px solid rgba(255,69,58,0.4); }
.brief-badge.warn { background:rgba(10,132,255,0.14); color:var(--accent); border:1px solid rgba(10,132,255,0.35); }
.brief-badge.ok { background:rgba(48,209,88,0.14); color:#30D158; border:1px solid rgba(48,209,88,0.35); }
.brief-summary { margin-top:8px; font-size:12px; color:var(--muted); }
.brief-flags { margin-top:10px; display:flex; flex-direction:column; gap:6px; }
.brief-flag { display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:10px 12px; color:inherit; cursor:pointer; }
.brief-flag:active { transform:scale(0.99); }
.brief-flag-dot { width:8px; height:8px; border-radius:50%; flex:none; }
.brief-flag.bad .brief-flag-dot { background:#FF453A; box-shadow:0 0 8px rgba(255,69,58,0.7); }
.brief-flag.warn .brief-flag-dot { background:var(--accent); box-shadow:0 0 8px rgba(10,132,255,0.6); }
.brief-flag-text { flex:1; font-size:13.5px; font-weight:500; }
.brief-flag-sub { display:block; font-size:11px; font-weight:400; color:var(--muted); margin-top:1px; }
.brief-tl { border-top:1px solid rgba(255,255,255,0.07); margin-top:12px; padding-top:2px; }
.brief-tlrow { display:flex; gap:8px; width:100%; text-align:left; background:none; border:0; border-bottom:1px solid rgba(255,255,255,0.04); padding:7px 2px; color:inherit; cursor:pointer; font-size:11.5px; align-items:baseline; }
.brief-tldate { color:var(--muted); flex:none; width:52px; }
.brief-tlmod { color:var(--accent); flex:none; font-size:10.5px; letter-spacing:0.05em; text-transform:uppercase; width:70px; }
.brief-tltext { flex:1; color:rgba(235,235,245,0.85); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.brief { min-width:0; overflow:hidden; }
.brief-head { min-width:0; }
.brief-summary { overflow-wrap:anywhere; }
.brief-flag-text { min-width:0; }
.brief-tltext { min-width:0; }

/* Command chat */
.chatbtn { position:fixed; left:16px; bottom:14px; z-index:60; width:46px; height:46px; border-radius:50%; border:1px solid rgba(255,255,255,0.14); background:rgba(20,20,22,0.94); color:var(--accent); display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 4px 20px rgba(0,0,0,0.5); }
.chatbtn svg { width:22px; height:22px; }
.chatbtn:active { transform:scale(0.94); }
.chatsheet { position:fixed; inset:0; z-index:70; background:rgba(0,0,0,0.55); backdrop-filter:blur(4px); display:flex; align-items:flex-end; }
.chatsheet.hidden { display:none; }
.chatcard { background:#111113; border:1px solid rgba(255,255,255,0.12); border-bottom:0; border-radius:20px 20px 0 0; width:100%; max-height:78vh; padding:16px; display:flex; flex-direction:column; gap:10px; }
.chatlog { flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:8px; min-height:180px; }
.chatmsg { max-width:88%; padding:9px 12px; border-radius:14px; font-size:13.5px; line-height:1.45; white-space:normal; }
.chatmsg.me { align-self:flex-end; background:rgba(10,132,255,0.2); border:1px solid rgba(10,132,255,0.35); }
.chatmsg.ne { align-self:flex-start; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.09); }
.chatconfirm { margin-top:8px; border-top:1px solid rgba(255,255,255,0.1); padding-top:8px; }
.chatconfirm-sum { font-weight:600; margin-bottom:8px; }

/* Instinct corner icon - always available, never in the way */
#instinctFab { position: fixed; right: 16px; bottom: 14px; z-index: 30; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; cursor: pointer; font-family: inherit; padding: 0;
  background: rgba(22,22,24,.94);
  border: 1px solid rgba(255,255,255,0.14); color: #0A84FF; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
#instinctFab:active { transform: scale(.94); }
#instinctMenu { position: fixed; right: 16px; bottom: 68px; z-index: 61; min-width: 220px; display: flex; flex-direction: column;
  background: #161618; border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.5); }
#instinctMenu.hidden { display: none; }
#instinctMenu button, #instinctMenu a { padding: 13px 16px; background: none; border: none; color: var(--ink); font-size: 14px;
  text-align: left; text-decoration: none; cursor: pointer; font-family: inherit; }
#instinctMenu button { border-bottom: 1px solid rgba(255,255,255,0.08); }
#instinctMenu a { color: #0A84FF; }
#instinctMenu button:active, #instinctMenu a:active { background: rgba(255,255,255,0.06); }
.sync-home { cursor: pointer; }
#moduleView { padding-bottom: 170px; }
#homeView { padding-bottom: 190px; }

/* home = interactive display only: footer and sync banner live inside modules */
body.home-on footer, body.home-on #syncHomeStatus { display: none; }

/* Tasks board (v61): compact cards, chips, no overflow on 360px */
.chiprow{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.chiprow::-webkit-scrollbar{display:none}
.chiprow .segbtn{flex:0 0 auto}
.segbtn.small{padding:4px 10px;font-size:11px}
.opsc{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04);margin-bottom:8px;touch-action:pan-y;transition:transform .15s ease}
.opsc.od{box-shadow:inset 3px 0 0 #FF453A}
.opsc.stuck{box-shadow:inset 3px 0 0 #FF9F0A}
.opsc.done{opacity:.55}
.opsc-main{flex:1 1 auto;min-width:0}
.opsc-title{font-weight:600;font-size:14px;line-height:1.3;letter-spacing:-0.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.opsc-meta{font-size:12px;color:rgba(255,255,255,.55);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.opsc-side{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:44%}
.opsc-chip{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:600;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.opsc-chip.ok{color:#30D158;border-color:rgba(48,209,88,.35)}
.opsc-acts{display:flex;gap:4px}
.opsc-act{position:relative;width:26px;height:26px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:rgba(255,255,255,.75);font-size:12px;line-height:1;display:flex;align-items:center;justify-content:center;padding:0}
.opsc-act.go{color:#30D158;border-color:rgba(48,209,88,.35)}


/* iOS typography + tap targets (v62): semibold titles, 44px effective hit areas on small controls */
strong, b { font-weight: 600; }
.dash-big { letter-spacing: -0.02em; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.small, .btn.tiny { min-height: 0; }
.btn.small::after, .segbtn::after, .opsc-act::after, .act-del::after, .opsc-chip::after { content: ''; position: absolute; inset: -8px; }
.opsc-chip { position: relative; }
.act-del { position: relative; }
#syncStatus { white-space: pre-line; }


/* ================= DESKTOP WEBSITE LAYOUT (>=1024px) - every phone rule above is untouched ================= */
#deskNav { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  body { max-width: none; padding: 0 0 48px 244px; }
  #deskNav { display: flex; flex-direction: column; gap: 2px; position: fixed; left: 0; top: 0; bottom: 0; width: 244px;
    padding: 20px 14px; background: #000; border-right: 0.5px solid rgba(255,255,255,0.10); z-index: 40; overflow-y: auto; }
  .deskbrand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 2px 10px 18px; }
  .deskbrand img { width: 64px; height: 64px; border-radius: 16px; }
  .deskbrand span { font-size: 10.5px; letter-spacing: 0.3em; color: var(--muted); font-weight: 600; }
  .desknav-item { position: relative; display: flex; align-items: center; width: 100%; text-align: left; padding: 9px 12px;
    border: none; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .15s, color .15s; font-family: inherit; }
  .desknav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
  .desknav-item.active { background: rgba(10,132,255,0.16); color: #fff; }
  .desknav-item.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent); }
  header { padding: 22px 40px 8px; }
  header #appLogoImg:not(.hero) { display: none; }
  #appLogoImg.hero { width: 150px; margin: 0 auto; }
  #homeView, #moduleView { max-width: 1120px; margin: 0 auto; padding: 0 36px; }
  #dashboardGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr)); gap: 18px; align-items: start; }
  #dashboardGrid > * { max-width: none !important; }
  .tabs { position: static; margin: 0 0 18px; max-width: none; border-radius: 16px; }
  #dockBg { left: 244px; }
  .chatbtn { left: 260px; }
  .chatsheet { align-items: center; }
  .chatsheet > * { border-radius: 20px; }
}


/* ---------- interactive home: today strip + quick actions ---------- */
.todaystrip { grid-column: 1 / -1; margin: 2px 0 6px; }
.todayhi { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.todaychips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.todaychips::-webkit-scrollbar { display: none; }
.todaychip { flex: 1 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; border: 0.5px solid var(--line); background: #161618; border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer; font-family: inherit; }
.todaychip .muted { color: var(--muted); font-weight: 500; margin-right: 6px; }
.todaychip.hot { border-color: rgba(255,69,58,0.55); }
.todaychip:active { transform: scale(0.96); }
.dash-actions { display: flex; gap: 8px; margin-top: 10px; }
.dash-act { border: 0.5px solid rgba(10,132,255,0.5); color: var(--accent); background: rgba(10,132,255,0.10); border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.dash-act:active { transform: scale(0.96); }

@media (min-width: 1024px) {
  .dashcard:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.22); }
  .todaychip:hover, .dash-act:hover { border-color: var(--accent); }
}

/* update pill: explicit accent styling (was inheriting a washed-out white pill on some themes) */
#updCheckBtn { background: var(--accent) !important; color: #fff !important; opacity: 1 !important; border: none !important; border-radius: 999px !important; padding: 9px 18px !important; font-weight: 600 !important; }

.dash-empty { width: 100%; height: auto; display: block; margin-top: 10px; opacity: .55; }

.opsr{display:flex;align-items:flex-start;gap:10px;padding:9px 12px;min-height:40px;box-sizing:border-box;border-radius:10px;background:rgba(255,255,255,.04);margin-bottom:5px;touch-action:pan-y;transition:transform .15s ease;cursor:pointer}
.opsr.od{box-shadow:inset 3px 0 0 #FF453A}
.opsr.done{opacity:.5}
.opsr.done .opsr-t{text-decoration:line-through}
.opsr-dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;margin-top:6px}
.opsr-t{flex:1 1 auto;min-width:0;font-weight:600;font-size:14px;line-height:1.3;letter-spacing:-0.01em;overflow-wrap:anywhere}
.opsr-n{flex:0 0 auto;font-size:11px;color:rgba(255,255,255,.5);margin-top:2px}
.opsd{position:fixed;inset:0;background:#000;z-index:9999;overflow:auto;-webkit-overflow-scrolling:touch}
.opsd-box{padding:14px 16px 40px;box-sizing:border-box;max-width:640px;margin:0 auto}
.opsd-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.opsd-back{background:none;border:0;color:#0A84FF;font-size:16px;padding:6px 0}
.opsd-del{background:none;border:0;color:rgba(255,69,58,.85);font-size:14px;padding:6px 0}
.opsd-title{font-size:20px;font-weight:700;line-height:1.25;letter-spacing:-0.02em;overflow-wrap:anywhere;margin-bottom:14px;padding-left:10px;border-left:3px solid rgba(255,255,255,.15)}
.opsd-title.od{border-left-color:#FF453A}
.opsd-lbl{font-size:11px;letter-spacing:.08em;color:rgba(255,255,255,.45);margin:16px 0 6px}
.opsd-chips{display:flex;flex-wrap:wrap;gap:6px}
.opsd-chip{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.05);color:rgba(255,255,255,.8);border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600}
.opsd-chip.on{background:rgba(255,255,255,.1)}
.opsd-stuck{font-size:12px;color:#FF9F0A;margin-top:8px}
.opsd-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.opsd-f{font-size:11px;color:rgba(255,255,255,.5);display:flex;flex-direction:column;gap:4px}
.opsd-area{font-size:12px;color:rgba(255,255,255,.55);margin-top:10px}
.opsd-in{width:100%;box-sizing:border-box;font-size:16px}
.opsd-add{display:flex;gap:8px;align-items:flex-end;margin-bottom:8px}
.opsd-c{font-size:14px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.08);overflow-wrap:anywhere;white-space:pre-wrap}
.opsd-d{font-size:11px;color:rgba(255,255,255,.45);margin-bottom:2px}
.opsd-a{font-size:11px;color:rgba(255,255,255,.5);padding:3px 0}

/* Licences module (port of Grok's views; Grok's red/amber/green on NE dark) */
.lic-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none}
.lic-green{background:#34C759}.lic-amber{background:#FF9500}.lic-red{background:#FF3B30}.lic-grey{background:#A0A7B0}
.lic-score{padding:16px}.lic-score-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.lic-lbl{font-size:11px;letter-spacing:.08em;color:var(--muted)}.lic-big{font-size:20px;font-weight:700;letter-spacing:-.02em;margin-top:2px}
.lic-open{white-space:normal;text-align:center;max-width:132px;line-height:1.2;text-decoration:none}
.lic-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.lic-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.07);font-size:12px}.lic-chip-t{color:rgba(235,235,245,.7)}
.lic-h{font-size:12px;font-weight:600;color:var(--muted);margin:6px 2px 6px;letter-spacing:.02em}
.lic-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:rgba(255,255,255,.06);border:0;border-radius:14px;padding:12px 14px;margin-bottom:6px;color:inherit;font:inherit;min-height:48px}
.lic-row:active{background:rgba(255,255,255,.12)}.lic-dim{opacity:.55}
.lic-main{display:flex;flex-direction:column;min-width:0;flex:1}.lic-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}.lic-sub{font-size:12px;color:rgba(235,235,245,.6);margin-top:2px}.lic-go{color:rgba(235,235,245,.4);font-size:20px}
.lic-yr{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:8px 4px;border-bottom:1px solid rgba(255,255,255,.08)}.lic-yr b{white-space:nowrap}
.lic-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:14px;font-size:11px;color:rgba(235,235,245,.6)}.lic-legend span{display:inline-flex;align-items:center;gap:6px}
.lic-docrow{padding:10px 4px;border-bottom:1px solid rgba(255,255,255,.08)}.lic-docs{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.lic-doc{display:inline-block;padding:8px 14px;border-radius:999px;background:rgba(10,132,255,.18);color:#0A84FF;text-decoration:none;font-size:14px}
.lic-nodoc{display:inline-block;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.07);color:rgba(235,235,245,.6);font-size:12px}
.lic-tl{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;font-size:14px;font-weight:600;margin:6px 0 10px}
.lic-tl-green{background:rgba(52,199,89,.16);color:#34C759}.lic-tl-amber{background:rgba(255,149,0,.16);color:#FF9F0A}.lic-tl-red{background:rgba(255,59,48,.16);color:#FF6B61}.lic-tl-grey{background:rgba(160,167,176,.16);color:#C0C6CE}
.lic-f{display:flex;justify-content:space-between;gap:14px;padding:9px 2px;border-bottom:1px solid rgba(255,255,255,.08);font-size:14px}.lic-f span{color:rgba(235,235,245,.6);flex:none}.lic-f b{font-weight:500;text-align:right;overflow-wrap:anywhere}
.hr2-row{padding:10px 2px;border-bottom:1px solid rgba(255,255,255,.08)}.hr2-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.hr2-meta{font-size:12px;color:rgba(235,235,245,.7);margin-top:3px;line-height:1.4}.hr2-note{font-size:11px;color:#FF9F0A;margin-top:3px}
.hr3-chk{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:14px;line-height:1.35}.hr3-chk input{width:20px;height:20px;margin-top:1px;flex:none}
.seg.hr-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.seg.hr-tabs .segbtn{width:100%;min-width:0;padding:9px 0;font-size:11px;font-weight:600;letter-spacing:-.1px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:clip}
@media(max-width:340px){.seg.hr-tabs .segbtn{font-size:11px}}
.seg.pl-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.seg.pl-tabs .segbtn{width:100%;min-width:0;padding:9px 0;font-size:11px;font-weight:600;text-align:center;white-space:nowrap;overflow:hidden}
#syncSheet .syncbtns{display:flex;flex-direction:column;gap:10px;margin:14px 0 4px}
#syncSheet .syncbtns .btn,#syncSheet .syncbtns span .btn{width:100%;margin:0;text-align:center}
#syncSheet .syncbtns span{display:block}
#syncSheet .syncnote{margin:0 0 6px;text-align:left}
#syncSheet #updCheckBtn{background:var(--card2,#2c2c2e);color:inherit}
#syncSheet #updCheckBtn{background:#2c2c2e!important;color:#fff!important}
.acc .hr2-top{font-size:14px}.acc .hr2-meta{font-size:11px;line-height:1.35}.acc .clabel{font-size:11px}
.lic-acts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.lic-acts .btn{width:100%;padding:10px 0;text-align:center;white-space:nowrap}
.lic-inline{display:flex;gap:8px;margin:8px 0}.lic-inline .cinput{flex:1;min-width:0}.lic-note{padding:8px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:14px}
.lic-docold{opacity:.6}.lic-score{padding:16px}
#syncSheet #importBtn,#syncSheet #nativeUpd,#syncSheet #updCheckBtn,#syncSheet #syncBtn{display:none!important}
#syncSheet.needtap #syncBtn{display:block!important}
#syncSheet #backupBtn{align-self:center;opacity:.6;margin-top:4px}
.opsr{align-items:center}.opsr.od{box-shadow:none}.opsr-dot{display:none}
.opsr-tick{flex:0 0 24px;width:24px;height:24px;border-radius:50%;border:1.5px solid rgba(255,255,255,.35);background:none;color:#000;font-size:14px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center}
.opsr-tick.on{background:#30D158;border-color:#30D158}
.opsr-hi{color:#FF9F0A;margin-left:4px}.opsr-due{flex:0 0 auto;font-size:11px;color:rgba(235,235,245,.6)}.opsr-due.od{color:#FF453A;font-weight:600}

.opsq{margin:0 0 8px}.opsq-row{display:flex;gap:8px}.opsq-row .cinput{flex:1;min-width:0}.opsq-row .btn{flex:none;padding:0 18px}
.opsq-chips{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}.opsq-pick{position:relative;overflow:hidden;display:inline-flex;align-items:center}
.opsq-pick input{position:absolute;inset:0;opacity:0;width:100%;height:100%}
.opsd-day{margin:14px 0 6px;font-size:11px;font-weight:700;color:rgba(255,255,255,.5);letter-spacing:.04em}
.opsd-c{position:relative;padding:8px 44px 8px 12px;margin:0 0 6px;border-radius:12px;background:rgba(255,255,255,.05);font-size:14px}
.opsd-tm{position:absolute;right:12px;top:9px;font-size:11px;color:rgba(255,255,255,.4)}
.opsq-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.opsq-chips .segbtn,.opsq-chips .opsq-pick{display:flex;align-items:center;justify-content:center;height:34px;padding:0 4px;margin:0;font-size:11px;border-radius:999px;box-sizing:border-box;text-align:center;cursor:pointer}
#syncSheet #importStatus,#syncSheet #importStatus2{display:none}
#syncSheet.needtap #importStatus,#syncSheet.needtap #importStatus2{display:block}
#syncSheet #backupBtn{align-self:flex-start;padding:0;margin:6px 0 0;opacity:.7;font-size:12px;text-align:left}
#syncSheet .syncnote,#syncSheet #syncStatus{font-size:14px;line-height:1.5;margin:0 0 10px}

.chat-open .chatbtn,.chat-open #instinctFab{display:none!important}
.reasonchips .chip.on{background:var(--accent,#0a84ff);color:#fff;border-color:transparent}

/* ---------- module header: one clean row - Back | centred title | logo | lock, 48px touch targets ---------- */
body.in-module header { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; column-gap: 4px; padding: 16px 6px 10px 8px; min-height: 76px; }
body.in-module header h1 { grid-column: 2; grid-row: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; min-width: 0; }
body.in-module #appBack { grid-column: 1; grid-row: 1; width: 48px; height: 48px; flex: none; border-radius: 24px; margin: 0; padding: 0 0 4px; font-size: 32px; line-height: 44px; display: flex; align-items: center; justify-content: center; }
body.in-module #appLogoImg.mark { grid-column: 3; grid-row: 1; width: 48px; height: 48px; min-width: 48px; flex: none; margin: 0; padding: 0; border-radius: 0; object-fit: contain; transform: scale(1.35); justify-self: center; align-self: center; }
body.in-module .lockbtn { grid-column: 3; grid-row: 1; position: static; width: 48px; height: 48px; top: auto; right: auto; justify-self: center; align-self: center; }
html, body { overscroll-behavior-x: none; }
body.in-module #appLogoImg.mark { display: none; } /* DVM 3:18 PM: no logo in module headers; Home stays on the dock button and Back */

/* module logo lives in the bottom bar centre (between Chat and the infinity button): tap = Home */
#dockHome { display: none; position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 31; width: 72px; height: 54px; border: 0; background: transparent; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; align-items: center; justify-content: center; }
body.in-module #dockHome, body.ph-open #dockHome { display: flex; mix-blend-mode: screen; }
#dockHome img { width: 50px; height: 50px; object-fit: contain; transform: none; pointer-events: none; }
#dockHome:active { opacity: .6; }
/* v158: the Home logo sits in the bottom-bar centre, so the Transactions tab pill rides just above it */
@media (max-width: 1023px) { body.in-module .tabs { bottom: 82px; left: 24px; right: 24px; } body.in-module main, body.in-module #moduleView { scroll-padding-bottom: 150px; } }
.dash-kicker { font-size: 12px; }
/* v167: Transactions New/Log/Summary sits at the top of the module (like the other modules), so it can never cover a field or a button */
@media (max-width: 1023px) {
  body.in-module .tabs { position: static; margin: 4px 0 14px; max-width: none; left: auto; right: auto; bottom: auto; border-radius: 16px; box-shadow: none; }
  body.in-module #pettycashView { padding-bottom: 100px; }
}
#lockSetupBtn{display:none !important}
#qrLive.hidden{display:none !important}

.qrring{border:2px solid rgba(10,132,255,.9);animation:qrpulse 1.3s ease-in-out infinite}
@keyframes qrpulse{0%,100%{box-shadow:0 0 0 0 rgba(10,132,255,.55)}50%{box-shadow:0 0 0 14px rgba(10,132,255,0)}}
.reasonchips .payee-chip { border-color: var(--accent,#0a84ff); color: var(--accent,#0a84ff); }
#syncSheet #syncStatus, #syncSheet #syncStatus * { font-size: 14px; line-height: 1.4; }
#scanPages:empty { display: none; }

/* v226: tab rows that used to wrap are one sideways-scrolling row of chips (YouTube style); active chip is scrolled into view by app.js */
.seg.chipbar, .seg.hr-tabs.chipbar { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overflow-y: hidden; border: none; background: transparent; padding: 2px 0; border-radius: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.seg.chipbar::-webkit-scrollbar { display: none; }
.seg.chipbar .segbtn, .seg.hr-tabs.chipbar .segbtn { flex: 0 0 auto; width: auto; min-width: 0; padding: 7px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0; border-radius: 999px; background: var(--card); border: 0.5px solid var(--line); color: var(--muted); scroll-snap-align: center; overflow: visible; }
.seg.chipbar .segbtn.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* v249: an empty date box says what it is (Android shows a blank box with an arrow) */
.nfdate:not(.has){position:relative;color:transparent}.nfdate:not(.has)::-webkit-datetime-edit{opacity:0}.nfdate:not(.has)::before{content:attr(data-ph);position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#8e8e93;font-size:12px;pointer-events:none}

/* v250 design pass 1: HR Today and P&L Overview. Look only, no behaviour change. */
.alrow{display:flex;gap:8px;align-items:flex-start;margin:8px 0;font-size:12px;line-height:1.4;color:rgba(235,235,245,.75)}
.alrow .adot{flex:0 0 7px;height:7px;border-radius:50%;margin-top:5px}
.todaycard .hr2-top strong{font-size:15px;font-weight:600;letter-spacing:-.01em}
.todaycard .hr2-meta{font-size:12px;line-height:1.45;color:rgba(235,235,245,.6)}
.todaycard input[type=time]{width:112px;min-width:112px;font-size:12px;padding:4px 8px;height:30px;border-radius:10px}
.plintro{margin:0 2px 10px;line-height:1.45;opacity:.75}
.seg.plperiod{max-width:260px;margin-left:auto;margin-right:auto;padding:2px}
.seg.plperiod .segbtn{font-size:12px;padding:6px 0}
.dashgrid.plpair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dashgrid.plpair .statcard{padding:14px;margin:0}
.dashgrid.plpair .statcard h3{font-size:17px;font-weight:600;letter-spacing:-.02em}
.dashgrid.plpair .statcard > .hint{margin-bottom:6px}

/* v251 design pass 2: HR Payroll - smaller controls, quiet secondary buttons */
.payrow .cinput { font-size: 13px; padding: 5px 9px; min-height: 0; height: 32px; border-radius: 10px; }
.payrow select.cinput { padding-right: 24px; }
.payrow input[type=number].cinput { width: 58px !important; text-align: center; }
.payrow .btn.small { font-size: 12px; padding: 6px 12px; min-height: 0; }
.payrow .hint.small, .payrow label.hint { font-size: 11.5px; }
.payrow .hr3-chk span { font-size: 12.5px; font-weight: 500; }
.payrow .hr2-top strong { font-size: 14.5px; }
.payrow .hr2-top b { font-size: 15px; }

/* v252 design pass 3: HR Leave balances as bars (used / entitlement) */
.lvbars{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.lvb span{font-size:10.5px;color:rgba(235,235,245,.55);display:block;margin-bottom:2px}
.lvb i{display:block;height:5px;border-radius:3px;background:rgba(255,255,255,.1);overflow:hidden}
.lvb i b{display:block;height:100%;border-radius:3px;background:var(--accent,#0A84FF)}
.lvb i b.over{background:#FF453A}
.hr2-meta{font-size:11.5px}

/* v253 info dots: helper text folds away */
.tipped{display:none !important}
.tipped.tipshow{display:block !important;margin:2px 0 8px;font-size:11.5px;opacity:.8}
.tiprow{position:absolute;top:8px;right:10px;z-index:2;height:0}
.card{position:relative}
.tipi{width:18px;height:18px;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:transparent;color:rgba(235,235,245,.6);font:italic 600 11px/16px Georgia,serif;padding:0;cursor:pointer;}
.tipi.on{background:rgba(10,132,255,.25);color:#fff;border-color:transparent}
.card:has(> .tiprow:first-child + .tipped:last-child){background:none;border:0;box-shadow:none;padding:0;margin:0 0 4px;min-height:0}
.card:has(> .tiprow:first-child + .tipped:last-child) .tiprow{position:static;height:22px;display:flex;justify-content:flex-end}
.tiprow.flow{position:static;height:22px;display:flex;justify-content:flex-end}

/* v256 failed payments */
.entry.failed{opacity:.5}
.entry.failed .amount{text-decoration:line-through}
.failtag{font-size:10px;font-weight:700;color:#FF453A;border:1px solid #FF453A;border-radius:6px;padding:0 5px;margin-right:4px;text-decoration:none;display:inline-block}

#moduleView{touch-action:pan-y}
#collectionBody,#pettycashView .tabpane{will-change:auto}

/* v259 HR change history */
.hrhist .hrh{display:flex;gap:10px;font-size:12.5px;padding:5px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.hrhist .hrh:last-child{border:0}
.hrh-d{min-width:46px;color:rgba(235,235,245,.5);font-size:11.5px}

/* v262 statement chart */
.stmt-bars{display:flex;gap:14px;align-items:flex-end;height:150px;margin-top:6px}
.sb-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;height:100%;justify-content:flex-end;font-size:11px}
.sb-pair{display:flex;gap:4px;align-items:flex-end;height:100px;width:100%;justify-content:center}
.sb-pair i{width:30%;max-width:26px;border-radius:5px 5px 0 0;min-height:2px}
.sb-in{background:var(--accent,#0A84FF)}.sb-out{background:#FF9F0A}
.sb-col b{font-size:11.5px}.sb-col b.neg{color:#FF453A}.sb-col span{color:rgba(235,235,245,.55)}
.sb-key{font-size:11px;color:rgba(235,235,245,.6);margin-top:6px}.sb-key i{display:inline-block;width:8px;height:8px;border-radius:2px;margin:0 3px 0 8px}.sb-key i:first-child{margin-left:0}
.stmt-miss{display:flex;gap:12px;font-size:12px;color:rgba(235,235,245,.4);margin-top:4px}

/* v263 assets issued */
.asform{display:flex;gap:6px;margin:6px 0 8px}.asform select{flex:0 0 28%}.asform input{flex:1;min-width:0}
.hrh .asact{margin-left:auto;display:flex;gap:6px;align-items:center;font-size:12px}
.hrhist .hrh,.card > .hrh{display:flex;gap:10px;font-size:12.5px;padding:5px 0;border-bottom:1px solid rgba(255,255,255,.07)}

/* v267 department cost */
.deptbars .db{display:grid;grid-template-columns:34% 1fr 24%;gap:8px;align-items:center;font-size:12px;padding:4px 0}
.db-n i,.db-v i{font-style:normal;color:rgba(235,235,245,.5);font-size:11px;margin-left:3px}
.db-bar{height:8px;border-radius:4px;background:rgba(255,255,255,.08);overflow:hidden}.db-bar b{display:block;height:100%;background:var(--accent,#0A84FF);border-radius:4px}
.db-v{text-align:right;font-weight:600}.db-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* v268 staff log */
.ntdot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}
.asform input[type=date]{min-width:0;flex:1}

/* v296 bills: details fold under one More pill */
.billmore{display:inline-block}.billmore>summary{list-style:none;cursor:pointer}.billmore>summary::-webkit-details-marker{display:none}.billmore[open]{flex-basis:100%;order:3}

/* v297 Home B */
.hh{grid-column:1/-1;position:relative;margin:2px 0 8px}
.hh:before{content:"";position:absolute;left:-16px;right:-16px;top:-30px;height:360px;pointer-events:none;background:radial-gradient(240px 180px at 15% 10%,rgba(10,132,255,.26),transparent 70%),radial-gradient(220px 200px at 95% 35%,rgba(191,90,242,.2),transparent 70%);animation:hhdrift 14s ease-in-out infinite alternate;z-index:0}
@keyframes hhdrift{to{transform:translateY(18px)}}
.hh>*{position:relative;z-index:1}
.hh button{font:inherit;color:inherit;border:0;cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent;transition:transform .12s}.hh button:active{transform:scale(.97)}
.hh-top{display:flex;justify-content:space-between;align-items:center}.hh-top small{display:block;color:#8e8e93;font-size:11px;letter-spacing:.4px}.hh-top b{font-size:20px;letter-spacing:-.02em}
.hh-sync{padding:4px 11px;border-radius:12px;background:transparent;border:1px solid rgba(48,209,88,.5)!important;color:#30d158;font-size:11px;display:flex;align-items:center;gap:6px}.hh-sync:before{content:"";width:6px;height:6px;border-radius:3px;background:currentColor;box-shadow:0 0 8px currentColor;animation:hhp 1.8s infinite}.hh-sync.warn{color:#ff9f0a;border-color:rgba(255,159,10,.5)!important}
@keyframes hhp{50%{opacity:.3}}
.hh-big{display:block;width:100%;margin:14px 0 10px;border-radius:26px;padding:16px 18px;height:156px;position:relative;overflow:hidden;background:linear-gradient(135deg,#0a84ff,#5e5ce6 60%,#bf5af2);color:#fff}
.hh-big small{opacity:.85;font-size:12px;display:block}.hh-big b{display:block;font-size:38px;letter-spacing:-1px;margin-top:2px}.hh-curve{position:absolute;left:0;bottom:0;width:100%;height:76px}
.hh-pills{display:flex;gap:8px;overflow-x:auto;margin:0 0 12px;scrollbar-width:none}.hh-pills::-webkit-scrollbar{display:none}.hh-pills button{padding:7px 15px;border-radius:16px;background:rgba(255,255,255,.1);font-size:13px;white-space:nowrap}.hh-pills .on{background:#fff;color:#000;font-weight:600}
.hh-gauge{display:flex;align-items:center;gap:16px;width:100%;padding:16px;margin-bottom:10px;border-radius:24px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.11)!important}
.rg{position:relative;flex:none}.rg svg{display:block}.rg-arc{transform:rotate(-90deg);transform-origin:50% 50%;stroke-dashoffset:var(--off);animation:rgdraw .9s ease-out}@keyframes rgdraw{from{stroke-dashoffset:var(--full)}}
.rg-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.rg-c b{font-size:20px}.rg-c small{color:#8e8e93;font-size:11px}
.hh-leg{flex:1;min-width:0}.hh-leg div{display:flex;align-items:center;gap:8px;margin:7px 0;font-size:13px;color:#aeaeb2}.hh-leg i{width:8px;height:8px;border-radius:4px;flex:none}.hh-leg b{margin-left:auto;color:#fff;font-size:15px}
.hh-bento{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.hh-tile{border-radius:22px;padding:13px;background:#12141c;border:1px solid rgba(255,255,255,.07)!important;position:relative;overflow:hidden;min-width:0}.hh-tile small{color:#8e8e93;font-size:12px;display:block}.hh-tile b{display:block;font-size:21px;margin-top:3px}
.hh-tile.w2{grid-column:span 2;height:124px}.hh-tile.w1{grid-column:span 1;height:84px}.hh-sub{position:absolute;left:13px;bottom:12px;color:#8e8e93;font-size:12px}
.hh-bars{position:absolute;left:13px;right:13px;bottom:12px;display:flex;gap:5px;align-items:flex-end;height:30px}.hh-bars i{flex:1;border-radius:4px;background:#0a84ff;opacity:.85}
@media (prefers-reduced-motion:reduce){.hh:before,.hh-sync:before,.rg-arc{animation:none!important}.hh button{transition:none}}

/* v309: Home keeps the money card, the period pills and the ring card as separate blocks (DVM 11:21); .hh-pl is only a wrapper */
.hh-pl{display:contents}

/* v311: while a sync runs the logo glows and pulses; settles when done */
@media (prefers-reduced-motion: reduce) { body.ne-syncing[data-sa="B"] #appLogoImg { animation: none; filter: brightness(1.3); } }

/* v322 slim cards: regular weight, one key number */
.slim b,.slim strong{font-weight:500}.slim .btn{font-weight:500}.slim .big{font-size:17px;font-weight:600;letter-spacing:-.01em}.slim .hr2-top{font-size:13px;color:rgba(235,235,245,.8)}

.slim .hr2-top .btn{padding:2px 9px;font-size:11px;margin-left:4px;vertical-align:1px}

.hh-tile.w4{grid-column:span 4}.hh-tile.w4.sm{height:64px}.hh-tile.w2.big{height:88px}.hh-tile.w2.big b{font-size:26px;margin-top:5px}.hh-tile.w2.sm{height:72px}
/* v404 polish: pill look for plain buttons in slim cards, roomier date fields, less cut-off dropdowns */
.card.slim .segbtn:not(.active){background:var(--card2);color:var(--ink);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:500}
.asform input[type=date]{flex:1 1 150px;min-width:138px;font-size:14px;padding-left:8px;padding-right:6px}
.asform select{flex:0 0 32%;min-width:96px;text-overflow:ellipsis}

/* v428: the small info dot beside a label was plain text ("UPI scanner i"); make it a small circle */
.infodot{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-left:5px;border-radius:50%;border:1px solid rgba(255,255,255,.3);color:rgba(235,235,245,.6);font:italic 600 9px/1 Georgia,serif;vertical-align:1px;text-transform:none;letter-spacing:0}
/* v438: each home tile has its own soft colour (DVM 16 Nov "make them colorful"). Dark tint, readable white text. */
.hh-tile[data-mod="appointments"]{background:#12141c}
.hh-tile[data-mod="ops"]{background:#12141c}
.hh-tile[data-mod="hr"]{background:#12141c}
.hh-tile[data-mod="licences"]{background:#12141c}
.hh-tile[data-mod="appointments"] small,.hh-tile[data-mod="ops"] small,.hh-tile[data-mod="hr"] small,.hh-tile[data-mod="licences"] small{color:#8e8e93}
.hh-tile[data-mod="appointments"] b,.hh-tile[data-mod="hr"] b,.hh-tile[data-mod="licences"] b{color:#fff}

.hr3-chk:has(+ .hrup){border-bottom:0;padding-bottom:4px}

/* v520: number inside the ring; --ring and --rc (blue, or red when it needs attention) are set per tile from real data */
.hh-rt{display:block;text-align:left}.hh-rt .hh-cap{position:absolute;left:13px;bottom:12px;color:#8e8e93;font-size:12px;max-width:calc(100% - 96px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hh-rt .hh-cap.hot{color:#ff453a}
.hh-ring{position:absolute;right:14px;top:50%;margin-top:-28px;width:56px;height:56px;border-radius:50%;background:conic-gradient(var(--rc,#0a84ff) 0 var(--ring,0%),rgba(255,255,255,.12) 0);display:flex;align-items:center;justify-content:center}
.hh-ring::before{content:'';position:absolute;inset:5px;border-radius:50%;background:#12141c}.hh-ring b{position:relative;font-size:20px!important;margin:0!important;color:#fff;line-height:1}.hh-rt[data-mod="ops"] .hh-ring b.x{color:#fff}

/* v476 head picker sheet (Apple look) */
.headrow { display:flex; align-items:center; gap:10px; padding:11px 4px; border-bottom:1px solid rgba(255,255,255,.07); cursor:pointer; }
.headrow:last-child { border-bottom:0; }
.headrow .hr-check { width:22px; height:22px; border-radius:50%; border:1.5px solid rgba(255,255,255,.25); flex:none; display:flex; align-items:center; justify-content:center; font-size:12px; color:#fff; }
.headrow.sel .hr-check { background:#0A84FF; border-color:#0A84FF; }
.headrow .hr-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.headrow .hr-st { font-size:12px; flex:none; }
.headrow .hr-st.ok { color:#30d158; }
.headrow .hr-st.pend { color:#8e8e93; }
.headrow .hr-st.needed { color:#8e8e93; font-style:italic; }

.asform input[type=number]{min-width:84px}.asform{flex-wrap:wrap}
.asform input.cinput:not([type]),.asform input[type=text]{min-width:110px}
/* v531: keep bell inside the phone viewport; guidance matches CELL. */
#neBellPanel { max-width:calc(100vw - 20px) !important; box-sizing:border-box; text-align:left; }
#neBellPanel .hr2-meta,#neBellPanel .hint,#neAlertsTab .hr2-meta { text-align:left; }
[data-report-tray] { max-width:100%; }

/* v534: scoped inside-page previews; Home and the bottom navigation stay unchanged. */
.ne-compact-seg{height:36px;box-sizing:border-box;align-items:center;padding:2px;flex-shrink:0}
.ne-compact-seg>.segbtn{height:30px;min-height:0;margin:0;padding:0 6px;line-height:30px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
#pettycashView>.tabs{height:36px;padding:2px;gap:2px;border-radius:12px;align-items:center}
#pettycashView>.tabs>.tab{height:30px;min-height:0;padding:0 6px;line-height:30px;flex-direction:row;justify-content:center;gap:5px;border-radius:10px;box-sizing:border-box}
#pettycashView>.tabs>.tab svg{height:16px;width:16px;flex:none}
#pettycashView>.tabs>.tab .badge{position:static}
#collectionBody .ne-lead-form>.btnrow{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#collectionBody .ne-lead-form .cinput{width:100%;min-width:0;box-sizing:border-box}
.ne-bill-disclosure{padding:0;overflow:hidden}
.ne-bill-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 16px;box-sizing:border-box;cursor:pointer;list-style:none}
.ne-bill-disclosure>summary::-webkit-details-marker{display:none}
.ne-bill-disclosure>summary:after{content:'›';font-size:24px;color:var(--muted);flex:none;transition:transform .15s}
.ne-bill-disclosure[open]>summary:after{transform:rotate(90deg)}
.ne-bill-disclosure>summary>*{margin:0!important;font-size:13px;line-height:1.4;font-weight:500}
.ne-bill-disclosure-body{padding:0 16px 16px}

.ne-bill-disclosure-body .btnrow{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.ne-bill-disclosure-body .cinput{min-width:0;width:100%;box-sizing:border-box}

/* v535: one report chooser above the existing bottom navigation. */
.ne-export-footer{position:fixed;left:max(16px,calc((100vw - 680px)/2));right:max(16px,calc((100vw - 680px)/2));bottom:calc(82px + env(safe-area-inset-bottom,0px));z-index:29;display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:16px;background:rgba(22,22,24,.97);box-shadow:0 4px 24px rgba(0,0,0,.4);box-sizing:border-box}
.ne-export-choice{display:flex;align-items:center;gap:10px;flex:1;min-width:0;margin:0;font-size:12px;color:var(--muted)}
.ne-export-choice .cinput{flex:1 1 auto;min-width:140px;height:36px;padding:6px 8px;margin:0;font-size:12px;box-sizing:border-box}
.ne-export-footer>.btn{flex:none;margin:0;border-radius:999px;padding:12px 14px;font-size:12px;min-height:44px;background:#0a84ff;color:#fff}
#collectionBody.ne-has-export-footer,#tab-log{padding-bottom:85px}
@media print{.ne-export-footer{display:none!important}}

/* A transformed tab during its entrance animation must not capture the fixed footer. */
#tab-log{animation-name:ne-log-fade}
@keyframes ne-log-fade{from{opacity:0}to{opacity:1}}
body:has(#collectionView:not(.hidden) .ne-export-footer) .toast,body:has(#pettycashView:not(.hidden) #tab-log.active) .toast{bottom:calc(150px + env(safe-area-inset-bottom,0px))}

/* v538: keep date values readable without changing native date semantics. */
#collectionBody input[type=date],#collectionBody input[type=month],#pettycashView input[type=date]{min-width:0;max-width:100%;box-sizing:border-box;padding-left:7px;padding-right:3px;font-size:13px;line-height:normal}
#collectionBody input[type=date]::-webkit-datetime-edit,#pettycashView input[type=date]::-webkit-datetime-edit{padding:0}
#collectionBody input[type=date]::-webkit-calendar-picker-indicator,#pettycashView input[type=date]::-webkit-calendar-picker-indicator{margin:0;padding:1px;width:14px}
.seg.hr-tabs.chipbar,.seg.ven-tabs.chipbar{scroll-padding-inline:16px;padding-right:22px;mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 18px),transparent 100%)}

/* v539: inside-page chart semantics. Home and shared ring defaults stay unchanged. */
:root{--chart-in:#30d158;--chart-out:#ff9f0a;--chart-net:#0a84ff;--chart-warn:#ff453a;--sheet-dim:rgba(0,0,0,.62)}
.sb-in{background:var(--chart-in)}.sb-out{background:var(--chart-out)}
.helpsheet,.chatsheet,#syncSheet{background:var(--sheet-dim)}
.ne-sheet-dim{position:fixed;inset:0;z-index:70;background:var(--sheet-dim)}
.ne-pharm-sheet{position:fixed;left:0;right:0;bottom:0;z-index:71;max-height:88dvh;box-sizing:border-box;background:var(--bg,#000);border-radius:20px 20px 0 0;border-top:1px solid rgba(255,255,255,.14);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:18px 16px max(24px,env(safe-area-inset-bottom))}

/* v541: ISO form inputs under fixed-format date controls. */
.ne-date-wrap{position:relative;display:inline-flex;vertical-align:middle;min-width:118px;max-width:100%;box-sizing:border-box;flex:1 1 138px}
.ne-date-wrap>.ne-date-native{opacity:0;pointer-events:none;width:100%!important;min-width:0!important;box-sizing:border-box;margin:0!important}
.ne-date-button{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:#1c1c1e;color:var(--ink,#fff);font:13px system-ui;padding:8px;white-space:nowrap;cursor:pointer;box-sizing:border-box}
.ne-date-button svg{flex:none}.ne-date-button:focus-visible{outline:2px solid #0a84ff;outline-offset:2px}.ne-date-button:disabled{opacity:.4;cursor:default}.ne-date-wrap:has(>.hidden),.ne-date-wrap:has(>[hidden]){display:none}
.ne-date-dim{position:fixed;inset:0;z-index:10040;background:var(--sheet-dim,rgba(0,0,0,.62));display:flex;align-items:flex-end;justify-content:center}
.ne-date-card{width:100%;max-width:528px;box-sizing:border-box;padding:20px 16px max(24px,env(safe-area-inset-bottom));border-radius:20px 20px 0 0;background:#1c1c1e;border:1px solid #3a3a3c;color:#fff}
.ne-date-card header,.ne-date-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.ne-date-card h3{margin:0}.ne-date-parts{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:10px}.ne-date-parts label{min-width:0;font-size:12px;color:#aaa}.ne-date-parts .cinput{width:100%;min-width:0;box-sizing:border-box;margin-top:6px;font-size:16px}.ne-date-card #neDateError{min-height:20px;color:#ff9f0a;font-size:13px}.ne-date-card footer .btn{flex:1}
.clabel>.ne-date-wrap{display:flex;width:100%}
.ne-date-card header h3{white-space:nowrap;font-size:18px;flex:1;text-align:left}.ne-date-card header .btn{width:auto;flex:none;margin:0;padding:9px 14px}
#neDateSheet .ne-date-card>header{display:flex;justify-content:space-between;align-items:center;gap:12px}#neDateSheet #neDateTitle{position:static;transform:none;flex:1;white-space:nowrap;min-width:0;margin:0;font-size:18px;text-align:left}#neDateSheet #neDateCancel{position:static;width:auto!important;min-width:0;flex:0 0 auto!important;margin:0;padding:9px 14px}
/* v543: page header/footer spacing must not inflate the date sheet. */
#neDateSheet .ne-date-card{padding-top:16px;padding-bottom:max(16px,env(safe-area-inset-bottom));max-height:90dvh;overflow-y:auto}
#neDateSheet .ne-date-card>header{min-height:0;padding:0;margin:0 0 12px}
#neDateSheet .ne-date-card>p.hint{margin:0 0 10px}
#neDateSheet #neDateError{min-height:0;margin:10px 0;font-size:13px}
#neDateSheet #neDateError:empty{display:none}
#neDateSheet .ne-date-card>footer{margin:16px 0 0;padding:0}
#neDateSheet .ne-date-card>footer .btn{min-height:40px;margin:0}
/* v546: Pharmacy opens as a full-height page, not a partial Home sheet. */
.ne-pharm-sheet{top:0;bottom:0;height:100dvh;max-height:none;border:0;border-radius:0;padding:16px 16px max(24px,env(safe-area-inset-bottom));background:#000}
body.ph-open #pharmBackdrop{display:none}
body.ph-open{overflow:hidden}

/* v555: scoped Payroll actions and honest sub-tab edge cues. */
.ne-locked-badge{min-height:44px!important;padding:0!important;border:0!important;background:none!important;display:inline-flex;align-items:center;color:var(--muted)!important;box-shadow:none!important}
.seg.hr-tabs.chipbar{mask-image:none}
.seg.hr-tabs.chipbar.has-left{mask-image:linear-gradient(to right,transparent,#000 16px)}
.seg.hr-tabs.chipbar.has-right{mask-image:linear-gradient(to right,#000 calc(100% - 16px),transparent)}
.seg.hr-tabs.chipbar.has-left.has-right{mask-image:linear-gradient(to right,transparent,#000 16px,#000 calc(100% - 16px),transparent)}

.ne-lock-chip{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:4px 9px;font-size:10px;line-height:14px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}

/* Shared touch sizing, including inline-sized controls and report footers. */
.ne-payroll button:not(.ne-locked-badge),.ne-payroll input,.ne-payroll select,.ne-export-footer button,.ne-export-footer select{min-height:44px!important;padding:12px 14px!important;box-sizing:border-box}
.ne-payroll button.tipi{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;border-radius:50%!important}

#hrCcEvery{min-width:112px}
/* v566: keep the enhanced Ops date control inside its own chip. */
.opsq-chips .segbtn,.opsq-chips .opsq-pick{height:44px}
.opsq-chips .opsq-pick{font-size:0;padding:0;overflow:visible}
.opsq-pick>.ne-date-wrap{min-width:0;width:100%;height:44px;flex:1 1 0}
.opsq-pick .ne-date-button{font-size:10px;padding:4px;justify-content:center;border-radius:999px}
.opsq-pick .ne-date-button svg{display:none}
.opsq-pick.active .ne-date-button{background:#0a84ff;border-color:#0a84ff;color:#fff}

/* One shared NE chat surface, mounted in CELL or its existing overlay. */
.celltabs{overflow-x:auto;justify-content:flex-start}.celltabs .segbtn{flex:0 0 auto;min-width:62px}
.chatcard-inline{border:1px solid rgba(255,255,255,.12);border-radius:20px;max-height:none;min-height:55vh;padding:16px}
.chatcard-inline .chatlog{height:38vh;max-height:55vh;flex:auto}.chatcard #chatForm{min-width:0}.chatcard #chatInput{min-width:0;width:0}.chatcard #chatForm button{min-height:44px}.chatcard #chatBusy:empty{display:none}

/* CELL rule/goal badges reserve the info dot's corner without moving other cards. */
.cell-summary-card:has(> .tiprow) > .entry-top > span:last-child{margin-right:26px;flex-shrink:0}
.cell-summary-card > .entry-top > strong{min-width:0;overflow-wrap:anywhere}
#labTestView{position:fixed;inset:0;overflow:auto;z-index:10020;background:#000;color:#fff}#labTestView .lab-shell{max-width:600px;padding:16px 16px 50px;margin:auto}#labTestView header{display:flex;align-items:center;gap:20px}#labTestView h2{font-size:20px}#labTestView .lab-warning{font-size:12px;line-height:1.5;color:#ff9f0a;background:#20170d;padding:12px;border-radius:12px}#labTestView label{display:block;margin:14px 0;font-size:12px;color:#aaa}#labTestView input{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:12px;border-radius:12px;background:#1c1c1e;color:#fff;border:1px solid #333;min-height:44px;font-size:15px}#labTestView .btn{min-height:44px;width:100%;margin:6px 0}#labTestView .lab-row{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;color:#fff;margin-top:12px}#labTestView .lab-row span{font-size:12px;color:#aaa}#labTestView pre{white-space:pre-wrap}#labTestView .card{overflow-wrap:anywhere}#labTestView #labNotice{color:#ff9f0a;font-size:13px}
#labTestView .lab-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}#labTestView .lab-tiles>div{background:#1c1c1e;border-radius:12px;padding:10px 4px;text-align:center}#labTestView .lab-tiles strong{display:block;font-size:20px;color:#0a84ff}#labTestView .lab-tiles span{display:block;font-size:10px;color:#aaa}#labTestView .lab-chart{display:flex;gap:5px;height:115px}#labTestView .lab-col{display:flex;flex:1;min-width:0;align-items:center;flex-direction:column;justify-content:flex-end}#labTestView .lab-col span,#labTestView .lab-col small{font-size:12px;color:#aaa;margin-top:4px}#labTestView .lab-pair{display:flex;align-items:flex-end;gap:3px;height:80px}#labTestView .lab-pair i{display:block;width:10px;border-radius:3px}#labTestView .lab-caption{font-size:11px;color:#aaa;line-height:1.5}#labTestView .lab-volume{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:12px}#labTestView .lab-volume>span{width:90px;overflow-wrap:anywhere}#labTestView .lab-volume>div{flex:1;height:12px;background:#333;border-radius:4px}#labTestView .lab-volume i{display:block;height:100%;background:#0a84ff;border-radius:4px}#labTestView h4{font-size:12px;color:#aaa;letter-spacing:0;text-transform:none}#labTestView .card{margin-top:12px}

body.lab-test-open{overflow:hidden}#labTestView #labBack{min-height:44px;min-width:44px}

#labTestView select{display:block;box-sizing:border-box;width:100%;min-height:44px;padding:12px;border-radius:12px;background:#1c1c1e;color:#fff;border:1px solid #333;font-size:15px;margin-top:6px}#labTestView .lab-caption{font-size:12px}#labTestView .lab-tiles span{font-size:11px}

#labTestView label.lab-check{display:flex;align-items:flex-start;gap:10px;line-height:1.5}#labTestView .lab-check input{flex:0 0 24px;width:24px;min-height:24px;height:24px;margin:0}#labTestView .lab-review-row{margin-top:16px}

#labTestView label.lab-check{min-height:44px}

#labTestView .lab-qc-log{border-top:1px solid #333;margin-top:16px;padding-top:8px}

/* v699: Home labels only. Palette from existing NE dark cards; status rings unchanged. */
#dashboardGrid [data-mod="appointments"],#dashboardGrid [data-mod="vendor"],#dashboardGrid [data-mod="scanner"]{--home-label:#0a84ff}
#dashboardGrid [data-mod="ops"],#dashboardGrid [data-mod="pettycash"]{--home-label:#ff9f0a}
#dashboardGrid [data-mod="hr"],#dashboardGrid [data-mod="funnel"],#dashboardGrid [data-scanupi]{--home-label:#bf5af2}
#dashboardGrid [data-mod="licences"],#dashboardGrid [data-mod="cell"],#dashboardGrid #pharmTile,#dashboardGrid #pharmCard{--home-label:#30d158}
#dashboardGrid [data-mod="needsfix"]{--home-label:#ff453a}
#dashboardGrid .hh-tile small,#dashboardGrid .dashcard-title,#dashboardGrid #pharmCard>.lic-lbl{color:var(--home-label,#0a84ff);opacity:1}
#dashboardGrid .hh-gauge{flex-wrap:wrap}
#dashboardGrid .hh-accounts-name{flex-basis:100%;text-align:left;font-size:12px;font-weight:600;color:#0a84ff}
/* Existing lighter NE tones keep small labels readable on the lighter lower cards. */
#dashboardGrid [data-mod="vendor"] .dashcard-title,#dashboardGrid [data-mod="scanner"] .dashcard-title,#dashboardGrid #dashSync .dashcard-title{color:#64d2ff}
#dashboardGrid [data-mod="funnel"] .dashcard-title{color:#bf8aff}

/* v705: keep bank-file review actions usable on a phone. */
#bankFeedCard .btn { min-height:44px; }

/* Shared chat viewport: keep the input inside the visible keyboard-safe area. */
.chatsheet{top:var(--chat-vtop,0px);bottom:auto;height:var(--chat-vheight,100dvh);align-items:stretch}
.chatsheet>.chatcard{height:100%;max-height:none;border-radius:0;padding:12px 16px max(12px,env(safe-area-inset-bottom));min-height:0}
.chatcard .chatlog{min-height:0;flex:1;height:auto;max-height:none;overscroll-behavior:contain}
.chatcard #chatSessionNote{margin:0;font-size:11px;line-height:1.35}
.chatcard #chatForm{margin:0;flex:none;padding-bottom:env(safe-area-inset-bottom)}
.chatcard #chatInput{margin:0;min-height:44px}
body.chat-inline-active #cellChatHost>.chatcard-inline{position:fixed;top:var(--chat-inline-top,130px);left:0;right:0;bottom:0;height:calc(var(--chat-vheight,100dvh) - var(--chat-inline-top,130px));min-height:0;max-height:none;border-radius:0;border:0;padding:12px 16px max(12px,env(safe-area-inset-bottom));z-index:65}
body.chat-typing .chatcard{position:fixed!important;top:var(--chat-vtop,0px)!important;left:0!important;right:0!important;bottom:auto!important;height:var(--chat-vheight,100dvh)!important;min-height:0!important;max-height:none!important;border-radius:0!important;z-index:100!important}
body.chat-typing #dockBg,body.chat-typing #dockHome,body.chat-typing #instinctFab,body.chat-typing #chatBtn,body.chat-inline-active #dockBg,body.chat-inline-active #dockHome,body.chat-inline-active #instinctFab,body.chat-inline-active #chatBtn,body.chat-open #dockBg,body.chat-open #dockHome{display:none!important}
body.chat-typing{overflow:hidden}
/* Marketing consent/review dates: the shared date wrapper must not keep its narrow inline width. */
#collectionBody .mkt .ne-date-wrap{display:block;width:100%;flex:1 1 100%;min-width:0}
#collectionBody .mkt .ne-date-button{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:15px}

/* v731: keep payroll actions reachable above both fixed bottom bars. */
#collectionBody.ne-has-export-footer:has(.ne-payroll){padding-bottom:calc(190px + env(safe-area-inset-bottom,0px))}
.ne-payroll button,.ne-payroll input,.ne-payroll select{scroll-margin-bottom:calc(190px + env(safe-area-inset-bottom,0px))}

/* H3-08 phone check-in card (TEST): labels readable in both themes, nothing clips or wraps at 390px. */
.ck-lbl{font-size:11px;letter-spacing:.08em;color:var(--ink);opacity:.72;font-weight:600}
.ck-form{display:flex;gap:6px;margin:6px 0 8px}
.ck-form select{flex:1 1 auto;min-width:0;text-overflow:ellipsis}
.ck-form .btn{flex:none}
.ck-note{color:var(--ink);opacity:.75;font-size:12px;margin:6px 0 0}
.ck-privacy{color:var(--muted);font-size:11.5px;line-height:1.45;margin:6px 0 2px}
.ck-time{min-width:40px;color:var(--ink);opacity:.72;font-size:11.5px;padding-top:2px}
.ck-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;padding-top:1px}
.ck-detail{color:var(--muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ck-row{gap:8px}
.ck-row .asact{flex:none;gap:3px}
.ck-row .btn.small{padding:6px 10px}
.ck-row .act-del{padding:2px 5px}

/* leave request actions: all three buttons fit side by side at 390px. */
.hrform .btnrow{gap:8px;flex-wrap:wrap}

/* Web Drive authorization is always an explicit, reachable action. */
#syncSheet.web-drive-connect #syncBtn{display:block!important}
/* Full identity and location review must remain readable on a clinic phone. */
.ck-form{flex-wrap:wrap}
.ck-form select{flex:1 0 100%;width:100%;text-overflow:clip}
.card > .hrh.ck-row{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start}
.ck-row .ck-detail{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.45}
.ck-row .ck-who b{overflow-wrap:anywhere}
.card > .ck-row .asact{margin-left:0;grid-column:2;justify-self:start;margin-top:4px}

/* v746 Design Book: scoped dark UI corrections. Body size and button ink unchanged. */
[data-mode="dark"] { --card: #121214; }
#dashboardGrid .hh-tile small,#dashboardGrid .dashcard-title,#dashboardGrid #pharmCard>.lic-lbl,#dashboardGrid .hh-accounts-name { color:var(--muted); }
#dashboardGrid .hh-cap { white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere; }
.segbtn.active,.hh-period button.active { background:var(--accent);color:var(--accent-ink); }
.opsr { border-radius:16px; }
.opsq .segbtn,.opsq-pick .ne-date-button { font-size:12px;min-height:44px; }
.opsq-pick .ne-date-button { border-color:transparent; }
#syncSheet .lockcard::before { content:"";display:block;width:36px;height:5px;background:#8e8e93;border-radius:3px;margin:0 auto 14px; }
#syncSheet #syncRestoreBtn,#syncSheet #syncLockBtn,#syncSheet #backupBtn { min-height:44px;width:100%;display:flex;justify-content:space-between;align-items:center;font-size:14px;text-align:left; }
#syncSheet #syncRestoreBtn::after,#syncSheet #syncLockBtn::after,#syncSheet #backupBtn::after { content:"›";font-size:22px; }
[data-mode="dark"] .segbtn.active .hint,[data-mode="dark"] .btn.secondary .hint { color:var(--ink); }
.hh-pills button.on { background:var(--accent);color:var(--accent-ink); }
#dashboardGrid .hh-tile small,#dashboardGrid .dashcard-title,#dashboardGrid #pharmCard>.lic-lbl { color:var(--muted)!important; }
#dashboardGrid .hh-tile,#dashboardGrid .dashcard,#dashboardGrid .hh-gauge { background:var(--card); }
[data-mode="dark"] .card,[data-mode="dark"] .modulecard,[data-mode="dark"] .btn.primary { box-shadow:none; }

/* v746 compact task choice and data rows, preserving every action ID. */
.opsq .opsq-chips{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.opsq .opsq-chips .opsq-pick{font-size:0!important;padding:0;min-width:0}
.opsq .opsq-chips .segbtn,.opsq .opsq-chips .ne-date-button{font-size:12px!important;min-width:0}
.opsq .opsq-chips .ne-date-button{background:transparent;border:0;white-space:nowrap}
.opsq .opsq-chips .active .ne-date-button{background:var(--accent)}
#syncSheet .sync-detail>summary{min-height:44px;display:flex;align-items:center;font-size:14px;cursor:pointer}
#syncSheet .sync-detail>summary:after{content:"⌄";margin-left:auto;color:var(--muted)}
#syncSheet .sync-info-row{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);font-size:14px}
#syncSheet .sync-info-row>span{min-width:64px}
#syncSheet .sync-info-row #syncRestoreBtn,#syncSheet .sync-info-row #syncLockBtn{flex:1;width:auto;text-decoration:none}
#syncSheet #backupBtn{opacity:1;text-decoration:none}
#syncSheet .lockcard{background:var(--card)!important}
#labDash{background:var(--card)!important}#labDash .ld-label{color:var(--muted)}

[data-mode="dark"] .btn.secondary,[data-mode="dark"] .segbtn:not(.active){--muted:#FFFFFF}
[data-mode="dark"] .card,[data-mode="dark"] .hh-tile,[data-mode="dark"] .dashcard,[data-mode="dark"] .lockcard,[data-mode="dark"] .tabs,[data-mode="dark"] .ne-export-footer{box-shadow:none!important}
#headSheet>div::before,#helpSheet>.helpcard::before,.ne-date-card::before{content:"";display:block;flex:none;width:36px;height:5px;background:#8e8e93;border-radius:3px;margin:0 auto 14px}

#autoBackupCard{padding:12px;border:1px solid var(--line);border-radius:16px}#autoBackupCard b{font-size:14px}#autoBackupCard summary{font-size:12px;min-height:44px;display:flex;align-items:center}#autoBackupCard p{line-height:1.5}

/* Actual44px controls, without overlapping pseudo-element tap targets. */
.segbtn,.segbtn.small,.opsq-chips .segbtn{min-height:44px;min-width:44px;box-sizing:border-box}
.segbtn::after{content:none}
.infodot{min-width:44px;min-height:44px;box-sizing:border-box;font-size:12px;vertical-align:middle;flex-shrink:0}
.ne-compact-seg>.segbtn{height:44px;min-height:44px;min-width:44px;line-height:44px}

.chip,.opsq-chips .segbtn{font-size:12px}

/* v759: reserve the full report-bar + bottom-nav stack for every export form. */
#collectionBody.ne-has-export-footer,#tab-log{padding-bottom:calc(190px + env(safe-area-inset-bottom,0px))}
#collectionBody.ne-has-export-footer :is(button,input,select,textarea),#tab-log :is(button,input,select,textarea){scroll-margin-bottom:calc(190px + env(safe-area-inset-bottom,0px))}

/* v760: keep receipt date legible and status above the persistent bottom bars. */
.toast{z-index:10060!important;bottom:calc(190px + env(safe-area-inset-bottom,0px))!important}
@media(max-width:360px){.po-receipt-fields{flex-direction:column}.po-receipt-fields input{width:100%;box-sizing:border-box}}
.aptDurationQuick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:12px}.aptDurationQuick .btn{width:100%;margin:0!important;min-width:0}

/* Light-mode readability pass (24 Nov, Main's review of the Leave screen): these HR-screen styles were
   hardcoded to dark-mode near-white values and read faint on white cards. Dark mode is untouched:
   every rule here applies only when [data-mode="dark"] is NOT set. */
:root:not([data-mode="dark"]) .hr2-meta, :root:not([data-mode="dark"]) .todaycard .hr2-meta { color: rgba(60,60,67,.85); }
:root:not([data-mode="dark"]) .slim .hr2-top { color: rgba(60,60,67,.9); }
:root:not([data-mode="dark"]) .hr2-note { color: #B34A00; }
:root:not([data-mode="dark"]) .lvb span { color: rgba(60,60,67,.85); }
:root:not([data-mode="dark"]) .lvb i { background: rgba(60,60,67,.15); }
:root:not([data-mode="dark"]) .hr2-row { border-bottom-color: var(--line); }
:root:not([data-mode="dark"]) .lic-chip { background: rgba(60,60,67,.08); }
:root:not([data-mode="dark"]) .lic-chip-t { color: rgba(60,60,67,.85); }
:root:not([data-mode="dark"]) .opsd-lbl { color: rgba(60,60,67,.8); }
:root:not([data-mode="dark"]) .infodot { border-color: rgba(60,60,67,.4); }

/* Round 3 (24 Nov, DVM via Main: finish the open faint-text family on the HR screens): history date
   labels, licence rows/tooltips, department cost figures and the two licence footnotes were hardcoded
   to dark-mode near-white / light grey values, unreadable on light-mode white cards. Dark mode keeps
   the exact old values; every override applies only when [data-mode="dark"] is NOT set. */
.lic-dim-note { color: #aeaeb2; }
:root:not([data-mode="dark"]) .hrh-d { color: rgba(60,60,67,.75); }
:root:not([data-mode="dark"]) .lic-sub { color: rgba(60,60,67,.75); }
:root:not([data-mode="dark"]) .lic-go { color: rgba(60,60,67,.55); }
:root:not([data-mode="dark"]) .lic-legend { color: rgba(60,60,67,.75); }
:root:not([data-mode="dark"]) .tipi { border-color: rgba(60,60,67,.4); color: rgba(60,60,67,.75); }
:root:not([data-mode="dark"]) .db-n i, :root:not([data-mode="dark"]) .db-v i { color: rgba(60,60,67,.75); }
:root:not([data-mode="dark"]) .lic-dim-note { color: rgba(60,60,67,.75); }

/* Export bar in normal page flow on HR screens (24 Nov, Main: the fixed Report/Excel pill floats over
   the Staff log on Directory and the loss-of-pay area on Payroll; the builder fixed Vendors the same
   way - in flow at the bottom). Scoped to HR via the .hr-tabs rail so other modules keep the existing
   fixed bar until their lanes change it. fitReportPills appends .ne-export-footer as the last child of
   #collectionBody, so position:static lands it right after the content. */
#collectionBody:has(.hr-tabs) .ne-export-footer { position: static; margin: 12px 0 0; }
:root:not([data-mode="dark"]) #collectionBody:has(.hr-tabs) .ne-export-choice { color: rgba(235,235,245,.7); }
#collectionBody.ne-has-export-footer:has(.hr-tabs) { padding-bottom: calc(90px + env(safe-area-inset-bottom,0px)); }

/* TEST combined: readable export captions in every module. */
.ne-export-footer .ne-export-choice{color:#eee;}
/* TEST finance: keep reports below cards, never floating above Bills content. */
#collectionBody:has(.pl-tabs) .ne-export-footer{position:static;margin:16px 0 0;gap:8px;}
#collectionBody:has(.pl-tabs) .ne-export-choice .cinput{min-width:0;width:100%;}
