:root {
  color-scheme: light;
  --ink: #1c1915;
  --paper: #e7dfd0;
  --card: #fbf6ec;
  --line: #d3c6ae;
  --muted: #5e5648;
  --amber: #f0b429;
  --amber-deep: #8a3d0c;
  --teal: #1d5c57;
  --clay: #8f3d2b;
  --navy: #243656;
  --moss: #3c5228;
  --read: #1f7a45;
  --danger: #8d2b2b;
  --shadow: 0 10px 24px rgba(48, 36, 18, 0.06);
  font-family: "Segoe UI", Candara, "Avenir Next", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  height: 100dvh;
}

body {
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: white;
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus { left: 8px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--ink);
  color: #f6f1e6;
  border-bottom: 4px solid var(--amber);
  flex: 0 0 auto;
}

.brand { display: flex; gap: 10px; align-items: center; min-width: 0; }

.mark { width: 36px; height: 36px; flex: 0 0 auto; }

.eyebrow, .kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top .eyebrow { color: var(--amber); }

h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.today { margin: 2px 0 0; color: #d9d0c2; font-size: 12px; }

.top-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }

.office-link, .ghost, .btn {
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.office-link {
  background: var(--amber);
  color: var(--ink);
}

.ghost {
  background: transparent;
  color: #f6f1e6;
  border: 1px solid #6d6458;
}

.panel .ghost {
  color: var(--ink);
  border-color: var(--line);
  background: #fffdf8;
  border-radius: 10px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
}

.banner {
  background: #f4dfb0;
  color: #5c3d09;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  flex: 0 0 auto;
}

.board {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.panel-howto { grid-area: 1 / 1 / 2 / 2; --accent: #1d5c57; }
.panel-procedures { grid-area: 1 / 2 / 2 / 3; --accent: #8f3d2b; }
.panel-message { grid-area: 2 / 1 / 3 / 2; --accent: #243656; }
.panel-faq { grid-area: 2 / 2 / 3 / 3; --accent: #3c5228; }

.directory-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.dir-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #cfc3ab;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.dir-row:disabled { opacity: 0.6; cursor: wait; }
.dir-name { font-weight: 800; overflow-wrap: anywhere; }
.dir-chip { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; color: #fff; }
.dir-when { grid-column: 1 / -1; }
.status-available .dir-chip { background: #2f7d32; }
.status-on_job .dir-chip { background: #c98a04; color: #1c1915; }
.status-off .dir-chip { background: #7a7a7a; }
.status-available { border-left: 6px solid #2f7d32; }
.status-on_job { border-left: 6px solid #c98a04; }
.status-off { border-left: 6px solid #7a7a7a; }

.panel {
  background: var(--card);
  border: 1px solid #cfc3ab;
  border-radius: 16px;
  box-shadow: inset 0 4px 0 var(--accent), var(--shadow);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px 6px;
  flex: 0 0 auto;
}

.panel-heading { min-width: 0; }

.panel-heading h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.kicker { color: var(--accent); }

.panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 12px 12px;
}

.lede, .message-body, .answer-copy, .step p, .proc li {
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.lede { margin: 0 0 10px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  margin: 0 0 12px;
  align-items: start;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps { counter-reset: step; }

.step h3 { margin: 2px 0 4px; font-size: 15px; }

.step p { margin: 0; }

.step.callout {
  background: #f8e7c2;
  border-radius: 12px;
  padding: 8px;
}

.step.callout::before { background: var(--amber-deep); }

.keywords {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.keywords th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 4px 4px 6px 0;
}

.keywords td {
  border-top: 1px solid var(--line);
  padding: 6px 6px 6px 0;
  vertical-align: top;
}

.word {
  display: inline-block;
  background: #e7f2f1;
  color: var(--teal);
  border-radius: 999px;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  font-weight: 700;
  font-size: 13px;
}

.proc {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  margin: 0 0 8px;
}

.proc summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proc summary::-webkit-details-marker { display: none; }

.proc summary::after {
  content: "Open";
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proc[open] summary {
  border-bottom: 1px solid var(--line);
}

.proc[open] summary::after { content: "Close"; }

.proc-title { font-weight: 800; }

.proc-hint { color: var(--muted); font-size: 13px; line-height: 1.35; }

.proc ol { margin: 0; padding: 8px 12px 12px 28px; }

.proc li { margin: 8px 0; }

.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; color: var(--muted); font-size: 13px; }

.message-body {
  white-space: pre-wrap;
  font-weight: 700;
  margin-bottom: 6px;
  max-height: 6.2em;
  overflow: auto;
}

.count-line { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--navy); }

.member-list, .chips { display: flex; flex-direction: column; gap: 8px; }

.member-btn {
  min-height: 48px;
  border-radius: 12px;
  border: 2px solid var(--navy);
  background: #fffdf8;
  text-align: left;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.chip {
  min-height: 40px;
  border-radius: 999px;
  border: 2px solid var(--moss);
  background: #fffdf8;
  padding: 6px 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chips { flex-direction: row; flex-wrap: wrap; }

.member-name { display: block; min-width: 0; line-height: 1.2; }

.member-state {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  flex: 0 0 auto;
}

.member-btn.read {
  background: var(--read);
  border-color: var(--read);
  color: white;
}

.member-btn.read .member-state { color: white; }

.member-btn.read .member-state::before { content: "✓ "; }

.member-btn.read .pill { background: rgba(255, 255, 255, 0.22); color: white; }

.member-btn:disabled { opacity: 0.7; }

.chip[aria-pressed="true"] { background: var(--moss); color: white; }

.pill {
  display: inline-block;
  background: #f4dfb0;
  color: #6a4710;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status, .muted { color: var(--muted); }

.small { font-size: 13px; line-height: 1.4; }

.subhead { margin: 14px 0 6px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

.ask-row { display: flex; flex-direction: column; gap: 8px; }

.ask-result { margin-top: 8px; }

.answer-card {
  background: #f3ecdc;
  border-left: 4px solid var(--moss);
  border-radius: 10px;
  padding: 10px 12px;
}

.answer-card.miss { border-left-color: #c65d12; background: #f8efe2; }

.answer-card .eyebrow { color: var(--moss); margin-bottom: 4px; }

.answer-card p { margin: 0 0 6px; }

.answer-card p:last-child { margin-bottom: 0; }

.matched-q { font-weight: 800; }

.empty { color: var(--muted); margin: 4px 0; }

.leaders { list-style: none; margin: 0; padding: 0; }

.leader {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.leader-name { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.count {
  min-width: 1.8em;
  text-align: center;
  font-weight: 800;
  background: #efe6d6;
  border-radius: 999px;
  padding: 2px 8px;
}

.leader.top .count { background: #c65d12; color: white; }

.open-card, .read-card, .kb-card, .crew-row, .step-edit, .type-edit {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0;
  background: #fffdf8;
}

.open-q { font-weight: 700; margin: 0 0 8px; }

.answer-box { min-height: 72px; }

.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; margin: 8px 0; }

input[type="text"], input[type="password"], textarea, input:not([type]) {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #b7aa92;
  background: white;
}

textarea { min-height: 88px; resize: vertical; }

.btn {
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fbf6ec;
  min-height: 44px;
  padding: 8px 14px;
}

.btn.secondary { background: #fffdf8; color: var(--ink); }

.btn:disabled { opacity: 0.6; cursor: wait; }

.button-row, .check { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.check { font-weight: 700; margin: 6px 0; }

.office {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 16px 32px;
}

body.mode-office .board,
body.mode-office .field-foot { display: none; }

body.mode-office .office { display: block; }

.office-inner { max-width: 920px; margin: 0 auto; }

.card {
  background: var(--card);
  border: 1px solid #cfc3ab;
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
}

.card { scroll-margin-top: 56px; }
.card h2 { margin: 0 0 8px; font-size: 22px; }

.pin-card { max-width: 460px; margin: 28px auto; }

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 8px;
}

.jumps a {
  background: #fffdf8;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 14px;
}

.url-list { list-style: none; padding: 0; margin: 0; }

.url-list li { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-bottom: 1px solid var(--line); }

.url-list code, .public-url {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.public-url { font-weight: 800; color: var(--teal); }

.form-error { color: var(--danger); font-weight: 700; }

.read-card { display: grid; gap: 4px; }

.read-card .who { font-weight: 800; }

.read-card .where { color: var(--muted); }

.read-card a { color: var(--navy); font-weight: 800; }

.crew-row { display: grid; gap: 8px; }
.crew-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.ask-row input { min-width: 0; }

.kw-row { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 6px 0; }

.hint { color: var(--muted); font-size: 13px; }

.field-foot {
  display: none;
  flex: 0 0 auto;
  padding: 6px 12px 8px;
  color: var(--muted);
  font-size: 12px;
  gap: 12px;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 21, 0.45);
  z-index: 30;
}

.panel.is-expanded {
  position: fixed;
  inset: 8px;
  z-index: 40;
  max-height: none;
  height: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fbf6ec;
  padding: 12px 16px;
  border-radius: 999px;
  z-index: 70;
  max-width: min(92vw, 520px);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.fatal {
  position: fixed;
  inset: 0;
  background: rgba(231, 223, 208, 0.96);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}

.fatal .card { max-width: 460px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid #e07a2f;
  outline-offset: 2px;
}

@media (min-width: 720px) {
  h1 { font-size: 22px; }
  .panel-heading h2 { font-size: 18px; }
  .ask-row { flex-direction: row; align-items: stretch; }
  .ask-row input { flex: 1; }
  .kw-row { grid-template-columns: 1fr 1fr auto; }
  .read-card { grid-template-columns: 1.1fr 1fr 1.3fr; align-items: center; gap: 12px; }
  .crew-row { grid-template-columns: 1.4fr auto auto auto auto; align-items: center; }
}

@media (min-width: 1100px) and (min-height: 760px) {
  body:not(.mode-office) .field-foot { display: flex; justify-content: space-between; }
  .member-list { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  h1 { font-size: 16px; }
  .today { display: none; }
  .panel-heading h2 { font-size: 14px; }
}

.ticket-picker { margin: 0 0 14px; }
.ticket-head { margin: 0 0 4px; }
.ticket-bubbles { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-bubble { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; border: 2px solid var(--accent, #1d5c57); background: #fff; color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.ticket-bubble:hover, .ticket-bubble:focus-visible { background: var(--accent, #1d5c57); color: #fff; }
.ticket-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--accent, #1d5c57); color: #fff; font-size: 0.85em; }
.ticket-bubble:hover .ticket-num, .ticket-bubble:focus-visible .ticket-num { background: #fff; color: var(--accent, #1d5c57); }

.ticket-bubble.is-open { background: var(--accent, #1d5c57); color: #fff; }
.ticket-bubble.is-open .ticket-num { background: #fff; color: var(--accent, #1d5c57); }
.ticket-guide { margin: 10px 0 0; padding: 10px 12px; border: 2px solid var(--accent, #1d5c57); border-radius: 14px; background: #fff; }
.ticket-guide[hidden] { display: none; }
.ticket-guide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ticket-guide-head h4 { margin: 0; font-size: 15px; }
.ticket-guide-kicker { margin: 6px 0 2px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent, #1d5c57); }
.ticket-guide-text { margin: 0 0 10px; white-space: pre-line; font-size: 15px; line-height: 1.45; }
.howto-more { margin-top: 6px; }
.howto-more > summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.ticket-admin-row { border-top: 1px solid #e3d9c6; padding: 10px 0; display: grid; gap: 6px; }
.ticket-admin-row h3 { margin: 0; font-size: 15px; }
.ticket-admin-row textarea { width: 100%; }

/* ===== Clean Navy theme (chosen Dec 4, 2026) ===== */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --ink:#13233a; --paper:#f3f6fa; --card:#ffffff; --line:#d5deea; --muted:#5b6b80; --amber:#1f3a5f; --amber-deep:#1f3a5f; --teal:#1f3a5f; --clay:#2e5b8f; --navy:#1f3a5f; --moss:#1f3a5f; --shadow:0 6px 20px rgba(19,35,58,.07); font-family:"Manrope",system-ui,sans-serif; }
body { background:var(--paper); }
.top { background:#fff; color:var(--ink); border-bottom:1px solid var(--line); box-shadow:inset 0 -3px 0 #1f3a5f; padding:14px 20px; }
.mark rect { fill:#1f3a5f; } .mark path:first-of-type { fill:#fff; } .mark path:last-of-type { fill:#1f3a5f; }
.top .eyebrow { color:#5b7aa3; } h1 { color:#1f3a5f; font-weight:800; } .today { color:var(--muted); }
.top .ghost { color:#1f3a5f; border-color:#c3d0e0; } .office-link { background:#1f3a5f; color:#fff; }
.board { gap:16px; padding:16px; }
.panel { --accent:#1f3a5f !important; border:1px solid #e1e7ef; border-radius:18px; box-shadow:0 1px 2px rgba(19,35,58,.05), 0 8px 24px rgba(19,35,58,.06); }
.panel-head { padding:14px 18px 8px; } .panel-body { padding:0 18px 16px; }
.kicker { color:#5b7aa3; letter-spacing:.12em; } .panel-heading h2 { font-weight:800; color:#13233a; }
.panel .ghost { background:#f3f6fa; border-color:#e1e7ef; color:#1f3a5f; border-radius:999px; }
.ticket-bubble { border:1.5px solid #c9d5e5; color:#13233a; font-weight:600; background:#fff; }
.ticket-num { background:#1f3a5f; }
.ticket-bubble.is-open, .ticket-bubble:hover { background:#1f3a5f; border-color:#1f3a5f; color:#fff; }
.ticket-guide { border:0; background:#eef3f9; border-radius:16px; box-shadow:inset 3px 0 0 #1f3a5f; }
.ticket-guide-kicker { color:#2e5b8f; }
.proc { background:#fff; border-color:#e1e7ef; border-radius:14px; } .proc[open] { box-shadow:0 4px 14px rgba(19,35,58,.06); }
.proc summary::after { color:#2e5b8f; }
.word { background:#e8eef7; color:#1f3a5f; } .keywords th { color:#5b7aa3; }
.member-btn { border-color:#c9d5e5 !important; border-radius:14px; }
.btn { background:#1f3a5f; border-color:#1f3a5f; color:#fff; } .btn.secondary { background:#fff; color:#1f3a5f; }
.dir-row { border-color:#e1e7ef; border-radius:14px; }
.field-foot { color:var(--muted); }
.member-btn { background:#fff !important; color:#13233a; }
.status-available .dir-chip { background:#1f3a5f; } .status-available { border-left-color:#1f3a5f; }
input, textarea { border-color:#c9d5e5 !important; }
.ticket-bubbles { gap:6px; } .ticket-bubble { padding:5px 12px 5px 5px; font-size:14px; }
.ticket-num { min-width:24px; height:24px; } .ticket-guide { margin-top:8px; }

.panel-message .panel-heading h2 { overflow-wrap: break-word; text-wrap: balance; }
.banner { background:#e8eef7; color:#1f3a5f; border-bottom:1px solid #d5deea; }
.pill { background:#e8eef7; color:#1f3a5f; }
.leader .count { background:#e8eef7; color:#1f3a5f; }
.leader.top .count { background:#1f3a5f; color:#fff; }
@media (max-width: 600px) {
  .board { gap: 10px; padding: 10px; }
  .panel-head { flex-direction: column-reverse; align-items: stretch; padding: 10px 12px 6px; gap: 6px; }
  .panel-head .ghost { align-self: flex-end; min-height: 30px; padding: 4px 10px; }
  .panel-body { padding: 0 12px 12px; }
  .panel-heading h2 { font-size: 15px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
}
.ticket-bubbles li { max-width: 100%; min-width: 0; }
.ticket-bubble { max-width: 100%; }
.ticket-name { min-width: 0; overflow-wrap: anywhere; }

/* ===== Navy Bold refinement ===== */
:root { --blue:#2563eb; --gold:#f59e0b; --gold-deep:#d97706; --ok:#15803d; --paper:#dde5f0; --line:#c3cfdf; }
body { background:#dde5f0; }
.top { box-shadow:inset 0 -4px 0 var(--blue); border-bottom:0; }
.mark rect { fill:var(--blue); }
.top .eyebrow { color:var(--blue); }
.office-link { background:var(--gold); color:#13233a; font-weight:800; box-shadow:0 2px 0 var(--gold-deep); }
.office-link:hover, .office-link:focus-visible { background:#fbbf24; }
.top .ghost { border:2px solid #1f3a5f; color:#1f3a5f; font-weight:800; }
.top .ghost:hover, .top .ghost:focus-visible { background:#1f3a5f; color:#fff; }
:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }

.panel.panel-howto { --accent:#2563eb !important; --tint:#eaf1fe; }
.panel.panel-procedures { --accent:#c2410c !important; --tint:#fff1e8; }
.panel.panel-message { --accent:#1f3a5f !important; --tint:#e9eef6; }
.panel.panel-faq { --accent:#6d28d9 !important; --tint:#f2ecfd; }
.panel { border:1px solid #b9c6d8; border-radius:16px; box-shadow:0 2px 4px rgba(19,35,58,.08), 0 12px 28px rgba(19,35,58,.12); background:#fff; }
.panel-head { background:var(--accent); color:#fff; padding:10px 16px; margin-bottom:12px; align-items:center; }
.panel-heading h2 { color:#fff; font-size:19px; font-weight:800; }
.panel-head .kicker { color:rgba(255,255,255,.85); }
.panel .panel-head .ghost { background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.45); color:#fff; font-size:16px; min-width:36px; min-height:34px; padding:2px 8px; }
.panel .panel-head .ghost:hover, .panel .panel-head .ghost:focus-visible { background:#fff; color:var(--accent); }

/* less text */
.ticket-picker .hint, .ticket-head, #procedures-body > div > .lede, #faq-source, .board-note, .field-foot, .count-line + .member-list ~ .status:empty { display:none !important; }
.proc:not([open]) .proc-hint { display:none; }

/* bubbles */
.ticket-bubble { border:2px solid #bfd3fb; background:#fff; color:#13233a; font-weight:700; }
.ticket-num { background:var(--gold); color:#13233a; font-weight:800; }
.ticket-bubble:hover, .ticket-bubble:focus-visible { background:var(--tint); border-color:var(--blue); color:#13233a; }
.ticket-bubble:hover .ticket-num, .ticket-bubble:focus-visible .ticket-num { background:var(--gold); color:#13233a; }
.ticket-bubble.is-open { background:var(--blue); border-color:var(--blue); color:#fff; }
.ticket-bubble.is-open .ticket-num { background:#fff; color:var(--blue); }
.ticket-guide { background:var(--tint); box-shadow:inset 4px 0 0 var(--blue); border-radius:12px; }
.ticket-guide-kicker { color:var(--blue); }
.ticket-guide .btn { background:var(--gold); color:#13233a; border:0; font-weight:800; box-shadow:0 2px 0 var(--gold-deep); }
.ticket-guide .btn:hover, .ticket-guide .btn:focus-visible { background:#fbbf24; }
.howto-more > summary { color:var(--blue); }

/* procedures */
.proc { border:1px solid #f1c6ad; border-left:4px solid #c2410c; border-radius:10px; }
.proc[open] { background:var(--tint); }
.proc-title { font-weight:800; }
.proc summary::after { content:"Open ▾"; color:#c2410c; }
.proc[open] summary::after { content:"Close ▴"; }

/* message + crew */
.message-body { font-weight:700; font-size:16px; }
.count-line { color:#1f3a5f; }
.member-btn { background:#eaf1fe !important; border:2px solid var(--blue) !important; color:#13233a; }
.member-btn:hover, .member-btn:focus-visible { background:#dbe7fd !important; }
.member-btn .member-state { background:var(--blue); color:#fff; border-radius:999px; padding:3px 10px; font-weight:800; }
.member-btn.read { background:var(--ok) !important; border-color:var(--ok) !important; color:#fff; }
.member-btn.read .member-state { background:rgba(255,255,255,.22); color:#fff; }

/* faq */
.panel-faq .btn { background:#6d28d9; border-color:#6d28d9; color:#fff; }
.panel-faq .btn:hover, .panel-faq .btn:focus-visible { background:#5b21b6; }
.panel-faq .subhead { color:#6d28d9; }
input:focus-visible, textarea:focus-visible { border-color:var(--blue) !important; }
.btn:hover, .btn:focus-visible { filter:brightness(1.08); }

@media (max-width: 600px) {
  .panel-head { flex-direction:row; align-items:center; padding:8px 10px; }
  .panel .panel-head .ghost { align-self:center; min-width:32px; }
  .panel-heading h2 { font-size:15px; }
  .panel-head .kicker { display:none; }
}
@media (max-width: 600px) { .ticket-bubble { border-radius:14px; } }
/* Option c-forest — override on top of hub-update8 styles.css. Pair with phone-one-column.css. */
:root { --paper:#1e3a2b; --card:#fbfaf5; --ink:#1f2a22; --muted:#55604f; --line:#d6dccb; --gold:#d4a72c; --gold-deep:#a67c0f; --ok:#2f7d32; --read:#2f7d32; --navy:#1f2a22; color-scheme:light; }
body { background:#1e3a2b; background-image:linear-gradient(180deg,#264a37 0,#1e3a2b 340px); color:#1f2a22; }
.top { background:#14291e; color:#f1efe4; box-shadow:inset 0 -4px 0 #c9a227; }
h1 { color:#f1efe4; } .top .eyebrow { color:#c9d8b6; } .today { color:#55604f; }
.mark rect { fill:#c9a227; } .mark path:first-of-type { fill:#14291e; } .mark path:last-of-type { fill:#c9a227; }
.top .ghost { border:2px solid #f1efe4; color:#f1efe4; background:transparent; }
.top .ghost:hover, .top .ghost:focus-visible { background:#f1efe4; color:#14291e; }
.office-link { background:#d4a72c; color:#1f1a08; box-shadow:0 2px 0 #a67c0f; }
.banner { background:#eef2e8; color:#1f2a22; border-bottom:1px solid #d6dccb; }
:focus-visible { outline-color:#d4a72c; }
.panel.panel-howto { --accent:#2f6b57 !important; --tint:#eef2e8; }
.panel.panel-procedures { --accent:#6b7a2e !important; --tint:#eef2e3; }
.panel.panel-message { --accent:#a4502a !important; --tint:#f8ebe3; }
.panel.panel-faq { --accent:#3f5f80 !important; --tint:#e8eef5; }
.panel { background:#fbfaf5; color:#1f2a22; border:1px solid #d6dccb; box-shadow:0 2px 4px rgba(0,0,0,.25), 0 14px 30px rgba(0,0,0,.35); }
.panel-head { background:var(--accent);  }
.panel-heading h2, .panel-head .kicker { color:#fff; }
.panel-body { color:#1f2a22; }
.muted, .proc-hint, .hint, .meta, #message-meta { color:#55604f !important; }
.ticket-bubble { background:#fbfaf5; color:#1f2a22; border:2px solid #d6dccb; }
.ticket-num { background:#d4a72c; color:#1f1a08;  }
.ticket-bubble:hover, .ticket-bubble:focus-visible { background:var(--tint); border-color:var(--accent); color:#1f2a22; }
.ticket-bubble:hover .ticket-num, .ticket-bubble:focus-visible .ticket-num { background:#d4a72c; color:#1f1a08; }
.ticket-bubble.is-open { background:var(--accent); border-color:var(--accent); color:#fff;  }
.ticket-bubble.is-open .ticket-num { background:#d4a72c; color:#1f1a08; }
.ticket-guide { background:var(--tint); color:#1f2a22; box-shadow:inset 4px 0 0 var(--accent); }
.ticket-guide-kicker, .howto-more > summary { color:var(--accent); }
.ticket-guide .ghost { background:#fbfaf5; color:#1f2a22; border-color:#d6dccb; }
.ticket-guide .btn { background:#d4a72c; color:#1f1a08; box-shadow:0 2px 0 #a67c0f; }
.proc { background:#fbfaf5; border:1px solid #d6dccb; border-left:4px solid var(--accent); }
.proc[open] { background:var(--tint); }
.proc-title { color:#1f2a22; }
.proc summary::after { color:var(--accent); }
.proc[open] summary { border-bottom-color:#d6dccb; }
.step::before { background:var(--accent); }
.word { background:var(--tint); color:#1f2a22; } .keywords th { color:#55604f; } .keywords td { border-color:#d6dccb; }
.count-line { color:#1f2a22; }
.member-btn { background:var(--tint) !important; border:2px solid #4d6b2f !important; color:#1f2a22 !important; }
.member-btn:hover, .member-btn:focus-visible { filter:brightness(0.97); }
.member-btn .member-state { background:#4d6b2f; color:#fff; }
.member-btn.read { background:#2f7d32 !important; border-color:#2f7d32 !important; color:#fff !important; }
.member-btn.read .member-state { background:rgba(255,255,255,.25); color:#fff; }
.panel-faq .btn { background:var(--accent); border-color:var(--accent); color:#fff; }
.panel-faq .subhead { color:var(--accent); }
.leader { border-color:#d6dccb !important; background:transparent !important; color:#1f2a22; }
.leader .count, .pill { background:var(--tint); color:#1f2a22; }
input, textarea { background:#fff; color:#1f2a22; border:1px solid #d6dccb !important; }
::placeholder { color:#55604f; }
/* Shared: one-column phone layout (<=600px). Panels stack: Start Here, Photo Procedures, Morning Message, FAQ. */
@media (max-width: 600px) {
  html, body { height: auto; min-height: 100%; overflow: auto; }
  body { display: block; }
  .board { display: grid; grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 12px; padding: 12px; }
  .panel-howto, .panel-procedures, .panel-message, .panel-faq { grid-area: auto !important; grid-column: 1; }
  .panel-howto { order: 1; } .panel-procedures { order: 2; } .panel-message { order: 3; } .panel-faq { order: 4; }
  .panel:not(.is-expanded) { max-height: 72vh; }
  .panel-heading h2 { font-size: 17px; }
  .member-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ticket-bubble { border-radius: 999px; }
}

/* ===== FAQ point approval — uses the Forest palette above, no new colors ===== */
.tag { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.02em; }
.tag-wait { background:#d4a72c; color:#1f1a08; }
.meta-line { margin:0 0 8px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.recent-answer .answer-copy { margin:0; white-space:pre-wrap; }
.recent-answer { background:#fbfaf5; border-left:4px solid #6b7a2e; }
.recent-answer.bot, .answer-card.bot { background:#e8eef5; border:1px solid #c5d3e2; border-left:8px solid #3f5f80; padding:0 0 10px; overflow:hidden; }
.recent-answer.bot .open-q, .recent-answer.bot .answer-copy, .answer-card.bot > p:not(.bot-banner-title):not(.bot-banner-sub) { padding:0 12px; }
.answer-card.bot { padding:0 0 10px; }
.bot-banner { background:#3f5f80; color:#fff; padding:10px 12px; margin:0 0 10px; }
.bot-banner p { margin:0; }
.bot-banner-title { font-size:17px; font-weight:800; line-height:1.25; }
.bot-banner-sub { font-size:12px; font-weight:600; margin-top:2px !important; opacity:.92; }
.pending-card-office { border-left:6px solid #d4a72c; }
.pending-office { background:#fbfaf5; }
.pending-office .answer-copy { margin:0 0 12px; white-space:pre-wrap; }
.approve-row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.btn.approve-btn { background:#2f7d32; border-color:#2f7d32; color:#fff; font-size:20px; font-weight:800; min-height:56px; padding:10px 34px; flex:1 1 220px; box-shadow:0 2px 0 #1e5a22; }
.btn.approve-btn:hover, .btn.approve-btn:focus-visible { background:#276b2a; }
.btn.reject-btn { min-height:36px; padding:4px 12px; font-size:13px; font-weight:600; background:transparent; color:#55604f; border:1px solid #d6dccb; flex:0 0 auto; }
.btn.reject-btn:hover, .btn.reject-btn:focus-visible { color:#8d2b2b; border-color:#8d2b2b; }


/* Start Here: one clean vertical column of ticket types (GIF preview) */
.ticket-bubbles { display:flex; flex-direction:column; flex-wrap:nowrap; gap:8px; }
.ticket-bubbles li { width:100%; max-width:100%; }
.ticket-bubble { display:flex; width:100%; justify-content:flex-start; align-items:center; gap:12px; padding:9px 14px 9px 9px; text-align:left; }
.ticket-bubble .ticket-num { flex:0 0 auto; }

/* ===== BEGIN ticket-gifs ===== */
.ticket-bubbles .ticket-media-row { flex: 0 0 100%; width: 100%; max-width: 100%; list-style: none; }
.ticket-media-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ticket-gif-close { font: inherit; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #1f1a08; background: #d4a72c; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.ticket-gif-close:hover, .ticket-gif-close:focus-visible { background: #c4961f; }
.ticket-bubbles.is-showing-gif > li:not(:has(.is-open)):not(.ticket-media-row) { display: none; }
.ticket-media { width: min(100%, 280px, calc(58vh * 9 / 20)); aspect-ratio: 9 / 20; border-radius: 12px; overflow: hidden; background: #14291e; border: 2px solid var(--accent, #2f6b57); }
.ticket-gif { display: block; width: 100%; height: 100%; object-fit: contain; background: #14291e; }
.ticket-gif-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center;
  background: repeating-linear-gradient(135deg, #1e3a2b 0 18px, #23402f 18px 36px); color: #f1efe4; }
.ticket-gif-name { font-weight: 800; font-size: 18px; line-height: 1.25; }
.ticket-gif-soon { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #14291e; background: #d4a72c; border-radius: 999px; padding: 4px 12px; }
@media (max-width: 600px) { .ticket-gif-name { font-size: 16px; } }
/* ===== END ticket-gifs ===== */

/* ===== sf-steps (State Farm / Farmers photo sequence) ===== */
.sf-steps-wrap { padding: 10px 12px 4px; }
.sf-steps-title { margin: 0 0 2px; font-size: 15px; font-weight: 800; color: #1f2a22; }
.sf-steps-hint { margin: 0 0 8px; font-size: 13px; color: #55604f; }
.sf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.sf-step { background: #fbfaf5; border: 1px solid #d6dccb; border-left: 4px solid var(--accent, #6b7a2e); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.sf-step-head { display: flex; align-items: center; gap: 8px; }
.sf-step-num { flex: 0 0 auto; min-width: 26px; height: 26px; border-radius: 13px; background: var(--accent, #6b7a2e); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.sf-step-label { font-weight: 700; color: #1f2a22; line-height: 1.25; }
.sf-step-photo { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #d6dccb; border-radius: 8px; overflow: hidden; padding: 0; background: #eef2e3; }
button.sf-step-photo:focus-visible { outline: 3px solid var(--accent, #6b7a2e); outline-offset: 2px; }
.sf-step-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-step-soon { display: flex; align-items: center; justify-content: center; border-style: dashed; color: #55604f; font-weight: 700; font-size: 14px; }
.sf-step-note { grid-column: 1 / -1; background: #eef2e3; border: 1px dashed var(--accent, #6b7a2e); border-radius: 10px; padding: 10px 12px; font-weight: 700; color: #1f2a22; line-height: 1.4; }
.sf-notes-head { margin: 10px 12px 0; font-size: 14px; font-weight: 800; color: #1f2a22; }
.sf-lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 26, 18, 0.88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 8px; }
.sf-lightbox img { max-width: 100%; max-height: calc(100% - 90px); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4); background: #fff; }
.sf-lightbox-cap { margin: 0; color: #fff; font-weight: 700; text-align: center; }
.sf-lightbox-close { align-self: flex-end; background: #fbfaf5; color: #1f2a22; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 800; }
@media (max-width: 600px) { .sf-steps { grid-template-columns: 1fr; } }

/* ===== BEGIN sf-findings ===== */
.sf-findings { padding: 14px 12px 10px; margin: 2px 0 4px; border-top: 1px solid #d6dccb; }
.sf-findings-title { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: #1f2a22; }
.sf-findings-intro { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #1f2a22; }
.sf-findings-subhead { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: none; color: #55604f; }
.sf-findings-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sf-finding-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fbfaf5; border: 1px solid #d6dccb; border-left: 4px solid var(--accent, #6b7a2e); border-radius: 10px; padding: 8px; cursor: pointer; }
.sf-finding-row:hover, .sf-finding-row:focus-visible { background: #eef2e3; }
.sf-finding-row:focus-visible { outline: 3px solid var(--accent, #6b7a2e); outline-offset: 2px; }
.sf-finding-row.is-open { background: #eef2e3; border-color: var(--accent, #6b7a2e); }
.sf-finding-thumb { flex: 0 0 auto; width: 112px; height: 63px; object-fit: cover; border-radius: 6px; border: 1px solid #d6dccb; background: #eef2e3; }
.sf-finding-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-finding-label { font-weight: 800; color: #1f2a22; line-height: 1.25; }
.sf-finding-hint { font-size: 13px; line-height: 1.35; color: #55604f; }
.sf-findings-list.is-showing-gif > li:not(:has(.is-open)):not(.sf-finding-media-row) { display: none; }
.sf-finding-media-row { list-style: none; width: 100%; }
.sf-finding-media-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; }
.sf-finding-gif-close { font: inherit; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #1f1a08; background: #d4a72c; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.sf-finding-gif-close:hover, .sf-finding-gif-close:focus-visible { background: #c4961f; }
.sf-finding-media { width: 100%; max-width: 900px; border-radius: 10px; overflow: hidden; background: #14291e; border: 2px solid var(--accent, #6b7a2e); }
.sf-finding-gif { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .sf-finding-thumb { width: 96px; height: 54px; } }
/* ===== END sf-findings ===== */

/* ===== New-question alerts ===== */
.alert-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; background: #8d2b2b; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.35; border-bottom: 2px solid #5f1c1c; flex: 0 0 auto; }
.alert-banner[hidden] { display: none; }
.alert-banner .alert-text { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.alert-banner button { min-height: 36px; padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.7); background: #fff; color: #8d2b2b; font-weight: 800; cursor: pointer; }
.alert-banner button.alert-dismiss { background: transparent; color: #fff; }
.alert-badge { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 8px; border-radius: 999px; background: #d93025; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.5; text-align: center; vertical-align: middle; }
.alert-badge[hidden] { display: none; }
.alert-opt { margin-top: 8px; }
.alert-opt[hidden] { display: none; }
.pill-active { margin-left: 6px; background: #dff0e4; color: #1f7a45; }

/* ===== BEGIN morning-board ===== */
.panel-message .panel-head { align-items: center; }
.message-body.is-quote { position: relative; font-size: 17px; line-height: 1.45; font-weight: 600; font-style: italic; padding: 12px 14px 12px 40px; margin: 4px 0 10px; border-radius: 12px; background: var(--tint, #f3efe2); border-left: 4px solid var(--gold, #d4a72c); }
.message-body.is-quote::before { content: "\201C"; position: absolute; left: 10px; top: -2px; font-size: 44px; line-height: 1; font-style: normal; color: var(--gold, #d4a72c); }
.quote-label { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1f1a08; background: var(--gold, #d4a72c); border-radius: 999px; padding: 3px 10px; }
.member-btn .member-state { text-align: right; white-space: normal; }
.member-btn.uploaded { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.member-btn.uploaded .member-state { background: transparent !important; color: inherit; padding: 0; font-size: 12px; text-transform: none; letter-spacing: 0; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 600px) { .member-btn.uploaded .member-state { font-size: 11px; } }
.member-btn.confirmed { background: #4c1d95 !important; border-color: #4c1d95 !important; color: #fff !important; }
.member-btn.confirmed .member-state { color: #fff; }
.member-btn.confirmed .member-state::before { content: "✓ "; }
/* click-times list */
.day-list { display: grid; gap: 6px; }
.day-row { display: grid; grid-template-columns: 1.2fr 1.3fr 1.3fr; gap: 4px 12px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #d6dccb); background: #fff; color: var(--ink, #1f2a22); }
.day-row.read { border-left: 5px solid var(--ok, #2f7d32); }
.day-row.confirmed { background: #4c1d95; border-color: #4c1d95; color: #fff; }
.day-row.confirmed .muted, .day-row.confirmed a, .day-row.confirmed .coords, .day-row.confirmed .where { color: #fff !important; }
.day-row .where { font-size: 13px; }
.day-who { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.day-badge { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: #eef0ea; color: #3c4a3f; }
.day-row.read .day-badge { background: var(--ok, #2f7d32); color: #fff; }
.day-row.confirmed .day-badge { background: rgba(255,255,255,.2); color: #fff; }
.day-times { display: flex; flex-direction: column; font-size: 13px; }
.gps { font-size: 13px; }
.map-link { font-weight: 800; }
.no-gps { color: #8d2b2b; font-weight: 700; }
.day-row.confirmed .no-gps { color: #fde68a; }
@media (max-width: 700px) { .day-row { grid-template-columns: 1fr; } }
/* Morning message lock: the circle never changes size or shape; #lock-panel grows out to its left. */
.panel-message { position: relative; }
.lock-btn { flex: 0 0 40px; width: 40px; height: 40px; min-width: 40px; min-height: 40px; max-width: 40px; max-height: 40px; padding: 0; margin-left: 6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.16); color: #fff; display: inline-grid; place-items: center; cursor: pointer; position: relative; z-index: 6; box-sizing: border-box; }
.lock-btn:hover, .lock-btn:focus-visible { background: #fff; color: var(--accent, #1f3a5f); }
.lock-btn svg { width: 20px; height: 20px; display: block; }
.lock-btn .lock-open-icon { display: none; }
.lock-btn.is-unlocked .lock-open-icon { display: block; }
.lock-btn.is-unlocked .lock-closed-icon { display: none; }
.lock-btn.is-unlocked { background: #fff; color: var(--accent, #1f3a5f); }
.lock-panel { position: absolute; z-index: 5; top: var(--lock-top, 10px); right: var(--lock-right, 60px); width: 40px; height: 40px; border-radius: 20px; background: var(--card, #fbfaf5); color: var(--ink, #1f2a22); border: 1px solid rgba(0,0,0,.12); box-shadow: 0 10px 30px rgba(0,0,0,.28); overflow: hidden; opacity: 0; visibility: hidden; transform-origin: right center; box-sizing: border-box;
  transition: width 300ms ease, height 300ms ease, top 300ms ease, right 300ms ease, border-radius 300ms ease, opacity 200ms ease, visibility 0s linear 300ms; }
.lock-panel[data-state="pin"] { width: 248px; height: 40px; opacity: 1; visibility: visible; transition-delay: 0s; }
.lock-panel[data-state="open"] { width: calc(100% - var(--lock-right, 60px) - 12px); height: calc(100% - var(--lock-top, 10px) - 12px); border-radius: 18px; opacity: 1; visibility: visible; transition-delay: 0s; display: flex; flex-direction: column; }
@media (min-width: 601px) {
  .lock-panel { position: fixed; top: var(--lock-vtop, 80px); right: var(--lock-vright, 60px); z-index: 60; }
  .lock-panel[data-state="open"] { top: var(--lock-open-top, 16px); width: min(660px, calc(100vw - var(--lock-vright, 60px) - 16px)); height: min(82vh, 820px, calc(100vh - var(--lock-open-top, 16px) - 16px)); }
}
.lock-pin-form { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 4px 0 12px; }
.lock-pin-form .office-pin { flex: 1 1 auto; min-width: 0; width: auto; height: 30px; padding: 0 8px; font-size: 22px; letter-spacing: .45em; text-align: center; border: 1px solid var(--line, #d6dccb); border-radius: 999px; background: #fff; }
.lock-go, .lock-x { flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--line, #d6dccb); background: #fff; color: inherit; font-size: 15px; font-weight: 800; display: inline-grid; place-items: center; cursor: pointer; }
.lock-go { background: var(--accent, #1f3a5f); border-color: var(--accent, #1f3a5f); color: #fff; }
.lock-error { position: absolute; left: 0; right: 0; top: 40px; margin: 0; padding: 0 12px; font-size: 12px; }
.lock-panel[data-state="pin"]:has(.lock-error:not(:empty)) { height: 62px; border-radius: 20px; }
.lock-open-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--line, #d6dccb); flex: 0 0 auto; }
.lock-open-head h2 { margin: 0; font-size: 16px; }
.lock-open-body { flex: 1 1 auto; overflow: auto; padding: 10px 14px 14px; display: grid; gap: 8px; align-content: start; }
.lock-panel > * { transition: opacity 180ms ease 120ms; }
.lock-panel[data-state="closed"] > * { opacity: 0; transition-delay: 0s; }
.lock-panel .day-row { grid-template-columns: 1fr 1fr; padding: 6px 10px; }
.lock-panel .day-row > .gps { grid-column: 1 / -1; }
.lock-panel.shake { animation: lock-shake 360ms ease; }
@keyframes lock-shake { 0%, 100% { translate: 0; } 20% { translate: -8px; } 40% { translate: 7px; } 60% { translate: -5px; } 80% { translate: 3px; } }
.office-box-error { color: #8d2b2b; font-weight: 800; min-height: 1.2em; margin: 0; }
.office-note { width: 100%; font: inherit; padding: 10px; border-radius: 10px; border: 1px solid var(--line, #d6dccb); box-sizing: border-box; }
@media (max-width: 600px) {
  .panel-message .panel-head { position: relative; padding-right: 64px; }
  .panel-message .panel-head .lock-btn { position: absolute; top: 10px; right: 12px; margin: 0; }
  .lock-panel[data-state="pin"] { width: min(248px, calc(100% - var(--lock-right, 60px) - 8px)); }
  .lock-panel[data-state="open"] { top: calc(var(--lock-head, 60px) + 6px); right: 8px; width: calc(100% - 16px); height: min(75vh, calc(100% - var(--lock-head, 60px) - 14px)); }
}
@media (prefers-reduced-motion: reduce) {
  .lock-panel, .lock-panel > * { transition: none !important; }
  .lock-panel.shake { animation: none; }
}
/* ===== END morning-board ===== */

/* ===== vacancy-inspection: header in Photo Procedures (hub look) + Safeguard-style bottom sheet ===== */
.vac-wrap { position: relative; margin: 0 0 8px; }
.vac-head { display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 52px; padding: 10px 12px; text-align: left; font: inherit; color: #1f2a22; background: #fbfaf5; border: 1px solid #d6dccb; border-left: 4px solid var(--accent, #6b7a2e); border-radius: 10px; cursor: pointer; }
.vac-head:focus-visible { outline: 3px solid var(--accent, #6b7a2e); outline-offset: 2px; }
.vac-wrap.is-open .vac-head { background: var(--tint, #eef2e3); }
.vac-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vac-badge { flex: 0 0 auto; min-width: 28px; padding: 1px 9px; border-radius: 999px; background: #feb645; color: #005288; font-size: 13px; font-weight: 800; text-align: center; }
.vac-hint { display: none; color: #55604f; font-size: 13px; line-height: 1.35; }
.vac-wrap.is-open .vac-hint { display: block; }
.vac-toggle { color: var(--accent, #6b7a2e); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.vac-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: min(80vh, 720px); height: min(80dvh, 720px); width: min(100%, 560px); margin: 0 auto; display: flex; flex-direction: column; font-family: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; color: #005288; animation: vac-rise .24s ease-out; }
.vac-sheet[hidden] { display: none; }
@keyframes vac-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .vac-sheet { animation: none; } }
.vac-sheet-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; overflow: hidden; box-shadow: 0 -10px 30px rgba(10, 20, 40, .35); }
.vac-close { position: absolute; top: -52px; right: 12px; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(40, 56, 82, .88); color: #fff; cursor: pointer; }
.vac-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.vac-close:focus-visible { outline: 3px solid #feb645; outline-offset: 2px; }
.vac-chip { position: absolute; top: -48px; left: 12px; max-width: calc(100% - 84px); margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(40, 56, 82, .88); color: #fff; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vac-tabs { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #e6e6ec; }
.vac-tab { min-height: 52px; padding: 0; font: inherit; font-size: 17px; color: #a2a2b4; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.vac-tab.is-on { color: #6b6f82; border-bottom-color: #005288; }
.vac-tab:focus-visible, .vac-filter:focus-visible { outline: 3px solid #feb645; outline-offset: -3px; }

.vac-search { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin: 10px 12px 8px; padding: 0 12px; min-height: 48px; background: #fff; border: 1px solid #e3e3ea; border-radius: 6px; }
.vac-search:focus-within { border-color: #005288; }
.vac-search svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: #005288; stroke-width: 2.4; }
.vac-search-input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0; font: inherit; font-size: 16px; color: #005288; background: transparent; border: 0 !important; outline: 0; -webkit-appearance: none; appearance: none; }
.vac-search-input::placeholder { color: #8fa9bd; }
.vac-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.vac-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 12px 10px; }
.vac-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vac-row { margin: 0; padding: 0; min-width: 0; }
.vac-bar { display: flex; align-items: stretch; min-height: 58px; background: #feb645; border: 1px solid #f0d3a6; border-radius: 4px; }
.vac-bar.is-open { box-shadow: inset 0 0 0 2px #fff; }
.vac-item { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 14px; font: inherit; font-size: 17px; line-height: 1.25; color: #005288; text-align: left; background: none; border: 0; cursor: pointer; }
.vac-item:focus-visible { outline: 3px solid #005288; outline-offset: -3px; }
.vac-radio { flex: 0 0 auto; position: relative; width: 26px; height: 26px; border: 3px solid #005288; border-radius: 50%; }
.vac-item.is-open .vac-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #005288; }
.vac-dollar { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0a6500; color: #fff; font-size: 17px; font-weight: 800; }
.vac-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.vac-count { flex: 0 0 auto; padding-left: 6px; font-size: 17px; font-variant-numeric: tabular-nums; }
.vac-star { flex: 0 0 auto; width: 52px; display: grid; place-items: center; padding: 0; color: #fff; pointer-events: none; }
.vac-star svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.vac-photo { margin: 4px 0 0; padding: 8px; display: grid; gap: 8px; background: #fff; border: 1px solid #e3e3ea; border-radius: 4px; }
.vac-photo .sf-step-photo { margin: 0; border-color: #e3e3ea; background: #f5f7fa; }
.vac-soon { flex-direction: column; gap: 4px; text-align: center; padding: 8px; background: #f5f7fa; border: 2px dashed #9db4c8; border-radius: 6px; color: #005288; }
.vac-soon-title { font-weight: 700; font-size: 15px; color: #005288; }
.vac-soon-note { font-size: 12px; font-weight: 600; color: #5f7f98; }
.vac-empty { margin: 18px 4px; text-align: center; font-size: 16px; color: #5f7f98; }

.vac-filters { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 12px; border-top: 1px solid #e6e6ec; }
.vac-filter { min-height: 52px; padding: 0; font: inherit; font-size: 17px; color: #005288; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.vac-filter.is-on { border-bottom-color: #005288; }
.vac-shown { flex: 0 0 auto; margin: 0; padding: 6px 12px calc(10px + env(safe-area-inset-bottom, 0px)); font-size: 13px; text-align: center; color: #5f7f98; }
