/* TripArro PMS — one stylesheet, no build step.
   Pine (ink + sidebar), marigold (the action colour), and one colour per room status. */

@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegibleNext-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F6F7F4;
  --surface: #FFFFFF;
  --pine: #14302B;
  --pine-2: #1E433C;
  --ink: #17231F;
  --muted: #5B6B65;
  --rule: #DCE1DA;
  --rule-strong: #C3CBC1;
  --marigold: #E8A417;
  --marigold-deep: #C98A07;
  --marigold-wash: #FDF3DC;

  --clean: #2E7D57;      --clean-wash: #E5F2EA;
  --dirty: #B4472F;      --dirty-wash: #F8E7E2;
  --cleaning: #2E66B0;   --cleaning-wash: #E4EDF8;
  --inspecting: #7652A8; --inspecting-wash: #EFE8F7;
  --ooo: #66706C;        --ooo-wash: #ECEEED;

  --radius: 8px;
  --radius-s: 5px;
  --font: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: 0.8125rem;  /* 13 */
  --t-s: 0.875rem;    /* 14 */
  --t-m: 1rem;        /* 16 */
  --t-l: 1.25rem;     /* 20 */
  --t-xl: 1.625rem;   /* 26 */
  --t-xxl: 2.125rem;  /* 34 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--t-m); line-height: 1.5; color: var(--ink); background: var(--paper); }
a { color: var(--pine-2); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; }
h1 { font-size: var(--t-xl); letter-spacing: -0.01em; }
h2 { font-size: var(--t-l); }
h3 { font-size: var(--t-m); }
p { margin: 0 0 0.75rem; }
code, .code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--t-s); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- shell -- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--pine) 0 236px, var(--paper) 236px); }
.sidebar { background: var(--pine); color: #DCE8E3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 14px; color: #fff; text-decoration: none; font-weight: 700; font-size: var(--t-l); }
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.org { margin: 0 12px 12px; padding: 10px 10px; border-radius: var(--radius); background: var(--pine-2); font-size: var(--t-s); }
.org-name { color: #fff; font-weight: 700; display: block; }
.org-role { color: #A9C2BA; }
.org select { width: 100%; margin-top: 8px; background: var(--pine); color: #fff; border: 1px solid #3B6158; border-radius: var(--radius-s); padding: 6px; font: inherit; }
.nav { list-style: none; margin: 4px 0; padding: 0 12px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-s); color: #DCE8E3; text-decoration: none; font-weight: 500; position: relative; }
.nav a:hover { background: var(--pine-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--pine-2); color: #fff; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--marigold); }
.nav svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.nav-sep { height: 1px; background: #2C5249; margin: 10px 22px; }
.sidebar-foot { margin-top: auto; padding: 14px 20px 18px; font-size: var(--t-xs); color: #8FAAA2; }
.sidebar-foot form { display: inline; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

.main { min-width: 0; }
.topbar-mobile { display: none; }
.page { padding: 28px 36px 64px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: var(--t-s); margin-bottom: 6px; display: inline-block; }

/* ------------------------------------------------------------- buttons -- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-s);
  border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: var(--t-s); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary { background: var(--marigold); border-color: var(--marigold); color: #241A02; }
.btn-primary:hover { background: var(--marigold-deep); border-color: var(--marigold-deep); color: #1A1301; }
.btn-danger { color: var(--dirty); border-color: #E3B9AE; }
.btn-danger:hover { color: #fff; background: var(--dirty); border-color: var(--dirty); }
.btn-small { min-height: 32px; padding: 4px 11px; font-size: var(--t-xs); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* -------------------------------------------------------------- panels -- */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: var(--t-s); }
.panel-body { padding: 18px; }
.panel-body > :last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.empty { padding: 26px 18px; color: var(--muted); }
.empty strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* -------------------------------------------------------------- tables -- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.table th { text-align: left; font-weight: 700; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFBF8; }
.table .actions { text-align: right; white-space: nowrap; }
.table a.row-link { font-weight: 700; text-decoration: none; color: var(--ink); }
.table a.row-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------- forms -- */
.form { max-width: 760px; }
.fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.fieldset > legend { font-weight: 700; font-size: var(--t-l); padding: 0; margin-bottom: 4px; }
.fieldset > .hint { margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .label { font-weight: 700; font-size: var(--t-s); }
.hint { font-size: var(--t-xs); color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid var(--rule-strong); border-radius: var(--radius-s); background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine-2); box-shadow: 0 0 0 3px rgba(232, 164, 23, .35); }
.is-invalid { border-color: var(--dirty) !important; }
.error { color: var(--dirty); font-size: var(--t-xs); font-weight: 700; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: var(--t-s); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pine-2); }
.form-actions { display: flex; gap: 10px; align-items: center; padding-top: 6px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filters .field { min-width: 150px; }
.filters .grow { flex: 1 1 220px; }

/* --------------------------------------------------------- flash notes -- */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; border: 1px solid; font-size: var(--t-s); }
.flash svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.flash-success { background: var(--clean-wash); border-color: #BBDCC8; color: #1D5A3D; }
.flash-error { background: var(--dirty-wash); border-color: #EBC2B7; color: #842F1D; }
.flash-notice { background: var(--marigold-wash); border-color: #F1D79D; color: #6B4A03; }
.secret { margin-top: 8px; padding: 10px 12px; background: #fff; border: 1px dashed var(--rule-strong); border-radius: var(--radius-s); font-size: var(--t-l); font-weight: 700; letter-spacing: .02em; color: var(--ink); word-break: break-all; }

/* ------------------------------------------------------- status labels -- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 99px; font-size: var(--t-xs); font-weight: 700; white-space: nowrap; background: var(--ooo-wash); color: var(--ooo); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-clean, .tag-completed, .tag-confirmed, .tag-active { background: var(--clean-wash); color: var(--clean); }
.tag-dirty, .tag-rework_required, .tag-cancelled, .tag-no_show, .tag-suspended { background: var(--dirty-wash); color: var(--dirty); }
.tag-cleaning, .tag-in_progress, .tag-checked_in { background: var(--cleaning-wash); color: var(--cleaning); }
.tag-inspecting, .tag-inspection_pending { background: var(--inspecting-wash); color: var(--inspecting); }
.tag-pending, .tag-assigned { background: var(--marigold-wash); color: #8A5F04; }
.prio { font-weight: 700; font-size: var(--t-xs); }
.prio-1 { color: var(--dirty); }
.prio-2 { color: #8A5F04; }
.prio-3 { color: var(--muted); }

/* --------------------------------------------------------- today strip -- */
.today { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 22px; }
.today > div { padding: 16px 20px; border-left: 1px solid var(--rule); }
.today > div:first-child { border-left: 0; }
.today .n { font-size: var(--t-xxl); font-weight: 700; line-height: 1.05; display: block; font-variant-numeric: tabular-nums; }
.today .l { color: var(--muted); font-size: var(--t-s); }
.today a { text-decoration: none; color: inherit; display: block; }
.today a:hover .l { text-decoration: underline; }

/* --------------------------------------------- room board (the key rack) -- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.room { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 82px; padding: 9px 10px 8px 14px;
  border-radius: var(--radius-s); background: var(--ooo-wash); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.room::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: var(--radius-s) 0 0 var(--radius-s); background: var(--ooo); }
.room:hover { border-color: var(--rule-strong); color: var(--ink); }
.room .code { font-size: var(--t-l); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.room .state { font-size: var(--t-xs); font-weight: 700; }
.room .where { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-clean { background: var(--clean-wash); }       .room-clean::before { background: var(--clean); }       .room-clean .state { color: var(--clean); }
.room-dirty { background: var(--dirty-wash); }       .room-dirty::before { background: var(--dirty); }       .room-dirty .state { color: var(--dirty); }
.room-cleaning { background: var(--cleaning-wash); } .room-cleaning::before { background: var(--cleaning); } .room-cleaning .state { color: var(--cleaning); }
.room-inspecting { background: var(--inspecting-wash); } .room-inspecting::before { background: var(--inspecting); } .room-inspecting .state { color: var(--inspecting); }
.room-out_of_order .state { color: var(--ooo); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-s); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.board-group + .board-group { margin-top: 18px; }
.board-group h3 { font-size: var(--t-s); color: var(--muted); margin-bottom: 8px; font-weight: 700; }

/* ------------------------------------------------------- detail lists -- */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; font-size: var(--t-s); }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: var(--t-s); }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--rule); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--rule-strong); }
.timeline li:last-child::before { border-color: var(--marigold); background: var(--marigold); }
details.disclose { border-top: 1px solid var(--rule); }
details.disclose > summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: var(--t-s); list-style: none; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary::before { content: "+"; display: inline-block; width: 18px; color: var(--muted); }
details.disclose[open] > summary::before { content: "–"; }
.unit-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.unit-pick { display: flex; gap: 9px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius-s); background: #fff; cursor: pointer; }
.unit-pick:has(input:checked) { border-color: var(--pine-2); background: var(--clean-wash); }
.unit-pick input { width: 18px; height: 18px; accent-color: var(--pine-2); }
.unit-pick b { display: block; }

/* ------------------------------------------------------- pagination -- */
.pager { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--rule); font-size: var(--t-s); }

/* --------------------------------------------- sign-in & setup screens -- */
.guest { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 440px) 1fr; }
.guest-side { background: var(--pine); color: #DCE8E3; padding: 40px; display: flex; flex-direction: column; }
.guest-side .brand { padding: 0; font-size: var(--t-xl); }
.guest-side .pitch { margin-top: auto; max-width: 30ch; font-size: var(--t-l); line-height: 1.4; color: #fff; }
.guest-side .pitch small { display: block; color: #A9C2BA; font-size: var(--t-s); margin-top: 12px; }
.guest-board { display: grid; grid-template-columns: repeat(4, 46px); gap: 6px; margin-top: 36px; }
.guest-board span { height: 40px; border-radius: 4px; border-left: 4px solid; background: #1E433C; font-size: 0.75rem; font-weight: 700; padding: 4px 6px; color: #fff; }
.guest-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.guest-card { width: 100%; max-width: 420px; }
.guest-card.wide { max-width: 760px; }
.guest-card h1 { margin-bottom: 6px; }
.guest-card > p.muted { margin-bottom: 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; font-size: var(--t-s); }
.checks li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.checks .ok { color: var(--clean); font-weight: 700; }
.checks .bad { color: var(--dirty); font-weight: 700; }
.steps-done { margin: 0 0 20px; padding-left: 20px; font-size: var(--t-s); }

/* --------------------------------------------------------- responsive -- */
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; background: var(--paper); }
  .table th, .table td { padding: 10px 10px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s ease; z-index: 30; }
  .shell.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 24, 21, .45); }
  .topbar-mobile { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--pine); color: #fff; position: sticky; top: 0; z-index: 20; }
  .topbar-mobile .brand { padding: 0; font-size: var(--t-m); }
  .topbar-mobile button { background: none; border: 1px solid #3B6158; color: #fff; border-radius: var(--radius-s); padding: 6px 10px; font: inherit; }
  .page { padding: 20px 16px 48px; }
  .today { grid-template-columns: 1fr 1fr; }
  .today > div:nth-child(3) { border-left: 0; }
  .today > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .fields, .fields.three { grid-template-columns: 1fr; }
  .guest { grid-template-columns: 1fr; }
  .guest-side { padding: 22px 20px; }
  .guest-side .pitch, .guest-board { display: none; }
  .checks { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .table .hide-s { display: none; }
}
/* ---------- triparro.com listing (property page) ---------- */
.link-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--rule); align-items: start; }
.link-card:last-of-type { border-bottom: 0; }
.link-photo { width: 120px; height: 84px; object-fit: cover; border-radius: var(--radius-s); background: var(--paper); }
.link-main { min-width: 0; }
.link-main h3 { margin-bottom: 2px; }
.link-main .flash { margin: 10px 0 0; }
.link-main .flash ul { margin: 6px 0 0; padding-left: 18px; }
.link-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0; font-size: var(--t-s); }
.link-facts div { display: flex; gap: 6px; }
.link-facts dt { color: var(--muted); }
.link-facts dd { margin: 0; font-weight: 700; }
.text-dirty { color: var(--dirty); }

/* ---------- Ask TripArro ---------- */
.assistant-settings { align-items: center; }
.assistant-settings select { width: auto; min-width: 170px; }
.check-inline { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-s); }
.assistant { max-width: 820px; }
.assistant-log { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.as-log { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; max-height: calc(100vh - 360px); overflow-y: auto; }
.as-turn { max-width: 88%; }
.as-turn p { margin: 0; }
.as-user { align-self: flex-end; background: var(--pine); color: #fff; padding: 9px 14px; border-radius: 14px 14px 4px 14px; }
.as-bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--rule); padding: 11px 15px; border-radius: 14px 14px 14px 4px; }
.as-bot .btn-row { margin-top: 10px; }
.as-lines { margin: 8px 0 0; padding-left: 18px; font-size: var(--t-s); }
.as-lines li + li { margin-top: 3px; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font: inherit; font-size: var(--t-s); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.as-controls { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.as-form { display: flex; gap: 8px; }
.as-form input { flex: 1; min-width: 0; }
.as-status { grid-column: 2; margin: 0; min-height: 1.2em; font-weight: 700; color: var(--ink); }
.as-status:empty { display: none; }
.as-note { grid-column: 2; margin: 0; }
.as-mic { grid-row: span 3; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--marigold); color: #241A02; display: grid; place-items: center; cursor: pointer; position: relative; box-shadow: 0 0 0 6px var(--marigold-wash); transition: background .15s, box-shadow .15s; }
.as-mic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-mic:hover { background: var(--marigold-deep); }
.as-mic:disabled { background: var(--rule); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.as-mic[aria-pressed="true"] { background: var(--dirty); color: #fff; box-shadow: 0 0 0 6px var(--dirty-wash); }
.as-mic[aria-pressed="true"]::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--dirty); animation: as-ring 1.2s ease-out infinite; }
@keyframes as-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }
.assistant.is-busy .as-form .btn { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .as-mic[aria-pressed="true"]::after { animation: none; } }
@media (max-width: 860px) {
  .link-card { grid-template-columns: 1fr; }
  .link-photo { width: 100%; height: 140px; }
  .as-log { max-height: none; }
  .as-turn { max-width: 100%; }
  .as-controls { grid-template-columns: 1fr; justify-items: stretch; }
  .as-mic { grid-row: auto; justify-self: center; }
  .as-status, .as-note { grid-column: 1; text-align: center; }
  .assistant-settings select { width: 100%; }
}

/* ---------- Cleaning staff ---------- */
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--rule); font-size: var(--t-s); border-left: 4px solid var(--marigold); }
.alert-item:last-child { border-bottom: 0; }
.alert-overdue, .alert-at_risk, .alert-unassigned { border-left-color: var(--dirty); }
.alert-outside_area, .alert-redo { border-left-color: var(--inspecting); }
.staff-card { display: flex; gap: 18px; align-items: flex-start; }
.staff-photo { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); flex: none; }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-s); display: block; }
.start-check { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.start-check p { margin: 0 0 4px; }
.selfie { width: 110px; height: 140px; object-fit: cover; border-radius: var(--radius-s); }
.mini-map { width: 100%; height: 200px; border: 1px solid var(--rule); border-radius: var(--radius-s); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 8px; }
.photo-grid a { display: block; text-decoration: none; color: var(--muted); font-size: var(--t-xs); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); display: block; margin-bottom: 3px; }
.assign-form label { font-weight: 700; font-size: var(--t-s); display: block; margin-bottom: 6px; }
.assign-form select { flex: 1; min-width: 0; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.report-summary .panel { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.report-summary .big { font-size: var(--t-xxl); line-height: 1; }
.verdict { margin-bottom: 10px; }
.verdict-needs-attention b { color: var(--dirty); }
.verdict-working-well b { color: var(--clean); }
@media (max-width: 860px) { .report-summary { grid-template-columns: 1fr; } .staff-card, .start-check, .alert-item { flex-direction: column; align-items: stretch; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .sidebar, .topbar-mobile, .page-actions, .btn { display: none !important; } .shell { display: block; } }
