/* WorldView UI. Built from the Panel Theme Design Guide ("Airy"): flat surfaces, hairlines, one soft blue accent.
   Every colour comes from a --a-* variable; there are no hard-coded colours in components. */

@font-face { font-family: 'InterVariable'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/s/fonts/inter-latin-ext.woff2') format('woff2-variations'), url('/s/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'InterVariable'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/s/fonts/inter-latin.woff2') format('woff2-variations'), url('/s/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, :root[data-theme="dark"] {
  --a-bg: #0f1115; --a-side: #121419; --a-surface: #161920; --a-raised: #1d2129;
  --a-line: rgba(255,255,255,.07); --a-line-2: rgba(255,255,255,.12); --a-hover: rgba(255,255,255,.04);
  --a-text: #e8ebf0; --a-muted: #9aa2b0; --a-faint: #7c8493;
  --a-accent: #7aa2ff; --a-accent-strong: #93b4ff; --a-accent-soft: rgba(122,162,255,.09); --a-glow: 0 0 0 1px rgba(122,162,255,.20), 0 0 22px -2px rgba(122,162,255,.34); --a-glow-bg: rgba(122,162,255,.12);
  --a-accent-ring: rgba(122,162,255,.18); --a-on-accent: #0b1020;
  --a-ok: #5fd39b; --a-ok-soft: rgba(95,211,155,.12);
  --a-warn: #f0b45a; --a-warn-soft: rgba(240,180,90,.12);
  --a-bad: #f08080; --a-bad-soft: rgba(240,128,128,.12);
  --a-shadow-pop: 0 16px 48px rgba(0,0,0,.45); --a-scrim: rgba(6,8,12,.6);
  --a-card-shadow: 0 24px 64px rgba(0,0,0,.28);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --a-bg: #f6f7f9; --a-side: #fbfbfc; --a-surface: #ffffff; --a-raised: #f1f3f6;
  --a-line: #e6e8ed; --a-line-2: #d9dde4; --a-hover: rgba(15,23,42,.04);
  --a-text: #16191f; --a-muted: #596170; --a-faint: #6b7280;
  --a-accent: #2f62e0; --a-accent-strong: #2552c4; --a-accent-soft: rgba(47,98,224,.07); --a-glow: 0 0 0 1px rgba(47,98,224,.18), 0 0 18px -3px rgba(47,98,224,.28); --a-glow-bg: rgba(47,98,224,.09);
  --a-accent-ring: rgba(47,98,224,.16); --a-on-accent: #ffffff;
  --a-ok: #15804f; --a-ok-soft: rgba(21,128,79,.09);
  --a-warn: #a8670f; --a-warn-soft: rgba(168,103,15,.1);
  --a-bad: #c93c3c; --a-bad-soft: rgba(201,60,60,.08);
  --a-shadow-pop: 0 16px 48px rgba(22,30,50,.14); --a-scrim: rgba(22,25,31,.35);
  --a-card-shadow: 0 24px 64px rgba(22,30,50,.08);
  color-scheme: light;
}
html, body { background: var(--a-bg); color: var(--a-text); }
/* photo behind everything: blurred, then dimmed with the page colour so text stays readable */
html.has-bg, html.has-bg body { background: transparent; }
html.has-bg { background: var(--a-bg); }
html.has-bg body::before { content: ''; position: fixed; inset: -60px; z-index: -2; background: var(--bg-img) center / cover no-repeat; filter: blur(calc(var(--bg-blur, 14) * 1px)); }
html.has-bg body::after { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--a-bg); opacity: calc(var(--bg-dim, 72) / 100); }
html.has-bg .viewer .pane { background: var(--a-bg); }
::selection { background: var(--a-accent-ring); }
* { scrollbar-width: thin; scrollbar-color: var(--a-line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--a-line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

* { box-sizing: border-box; }
html { font-size: 106.25%; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'InterVariable', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
b, strong { font-weight: 600; }
code, kbd, .mono, pre { font-family: ui-monospace, 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace; font-size: .92em; }
code { background: var(--a-raised); border: 1px solid var(--a-line); border-radius: 6px; padding: 1px 6px; }
a { color: var(--a-accent); text-decoration: none; }
a:hover { color: var(--a-accent-strong); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }
p { margin: 0; }
.card h2, .dialog h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.muted { color: var(--a-muted); }
.faint { color: var(--a-faint); }
.small { font-size: 13.5px; }
.hidden, [hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.boot { padding: 40px; color: var(--a-faint); }
:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

/* ------------------------------------------------------------------ controls */
button, .btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 0 14px;
  background: transparent; color: var(--a-text); border: 1px solid var(--a-line-2); border-radius: 8px;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
button:hover, .btn:hover { background: var(--a-hover); border-color: var(--a-faint); color: var(--a-text); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
button.small, .btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
button.primary, .btn.primary { background: var(--a-accent); border-color: var(--a-accent); color: var(--a-on-accent); }
button.primary:hover, .btn.primary:hover { background: var(--a-accent-strong); border-color: var(--a-accent-strong); color: var(--a-on-accent); }
button.ok { color: var(--a-ok); }
button.ok:hover { border-color: var(--a-ok); background: var(--a-ok-soft); }
button.danger { color: var(--a-bad); }
button.danger:hover { border-color: var(--a-bad); background: var(--a-bad-soft); color: var(--a-bad); }
button.solid-bad { background: var(--a-bad); border-color: var(--a-bad); color: var(--a-on-accent); }
button.ghost, .btn.ghost { border-color: transparent; color: var(--a-faint); }
button.ghost:hover, .btn.ghost:hover { color: var(--a-text); background: var(--a-hover); border-color: transparent; }
button.icon { width: 32px; padding: 0; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
button .ico, .btn .ico { width: 14px; height: 14px; }

label { display: block; font-size: 13.5px; font-weight: 500; color: var(--a-muted); margin-bottom: 6px; }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=email], select, textarea {
  width: 100%; min-height: 34px; padding: 0 12px; background: transparent; color: var(--a-text); border: 1px solid var(--a-line-2); border-radius: 8px;
  font: inherit; font-size: 14px; outline: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--a-faint); }
input:hover, select:hover, textarea:hover { border-color: var(--a-faint); }
input:focus, select:focus, textarea:focus { border-color: var(--a-accent); box-shadow: 0 0 0 3px var(--a-accent-ring); }
select option { background: var(--a-surface); color: var(--a-text); }
input[type=checkbox], input[type=radio] { accent-color: var(--a-accent); }
input:-webkit-autofill { -webkit-text-fill-color: var(--a-text); box-shadow: 0 0 0 1000px var(--a-bg) inset; caret-color: var(--a-text); }
input[readonly] { color: var(--a-muted); }
input[type=file] { display: none; }
.mini { width: 76px !important; min-height: 30px !important; display: inline-block; }
select.inline { width: auto; min-height: 32px; font-size: 13px; padding-right: 8px; }

.card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; padding: 16px; }
a.card:hover, .card.click:hover { border-color: var(--a-line-2); }
.card.tight { padding: 8px 16px; }
.card h2 + p, .card h2 + .muted { margin-top: 6px; }
.sec { background: var(--a-raised); border: 1px solid var(--a-line); border-radius: 10px; padding: 12px; }
.sec h3, h3.group { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--a-faint); }
.sec h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.sec h3 .ico { width: 14px; height: 14px; }
.empty { padding: 40px 16px; text-align: center; color: var(--a-muted); }
.empty .ico { width: 28px; height: 28px; color: var(--a-faint); margin-bottom: 10px; display: block; margin-inline: auto; }
.empty h2 { color: var(--a-text); margin-bottom: 6px; }

.pill, .badge, .chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; white-space: nowrap; }
.badge { height: 22px; padding: 0 9px; font-size: 13px; font-weight: 500; color: var(--a-muted); background: var(--a-raised); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ready { color: var(--a-ok); background: var(--a-ok-soft); }
.badge.busy, .badge.warn { color: var(--a-warn); background: var(--a-warn-soft); }
.badge.failed, .badge.expired { color: var(--a-bad); background: var(--a-bad-soft); }
.chip { height: 22px; padding: 0 9px; font-size: 13px; font-weight: 500; color: var(--a-muted); background: var(--a-raised); border: 1px solid var(--a-line); }
a.chip:hover { color: var(--a-text); border-color: var(--a-line-2); }
.chip.warn { color: var(--a-warn); background: var(--a-warn-soft); border-color: transparent; }
.chip .ico { width: 13px; height: 13px; }
.chip.owner { padding-right: 4px; }
.chip .x { min-height: 0; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; color: var(--a-faint); }
.chip .x:hover { color: var(--a-bad); background: var(--a-bad-soft); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.notice { border: 1px solid color-mix(in srgb, var(--a-accent) 35%, transparent); background: var(--a-accent-soft); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.notice.warn { border-color: color-mix(in srgb, var(--a-warn) 35%, transparent); background: var(--a-warn-soft); }
.notice.err { border-color: color-mix(in srgb, var(--a-bad) 35%, transparent); background: var(--a-bad-soft); }
.notice.ok { border-color: color-mix(in srgb, var(--a-ok) 35%, transparent); background: var(--a-ok-soft); }
.notice > * + * { margin-top: 8px; }

.bar { height: 4px; border-radius: 999px; background: var(--a-line); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--a-accent); border-radius: inherit; transition: width .4s ease; }
.bar.indet > i { width: 35%; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

.meta { display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--a-muted); font-size: 13.5px; }
.meta b { color: var(--a-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.copyline { display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: 13.5px; color: var(--a-muted); background: none; border: 0; padding: 0; min-height: 0; }
.copyline:hover { color: var(--a-text); background: none; }
.copyline .ico { color: var(--a-faint); }
.linkbox, .copybox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.linkbox input, .copybox input { flex: 1 1 240px; width: auto; font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: 13px; }

table.stats, table.utable { width: 100%; border-collapse: collapse; font-size: 14px; }
table.stats td, table.stats th, table.utable td, table.utable th { padding: 10px 8px; border-bottom: 1px solid var(--a-line); text-align: left; vertical-align: middle; }
table.stats tr:last-child td { border-bottom: 0; }
table.stats td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
table.stats td.cat, table.utable td.cat, th { color: var(--a-muted); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
table.utable td.actions { text-align: right; white-space: nowrap; font-weight: 400; }
table.utable td.actions button { margin-left: 6px; }
.tablebox { overflow-x: auto; }
tr.sel { background: var(--a-glow-bg); box-shadow: var(--a-glow); }

.toggle { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; border-top: 1px solid var(--a-line); margin: 0; color: var(--a-text); font-size: 14px; cursor: pointer; font-weight: 400; }
.sec .toggle:first-of-type, .card > .toggle:first-of-type { border-top: 0; }
.toggle input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.toggle > span { display: grid; gap: 2px; min-width: 0; }
.toggle b { font-weight: 500; }
.toggle .muted { font-weight: 400; }
.toggle.off { opacity: .55; cursor: not-allowed; }
label.check { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--a-text); font-size: 14px; font-weight: 400; cursor: pointer; }
label.check input { width: 18px; height: 18px; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { min-height: 30px; padding: 0 12px; font-size: 13px; border-radius: 999px; }
.seg button.on { color: var(--a-accent); background: var(--a-accent-soft); border-color: color-mix(in srgb, var(--a-accent) 45%, transparent); }
.seg input[type=number] { width: 110px; min-height: 30px; border-radius: 999px; font-size: 13px; }
.seg input.on { border-color: var(--a-accent); }

.form-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.form-grid.wide { grid-template-columns: 2fr 1fr 1fr 1.2fr auto; }
.form-grid.group { grid-template-columns: 1.4fr 1.4fr auto; }
.form-grid.users { grid-template-columns: 1.4fr 1.4fr 1fr auto; }
.form-grid.single { grid-template-columns: minmax(0, 340px); }
@media (max-width: 900px) { .form-grid, .form-grid.wide, .form-grid.group, .form-grid.users { grid-template-columns: 1fr 1fr; } .form-grid .name { grid-column: 1 / -1; } }

pre.log { background: var(--a-raised); border: 1px solid var(--a-line); border-radius: 10px; padding: 12px; max-height: 240px; overflow: auto; font-size: 12px; line-height: 1.5; color: var(--a-muted); white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }
details > summary { cursor: pointer; color: var(--a-muted); font-weight: 500; font-size: 13.5px; }
details > summary:hover { color: var(--a-text); }

.drop { display: grid; gap: 4px; place-items: center; border: 1px dashed var(--a-line-2); border-radius: 12px; padding: 36px 16px; text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.drop:hover, .drop.over { border-color: var(--a-accent); background: var(--a-accent-soft); }
.drop b { font-weight: 500; }
.drop .ico { width: 24px; height: 24px; color: var(--a-faint); }

/* toasts and dialogs */
#toasts { position: fixed; bottom: 72px; right: 20px; display: grid; gap: 8px; z-index: 60; max-width: min(360px, calc(100vw - 40px)); }
.toast { background: var(--a-surface); border: 1px solid var(--a-line-2); padding: 10px 14px; border-radius: 10px; box-shadow: var(--a-shadow-pop); font-size: 14px; animation: fade-up .18s ease; }
.toast.err { border-color: var(--a-bad); color: var(--a-bad); }
.scrim { position: fixed; inset: 0; background: var(--a-scrim); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .18s ease; }
.dialog { width: min(100%, 500px); background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; padding: 22px; box-shadow: var(--a-shadow-pop); animation: fade-up .18s ease; }
.dialog h2 { font-size: 19.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.dialog p { margin-top: 10px; color: var(--a-muted); line-height: 1.6; }
.dialog .typed { margin-top: 14px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------ shell */
:root { --side-w: clamp(15.5rem, calc(10vw + 7rem), 18rem); }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--a-side); border-right: 1px solid var(--a-line); display: flex; flex-direction: column; overflow-y: auto; z-index: 40; }
.main { min-height: 100vh; padding-left: var(--side-w); }
.brandblock { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; height: 4.5rem; flex: none; padding: 0 20px; background: var(--a-side); color: var(--a-text); }
.brandblock:hover { color: var(--a-text); }
.evicon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-raised); color: var(--a-muted); display: grid; place-items: center; flex: none; overflow: hidden; font-weight: 600; font-size: 16px; line-height: 1; }
.evicon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evicon.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.evicon.lg { width: 72px; height: 72px; border-radius: 16px; font-size: 28px; }
.evcell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sidecard .head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidecard .head .name { min-width: 0; }
.iconset { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-accent); display: grid; place-items: center; flex: none; overflow: hidden; }
.logo svg, .logo img { width: 20px; height: 20px; display: block; }
.logo img.full { width: 100%; height: 100%; object-fit: cover; }
.logo.earth { border: 0; background: none; border-radius: 0; overflow: visible; }
.logo.earth img { width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 0 7px rgba(122,162,255,.55)); }
html[data-theme="light"] .logo.earth img { filter: drop-shadow(0 0 6px rgba(47,98,224,.35)); }
.brandname { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brandsub { font-size: 12.5px; color: var(--a-faint); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidecard { margin: 0 12px 4px; padding: 14px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; display: grid; gap: 10px; }
.sidecard .name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidecard .row { justify-content: space-between; flex-wrap: nowrap; font-size: 13.5px; color: var(--a-muted); }
.sidecard .row b { color: var(--a-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.sidecard .vsel { display: grid; gap: 6px; }
.sidecard .vsel label { margin: 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--a-faint); }
.sidecard .vsel select { width: 100%; min-height: 36px; font-size: 14px; }
.nav { padding: 8px 12px; display: grid; gap: 2px; align-content: start; flex: 1; }
.nav .grouphead { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 0 12px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--a-faint); background: none; border: 0; min-height: 24px; width: 100%; border-radius: 6px; }
.nav .grouphead:hover { background: none; color: var(--a-muted); border: 0; }
.nav .grouphead:first-child { margin-top: 4px; }
.nav .grouphead .ico { width: 14px; height: 14px; transition: transform .18s ease; }
.nav .grouphead[aria-expanded="true"] .ico { transform: rotate(90deg); }
.nav .items { display: grid; gap: 2px; }
.nav .items[hidden] { display: none; }
.nav a, .nav button.navrow { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--a-muted); font-size: 15px; font-weight: 400; text-align: left; width: 100%; justify-content: flex-start; transition: background-color .15s ease, color .15s ease; }
.nav a:hover, .nav button.navrow:hover { background: var(--a-hover); color: var(--a-text); }
.nav a .ico, .nav button.navrow .ico { width: 18px; height: 18px; opacity: .85; flex: none; }
.nav a .count { margin-left: auto; font-size: 12.5px; color: var(--a-faint); font-variant-numeric: tabular-nums; }
.nav a.active { color: var(--a-text); font-weight: 500; background: var(--a-glow-bg); box-shadow: var(--a-glow); }
.nav a.active .ico { color: var(--a-accent); opacity: 1; }
.sidefoot { padding: 12px; border-top: 1px solid var(--a-line); display: grid; gap: 2px; }
.sidefoot .who { padding: 4px 12px 8px; font-size: 13.5px; color: var(--a-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidefoot .who b { color: var(--a-text); font-weight: 500; }

.topbar { height: 3.5rem; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 28px; }
.content { max-width: 1200px; padding: 8px 28px 96px; margin: 0 auto; }
.content.narrow { max-width: 860px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pagehead p { margin-top: 6px; color: var(--a-muted); }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--a-faint); margin-bottom: 8px; }
.crumb:hover { color: var(--a-text); }
.crumb .ico { width: 14px; height: 14px; }
.events { display: grid; gap: 12px; }
.ev { display: grid; gap: 12px; }
.ev .evhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ev .evtitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
a.linkcard { display: grid; gap: 10px; color: var(--a-text); }
a.linkcard:hover { color: var(--a-text); border-color: var(--a-line-2); }

.menu-pill, .theme-toggle { position: fixed; z-index: 50; background: var(--a-surface); border: 1px solid var(--a-line-2); color: var(--a-muted); }
.theme-toggle { right: 20px; bottom: 20px; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.theme-toggle:hover { color: var(--a-text); background: var(--a-surface); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-pill { display: none; left: 20px; bottom: max(20px, env(safe-area-inset-bottom)); height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: var(--a-shadow-pop); color: var(--a-text); }
.menu-pill .ico { width: 17px; height: 17px; color: var(--a-accent); }
.drawer-scrim { display: none; }

@media (max-width: 900px) {
  .side { width: min(86vw, 320px); transform: translateX(-105%); transition: transform .24s ease; box-shadow: none; }
  body.drawer-open .side { transform: none; box-shadow: var(--a-shadow-pop); }
  body.drawer-open { overflow: hidden; }
  body.drawer-open .drawer-scrim { display: block; position: fixed; inset: 0; background: var(--a-scrim); z-index: 35; }
  .main { padding-left: 0; }
  .menu-pill { display: inline-flex; }
  .nav a, .nav button.navrow { min-height: 44px; font-size: 16px; }
  .brandblock { height: 4rem; }
  .brandblock .logo { width: 24px; height: 24px; }
  .brandblock .brandsub { display: none; }
  .topbar { padding: 0 16px; }
  .content { padding: 8px 16px 112px; }
  .tablebox { overflow-x: auto; }
  h1 { font-size: 1.6em; }
}

/* ------------------------------------------------------------------ public pages (landing, directory, sign-in) */
.pubbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; height: 4.5rem; border-bottom: 1px solid var(--a-line); background: var(--a-side); }
.pubbar .brandblock { position: static; padding: 0; background: none; height: auto; }
.pubnav { display: flex; gap: 4px; }
.pubnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 8px; color: var(--a-muted); font-size: 14px; }
.pubnav a:hover { color: var(--a-text); background: var(--a-hover); }
.pubnav a .ico { width: 16px; height: 16px; }
.pubpage { min-height: 100vh; display: flex; flex-direction: column; }
.pubpage .dir { flex: 1; width: 100%; }
.pubfoot { padding: 20px 28px 28px; display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 12px; font-size: 12px; color: var(--a-faint); }
.portal { max-width: 920px; margin: 0 auto; padding: 18vh 24px 40px; text-align: center; }
.portal .roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 0; text-align: left; }
.role { display: grid; gap: 10px; align-content: start; padding: 20px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; color: var(--a-text); transition: border-color .15s ease, background-color .15s ease; }
.role:hover { border-color: var(--a-line-2); color: var(--a-text); }
.role .ico { width: 22px; height: 22px; color: var(--a-accent); }
.role .t { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.role .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; font-weight: 500; color: var(--a-accent); }
.role .go .ico { width: 14px; height: 14px; color: currentColor; }
.portal form.code { display: flex; gap: 8px; max-width: 420px; margin: 28px auto 0; }
.portal form.code input { min-height: 44px; font-size: 15px; }
.portal form.code button { min-height: 44px; }
@media (max-width: 760px) { .portal .roles { grid-template-columns: 1fr; } .pubbar { padding: 0 16px; } .pubnav a span { display: none; } }

.dir { max-width: 920px; margin: 0 auto; padding: 48px 24px 96px; }
.dir h1 { font-size: 2em; }
.dir .toolbar { display: flex; gap: 8px; margin: 28px 0 16px; flex-wrap: wrap; }
.dir .toolbar input { max-width: 360px; min-height: 40px; }
.evrow { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 14px 18px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; color: var(--a-text); transition: border-color .15s ease; }
.evrow + .evrow { margin-top: 8px; }
.evrow:hover { border-color: var(--a-line-2); color: var(--a-text); }
.evrow .by { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--a-faint); }
.evrow .nm { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.evrow .stat { text-align: right; font-size: 13.5px; color: var(--a-muted); }
.evrow .stat b { display: block; color: var(--a-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.evrow .stat span { font-size: 12px; color: var(--a-faint); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 640px) { .evrow { grid-template-columns: 1fr auto; } .evrow .stat.second { display: none; } }

.signin { max-width: 420px; margin: 0 auto; padding: 9vh 20px 40px; }
.signin h1 { font-size: 24px; letter-spacing: -.02em; text-align: center; margin-bottom: 20px; }
.signcard { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 16px; padding: 32px; box-shadow: var(--a-card-shadow); }
.signcard .logo { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 24px; }
.signcard .logo.earth { border-radius: 0; }
.signcard .logo svg { width: 30px; height: 30px; }
.signcard > * + * { margin-top: 16px; }
.signcard input { min-height: 44px; font-size: 15px; background: var(--a-bg); }
.signcard button.primary { width: 100%; min-height: 44px; border-radius: 10px; font-size: 15px; }
.signcard .alt { font-size: 13.5px; color: var(--a-muted); text-align: center; }
.signfoot { margin-top: 20px; text-align: center; font-size: 12px; color: var(--a-faint); }

/* ------------------------------------------------------------------ steps (manage, wizard) */
.steps, .wsteps { display: flex; gap: 8px; flex-wrap: wrap; }
.step, .wstep { flex: 1 1 90px; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--a-faint); background: transparent; border: 1px solid var(--a-line); justify-content: flex-start; }
.step i, .wstep i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; background: var(--a-raised); color: var(--a-muted); flex: none; font-variant-numeric: tabular-nums; }
.step.done, .wstep.done { color: var(--a-ok); }
.step.done i, .wstep.done i { background: var(--a-ok-soft); color: var(--a-ok); }
.step.now, .wstep.now { color: var(--a-text); border-color: var(--a-accent); background: var(--a-accent-soft); }
.step.now i, .wstep.now i { background: var(--a-accent); color: var(--a-on-accent); }
.step.bad { color: var(--a-bad); border-color: color-mix(in srgb, var(--a-bad) 40%, transparent); background: var(--a-bad-soft); }
.step.bad i { background: var(--a-bad); color: var(--a-on-accent); }
.wstep:hover { background: var(--a-hover); }

.srvhead { display: flex; gap: 16px; align-items: center; }
.srvicon { width: 64px; height: 64px; border-radius: 12px; image-rendering: pixelated; background: var(--a-raised); border: 1px solid var(--a-line); flex: none; display: grid; place-items: center; color: var(--a-faint); }
.srvicon .ico { width: 26px; height: 26px; }
.world { background: var(--a-raised); border: 1px solid var(--a-line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.world.inactive { opacity: .85; }
.dimrow { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; }
.review { display: grid; gap: 8px; background: var(--a-raised); border: 1px solid var(--a-line); border-radius: 10px; padding: 12px 14px; }
.review > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14px; }
.review .k { color: var(--a-muted); font-size: 13.5px; }
@media (max-width: 760px) { .dimrow { grid-template-columns: 1fr; } .review > div { grid-template-columns: 1fr; gap: 0; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; padding: 12px 14px; }
.tile .k { font-size: 13.5px; color: var(--a-muted); display: flex; gap: 6px; align-items: center; }
.tile .k .ico { width: 14px; height: 14px; color: var(--a-faint); }
.tile .v { font-size: 20px; font-weight: 500; letter-spacing: -.015em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.plist { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.vlist { max-height: none; }
.vlist .prow { flex-wrap: wrap; }
.vlist .vact { margin-left: auto; flex-wrap: wrap; gap: 6px; }
.vlist .chip { margin-left: 6px; }
.prow { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-raised); }
.prow.ex { border-color: color-mix(in srgb, var(--a-warn) 45%, transparent); background: var(--a-warn-soft); }

/* ------------------------------------------------------------------ event viewer */
.app.viewer { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.vbar { display: flex; align-items: center; gap: 16px; min-height: 3.5rem; padding: 0 16px; background: var(--a-side); border-bottom: 1px solid var(--a-line); flex: none; position: relative; z-index: 5; }
.vlogo { display: flex; flex: none; color: var(--a-text); }
.vev { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 16px; border-left: 1px solid var(--a-line); }
.vev .name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vmenu { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; max-width: 12rem; margin-right: 6px; font-size: 14px; }
.vmenu span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmenu .ico { width: 16px; height: 16px; flex: none; color: var(--a-accent); }
.vmenu .caret { width: 7px; height: 7px; flex: none; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.vmenu[aria-expanded="true"] { background: var(--a-glow-bg); box-shadow: var(--a-glow); border-color: transparent; }
.vbox { position: absolute; right: 16px; top: calc(100% + 8px); width: min(22rem, calc(100vw - 24px)); background: var(--a-surface); border: 1px solid var(--a-line-2); border-radius: 12px; box-shadow: var(--a-shadow-pop); z-index: 10; display: grid; }
.vbox[hidden] { display: none; }
.vbox section { padding: 16px; display: grid; gap: 10px; }
.vbox section + section { border-top: 1px solid var(--a-line); }
.vbox h3 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; margin: 0; }
.vbox h3 .ico { width: 16px; height: 16px; color: var(--a-accent); }
.vbox p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--a-muted); }
.vbox label { margin: 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--a-faint); }
.vbox select { width: 100%; min-height: 38px; }
.vbox .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--a-muted); }
.vbox .btn { justify-content: center; }
.vtabs { display: flex; gap: 4px; margin-left: 8px; }
.vtabs a, .vact { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--a-muted); font-size: 14.5px; white-space: nowrap; }
.vtabs a:hover, .vact:hover { background: var(--a-hover); color: var(--a-text); }
.vtabs a.active { color: var(--a-text); font-weight: 500; background: var(--a-glow-bg); box-shadow: var(--a-glow); }
.vtabs .ico, .vact .ico { width: 17px; height: 17px; flex: none; opacity: .85; }
.vtabs a.active .ico { color: var(--a-accent); opacity: 1; }
.vacts { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.vact span { overflow: hidden; text-overflow: ellipsis; max-width: 9rem; }
@media (max-width: 1100px) { .vact span { display: none; } .vact { padding: 0 10px; } }
@media (max-width: 720px) {
  .vbar { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px 0; }
  .vev { flex: 1; padding-left: 10px; }
  .vacts { order: 2; }
  .vtabs { order: 3; width: 100%; margin: 0 -4px; padding: 0 4px 8px; overflow-x: auto; }
  .vtabs a { flex: 1; justify-content: center; }
  .vmenu { max-width: 8rem; margin-right: 0; }
  .vbox { right: 12px; }
}
.vbody { flex: 1; min-height: 0; position: relative; }
.pane { position: absolute; inset: 0; overflow: auto; }
.pane.map { overflow: hidden; }
.pane.map iframe { width: 100%; height: 100%; border: 0; background: var(--a-bg); display: block; }
.vtop { display: flex; align-items: center; gap: 12px; height: 3.5rem; padding: 0 20px; border-bottom: 1px solid var(--a-line); flex: none; }
.vtop .title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pl { display: grid; grid-template-columns: 340px 1fr; height: 100%; }
.pl-list { border-right: 1px solid var(--a-line); display: flex; flex-direction: column; min-height: 0; }
.pl-tools { padding: 14px; display: grid; gap: 8px; border-bottom: 1px solid var(--a-line); }
.pl-tools .row { flex-wrap: nowrap; }
.pl-items { overflow: auto; flex: 1; padding: 6px; }
.pitem { display: flex; width: 100%; align-items: center; justify-content: flex-start; gap: 12px; padding: 8px 10px; min-height: 52px; border-radius: 8px; border: 0; background: transparent; text-align: left; font-weight: 400; }
.pitem:hover { background: var(--a-hover); }
.pitem.on { background: var(--a-glow-bg); box-shadow: var(--a-glow); }
.pitem .nm { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitem .sub { font-size: 13px; color: var(--a-muted); }
.av { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; background: var(--a-raised); flex: none; }
.av.lg { width: 84px; height: 84px; border-radius: 12px; }
.av.sm { width: 26px; height: 26px; border-radius: 6px; }
.pl-detail { overflow: auto; padding: 24px; min-width: 0; }
.phead { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.phead h2 { font-size: 1.5em; font-weight: 500; letter-spacing: -.015em; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 20px; }
.brow { display: grid; grid-template-columns: minmax(80px, 38%) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.brow .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .t { height: 4px; background: var(--a-line); border-radius: 999px; overflow: hidden; }
.brow .t i { display: block; height: 100%; background: var(--a-accent); border-radius: inherit; }
.brow .n { color: var(--a-muted); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.back { display: none; }
.lb { padding: 24px; max-width: 1200px; margin: 0 auto; }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.lrow { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; padding: 6px 4px; min-height: 40px; border-radius: 8px; background: transparent; border: 0; font-weight: 400; text-align: left; }
.lrow:hover { background: var(--a-hover); }
.lrow .rk { width: 26px; text-align: center; color: var(--a-faint); font-weight: 500; flex: none; font-variant-numeric: tabular-nums; }
.lrow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lrow .vl { font-variant-numeric: tabular-nums; color: var(--a-accent); font-weight: 500; }
.message { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.message > div { max-width: 420px; }
.message h1 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 8px; }
.message p { color: var(--a-muted); margin-bottom: 20px; }

@media (max-width: 900px) {
  .pl { grid-template-columns: 1fr; }
  .pl-detail { display: none; padding: 16px; }
  .pl[data-detail="open"] .pl-list { display: none; }
  .pl[data-detail="open"] .pl-detail { display: block; }
  .back { display: inline-flex; margin-bottom: 14px; }
  .phead h2 { font-size: 1.3em; }
  .lb { padding: 16px 16px 96px; }
}
body.drawer-open .menu-pill { display: none; }

/* appearance page */
.bgprev { position: relative; height: 180px; border-radius: 10px; overflow: hidden; border: 1px solid var(--a-line); background: var(--a-bg) var(--bg-img) center / cover no-repeat; }
.bgprev i { position: absolute; inset: 0; }
.range { display: grid; grid-template-columns: 90px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.range input { width: 100%; min-height: 0; padding: 0; accent-color: var(--a-accent); }
.range output { text-align: right; color: var(--a-muted); font-variant-numeric: tabular-nums; }
