
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.portal-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}
.portal-link:hover, .portal-link:focus-visible { text-decoration: underline; }
@media (max-width: 520px) {
  #manage-access-link:not([hidden]) + .monitor-state { display: none; }
  #manage-access-link { padding-inline: 2px; }
}
.info-trigger {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  background: transparent;
}
.info-trigger span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .9rem;
  line-height: 1;
}
.info-trigger:hover, .info-trigger:focus-visible { color: var(--text); }
.info-dialog h3 { margin: 16px 0 6px; font-size: 1rem; }
.info-dialog p { margin: 0 0 14px; color: var(--muted); }
.info-dialog form { margin-top: 18px; }
.access-card {
  padding: 22px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.access-card p, .access-dialog p { line-height: 1.5; }
#access-card h2 { margin: 0; font-size: 1.2rem; }
#access-card > p { margin: 10px 0; }
.public-status-area { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.public-status h1 { font-size: clamp(1.35rem, 6vw, 2rem); }
.public-status.active { border-color: var(--accent); }
.locked-preview {
  position: relative;
  min-height: 112px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #171d26;
}
.locked-preview-map { min-height: 164px; }
.locked-content { position: absolute; inset: 0; padding: 14px; opacity: .58; }
.locked-content h3 { margin: 0 0 10px; color: #bec5cc; font-size: 1rem; }
.locked-placeholder {
  width: 100%;
  height: calc(100% - 28px);
  border-radius: 8px;
  background: repeating-linear-gradient(180deg, #2b3139 0 12px, #212731 12px 24px);
}
.locked-preview-map .locked-placeholder {
  background: repeating-linear-gradient(0deg, #363c43 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, #363c43 0 1px, #242932 1px 24px);
}
.locked-overlay {
  position: absolute;
  inset: 35px 12px 10px;
  display: grid;
  place-items: center;
  text-align: center;
}
.locked-overlay button, .locked-overlay span {
  width: auto;
  max-width: 100%;
  padding: 8px 12px;
  background: #131b26;
  color: var(--text);
  border: 1px solid #6c798a;
  border-radius: 8px;
  font-size: .9rem;
}
.locked-overlay button:hover, .locked-overlay button:focus-visible { border-color: var(--accent); }
.access-dialog {
  width: min(420px, calc(100% - 30px));
  padding: 22px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.access-dialog::backdrop { background: rgba(2, 7, 14, .75); }
.access-dialog h2, .owner-group h2 { margin: 0 0 10px; font-size: 1.15rem; }
.access-dialog label, .access-card label { display: block; margin: 12px 0 6px; }
.access-dialog input, .access-dialog textarea, .access-card input {
  width: 100%;
  padding: 10px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #486078;
  border-radius: 8px;
  font: inherit;
}
.access-dialog textarea { resize: vertical; }
.access-card form button, #owner-login button, .install-action { margin-top: 12px; }
.owner-toolbar { display: flex; gap: 8px; margin-top: 12px; }
.owner-toolbar button { width: auto; }
.owner-group { margin-top: 22px; }
.owner-group article { margin-bottom: 8px; overflow-wrap: anywhere; }
.owner-group article p { margin: 8px 0; }
.owner-group summary { color: var(--muted); font-size: .9rem; cursor: pointer; }
.owner-note { white-space: pre-wrap; }
:root{color-scheme:dark;--bg:#08111f;--card:#101d2f;--line:#26364b;--text:#f4f7fb;--muted:#98a8bb;--accent:#ff9b52;--green:#5ee0a0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}
*{box-sizing:border-box}[hidden]{display:none!important}html{background:var(--bg)}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text)}button,input{font:inherit}.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;max-width:660px;margin:auto;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.08)}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-weight:750;letter-spacing:-.02em}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border:1px solid rgba(255,155,82,.45);border-radius:9px;color:#ffc07c;font-size:.72rem;letter-spacing:.08em}.monitor-state{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.82rem}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--green)}main{max-width:660px;margin:auto;padding:28px 20px 32px}.status-card,.live-map-card,.activity-card,.alerts-card,.history-card{border:1px solid var(--line);border-radius:18px;background:var(--card)}.status-card{min-height:300px;padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.status-card.active{border-color:rgba(255,155,82,.7);background:#1a1b25}.status-meta{width:100%;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:.78rem;margin-bottom:auto}.status-icon{display:grid;place-items:center;width:58px;height:58px;margin:32px 0 18px;border-radius:50%;background:rgba(94,224,160,.1);color:var(--green);font-size:1.7rem}.active .status-icon{background:rgba(255,155,82,.12);color:var(--accent)}h1{margin:0;font-size:clamp(1.8rem,8vw,2.45rem);letter-spacing:-.045em}#status-detail{margin:9px 0 24px;color:var(--muted);line-height:1.5}.aircraft-list{width:100%}.aircraft-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-top:1px solid rgba(255,255,255,.08);text-align:left}.aircraft-item span{display:block;color:var(--muted);font-size:.82rem;margin-top:3px}.aircraft-state{color:var(--accent)!important;white-space:nowrap}.live-map-card,.activity-card,.alerts-card{margin-top:14px;padding:18px}.map-heading,.activity-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.map-heading h2,.activity-heading h2{margin:0;font-size:1.05rem}.map-heading p,.activity-heading p{margin:4px 0 0;color:var(--muted);font-size:.8rem}.trail-key{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.72rem;white-space:nowrap}.trail-key i{display:block;width:34px;height:3px;border-radius:3px;background:linear-gradient(90deg,rgba(255,155,82,.12),var(--accent))}.live-map{height:360px;border-radius:12px;overflow:hidden;background:#0a1421}.map-lock{display:grid;place-items:center;min-height:130px;padding:24px;border:1px dashed #3a4d64;border-radius:12px;text-align:center;color:var(--muted);line-height:1.5}.map-legend{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.map-legend-item{display:flex;align-items:center;gap:7px;color:#c8d3df;font-size:.78rem}.map-legend-item i{width:8px;height:8px;border-radius:50%}.map-updated{margin:9px 0 0;color:var(--muted);font-size:.72rem}.aircraft-marker-shell{background:transparent;border:0}.aircraft-map-marker{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#0b1727;border:2px solid var(--marker-color);box-shadow:0 4px 16px rgba(0,0,0,.45)}.aircraft-map-marker.stale{opacity:.58;filter:saturate(.5)}.aircraft-map-marker span{display:block;color:var(--marker-color);font-size:20px;line-height:1;transform:rotate(var(--heading));transform-origin:center}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:9px!important}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#101d2f;color:#f4f7fb}.leaflet-popup-content{line-height:1.5}.activity-grid{display:grid;gap:8px}.activity-row{padding:13px;border:1px solid #2c4057;border-radius:11px;background:#0b1727}.activity-title{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.activity-title strong{font-size:.92rem}.activity-title span{color:var(--muted);font-size:.76rem}.activity-primary{margin:7px 0 0;color:#dce5ef;font-size:.82rem}.activity-metrics{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:7px;color:var(--muted);font-size:.75rem}.activity-regions{margin:7px 0 0;color:#8298ae;font-size:.72rem;line-height:1.45}.activity-note{margin:10px 0 0;color:#73879c;font-size:.72rem;line-height:1.45}.alerts-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.alerts-heading h2{margin:0;font-size:1.05rem}.alerts-heading p{margin:4px 0 0;color:var(--muted);font-size:.82rem}.pill{border:1px solid #40516a;border-radius:999px;padding:5px 9px;color:var(--muted);font-size:.8rem}.pill.on{color:var(--green);border-color:rgba(94,224,160,.4);background:rgba(94,224,160,.08)}.access-field{margin-top:18px}.access-field[hidden]{display:none}.access-field label{display:block;color:var(--muted);font-size:.82rem;margin-bottom:7px}.access-field input{width:100%;border:1px solid #33475e;border-radius:11px;background:#091423;color:var(--text);padding:12px}.preferences{margin-top:20px;border-top:1px solid rgba(255,255,255,.08)}.preference-group{border:0;margin:0;padding:20px 0 0}.preference-group+ .preference-group{margin-top:20px;border-top:1px solid rgba(255,255,255,.08)}.preference-group legend{padding:0;font-size:.96rem;font-weight:730}.preference-help{margin:7px 0 12px;color:var(--muted);font-size:.8rem;line-height:1.5}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.check-row{display:flex;align-items:flex-start;gap:9px;min-height:40px;padding:10px;border:1px solid #2c4057;border-radius:10px;background:#0b1727;color:#dce5ef;font-size:.88rem;line-height:1.25;cursor:pointer}.check-row:has(input:checked){border-color:rgba(255,155,82,.48);background:rgba(255,155,82,.07)}.check-row input{width:17px;height:17px;margin:0;accent-color:var(--accent);flex:0 0 auto}.check-row.wide,.all-row{grid-column:1/-1}.all-row{margin-bottom:8px;font-weight:700}.area-map{display:block;width:100%;max-height:330px;margin:3px auto 13px}.map-region{cursor:pointer;outline:none}.map-region path{fill:#17283d;stroke:#486078;stroke-width:2;transition:fill .15s,stroke .15s}.map-region text{fill:#9aacbe;font-size:14px;font-weight:750;text-anchor:middle;pointer-events:none}.map-region.selected path{fill:rgba(255,155,82,.72);stroke:#ffb275}.map-region.selected text{fill:#17100b}.map-region:focus-visible path{stroke:#fff;stroke-width:4}.cbd-dot{fill:#f4f7fb;pointer-events:none}.cbd-label{fill:#f4f7fb;font-size:11px;font-weight:700;pointer-events:none}.actions{display:grid;gap:9px;margin-top:16px}button{width:100%;border:0;border-radius:11px;padding:12px 16px;font-weight:740;cursor:pointer}.primary{background:var(--accent);color:#1b120d}.secondary{background:#17283d;color:var(--text);border:1px solid #33465e}.setup-message{min-height:18px;margin:12px 0 0;font-size:.82rem;color:#ffc07c}.ios-note{margin:8px 0 0;color:#73879c;font-size:.76rem;line-height:1.45}.history-card{margin-top:14px;padding:0 20px}.history-card summary{padding:17px 0;cursor:pointer;font-weight:650}.history{padding-bottom:12px}.history-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px 0;border-top:1px solid rgba(255,255,255,.07)}.history-row span,.muted{color:var(--muted);font-size:.8rem}footer{text-align:center;padding:8px 20px 28px;color:#61758b;font-size:.72rem}footer a{color:#8298ae}@media(max-width:520px){main{padding:18px 14px 26px}.topbar{padding:0 15px}.status-card{min-height:280px;padding:18px}.status-meta{font-size:.72rem}.history-row{grid-template-columns:1fr}.monitor-state span:last-child{display:none}.check-grid{grid-template-columns:1fr}.check-row.wide,.all-row{grid-column:auto}.area-map{max-height:285px}.live-map-card,.activity-card{padding:14px}.live-map{height:330px}}
