/* Bastion. Tokens follow the Vortex Digital Solutions site (hsl triplets); dark by default, light by switch. Motion: corporate, one curve. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: light;
  --background: 0 0% 100%; --foreground: 220 30% 10%; --card: 0 0% 100%; --secondary: 215 25% 96%;
  --muted-foreground: 215 16% 38%; --accent: 212 100% 42%; --accent-foreground: 0 0% 100%;
  --accent-light: 210 100% 96%; --accent-light-foreground: 210 100% 32%; --border: 215 20% 86%; --ring: 210 100% 50%;
  --danger: 0 72% 46%; --danger-light: 0 80% 97%; --danger-border: 0 60% 82%;
  --success: 145 55% 30%; --success-light: 145 60% 94%; --warn: 38 92% 30%; --warn-light: 40 95% 94%;
  --radius: 0.5rem; --ease: cubic-bezier(0.2, 0, 0, 1); --t-quick: 150ms; --t-std: 250ms; --t-slow: 400ms;
  --shadow: 0 1px 2px rgba(10, 24, 64, 0.06), 0 8px 24px rgba(10, 24, 64, 0.08);
  /* the guard */
  --m-body-1: #2a4c93; --m-body-2: #13295f; --m-body-3: #071331; --m-rim: #5f8fe6; --m-joint: #0b1838; --m-glass-1: #0c1a3b; --m-glass-2: #030a1c;
  --m-accent: #1a6dff; --m-accent-2: #4cc8ff; --m-chip: #0f204b; --m-shadow: rgba(10, 24, 64, 0.2); --m-shadow-c: rgba(10, 24, 64, 0.34); --m-halo: 0.14;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --background: 224 34% 6.5%; --foreground: 214 30% 94%; --card: 224 28% 10.5%; --secondary: 223 24% 14%;
  --muted-foreground: 215 16% 70%; --accent: 210 100% 64%; --accent-foreground: 224 40% 8%;
  --accent-light: 212 60% 16%; --accent-light-foreground: 210 100% 80%; --border: 222 20% 20%; --ring: 210 100% 64%;
  --danger: 0 72% 66%; --danger-light: 0 40% 14%; --danger-border: 0 40% 30%;
  --success: 145 55% 58%; --success-light: 145 35% 13%; --warn: 38 92% 62%; --warn-light: 38 40% 13%;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  --m-body-1: #3a5fa8; --m-body-2: #1b3b7e; --m-body-3: #0a1a42; --m-rim: #86b0ff; --m-joint: #0d1f4a; --m-chip: #14275a;
  --m-shadow: rgba(0, 0, 0, 0.55); --m-shadow-c: rgba(0, 0, 0, 0.65); --m-halo: 0.26; --m-accent: #3a8cff; --m-accent-2: #70d6ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: hsl(var(--background)); color: hsl(var(--foreground));
  font: 400 16px/1.5 "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 650; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.125rem; } h3 { font-size: 1rem; }
p { margin: 0; }
a { color: hsl(var(--accent)); }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 0.875rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9375em; letter-spacing: 0.01em; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── buttons and fields ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); color: hsl(var(--foreground)); font-weight: 560; cursor: pointer; text-decoration: none;
  transition: background-color var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.btn:hover { background: hsl(var(--secondary)); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: hsl(var(--accent)); border-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-primary:hover { background: hsl(var(--accent) / 0.9); }
.btn-danger { color: hsl(var(--danger)); border-color: hsl(var(--danger-border)); }
.btn-danger:hover { background: hsl(var(--danger-light)); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: hsl(var(--secondary)); }
.btn-icon { width: 44px; padding: 0; }
.btn-lg { min-height: 52px; font-size: 1.0625rem; padding: 0 24px; }
.btn-block { width: 100%; }
.btn .spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: none; border: 0; padding: 8px 0; min-height: 44px; color: hsl(var(--accent)); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 0.875rem; font-weight: 560; }
.field .hint { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--background));
  transition: border-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: hsl(var(--muted-foreground) / 0.6); }
.input:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.25); }
.input::placeholder { color: hsl(var(--muted-foreground) / 0.8); }
.input[aria-invalid="true"] { border-color: hsl(var(--danger)); }
.err { color: hsl(var(--danger)); font-size: 0.875rem; }

.note { padding: 12px 14px; border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--secondary)); font-size: 0.9375rem; }
.note-warn { background: hsl(var(--warn-light)); border-color: hsl(var(--warn) / 0.4); }
.note-danger { background: hsl(var(--danger-light)); border-color: hsl(var(--danger-border)); }
.note-ok { background: hsl(var(--success-light)); border-color: hsl(var(--success) / 0.4); }
.stack > * + * { margin-top: 16px; }

/* ── the guard ── */
.mascot-svg { overflow: visible; width: 100%; height: 100%; }
.sc-m-body-1 { stop-color: var(--m-body-1); } .sc-m-body-2 { stop-color: var(--m-body-2); } .sc-m-body-3 { stop-color: var(--m-body-3); }
.sc-m-glass-1 { stop-color: var(--m-glass-1); } .sc-m-glass-2 { stop-color: var(--m-glass-2); }
.sc-m-accent { stop-color: var(--m-accent); } .sc-m-accent-2 { stop-color: var(--m-accent-2); } .sc-accent { stop-color: var(--m-accent); }
.sc-o0 { stop-opacity: 0; } .sc-halo { stop-opacity: var(--m-halo); }
.fc-shadow { flood-color: var(--m-shadow-c); }
.chip-i0 { --i: 0; } .chip-i1 { --i: 1; }
@keyframes mascot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes mascot-float-d1 { 0%, 100% { transform: translateY(0); opacity: 0.9; } 50% { transform: translateY(-8px); opacity: 1; } }
@keyframes mascot-float-d3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.mascot-float { animation: mascot-float 5.2s ease-in-out infinite; }
.mascot-float-d1 { animation: mascot-float-d1 4.8s ease-in-out infinite; }
.mascot-float-d3 { animation: mascot-float-d3 5.5s ease-in-out 1.2s infinite; }
@keyframes mascot-shadow-kf { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.8); opacity: 0.65; } }
@keyframes mascot-spin-kf { to { transform: rotate(360deg); } }
@keyframes mascot-pulse-kf { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.25); opacity: 1; } }
@keyframes mascot-thr-kf { 0%, 100% { transform: scaleX(1); opacity: 0.85; } 50% { transform: scaleX(1.12); opacity: 1; } }
.mascot-shadow { transform-box: fill-box; transform-origin: center; animation: mascot-shadow-kf 5.2s ease-in-out infinite; }
.mascot-swirl { transform-box: fill-box; transform-origin: center; animation: mascot-spin-kf 16s linear infinite; }
.mascot-antenna { transform-box: fill-box; transform-origin: center; animation: mascot-pulse-kf 2.8s ease-in-out infinite; }
.mascot-thruster { transform-box: fill-box; transform-origin: center; animation: mascot-thr-kf 1.8s ease-in-out infinite; }
@keyframes mascot-enter-kf { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.mascot-enter { animation: mascot-enter-kf 520ms var(--ease) both; }
.mascot-chip-in { animation: mascot-enter-kf 380ms var(--ease) both; animation-delay: calc(260ms + var(--i, 0) * 70ms); }
.mascot-head { transform-box: fill-box; transform-origin: 50% 100%; transform: translate(calc(var(--lx, 0) * 5px), calc(var(--ly, 0) * 3px)) rotate(calc(var(--lx, 0) * 3.5deg)); transition: transform 220ms var(--ease); }
.mascot-visor { transform: translate(calc(var(--lx, 0) * 3px), calc(var(--ly, 0) * 1.5px)); transition: transform 180ms var(--ease); }
@keyframes mascot-scan-kf { 0% { transform: translateX(0); opacity: 0; } 3% { opacity: 1; } 15% { transform: translateX(112px); opacity: 0; } 100% { transform: translateX(112px); opacity: 0; } }
.mascot-scan { opacity: 0; animation: mascot-scan-kf 7.5s ease-in-out 1.6s infinite; }
@keyframes mascot-ring-kf { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.6); opacity: 0; } }
@keyframes mascot-core-kf { 0% { transform: scale(1); } 35% { transform: scale(1.16); } 100% { transform: scale(1); } }
.mascot-ping-ring { transform-box: fill-box; transform-origin: center; animation: mascot-ring-kf 800ms var(--ease) both; }
.mascot-ping-ring-2 { animation-delay: 140ms; }
.mascot-pulse { transform-box: fill-box; transform-origin: center; animation: mascot-core-kf 480ms var(--ease); }
/* the signature: the padlock in the guard's hands hangs open (8 px) until the key is accepted, then clicks shut once */
@keyframes lock-latch { 0% { transform: translateY(-8px); } 55% { transform: translateY(1.6px); } 100% { transform: translateY(0); } }
@keyframes lock-body { 0% { transform: scale(1); } 55% { transform: scale(0.94); } 100% { transform: scale(1); } }
@keyframes guard-blink-kf { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.08); } }
.guard-shackle { transform: translateY(-8px); }
.guard-lock { transform-box: fill-box; transform-origin: center; }
.guard-lock.latch { animation: lock-body 460ms var(--ease); }
.guard-lock.latch .guard-shackle { animation: lock-latch 460ms var(--ease) forwards; }
.guard-eye { transform-box: fill-box; transform-origin: center; animation: guard-blink-kf 6.4s ease-in-out 2.4s infinite; }

/* ── gate (sign-in, setup, join, recovery) ── */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.gate-inner { display: grid; grid-template-columns: 280px minmax(0, 440px); gap: 56px; align-items: center; width: 100%; max-width: 820px; }
.gate-guard { width: 280px; height: 355px; position: relative; }
.gate-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); }
.gate-card h1 { margin: 10px 0 8px; }
.gate-card .lead { color: hsl(var(--muted-foreground)); margin-bottom: 24px; }
.gate-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid hsl(var(--border)); font-size: 0.8125rem; color: hsl(var(--muted-foreground)); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.enter { animation: rise var(--t-slow) var(--ease) both; }
.leave { animation: fall 250ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fall { to { opacity: 0; transform: translateY(-8px); } }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; color: hsl(var(--foreground)); }
.brand img { width: 28px; height: 28px; }
.brand span span { color: hsl(var(--muted-foreground)); font-weight: 500; }

/* ── app shell ── */
.app { display: grid; grid-template-rows: auto 1fr; height: 100vh; height: 100dvh; animation: rise var(--t-slow) var(--ease) both; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.topbar .search { position: relative; flex: 1; max-width: 520px; margin: 0 auto 0 12px; }
.topbar .search .icon { position: absolute; left: 12px; top: 12px; color: hsl(var(--muted-foreground)); pointer-events: none; }
.topbar .search .input { padding-left: 40px; }
.topbar .spacer { flex: 1; }
.appbody { display: flex; flex-direction: column; min-height: 0; }
.appbody > .note { margin: 12px 16px 0; }
.appbody > .layout { flex: 1; min-height: 0; }
.layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); min-height: 0; }
.listpane { border-right: 1px solid hsl(var(--border)); overflow: auto; display: flex; flex-direction: column; min-height: 0; }
.detailpane { overflow: auto; padding: 28px 32px 48px; }
.tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid hsl(var(--border)); position: sticky; top: 0; background: hsl(var(--background)); z-index: 1; }
.tab { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; color: hsl(var(--muted-foreground)); font-weight: 560; font-size: 0.875rem; transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease); }
.tab:hover { background: hsl(var(--secondary)); }
.tab[aria-selected="true"] { background: hsl(var(--accent-light)); color: hsl(var(--accent-light-foreground)); }
.rows { list-style: none; margin: 0; padding: 0; flex: 1; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 60px; padding: 10px 16px; border: 0; border-bottom: 1px solid hsl(var(--border)); background: transparent; text-align: left; cursor: pointer; transition: background-color var(--t-quick) var(--ease); }
.row:hover { background: hsl(var(--secondary)); }
.row[aria-selected="true"] { background: hsl(var(--accent-light)); }
.row .ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: hsl(var(--secondary)); color: hsl(var(--accent-light-foreground)); }
.row[aria-selected="true"] .ico { background: hsl(var(--background)); }
.row .t { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { font-size: 0.875rem; color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .when { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.empty { padding: 48px 24px; text-align: center; color: hsl(var(--muted-foreground)); display: grid; gap: 14px; justify-items: center; }
.listfoot { padding: 12px; border-top: 1px solid hsl(var(--border)); position: sticky; bottom: 0; background: hsl(var(--background)); }

.detail-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.detail-head h1 { flex: 1; word-break: break-word; }
.back { display: none; }
.fields { border: 1px solid hsl(var(--border)); border-radius: 10px; overflow: hidden; background: hsl(var(--card)); }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 6px 10px 16px; border-bottom: 1px solid hsl(var(--border)); min-height: 64px; }
.frow:last-child { border-bottom: 0; }
.frow .k { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-transform: none; }
.frow .v { overflow-wrap: anywhere; white-space: pre-wrap; }
.frow .acts { display: flex; gap: 2px; }
.pw-dots { letter-spacing: 0.18em; }
.meta-line { margin-top: 16px; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.kind-pick { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.pw-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
.dropzone { border: 1.5px dashed hsl(var(--border)); border-radius: 10px; padding: 24px; text-align: center; color: hsl(var(--muted-foreground)); cursor: pointer; transition: border-color var(--t-quick) var(--ease), background-color var(--t-quick) var(--ease); }
.dropzone:hover, .dropzone.drag { border-color: hsl(var(--accent)); background: hsl(var(--accent-light)); }

/* ── settings ── */
.settings { min-height: 0; max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; width: 100%; overflow: auto; }
.settings > header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.panel { border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); padding: 20px; margin-bottom: 20px; }
.panel h2 { margin-bottom: 4px; }
.panel > p { margin-bottom: 14px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid hsl(var(--border)); }
.plist li:first-child { border-top: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: hsl(var(--secondary)); color: hsl(var(--muted-foreground)); margin-left: 6px; vertical-align: middle; }
.badge-ok { background: hsl(var(--success-light)); color: hsl(var(--success)); }
.badge-warn { background: hsl(var(--warn-light)); color: hsl(var(--warn)); }
.fp { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.0625rem; letter-spacing: 0.04em; padding: 10px 12px; border-radius: var(--radius); background: hsl(var(--secondary)); display: inline-block; }
.log { font-size: 0.8125rem; width: 100%; border-collapse: collapse; }
.log td { padding: 6px 8px 6px 0; border-top: 1px solid hsl(var(--border)); vertical-align: top; }
.log td:first-child { white-space: nowrap; color: hsl(var(--muted-foreground)); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; flex: none; accent-color: hsl(var(--accent)); }
.recovery-key { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.0625rem; line-height: 1.8; letter-spacing: 0.06em; padding: 16px; border-radius: var(--radius); background: hsl(var(--secondary)); word-spacing: 0.4em; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }

/* ── dialog, toast ── */
dialog.modal { border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); color: hsl(var(--foreground)); padding: 24px; width: min(480px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog.modal[open] { animation: rise var(--t-std) var(--ease) both; }
dialog.modal::backdrop { background: rgba(4, 8, 20, 0.55); backdrop-filter: blur(2px); }
dialog.modal h2 { margin-bottom: 8px; }
dialog.modal .body { margin: 12px 0 20px; }
dialog.modal .foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 10px; background: hsl(var(--foreground)); color: hsl(var(--background)); box-shadow: var(--shadow); font-size: 0.9375rem; animation: rise var(--t-std) var(--ease) both; }
.toast.bad { background: hsl(var(--danger)); color: #fff; }
html[data-theme="dark"] .toast.bad { color: hsl(224 40% 8%); }

.lock-veil { position: fixed; inset: 0; z-index: 40; background: hsl(var(--background)); display: grid; place-items: center; animation: rise var(--t-std) var(--ease) both; }

/* ── small screens ── */
@media (max-width: 820px) {
  .gate-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 480px; justify-items: center; }
  .gate-guard { width: 150px; height: 190px; }
  .gate-card { padding: 24px 20px; width: 100%; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .detailpane { display: none; padding: 20px 16px 48px; }
  .layout.show-detail .listpane { display: none; }
  .layout.show-detail .detailpane { display: block; }
  .back { display: inline-flex; }
  .topbar .search { margin-left: 0; }
  .topbar .hide-sm { display: none; }
  .topbar .brand > span { display: none; }
  .topbar { gap: 4px; padding: 8px 12px; }
  .gate-foot { flex-direction: column; align-items: flex-start; }
}
@media (pointer: coarse) { .btn { min-height: 48px; } .btn-icon { width: 48px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .mascot-float, .mascot-float-d1, .mascot-float-d3, .mascot-shadow, .mascot-swirl, .mascot-antenna, .mascot-thruster, .mascot-scan, .guard-eye { animation: none !important; }
}
