:root {
  color-scheme: dark;
  --bg: #05090b;
  --bg-raised: #090f12;
  --surface: #0c1418;
  --surface-strong: #121d22;
  --surface-warm: #171713;
  --line: #25343a;
  --line-strong: #41555d;
  --text: #f2fafc;
  --muted: #9db0b8;
  --faint: #71858d;
  --accent: #24c7f4;
  --accent-soft: rgba(36, 199, 244, 0.14);
  --accent-strong: #83e6ff;
  --accent-ink: #001217;
  --danger: #ff6074;
  --success: #35dc91;
  --gold: #f2c14e;
  --violet: #a995ff;
  --blue: #29b8ff;
  --green: #20d882;
  --red: #ff4964;
  --neutral: #d5bd72;
  --topbar-height: 72px;
  --sidebar-width: 224px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

body[data-faction="GREEN"] {
  --accent: #20d882;
  --accent-soft: rgba(32, 216, 130, 0.14);
  --accent-strong: #7af5ba;
  --accent-ink: #00150c;
}

body[data-faction="RED"] {
  --accent: #ff4964;
  --accent-soft: rgba(255, 73, 100, 0.14);
  --accent-strong: #ff9cab;
  --accent-ink: #1b0005;
}

body[data-faction="NEUTRAL"] {
  --accent: #d5bd72;
  --accent-soft: rgba(213, 189, 114, 0.14);
  --accent-strong: #f5df9b;
  --accent-ink: #191300;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

button,
input,
select { font: inherit; }

button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.56; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  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;
}

.brand-mark {
  width: 48px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  background: var(--accent);
  clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--bg);
  clip-path: inherit;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.brand-mark-small { width: 38px; height: 42px; }
.brand-name { font-size: 13px; font-weight: 800; }
.kicker,
.section-label {
  margin: 0;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #081015;
  border: 1px solid var(--line);
  border-radius: 5px;
  flex: 0 0 auto;
}

.icon-button:hover { color: var(--text); border-color: var(--accent); }
.icon-button svg { width: 19px; height: 19px; }

.primary-button,
.secondary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 5px;
  font-weight: 800;
}

.primary-button { color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent-strong); }
.secondary-button { color: var(--text); background: #0b1519; border: 1px solid var(--line-strong); }
.primary-button:hover,
.secondary-button:hover { filter: brightness(1.1); }
.primary-button svg,
.secondary-button svg { width: 19px; height: 19px; }

.text-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  color: var(--accent-strong);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.text-button svg { width: 16px; height: 16px; }

/* Authentication */
.auth-view {
  width: 100%;
  height: 100dvh;
  min-height: 520px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background-color: var(--bg);
  background-image: linear-gradient(rgba(36, 199, 244, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 199, 244, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

.auth-brand {
  min-height: 78px;
  padding: calc(12px + env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 10px max(22px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 11, 0.96);
}

.auth-product {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.auth-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(320px, 430px);
  justify-content: center;
  align-items: center;
  gap: clamp(50px, 9vw, 140px);
  overflow: auto;
  padding: 34px max(24px, env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.auth-signal h1 {
  max-width: 520px;
  margin: 12px 0 24px;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: 0;
}

.auth-signal-line { height: 2px; display: grid; grid-template-columns: 38% 16% 1fr; gap: 8px; }
.auth-signal-line span:nth-child(1) { background: var(--accent); }
.auth-signal-line span:nth-child(2) { background: var(--gold); }
.auth-signal-line span:nth-child(3) { background: var(--line-strong); }

.auth-capabilities {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.auth-capabilities li { min-width: 0; display: grid; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.auth-capabilities svg { width: 22px; height: 22px; color: var(--accent-strong); }

.auth-panel {
  width: 100%;
  display: grid;
  gap: 11px;
  padding: 28px;
  background: rgba(10, 17, 21, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.auth-panel h2 { margin: 2px 0 13px; font-size: 25px; line-height: 1.2; letter-spacing: 0; }
.auth-panel label { margin-top: 3px; color: #cbd9de; font-size: 14px; font-weight: 700; }
.auth-panel input,
.search input,
.level-filter select,
.compact-search input {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  background: #071015;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.auth-panel input { padding: 0 13px; font-size: 16px; }
.auth-panel input:hover,
.auth-panel input:focus { border-color: var(--accent); }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-field .icon-button { position: absolute; top: 1px; right: 1px; border: 0; background: transparent; }
.form-message { min-height: 20px; margin: 1px 0 0; color: var(--danger); font-size: 14px; line-height: 1.4; }
.auth-note { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Application shell */
.platform {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: calc(var(--topbar-height) + env(safe-area-inset-top)) minmax(0, 1fr);
  background: var(--bg);
}

.platform-topbar {
  min-width: 0;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: #060b0e;
  border-bottom: 1px solid var(--line);
  z-index: 40;
}

.topbar-brand,
.operator,
.operator-button { min-width: 0; display: flex; align-items: center; gap: 10px; }
.topbar-brand > div,
.operator-copy { min-width: 0; display: grid; gap: 2px; }
.topbar-brand strong { font-size: 13px; }
.topbar-brand span:not(.brand-mark) { color: var(--muted); font-size: 11px; }
.route-heading { min-width: 0; display: grid; gap: 2px; }
.route-heading span { color: var(--accent-strong); font-size: 10px; font-weight: 800; }
.route-heading strong { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operator { justify-content: flex-end; }
.operator-button { padding: 4px 7px; color: var(--text); background: transparent; border: 0; border-radius: 5px; }
.operator-button:hover { background: var(--accent-soft); }
.operator-copy { text-align: right; }
.operator-copy strong,
.operator-copy span { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operator-copy strong { font-size: 14px; }
.operator-copy span { color: var(--muted); font-size: 12px; }
.operator-rank-badge { width: 40px; height: 44px; display: grid; place-items: center; position: relative; color: var(--accent-strong); flex: 0 0 auto; }
.operator-rank-badge svg { width: 38px; height: 42px; stroke-width: 1.3; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 45%, transparent)); }
.operator-rank-badge strong { position: absolute; color: var(--text); font-size: 12px; }

.platform-body { min-width: 0; min-height: 0; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.platform-sidebar { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #070d10; border-right: 1px solid var(--line); }
.primary-nav { padding: 18px 12px; display: grid; align-content: start; gap: 5px; }
.primary-nav button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}

.primary-nav button:hover { color: var(--text); background: #0b1418; }
.primary-nav button[aria-current="page"] { color: var(--text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.primary-nav svg { width: 20px; height: 20px; color: currentColor; }
.nav-badge { min-width: 21px; height: 21px; display: inline-grid; place-items: center; padding: 0 5px; color: var(--accent-ink); background: var(--accent); border-radius: 10px; font-size: 11px; font-weight: 850; }
.sidebar-footer { min-height: 66px; padding: 14px 18px; display: flex; align-items: center; gap: 9px; color: var(--faint); border-top: 1px solid var(--line); font-size: 9px; font-weight: 750; }
.connection-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.platform-content { min-width: 0; min-height: 0; position: relative; overflow: hidden; background: var(--bg); }
.route-view { width: 100%; height: 100%; }
.scroll-view,
.overview-view { overflow: auto; overscroll-behavior: contain; padding: 30px clamp(20px, 3.2vw, 48px) 44px; }
.section-heading { min-width: 0; margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h1,
.profile-identity h1 { margin: 4px 0 5px; font-size: 36px; line-height: 1.12; letter-spacing: 0; }
.section-heading p:not(.kicker),
.profile-identity p:not(.kicker) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Dashboard */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); background: #080e11; }
.stat-strip > div { min-width: 0; min-height: 116px; padding: 19px 22px; display: grid; align-content: center; gap: 3px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip span { color: var(--muted); font-size: 10px; font-weight: 800; }
.stat-strip strong { color: var(--text); font-size: 30px; line-height: 1.1; overflow-wrap: anywhere; }
.stat-strip strong.metric-compact { font-size: 20px; white-space: nowrap; overflow-wrap: normal; }
.stat-strip div:nth-child(2) strong { color: var(--accent-strong); }
.stat-strip div:nth-child(4) strong { color: var(--gold); }
.stat-strip small { color: var(--faint); font-size: 11px; }
.overview-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-panel { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.panel-title-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-title-row h2 { margin: 3px 0 0; font-size: 18px; letter-spacing: 0; }
.metric-accent { color: var(--accent-strong); font-size: 16px; white-space: nowrap; }
[aria-labelledby="career-title"] .panel-title-row { flex-wrap: wrap; }
#profile-ap { max-width: 100%; white-space: normal; text-align: right; overflow-wrap: anywhere; }
.rank-lockup { margin: 21px 0 16px; display: flex; align-items: center; gap: 14px; }
.rank-emblem,
.profile-emblem { width: 58px; height: 66px; display: grid; place-items: center; position: relative; color: var(--accent-strong); flex: 0 0 auto; }
.rank-emblem svg,
.profile-emblem svg { width: 100%; height: 100%; stroke-width: 1.1; }
.rank-emblem strong,
.profile-emblem strong { position: absolute; color: var(--text); font-size: 18px; }
.rank-lockup > div { min-width: 0; display: grid; gap: 4px; }
.rank-lockup > div strong { font-size: 18px; overflow-wrap: anywhere; }
.rank-lockup > div span { color: var(--muted); font-size: 13px; }
.progress-track { width: 100%; height: 7px; overflow: hidden; background: #1a262a; border-radius: 2px; }
.progress-track span { width: 0; height: 100%; display: block; background: var(--accent); transition: width 220ms ease; }
.progress-track .progress-fill-0 { width: 0; }.progress-track .progress-fill-5 { width: 5%; }.progress-track .progress-fill-10 { width: 10%; }.progress-track .progress-fill-15 { width: 15%; }.progress-track .progress-fill-20 { width: 20%; }.progress-track .progress-fill-25 { width: 25%; }.progress-track .progress-fill-30 { width: 30%; }.progress-track .progress-fill-35 { width: 35%; }.progress-track .progress-fill-40 { width: 40%; }.progress-track .progress-fill-45 { width: 45%; }.progress-track .progress-fill-50 { width: 50%; }.progress-track .progress-fill-55 { width: 55%; }.progress-track .progress-fill-60 { width: 60%; }.progress-track .progress-fill-65 { width: 65%; }.progress-track .progress-fill-70 { width: 70%; }.progress-track .progress-fill-75 { width: 75%; }.progress-track .progress-fill-80 { width: 80%; }.progress-track .progress-fill-85 { width: 85%; }.progress-track .progress-fill-90 { width: 90%; }.progress-track .progress-fill-95 { width: 95%; }.progress-track .progress-fill-100 { width: 100%; }
.panel-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.compact-list { margin-top: 12px; display: grid; gap: 8px; }
.compact-task { min-width: 0; min-height: 54px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.compact-task:last-child { border-bottom: 0; }
.compact-task > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 5px; }
.compact-task svg { width: 17px; height: 17px; }
.compact-task div { min-width: 0; display: grid; gap: 3px; }
.compact-task strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-task small { color: var(--muted); font-size: 11px; }
.compact-task > strong { color: var(--accent-strong); font-size: 12px; }
.inventory-summary { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.inventory-summary > div { min-width: 0; min-height: 104px; padding: 14px; display: grid; place-items: center; align-content: center; gap: 5px; border-right: 1px solid var(--line); }
.inventory-summary > div:last-child { border-right: 0; }
.inventory-summary svg { width: 22px; height: 22px; color: var(--accent-strong); }
.inventory-summary div:nth-child(2) svg { color: var(--gold); }
.inventory-summary span { color: var(--muted); font-size: 11px; }
.inventory-summary strong { font-size: 22px; }
.event-preview { margin-top: 16px; min-height: 112px; padding-left: 16px; display: grid; align-content: center; gap: 6px; border-left: 3px solid var(--gold); background: var(--surface-warm); }
.event-preview strong { font-size: 17px; }
.event-preview span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.event-preview time { color: var(--gold); font-size: 12px; font-weight: 750; }

/* Map */
.map-route { display: grid; grid-template-rows: 58px minmax(0, 1fr); }
.map-toolbar { min-width: 0; padding: 7px 14px; display: grid; grid-template-columns: minmax(260px, 580px) auto; align-items: center; justify-content: space-between; gap: 14px; background: #080e11; border-bottom: 1px solid var(--line); }
.search { width: 100%; height: 44px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 42px; align-items: center; background: #071015; border: 1px solid var(--line-strong); border-radius: 5px; }
.search:focus-within { border-color: var(--accent); }
.search > svg { width: 18px; height: 18px; justify-self: center; color: var(--muted); }
.search input { min-width: 0; min-height: 40px; padding: 0; border: 0; background: transparent; outline: 0; }
.search .icon-button { width: 40px; height: 40px; border: 0; background: transparent; }
.map-world-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.workspace { min-width: 0; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); position: relative; }
.portal-list-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; background: rgba(7, 13, 17, 0.99); border-right: 1px solid var(--line); z-index: 20; }
.panel-heading { min-height: 60px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading > div { display: grid; gap: 3px; }
.panel-heading strong { font-size: 15px; }
.panel-heading span { color: var(--muted); font-size: 11px; }
.filters { padding: 11px 12px 5px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.filter-chip { min-width: 0; min-height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 8px; color: var(--muted); background: #091116; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; }
.filter-chip input { width: 15px; height: 15px; margin: 0; accent-color: currentColor; }
.filter-chip:has(input:checked) { color: var(--text); }
.filter-blue:has(input:checked) { border-color: var(--blue); }
.filter-green:has(input:checked) { border-color: var(--green); }
.filter-red:has(input:checked) { border-color: var(--red); }
.filter-neutral:has(input:checked) { border-color: var(--neutral); }
.level-filter { min-height: 52px; padding: 6px 12px 9px; display: grid; grid-template-columns: minmax(0, 1fr) 90px; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.level-filter select { min-height: 34px; padding: 0 8px; }
.portal-list { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.portal-row { width: 100%; min-height: 64px; padding: 9px 12px; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; color: var(--text); text-align: left; background: transparent; border: 0; border-bottom: 1px solid rgba(37, 52, 58, 0.72); }
.portal-row:hover,
.portal-row[aria-current="true"] { background: var(--accent-soft); }
.portal-row-marker { width: 8px; height: 28px; border-radius: 2px; background: var(--neutral); }
.portal-row-marker.BLUE { background: var(--blue); }
.portal-row-marker.GREEN { background: var(--green); }
.portal-row-marker.RED { background: var(--red); }
.portal-row-copy { min-width: 0; display: grid; gap: 4px; }
.portal-row-copy strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-row-copy span { color: var(--muted); font-size: 10px; }
.portal-row-level { color: var(--accent-strong); font-size: 13px; font-weight: 800; }
.empty-state { margin: 0; padding: 20px 14px; color: var(--muted); text-align: center; font-size: 12px; }
.map-stage { min-width: 0; min-height: 0; position: relative; background: #141b1f; }
.map-canvas { width: 100%; height: 100%; }
.map-canvas .ol-viewport { background: #141b1f; }
.map-canvas .osm-dark-layer { filter: invert(100%) hue-rotate(180deg) brightness(240%) contrast(85%) saturate(45%); }
.map-canvas .ol-control button { background: #081116; color: var(--text); border-radius: 3px; }
.map-canvas .ol-control button:hover { background: var(--accent); color: var(--accent-ink); }
.map-canvas .ol-zoom { top: 12px; left: 12px; }
.map-canvas .ol-attribution { color: var(--muted); background: rgba(5, 9, 11, 0.86); }
.map-canvas .ol-attribution a { color: var(--accent-strong); }
.map-attribution { position: absolute; z-index: 5; left: 8px; bottom: 6px; padding: 3px 6px; color: #d7e3e8; background: rgba(5, 9, 11, 0.88); font-size: 12px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.map-attribution:hover,
.map-attribution:focus-visible { color: var(--accent-strong); }
.map-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 5; }
.map-action { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--text); background: rgba(7, 14, 18, 0.94); border: 1px solid var(--line-strong); border-radius: 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); font-size: 12px; }
.map-action:hover { border-color: var(--accent); }
.map-action svg { width: 17px; height: 17px; }
.map-loading,
.map-error { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 7; max-width: min(92%, 460px); min-height: 42px; margin: 0; padding: 10px 14px; display: flex; align-items: center; gap: 9px; color: var(--text); background: rgba(7, 14, 18, 0.96); border: 1px solid var(--line-strong); border-radius: 5px; font-size: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34); }
.map-error { color: #ffd1d6; border-color: var(--danger); }
.loader { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portal-detail { position: absolute; top: 12px; right: 12px; width: min(390px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; z-index: 15; background: rgba(8, 15, 19, 0.98); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52); }
.detail-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(5, 9, 11, 0.9); }
.detail-image-wrap { width: 100%; aspect-ratio: 16 / 8; background: #030607; border-bottom: 1px solid var(--line); }
.detail-image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-content { padding: 18px; }
.detail-faction { margin: 0 48px 5px 0; color: var(--accent-strong); font-size: 11px; font-weight: 750; }
.detail-faction.faction-BLUE { color: var(--blue); }
.detail-faction.faction-GREEN { color: var(--green); }
.detail-faction.faction-RED { color: var(--red); }
.detail-faction.faction-NEUTRAL { color: var(--neutral); }
.detail-content h2 { margin: 0; padding-right: 34px; font-size: 21px; line-height: 1.22; letter-spacing: 0; overflow-wrap: anywhere; }
.detail-stats { margin-top: 17px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.detail-stats > div { min-width: 0; padding: 11px 8px; display: grid; gap: 4px; border-right: 1px solid var(--line); }
.detail-stats > div:first-child { padding-left: 0; }
.detail-stats > div:last-child { border-right: 0; }
.detail-stats span { color: var(--muted); font-size: 10px; }
.detail-stats strong { font-size: 14px; }
.energy-track { height: 4px; margin-top: 12px; background: #19252b; overflow: hidden; }
.energy-track span { width: 0; height: 100%; display: block; background: var(--accent); transition: width 220ms ease; }
.energy-track .energy-fill-0 { width: 0; }.energy-track .energy-fill-1 { width: 10%; }.energy-track .energy-fill-2 { width: 20%; }.energy-track .energy-fill-3 { width: 30%; }.energy-track .energy-fill-4 { width: 40%; }.energy-track .energy-fill-5 { width: 50%; }.energy-track .energy-fill-6 { width: 60%; }.energy-track .energy-fill-7 { width: 70%; }.energy-track .energy-fill-8 { width: 80%; }.energy-track .energy-fill-9 { width: 90%; }.energy-track .energy-fill-10 { width: 100%; }
.detail-section { margin-top: 18px; }
.detail-section h3 { margin: 0 0 7px; color: var(--muted); font-size: 11px; }
.detail-section p { margin: 0; color: #c8d6dc; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.coordinates { margin: 18px 0 0; color: var(--muted); font-size: 10px; }

/* Inventory and shop */
.content-toolbar { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compact-search { width: min(100%, 360px); height: 44px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; background: #071015; border: 1px solid var(--line-strong); border-radius: 5px; }
.compact-search:focus-within { border-color: var(--accent); }
.compact-search svg { width: 18px; height: 18px; justify-self: center; color: var(--muted); }
.compact-search input { min-width: 0; min-height: 40px; padding: 0 11px 0 0; border: 0; outline: 0; background: transparent; }
.segmented-control { min-width: 0; display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 5px; overflow-x: auto; }
.segmented-control button { min-height: 42px; padding: 0 14px; color: var(--muted); background: #091115; border: 0; border-right: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
.segmented-control button:last-child { border-right: 0; }
.segmented-control button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); font-weight: 800; }
.item-grid,
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.item-card,
.product-card { min-width: 0; min-height: 176px; padding: 16px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.item-card:hover,
.product-card:hover { border-color: var(--line-strong); }
.item-card-header,
.product-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item-icon,
.product-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 6px; }
.item-icon svg,
.product-icon svg { width: 23px; height: 23px; }
.item-quantity { color: var(--text); font-size: 24px; font-weight: 850; }
.item-card-copy,
.product-card-copy { min-width: 0; display: grid; align-content: start; gap: 5px; }
.item-card-copy strong,
.product-card-copy strong { font-size: 16px; overflow-wrap: anywhere; }
.item-card-copy span,
.product-card-copy span { color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.item-meta,
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--faint); font-size: 11px; }
.rarity { color: var(--violet); font-weight: 800; }
.rarity-common { color: var(--muted); }.rarity-rare { color: var(--blue); }.rarity-epic { color: var(--violet); }.rarity-legendary { color: var(--gold); }
.balance-block { min-width: 150px; padding: 10px 14px; display: grid; gap: 2px; text-align: right; background: var(--surface-warm); border-left: 3px solid var(--gold); }
.balance-block span { color: var(--muted); font-size: 10px; font-weight: 800; }
.balance-block strong { color: var(--gold); font-size: 23px; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.product-card { min-height: 224px; }
.product-icon { color: var(--gold); background: rgba(242, 193, 78, 0.12); border-color: rgba(242, 193, 78, 0.3); }
.product-price { color: var(--gold); font-size: 18px; font-weight: 850; }
.buy-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent-strong); border-radius: 5px; font-weight: 800; }
.buy-button svg { width: 17px; height: 17px; }
.orders-panel { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; position: sticky; top: 0; }
.order-list { margin-top: 13px; display: grid; }
.order-row { min-width: 0; padding: 12px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: 0; }
.order-row strong { font-size: 13px; overflow-wrap: anywhere; }
.order-row span { color: var(--muted); font-size: 11px; }
.order-row .status-ok { color: var(--success); }.order-row .status-pending { color: var(--gold); }.order-row .status-failed { color: var(--danger); }
.inline-notice { margin: -8px 0 18px; padding: 12px 14px; color: var(--text); background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: 13px; }
.route-empty { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; border: 1px dashed var(--line-strong); border-radius: 7px; }
.route-empty svg { width: 30px; height: 30px; color: var(--accent-strong); }
.route-empty strong { color: var(--text); font-size: 16px; }
.route-empty span { font-size: 13px; }

/* Missions and profile */
.streak-block { min-width: 142px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.streak-block svg { width: 28px; height: 28px; color: var(--gold); }
.streak-block div { display: grid; }
.streak-block strong { font-size: 24px; }
.streak-block span { color: var(--muted); font-size: 11px; }
.missions-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 24px; }
.subsection-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.subsection-heading h2 { margin: 0; font-size: 19px; }
.subsection-heading span { color: var(--accent-strong); font-size: 12px; font-weight: 750; }
.mission-list,
.events-list { display: grid; }
.mission-card { min-width: 0; min-height: 116px; padding: 16px 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.mission-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 6px; }
.mission-icon svg { width: 22px; height: 22px; }
.mission-copy { min-width: 0; display: grid; gap: 5px; }
.mission-copy strong { font-size: 15px; }
.mission-copy > span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.mission-progress { display: flex; align-items: center; gap: 9px; }
.mission-progress .progress-track { max-width: 240px; height: 5px; }
.mission-progress small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.claim-button { min-width: 104px; min-height: 42px; padding: 0 12px; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent-strong); border-radius: 5px; font-weight: 800; }
.claim-button:disabled { color: var(--muted); background: #111b1f; border-color: var(--line); cursor: default; }
.event-card { min-width: 0; padding: 17px 0 17px 17px; display: grid; gap: 7px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--gold); }
.event-card strong { font-size: 15px; }
.event-card span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.event-card time { color: var(--gold); font-size: 11px; font-weight: 750; }
.profile-identity { min-width: 0; margin-bottom: 24px; display: flex; align-items: center; gap: 18px; }
.profile-emblem { width: 76px; height: 86px; }
.profile-emblem strong { font-size: 23px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-skills-panel { grid-column: 1 / -1; }
.profile-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.profile-stat { min-width: 0; padding: 14px 10px 0; display: grid; gap: 3px; border-right: 1px solid var(--line); }
.profile-stat:first-child { padding-left: 0; }.profile-stat:last-child { border-right: 0; }
.profile-stat strong { font-size: 20px; overflow-wrap: anywhere; }.profile-stat span { color: var(--muted); font-size: 11px; }
.medal-list { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.medal-tier-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.medal-tier-legend > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.tier-swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.tier-bronze .tier-swatch { background: #b47a47; }.tier-silver .tier-swatch { background: #b9c5cc; }.tier-gold .tier-swatch { background: var(--gold); }.tier-platinum .tier-swatch { background: #8fe7e2; }.tier-ruby .tier-swatch { background: #ef4e78; }.tier-elite .tier-swatch { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.medal-card { min-width: 0; min-height: 116px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 10px; text-align: center; background: #091115; border: 1px solid var(--line); border-radius: 6px; }
.medal-card-emblem { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.medal-card-emblem svg { width: 30px; height: 30px; color: currentColor; }
.medal-card-emblem.winged svg:first-child { transform: rotate(20deg) scaleX(-1); }.medal-card-emblem.winged svg:last-child { transform: rotate(-20deg); }
.medal-card-emblem.winged svg:first-child,
.medal-card-emblem.winged svg:last-child { width: 20px; height: 20px; }
.medal-tier-1 .medal-card-emblem { color: #b47a47; }.medal-tier-2 .medal-card-emblem { color: #b9c5cc; }.medal-tier-3 .medal-card-emblem { color: var(--gold); }.medal-tier-4 .medal-card-emblem { color: #8fe7e2; }.medal-tier-5 .medal-card-emblem { color: #ef4e78; }.medal-tier-elite .medal-card-emblem { color: var(--violet); filter: drop-shadow(0 0 6px rgba(169, 149, 255, 0.45)); }
.medal-card strong { font-size: 12px; overflow-wrap: anywhere; }.medal-card span { color: var(--muted); font-size: 10px; }
.medal-card .medal-card-emblem { color: var(--faint); }.medal-card.medal-tier-1 .medal-card-emblem { color: #b47a47; }.medal-card.medal-tier-2 .medal-card-emblem { color: #b9c5cc; }.medal-card.medal-tier-3 .medal-card-emblem { color: var(--gold); }.medal-card.medal-tier-4 .medal-card-emblem { color: #8fe7e2; }.medal-card.medal-tier-5 .medal-card-emblem { color: #ef4e78; }.medal-card.medal-tier-elite .medal-card-emblem { color: var(--violet); }
.medal-empty { grid-column: 1 / -1; }
.skills-list { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.skill-row { min-width: 0; min-height: 62px; padding: 10px 12px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; background: #091115; border: 1px solid var(--line); border-radius: 6px; }
.skill-row > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 5px; }
.skill-row svg { width: 18px; height: 18px; }.skill-row div { min-width: 0; display: grid; gap: 3px; }.skill-row strong { font-size: 13px; overflow-wrap: anywhere; }.skill-row small { color: var(--muted); font-size: 10px; }.skill-row > strong { color: var(--accent-strong); font-size: 13px; }

/* Dialogs */
.dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(0, 0, 0, 0.72); }
.confirm-dialog { width: min(100%, 420px); padding: 24px; position: relative; background: var(--surface-strong); border: 1px solid var(--line-strong); border-radius: 7px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58); }
.dialog-close { position: absolute; top: 10px; right: 10px; }
.dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--gold); background: rgba(242, 193, 78, 0.12); border: 1px solid rgba(242, 193, 78, 0.3); border-radius: 6px; }
.dialog-icon svg { width: 24px; height: 24px; }
.confirm-dialog h2 { margin: 18px 48px 8px 0; font-size: 21px; }
.confirm-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.dialog-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 110; max-width: min(92vw, 480px); padding: 12px 16px; color: var(--text); background: #0b151a; border: 1px solid var(--accent); border-radius: 5px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); font-size: 14px; }
.toast[data-kind="error"] { border-color: var(--danger); }
.mobile-nav,
.mobile-only { display: none; }

@media (max-width: 1100px) {
  :root { --sidebar-width: 190px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .orders-panel { position: static; }
  .missions-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --topbar-height: 66px; }
  .platform { grid-template-rows: calc(var(--topbar-height) + env(safe-area-inset-top)) minmax(0, 1fr) calc(70px + env(safe-area-inset-bottom)); }
  .platform-topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .route-heading { display: none; }
  .topbar-brand .brand-mark { width: 32px; height: 36px; }
  .operator-copy span { display: none; }
  .operator-copy strong { max-width: 110px; }
  .platform-body { grid-template-columns: minmax(0, 1fr); }
  .platform-sidebar { display: none; }
  .mobile-nav { min-width: 0; padding: 4px max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; background: #060b0e; border-top: 1px solid var(--line); z-index: 45; }
  .mobile-nav button { min-width: 0; min-height: 62px; padding: 5px 2px; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--muted); background: transparent; border: 0; border-top: 2px solid transparent; font-size: 14px; }
  .mobile-nav button[aria-current="page"] { color: var(--accent-strong); border-top-color: var(--accent); }
  .mobile-nav svg { width: 22px; height: 22px; }
  .scroll-view,
  .overview-view { padding: 22px max(16px, env(safe-area-inset-right)) 34px max(16px, env(safe-area-inset-left)); }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-skills-panel { grid-column: auto; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .mobile-only { display: inline-flex; }
  .portal-list-panel { position: absolute; inset: 0 auto 0 0; width: min(90vw, 360px); z-index: 25; transform: translateX(-102%); transition: transform 180ms ease; box-shadow: 18px 0 50px rgba(0, 0, 0, 0.45); }
  .portal-list-panel.open { transform: translateX(0); }
  .portal-detail { top: auto; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; max-height: min(68%, 590px); }
  .map-actions { top: 10px; right: 10px; }
  .map-action { width: 44px; padding: 0; justify-content: center; }
  .map-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .map-canvas .ol-zoom { top: 10px; left: 10px; }
  .map-loading,
  .map-error { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

@media (max-width: 720px) {
  .auth-main { grid-template-columns: minmax(0, 430px); gap: 0; padding-top: 18px; }
  .auth-signal { display: none; }
  .auth-product { font-size: 14px; }
  .auth-panel { padding: 22px 18px; }
  .auth-panel h2 { font-size: 23px; }
  .auth-panel label,
  .auth-note,
  .form-message { font-size: 14px; }
  .section-heading { align-items: flex-start; }
  .section-heading h1,
  .profile-identity h1 { font-size: 29px; }
  .section-heading p:not(.kicker),
  .profile-identity p:not(.kicker),
  .panel-note,
  .item-card-copy span,
  .product-card-copy span,
  .mission-copy > span,
  .event-card span,
  .event-preview span,
  .route-empty span { font-size: 14px; }
  .kicker,
  .section-label,
  .stat-strip span,
  .stat-strip small,
  .map-world-count,
  .panel-heading span,
  .filter-chip,
  .level-filter,
  .portal-row-copy span,
  .empty-state,
  .map-action,
  .map-loading,
  .map-error,
  .detail-faction,
  .detail-stats span,
  .detail-section h3,
  .coordinates,
  .item-meta,
  .product-meta,
  .order-row span,
  .streak-block span,
  .subsection-heading span,
  .mission-progress small,
  .event-card time,
  .profile-stat span,
  .medal-card span,
  .skill-row small { font-size: 14px; }
  .text-button,
  .compact-task small,
  .compact-task > strong,
  .item-card-copy strong,
  .product-card-copy strong,
  .order-row strong,
  .mission-copy strong,
  .event-card strong,
  .medal-card strong,
  .skill-row strong { font-size: 14px; }
  .map-toolbar { grid-template-columns: minmax(0, 1fr); }
  .map-world-count { display: none; }
  .content-toolbar { align-items: stretch; flex-direction: column; }
  .compact-search { width: 100%; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1 0 auto; font-size: 14px; }
  .item-grid,
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-card,
  .product-card { min-height: 190px; }
  .mission-card { grid-template-columns: 48px minmax(0, 1fr); }
  .claim-button { grid-column: 1 / -1; width: 100%; }
  .detail-content { padding: 16px; }
  .detail-stats span { overflow-wrap: anywhere; }
}

@media (max-width: 520px) {
  .auth-view { min-height: 500px; }
  .auth-brand { min-height: 66px; }
  .auth-brand .brand-mark { width: 38px; height: 42px; }
  .brand-name { font-size: 14px; }
  .auth-product { display: none; }
  .topbar-brand .brand-mark { display: none; }
  .topbar-brand strong { font-size: 14px; }
  .topbar-brand span:not(.brand-mark) { font-size: 14px; }
  .operator-copy strong { max-width: 90px; font-size: 14px; }
  .operator-button { padding-inline: 3px; }
  .section-heading { margin-bottom: 18px; }
  .overview-heading .secondary-button { width: 46px; padding: 0; }
  .overview-heading .secondary-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stat-strip > div { min-height: 104px; padding: 15px; }
  .stat-strip strong { font-size: 24px; }
  .stat-strip strong.metric-compact { font-size: 17px; }
  .tool-panel { padding: 16px; }
  .panel-title-row h2 { font-size: 17px; }
  .panel-title-row { align-items: flex-start; }
  .inventory-summary > div { min-height: 96px; padding: 10px 5px; }
  .item-grid,
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .item-card,
  .product-card { min-height: 178px; }
  .shop-heading,
  .missions-heading { align-items: stretch; flex-direction: column; }
  .balance-block { width: 100%; text-align: left; }
  .streak-block { justify-content: flex-start; }
  .profile-identity { align-items: flex-start; }
  .profile-emblem { width: 62px; height: 70px; }
  .profile-stats { grid-template-columns: minmax(0, 1fr); }
  .profile-stat { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-stat:last-child { border-bottom: 0; }
  .medal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root { --topbar-height: 58px; }
  .platform { grid-template-rows: calc(var(--topbar-height) + env(safe-area-inset-top)) minmax(0, 1fr); }
  .mobile-nav { display: none; }
  .platform-sidebar { display: grid; }
  .platform-body { grid-template-columns: 74px minmax(0, 1fr); }
  .primary-nav { padding: 5px; }
  .primary-nav button { grid-template-columns: 1fr; place-items: center; padding: 0; }
  .primary-nav button span:not(.nav-badge),
  .sidebar-footer { display: none; }
  .portal-detail { top: 8px; bottom: 8px; left: auto; right: 8px; width: min(370px, 46vw); max-height: none; }
  .detail-image-wrap { aspect-ratio: 16 / 6; }
  .auth-main { padding-top: 14px; padding-bottom: 14px; }
  .auth-panel { padding: 17px; gap: 7px; }
  .auth-panel h2 { margin-bottom: 5px; }
}

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