:root {
  color-scheme: dark;
  --canvas: #0a0d10;
  --surface-1: #11161a;
  --surface-2: #161c20;
  --surface-interactive: #1a2227;
  --border-subtle: #263139;
  --border-strong: #37454e;
  --content-primary: #eef3f1;
  --content-secondary: #a8b3b1;
  --content-tertiary: #7a8886;
  --action-primary: #53c7a5;
  --action-primary-hover: #73d9bb;
  --bg: var(--canvas);
  --surface: var(--surface-1);
  --surface-raised: var(--surface-2);
  --surface-hover: var(--surface-interactive);
  --line: var(--border-subtle);
  --line-strong: var(--border-strong);
  --text: var(--content-primary);
  --text-secondary: var(--content-secondary);
  --text-muted: var(--content-tertiary);
  --accent: var(--action-primary);
  --accent-strong: var(--action-primary-hover);
  --accent-violet: #b556ff;
  --accent-ink: #07110e;
  --positive: #67c9a6;
  --negative: #e57979;
  --warning: #d7ac63;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --header-height: 64px;
  --z-effects: 55;
  --z-header: 20;
  --z-modal: 50;
  --z-toast: 60;
  --motion-immediate: 100ms;
  --motion-fast: 160ms;
  --motion-state: 240ms;
  --motion-panel: 360ms;
  --motion-data: 500ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --font-tech: "Oxanium", "Bahnschrift", "Cascadia Mono", Consolas, sans-serif;
  font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(49, 232, 210, 0.085), transparent 34%),
    radial-gradient(circle at 86% 72%, rgba(83, 199, 165, 0.045), transparent 36%),
    linear-gradient(145deg, #080b10 0%, #090d12 48%, #0b0d14 100%);
  color: var(--text);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 28% at 55% -8%, rgba(83, 199, 165, 0.15), transparent 72%),
    linear-gradient(rgba(83, 199, 165, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 199, 165, 0.022) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.82) 54%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.82) 54%, transparent 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(91, 244, 218, 0.03) 48%, transparent 54%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
  content: "";
  opacity: 0.56;
  animation: cyber-scan-drift 16s linear infinite;
}

@keyframes cyber-scan-drift {
  from { transform: translateY(-16px); }
  to { transform: translateY(16px); }
}

.ambient-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.94;
  mix-blend-mode: screen;
  transition: opacity var(--motion-fast) var(--ease-standard);
}

.burst-field {
  position: fixed;
  inset: 0;
  z-index: var(--z-effects);
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity var(--motion-immediate) var(--ease-standard);
}

.burst-field.is-active {
  opacity: 1;
}

.boot-screen,
.auth-view,
.app-view {
  position: relative;
  z-index: 1;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

::selection {
  background: rgba(83, 199, 165, 0.3);
}

.boot-screen {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--text-secondary);
}

.boot-screen p {
  margin: 0;
  font-size: 13px;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-view {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr);
}

.auth-intro {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  padding: clamp(28px, 5vw, 72px);
  background-color: #0c1013;
}

.auth-brand,
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-size: 18px;
  font-weight: 680;
}

.auth-copy {
  max-width: 760px;
  padding: 8vh 0;
}

.kicker,
.section-label {
  margin: 0 0 9px;
  color: var(--text-muted);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
}

.auth-copy h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(38px, 4.2vw, 68px);
  font-weight: 630;
  line-height: 1.11;
  text-wrap: balance;
}

.auth-copy > p:last-child {
  max-width: 54ch;
  margin: 28px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.auth-foot,
.service-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 3px rgba(103, 201, 166, 0.1);
}

.status-dot.neutral {
  background: var(--text-muted);
  box-shadow: none;
}

.status-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(215, 172, 99, 0.1);
}

.status-dot.error {
  background: var(--negative);
  box-shadow: 0 0 0 3px rgba(229, 121, 121, 0.1);
}

.auth-panel {
  display: flex;
  width: min(100%, 520px);
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
  padding: 48px clamp(28px, 5vw, 68px);
}

.auth-panel-head h2,
.page-heading h1,
.panel-heading h2,
.market-head h2,
.task-panel h2,
.report-head h2,
.deposit-order h2,
.modal h2 {
  margin: 0;
  font-weight: 620;
  line-height: 1.25;
}

.auth-panel-head h2 {
  font-size: 28px;
}

.auth-panel-head > p:last-child {
  margin: 9px 0 0;
  color: var(--text-secondary);
}

.segmented {
  display: grid;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0d1114;
}

.segmented button {
  min-width: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.segmented button:hover {
  color: var(--text);
}

.segmented button[aria-selected="true"],
.segmented button[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.auth-mode {
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 24px;
}

.auth-mode button {
  height: 38px;
  font-size: 13px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 560;
}

.field label span {
  margin-left: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}

input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #0c1114;
  color: var(--text);
  padding: 0 12px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

input::placeholder {
  color: #687572;
}

input:hover {
  border-color: #4a5a63;
}

input:focus {
  border-color: var(--accent);
  background: #0f1518;
  box-shadow: 0 0 0 3px rgba(83, 199, 165, 0.1);
}

.password-strength {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.password-strength > span {
  display: grid;
  width: 112px;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.password-strength i {
  height: 2px;
  border-radius: 999px;
  background: var(--line-strong);
}

.password-strength[data-score="1"] i:nth-child(-n+1),
.password-strength[data-score="2"] i:nth-child(-n+2),
.password-strength[data-score="3"] i:nth-child(-n+3),
.password-strength[data-score="4"] i:nth-child(-n+4) {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(83, 199, 165, 0.45);
}

.password-strength small {
  color: var(--text-muted);
  font-size: 11px;
}

.form-message {
  min-height: 20px;
  margin: -2px 0 10px;
  color: var(--negative);
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    transform var(--motion-immediate) var(--ease-standard);
}

.button:active:not(:disabled),
.icon-button:active:not(:disabled) {
  transform: translateY(1px);
}

.button:disabled,
.icon-button:disabled,
.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow:
    inset 0 1px rgba(238, 255, 250, 0.32),
    0 6px 14px rgba(1, 7, 9, 0.28);
  color: var(--accent-ink);
}

.button-primary:hover:not(:disabled) {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  box-shadow:
    inset 0 1px rgba(244, 255, 252, 0.42),
    0 8px 18px rgba(1, 7, 9, 0.34);
  transform: translateY(-1px);
}

.button-primary:active:not(:disabled) {
  box-shadow: inset 0 2px 4px rgba(7, 17, 14, 0.2);
  transform: translateY(1px);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
}

.button-secondary:hover:not(:disabled) {
  border-color: #53646d;
  background: var(--surface-hover);
  color: var(--text);
}

.button-block {
  width: 100%;
  min-height: 44px;
}

.text-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  padding: 0;
  font-size: 12px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.local-entry {
  align-self: center;
  margin-top: 18px;
}

.auth-privacy {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 16, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  width: min(100% - 32px, 1540px);
  height: 100%;
  grid-template-columns: minmax(190px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.app-brand .brand-mark {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
}

.preview-tag {
  border-left: 1px solid var(--line);
  color: var(--text-muted);
  padding-left: 10px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.main-nav a {
  position: relative;
  display: flex;
  min-width: 104px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 13px;
  transition: color 160ms ease, background-color 160ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
}

.main-nav a[aria-current="page"]::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.service-state {
  min-width: 74px;
  justify-content: flex-end;
}

.balance-chip {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.balance-chip:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.balance-chip strong {
  color: var(--text);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 100ms ease;
}

.icon-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--text);
}

.icon-button.small {
  width: 36px;
  height: 36px;
}

.icon-button.small svg {
  width: 15px;
  height: 15px;
}

.app-main {
  width: min(100% - 32px, 1540px);
  margin: 0 auto;
  padding: 32px 0 80px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-heading h1 {
  font-size: 27px;
}

.page-heading > div > p:last-child {
  max-width: 62ch;
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.analysis-heading {
  align-items: center;
}

.heading-meta {
  display: grid;
  min-width: min(100%, 520px);
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 17, 20, 0.72);
}

.heading-metric {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 11px;
}

.heading-metric + .heading-metric {
  border-left: 1px solid var(--line);
}

.heading-metric small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
}

.heading-meta strong {
  overflow: hidden;
  color: var(--text-secondary);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heading-metric[data-status] {
  padding-left: 24px;
}

.heading-metric[data-status]::before {
  position: absolute;
  top: 13px;
  left: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  content: "";
  box-shadow: 0 0 0 3px rgba(120, 134, 132, 0.08);
}

.heading-metric[data-status="live"]::before {
  background: var(--positive);
  box-shadow: 0 0 0 3px rgba(103, 201, 166, 0.11);
}

.heading-metric[data-status="warning"]::before {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(215, 172, 99, 0.1);
}

.heading-metric[data-status="error"]::before {
  background: var(--negative);
  box-shadow: 0 0 0 3px rgba(229, 121, 121, 0.1);
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(18, 24, 29, 0.95), rgba(11, 16, 21, 0.92));
  box-shadow:
    0 12px 18px rgba(1, 7, 9, 0.28),
    inset 0 1px rgba(233, 255, 248, 0.035),
    inset 0 -1px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px) saturate(108%);
  transition:
    background-color var(--motion-state) var(--ease-standard),
    border-color var(--motion-state) var(--ease-standard),
    box-shadow var(--motion-state) var(--ease-standard);
}

.command-panel:focus-within {
  border-color: rgba(83, 199, 165, 0.3);
  box-shadow:
    0 12px 18px rgba(1, 7, 9, 0.3),
    inset 0 1px rgba(83, 199, 165, 0.1);
}

.analysis-workspace {
  display: grid;
  grid-template-areas:
    "command task"
    "market market";
  grid-template-columns: minmax(320px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.command-panel { grid-area: command; }
.task-panel { grid-area: task; }
.market-panel { grid-area: market; }

.command-panel,
.task-panel {
  min-height: 510px;
  padding: 24px;
}

.panel-heading,
.market-head,
.report-head,
.deposit-order-head,
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2,
.market-head h2,
.report-head h2,
.deposit-order h2,
.modal h2 {
  font-size: 16px;
}

.panel-heading > svg {
  color: var(--text-muted);
}

.market-selector {
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 20px;
}

.market-selector button {
  min-height: 66px;
  padding: 8px;
  text-align: left;
}

.market-selector strong,
.market-selector span {
  display: block;
}

.market-selector strong {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.market-selector span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}

.command-facts {
  margin: 22px 0;
}

.command-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(38, 49, 57, 0.78);
  padding: 10px 0;
  font-size: 11px;
}

.command-facts div:last-child {
  border-bottom: 1px solid rgba(38, 49, 57, 0.78);
}

.command-facts dt {
  color: var(--text-muted);
}

.command-facts dd {
  margin: 0;
  color: var(--text-secondary);
  text-align: right;
}

.quota-line {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.quota-line strong {
  color: var(--text);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.microcopy {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.discipline-tape {
  position: relative;
  min-height: 62px;
  margin-top: 12px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 10px 2px 2px;
  isolation: isolate;
}

.discipline-label {
  display: block;
  color: rgba(115, 217, 187, 0.7);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.discipline-viewport {
  display: flex;
  min-height: 34px;
  align-items: center;
  overflow: hidden;
}

.discipline-viewport p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.55;
  text-wrap: pretty;
}

.discipline-beam {
  position: absolute;
  z-index: -1;
  top: 25px;
  bottom: 2px;
  left: -28%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(83, 199, 165, 0.12), transparent);
  opacity: 0;
  pointer-events: none;
}

.discipline-tape.is-changing .discipline-viewport p {
  animation: discipline-quote-shift 620ms var(--ease-enter) both;
}

.discipline-tape.is-changing .discipline-beam {
  animation: discipline-beam-pass 540ms ease-out both;
}

.discipline-tape[data-quiet="true"] .discipline-beam {
  filter: saturate(0.72);
}

@keyframes discipline-quote-shift {
  0% { opacity: 1; transform: translateX(0); }
  27% { opacity: 0; transform: translateX(-12px); }
  36% { opacity: 0; transform: translateX(12px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes discipline-beam-pass {
  0% { opacity: 0; transform: translateX(0); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translateX(520%); }
}

.market-panel {
  position: relative;
  display: grid;
  min-height: 510px;
  grid-template-rows: auto minmax(350px, 1fr) auto;
  overflow: hidden;
  isolation: isolate;
}

.market-panel::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid transparent;
  pointer-events: none;
  content: "";
  opacity: 0;
}

.market-panel.market-pulse-up::before {
  animation: market-pulse-up 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.market-panel.market-pulse-down::before {
  animation: market-pulse-down 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes market-pulse-up {
  0% { opacity: 0; box-shadow: inset 0 0 0 rgba(83, 199, 165, 0); }
  28% { opacity: 0.72; box-shadow: inset 0 0 34px rgba(83, 199, 165, 0.12); border-color: rgba(83, 199, 165, 0.34); }
  100% { opacity: 0; box-shadow: inset 0 0 52px rgba(83, 199, 165, 0); }
}

@keyframes market-pulse-down {
  0% { opacity: 0; box-shadow: inset 0 0 0 rgba(229, 121, 121, 0); }
  28% { opacity: 0.66; box-shadow: inset 0 0 34px rgba(229, 121, 121, 0.1); border-color: rgba(229, 121, 121, 0.3); }
  100% { opacity: 0; box-shadow: inset 0 0 52px rgba(229, 121, 121, 0); }
}

.market-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 17px 18px 14px;
}

.market-symbol-row,
.market-price-row,
.market-source,
.market-foot {
  display: flex;
  align-items: center;
}

.market-symbol-row {
  gap: 9px;
}

.timeframe {
  border-left: 1px solid var(--line);
  color: var(--text-muted);
  padding-left: 9px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
}

.market-price-row {
  gap: 10px;
  margin-top: 7px;
}

.market-price-row strong {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.market-price-row span {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.price-positive {
  color: var(--positive);
}

.price-negative {
  color: var(--negative);
}

.market-source {
  gap: 9px;
  color: var(--text-muted);
  font-size: 11px;
}

.market-source > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 17, 20, 0.7);
  padding: 4px 8px;
  white-space: nowrap;
}

.market-source > span::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--text-muted);
  content: "";
}

.market-source > span[data-state="live"]::before { background: var(--positive); }
.market-source > span[data-state="warning"]::before { background: var(--warning); }
.market-source > span[data-state="error"]::before { background: var(--negative); }

.chart-wrap {
  position: relative;
  min-height: 350px;
  background: #0d1114;
}

.market-chart {
  position: absolute;
  inset: 0;
}

.chart-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: end;
  grid-template-columns: repeat(4, 1fr);
  gap: 13%;
  padding: 10% 12% 14%;
  background: #0d1114;
}

.chart-skeleton span {
  align-self: end;
  height: 35%;
  background: #182126;
  animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
}

.chart-skeleton span:nth-child(2) { height: 72%; animation-delay: 120ms; }
.chart-skeleton span:nth-child(3) { height: 50%; animation-delay: 240ms; }
.chart-skeleton span:nth-child(4) { height: 84%; animation-delay: 360ms; }

@keyframes skeleton-pulse {
  from { opacity: 0.42; }
  to { opacity: 0.88; }
}

.chart-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--text-muted);
  text-align: center;
}

.chart-error svg {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
}

.chart-error strong {
  color: var(--text-secondary);
  font-size: 13px;
}

.chart-error span {
  max-width: 34ch;
  margin-top: 5px;
  font-size: 12px;
}

.market-foot {
  min-height: 36px;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 0 18px;
  color: var(--text-muted);
  font-size: 11px;
}

.market-foot span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.market-foot a:hover {
  color: var(--text-secondary);
}

.legend-candle {
  width: 5px;
  height: 12px;
  border: 1px solid var(--accent);
  background: rgba(83, 199, 165, 0.2);
}

.task-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1.18fr);
  grid-template-rows: auto auto auto auto auto minmax(132px, 1fr) auto;
  column-gap: 42px;
}

.task-topline,
.task-panel h2,
.task-description,
.engine-rail,
.progress-track,
.evidence-router,
.task-panel > .text-button {
  grid-column: 1;
}

.phase-list,
.research-term {
  grid-column: 2;
}

.phase-list {
  grid-row: 1 / span 5;
  margin-top: 0;
}

.task-panel > .research-term {
  margin-top: 10px;
}

.task-panel[data-active="true"] {
  border-color: rgba(83, 199, 165, 0.36);
  background:
    radial-gradient(circle at 92% 4%, rgba(83, 199, 165, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(18, 26, 30, 0.97), rgba(11, 17, 22, 0.94));
  box-shadow:
    0 14px 18px rgba(1, 7, 9, 0.34),
    inset 0 1px rgba(112, 229, 196, 0.16),
    inset 0 -1px rgba(0, 0, 0, 0.22);
}

.task-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
}

.task-progress-value {
  margin-left: auto;
  color: var(--accent-strong);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.task-time {
  border-left: 1px solid var(--line);
  padding-left: 8px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.task-panel h2 {
  margin-top: 20px;
  font-size: 19px;
}

.task-description {
  min-height: 40px;
  margin: 8px 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
}

.engine-rail {
  display: flex;
  min-width: 0;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  color: var(--text-muted);
}

.engine-signature,
.engine-state {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.engine-signature {
  flex: 0 1 auto;
  gap: 7px;
}

.engine-signature img {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 0 7px rgba(83, 199, 165, 0.34));
}

.engine-signature b {
  overflow: hidden;
  color: rgba(115, 217, 187, 0.76);
  font-family: var(--font-tech);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-state {
  flex: 0 1 auto;
  justify-content: flex-end;
  overflow: hidden;
  color: rgba(168, 179, 177, 0.82);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-state::before {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(83, 199, 165, 0.56);
  content: "";
}

.engine-state.is-changing {
  animation: engine-state-arrival 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.progress-track {
  --task-progress: 0%;
  --task-progress-scale: 0;
  position: relative;
  height: 5px;
  overflow: visible;
  border-radius: 999px;
  background: #202a30;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.62),
    0 1px rgba(255, 255, 255, 0.025);
}

.progress-track[data-activity="running"] {
  background: linear-gradient(90deg, #1d292e, #243238 48%, #1d292e);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(83, 199, 165, 0.045),
    0 0 14px rgba(83, 199, 165, 0.08);
}

.task-panel[data-phase="failed"] .progress-track div {
  background: linear-gradient(90deg, rgba(229, 121, 121, 0.72), var(--negative));
  box-shadow: 0 0 9px rgba(229, 121, 121, 0.25);
}

.progress-track div {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(52, 153, 127, 0.94), #53c7a5 72%, #83e2c6);
  box-shadow:
    0 0 8px rgba(83, 199, 165, 0.34),
    0 0 18px rgba(83, 199, 165, 0.12);
  transform: scaleX(var(--task-progress-scale));
  transform-origin: left center;
  transition: transform var(--motion-data) var(--ease-standard);
}

.progress-track[data-activity="running"] div {
  transition: none;
  will-change: transform;
}

.progress-track[data-activity="running"] div::before,
.progress-track[data-activity="running"] div::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.progress-track[data-activity="running"] div::before {
  background:
    linear-gradient(98deg, transparent 0 34%, rgba(226, 255, 247, 0.1) 43%, rgba(226, 255, 247, 0.78) 50%, rgba(115, 217, 187, 0.14) 58%, transparent 68%);
  opacity: 0;
  transform: translateX(-88%);
  animation: progress-energy-sweep 1550ms cubic-bezier(0.32, 0.72, 0, 1) infinite;
}

.progress-track[data-activity="running"] div::after {
  background:
    repeating-linear-gradient(112deg, transparent 0 11px, rgba(226, 255, 247, 0.11) 12px, transparent 14px 22px);
  opacity: 0.32;
  transform: translateX(-12px);
  animation: progress-energy-texture 980ms cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.progress-track[data-activity="running"]::before,
.progress-track[data-activity="running"]::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.progress-track[data-activity="running"]::after {
  z-index: 3;
  top: 50%;
  left: var(--task-progress);
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 48% 48%,
    rgba(232, 255, 246, 0.94) 0%,
    rgba(178, 240, 219, 0.8) 10%,
    rgba(100, 206, 175, 0.48) 24%,
    rgba(83, 199, 165, 0.18) 43%,
    rgba(83, 199, 165, 0.04) 62%,
    transparent 76%
  );
  filter: blur(0.6px);
  animation: progress-orb-pulse 2400ms ease-in-out infinite alternate;
}

.progress-track[data-activity="running"]::before {
  top: 50%;
  z-index: 2;
  left: var(--task-progress);
  width: 40px;
  height: 44px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 44% 52%, rgba(83, 199, 165, 0.22), rgba(83, 199, 165, 0.06) 38%, transparent 70%);
  animation: progress-orb-halo 3700ms ease-in-out infinite alternate;
}

.progress-head-field {
  display: none;
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 0;
  width: 100%;
  height: 56px;
  overflow: hidden;
  transform: translateY(-50%);
  pointer-events: none;
}

.progress-head-particles {
  position: absolute;
  top: 50%;
  left: var(--task-progress);
  width: 72px;
  height: 56px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.progress-track[data-activity="running"] .progress-head-field {
  display: block;
}

@keyframes progress-orb-pulse {
  from {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0.94);
  }
  to {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes progress-orb-halo {
  from { opacity: 0.64; transform: translate(-52%, -50%) scale(0.94, 0.98); }
  to { opacity: 0.9; transform: translate(-48%, -50%) scale(1.06, 1.03); }
}

@keyframes progress-energy-sweep {
  0% { opacity: 0; transform: translateX(-88%); }
  18% { opacity: 0.82; }
  72% { opacity: 0.58; }
  100% { opacity: 0; transform: translateX(88%); }
}

@keyframes progress-energy-texture {
  from { opacity: 0.16; transform: translateX(-12px); }
  55% { opacity: 0.42; }
  to { opacity: 0.2; transform: translateX(12px); }
}

@keyframes engine-state-arrival {
  from { opacity: 0.35; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.analysis-cores {
  position: relative;
  display: grid;
  min-height: 72px;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 12px;
  opacity: 0.42;
  transform: translateY(2px);
  transition: opacity var(--motion-fast) linear, transform var(--motion-state) var(--ease-standard);
}

.task-panel[data-active="true"] .analysis-cores {
  opacity: 1;
  transform: translateY(0);
}

.analysis-cores::before,
.analysis-cores::after {
  position: absolute;
  top: 5px;
  left: 17%;
  width: 66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(83, 199, 165, 0.42), transparent);
  content: "";
  transform: scaleX(0.2);
  opacity: 0.25;
  transition: transform var(--motion-data) var(--ease-standard), opacity var(--motion-fast) linear;
}

.analysis-cores::after {
  background: linear-gradient(90deg, transparent, rgba(181, 86, 255, 0.24), transparent);
  filter: blur(2px);
}

.task-panel[data-phase="synthesis"] .analysis-cores::before,
.task-panel[data-phase="synthesis"] .analysis-cores::after,
.task-panel[data-phase="validating"] .analysis-cores::before,
.task-panel[data-phase="validating"] .analysis-cores::after,
.task-panel[data-phase="saving"] .analysis-cores::before,
.task-panel[data-phase="saving"] .analysis-cores::after {
  transform: scaleX(1);
  opacity: 0.9;
  animation: core-link-flow 1.2s linear infinite;
}

.analysis-cores > span {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  text-align: center;
}

.analysis-cores > span small {
  color: rgba(139, 154, 160, 0.72);
  font-family: "Segoe UI Variable", "Microsoft YaHei UI", sans-serif;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.45;
  white-space: nowrap;
}

.analysis-cores i {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.task-panel[data-phase="analysis"] .analysis-cores i {
  border-color: rgba(83, 199, 165, 0.88);
  background: rgba(83, 199, 165, 0.32);
  box-shadow: 0 0 12px rgba(83, 199, 165, 0.58);
  animation: analysis-core-pulse 950ms ease-in-out infinite alternate;
}

.task-panel[data-phase="analysis"] .analysis-cores > span:nth-child(2) i { animation-delay: 160ms; }
.task-panel[data-phase="analysis"] .analysis-cores > span:nth-child(3) i { animation-delay: 320ms; }

.task-panel[data-phase="synthesis"] .analysis-cores i,
.task-panel[data-phase="validating"] .analysis-cores i,
.task-panel[data-phase="saving"] .analysis-cores i {
  border-color: rgba(181, 86, 255, 0.48);
  background: rgba(181, 86, 255, 0.14);
  box-shadow: 0 0 14px rgba(181, 86, 255, 0.22);
}

.evidence-router {
  position: relative;
  display: grid;
  min-height: 190px;
  grid-template-rows: auto 1fr auto;
  align-self: stretch;
  margin-top: 17px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 15px 2px 2px;
  isolation: isolate;
}

.evidence-router::before {
  position: absolute;
  inset: 1px 0 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 55%, rgba(83, 199, 165, 0.07), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 18%, rgba(83, 199, 165, 0.025) 18.2%, transparent 18.5% 36%);
  content: "";
  pointer-events: none;
}

.evidence-router-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: rgba(115, 217, 187, 0.72);
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.evidence-router-head small {
  color: var(--text-muted);
  font-family: "Segoe UI Variable", "Microsoft YaHei UI", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.evidence-synthesis {
  position: relative;
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  border-top: 1px solid rgba(38, 49, 57, 0.82);
  background: linear-gradient(90deg, rgba(83, 199, 165, 0.025), transparent 76%);
  padding: 9px 10px 7px;
  color: var(--text-muted);
}

.evidence-synthesis::before {
  position: absolute;
  top: 0;
  left: -35%;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115, 217, 187, 0.9), transparent);
  content: "";
  opacity: 0;
  transform: translateX(0);
}

.evidence-synthesis span {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.evidence-synthesis b {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 550;
}

.task-panel[data-phase="analysis"] .evidence-router,
.task-panel[data-phase="synthesis"] .evidence-router,
.task-panel[data-phase="validating"] .evidence-router,
.task-panel[data-phase="saving"] .evidence-router {
  border-top-color: rgba(83, 199, 165, 0.24);
}

.task-panel[data-phase="synthesis"] .evidence-synthesis,
.task-panel[data-phase="validating"] .evidence-synthesis,
.task-panel[data-phase="saving"] .evidence-synthesis {
  background: linear-gradient(90deg, rgba(83, 199, 165, 0.075), rgba(181, 86, 255, 0.035) 82%, transparent);
  color: rgba(115, 217, 187, 0.86);
}

.task-panel[data-phase="synthesis"] .evidence-synthesis::before,
.task-panel[data-phase="validating"] .evidence-synthesis::before,
.task-panel[data-phase="saving"] .evidence-synthesis::before {
  opacity: 0.9;
  animation: evidence-rail-flow 1.65s var(--ease-standard) infinite;
}

@keyframes evidence-rail-flow {
  from { opacity: 0; transform: translateX(0); }
  18% { opacity: 0.9; }
  to { opacity: 0; transform: translateX(420%); }
}

@keyframes analysis-core-pulse {
  from { transform: scale(0.78); opacity: 0.55; }
  to { transform: scale(1.18); opacity: 1; }
}

@keyframes core-link-flow {
  from { filter: brightness(0.72); }
  50% { filter: brightness(1.45); }
  to { filter: brightness(0.72); }
}

.phase-list {
  display: grid;
  margin-top: 18px;
}

.phase-list div {
  position: relative;
  display: grid;
  min-height: 34px;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: flex-start;
  align-content: start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.phase-list div:not(:last-child)::after {
  position: absolute;
  top: 9px;
  bottom: -3px;
  left: 3px;
  width: 1px;
  background: var(--line);
  content: "";
}

.phase-list span {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.phase-list b {
  font-weight: 500;
}

.phase-list small {
  display: none;
  grid-column: 2;
  margin-top: -6px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.phase-list div.complete,
.phase-list div.active {
  color: var(--text-secondary);
}

.phase-list div.complete span {
  border-color: var(--positive);
  background: var(--positive);
}

.phase-list div.active span {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(83, 199, 165, 0.13);
  animation: phase-node-scan 1.15s ease-in-out infinite alternate;
}

@keyframes phase-node-scan {
  from { box-shadow: 0 0 0 2px rgba(83, 199, 165, 0.08); }
  to { box-shadow: 0 0 0 5px rgba(83, 199, 165, 0.2), 0 0 14px rgba(83, 199, 165, 0.32); }
}

.phase-list div.active b {
  color: var(--text);
  font-weight: 620;
}

.phase-list div.complete small,
.phase-list div.active small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-list div.active small {
  color: rgba(137, 232, 205, 0.82);
  animation: phase-copy-roll 2.2s var(--ease-enter) infinite;
}

@keyframes phase-copy-roll {
  0% { opacity: 0; transform: translateY(4px); }
  14%, 78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

.research-term {
  position: relative;
  min-height: 132px;
  margin-top: auto;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 14px 2px 2px;
  isolation: isolate;
}

.research-term::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 88% 18%, rgba(83, 199, 165, 0.08), transparent 34%),
    linear-gradient(120deg, transparent 20%, rgba(83, 199, 165, 0.025) 54%, transparent 78%);
  content: "";
  pointer-events: none;
}

.research-atmosphere {
  position: absolute;
  inset: 1px 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.research-meteor {
  position: absolute;
  top: 18%;
  left: -72px;
  width: 62px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115, 217, 187, 0.16) 28%, rgba(226, 255, 247, 0.9));
  opacity: 0;
  transform: rotate(13deg);
  transform-origin: right center;
}

.research-meteor::after {
  position: absolute;
  right: -1px;
  top: -1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(226, 255, 247, 0.96);
  content: "";
  box-shadow: 0 0 7px rgba(83, 199, 165, 0.62);
}

.research-meteor:nth-child(2) { top: 34%; width: 42px; animation-delay: 70ms; }
.research-meteor:nth-child(3) { top: 57%; width: 54px; animation-delay: 145ms; }
.research-meteor:nth-child(4) { top: 72%; width: 36px; animation-delay: 225ms; }
.research-meteor:nth-child(5) { top: 10%; width: 46px; animation-delay: 305ms; }

.research-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -26%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(83, 199, 165, 0.08), transparent);
  opacity: 0;
}

.research-copy {
  position: relative;
  z-index: 1;
  min-height: 112px;
}

.research-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(115, 217, 187, 0.74);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.research-label small {
  color: var(--text-muted);
  font-family: "Segoe UI Variable", "Microsoft YaHei UI", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.research-code {
  display: block;
  margin-top: 8px;
  color: var(--accent-strong);
  font-family: var(--font-tech);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(3, 14, 16, 0.72);
}

.research-term strong {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.research-term p {
  display: -webkit-box;
  min-height: 37px;
  margin: 7px 0 0;
  overflow: hidden;
  border-left: 2px solid rgba(83, 199, 165, 0.34);
  padding-left: 10px;
  color: rgba(190, 204, 200, 0.78);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.58;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 901px) {
  .phase-list div {
    min-height: 44px;
    gap: 12px;
    font-size: 13px;
  }

  .phase-list div:not(:last-child)::after {
    top: 10px;
    bottom: -4px;
  }

  .phase-list span {
    width: 8px;
    height: 8px;
    margin-top: 4px;
  }

  .phase-list small {
    margin-top: -4px;
    font-size: 12px;
    line-height: 1.55;
  }

  .task-panel > .research-term {
    min-height: 190px;
    padding: 19px 4px 17px;
  }

  .research-copy {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto auto 1fr;
  }

  .research-label,
  .research-label small {
    font-size: 12px;
  }

  .research-code {
    margin-top: 10px;
    font-size: 26px;
  }

  .research-term strong {
    margin-top: 5px;
    font-size: 15px;
  }

  .research-term p {
    min-height: 0;
    align-self: start;
    margin-top: 11px;
    padding-left: 12px;
    color: rgba(210, 222, 219, 0.84);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    -webkit-line-clamp: 3;
  }
}

.research-term.is-changing .research-copy {
  animation: research-copy-decode 760ms var(--ease-enter) both;
}

.research-term.is-changing .research-meteor {
  animation-name: research-meteor-flight;
  animation-duration: 620ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}

.research-term.is-changing .research-scan {
  animation: research-scan-pass 640ms ease-out both;
}

@keyframes research-copy-decode {
  0% { opacity: 1; filter: blur(0); transform: translateY(0); }
  25% { opacity: 0; filter: blur(2px); transform: translateY(-5px); }
  36% { opacity: 0; filter: blur(2px); transform: translateY(7px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes research-meteor-flight {
  0% { opacity: 0; transform: translate3d(-14px, -8px, 0) rotate(13deg); }
  18% { opacity: 0.9; }
  74% { opacity: 0.52; }
  100% { opacity: 0; transform: translate3d(390px, 84px, 0) rotate(13deg); }
}

@keyframes research-scan-pass {
  0% { opacity: 0; transform: translateX(0); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: translateX(700%); }
}

.task-panel > .text-button {
  margin-top: 12px;
}

.failure-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  border: 1px solid rgba(229, 121, 121, 0.36);
  border-radius: var(--radius-lg);
  background: rgba(229, 121, 121, 0.055);
  padding: 14px 16px;
}

.failure-panel > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--negative);
  font-size: 12px;
}

.failure-panel p {
  flex: 1;
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.report-panel {
  margin-top: 14px;
  overflow: hidden;
  scroll-margin-top: 82px;
}

.report-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.report-head h2 {
  font-size: 20px;
}

.report-head p:last-child {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(215, 172, 99, 0.045);
  color: var(--warning);
  padding: 10px 20px;
  font-size: 11px;
}

.report-notice svg {
  width: 14px;
  height: 14px;
}

.report-compatibility {
  border-bottom: 1px solid rgba(215, 172, 99, 0.22);
  background: rgba(215, 172, 99, 0.07);
  color: var(--warning);
  padding: 12px 20px;
  font-size: 11px;
  line-height: 1.6;
}

.report-summary {
  display: grid;
  gap: 0;
  background:
    linear-gradient(rgba(83, 199, 165, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 199, 165, 0.018) 1px, transparent 1px),
    #0d1114;
  background-size: 32px 32px;
  padding: clamp(18px, 3vw, 34px);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(13, 19, 23, 0.86);
}

.decision-grid > div {
  min-height: 84px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.decision-grid > div:nth-child(4n) {
  border-right: 0;
}

.decision-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.decision-grid span,
.risk-summary span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.decision-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--text-secondary);
  font-family: "Cascadia Mono", "Microsoft YaHei UI", Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.decision-grid .decision-primary {
  grid-row: span 2;
  border-bottom: 0;
  background: linear-gradient(145deg, rgba(83, 199, 165, 0.08), rgba(13, 19, 23, 0.2));
}

.decision-primary strong {
  margin-top: 15px;
  color: var(--accent);
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: 0.08em;
}

.decision-primary strong[data-direction="short"] {
  color: var(--negative);
}

.decision-primary strong[data-direction="neutral"] {
  color: var(--warning);
}

.decision-primary small {
  display: inline-flex;
  margin-top: 12px;
  border: 1px solid rgba(83, 199, 165, 0.26);
  border-radius: 2px;
  color: var(--accent);
  padding: 4px 7px;
  font-size: 11px;
}

.decision-primary small[data-status="blocked"] {
  border-color: rgba(229, 121, 121, 0.3);
  color: var(--negative);
}

.decision-primary small[data-status="waiting"] {
  border-color: rgba(215, 172, 99, 0.3);
  color: var(--warning);
}

.execution-zone-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(83, 199, 165, 0.24);
  border-top: 0;
  background: rgba(83, 199, 165, 0.045);
  padding: 14px;
}

.execution-zone-strip span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.execution-zone-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-family: "Cascadia Mono", "Microsoft YaHei UI", Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.execution-zone-strip p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
}

.quality-proof {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.quality-proof > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.quality-proof > div span {
  border: 1px solid rgba(83, 199, 165, 0.2);
  background: rgba(83, 199, 165, 0.04);
  color: var(--text-secondary);
  padding: 5px 8px;
  font-size: 11px;
}

.summary-section {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.market-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 24px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.market-summary li {
  position: relative;
  color: var(--text-secondary);
  padding-left: 13px;
  font-size: 12px;
  line-height: 1.65;
}

.market-summary li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 4px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.analyst-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.analyst-summary-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(15, 22, 27, 0.78);
  padding: 14px;
}

.analyst-summary-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.analyst-summary-card strong {
  color: var(--text);
  font-size: 11px;
}

.analyst-summary-card span {
  color: var(--accent);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
}

.analyst-summary-card p {
  margin: 12px 0 7px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
}

.analyst-summary-card small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.risk-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 24px;
}

.risk-summary > div {
  border-left: 2px solid rgba(215, 172, 99, 0.46);
  padding-left: 13px;
}

.risk-summary p {
  margin: 7px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
}

.report-panel pre {
  max-height: 72vh;
  margin: 0;
  overflow: auto;
  background: #0d1114;
  color: #cbd4d2;
  padding: clamp(18px, 3vw, 36px);
  font-family: "Cascadia Mono", "Microsoft YaHei UI", Consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
  tab-size: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

.history-command {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: rgba(13, 17, 20, 0.88);
}

.history-filter,
.history-custom-range label {
  display: grid;
  gap: 5px;
  color: var(--text-muted);
  font-size: 10px;
}
.history-secondary-filters { display: contents; }
.history-more-toggle { display: none; }

.history-filter select,
.history-custom-range input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: 0;
  background: #0a0e11;
  color: var(--text-secondary);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}

.history-filter select:focus-visible,
.history-custom-range input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(83, 199, 165, 0.14);
}

.history-reset {
  min-height: 42px;
  align-self: end;
  padding: 0 8px;
}

.history-custom-range {
  display: grid;
  grid-column: 2 / span 3;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.history-custom-range[hidden] {
  display: none;
}

.history-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 2px 10px;
}

.history-results-bar > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.history-all-time { min-height: 36px; font-size: 11px; }

.history-results-bar strong {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
}

.history-results-bar span,
.history-snapshot-note {
  color: var(--text-muted);
  font-size: 11px;
}

.history-snapshot-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.history-snapshot-note svg {
  width: 14px;
}

.history-workspace {
  display: grid;
  grid-template-columns: minmax(350px, 0.8fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 16px;
}

.history-workspace.has-preview {
  grid-template-columns: minmax(350px, 0.8fr) minmax(0, 1.35fr);
}

.history-reader-empty {
  min-height: 480px;
  padding: clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.history-reader-empty h2 { margin: 18px 0; font-size: 32px; line-height: 1.5; font-weight: 500; }
.history-reader-empty > p:not(.section-label) { color: var(--text-secondary); font-size: 13px; line-height: 1.9; }
.history-reader-empty > span { margin-top: 36px; color: var(--text-muted); font-size: 11px; }
.history-reader-empty[hidden] { display: none; }

.history-table {
  min-width: 0;
  overflow: hidden;
}

#recentList {
  max-height: clamp(420px, 66vh, 820px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior: contain;
  transition: opacity var(--motion-fast) var(--ease-standard);
}

#recentList[aria-busy="true"] {
  opacity: 0.56;
  pointer-events: none;
}

.history-header,
.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}

.history-header {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  background: #0d1114;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.history-row {
  position: relative;
  min-height: 0;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(38, 49, 57, 0.76);
  transition: background-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row:hover,
.history-row.is-selected {
  background: var(--surface-hover);
}

.history-row.is-selected {
  box-shadow: inset 2px 0 var(--accent);
}

.history-row:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.history-row .history-action { position: static; grid-column: 2; grid-row: 2; align-self: end; font-size: 11px; }
.history-row .history-action::after { content: ""; position: absolute; inset: 0; }
.history-row .history-delivery { grid-column: 2; grid-row: 1; align-self: start; font-size: 11px; }
.history-row .history-insight { grid-column: 1; grid-row: 2; }
.history-row .history-insight p { max-width: 32ch; }
.history-row .history-identity { grid-column: 1; grid-row: 1; }

.history-identity strong,
.history-identity span {
  display: block;
}

.history-identity strong {
  color: var(--text);
  font-family: var(--font-tech);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.035em;
}

.history-identity span {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10px;
}

.history-insight {
  min-width: 0;
}

.history-signal-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
}

.history-direction {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.history-direction.long { border-color: rgba(103, 201, 166, 0.38); color: var(--positive); background: rgba(103, 201, 166, 0.07); }
.history-direction.short { border-color: rgba(229, 121, 121, 0.38); color: var(--negative); background: rgba(229, 121, 121, 0.07); }

.history-insight p {
  display: -webkit-box;
  margin: 8px 0 5px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.history-insight small {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-family: var(--font-tech);
  font-size: 11px;
  line-height: 1.6;
}
.history-insight [hidden] { display: none; }

@media (min-width: 1051px) {
  .history-row[data-status="done"] .history-insight p { display: none; }
}

.history-delivery {
  display: grid;
  align-content: center;
}

.history-pagination {
  display: grid;
  min-height: 66px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 12px 18px;
}

.history-pagination[hidden] { display: none; }
.history-pagination > button:first-child { justify-self: start; }
.history-pagination > button:last-child { justify-self: end; }
.history-pagination > span { color: var(--text-muted); font-size: 11px; }

.history-preview {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  max-height: calc(100vh - var(--header-height) - 36px);
  overflow: auto;
  animation: history-preview-in var(--motion-panel) var(--ease-enter);
}

@keyframes history-preview-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.history-preview-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 22, 26, 0.97);
  padding: 20px;
  backdrop-filter: blur(12px);
}

.history-preview-header h2 {
  margin-top: 5px;
  font-size: 22px;
  line-height: 1.35;
}

.history-preview-header p:last-child {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 10px;
}

.history-preview-loading {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  padding: 24px;
  font-size: 12px;
}

.history-preview-body {
  padding: 24px;
}
.history-preview-retry { margin: 0 24px 24px; }

.history-preview-decision {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  border: 1px solid var(--line);
  background: #0d1114;
}

.history-preview-decision > div {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 12px;
}

.history-preview-decision > div:last-child { border-right: 0; }
.history-preview-decision span,
.history-preview-label { color: var(--text-secondary); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.history-preview-decision strong { display: block; margin-top: 8px; font-family: var(--font-tech); font-size: 16px; line-height: 1.6; }
.history-preview-decision > div:first-child strong { font-size: 24px; }
.history-preview-decision > div:last-child strong { font-size: 12px; color: var(--text-secondary); }
.history-preview-decision strong[data-direction="long"] { color: var(--positive); }
.history-preview-decision strong[data-direction="short"] { color: var(--negative); }

.history-preview-body section {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.history-preview-body section p {
  margin: 7px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.85;
}

.history-preview-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.history-preview-levels > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(105, 226, 255, 0.1);
  background: rgba(4, 18, 28, 0.48);
}

.history-preview-levels span,
.history-preview-analysts span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.history-preview-levels strong {
  display: block;
  margin-top: 5px;
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: 16px;
  line-height: 1.45;
}

.history-preview-analysts {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.history-preview-analysts article {
  padding: 10px 11px;
  border-left: 2px solid rgba(84, 224, 255, 0.45);
  background: linear-gradient(90deg, rgba(20, 155, 190, 0.08), rgba(8, 16, 26, 0.08));
}

.history-preview-analysts article > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.history-preview-analysts strong {
  color: var(--text-primary);
  font-size: 13px;
}

.history-preview-analysts p {
  margin-top: 5px !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.history-preview-actions { padding-top: 18px; }
.history-preview-actions .button { width: 100%; }

.history-preview pre {
  max-height: 60vh;
  margin: 18px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  background: #090d10;
  color: #cbd4d2;
  padding: 16px;
  font-family: "Cascadia Mono", "Microsoft YaHei UI", Consolas, monospace;
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 11px;
}

.status-text::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  content: "";
}

.status-text.done::before { background: var(--positive); }
.status-text.failed::before { background: var(--negative); }
.status-text.running::before { background: var(--accent); }
.status-text.queued::before { background: var(--warning); }

.history-action {
  justify-self: start;
}

.table-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

.wallet-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(380px, 1.2fr);
  gap: 24px;
}

.wallet-balance,
.deposit-panel {
  min-height: 0;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(227, 246, 240, 0.05);
}

.wallet-balance {
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 0 0, rgba(83, 199, 165, 0.07), transparent 80%), var(--surface);
}

.wallet-balance h2 {
  margin: 12px 0 24px;
  font-family: var(--font-tech);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.wallet-balance h2 small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.wallet-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wallet-metrics div {
  min-width: 0;
  padding: 14px 10px 14px 0;
}

.wallet-metrics div + div {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.wallet-metrics span,
.wallet-metrics strong {
  display: block;
}

.wallet-metrics span {
  color: var(--text-muted);
  font-size: 13px;
}

.wallet-metrics strong {
  margin-top: 5px;
  overflow: hidden;
  color: var(--text-secondary);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-balance > p:last-child {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.wallet-network {
  display: grid;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 28px;
  font-size: 12px;
}

.wallet-network div { display: flex; justify-content: space-between; gap: 16px; }
.wallet-network dt { color: var(--text-muted); }
.wallet-network dd { margin: 0; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.deposit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  column-gap: 18px;
}

.deposit-panel .panel-heading,
.deposit-panel .microcopy {
  grid-column: 1 / -1;
}

.deposit-panel .field {
  margin-top: 22px;
  margin-bottom: 12px;
}

.amount-input {
  position: relative;
}

.amount-input input {
  padding-right: 62px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  min-height: 60px;
  font-size: 26px;
  border-radius: 10px;
}

.amount-input span {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
}

.deposit-presets {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-self: end;
  margin-bottom: 12px;
}

.deposit-presets button {
  height: 52px;
  font-family: var(--font-tech);
  font-size: 19px;
  border-radius: 9px;
  transition: background 200ms var(--ease-enter), color 200ms var(--ease-enter), transform 200ms var(--ease-enter);
}

.deposit-presets small {
  font-size: 10px;
  font-weight: 500;
}

.deposit-amount-help {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

.deposit-panel > .button {
  align-self: center;
  min-height: 48px;
  border-radius: 10px;
}

.deposit-order {
  margin-top: 24px;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 20px;
  scroll-margin-top: 90px;
}

.deposit-order-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.deposit-order-head > span {
  color: var(--text-muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
}

.txid-field summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
  padding-block: 10px;
}

.txid-field[open] summary {
  margin-bottom: 12px;
}

.deposit-qr {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 24px;
  border-radius: 14px;
  background: rgba(227, 246, 240, 0.025);
}

.deposit-qr img {
  background: #fff;
  border-radius: 8px;
  flex: 0 0 160px;
}

.deposit-qr figcaption {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
  max-width: 26ch;
  text-align: center;
}

.deposit-qr figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 7px;
  font-weight: 550;
}

.deposit-qr figcaption em {
  font-style: normal;
  color: #e3bd81;
}

.deposit-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.deposit-payment-details { min-width: 0; }

.deposit-amount-card {
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(83, 199, 165, 0.075), rgba(83, 199, 165, 0.015));
  box-shadow: inset 0 0 0 1px rgba(83, 199, 165, 0.2), inset 0 1px 0 rgba(214, 244, 232, 0.06);
}

#depositExactLabel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  color: #c9e5da;
  font-size: 13px;
}

#depositExactLabel span { font-family: var(--font-tech); letter-spacing: 0.1em; }

#depositExpectedAmount {
  display: block;
  color: var(--text);
  font-family: var(--font-tech);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
  user-select: all;
}

.deposit-amount-decimals { color: #86dfc1; }

.deposit-exact-warning {
  margin: 16px 0 20px;
  padding-left: 12px;
  border-left: 2px solid #bc975b;
  color: #ebcca0;
  font-size: 14px;
  line-height: 1.85;
  text-wrap: pretty;
}

#copyDepositAmountBtn { min-height: 46px; border-radius: 9px; }

.deposit-fee-note {
  margin: 14px 0 0;
  color: #b4c4be;
  font-size: 12px;
  line-height: 1.8;
}

.deposit-order[data-payable="false"] .deposit-amount-card {
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}

.deposit-order[data-payable="false"] .deposit-amount-decimals { color: var(--text-secondary); }
.deposit-order[data-payable="false"] .deposit-payment-layout { grid-template-columns: minmax(0, 1fr); }
.deposit-order[data-payable="false"] #copyDepositAmountBtn { display: none; }

#walletView button:focus-visible, #walletView summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .deposit-payment-layout { grid-template-columns: minmax(0, 1fr); }
  .deposit-qr { flex-direction: row; flex-wrap: wrap; }
  .deposit-qr figcaption { flex: 1 1 170px; }
  .deposit-order-head { flex-wrap: wrap; gap: 12px; }
  .deposit-order .deposit-status-line { align-items: flex-start; flex-direction: column; gap: 12px; }
  .deposit-amount-card { padding: 20px; }
  #copyDepositAmountBtn { width: 100%; }
}

.deposit-instructions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.deposit-instructions span,
.deposit-instructions code {
  display: block;
}

.deposit-instructions span {
  color: var(--text-muted);
  font-size: 11px;
}

.deposit-instructions code {
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  user-select: all;
}

.txid-field {
  margin-top: 18px;
}

.inline-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.deposit-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.deposit-status-line > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-rules div {
  padding: 18px 18px 20px 0;
}

.payment-rules div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.payment-rules strong,
.payment-rules span {
  display: block;
}

.payment-rules strong {
  font-size: 11px;
}

.payment-rules span {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.mobile-nav {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(2, 5, 6, 0.78);
  padding: 24px;
  backdrop-filter: blur(6px);
}

.modal {
  width: min(100%, 520px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.modal-small {
  width: min(100%, 430px);
}

.modal-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.modal-body {
  padding: 20px;
}

.confirm-summary {
  margin: 0;
}

.confirm-summary div,
.account-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.confirm-summary div:first-child,
.account-summary > div:first-child {
  border-top: 1px solid var(--line);
}

.confirm-summary dt,
.account-summary span {
  color: var(--text-muted);
  font-size: 11px;
}

.confirm-summary dd,
.account-summary strong {
  margin: 0;
  color: var(--text-secondary);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.account-summary .component-credit {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.component-credit a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 16px 20px 20px;
}

.modal-actions.single {
  grid-template-columns: 1fr;
}

.modal-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.warning-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
  border-left: 2px solid var(--warning);
  background: rgba(215, 172, 99, 0.055);
  padding: 12px;
  color: var(--warning);
}

.warning-block svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.warning-block p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.account-summary p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-toast);
  display: grid;
  width: min(360px, calc(100vw - 36px));
  gap: 8px;
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #172025;
  padding: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  color: var(--text-secondary);
  font-size: 11px;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-color: rgba(229, 121, 121, 0.45);
}

.toast svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.toast.error svg {
  color: var(--negative);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .analysis-workspace {
    grid-template-areas:
      "command task"
      "market market";
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  }

  .task-panel {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 1.2fr);
    column-gap: 34px;
  }

  .task-topline,
  .task-panel h2,
  .task-description,
  .engine-rail,
  .progress-track,
  .evidence-router,
  .task-panel > .text-button {
    grid-column: 1;
  }

  .phase-list,
  .research-term {
    grid-column: 2;
  }

  .phase-list {
    grid-row: 1 / span 5;
    margin-top: 0;
  }

  .research-term {
    margin-top: 8px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav,
  .service-state,
  .balance-chip {
    display: none;
  }

  .analysis-workspace {
    grid-template-areas:
      "command"
      "task"
      "market";
    grid-template-columns: 1fr;
  }

  .command-panel,
  .market-panel,
  .task-panel {
    min-height: auto;
  }

  .task-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .task-panel > .research-term {
    margin-top: 8px;
  }

  .evidence-router {
    display: block;
    min-height: 0;
    margin-top: 13px;
    overflow: visible;
    border-top: 0;
    padding: 0;
  }

  .evidence-router::before,
  .evidence-router-head,
  .evidence-synthesis,
  .analysis-cores > span small {
    display: none;
  }

  .analysis-cores {
    height: 34px;
    min-height: 34px;
    gap: 8px;
    margin: 0;
  }

  .task-topline,
  .task-panel h2,
  .task-description,
  .engine-rail,
  .progress-track,
  .evidence-router,
  .phase-list,
  .research-term,
  .task-panel > .text-button {
    grid-column: 1;
  }

  .phase-list {
    grid-row: auto;
    margin-top: 18px;
  }

  .engine-rail {
    gap: 9px;
    margin-bottom: 12px;
  }

  .engine-signature b {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .engine-state {
    font-size: 9.5px;
  }

  .wallet-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .history-secondary-filters { display: none; }
  .history-secondary-filters.is-expanded { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .history-more-toggle { display: block; min-height: 44px; text-align: left; }
  .history-reset { justify-self: end; }
  :root {
    --header-height: 56px;
  }

  body::before {
    background-size: auto, 54px 54px, 54px 54px;
  }

  .ambient-field {
    opacity: 0.72;
  }

  .icon-button,
  .icon-button.small {
    width: 44px;
    height: 44px;
  }

  .auth-view {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: 270px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 20px;
  }

  .auth-copy {
    padding: 42px 0 26px;
  }

  .auth-copy h1 {
    max-width: 20ch;
    font-size: 29px;
  }

  .auth-copy > p:last-child {
    display: none;
  }

  .auth-foot {
    display: none;
  }

  .auth-panel {
    min-height: auto;
    padding: 34px 20px 48px;
  }

  .brand-word {
    font-size: 16px;
  }

  .preview-tag {
    display: none;
  }

  .app-main {
    width: min(100% - 20px, 680px);
    padding: 22px 0 calc(88px + env(safe-area-inset-bottom));
  }

  .discipline-tape {
    min-height: 66px;
    padding-top: 11px;
  }

  .discipline-viewport p {
    font-size: 13px;
  }

  .research-term {
    min-height: 128px;
    padding-top: 13px;
  }

  .research-code {
    font-size: 19px;
  }

  .research-term p {
    font-size: 13px;
  }

  .research-meteor:nth-child(n + 4) {
    display: none;
  }

  .header-inner {
    width: calc(100% - 20px);
  }

  .page-heading {
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .page-heading h1 {
    font-size: 22px;
  }

  .analysis-heading {
    display: block;
  }

  .heading-meta {
    margin-top: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heading-metric:nth-child(3) {
    grid-column: 1 / -1;
    border-left: 0;
  }

  .heading-metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .heading-metric small,
  .heading-meta strong,
  .command-facts div,
  .quota-line,
  .task-description,
  .phase-list div,
  .phase-list small,
  .market-foot,
  .payment-rules strong,
  .payment-rules span {
    font-size: 12px;
  }

  .analysis-workspace {
    gap: 10px;
  }

  .command-panel,
  .task-panel,
  .wallet-balance,
  .deposit-panel,
  .deposit-order {
    padding: 17px;
  }

  .market-panel {
    grid-template-rows: auto 230px auto;
  }

  .chart-wrap {
    min-height: 230px;
  }

  .market-head {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px;
  }

  .market-head > div:first-child {
    flex: 1 1 100%;
  }

  #marketTitle {
    white-space: nowrap;
  }

  .market-source {
    width: 100%;
    justify-content: space-between;
    margin-top: 9px;
  }

  .market-source > span {
    max-width: calc(100% - 52px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .market-foot {
    padding: 0 14px;
  }

  .failure-panel {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .failure-panel p {
    flex-basis: calc(100% - 100px);
  }

  .report-head {
    align-items: flex-start;
    padding: 17px;
  }

  .report-head .button span {
    display: none;
  }

  .report-actions {
    gap: 5px;
  }

  .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-grid .decision-primary {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .decision-grid > div,
  .decision-grid > div:nth-child(4n),
  .decision-grid > div:nth-last-child(-n + 3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .decision-grid > div:nth-child(2n + 1),
  .decision-grid .decision-primary {
    border-right: 0;
  }

  .decision-grid > div:last-child {
    border-bottom: 0;
  }

  .execution-zone-strip {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .market-summary,
  .analyst-summary-grid,
  .risk-summary {
    grid-template-columns: 1fr;
  }

  .report-panel pre {
    max-height: none;
    font-size: 11px;
  }

  .history-header {
    display: none;
  }

  .history-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding: 14px;
  }

  .history-status {
    align-self: start;
  }

  .history-duration {
    margin-top: 0;
  }

  .history-action {
    justify-self: end;
  }

  .wallet-balance h2 {
    font-size: 34px;
  }

  .wallet-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-metrics div + div {
    border-left: 1px solid var(--line);
    padding-left: 14px;
  }

  .deposit-panel {
    grid-template-columns: 1fr;
  }

  .deposit-panel .panel-heading,
  .deposit-panel .microcopy {
    grid-column: 1;
  }

  .deposit-presets {
    margin-bottom: 16px;
  }

  .inline-action {
    grid-template-columns: 1fr;
  }

  .deposit-status-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-rules {
    grid-template-columns: 1fr;
  }

  .payment-rules div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-header);
    display: grid;
    height: calc(62px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(10, 13, 16, 0.97);
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: blur(12px);
  }

  .mobile-nav a {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: var(--text-muted);
    font-size: 11px;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--accent-strong);
  }

  .mobile-nav svg {
    width: 18px;
    height: 18px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .modal {
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }

  .modal-actions {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  input {
    font-size: 16px;
  }

  .button {
    min-height: 44px;
  }

  .toast-region {
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
  }
}

@media (max-width: 390px) {
  .market-price-row strong {
    font-size: 18px;
  }

  .market-foot {
    min-height: 52px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .history-command {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .history-custom-range {
    grid-column: 1 / span 2;
  }

  .history-workspace.has-preview {
    grid-template-columns: minmax(350px, 0.8fr) minmax(0, 1.35fr);
  }

  .history-header,
  .history-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
}

@media (max-width: 1050px) {
  .history-workspace,
  .history-workspace.has-preview {
    grid-template-columns: 1fr;
  }
  .history-reader-empty { display: none; }
  #recentList { max-height: none; overflow: visible; }

  .history-preview {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: calc(var(--z-header) - 1);
    max-height: none;
    border: 0;
    border-radius: 0;
    background: var(--bg);
  }

  .history-preview-header {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .history-preview-body {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
  }
}

@media (max-width: 720px) {
  .history-command {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .history-preview {
    bottom: calc(62px + env(safe-area-inset-bottom));
    scroll-padding-bottom: 24px;
    overscroll-behavior-y: contain;
  }

  .history-custom-range {
    grid-column: 1 / -1;
  }

  .history-timezone-filter,
  .history-reset {
    grid-column: auto;
  }

  .history-results-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
  }

  .history-results-bar > div {
    width: 100%;
    justify-content: space-between;
  }

  .history-snapshot-note {
    align-items: flex-start;
    line-height: 1.55;
  }

  .history-header {
    display: none;
  }

  .history-row {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 17px 15px;
  }

  .history-identity {
    grid-column: 1;
  }

  .history-insight {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .history-insight p {
    -webkit-line-clamp: 2;
  }

  .history-delivery {
    grid-column: 1;
    grid-row: 3;
  }

  .history-action {
    min-height: 44px;
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: end;
    padding: 0 4px;
  }

  .history-pagination {
    padding: 10px 12px;
  }

  .history-pagination .button {
    min-width: 44px;
    padding: 0 10px;
  }

  .history-preview-decision {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-preview-decision > div:nth-child(2) {
    border-right: 0;
  }

  .history-preview-decision > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .ambient-field {
    opacity: 0.38;
  }

  .burst-field {
    display: none;
  }

  body::after,
  .market-panel.market-pulse-up::before,
  .market-panel.market-pulse-down::before,
  .chart-skeleton span,
  .analysis-cores::before,
  .analysis-cores::after,
  .analysis-cores i,
  .evidence-synthesis::before,
  .engine-state,
  .phase-list div.active span,
  .phase-list div.active small,
  .toast {
    animation: none !important;
  }

  .research-atmosphere,
  .discipline-beam {
    display: none;
  }

  .research-term.is-changing .research-copy,
  .discipline-tape.is-changing .discipline-viewport p {
    animation: none !important;
  }

  .progress-track[data-activity="running"] div {
    animation: none;
  }

  .progress-track[data-activity="running"] div::before,
  .progress-track[data-activity="running"] div::after {
    display: none;
  }

  .progress-track[data-activity="running"]::before,
  .progress-track[data-activity="running"] .progress-head-field,
  .progress-track[data-activity="running"] .progress-head-particles {
    display: none;
  }

  .progress-track[data-activity="running"]::after {
    animation: none;
  }

  .progress-track div,
  .analysis-cores {
    transition-duration: 0.01ms;
  }
}
.auth-remember { margin: 16px 0; }
.auth-remember label { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.auth-remember input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: #65d7d0; }
.auth-remember small { display: block; margin: 7px 0 0 27px; color: #9aaebc; font-size: 12px; line-height: 1.6; }
