:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface-soft: #edf3f6;
  --ink: #18222b;
  --muted: #61717d;
  --line: #d9e2e7;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --active: #16a34a;
  --standby: #eab308;
  --break: #2563eb;
  --sos: #dc2626;
  --shadow: 0 18px 40px rgba(24, 34, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.signin-page {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(245, 197, 66, 0.14)),
    var(--bg);
}

.signed-out .signin-page {
  display: grid;
}

.signed-out .shell {
  display: none;
}

.signin-card {
  display: grid;
  gap: 18px;
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.signin-brand {
  margin-bottom: 0;
}

.quick-users {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-users button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  font-weight: 900;
}

.quick-users button small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.text-link {
  justify-self: center;
  width: fit-content;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--ink);
}

.signed-in-chip {
  display: grid;
  gap: 2px;
  min-width: 128px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 800;
}

.signed-in-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-only {
  display: none !important;
}

.is-admin .admin-only {
  display: inline-flex !important;
}

.is-admin .panel-actions.admin-only {
  display: flex !important;
}

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

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 248px minmax(760px, 1fr) 390px;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #17262d;
  color: #f7fbfc;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #f5c542;
  color: #17262d;
  font-weight: 800;
}

.brand span,
.eyebrow,
.metric span,
.metric small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .brand span {
  color: #9fb2bc;
  display: block;
  margin-top: 3px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #cddbe0;
  text-decoration: none;
  font-weight: 700;
}

.nav-list a.active,
.nav-list a:hover {
  background: #253941;
  color: #ffffff;
}

.admin-panel {
  padding: 24px;
  overflow: auto;
}

.page-hidden {
  display: none !important;
}

.topbar,
.panel-head,
.mobile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 20px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 15px;
}

small,
button,
.pill,
.task-card,
.person-row,
.roster-cell,
.mobile-card,
.link-title {
  overflow-wrap: break-word;
  word-break: normal;
}

.task-row,
.asset-row,
.person-row,
.topbar,
.panel-head {
  flex-wrap: wrap;
}

.topbar-actions,
.legend,
.panel-actions,
.phone-head-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-btn,
.ghost-btn {
  min-width: fit-content;
}

.primary-btn,
.ghost-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.primary-btn {
  padding: 0 16px;
  background: var(--accent);
  color: #ffffff;
}

.primary-btn:hover {
  background: var(--accent-strong);
}

.ghost-btn {
  padding: 0 12px;
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--line);
}

.icon-btn {
  width: 40px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.icon-btn.small {
  width: 34px;
  min-height: 34px;
}

svg {
  width: 18px;
  height: 18px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric,
.panel,
.status-card,
.mobile-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  gap: 6px;
  padding: 18px;
  text-align: left;
}

button.metric {
  border-color: var(--line);
}

button.metric:hover {
  transform: translateY(-1px);
  border-color: #9ccbc5;
}

.metric strong {
  font-size: 30px;
}

.metric.alert strong {
  color: var(--sos);
}

.desktop-grid,
.management-grid,
.insight-grid {
  display: grid;
  gap: 14px;
}

.insight-grid {
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 0.75fr);
  margin-bottom: 14px;
}

.desktop-grid {
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.management-grid {
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 0.75fr);
  margin-bottom: 14px;
}

.panel {
  padding: 18px;
  min-width: 0;
}

.map-panel {
  min-height: 620px;
}

.dispatch-panel {
  min-height: 470px;
}

.legend {
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 999px;
}

.active {
  --marker-color: var(--active);
}

.standby {
  --marker-color: var(--standby);
}

.break {
  --marker-color: var(--break);
}

.sos {
  --marker-color: var(--sos);
}

.dot.active,
.marker.active {
  background: var(--active);
}

.dot.standby,
.marker.standby {
  background: var(--standby);
}

.dot.break,
.marker.break {
  background: var(--break);
}

.dot.sos,
.marker.sos {
  background: var(--sos);
}

.map-wrap {
  position: relative;
  height: 540px;
  margin-top: 16px;
  overflow: auto;
  border-radius: 8px;
  background: #dfe9e8;
  cursor: grab;
  overscroll-behavior: contain;
}

.map-wrap:active {
  cursor: grabbing;
}

.google-map,
.fallback-map,
.mini-map {
  position: absolute;
  inset: 0;
}

.fallback-map,
.mini-map {
  overflow: auto;
  overscroll-behavior: contain;
}

.map-canvas {
  position: relative;
  width: 138%;
  height: 138%;
  min-width: 760px;
  min-height: 560px;
}

.mini-map .map-canvas {
  width: 150%;
  height: 150%;
  min-width: 430px;
  min-height: 230px;
}

.map-base-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: saturate(0.8) contrast(1.02);
}

.fallback-map,
.mini-map {
  background:
    linear-gradient(32deg, rgba(15, 118, 110, 0.12) 0 14%, transparent 14% 100%),
    linear-gradient(155deg, transparent 0 34%, rgba(245, 197, 66, 0.22) 34% 38%, transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 3px, transparent 3px 80px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0 3px, transparent 3px 72px),
    #c9dcd9;
}

.route {
  position: absolute;
  z-index: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 38, 45, 0.24);
  transform-origin: left center;
}

.marker {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(24, 34, 43, 0.28);
}

.marker::after {
  content: attr(data-label);
  position: absolute;
  left: 30px;
  top: 4px;
  width: min(260px, 42vw);
  padding: 5px 8px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.3;
  box-shadow: 0 8px 18px rgba(24, 34, 43, 0.12);
}

.map-note {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-note span {
  color: var(--muted);
  font-size: 11px;
}

.map-search {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.management-search {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mobile-map-search {
  margin: 10px 0;
}

.task-list,
.asset-list,
.mobile-list,
.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.dispatch-panel .task-list {
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.notification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.notification-card,
.history-card,
.link-title {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.notification-card,
.history-card {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.history-card {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.undo-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 900;
}

.notification-card:hover,
.history-card:hover,
.link-title:hover strong,
.detail-list button:hover,
.roster-task-stack button:hover {
  color: var(--accent);
}

.notification-card span,
.history-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-card.alert {
  border-color: #fecaca;
  background: #fff5f5;
}

.notification-card.progress {
  border-color: #fde68a;
  background: #fff9db;
}

.notification-card.complete {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.history-list {
  max-height: 230px;
  overflow: auto;
  padding-right: 4px;
}

.task-card,
.asset-card,
.mobile-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.link-title {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
}

.task-card {
  display: grid;
  gap: 10px;
}

.expandable-card summary,
.mobile-detail-card summary,
.person-detail summary {
  cursor: pointer;
  list-style: none;
}

.expandable-card summary::-webkit-details-marker,
.mobile-detail-card summary::-webkit-details-marker,
.person-detail summary::-webkit-details-marker {
  display: none;
}

.task-row,
.asset-row,
.person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
  text-align: center;
}

.pill.progress {
  color: #925d00;
  background: #fff4c7;
}

.pill.complete {
  color: #166534;
  background: #dcfce7;
}

.pill.alert {
  color: #991b1b;
  background: #fee2e2;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ecef;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.data-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.person-row {
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.person-detail {
  min-width: 0;
}

.person-detail summary {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.person-detail small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.person-meta,
.asset-meta {
  display: grid;
  gap: 3px;
}

.person-meta small,
.asset-meta small,
.task-card small,
.mobile-card small {
  color: var(--muted);
  font-weight: 700;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions .icon-btn {
  width: 32px;
  min-height: 32px;
}

.row-actions .ghost-btn,
.row-actions .primary-btn {
  width: auto;
  min-width: max-content;
  min-height: 32px;
  padding: 0 10px;
}

.asset-card {
  display: grid;
  gap: 9px;
}

.roster-grid {
  display: grid;
  grid-template-columns: 180px repeat(7, minmax(130px, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.roster-panel {
  overflow: auto;
}

.roster-cell {
  min-height: 58px;
  padding: 10px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.roster-cell.head {
  background: #edf3f6;
  color: var(--muted);
}

.staff-cell {
  display: grid;
  gap: 3px;
}

.staff-cell small {
  color: var(--muted);
}

.roster-detail {
  border: 0;
}

.roster-detail summary {
  display: grid;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

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

.roster-detail[open] {
  min-height: 132px;
}

.roster-detail.has-duty {
  box-shadow: inset 4px 0 0 var(--accent);
}

.duty-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.duty-indicators b,
.duty-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.duty-indicators b:nth-child(1) {
  background: #dcfce7;
  color: #166534;
}

.duty-indicators b:nth-child(2) {
  background: #dbeafe;
  color: #1d4ed8;
}

.duty-indicators b:nth-child(3) {
  background: #fff4c7;
  color: #925d00;
}

.roster-task-stack,
.detail-list,
.detail-stack,
.detail-actions {
  display: grid;
  gap: 8px;
}

.detail-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roster-task-stack {
  margin-top: 9px;
}

.roster-task-stack button,
.detail-list button {
  min-width: 0;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: break-word;
  word-break: normal;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.segmented button,
.status-toggle button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button {
  padding: 0 12px;
}

.segmented button.active,
.status-toggle button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 5px 12px rgba(24, 34, 43, 0.08);
}

.staff-phone {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  place-items: center;
  padding: 24px;
  background: #e7eef1;
}

.phone-frame {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 342px);
  height: min(840px, calc(100vh - 48px));
  overflow: hidden;
  border: 10px solid #17262d;
  border-radius: 34px;
  background: #f5f8fa;
  box-shadow: 0 28px 60px rgba(24, 34, 43, 0.24);
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.phone-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sos-btn {
  width: 54px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--sos);
  color: #ffffff;
  font-weight: 900;
}

.phone-content {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 12px;
}

#mobileTasks,
#mobileEvents,
#mobileSchedule {
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.status-card,
.mobile-section {
  padding: 12px;
  box-shadow: none;
}

.status-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin: 9px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.wellbeing {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wellbeing select,
.field-input,
.field-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.wellbeing select,
.field-input {
  height: 38px;
  padding: 0 10px;
}

.multi-select {
  height: auto;
  min-height: 132px;
  padding: 8px;
}

.check-field {
  min-width: 0;
  padding: 0;
  border: 0;
}

.check-field legend {
  margin-bottom: 6px;
}

.checkbox-grid {
  display: grid;
  gap: 8px;
  max-height: 188px;
  overflow: auto;
  padding-right: 4px;
}

.check-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.check-card input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.check-card span {
  display: grid;
  gap: 2px;
}

.check-card small,
.detail-list small {
  color: var(--muted);
}

.select-all-btn {
  width: fit-content;
  min-height: 30px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.dispatch-divider {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.bulk-preview {
  max-height: 150px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: pre-wrap;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.field-textarea {
  min-height: 84px;
  padding: 10px;
  resize: vertical;
}

.mobile-card {
  display: grid;
  gap: 8px;
  background: #ffffff;
  min-width: 0;
}

.mobile-card summary,
.mobile-card strong,
.mobile-card small,
.link-title strong,
.link-title small {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.mobile-page-hidden {
  display: none !important;
}

.mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-actions button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}

.mobile-actions button.accept {
  color: #166534;
  background: #dcfce7;
}

.mobile-actions button.decline {
  color: #991b1b;
  background: #fee2e2;
}

.mini-map {
  position: relative;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
}

.mini-map .marker::after {
  display: none;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.bottom-nav button {
  display: grid;
  min-height: 58px;
  min-width: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.bottom-nav button span {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: center;
}

.bottom-nav button.active {
  color: var(--accent);
}

dialog {
  width: min(640px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(24, 34, 43, 0.28);
}

dialog::backdrop {
  background: rgba(23, 38, 45, 0.42);
}

.modal-card {
  padding: 18px;
}

.modal-body {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.modal-hint {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1280px) {
  .shell {
    grid-template-columns: 86px minmax(680px, 1fr) 360px;
  }

  .brand div:not(.brand-mark),
  .nav-list a {
    justify-content: center;
  }

  .nav-list a {
    font-size: 0;
  }
}

@media (max-width: 980px) {
  body {
    background: #f5f8fa;
  }

  .shell {
    display: block;
  }

  .sidebar,
  .admin-panel {
    display: none;
  }

  .staff-phone {
    position: static;
    height: auto;
    min-height: 100vh;
    padding: 0;
    background: #f5f8fa;
  }

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 380px) {
  .phone-content {
    padding: 10px;
  }

  .mobile-actions {
    grid-template-columns: 1fr;
  }
}
