:root {
  --canvas: #e8edf2;
  --surface: #fff;
  --ink: #20242a;
  --muted: #747b86;
  --line: #e7ebf0;
  --accent: #2f6fed;
  --accent-soft: #edf3ff;
  --review: #fff6e8;
  --shadow: 0 24px 70px rgba(48, 65, 85, .14);
  --rail: 192px;
}

* { box-sizing: border-box; }
html { font-family: Geist, "Avenir Next", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--canvas); }
body { min-width: 320px; margin: 0; padding: clamp(0px, 2.4vw, 30px); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; }
button:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid rgba(47, 111, 237, .25); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); width: min(1500px, 100%); min-height: calc(100dvh - clamp(0px, 4.8vw, 60px)); margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }

.rail {
  position: relative;
  z-index: 20;
  display: flex;
  width: auto;
  flex-direction: column;
  padding: 28px 16px 22px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  background-color: var(--accent);
  clip-path: polygon(8% 28%, 42% 28%, 42% 4%, 94% 50%, 58% 50%, 58% 92%);
}
.brand-mark::after { content: ""; position: absolute; inset: 8px 4px 4px 8px; background: #fff; clip-path: polygon(0 25%, 42% 25%, 42% 0, 100% 54%, 58% 54%, 58% 100%); opacity: .88; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 13px; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.nav { display: grid; gap: 6px; margin-top: 48px; }
.nav-item { position: relative; min-height: 43px; padding: 0 12px 0 42px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
.nav-item::before { content: ""; position: absolute; left: 15px; top: 50%; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 4px; transform: translateY(-50%); }
.nav-item:nth-child(3)::before { border-radius: 50%; }
.nav-item:nth-child(4)::before { width: 14px; height: 8px; border-radius: 8px; }
.nav-item:hover { background: #f5f7fa; color: var(--ink); }
.nav-item.active { background: var(--accent); color: #fff; box-shadow: 0 7px 18px rgba(47,111,237,.22); }
.rail-profile { display: flex; min-height: 58px; align-items: center; gap: 10px; margin-top: auto; padding: 8px; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.rail-profile > span:last-child { min-width: 0; }
.rail-profile strong, .rail-profile small { display: block; max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-profile strong { font-size: 12px; }
.rail-profile small { margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: capitalize; }

main { min-width: 0; min-height: 100%; padding: 0 28px 34px; background: #fcfdfe; }
.topbar { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(252,253,254,.96); }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.05; letter-spacing: -.03em; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.search input { width: min(390px, 34vw); height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 20px; outline: 0; background: #f7f9fb; color: var(--ink); }
.search input::placeholder { color: #8a9396; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 111, 237, .1); }
.icon-button, .close-button, .text-button { min-height: 44px; padding: 0 13px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.icon-button { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.text-button { color: var(--accent); }
.mobile-profile { display: none; width: 44px; height: 44px; padding: 3px; border-radius: 12px; background: var(--surface); }

.avatar-slot, .profile-avatar, .profile-photo, .mobile-profile > span { display: block; flex: 0 0 auto; overflow: hidden; border-radius: 12px; }
.avatar-slot { width: 38px; height: 38px; }
.profile-avatar { width: 44px; height: 44px; }
.profile-photo { width: 88px; height: 88px; }
.avatar, .avatar-fallback { width: 100%; height: 100%; }
.avatar { display: block; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }

.notice { display: none; gap: 7px; margin: 18px 0 0; padding: 12px 14px; border: 1px solid #e8dcc3; border-radius: 12px; background: var(--review); font-size: 12px; }
.notice.show { display: grid; }
.notice span { color: var(--muted); }
.view { display: none; padding-top: 20px; }
.view.active { display: block; }
.surface { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 5px 18px rgba(46, 60, 78, .035); }

.summary { overflow: hidden; }
.summary-head { display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 24px; }
.live-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.live-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
.summary h2 { max-width: 620px; margin: 10px 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 650; line-height: 1; letter-spacing: -.04em; }
.summary p, .section-head p, .directory-head p, .profile-editor > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.button { min-height: 44px; padding: 0 17px; border-radius: 12px; font-size: 12px; font-weight: 800; }
.primary-button { background: var(--accent); color: #fff; box-shadow: 0 7px 17px rgba(47,111,237,.18); }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat-strip > div { display: flex; min-height: 72px; flex-direction: column; justify-content: center; padding: 14px 22px; border-left: 1px solid var(--line); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip span { color: var(--muted); font-size: 11px; }
.stat-strip strong { margin-top: 3px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .65fr); gap: 16px; margin-top: 16px; }
.arrivals-panel { margin-top: 16px; padding: 20px; }
.arrivals-head { align-items: center; }
.period-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #f3f5f8; }
.period-tabs button { min-width: 68px; min-height: 36px; padding: 0 12px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; }
.period-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: 0 3px 10px rgba(41, 56, 75, .08); }
.arrivals-layout { display: grid; height: 500px; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.45fr); margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; }
.arrival-list-pane { display: grid; min-width: 0; min-height: 0; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--line); background: #f8fafc; }
.arrival-total { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 17px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.arrival-total > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.arrival-total > strong { grid-row: 1 / span 2; grid-column: 2; font-family: "Geist Mono", ui-monospace, monospace; font-size: 25px; font-weight: 600; }
.arrival-total > small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.arrival-list { min-height: 0; overflow: auto; padding: 10px; }
.arrival-row { display: grid; width: 100%; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 70px; margin-bottom: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; box-shadow: 0 3px 12px rgba(43, 58, 75, .035); }
.arrival-row:hover { border-color: #b8c9ea; box-shadow: 0 5px 16px rgba(47, 111, 237, .08); }
.arrival-row > span:nth-child(2) { min-width: 0; }
.arrival-row strong, .arrival-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrival-row strong { font-size: 11px; }
.arrival-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.arrival-row time { color: var(--muted); font-family: "Geist Mono", ui-monospace, monospace; font-size: 9px; }
.arrival-initials { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.arrival-empty { margin: 0; padding: 18px 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.arrival-map-pane { min-width: 0; min-height: 0; background: #fff; }
.arrivals-map { position: relative; width: 100%; height: 100%; min-height: 0; background: #eef1f5; }
.map-loading { position: absolute; z-index: 1000; inset: 50% auto auto 50%; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.9); color: var(--muted); font-size: 11px; transform: translate(-50%, -50%); }
.map-credit { margin: 9px 0 0; color: var(--muted); font-size: 9px; }
.map-credit a { color: inherit; }
.leaflet-container { background: #eef1f5; font-family: inherit; }
.leaflet-top.leaflet-right { top: 8px; right: 8px; }
.leaflet-control-zoom.leaflet-bar { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.leaflet-control-zoom.leaflet-bar a { display: grid; width: 34px; height: 34px; place-items: center; border-bottom-color: var(--line); background: #fff; color: var(--ink); font: 700 17px/1 Geist, sans-serif; }
.leaflet-control-zoom.leaflet-bar a:hover { background: #f7f9fb; }
.leaflet-popup-content-wrapper { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 10px 12px; font-size: 10px; }
.map-visitor-popup > strong { display: block; margin: 1px 0 7px; padding-right: 18px; font-size: 11px; }
.map-visitor-list { display: grid; max-height: 190px; overflow: auto; }
.map-visitor { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 10px; overflow: hidden; padding: 0 4px; border-top: 1px solid var(--line); background: #fff; color: var(--accent); font-size: 10px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.map-visitor::after { content: "›"; flex: 0 0 auto; font-size: 16px; line-height: 1; }
.map-visitor:hover, .map-visitor:focus-visible { background: var(--accent-soft); }
.arrival-marker-label { padding: 0; border: 0; background: transparent; box-shadow: none; color: #fff; font: 800 10px/1 "Geist Mono", ui-monospace, monospace; }
.arrival-marker-label::before { display: none; }
.recent-panel, .week-panel { min-height: 320px; padding: 22px; }
.section-head, .directory-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-head h2, .directory-head h2, .profile-editor h2 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.025em; }
.recent-list { margin-top: 18px; border-top: 1px solid var(--line); }
.recent-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--line); }
.recent-row button { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); font-size: 15px; }
.recent-row strong, .recent-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-row strong { font-size: 12px; }
.recent-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.recent-row time { color: var(--muted); font-size: 10px; }
.chart { display: flex; height: 120px; align-items: flex-end; gap: 7px; margin-top: 26px; }
.chart i { flex: 1; height: 100%; min-height: 7px; border-radius: 5px 5px 2px 2px; background: #edf1f1; transition: transform .2s ease, opacity .2s ease; transform: scaleY(.07); transform-origin: bottom; }
.chart i.on { background: var(--accent); }
.days { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-family: "Geist Mono", ui-monospace, monospace; font-size: 9px; }
.week-panel .section-head > strong { font-family: "Geist Mono", ui-monospace, monospace; font-size: 25px; }
.profile-summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-summary strong, .profile-summary small { display: block; }
.profile-summary strong { font-size: 12px; }
.profile-summary small { max-width: 210px; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }

.directory { min-height: 300px; overflow: hidden; }
.directory-head { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.filter-row { display: flex; gap: 5px; padding: 4px; border-radius: 10px; background: #f3f5f8; }
.filter { min-height: 36px; padding: 0 12px; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.filter.active { background: var(--surface); color: var(--ink); box-shadow: 0 3px 10px rgba(41, 56, 75, .08); }
.table-wrap { max-height: calc(100dvh - 210px); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; z-index: 2; top: 0; padding: 11px 18px; border-bottom: 1px solid var(--line); background: #f7f9fb; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { height: 60px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: middle; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: #f7faff; }
.visitor-cell strong, .visitor-cell small, .travel-cell span, .travel-cell small { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visitor-cell strong { font-size: 12px; }
.visitor-cell small, .travel-cell small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: capitalize; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #99a2a5; }
.status.ready { color: var(--accent); }
.status.ready::before { background: var(--accent); }
.status.review { color: #785f2c; }
.status.review::before { background: #b59451; }
.row-open { min-height: 36px; padding: 0 12px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; }
.loading { padding: 18px 24px; }
.skeleton-row { height: 48px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(221, 230, 232, .34), transparent); background-size: 220% 100%; animation: shimmer 1.5s ease infinite; }
.empty { display: none; max-width: 440px; padding: 28px 24px; }
.empty.show { display: grid; gap: 5px; }
.empty strong { font-size: 14px; }
.empty span { color: var(--muted); font-size: 11px; }
.empty-inline { margin: 0; padding: 24px 0; color: var(--muted); font-size: 11px; }

.profile-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(420px, 1.35fr); min-height: 440px; overflow: hidden; }
.profile-intro { display: flex; align-items: flex-start; gap: 18px; padding: 32px; border-right: 1px solid var(--line); }
.profile-intro h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.035em; }
.profile-intro > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.profile-editor { padding: 32px; }
.profile-editor > p { max-width: 620px; }
.dropzone { display: grid; min-height: 170px; place-content: center; gap: 4px; margin-top: 22px; border: 1px dashed #bdc9cc; border-radius: 14px; background: #fafcfc; text-align: center; }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone strong { font-size: 13px; }
.dropzone span { color: var(--muted); font-size: 11px; }
.profile-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.profile-actions > span { color: var(--muted); font-size: 11px; }

.drawer-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(23, 26, 27, .26); opacity: 0; transition: opacity .16s cubic-bezier(.2,.8,.2,1); }
.drawer-backdrop.open { opacity: 1; }
.details-drawer { position: fixed; z-index: 50; inset: 0 0 0 auto; display: flex; width: min(620px, 100%); flex-direction: column; border-left: 1px solid var(--line); background: var(--surface); box-shadow: -18px 0 48px rgba(37, 57, 61, .12); transform: translateX(100%); transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.details-drawer.open { transform: none; }
.drawer-head { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.035em; }
.drawer-head > div > span { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.close-button { border-radius: 10px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 24px 28px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 3px; }
.contact-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-size: 11px; font-weight: 800; text-decoration: none; }
.contact-action:first-child { border-color: var(--accent); background: var(--accent-soft); }
.contact-action:hover { border-color: #bdc9cc; }
.detail-group { padding: 23px 0; border-bottom: 1px solid var(--line); }
.detail-group h3 { margin: 0 0 15px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 24px; }
.detail-field.wide { grid-column: 1 / -1; }
.detail-field span, .detail-field strong { display: block; }
.detail-field span { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.detail-field strong { font-size: 12px; font-weight: 600; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.passport-value { font-family: "Geist Mono", ui-monospace, monospace; letter-spacing: .04em; }
.reveal-button { min-height: 36px; margin-top: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 10px; font-weight: 800; }
.drawer-actions { display: flex; min-height: 72px; align-items: center; gap: 9px; padding: 13px 24px; border-top: 1px solid var(--line); background: #fafcfc; }
.drawer-actions:empty { display: none; }
.secondary-button { border: 1px solid var(--line); background: var(--surface); }

.toast { position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: 360px; padding: 12px 15px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: transform .16s ease, opacity .16s ease; }
.toast.show { opacity: 1; transform: none; }

@keyframes pulse { 50% { opacity: .38; transform: scale(.82); } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

@media (max-width: 980px) {
  :root { --rail: 174px; }
  main { padding-right: 22px; padding-left: 22px; }
  .brand > span:last-child { display: none; }
  .brand { justify-content: center; }
  .overview-grid { grid-template-columns: 1fr; }
  .arrivals-layout { height: auto; grid-template-columns: 1fr; }
  .arrival-list-pane { max-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
  .arrival-map-pane { height: clamp(320px, 55vw, 430px); }
  .week-panel { min-height: 300px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-intro { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  :root {
    --rail: 0px;
    --mobile-surface: #e2eae8;
    --mobile-dark: #232021;
    --mobile-light: #f6fefc;
    --mobile-accent: linear-gradient(119deg, #f29b58 47%, #db90bd 77%);
  }
  html, body { background: var(--mobile-dark); }
  body { padding: 0; }
  .app-shell { display: block; min-height: 100dvh; overflow: visible; border: 0; border-radius: 0; background: var(--mobile-dark); box-shadow: none; }
  main { width: 100%; min-height: calc(100dvh - 92px); margin: 0; padding: 0 14px 112px; border-radius: 0 0 34px 34px; background: var(--mobile-surface); }
  .rail { position: fixed; z-index: 60; inset: auto 22px 18px; width: auto; height: 66px; padding: 5px; border: 0; border-radius: 999px; background: var(--mobile-dark); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
  .brand, .rail-profile { display: none; }
  .nav { display: grid; height: 100%; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 0; }
  .nav-item { width: min(56px, 100%); min-width: 0; min-height: 44px; aspect-ratio: 1; justify-self: center; overflow: hidden; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--mobile-light); font-size: 0; text-align: center; text-indent: -9999px; box-shadow: inset 0 0 5px rgba(255, 255, 255, .12); }
  .nav-item::before { display: block; top: 50%; left: 50%; width: 15px; height: 15px; border-color: currentColor; transform: translate(-50%, -50%); }
  .nav-item:nth-child(4)::before { width: 16px; height: 9px; }
  .nav-item.active { background: var(--mobile-accent); box-shadow: none; }
  .topbar { position: sticky; z-index: 15; top: 0; min-height: 84px; background: rgba(226, 234, 232, .88); backdrop-filter: blur(18px) saturate(110%); }
  .eyebrow { display: none; }
  .topbar h1 { font-size: 22px; font-weight: 650; }
  .top-actions { gap: 7px; }
  .search input { width: 55px; height: 55px; padding: 0 10px; border-color: rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(255, 255, 255, .24); color: transparent; box-shadow: inset 0 0 5px rgba(255, 255, 255, .28); }
  .search input::placeholder { color: transparent; }
  .search input:focus { position: absolute; right: 0; top: 0; width: min(74vw, 285px); border-radius: 28px; background: rgba(255, 255, 255, .94); color: var(--ink); }
  .search input:focus::placeholder { color: #8a9396; }
  .search { position: relative; }
  .search::after { content: "⌕"; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--ink); }
  .icon-button { display: none; }
  .mobile-profile { display: grid; width: 55px; height: 55px; place-items: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(255, 255, 255, .24); box-shadow: inset 0 0 5px rgba(255, 255, 255, .28); }
  .mobile-profile > span { width: 47px; height: 47px; border-radius: 50%; }
  .view { padding-top: 12px; }
  .surface { border-color: rgba(255, 255, 255, .62); border-radius: 30px; background: rgba(255, 255, 255, .72); box-shadow: none; }
  .summary-head { min-height: auto; align-items: stretch; flex-direction: column; padding: 24px 20px 18px; }
  .summary-head p, .arrivals-head p { display: none; }
  .summary h2 { margin-top: 14px; font-size: 27px; line-height: 1.06; }
  .summary-head .button { width: 100%; border-radius: 999px; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-top: 0; }
  .stat-strip > div { min-height: 82px; padding: 14px 15px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .82); }
  .stat-strip > div:nth-child(odd), .stat-strip > div:nth-child(-n+2) { border: 0; }
  .overview-grid { gap: 14px; margin-top: 14px; }
  .arrivals-panel { margin-top: 14px; padding: 0; border: 0; background: transparent; }
  .arrivals-head { align-items: stretch; flex-direction: column; padding: 8px 4px 0; }
  .arrivals-head h2 { font-size: 19px; }
  .period-tabs { width: 100%; border-radius: 999px; background: rgba(35, 32, 33, .08); }
  .period-tabs button { min-height: 44px; flex: 1; }
  .period-tabs button.active { border-radius: 999px; background: var(--mobile-dark); color: var(--mobile-light); box-shadow: none; }
  .arrivals-layout { margin-top: 12px; border: 0; border-radius: 32px; background: rgba(255, 255, 255, .74); }
  .arrival-list-pane { max-height: 300px; }
  .arrival-total { padding: 17px 18px; background: rgba(255, 255, 255, .82); }
  .arrival-list { padding: 8px; }
  .arrival-row { min-height: 76px; border-color: rgba(255, 255, 255, .72); border-radius: 24px; box-shadow: none; }
  .arrival-initials { border-radius: 50%; }
  .arrival-map-pane { height: 326px; }
  .leaflet-control-zoom.leaflet-bar { border: 0; border-radius: 22px; background: var(--mobile-dark); }
  .leaflet-control-zoom.leaflet-bar a { width: 42px; height: 42px; border-bottom-color: rgba(255, 255, 255, .12); background: var(--mobile-dark); color: var(--mobile-light); }
  .leaflet-popup-content-wrapper { border: 0; border-radius: 24px; box-shadow: 0 16px 36px rgba(35, 32, 33, .2); }
  .map-visitor { min-height: 44px; }
  .recent-panel, .week-panel { min-height: auto; padding: 22px 20px; }
  .directory-head { align-items: stretch; flex-direction: column; padding: 18px; }
  .filter-row { width: 100%; border-radius: 999px; }
  .filter { min-height: 44px; flex: 1; border-radius: 999px; }
  .filter.active { background: var(--mobile-dark); color: var(--mobile-light); }
  .table-wrap { max-height: none; overflow: visible; }
  table, tbody { display: block; }
  thead { display: none; }
  tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  td { display: block; height: auto; padding: 3px 0; border: 0; }
  td:nth-child(1) { grid-column: 1; }
  td:nth-child(2), td:nth-child(3), td:nth-child(4) { grid-column: 1; }
  td:nth-child(5) { grid-column: 2; grid-row: 1 / span 4; align-self: center; padding-left: 12px; }
  .travel-cell span, .travel-cell small { display: inline; }
  .travel-cell small::before { content: " · "; }
  .directory, .profile-layout { border-radius: 30px; }
  .profile-layout { min-height: auto; }
  .profile-intro, .profile-editor { padding: 22px; }
  .button, .contact-action, .reveal-button { min-height: 44px; border-radius: 999px; }
  .drawer-backdrop { background: rgba(35, 32, 33, .48); }
  .details-drawer { inset: 8px 8px 92px; width: auto; overflow: hidden; border: 0; border-radius: 30px; transform: translateY(calc(100% + 100px)); }
  .drawer-head { min-height: 88px; padding: 18px 20px; }
  .drawer-head h2 { font-size: 20px; }
  .drawer-body { padding: 4px 20px 24px; }
  .drawer-actions { min-height: 70px; padding: 12px 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-field.wide { grid-column: auto; }
  .toast { right: 22px; bottom: 100px; left: 22px; max-width: none; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
