/* Roof Smart Portal. Colours from the navy logo (Mike, 24 Nov 2026: "the darker navy one"):
   navy #0d1a36 and orange #f7941d. White page, dark text (CLAUDE.md: every page on a white background). */
:root { color-scheme: only light; --ink:#16202a; --muted:#64707d; --line:#e3e8ee; --bg:#f4f7fa;
  --orange:#f7941d; --blue:#0d1a36; --head:#0d1a36; --navy:#0d1a36; --navy2:#0d1a36; --soft:#fff5e8;
  --link:#0d1a36; --bad:#b42318; --good:#1a7f37; --side:248px; }
* { box-sizing: border-box; }
html, body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
[hidden] { display:none !important; }
a { color:var(--link); }

/* ---- frame: left menu, top bar */
#side { position:fixed; inset:0 auto 0 0; width:var(--side); background:linear-gradient(180deg, var(--navy) 0%, var(--navy2) 100%);
  color:#fff; display:flex; flex-direction:column; z-index:30; overflow-y:auto; }
#side .brand { display:block; margin:16px 16px 10px; padding:10px; background:#fff; border-radius:12px; text-align:center; }
#side .brand img { height:auto; width:100%; max-height:70px; display:block; }
#nav { flex:1; padding:6px 10px 16px; }
.navgroup { margin-top:10px; } .navhead { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#f7941d; padding:6px 10px; }
#nav a { display:flex; align-items:center; gap:11px; padding:9px 12px; border-radius:9px; color:#e6eef5; text-decoration:none; font-size:14.5px; }
#nav a:hover { background:rgba(255,255,255,.08); } #nav a.on { background:var(--orange); color:var(--navy); font-weight:600; }
.ico { width:19px; height:19px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ico.soft { color:var(--head); }
.sidefoot { padding:14px 22px 20px; font-size:12px; color:#9fb6c9; border-top:1px solid rgba(255,255,255,.08); }
#wrap { margin-left:var(--side); min-height:100vh; display:flex; flex-direction:column; }
#top { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:14px; padding:10px 24px; background:#fff; border-bottom:1px solid var(--line); }
#menubtn { display:none; font-size:18px; }
.searchbox { position:relative; flex:1; max-width:560px; }
.searchbox input { width:100%; padding:9px 52px 9px 14px; border:1px solid var(--line); border-radius:10px; background:var(--bg); font:inherit; }
.searchbox input:focus { outline:2px solid var(--blue); background:#fff; }
.searchbox kbd { position:absolute; right:10px; top:8px; font:12px inherit; color:var(--muted); border:1px solid var(--line); border-radius:5px; padding:1px 5px; background:#fff; }
#results { position:absolute; left:0; right:0; top:44px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px rgba(16,32,48,.14); overflow:hidden; }
#results .hit { display:flex; gap:8px; align-items:center; width:100%; text-align:left; background:#fff; color:var(--ink); border:0; border-radius:0; padding:9px 12px; }
#results .hit:hover, #results .hit.first { background:var(--soft); }
.who { margin-left:auto; display:flex; align-items:center; gap:10px; }
.who #who { display:flex; align-items:center; gap:10px; } .whotext b { display:block; font-size:14px; } .whotext small { color:var(--muted); font-size:12px; }
.avatar { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg, var(--orange), var(--blue)); color:#fff; font-weight:700; font-size:13px; flex:none; }
.avatar.sm { width:30px; height:30px; font-size:11px; } .avatar.big { width:84px; height:84px; font-size:28px; border:4px solid rgba(255,255,255,.9); }
main { padding:22px 24px; width:100%; max-width:1400px; }
footer { padding:10px 24px 26px; color:var(--muted); font-size:12px; }
body.signed-out #side, body.signed-out #top { display:none; } body.signed-out #wrap { margin-left:0; }

/* ---- type, controls */
h1 { font-size:24px; color:var(--ink); margin:2px 0 14px; }
h2 { font-size:14px; color:var(--ink); margin:24px 0 8px; text-transform:uppercase; letter-spacing:.04em; border-left:4px solid var(--orange); padding-left:8px; }
h2.plain { border:0; padding:0; margin:18px 0 8px; } h3 { font-size:16px; margin:0 0 10px; }
p { margin:6px 0; } .muted { color:var(--muted); } .small { font-size:13px; } .block { display:block; } .grow { flex:1; min-width:0; }
.note { background:#fff; border:1px solid var(--line); border-left:4px solid var(--blue); padding:9px 13px; margin:10px 0; border-radius:8px; font-size:14px; }
.err { color:var(--bad); } .ok { color:var(--good); }
button, select, input, textarea { font:inherit; }
button { background:var(--head); color:#fff; border:0; border-radius:8px; padding:8px 14px; cursor:pointer; }
button:hover { filter:brightness(1.08); }
button.quiet { background:#fff; color:var(--ink); border:1px solid var(--line); padding:6px 11px; }
button.danger { background:#fff; color:var(--bad); border:1px solid #f3c2bd; padding:4px 9px; }
button:disabled { opacity:.45; cursor:default; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  border:1px solid #cfd6de; border-radius:8px; padding:7px 9px; background:#fff; color:var(--ink); max-width:100%; }
.row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:8px 0; } .row.between { justify-content:space-between; }
.card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; margin:12px 0; box-shadow:0 1px 2px rgba(16,32,48,.04); }
.pill { display:inline-block; font-size:12px; padding:1px 8px; border-radius:999px; background:var(--soft); color:var(--head); margin-left:6px; font-weight:400; }
details { background:#fff; border:1px solid var(--line); border-radius:10px; padding:9px 13px; margin:8px 0; } summary { cursor:pointer; font-weight:600; }
.stats { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:12px; margin:12px 0; }
.stat { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 14px; } .stat b { display:block; font-size:21px; } .stat span { color:var(--muted); font-size:13px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:12px; }
.tile { display:block; background:#fff; border:1px solid var(--line); border-top:3px solid var(--blue); border-radius:12px; padding:14px; text-decoration:none; color:var(--ink); font-weight:600; }
.tile:hover { border-color:var(--orange); } .tile small { display:block; color:var(--muted); font-weight:400; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tile.person { cursor:default; } .tile.person a { display:block; font-weight:400; font-size:13px; margin-top:4px; overflow:hidden; text-overflow:ellipsis; } .tile.person button { margin-top:8px; }

/* ---- tables */
.tablewrap { overflow-x:auto; background:#fff; border:1px solid var(--line); border-radius:10px; }
table { border-collapse:collapse; width:100%; font-size:14px; }
th, td { padding:8px 11px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; white-space:nowrap; max-width:340px; overflow:hidden; text-overflow:ellipsis; }
th { background:#f6f8fa; color:var(--ink); cursor:pointer; user-select:none; position:sticky; top:0; font-weight:600; }
td.num, th.num { text-align:right; font-variant-numeric:tabular-nums; }
tr:last-child td { border-bottom:0; } tr.cancelled td { color:var(--muted); text-decoration:line-through; }

/* ---- sign-in */
.signin { max-width:420px; margin:9vh auto; text-align:center; border-top:5px solid var(--orange); } .signin input { width:100%; margin:6px 0; } .signin .row { justify-content:center; }
.biglogo { display:block; width:240px; max-width:80%; height:auto; margin:0 auto 6px; }

/* ---- home */
.hero { position:relative; overflow:hidden; display:flex; align-items:center; gap:22px; padding:26px 30px; border-radius:16px; color:#fff;
  background:var(--navy); box-shadow:0 6px 18px rgba(12,45,72,.18); }
.hero h1 { color:#fff; font-size:28px; margin:0 0 4px; } .hero p { margin:0 0 8px; color:#e4e7ee; } .hero small { color:#f7941d; font-weight:600; }
.hero .roofs { position:absolute; right:22px; bottom:-6px; width:260px; height:120px; opacity:.9; } .hero .roofs svg { width:100%; height:100%; }
.hero > * { position:relative; }
.actions h3 { margin-bottom:12px; }
.actionrow { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px; }
.action { display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; padding:12px 8px; border-radius:12px; text-decoration:none; color:var(--ink); font-size:13.5px; }
.action:hover { background:var(--soft); }
.actionicon { display:inline-flex; width:48px; height:48px; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:12px; color:var(--head); background:#fff; }
.actionicon .ico { width:22px; height:22px; }
.dash { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; align-items:start; }
.widget { margin:0; } .widget.wide { grid-column:span 2; }
.whead { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:8px; } .whead h3 { margin:0; } .whead a { text-decoration:none; }
.wlist { display:flex; flex-direction:column; } .witem { display:flex; gap:12px; align-items:flex-start; padding:9px 0; border-bottom:1px solid var(--line); }
.witem:last-child { border-bottom:0; } .witem b { font-size:14px; } .witem p { margin:2px 0; } .witem .amt { margin-left:auto; white-space:nowrap; }
.datebox { flex:none; width:46px; text-align:center; border:1px solid var(--line); border-radius:9px; padding:3px 0; line-height:1.1; }
.datebox small { display:block; font-size:10.5px; color:var(--head); font-weight:700; } .datebox b { font-size:18px; }
.dot { width:9px; height:9px; border-radius:50%; background:var(--blue); margin-top:6px; flex:none; display:inline-block; }
.dot.pin { background:var(--orange); } .dot.ok { background:var(--good); margin:0; } .dot.bad { background:var(--bad); margin:0; }
.kpis { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:10px; }
.kpi { background:var(--bg); border-radius:10px; padding:10px 12px; } .kpi span { display:block; font-size:12.5px; color:var(--muted); }
.kpi b { display:block; font-size:22px; margin:2px 0; } .kpi small { font-size:12px; } .up { color:var(--good); } .down { color:var(--bad); }
.board { list-style:none; margin:0; padding:0; } .board li { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); } .board li:last-child { border:0; }
.rank { width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; background:var(--bg); color:var(--muted); }
.rank.r1 { background:#fde7c4; color:#9a5a00; } .rank.r2 { background:#e6edf3; color:#3e4c59; } .rank.r3 { background:#f6dcc8; color:#8a4b1f; }
.apps { display:grid; grid-template-columns:repeat(auto-fill, minmax(92px, 1fr)); gap:8px; }
.app { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; text-decoration:none; color:var(--ink); font-size:12px; padding:8px 4px; border-radius:10px; }
.app:hover { background:var(--soft); }
.appicon { width:40px; height:40px; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; color:#fff;
  background:linear-gradient(135deg, var(--blue), var(--head)); }
.app:nth-child(3n+2) .appicon { background:linear-gradient(135deg, #f9a940, var(--orange)); } .app:nth-child(3n) .appicon { background:linear-gradient(135deg, #3fbf9b, #1a7f6a); }
.pickrow { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--line); }

/* ---- side panel (record, customize) */
.modal { position:fixed; inset:0; background:rgba(16,32,48,.45); z-index:50; display:flex; justify-content:flex-end; }
.sheet { background:#fff; width:min(560px, 100%); height:100%; overflow:auto; padding:18px 20px; box-shadow:-4px 0 18px rgba(0,0,0,.2); }
.field { padding:8px 0; border-bottom:1px solid var(--line); } .field label { display:block; font-size:12px; color:var(--muted); margin-bottom:2px; }
.field div { white-space:pre-wrap; overflow-wrap:anywhere; }

/* ---- phone and tablet */
@media (max-width:1100px) { .dash { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:860px) {
  #side { transform:translateX(-100%); transition:transform .2s; } body.menu-open #side { transform:none; box-shadow:4px 0 24px rgba(0,0,0,.3); }
  #wrap { margin-left:0; } #menubtn { display:inline-block; } .whotext, .searchbox kbd { display:none; }
  main { padding:16px; } #top { padding:10px 16px; } .dash { grid-template-columns:1fr; } .widget.wide { grid-column:auto; }
  .hero { padding:20px; } .hero .roofs { width:150px; opacity:.45; } .avatar.big { width:60px; height:60px; font-size:20px; }
}

/* ---- the Airtable-style grid */
.tabs { display:flex; gap:2px; overflow-x:auto; border-bottom:2px solid var(--line); margin:8px 0 0; }
.tabs a { padding:8px 12px; white-space:nowrap; text-decoration:none; color:var(--muted); border-radius:8px 8px 0 0; font-size:14px; }
.tabs a:hover { background:var(--soft); } .tabs a.on { background:var(--head); color:#fff; font-weight:600; }
.toolbar { padding:6px 0; } .toolbar input[type=text] { min-width:200px; }
button.quiet.active { background:#fff4e5; border-color:var(--orange); }
.grid { max-height:calc(100vh - 290px); min-height:320px; overflow:auto; }
.grid table { font-size:13px; } .grid th, .grid td { border-right:1px solid var(--line); max-width:260px; padding:5px 8px; }
.grid thead th { position:sticky; top:0; z-index:2; background:#f6f8fa; font-weight:600; }
.grid td.rn, .grid th.rn { color:var(--muted); text-align:right; width:44px; position:sticky; left:0; background:#f6f8fa; z-index:1; }
.grid thead th.rn { z-index:3; }
.grid td.primary, .grid th.primary { position:sticky; left:44px; background:#fff; z-index:1; font-weight:600; box-shadow:2px 0 0 var(--line); }
.grid thead th.primary { background:#f6f8fa; z-index:3; }
.grid tbody tr:hover td { background:#fff5e8; cursor:pointer; }
.grid tr.grouphead td { background:#fff4e5; position:sticky; left:0; cursor:default; }
.chip { display:inline-block; padding:0 7px; border-radius:999px; background:#eef2f6; margin-right:3px; font-size:12px; line-height:1.6; }
.chip.link { background:#e7eaf2; border-radius:4px; }
.fieldlist { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:2px 12px; max-height:260px; overflow:auto; font-size:13px; }
.field { padding:8px 0; border-bottom:1px solid var(--line); } .field label { display:block; font-size:12px; color:var(--muted); margin-bottom:2px; }
.field div { white-space:pre-wrap; overflow-wrap:anywhere; }

/* ---- tasks, org chart, bell */
.toolbar input[type=search] { min-width:220px; }
.kanban { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(250px, 1fr); gap:14px; overflow-x:auto; padding-bottom:8px; align-items:start; }
.kcol { background:#eef2f6; border-radius:12px; padding:10px; max-height:calc(100vh - 300px); overflow-y:auto; }
.khead { display:flex; align-items:center; gap:8px; font-weight:600; padding:2px 4px 8px; position:sticky; top:-10px; background:#eef2f6; }
.taskcard { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-bottom:8px; cursor:pointer; box-shadow:0 1px 1px rgba(16,32,48,.04); }
.taskcard:hover { border-color:var(--blue); } .taskcard b { display:block; font-size:14px; line-height:1.35; margin:2px 0 6px; }
.owners { display:flex; gap:4px; flex-wrap:wrap; } .owners.wide { margin:4px 0; }
.stars { color:var(--orange); font-size:12px; letter-spacing:1px; } .due { font-size:12px; color:var(--muted); } .due.late { color:var(--bad); font-weight:600; }
.sdot { width:10px; height:10px; border-radius:50%; display:inline-block; flex:none; margin-top:5px; background:#9aa5b1; }
.s-Pending { background:var(--blue); } .s-Inprogress { background:var(--orange); } .s-Waiting { background:#b38600; } .s-Done { background:var(--good); } .s-Unassigned { background:#c4cbd3; }
.tasklink { text-decoration:none; color:var(--ink); } .tasklink:hover b { color:var(--head); }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; margin:12px 0; } .grid2 label, label.block { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
.grid2 label select, .grid2 label input, label.block textarea { color:var(--ink); font-size:14px; } .lbl { font-size:12px; color:var(--muted); }
.chip .x { background:none; color:var(--muted); border:0; padding:0 0 0 6px; font-size:14px; line-height:1; }
.comment { display:flex; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); } .comment p { margin:2px 0 0; white-space:pre-wrap; }
.hist { padding:4px 0; border-bottom:1px dashed var(--line); }
.orgwrap { overflow-x:auto; background:#fff; border:1px solid var(--line); border-radius:14px; padding:20px 10px; }
.orgtree, .orgtree ul { display:flex; justify-content:center; padding:18px 0 0; margin:0; position:relative; list-style:none; }
.orgtree { padding-top:0; min-width:max-content; }
.orgtree li { position:relative; padding:18px 6px 0; display:flex; flex-direction:column; align-items:center; }
.orgtree li::before, .orgtree li::after { content:""; position:absolute; top:0; width:50%; height:18px; border-top:2px solid #c9d3dd; }
.orgtree li::before { right:50%; } .orgtree li::after { left:50%; border-left:2px solid #c9d3dd; }
.orgtree li:only-child::before, .orgtree li:only-child::after { display:none; } .orgtree li:only-child { padding-top:0; }
.orgtree li:first-child::before, .orgtree li:last-child::after { border:0; }
.orgtree li:last-child::before { border-right:2px solid #c9d3dd; border-radius:0 6px 0 0; } .orgtree li:first-child::after { border-radius:6px 0 0 0; }
.orgtree ul::before { content:""; position:absolute; top:0; left:50%; height:18px; border-left:2px solid #c9d3dd; }
.orgtree > li { padding-top:0; } .orgtree > li::before, .orgtree > li::after { display:none; }
.orgcard { background:#fff; border:1px solid var(--line); border-top:4px solid var(--blue); border-radius:10px; padding:9px 11px; min-width:150px; max-width:200px;
  text-align:left; cursor:pointer; box-shadow:0 2px 4px rgba(16,32,48,.06); font-size:13px; }
.orgcard:hover { border-color:var(--orange); } .orgcard b { display:block; font-size:13.5px; margin-bottom:4px; }
.orgcard.planned { border-top-color:#c4cbd3; border-style:dashed; background:#fbfcfd; }
.orgpeople { display:flex; flex-direction:column; gap:3px; } .orgperson { display:flex; align-items:center; gap:6px; }
.orgmail { display:block; font-size:11.5px; margin:1px 0 0 28px; color:var(--muted, #5b6573); }
.orgcard .pill { margin:6px 0 0; }
.bellbox { position:relative; }
.iconbtn { position:relative; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:10px; padding:7px 9px; display:inline-flex; }
.badge { position:absolute; top:-6px; right:-6px; background:#e5484d; color:#fff; font-size:11px; font-weight:700; border-radius:999px; min-width:18px; height:18px; padding:0 5px; display:inline-flex; align-items:center; justify-content:center; }
#bellmenu { position:absolute; right:0; top:44px; width:min(380px, 92vw); max-height:70vh; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 30px rgba(16,32,48,.18); z-index:40; }
.bellhead { padding:10px 14px; margin:0; border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; }
.note-item { display:flex; gap:10px; width:100%; text-align:left; background:#fff; color:var(--ink); border:0; border-bottom:1px solid var(--line); border-radius:0; padding:10px 14px; }
.note-item:hover { background:var(--soft); filter:none; } .note-item.unread { background:#f3faff; } .note-item.unread b::before { content:"● "; color:var(--blue); }
.nicon { color:var(--head); margin-top:2px; } .nicon.k-task_overdue { color:var(--bad); } .nicon.k-announcement { color:var(--orange); }
@media (max-width:860px) { .grid2 { grid-template-columns:1fr; } .kanban { grid-auto-columns:85%; } }

.note.practice { border-left-color:var(--orange); background:#fff8ee; }
.linkhits { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; } .linkhits button { padding:3px 8px; }
.field input[type=text], .field input[type=search] { width:100%; }

/* ---- forms */
.sheet.wide { width:min(760px, 100%); }
.choices { display:flex; flex-direction:column; gap:6px; } .choices.inline { flex-direction:row; flex-wrap:wrap; gap:14px; }
.choice { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--ink); }
label.q { font-size:14px !important; color:var(--ink) !important; font-weight:600; margin-bottom:6px !important; }
.eventcard { background:var(--soft); }
.qcard { padding:10px 12px; margin:8px 0; }
.formtile { cursor:pointer; display:flex; flex-direction:column; gap:4px; } .formtile .pill { align-self:flex-start; margin:0; }
.barrow { display:grid; grid-template-columns:120px 1fr 40px; gap:10px; align-items:center; padding:3px 0; font-size:14px; }
.bar { height:12px; background:var(--bg); border-radius:6px; overflow:hidden; } .bar span { display:block; height:100%; background:linear-gradient(90deg, var(--blue), var(--head)); }
.answers { margin:0; padding-left:18px; font-size:14px; } .answers li { padding:3px 0; border-bottom:1px solid var(--line); }
.st-open { background:#dcfce7; color:var(--good); } .st-draft { background:#eef2f6; color:var(--muted); } .st-closed { background:#fee2e2; color:var(--bad); }

/* ---- polish pass (23 Nov 2026) */
.subtitle { color:var(--muted); margin:-8px 0 16px; font-size:14.5px; max-width:900px; }
h1 { letter-spacing:-.01em; }
.dash { align-items:stretch; } .widget { display:flex; flex-direction:column; } .widget.full { grid-column:1 / -1; }
.apps { grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); }
.appicon.hasimg { background:#fff; border:1px solid var(--line); } .appicon img { width:24px; height:24px; }
.whead a { white-space:nowrap; }
td { max-width:280px; } .wraptext td { white-space:normal; }
.signin { padding:34px 32px 22px; box-shadow:0 12px 40px rgba(12,45,72,.12); } .signin h1 { margin:8px 0 6px; }
.signin input { margin:14px 0 10px; padding:11px 12px; font-size:15px; } button.full { width:100%; padding:11px 14px; font-size:15px; margin-top:6px; }
.signfoot { margin-top:18px; }
body.signed-out { background:linear-gradient(160deg, #f4f5f8 0%, #fafafa 55%, #fff4e8 100%); min-height:100vh; }
.sidefoot { display:flex; flex-direction:column; gap:8px; } .sidefoot button { align-self:flex-start; background:transparent; color:#cfe0ec; border-color:rgba(255,255,255,.25); }
.sidefoot button:hover { background:rgba(255,255,255,.08); }
.note { font-size:14px; }
@media (max-width:860px) { #signout { display:none; } .searchbox { min-width:0; } #top { gap:8px; } .widget.full { grid-column:auto; } }

.dashwrap { display:flex; flex-direction:column; gap:16px; }
.masonry { column-count:3; column-gap:16px; } .masonry > .widget { break-inside:avoid; margin:0 0 16px; display:block; width:100%; }
@media (max-width:1100px) { .masonry { column-count:2; } } @media (max-width:860px) { .masonry { column-count:1; } }

.app .appicon.hasimg { background:#fff !important; }
.tile.person small { white-space:normal; overflow:visible; }
@media (max-width:640px){ .hero .roofs{display:none} .hero h1{font-size:22px} .hero{gap:14px} }
.rshows { font-weight:400; margin-left:4px; }
.kanban.five { grid-auto-columns:minmax(210px, 1fr); }
.kcol.over { background:#fff1e0; outline:2px dashed var(--blue); outline-offset:-2px; }
.taskcard.movable { cursor:grab; } .taskcard.dragging { opacity:.45; }
.actionicon.app { border:none; background:none; } .actionicon.app .appicon { width:44px; height:44px; }
.actions .whead { margin-bottom:12px; }
.actionrow { grid-template-columns:repeat(auto-fit, minmax(110px, 1fr)); }
/* Settings */
.segtabs { display:inline-flex; gap:4px; background:#eef2f6; padding:4px; border-radius:10px; margin:4px 0 16px; }
.segtabs button { background:none; border:none; color:var(--ink); padding:7px 16px; border-radius:7px; font-weight:600; box-shadow:none; }
.segtabs button.on { background:#fff; color:var(--head); box-shadow:0 1px 2px rgba(16,32,48,.12); }
.formgrid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; margin:8px 0 12px; }
.formfield { display:flex; flex-direction:column; gap:5px; font-size:13px; font-weight:600; color:var(--muted); }
.formfield input, .formfield select { width:100%; }
.boardtable th { white-space:normal; min-width:74px; max-width:100px; vertical-align:bottom; line-height:1.25; overflow:visible; text-overflow:clip; }
.boardtable th:nth-child(2) { max-width:none; }
.permgrid table th { white-space:normal; min-width:84px; max-width:110px; font-size:12px; text-align:center; vertical-align:bottom; }
.permgrid table td { text-align:center; }
.permgrid .sticky { position:sticky; left:0; background:#fff; text-align:left; min-width:170px; z-index:1; }
.permgrid thead .sticky { background:#f6f8fa; }
.permgrid .adm { background:#f8fafc; }
.permgrid .adminrow td { background:#fbf7ee; } .permgrid .adminrow .sticky { background:#fbf7ee; }
.fixedtick { color:var(--blue); font-weight:700; }
.pill.strong { background:#e7eaf2; color:var(--head); }
.block { display:block; }
.pagelist { max-height:60vh; overflow:auto; margin:8px 0 12px; } .pagelist select { min-width:200px; }
.appicon.own img { width:36px; height:auto; object-fit:contain; } .actionicon.app .appicon.own img { width:40px; }
/* Base — the spreadsheet */

.filterrow { gap:6px; align-items:center; margin:4px 0; flex-wrap:wrap; }
.swatch { display:inline-block; width:14px; height:14px; border-radius:4px; border:1px solid rgba(0,0,0,.08); }
.fieldlist.cols { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:4px 14px; max-height:320px; overflow:auto; }
table.sheetgrid { border-collapse:separate; border-spacing:0; table-layout:fixed; width:max-content; min-width:100%; font-size:13px; }
table.sheetgrid th, table.sheetgrid td { border-right:1px solid #e8edf2; border-bottom:1px solid #e8edf2; padding:6px 8px; height:34px; max-width:none;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; background:#fff; vertical-align:middle; }
table.sheetgrid thead th { position:sticky; top:0; z-index:3; background:#f6f8fa; font-weight:600; color:var(--head); cursor:pointer; user-select:none; }
table.sheetgrid thead th.sticky { z-index:5; }
table.sheetgrid .sticky { position:sticky; z-index:2; }
table.sheetgrid td.sticky { background:#fff; }
table.sheetgrid tr:hover td { background:#f8fbfe; }
table.sheetgrid tr.picked td { background:#fff5e8; }
table.sheetgrid td.rn, table.sheetgrid th.rn { width:56px; color:var(--muted); font-size:12px; text-align:left; padding:0 6px; }
table.sheetgrid td.rn input, table.sheetgrid th.rn input { margin:0 4px 0 0; vertical-align:middle; }
table.sheetgrid td.rn .expand { display:none; background:none; border:none; box-shadow:none; color:var(--blue); padding:0 2px; font-size:14px; cursor:pointer; }
table.sheetgrid tr:hover td.rn .expand { display:inline; }
table.sheetgrid tr:hover td.rn .rnum { display:none; }
table.sheetgrid td.primary { font-weight:600; }
table.sheetgrid td.calc { color:#334155; background:#fcfdfe; }
table.sheetgrid td.num { text-align:right; font-variant-numeric:tabular-nums; }
table.sheetgrid td.sel { background:#e3f1fb !important; }
table.sheetgrid td.anchor { box-shadow:inset 0 0 0 2px var(--blue); background:#fff !important; }
table.sheetgrid .chip { margin-right:3px; }
table.sheetgrid .tickcell { color:var(--blue); font-weight:700; }
table.sheetgrid .fico { color:var(--muted); font-weight:500; margin-right:6px; font-size:12px; }
table.sheetgrid .sorted { color:var(--blue); }
table.sheetgrid th .resize { position:absolute; right:0; top:0; bottom:0; width:6px; cursor:col-resize; }
table.sheetgrid th .resize:hover { background:rgba(41,171,226,.35); }
table.sheetgrid th { position:sticky; }
table.sheetgrid th.dropto { box-shadow:inset 3px 0 0 var(--blue); }
table.sheetgrid tr.grouphead td { background:#f1f5f9; font-size:13px; cursor:pointer; }
table.sheetgrid tr.grouphead .caret { display:inline-block; width:14px; color:var(--muted); }
table.sheetgrid tr.addrow td { background:#fff; height:36px; }
table.sheetgrid td.emptycell { padding:20px; text-align:center; }
.cellinput { width:100%; height:26px; border:none; outline:none; padding:0; font:inherit; background:transparent; }
.gridfoot { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.ctxmenu { position:fixed; z-index:200; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 10px 30px rgba(16,32,48,.18); padding:6px; min-width:220px; }
.ctxmenu button { display:block; width:100%; text-align:left; background:none; border:none; box-shadow:none; color:var(--ink); padding:7px 10px; border-radius:6px; font-weight:400; }
.ctxmenu button:hover { background:#f1f5f9; }
.ctxmenu button.danger { color:#b42318; }
.ctxmenu button:disabled { color:#b6c2cf; }
.ctxmenu hr { border:none; border-top:1px solid var(--line); margin:4px 0; }
.sheet.wide { max-width:760px; }
.stickybar { position:sticky; bottom:-18px; background:#fff; padding:10px 0; margin:12px 0 0; border-top:1px solid var(--line); }
.field.focus { background:#f3f9fd; border-radius:8px; }
dl.deflist { display:grid; grid-template-columns:150px 1fr; gap:6px 14px; margin:12px 0; }
dl.deflist dt { color:var(--muted); font-size:13px; } dl.deflist dd { margin:0; }
pre.formula { background:#f6f8fa; border:1px solid var(--line); border-radius:8px; padding:10px; white-space:pre-wrap; font-size:12.5px; }
.lbl { display:block; font-size:13px; font-weight:600; color:var(--muted); margin:10px 0 4px; }

.livehere { display:inline-flex; align-items:center; gap:2px; }
.livehere .avatar.sm { width:24px; height:24px; font-size:10px; margin-left:-4px; border:2px solid #fff; }
table.sheetgrid td.missing { box-shadow:inset 0 0 0 2px rgba(220,38,38,.45); background:#fff5f5; }
.rules { margin-top:10px; display:grid; gap:6px; }
.rulebox { display:block; padding:6px 8px; border:1px solid var(--line); border-radius:8px; }
.formq { margin:12px 0; } .formq .lbl { display:block; font-weight:600; margin-bottom:4px; }
.formqedit { padding:10px; margin:8px 0; }
/* Base: Kanban and Calendar views */
.viewbar { align-items:center; gap:8px; margin:0 0 8px; flex-wrap:wrap; }
.kanban { display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; align-items:flex-start; }
.kcol { flex:0 0 260px; background:#f6f8fa; border:1px solid var(--line); border-radius:10px; padding:8px; max-height:calc(100vh - 300px); display:flex; flex-direction:column; }
.kcol.dropto, .calday.dropto { outline:2px dashed var(--blue, #0d1a36); }
.khead { padding:2px 2px 8px; }
.kbody { overflow-y:auto; overflow-x:hidden; display:grid; gap:6px; }
.kcard { background:#fff; border:1px solid var(--line); border-radius:8px; padding:8px 10px; cursor:pointer; font-size:13px; }
.kcard:hover { border-color:#b9c6d3; }
.kcard small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calendar { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.calhead { padding:6px 8px; font-size:12px; font-weight:600; color:var(--muted); background:#f6f8fa; border-bottom:1px solid var(--line); }
.calday { min-height:110px; padding:4px; border-right:1px solid #eef1f4; border-bottom:1px solid #eef1f4; display:grid; gap:4px; align-content:start; }
.calday.other { background:#fafbfc; color:var(--muted); }
.calday.today .calnum { background:var(--head); color:#fff; border-radius:10px; padding:0 6px; display:inline-block; }
.calday .kcard { padding:3px 6px; font-size:12px; }
.calday .kcard small { display:none; }
.calnum { font-size:12px; font-weight:600; }
@media (max-width: 700px) { .calday { min-height:70px; } .calday .kcard { font-size:11px; } }

/* Base: one frame, like Airtable (Mike, 24 Nov 2026: "it all feels like one unit") — the tables
   down the side, then the table's name, its tools, the grid and the summary bar, joined. */
main:has(.baseapp) { max-width:none; padding:12px 16px; }
.baseapp { display:grid; grid-template-columns:200px minmax(0,1fr); height:calc(100vh - 118px); min-height:420px; background:#fff;
  border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:0 1px 3px rgba(16,32,48,.06); }
.basenav { background:#f7f9fb; border-right:1px solid var(--line); padding:10px 8px; overflow:auto; }
.basenavpick { display:none; width:100%; }
.navfolder { margin-bottom:4px; }
/* years as big headings over their sub-folders (db/118) */
.navyear { margin:2px 0 10px; }
.navyearhead { display:flex; align-items:center; gap:8px; width:100%; background:none; border:0; padding:6px 6px 4px; font-size:17px; font-weight:800; color:var(--head); cursor:pointer; text-align:left; box-shadow:none; border-bottom:1px solid var(--line); margin-bottom:4px; }
.navyearhead:hover { filter:none; color:var(--ink); }
.navyearhead .caret { width:12px; display:inline-block; font-size:12px; color:var(--muted); }
.navfolder.sub { margin-left:8px; }
.navfolderhead { display:flex; align-items:center; gap:6px; width:100%; background:none; border:0; padding:6px 8px; font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); cursor:pointer; text-align:left; box-shadow:none; }
.navfolderhead:hover { color:var(--ink); filter:none; }
.navfolderhead .caret { width:10px; display:inline-block; }
.navfolder a { display:block; padding:5px 10px 5px 24px; border-radius:6px; text-decoration:none; color:var(--ink); font-size:13.5px; }
.navfolder a:hover { background:#eaeef3; }
.navfolder a.on { background:#e0effa; color:var(--head); font-weight:600; }
.basemain { min-width:0; min-height:0; overflow:hidden; display:flex; flex-direction:column; position:relative; }
.basehead { display:flex; align-items:center; gap:10px; padding:10px 14px 8px; }
.basetitle { margin:0; font-size:17px; font-weight:700; color:var(--ink); }
.basehead .grow { flex:1; }
.modebadge { font-size:11.5px; font-weight:600; padding:2px 8px; border-radius:999px; background:#eef1f4; color:var(--muted); cursor:help; }
.modebadge.practice { background:#fff4e2; color:#9a5b00; }
.modebadge.live { background:#e7f7ee; color:#13703f; }
button.newrec { display:inline-flex; align-items:center; gap:5px; padding:6px 12px; border-radius:7px; font-size:13px; font-weight:600; }
.gridbar { display:flex; align-items:center; gap:2px; padding:4px 10px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); flex-wrap:nowrap; overflow-x:auto; min-height:40px; scrollbar-width:none; }
.gridbar .tool { flex:none; } .gridbar .tool.on { max-width:220px; overflow:hidden; text-overflow:ellipsis; }
.gridbar .grow { flex:1; }
.gridbar .tool { display:inline-flex; align-items:center; gap:6px; background:none; border:0; color:#3b4652; padding:5px 9px; border-radius:6px; font-size:13px; font-weight:500; box-shadow:none; white-space:nowrap; }
.gridbar .tool:hover { background:#eef2f6; filter:none; }
.gridbar .tool.iconly { padding:5px 7px; }
.gridbar .tool.on { color:#1f2933; }
.gridbar .tool.on.t-blue { background:#dcebfb; } .gridbar .tool.on.t-green { background:#d9f3e3; } .gridbar .tool.on.t-purple { background:#ebe3fb; }
.gridbar .tool.on.t-orange { background:#fde6d3; } .gridbar .tool.on.t-yellow { background:#fbf0c4; }
.gridbar .tool.danger { color:#b42318; }
.gridbar .viewpick b { font-weight:600; }
.tooldiv { width:1px; height:18px; background:var(--line); margin:0 6px; }
.ico { display:inline-flex; color:inherit; opacity:.85; }
.toolsearch { display:inline-flex; align-items:center; gap:4px; padding:0 8px; margin:0 4px; border-radius:6px; color:var(--muted); }
.toolsearch:focus-within { background:#f1f5f9; }
.toolsearch input { border:0; background:none; outline:none; width:120px; padding:5px 0; font-size:13px; }
.toolsearch input:focus { width:180px; }
.panelslot { position:relative; z-index:30; }
.gridpanel { position:absolute; top:4px; left:10px; max-width:min(760px, calc(100% - 20px)); background:#fff; border:1px solid var(--line); border-radius:10px;
  box-shadow:0 12px 32px rgba(16,32,48,.18); padding:12px 14px; font-size:13.5px; }
.gridpanel .fieldlist.cols { max-height:50vh; }
.gridholder { flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.gridholder > p, .gridholder > .viewbar { margin:10px 14px; }
.gridwrap { flex:1; min-height:0; overflow:auto; background:#fff; outline:none; }
.gridholder > .gridfoot { margin:0; padding:5px 14px; border-top:1px solid var(--line); background:#fafbfc; }
.gridholder > .kanban { padding:10px 14px; }
.gridholder > .calendar { margin:0 14px 10px; }
/* the summary bar: pinned to the foot of the grid, one cell per column */
table.sheetgrid tfoot td { position:sticky; bottom:0; z-index:3; background:#fafbfc; border-top:1px solid var(--line); border-bottom:0; height:32px; font-size:12.5px; cursor:pointer; }
table.sheetgrid tfoot td.sticky { z-index:5; }
table.sheetgrid tfoot td:hover { background:#f1f5f9; }
table.sheetgrid tfoot td .sumlbl { color:var(--muted); font-size:11.5px; }
table.sheetgrid tfoot td .sumhint { color:transparent; font-size:11.5px; }
table.sheetgrid tfoot td:hover .sumhint { color:var(--muted); }
table.sheetgrid tr.grouphead td { background:#f4f6f8; font-size:12.5px; cursor:pointer; height:40px; border-bottom:1px solid #e3e8ee; }
table.sheetgrid tr.grouphead td.ghname { position:sticky; z-index:2; overflow:hidden; }
table.sheetgrid tr.grouphead .gfield { display:block; font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; line-height:1; margin:0 0 2px 16px; }
table.sheetgrid tr.grouphead .gcount { margin-left:8px; color:var(--muted); font-size:12px; }
table.sheetgrid tr.grouphead td.gsum .sumlbl { color:var(--muted); font-size:11px; }
table.sheetgrid thead th { background:#f7f9fb; color:#2d3a46; font-weight:600; border-bottom:1px solid #dde3ea; }
@media (max-width: 900px) {
  .baseapp { grid-template-columns:1fr; height:auto; }
  .basenav { border-right:0; border-bottom:1px solid var(--line); padding:8px; }
  .basenavpick { display:block; }
  .basenavlist { display:none; }
  .gridwrap { height:70vh; flex:none; }
}
/* the field editor, opened under its column (Airtable's shape) */
.popshade { position:fixed; inset:0; z-index:150; }
.fieldpop { position:fixed; width:400px; max-height:calc(100vh - 24px); overflow:auto; background:#fff; border:1px solid var(--line); border-radius:12px;
  box-shadow:0 14px 40px rgba(16,32,48,.22); padding:12px; font-size:13.5px; }
.fieldpop .popname { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:8px; font-weight:600; margin-bottom:8px; }
.fieldpop .popname:focus, .fieldpop .typeq:focus { outline:2px solid var(--blue); outline-offset:-1px; }
.typebtn { display:flex; width:100%; align-items:center; gap:8px; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:8px 10px; text-align:left; font-weight:500; }
.typebtn:hover { background:#f7f9fb; filter:none; }
.typebtn .grow { flex:1; }
.tico { display:inline-flex; width:18px; justify-content:center; color:#5b6875; font-size:13px; }
.typelist { border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.typeq { width:100%; border:0; border-bottom:1px solid var(--line); padding:8px 10px; font:inherit; }
.typeitems { max-height:300px; overflow:auto; padding:4px; }
.typeitem { display:flex; width:100%; align-items:center; gap:8px; background:none; color:var(--ink); border:0; padding:7px 8px; border-radius:6px; text-align:left; font-weight:400; box-shadow:none; }
.typeitem:hover { background:#f1f5f9; filter:none; }
.typeitem.on { background:#e0effa; }
.typeitem:disabled { color:#a9b3bd; background:none; cursor:not-allowed; }
.typeitem:disabled .tico { color:#c3cbd3; }
.typehint { margin:6px 2px 4px; }
.poptabs { display:flex; gap:16px; border-bottom:1px solid var(--line); margin:8px 0 10px; }
.poptabs button { background:none; border:0; color:var(--muted); padding:6px 0; border-radius:0; font-weight:600; box-shadow:none; border-bottom:2px solid transparent; }
.poptabs button.on { color:var(--ink); border-bottom-color:var(--head); }
.poptabs button:hover { filter:none; color:var(--ink); }
.fieldpop .formfield { display:block; margin:8px 0; } .fieldpop .formfield > span { display:block; font-size:12.5px; font-weight:600; color:#3b4652; margin-bottom:3px; }
.fieldpop .formfield select, .fieldpop .formfield input[type=text] { width:100%; }
.toggle { display:flex; align-items:center; gap:8px; margin:10px 0; cursor:pointer; font-size:13px; }
.toggle input { position:absolute; opacity:0; pointer-events:none; }
.toggle .switch { width:30px; height:17px; border-radius:999px; background:#cfd6de; position:relative; flex:none; transition:background .15s; }
.toggle .switch::after { content:""; position:absolute; left:2px; top:2px; width:13px; height:13px; border-radius:50%; background:#fff; transition:left .15s; }
.toggle input:checked + .switch { background:var(--head); } .toggle input:checked + .switch::after { left:15px; }
.popadv { border:0; padding:0; margin:10px 0 0; background:none; } .popadv summary { font-size:12.5px; color:var(--muted); font-weight:600; }
.popfoot { display:flex; align-items:center; gap:8px; margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.popfoot .grow { flex:1; }
.linkbtn { background:none; border:0; color:var(--muted); padding:4px 0; font-weight:500; box-shadow:none; } .linkbtn:hover { color:var(--ink); filter:none; }
.note.warn { border-left-color:var(--orange); background:#fff8ee; margin:8px 0; }
/* history (db/062) */
.histlist { display:grid; gap:8px; margin-top:8px; }
.histitem { border:1px solid var(--line); border-radius:8px; padding:8px 10px; font-size:13px; }
.histitem.del { border-color:#f3c2bd; background:#fff8f7; }
.histhead { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.histhead .avatar.sm { width:22px; height:22px; font-size:9px; }
.histdel { color:#b42318; font-weight:600; }
.histrow { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:5px 0 0 28px; }
.histfield { font-weight:600; color:#3b4652; margin-right:4px; }
.histrow button { margin-left:auto; }
/* row heights, multi-level groups */
table.sheetgrid.rh-medium td, table.sheetgrid.rh-tall td, table.sheetgrid.rh-xtall td { vertical-align:top; white-space:normal; }
table.sheetgrid.rh-medium td { height:56px; } table.sheetgrid.rh-tall td { height:88px; } table.sheetgrid.rh-xtall td { height:128px; }
table.sheetgrid .cellbox { overflow:hidden; line-height:18px; word-break:break-word; }
table.sheetgrid td.rn { vertical-align:middle; }
table.sheetgrid tr.grouphead td { height:auto; }
table.sheetgrid tr.grouphead.lvl1 td { background:#f8f9fb; } table.sheetgrid tr.grouphead.lvl2 td { background:#fbfcfd; }
/* new field kinds (db/064) */
.cellbtn { padding:2px 10px; font-size:12px; border-radius:6px; background:#eef4fb; color:var(--head); font-weight:600; }
.cellbtn:hover { background:#dcebfb; filter:none; }
.ratingpick button { background:none; border:0; padding:0 2px; font-size:20px; color:#d4dae1; box-shadow:none; }
.ratingpick button.on { color:#f5a623; } .ratingpick button:hover { filter:none; color:#f5c451; }
.rich .richli { padding-left:12px; position:relative; } .rich .richli::before { content:"•"; position:absolute; left:0; }
table.sheetgrid .rich { white-space:normal; }
/* views: calendar week/day, gallery, timeline, Gantt */
.seg { display:inline-flex; border:1px solid var(--line); border-radius:7px; overflow:hidden; }
.seg button { background:#fff; color:var(--ink); border:0; border-radius:0; padding:4px 10px; font-size:12.5px; box-shadow:none; border-right:1px solid var(--line); }
.seg button:last-child { border-right:0; } .seg button.on { background:#e0effa; color:var(--head); font-weight:600; } .seg button:hover { filter:none; background:#f1f5f9; }
.calendar.week .calday { min-height:60vh; } .calendar.day { grid-template-columns:1fr; } .calendar.day .calday { min-height:60vh; }
.calendar.day .kcard small, .calendar.week .kcard small { display:block; }
.calnum { cursor:pointer; }
.gallery { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:12px; padding:12px 14px; overflow:auto; flex:1; align-content:start; }
.gcard { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 12px; cursor:pointer; box-shadow:0 1px 2px rgba(16,32,48,.05); display:grid; gap:6px; align-content:start; }
.gcard:hover { border-color:#b9c6d3; } .gcard .gtitle { font-size:14px; }
.gcard .gfield { font-size:12.5px; overflow:hidden; } .gcard .gfield > div { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.timeline { display:flex; flex:1; min-height:0; overflow:auto; border-top:1px solid var(--line); }
.tlside { flex:0 0 200px; position:sticky; left:0; z-index:4; background:#fff; border-right:1px solid var(--line); }
.tlsidehead { height:28px; border-bottom:1px solid var(--line); background:#f7f9fb; font-size:12px; font-weight:600; padding:6px 10px; position:sticky; top:0; z-index:2; }
.tllabel { position:absolute; left:0; right:0; padding:6px 10px; font-size:12.5px; border-bottom:1px solid #eef1f4; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.tlscroll { position:relative; flex:none; }
.tlscale { position:sticky; top:0; z-index:3; height:28px; background:#f7f9fb; border-bottom:1px solid var(--line); }
.tlday { position:absolute; top:0; height:28px; font-size:11px; color:var(--muted); padding:7px 3px; border-left:1px solid #eef1f4; overflow:hidden; white-space:nowrap; }
.tlday.wkend { background:#f1f3f6; } .tlday.today { color:#b42318; font-weight:700; }
.tlarea { position:relative; background:repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--dw, 26px) - 1px), transparent 0); }
.tllane { position:absolute; left:0; right:0; border-bottom:1px solid #eef1f4; }
.tltoday { position:absolute; top:0; bottom:0; width:2px; background:#ef4444; opacity:.6; z-index:2; }
.tlbar { position:absolute; height:22px; border-radius:6px; color:#fff; font-size:11.5px; padding:3px 7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:grab; z-index:3; box-shadow:0 1px 2px rgba(0,0,0,.15); }
.tlbar:active { cursor:grabbing; opacity:.85; }
.tldeps { position:absolute; left:0; top:0; pointer-events:none; z-index:2; } .tldeps path { fill:none; stroke:#64748b; stroke-width:1.4; } .tldeps path.late { stroke:#ef4444; }
/* saved views (db/065) */
.navviews { margin:2px 0 6px 18px; padding-left:8px; border-left:2px solid #e3e8ee; }
.navfolder a.navview { display:flex; align-items:center; gap:6px; padding:4px 8px; font-size:12.5px; }
.navfolder a.navview .ico { opacity:.7; }
.navfolder a.navview.on { background:#e0effa; color:var(--head); font-weight:600; }
.navsub { font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); font-weight:700; margin:6px 0 2px 8px; }
.navnone { display:block; margin:0 0 2px 8px; font-size:12px; }
.navadd { background:none; border:0; color:var(--muted); font-size:12px; padding:4px 8px; box-shadow:none; font-weight:500; }
.navadd:hover { color:var(--head); filter:none; }
.viewnote { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted); flex-wrap:wrap; }
.viewnote .viewname { color:#3b4652; font-weight:600; }
.viewnote .viewname::before { content:"·"; margin-right:8px; color:var(--muted); font-weight:400; }
.tweaked { background:#fff4e2; color:#9a5b00; border-radius:999px; padding:2px 10px; display:inline-flex; gap:8px; align-items:center; }
.tweaked .linkbtn { color:#9a5b00; font-size:12px; padding:0; text-decoration:underline; } .tweaked .linkbtn.strong { font-weight:700; }
.chip.person { display:inline-flex; align-items:center; gap:4px; background:#eef2f7; padding-left:2px; }
.chip.person .pin { display:inline-flex; width:16px; height:16px; border-radius:50%; background:linear-gradient(135deg, var(--orange), var(--blue)); color:#fff; font-size:8px; font-weight:700; align-items:center; justify-content:center; }
/* Task Board additions (db/067) */
.quickbar { gap:6px; margin:4px 0 10px; }
.quickchip { background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:999px; padding:4px 12px; font-size:13px; font-weight:500; }
.quickchip.on { background:#e0effa; border-color:#9cc9ea; color:var(--head); font-weight:600; } .quickchip:hover { filter:none; border-color:var(--blue); }
.donebtn { margin-left:auto; background:#fff; color:#13703f; border:1px solid #bfe3cd; border-radius:6px; padding:1px 8px; font-size:12px; font-weight:600; }
.donebtn:hover { background:#e7f7ee; filter:none; }
.checklist { display:grid; gap:4px; } .checkrow { display:flex; align-items:center; gap:8px; padding:4px 6px; border-radius:6px; background:#f7f9fb; }
.checkrow.done span { text-decoration:line-through; color:var(--muted); } .checkrow .x { background:none; border:0; color:var(--muted); box-shadow:none; padding:0 4px; }
.checklist input[type=text] { width:100%; }
.tasknum { color:var(--head); }
/* forms (db/068) */
.formsection { border-left:4px solid var(--head); padding:2px 0 2px 12px; margin:6px 0 12px; } .formsection h2 { margin:0 0 2px; font-size:18px; }
.formsectionedit { border-left:4px solid var(--head); background:#f6f9fc; }
.formimg { display:block; max-width:100%; max-height:280px; border-radius:8px; margin:6px 0; } .formimg.small { max-height:60px; display:inline-block; margin:0; }
.barrow { display:grid; grid-template-columns:minmax(90px, 200px) 1fr 90px; gap:8px; align-items:center; margin:4px 0; font-size:13px; }
.barrow .bar { background:#eef2f6; border-radius:4px; height:12px; overflow:hidden; } .barrow .bar span { display:block; height:100%; background:var(--head); border-radius:4px; }
.formtile.closed { opacity:.6; }
/* dropdown cells: the options list (Airtable-style) */
.choicepop { position:fixed; z-index:160; width:260px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 32px rgba(16,32,48,.2); overflow:hidden; }
.choicelist { max-height:280px; overflow:auto; padding:4px; }
.choiceitem { display:flex; width:100%; align-items:center; gap:6px; background:none; border:0; padding:5px 8px; border-radius:6px; text-align:left; color:var(--ink); box-shadow:none; font-weight:400; }
.choiceitem:hover, .choiceitem.on { background:#eef4fb; filter:none; }
.choiceitem .tick { width:14px; color:var(--head); font-weight:700; } .choiceitem.clear { color:var(--muted); font-size:12.5px; }
/* field editor, closer to Airtable (24 Nov 2026) */
.fieldpop .rules { gap:2px; } .fieldpop .rules .toggle { align-items:flex-start; } .fieldpop .rules .toggle small { font-size:11.5px; }
.fieldpop .lbl { margin:12px 0 4px; color:#3b4652; font-size:12.5px; }
.fmtexample { margin:6px 0 2px; }
.optlist { display:grid; gap:2px; } .optrow { display:flex; align-items:center; gap:6px; padding:2px 4px; border-radius:6px; }
.optrow:hover { background:#f6f8fa; } .optrow.dropto { box-shadow:inset 0 2px 0 var(--head); }
.optrow .grip { color:#b6c0ca; cursor:grab; font-size:13px; } .optrow .optname { flex:1; border:0; background:none; padding:4px 2px; font:inherit; }
.optrow .optname:focus { outline:1px solid var(--blue); background:#fff; border-radius:4px; }
.optdot { width:18px; height:18px; border-radius:50%; border:0; padding:0; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); flex:none; }
.optx { background:none; border:0; color:var(--muted); box-shadow:none; padding:0 4px; font-size:16px; } .optx:hover { color:var(--ink); filter:none; }
.addopt { margin:4px 0 0 4px; }
.palpop { position:fixed; z-index:170; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 10px 28px rgba(16,32,48,.2); padding:8px; display:grid; gap:4px; }
.palrow { display:flex; gap:4px; } .paldot { width:20px; height:20px; border-radius:50%; border:0; padding:0; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.paldot.on { outline:2px solid var(--ink); outline-offset:1px; }
.styleico { background:#fff; border:1px solid var(--line); border-radius:6px; width:30px; height:28px; padding:0; font-size:15px; box-shadow:none; }
.styleico.on { border-color:var(--head); background:#eef4fb; } .styleico:hover { filter:none; border-color:#b9c6d3; }
.defbox select, .defbox input[type=text] { width:100%; }
.pctbar { display:flex; align-items:center; gap:6px; } .pctbar .pctfill { display:block; height:8px; border-radius:4px; background:var(--head); flex:none; max-width:60%; }
.pctbar { position:relative; } .pctbar::before { content:""; position:absolute; left:0; height:8px; width:60%; background:#e6ebf0; border-radius:4px; z-index:0; } .pctbar .pctfill { position:relative; z-index:1; }
/* the field editor: one look for every input, conditions on one line (24 Nov 2026) */
.fieldpop { width:440px; }
.fieldpop select, .fieldpop input[type=text], .fieldpop input[type=number], .fieldpop input[type=date], .fieldpop input[type=time], .fieldpop textarea {
  border:1px solid #d9dfe6; border-radius:7px; padding:6px 9px; font:inherit; font-size:13.5px; background:#fff; color:var(--ink); min-height:34px; }
.fieldpop select { appearance:none; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364707d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; padding-right:26px; }
.fieldpop select:focus, .fieldpop input:focus, .fieldpop textarea:focus { outline:2px solid rgba(41,171,226,.35); border-color:var(--blue); }
.fieldpop .formfield select, .fieldpop .formfield input[type=text] { width:100%; }
.condbody { margin:4px 0 6px 6px; }
.condrow { display:grid; grid-template-columns:54px minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) 26px; gap:4px; align-items:center; margin:3px 0; }
.condrow > * { min-width:0; width:100%; }
.condrow .condlead { font-size:13px; color:#3b4652; padding-left:2px; }
.condrow select.condlead { padding:6px 18px 6px 6px; background-position:right 5px center; }
.condx { background:none; border:0; box-shadow:none; padding:0; font-size:13px; opacity:.6; } .condx:hover { opacity:1; filter:none; }
table.sheetgrid .fico { display:inline-flex; vertical-align:-3px; color:#5b6875; margin-right:6px; }
.tico svg { display:block; }
table.sheetgrid td.changed { background:#fff6cc; box-shadow:inset 0 0 0 1px #f2d16b; }
.pivchart { margin:10px 0; } .pivtable { width:100%; } .pivtable td.num, .pivtable th.num { text-align:right; font-variant-numeric:tabular-nums; }
/* on-screen reports and printing (24 Nov 2026) */
.sheet.viewer { max-width:min(1100px, 96vw); width:96vw; height:92vh; display:flex; flex-direction:column; }
.reportframe { flex:1; width:100%; border:1px solid var(--line); border-radius:8px; background:#fff; }
a.button { display:inline-flex; align-items:center; text-decoration:none; border-radius:8px; padding:6px 11px; }
a.button.quiet { background:#fff; color:var(--ink); border:1px solid var(--line); }
.printhead { display:none; }
@media print {
  #nav, #top, .noprint, .sidefoot, #menubtn { display:none !important; }
  main { padding:0 !important; max-width:none !important; } body { background:#fff !important; }
  .printhead { display:flex; align-items:center; gap:12px; border-bottom:2px solid #0d1a36; padding-bottom:8px; margin-bottom:12px; } .printhead img { height:32px; }
  .stats { break-inside:avoid; } table { font-size:11px; }
}
.reportframe.page { background:#fff; }

/* Reports page laid out like QuickBooks' (24 Nov 2026) */
.rfind { min-width: 320px; max-width: 420px; flex: 1; }
.rsection { border: 1px solid var(--line, #e3e3e3); border-radius: 8px; padding: 10px 16px; margin: 12px 0; background: #fff; }
.rsection > summary { font-size: 18px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.rsection > h2 { margin: 4px 0 10px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); column-gap: 32px; }
.rline { border-bottom: 1px solid var(--line, #eee); }
.rrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; }
.rname { font-weight: 500; }
.rstar { background: none; border: 0; font-size: 18px; color: #9aa; cursor: pointer; padding: 0 4px; }
.rstar.on { color: #1d6b4f; }
.linkish { background: none; border: 0; color: var(--accent, #2a6fb0); cursor: pointer; padding: 0; }
.rcopies { padding: 0 0 10px 0; max-height: 260px; overflow: auto; }
@media (max-width: 600px) { .rgrid { grid-template-columns: 1fr; } .rfind { min-width: 0; } }
.modal:has(> .viewer) { z-index:60; }   /* the report viewer sits over the side menu */

/* @ tagging in comments (db/083) */
.mentionwrap { position: relative; }
.mentionlist { position: absolute; left: 8px; top: 100%; z-index: 120; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16,32,48,.18); padding: 4px; min-width: 240px; max-height: 260px; overflow: auto; }
.mentionitem { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.mentionitem.on, .mentionitem:hover { background: var(--soft); }

/* crew performance bars (db/084) */
.barcell { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.barcell .bar { display: inline-block; width: 120px; height: 8px; background: #eef0f4; border-radius: 4px; overflow: hidden; }
.barcell .bar i { display: block; height: 100%; background: var(--orange); }
.warn { color: #b86e00; }

/* ---- Tasks, the clean glass look (Mike, 24 Nov 2026: "clunky… I like the clean, almost glass like look").
   Frosted panels over a soft wash; white cards with a soft shadow and no borders; Done as a round tick. */
main:has(.taskpage) { max-width:none; }
.taskpage { position: relative; margin: -22px -24px; padding: 22px 24px 40px; min-height: calc(100vh - 60px);
  background: radial-gradient(1200px 500px at 10% -10%, rgba(13,26,54,.07), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(247,148,29,.08), transparent 60%), #f5f6f9; }
.taskpage .glassbar { background: rgba(255,255,255,.62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 8px 30px rgba(13,26,54,.06); padding: 14px 16px; margin-bottom: 18px; }
.taskpage .tfigs { display: flex; gap: 28px; flex-wrap: wrap; padding: 2px 4px 12px; border-bottom: 1px solid rgba(13,26,54,.06); margin-bottom: 12px; }
.taskpage .tfig { display: flex; align-items: baseline; gap: 8px; }
.taskpage .tfig b { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.taskpage .tfig span { font-size: 13px; color: var(--muted); }
.taskpage .tfig.warn b { color: #c2410c; }
.taskpage .toolbar { margin: 0 0 8px; gap: 8px; }
.taskpage .toolbar select, .taskpage .toolbar input { background: rgba(255,255,255,.8); border: 1px solid rgba(13,26,54,.08); border-radius: 10px; padding: 7px 10px; }
.taskpage .seg { border: 0; background: rgba(13,26,54,.05); border-radius: 10px; padding: 3px; gap: 2px; }
.taskpage .seg button { background: transparent; border: 0; border-radius: 8px; padding: 5px 12px; }
.taskpage .seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(13,26,54,.12); }
.taskpage .quickbar { margin: 0; gap: 6px; }
.taskpage .quickchip { background: transparent; border: 1px solid rgba(13,26,54,.1); }
.taskpage .quickchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.taskpage .quickchip.on .pill { background: rgba(255,255,255,.2); color: #fff; }

.taskpage .kanban { gap: 16px; padding-bottom: 12px; }
.taskpage .kcol { background: rgba(255,255,255,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 18px; padding: 10px 10px 4px; box-shadow: 0 4px 24px rgba(13,26,54,.05);
  max-height: calc(100vh - 290px); overflow-y: auto; scrollbar-width: thin; }
.taskpage .kcol.over { background: rgba(247,148,29,.10); outline: 2px dashed rgba(247,148,29,.7); outline-offset: -4px; }
.taskpage .khead { position: sticky; top: -10px; z-index: 1; display: flex; align-items: center; gap: 8px; background: transparent;
  padding: 4px 6px 10px; font-weight: 600; font-size: 13.5px; color: var(--navy); }
.taskpage .khead .kname { flex: 1; }
.taskpage .kcount { font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(13,26,54,.06); border-radius: 999px; padding: 1px 8px; }
.taskpage .kempty { color: #9aa3ae; font-size: 12.5px; text-align: center; padding: 14px 0 18px; margin: 0; }

.taskpage .taskcard { position: relative; background: rgba(255,255,255,.92); border: 0; border-radius: 14px; padding: 11px 12px 10px; margin-bottom: 9px;
  box-shadow: 0 1px 2px rgba(13,26,54,.05), 0 4px 14px rgba(13,26,54,.05); transition: transform .12s ease, box-shadow .12s ease; }
.taskpage .taskcard:hover { border: 0; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(13,26,54,.06), 0 10px 24px rgba(13,26,54,.09); }
.taskpage .tc-top { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.taskpage .tc-num { font-size: 11.5px; color: #9aa3ae; font-weight: 500; flex: 1; }
.taskpage .stars { font-size: 10.5px; color: var(--orange); letter-spacing: 1px; }
.taskpage .tc-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); margin: 3px 0 8px; }
.taskpage .tc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.taskpage .tc-meta .grow { flex: 1; }
.taskpage .tc-chip { color: var(--muted); }
.taskpage .due { font-size: 11.5px; font-weight: 600; color: var(--muted); background: rgba(13,26,54,.05); border-radius: 6px; padding: 2px 7px; }
.taskpage .due.late { color: #c2410c; background: rgba(232,89,12,.09); }
.taskpage .owners { display: inline-flex; }
.taskpage .owners .avatar.sm { width: 22px; height: 22px; font-size: 9.5px; border: 2px solid #fff; margin-left: -6px; }
.taskpage .owners .avatar.sm:first-child { margin-left: 0; }
.taskpage .donebtn { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(13,26,54,.2); background: #fff; color: transparent;
  font-size: 12px; line-height: 19px; text-align: center; box-shadow: none; opacity: 0; transition: opacity .12s, background .12s, color .12s; }
.taskpage .taskcard:hover .donebtn { opacity: 1; }
.taskpage .donebtn:hover { background: #16a34a; border-color: #16a34a; color: #fff; filter: none; }
@media (hover: none) { .taskpage .donebtn { opacity: 1; color: rgba(13,26,54,.35); } }
@media (max-width: 860px) { .taskpage { margin: -16px; padding: 16px; } .taskpage .tfigs { gap: 16px; } }

/* ---- shared glass wash for Help and News (same look as Tasks) */
main:has(.helppage), main:has(.newspage) { max-width:none; }
.helppage, .newspage { margin: -22px -24px; padding: 22px 24px 48px; min-height: calc(100vh - 60px);
  background: radial-gradient(1200px 500px at 10% -10%, rgba(13,26,54,.07), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(247,148,29,.08), transparent 60%), #f5f6f9; }
.helppage > *, .newspage > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.glassbar { background: rgba(255,255,255,.62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 8px 30px rgba(13,26,54,.06); padding: 14px 16px; margin-bottom: 18px; }

/* Help (db/088) */
.helpbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.helpsearch { flex: 1; min-width: 240px; font-size: 16px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(13,26,54,.1); background: #fff; }
.helppage .helpsection h2 { border: 0; padding: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 8px; }
.helpart { background: rgba(255,255,255,.9); border-radius: 14px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(13,26,54,.05), 0 4px 14px rgba(13,26,54,.04); }
.helpart > summary { cursor: pointer; padding: 13px 16px; font-weight: 600; color: var(--navy); list-style: none; display: flex; gap: 8px; align-items: center; }
.helpart > summary::-webkit-details-marker { display: none; }
.helpart > summary::before { content: "›"; color: var(--orange); font-size: 18px; transition: transform .15s; display: inline-block; width: 10px; }
.helpart[open] > summary::before { transform: rotate(90deg); }
.helpart.draft { opacity: .7; }
.helpbody { padding: 0 18px 14px 34px; line-height: 1.55; }
.helpbody h3 { font-size: 14px; margin: 14px 0 4px; }
.helpbody ul, .helpbody ol { padding-left: 20px; margin: 6px 0; }
.helpfoot { display: flex; gap: 12px; align-items: center; border-top: 1px solid rgba(13,26,54,.06); padding-top: 8px; margin-top: 10px; }
.helppicks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
#helpbtn { font-weight: 700; font-size: 15px; color: var(--navy); }

/* News (db/091) */
.newschips { gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.newspage .quickchip { background: rgba(255,255,255,.7); border: 1px solid rgba(13,26,54,.08); }
.newspage .quickchip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.post { background: rgba(255,255,255,.92); border-radius: 18px; padding: 18px 20px 14px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(13,26,54,.05), 0 8px 26px rgba(13,26,54,.06); }
.post.pinned { box-shadow: 0 0 0 2px rgba(247,148,29,.35), 0 8px 26px rgba(13,26,54,.06); }
.postwho { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.postcat { font-size: 12px; font-weight: 600; color: var(--navy); background: rgba(13,26,54,.06); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.postpin { font-size: 14px; }
.newspage h2.posttitle { font-size: 20px; line-height: 1.3; margin: 2px 0 6px; color: var(--navy); text-transform: none; letter-spacing: 0; border: 0; padding: 0; font-weight: 700; }
.newspage h2.posttitle::before, .newspage h2.posttitle::after { display: none; }
.postbody p { margin: 0 0 10px; line-height: 1.6; }
.postimg img { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; margin: 6px 0 10px; }
.postfoot { display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(13,26,54,.06); padding-top: 10px; margin-top: 4px; }
.reacts { display: flex; gap: 6px; }
.react { background: rgba(13,26,54,.04); border: 1px solid transparent; border-radius: 999px; padding: 3px 10px; font-size: 14px; box-shadow: none; color: var(--ink); }
.react span { font-size: 12px; font-weight: 600; margin-left: 4px; color: var(--muted); }
.react.on { background: rgba(247,148,29,.12); border-color: rgba(247,148,29,.45); }
.react:hover { filter: none; background: rgba(13,26,54,.08); }
.comments { margin-top: 10px; }
.commentnew { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.commentnew .mentionwrap, .commentnew > textarea { flex: 1; }
.commentnew textarea { width: 100%; border-radius: 10px; }
.confirmbox { background: rgba(247,148,29,.08); border: 1px solid rgba(247,148,29,.35); border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.confirmbox.done { background: rgba(22,163,74,.07); border-color: rgba(22,163,74,.3); color: #15803d; font-weight: 600; }
.composer input[type=text], .composer textarea { width: 100%; margin-bottom: 8px; border-radius: 10px; }
.composer input[type=text] { font-size: 17px; font-weight: 600; }
.composemore { gap: 14px; flex-wrap: wrap; }

/* Celebrations on Home (db/089) */
.witem.celeb .celebicon { font-size: 20px; width: 28px; text-align: center; }
.witem.celeb.today { background: rgba(247,148,29,.08); border-radius: 10px; }

/* password nudge and sign-in choices (24 Nov 2026) */
.pwnudge { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(13,26,54,.08); border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(13,26,54,.14); font-size: 13.5px; max-width: calc(100vw - 36px); flex-wrap: wrap; }
.signin input[type=password] { margin-top: 8px; }
.signways { justify-content: flex-end; margin: 4px 0 8px; }
.levelpick { padding: 3px 6px; font-size: 13px; }
.card.waiting { border-left: 3px solid var(--orange); }

/* ---- Time clock (db/094): phone first, same glass look */
main:has(.clockpage) { max-width:none; }
.clockpage { margin: -22px -24px; padding: 22px 24px 48px; min-height: calc(100vh - 60px);
  background: radial-gradient(1200px 500px at 10% -10%, rgba(13,26,54,.07), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(247,148,29,.08), transparent 60%), #f5f6f9; }
.clockpage > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.clockpage.team > * { max-width: 1000px; }
.clockcard { text-align: center; padding: 26px 20px 18px; }
.clockstatus b { display: block; font-size: 15px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.clockstatus .clocktimer { display: block; font-size: 46px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin: 4px 0; }
.clockstatus small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.clockbig { display: flex; flex-direction: column; gap: 10px; margin: 20px auto 8px; max-width: 360px; }
.clockbtn { font-size: 19px; font-weight: 700; padding: 17px 20px; border-radius: 16px; border: 0; box-shadow: 0 6px 18px rgba(13,26,54,.12); }
.clockbtn.go { background: #16a34a; color: #fff; } .clockbtn.stop { background: var(--navy); color: #fff; } .clockbtn.soft { background: #fff; color: var(--navy); border: 1px solid rgba(13,26,54,.12); }
.clockbtn:disabled { opacity: .6; }
.clocknote { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(13,26,54,.1); font-size: 15px; }
.clockwhere { min-height: 18px; margin: 6px 0 0; } .clockwhere.ok { color: #15803d; } .clockwhere.warn, .warn { color: #b45309; }
.clocklist { display: flex; flex-direction: column; gap: 8px; }
.clockrow { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.92); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(13,26,54,.05), 0 4px 14px rgba(13,26,54,.04); flex-wrap: wrap; }
.clockrow.live { box-shadow: 0 0 0 2px rgba(22,163,74,.35), 0 4px 14px rgba(13,26,54,.04); }
.clockrow.req input { min-width: 180px; }
.clockhrs { font-size: 15px; color: var(--navy); min-width: 64px; text-align: right; }
.geo { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 8px; text-decoration: none; white-space: nowrap; }
.geo.ok { background: rgba(22,163,74,.1); color: #15803d; } .geo.none { background: rgba(13,26,54,.06); color: var(--muted); }
.okpill { background: rgba(22,163,74,.12); color: #15803d; } .badpill { background: rgba(220,38,38,.1); color: #b91c1c; }
@media (max-width: 600px) { .clockpage { margin: -16px; padding: 16px; } .clockstatus .clocktimer { font-size: 40px; } }

/* View as (db/098) */
.viewaspick { font-size: 13px; padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.viewasbar { position: fixed; left: 50%; transform: translateX(-50%); top: 8px; z-index: 80; display: flex; gap: 12px; align-items: center;
  background: var(--navy); color: #fff; border-radius: 999px; padding: 6px 8px 6px 16px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(13,26,54,.25); }
.viewasbar button { background: var(--orange); color: var(--navy); border: 0; border-radius: 999px; font-weight: 700; }

/* one Time clock page (db/099) */
.clocktabs { display: inline-flex; gap: 2px; background: rgba(13,26,54,.05); border-radius: 12px; padding: 3px; margin: 6px 0 16px; }
.clocktabs button { background: transparent; border: 0; border-radius: 10px; padding: 7px 16px; font-weight: 600; color: var(--muted); box-shadow: none; }
.clocktabs button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(13,26,54,.12); }
.clocktools { margin: 0 0 14px; flex-wrap: wrap; gap: 10px; }
.clocksearch { width: 220px; border-radius: 10px; }
.datestep { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid rgba(13,26,54,.1); border-radius: 10px; padding: 3px 6px; font-weight: 600; }
.clockstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.cstat { background: rgba(255,255,255,.9); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(13,26,54,.05), 0 6px 18px rgba(13,26,54,.05); }
.cstat b { display: block; font-size: 26px; color: var(--navy); } .cstat span { font-size: 13px; color: var(--muted); }
.cstat.on { background: linear-gradient(135deg, rgba(247,148,29,.14), rgba(255,255,255,.9)); }
.clocktable table { background: rgba(255,255,255,.92); border-radius: 14px; } .clocktable tr { cursor: pointer; } .clocktable tr.dim td { color: var(--muted); }
.clocktable td.num { text-align: right; }
.cdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #cbd2da; flex: none; }
.cdot.in { background: #16a34a; } .cdot.break { background: #f7941d; } .cdot.out { background: var(--navy); }
.clockmap { height: 420px; border-radius: 16px; overflow: hidden; background: #e8ebf0; box-shadow: 0 6px 18px rgba(13,26,54,.06); }
.mappin { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 11px/1 sans-serif; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.mappin.out { background: var(--navy); }
.sheetcard { display: flex; flex-direction: column; gap: 6px; } .sheetdetail { padding: 0 6px 6px; }
.warnpill { background: rgba(245,158,11,.15); color: #b45309; }
@media (max-width: 760px) { .clockstats { grid-template-columns: repeat(2, 1fr); } .clockmap { height: 300px; } }

/* add to home screen (install.js) — a bottom sheet on phones */
.installtip { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 20px; padding: 18px 18px 14px; box-shadow: 0 18px 50px rgba(13,26,54,.28); border: 1px solid rgba(13,26,54,.06); max-width: 520px; margin: 0 auto;
  padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.installhead { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.installhead img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 2px 8px rgba(13,26,54,.15); }
.installhead b { display: block; font-size: 16px; color: var(--navy); } .installhead small { color: var(--muted); font-size: 13px; }
.installsteps { list-style: none; padding: 0; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; line-height: 1.4; }
.installsteps li { display: flex; gap: 10px; align-items: flex-start; } .installsteps svg { vertical-align: -3px; color: #0a84ff; }
.istep { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.installbtns { display: flex; gap: 10px; } .installbtns button { flex: 1; padding: 11px; border-radius: 12px; font-weight: 600; }
.installgo { width: 100%; padding: 12px; border-radius: 12px; font-weight: 700; margin-bottom: 8px; }
body.has-installtip .pwnudge { display: none; }

/* right-click menus: a clear highlight on the item under the mouse (Mike, 24 Nov 2026) */
.ctxmenu button, .ctxmenu button.danger { background: none; border: 0; padding: 8px 12px; }
.ctxmenu button:hover:not(:disabled), .ctxmenu button:focus-visible { background: rgba(13,26,54,.08); color: var(--navy); filter: none; outline: none; }
.ctxmenu button.danger:hover:not(:disabled) { background: rgba(220,38,38,.09); color: #b42318; }
.ctxmenu button:disabled:hover { background: none; }

/* Share (24 Nov 2026) */
.sharesheet { max-width: 460px; }
.sharepreview { white-space: pre-wrap; background: #f4f7fa; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0 12px; font-size: 13.5px; color: var(--ink); max-height: 220px; overflow: auto; }
.sharebtn { white-space: nowrap; }
.witem.celeb .sharebtn { align-self: center; }

/* phones (audit 3, 24 Nov 2026): the Admin-only "View as" picker pushed the avatar off the top bar, and the money
   pages' summary cards stacked one per row; the picker hides and the cards sit two to a row */
@media (max-width:600px) {
  .viewaspick { display:none; }
  .whotext { display:none; }
  .stats { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
}

/* phones: small text buttons (Delete, Not now, the favourite star) get a finger-sized tap area (audit 4) */
@media (pointer: coarse) { .linkish, .rstar { min-height: 44px; min-width: 44px; padding: 8px 6px; } }
