/*  ---- theme tokens: the single source for colours. Light first, dark overrides every token. ----  */
:root { --accent:#6D28D9; --accent-soft:#F3EDFF; --bad:#8f1c15; --bad-bg:#fdeceb; --bg:#F0F3F8; --hero:linear-gradient(120deg,#DCC6FF 0%,#C79CFB 55%,#B26FF5 100%); --ink:#141B2D; --line:#E6E9F0; --mute:#667085; --ok:#14582f; --ok-bg:#eaf6ee; --panel:#fff; --side:#0f1b2d; --side-ink:#aab6c8; --warn:#7a4600; --warn-bg:#fff3dc; }
:root[data-theme="dark"] { --accent:#a58cff; --accent-soft:#2a2440; --bad:#ff8a80; --bad-bg:#3a1a18; --bg:#121118; --hero:linear-gradient(120deg,#2f2650 0%,#3d2f72 60%,#4a3890 100%); --ink:#eeecf6; --line:#2b2838; --mute:#9a96ad; --ok:#6fd08c; --ok-bg:#14301f; --panel:#1c1a25; --side:#080d16; --side-ink:#9aa2bd; --warn:#f0b24d; --warn-bg:#352a12; }
* { box-sizing:border-box; }
body { margin:0; font:14px/1.5 system-ui,"Segoe UI",Arial,sans-serif; background:var(--bg); color:var(--ink); display:flex; min-height:100vh; }
aside { display:flex; flex-direction:column; position:sticky; flex-shrink:0; }
.brand { font-weight:700; }
.brand-sub { font-size:12px; padding:0 20px 20px; opacity:.7; }
aside a { align-items:center; gap:10px; text-decoration:none; border-left:3px solid transparent; }
aside a.active { border-left-color:var(--accent); }
aside button { cursor:pointer; }
main { flex:1; min-width:0; }
h1 { margin:0 0 2px; } .sub { color:var(--mute); margin:0 0 22px; }
.card { background:var(--panel); margin-bottom:18px; }
.card h3 { margin:0 0 12px; font-size:15px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; }
.tile { background:var(--panel); text-decoration:none; color:inherit; }
.tile:hover { border-color:var(--accent); }
.tile b { display:block; font-size:16px; margin-bottom:4px; }
.tile span { color:var(--mute); font-size:13px; }
.badge { display:inline-block; font-size:11px; padding:2px 8px; border-radius:99px; background:var(--accent-soft); color:var(--accent); margin-left:6px; }
.tabs { display:flex; gap:8px; margin-bottom:16px; }
.tabs button { padding:8px 18px; border-radius:99px; color:var(--ink); cursor:pointer; }
.tabs button.on { border-color:var(--accent); }
.drops { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.drop { color:var(--mute); }
.drop.has { border-style:solid; border-color:var(--ok); background:var(--ok-bg); color:var(--ok); }
.drop b { display:block; color:var(--ink); margin-bottom:4px; }
.drop input { display:none; }
.btn { border:0; font-size:14px; cursor:pointer; margin-top:16px; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
#uc-list, #uc-reps { flex:1; min-height:110px; }
.uc-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:14px 0; }
.uc-bar .filters { margin:0; }
.btn.ghost.danger { background:var(--bad-bg); color:var(--bad); }
.msg-err { background:var(--bad-bg); color:var(--bad); padding:10px 14px; border-radius:8px; margin-top:14px; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:6px; }
.stat { padding:12px 14px; } .stat b { display:block; font-size:24px; } .stat span { font-size:12px; }
.stat.ok { background:var(--ok-bg); color:var(--ok); } .stat.warn { background:var(--warn-bg); color:var(--warn); }
.stat.bad { background:var(--bad-bg); color:var(--bad); }
.seg { font-weight:600; margin:16px 0 8px; }
.empty { text-align:center; padding:40px 10px; color:var(--mute); }
table { width:100%; border-collapse:collapse; } th,td { padding:8px 10px; border-bottom:1px solid var(--line); text-align:left; }
th { color:var(--mute); font-weight:600; font-size:12px; }
.spin { display:inline-block; width:14px; height:14px; border:2px solid #fff6; border-top-color:#fff; border-radius:50%; animation:r .7s linear infinite; vertical-align:-2px; margin-right:6px; }
@keyframes r { to { transform:rotate(360deg); } }
@media (max-width:760px) {
  body { flex-direction:column; }
  aside { flex-wrap:wrap; align-items:center; }
  .brand-sub, aside .grow { display:none; } aside a { padding:8px 12px; border-left:0; } aside button { margin:0 0 0 auto; }
  main { padding:18px 16px 40px; } .drops { grid-template-columns:1fr; }
}

.flow { display:flex; align-items:center; gap:16px; }
.flow-dumps { flex:1; display:grid; gap:12px; }
.flow-dumps .drop { padding:14px; }
.flow-arrow { font-size:34px; color:var(--accent); }
.drop.local { flex:1; align-self:stretch; display:flex; flex-direction:column; justify-content:center; border-color:var(--accent); }
@media (max-width:760px) { .flow { flex-direction:column; align-items:stretch; } .flow-arrow { text-align:center; transform:rotate(90deg); } }

/* ---- redesign: navy sidebar, teal-blue accent, mono numerals, match bars ---- */
body { font-family:'Poppins',system-ui,"Segoe UI",Arial,sans-serif; }
.card { padding:24px; }
.stat b, .badge { font-family:'IBM Plex Mono',ui-monospace,monospace; }
.stat.neutral { background:var(--panel); border:1px solid var(--line); color:var(--mute); }
.btn { min-height:44px; }
.btn.ghost { display:inline-flex; align-items:center; text-decoration:none; font-weight:600; }
.bar { display:flex; height:10px; border-radius:99px; overflow:hidden; background:var(--line); margin:4px 0 14px; }
.bar i:nth-child(1){background:#1e7d46} .bar i:nth-child(2){background:#c77700} .bar i:nth-child(3){background:#b3261e}
.rate { display:flex; justify-content:space-between; color:var(--mute); margin-top:12px; }
.rate b { color:var(--ink); }

.tile.soon { opacity:.6; cursor:default; } .tile.soon:hover { border-color:var(--line); }
.fgrid { display:grid; grid-template-columns:1fr 1fr; gap:14px 18px; } .fgrid .wide { grid-column:1/-1; }
.card label { display:block; font-weight:600; font-size:13px; } label small { font-weight:400; color:var(--mute); }
.card input[type=text], .card input:not([type]), .card input[type=date], .card input[type=email], .card input[inputmode] { display:block; width:100%; margin-top:4px; padding:10px 12px; border:1px solid var(--line); color:var(--ink); font:inherit; min-height:44px; }
.card input:focus { outline:2px solid var(--accent); outline-offset:1px; }
.hint { color:var(--mute); font-size:13px; margin:12px 0; }
fieldset { border:1px solid var(--line); border-radius:10px; padding:12px 16px; margin:0 0 4px; } legend { font-weight:600; font-size:13px; padding:0 6px; }
label.chk { display:inline-flex; align-items:center; gap:8px; margin-right:20px; font-weight:500; min-height:36px; } label.chk input { width:18px; height:18px; }
.fam { margin:4px 0 0 4px; padding-left:12px; border-left:3px solid var(--accent-soft); }
.steps { color:var(--mute); font-size:13px; margin:18px 0 0; padding-left:20px; }
@media (max-width:760px) { .fgrid { grid-template-columns:1fr; } }

.fld[hidden] { display:none; } .fld .lbl { font-weight:600; font-size:13px; margin-bottom:4px; } .req { color:var(--bad); }
.opts { display:flex; flex-wrap:wrap; gap:4px 6px; } input.up { text-transform:uppercase; }
.card ul.steps { margin:0 0 4px; padding-left:20px; } .card ul.steps li { margin:4px 0; }

/* ---- soft lavender look: floating black icon rail, big rounded white cards, lilac hero ---- */
body { padding:16px; gap:20px; }
aside { width:68px; height:calc(100vh - 32px); top:16px; padding:18px 0; align-items:center; gap:6px; background:#0d0c12; border-radius:34px; color:#8d8a9c; }
.brand { width:36px; height:36px; border-radius:12px; background:#fff; color:#0d0c12; display:grid; place-items:center; font-size:17px; padding:0; margin-bottom:18px; }
.brand-sub { display:none; }
aside a, aside button { position:relative; width:44px; height:44px; padding:0; margin:0; border:0; border-radius:50%; display:grid; place-items:center; color:inherit; background:none; }
aside a span { display:none; }
aside svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
aside a:hover, aside button:hover { background:#24222e; color:#fff; }
aside a.active { background:#d9cdfd; color:#2b1d63; border:0; font-weight:600; }
[data-tip]:hover::after { content:attr(data-tip); position:absolute; left:54px; top:50%; transform:translateY(-50%); background:#0d0c12; color:#fff; font-size:12px; padding:4px 10px; border-radius:8px; white-space:nowrap; z-index:5; }
main { padding:12px 8px 40px; max-width:1180px; }
h1 { font-size:26px; font-weight:600; letter-spacing:-.02em; }
.card, .tile { border:0; border-radius:22px; box-shadow:0 1px 2px rgba(20,16,40,.04); }
.tile { padding:22px; transition:transform .15s, box-shadow .15s; }
.tile:hover { transform:translateY(-4px); box-shadow:0 10px 26px rgba(70,40,160,.12); }
.tile b { font-weight:600; }
.hero { display:flex; align-items:center; justify-content:space-between; gap:20px; background:var(--hero); border-radius:24px; padding:28px 30px; margin-bottom:22px; }
.hero h1 { margin-bottom:6px; } .hero p { margin:0; color:var(--ink); opacity:.7; max-width:520px; }
.pill, .btn { display:inline-flex; align-items:center; justify-content:center; background:#17151f; color:#fff; border-radius:99px; padding:10px 22px; text-decoration:none; font-weight:500; white-space:nowrap; }
:root[data-theme="dark"] .pill, :root[data-theme="dark"] .btn { background:#eeecf6; color:#17151f; }
.btn.ghost { background:var(--accent-soft); color:var(--accent); border-radius:99px; }
.tabs button { background:var(--panel); border:0; } .tabs button.on { background:#17151f; color:#fff; } .stat { border-radius:16px; }
.card input[type=text], .card input:not([type]), .card input[type=date], .card input[type=email], .card input[inputmode] { border-radius:12px; background:var(--bg); border-color:transparent; }
/* ---- shell: V15 top bar, V18 cards ---- */
.shell { flex:1; min-width:0; display:flex; flex-direction:column; }
.shell main { padding:4px 4px 40px; }
.top { display:flex; align-items:center; justify-content:space-between; padding:6px 4px 18px; }
.crumb { color:var(--mute); font-size:13px; } .crumb b { color:var(--ink); font-weight:600; }
.top-right { display:flex; align-items:center; gap:10px; }
.themes { display:flex; background:var(--panel); border-radius:99px; padding:4px; gap:2px; }
.themes button { width:34px; height:34px; border:0; border-radius:50%; background:none; color:var(--mute); cursor:pointer; display:grid; place-items:center; }
:root:not([data-theme="dark"]) [data-theme-set="light"], :root[data-theme="dark"] [data-theme-set="dark"] { background:#17151f; color:#fff; }
:root[data-theme="dark"] [data-theme-set="dark"] { background:#eeecf6; color:#17151f; }
.themes svg, .pill svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.avatar { width:42px; height:42px; border-radius:50%; background:var(--hero); display:grid; place-items:center; font-weight:600; font-size:13px; border:3px solid var(--panel); }
.pill { gap:8px; } .pill.light { background:#fff; color:#17151f; box-shadow:0 2px 8px rgba(40,20,90,.1); }
:root[data-theme="dark"] .pill.light { background:#17151f; color:#fff; }

.dash { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; align-items:start; }
.dash-side .card { padding:20px; }
.filters { display:flex; gap:4px; background:var(--panel); border-radius:99px; padding:4px; width:max-content; margin-bottom:16px; }
.filters button { border:0; background:none; color:var(--mute); border-radius:99px; padding:7px 16px; font:inherit; font-size:13px; cursor:pointer; }
.filters button.on { background:#17151f; color:#fff; } :root[data-theme="dark"] .filters button.on { background:#eeecf6; color:#17151f; }
.page-h { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }

.mods { grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); }
.mod { background:var(--panel); border-radius:22px; padding:10px 10px 16px; text-decoration:none; color:inherit; display:flex; flex-direction:column; transition:transform .15s, box-shadow .15s; }
.mod[hidden] { display:none; }
.btn[hidden] { display:none; }
.mod:hover { transform:translateY(-4px); box-shadow:0 12px 28px rgba(70,40,160,.13); }
.mod b { font-weight:600; margin:14px 8px 4px; } .mod span { color:var(--mute); font-size:13px; margin:0 8px; flex:1; }
.mod .go { font-style:normal; font-size:13px; font-weight:600; color:var(--accent); margin:12px 8px 0; }
.thumb { position:relative; height:104px; border-radius:16px; display:grid; place-items:center; }
.thumb svg { width:38px; height:38px; padding:12px; box-sizing:content-box; background:rgba(255,255,255,.65); border-radius:16px; fill:none; stroke:#2a2240; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.thumb .tag { position:absolute; top:10px; left:10px; font-style:normal; font-size:11px; font-weight:600; background:#17151f; color:#fff; border-radius:99px; padding:3px 10px; }
.thumb.sm { width:56px; height:56px; flex-shrink:0; } .thumb.sm svg { width:24px; height:24px; padding:8px; }
.lilac { background:linear-gradient(135deg,#e6ddff,#cdbcfb); } .pink { background:linear-gradient(135deg,#fde2f1,#f6bfe0); }
.blue { background:linear-gradient(135deg,#dfe9ff,#bfd2fb); } .green { background:linear-gradient(135deg,#dcf5e6,#b5e6c9); }
.peach { background:linear-gradient(135deg,#ffe8d9,#fbcdb0); }
:root[data-theme="dark"] .thumb { filter:saturate(.8) brightness(.8); }

.cal-h { margin-bottom:12px; } .days { display:grid; grid-template-columns:repeat(6,1fr); gap:4px; text-align:center; font-weight:600; font-size:14px; }
.days div { padding:8px 0; border-radius:14px; } .days small { display:block; font-size:11px; font-weight:500; color:var(--mute); margin-bottom:4px; }
.days .today { background:#17151f; color:#fff; } .days .today small { color:#bbb; }
:root[data-theme="dark"] .days .today { background:#eeecf6; color:#17151f; }
.feed { list-style:none; margin:0; padding:0; } .feed li { display:flex; align-items:center; gap:10px; padding:10px; background:var(--panel); border:1px solid var(--line); border-radius:14px; margin-top:8px; font-size:13px; }
.feed li div { flex:1; } .feed small { display:block; color:var(--mute); font-size:11px; }
.dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; } .dot.ok { background:#1e7d46; } .dot.warn { background:#c77700; } .dot.bad { background:#b3261e; }
.chip { font-size:11px; font-weight:600; background:#17151f; color:#fff; border-radius:99px; padding:4px 10px; text-decoration:none; }
.muted { color:var(--mute); font-size:13px; margin:0; }
.how { list-style:none; counter-reset:s; margin:0; padding:0; } .how li { counter-increment:s; display:grid; grid-template-columns:30px 1fr; column-gap:10px; margin-top:12px; font-size:13px; }
.how li::before { content:counter(s); grid-row:span 2; width:28px; height:28px; border-radius:50%; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; font-weight:700; }
.how small { color:var(--mute); }
.form-h { display:flex; gap:16px; align-items:center; margin-bottom:6px; } .form-h .sub { margin-bottom:0; }
.progress { position:sticky; top:12px; z-index:2; padding:14px 20px; margin-top:16px; box-shadow:0 6px 18px rgba(40,20,90,.08); }
.progress .rate { margin:0; } .bar.one { margin:8px 0 0; } .bar.one i { background:var(--accent) !important; transition:width .25s; }
@media (max-width:1000px) { .dash { grid-template-columns:1fr; } }
@media (max-width:760px) { .top { padding-bottom:12px; } .filters { width:auto; overflow-x:auto; } }

/* ---- sign-in, user menu, admin pages ---- */
:root[data-auth="out"] aside, :root[data-auth="out"] .shell { display:none; }
:root:not([data-auth]) aside, :root:not([data-auth]) .shell { visibility:hidden; }
:root[data-auth="out"] #login { display:grid; }
#login { flex:1; place-items:center; min-height:calc(100vh - 32px); background:var(--hero); border-radius:28px; padding:20px; }
.login-card { width:100%; max-width:400px; background:var(--panel); border-radius:26px; padding:32px; box-shadow:0 20px 50px rgba(40,20,90,.15); }
.login-card .brand { background:#17151f; color:#fff; margin-bottom:18px; }
.login-card label, .narrow label, #addf label, #spf label { display:block; font-weight:600; font-size:13px; margin-top:12px; }
.login-card input, .narrow input, .row-form input, .search, .list select { display:block; width:100%; margin-top:4px; padding:10px 12px; border:1px solid transparent; border-radius:12px; background:var(--bg); color:var(--ink); font:inherit; min-height:44px; }
.login-card input:focus, .search:focus, .row-form input:focus { outline:2px solid var(--accent); outline-offset:1px; }
.login-card .btn { width:100%; margin-top:20px; }
.enrol { font-size:13px; padding-left:18px; color:var(--mute); } .enrol li { margin:6px 0; } .enrol b { color:var(--ink); }
.enrol .qr { margin:8px 0; } .enrol .qr svg { display:block; width:220px; height:220px; background:#fff; border-radius:8px; }
.key { font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:15px; letter-spacing:.06em; background:var(--accent-soft); color:var(--ink); padding:10px 12px; border-radius:12px; margin-top:6px; user-select:all; word-break:break-all; }
.key.big { font-size:20px; display:inline-block; }
.usermenu { position:relative; } button.avatar { cursor:pointer; color:var(--ink); font:inherit; font-weight:600; font-size:13px; }
.menu { position:absolute; right:0; top:50px; width:240px; background:var(--panel); border-radius:18px; padding:8px; box-shadow:0 14px 40px rgba(30,20,70,.18); z-index:20; }
.menu-who { padding:10px 12px 12px; border-bottom:1px solid var(--line); margin-bottom:6px; } .menu-who small { display:block; color:var(--mute); font-size:12px; margin-bottom:6px; } .menu-who .badge { margin:0; }
.menu a, .menu button { display:block; width:100%; text-align:left; padding:10px 12px; border-radius:12px; color:var(--ink); text-decoration:none; background:none; border:0; font:inherit; cursor:pointer; }
.menu a:hover, .menu button:hover { background:var(--bg); }
.narrow { max-width:440px; }
table.list td { vertical-align:middle; } .block { display:block; color:var(--mute); } .nowrap { white-space:nowrap; } .acts { text-align:right; white-space:nowrap; }
.list select { width:auto; min-height:36px; padding:6px 10px; margin:0; }
.state { display:inline-block; font-size:12px; font-weight:600; padding:3px 10px; border-radius:99px; }
.state.ok { background:var(--ok-bg); color:var(--ok); } .state.warn { background:var(--warn-bg); color:var(--warn); } .state.bad { background:var(--bad-bg); color:var(--bad); }
.chip.ghost { background:var(--bg); color:var(--ink); border:0; cursor:pointer; font:inherit; font-size:12px; font-weight:600; margin-left:4px; }
.chip.ghost:hover { background:var(--accent-soft); }
.notice { background:var(--accent-soft); }
.row-form { display:flex; gap:10px; align-items:center; max-width:460px; } .row-form input { margin:0; } .row-form .btn { margin:0; }
.tags { display:flex; flex-wrap:wrap; gap:6px; } .tags code { background:var(--bg); padding:4px 10px; border-radius:99px; font-size:12px; }
.search { width:280px; margin:0 0 22px; background:var(--panel); }
.spin.dark { border-color:var(--line); border-top-color:var(--accent); }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:#17151f; color:#fff; padding:12px 20px; border-radius:99px; z-index:50; box-shadow:0 10px 30px rgba(0,0,0,.2); }
.toast.bad { background:var(--bad); }
aside .grow { flex:1; }

/* ---- client portal ---- */
body.client { display:block; } body.client .shell { margin:0 auto; }
.cnav { display:flex; gap:4px; background:var(--panel); border-radius:99px; padding:4px; }
.cnav a { padding:7px 16px; border-radius:99px; color:var(--mute); text-decoration:none; font-size:13px; font-weight:500; }
.cnav a.active { background:#17151f; color:#fff; } :root[data-theme="dark"] .cnav a.active { background:#eeecf6; color:#17151f; }
.muted.fine { font-size:12px; margin-top:16px; } .login-card a { color:var(--accent); }
.fld.known input { background:var(--accent-soft) !important; } .fld.locked input { opacity:.75; cursor:not-allowed; }
.req-h { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; } .req p { margin:8px 0 0; }
#up-file { display:block; width:100%; padding:12px; border-radius:12px; background:var(--panel); margin:10px 0 0; }
@media (max-width:760px) { .cnav a { padding:6px 10px; white-space:nowrap; } .top-right { gap:6px; } }
@media (max-width:480px) { .top:has(.cnav) .crumb { display:none; } .top:has(.cnav) .top-right { width:100%; justify-content:space-between; } .top:has(.cnav) #signout { white-space:nowrap; } }

/* expandable rail: icons only by default, icons + names when open */
aside { overflow:hidden; }
.brand-row { display:flex; align-items:center; gap:10px; margin-bottom:18px; } .brand-row .brand { margin:0; flex-shrink:0; }
.brand-name { display:none; color:#fff; font-size:15px; white-space:nowrap; }
#expand { margin-bottom:10px; } #expand svg { transition:transform .2s; }
aside button span { display:none; }
:root[data-side="open"] aside { width:220px; align-items:stretch; padding:18px 12px; border-radius:28px; }
:root[data-side="open"] .brand-row { padding-left:4px; } :root[data-side="open"] .brand-name { display:block; }
:root[data-side="open"] aside a, :root[data-side="open"] aside button { width:auto; display:flex; justify-content:flex-start; gap:12px; padding:0 12px; border-radius:14px; font-size:14px; white-space:nowrap; }
:root[data-side="open"] aside a span, :root[data-side="open"] aside button span { display:inline; }
:root[data-side="open"] #expand svg { transform:rotate(180deg); }
:root[data-side="open"] [data-tip]:hover::after { display:none; }
@media (max-width:760px) {
  #expand, .brand-name { display:none !important; }
  :root[data-side="open"] aside { width:auto; flex-direction:row; padding:8px; border-radius:99px; }
  :root[data-side="open"] aside a span, :root[data-side="open"] aside button span { display:none; }
  :root[data-side="open"] aside a, :root[data-side="open"] aside button { width:44px; padding:0; justify-content:center; border-radius:50%; }
  body { padding:10px; gap:12px; }
  aside { width:auto; height:auto; position:static; flex-direction:row; justify-content:center; border-radius:99px; padding:8px; }
  .brand { margin:0 8px 0 0; } [data-tip]:hover::after { display:none; }
  .hero { flex-direction:column; align-items:flex-start; padding:22px; }
}

.devbar { position:fixed; top:0; left:0; right:0; z-index:60; background:#c77700; color:#fff; text-align:center; font-size:12px; font-weight:600; padding:4px 8px; }
body:has(.devbar) { padding-top:36px; }
.devbar.bad { background:#b3261e; }

/* ---- reconciliation run: chip, progress, options ---- */
.jobchip { display:inline-flex; align-items:center; gap:8px; background:var(--panel); color:var(--ink); border-radius:99px; padding:8px 14px; font-size:13px; font-weight:600; text-decoration:none; box-shadow:0 4px 14px rgba(40,20,90,.1); }
.jobchip.busy { background:var(--accent-soft); color:var(--accent); }
.jobchip[hidden] { display:none; }
.runcard .run-h { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; } .runcard .elapsed { color:var(--mute); font-size:13px; }
.pbar { height:12px; border-radius:99px; background:var(--line); overflow:hidden; } .pbar i { display:block; height:100%; background:var(--accent); border-radius:99px; transition:width .3s; }
.pbar.indet i { width:35% !important; animation:slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { margin-left:-35%; } 100% { margin-left:100%; } }
label.chk.opt { display:flex; margin:16px 0 0; align-items:flex-start; } label.chk.opt small { color:var(--mute); font-weight:400; }
.took { margin:0 0 10px; font-size:12px; }

/* CKYC tool under the same roof */
.ckyc-wrap{height:calc(100vh - 140px);min-height:420px;margin:-12px -6px 0}
.ckyc-wrap iframe{width:100%;height:100%;border:0;background:transparent;display:block}
#view[hidden], #aof-host[hidden], #ckyc-host[hidden] { display:none; }
#ckyc-host { flex:1; min-width:0; padding:4px 4px 40px; }
#aof-host { flex:1; min-width:0; padding:12px 8px 40px; }
:root #aof-host #modal, :root #aof-host #cmp { z-index:70; }
@media print { :root[data-page="aof"] :is(aside, #mtop, #find, #jobchip, .devbar, #scrim) { display:none !important; } }


/* DP Bill MIS */
.mpick { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--mute); }
.mpick input { padding:9px 12px; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--ink); font:inherit; }
.bm-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
@media (max-width: 980px) { .bm-grid { grid-template-columns:1fr; } }
.fgrid.five { grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); margin-top:12px; }
.fgrid input, .fgrid select { display:block; width:100%; margin-top:4px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--ink); font:inherit; }
.drop { display:flex; flex-direction:column; align-items:center; gap:4px; padding:22px 16px; border:1.5px dashed var(--line); border-radius:16px; cursor:pointer; text-align:center; transition:border-color .15s, background .15s; }
.drop span { color:var(--mute); font-size:13px; } .drop:hover, .drop.over { border-color:var(--accent); background:var(--accent-soft); }
ul.found { list-style:none; padding:0; margin:12px 0 0; display:grid; gap:6px; font-size:13px; } ul.found .state { margin-right:4px; }
.bm-net { display:flex; align-items:baseline; gap:12px; margin:16px 0 4px; padding:12px 14px; border-radius:12px; background:var(--accent-soft); }
.bm-net span { font-weight:600; } .bm-net b { font-size:20px; } .bm-net small { color:var(--mute); margin-left:auto; }
.bm-acts { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px; }
.card-h { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; } .card-h .bm-acts { margin:0; }
.bm-table { overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
table.mis { border-collapse:collapse; font-size:13px; width:max-content; min-width:100%; }
table.mis th, table.mis td { padding:7px 12px; border-bottom:1px solid var(--line); text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
table.mis th { background:var(--bg); font-weight:700; position:sticky; top:0; } table.mis th a { color:var(--accent); text-decoration:none; }
table.mis td:first-child, table.mis th:first-child { text-align:left; position:sticky; left:0; background:var(--panel); font-weight:500; }
table.mis tr.bill td:first-child { color:var(--accent); } table.mis tr.red td:first-child { color:var(--bad); }
table.mis tr.net td { font-weight:700; border-bottom:0; background:var(--accent-soft); } table.mis tr.net td:first-child { background:var(--accent-soft); }
table.mis.coll { min-width:0; margin:12px 0 6px; } #bm-coll .msg-err { margin:6px 0; }
table.mis td.on, table.mis th.on { background:var(--accent-soft); font-weight:700; }   /* the month open above */
.bm-tag { margin-left:6px; font-size:10.5px; font-weight:600; padding:1px 6px; border-radius:4px; background:var(--ok-bg); color:var(--ok); vertical-align:1px; }
.bm-tag.t { background:var(--warn-bg); color:var(--warn); }
.bm-todo { display:flex; gap:12px; flex-wrap:wrap; margin:0; } .bm-todo .ok { color:var(--ok); font-weight:600; }
/* 16-11-2026 review: sign-out warning, Outbox and Audit filter bars, reject box, system accounts */
.idle-warn { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:70; display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:center; max-width:calc(100vw - 32px); background:var(--warn-bg); color:var(--warn); border:1px solid var(--warn); border-radius:14px; padding:12px 16px; font-weight:600; box-shadow:0 10px 30px rgba(0,0,0,.2); }
.ob-bar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; } .ob-bar .tabs, .ob-bar .search { margin:0; } .ob-bar .search { flex:1 1 220px; width:auto; max-width:360px; } .ob-bar #ob-all { margin-left:auto; }
.ob-acts { display:flex; gap:6px; align-items:center; }
.au-who { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--mute); margin-left:auto; } .au-who select { width:auto; min-width:150px; padding:7px 10px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--ink); font:inherit; }
.au-n { font:inherit; font-size:12px; font-weight:600; border:0; border-radius:99px; padding:1px 9px; margin-left:4px; background:var(--bg); color:var(--mute); cursor:pointer; } .au-n:hover { color:var(--ink); }
.au-times { display:block; font-size:12px; color:var(--mute); margin-top:2px; } .au-times[hidden] { display:none; }
.rq-rej td { background:var(--bg); } .rq-rejbox { display:grid; gap:10px; max-width:720px; padding:4px 0; } .rq-why { display:flex; gap:6px; flex-wrap:wrap; }
.rq-rejbox .msg-err { margin:0; padding:6px 10px; }
tr.st-sys th { text-align:left; padding-top:22px; font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--mute); } tr.st-sys th small { text-transform:none; letter-spacing:0; font-weight:400; margin-left:6px; }
/* 17-11-2026 Bill MIS: clients still to pay, a changed client bill (same look as the rest of the page) */
.bm-pend { margin:12px 0; } .bm-pend summary { cursor:pointer; padding:6px 0; } .bm-pend input { margin:6px 0 8px; max-width:320px; }
.bm-plist { max-height:340px; overflow:auto; border:1px solid var(--line); border-radius:8px; }
#bm-coll .msg-warn p { margin:0 0 6px; } #bm-coll .msg-warn details { margin:6px 0; } #bm-coll .msg-warn table { background:var(--panel); color:var(--ink); }
.msg-warn { background:var(--warn-bg); color:var(--warn); padding:10px 14px; border-radius:8px; margin-top:4px; } .bm-confirm p { margin:0; } .bm-confirm .bm-acts { margin-top:8px; flex-wrap:nowrap; } .bm-confirm .btn { flex:1; }
.mail-prev { overflow-x:auto; margin:14px 0; padding:14px; background:#fff; border:1px solid var(--line); border-radius:12px; color:#111; }
/* KYC MIS */
.km-head { align-items:center; margin-bottom:18px; } .km-head .sub { margin:0; }
.km-daybar { display:flex; align-items:center; gap:6px; background:var(--panel); border-radius:99px; padding:6px 8px; }
.km-daybar input { border:0; background:none; color:var(--ink); font:inherit; font-weight:600; padding:6px 4px; }
.km-nav { width:34px; height:34px; border:0; border-radius:50%; background:var(--bg); color:var(--ink); font-size:20px; line-height:1; cursor:pointer; }
.km-nav:hover:not(:disabled) { background:var(--accent-soft); color:var(--accent); } .km-nav:disabled { opacity:.35; cursor:default; }
.km-daybar .state { margin-left:4px; }
.km-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:18px; align-items:stretch; }
.km-layout > .km-main > .card:last-of-type { margin-bottom:0; }
.km-side { display:flex; } .km-side .card { padding:22px; flex:1; display:flex; flex-direction:column; margin-bottom:0; }
.km-side #km-month { flex:1; } .km-side .km-acts { margin-top:auto; padding-top:18px; }
.km-layout section h3, .km-side h3 { display:flex; align-items:center; gap:10px; font-size:16px; margin-bottom:16px; }
.km-layout .card-h h3 { margin-bottom:0; } .km-layout .card-h { margin-bottom:14px; } .km-layout .card-h .btn { margin:0; }
.km-n { width:26px; height:26px; border-radius:50%; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; font-size:13px; font-weight:700; flex-shrink:0; }
.km-split { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.km-box { background:var(--bg); border-radius:18px; padding:16px; }
.km-box-h { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:12px; }
.km-box-h b { display:block; font-size:14px; } .km-box-h small { color:var(--mute); font-size:12px; }
.km-box-h strong { font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:26px; line-height:1; }
.km-rejected .km-box-h strong { color:var(--bad); } .km-opened .km-box-h strong { color:var(--ok); }
.km-three { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.km-three label, .km-single label, .km-row label { font-size:12px; font-weight:600; color:var(--mute); }
.card .km-three input { background:var(--panel); text-align:center; font-size:16px; font-weight:600; padding:8px 4px; min-height:42px; }
.km-single { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; align-items:end; }
.km-side h3 { justify-content:space-between; } .km-side h3 small { font-weight:500; }
.km-single label { color:var(--ink); font-size:13px; } .km-single small { display:block; font-weight:400; color:var(--mute); font-size:12px; }
.card .km-single input { font-size:16px; font-weight:600; }
.km-rows { display:grid; gap:10px; }
.km-row { display:grid; grid-template-columns:150px 1.4fr 140px 1.4fr 36px; gap:10px; align-items:end; background:var(--bg); border-radius:16px; padding:10px 12px; }
.card .km-row input { background:var(--panel); min-height:40px; padding:8px 10px; }
.km-del { width:36px; height:36px; margin-bottom:2px; border:0; border-radius:50%; background:none; color:var(--mute); font-size:20px; cursor:pointer; }
.km-del:hover { background:var(--bad-bg); color:var(--bad); }
.km-empty { padding:14px; text-align:center; background:var(--bg); border-radius:14px; }
.km-warn { color:var(--warn); font-weight:600; font-size:13px; }
.km-big { background:var(--accent-soft); border-radius:16px; padding:14px 16px; margin-bottom:6px; }
.km-big b { display:block; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:30px; color:var(--accent); } .km-big span { font-size:13px; color:var(--mute); }
.km-list { display:grid; grid-template-columns:1fr auto; margin:0; }
.km-list dt, .km-list dd { padding:10px 0; border-bottom:1px solid var(--line); margin:0; font-size:13px; }
.km-list dt { color:var(--mute); } .km-list dd { text-align:right; font-weight:600; } .km-list small { display:block; font-weight:400; color:var(--mute); font-size:11.5px; }
.km-bad { color:var(--bad); }
.km-acts { display:grid; gap:8px; margin-top:18px; } .km-acts .btn { margin:0; width:100%; }
.km-reset { border:0; background:none; color:var(--bad); font:inherit; font-size:13px; font-weight:600; padding:8px; cursor:pointer; border-radius:99px; }
.km-reset:hover { background:var(--bad-bg); }
.km-side .muted.fine { margin-top:10px; text-align:center; }
@media (max-width:1100px) { .km-layout { grid-template-columns:1fr; } .km-single { grid-template-columns:repeat(2,1fr); } }
@media (max-width:760px) { .km-split { grid-template-columns:1fr; } .km-row { grid-template-columns:1fr 1fr; } .km-row .km-del { grid-column:2; justify-self:end; } }
/* Client notices */
.nt-stats { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px; margin:12px 0; }
.nt-stat { border:1px solid var(--line); border-radius:14px; padding:12px 14px; display:flex; flex-direction:column; gap:2px; }
.nt-stat b { font-size:22px; } .nt-stat span { font-size:12.5px; color:var(--mute); }
.nt-stat.bad { border-color:color-mix(in srgb, var(--bad) 40%, transparent); background:var(--bad-bg); } .nt-stat.bad b { color:var(--bad); }
.tbl-wrap { overflow-x:auto; margin-top:10px; }
table.list tr.od td { background:color-mix(in srgb, var(--bad-bg) 60%, transparent); }
.btn.sm { min-height:30px; padding:0 12px; font-size:12.5px; margin-left:4px; }
.fgrid textarea { display:block; width:100%; margin-top:4px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--ink); font:inherit; resize:vertical; }
.nt-em { padding:6px 10px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--ink); font:inherit; min-width:220px; }
.nt-sub { font-size:14px; margin:18px 0 6px; color:var(--mute); text-transform:uppercase; letter-spacing:.05em; }
/* Client notices board: Waiting / Day 29 / Suspended */
.nc-tabs { background:none; padding:0; width:auto; flex-wrap:wrap; gap:8px; overflow:visible !important; }
.nc-tabs button { background:var(--panel); border:1px solid var(--line); color:var(--ink); }
.nc-tabs button.on { border-color:transparent; }
.nc-search { display:block; width:100%; max-width:320px; margin:0 0 14px; }
.nc-pick { font-size:13px; color:var(--mute); } .nc-pick select { margin-left:6px; padding:7px 10px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--ink); font:inherit; }
.nc-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
.nc-col { background:color-mix(in srgb, var(--ink) 5%, var(--bg)); border-radius:16px; padding:12px; min-width:0; }
.nc-col > header { display:flex; align-items:center; gap:8px; padding:4px 4px 12px; }
.nc-col > header i { width:9px; height:9px; border-radius:50%; background:var(--tone); flex:none; }
.nc-col > header b { font-size:14.5px; } .nc-col > header span { margin-left:auto; min-width:24px; padding:1px 7px; border-radius:7px; background:var(--panel); text-align:center; font-size:12.5px; font-weight:600; }
.nc-list { display:flex; flex-direction:column; gap:10px; max-height:calc(100vh - 250px); min-height:60px; overflow-y:auto; }
.nc-none { margin:0; padding:14px 0; text-align:center; font-size:13px; color:var(--mute); }
.t-wait { --tone:#2563EB; --tone-ink:var(--ink); } .t-soon { --tone:#EA580C; --tone-ink:#9A3412; } .t-over { --tone:#B91C1C; --tone-ink:#991B1B; }
:root[data-theme="dark"] .t-wait { --tone:#60A5FA; } :root[data-theme="dark"] .t-soon { --tone:#FB923C; --tone-ink:#FDBA74; } :root[data-theme="dark"] .t-over { --tone:#F87171; --tone-ink:#FCA5A5; }
.nc-card { flex:none; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px; }
.nc-top { display:flex; justify-content:space-between; align-items:baseline; gap:10px; } .nc-top b { font-size:14px; min-width:0; overflow-wrap:anywhere; }
.nc-left { flex:none; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:12.5px; font-weight:600; color:var(--tone-ink); }
.nc-kind { margin-top:4px; font-size:12.5px; color:var(--mute); }
.nc-meta { margin-top:8px; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:12.5px; color:var(--mute); overflow-wrap:anywhere; }
.nc-bar { display:flex; gap:2px; margin-top:9px; } .nc-bar i { flex:1; height:7px; border-radius:2px; background:var(--line); }
.nc-bar i.end { background:color-mix(in srgb, #B91C1C 25%, var(--panel)); } .nc-bar i.on { background:var(--tone); }
.nc-err { display:block; margin-top:8px; font-size:12px; color:var(--bad); }
.nc-acts { display:flex; justify-content:space-between; align-items:center; gap:6px; flex-wrap:wrap; margin-top:12px; } .nc-acts > span { display:flex; gap:6px; margin-left:auto; }
.nc-acts .btn.sm, .nc-det-acts .btn.sm { margin:0; min-height:34px; border-radius:10px; font-weight:600; }
:root[data-theme] .btn.line, :root .btn.line { background:var(--panel); color:var(--ink); border:1px solid var(--line); } :root .btn.line:hover { background:var(--accent-soft); }
.nc-more { border:0; background:none; padding:4px 0; font:inherit; font-size:12.5px; color:var(--mute); cursor:pointer; } .nc-more:hover { color:var(--accent); }
.nc-det { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:4px 12px; margin:10px 0 0; padding-top:10px; border-top:1px solid var(--line); font-size:12.5px; }
.nc-det[hidden] { display:none; } .nc-det dt { color:var(--mute); } .nc-det dd { margin:0; overflow-wrap:anywhere; }
.nc-det .nc-det-acts { grid-column:1 / -1; display:flex; justify-content:flex-end; gap:6px; } .nc-det-acts:empty { display:none; }
.nc-hist { margin:18px 0 12px; } .nc-hist button.bad:not(.on) { color:var(--bad); font-weight:600; }
@media (max-width:1000px) { .nc-board { grid-template-columns:1fr; } .nc-list { max-height:none; } }

/* sidebar flush with the left, top and bottom edges (wide screens); only the right side is rounded */
@media (min-width:761px) {
  aside, :root[data-side="open"] aside { margin:-16px 0 -16px -16px; top:0; height:100vh; border-radius:0 28px 28px 0; }
  :root body:has(.devbar) aside { margin-top:-10px; top:26px; height:calc(100vh - 26px); }  /* starts under the local DEV MODE bar */
}

/* sidebar open/close: switch instantly (animating the width re-laid the whole page every frame = lag);
   only the labels fade in. Content uses the full width whether the sidebar is open or collapsed. */
aside { transition:none !important; will-change:auto; }
:root[data-side="open"] aside a span, :root[data-side="open"] aside button span, :root[data-side="open"] .brand-name { animation:side-fade .18s ease-out; }
@keyframes side-fade { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion: reduce) { :root[data-side="open"] aside a span { animation:none; } }
.shell { max-width:none; }
.shell main { max-width:none; }

/* every page header gets the same lavender banner as the dashboard */
.page-h { background:var(--hero); border-radius:24px; padding:24px 30px; margin-bottom:22px; align-items:center; }
.page-h h1 { margin-bottom:6px; }
.page-h .sub { margin:0; color:var(--ink); opacity:.7; max-width:760px; }
.page-h .filters { margin-bottom:0; }
@media (max-width:760px) { .page-h { padding:20px 22px; } }

/* theme switch and account live at the foot of the sidebar - no top bar */
/* dashboard: work-waiting numbers and due dates */
/* every KPI tile looks the same - white card, same type; colour only in the small status pill */
.kpi-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; margin-bottom:18px; }
.kpi { display:flex; flex-direction:column; align-items:flex-start; gap:6px; background:var(--panel); border-radius:20px; padding:16px 18px; color:var(--ink); text-decoration:none; }
.kpi:hover { box-shadow:0 6px 18px rgba(40,20,90,.08); }
.kpi-l { font-size:13px; color:var(--mute); } .kpi b { font-size:26px; font-weight:700; line-height:1.1; }
.state.neutral { background:var(--accent-soft); color:var(--accent); }
.board td { vertical-align:middle; font-size:13px; } .board td:first-child { white-space:nowrap; font-size:14px; }
.cal-h small { display:block; font-size:12px; margin-top:2px; }
.days.seven { grid-template-columns:repeat(7,1fr); }
.days div { position:relative; } .days i { display:block; width:6px; height:6px; margin:4px auto 0; border-radius:50%; }
.days .has-warn i { background:#c77700; } .days .has-bad i { background:#b3261e; }
#due .feed { margin-top:6px; } .due-none { margin:10px 0 0; font-size:13px; }
#activity .feed li .muted { font-weight:400; }

@media (min-width:761px) {
  aside { overflow-y:auto; scrollbar-width:none; }
  aside > a, aside > button { min-height:36px; }  /* shrink a little on short screens, scroll only below that */
}
.side-sep { width:28px; height:1px; background:#24222e; margin:6px auto; flex-shrink:0; }
:root[data-side="open"] .side-sep { width:auto; margin:6px 12px; }
#theme-toggle .i-sun, :root[data-theme="dark"] #theme-toggle .i-moon { display:none; }
:root[data-theme="dark"] #theme-toggle .i-sun { display:block; }
.side-user .ini { width:32px; height:32px; border-radius:50%; background:var(--hero); color:#17151f; display:grid; place-items:center; font-size:12px; font-weight:700; flex-shrink:0; }
:root[data-side="open"] .side-user span { overflow:hidden; text-overflow:ellipsis; }
#menu { position:fixed; top:auto; right:auto; bottom:20px; left:84px; z-index:40; }
:root[data-side="open"] #menu { left:236px; }
.jobchip { position:fixed; right:20px; bottom:20px; z-index:30; }
@media (max-width:760px) {
  .side-sep { display:none; }
  #menu { top:76px; bottom:auto; right:16px; left:auto; }
  :root[data-side="open"] #menu { left:auto; }
}
/* Client notices: upload a file on the left, type UCCs on the right */
.nt-in { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 14px 0 4px; }
.nt-pane { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--panel); }
.nt-ph { display: flex; align-items: center; gap: 10px; }
.nt-ph b { font-size: 16px; }
.nt-num { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.nt-tag { margin-left: auto; font-size: 12px; color: var(--mute); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.card .nt-zone { font-weight: 400; }
.card .nt-zone b { font-size: 14px; }
.card .nt-zone, .nt-zone { flex: 1; min-height: 172px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--panel); padding: 18px; cursor: pointer; }
.nt-zone.over, .nt-zone:hover { border-color: var(--accent); }
.nt-zone.has { border-style: solid; border-color: var(--accent); }
.nt-zone small { color: var(--mute); }
.nt-zone .btn { margin-top: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); pointer-events: none; }
.nt-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); margin-bottom: 4px; }
.nt-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nt-ta { flex: 1; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.nt-ta:focus-within { border-color: var(--accent); }
.nt-ta textarea { flex: 1; min-height: 152px; border: 0; border-radius: 0; resize: none; font-family: ui-monospace, Consolas, monospace; outline: none; background: var(--panel); }
.nt-taf { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--mute); }
.nt-taf button { border: 0; background: none; color: var(--mute); font-size: 12px; cursor: pointer; }
.nt-taf button:hover { color: var(--ink); }
.nt-go { width: 100%; justify-content: center; }
.nt-in.nt-in3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }   /* Email & mobile push: email, mobile, address in one row */
.nt-in3 .nt-go { margin-top: auto; }   /* the three buttons line up whatever the note above them */
@media (max-width: 760px) { .nt-in, .nt-in.nt-in3 { grid-template-columns: 1fr; } }
.nt-type { display: flex; flex-direction: column; gap: 8px; border: 1.5px dashed var(--line); border-radius: 14px; padding: 14px; }
.nt-type textarea { min-height: 64px; resize: vertical; }
.nt-type .btn { align-self: flex-start; }

/* ---- violet look: navy rail, cool light page, lilac-to-violet hero, soft tinted boxes (light mode) ---- */
:root:not([data-theme="dark"]) aside { background:#0C1526; }
:root:not([data-theme="dark"]) aside a.active { background:#E4D4FF; color:#3B1590; }
:root:not([data-theme="dark"]) .km-opened { background:#FAF8FF; }
:root:not([data-theme="dark"]) .km-rejected { background:#FFF5F6; }
:root:not([data-theme="dark"]) .km-kra { background:#FFFCEF; }
/* ---- MIS style on other pages: numbered step headings, soft tinted boxes ---- */
.card h3.step-h, h3.step-h { display:flex; align-items:center; gap:10px; font-size:16px; margin-bottom:16px; flex-wrap:wrap; }
.run-h2 { margin:6px 0 8px; }
.tint-ok { background:var(--ok-bg); } .tint-warn { background:var(--warn-bg); } .tint-bad { background:var(--bad-bg); } .tint-accent { background:var(--accent-soft); } .tint-neutral { background:var(--accent-soft); }
.nt-stat[class*="tint-"] { border-color:transparent; }
.bm-sum { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:16px 0 4px; }
.bm-sum > div { border-radius:14px; padding:12px 14px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.bm-sum span { font-size:12.5px; font-weight:600; color:var(--mute); } .bm-sum b { font-size:20px; } .bm-sum small { color:var(--mute); font-size:11.5px; }
.uc-segs { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin-bottom:6px; }
.uc-seg { border-radius:16px; padding:14px 16px; display:flex; flex-direction:column; gap:2px; }
.uc-seg span { font-weight:600; font-size:13px; } .uc-seg b { font-size:20px; } .uc-seg small { color:var(--mute); }
@media (max-width:760px) { .bm-sum { grid-template-columns:1fr; } }

/* ======================================================================
   Dashboard v2 - "needs you now" first, clickable process cards, grouped rail,
   nav badges, Ctrl+K search. Uses only the theme tokens above, so light/dark both work.
   ====================================================================== */

/* hidden admin links really hide (aside a { display:grid } was beating the hidden attribute) */
aside [hidden] { display:none !important; }

/* rail groups: a thin divider in the icon rail, a small label when the rail is open */
.side-grp { width:22px; height:1px; background:#24222e; margin:6px auto; flex-shrink:0; font-size:0; overflow:hidden; }
:root[data-side="open"] .side-grp { width:auto; height:auto; background:none; margin:12px 12px 2px; font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:#9592ad; }
/* search: small floating icon, bottom right. The background-job chip sits beside it; phones use the top bar's search */
#find { position:fixed; right:20px; bottom:20px; z-index:40; width:44px; height:44px; padding:0; border:0; border-radius:50%; display:grid; place-items:center; cursor:pointer; background:var(--accent); color:#fff; box-shadow:0 6px 18px rgba(40,20,90,.28); }
#find:hover { filter:brightness(1.1); }
#find svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
:root[data-theme="dark"] #find { color:#17151f; }
:root[data-auth="out"] #find { display:none; }
.jobchip { right:76px; }
kbd { font:600 10.5px/1.5 'IBM Plex Mono',ui-monospace,monospace; padding:0 5px; border-radius:5px; border:1px solid currentColor; opacity:.7; }

/* nav badges: a dot on the icon in the rail, a pill at the end of the row when open */
aside a .nb { position:absolute; top:3px; right:2px; min-width:16px; height:16px; padding:0 4px; border-radius:99px; font:700 10px/16px Poppins,system-ui,sans-serif; font-style:normal; text-align:center; color:#fff; background:#c77700; box-shadow:0 0 0 2px var(--side,#0C1526); }
aside a .nb[data-tone="bad"] { background:#d93025; }
:root[data-side="open"] aside a .nb { position:static; margin-left:auto; box-shadow:none; }

/* hero: compact, carries the day summary, quick actions and the on-track ring */
.db-hero { padding:22px 26px; margin-bottom:18px; align-items:center; }
.db-hero h1 { font-size:24px; margin-bottom:4px; }
.db-hero p { max-width:none; }
.db-hero p b { font-weight:600; opacity:1; }
.db-qa { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.db-qa a { display:inline-flex; align-items:center; gap:7px; padding:7px 13px; border-radius:99px; font-size:13px; font-weight:600; color:var(--ink); text-decoration:none;
  background:color-mix(in srgb, var(--panel) 62%, transparent); border:1px solid color-mix(in srgb, var(--panel) 80%, transparent); transition:background .15s, transform .15s; }
.db-qa a:hover { background:var(--panel); transform:translateY(-1px); }
.db-qa svg, .db-clear svg, #db-ref svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.db-ring { position:relative; width:104px; height:104px; flex-shrink:0; }
.db-ring svg { width:100%; height:100%; transform:rotate(-90deg); }
.db-ring circle { fill:none; stroke-width:9; }
.db-ring-bg { stroke:color-mix(in srgb, var(--panel) 55%, transparent); }
.db-ring-fg { stroke:var(--accent); stroke-linecap:round; transition:stroke-dashoffset .6s ease; }
.db-ring > div { position:absolute; inset:0; display:grid; place-content:center; text-align:center; }
.db-ring b { font-size:22px; line-height:1; } .db-ring small { font-size:11px; opacity:.7; }

/* card headers */
.db-h { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px; }
.db-h h3 { margin:0; }
.db-link { font-size:12.5px; font-weight:600; color:var(--accent); text-decoration:none; }
.db-upd { font-size:12px; color:var(--mute); display:inline-flex; align-items:center; gap:6px; }
#db-ref { border:0; background:var(--bg); color:var(--ink); width:26px; height:26px; border-radius:50%; display:grid; place-items:center; cursor:pointer; }
#db-ref:hover { background:var(--accent-soft); color:var(--accent); }
#db-ref.spinning svg { animation:db-spin .8s linear infinite; }
@keyframes db-spin { to { transform:rotate(360deg); } }

/* needs you now */
.db-now { padding:20px 22px; }
.db-acts { display:grid; gap:8px; }
.db-act { display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:16px; text-decoration:none; color:var(--ink); background:var(--panel); border:1px solid var(--line); border-left:4px solid var(--tone); transition:background .15s, transform .15s; }
.db-act:hover { background:var(--tone-bg); transform:translateX(2px); }
.db-act > div { flex:1; min-width:0; } .db-act b { font-weight:600; display:block; } .db-act small { color:var(--mute); font-size:12.5px; }
.db-ai { width:34px; height:34px; flex-shrink:0; border-radius:11px; display:grid; place-items:center; color:#fff; background:var(--tone); }
.db-ai svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
:root[data-theme="dark"] .db-ai { color:#17151f; }
.db-go { font-size:13px; font-weight:600; color:var(--accent); white-space:nowrap; }
.db-clear { display:flex; align-items:center; gap:12px; padding:14px; border-radius:16px; background:var(--ok-bg); color:var(--ok); }
.db-clear svg { width:22px; height:22px; stroke-width:2.4; }
.db-clear b { display:block; } .db-clear small { color:var(--ink); opacity:.7; }
.db-clear.sm { padding:10px 12px; margin-top:4px; } .db-clear.sm svg { width:18px; height:18px; }

/* tone variables used by actions, KPIs and process cards */
.t-ok { --tone:var(--ok); --tone-bg:var(--ok-bg); }
.t-warn { --tone:var(--warn); --tone-bg:var(--warn-bg); }
.t-bad { --tone:var(--bad); --tone-bg:var(--bad-bg); }
.t-neutral { --tone:var(--accent); --tone-bg:var(--accent-soft); }

/* KPI tiles: same white card, tone shows only on the top edge and the pill */
.db-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:18px; }
.db-kpi { position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:flex-start; gap:6px; background:var(--panel); border-radius:20px; padding:18px 18px 16px; color:var(--ink); text-decoration:none; transition:transform .15s, box-shadow .15s; }
.db-kpi::before { content:""; position:absolute; left:0; right:0; top:0; height:3px; background:var(--tone); opacity:.85; }
.db-kpi:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(40,20,90,.09); }
.db-kpi b { font-size:28px; font-weight:700; line-height:1.1; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.db-kpi.t-ok b { color:var(--mute); }   /* nothing to do: let the number recede */
.db-bar { display:block; width:100%; height:6px; border-radius:99px; background:var(--bg); overflow:hidden; margin-top:4px; }
.db-bar i { display:block; height:100%; border-radius:99px; background:var(--tone, var(--accent)); }

/* process cards */
.db-procs { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }
.db-proc { display:flex; flex-direction:column; gap:10px; padding:16px; border-radius:18px; background:var(--wash, var(--panel)); color:var(--ink); text-decoration:none; border:1.5px solid transparent; transition:border-color .15s, box-shadow .15s, transform .15s; }
.wash-lilac { --wash:#F6F2FF; } .wash-pink { --wash:#FEF3F9; } .wash-peach { --wash:#FFF6EF; } .wash-green { --wash:#F0FAF4; } .wash-blue { --wash:#F1F5FF; }
:root[data-theme="dark"] .wash-lilac { --wash:#262038; } :root[data-theme="dark"] .wash-pink { --wash:#2E202B; } :root[data-theme="dark"] .wash-peach { --wash:#2F2520; } :root[data-theme="dark"] .wash-green { --wash:#1C2B23; } :root[data-theme="dark"] .wash-blue { --wash:#1D2436; }
.db-proc:hover { border-color:var(--tone); box-shadow:0 0 0 4px var(--tone-bg); transform:translateY(-2px); }
.db-proc .thumb { height:84px; margin:-6px -6px 2px; } .db-proc .thumb svg { width:26px; height:26px; padding:10px; border-radius:14px; }
.db-pt { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 8px; min-width:0; } .db-pt b { font-size:14.5px; line-height:1.2; }
.db-proc dl { margin:0; display:grid; grid-template-columns:auto 1fr; gap:3px 10px; font-size:12.5px; }
.db-proc dt { color:var(--mute); } .db-proc dd { margin:0; font-weight:500; }
.db-pf { display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--mute); margin-top:auto; }
.db-proc .state { font-size:11.5px; }

/* activity: grouped by day, filter chips */
.db-chips { display:flex; flex-wrap:wrap; gap:6px; margin:-2px 0 6px; }
.db-chips:empty { display:none; }
.db-chips button { border:0; background:var(--bg); color:var(--mute); font:600 12px Poppins,system-ui,sans-serif; padding:5px 11px; border-radius:99px; cursor:pointer; }
.db-chips button.on { background:#17151f; color:#fff; }
:root[data-theme="dark"] .db-chips button.on { background:#eeecf6; color:#17151f; }
.db-feed { list-style:none; margin:0; padding:0; max-height:460px; overflow-y:auto; scrollbar-width:thin; }
.db-day { font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); margin:14px 0 4px; }
.db-day:first-child { margin-top:4px; }
.db-ev { display:flex; gap:10px; padding:8px 0; font-size:13px; border-bottom:1px dashed var(--line); }
.db-ev:last-child { border-bottom:0; }
.db-ev div { flex:1; min-width:0; } .db-ev small { display:block; color:var(--mute); font-size:11.5px; }
.db-ev .muted { font-weight:400; }
.db-evi { width:8px; height:8px; margin-top:6px; border-radius:50%; flex-shrink:0; background:var(--accent); }
.db-ev.k-closed .db-evi { background:var(--ok); } .db-ev.k-bad .db-evi { background:var(--bad); } .db-ev.k-update .db-evi { background:var(--warn); }

/* loading placeholders */
.db-sk { height:54px; border-radius:16px; margin-bottom:8px; background:linear-gradient(90deg,var(--bg) 25%,color-mix(in srgb,var(--bg) 40%,var(--panel)) 50%,var(--bg) 75%); background-size:200% 100%; animation:db-sh 1.2s infinite; }
.db-kpis .db-sk { height:110px; border-radius:20px; margin:0; background-color:var(--panel); }
@keyframes db-sh { to { background-position:-200% 0; } }

/* Ctrl+K palette */
.pal { position:fixed; inset:0; z-index:70; display:flex; justify-content:center; align-items:flex-start; padding-top:14vh; background:rgba(13,12,18,.45); backdrop-filter:blur(3px); }
.pal[hidden] { display:none; }
.pal-card { width:min(560px,calc(100vw - 32px)); background:var(--panel); color:var(--ink); border-radius:20px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.3); }
.pal-in { display:flex; align-items:center; gap:10px; padding:4px 18px; border-bottom:1px solid var(--line); }
.pal-in svg, .pal-card li svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; color:var(--mute); }
.pal-in input { flex:1; border:0; outline:0; background:none; color:var(--ink); font:500 15px Poppins,system-ui,sans-serif; padding:14px 0; }
#pal-l { list-style:none; margin:0; padding:6px; max-height:340px; overflow-y:auto; }
#pal-l li { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:12px; cursor:pointer; font-size:14px; }
#pal-l li b { font-weight:500; flex:1; } #pal-l li small { color:var(--mute); font-size:12px; }
#pal-l li.on, #pal-l li:hover { background:var(--accent-soft); color:var(--accent); }
#pal-l li.on svg { color:var(--accent); }
#pal-l .pal-none { color:var(--mute); cursor:default; justify-content:center; }
.pal-f { display:flex; gap:16px; padding:8px 18px; border-top:1px solid var(--line); font-size:11.5px; color:var(--mute); }
.pal-f kbd { margin-right:3px; }

@media (max-width:760px) {
  .db-hero { flex-direction:column; align-items:flex-start; }
  .db-ring { display:none; }
  .db-act { display:grid; grid-template-columns:34px 1fr; gap:4px 12px; } .db-go { grid-column:2; }
  .db-kpis { grid-template-columns:1fr 1fr; gap:10px; } .db-kpi { padding:14px; } .db-kpi b { font-size:22px; }
  .db-qa a { padding:6px 11px; font-size:12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .db-qa a, .db-act, .db-kpi, .db-proc, .db-ring-fg { transition:none; }
  .db-sk { animation:none; }
}

/* ---- market holidays, notice clock, request ageing ---- */
.db-closed { font-weight:600; }
.days .off { color:var(--mute); } .days .today.off { color:inherit; }   /* was opacity .5: failed contrast */
.days .has-hol i { background:var(--accent); }
.dot.hol { background:var(--accent); }
.feed li.db-hol { background:var(--accent-soft); }
.db-clock-sub { margin:-8px 0 10px; font-size:12px; }
.db-clk { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:minmax(0,1fr); gap:6px; }
.db-clk li { min-width:0; }
.db-clk a { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:14px; background:var(--panel); color:var(--ink); text-decoration:none; border:1px solid var(--line); border-left:3px solid var(--tone); }
.db-clk a:hover { background:var(--tone-bg); }
.db-clk div { flex:1; min-width:0; } .db-clk b { display:block; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.db-clk small { display:block; color:var(--mute); font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.db-clk .state { font-size:11.5px; white-space:nowrap; }
.db-more { margin-top:8px; font-size:12px; }
.state.plain { background:var(--bg); color:var(--ink); }

/* ---- phones: a top bar with a menu button; the sidebar slides in with labels and groups ---- */
#mtop, #scrim { display:none; }
@media (max-width:760px) {
  #mtop { display:flex; align-items:center; gap:10px; position:sticky; top:0; z-index:20; margin:0 0 14px; padding:6px; border-radius:18px; background:#0C1526; color:#fff; box-shadow:0 6px 18px rgba(12,21,38,.18); }
  :root[data-theme="dark"] #mtop { background:#0d0c12; }
  body:has(.devbar) #mtop { top:30px; }
  #mtop b { flex:1; font-size:15px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #mtop button { position:relative; width:42px; height:42px; border:0; border-radius:13px; background:rgba(255,255,255,.08); color:#fff; display:grid; place-items:center; cursor:pointer; }
  #mtop button:active { background:rgba(255,255,255,.18); }
  #mtop svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
  :root[data-attn] #mburger::after { content:""; position:absolute; top:8px; right:8px; width:9px; height:9px; border-radius:50%; background:#f59e0b; box-shadow:0 0 0 2px #0C1526; }

  :root aside, :root[data-side] aside { position:fixed !important; top:0 !important; left:0; bottom:0; height:100vh !important; height:100dvh !important; width:min(280px, 84vw) !important;
    margin:0 !important; flex-direction:column !important; flex-wrap:nowrap !important; align-items:stretch !important; justify-content:flex-start !important; gap:2px !important;
    padding:18px 12px 14px !important; border-radius:0 26px 26px 0 !important; overflow-y:auto; z-index:85;
    transform:translateX(-105%); visibility:hidden; transition:transform .22s ease, visibility 0s linear .22s; }
  :root[data-drawer="open"] aside { transform:none; visibility:visible; transition:transform .22s ease; box-shadow:14px 0 40px rgba(0,0,0,.35); }
  :root aside a, :root aside button, :root[data-side] aside a, :root[data-side] aside button { width:auto !important; height:44px !important; min-height:44px; display:flex !important;
    justify-content:flex-start !important; align-items:center; gap:12px; padding:0 12px !important; margin:0 !important; border-radius:14px !important; font-size:14.5px; flex-shrink:0; }
  :root aside a[hidden], :root aside [hidden] { display:none !important; }
  :root aside a span, :root aside button span { display:inline !important; }
  :root .brand-name { display:block !important; color:#fff; }
  :root .brand-row { padding-left:4px; margin-bottom:8px; }
  :root #expand, :root #find { display:none !important; }
  .jobchip { right:20px; }
  :root .side-grp { display:block; width:auto; height:auto; background:none; margin:12px 12px 2px; font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:#9592ad; }
  :root .side-sep { display:block !important; width:auto; margin:6px 12px; }
  :root aside .grow { display:block !important; flex:1; min-height:10px; }
  :root aside a .nb { position:static !important; margin-left:auto; box-shadow:none; }
  #scrim { display:block; position:fixed; inset:0; z-index:84; background:rgba(13,12,18,.5); opacity:0; pointer-events:none; transition:opacity .2s; }
  :root[data-drawer="open"] #scrim { opacity:1; pointer-events:auto; }
  #menu { z-index:95 !important; }
  .db-clk small { white-space:normal; }
}
@media (prefers-reduced-motion: reduce) { :root aside, #scrim { transition:none !important; } }

:root[data-theme="dark"] .days .today small { color:#55526a; }   /* weekday label was #bbb on a light cell */

/* ======================================================================
   v4 - keyboard focus, one look across pages, motion.
   MIS and DP Bill MIS keep their existing look: page-level rules are scoped to :root:not([data-keep]).
   All motion sits inside prefers-reduced-motion: no-preference.
   ====================================================================== */

/* ---- keyboard focus: visible ring for keyboard users only (mouse clicks do not show it) ---- */
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
aside :focus-visible, #mtop :focus-visible { outline-color:#c4b5fd; }
.db-act:focus-visible, .db-proc:focus-visible, .db-clk a:focus-visible, .db-qa a:focus-visible, .db-kpi:focus-visible { outline-offset:3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }

/* ---- one look across pages (not MIS / Bill MIS) ---- */
:root:not([data-keep]) .page-h { padding:22px 26px; }
:root:not([data-keep]) .page-h h1 { font-size:24px; }
:root:not([data-keep]) table.list thead th { font-size:11.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--mute); padding-top:10px; padding-bottom:10px; }
:root:not([data-keep]) table.list tbody td { padding-top:11px; padding-bottom:11px; }
:root:not([data-keep]) table.list tbody tr:hover > td { background:color-mix(in srgb, var(--accent-soft) 55%, transparent); }
:root:not([data-keep]) table.list tbody tr.od:hover > td { background:var(--bad-bg); }
:root:not([data-keep]) .tbl-wrap { border-radius:14px; }
:root:not([data-keep]) .nt-stat b, :root:not([data-keep]) .stat b, :root:not([data-keep]) .uc-seg b { font-variant-numeric:tabular-nums; letter-spacing:-.01em; }
:root:not([data-keep]) .nt-stat, :root:not([data-keep]) .uc-seg { position:relative; overflow:hidden; }
/* upload boxes get an upload icon so they read as "drop a file here" at a glance */
:root:not([data-keep]) .drop::before { content:""; display:block; width:26px; height:26px; margin:0 auto 6px; background:var(--accent);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a4.5 4.5 0 0 1-.6-8.96A6 6 0 0 1 18 8.5a4 4 0 0 1 0 9.5'/%3E%3Cpath d='M12 12v8M9 15l3-3 3 3'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a4.5 4.5 0 0 1-.6-8.96A6 6 0 0 1 18 8.5a4 4 0 0 1 0 9.5'/%3E%3Cpath d='M12 12v8M9 15l3-3 3 3'/%3E%3C/svg%3E") center/contain no-repeat; }
:root:not([data-keep]) .drop.has::before { background:var(--ok);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8L16.5 9.5'/%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8L16.5 9.5'/%3E%3C/svg%3E"); }

/* ---- toast: icon + slide in / out ---- */
.toast { display:flex; align-items:center; gap:10px; padding:11px 18px 11px 12px; font-size:14px; font-weight:500; max-width:calc(100vw - 32px); }
.toast-i { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; font-style:normal; font-weight:800; font-size:12px; background:rgba(255,255,255,.18); }
@media (max-width:760px) { body:has(.upl.show) .toast { bottom:104px; } }

/* ---- upload card (bottom-right): progress while sending, then checking, then done / failed ---- */
.upl { position:fixed; right:20px; bottom:20px; z-index:65; display:flex; gap:12px; align-items:center; width:min(320px, calc(100vw - 32px));
  padding:14px 16px; border-radius:18px; background:var(--panel); color:var(--ink); box-shadow:0 14px 40px rgba(20,16,40,.22), 0 0 0 1px var(--line);
  opacity:0; transform:translateY(16px) scale(.97); pointer-events:none; }
.upl.show { opacity:1; transform:none; pointer-events:auto; }
.upl-ic { position:relative; width:42px; height:42px; flex-shrink:0; border-radius:13px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent); overflow:hidden; }
.upl-ic svg { position:absolute; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.upl .i-ok, .upl .i-bad { opacity:0; transform:scale(.4); }
.upl.ok .upl-ic { background:var(--ok-bg); color:var(--ok); } .upl.ok .i-up { opacity:0; } .upl.ok .i-ok { opacity:1; transform:none; }
.upl.bad .upl-ic { background:var(--bad-bg); color:var(--bad); } .upl.bad .i-up { opacity:0; } .upl.bad .i-bad { opacity:1; transform:none; }
.upl-b { flex:1; min-width:0; } .upl-b b { display:block; font-size:13.5px; }
.upl-b small { display:block; color:var(--mute); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums; }
.upl-bar { display:block; height:6px; margin-top:8px; border-radius:99px; background:var(--bg); overflow:hidden; }
.upl-bar i { display:block; height:100%; width:0; border-radius:99px; background-color:var(--accent); }
.upl.ok .upl-bar i { background-color:var(--ok); } .upl.bad .upl-bar i { background-color:var(--bad); }

/* ---- row / card leaving: tint, slide out, then close the gap ---- */
.vanish.v-bad, .v-bad.vanish > td { --vt:var(--bad-bg); } .vanish.v-ok, .v-ok.vanish > td { --vt:var(--ok-bg); }
tr.vanish-2 > td { padding-top:0 !important; padding-bottom:0 !important; line-height:0; font-size:0; border-bottom-color:transparent; }
tr.vanish-2 > td * { display:none !important; }
.vanish-2:not(tr) { height:0 !important; min-height:0 !important; margin:0 !important; padding:0 !important; overflow:hidden; border:0 !important; }

@media (prefers-reduced-motion: no-preference) {
  /* page change: content rises in, a little staggered */
  :root:not([data-keep]) #view.pg-in > * { animation:pg-in .3s cubic-bezier(.2,.7,.3,1) both; }
  :root:not([data-keep]) #view.pg-in > :nth-child(2) { animation-delay:.04s; }
  :root:not([data-keep]) #view.pg-in > :nth-child(3) { animation-delay:.08s; }
  :root:not([data-keep]) #view.pg-in > :nth-child(n+4) { animation-delay:.12s; }
  #view.pg-in .db .dash-main > *, #view.pg-in .db .dash-side > * { animation:pg-in .34s cubic-bezier(.2,.7,.3,1) both; }
  #view.pg-in .db .dash-main > :nth-child(2), #view.pg-in .db .dash-side > :nth-child(2) { animation-delay:.05s; }
  #view.pg-in .db .dash-main > :nth-child(n+3), #view.pg-in .db .dash-side > :nth-child(n+3) { animation-delay:.1s; }
  #view.pg-in .db-act, #view.pg-in .db-proc, #view.pg-in .db-clk li { animation:pg-in .3s cubic-bezier(.2,.7,.3,1) both; }
  #view.pg-in .db-act:nth-child(2), #view.pg-in .db-proc:nth-child(2), #view.pg-in .db-clk li:nth-child(2) { animation-delay:.05s; }
  #view.pg-in .db-act:nth-child(3), #view.pg-in .db-proc:nth-child(3), #view.pg-in .db-clk li:nth-child(3) { animation-delay:.1s; }
  #view.pg-in .db-act:nth-child(n+4), #view.pg-in .db-proc:nth-child(n+4), #view.pg-in .db-clk li:nth-child(n+4) { animation-delay:.15s; }
  #view.pg-in .db-ring-fg { animation:ring-draw .9s cubic-bezier(.3,.7,.3,1) .15s both; }
  :root:not([data-keep]) #view.pg-in table.list tbody tr:nth-child(-n+12) > td { animation:fade-in .35s ease-out both; }

  /* buttons press in */
  :root:not([data-keep]) .btn, :root:not([data-keep]) .chip, :root:not([data-keep]) .pill, .db-qa a, #mtop button { transition:transform .12s, filter .15s, background .15s; }
  :root:not([data-keep]) .btn:active, :root:not([data-keep]) .chip:active, :root:not([data-keep]) .pill:active, .db-qa a:active, #mtop button:active { transform:scale(.96); }
  :root:not([data-keep]) .btn:not(:disabled):hover { filter:brightness(1.08); }

  /* upload boxes: glow while a file is dragged over, pop + check when a file is in */
  :root:not([data-keep]) .drop, :root:not([data-keep]) .nt-zone { transition:border-color .15s, background .15s, transform .15s; }
  :root:not([data-keep]) .drop.over, :root:not([data-keep]) .nt-zone.over { transform:scale(1.015); animation:drop-glow 1.1s ease-in-out infinite; }
  :root:not([data-keep]) .drop.over::before { animation:arrow-hop .55s ease-in-out infinite alternate; }
  :root:not([data-keep]) .drop.has, :root:not([data-keep]) .nt-zone.has { animation:drop-pop .38s cubic-bezier(.2,.8,.3,1.4); }

  /* upload card */
  .upl { transition:opacity .22s, transform .3s cubic-bezier(.2,.8,.3,1.25); }
  .upl.up .i-up { animation:arrow-hop .6s ease-in-out infinite alternate; }
  .upl.proc .i-up { animation:soft-pulse 1s ease-in-out infinite; }
  .upl .i-ok, .upl .i-bad, .upl .i-up { transition:opacity .2s, transform .3s cubic-bezier(.2,.8,.3,1.5); }
  .upl-bar i { transition:width .2s ease-out, background-color .2s; }
  .upl.up .upl-bar i { background-image:repeating-linear-gradient(-45deg, rgba(255,255,255,.28) 0 6px, transparent 6px 12px); background-size:17px 17px; animation:stripes .5s linear infinite; }
  .upl.proc .upl-bar i { width:38% !important; animation:indet 1.1s ease-in-out infinite; }
  .upl.ok .upl-ic { animation:drop-pop .4s cubic-bezier(.2,.8,.3,1.4); }
  .upl.bad { animation:shake .4s ease-in-out; }
  /* reconciliation upload bar gets the same moving stripes */
  .pbar i { background-image:repeating-linear-gradient(-45deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); background-size:17px 17px; animation:stripes .5s linear infinite; }

  /* leaving rows */
  .vanish:not(tr), tr.vanish > td { animation:vanish-out .32s ease-in forwards; }
  tr.vanish-2 > td, .vanish-2:not(tr) { transition:padding .18s ease, line-height .18s ease, font-size .18s ease, height .18s ease; }

  /* toast */
  .toast { animation:toast-in .3s cubic-bezier(.2,.8,.3,1.25) both; }
  .toast.out { animation:toast-out .25s ease-in forwards; }

  /* new badge on the sidebar pops in */
  aside a .nb { animation:drop-pop .35s cubic-bezier(.2,.8,.3,1.5); }
  /* phone menu items slide in */
  :root[data-drawer="open"] aside > a { animation:drawer-item .28s cubic-bezier(.2,.7,.3,1) both; }
  :root[data-drawer="open"] aside > a:nth-of-type(n+4) { animation-delay:.03s; }
  :root[data-drawer="open"] aside > a:nth-of-type(n+8) { animation-delay:.06s; }
  :root[data-drawer="open"] aside > a:nth-of-type(n+12) { animation-delay:.09s; }
}
@keyframes pg-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
@keyframes ring-draw { from { stroke-dashoffset:var(--c); } }
@keyframes drop-glow { 0%,100% { box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 30%, transparent); } 50% { box-shadow:0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }
@keyframes arrow-hop { from { transform:translateY(2px); } to { transform:translateY(-3px); } }
@keyframes drop-pop { 0% { transform:scale(.94); } 60% { transform:scale(1.03); } 100% { transform:scale(1); } }
@keyframes soft-pulse { 0%,100% { opacity:1; } 50% { opacity:.45; } }
@keyframes stripes { to { background-position:17px 0; } }
@keyframes indet { 0% { transform:translateX(-100%); } 100% { transform:translateX(270%); } }
@keyframes shake { 0%,100% { transform:none; } 25% { transform:translateX(-6px); } 50% { transform:translateX(5px); } 75% { transform:translateX(-3px); } }
@keyframes vanish-out { 0% { background:transparent; } 30% { background:var(--vt); } 100% { background:var(--vt); opacity:0; transform:translateX(28px); } }
@keyframes toast-in { from { opacity:0; transform:translate(-50%, 18px) scale(.96); } to { opacity:1; transform:translate(-50%, 0); } }
@keyframes toast-out { to { opacity:0; transform:translate(-50%, 10px) scale(.97); } }
@keyframes drawer-item { from { opacity:0; transform:translateX(-12px); } to { opacity:1; transform:none; } }

/* phones: wide tables scroll inside their card instead of pushing the whole page sideways (was already the case before v4) */
@media (max-width:760px) {
  .card:has(> table.list) { overflow-x:auto; }
  .card > table.list { min-width:560px; }
  #view { min-width:0; max-width:100%; }
  .shell { min-width:0; max-width:100%; }
}

/* Client notices: plain page heading instead of the coloured band */
:root .page-h.nc-head { background:none; padding:0; border-radius:0; margin-bottom:18px; align-items:flex-start; }
.page-h.nc-head .btn { margin-top:0; border-radius:12px; font-weight:600; }
.page-h.nc-head .btn, .nc-acts .btn:not(.line) { background:var(--accent); color:#fff; }
:root[data-theme="dark"] .page-h.nc-head .btn, :root[data-theme="dark"] .nc-acts .btn:not(.line) { color:#17151f; }
.page-h.nc-head .sub { opacity:1; color:var(--mute); }

/* Input boxes are white with a thin border, like the other inner boxes. MIS and DP Bill MIS keep their look. */
:root:not([data-keep]) :is(.card input[type=text], .card input:not([type]), .card input[type=date], .card input[type=email], .card input[inputmode], .login-card input, .narrow input, .row-form input, .list select) { background:var(--panel); border-color:var(--line); }

/* AOF audit board: the tool's own screens are hidden, its results are drawn as Needs a person / Reading / Ready */
#aof-host.ab-on .wrap > header, #aof-host.ab-on #out, #aof-host.ab-on #batchBox, #aof-host.ab-on #run, #aof-host.ab-on #progress, #aof-host.ab-on .signoff, #aof-host.ab-on #drop, #aof-host.ab-on .pick { display:none !important; }
:root #aof-host.ab-on #intake { background:none; padding:0; margin:0; box-shadow:none; }
#aof-host .ab-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
#aof-host .ab-main, #aof-host .ab-line, #aof-host .ab-soft { border-radius:10px; padding:8px 14px; font:600 13px Poppins,system-ui,sans-serif; min-height:36px; cursor:pointer; }
#aof-host .ab-main { background:var(--accent); color:#fff; border:0; }
#aof-host .ab-line { background:var(--card); color:var(--ink); border:1px solid var(--line); }
#aof-host .ab-soft { background:var(--bg); color:var(--ink); border:0; }
#aof-host .ab-soft:hover { background:var(--soft); color:var(--accent); }
.ab-open { cursor:pointer; } .ab-open:hover { color:var(--accent); }
#aof-host .ab-main:disabled { opacity:.5; cursor:not-allowed; }
#aof-host #ab-up { padding:11px 18px; border-radius:12px; font-size:14px; }
:root[data-theme="dark"] #aof-host .ab-main { color:#17151f; }
.ab-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; margin-bottom:16px; }
.ab-col { background:var(--card); border-radius:16px; padding:12px; min-width:0; }
.ab-colh { display:flex; align-items:center; gap:8px; padding:4px 4px 12px; }
.ab-colh i { width:9px; height:9px; border-radius:50%; background:var(--tone); flex:none; }
.ab-colh b { font-size:14.5px; } .ab-colh span { margin-left:auto; min-width:24px; padding:1px 7px; border-radius:7px; background:var(--bg); text-align:center; font-size:12.5px; font-weight:600; }
.ab-list { display:flex; flex-direction:column; gap:10px; }
.ab-none { margin:0; padding:14px 0; text-align:center; font-size:13px; color:var(--mute); }
.ab-rdy { display:flex; gap:8px; padding:0 4px 12px; } .ab-rdy button { flex:1; }
.ab-by { margin:10px 0 0; font-size:12.5px; color:var(--mute); } .ab-rdy + .ab-by { margin:0; padding:0 4px 12px; }
.t-ready { --tone:#15803D; } :root[data-theme="dark"] .t-ready { --tone:#4ADE80; }
.ab-card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px; min-width:0; }
.ab-h { display:flex; align-items:center; gap:12px; } .ab-h > div { min-width:0; }
.ab-h b { display:block; font-size:14px; overflow-wrap:anywhere; } .ab-h small { display:block; margin-top:2px; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:12px; color:var(--mute); overflow-wrap:anywhere; }
.ab-ring { width:44px; height:44px; flex:none; transform:rotate(-90deg); } .ab-ring circle { fill:none; stroke-width:4; } .ab-ring .bg { stroke:var(--line); } .ab-ring .fg { stroke:var(--tone); stroke-linecap:round; }
.ab-ring text { transform:rotate(90deg); transform-origin:19px 19px; font:700 11px Poppins,system-ui,sans-serif; fill:var(--ink); }
.ab-ring text.pct { font-size:9.5px; }
/* Reading progress, 0-100% (09-11-2026): the stripes move while the reader works, so a stuck reader shows as a still bar */
.ab-bar { height:6px; margin-top:12px; border-radius:6px; background:var(--line); overflow:hidden; }
.ab-bar i { display:block; height:100%; border-radius:6px; background:var(--tone); transition:width .6s ease; }
.ab-bar.on i { background-image:linear-gradient(45deg, rgba(255,255,255,.35) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.35) 50%, rgba(255,255,255,.35) 75%, transparent 75%); background-size:16px 16px; animation:ab-stripe .8s linear infinite; }
@keyframes ab-stripe { to { background-position:16px 0; } }
@media (prefers-reduced-motion: reduce) { .ab-bar.on i { animation:none; } }
.ab-batch { margin:0 4px 12px; padding:12px; border-radius:12px; background:var(--bg); }
.ab-bh { display:flex; align-items:baseline; gap:8px; font-size:13px; } .ab-bh span { margin-left:auto; font-weight:700; font-size:15px; color:var(--tone); }
.ab-batch .ab-bar { height:8px; margin-top:8px; }
.ab-live { display:flex; align-items:center; gap:7px; margin:8px 0 0; font-size:12px; color:var(--mute); overflow-wrap:anywhere; }
.ab-live i { width:8px; height:8px; flex:none; border-radius:50%; background:#16A34A; animation:ab-pulse 1.4s ease-in-out infinite; }
.ab-live.late { color:#B45309; } .ab-live.late i { background:#D97706; animation:none; }
:root[data-theme="dark"] .ab-live.late { color:#FBBF24; }
@keyframes ab-pulse { 50% { opacity:.3; } }
@media (prefers-reduced-motion: reduce) { .ab-live i { animation:none; } }
.ab-flags { list-style:none; margin:12px 0 0; padding:0; display:flex; flex-direction:column; gap:7px; font-size:12.5px; }
.ab-flags li { display:flex; align-items:baseline; gap:8px; } .ab-flags li > span:nth-child(2) { flex:1; min-width:0; overflow-wrap:anywhere; } .ab-morerow { color:var(--mute); }
.ab-tag { flex:none; padding:1px 7px; border-radius:6px; font-size:11px; font-weight:600; } .ab-failed { background:var(--failbg); color:var(--fail); } .ab-review { background:var(--humbg); color:var(--hum); }
#aof-host a.ab-pg { flex:none; color:var(--accent); cursor:pointer; font-size:12px; text-decoration:underline; }
.ab-acts { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:12px; }
#aof-host .ab-full { list-style:none; margin:12px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:12.5px; }
.ab-full li { display:flex; align-items:flex-start; gap:8px; } .ab-full li > div { flex:1; min-width:0; overflow-wrap:anywhere; } .ab-full b { display:block; font-weight:600; } .ab-full small { display:block; margin-top:2px; color:var(--mute); }
#aof-host details.ab-all { margin-top:12px; font-size:12.5px; } .ab-scroll { max-height:280px; overflow:auto; margin-top:6px; }
#aof-host .ab-scroll table { font-size:12px; } #aof-host .ab-scroll td { padding:6px 8px; font-size:12px; } #aof-host .ab-scroll small { display:block; color:var(--mute); }
.ab-tools { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
#aof-host .ab-note { display:block; width:100%; margin-top:12px; padding:9px 12px; border:1px solid var(--line); background:var(--card); color:var(--ink); }
#aof-host .ab-icon { display:grid; place-items:center; width:40px; height:40px; padding:0; border-radius:12px; background:var(--card); color:var(--ink); border:1px solid var(--line); cursor:pointer; }
#aof-host .ab-icon:hover { background:var(--soft); color:var(--accent); }
.ab-icon svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
#aof-host .ab-pane { position:fixed; inset:0; z-index:70; display:flex; align-items:center; justify-content:center; padding:14px; background:rgba(0,0,0,.5); }
#aof-host .ab-pane .mbox { width:min(860px,96vw); }
.ab-pbody { overflow:auto; padding:6px 16px 16px; }
#aof-host .ab-pbody > details { border:0; background:none; padding:0; margin:0; }
#aof-host .ab-pbody > details > summary { display:none; }
.ab-portal { margin-top:18px; padding-top:14px; border-top:1px solid var(--line); }
.ab-pick { position:fixed; inset:0; z-index:1000; background:rgba(15,20,35,.45); display:flex; align-items:center; justify-content:center; padding:16px; }
.ab-pick-in { background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:14px; width:min(560px,100%); max-height:86vh; display:flex; flex-direction:column; gap:10px; padding:18px; box-shadow:0 18px 50px rgba(0,0,0,.25); }
.ab-pick-in h3 { margin:0; }
.ab-pick-list { overflow:auto; border:1px solid var(--line); border-radius:10px; }
.ab-pick-list label { display:grid; grid-template-columns:auto 1fr; column-gap:10px; padding:8px 12px; border-bottom:1px solid var(--line); cursor:pointer; }
.ab-pick-list label:last-child { border-bottom:0; }
.ab-pick-list input { grid-row:span 2; align-self:center; width:16px; height:16px; accent-color:var(--accent); }
.ab-pick-list small { color:var(--mute); }
.ab-portal h3 { margin:0 0 2px; font-size:14.5px; } .ab-portal label { display:block; margin-top:10px; font-size:12.5px; color:var(--mute); }
#aof-host .ab-portal input { display:block; width:100%; margin-top:3px; }
.db-sys-l { list-style:none; margin:4px 0 0; padding:0; display:grid; gap:10px; }
.db-sys-l li { display:grid; grid-template-columns:10px minmax(0,1fr); gap:10px; align-items:start; }
.db-sys-l li div { display:grid; gap:1px; min-width:0; } .db-sys-l b { font-size:13px; } .db-sys-l span { font-size:12.5px; overflow-wrap:anywhere; }
.db-sys-l small { font-size:11.5px; color:var(--mute); overflow-wrap:anywhere; }
.db-sys-dot { width:9px; height:9px; border-radius:50%; margin-top:4px; background:var(--mute); }
.db-sys-dot.t-ok { background:var(--ok); } .db-sys-dot.t-warn { background:var(--warn); } .db-sys-dot.t-bad { background:var(--bad); }
#aof-host .ab-portal .ab-check { display:flex; gap:8px; align-items:flex-start; line-height:1.45; }
#aof-host .ab-portal .ab-check input { display:inline-block; width:auto; flex:none; margin-top:2px; }
#aof-host .ab-portal:first-child { margin-top:0; padding-top:0; border-top:0; }
.ab-portal details { margin-top:10px; font-size:12.5px; } .ab-portal .ab-acts { align-items:center; } .ab-portal .ab-acts .sub { flex:1; }
#aof-host #ab-view { position:fixed; inset:0; z-index:70; display:flex; align-items:center; justify-content:center; padding:14px; background:rgba(0,0,0,.6); }
#ab-vc { display:block; margin:0 auto; background:#fff; }
@media (max-width:1000px) { .ab-board { grid-template-columns:1fr; } }
/* reconciliation boxes: chosen = blue outline only; they fill up green while the file goes up; full green + tick = on the server */
:root .flow .drop.has { border-color:var(--accent); color:var(--ink); background:var(--card, #fff); }
:root:not([data-keep]) .flow .drop.has::before { background:var(--accent); -webkit-mask-image:none; mask-image:none; border-radius:6px; width:22px; height:22px; opacity:.25; }
:root .flow .drop.going, :root .flow .drop.sent { border-color:var(--ok);
  background:linear-gradient(90deg, var(--ok-bg) 0 var(--pct, 0%), var(--card, #fff) var(--pct, 0%) 100%); transition:background .3s; }
:root .flow .drop.going { background-image:linear-gradient(90deg, color-mix(in srgb, #22c55e 55%, transparent) 0 var(--pct, 0%), transparent var(--pct, 0%) 100%); }
:root .flow .drop.sent { background:color-mix(in srgb, #22c55e 30%, var(--card, #fff)); color:var(--ok); border-width:2px; }
:root:not([data-keep]) .flow .drop.sent::before { background:var(--ok); opacity:1; border-radius:0;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8L16.5 9.5'/%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8L16.5 9.5'/%3E%3C/svg%3E"); }
.flow .drop .up-tag { display:block; font-style:normal; font-size:12px; font-weight:700; color:var(--ok); }
.flow .drop .up-tag:empty { display:none; }

/* light sidebar (light mode): off-white rail with dark icons instead of the navy one */
:root:not([data-theme="dark"]) aside { --side:#FAF9F6; background:#FAF9F6; color:#5d5a6e; border:1px solid #e7e4ef; box-shadow:0 2px 10px rgba(30,20,60,.06); }
:root:not([data-theme="dark"]) aside a:hover, :root:not([data-theme="dark"]) aside button:hover { background:#efedf5; color:#17151f; }
:root:not([data-theme="dark"]) aside a.active { background:#E4D4FF; color:#3B1590; }
:root:not([data-theme="dark"]) .side-sep, :root:not([data-theme="dark"]) .side-grp { background:#e3e0ea; }
:root:not([data-theme="dark"])[data-side="open"] .side-grp { background:none; color:#8a879c; }
:root:not([data-theme="dark"]) aside :focus-visible { outline-color:#7c5cff; }
:root:not([data-theme="dark"]) aside .brand-name, :root:not([data-theme="dark"]) aside .side-user span { color:#17151f; }
:root:not([data-theme="dark"]) aside { color:#1f1d2b; } :root:not([data-theme="dark"]) aside a, :root:not([data-theme="dark"]) aside button, :root:not([data-theme="dark"]) aside .brand-name { font-weight:700; } :root:not([data-theme="dark"]) aside svg { stroke-width:2.1; } :root:not([data-theme="dark"])[data-side="open"] .side-grp { color:#4a4760; font-weight:800; }

/* collapse button sits in the brand row (logo - name - <<); in the narrow rail it shows as >> under the logo */
aside .brand-row { flex-direction:column; gap:8px; }
aside .brand-txt { display:none; min-width:0; line-height:1.2; }
aside .brand-sub { display:block; font-size:11px; font-weight:600; color:#8a879c; white-space:nowrap; }
aside #expand { width:32px; height:32px; margin:0; flex-shrink:0; }
aside #expand svg { width:18px; height:18px; }
:root[data-side="open"] aside .brand-row { flex-direction:row; align-self:stretch; padding:0 10px 0 12px; }
:root[data-side="open"] aside .brand-txt { display:block; flex:1; }
:root[data-side="open"] aside .brand-name { display:block; overflow:hidden; text-overflow:ellipsis; }
aside #expand, :root[data-side="open"] aside #expand { width:32px; height:32px; padding:0; gap:0; display:grid; place-items:center; color:#3b3850; } aside #expand svg { flex:none; width:18px !important; height:18px !important; min-width:18px; stroke-width:2.4; } aside #expand:hover { background:#efedf5; color:#3B1590; }
:root[data-side="open"] aside .brand-txt { text-align:left; }
:root:not([data-theme="dark"]) aside .brand { width:36px; height:36px; border-radius:10px; background:linear-gradient(135deg,#6d4aff,#3B1590); color:#fff; font-weight:800; box-shadow:0 3px 8px rgba(59,21,144,.25); } :root[data-side="open"] aside .brand-row { align-items:center; gap:10px; padding:0 8px 0 14px; } :root[data-side="open"] aside .brand-txt { display:flex; flex-direction:column; justify-content:center; gap:1px; text-align:left; align-items:flex-start; } aside .brand-name { line-height:1.15; } aside .brand-sub { line-height:1.2; }
aside .brand-sub { padding:0; margin:0; }

/* scanned-form reader: fields filled from a scan stay highlighted until checked */
.fld.scanned input, .fld.scanned .opts { background:#FFF6D6 !important; border-radius:8px; }
.scan-card .btn.ghost { cursor:pointer; margin-top:6px; }
.msg-ok { margin-top:10px; padding:10px 12px; border-radius:10px; background:var(--ok-bg, #E6F6EC); color:var(--ok, #1E7A3D); font-weight:600; }

.rq-det > td { background:var(--bg); } .list.kv th { text-align:left; padding-top:10px; } .list.kv td:first-child { width:38%; }

.scan-row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin-top:12px; }
.scan-btn { position:relative; display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.scan-btn input[type=file] { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; pointer-events:none; }
.scan-btn svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.scan-btn:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.scan-ucc { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:600; min-width:220px; }
.scan-ucc small { font-weight:400; color:var(--muted, #888); }

/* BSDA: batch number sits on the same line as the buttons */
.bm-acts .bs-batch { display:inline-flex; flex-direction:row; align-items:center; gap:8px; margin:16px 0 0 !important; padding:0; align-self:center; font-size:13px; color:var(--muted, #6b7280); white-space:nowrap; }
.bm-acts .bs-batch input { width:110px; margin:0 !important; height:40px; box-sizing:border-box; }
.bm-acts:has(.bs-batch) { align-items:center; }

/* Physical form audit (scan page): scorecard */
.audit-card .pa-top { display:flex; gap:14px; align-items:center; padding:14px 16px; border-radius:14px; margin-bottom:14px; background:#e8f7ee; }
.audit-card .pa-top.bad { background:#fdecec; } .audit-card .pa-top.warn { background:#fdf3e3; }
.pa-big { flex:none; width:48px; height:48px; border-radius:13px; display:grid; place-items:center; color:#fff; font-size:22px; font-weight:700; background:#16a34a; }
.pa-top.bad .pa-big { background:#dc2626; } .pa-top.warn .pa-big { background:#d97706; }
.pa-top b { display:block; font-size:16px; } .pa-top small { color:var(--mute, #6b7280); font-size:12px; }
.pa-stats { margin-left:auto; display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.pa-stats span { padding:5px 11px; border-radius:999px; background:#fff; font-weight:600; font-size:12px; white-space:nowrap; }
.pa-stats .ok { color:#16a34a; } .pa-stats .bad { color:#dc2626; } .pa-stats .warn { color:#d97706; }
.pa-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.pa-grid section { border:1px solid var(--line, #e3e5ec); border-radius:12px; padding:10px 12px; }
.pa-grid h4 { margin:2px 0 6px; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--mute, #6b7280); }
.pa-row { display:flex; gap:9px; align-items:flex-start; padding:7px 0; border-top:1px dashed var(--line, #e3e5ec); }
.pa-row:first-child { border-top:0; }
.pa-row b { display:block; font-size:13px; font-weight:600; } .pa-row small { color:var(--mute, #6b7280); font-size:12px; word-break:break-word; }
.pa-ico { flex:none; width:20px; height:20px; border-radius:50%; display:grid; place-items:center; color:#fff; font-size:11px; font-weight:700; background:#16a34a; margin-top:1px; }
.pa-row.bad .pa-ico { background:#dc2626; } .pa-row.warn .pa-ico { background:#d97706; }
.pa-row.bad b { color:#b91c1c; }
.pa-foot { display:flex; gap:10px; align-items:center; margin-top:12px; } .pa-foot small { color:var(--mute, #6b7280); }
@media (max-width: 860px) { .pa-grid { grid-template-columns:1fr; } .pa-stats { display:none; } }

/* ======================================================================
   Calm look (12-11-2026): grey page, white cards with a thin line, one colour the user picks
   (green / purple / light blue, account menu), labelled icon rail, top bar, dark briefing card.
   Everything below uses the tokens, so light/dark and the three colours all work.
   ====================================================================== */
:root { --bg:#F2F3F1; --line:#E3E6E2; --panel:#fff; --ink:#151a17; --mute:#66706a; --red:#d93025;
  --accent:#1F7A5C; --accent-soft:#E2F2EA; --accent-ink:#135a43; --hero:linear-gradient(120deg,#E2F2EA,#CDE9DC);
  --deep:#0F2F2A; --deep-ink:#E8F3EF; --deep-mute:#9FC2B6; --deep-hi:#5FE0B0; --deep-line:rgba(255,255,255,.08); --c-need:#F2A7C3; --c-ready:#5FE0B0; }
:root[data-accent="purple"] { --accent:#6D28D9; --accent-soft:#F1EBFF; --accent-ink:#4c1d95; --hero:linear-gradient(120deg,#F1EBFF,#DDCDFF);
  --deep:#1D1640; --deep-mute:#B4A9DA; --deep-hi:#C4B5FD; --c-ready:#A78BFA; }
:root[data-accent="blue"] { --accent:#2B7BC0; --accent-soft:#E3F0FB; --accent-ink:#1b5687; --hero:linear-gradient(120deg,#E3F0FB,#C9E2F7);
  --deep:#0E2A44; --deep-mute:#9DBAD6; --deep-hi:#7CC6F2; --c-ready:#7CC6F2; }
:root[data-theme="dark"] { --bg:#111413; --line:#2A2F2D; --panel:#1A1D1C; --ink:#ECEFED; --mute:#9AA39E; --red:#ff6b5e;
  --accent:#4CC79A; --accent-soft:#18372D; --accent-ink:#8fe3c3; --hero:linear-gradient(120deg,#18372D,#1d4638);
  --deep:#0B2621; --deep-ink:#E8F3EF; --deep-mute:#8fb3a6; --deep-hi:#5FE0B0; --c-ready:#5FE0B0; color-scheme:dark; }
:root[data-theme="dark"][data-accent="purple"] { --accent:#A58CFF; --accent-soft:#2A2440; --accent-ink:#cfc2ff; --hero:linear-gradient(120deg,#2A2440,#3a2f63);
  --deep:#17122F; --deep-mute:#a99fd0; --deep-hi:#C4B5FD; --c-ready:#A78BFA; }
:root[data-theme="dark"][data-accent="blue"] { --accent:#6CB6F0; --accent-soft:#152E44; --accent-ink:#b5dbf8; --hero:linear-gradient(120deg,#152E44,#1b3d5c);
  --deep:#0B2236; --deep-mute:#93b2cf; --deep-hi:#7CC6F2; --c-ready:#7CC6F2; }

/* white cards with a thin line instead of soft purple washes */
.card, .tile { border:1px solid var(--line); box-shadow:none; }
.tile:hover, .mod:hover, .db-kpi:hover { box-shadow:0 8px 22px rgba(20,30,25,.08); }
.btn.ghost { background:var(--accent-soft); color:var(--accent-ink); }
:root[data-theme="dark"] .btn.ghost { color:var(--accent-ink); }

/* ---- rail: light panel, icon with a short name under it ---- */
:root aside, :root:not([data-theme="dark"]) aside { --side:var(--panel); background:var(--panel); color:var(--mute); border:1px solid var(--line); box-shadow:none; }
aside .sl { display:none; }
@media (min-width:761px) {
  :root:not([data-side="open"]) aside { width:76px; gap:2px; padding:14px 0; overflow-y:auto; overflow-x:hidden; scrollbar-width:none; }
  :root:not([data-side="open"]) aside::-webkit-scrollbar { display:none; }
  :root:not([data-side="open"]) aside a { width:64px; height:auto; min-height:50px; padding:6px 0 5px; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; flex-shrink:0; }
  :root:not([data-side="open"]) aside a .sl { display:block; font-size:10.5px; line-height:1.15; font-weight:600; white-space:nowrap; max-width:62px; overflow:hidden; text-overflow:ellipsis; }
  :root:not([data-side="open"]) aside a[data-tip]:hover::after { display:none; }   /* the name is already showing */
  :root:not([data-side="open"]) aside .side-grp { width:30px; margin:5px auto; background:var(--line); }
  :root:not([data-side="open"]) aside a .nb { top:2px; right:9px; }
}
:root aside a:hover, :root aside button:hover, :root:not([data-theme="dark"]) aside a:hover, :root:not([data-theme="dark"]) aside button:hover { background:var(--bg); color:var(--ink); }
:root aside a.active, :root:not([data-theme="dark"]) aside a.active { background:var(--accent-soft); color:var(--accent-ink); }
:root aside .brand, :root:not([data-theme="dark"]) aside .brand { background:var(--accent); color:#fff; box-shadow:none; }
:root aside .brand-name, :root:not([data-theme="dark"]) aside .brand-name { color:var(--ink); }
:root aside :focus-visible, :root:not([data-theme="dark"]) aside :focus-visible { outline-color:var(--accent); }
aside #expand, :root[data-side="open"] aside #expand { color:var(--mute); } aside #expand:hover { background:var(--bg); color:var(--ink); }
:root[data-side="open"] .side-grp, :root:not([data-theme="dark"])[data-side="open"] .side-grp { color:var(--mute); }
.side-grp, :root:not([data-theme="dark"]) .side-grp, :root:not([data-theme="dark"]) .side-sep { background:var(--line); }
/* counts: a red number; "!" (not done yet) stays amber */
aside a .nb { background:var(--red); box-shadow:0 0 0 2px var(--panel); }
aside a .nb[data-tone="warn"] { background:#c77700; }
/* the account moved to the top bar */
@media (min-width:761px) { aside .side-user { display:none !important; } }

/* ---- top bar ---- */
#topbar { display:none; }
@media (min-width:761px) {
  #topbar { display:flex; align-items:center; gap:10px; margin:0 4px 16px; padding:8px 10px 8px 14px; background:var(--panel); border:1px solid var(--line); border-radius:16px; position:relative; z-index:25; }
  #find { display:none !important; }
  .jobchip { right:20px; }
}
.tb-org { display:flex; align-items:center; gap:9px; font-weight:600; font-size:14px; }
.tb-org small { color:var(--mute); font-weight:500; font-size:11px; letter-spacing:.06em; margin-left:3px; }
.tb-logo { width:24px; height:24px; border-radius:7px; background:var(--ink); color:var(--panel); display:grid; place-items:center; font-size:12px; }
.tb-gap { flex:1; }
#tsearch { display:flex; align-items:center; gap:10px; min-width:260px; height:36px; padding:0 8px 0 12px; border:1px solid var(--line); border-radius:11px; background:var(--bg); color:var(--mute); font:inherit; font-size:13px; cursor:pointer; }
#tsearch span { flex:1; text-align:left; }
#tsearch:hover { border-color:var(--accent); color:var(--ink); }
#tsearch svg, #tbell svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
#tsearch kbd { border:0; background:var(--panel); opacity:1; color:var(--mute); }
@media (max-width:1000px) { #tsearch { min-width:0; } #tsearch span, #tsearch kbd { display:none; } }
.tb-bellw { position:relative; }
#tbell, #tavatar { width:36px; height:36px; border-radius:50%; border:1px solid var(--line); background:var(--panel); color:var(--ink); display:grid; place-items:center; cursor:pointer; position:relative; padding:0; }
#tbell:hover { background:var(--bg); }
#tbell[data-new]::after { content:""; position:absolute; top:5px; right:6px; width:8px; height:8px; border-radius:50%; background:var(--red); box-shadow:0 0 0 2px var(--panel); }
#tavatar { background:var(--accent); border-color:var(--accent); color:#fff; font-size:12px; }
:root[data-theme="dark"] #tavatar { color:#0d1110; }
.tb-pop { position:absolute; right:0; top:44px; width:340px; max-height:420px; overflow:auto; background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:12px 14px; box-shadow:0 14px 40px rgba(20,30,25,.16); z-index:45; }
.tb-pop > b { display:block; margin-bottom:6px; }
.tb-pop ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.tb-pop li { display:grid; grid-template-columns:8px minmax(0,1fr); gap:9px; font-size:12.5px; }
.tb-pop li i { width:8px; height:8px; border-radius:50%; margin-top:6px; background:var(--accent); }
.tb-pop li.k-bad i { background:var(--red); }
.tb-pop li small { display:block; color:var(--mute); font-size:11.5px; }
@media (min-width:761px) { #menu { top:70px; bottom:auto; right:20px; left:auto !important; } body:has(.devbar) #menu { top:106px; } }
.menu-col { padding:8px 12px 10px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.menu-col small { display:block; color:var(--mute); font-size:12px; margin-bottom:6px; }
.swatches { display:flex; gap:10px; }
.menu .swatches button { width:30px; height:30px; padding:0; border-radius:50%; border:2px solid var(--panel); box-shadow:0 0 0 1px var(--line); display:block; }
.menu .swatches button:hover { transform:scale(1.08); }
.menu .swatches [data-accent-set="green"] { background:#1F7A5C !important; } .menu .swatches [data-accent-set="purple"] { background:#6D28D9 !important; } .menu .swatches [data-accent-set="blue"] { background:#5AA9E6 !important; }
.menu .swatches [aria-checked="true"] { box-shadow:0 0 0 2px var(--ink); }

/* ---- Dashboard ---- */
.d2-greet { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; margin:2px 4px 16px; }
.d2-eb { font-size:11px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--mute); }
.d2-greet h1 { font-size:24px; font-weight:500; margin:2px 0 0; }
.d2-greet-r { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.d2-chip { display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 13px; border-radius:99px; background:var(--panel); border:1px solid var(--line); font-size:12.5px; font-weight:600; }
.d2-chip i { width:8px; height:8px; border-radius:50%; background:var(--ok); }
.d2-chip.t-warn i { background:var(--warn); } .d2-chip.t-bad i { background:var(--red); }
.d2-go { display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 15px; border-radius:99px; background:var(--accent); color:#fff; font-weight:600; font-size:13px; text-decoration:none; }
:root[data-theme="dark"] .d2-go { color:#0d1110; }
.d2-go:hover { filter:brightness(1.08); }
.d2 { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:16px; align-items:start; }
.d2-l, .d2-r { display:grid; gap:16px; min-width:0; }
.d2 .card { margin:0; padding:18px 20px; border-radius:18px; }
.d2-row { display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); gap:16px; align-items:start; }
@media (max-width:1180px) { .d2 { grid-template-columns:1fr; } }
@media (max-width:900px) { .d2-row { grid-template-columns:1fr; } }

/* briefing */
.d2-brief { background:var(--deep); color:var(--deep-ink); border-radius:18px; padding:20px 22px; display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:22px; align-items:stretch; }
.d2-brief .d2-eb { color:var(--deep-mute); display:flex; align-items:center; gap:8px; }
.d2-brief .d2-eb b { background:var(--deep-line); color:var(--deep-ink); padding:2px 8px; border-radius:6px; font-size:10px; }
.d2-brief h2 { font-size:21px; font-weight:500; line-height:1.3; margin:10px 0 8px; color:#fff; text-wrap:balance; }
.d2-brief p { margin:0; font-size:13px; color:var(--deep-mute); }
.d2-brief p b { color:var(--deep-ink); font-weight:600; }
.d2-kpis { display:flex; gap:26px; margin-top:20px; flex-wrap:wrap; }
.d2-kpis b { display:block; font-size:28px; font-weight:500; color:#fff; line-height:1.1; font-variant-numeric:tabular-nums; }
.d2-kpis b.hi { color:var(--deep-hi); }
.d2-kpis small { font-size:11.5px; color:var(--deep-mute); }
.d2-chart { display:flex; flex-direction:column; min-width:0; }
.d2-chart-h { display:flex; justify-content:space-between; gap:8px; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--deep-mute); font-weight:600; }
.d2-leg { display:flex; gap:12px; text-transform:none; letter-spacing:0; font-weight:500; }
.d2-leg i { display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:5px; vertical-align:0; }
.d2-chart svg { width:100%; height:auto; max-height:190px; display:block; margin-top:auto; padding-top:8px; }
.d2-chart text { fill:var(--deep-mute); font-size:10px; font-family:inherit; }
.d2-none { flex:1; display:grid; place-items:center; color:var(--deep-mute); font-size:13px; border:1px dashed var(--deep-line); border-radius:12px; margin-top:8px; min-height:150px; }
/* briefing card turns through the processes (23-11-2026): dots to pick one, a link to its page */
.d2-dots { grid-column:1/-1; display:flex; justify-content:center; gap:8px; margin-top:-6px; }
.d2-dots button { width:8px; height:8px; padding:0; border:0; border-radius:99px; background:var(--deep-line); cursor:pointer; transition:width .2s, background .2s; box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--deep-ink) 25%, transparent); }
.d2-dots button[aria-selected="true"] { width:22px; background:var(--deep-hi); box-shadow:none; }
.d2-dots button:focus-visible { outline:2px solid var(--deep-hi); outline-offset:2px; }
.d2-open { display:inline-block; margin-top:16px; font-size:12.5px; font-weight:600; color:var(--deep-hi); text-decoration:none; }
.d2-open:hover { text-decoration:underline; }
.d2-chart-h > span:first-child { display:flex; flex:1; flex-wrap:wrap; align-items:center; gap:6px 12px; }
.d2-chart-h .d2-leg { margin-left:auto; }@media (max-width:760px) { .d2-brief { grid-template-columns:1fr; } }

/* card heads */
.d2-h { display:flex; align-items:center; justify-content:space-between; gap:4px 10px; flex-wrap:wrap; margin-bottom:12px; }
.d2-h h3 { margin:0; font-size:15px; display:flex; align-items:center; gap:7px; }
.d2-h small { color:var(--mute); font-size:12px; }
.d2-cnt { background:var(--bg); border-radius:99px; padding:0 8px; font-size:12px; font-weight:600; color:var(--mute); }

/* needs you */
.d2-acts { display:grid; gap:8px; }
.d2-act { display:flex; gap:11px; align-items:flex-start; padding:11px 12px; border:1px solid var(--line); border-radius:14px; color:var(--ink); text-decoration:none; background:var(--panel); transition:border-color .15s, background .15s; }
.d2-act:hover { border-color:var(--tone); }
.d2-act.open { border-color:var(--tone); box-shadow:0 0 0 3px var(--tone-bg); }
.d2-act > div { flex:1; min-width:0; }
.d2-act b { display:block; font-size:13.5px; font-weight:600; }
.d2-act small { display:block; color:var(--mute); font-size:12px; }
.d2-ai { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; flex:none; background:var(--tone-bg); color:var(--tone); }
.d2-ai svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.d2-act .d2-btn { display:inline-flex; margin-top:9px; height:30px; align-items:center; padding:0 13px; border-radius:9px; background:var(--accent); color:#fff; font-size:12.5px; font-weight:600; }
:root[data-theme="dark"] .d2-act .d2-btn { color:#0d1110; }
.d2-act:not(.open) .d2-btn { display:none; }
.d2-act .d2-arr { color:var(--mute); font-size:13px; align-self:center; }
.d2-act.open .d2-arr { display:none; }
.d2-sys { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); display:grid; gap:7px; }
.d2-sys > small { font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); }
.d2-sl { display:grid; grid-template-columns:8px minmax(0,1fr); gap:9px; font-size:12.5px; align-items:start; }
.d2-sl i { width:8px; height:8px; border-radius:50%; margin-top:6px; background:var(--ok); }
.d2-sl.t-warn i { background:var(--warn); } .d2-sl.t-bad i { background:var(--red); } .d2-sl.t-neutral i { background:var(--mute); }
.d2-sl small { display:block; color:var(--mute); font-size:11.5px; }

/* AOF outcomes ring */
.d2-ring { display:grid; grid-template-columns:118px minmax(0,1fr); gap:16px; align-items:center; }
.d2-ring svg { width:118px; height:118px; display:block; }
.d2-ring svg text { fill:var(--ink); font-family:inherit; }
.d2-leg2 { display:grid; gap:7px; font-size:12.5px; }
.d2-leg2 div { display:flex; justify-content:space-between; gap:8px; }
.d2-leg2 span { display:flex; align-items:center; gap:7px; color:var(--mute); }
.d2-leg2 i { width:8px; height:8px; border-radius:50%; }
.d2-leg2 b { font-variant-numeric:tabular-nums; }
.d2-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; margin-top:14px; }
.d2-tile { background:var(--bg); border-radius:12px; padding:10px 12px; display:flex; justify-content:space-between; align-items:flex-end; gap:6px; }
.d2-tile small { display:block; font-size:11.5px; color:var(--mute); }
.d2-tile b { font-size:18px; font-weight:600; font-variant-numeric:tabular-nums; }
.d2-tile em { display:block; font-style:normal; font-size:11px; color:var(--mute); }
.d2-tile svg { width:58px; height:22px; flex:none; }

/* processes table */
.d2-tb { width:100%; border-collapse:collapse; }
.d2-tb th { font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; color:var(--mute); font-weight:600; padding:0 6px 8px; border-bottom:1px solid var(--line); text-align:left; }
.d2-tb td { padding:9px 5px; border-bottom:1px solid var(--line); vertical-align:middle; font-size:13px; }
.d2-tb tr:last-child td { border-bottom:0; }
.d2-tb .r { text-align:right; }
.d2-tb tbody tr { cursor:pointer; }
.d2-tb tbody tr:hover td { background:var(--bg); }
.d2-tb tbody tr:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.d2-pn { display:flex; align-items:center; gap:10px; min-width:0; }
.d2-pn > i { width:28px; height:28px; border-radius:8px; display:grid; place-items:center; flex:none; background:var(--accent-soft); color:var(--accent-ink); }
.d2-pn > i svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.d2-pn b { display:block; font-weight:600; font-size:13px; }
.d2-pn small { display:block; color:var(--mute); font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:170px; }
.d2-spark { width:58px; height:22px; display:block; }
.d2-spark polyline { fill:none; stroke:var(--accent); stroke-width:1.6; stroke-linejoin:round; stroke-linecap:round; }
.d2-spark circle { fill:var(--accent); }
.d2-tb .num { font-variant-numeric:tabular-nums; font-weight:600; }
.d2-wrap { overflow-x:auto; }
@media (max-width:560px) { .d2-tb .d2-hide { display:none; } }
.d2-tb .state { white-space:nowrap; }
:root { --c-need:#EE8FB3; } :root[data-theme="dark"] { --c-need:#F2A7C3; }

/* ---------- Pages restyle (12-11 review items 1, 2, 5, 9) ---------- */
/* 1: plain heading on every page - no tinted box; group word from the menu above the title */
:root .page-h.page-h { background:none; border-radius:0; padding:0; margin-bottom:18px; align-items:flex-end; }
:root .page-h.page-h h1 { font-size:24px; margin-bottom:4px; }
:root .page-h.page-h .sub { opacity:1; color:var(--mute); font-size:13.5px; max-width:640px; }
.page-h > div:first-child::before { content:var(--grp, ""); display:block; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); margin-bottom:4px; }
@media (max-width:760px) { :root .page-h.page-h { padding:0; } }

/* 2: Client requests count tiles (also the filter) */
.ktiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.ktiles .kt { text-align:left; font:inherit; color:var(--ink); background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:12px 14px; cursor:pointer; min-width:0; transition:border-color .15s, box-shadow .15s; }
.ktiles .kt:hover { border-color:var(--accent); }
.ktiles .kt:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ktiles .kt small { display:block; font-size:12px; color:var(--mute); font-weight:500; }
.ktiles .kt b { display:block; font-size:24px; font-weight:600; line-height:1.25; font-variant-numeric:tabular-nums; }
.ktiles .kt em { display:block; font-style:normal; font-size:11.5px; color:var(--mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ktiles .kt.on { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.ktiles .kt.on small { color:var(--accent-ink); font-weight:600; }
@media (max-width:760px) { .ktiles { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.rq-who { display:flex; align-items:center; gap:10px; }
.av2 { width:30px; height:30px; border-radius:50%; background:var(--accent-soft); color:var(--accent-ink); display:inline-grid; place-items:center; font-size:11.5px; font-weight:700; flex:none; }

/* 5: open counts on the notice type tabs, and a day number by each case's bar */
.nc-tabs .tc { display:inline-block; min-width:20px; padding:0 6px; margin-left:4px; border-radius:99px; background:var(--accent-soft); color:var(--accent-ink); font-size:11.5px; font-weight:600; line-height:18px; text-align:center; font-variant-numeric:tabular-nums; }
.nc-tabs .tc.zero { background:var(--line); color:var(--mute); }
.nc-tabs button.on .tc { background:rgba(255,255,255,.22); color:inherit; }
.nc-dayrow { display:flex; align-items:center; gap:8px; margin-top:9px; }
.nc-dayrow .nc-bar { margin-top:0; flex:1; }
.nc-day { font-size:11px; color:var(--mute); white-space:nowrap; font-variant-numeric:tabular-nums; }
.nc-bar.lv-w i.on { background:#D97706; } .nc-bar.lv-b i.on { background:#B91C1C; }

/* 9: Settings side list with a status dot */
.st-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:18px; align-items:start; }
.st-nav { display:grid; gap:4px; position:sticky; top:12px; }
.st-nav button { display:flex; justify-content:space-between; align-items:center; gap:8px; font:inherit; font-size:13.5px; text-align:left; color:var(--mute); background:none; border:1px solid transparent; border-radius:10px; padding:10px 12px; cursor:pointer; }
.st-nav button:hover { color:var(--ink); background:var(--panel); }
.st-nav button.on { color:var(--ink); font-weight:600; background:var(--panel); border-color:var(--line); }
.st-nav button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.st-dot { width:8px; height:8px; border-radius:50%; background:var(--line); flex:none; }
.st-dot.ok { background:#16A34A; } .st-dot.warn { background:#D97706; }
.st-panes > div > .card:first-child { margin-top:0; }
@media (max-width:760px) { .st-layout { grid-template-columns:1fr; } .st-nav { position:static; grid-auto-flow:column; overflow-x:auto; } .st-nav button { white-space:nowrap; } }
/* ---------- Pages restyle v2 (13-11 review: 7A, 8B, 8C) ---------- */
/* 7A: Bill MIS - inputs on the left, a month summary panel on the right (like KYC MIS) */
.bm-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:18px; align-items:start; }
.bm-main { display:grid; gap:18px; min-width:0; } .bm-main > .card { margin:0; }
.bm-side { position:sticky; top:12px; display:grid; gap:10px; margin:0; }
.bm-sh { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.bm-sh b { font-size:15px; }
.bm-net { background:var(--accent-soft); border-radius:14px; padding:14px; display:grid; gap:2px; }
.bm-net span { font-size:12.5px; font-weight:600; color:var(--accent-ink); }
.bm-net b { font-size:26px; font-weight:600; color:var(--accent-ink); font-variant-numeric:tabular-nums; line-height:1.2; }
.bm-net small { font-size:11.5px; color:var(--mute); }
.bm-line { display:flex; justify-content:space-between; gap:8px; font-size:13.5px; padding:4px 2px; border-bottom:1px solid var(--line); }
.bm-line span { color:var(--mute); } .bm-line b { font-variant-numeric:tabular-nums; }
.bm-side .btn { width:100%; justify-content:center; margin:0; }
@media (max-width:980px) { .bm-layout { grid-template-columns:1fr; } .bm-side { position:static; } }

/* 8B: Outbox as an inbox - one line per mail */
.ob-box { padding:6px 8px; }
.ob-m { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 10px; border-bottom:1px solid var(--line); padding:0 6px; }
.ob-m:last-child { border-bottom:0; }
.ob-row { display:grid; grid-template-columns:10px minmax(0,1fr) auto; gap:12px; align-items:center; text-align:left; font:inherit; color:var(--ink); background:none; border:0; padding:11px 4px; cursor:pointer; min-width:0; }
.ob-row:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; border-radius:8px; }
.ob-m:hover { background:var(--bg); }
.ob-dot { width:9px; height:9px; border-radius:50%; background:#16A34A; }
.ob-m.t-bad .ob-dot { background:#DC2626; } .ob-m.t-warn .ob-dot { background:#D97706; } .ob-m.t-plain .ob-dot { background:var(--mute); }
.ob-txt { min-width:0; }
.ob-txt b { display:block; font-size:13.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ob-txt small { display:block; font-size:12px; color:var(--mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ob-when { font-size:12px; color:var(--mute); white-space:nowrap; font-variant-numeric:tabular-nums; }
.ob-full { grid-column:1 / -1; padding:0 4px 12px 26px; }
.ob-body { white-space:pre-wrap; font-size:13px; background:var(--bg); border-radius:10px; padding:10px 12px; max-height:320px; overflow:auto; overflow-wrap:anywhere; }
.ob-m.open { background:var(--bg); }

/* 8C: Audit log as a timeline grouped by day */
.au-day { margin:14px 0 6px; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); }
.au-day:first-child { margin-top:2px; }
.au-list { position:relative; padding-left:22px; }
.au-list::before { content:""; position:absolute; left:6px; top:8px; bottom:8px; width:2px; background:var(--line); border-radius:2px; }
.au-e { position:relative; display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:6px 0; font-size:13.5px; }
.au-e::before { content:""; position:absolute; left:-21px; top:11px; width:8px; height:8px; border-radius:50%; background:var(--panel); border:2px solid var(--accent); }
.au-e.w::before { border-color:#D97706; background:#FEF3C7; }
.au-e > span { min-width:0; overflow-wrap:anywhere; }
.au-det { color:var(--mute); font-size:12.5px; }
.au-e time { font-size:12px; color:var(--mute); white-space:nowrap; font-variant-numeric:tabular-nums; }
:root[data-theme="dark"] .au-e.w::before { background:#3a2c14; }
/* ---------- Reconciliation result (13-11 review: R1B, R2, R3). The upload card is not touched. ---------- */
.rc-res { display:grid; gap:14px; }
.rc-cols { display:grid; grid-template-columns:repeat(var(--n,3), minmax(0,1fr)); gap:12px; }
.rc-col { border:1px solid var(--line); border-radius:14px; padding:14px; display:grid; justify-items:center; align-content:start; gap:2px; text-align:center; min-width:0; }
.rc-x { font-size:15px; }
.rc-ring { width:104px; height:104px; margin:8px 0 0; }
.rc-ring circle { fill:none; stroke-width:4.5; }
.rc-ring .trk { stroke:var(--line); }
.rc-ring .val { stroke-linecap:round; } .rc-ring .val.ok { stroke:#16A34A; } .rc-ring .val.warn { stroke:#D97706; }
.rc-ring text { fill:var(--ink); font-size:7.4px; font-weight:700; font-family:inherit; }
.rc-cap { font-size:11.5px; color:var(--mute); margin-bottom:8px; }
.rc-dl { display:grid; grid-template-columns:1fr auto; gap:5px 10px; width:100%; margin:0 0 10px; font-size:13px; text-align:left; }
.rc-dl dt { color:var(--mute); } .rc-dl dd { margin:0; font-weight:600; font-variant-numeric:tabular-nums; text-align:right; }
.rc-dl dd.w { color:var(--warn); } .rc-dl dd.b { color:var(--bad); }
.rc-dl-btn { width:100%; justify-content:center; margin:0; }
.rc-t { font-size:11px; margin-top:4px; }
.rc-lh { margin:2px 0 0; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); }
.rc-look { display:grid; gap:8px; }
.rc-look > div { display:flex; align-items:center; gap:14px; border:1px solid var(--line); border-radius:12px; padding:10px 14px; }
.rc-n { font-size:18px; font-weight:700; min-width:78px; text-align:right; font-variant-numeric:tabular-nums; }
.rc-n.b { color:var(--bad); } .rc-n.w { color:var(--warn); }
.rc-look b { display:block; font-size:13.5px; } .rc-look small { display:block; color:var(--mute); font-size:12px; }
.rc-clean { margin:0; }
@media (max-width:760px) { .rc-cols { grid-template-columns:1fr; } .rc-n { min-width:60px; font-size:16px; } }
.mchip { display:inline-flex; align-items:center; border-radius:99px; padding:2px 9px; margin:1px 4px 1px 0; font-size:12px; font-weight:600; background:var(--ok-bg); color:var(--ok); white-space:nowrap; font-variant-numeric:tabular-nums; }
.mchip.w { background:var(--warn-bg); color:var(--warn); }
.av2.sm { width:24px; height:24px; font-size:10.5px; }
.rc-fold td { color:var(--mute); cursor:pointer; font-size:13px; }
.rc-fold:hover td { background:var(--bg); color:var(--ink); }
.rc-fold:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.rc-folded td { background:color-mix(in srgb, var(--bg) 60%, transparent); }
.rc-gh { display:block; font-size:13px; margin:4px 0 -4px; }
.rc-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(360px,1fr)); gap:14px 16px; }
.rc-groups .rc-gh { margin:0 0 8px; }
@media (max-width:760px) { .rc-groups { grid-template-columns:1fr; } }

/* step-by-step confirm box (stepConfirm in app.js) */
.sc-dlg { border:0; padding:0; border-radius:20px; background:var(--panel); color:var(--ink); width:min(640px, calc(100vw - 32px)); max-height:calc(100vh - 48px); box-shadow:0 24px 60px rgba(15,23,42,.35); }
.sc-dlg::backdrop { background:rgba(15,23,42,.45); }
.sc-box { padding:22px 24px; display:flex; flex-direction:column; gap:10px; max-height:calc(100vh - 48px); box-sizing:border-box; }
.sc-top { display:flex; justify-content:space-between; align-items:center; }
.sc-step { font-size:12px; font-weight:600; color:var(--mute); text-transform:uppercase; letter-spacing:.04em; }
.sc-dots { display:flex; gap:6px; } .sc-dots i { width:28px; height:5px; border-radius:3px; background:var(--line); } .sc-dots i.on { background:var(--accent); } .sc-dots i.done { background:var(--ok); }
.sc-box h3 { margin:0; font-size:19px; }
.sc-body { overflow:auto; min-height:0; } .sc-body p { margin:0 0 10px; }
.sc-tbl { max-height:320px; }
.sc-big { font-size:17px; color:var(--accent); }
.sc-ids { display:flex; flex-wrap:wrap; gap:6px; } .sc-ids span { background:var(--accent-soft); border-radius:8px; padding:3px 8px; font-variant-numeric:tabular-nums; font-size:13px; }
.sc-acts { display:flex; justify-content:flex-end; gap:10px; padding-top:6px; border-top:1px solid var(--line); }
:root .btn.sc-danger, :root[data-theme="dark"] .btn.sc-danger { background:var(--bad); color:#fff; }
/* scanned KYC form, laid out like the form, next to SharePro (Email & mobile push > Check form, 03-12-2026) */
.sc-dlg.cf-dlg { width:min(980px, calc(100vw - 32px)); }
.cf-box { gap:12px; }
.cf-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; } .cf-head p { margin:4px 0 0; }
.cf-push { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cf-push > div { border:1px solid var(--line); border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; gap:3px; }
.cf-push small { color:var(--mute); font-weight:600; text-transform:uppercase; letter-spacing:.04em; font-size:11px; }
.cf-body { overflow:auto; min-height:0; display:flex; flex-direction:column; gap:12px; }
.cf-body h4 { margin:0 0 6px; font-size:13px; color:var(--mute); text-transform:uppercase; letter-spacing:.04em; }
.cf-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:8px; }
.cf-f { border:1px solid var(--line); border-radius:10px; padding:7px 10px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.cf-f.wide { grid-column:1 / -1; }
.cf-f.to { border-color:var(--accent); background:var(--accent-soft); }
.cf-f small { color:var(--mute); font-size:12px; } .cf-f b { overflow-wrap:anywhere; }
.cf-tag { font-style:normal; font-size:10px; font-weight:700; color:#fff; background:var(--accent); border-radius:6px; padding:1px 6px; margin-left:4px; }
.cf-now { font-size:12px; color:var(--warn, #b45309); } .cf-now.same { color:var(--ok); }
.cp-formbtn { margin-top:4px; }
@media (max-width:640px) { .cf-push { grid-template-columns:1fr; } }
/* scan reading confidence on the re-KYC scan page (03-12-2026): sure = two readers agree, check = they differ */
.cf-mark { display:block; margin-top:4px; font-size:12px; line-height:1.3; }
.cf-mark.sure { color:var(--ok); }
.cf-mark.check { color:#b45309; font-weight:600; }
.fld.scanned.cf-check input, .fld.scanned.cf-check .lbl { outline:2px solid #f59e0b; outline-offset:1px; border-radius:8px; }
/* the Aadhaar copy's address under the scan result (KYC scan page, 03-12-2026) */
.cf-aadh { margin-top:8px; padding:10px 12px; border-radius:10px; border:1px solid var(--line, #E2E8F0); background:var(--card, #fff); line-height:1.5; }
.cf-aadh small { font-weight:400; }

/* ---- KYC - Individual: many scans uploaded at once, checked one by one in a pop-up (03-12-2026) */
.kq-drop { display:flex; align-items:center; gap:14px; margin-top:12px; padding:22px; border:2px dashed var(--line); border-radius:16px; background:var(--bg); cursor:pointer; transition:border-color .15s, background .15s; }
.kq-drop:hover, .kq-drop.on { border-color:var(--accent); background:var(--accent-soft); }
.kq-drop input { position:absolute; width:1px; height:1px; opacity:0; }
.kq-drop:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.kq-drop svg { width:34px; height:34px; flex:none; fill:none; stroke:var(--accent); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.kq-drop b { color:var(--accent); } .kq-drop small { display:block; color:var(--mute); font-size:12px; }
.kq-head { display:flex; align-items:center; gap:10px; margin:16px 0 6px; flex-wrap:wrap; } .kq-head .btn { margin-left:auto; }
.kd-ids select, select.kd-type { width:auto; margin-left:4px; padding:2px 6px; }
select.kd-type { margin:4px 0 0; font-size:12px; }
.nt-pane .kq-drop { margin-top:0; }
.kd-goes { margin:10px 0 0; padding:8px 12px; border-radius:10px; background:var(--accent-soft); font-size:13px; line-height:1.5; }
ul.kq { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
ul.kq li { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.kq-ic { width:28px; height:28px; flex:none; border-radius:50%; display:grid; place-items:center; font-size:13px; font-weight:700; background:var(--bg); color:var(--mute); }
.kq-ic .spin { margin:0; }
.kq-done .kq-ic { background:var(--ok-bg); color:var(--ok); } .kq-fail .kq-ic { background:var(--bad-bg); color:var(--bad); }
.kq-read { border-color:var(--accent) !important; }
.kq-n { flex:1; min-width:0; } .kq-n b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .kq-n small { color:var(--mute); }
.kq-fail .kq-n small { color:var(--bad); }
.kd-list tr.kd-todo td { background:color-mix(in srgb, var(--warn-bg) 45%, transparent); }
.kd-read .ok { color:var(--ok); } .kd-read .warn { color:var(--warn); font-weight:600; }
.kd-prob { color:var(--bad); }

dialog.kd-dlg { border:0; padding:0; width:min(1480px, 97vw); height:94vh; max-width:none; max-height:none; border-radius:18px; background:var(--panel); color:var(--ink); box-shadow:0 24px 70px rgba(15,23,42,.4); overflow:hidden; }
dialog.kd-dlg::backdrop { background:rgba(15,23,42,.55); }
.kd { display:grid; grid-template-rows:auto 1fr auto; height:100%; }
.kd-h { display:flex; align-items:center; gap:16px; padding:14px 18px; border-bottom:1px solid var(--line); }
.kd-who { flex:1; min-width:0; } .kd-who h3 { margin:0 0 6px; font-size:18px; }
.kd-ids { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; font-size:13px; color:var(--mute); } .kd-ids b { color:var(--ink); }
.kd-ids label { display:flex; align-items:center; gap:6px; }
.kd-ids input { width:120px; padding:6px 10px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--ink); font:inherit; }
.kd-nav { display:flex; align-items:center; gap:6px; } .kd-nav .btn { min-width:36px; font-size:18px; line-height:1; }
.kd-x { border:0; background:var(--bg); color:var(--ink); width:38px; height:38px; border-radius:50%; font-size:22px; cursor:pointer; }
.kd-x:hover { background:var(--accent-soft); color:var(--accent); }
.kd-body { display:grid; grid-template-columns:minmax(0, 1.05fr) minmax(0, 1fr); min-height:0; }
.kd-scan { display:flex; flex-direction:column; min-height:0; border-right:1px solid var(--line); background:var(--bg); }
.kd-bar { display:flex; justify-content:space-between; padding:8px 14px; font-size:13px; }
.kd-scan iframe { flex:1; width:100%; border:0; background:#525659; }
.kd-side { overflow:auto; padding:16px 18px 24px; }
.kd-sum { display:flex; flex-wrap:wrap; gap:6px; }
.kd-pill { font-size:12px; font-weight:600; padding:4px 10px; border-radius:99px; }
.kd-pill.ok { background:var(--ok-bg); color:var(--ok); } .kd-pill.warn { background:var(--warn-bg); color:var(--warn); } .kd-pill.bad { background:var(--bad-bg); color:var(--bad); }
.kd-issues { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:4px; font-size:13px; }
.kd-issues li { padding:6px 10px; border-radius:8px; } .kd-issues li.bad { background:var(--bad-bg); color:var(--bad); } .kd-issues li.warn { background:var(--warn-bg); color:var(--warn); }
.kd-aad { margin-top:10px; padding:10px 12px; border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:10px; font-size:13px; }
.kd-aad .warn { color:var(--warn); font-weight:600; }
.kd-spnote { font-size:12px; color:var(--mute); margin:10px 0 0; }
.kd-grp { margin-top:18px; } .kd-grp h4 { margin:0 0 10px; font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:var(--mute); }
.kd-side .fgrid { gap:12px 14px; }
.kd-side .fld label { font-size:13px; font-weight:600; }
.kd-side input[type=text], .kd-side input[type=email], .kd-side input[type=date], .kd-side input[inputmode] { display:block; width:100%; box-sizing:border-box; margin-top:4px; padding:8px 10px; min-height:38px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--ink); font:inherit; font-weight:400; }
.kd-side input:focus { outline:2px solid var(--accent); outline-offset:1px; }
.kd-side .opts { display:flex; flex-wrap:wrap; gap:4px 14px; font-size:13px; }
.kd-now { display:block; margin-top:3px; font-size:12px; color:var(--mute); }
.cf-mark.edited { color:var(--accent); font-weight:600; }
.kd-f { border-top:1px solid var(--line); padding:10px 18px 14px; }
.kd-f .msg-ok, .kd-f .msg-err, .kd-f .msg-warn { margin:0 0 10px; }
.kd-acts { display:flex; align-items:center; gap:8px; } .kd-sp { flex:1; }
.kd-del { color:var(--bad) !important; background:var(--bad-bg) !important; }
.kd-next { margin-left:10px; }
@media (max-width: 900px) {
  dialog.kd-dlg { width:100vw; height:100vh; border-radius:0; }
  .kd-body { grid-template-columns:1fr; grid-template-rows:45vh auto; overflow:auto; }
  .kd-scan { border-right:0; border-bottom:1px solid var(--line); }
  .kd-side { overflow:visible; } .kd-side .fgrid { grid-template-columns:1fr; }
}
/* Recon: where the client data comes from (SharePro database or an uploaded file); Settings > SharePro database (05-12-2026) */
.flow-local { flex:1; align-self:stretch; display:flex; flex-direction:column; gap:8px; }
.flow-local .drop.local { flex:1; }
.src-tog { display:inline-flex; align-self:flex-start; background:var(--bg); border-radius:99px; padding:3px; gap:2px; }
.src-tog button { border:0; background:transparent; font:inherit; font-size:12px; font-weight:600; padding:5px 12px; border-radius:99px; cursor:pointer; color:var(--muted, #667); }
.src-tog button.on { background:var(--accent); color:#fff; }
.src-tog button:disabled { opacity:.45; cursor:not-allowed; }
.drop.spbox { cursor:default; border-style:solid; background:var(--accent-soft); }
.fgrid.four { grid-template-columns:repeat(4, 1fr); }
@media (max-width:1000px) { .fgrid.four { grid-template-columns:1fr 1fr; } }
@media (max-width:760px) { .fgrid.four { grid-template-columns:1fr; } }
.sd-dbb { border:1px solid var(--line, #ddd); background:#fff; border-radius:99px; padding:4px 10px; font:inherit; font-size:12px; cursor:pointer; margin:0 6px 6px 0; }
.sd-dbb.on { border-color:var(--accent); color:var(--accent); font-weight:600; }.flow-local [hidden] { display:none !important; }
