:root {
  --bg: #f2f5f9;
  --surface: #ffffff;
  --ink: #212529;
  --muted: #5d6672;
  --line: rgba(10, 30, 61, 0.12);
  --navy: #0a1e3d;
  --navy-deep: #0a1e3d;
  --amber: #b9862f;
  --amber-soft: #faf1da;
  --green-soft: #e3f2e9;
  --green-line: #2e7d5e;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px rgba(10, 30, 61, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  margin: 0;
}

.page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ------------------------- masthead ------------------------- */

.masthead {
  background: var(--navy-deep);
  color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.masthead-brand {
  background: #ffffff;
  padding: 16px 32px;
}

.masthead-brand .logo-row {
  margin-bottom: 0;
}

.masthead-body {
  padding: 24px 32px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.masthead h1 {
  font-size: 1.9rem;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8b45f;
}

.masthead-sub {
  margin: 6px 0 0;
  color: #b8c2d4;
}

.doc-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.doc-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.logo-us {
  height: 54px;
  width: auto;
}

.logo-x {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.logo-uta {
  height: 44px;
  width: auto;
}

@media (max-width: 640px) {
  .logo-us {
    height: 44px;
  }

  .logo-uta {
    height: 30px;
  }
}

/* ------------------------- panels ------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-top: 22px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel h2 {
  font-size: 1.25rem;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
}

.toggle.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ------------------------- map ------------------------- */

#map {
  height: 440px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

@media (min-width: 1100px) {
  #map {
    height: 560px;
  }
}

.hall-label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
}

.map-square {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: "DM Sans", system-ui, sans-serif;
  box-shadow: 0 2px 6px rgba(13, 13, 13, 0.35);
}

.map-square-staging {
  background: var(--amber);
}

.map-square-dropoff {
  background: var(--navy);
}

.map-square-parking {
  background: #55606b;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 2px;
}

.line-arriving {
  background: var(--navy);
}

.line-traffic {
  background: #d0342c;
}

.line-parking {
  background: repeating-linear-gradient(90deg, var(--navy) 0 4px, transparent 4px 8px);
}

.line-dolly {
  background: repeating-linear-gradient(90deg, var(--amber) 0 4px, transparent 4px 8px);
}

.dot-hall {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--navy-deep);
}

.sq-staging {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--amber);
}

.sq-dropoff {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--navy);
}

.sq-parking {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #55606b;
}

/* map flow-line animation: dashes travel in the drawn direction */
.flow-dolly {
  animation: dashflow-dolly 1s linear infinite;
}

.flow-park {
  animation: dashflow-park 1.6s linear infinite;
}

@keyframes dashflow-dolly {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -20; }
}

@keyframes dashflow-park {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -28; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-dolly,
  .flow-park {
    animation: none;
  }
}

/* ------------------------- staging section ------------------------- */

.hour-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.play-btn {
  font: inherit;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 38px;
  height: 34px;
  cursor: pointer;
  color: var(--navy);
}

.hour-counter {
  margin: 4px 0 12px;
  color: var(--muted);
}

.hour-counter strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 6px 0 12px;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chip {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  background: #fff;
}

.chip-arriving {
  background: var(--amber-soft);
  border-color: var(--amber);
}

.chip-complete {
  background: var(--green-soft);
  border-color: var(--green-line);
}

.halls {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  align-items: flex-end;
}

.hall-col {
  flex: 1 1 160px;
  max-width: 225px;
}

.hall-zone {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 2px 0 0;
}

.panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.floor-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.floor {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: center;
  padding: 9px 6px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.4s, border-color 0.4s;
}

.floor-arriving {
  background: var(--amber-soft);
  border-color: var(--amber);
}

.floor-complete {
  background: var(--green-soft);
  border-color: var(--green-line);
  color: #3c5a3c;
}

.hall-name {
  text-align: center;
  font-weight: 600;
  margin: 12px 0 0;
}

/* ------------------------- misc ------------------------- */

.footnote {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 30px;
}

/* ------------------------- item-chain visual ------------------------- */

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  margin: 18px 0 10px;
}

.chain-step {
  flex: 1 1 130px;
  max-width: 185px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 8px;
  text-align: center;
}

.chain-step-final {
  background: var(--green-soft);
  border-color: var(--green-line);
}

.chain-ico {
  font-size: 1.7rem;
  line-height: 1;
}

.chain-step h4 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.84rem;
  margin: 8px 0 5px;
}

.chain-step p {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

.chain-arrow {
  align-self: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
}

.chain-return {
  border: 2px dashed var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a6414;
  padding: 8px 16px;
  margin: 0 auto 6px;
  max-width: 640px;
}

/* ------------------------- rate plan ------------------------- */

.rp-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.rp-ok {
  background: var(--green-soft);
  color: #3c6b3c;
}

.rp-tight {
  background: var(--amber-soft);
  color: #8a6414;
}

.rp-short {
  background: #f6dcd9;
  color: #a02c22;
}

.rp-building {
  display: none;
  margin-top: 14px;
}

.rp-building.is-active {
  display: block;
}

.rp-building h4 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  margin: 6px 0 10px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-deep);
  border-radius: 6px;
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.45;
}

.stat strong {
  display: block;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--navy-deep);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.rp-constraint {
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  font-size: 0.9rem;
}

@media print {
  .rp-building {
    display: block !important;
  }
}

/* Tracking tab: three phones in one row */
#tab-tracking .phones {
  flex-wrap: nowrap;
  gap: 12px;
}

#tab-tracking .phone-col {
  zoom: 1;
}

@media (max-width: 1100px) {
  #tab-tracking .phones {
    flex-wrap: wrap;
  }
}

.hall-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------- proposal tabs ------------------------- */

.ptab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ptab {
  display: none;
}

.ptab.is-active {
  display: block;
}

.ptab > h2:first-child {
  margin-top: 0;
}

@media print {
  .ptab {
    display: block !important;
  }

  .ptab-nav {
    display: none !important;
  }
}

/* ------------------------- plan document ------------------------- */

.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  margin-top: 22px;
  box-shadow: var(--shadow);
}

.doc h2 {
  font-size: 1.45rem;
  color: var(--navy-deep);
  margin: 30px 0 14px;
  padding-bottom: 10px;
  position: relative;
}

.doc h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: var(--amber);
}

.doc h2:first-child {
  margin-top: 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 0.92rem;
}

.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.doc th {
  background: #eef1f6;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.85rem;
}

.doc td.num,
.doc th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.open-items li {
  margin-bottom: 8px;
}

/* ------------------------- timeline day blocks ------------------------- */

.tl-days {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 16px;
}

.tl-day,
.block {
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}

.block {
  margin: 16px 0 20px;
}

.block > h3:first-child {
  margin-top: 0;
}

.block table {
  background: #ffffff;
}

.tl-day h3 {
  margin-top: 0 !important;
}

.tl-day .timeline {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .tl-days {
    grid-template-columns: 1fr;
  }
}

/* ------------------------- vertical timeline ------------------------- */

.timeline {
  position: relative;
  margin: 18px 0 26px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--navy), var(--amber));
}

.tl-item {
  position: relative;
  padding-bottom: 22px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface);
  border: 3.5px solid var(--navy);
  box-sizing: border-box;
}

.tl-item.tl-highlight::before {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.tl-time {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin: 0 0 2px;
}

.tl-item.tl-highlight .tl-time {
  color: var(--amber);
}

.tl-copy {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
}

.tl-copy strong {
  font-weight: 600;
}

.btn-link {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 20px;
}

.btn-link:hover {
  background: var(--accent-soft, #1a75ad);
}

.placeholder {
  border: 2px dashed var(--amber);
  border-radius: var(--radius-md);
  background: var(--amber-soft);
  padding: 4px 18px;
  color: var(--muted);
  margin: 12px 0 18px;
}

.doc h3 {
  font-size: 1.12rem;
  color: var(--navy);
  margin: 22px 0 10px;
}

.doc ol li,
.doc ul li {
  margin-bottom: 6px;
}

@media print {
  body {
    background: #fff;
  }

  .masthead,
  .doc,
  .panel {
    box-shadow: none;
  }

  .doc-link,
  .no-print {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .doc table,
  .panel table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .masthead-brand {
    padding: 14px 22px;
  }

  .masthead-body {
    padding: 20px 22px;
  }

  .panel {
    padding: 18px;
  }

  .doc {
    padding: 22px;
  }

  #map {
    height: 340px;
  }
}

/* ------------------------- phone mockups (tracking app) ------------------------- */

      /* ---------- concept page layout ---------- */
      .phones {
        display: flex;
        flex-wrap: wrap;
        gap: 34px;
        justify-content: center;
        align-items: flex-start;
        margin: 26px 0 8px;
      }

      .phone-col {
        max-width: 320px;
      }

      .phone-caption {
        text-align: center;
        font-size: 0.88rem;
        color: var(--muted);
        margin: 14px 8px 0;
      }

      .phone-caption strong {
        color: var(--ink);
      }

      /* ---------- iPhone frame ---------- */
      .iphone {
        width: 300px;
        height: 690px;
        margin: 0 auto;
        background: #f4f5f7;
        border: 11px solid #16181c;
        border-radius: 46px;
        box-shadow: 0 24px 55px rgba(13, 13, 13, 0.28);
        position: relative;
        overflow: hidden;
        font-family: -apple-system, "DM Sans", system-ui, sans-serif;
        display: flex;
        flex-direction: column;
      }

      .island {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 88px;
        height: 24px;
        border-radius: 14px;
        background: #16181c;
        z-index: 5;
      }

      .statusbar {
        display: flex;
        justify-content: space-between;
        padding: 12px 22px 4px;
        font-size: 0.72rem;
        font-weight: 600;
        color: #16181c;
      }

      /* ---------- app chrome ---------- */
      .app-head {
        background: var(--navy-deep);
        color: #ffffff;
        padding: 10px 14px 12px;
      }

      .app-brand {
        font-family: "Source Serif 4", Georgia, serif;
        font-weight: 700;
        font-size: 0.82rem;
        letter-spacing: 0.06em;
        color: #d8b45f;
        text-transform: uppercase;
      }

      .app-title {
        font-family: "Source Serif 4", Georgia, serif;
        font-weight: 700;
        font-size: 1.05rem;
        margin-top: 2px;
      }

      .app-sub {
        font-size: 0.72rem;
        color: #b8c2d4;
        margin-top: 1px;
      }

      .app-body {
        flex: 1;
        overflow: hidden;
        padding: 10px 10px 0;
      }

      .tabbar {
        display: flex;
        border-top: 1px solid #e2e2e6;
        background: #fbfbfd;
        padding: 8px 0 14px;
      }

      .tabbar span {
        flex: 1;
        text-align: center;
        font-size: 0.66rem;
        color: #8a8f98;
        font-weight: 600;
      }

      .tabbar span.on {
        color: var(--navy);
      }

      .tab-ico {
        display: block;
        font-size: 1.05rem;
        margin-bottom: 1px;
      }

      /* ---------- roster screen ---------- */
      .search {
        background: #e8e9ee;
        border-radius: 10px;
        padding: 7px 12px;
        font-size: 0.78rem;
        color: #8a8f98;
        margin-bottom: 8px;
      }

      .filters {
        display: flex;
        gap: 6px;
        margin-bottom: 10px;
      }

      .filters span {
        font-size: 0.66rem;
        font-weight: 600;
        padding: 4px 9px;
        border-radius: 999px;
        background: #e8e9ee;
        color: #5f646d;
      }

      .filters span.on {
        background: var(--navy);
        color: #fff;
      }

      .sec-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin: 10px 4px 5px;
      }

      .sec-name {
        font-family: "Source Serif 4", Georgia, serif;
        font-weight: 700;
        font-size: 0.8rem;
        color: var(--navy-deep);
      }

      .sec-count {
        font-size: 0.64rem;
        color: #8a8f98;
        font-weight: 600;
      }

      .stu {
        background: #fff;
        border-radius: 12px;
        padding: 7px 11px;
        margin-bottom: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 1px 2px rgba(13, 13, 13, 0.06);
      }

      .stu-name {
        font-size: 0.8rem;
        font-weight: 600;
        color: #16181c;
      }

      .stu-room {
        font-size: 0.66rem;
        color: #8a8f98;
        margin-top: 1px;
      }

      .chip-status {
        font-size: 0.6rem;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 999px;
        white-space: nowrap;
      }

      .st-pickup {
        background: #eceff2;
        color: #5f646d;
      }

      .st-bins {
        background: #e1ecf5;
        color: var(--navy);
      }

      .st-staging {
        background: var(--amber-soft);
        color: #8a6414;
      }

      .st-room {
        background: var(--green-soft);
        color: #3c6b3c;
      }

      /* ---------- student detail screen ---------- */
      .det-card {
        background: #fff;
        border-radius: 14px;
        padding: 12px 13px;
        margin-bottom: 8px;
        box-shadow: 0 1px 2px rgba(13, 13, 13, 0.06);
      }

      .det-name {
        font-family: "Source Serif 4", Georgia, serif;
        font-weight: 700;
        font-size: 1rem;
        color: #16181c;
      }

      .det-meta {
        font-size: 0.7rem;
        color: #8a8f98;
        margin-top: 2px;
      }

      .steps {
        position: relative;
        margin: 4px 0 2px;
        padding-left: 24px;
      }

      .steps::before {
        content: "";
        position: absolute;
        left: 7px;
        top: 8px;
        bottom: 14px;
        width: 2.5px;
        background: #e2e2e6;
        border-radius: 2px;
      }

      .step {
        position: relative;
        padding-bottom: 10px;
      }

      .step::before {
        content: "";
        position: absolute;
        left: -23px;
        top: 3px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid #c9ccd3;
        box-sizing: border-box;
      }

      .step.done::before {
        border-color: #3c6b3c;
        background: var(--green-soft);
      }

      .step.now::before {
        border-color: var(--amber);
        background: var(--amber-soft);
      }

      .step-name {
        font-size: 0.76rem;
        font-weight: 700;
        color: #16181c;
      }

      .step-info {
        font-size: 0.66rem;
        color: #8a8f98;
        margin-top: 1px;
      }

      .bin-pills {
        margin-top: 3px;
      }

      .bin-pills span {
        display: inline-block;
        font-size: 0.62rem;
        font-weight: 700;
        background: #e1ecf5;
        color: var(--navy);
        border-radius: 6px;
        padding: 2px 7px;
        margin-right: 4px;
      }

      .sms-sent {
        display: inline-block;
        font-size: 0.6rem;
        font-weight: 700;
        color: #3c6b3c;
        margin-top: 2px;
      }

      .btn-primary {
        display: block;
        text-align: center;
        background: var(--navy);
        color: #fff;
        font-weight: 700;
        font-size: 0.82rem;
        border-radius: 12px;
        padding: 11px 0;
        margin-bottom: 7px;
      }

      .btn-row {
        display: flex;
        gap: 7px;
      }

      .btn-half {
        flex: 1;
        text-align: center;
        font-weight: 700;
        font-size: 0.74rem;
        border-radius: 12px;
        padding: 9px 0;
      }

      .btn-sms {
        background: var(--green-soft);
        color: #3c6b3c;
        border: 1.5px solid #3c6b3c;
      }

      .btn-email {
        background: #fff;
        color: var(--navy);
        border: 1.5px solid var(--navy);
      }

      .auto-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 9px;
      }

      .auto-label {
        font-size: 0.7rem;
        font-weight: 600;
        color: #16181c;
      }

      .auto-note {
        font-size: 0.6rem;
        color: #8a8f98;
      }

      .toggle-pill {
        width: 40px;
        height: 24px;
        border-radius: 999px;
        background: #34c759;
        position: relative;
        flex-shrink: 0;
      }

      .toggle-pill::after {
        content: "";
        position: absolute;
        right: 2px;
        top: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
      }

      /* ---------- SMS screen ---------- */
      .sms-head {
        text-align: center;
        padding: 8px 0 6px;
        border-bottom: 1px solid #e2e2e6;
        background: #fbfbfd;
      }

      .sms-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--navy-deep);
        color: #d8b45f;
        font-family: "Source Serif 4", Georgia, serif;
        font-weight: 700;
        font-size: 0.72rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 3px;
      }

      .sms-from {
        font-size: 0.68rem;
        font-weight: 600;
        color: #16181c;
      }

      .sms-body {
        padding: 10px 12px;
      }

      .sms-time {
        text-align: center;
        font-size: 0.58rem;
        color: #8a8f98;
        margin: 8px 0 4px;
        font-weight: 600;
      }

      .bubble {
        max-width: 86%;
        background: #e9e9eb;
        color: #16181c;
        font-size: 0.72rem;
        line-height: 1.4;
        border-radius: 16px;
        border-bottom-left-radius: 5px;
        padding: 8px 11px;
        margin-bottom: 4px;
      }

      @media (max-width: 640px) {
        .phones {
          gap: 26px;
        }
      }
    
/* ------------------------- entry notice modal ------------------------- */

.notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 61, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.notice-overlay[hidden] {
  display: none;
}

.notice-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(10, 30, 61, 0.35);
  max-width: 520px;
  padding: 30px 34px;
  text-align: center;
}

.notice-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.notice-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.notice-card .btn-link {
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media print {
  .notice-overlay {
    display: none !important;
  }
}
