@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/nunito-latin-700-normal.woff2') format('woff2'); }
:root {
  --brand: #556b2f;
  --accent: #c0a78b;
  --bg: #f5edda;
  --heading: #4a3221;
  --on-brand: #ffffff;
  --on-accent: #4a3221;
  --surface: #ffffff;
  --text: color-mix(in srgb, var(--heading) 92%, black);
  --muted: color-mix(in srgb, var(--heading) 60%, white);
  --line: color-mix(in srgb, var(--heading) 13%, white);
  --ok: #4f8a5b;
  --warn: #d38b1f;
  --bad: #c2492f;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, white);
  --accent-soft: color-mix(in srgb, var(--accent) 22%, white);
  --brand-dark: color-mix(in srgb, var(--brand) 80%, black);
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 4px 14px rgba(60, 35, 20, .06);
  --nav-h: 64px;
  --top-h: 56px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--heading); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
a { color: var(--brand); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }

/* ---------- layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 14px; padding-top: env(safe-area-inset-top);
  background: var(--brand); color: var(--on-brand);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-brand); text-decoration: none; min-width: 0; }
.brand img { height: 36px; width: auto; border-radius: 8px; background: #fff; padding: 2px; }
.brand span { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.user-chip {
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: var(--on-brand);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; max-width: 130px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
main { padding: 16px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); max-width: 1100px; margin: 0 auto; outline: none; }

.sidenav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.sidenav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600;
}
.sidenav a svg { width: 24px; height: 24px; }
.sidenav a.active { color: var(--brand); }
.sidenav a.active svg { stroke: var(--brand); }
.sidenav .desk-only { display: none; }
/* Phone: groups melt away so the bar is one row, ordered by each link's phone slot. */
.sidenav .nav-group, .sidenav .nav-group-links { display: contents; }
.sidenav a { order: var(--po, 99); }
.sidenav .nav-scan svg { background: var(--brand); stroke: var(--on-brand) !important; border-radius: 50%; padding: 5px; width: 36px; height: 36px; margin-top: -10px; box-shadow: var(--shadow); }

@media (min-width: 900px) {
  .scan-quick { display: none; }
  .sidenav {
    top: var(--top-h); bottom: 0; right: auto; width: 220px; height: auto; flex-direction: column;
    justify-content: flex-start; padding: 12px 10px; border-top: 0; border-right: 1px solid var(--line); gap: 2px;
  }
  .sidenav a { flex: 0; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
  .sidenav a.active { background: var(--brand-soft); }
  .sidenav .desk-only { display: flex; }
  .sidenav .nav-logout { margin-top: auto; }
  .sidenav .nav-version { display: block; padding: 6px 12px 0; font-size: .75rem; color: var(--muted); }
  .sidenav { overflow-y: auto; }
  .sidenav a { order: 0; flex-shrink: 0; }
  .sidenav .nav-group { display: block; margin-top: 6px; }
  .sidenav .nav-group-links { display: flex; flex-direction: column; gap: 2px; }
  .sidenav .nav-group.shut .nav-group-links { display: none; }
  .sidenav .nav-group-head {
    width: 100%; align-items: center; justify-content: space-between; padding: 6px 12px; border: 0; background: none;
    font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-radius: 8px;
  }
  .sidenav .nav-group-head:hover { color: var(--heading); }
  .sidenav .nav-group-head svg { width: 16px; height: 16px; transition: transform .15s; }
  .sidenav .nav-group.shut .nav-group-head svg { transform: rotate(-90deg); }
  .sidenav .nav-group.shut.has-active .nav-group-head { color: var(--brand); }
  .sidenav .nav-scan svg { width: 24px; height: 24px; padding: 3px; margin: 0; }
  main { margin-left: 220px; padding: 24px 28px 40px; }
}

/* ---------- components ---------- */
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; flex: 1; min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-weight: 600; margin-bottom: 8px; font-size: .95rem; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 699px) { .stats > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; text-decoration: none; color: inherit; display: block; }
.stat b { display: block; font-size: 1.9rem; font-weight: 600; font-family: var(--font-head); color: var(--heading); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.stat.alert b { color: var(--bad); }
.stat.warnc b { color: var(--warn); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .05s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { background: #fff; border-color: var(--bad); color: var(--bad); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding: 14px 20px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; }

.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big-actions .btn { min-height: 64px; font-size: 1.1rem; flex-direction: column; gap: 0; }
.big-actions .btn small { font-weight: 500; opacity: .85; font-size: .78rem; }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
label > .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 12px; min-height: 46px;
  font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 1px solid #d9cbbb; border-radius: 10px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
input[type=color] { padding: 4px; height: 46px; }
input[type=checkbox] { width: auto; min-height: 0; display: inline; margin: 0 8px 0 0; transform: scale(1.3); }
.form-row { display: grid; gap: 0 12px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row.three { grid-template-columns: 1fr 1fr 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin: 0 0 14px; }
legend { font-weight: 700; color: var(--heading); padding: 0 6px; }

.search { position: relative; margin-bottom: 12px; }
.search input { padding-left: 40px; margin: 0; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; stroke: var(--muted); }

.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.list { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.list > li:last-child .row, .list > .row:last-child { border-bottom: 0; }
a.row:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: .86rem; }
.row-end { text-align: right; flex: none; }
.qty { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--heading); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex: none; font-size: 1.4rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 110px; height: 110px; font-size: 3rem; }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); flex: none; display: flex; align-items: center; justify-content: center; color: var(--brand); font-weight: 700; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--brand-soft); color: var(--heading); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 15%, white); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, white); color: #9a6008; }
.badge.bad { background: color-mix(in srgb, var(--bad) 14%, white); color: var(--bad); }
.badge.accent { background: var(--accent-soft); color: var(--heading); }

.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.empty .emoji { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.notes { white-space: pre-wrap; }

/* ---------- cleaning ---------- */
.task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--ok); }
.task.due .task-dot { background: var(--warn); }
.task.later .task-dot { background: color-mix(in srgb, var(--muted) 45%, white); }
.task.overdue .task-dot { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 20%, transparent); }
.task .btn { flex: none; min-width: 92px; }
.task.done .btn-done { background: var(--surface); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, white); }
.room-head { display: flex; align-items: center; gap: 8px; }
.room-head h2 { margin: 0; flex: 1; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progress > i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }

/* ---------- scanner ---------- */
.scanner-box { position: relative; background: #1d1410; border-radius: var(--radius); overflow: hidden; min-height: 240px; display: flex; align-items: center; justify-content: center; color: #fff; }
.scanner-box video { width: 100% !important; height: auto !important; display: block; }
#reader { width: 100%; }
#reader img[alt="Info icon"], #reader__dashboard_section_csr span { display: none !important; }
.scan-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .85rem; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; }
.context-bar { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, white); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.context-bar .row-main b { display: block; }
.manual { display: flex; gap: 8px; margin-top: 12px; }
.manual input { margin: 0; }

/* ---------- modal / sheet ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(30, 18, 10, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal {
  background: var(--bg); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .2s;
}
@media (min-width: 700px) { .modal-back { align-items: center; } .modal { border-radius: 20px; } }
.modal-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { flex: 1; margin: 0; font-size: 1.3rem; }
.x { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

.stepper { display: flex; align-items: stretch; gap: 8px; margin: 6px 0 14px; }
.stepper button { width: 64px; font-size: 1.8rem; font-weight: 700; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--brand); cursor: pointer; }
.stepper input { text-align: center; font-size: 1.8rem; font-weight: 700; margin: 0; font-family: var(--font-head); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.seg button { min-height: 52px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--text); cursor: pointer; padding: 4px; }
.seg button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: #2e2018; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 60;
  opacity: 0; pointer-events: none; transition: all .2s; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow);
}
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.ok { background: var(--ok); }
#toast.bad { background: var(--bad); }

/* ---------- login ---------- */
.login-wrap { max-width: 440px; margin: 20px auto; }
.login-logo { text-align: center; margin: 10px 0 18px; }
.login-logo img { max-height: 90px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.person { background: var(--surface); border: 2px solid transparent; border-radius: var(--radius); padding: 14px 8px; text-align: center; font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); color: var(--text); }
.person .avatar { margin: 0 auto 6px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 1.2rem; }
.person.on { border-color: var(--accent); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pinpad button { min-height: 62px; font-size: 1.5rem; font-weight: 700; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text); }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 14px 0 4px; min-height: 20px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brand); }
.pin-dots i.f { background: var(--brand); }

/* ---------- labels / print ---------- */
.label-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.qr-label { background: #fff; border: 1px dashed #c8b7a6; border-radius: 10px; padding: 12px; text-align: center; break-inside: avoid; page-break-inside: avoid; }
.qr-label svg, .qr-label img { width: 100%; max-width: 170px; height: auto; display: block; margin: 0 auto; }
.qr-label .lname { font-weight: 800; font-size: 1.1rem; margin-top: 6px; color: #000; line-height: 1.2; }
.qr-label .lcode { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: #444; }
.qr-label .lbrand { font-size: .7rem; color: #666; text-transform: uppercase; letter-spacing: .08em; }
.qr-label.big svg { max-width: 300px; }
.qr-label.big .lname { font-size: 1.8rem; }
.pick-list { max-height: 50vh; overflow-y: auto; }
.pick-list label { display: flex; align-items: center; font-weight: 500; padding: 8px 2px; margin: 0; border-bottom: 1px solid var(--line); }

@media print {
  .topbar, .sidenav, .no-print, #toast { display: none !important; }
  body { background: #fff; }
  main { margin: 0 !important; padding: 0 !important; max-width: none; }
  .card { box-shadow: none; padding: 0; }
  .label-grid { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .label-grid.big { grid-template-columns: 1fr; }
  .qr-label { border: 1px dashed #999; }
}

table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }
.photo-pick { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.swatches { display: flex; gap: 8px; }
.swatches i { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); }
.btn svg, .row svg, .context-bar svg, .card-head svg { width: 22px; height: 22px; flex: none; }
.context-bar svg { color: var(--brand); }
.btn-sm { white-space: nowrap; }
body:has(.modal-back) #toast { bottom: auto; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.quick-actions .btn { min-height: 64px; flex-direction: column; gap: 2px; font-size: .95rem; padding: 8px; }
.quick-actions .btn .qa-i { font-size: 1.3rem; line-height: 1; }
.quick-actions .btn svg { width: 22px; height: 22px; }
@media (min-width: 700px) { .quick-actions .btn { flex-direction: row; gap: 8px; font-size: 1.05rem; } }

/* ---------- floor plan */
.fp { width: 100%; height: auto; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.fp.compact { max-height: 340px; }
.fp-areas rect { fill: color-mix(in srgb, var(--accent) 10%, white); stroke: none; }
.fp .room { fill: color-mix(in srgb, var(--ok) 14%, white); stroke: color-mix(in srgb, var(--heading) 25%, white); stroke-width: 1.5; cursor: pointer; transition: fill .2s, opacity .2s; outline: none; }
.fp .room.st-none { fill: #fbf8f1; }
.fp .room.st-due { fill: color-mix(in srgb, var(--warn) 22%, white); }
.fp .room.st-overdue { fill: color-mix(in srgb, var(--bad) 22%, white); }
.fp .room:hover, .fp .room:focus-visible { stroke: var(--brand); stroke-width: 4; }
.fp .room.dim { opacity: .35; }
.fp .room.on { stroke: var(--brand); stroke-width: 5; }
.fp-items { pointer-events: none; }
.fp-items.editing { pointer-events: auto; }
.fp-items.editing .fi { cursor: move; }
.fp-items.faded, .fp-markers.faded { opacity: .35; pointer-events: none; }
.fp .fi-shape { stroke: rgba(0,0,0,.28); stroke-width: 1; }
.fp .fi-shape.flat { stroke: none; }
.fp .fi-hit { fill: transparent; stroke: none; }
.fp .mk.msel circle, .fp .mk.msel rect { stroke: var(--brand); stroke-width: 6; stroke-dasharray: none; }
.fp .fi-label { font-weight: 700; text-anchor: middle; pointer-events: none; }
.fp .fi-text { text-anchor: middle; }
.fp.editing { touch-action: none; }
.fp.editing .room { cursor: default; }
.fp .room.esel { stroke: var(--brand); stroke-width: 4; fill: var(--brand-soft); cursor: move; }
.fp-handles .fh-box { fill: none; stroke: var(--brand); stroke-dasharray: 6 4; pointer-events: none; }
.fp-handles .fh-line { stroke: var(--brand); pointer-events: none; }
.fp-handles .fh { fill: #fff; stroke: var(--brand); cursor: pointer; }
.fp-handles .fh.rot { cursor: grab; }
.fp-handles .fh.vtx { cursor: move; }
.fp-handles .fh.vtx.on { fill: var(--brand); }
.fp-handles .fh-mid { cursor: copy; }
.fp-handles .fh-mid circle { fill: #fff; stroke: var(--brand); opacity: .85; }
.fp-handles .fh-mid text { fill: var(--brand); font-weight: 700; text-anchor: middle; pointer-events: none; }
.fp-labels { pointer-events: none; }
.fp-name { font-family: var(--font-head); font-weight: 700; fill: var(--heading); text-anchor: middle; }
.fp-note { font-size: 18px; fill: var(--muted); text-anchor: middle; }
.fp-pill { fill: var(--ok); }
.fp-pill.st-due { fill: var(--warn); }
.fp-pill.st-overdue { fill: var(--bad); }
.fp-pill.st-none { fill: #bbb; }
.fp-pill-t { font-size: 17px; font-weight: 700; fill: #fff; text-anchor: middle; }
.fp .mk { cursor: pointer; outline: none; }
.fp .mk circle { fill: #fff; stroke: var(--ok); stroke-width: 4; }
.fp .mk.st-due circle { stroke: var(--warn); }
.fp .mk.st-later circle { stroke: color-mix(in srgb, var(--muted) 45%, white); }
.fp .mk.st-overdue circle { stroke: var(--bad); stroke-width: 5; animation: mk-pulse 1.6s ease-in-out infinite; }
.fp .mk rect.mk-cage { fill: #c3d0dc; stroke: var(--ok); stroke-width: 4; }
.fp .mk.st-due rect.mk-cage { stroke: var(--warn); }
.fp .mk.st-later rect.mk-cage { stroke: #7f93a6; }
.fp .mk.st-none rect.mk-cage { fill: #eceff2; stroke: #aab4be; stroke-dasharray: 6 4; }
.fp .mk.st-overdue rect.mk-cage { stroke: var(--bad); stroke-width: 5; animation: mk-pulse 1.6s ease-in-out infinite; }
@keyframes mk-pulse { 50% { stroke-width: 9; } }
.fp .mk-i { font-size: 20px; text-anchor: middle; }
.fp .mk-l { font-size: 12px; font-weight: 700; fill: var(--heading); text-anchor: middle; }
.fp .mk.spot rect { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.fp .mk.spot.low rect { stroke: var(--bad); }
.fp .mk:focus-visible circle, .fp .mk:focus-visible rect { stroke: var(--brand); stroke-width: 6; }
.fp-markers.arrange .mk { cursor: grab; }
.fp-markers.arrange .mk circle, .fp-markers.arrange .mk rect { stroke-dasharray: 5 3; }
.fp .mk.dragging { cursor: grabbing; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.fp .drop-hi, .fp .room.drop-hi { stroke: var(--brand); stroke-width: 6; fill: var(--brand-soft); }
.map-layout { display: grid; gap: 14px; }
.map-wrap { padding: 10px; }
.map-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; min-height: 36px; flex-wrap: wrap; }
.map-tools .spacer { flex: 1; }
.map-hint { margin: 8px 0 0; text-align: center; }
.map-panel .card { margin-bottom: 14px; }
/* Wide screens: the floor plan gets the full width and fills the screen height. The room list sits under it in columns;
   a picked room or the layout editor moves to a side column next to the map. */
@media (min-width: 1000px) {
  main:has(.map-layout) { max-width: 1680px; }
  .map-layout { align-items: start; }
  .map-layout.side { grid-template-columns: minmax(0, 1fr) 360px; }
  .map-layout.side .map-wrap { position: sticky; top: calc(var(--top-h) + 12px); }
  /* as wide as fits, but never taller than the screen: shrink the width so the shape stays the same */
  .map-wrap .fp { --fit-h: max(360px, calc(100dvh - var(--top-h) - 150px)); width: min(100%, calc(var(--fit-h) * var(--ar, 2))); margin: 0 auto; }
  .map-layout:not(.side) .map-panel .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 24px; }
}
.legend { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -6px; background: var(--ok); }
.legend .lg.st-due, .dot-due { background: var(--warn) !important; }
.legend .lg.st-overdue, .dot-overdue { background: var(--bad) !important; }
.dot-none { background: #ccc !important; }
.room-head a.btn { flex: none; }
.stock-chip { gap: 10px; }
.drag-h { cursor: grab; font-size: 1.4rem; color: var(--muted); padding: 4px 6px; touch-action: none; user-select: none; }
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; background: var(--surface); border: 2px solid var(--brand); border-radius: 12px; padding: 8px 12px; font-weight: 700; box-shadow: var(--shadow); transform: translate(-50%, -120%); }
.kind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kind-grid .btn { flex-direction: column; min-height: 76px; gap: 4px; font-size: .9rem; }
.kind-grid .btn span:first-child { font-size: 1.6rem; line-height: 1; }
.dash-map { padding: 12px; }

/* ---------- checklists */
.checklist { padding: 6px 14px; }
.cl-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cl-row:last-child { border-bottom: 0; }
@media (min-width: 700px) { .cl-row { grid-template-columns: 220px 1fr; align-items: center; } }
.cl-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; padding: 8px 6px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
button.cl-slot:hover { border-color: var(--brand); }
button.cl-slot:disabled { cursor: default; opacity: .6; }
.cl-slot.done { border-color: color-mix(in srgb, var(--ok) 50%, white); background: color-mix(in srgb, var(--ok) 10%, white); }
.cl-l { font-size: .8rem; color: var(--muted); font-weight: 700; }
.cl-box { width: 26px; height: 26px; border: 2px solid var(--heading); border-radius: 6px; }
.cl-check { font-size: 1.3rem; line-height: 26px; color: var(--ok); font-weight: 700; }
.cl-who { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.cl-src { position: absolute; top: 2px; right: 4px; font-size: .75rem; }
.pick-list { display: grid; gap: 4px; }
.pick-list label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 0; font-weight: 600; }
.rv-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rv-crop { width: 100%; max-height: 90px; object-fit: contain; object-position: left; border-radius: 6px; border: 1px solid var(--line); background: #fff; margin-bottom: 6px; }
.rv-slots { display: grid; gap: 6px; margin-top: 6px; }
@media (min-width: 600px) { .rv-slots { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.rv-slot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 6px 8px; border-radius: 10px; background: var(--brand-soft); }
.rv-slot input[type=checkbox] { width: 22px; height: 22px; margin: 0 6px 0 0; }
.rv-slot input[type=time], .rv-slot select { width: auto; min-height: 36px; margin: 0; padding: 4px 6px; font-size: .9rem; }
.rv-slot.already { background: #eee; }
.sheets { display: grid; gap: 16px; }
.sheet-page { background: #fff; box-shadow: var(--shadow); max-width: 816px; }
.sheet-page svg { width: 100%; height: auto; display: block; }
@media print {
  @page sheet { size: letter; margin: 0; }
  .sheets { display: block; }
  body:has(.sheets) main > :not(.sheets), body:has(.sheets) .mobile-nav { display: none !important; }
  body:has(.sheets), body:has(.sheets) main { min-height: 0 !important; padding: 0 !important; page: sheet; }
  body:has(.sheets) #modal-root, body:has(.sheets) #toast { display: none !important; }
  .sheet-page { page: sheet; box-shadow: none; max-width: none; width: 215.9mm; height: 279.4mm; overflow: hidden; page-break-after: always; break-after: page; }
  .sheet-page:last-child { page-break-after: auto; break-after: auto; }
  .sheet-page svg { width: 215.9mm; height: 279.4mm; }
  .sheets { padding: 0; margin: 0; }
}

/* ---------- SOPs */
.sop-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .78rem; text-decoration: none; white-space: nowrap; }
.sop-chip:hover { background: color-mix(in srgb, var(--brand) 20%, white); }
.sop-code { flex: none; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--brand-dark); background: var(--brand-soft); border-radius: 8px; padding: 3px 7px; }
.sop-code.lg { font-size: 1rem; vertical-align: middle; }
.sop-body { line-height: 1.55; }
.sop-body h3 { margin: 1.1em 0 .4em; font-size: 1.05rem; }
.sop-body h3:first-child { margin-top: 0; }
.sop-body p { margin: .4em 0; }
.sop-body ul, .sop-body ol { margin: .3em 0 .6em; padding-left: 1.4em; }
.sop-body li { margin: .25em 0; }
.sop-body ol > li::marker { font-weight: 700; color: var(--brand); }
.sop-summary { font-size: 1.05rem; color: var(--muted); margin-top: 0 !important; }
.sop-ref { font-weight: 700; }
.sop-layout, .sop-editor { display: grid; gap: 14px; }
.sop-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sop-nav .btn { flex: 0 1 48%; white-space: normal; text-align: left; justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.sop-nav .btn:last-child { text-align: right; justify-content: flex-end; }
@media (max-width: 560px) { .sop-nav { flex-direction: column; } .sop-nav .btn { flex-basis: auto; } .sop-nav span:empty { display: none; } }
@media (min-width: 1000px) { .sop-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .sop-editor { grid-template-columns: 1fr 1fr; align-items: start; } }
.sop-editor textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; min-height: 420px; }
.print-only { display: none; }
.sop-qr { align-items: center; gap: 10px; margin-top: 18px; font-size: 9pt; color: #555; }
.sop-qr svg { width: 22mm; height: 22mm; }
@media print {
  .print-only { display: flex !important; }
  .sop-layout { display: block; }
  .sop-page { font-size: 11pt; }
  .back { display: none; }
}
.sop-table { border-collapse: collapse; margin: .5em 0 .8em; font-size: .92rem; min-width: 100%; }
.sop-table th, .sop-table td { border: 1px solid var(--line, #e3d6bd); padding: .4em .55em; text-align: left; vertical-align: top; }
.sop-table th { background: rgba(85, 107, 47, .08); }

/* health plan */
.plan-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #cfc6b4; flex: none; }
.st-overdue .plan-dot { background: var(--bad); }
.st-due .plan-dot { background: var(--warn); }
.st-soon .plan-dot { background: var(--accent); }
.st-upcoming .plan-dot { background: transparent; border: 2px solid #cfc6b4; }
.st-ok .plan-dot, .st-done .plan-dot { background: var(--ok); }
.st-skipped .plan-dot { background: repeating-linear-gradient(45deg, #cfc6b4 0 3px, transparent 3px 6px); border: 1px solid #cfc6b4; }
.plan-row { align-items: center; }
.plan-row .row-end { margin-left: auto; }
.plan-row.st-skipped .row-title, .plan-row.st-done .row-title { opacity: .75; }
.plan-pick { cursor: pointer; align-items: center; }
.plan-pick input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--brand); }
.plan-positive { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, white); margin-bottom: 14px; }
.plan-matrix { border-collapse: collapse; font-size: .86rem; }
.plan-matrix th, .plan-matrix td { padding: 6px 7px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.plan-matrix tr > th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.plan-matrix tr:first-child th { font-size: .74rem; color: var(--muted); font-weight: 700; }
.plan-matrix td.na { color: var(--muted); }
.plan-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 6px 2px; color: var(--muted); }
.plan-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.plan-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) {
  .plan-row { flex-wrap: wrap; }
  .plan-row .row-main { flex: 1 1 calc(100% - 30px); min-width: 0; }
  .plan-row .plan-actions { flex-basis: 100%; padding-left: 24px; margin-top: -2px; }
}

/* team & schedule */
.person-dot { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; color: #fff; font-weight: 800; font-size: .82rem; background: var(--brand); }
.person-dot.lg { width: 72px; height: 72px; font-size: 1.5rem; }
.person-dot.open { background: transparent; border: 2px dashed var(--bad); color: var(--bad); }
.sched-grid .person-dot { width: 26px; height: 26px; font-size: .68rem; vertical-align: middle; margin-right: 4px; }
.week-nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.week-nav .row-main { display: flex; flex-direction: column; align-items: center; }
.week-nav .btn { font-size: 1.3rem; min-width: 44px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.field-label { font-weight: 700; font-size: .92rem; margin: 4px 0 6px; }
.shift { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--pc, var(--brand));
  background: color-mix(in srgb, var(--pc, var(--brand)) 12%, white); border-radius: 8px; padding: 5px 7px; margin: 0 0 4px; font: inherit; font-size: .78rem; color: var(--text); cursor: pointer; }
.shift b { font-size: .8rem; }
.shift.open { --pc: var(--bad); background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--bad) 7%, white) 0 6px, white 6px 12px); }
.shift.mine { box-shadow: 0 0 0 2px var(--accent); }
.sched-grid { border-collapse: collapse; width: 100%; table-layout: fixed; min-width: 860px; }
.sched-grid th, .sched-grid td { border-bottom: 1px solid var(--line); padding: 6px 5px; vertical-align: top; font-size: .85rem; }
.sched-grid tr:first-child th { text-align: center; font-size: .8rem; color: var(--muted); }
.sched-grid th.who { text-align: left; width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-grid th.who a { color: inherit; text-decoration: none; font-weight: 700; }
.sched-grid tr:first-child th:last-child, .sched-grid td.hrs { width: 56px; text-align: right; font-weight: 700; }
.sched-grid .today { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.sched-grid td[data-cell] { cursor: copy; min-height: 40px; height: 44px; }
.sched-grid td[data-cell]:hover { background: var(--brand-soft); }
.sched-list { display: block; }
.sched-grid-card { display: none; padding: 8px; }
@media (min-width: 900px) { .sched-list { display: none; } .sched-grid-card { display: block; } }
.sched-day.today { border: 2px solid var(--accent); }
.shift-row.open .row-title { color: var(--bad); }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 2px; max-width: 220px; }
.progress span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.progress.big { height: 10px; max-width: none; margin-bottom: 10px; }
.my-shift { border: 2px solid var(--brand); }
.my-shift-time { font-size: 1.35rem; font-weight: 800; color: var(--heading); margin-bottom: 8px; }
.on-today { margin: -4px 0 14px; }
details summary { cursor: pointer; padding: 8px 0; color: var(--muted); }
.perm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .9rem; }
.perm-list li.yes { color: var(--ok); font-weight: 700; }
.perm-list li.no { color: var(--muted); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 6px 0; }
label.check input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }

/* Floor plan editor */
.ed-head .seg { grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.ed-head .seg button { min-height: 42px; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.pal { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: .85rem; color: var(--text); cursor: pointer; text-align: left; }
.pal:hover { border-color: var(--brand); }
.pal i { width: 18px; height: 18px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.grid2 label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.grid2 input, .grid2 select, .grid2 textarea { width: 100%; min-width: 0; }
.color-row { display: flex; gap: 6px; align-items: center; }
.color-row input[type=color] { width: 48px; height: 38px; padding: 2px; flex: none; }
.color-row input[type=number] { flex: 1; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

/* Training video */
.train-video { width: 100%; max-height: 70vh; background: #000; border-radius: 10px; display: block; }
button.train-nag { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; margin-bottom: 14px; border: 1px solid var(--brand); }

/* cleaning: list view, shift picker, timing settings */
.check-chip { display: inline-flex; align-items: center; gap: 4px; }
.check-chip input { margin: 0 4px 0 0; }
.chips .spacer { flex: 1; }
.seg-inline { display: inline-flex; gap: 6px; }
.task-tbl td { vertical-align: middle; }
.task-tbl tr.task { display: table-row; }
.task-tbl .task-dot { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.shift-edit { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.shift-edit input { margin: 0; }
.check-chip input[type=radio] { width: auto; min-height: 0; transform: scale(1.2); }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
/* phones: each task is a compact block instead of a wide table row */
@media (max-width: 700px) {
  .task-tbl thead { display: none; }
  .task-tbl tr.task { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .task-tbl td { border: 0; padding: 1px 0; }
  .task-tbl .tt-name { grid-column: 1; grid-row: 1; }
  .task-tbl .tt-status { grid-column: 1; grid-row: 2; white-space: normal; }
  .task-tbl .tt-room, .task-tbl .tt-freq, .task-tbl .tt-when { grid-column: 1; display: inline; font-size: .85rem; color: var(--muted); }
  .task-tbl .tt-room { grid-row: 3; }
  .task-tbl .tt-freq, .task-tbl .tt-when, .task-tbl .tt-last { display: none; }
  .task-tbl .tt-btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
.link-btn { background: none; border: 0; padding: 2px 0; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.miss-tbl td:nth-child(1) { width: 1%; }
.miss-tbl td:nth-child(5) { min-width: 120px; }

/* time clock */
.clock-card { border: 2px solid var(--line); }
.clock-card.in { border-color: var(--ok); }
.clock-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.clock-main .row-main { flex: 1; min-width: 200px; }
.clock-main .btn { flex: none; }
.clock-state { font-size: 1.15rem; font-weight: 800; color: var(--heading); }
.clock-run { font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); color: var(--ok); margin: 2px 0 4px; }
@media (max-width: 599px) { .clock-main .btn { width: 100%; } }
.punch-row .badges { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.qbt-card ul { margin: 6px 0; padding-left: 20px; }

/* maintenance */
.issue-thumb { border-radius: 10px; }
.issue-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
h1 + .issue-badges, .card > .issue-badges { flex-direction: row; flex-wrap: wrap; align-items: center; }
.issue-photo { display: block; max-width: 100%; max-height: 360px; border-radius: 12px; margin-top: 12px; object-fit: contain; }
.issue-photo.sm { max-height: 160px; margin-top: 6px; }
.update-row { align-items: flex-start; }
.mt-open { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mt-open .row-title { color: var(--heading); }

/* volunteers: their spots on the schedule are blue with a dashed outline */
:root { --vol: #3d7ea6; }
.shift.vol { border-left-style: dashed; outline: 1.5px dashed color-mix(in srgb, var(--vol) 70%, white); outline-offset: -1.5px; }
.shift.vol.open { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--vol) 10%, white) 0 6px, white 6px 12px); }
.shift.vol.mine { box-shadow: 0 0 0 2px var(--accent); }
.vol-tag { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--vol); border: 1px dashed var(--vol); border-radius: 99px; padding: 0 6px; line-height: 1.5; vertical-align: middle; }
.sched-grid tr.vol-row th.who { color: var(--vol); }
.shift-row.vol { border-left: 3px dashed var(--vol); padding-left: 8px; }
.shift-row.vol.open .row-title { color: var(--vol); }
.btn-vol { border: 1.5px dashed var(--vol); color: var(--vol); }
.chip.chip-vol.on { background: var(--vol); border-color: var(--vol); color: #fff; }
.my-shift.vol { border-color: var(--vol); border-style: dashed; }
.role-card.vol { border: 1.5px dashed var(--vol); }
.role-card.vol h2 .vol-tag { margin-left: 6px; }
.section-title { font-size: 1rem; margin: 18px 4px 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.shift-row.vol .person-dot.open { border-color: var(--vol); color: var(--vol); }

/* Bulk sign-off (managers) */
.pick-box { flex: none; display: flex; align-items: center; justify-content: center; min-width: 92px; min-height: 40px; cursor: pointer; }
.pick-box input { width: 24px; height: 24px; margin: 0; accent-color: var(--ok); cursor: pointer; }
.task-tbl .pick-box { min-width: 0; justify-content: flex-end; }
.bulk-bar { position: sticky; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
@media (min-width: 900px) { .bulk-bar { bottom: 12px; } }

/* Feature requests: where a request is on its way from idea to live */
.fr-steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: fr; }
.fr-steps li { flex: 1; text-align: center; font-size: .74rem; font-weight: 700; color: var(--muted); padding: 6px 2px; border-top: 4px solid var(--line); }
.fr-steps li.did { color: var(--ok); border-color: var(--ok); }
.fr-steps li.now { color: var(--heading); border-color: var(--accent); }
.fr-ci.stuck { background: color-mix(in srgb, var(--bad) 10%, white); border-color: color-mix(in srgb, var(--bad) 30%, white); }
.fr-work-steps { list-style: none; margin: 0; padding: 0; }
.fr-work-steps li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--muted); }
.fr-work-steps li.did { color: var(--heading); }
.fr-work-steps li.now { color: var(--heading); font-weight: 700; }
.fr-work-steps li.bad { color: var(--bad); font-weight: 700; }
.fr-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.fr-work-steps li.did .fr-dot { background: var(--ok); border-color: var(--ok); }
.fr-work-steps li.now .fr-dot { border-color: var(--accent); background: var(--accent-soft); animation: fr-pulse 1.6s ease-in-out infinite; }
.fr-work-steps li.ask { color: var(--warn); font-weight: 700; }
.fr-work-steps li.ask .fr-dot { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 20%, white); }
.fr-q .notes { margin: 4px 0; white-space: pre-wrap; }
.fr-work-steps li.bad .fr-dot { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 20%, white); }
@keyframes fr-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .fr-work-steps li.now .fr-dot { animation: none; } }

/* notification bell */
.bell { position: relative; background: none; border: 0; font-size: 20px; line-height: 1; padding: 6px 8px; cursor: pointer; min-height: 40px; }
.bell-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: #b3261e; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; padding: 0 4px; }
.notif-row { display: block; padding: 10px 0; border-bottom: 1px solid var(--line, #e6dcc3); color: inherit; text-decoration: none; }
.notif-row.unread .notif-title { font-weight: 700; }
.notif-row.unread::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b3261e; margin-right: 8px; }
.notif-body, .notif-when { font-size: 13px; opacity: .75; }
