/* INLAB app. Layout: left menu + page. Company page = design 16 (number strip, details on the left, boxes in pairs). */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --bg: #ffffff;
  --side: #f7f7f9;
  --sunk: #f6f6f9;
  --hover: rgba(22, 22, 44, 0.05);
  --line: #e6e6ec;
  --line-2: #d9d9e2;
  --text: #1b1b20;
  --muted: #5d5e69;
  --subtle: #6e6f7a;
  --accent: #5b5bd6;
  --accent-ink: #4545bd;
  --accent-soft: #ececfb;
  --on-accent: #ffffff;
  --ok: #1b7a49; --ok-soft: #e3f3e9;
  --bad: #b42d34; --bad-soft: #fbe9ea;
  --warn: #8a5207; --warn-soft: #fbf0dc; --warn-bar: #c27508;
  --track: #eeeef3;
  --shadow: 0 0 0 1px rgba(16, 16, 32, .06), 0 16px 40px -8px rgba(16, 16, 32, .22);
  --scrim: rgba(20, 20, 32, .32);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131418; --side: #0f1013; --sunk: #17181d; --hover: rgba(255, 255, 255, .06);
    --line: #26272e; --line-2: #33343d; --text: #ececf1; --muted: #a9aab5; --subtle: #8b8c97;
    --accent: #8585f0; --accent-ink: #b0b0ff; --accent-soft: rgba(133, 133, 240, .16); --on-accent: #101018;
    --ok: #4cc488; --ok-soft: rgba(76, 196, 136, .14); --bad: #f06d73; --bad-soft: rgba(240, 109, 115, .14);
    --warn: #e3a246; --warn-soft: rgba(227, 162, 70, .14); --warn-bar: #d99a3c; --track: #2a2b33;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 16px 40px -8px rgba(0, 0, 0, .6);
    --scrim: rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }

/* shell */
.shell { display: flex; min-height: 100%; }
.side { width: 232px; flex: none; background: var(--side); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px; font-weight: 700; letter-spacing: .02em; }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 7px 9px; border-radius: 7px; font-size: 13.5px; color: var(--muted); text-align: left; min-height: 36px; width: 100%; }
.nav-item:hover:not([aria-disabled="true"]) { background: var(--hover); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--hover); color: var(--text); font-weight: 600; }
.nav-item[aria-disabled="true"] { cursor: default; }
.side-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--bg); border-radius: 8px; padding: 7px 10px; color: var(--subtle); font-size: 13px; text-align: left; min-height: 36px; width: 100%; }
.side-search:hover { border-color: var(--subtle); }
.side-search kbd { margin-left: auto; font: 11px var(--font); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.main { flex: 1; min-width: 0; }
.page { padding: 16px 28px 40px; max-width: 1480px; }
@media (max-width: 860px) { .side { display: none; } .page { padding: 14px 16px 32px; } }

/* bits */
.crumbs { font-size: 12.5px; color: var(--subtle); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--subtle); }
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--text); min-height: 36px; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); background: var(--accent); }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.link-btn { border: 0; background: transparent; padding: 0; color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.6; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.info { background: var(--accent-soft); color: var(--accent-ink); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.mute { background: var(--hover); color: var(--muted); }
.chip.line { border: 1px solid var(--line-2); color: var(--muted); }
.chip.none { border: 1px dashed var(--line-2); color: var(--subtle); font-weight: 500; }
.logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 10.5px; flex: none; background: hsl(var(--h, 220) 42% 44%); }
.logo.soft { background: hsl(var(--h, 220) 40% 93%); color: hsl(var(--h, 220) 42% 32%); }
@media (prefers-color-scheme: dark) { .logo.soft { background: hsl(var(--h, 220) 30% 22%); color: hsl(var(--h, 220) 55% 78%); } }
table.t.list { table-layout: fixed; min-width: 860px; }
.t.list td { padding-top: 10px; padding-bottom: 10px; }
.t.list .co { min-width: 0; }
.t.list .co a, .t.list .co small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo.lg { width: 52px; height: 52px; border-radius: 12px; font-size: 18px; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 10.5px; flex: none; background: hsl(var(--h, 220) 38% 46%); }
.dim { color: var(--subtle); }
.num { font-variant-numeric: tabular-nums; }
.empty { color: var(--subtle); font-size: 13px; }
.note-later { font-size: 12px; color: var(--subtle); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 10px; }
.loading { padding: 40px 0; color: var(--subtle); }
.error-box { padding: 14px 16px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); }

/* list page */
.list-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.list-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.list-head .count { color: var(--subtle); font-size: 14px; }
.list-head .grow { flex: 1; }
.views { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.view { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 9px 10px; font-size: 13px; color: var(--muted); white-space: nowrap; margin-bottom: -1px; }
.view[aria-selected="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }
.view span { color: var(--subtle); font-size: 12px; margin-left: 4px; }
.toolbar { display: flex; gap: 8px; align-items: center; padding: 12px 0; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; min-height: 36px; width: min(340px, 100%); color: var(--subtle); background: var(--bg); }
.search input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-weight: 500; font-size: 12px; color: var(--subtle); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg); position: sticky; top: 0; }
.t th button { border: 0; background: transparent; padding: 0; color: inherit; font: inherit; }
.t th button:hover { color: var(--text); }
.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t td.dim, .t td.r { white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover td { background: var(--hover); }
.t .r { text-align: right; font-variant-numeric: tabular-nums; }
.co { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.co small { display: block; color: var(--subtle); font-size: 12px; }

/* company page */
.rec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 0 16px; }
.rec-title { flex: 1 1 320px; min-width: 0; }
.rec-title h1 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.rec-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.rec-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.strip { border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 13px 16px; min-width: 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .k { font-size: 12px; color: var(--subtle); }
.stat .v { font-size: 21px; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .stat { border-left: 0; border-top: 1px solid var(--line); } .stat:first-child { border-top: 0; } }
.rec-body { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 22px; align-items: flex-start; }
.details { flex: 1 1 250px; max-width: 300px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
@media (max-width: 860px) { .details { max-width: none; } }
.box-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.box-head h2 { font-size: 14px; font-weight: 650; }
.box-head .n { font-size: 12.5px; color: var(--subtle); }
.box-head .link-btn { margin-left: auto; }
/* Same rhythm as design 16: label, then value, 10px between fields. The value's hover box bleeds into the padding so text lines up with the label. */
.fields { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.field dt { font-size: 12px; color: var(--subtle); }
.field dd { margin: 0 -6px; padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.field dd.edit { cursor: text; }
.field dd.edit:hover { background: var(--hover); }
.field dd .ph { color: var(--subtle); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--accent); border-radius: 6px; padding: 4px 7px; background: var(--bg); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 80px; resize: vertical; }
.field .err { color: var(--bad); font-size: 12px; padding: 2px 6px; }
.field .row-btns { display: flex; gap: 6px; padding: 6px 6px 2px; }
.ref-edit { display: flex; flex-direction: column; gap: 4px; }
.mini { font-size: 11.5px; color: var(--subtle); }
.picker { position: relative; }
.pick-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; padding: 4px; }
.pick-list button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; font-size: 13px; }
.pick-list button[aria-selected="true"], .pick-list button:hover { background: var(--hover); }
.pick-list .dim { font-size: 12px; }
.picked { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; font-size: 13px; }
.addr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 0 0; }
.addr input:first-child { grid-column: 1 / -1; }
.boxes { flex: 999 1 460px; min-width: 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.box { flex: 1 1 calc(50% - 7px); min-width: 270px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.items { display: flex; flex-direction: column; font-size: 13px; }
.items > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.items > div:first-child { border-top: 0; padding-top: 0; }
.items .main-t { min-width: 0; overflow-wrap: anywhere; }
.items .main-t b { font-weight: 600; }
.items .sub { display: block; font-size: 12px; color: var(--subtle); }
.items .right { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.stage-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 4px 0; }
.stage-row .bar { flex: 1; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.stage-row .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.stage-row .lbl { width: 92px; flex: none; }
.stage-row .n { width: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.kind-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); color: var(--muted); flex: none; }
.kind-ic .ic { width: 13px; height: 13px; }
.kind-ic.note { background: var(--warn-soft); color: var(--warn); }
.kind-ic.meeting { background: var(--accent-soft); color: var(--accent-ink); }
.act { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.box-foot { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--subtle); }

/* section page */
.sec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.sec-head h1 { font-size: 20px; font-weight: 700; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); }
.fchip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.act-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; }
.act-list > div { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.act-list > div:first-child { border-top: 0; }
.act-list .detail { color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* dialog + toast */
.scrim { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: start center; padding: 10vh 16px 16px; z-index: 50; overflow-y: auto; }
.dialog { width: min(520px, 100%); background: var(--bg); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dlg-h { padding: 16px 20px 4px; font-size: 16px; font-weight: 650; }
.dlg-b { padding: 10px 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.fld input, .fld select, .fld textarea { font-size: 13.5px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 10px; width: 100%; }
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.dupe { display: flex; flex-direction: column; gap: 6px; padding: 9px 11px; border-radius: 8px; background: var(--warn-soft); font-size: 12.5px; color: var(--text); }
.dupe div { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.form-err { color: var(--bad); font-size: 12.5px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-size: 13px; z-index: 60; box-shadow: var(--shadow); }
.toast.bad { background: var(--bad); color: #fff; }

/* archive, menus, checkboxes, merges, duplicates */
.banner { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); font-size: 13px; }
.more { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 7px; font-size: 13px; }
.menu button:hover:not(:disabled) { background: var(--hover); }
.menu button.danger { color: var(--bad); }
.menu button:disabled { color: var(--subtle); cursor: not-allowed; }
.menu .hint { display: block; font-size: 11.5px; color: var(--subtle); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; }
dd.ro { color: var(--text); }
.auto { font-size: 11px; color: var(--subtle); margin-left: 6px; }
.merged-note { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.merged-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.dup-groups { display: flex; flex-direction: column; gap: 14px; }
.dup-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.dup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dup-head .grow { flex: 1; }
.dup-members { display: flex; flex-wrap: wrap; gap: 12px; }
.dup-card { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dup-card .co { min-width: 0; }
.dup-card .co small { display: block; color: var(--subtle); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup-meta { font-size: 12.5px; color: var(--muted); }
.dup-links { margin: 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.dup-card .btn { align-self: flex-start; margin-top: auto; }
.sub-h { font-size: 15px; font-weight: 650; margin: 26px 0 10px; }
.view .tab-badge { display: inline-block; margin-left: 5px; font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.nav-tools { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.nav-label { font-size: 11px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; padding: 0 9px 4px; }
.nav-badge { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.view:disabled { cursor: not-allowed; opacity: .6; }

/* "View as" banner */
.viewas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 28px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.viewas .ic { width: 16px; height: 16px; }
.viewas > span { flex: 1; min-width: 200px; }

/* permissions (design D) */
.perm-head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.perm-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.perm-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.perm-layout { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.roles { flex: 1 1 180px; max-width: 210px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.role { display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; min-height: 44px; }
.role:hover { background: var(--hover); }
.role[aria-current="true"] { background: var(--accent-soft); }
.role .rn { font-weight: 500; }
.role[aria-current="true"] .rn { color: var(--accent-ink); font-weight: 650; }
.role .rm { font-size: 12px; color: var(--subtle); }
.roles-sep { border-top: 1px solid var(--line); margin: 6px 0 2px; }
.roles .link-btn { padding: 7px 10px; text-align: left; font-size: 13px; min-height: 32px; }
.perm-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.perm-people { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.pchip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 3px 1px 10px; font-size: 12.5px; }
.pchip button { border: 0; background: transparent; color: var(--subtle); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; padding: 0; }
.pchip button:hover { background: var(--hover); color: var(--text); }
.perm-note { padding: 10px 14px; border-radius: 10px; background: var(--hover); font-size: 13px; }
.pgrid-wrap { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.pgrid { min-width: 760px; font-size: 13px; }
.prow { display: grid; grid-template-columns: minmax(200px, 1.3fr) 150px repeat(6, minmax(64px, .6fr)); align-items: center; border-bottom: 1px solid var(--line); }
.pgrid > .prow:last-child { border-bottom: 0; }
.prow > div { padding: 8px 6px; min-width: 0; }
.prow > div:first-child { padding-left: 16px; }
.prow .c { text-align: center; }
.phead { background: var(--sunk); font-size: 12px; color: var(--subtle); font-weight: 500; }
.phead > div { padding-top: 11px; padding-bottom: 11px; }
.phead b { font-size: 14px; color: var(--text); font-weight: 700; }
.prow.open { background: var(--accent-soft); }
.obj-btn { border: 0; background: transparent; padding: 2px 0; font-weight: 650; display: inline-flex; gap: 6px; align-items: center; min-height: 28px; }
.obj-btn .arrow { color: var(--subtle); width: 10px; font-size: 11px; }
.prow .tag { font-size: 11.5px; color: var(--subtle); font-weight: 400; margin-left: 6px; }
.prow .tags { display: block; font-size: 11.5px; color: var(--subtle); font-weight: 400; margin: -2px 0 0; }
.recs { font-size: 12.5px; border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 6px; background: var(--bg); min-height: 30px; max-width: 100%; }
.recs.theirs { background: var(--warn-soft); color: var(--warn); }
.recs.none { background: var(--hover); color: var(--subtle); }
.recs:disabled, .pcheck:disabled { cursor: not-allowed; }
.pcheck { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; cursor: pointer; vertical-align: middle; }
.frow { background: var(--sunk); }
.frow > div { padding-top: 6px; padding-bottom: 6px; }
.frow > div:first-child { padding-left: 46px; }
.frow .strong { font-weight: 650; }
.fstate { font-size: 12px; padding-left: 10px !important; }
.fstate.edit { color: var(--accent-ink); }
.fstate.read { color: var(--muted); }
.fstate.hidden { color: var(--bad); }
.perm-hint { margin: 0; font-size: 12.5px; color: var(--subtle); }
.rules { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.rules-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rules-head h2 { font-size: 17px; font-weight: 700; }
.rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.rule.off .rule-main { opacity: .6; }
.rule.req { border-style: dashed; }
.rule-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rule-title b { font-weight: 650; }
.rule-title .dim { font-size: 11.5px; }
.rule-desc { font-size: 13px; margin-top: 3px; }
.rule-meta { font-size: 12px; color: var(--subtle); margin-top: 3px; }
.rule-meta b { font-weight: 600; color: var(--muted); }
.switch { width: 40px; height: 24px; border-radius: 999px; border: 0; background: var(--line-2); position: relative; padding: 0; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] i { left: 19px; }
.log-list { max-height: 60vh; overflow: auto; display: flex; flex-direction: column; }
.log-list > div { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.log-list > div:last-child { border-bottom: 0; }
.log-list .dim { font-size: 12px; }
.menu .btn-label { display: inline-flex; gap: 6px; align-items: center; }

/* required fields */
.req-grid { min-width: 520px; }
.req-grid .prow { grid-template-columns: minmax(200px, 1.4fr) 120px minmax(140px, 1fr); }
.role:disabled { cursor: not-allowed; opacity: .55; }
.req { font-size: 11px; font-weight: 600; color: var(--bad); margin-left: 4px; }

/* company list: saved views, filters */
.views-sep { width: 1px; background: var(--line); margin: 8px 6px; flex: none; }
.view.add { color: var(--accent-ink); display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.view.add .ic { width: 13px; height: 13px; }
.toolbar { flex-wrap: wrap; }
.btn.on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.fpill { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 3px 2px 10px; background: var(--sunk); }
.fpill button { border: 0; background: transparent; color: var(--subtle); width: 22px; height: 22px; border-radius: 50%; padding: 0; font-size: 14px; line-height: 1; }
.fpill button:hover { background: var(--hover); color: var(--text); }
/* Filters: a panel along the right edge; the list shrinks to sit beside it */
.filter-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 100vw; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -12px 0 32px -18px rgba(16, 16, 32, .3); z-index: 40; display: flex; flex-direction: column; }
.filter-drawer .grow { flex: 1; }
.fd-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.fd-head h2 { font-size: 16px; font-weight: 700; }
.fd-head .n { font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.fd-x { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 8px; font-size: 20px; line-height: 1; color: var(--subtle); }
.fd-x:hover { background: var(--hover); color: var(--text); }
.fd-body { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.fd-foot { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.page.with-drawer { padding-right: 368px; }
@media (max-width: 900px) { .page.with-drawer { padding-right: 28px; } }
ul.plain { margin: 6px 0 0; padding-left: 18px; }

/* real logos (from each company's own website) */
.logo.img { background: #fff; border: 1px solid var(--line); padding: 3px; overflow: hidden; }
.logo.lg.img { padding: 6px; }
.logo.img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kind-ic.change { color: var(--subtle); }

/* permissions: roles, then objects, in the left list */
.side-h { font-size: 11px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px 2px; }
.roles .role.obj { min-height: 36px; padding: 6px 10px; }
.roles .role.obj .rm { font-size: 11.5px; }
/* Roles and Objects: two boxes, one above the other */
.side-stack { flex: 1 1 180px; max-width: 210px; display: flex; flex-direction: column; gap: 16px; }
.side-stack .roles { flex: none; max-width: none; }
.obj-name { font-weight: 650; display: inline-block; padding: 2px 0; }

/* clean-up list */
.banner.info { background: var(--accent-soft); color: var(--accent-ink); }
.cu-list { display: flex; flex-direction: column; gap: 10px; }
.cu-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cu-n { font-size: 22px; font-weight: 700; letter-spacing: -.015em; text-align: right; padding-top: 1px; }
.cu-title { font-weight: 650; }
.cu-why { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cu-ex { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12.5px; }
.cu-ex > a, .cu-ex > span:not(.dim) { border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 9px; background: var(--sunk); color: var(--text); }
.cu-ex > a:hover { border-color: var(--accent); text-decoration: none; }
.cu-ex .dim { padding: 2px 4px; }
.cu-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 760px) { .cu-item { grid-template-columns: 1fr; } .cu-n { text-align: left; } .cu-act { flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* person page (design 2C): card · timeline · related boxes */
.person-layout { display: grid; grid-template-columns: minmax(250px, 270px) minmax(0, 1fr) minmax(260px, 300px); gap: 16px; align-items: start; padding-top: 14px; }
@media (max-width: 1180px) { .person-layout { grid-template-columns: minmax(240px, 270px) minmax(0, 1fr); } .person-layout .rail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
@media (max-width: 760px) { .person-layout { grid-template-columns: 1fr; } }
.pcard { border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pcard-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; }
.pcard-top h1 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin-top: 4px; }
.pcard-menu { position: absolute; top: -6px; right: -4px; }
.av.xl { width: 64px; height: 64px; font-size: 22px; }
.pcard-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: 6px; }
.pcard-btns .btn { justify-content: center; padding: 6px 8px; font-size: 12.5px; min-height: 34px; text-decoration: none; }
.pcard-btns .btn .ic { width: 14px; height: 14px; }
.pcard-btns .btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.pcard .fields { border-top: 1px solid var(--line); padding-top: 12px; }
.works { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.works-h { display: flex; align-items: baseline; gap: 6px; font-weight: 650; }
.work { display: flex; gap: 10px; align-items: flex-start; }
.work.past { opacity: .72; }
.work .chips .chip { font-size: 11px; }
.timeline { min-width: 0; }
.tl { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tl-t { font-weight: 600; overflow-wrap: anywhere; }
.tl-s { font-size: 12px; }
.tl-d { color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-w { font-size: 12px; white-space: nowrap; }
.rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rail .box { flex: none; min-width: 0; }
.kind-ic.deal { background: var(--warn-soft); color: var(--warn); }
.kind-ic.email { background: var(--accent-soft); color: var(--accent-ink); }
.kind-ic.change { background: var(--hover); }
td.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Settings → Fields */
.fgrid { font-size: 13px; min-width: 560px; }
.frow2 { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(130px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr); gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.fgrid.narrow .frow2 { grid-template-columns: minmax(150px, 1.3fr) minmax(110px, 1fr) minmax(130px, 1fr); }
.frow2:hover { background: var(--hover); }
.frow2.on { background: var(--accent-soft); }
.frow2.off .fname { color: var(--subtle); text-decoration: line-through; text-decoration-color: var(--line-2); }
.frow2.left .fname { color: var(--muted); font-weight: 500; }
.frow2 > div:first-child { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.frow2 .chip { font-size: 11px; }
.fhead2 { background: var(--sunk); border-top: 0; font-size: 12px; color: var(--subtle); font-weight: 500; cursor: default; }
.fhead2:hover { background: var(--sunk); }
.fname { border: 0; background: transparent; padding: 0; font-weight: 600; text-align: left; color: var(--text); }
.frow2 .src { font-size: 12px; }
.fsec { padding: 10px 14px 6px; border-top: 1px solid var(--line); background: var(--sunk); font-size: 12px; }
.fill { display: flex; align-items: center; gap: 8px; }
.fill-bar { flex: 1; height: 6px; border-radius: 9px; background: var(--track); overflow: hidden; min-width: 40px; }
.fill-bar i { display: block; height: 100%; background: var(--accent); }
.fill-bar i.mid { background: var(--warn-bar); }
.fill-bar i.low { background: var(--bad); }
.fill-n { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 64px; text-align: right; }
.ro-box { border: 1px solid var(--line); background: var(--sunk); border-radius: 7px; padding: 7px 10px; font-size: 13.5px; color: var(--muted); }
.fd-body .fld .check { font-weight: 400; }
.help { font-size: 12px; color: var(--subtle); margin-top: 4px; }

/* ---------- deals ---------- */
.late { color: var(--warn) !important; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12.5px; padding: 5px 10px; min-height: 30px; border: 0; background: var(--bg); color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.board { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.bcol { background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.bcol.over { border-color: var(--accent); background: var(--accent-soft); }
.bcol-h { display: flex; align-items: baseline; gap: 6px; font-size: 13px; padding: 2px 2px 4px; }
.bcard { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: inherit; text-decoration: none; font-size: 13px; cursor: pointer; }
.bcard[draggable="true"] { cursor: grab; }
.bcard:hover { border-color: var(--line-2); box-shadow: 0 1px 3px rgba(16, 16, 32, .08); }
.bcard b { font-weight: 600; overflow-wrap: anywhere; }
.bcard .dim { font-size: 12px; }
.bcard-f { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.spath { display: flex; gap: 4px; margin-top: 14px; flex-wrap: wrap; }
.sp { flex: 1 1 120px; font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 10px; border: 1px solid var(--line); background: var(--sunk); color: var(--muted); border-radius: 8px; text-align: center; white-space: nowrap; }
.sp:not(:disabled) { cursor: pointer; }
.sp:not(:disabled):hover { border-color: var(--accent); color: var(--accent-ink); }
.sp.done { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.sp.now { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sp.now.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.sp.next:disabled { opacity: .75; }
.radio-list, .svc-list { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.svc-list { max-height: 300px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 760px) { .board { grid-template-columns: repeat(3, 78vw); } }
/* "Required" sits at the right end of a field's label line instead of on a line of its own */
.fld { position: relative; }
.fld > .req { position: absolute; top: 1px; right: 0; margin: 0; }

/* ---------- projects (design 6: the work left, the money right) ---------- */
.wm { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 10px; }
.wm-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wm-work { flex: 3 1 520px; }
.wm-money { flex: 2 1 340px; max-width: 440px; }
.wm-label { font-size: 12px; font-weight: 650; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; margin-bottom: -4px; }
.wm .box { flex: none; min-width: 0; }
.wm .strip { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pair { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.pair > .box { flex: 1 1 calc(50% - 7px); min-width: 250px; }
.meter { height: 6px; background: var(--track); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.cta-band { display: flex; align-items: center; gap: 12px; border: 1px solid var(--accent-soft); background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg)); border-radius: 12px; padding: 12px 16px; font-size: 13px; }
.banner.info { background: var(--accent-soft); border-color: transparent; color: var(--text); justify-content: space-between; gap: 12px; }
.won-project { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- user stories ---------- */
.spath.many .sp { flex: 1 1 96px; font-size: 11.5px; padding: 6px 6px; }
.story-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.story-ic .ic { width: 24px; height: 24px; }
.btn.go { background: var(--ok); border-color: var(--ok); color: #fff; font-weight: 600; }
.prose { font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ta { width: 100%; font: inherit; font-size: 13.5px; line-height: 1.5; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; background: var(--bg); color: var(--text); resize: vertical; box-sizing: border-box; }
.ta:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.row-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.testlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.testlist li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; }
.testlist li .check { align-items: flex-start; flex: 1; }
.testlist li .check input { margin-top: 2px; }
.testlist li.done span { color: var(--subtle); text-decoration: line-through; }
.testlist .x { font-size: 16px; line-height: 1; color: var(--subtle); }
.add-test input { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; border: 1px dashed var(--line-2); border-radius: 8px; padding: 7px 10px; background: var(--bg); color: var(--text); margin-top: 8px; }
.add-test input:focus { border-style: solid; border-color: var(--accent); outline: none; }
.subsec { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.subsec-h { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--subtle); margin-bottom: 4px; }
.clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sbar { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.sbar-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sbar-key i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.sgroup { margin-top: 16px; }
.sgroup-h { display: flex; align-items: baseline; gap: 10px; padding: 0 2px 8px; font-size: 14px; }
.sboard { overflow-x: auto; }

/* ---------- time (design 3: timer first) ---------- */
.time-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.time-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.time-side { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.time-grid .box { flex: none; min-width: 0; }
.person-pick { font: inherit; font-size: 13.5px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--text); margin-left: 12px; }
.timer-card { border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); border-radius: 14px; padding: 18px 20px; }
.timer-card.idle { border-color: var(--line); background: var(--sunk); }
.timer-card.due { border-color: var(--warn-bar); background: var(--warn-soft); }
.tc-k { font-size: 12.5px; font-weight: 650; color: var(--ok); }
.timer-card.due .tc-k { color: var(--warn); }
.tc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tc-story { font-size: 20px; font-weight: 700; margin-top: 2px; }
.tc-details { font: inherit; font-size: 13.5px; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; background: var(--bg); color: var(--text); margin-top: 8px; width: 100%; box-sizing: border-box; }
.tc-details.ro { border-style: dashed; color: var(--muted); }
.tc-clock { font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tc-due { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 13.5px; }
.btn.stop { background: var(--bg); border-color: var(--bad); color: var(--bad); font-weight: 600; }
.restart { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.restart-tile { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.restart-tile:hover { border-color: var(--ok); }
.restart-tile b { display: block; font-weight: 600; }
.restart-tile .dim { display: block; font-size: 12px; }
.play { width: 30px; height: 30px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 12px; flex: none; }
.tentry { display: grid; grid-template-columns: 130px minmax(0, 1fr) 64px 18px; gap: 12px; align-items: start; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.tentry.click { cursor: pointer; }
.tentry.click:hover { background: var(--hover); }
.t-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.t-det { color: var(--text); margin-top: 2px; overflow-wrap: anywhere; }
.t-h { text-align: right; font-weight: 650; }
.t-h .run { color: var(--ok); font-weight: 600; }
.t-bill { color: var(--line-2); font-weight: 700; text-align: center; }
.t-bill.on { color: var(--ok); }
.wk-row { display: grid; grid-template-columns: 70px 1fr 56px; gap: 8px; align-items: center; width: 100%; border: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--muted); padding: 4px 2px; border-radius: 6px; cursor: pointer; text-align: left; }
.wk-row.on { background: var(--accent-soft); color: var(--accent-ink); }
.wk-row b { text-align: right; color: var(--text); }
.wk-bar { height: 6px; background: var(--track); border-radius: 99px; overflow: hidden; }
.wk-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.wk-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-size: 13px; }
.timer-pill { display: flex; align-items: center; gap: 8px; margin: 6px 4px 0; padding: 7px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--text); text-decoration: none; font-size: 12.5px; }
.timer-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.timer-pill b { font-variant-numeric: tabular-nums; }
.timer-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--muted); }
.timer-pill.due { background: var(--warn-soft); }
.timer-pill.due i { background: var(--warn-bar); }
.checkin { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 28px; background: var(--warn-soft); color: var(--text); font-size: 13px; border-bottom: 1px solid color-mix(in srgb, var(--warn-bar) 40%, transparent); }
.checkin > span { flex: 1; min-width: 240px; }
@media (max-width: 640px) { .tentry { grid-template-columns: 1fr 56px 18px; } .t-when { grid-column: 1 / -1; } }

.box-head .day-arrow { margin-left: 0; font-size: 16px; padding: 0 4px; }
.box-head .day-arrow:disabled { color: var(--line-2); }

/* Sidebar: who is signed in (11/17). Settings → Sign-in. */
.side-me { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.side-me-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-box { flex: none; max-width: 720px; margin-bottom: 18px; }
.si-box > .btn { align-self: flex-start; }
