:root {
  --teal: #00695c; --teal-deep: #005a4f; --teal-soft: #e3f1ec; --mint: #88ddc5; --mint-soft: #d9eee5;
  --paper: #f5f8f5; --card: #ffffff; --ink: #16352f; --muted: #5f716a; --faint: #8a9a92; --line: #dfe7e1; --line-strong: #c9d5cc;
  --danger: #b42318; --danger-soft: #fdecea; --warn: #8a5a00; --warn-soft: #fff4d6; --ok: #0f7b4f;
  --shadow: 0 1px 2px rgba(22, 53, 47, .06), 0 8px 24px rgba(22, 53, 47, .07);
  --radius: 16px; --radius-sm: 11px; --tap: 46px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal: #4fc3ad; --teal-deep: #3aa893; --teal-soft: #163a34; --mint: #88ddc5; --mint-soft: #1f4a42;
    --paper: #0f1f1b; --card: #172a26; --ink: #ecf4f0; --muted: #a3b5ae; --faint: #7d8f88; --line: #24413a; --line-strong: #2f5249;
    --danger: #ff6b5c; --danger-soft: #3a1f1c; --warn: #f2c56b; --warn-soft: #3a3012; --ok: #62d49c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.6px; }
h2 { font-size: 21px; font-weight: 650; letter-spacing: -.4px; }
h3 { font-size: 17px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.caps { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.mono { font-family: "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.noscript { padding: 40px; text-align: center; }

/* ---------- Boot ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 16px; color: var(--muted); }
.boot img { margin: auto; border-radius: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: 100px; border: 1px solid transparent; background: var(--teal); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .12s ease, background .15s ease, opacity .15s; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--teal-soft); }
.btn.ghost { background: transparent; color: var(--teal); border-color: transparent; padding: 0 12px; }
.btn.ghost:hover { background: var(--teal-soft); }
.btn.apple { background: #000; color: #fff; border-color: #000; }
.btn.apple:hover { background: #1a1a1a; }
@media (prefers-color-scheme: dark) { .btn.apple { background: #fff; color: #000; border-color: #fff; } .btn.apple:hover { background: #e8e8e8; } }
.btn.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.icon { width: var(--tap); padding: 0; }
.btn svg { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; color: var(--teal); font-weight: 600; text-decoration: none; cursor: pointer; min-height: 32px; }
.link:hover { text-decoration: underline; }
.link.muted { color: var(--muted); font-weight: 500; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field .hint { font-size: 13px; color: var(--muted); }
.field textarea.over { border-color: var(--warn); }
.field textarea.over + .hint, .field:has(textarea.over) .hint { color: var(--warn); }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }
.error { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin: 0 0 14px; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin: 0 0 14px; }
.success { background: var(--teal-soft); color: var(--teal); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin: 0 0 14px; }
.code-input { letter-spacing: 6px; font-size: 24px !important; text-align: center; font-variant-numeric: tabular-nums; }
.segmented { position: relative; display: inline-flex; background: var(--line); padding: 3px; border-radius: 100px; gap: 2px; max-width: 100%; min-width: 0; flex-shrink: 1; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
/* Fade the right edge so it's visible there are more filters to scroll to. */
.segmented-wrap { position: relative; min-width: 0; display: flex; }
.segmented-wrap::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 28px; pointer-events: none; border-radius: 0 100px 100px 0; background: linear-gradient(to right, transparent, var(--paper)); opacity: var(--more, 0); transition: opacity .2s; }
.segmented button { scroll-snap-align: center; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { border: 0; background: transparent; color: var(--muted); border-radius: 100px; padding: 8px 14px; font-weight: 600; font-size: 14px; min-height: 36px; white-space: nowrap; }
.segmented button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 100px; border: 1px solid var(--line-strong); background: var(--card); font-size: 14px; font-weight: 500; }
.chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip.on.mint { background: var(--mint-soft); color: var(--ink); border-color: transparent; }
.chip.dashed { border-style: dashed; color: var(--muted); }
/* People read differently from rooms: an unpicked person is an outline, a picked one is solid with a tick. */
.chip.person { border-style: dashed; }
.chip.person.on { border-style: solid; }
.chip.person svg { width: 15px; height: 15px; margin-right: -2px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); }
.switch input { width: 44px; height: 26px; appearance: none; background: var(--line-strong); border-radius: 100px; position: relative; transition: background .15s; cursor: pointer; margin: 0; }
.switch input:checked { background: var(--teal); }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- Layout ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-bottom)); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 32px 26px; }
.auth-card .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-card .brand img { width: 44px; height: 44px; border-radius: 12px; }
.auth-card .brand strong { font-size: 20px; letter-spacing: -.5px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 22px; }
.auth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.auth-foot { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; font-size: 14px; color: var(--muted); }
.legal-line { font-size: 12.5px; color: var(--muted); line-height: 1.5; text-align: center; margin-top: 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.topbar .title { flex: 1; min-width: 0; }
.topbar .title h1 { font-size: 18px; letter-spacing: -.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .title .sub { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .title .sub.attention { color: var(--warn); font-weight: 600; }
.topbar .title .sub.offline { color: var(--danger); }
.main { padding: 16px 16px calc(96px + var(--safe-bottom)); width: 100%; max-width: 920px; margin: 0 auto; min-width: 0; }
.main.wide { max-width: 1100px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around; padding: 6px 8px calc(6px + var(--safe-bottom)); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 12px; min-height: 50px; justify-content: center; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--teal); }
@media (min-width: 900px) {
  .shell { grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sidebar { grid-row: 1 / span 2; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; background: var(--card); }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; text-decoration: none; color: inherit; }
  .sidebar .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .sidebar .brand strong { font-size: 17px; letter-spacing: -.4px; }
  .sidebar a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
  .sidebar a.nav svg { width: 20px; height: 20px; }
  .sidebar a.nav.on { background: var(--teal-soft); color: var(--teal); }
  .sidebar a.nav:hover:not(.on) { background: var(--paper); }
  .sidebar .spacer { flex: 1; }
  .sidebar .biz { padding: 12px; border-radius: 12px; background: var(--paper); font-size: 13px; color: var(--muted); }
  .sidebar .biz strong { display: block; color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar { display: none; }
  .main { padding: 24px 32px 48px; }
  .topbar { padding: 8px 32px; }
}
@media (max-width: 899px) { .sidebar { display: none; } }

/* ---------- Cards, lists ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card h2, .card h3 { margin-bottom: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 60px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.row:last-child { border-bottom: 0; }
a.row:hover, button.row:hover { background: color-mix(in srgb, var(--teal-soft) 55%, var(--card)); }
.row .body { flex: 1; min-width: 0; }
.row .body strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .body .sub { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .chev { color: var(--faint); flex: none; }
/* Rows that carry buttons (the team list) put the actions on their own line rather than squeezing
   the name to nothing — a phone has no room for name + badge + two buttons + icon on one line. */
.row.stack { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'avatar body badge' 'actions actions actions'; align-items: center; row-gap: 10px; }
.row.stack > .avatar { grid-area: avatar; }
.row.stack > .body { grid-area: body; }
.row.stack > .badge { grid-area: badge; }
.row.stack > .actions-inline { grid-area: actions; justify-content: flex-start; padding-left: 52px; }
@media (min-width: 620px) {
  .row.stack { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: 'avatar body badge actions'; }
  .row.stack > .actions-inline { padding-left: 0; }
}
.row .time { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 68px; font-size: 14px; }
.row .time .end { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 10px; }
.section-title h2 { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: .2px; }
.section-title:first-child { margin-top: 4px; }
.badge { display: inline-flex; flex: none; align-self: center; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; background: var(--mint-soft); color: var(--ink); white-space: nowrap; }
.badge.done { background: var(--teal); color: #fff; }
.badge.working { background: var(--warn-soft); color: var(--warn); }
.badge.neutral { background: var(--line); color: var(--muted); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--teal); font-weight: 700; font-size: 14px; flex: none; }
.progress-bar { height: 6px; border-radius: 100px; background: var(--line); overflow: hidden; }
.progress-bar > i { display: block; height: 100%; background: var(--teal); border-radius: 100px; transition: width .3s ease; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px; opacity: .9; }
.empty h2 { color: var(--ink); margin-bottom: 8px; }
.empty p { max-width: 380px; margin: 0 auto 18px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.stat { background: var(--paper); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.stat span { font-size: 12.5px; color: var(--muted); }
.bars { display: flex; gap: 8px; align-items: flex-end; height: 108px; }
.bars > div > b { display: block; font-weight: 600; margin-bottom: 3px; }
.bars > div { flex: 0 1 64px; min-width: 28px; text-align: center; }
.bars > div > div { background: var(--teal); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; min-width: 0; }
.toolbar .grow { flex: 1; min-width: 160px; }
.search { position: relative; }
.search input { padding-left: 38px !important; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.fab { position: fixed; right: 16px; bottom: calc(76px + var(--safe-bottom)); z-index: 19; box-shadow: 0 8px 24px rgba(0,105,92,.35); padding: 0 20px 0 16px; }
@media (min-width: 900px) { .fab { display: none; } }

/* ---------- Checklist ---------- */
.room { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.room-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.room-head h3 { font-size: 17px; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 10px 4px; border: 0; background: none; width: 100%; text-align: left; min-height: var(--tap); font-size: 15.5px; line-height: 1.35; color: inherit; border-radius: 10px; }
.task:hover:not(:disabled) { background: var(--paper); }
.task:disabled { cursor: default; }
.task .box { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: all .15s; margin-top: 1px; }
.task.on .box { background: var(--teal); border-color: var(--teal); color: #fff; }
.task .box svg { width: 15px; height: 15px; }
.task.on span.label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.photo-slot { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; border: 1.5px dashed var(--line-strong); background: var(--paper); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; padding: 8px; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-slot .tag { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 100px; letter-spacing: .5px; z-index: 1; }
.photo-slot .stamp { position: absolute; bottom: 6px; left: 8px; right: 8px; color: #fff; font-size: 11px; text-shadow: 0 1px 2px rgba(0,0,0,.7); text-align: left; z-index: 1; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 2; }
.photo-slot .x { position: absolute; top: 6px; right: 6px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.photo-slot.filled { border-style: solid; border-color: transparent; }
.note-box { background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; white-space: pre-wrap; color: var(--ink); }
.note-box.empty { color: var(--muted); font-style: italic; }

/* ---------- Sheets (modals) ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(10, 30, 26, .45); display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: fade .18s ease; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 20px calc(24px + var(--safe-bottom)); animation: rise .22s cubic-bezier(.2,.8,.2,1); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { font-size: 19px; }
.sheet .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.sheet .actions .btn { flex: 1; }
@media (min-width: 700px) {
  .sheet-back { align-items: center; padding: 24px; }
  .sheet { border-radius: 22px; max-height: 88vh; padding: 24px; }
  .sheet .actions .btn { flex: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500; max-width: min(92vw, 480px); box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: rise .2s ease; }
.toast.error { background: var(--danger); color: #fff; }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- Attention banner ---------- */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: 14px; margin-bottom: 14px; }
.banner.info { background: var(--teal-soft); color: var(--teal); }
.banner.danger { background: var(--danger-soft); color: var(--danger); }
.banner .grow { flex: 1; }
.banner .btn { flex: none; }

/* ---------- Business picker ---------- */
.biz-row .kind { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex: none; }
.biz-row .kind svg { width: 22px; height: 22px; }
.kind-picker { display: grid; gap: 10px; margin-bottom: 14px; }
.kind-option { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--card); text-align: left; }
.kind-option.on { border-color: var(--teal); background: var(--teal-soft); }
.kind-option .kind { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--teal); flex: none; }
.kind-option.on .kind { background: var(--card); }
.kind-option .kind svg { width: 20px; height: 20px; }
.kind-option strong { display: block; }
.kind-option span { font-size: 13px; color: var(--muted); }

/* ---------- Spinner ---------- */
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--teal); animation: spin .8s linear infinite; display: inline-block; }
.btn .spinner { border-color: rgba(255,255,255,.4); border-top-color: #fff; width: 18px; height: 18px; }
.btn.secondary .spinner { border-color: var(--line-strong); border-top-color: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.pad { padding: 32px 16px; }

/* ---------- Report ---------- */
.report-wrap { max-width: 820px; margin: 0 auto; padding: 16px; }
.report-page { background: #fff; color: #163b33; border-radius: 14px; box-shadow: var(--shadow); padding: 36px 40px; margin-bottom: 18px; page-break-after: always; break-after: page; font-family: var(--font); }
.report-page:last-child { page-break-after: auto; break-after: auto; }
.report-brand { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.report-brand strong { font-size: 20px; letter-spacing: -.4px; }
.report-brand .biz { font-size: 12px; color: #6a7e76; }
.report-title { font-size: 11px; letter-spacing: 2.4px; font-weight: 700; color: #00695c; margin-top: 18px; }
.report-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 4px 10px; border-radius: 100px; background: #d9eee5; color: #163b33; margin-left: 10px; vertical-align: middle; }
.report-pill.done { background: #00695c; color: #fff; }
.report-rule { height: 3px; background: #00695c; margin: 12px 0 16px; border-radius: 2px; }
.report-h { font-size: 26px; font-weight: 700; letter-spacing: -.6px; }
.report-meta { color: #4c6059; font-size: 14px; margin-top: 4px; }
.report-demo { margin-top: 12px; padding: 8px 12px; background: #fff4d6; color: #8a5a00; font-size: 12px; font-weight: 700; letter-spacing: .5px; border-radius: 8px; }
.report-section { margin-top: 24px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #dfe7e1; padding-bottom: 8px; }
.report-section h3 { font-size: 20px; }
.report-section span { color: #6a7e76; font-size: 13px; }
.report-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.report-photo { border-radius: 10px; overflow: hidden; background: #f1f5f2; border: 1px solid #dfe7e1; }
.report-photo .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; color: #8a9a92; font-size: 13px; }
.report-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.report-photo figcaption { font-size: 11.5px; color: #4c6059; padding: 8px 10px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.report-photo figcaption b { letter-spacing: 1px; font-size: 10.5px; }
.report-tasks { list-style: none; padding: 0; margin: 18px 0 0; }
.report-tasks li { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid #eef2ef; font-size: 14.5px; }
.report-tasks li .c { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #00695c; flex: none; display: grid; place-items: center; }
.report-tasks li.on .c { background: #00695c; }
.report-tasks li.on .c::after { content: ''; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.report-tasks li .nd { margin-left: auto; font-size: 11.5px; font-weight: 600; color: #b42318; }
.report-continuation .report-notes { margin-top: 8px; }
.report-notes { margin-top: 20px; }
.report-notes .caps { color: #00695c; }
.report-notes p { margin-top: 6px; font-size: 14px; white-space: pre-wrap; color: #163b33; }
.report-foot { margin-top: 28px; display: flex; justify-content: space-between; font-size: 11px; color: #8a9a92; }
@media print {
  body { background: #fff; }
  .no-print, .topbar, .tabbar, .sidebar, .toast { display: none !important; }
  .report-wrap { padding: 0; max-width: none; }
  .report-page { box-shadow: none; border-radius: 0; margin: 0; padding: 12mm 14mm; min-height: 100vh; }
  @page { size: letter; margin: 0; }
}

/* Internal operations dashboard: uses the product's light teal palette. */
.ops-page{max-width:1180px;margin:auto;padding:32px 24px 80px}.ops-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.ops-header h1{font-size:clamp(32px,5vw,52px);letter-spacing:-1.5px;margin:4px 0 12px}.ops-eyebrow{font-size:11px;letter-spacing:2px;margin:24px 0 8px;color:#57766d}.ops-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.ops-stat,.ops-metric{background:white;border:1px solid #dce7e2;border-radius:20px;padding:22px}.ops-stat span{font-size:13px;color:#59716a}.ops-stat strong{display:block;font-size:32px;margin-top:10px}.ops-note{background:#e5f2ec;border-radius:18px;padding:22px;margin:28px 0}.ops-note p{margin-top:8px}.ops-provider{margin-top:32px}.ops-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.ops-metric .between{gap:12px;flex-wrap:wrap}.ops-metric h3{margin:16px 0 8px}.ops-metric p{margin:8px 0}.ops-value{font-size:28px;font-weight:650}.ops-value span{font-size:14px;font-weight:400;color:#59716a}.ops-status{font-size:11px;padding:5px 8px;border-radius:8px;background:#eef1ef;color:#506259}.ops-status.ok{background:#dcf5e8;color:#14613b}.ops-status.warn{background:#fff0c5;color:#744f00}.ops-status.danger{background:#ffe2dc;color:#913224}.ops-meter{height:7px;background:#edf1ef;border-radius:7px;overflow:hidden;margin:14px 0}.ops-meter i{display:block;height:100%;background:#007d70}.ops-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.ops-table th,.ops-table td{padding:12px 10px;border-bottom:1px solid #dce7e2;white-space:nowrap}.ops-table th{font-weight:500;color:#59716a}@media(max-width:640px){.ops-page{padding:22px 16px 60px}.ops-header{align-items:flex-start;flex-direction:column}.ops-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-grid{grid-template-columns:1fr}.ops-stat,.ops-metric{padding:18px}.ops-value{font-size:25px}}
