:root {
  font: 16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: #172337; background: #f5f7fb; color-scheme: light;
  --ink:#172337; --muted:#56667d; --line:#e2e8f1; --white:#fff;
  --blue:#1559d6; --blue-soft:#e9f0ff; --shadow:0 1px 2px #182e5207;
}
* { box-sizing:border-box }
[hidden] { display:none !important }
body { margin:0; min-width:280px }
button,input { font:inherit }
button,a { -webkit-tap-highlight-color:transparent }
button { cursor:pointer; color:inherit }
button:disabled { cursor:default; opacity:.55 }
button:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid #7ba7ff; outline-offset:3px }
a { color:var(--blue) }
h1,h2,h3,p { margin:0 }
svg { width:20px; height:20px; flex:none; vertical-align:middle }
.layout { display:grid; grid-template-columns:250px minmax(0,1fr); min-height:100dvh }
.sidebar { height:100dvh; position:sticky; top:0; display:flex; flex-direction:column; overflow:auto; padding:33px 19px 20px; border-right:1px solid var(--line); background:var(--white) }
.brand { display:flex; align-items:center; gap:11px; font-size:16px; font-weight:750; letter-spacing:-.24px }
.brand img { width:39px; height:39px; flex:none }
.sidebar .brand { padding:0 7px; margin-bottom:38px }
.brand small { display:block; color:var(--muted); font-size:12px; font-weight:500; letter-spacing:0; margin-top:1px }
.nav-item { display:flex; align-items:center; gap:11px; width:100%; min-height:45px; padding:8px 10px; border:0; border-radius:9px; background:transparent; text-align:left; font-size:13px; font-weight:620; margin-bottom:3px }
.nav-item svg { width:18px; height:18px }
.nav-item .nav-count { margin-left:auto; color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; font-weight:550 }
.nav-item:hover { background:#f3f6fb }
.nav-item[aria-current="page"] { background:var(--blue-soft); color:#104ab4 }
.nav-item[aria-current="page"] .nav-count { color:#104ab4 }
.sidebar-bottom { margin-top:auto; padding-top:15px }
.sidebar-bottom button { margin:0 }
.main { width:min(100%, 1070px); margin:0 auto; padding:50px 48px 70px }
.heading { display:flex; justify-content:space-between; gap:12px; align-items:flex-end; margin-bottom:25px }
.location { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; font-weight:650; margin-bottom:5px }
.location span { font-size:10px; padding:2px 5px; border-radius:4px; background:#e7edf6; color:#445674; font-weight:750; letter-spacing:.04em }
h1 { line-height:1.06; font-size:clamp(37px,5.5vw,52px); font-weight:760; letter-spacing:-.065em }
h2 { font-size:19px; font-weight:730; letter-spacing:-.025em }
.icon-button { border:1px solid var(--line); border-radius:10px; display:grid; place-items:center; width:44px; height:44px; background:var(--white); flex:none }
.icon-button:hover { background:#edf3ff }
.mobile-settings { display:none }
.searchbar { display:flex; align-items:center; height:51px; padding:0 13px; gap:10px; border:1px solid var(--line); border-radius:11px; background:var(--white); box-shadow:var(--shadow); margin-bottom:31px; color:var(--muted) }
.searchbar:focus-within { border-color:#77a5fe; box-shadow:0 0 0 2px #bed3ff }
.searchbar input { min-width:0; width:100%; height:100%; background:transparent; color:var(--ink); border:0; outline:none }
.searchbar input:focus-visible { outline:none }
.searchbar input::-webkit-search-cancel-button { display:none }
.searchbar button { width:36px; height:36px; border:0; border-radius:8px; background:transparent; color:var(--muted) }
.section-title { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:11px }
.section-title span { font-size:12px; color:var(--muted); text-align:right }
.quick { margin-bottom:31px }
.shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px }
.shortcut { display:flex; gap:10px; align-items:center; min-width:0; background:var(--white); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:10px; text-align:left; min-height:68px; padding:10px 12px }
.shortcut:hover,.row:hover { background:#f3f7ff }
.shortcut strong { font-size:13px; overflow-wrap:anywhere }
.glyph { width:39px; height:39px; border-radius:9px; display:grid; place-items:center; color:var(--blue); background:var(--blue-soft); flex:none }
.glyph svg { width:18px; height:18px }
.glyph.airline { background:#e9f0ff;color:#205ac5 }
.glyph.transport { background:#e4f5f0;color:#09745c }
.glyph.security { background:#f1eaff;color:#6343a8 }
.glyph.accessibility { background:#ffeedf;color:#a04b14 }
.glyph.airport { background:#e7f2fa;color:#216e9a }
.group { margin:0 0 18px }
.group-heading { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); padding:0 2px 7px; font-weight:680 }
.group-heading .glyph { display:none }
.group-list { border:1px solid var(--line); border-radius:11px; overflow:hidden; background:var(--white); box-shadow:var(--shadow) }
.row { border:0; border-top:1px solid var(--line); padding:9px 13px; background:var(--white); width:100%; display:flex; gap:12px; align-items:center; text-align:left; min-height:63px }
.row:first-child { border-top:0 }
.row:focus-visible { outline-offset:-4px }
.row-text { flex:1; min-width:0; overflow-wrap:anywhere }
.row strong { display:block; font-size:14px; font-weight:680 }
.row small { display:block; font-size:12px; color:var(--muted); margin-top:2px; font-variant-numeric:tabular-nums }
.row-action { color:var(--blue); margin-right:2px }
.row-action svg { width:18px; height:18px }
.empty { text-align:center; border:1px solid var(--line); background:var(--white); padding:55px 18px; border-radius:13px; box-shadow:var(--shadow) }
.empty p { max-width:315px; margin:7px auto 22px; color:var(--muted); font-size:14px }
.empty-icon,.access-icon { display:grid; place-items:center; margin:0 auto 14px; width:52px; height:52px; border-radius:13px; background:var(--blue-soft); color:var(--blue) }
.empty-icon svg,.access-icon svg { width:24px; height:24px }
.primary,.secondary { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:9px 15px; border:1px solid transparent; border-radius:9px; font-size:14px; font-weight:700; text-decoration:none }
.primary { background:var(--blue); color:white }
.primary:hover { background:#104ab4 }
.secondary { background:var(--white); border-color:var(--line); color:var(--blue) }
.secondary:hover { background:var(--blue-soft) }
.primary svg,.secondary svg { width:16px;height:16px }
dialog { color:var(--ink); width:min(calc(100% - 28px),450px); max-height:calc(100dvh - 28px); padding:18px; border:1px solid var(--line); border-radius:15px; box-shadow:0 22px 68px #17233733 }
dialog::backdrop { background:#14233b62 }
.dialog-header { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:14px }
.dialog-header h2 { font-size:22px }
.dialog-header button { width:39px; height:39px; background:#f3f6fb }
dialog[open] { overscroll-behavior:contain }
body:has(dialog[open]) { overflow:hidden }
.settings-row { display:flex; width:100%; align-items:center; gap:11px; min-height:63px; border:0; text-align:left; background:none; padding:8px 2px; border-top:1px solid var(--line) }
.settings-row:first-child { border-top:0 }
.settings-row strong { display:block; font-size:14px }
.settings-row small { display:block; color:var(--muted); font-size:12px; margin-top:2px }
.settings-text { flex:1 }
.switch { appearance:none; border:0; background:#c3ccdb; border-radius:99px; width:45px; height:27px; cursor:pointer; flex:none; position:relative }
.switch:checked { background:var(--blue) }
.switch::after { content:""; position:absolute; top:3px; left:3px; width:21px; height:21px; border-radius:50%; background:white; transition:transform .17s ease }
.switch:checked::after { transform:translateX(18px) }
.dial { text-align:center; padding:7px 0 12px }
.dial-number { font-size:clamp(23px,6.4vw,36px); font-weight:760; letter-spacing:-.045em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
.dial .quiet { margin:4px 0 10px }
.qr { display:grid; place-items:center; width:215px; height:215px; background:white; margin:12px auto 8px }
.qr canvas { width:100%; height:100%; max-width:215px; max-height:215px; image-rendering:pixelated }
.toast { position:fixed; z-index:5; inset:auto 12px max(18px,env(safe-area-inset-bottom)); margin:0 auto; width:max-content; max-width:min(440px,calc(100% - 24px)); padding:10px 15px; border-radius:9px; background:#172337; color:white; box-shadow:0 4px 18px #17233744; font-size:14px }
.quiet { font-size:14px; color:var(--muted) }
.access { min-height:100dvh; display:grid; justify-items:center; align-content:center; padding:24px 14px 46px; gap:22px }
.access-brand { font-size:17px }
.access-card { width:min(100%,465px); padding:28px 22px; background:white; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); text-align:center }
.access-card h1 { font-size:34px; letter-spacing:-.045em; margin:0 0 10px }
.access-card .quiet { margin:0 auto 13px; max-width:310px }
.access-card .qr { margin:2px auto; min-height:200px }
.access-actions { margin-top:14px; display:flex; gap:8px; flex-wrap:wrap; justify-content:center }
.access-status { color:var(--muted); font-size:13px; min-height:20px }
.code { margin:4px auto 8px; display:flex; justify-content:center; gap:5px; font-variant-numeric:tabular-nums }
.code span { width:32px; padding:3px; background:#f1f5fb; border-radius:6px; font-size:20px; font-weight:700 }
.approve-form { display:grid; gap:10px; margin:14px auto 8px; width:min(100%,270px) }
.approve-form input { text-align:center; min-height:44px; border:1px solid var(--line); border-radius:9px; letter-spacing:.18em; font-variant-numeric:tabular-nums; color:var(--ink); width:100% }
.error { color:#ac2639 }
@media(max-width:910px) {
  .layout { grid-template-columns:219px minmax(0,1fr) }
  .main { padding:41px 25px 56px }
  .shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (max-width: 767px), (max-width: 1000px) and (hover: none) and (pointer: coarse) {
  .layout { display:block }
  .sidebar { display:none }
  .main { padding:max(24px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(35px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)) }
  .heading { margin-bottom:18px }
  .mobile-settings { display:grid; margin-bottom:2px }
  .searchbar { margin-bottom:22px }
  .quick { margin-bottom:22px }
  .shortcuts { grid-template-columns:minmax(0,1fr); gap:6px }
  .shortcut { padding:7px 10px; gap:9px; min-height:48px }
  .shortcut .glyph { width:32px;height:32px }
  .shortcut .glyph svg { width:16px;height:16px }
  .group { margin-bottom:20px }
  .group-heading { font-size:14px; padding:0 2px 8px; color:var(--ink) }
  .group-heading .glyph { display:grid; width:30px; height:30px; border-radius:7px }
  .group-heading .glyph svg { width:16px; height:16px }
  .row { padding:9px 12px; min-height:54px }
  .row > .glyph { display:none }
  .access-card { padding:24px 15px }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important } }

.heading-actions { display:flex; align-items:center; gap:8px }
.new-contact { white-space:nowrap }
.new-contact svg { width:18px; height:18px }
.contact-row { display:flex; align-items:center; border-top:1px solid var(--line); padding-right:7px }
.contact-row:first-child { border-top:0 }
.contact-row .row { min-width:0; flex:1 }
.compact-action { width:40px; height:40px; color:var(--muted); border-color:transparent }
.compact-action svg { width:17px; height:17px }
.empty-section { color:var(--muted); padding:12px 14px; font-size:13px }
.editor,.section-editor { display:grid; gap:14px }
.field { display:grid; gap:5px; min-width:0; font-size:13px; font-weight:650 }
.field input,.field select { width:100%; min-width:0; height:42px; border:1px solid var(--line); border-radius:8px; background:var(--white); padding:7px 9px; color:var(--ink); font-size:16px; font-weight:400 }
.phone-fields { display:grid; min-width:0; border:1px solid var(--line); padding:9px; margin:0; border-radius:9px; gap:10px; justify-items:start }
.phone-fields legend { font-size:13px; font-weight:700; padding:0 4px }
.number-fields { display:grid; gap:10px; width:100% }
.number-fields:empty,.form-error:empty { display:none }
.number-editor { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) 35px; align-items:end; gap:6px }
.number-editor .compact-action { width:35px; height:42px }
.form-error { font-size:13px; color:#a12b40 }
.form-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap }
.editor .text-danger { margin-right:auto }
.text-danger { border:0; color:#a12b40; background:transparent; border-radius:8px; padding:7px; min-height:40px; font-size:13px; font-weight:650 }
.text-danger:hover { background:#fff0f2 }
.danger { font-size:14px; font-weight:700; color:white; background:#b42942; border:0; min-height:44px; border-radius:9px; padding:9px 14px }
.danger:hover { background:#952239 }
.confirm-panel { display:grid; gap:16px }
.section-editor > .secondary { justify-self:start }
.section-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px }
.section-form .primary { min-height:42px }
.section-list { list-style:none; padding:0; margin:0 }
.section-list li { display:flex; align-items:center; gap:9px; padding:8px 0; border-top:1px solid var(--line); font-size:14px }
.section-list strong { display:block; overflow-wrap:anywhere }
.section-list small { display:block; color:var(--muted); font-size:12px }
.number-picker { display:grid; gap:7px }
.number-choice { display:flex; align-items:center; text-align:left; padding:8px; gap:9px; border:1px solid var(--line); background:var(--white); border-radius:9px }
.number-choice:hover { background:#f3f7ff }
.dial-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px }
@media (max-width: 767px), (max-width: 1000px) and (hover: none) and (pointer: coarse) {
  .heading-actions { margin-bottom:2px }
  .heading-actions .mobile-settings { margin:0 }
  .contact-row .compact-action { width:39px; height:44px }
}
@media (max-width: 450px) {
  .new-contact { width:44px; padding:0 }
  .new-contact span { display:none }
}

.login-choices { display:grid; gap:9px; width:min(100%, 270px); margin:18px auto 0 }
.login-choices + .form-error:not(:empty) { margin:10px auto 0 }
.device-settings-form { display:grid; gap:11px }
.device-settings-form .primary { justify-self:start }
.device-settings-form input { letter-spacing:.15em; font-variant-numeric:tabular-nums }
.access-card:has(.login-choices) { border:0; box-shadow:none; background:transparent; padding:0 }
.login-choices { margin:0 auto }
