/* ============================================================================
   MWP — minimalist modern design system
   Neutral zinc palette · single blue accent · Geist · flat, thin borders,
   generous whitespace. Unbranded. Mobile-first responsive.
   ========================================================================== */

:root {
  --bg:#fafafa;
  --surface:#ffffff; --surface-2:#f7f7f8; --surface-3:#f1f1f3;
  --line:#ececee; --line-2:#e2e2e6;
  --ink:#111114; --ink-2:#3f3f46; --muted:#71717a; --muted-2:#a1a1aa;

  --accent:#2563eb; --accent-600:#1d4ed8; --accent-soft:#eef4ff; --accent-line:#d6e2ff;
  --red:#dc2626; --red-soft:#fef2f2; --red-line:#f6cccc;

  /* status chips */
  --st-draft-bg:#f4f4f5; --st-draft-fg:#52525b;
  --st-sub-bg:#fdf4e7;  --st-sub-fg:#b45309;
  --st-app-bg:#ecfdf3;  --st-app-fg:#067647;
  --st-back-bg:#fef3f2; --st-back-fg:#b42318;

  --font-sans:'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --font-mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;

  --r-xs:6px; --r-sm:8px; --r-md:10px; --r-lg:14px; --r-pill:999px;
  --shadow-sm:0 1px 2px rgba(17,17,20,.05);
  --shadow-md:0 4px 16px -4px rgba(17,17,20,.10), 0 2px 4px -2px rgba(17,17,20,.06);
  --shadow-lg:0 16px 40px -12px rgba(17,17,20,.20);
  --ring:0 0 0 3px rgba(37,99,235,.18);
  --topbar-h:60px; --sidebar-w:248px; --content-max:1120px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

* { box-sizing:border-box; }
[hidden] { display:none !important; }   /* author display rules otherwise override the UA [hidden] style */
html,body { height:100%; }
body {
  margin:0; font-family:var(--font-sans); font-size:14px; line-height:1.5;
  color:var(--ink); background:var(--bg); letter-spacing:-.006em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
h1,h2,h3,h4 { margin:0; font-weight:600; letter-spacing:-.02em; color:var(--ink); line-height:1.2; }
a { color:var(--accent); text-decoration:none; }
a:hover { color:var(--accent-600); }
button { font:inherit; cursor:pointer; color:inherit; }
:focus-visible { outline:none; box-shadow:var(--ring); border-radius:var(--r-xs); }
.tnum { font-variant-numeric:tabular-nums; }

/* ---------------------------------------------------------------- App shell */
#app { min-height:100%; }

.topbar {
  position:sticky; top:0; z-index:40; height:var(--topbar-h);
  display:flex; align-items:center; gap:14px; padding:0 20px;
  background:rgba(255,255,255,.8); backdrop-filter:saturate(1.2) blur(8px);
  border-bottom:1px solid var(--line);
}
.topbar .hamburger { display:none; width:38px; height:38px; border:1px solid var(--line-2); background:var(--surface); border-radius:var(--r-sm); align-items:center; justify-content:center; }
.topbar .hamburger svg { width:18px; height:18px; stroke:var(--ink); }
.topbar .section-title { font-size:15px; font-weight:600; letter-spacing:-.01em; }
.topbar .section-title .crumb { color:var(--muted-2); font-weight:500; }
.topbar-right { margin-left:auto; display:flex; align-items:center; gap:10px; }

/* user menu */
.usermenu { position:relative; }
.usermenu .trigger { display:flex; align-items:center; gap:9px; padding:5px 9px 5px 6px; border:1px solid var(--line-2); background:var(--surface); border-radius:var(--r-md); }
.usermenu .trigger:hover { background:var(--surface-2); }
.avatar { width:28px; height:28px; border-radius:var(--r-pill); flex:0 0 auto; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:11.5px; color:#fff; background:var(--ink); letter-spacing:.02em; }
.usermenu .who { font-size:12.5px; line-height:1.2; text-align:left; }
.usermenu .who b { display:block; font-weight:600; }
.usermenu .who span { color:var(--muted); font-size:11px; }
.usermenu .chev { width:15px; height:15px; stroke:var(--muted-2); }
.menu { position:absolute; right:0; top:calc(100% + 8px); min-width:208px; padding:5px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow-lg); display:none; z-index:60; }
.menu.open { display:block; animation:pop .13s var(--ease); }
.menu .mi { display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:8px 9px; border:0; background:transparent; border-radius:var(--r-sm); color:var(--ink-2); font-size:13px; }
.menu .mi:hover { background:var(--surface-2); }
.menu .mi svg { width:15px; height:15px; stroke:var(--muted); }
.menu .mi.danger { color:var(--red); } .menu .mi.danger svg { stroke:var(--red); }
.menu .sep { height:1px; background:var(--line); margin:4px 4px; }
@keyframes pop { from{opacity:0;transform:translateY(-4px) scale(.98);} to{opacity:1;transform:none;} }

.shell { display:flex; min-height:calc(100vh - var(--topbar-h)); }

/* sidebar */
.sidebar {
  width:var(--sidebar-w); flex:0 0 auto; padding:16px 12px; border-right:1px solid var(--line);
  background:var(--surface); position:sticky; top:var(--topbar-h); height:calc(100vh - var(--topbar-h)); overflow:auto;
  display:flex; flex-direction:column;
}
.brand { display:flex; align-items:center; gap:10px; padding:4px 8px 16px; }
.brand .mark { width:30px; height:30px; border-radius:8px; flex:0 0 auto; background:var(--ink); display:flex; align-items:center; justify-content:center; }
.brand .mark svg { width:17px; height:17px; stroke:#fff; fill:none; }
.brand .wordmark b { font-weight:600; font-size:15px; letter-spacing:-.02em; display:block; line-height:1.1; }
.brand .wordmark span { font-size:11px; color:var(--muted-2); }

.nav { display:flex; flex-direction:column; gap:1px; }
.nav .group { font-size:11px; letter-spacing:.02em; color:var(--muted-2); font-weight:600; margin:18px 10px 6px; }
.nav-link { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:var(--r-sm); color:var(--ink-2); font-weight:500; font-size:13.5px; position:relative; transition:background .12s, color .12s; }
.nav-link svg { width:17px; height:17px; stroke:var(--muted); fill:none; stroke-width:1.7; flex:0 0 auto; transition:stroke .12s; }
.nav-link:hover { background:var(--surface-2); color:var(--ink); }
.nav-link.active { background:var(--surface-3); color:var(--ink); font-weight:600; }
.nav-link.active svg { stroke:var(--accent); }
.sidebar .spacer { flex:1; }
.sidebar .foot { padding:12px 10px 2px; border-top:1px solid var(--line); margin-top:12px; color:var(--muted-2); font-size:11px; }

.view { flex:1 1 auto; min-width:0; padding:28px clamp(16px,3vw,36px) 56px; }
.view.view--full { padding:0; }
.view-inner { max-width:var(--content-max); margin:0 auto; }

/* mobile drawer + overlay + bottom nav */
.overlay { position:fixed; inset:0; background:rgba(17,17,20,.35); z-index:55; opacity:0; pointer-events:none; transition:opacity .2s; }
.overlay.open { opacity:1; pointer-events:auto; }
.drawer { position:fixed; top:0; left:0; bottom:0; width:264px; max-width:84vw; z-index:60; background:var(--surface); border-right:1px solid var(--line); box-shadow:var(--shadow-lg); transform:translateX(-104%); transition:transform .24s var(--ease); padding:16px 12px; overflow:auto; display:flex; flex-direction:column; }
.drawer.open { transform:none; }
.bottomnav { display:none; }

/* ------------------------------------------------------------- Page header */
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:24px; }
.page-head .eyebrow { font-size:12px; letter-spacing:.02em; color:var(--muted); font-weight:600; margin-bottom:6px; }
.page-head h1 { font-size:clamp(20px,2.6vw,26px); letter-spacing:-.025em; }
.page-head .sub { color:var(--muted); margin-top:6px; font-size:13px; }
.page-head .actions { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }

/* -------------------------------------------------------------- Components */
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); padding:20px; margin-bottom:16px; }
.card > h3 { font-size:15px; margin-bottom:14px; display:flex; align-items:center; gap:8px; letter-spacing:-.015em; }
.card > h3 .ico-h { display:inline-flex; }
.card > h3 .ico-h svg { width:16px; height:16px; stroke:var(--muted); fill:none; }
.card.flush { padding:0; overflow:hidden; }
.row { display:flex; gap:16px; flex-wrap:wrap; }
.col { flex:1 1 240px; min-width:0; }
.grid-tiles { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); margin-bottom:16px; }

.btn { display:inline-flex; align-items:center; gap:7px; justify-content:center; background:var(--ink); color:#fff; border:1px solid var(--ink); padding:8px 15px; border-radius:var(--r-sm); font-weight:500; font-size:13.5px; transition:background .12s, border-color .12s, opacity .12s; }
.btn:hover { background:#000; }
.btn:active { opacity:.9; }
.btn svg { width:15px; height:15px; stroke:currentColor; fill:none; }
.btn.secondary { background:var(--surface); color:var(--ink); border-color:var(--line-2); }
.btn.secondary:hover { background:var(--surface-2); border-color:var(--muted-2); }
.btn.accent { background:var(--accent); border-color:var(--accent); color:#fff; }
.btn.accent:hover { background:var(--accent-600); }
.btn.gold { background:var(--accent); border-color:var(--accent); color:#fff; }     /* legacy alias */
.btn.gold:hover { background:var(--accent-600); }
.btn.danger { background:var(--surface); color:var(--red); border-color:var(--line-2); }
.btn.danger:hover { background:var(--red-soft); border-color:var(--red-line); }
.btn.sm { padding:5px 10px; font-size:12.5px; border-radius:var(--r-xs); }
.btn.block { width:100%; }
.btn[disabled] { opacity:.45; cursor:not-allowed; }

label.field { display:block; margin-bottom:14px; }
label.field > span { display:block; font-size:12.5px; font-weight:500; color:var(--ink-2); margin-bottom:6px; }
input, select, textarea { width:100%; padding:8px 11px; font-family:inherit; font-size:13.5px; color:var(--ink); background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-sm); transition:border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color:var(--muted-2); }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--accent); box-shadow:var(--ring); }
textarea { resize:vertical; min-height:42px; line-height:1.5; field-sizing:content; }
select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; padding-right:30px; }

/* badges / status chips */
.badge { display:inline-flex; align-items:center; gap:6px; padding:2px 9px; border-radius:var(--r-pill); font-size:12px; font-weight:500; text-transform:capitalize; white-space:nowrap; }
.badge::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.badge.draft { background:var(--st-draft-bg); color:var(--st-draft-fg); }
.badge.submitted { background:var(--st-sub-bg); color:var(--st-sub-fg); }
.badge.approved { background:var(--st-app-bg); color:var(--st-app-fg); }
.badge.sent_back { background:var(--st-back-bg); color:var(--st-back-fg); }

.stat { font-size:28px; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; line-height:1; letter-spacing:-.03em; }
.muted { color:var(--muted); } .right { margin-left:auto; }
.pill-note { display:flex; gap:8px; align-items:center; background:var(--st-back-bg); color:var(--st-back-fg); padding:11px 14px; border-radius:var(--r-md); font-size:13px; }
.warn { color:var(--red); font-size:12.5px; font-weight:500; margin-top:10px; display:flex; align-items:center; gap:6px; }
.toolbar { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }

/* tiles */
.tile { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:16px 18px; box-shadow:var(--shadow-sm); }
.tile .ic { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; background:var(--surface-3); margin-bottom:14px; }
.tile .ic svg { width:16px; height:16px; stroke:var(--ink-2); fill:none; }
.tile .ic.gold { background:var(--accent-soft); } .tile .ic.gold svg { stroke:var(--accent); }
.tile .label { font-size:12.5px; color:var(--muted); font-weight:500; }
.tile .big { font-size:23px; font-weight:600; color:var(--ink); margin-top:4px; font-variant-numeric:tabular-nums; letter-spacing:-.02em; }

/* list rows */
.lrow { display:flex; align-items:center; gap:12px; padding:13px 10px; border-bottom:1px solid var(--line); border-radius:var(--r-sm); color:var(--ink); transition:background .1s; }
.lrow:hover { background:var(--surface-2); }
.lrow:last-child { border-bottom:0; }
.lrow .lr-main { min-width:0; }
.lrow .lr-main b { font-weight:500; display:block; }
.lrow .lr-main span { color:var(--muted); font-size:12px; }

/* tables */
table { border-collapse:separate; border-spacing:0; width:100%; }
th { background:var(--surface-2); font-size:11px; letter-spacing:.02em; color:var(--muted); font-weight:600; text-align:left; padding:10px 14px; border-bottom:1px solid var(--line); text-transform:uppercase; }
th:first-child { border-top-left-radius:var(--r-md); } th:last-child { border-top-right-radius:var(--r-md); }
tbody td { padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:middle; font-size:13px; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover td { background:var(--surface-2); }

/* ------------------------------------------------------------- Login */
.login { min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--bg); padding:24px; }
.loginbox { width:100%; max-width:400px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-md); padding:34px 32px; }
.loginbox .logo { display:flex; align-items:center; gap:10px; margin-bottom:24px; }
.loginbox .logo .mark { width:32px; height:32px; border-radius:8px; background:var(--ink); display:flex; align-items:center; justify-content:center; }
.loginbox .logo .mark svg { width:18px; height:18px; stroke:#fff; fill:none; }
.loginbox .logo b { font-size:16px; font-weight:600; letter-spacing:-.02em; }
.loginbox .logo span { display:block; font-size:11.5px; color:var(--muted-2); }
.loginbox h2 { font-size:20px; letter-spacing:-.02em; margin-bottom:4px; }
.loginbox .lead { color:var(--muted); margin-bottom:22px; font-size:13.5px; }
.acct-list { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.acct { display:flex; align-items:center; gap:11px; width:100%; text-align:left; padding:10px 12px; border:1px solid var(--line-2); border-radius:var(--r-md); background:var(--surface); transition:border-color .12s, background .12s; }
.acct:hover:not([disabled]) { border-color:var(--accent); background:var(--accent-soft); }
.acct[disabled] { opacity:.5; cursor:not-allowed; }
.acct .meta { min-width:0; flex:1; } .acct .meta b { display:block; font-weight:500; font-size:13.5px; }
.acct .meta span { color:var(--muted); font-size:12px; }
.acct .role { font-size:10.5px; font-weight:600; letter-spacing:.02em; text-transform:uppercase; padding:2px 8px; border-radius:var(--r-pill); background:var(--surface-3); color:var(--muted); }
.acct .role.admin { background:var(--accent-soft); color:var(--accent); }
.acct .role.manager { background:var(--st-app-bg); color:var(--st-app-fg); }
.divider { display:flex; align-items:center; gap:12px; color:var(--muted-2); font-size:12px; margin:16px 0; }
.divider::before,.divider::after { content:""; height:1px; background:var(--line); flex:1; }

/* ------------------------------------------------------------- Planner */
.planner-wrap { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); overflow:hidden; margin-bottom:16px; }
.week-tabs { display:none; }
.pgrid { display:grid; grid-template-columns:84px repeat(5,1fr); }
.pgrid .corner, .pgrid .dow { position:sticky; top:0; background:var(--surface-2); z-index:1; padding:11px 14px; font-size:11px; font-weight:600; letter-spacing:.02em; text-transform:uppercase; color:var(--muted-2); border-bottom:1px solid var(--line); }
.pgrid .dow { border-left:1px solid var(--line); }
.pgrid .wk { display:flex; align-items:flex-start; padding:14px 12px; font-weight:600; font-size:12.5px; color:var(--ink-2); background:var(--surface-2); border-bottom:1px solid var(--line); }
.pgrid .cell { border-bottom:1px solid var(--line); border-left:1px solid var(--line); padding:8px; display:flex; flex-direction:column; gap:4px; min-width:0; }
.pgrid .cell .daylabel { display:none; }
.pgrid .cell textarea { border:1px solid transparent; background:transparent; border-radius:var(--r-xs); padding:5px 7px; min-height:0; font-size:12.5px; line-height:1.4; resize:none; field-sizing:content; }
.pgrid .cell textarea:hover { background:var(--surface-2); }
.pgrid .cell textarea:focus { background:var(--surface); border-color:var(--accent); box-shadow:var(--ring); }
.pgrid .cell textarea.f-plan { font-weight:600; color:var(--ink); }
.pgrid .cell textarea.f-loc { color:var(--accent-600); font-weight:500; }
.pgrid .cell textarea.f-obj { color:var(--muted); }

/* allocation bar */
.alloc-bar { display:flex; height:32px; border-radius:var(--r-sm); overflow:hidden; border:1px solid var(--line); background:var(--surface-3); margin:8px 0 4px; }
.alloc-seg { display:flex; align-items:center; justify-content:center; color:#fff; font-size:11.5px; font-weight:500; min-width:0; transition:flex-basis .25s var(--ease); overflow:hidden; white-space:nowrap; }
.alloc-seg.field { background:var(--accent); }
.alloc-seg.admin { background:#64748b; }
.alloc-seg.meeting { background:#cbd5e1; color:var(--ink-2); }
.alloc-legend { display:flex; gap:16px; flex-wrap:wrap; margin-top:10px; font-size:12.5px; color:var(--muted); }
.alloc-legend .lg { display:flex; align-items:center; gap:6px; }
.alloc-legend .dot { width:8px; height:8px; border-radius:2px; }
.alloc-legend .dot.field{background:var(--accent)} .alloc-legend .dot.admin{background:#64748b} .alloc-legend .dot.meeting{background:#cbd5e1}

/* empty state */
.empty { text-align:center; padding:32px 20px; color:var(--muted); border:1px dashed var(--line-2); border-radius:var(--r-md); background:var(--surface-2); }
.empty .ei { width:40px; height:40px; margin:0 auto 12px; border-radius:10px; background:var(--surface-3); display:flex; align-items:center; justify-content:center; }
.empty .ei svg { width:20px; height:20px; stroke:var(--muted-2); fill:none; }

/* review cards */
.review-item { border-left:2px solid var(--accent); }

/* ====================================================== RESPONSIVE ======= */
@media (max-width:960px) {
  .sidebar { display:none; }
  .topbar .hamburger { display:inline-flex; }
  .bottomnav { display:flex; position:fixed; bottom:0; left:0; right:0; z-index:45; height:60px; background:rgba(255,255,255,.94); backdrop-filter:blur(8px); border-top:1px solid var(--line); padding:6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:var(--muted-2); font-size:10.5px; font-weight:500; border-radius:var(--r-sm); padding:5px 2px; }
  .bottomnav a svg { width:20px; height:20px; stroke:var(--muted-2); fill:none; stroke-width:1.7; }
  .bottomnav a.active { color:var(--ink); }
  .bottomnav a.active svg { stroke:var(--accent); }
  .view { padding-bottom:80px; }
}
@media (min-width:961px) { .drawer, .overlay { display:none !important; } }

/* planner -> stacked day cards on mobile */
@media (max-width:760px) {
  .week-tabs { display:flex; gap:7px; padding:12px; overflow-x:auto; border-bottom:1px solid var(--line); background:var(--surface-2); }
  .week-tabs button { flex:0 0 auto; padding:7px 13px; border-radius:var(--r-pill); border:1px solid var(--line-2); background:var(--surface); font-weight:500; font-size:12.5px; color:var(--muted); white-space:nowrap; }
  .week-tabs button.active { background:var(--ink); color:#fff; border-color:var(--ink); }
  .pgrid { display:block; }
  .pgrid .corner, .pgrid .dow, .pgrid .wk { display:none; }
  .pgrid .cell { border:1px solid var(--line); border-radius:var(--r-md); margin:12px; padding:14px; }
  .pgrid .cell.hidden-week { display:none; }
  .pgrid .cell .daylabel { display:flex; align-items:center; justify-content:space-between; font-weight:600; font-size:14px; color:var(--ink); margin-bottom:6px; }
  .pgrid .cell .daylabel .wk-pill { font-size:11px; color:var(--muted-2); font-weight:500; }
  .pgrid .cell textarea { background:var(--surface-2); min-height:38px; font-size:13.5px; padding:8px 10px; }

  table.reflow thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  table.reflow, table.reflow tbody, table.reflow tr, table.reflow td { display:block; width:100%; }
  table.reflow tr { border:1px solid var(--line); border-radius:var(--r-md); margin-bottom:12px; padding:6px; background:var(--surface); }
  table.reflow td { border:0 !important; padding:7px 8px; display:flex; gap:10px; align-items:flex-start; }
  table.reflow td::before { content:attr(data-label); flex:0 0 36%; max-width:36%; color:var(--muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.02em; padding-top:7px; }
  table.reflow td > * { flex:1; }
  table.reflow tr:hover td { background:transparent; }

  .card table:not(.reflow) { display:block; overflow-x:auto; white-space:nowrap; }
  .page-head { align-items:flex-start; }
  .page-head .actions { width:100%; }
}
@media (max-width:520px) { .topbar .section-title .crumb { display:none; } }

/* ====================================================== Server-rendered app additions */

/* topbar brand (server shell) */
.topbar .brand-inline { display:flex; align-items:center; gap:10px; }
.topbar .brand-inline .mark { width:28px; height:28px; border-radius:7px; background:var(--ink); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13px; }

/* sidebar links use plain <a>; nav-link styling already covers them */
.sidebar .brand .mark b { color:#fff; font-weight:700; font-size:14px; }

/* simple two/three column key-value grids on detail pages */
.kv { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }

/* allocation number inputs */
.alloc-inputs { display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end; }
.alloc-inputs label.field { margin-bottom:0; flex:1 1 120px; }
.alloc-total { font-variant-numeric:tabular-nums; font-weight:600; }

/* daily report day section */
.day-block { margin-bottom:18px; }
.day-block > h4 { font-size:13px; color:var(--ink-2); margin-bottom:8px; letter-spacing:-.01em; }
.day-rows td { vertical-align:top; }
.day-rows td textarea, .day-rows td input { min-height:38px; font-size:13px; }
.day-rows .rm { color:var(--red); border:1px solid var(--line-2); background:var(--surface); border-radius:var(--r-xs); padding:4px 8px; font-size:12px; }
.day-rows .rm:hover { background:var(--red-soft); border-color:var(--red-line); }

/* filter bar */
.filterbar { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; margin-bottom:16px; }
.filterbar label.field { margin-bottom:0; min-width:150px; }

/* review queue item */
.review-item { border-left:2px solid var(--accent); padding-left:16px; }
.review-item .ri-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.review-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; margin-top:12px; }
.review-actions form { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
.review-actions .comment { min-width:240px; }

/* inline forms */
.inline-form { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
.inline-form label.field { margin-bottom:0; }

/* read-only planner cell text (admin view) */
.pgrid .cell .ro { font-size:12.5px; line-height:1.4; padding:5px 7px; }
.pgrid .cell .ro.f-plan { font-weight:600; color:var(--ink); }
.pgrid .cell .ro.f-loc { color:var(--accent-600); font-weight:500; }
.pgrid .cell .ro.f-obj { color:var(--muted); }
