@font-face {
  font-family: "Medeo Sans";
  src: url("/fonts/MedeoSansVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --orange: #c46234;
  --purple: #5f5694;
  --nav: #564c88;
  --ink: #101828;
  --muted: #5c6778;
  --line: #dbe1e6;
  --paper: #f3f5f8;
  --card: #ffffff;
  --soft: #eef1f5;
  --ghost: #eceaf4;
  --ghost-line: #c9c4db;
  --bad: #b3261e;
  --good: #1b7a3d;
  --action: #5f5694;
}
html[data-theme="night"] {
  --orange: #d4a07c;
  --purple: #c9c0d8;
  --nav: #3c3458;
  --ink: #f4f6f8;
  --muted: #c5ccd6;
  --line: #6e7684;
  --paper: #3e4450;
  --card: #545c6a;
  --soft: #4b5260;
  --ghost: #6d7584;
  --ghost-line: #8a92a0;
  --bad: #ffb4ae;
  --good: #9ee0b4;
  --action: #6a6198;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Medeo Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--paper); color: var(--ink); font-size: 15px; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; appearance: none; -webkit-appearance: none; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; width: min(360px, 100%); }
.login h1 { margin: 0 0 16px; color: var(--ink); text-align: center; }
.login label { display: block; font-size: 14px; color: var(--muted); }
.login input { display: block; width: 100%; margin: 6px 0 14px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.login button { width: 100%; padding: 12px; font-weight: 700; color: #fff; background: var(--action); border: none; border-radius: 8px; }
.err { color: var(--bad); min-height: 1.3em; margin: 10px 0 0; }

.shell { display: flex; min-height: 100vh; align-items: stretch; }
.nav {
  width: 232px; flex: none; background: var(--nav); color: #fff;
  display: flex; flex-direction: column; gap: 8px; padding: 14px 10px;
  position: sticky; top: 0; height: 100vh;
}
.nav-top { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 8px; }
.nav-brand { font-weight: 750; font-size: 18px; margin-right: auto; }
.nav-top button, .nav nav button {
  display: flex; align-items: center; gap: 10px;
  color: #fff; background: transparent; border: none; border-radius: 8px;
}
.nav-top button { padding: 8px; margin-left: auto; }
.nav svg { width: 22px; height: 22px; flex: none; }
.nav-ico { position: relative; display: block; width: 22px; height: 22px; flex: none; }
.nav-ico svg { display: block; }
.nav-badge {
  position: absolute; top: -7px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #c46234; color: #fff;
  font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px var(--nav);
}
.nav nav { display: flex; flex-direction: column; gap: 4px; }
.nav nav button { width: 100%; text-align: left; padding: 10px 12px; font-weight: 650; }
.nav nav button.on, .nav nav button:hover { background: rgba(255,255,255,.16); }
.shell.nav-collapsed .nav { width: 72px; }
.shell.nav-collapsed .nav-brand,
.shell.nav-collapsed .nav nav button .nav-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.shell.nav-collapsed .nav nav button,
.shell.nav-collapsed .nav-top { justify-content: center; }
.shell.nav-collapsed .nav-top button svg { transform: scaleX(-1); }

.work { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font-size: 22px; color: var(--ink); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.switch-row {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: 14px; font-weight: 650; color: var(--muted); cursor: pointer;
}
.switch-row .ico { width: 18px; height: 18px; flex: none; color: var(--muted); }
html:not([data-theme="night"]) .ico-sun { color: var(--orange); }
html[data-theme="night"] .ico-moon { color: #c9c0d8; }
.switch-row input {
  appearance: none; width: 48px; height: 28px; margin: 0; padding: 0; flex: none; cursor: pointer;
  border-radius: 999px; background: var(--soft); border: 1px solid var(--line); position: relative;
}
.switch-row input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(16, 24, 40, .12);
  transition: transform .16s ease;
}
.switch-row input:checked { background: var(--nav); border-color: transparent; }
.switch-row input:checked::after { transform: translateX(20px); }
.switch-row input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ghost, .row-form button, .pane > button, #btn-on-map, .row-actions button, .row button, .person-actions button, .detail-bar button, #btn-copy, .links a, .zone-tools button {
  padding: 9px 14px; border: 1px solid var(--ghost-line); border-radius: 10px;
  background: var(--ghost); color: var(--ink); font-weight: 650;
}
.ghost:hover, .row-actions button:hover, .row button:hover, #btn-copy:hover, .links a:hover, .zone-tools button:hover {
  filter: brightness(0.97);
}
.row-form button, .pane > button, .row-actions button.primary, .modal-actions button.primary, .zone-tools button.primary, .detail-bar button.primary, .login button {
  background: var(--action); color: #fff; border-color: var(--action);
}
.row-form button:hover, .pane > button:hover, .row-actions button.primary:hover, .modal-actions button.primary:hover, .zone-tools button.primary:hover, .detail-bar button.primary:hover {
  filter: brightness(1.08);
}

.pane { padding: 16px 20px 40px; }
.filters, .row-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.field-ctl { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.field-ctl select, .date-btn {
  appearance: none; -webkit-appearance: none;
  min-width: 190px; height: 44px; padding: 0 36px 0 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background-color: var(--card); color: var(--ink); text-align: left; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
html[data-theme="night"] .field-ctl select, html[data-theme="night"] .date-btn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c5ccd6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.field-ctl select.is-empty, .date-btn.is-empty { color: var(--muted); }
.field-ctl select:focus, .date-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.date-field { position: relative; }
.cal {
  position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; width: 288px;
  padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-head b { font-size: 15px; color: var(--ink); }
.cal-head button, #cal-clear {
  width: 32px; height: 32px; border: none; border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 18px;
}
#cal-clear { width: 100%; height: 36px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--purple); }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-week span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-grid button {
  height: 34px; border: none; border-radius: 8px; background: transparent; color: var(--ink);
}
.cal-grid button.out { color: var(--muted); opacity: .4; }
.cal-grid button.today { box-shadow: inset 0 0 0 1px var(--purple); }
.cal-grid button.on { background: var(--orange); color: #fff; opacity: 1; }
.cal-grid button:hover { background: var(--soft); }
.cal-grid button.on:hover { background: var(--orange); }
.shift-group { margin: 4px 0 20px; min-width: 0; }
.shift-group h2 { margin: 0 0 10px; font-size: 18px; color: var(--ink); }
.shift-rail {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px;
}
.shift-rail::-webkit-scrollbar { height: 8px; }
.shift-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.shift-card {
  position: relative; flex: none; width: 240px; min-height: 240px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
}
.shift-card:hover { border-color: var(--purple); }
.shift-card .who { font-size: 17px; font-weight: 750; color: var(--ink); padding-right: 126px; }
.shift-card .task { color: var(--muted); font-size: 13px; }
.shift-status { position: absolute; top: 16px; right: 14px; max-width: 118px; text-align: right; font-size: 12px; font-weight: 750; line-height: 1.2; }
.shift-status.live { color: var(--good); }
.shift-status.wait { color: var(--orange); }
.shift-status.checked { color: var(--good); }
.detail-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-mark { color: var(--good); font-weight: 750; font-size: 14px; }
.modal-narrow { width: min(420px, 100%); }
.confirm-text { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.45; }
.shift-meta { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink); }
.shift-meta svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--purple); }
.row-form input, .row-form select, #invite-link {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink);
}
.row-form input[type="number"] { width: 110px; }
#invite-link { width: min(100%, 520px); }
#invite-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
button.row { cursor: pointer; }
button.row:hover { border-color: var(--purple); }
.row.static { cursor: default; }
.row b { color: var(--ink); font-size: 16px; }
.row span, .muted { color: var(--muted); }
.section-title { margin: 22px 0 10px; font-size: 13px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 750; color: var(--good);
  background: color-mix(in srgb, var(--good) 18%, var(--card)); border-radius: 999px; padding: 2px 8px;
}
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.task-card {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 12px 18px; align-items: center; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
}
.task-cell { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.task-cell .k { font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.task-cell .v { font-size: 16px; font-weight: 750; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card .row-actions { justify-self: end; }
.person {
  display: grid; grid-template-columns: 1fr auto; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.person-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 16px 18px; border: none; background: transparent; text-align: left; color: inherit;
}
.person-head b { color: var(--ink); font-size: 16px; }
.person-head span { color: var(--muted); }
.person-actions { padding: 14px 16px 14px 0; }
.person-body {
  grid-column: 1 / -1; display: grid; gap: 12px;
  padding: 0 18px 16px; border-top: 1px solid var(--line);
}
.person-body .k { font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.person-body .v { font-size: 16px; font-weight: 750; color: var(--ink); }
.person-tasks { display: flex; flex-direction: column; gap: 6px; }
.person-task { color: var(--ink); font-size: 15px; }
.row select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }

.stats-line { font-size: 16px; margin: 0 0 12px; }
#d-title { margin: 8px 0; }
.shift-stage {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "photo map"
    "info info"
    "count count"
    "gallery gallery";
  gap: 16px 18px;
  align-items: stretch;
}
.shift-stage .viewer-wrap { grid-area: photo; }
.shift-stage .map-slot { grid-area: map; }
.shift-stage #d-count { grid-area: count; }
.shift-stage .gallery { grid-area: gallery; }
.shift-stage .report-side { grid-area: info; }
#shift-detail.layout-stack .shift-stage {
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
  grid-template-areas:
    "map map"
    "photo info"
    "count count"
    "gallery gallery";
}
.map-slot {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-width: 0;
  height: min(48vh, 500px);
  background: var(--soft);
}
#shift-detail.layout-stack .map-slot { height: min(56vh, 560px); }
#map {
  width: 100%; height: 100%; margin: 0;
  background: var(--soft);
}
#map.map-yandex { border-radius: 0; }
.map-empty {
  position: absolute; inset: 0; margin: 0;
  display: grid; place-items: center; text-align: center; padding: 12px;
  border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); background: var(--card);
}
.map-layout-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink);
}
.map-layout-btn .ico-compress { display: none; }
#shift-detail.layout-stack .map-layout-btn .ico-expand { display: none; }
#shift-detail.layout-stack .map-layout-btn .ico-compress { display: block; }
.viewer-wrap { position: relative; min-width: 0; }
.viewer {
  width: 100%; height: min(48vh, 500px); min-height: 280px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #0d141b; cursor: zoom-in;
}
#shift-detail.layout-stack .viewer { height: min(52vh, 560px); }
.viewer img { width: 100%; height: 100%; object-fit: contain; display: block; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%;
  background: rgba(16, 24, 40, .55); color: #fff; font-size: 28px; line-height: 1; font-weight: 500;
}
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
.viewer-nav:hover { background: rgba(16, 24, 40, .78); }
.photo-pos {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2;
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 750;
  color: #fff; background: rgba(16, 24, 40, .5); pointer-events: none;
}
.report-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.photo-info { white-space: pre-line; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { text-decoration: none; }
.links a.off { opacity: .4; pointer-events: none; }
#btn-on-map:disabled { opacity: .4; }

.gallery { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.shot {
  flex: none; width: 168px; background: var(--card); border: 2px solid transparent; border-radius: 10px; padding: 6px; text-align: left; cursor: pointer;
}
.shot.on { border-color: var(--orange); }
.shot img { width: 100%; height: 168px; object-fit: contain; border-radius: 6px; background: var(--soft); display: block; }
.shot small { display: block; color: var(--bad); }
.photo-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange); border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}

.lightbox {
  position: fixed; inset: 0; z-index: 20; background: rgba(8, 12, 16, .88);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px;
}
.lightbox img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; }
.lightbox button { color: #fff; background: transparent; border: 1px solid #fff; border-radius: 8px; padding: 8px 14px; }

.modal-back {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(16, 24, 40, .52);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 28px 16px; overflow: auto;
}
.modal {
  width: min(560px, 100%); background: var(--card); color: var(--ink);
  border-radius: 20px; padding: 0; box-shadow: 0 24px 60px rgba(16, 24, 40, .28);
  display: flex; flex-direction: column; max-height: min(92vh, 920px);
}
.modal-wide { width: min(880px, 100%); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--line);
}
.modal h2 { margin: 0; color: var(--ink); font-size: 20px; }
.modal-x {
  width: 36px; height: 36px; border: none; border-radius: 10px;
  background: var(--ghost); color: var(--ink); font-size: 22px; line-height: 1;
}
.modal-body { padding: 18px 22px; overflow: auto; }
.modal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 8px;
}
.modal label, .field-label { display: block; margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.modal-grid label { margin: 0; }
.modal input, .modal textarea, .pick-btn {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit;
}
.pick { position: relative; }
.pick-btn {
  appearance: none; -webkit-appearance: none; text-align: left; cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
html[data-theme="night"] .pick-btn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c5ccd6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.pick-btn.is-empty { color: var(--muted); }
.pick.open .pick-btn { outline: 2px solid var(--action); outline-offset: 1px; }
.pick-sheet {
  position: fixed; z-index: 40;
  max-height: 260px; overflow: auto;
  padding: 6px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .22);
}
.pick-opt {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: none; border-radius: 10px;
  background: transparent; color: var(--ink); font: inherit; font-weight: 650;
}
.pick-opt:hover, .pick-opt.on { background: var(--ghost); }
.pick-empty { padding: 12px; color: var(--muted); font-size: 14px; }
.modal input:focus, .modal textarea:focus, .pick-btn:focus-visible {
  outline: 2px solid var(--action); outline-offset: 1px;
}
.modal-actions button {
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
}
.icon-btn {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ghost); border: 1px solid var(--ghost-line); color: var(--ink);
}
.icon-btn svg { width: 20px; height: 20px; }
.zone-tools .icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.checks label {
  display: flex; align-items: center; gap: 8px; margin: 0;
  padding: 8px 12px; border: 1px solid var(--ghost-line); border-radius: 999px;
  color: var(--ink); font-size: 14px; font-weight: 650; background: var(--ghost); cursor: pointer;
}
.checks label:has(input:checked) {
  background: var(--action); border-color: var(--action); color: #fff;
}
.checks input { width: auto; margin: 0; accent-color: var(--action); }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 22px 18px; border-top: 1px solid var(--line); background: var(--card);
  border-radius: 0 0 20px 20px;
}
.zone-box {
  margin-top: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
}
.zone-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.zone-head .field-label, .zone-head .muted { margin: 0; }
.zone-head .muted { margin-top: 4px; font-size: 13px; }
.zone-tools { display: flex; flex-wrap: wrap; gap: 8px; }
#zone-map { height: 340px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--card); }
.pane > button { margin-bottom: 16px; }

@media (max-width: 1100px) {
  .task-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task-card .row-actions { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 800px) {
  .shift-stage,
  #shift-detail.layout-stack .shift-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "map"
      "info"
      "count"
      "gallery";
  }
  .map-layout-btn { display: none; }
  .shift-stage .map-slot,
  #shift-detail.layout-stack .map-slot { height: min(42vh, 420px); }
  .nav { height: auto; position: sticky; }
  .modal-grid { grid-template-columns: 1fr; }
  .task-card { grid-template-columns: 1fr 1fr; }
}
