/* Tempbench app design system (Direction C, approved 20 Oct 2026).
   Shape rule: controls 10px, cards 12px, chips 8-9px, pills full. One accent: tangerine. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(../fonts/bricolage.woff2) format('woff2'); }
:root {
	--bg: #f3f4f6; --surf: #fff; --ink: #0f1726; --ink2: #465266; --muted: #8a93a5; --line: #e3e6eb; --line2: #eef0f3;
	--acc: #f0642d; --acc-hi: #f5743f; --acc-ink: #c2491a; --acc-t: #fff1ea;
	--good: #0c8a52; --good-bar: #34b27b; --good-t: #e5f5ed; --warn: #c26a0c; --warn-t: #fdf1df; --bad: #c4321f; --bad-t: #fdebe8;
	--navy: #16233a; --navy-2: #203454; --r: 12px; --ease: cubic-bezier(.23, 1, .32, 1);
	--shadow: 0 1px 2px rgba(15, 23, 38, .04), 0 10px 30px -18px rgba(15, 23, 38, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 14px/1.5 Manrope, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
.disp { font-family: 'Bricolage Grotesque', Manrope, sans-serif; letter-spacing: -.03em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
[hidden] { display: none !important; }

/* App shell */
.app { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; background: var(--navy); display: flex; flex-direction: column; align-items: center; padding: 18px 0; gap: 6px; z-index: 30; }
.logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .55); }
.logo svg { width: 30px; height: 20px; color: var(--navy); }
.rail a, .rail button { position: relative; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #8d9bb3; background: none; border: 0; cursor: pointer; transition: background-color .15s, color .15s; }
.rail a:hover, .rail button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.rail a.on { background: rgba(255, 255, 255, .09); color: #fff; }
.rail a.on::before { content: ''; position: absolute; left: -15px; top: 11px; bottom: 11px; width: 4px; border-radius: 0 4px 4px 0; background: var(--acc); }
.rail a.logo, .rail a.logo:hover { width: 44px; height: 44px; background: #fff; color: var(--navy); }
.rail a[data-tip]:hover::after, .rail button[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 58px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; pointer-events: none; }
.rail em { position: absolute; top: 6px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--acc); color: #fff; font: 800 10px/17px Manrope; font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--navy); }
.rail .sp { flex: 1; }
.rail .me { width: 38px; height: 38px; border-radius: 50%; background: #2a3a57; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; }
main { min-width: 0; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 32px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wsp { display: flex; align-items: center; gap: 10px; padding-right: 18px; border-right: 1px solid var(--line); height: 36px; }
.wsp b { font-weight: 800; white-space: nowrap; }
.wsp small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.1; }
.wsp i { width: 30px; height: 30px; border-radius: 9px; background: #e9eef7; color: var(--navy); display: grid; place-items: center; font: 800 11px Manrope; font-style: normal; }
.trial { margin-left: 4px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--acc-t); color: var(--acc-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.trial.ro { background: var(--bad-t); color: var(--bad); }
.sb { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--bg); color: var(--muted); border: 1px solid transparent; transition: border-color .15s, background-color .15s; }
.sb:focus-within { border-color: var(--acc); background: #fff; }
.sb input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-weight: 600; color: var(--ink); }
.sb kbd { font: 700 11px Manrope; padding: 3px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink2); }
.ib { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink2); background: none; border: 0; cursor: pointer; }
.ib:hover { background: var(--bg); }
.push { margin-left: auto; }
.wrap { padding: 28px 32px 120px; max-width: 2320px; margin-inline: auto; }
/* Form and list pages that read best as one centred column (tasks, settings, billing, checks, import). */
.wrap.nar { max-width: 1240px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--acc); color: #fff; font-weight: 700; border: 0; cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 8px 18px -10px rgba(240, 100, 45, .9); transition: background-color .15s, transform .15s var(--ease); }
.btn:hover { background: var(--acc-hi); }
.btn:active { transform: scale(.97); }
.btn.g { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.g:hover { background: var(--bg); }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #f3c9c2; box-shadow: none; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* Page heading */
.hd { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.hd h1 { font-size: 44px; line-height: 1; font-weight: 700; }
.hd h1 span { color: var(--muted); font-weight: 600; }
.views { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: #e8eaee; align-self: center; }
.views a { height: 32px; padding: 0 14px; border-radius: 8px; display: inline-flex; align-items: center; font-weight: 700; color: var(--ink2); font-size: 13.5px; }
.views a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 38, .08); }
.hd .acts { margin-left: auto; display: flex; gap: 8px; }
.desk { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 22px; color: var(--ink2); font-weight: 600; }
.desk b { font-family: 'Bricolage Grotesque'; font-size: 19px; font-weight: 700; color: var(--ink); margin-right: 5px; letter-spacing: -.02em; }
.desk .w b { color: var(--warn); }
.desk .dot { width: 5px; height: 5px; border-radius: 50%; background: #c9ced8; align-self: center; }

/* Sentence filter */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.grid.solo { grid-template-columns: minmax(0, 1fr); }
.sent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; font-size: 15.5px; font-weight: 600; color: var(--ink2); position: relative; }
.tok { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 9px; background: var(--acc-t); color: var(--acc-ink); font-weight: 800; border: 1px dashed rgba(194, 73, 26, .35); cursor: pointer; transition: background-color .15s; }
.tok:hover { background: #ffe6d8; }
.tok svg { width: 14px; height: 14px; opacity: .7; }
.tok .x { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; margin-left: 2px; }
.tok .x:hover { background: rgba(194, 73, 26, .15); }
.tok.add { background: transparent; color: var(--muted); border-color: var(--line); font-weight: 700; }
.tok.add:hover { background: var(--bg); color: var(--ink2); }
.sent .res { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 700; }
.sent .res b { color: var(--ink); font-size: 15px; }
.pop { position: absolute; z-index: 40; min-width: 260px; max-width: 340px; max-height: 360px; overflow: auto; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(15, 23, 38, .07), 0 24px 50px -20px rgba(15, 23, 38, .4); font-size: 14px; color: var(--ink); transform-origin: top left; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-4px); } }
.pop h4 { margin: 6px 8px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.pop label, .pop .opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.pop label:hover, .pop .opt:hover { background: var(--bg); }
.pop input[type=checkbox], .pop input[type=radio] { width: 16px; height: 16px; accent-color: var(--acc); }
.pop .row2 { display: flex; gap: 8px; padding: 6px; }
.pop input[type=text], .pop select { flex: 1; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); outline: 0; }
.pop input[type=text]:focus { border-color: var(--acc); }
.pop .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 6px; }
.pop .days button { height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; }
.pop .days button.on { background: var(--good-t); border-color: transparent; color: var(--good); }
.pop .foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 6px 2px; border-top: 1px solid var(--line2); margin-top: 6px; }

/* List */
.list { background: var(--surf); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.row { position: relative; display: grid; grid-template-columns: 22px minmax(180px, 1.3fr) minmax(140px, 1fr) 150px 148px 96px; align-items: center; gap: 16px; padding: 12px 18px 12px 22px; border-top: 1px solid var(--line2); cursor: pointer; transition: background-color .12s; }
.row::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--good); }
.row.s-incomplete::before { background: var(--warn); }
.row.s-dnu::before { background: var(--bad); }
.row.s-inactive::before { background: #c3c9d4; }
.row.hdr { border-top: 0; padding-top: 10px; padding-bottom: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; background: #fafbfc; cursor: default; }
.row.hdr::before { display: none; }
.row:not(.hdr):hover { background: #fafbfc; }
.row.sel { background: #fff8f4 !important; }
.row.open { box-shadow: inset 3px 0 0 var(--acc); }
.cb { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #ccd2dc; display: grid; place-items: center; background: #fff; cursor: pointer; padding: 0; }
.cb.on { background: var(--acc); border-color: var(--acc); }
.cb svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.cb.on svg { opacity: 1; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.av { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; }
.a0 { background: #ffe8dc; color: #b8461b; } .a1 { background: #e3f1ea; color: #0c7a49; } .a2 { background: #e8edf8; color: #2a4a8c; } .a3 { background: #f1e9f7; color: #6a3a8f; }
.who b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.flag { font-size: 11px; font-weight: 800; color: var(--bad); margin-left: 6px; }
.flag.w { color: var(--warn); }
.pos { font-weight: 700; color: var(--ink); min-width: 0; }
.pos small { display: block; font-weight: 600; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist { display: flex; align-items: center; gap: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dist i { flex: 1; height: 6px; border-radius: 6px; background: var(--line2); position: relative; overflow: hidden; }
.dist i u { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--acc), #f6a073); }
.dist.none { color: var(--muted); font-weight: 600; }
.wk, .wkh { display: grid; grid-template-columns: repeat(7, 16px); gap: 4px; }
.wk i { height: 20px; border-radius: 5px; background: var(--line2); }
.wk i.F { background: var(--good-bar); } .wk i.B { background: var(--navy); }
.wk i.today { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--acc); }
.wkh b { text-align: center; font-weight: 800; }
.upd { color: var(--muted); font-weight: 600; text-align: right; font-size: 13px; }
.qa { position: absolute; right: 0; top: 0; bottom: 0; padding: 0 16px 0 40px; display: flex; align-items: center; gap: 6px; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgba(250, 251, 252, 0), #fafbfc 34px); transition: opacity .12s; }
.row:not(.hdr):hover .qa { opacity: 1; pointer-events: auto; }
@media (hover: none) { .qa { display: none !important; } }
.qa .btn { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.empty { padding: 56px 24px; text-align: center; color: var(--ink2); }
.empty h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 44ch; margin: 0 auto 18px; }
.more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line2); }
.skel { height: 64px; border-top: 1px solid var(--line2); background: linear-gradient(90deg, #fff 0, #f6f7f9 40%, #fff 80%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Record panel */
.rec { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; }
.rec .top { padding: 22px 22px 18px; background: linear-gradient(180deg, #fff6f1, #fff); border-bottom: 1px solid var(--line2); }
.rec .id { display: flex; gap: 14px; align-items: center; }
.rec .av { width: 58px; height: 58px; border-radius: 16px; font-size: 18px; }
.rec h2 { font-size: 24px; font-weight: 700; line-height: 1.1; }
.rec .id p { color: var(--ink2); font-weight: 700; margin-top: 3px; }
.rec .close { margin-left: auto; align-self: flex-start; }
.meta { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.chip.ok { background: var(--good-t); border-color: transparent; color: var(--good); }
.chip.warn { background: var(--warn-t); border-color: transparent; color: var(--warn); }
.chip.bad { background: var(--bad-t); border-color: transparent; color: var(--bad); }
.rec .acts { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; margin-top: 16px; }
.sec { padding: 16px 22px; border-bottom: 1px solid var(--line2); }
.sec:last-child { border: 0; }
.sec h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.sec h3 button { color: var(--acc-ink); letter-spacing: 0; text-transform: none; font-size: 12.5px; font-weight: 800; background: none; border: 0; cursor: pointer; padding: 0; }
.kv { display: grid; grid-template-columns: 20px 1fr; gap: 9px 10px; color: var(--ink2); font-weight: 600; align-items: center; }
.kv svg { color: var(--muted); }
.kv a:hover { color: var(--acc-ink); }
.wkbig { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wkbig button { border-radius: 9px; padding: 7px 0; text-align: center; background: var(--line2); color: #a3abb9; font-weight: 800; font-size: 11px; border: 0; cursor: pointer; transition: transform .12s var(--ease); }
.wkbig button:active { transform: scale(.95); }
.wkbig button b { display: block; font-size: 13px; }
.wkbig .F { background: #e3f4ec; color: var(--good); } .wkbig .B { background: var(--navy-2); color: #fff; }
.wkbig .today { box-shadow: 0 0 0 2px var(--acc); }
.hint { margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 10px; border-radius: 8px; background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.note { padding: 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f6e2b1; color: #5f4708; font-weight: 600; font-size: 13px; white-space: pre-wrap; margin-bottom: 8px; }
.note small { display: block; margin-top: 6px; color: #8d6f1c; font-weight: 700; font-size: 11.5px; }
.notebox { display: flex; gap: 8px; margin-bottom: 10px; }
.notebox textarea { flex: 1; min-height: 44px; max-height: 160px; resize: vertical; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); outline: 0; font-weight: 600; }
.notebox textarea:focus { border-color: var(--acc); }
.doc { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; }
.doc .fi { width: 34px; height: 34px; border-radius: 9px; background: var(--bg); display: grid; place-items: center; color: var(--ink2); }
.doc b { display: block; font-weight: 800; }
.doc small { color: var(--muted); font-weight: 600; }
.exp { height: 5px; border-radius: 5px; background: var(--line2); margin-top: 5px; width: 120px; overflow: hidden; }
.exp u { display: block; height: 100%; background: var(--good); border-radius: 5px; }
.exp.w u { background: var(--warn); } .exp.x u { background: var(--bad); }
.st { font-size: 12px; font-weight: 800; }
.st.ok { color: var(--good); } .st.w { color: var(--warn); } .st.x { color: var(--bad); }
.recempty { padding: 48px 28px; text-align: center; color: var(--muted); font-weight: 600; }
.recempty .ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; background: var(--acc-t); color: var(--acc-ink); display: grid; place-items: center; }

/* Selection tray */
.tray { position: fixed; left: calc(50% + 38px); transform: translate(-50%, 0); bottom: 24px; z-index: 35; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: 0 24px 50px -18px rgba(15, 23, 38, .6); animation: tray .22s var(--ease); }
@keyframes tray { from { opacity: 0; transform: translate(-50%, 12px); } }
.tray b { font-weight: 800; white-space: nowrap; }
.tray .t { height: 36px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; font-weight: 700; background: rgba(255, 255, 255, .1); border: 0; color: #fff; cursor: pointer; white-space: nowrap; }
.tray .t:hover { background: rgba(255, 255, 255, .18); }
.tray .t.p { background: var(--acc); }

/* Drawer (add / edit) */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 38, .35); animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(560px, 100vw); background: #fff; box-shadow: -30px 0 60px -30px rgba(15, 23, 38, .5); display: flex; flex-direction: column; animation: slide .26s var(--ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer header { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line2); }
.drawer header h2 { font-size: 22px; font-weight: 700; }
.drawer .body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid var(--line2); }
.f { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f .full { grid-column: 1 / -1; }
.f label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.f label small { font-weight: 600; color: var(--muted); }
.f input:not([type=checkbox]), .f select, .f textarea { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; outline: 0; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.f textarea { height: 90px; padding: 10px 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(240, 100, 45, .12); }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.picks button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink2); cursor: pointer; }
.picks button.on { background: var(--acc-t); border-color: transparent; color: var(--acc-ink); }
.pgrp { margin-bottom: 10px; }
.pgrp > span { display: block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 4px 0 6px; }
.pattern { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pattern button { height: 52px; border-radius: 10px; border: 0; font-weight: 800; cursor: pointer; background: var(--line2); color: #a3abb9; }
.pattern button b { display: block; }
.pattern button.F { background: #e3f4ec; color: var(--good); } .pattern button.B { background: var(--navy-2); color: #fff; }
.err { margin: 0 24px; padding: 10px 12px; border-radius: 10px; background: var(--bad-t); color: var(--bad); font-weight: 700; font-size: 13.5px; }

/* Toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; box-shadow: 0 20px 40px -16px rgba(15, 23, 38, .6); animation: tray .22s var(--ease); }

/* Auth screens */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: #fff; }
.auth .side { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; isolation: isolate; }
.auth .side::before { content: ''; position: absolute; inset: auto -20% -30% -20%; height: 70%; z-index: -1; background: radial-gradient(50% 60% at 30% 60%, rgba(240, 100, 45, .45), transparent 70%); }
.auth .brand { display: flex; align-items: center; gap: 12px; font: 700 20px 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; }
.auth .brand .logo { margin: 0; }
.auth .side h1 { margin-top: auto; font-size: clamp(34px, 3.4vw, 52px); line-height: 1.04; font-weight: 700; max-width: 14ch; }
.auth .side p { margin-top: 18px; color: #b9c4d8; font-size: 16px; max-width: 40ch; font-weight: 600; }
.auth .demo { margin-top: 34px; display: grid; gap: 8px; max-width: 420px; }
.auth .demo div { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.auth .demo .av { width: 34px; height: 34px; border-radius: 10px; }
.auth .demo b { font-weight: 800; }
.auth .demo small { display: block; color: #9fb0cb; font-weight: 600; font-size: 12px; }
.auth .demo .wk i { height: 16px; }
.auth .main { display: grid; place-items: center; padding: 40px 24px; }
.auth form { width: min(400px, 100%); }
.auth form h2 { font-size: 32px; font-weight: 700; }
.auth form > p { margin: 6px 0 24px; color: var(--muted); font-weight: 600; }
.auth .field { margin-bottom: 14px; }
.auth .field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.auth .field input { width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); outline: 0; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.auth .field input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(240, 100, 45, .12); }
.auth .btn { width: 100%; height: 48px; margin-top: 6px; font-size: 15px; }
.auth .alt { margin-top: 18px; text-align: center; color: var(--muted); font-weight: 600; }
.auth .alt a { color: var(--acc-ink); font-weight: 800; }
.auth .fine { margin-top: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: center; }
.auth .perks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -8px 0 22px; color: var(--ink2); font-weight: 700; font-size: 13px; }
.auth .perks span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good-bar); margin-right: 7px; vertical-align: middle; }
.alert { margin-bottom: 16px; padding: 11px 14px; border-radius: 11px; background: var(--bad-t); color: var(--bad); font-weight: 700; font-size: 13.5px; }

@media (max-width: 1280px) {
	.grid { grid-template-columns: minmax(0, 1fr) 360px; }
	.row { grid-template-columns: 22px minmax(160px, 1.3fr) minmax(120px, 1fr) 120px 148px; }
	.row .upd, .row.hdr span:last-child { display: none; }
}
@media (max-width: 1080px) {
	.grid { grid-template-columns: minmax(0, 1fr); }
	.rec { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); max-height: none; top: 0; border-radius: 0; z-index: 45; box-shadow: -30px 0 60px -30px rgba(15, 23, 38, .5); }
	.rec[hidden], .rec.idle { display: none !important; }
}
@media (max-width: 760px) {
	.app { grid-template-columns: minmax(0, 1fr); }
	.rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: 64px; flex-direction: row; justify-content: space-around; padding: 0 8px env(safe-area-inset-bottom, 0); }
	.rail .logo, .rail .sp, .rail .me { display: none; }
	.rail a.on::before { left: 11px; right: 11px; top: auto; bottom: -9px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
	.bar { padding: 0 16px; gap: 10px; }
	.wsp { display: none; }
	.bar .btn .bl { display: none; }
	.bar .btn { padding: 0 11px; }
	.wrap { padding: 20px 16px 120px; }
	.hd h1 { font-size: 34px; }
	.row { grid-template-columns: 22px minmax(0, 1fr) 96px; }
	.row > .pos, .row > .dist, .row.hdr span:nth-child(3), .row.hdr span:nth-child(4) { display: none; }
	.wk, .wkh { grid-template-columns: repeat(7, 10px); gap: 3px; }
	.tray { left: 50%; bottom: 76px; flex-wrap: wrap; justify-content: center; }
	.auth { grid-template-columns: minmax(0, 1fr); }
	.auth .side { display: none; }
	.f { grid-template-columns: minmax(0, 1fr); }
}
/* Superwide: the list keeps the space, the record panel and week strip grow so nothing looks marooned. */
@media (min-width: 1900px) {
	.grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 22px; }
	.wrap { padding: 32px 44px 120px; }
	/* Keep the top bar lined up with the centred page edges (wrap max 2320px + 44px padding). */
	.bar { padding-inline: max(32px, calc((100% - 2320px) / 2 + 44px)); }
}
@media (min-width: 2400px) {
	.grid { grid-template-columns: minmax(0, 1fr) 520px; }
	.wk, .wkh { grid-template-columns: repeat(7, 19px); gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
.sec h3 .wkchk { margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); } .sec h3 .wkchk:hover { color: var(--acc-ink); }
/* Five view tabs (List, Map, Shortlists, Ring round, Planner): scroll sideways on phones instead of wrapping. */
@media (max-width: 760px) {
	.views { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
	.views::-webkit-scrollbar { display: none; }
	.views a { flex: none; white-space: nowrap; padding: 0 10px; }
}
/* Working with / Inactive switch on Candidates */
.stsw { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.stsw button { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink2); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.stsw button:hover { border-color: #cfd4dc; }
.stsw button em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: var(--line2); color: var(--ink2); }
.stsw button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.stsw button.on em { background: rgba(255, 255, 255, .16); color: #fff; }
.stsw-hint { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-left: 6px; }
.row.s-inactive .who b, .row.s-inactive .pos { color: var(--muted); }
.row.s-inactive .wk { opacity: .45; }
.toast .undo { margin-left: 12px; background: none; border: 0; color: #ffb48f; font: inherit; font-weight: 800; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
	.stsw { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
	.stsw button { flex: none; }
	.stsw-hint { display: none; }
}
