/* =====================================================================
   DMHub · app.css
   Dark "command centre" skin (DMHUB-UI-DIRECTION.md). No web fonts,
   no external files. Papaya means live or active and nothing else;
   green, amber and red are status only.
   ===================================================================== */

:root {
  --black:   #17191B;   /* background, header */
  --deck:    #1F2225;   /* panels, cards, chips */
  --deck-2:  #26292D;   /* raised rows inside panels */
  --carbon:  #45484B;   /* borders, inactive, tracks */
  --papaya:  #FF8000;   /* live / active only; text on it is black */
  --white:   #F7F7F5;
  --muted:   #A9AEB3;   /* secondary text; not on carbon */
  --pass:    #3FB950;
  --due:     #F5C542;
  --fail:    #E5484D;
  --teal:    #2EC4B6;   /* radar mark + header underline only */

  --cab-fire:     #E0479E;
  --cab-crisis:   #9D7BFF;
  --cab-handover: #2EC4B6;
  --cab-tenat10:  #3D8BFD;
  --cab-rota:     #D7DCE1;
  --cab-admin:    #6B7075;

  --font: "Trebuchet MS", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--black); color: var(--white);
  font-family: var(--font); font-size: 15px; line-height: 1.4;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 16px 16px 28px; }
.num, time, .tabular { font-variant-numeric: tabular-nums; }
button { font-family: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: var(--white); }
[hidden] { display: none !important; }
.noscript { padding: 24px; }

/* Visible focus for keyboard users at reception */
:focus-visible { outline: 2px solid var(--papaya); outline-offset: 2px; }

/* ---------------- Header ---------------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  height: var(--header-h); padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  background: var(--black); border-bottom: 1px solid var(--carbon);
}
.wordmark { display: flex; flex-direction: column; position: relative; padding-bottom: 6px; }
.wordmark .row { display: flex; align-items: center; gap: 8px; }
.wordmark .name { font-weight: 700; font-size: 22px; letter-spacing: .2px; color: var(--white); }
.wordmark .sub { font-size: 10px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-top: 1px; }
.wordmark::after {            /* the teal underline under the wordmark */
  content: ""; position: absolute; left: 0; bottom: -9px; width: 56px; height: 3px; background: var(--teal);
}
.hspacer { flex: 1; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  background: var(--deck); border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 20px; height: 20px; stroke: var(--white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[aria-expanded="true"] { border-color: var(--papaya); }
.badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--papaya); color: #000;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* Incident strip (stage 2 switches it on) */
.incident-strip {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 16px; background: var(--fail); color: #fff;
  font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}

/* ---------------- Nav drop-down ---------------- */
#navBackdrop { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(0,0,0,.55); z-index: 40; }
#navPanel {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 41;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--deck); border-bottom: 1px solid var(--carbon);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.nav-inner { max-width: 720px; margin: 0 auto; padding: 8px 16px 16px; }
.nav-section { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 12px 4px; border: 0; border-top: 1px solid var(--carbon); background: none; text-align: left;
}
.nav-item:first-of-type { border-top: 0; }
.nav-item .t { font-weight: 700; }
.nav-item .s { font-size: 12px; color: var(--muted); }
.nav-item .cab-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.nav-item.danger .t { color: var(--fail); }
.nav-empty { color: var(--muted); padding: 10px 4px; }

/* ---------------- Footer ---------------- */
.foot {
  text-align: center; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--carbon);
  font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase;
}

/* ---------------- Generic pieces ---------------- */
.label {
  font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 20px 0 10px;
}
.label .live { color: var(--papaya); letter-spacing: 1px; text-transform: none; font-size: 13px; }
.panel { background: var(--deck); border: 1px solid var(--carbon); border-radius: var(--radius); padding: 16px; }
.btn {
  display: block; width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--carbon); background: var(--deck); font-size: 16px; font-weight: 600;
}
.btn-primary { background: var(--papaya); border-color: var(--papaya); color: #000; font-weight: 700; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: var(--fail); color: var(--fail); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; margin-bottom: 14px;
  border-radius: 10px; border: 1px solid var(--carbon); background: var(--deck); font-size: 15px;
}
.screen-title { font-size: 26px; font-weight: 700; margin: 4px 0 4px; }
.screen-sub { color: var(--muted); margin: 0 0 14px; }
.banner { border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; margin: 12px 0; border-left: 4px solid; background: var(--deck); }
.banner.err  { border-color: var(--fail); }
.banner.warn { border-color: var(--due); }
.banner.ok   { border-color: var(--pass); }
.pill {
  display: inline-block; padding: 1px 7px; border-radius: 4px; border: 1px solid currentColor;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; vertical-align: 1px;
}

/* Forms: 16px inputs so iPhones don't zoom */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px; font: 16px var(--font); color: var(--white);
  background: var(--black); border: 1px solid var(--carbon); border-radius: var(--radius-sm);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--papaya); outline: none; }
.hint { font-size: 13px; margin-top: 6px; min-height: 18px; color: var(--muted); }
.hint.bad { color: var(--fail); } .hint.warn { color: var(--due); } .hint.good { color: var(--pass); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; }
.check-row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--papaya); }

/* ---------------- Login ---------------- */
.login-wrap { max-width: 380px; margin: 8vh auto 0; }
.login-mark { display: flex; justify-content: center; margin-bottom: 18px; }
.login-mark svg { width: 64px; height: 64px; }
.login-title { text-align: center; font-size: 28px; font-weight: 700; margin: 0; }
.login-sub { text-align: center; font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin: 4px 0 26px; }

/* ---------------- Command panel ---------------- */
.cmd { background: var(--deck); border: 1px solid var(--carbon); border-radius: 16px; padding: 18px; }
.clock-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.clock { font-size: 52px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.clock .clk-s { font-size: 0.62em; font-weight: 600; letter-spacing: 0; }
.clock .clk-ms { font-size: 0.4em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 1px; }
.clock-date { font-size: 15px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.opday { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; color: var(--white); font-size: 16px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.day { background: var(--pass); } .dot.night { background: var(--papaya); } .dot.incident { background: var(--fail); }
.roster { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--black); border-radius: 10px; overflow: hidden; }
.roster > div { padding: 10px 12px 12px; border-right: 1px solid var(--deck); position: relative; }
.roster > div:last-child { border-right: 0; }
.roster .k { font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.roster .v { font-size: 17px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster .v.unset { color: var(--due); font-size: 14px; }
.roster > div.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--papaya); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.metric { background: var(--black); border: 1px solid var(--carbon); border-radius: 12px; padding: 12px; min-width: 0; }
.metric .k { font-size: 11px; letter-spacing: 1.8px; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric .v { font-size: 30px; font-weight: 700; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.metric .v small { font-size: 15px; color: var(--muted); font-weight: 400; }
.metric .s { font-size: 13px; color: var(--muted); }
.metric .v.pass { color: var(--pass); } .metric .v.due { color: var(--due); } .metric .v.fail { color: var(--fail); }
.track { height: 5px; background: var(--carbon); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.track > i { display: block; height: 100%; background: var(--papaya); border-radius: 3px; }
.alert { margin-top: 14px; border-radius: 10px; padding: 12px 14px; border: 1px solid var(--carbon); border-left: 5px solid var(--due); background: #241f17; }
.alert.crit { border-left-color: var(--fail); background: #2a1a1c; }
.alert .t { font-weight: 700; color: var(--due); }
.alert.crit .t { color: #FF8A8E; }
.alert .s { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------------- Module tiles ---------------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tile { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.tile-art {
  position: relative; aspect-ratio: 4 / 1; border-radius: 12px; overflow: hidden;
  border: 4px solid var(--frame, var(--carbon));
  background: var(--deck) center / cover no-repeat;
}
/* Placeholder until the illustration set is added: cabinet-tinted panel
   with a line icon. A real image (assets/tile-*.webp) covers it. */
.tile-art::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 140% at 85% 50%, color-mix(in srgb, var(--frame) 32%, transparent), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px);
}
.tile-art.has-img::before { display: none; }
.tile-art .glyph { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; opacity: .9; }
.tile-art.has-img .glyph { display: none; }
.tile-art .glyph svg { width: 100%; height: 100%; stroke: var(--frame); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; }
.tile-cap .n { font-size: 20px; font-weight: 700; }
.tile-cap .st { font-size: 14px; color: var(--muted); text-align: right; }
.tile-cap .st.live { color: var(--papaya); }
.tile.locked { opacity: .42; cursor: not-allowed; }

.ext { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ext .btn { font-size: 14px; padding: 12px 6px; text-align: center; }

/* ---------------- Cabinet hero ---------------- */
.hero { position: relative; margin-bottom: 4px; }
.hero .tile-art { aspect-ratio: 5 / 1; }
.hero .tile-art .glyph { display: none; }
.hero .hero-text {
  position: absolute; inset: 4px; display: flex; justify-content: space-between; align-items: flex-end;
  padding: 10px 14px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.08) 45%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.62));
}
.hero .hero-text .n { font-size: 24px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero .hero-text .c { font-size: 14px; color: var(--white); text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* ---------------- Fire cabinet ---------------- */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--deck); border: 1px solid var(--carbon); border-radius: 12px; padding: 6px; }
.seg button { border: 0; background: none; border-radius: 9px; padding: 9px 4px; text-align: center; }
.seg button .r { font-size: 16px; display: block; }
.seg button .p { font-size: 13px; color: var(--muted); display: block; margin-top: 1px; }
.seg button.done .r, .seg button.done .p { color: var(--pass); }
.seg button.active { background: var(--papaya); color: #000; }
.seg button.active .p { color: #000; font-weight: 700; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bcard {
  text-align: left; min-height: 96px; padding: 10px; border-radius: 10px;
  background: var(--deck); border: 1.5px solid var(--carbon);
  display: flex; flex-direction: column; justify-content: space-between;
}
.bcard .bn { font-weight: 700; font-size: 15px; line-height: 1.2; }
.bcard .bs { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.bcard .bs::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--carbon); flex: none; }
.bcard.pass { border-color: var(--pass); } .bcard.pass .bs { color: var(--pass); } .bcard.pass .bs::before { background: var(--pass); }
.bcard.fail { border-color: var(--fail); } .bcard.fail .bs { color: #FF8A8E; } .bcard.fail .bs::before { background: var(--fail); }
.bcard.next { border-color: var(--papaya); } .bcard.next .bs { color: var(--papaya); } .bcard.next .bs::before { background: var(--papaya); }
.rows { display: flex; flex-direction: column; gap: 8px; }
.rowbtn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 14px 16px; border-radius: 10px; border: 1px solid var(--carbon); background: var(--deck); text-align: left;
}
.rowbtn .t { font-size: 17px; }
.rowbtn .s { color: var(--muted); font-size: 14px; margin-left: 8px; }
.rowbtn .chev { color: var(--muted); }
.rowbtn.later { opacity: .45; cursor: default; }

/* ---------------- Modals ---------------- */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; background: var(--deck); border: 1px solid var(--carbon); border-radius: 14px; padding: 20px; }
.modal h2 { margin: 0 0 6px; font-size: 20px; }
.modal p { color: var(--muted); margin: 0 0 14px; }
.modal ul { padding-left: 20px; margin: 0 0 16px; }
.modal li { margin-bottom: 6px; }

/* ---------------- Toast ---------------- */
#toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 70; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px;
  background: var(--white); color: #000; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.5);
}

/* ---------------- Tablet / desktop ---------------- */
@media (min-width: 960px) {
  main.dash { max-width: 1240px; display: grid; grid-template-columns: minmax(380px, 1fr) 1.55fr; gap: 28px; align-items: start; }
  main.dash .tiles { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  main.dash .col-left .label:first-child { margin-top: 0; }
}

@media (max-width: 380px) {
  .clock { font-size: 44px; }
  .metric .v { font-size: 26px; }
  .bcard .bn { font-size: 14px; }
  .top { padding: 0 10px; gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
}

/* Terms text inside the modal */
.terms { max-height: 52vh; overflow-y: auto; border: 1px solid var(--carbon); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }
.terms h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.terms p, .terms li { color: var(--white); margin: 0 0 8px; }
.terms ul { padding-left: 18px; margin: 0 0 8px; }

/* ---------------- Waiting-to-send bar ---------------- */
.outbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px;
  background: #2a2412; border-bottom: 1px solid var(--due); color: var(--due); font-size: 14px; font-weight: 600; }
.outbox.err { background: #2a1a1c; border-color: var(--fail); color: #FF8A8E; }
.outbox button { flex: none; border: 1px solid currentColor; background: none; color: inherit; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; }

/* ---------------- Progress bar ---------------- */
.track.big { height: 10px; border-radius: 5px; margin: 14px 0 8px; }
.track.big > i { transition: width .25s ease; }
.pg-sub { font-size: 13px; min-height: 18px; }

/* ---------------- Checklist ---------------- */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.chip { text-align: left; padding: 10px 12px; border-radius: 10px; background: var(--deck); border: 1.5px solid var(--carbon); }
.chip b { display: block; font-size: 15px; }
.chip span { font-size: 12px; color: var(--muted); }
.chip.ok { border-color: var(--pass); } .chip.ok b, .chip.ok span { color: var(--pass); }
.chip.todo { border-color: var(--papaya); } .chip.todo b, .chip.todo span { color: var(--papaya); }
.chip.over { border-color: var(--due); } .chip.over b, .chip.over span { color: var(--due); }
.ccs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cc { background: var(--deck); border: 1px solid var(--carbon); border-radius: 12px; padding: 14px; }
.cc.is-fail { border-color: var(--fail); }
.cc-label { font-size: 16px; }
.cc-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pfn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pfn button { padding: 11px 4px; border-radius: 9px; border: 1px solid var(--carbon); background: var(--black); font-size: 16px; color: var(--muted); }
.pfn button.on.pass { background: #173a20; border-color: var(--pass); color: var(--pass); font-weight: 700; }
.pfn button.on.fail { background: #3a1a1c; border-color: var(--fail); color: #FF8A8E; font-weight: 700; }
.pfn button.on.na { background: var(--deck-2); border-color: var(--muted); color: var(--white); font-weight: 700; }
.cc-text { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; font: 16px var(--font); color: var(--white);
  background: var(--black); border: 1px solid var(--carbon); border-radius: 8px; resize: vertical; }
.cc-text:focus { border-color: var(--papaya); outline: none; }
.phs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ph { position: relative; width: 64px; height: 64px; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--carbon); }
.ph-x { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--fail); color: #fff; font-weight: 700; line-height: 24px; padding: 0; }
.ph-add { width: 64px; height: 64px; border-radius: 8px; border: 1.5px dashed var(--muted); background: none; font-size: 26px; color: var(--muted); }
.nopeople { color: #FF8A8E; font-size: 13px; font-weight: 600; }

/* ---------------- Scanner and override ---------------- */
.scan h2 { margin-bottom: 2px; }
.scan-view { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #000; margin: 10px 0 12px; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.brackets { position: absolute; inset: 22%; pointer-events: none;
  background:
    linear-gradient(var(--papaya), var(--papaya)) top left / 34px 4px no-repeat,
    linear-gradient(var(--papaya), var(--papaya)) top left / 4px 34px no-repeat,
    linear-gradient(var(--papaya), var(--papaya)) top right / 34px 4px no-repeat,
    linear-gradient(var(--papaya), var(--papaya)) top right / 4px 34px no-repeat,
    linear-gradient(var(--papaya), var(--papaya)) bottom left / 34px 4px no-repeat,
    linear-gradient(var(--papaya), var(--papaya)) bottom left / 4px 34px no-repeat,
    linear-gradient(var(--papaya), var(--papaya)) bottom right / 34px 4px no-repeat,
    linear-gradient(var(--papaya), var(--papaya)) bottom right / 4px 34px no-repeat; }
.scan-status { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; background: rgba(0,0,0,.6); text-align: center; font-size: 14px; }
.scan .btn { margin-bottom: 8px; }
.scan-note { font-size: 13px; }
.decl { font-size: 14px; line-height: 1.5; background: var(--black); border-left: 3px solid var(--papaya); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.modal select { width: 100%; padding: 12px; font: 16px var(--font); color: var(--white); background: var(--black); border: 1px solid var(--carbon); border-radius: 8px; }

/* ---------------- Draft line ---------------- */
.draft-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 10px 0 0; min-height: 20px; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 4px 0; }
.ph-wait { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--carbon); color: var(--muted); }

/* ---------------- DM rota ---------------- */
.weeksel { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px;
  background: var(--deck); border: 1px solid var(--carbon); border-radius: var(--radius); padding: 6px; }
.weeksel button { width: 44px; height: 40px; border-radius: 9px; border: 1px solid var(--carbon); background: var(--deck-2); font-size: 22px; line-height: 1; }
.weeksel .wl { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-today { display: block; margin: 0 auto 4px; }
.rgrid { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rr { display: grid; grid-template-columns: 54px repeat(3, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.rr.rh > div { font-size: 12px; letter-spacing: 1.5px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.rd { display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: var(--radius-sm);
  background: var(--deck); border: 1px solid var(--carbon); font-size: 13px; color: var(--muted); padding: 4px 0; }
.rd .dn { font-size: 17px; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.rr.today .rd { background: var(--papaya); border-color: var(--papaya); color: #000; }
.rr.today .rd .dn { color: #000; }
.rc { min-height: 50px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6px 5px; border-radius: var(--radius-sm); background: var(--deck); border: 1px solid var(--carbon);
  font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; font-family: inherit; }
.rc.unfilled { border: 1px dashed var(--due); color: var(--due); background: transparent; }
.rc.mine { border: 2px solid var(--papaya); color: var(--papaya); font-weight: 700; }
.rgrid.editing .rc { cursor: pointer; }
.rgrid.editing .rc { background: var(--deck-2); }
.rgrid.editing .rc.unfilled { background: transparent; }
.rr.past .rc, .rr.past .rd { opacity: .55; }
.rota-note { color: var(--muted); font-size: 13px; margin: 12px 0 14px; }
.picklist { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; margin-bottom: 14px; }
.pick { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-align: left; padding: 11px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--carbon); background: var(--deck-2); font-size: 16px; }
.pick .s { color: var(--muted); font-size: 13px; }
.pick.on { border-color: var(--papaya); }
@media (min-width: 600px) { .rr { grid-template-columns: 70px repeat(3, minmax(0, 1fr)); } .rc { font-size: 15px; } }
