/* Inovo app theme, Nov 2026 refresh (Omar: "feel like getkera, buildium and shopify, with our colours and logo; don't
   copy, be inspired"). A calm grey-blue canvas, crisp white cards, a deep navy sidebar with the white INOVO wordmark,
   Inovo blue for actions and focus, Inter for reading, Josefin Sans only for the wordmark.
   Tokens: --brand (Inovo blue, white text passes WCAG AA), --nav (sidebar navy), --canvas (page), --paper (cards). */
:root {
  --brand: #1b75bc;
  --brand-strong: #155f99;
  --brand-ink: #ffffff;
  --ink: #0f2a44;
  --ink-soft: #33506b;
  --slate: #5f7891;
  --sky: #e3effa;
  --sky-strong: #bcd8f1;
  --paper: #ffffff;
  --canvas: #f3f6fa;
  --panel: #f7f9fc;
  --line: #e1e8f0;
  --line-strong: #cfdae6;
  --nav: #0f2a44;
  --nav-ink: #c9d8e8;
  --nav-hover: #183a5c;
  --nav-active: #1b75bc;
  --good: #17734a;   --good-bg: #e2f4ea;
  --warn: #8a5a00;   --warn-bg: #fdf1d8;
  --bad: #b3261e;    --bad-bg: #fce6e4;
  --focus: #2f7fd0;
  --shadow: 0 1px 0 rgba(15, 42, 68, .04), 0 1px 3px rgba(15, 42, 68, .08);
  --shadow-pop: 0 4px 6px -2px rgba(15, 42, 68, .08), 0 12px 32px -8px rgba(15, 42, 68, .18);
  --radius: 12px;
  --radius-sm: 8px;
  --font-title: "Josefin Sans", "Inter", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-ui);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6fb6ee; --brand-strong: #8cc6f2; --brand-ink: #0b1f33;
    --ink: #eaf2fb; --ink-soft: #c5d6e8; --slate: #9db5cc; --sky: #17324d; --sky-strong: #24527c;
    --paper: #111d2b; --canvas: #0a141f; --panel: #142233; --line: #213447; --line-strong: #2c4560;
    --nav: #07111b; --nav-ink: #a9bfd6; --nav-hover: #12233a; --nav-active: #1b75bc;
    --good: #6fd3a0; --good-bg: #12301f; --warn: #f3c46b; --warn-bg: #33270d; --bad: #ff8a80; --bad-bg: #3a1714;
    --focus: #7fb3e6; --shadow: 0 1px 2px rgba(0,0,0,.5); --shadow-pop: 0 12px 32px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font: 14px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ---------- shell: navy sidebar, top bar, canvas ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--nav); color: var(--nav-ink); padding: 22px 12px 18px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-color: #2a4a6b transparent; }
.brand { text-decoration: none; display: block; padding: 2px 12px 6px; }
.brand-name { font: 700 30px/1 var(--font-title); letter-spacing: .01em; color: var(--brand); }
.brand-sub { margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); }
/* Inovo wordmark */
.logo { display: inline-flex; flex-direction: column; align-items: center; color: var(--brand); line-height: 1; }
.logo-word { font: 400 34px/1 var(--font-title); letter-spacing: .14em; padding-left: .14em; padding-top: .3em; }
.logo-v { position: relative; display: inline-block; }
.logo-caret { position: absolute; left: 50%; top: -.36em; width: .62em; height: .34em; transform: translateX(-56%); }
.logo-sub { margin-top: 7px; font: 600 9.5px/1 var(--font-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--slate); padding-left: .26em; }
.sidebar .logo { color: #fff; }
.sidebar .logo-word { font-size: 30px; }
.sidebar .logo-sub { color: #8fb3d6; font-size: 8.5px; }
.topbar .logo-word { font-size: 24px; }
.topbar .logo-sub { font-size: 7.5px; }
.logo-lg .logo { color: #fff; }
.logo-lg .logo-word { font-size: 52px; }
.logo-lg .logo-sub { color: #fff; font-size: 12.5px; letter-spacing: .3em; margin-top: 10px; }
.nav-group h2 { margin: 0 12px 6px; font: 600 11px/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: #7f9cb9; }
.nav-group a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; margin: 1px 0; border-radius: var(--radius-sm); text-decoration: none; color: var(--nav-ink); font-weight: 500; font-size: 14px; transition: background .12s, color .12s; }
.nav-group a:hover { background: var(--nav-hover); color: #fff; }
.nav-group a.active { background: var(--nav-active); color: #fff; font-weight: 600; box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); }
.sidebar-foot { margin-top: auto; padding: 12px 12px 0; font-size: 12.5px; color: #8fa9c3; border-top: 1px solid #1d3a58; }
.sidebar-foot strong { color: #fff; font-weight: 600; }
.sidebar-foot form { margin-top: 6px; }
.sidebar .linkish { color: #cfe0f1; }
.sidebar .report-problem summary { color: #9cc3e8; }
.sidebar .report-problem textarea { background: #0b2136; color: #fff; border-color: #24476b; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

.appbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 14px; padding: 10px clamp(16px, 3vw, 36px);
  background: color-mix(in srgb, var(--canvas) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.appbar .side-search { margin: 0; flex: 1 1 auto; max-width: 560px; }
.appbar .side-search input { padding: 8px 14px 8px 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235f7891' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 12px 50%; box-shadow: var(--shadow); }
.appbar .who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; }

.main { padding: 24px clamp(16px, 3vw, 36px) 64px; min-width: 0; max-width: 1280px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--brand); margin: 0 0 4px; }
h1 { font: 650 26px/1.2 var(--font-ui); margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h2 { font: 600 16px/1.35 var(--font-ui); margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.muted { color: var(--slate); }
.small { font-size: 12.5px; }

.topbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; inset: 0; z-index: 30; height: 100%; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--nav); position: sticky; top: 0; z-index: 20; }
  .topbar .logo { color: #fff; } .topbar .logo-sub { color: #8fb3d6; }
  .topbar .btn.ghost { color: #fff; border-color: #2d5172; background: transparent; }
  .appbar { top: 56px; }
  .appbar .who span.name { display: none; }
  h1 { font-size: 22px; }
}

/* ---------- surfaces ---------- */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
.split.reverse { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .split, .split.reverse { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; background: var(--paper); border-color: var(--line); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 14px; }
.card-head h2 { margin: 0; }
.stack { display: grid; gap: 16px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { border-radius: var(--radius); padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat.hero { background: linear-gradient(135deg, var(--brand) 0%, #2f8fd6 100%); border-color: transparent; color: #fff; }
.stat .label { font-size: 12.5px; color: var(--slate); font-weight: 500; }
.stat.hero .label, .stat.hero .hint { color: #dcecfa; }
.stat .value { font-size: 26px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .hint { font-size: 12px; color: var(--slate); margin-top: 2px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--slate); padding: 9px 12px; background: var(--panel); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); white-space: nowrap; }
th:first-child { border-top-left-radius: var(--radius-sm); } th:last-child { border-top-right-radius: var(--radius-sm); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .1s; }
tbody tr:hover td { background: color-mix(in srgb, var(--sky) 45%, transparent); }
td a { font-weight: 600; text-decoration: none; color: var(--brand); }
td a:hover { text-decoration: underline; }
.empty { padding: 32px; text-align: center; color: var(--slate); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper); }

/* ---------- badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--panel); color: var(--ink-soft); border: 1px solid var(--line); line-height: 1.6; }
.chip.good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.chip.info { background: var(--sky); color: var(--brand-strong); border-color: transparent; }
.chip.good::before, .chip.warn::before, .chip.bad::before, .chip.info::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--brand-strong); background: var(--brand); color: var(--brand-ink); font: 600 13.5px/1.1 var(--font-ui); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(15,42,68,.18); transition: background .12s, box-shadow .12s, transform .06s; }
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); box-shadow: 0 1px 0 rgba(15,42,68,.05); }
.btn.ghost:hover { background: var(--panel); border-color: var(--slate); }
.btn.soft { background: var(--sky); border-color: transparent; color: var(--brand-strong); box-shadow: none; }
.btn.soft:hover { background: var(--sky-strong); }
.btn.danger { background: var(--paper); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); box-shadow: none; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions input[type=date], .actions input[type=month], .actions input[type=text] { width: auto; min-width: 150px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

form.fields { display: grid; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.field .help { font-size: 12.5px; color: var(--slate); margin-top: 4px; }
.field .error { font-size: 12.5px; color: var(--bad); margin-top: 4px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=month], input[type=tel], input[type=url], input[type=datetime-local], input[type=time], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font: inherit; transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover, textarea:hover { border-color: var(--slate); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); outline: none; }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--brand); vertical-align: -3px; margin-right: 6px; }
.field.check label { font-weight: 500; display: flex; align-items: center; }
.field ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.field ul label { font-weight: 500; display: flex; align-items: center; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
details.disclose { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
details.disclose summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
details.disclose summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--sky); color: var(--brand-strong); font-weight: 700; }
details.disclose[open] summary::before { content: "–"; }
details.disclose > form { margin-top: 14px; }

/* ---------- messages ---------- */
.messages { display: grid; gap: 8px; margin-bottom: 18px; }
.msg { padding: 11px 14px; border-radius: var(--radius-sm); font-weight: 500; border: 1px solid var(--sky-strong); position: relative; background: var(--sky); color: var(--ink); }
.msg.success, .msg.error, .msg.info, .msg.warning { padding-left: 40px; }
.msg::before { position: absolute; left: 14px; top: 11px; font-weight: 700; }
.msg.success { background: var(--good-bg); color: var(--good); border-color: color-mix(in srgb, var(--good) 20%, transparent); }
.msg.success::before { content: "✓"; }
.msg.error { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 20%, transparent); }
.msg.error::before { content: "!"; }
.msg.info, .msg.warning { background: var(--sky); color: var(--ink); border-color: var(--sky-strong); }
.msg.info::before, .msg.warning::before { content: "i"; color: var(--brand); font-style: italic; }

/* ---------- misc ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.kv dt { color: var(--slate); font-weight: 500; font-size: 13px; }
.kv dd { margin: 0; font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--paper); color: var(--slate); border: 1px solid var(--line); }
.steps li.done { background: var(--good-bg); color: var(--good); border-color: transparent; }
.steps li.now { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.ties { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- lists, filters, links ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.charge-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 14px 18px; }
.charge-bar input[type=month] { width: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.filters .field { min-width: 150px; }
.filters .field.grow { flex: 1 1 240px; }
.filters .field.check { min-width: 0; padding-bottom: 10px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.link-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.copy-field { display: flex; gap: 6px; }
.copy-field input { font-size: 12.5px; padding: 7px 10px; }

/* ---------- public application ---------- */
.public-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.public-inner { max-width: 860px; margin: 0 auto; padding: 18px 16px; }
.public-main { display: grid; gap: 18px; padding-top: 28px; padding-bottom: 48px; }
.public-foot { border-top: 1px solid var(--line); text-align: center; }
.apply-hero h1 { margin: 4px 0 8px; }
fieldset.person { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 14px; display: grid; gap: 12px; }
fieldset.person legend { font-weight: 700; padding: 0 6px; color: var(--brand); }
.suggest { position: relative; }
.suggest-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; }
.suggest-list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.suggest-list li:hover, .suggest-list li.on { background: var(--sky); }
.suggest-list li small { display: block; color: var(--slate); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-art { background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.22), transparent 45%), linear-gradient(160deg, #0f2a44 0%, #164a78 55%, #1b75bc 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .brand-name { font-size: 44px; color: #fff; }
.auth-art .brand-sub { color: #e6f2fc; }
.auth-art p.quote { font: 400 26px/1.35 var(--font-title); max-width: 30ch; }
.auth { background: var(--canvas); }
.auth-form { display: grid; place-items: center; padding: 32px 16px; }
.auth-form .card { width: min(420px, 100%); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { padding: 28px 20px; } .auth-art p.quote { display: none; } }

/* ---------- phones ---------- */
.kv dd { overflow-wrap: anywhere; min-width: 0; }
.card-head { flex-wrap: wrap; }
@media (max-width: 520px) {
  .main { padding: 20px 12px 48px; }
  .card { padding: 16px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .chip { white-space: normal; }
  .page-head { gap: 10px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media print {
  .sidebar, .topbar, nav, .no-print, .btn { display: none !important; }
  body, .card { background: #fff !important; box-shadow: none !important; }
  .main, main { margin: 0 !important; padding: 0 !important; }
}

.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.perm-grid label { display: flex; gap: 8px; align-items: flex-start; }

/* Availability picker: one row per day, three 4-hour windows */
.window-grid { display: grid; gap: 6px; margin: 6px 0 14px; }
.wg-row { display: grid; grid-template-columns: 92px repeat(3, 1fr); gap: 6px; align-items: center; }
.wg-day { font-weight: 700; font-size: 14px; }
.wg-cell { position: relative; display: block; cursor: pointer; }
.wg-cell input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wg-cell span { display: block; text-align: center; padding: 8px 4px; border: 1px solid var(--line, #d6e6f5); border-radius: 10px; font-size: 13px; background: var(--paper); color: var(--ink); }
.wg-cell input:checked + span { background: var(--brand, #1b75bc); border-color: var(--brand, #1b75bc); color: var(--brand-ink); font-weight: 700; }
.wg-cell input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (max-width: 520px) { .wg-row { grid-template-columns: 70px repeat(3, 1fr); } .wg-cell span { font-size: 11px; padding: 8px 2px; } }

/* Work order photos and vendor picker */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.photo { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo span { display: block; padding: 10px; font-size: 12px; color: var(--ink-soft); }
.vendor-pick { display: grid; gap: 6px; }
.vp-row { display: grid; grid-template-columns: 1fr 150px; gap: 8px; align-items: center; }
.vp-row label { display: flex; gap: 8px; align-items: center; }
@media (max-width: 520px) { .vp-row { grid-template-columns: 1fr; } }
.radio-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
fieldset.field { border: 0; padding: 0; margin: 0; } fieldset.field legend { font-weight: 700; margin-bottom: 8px; }
.checklist { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
tr.sub td { border-top: 0; padding-top: 0; }
.ts-panel { border: 1px solid var(--sky-strong); background: var(--panel); border-radius: var(--radius); padding: 14px; margin: 4px 0 14px; }
.wo-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.wo-card.needs-you { border-color: var(--brand); box-shadow: 0 0 0 2px var(--sky); }
[hidden] { display: none !important; }

.sig { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.sig-steps { padding-left: 18px; display: grid; gap: 8px; }
.sig-steps ul { padding-left: 16px; margin: 6px 0; }
.n1-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.portal-access { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }

.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.todo li { display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; align-items: start; }
.todo li > :not(.dot) { grid-column: 2; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; grid-row: span 3; }
.dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); } .dot.info { background: var(--brand); }

.insp-grid { display: grid; gap: 8px; }
.insp-row { display: grid; grid-template-columns: 1.2fr 1fr 2fr; gap: 8px; align-items: center; }
@media (max-width: 640px) { .insp-row { grid-template-columns: 1fr; } }

.side-search input { width: 100%; font: inherit; color: var(--ink); }
.back-btn { margin: 0 0 10px; }

details.nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
details.nav-group > summary::-webkit-details-marker { display: none; }
details.nav-group > summary::after { content: ""; width: 7px; height: 7px; margin-right: 14px; border-right: 1.5px solid #7f9cb9; border-bottom: 1.5px solid #7f9cb9; transform: rotate(-45deg); transition: transform .15s; }
details.nav-group[open] > summary::after { transform: rotate(45deg); }
details.nav-group > summary h2 { margin-bottom: 0; }
.nav-group.plain { margin-bottom: 2px; }
.nav-group.plain + details.nav-group { margin-top: 10px; }
.pdf-preview iframe { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-top: 8px; }
.picker-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.picker-bar input[type=search] { flex: 1 1 220px; }
.picker-list { max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.pick { display: flex; gap: 8px; align-items: center; padding: 4px 6px; }
.pick-group > summary { cursor: pointer; padding: 6px; }
.pick-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 2px 8px; padding: 0 0 6px 24px; }
.report-problem { margin-top: 12px; }
.report-problem summary { cursor: pointer; color: var(--brand); }
.report-problem textarea { width: 100%; margin: 6px 0; font: inherit; }

/* Summary boxes open their list: the whole box is the link (inner links still work). */
.stat { position: relative; }
.stat > a.cover { position: absolute; inset: 0; border-radius: inherit; }
.stat .hint a { position: relative; z-index: 1; }
a.stat { display: block; color: inherit; text-decoration: none; }
a.stat:hover, .stat:has(> a.cover):hover { border-color: var(--brand); box-shadow: 0 1px 6px rgba(0,0,0,.06); cursor: pointer; }
a.stat:focus-visible, .stat > a.cover:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Picture crop for deposit receipts (static/js/crop.js) */
.crop-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.crop-thumb { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.crop-thumb img { max-width: 150px; max-height: 150px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.crop-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 24, 40, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.crop-card { background: var(--paper); border-radius: 12px; padding: 12px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.crop-stage { position: relative; align-self: center; touch-action: none; line-height: 0; }
.crop-stage canvas { cursor: crosshair; max-width: 100%; }
.crop-sel { position: absolute; display: none; border: 2px solid #fff; outline: 1px solid var(--brand); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); pointer-events: none; }
.crop-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crop-bar .small { flex: 1 1 100%; }
.crop-bar .btn { width: auto; flex: 0 0 auto; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat { padding: 12px 14px; } .stat .value { font-size: 20px; } }
