:root {
  --bg: #f6f9fb;
  --bg-alert: #fcf7f3;
  --paper: rgba(255, 255, 255, 0.9);
  --paper-soft: rgba(255, 255, 255, 0.68);
  --ink: #14202d;
  --ink-soft: #5c6a79;
  --muted: #8593a2;
  --line: rgba(127, 140, 157, 0.08);
  --line-strong: rgba(127, 140, 157, 0.14);
  --up: #0f7a59;
  --up-soft: #e8f7f1;
  --down: #be4f4f;
  --down-soft: #fdeeee;
  --alert: #bb6437;
  --alert-strong: #9f4f24;
  --alert-soft: #fff6f0;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
  --hero-ink: #14202d;
  --hero-muted: #7d8b9a;
  --chart-line: #1b2735;
  --chart-fill-top: rgba(31, 41, 55, 0.14);
  --chart-fill-bottom: rgba(31, 41, 55, 0.01);
  --chart-grid: rgba(107, 114, 128, 0.16);
  --chart-label: rgba(86, 101, 119, 0.82);
  --chart-axis: rgba(130, 144, 160, 0.9);
  --chart-guide: rgba(17, 24, 39, 0.12);
  --chart-point-stroke: #ffffff;
  --chart-callout: rgba(17, 24, 39, 0.9);
  --chart-callout-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(129, 169, 205, 0.11), transparent 22%),
    radial-gradient(circle at 0% 18%, rgba(218, 229, 239, 0.55), transparent 28%),
    linear-gradient(180deg, #fdfefe 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "SF Pro Display", "IBM Plex Sans", sans-serif;
  transition:
    background 180ms ease,
    color 180ms ease;
}

body[data-theme="dark"] {
  --bg: #0f141a;
  --bg-alert: #16120f;
  --paper: rgba(18, 25, 33, 0.92);
  --paper-soft: rgba(24, 31, 41, 0.82);
  --ink: #edf3f8;
  --ink-soft: #b2bfcc;
  --muted: #7f8d9b;
  --line: rgba(156, 170, 184, 0.11);
  --line-strong: rgba(188, 202, 216, 0.18);
  --up: #49c396;
  --up-soft: rgba(35, 111, 83, 0.26);
  --down: #ec8383;
  --down-soft: rgba(127, 53, 53, 0.24);
  --alert: #cf8d5d;
  --alert-strong: #eca36c;
  --alert-soft: #1d1712;
  --shadow: 0 20px 48px rgba(1, 5, 10, 0.34);
  --hero-ink: #f4f8fc;
  --hero-muted: #95a3b1;
  --chart-line: #d8e4f0;
  --chart-fill-top: rgba(139, 164, 189, 0.16);
  --chart-fill-bottom: rgba(139, 164, 189, 0);
  --chart-grid: rgba(156, 170, 184, 0.11);
  --chart-label: rgba(196, 208, 220, 0.78);
  --chart-axis: rgba(170, 184, 198, 0.84);
  --chart-guide: rgba(219, 231, 243, 0.1);
  --chart-point-stroke: #0f141a;
  --chart-callout: rgba(228, 236, 244, 0.94);
  --chart-callout-ink: #0f141a;
  background:
    radial-gradient(circle at top right, rgba(62, 94, 120, 0.16), transparent 26%),
    radial-gradient(circle at 0% 14%, rgba(39, 61, 80, 0.14), transparent 24%),
    linear-gradient(180deg, #0b1015 0%, #0f141a 42%, #11171d 100%);
}

::selection {
  background: rgba(17, 24, 39, 0.14);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 18%),
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.42), transparent 26%);
}

body[data-theme="dark"]::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 16%),
    radial-gradient(circle at 12% 0%, rgba(92, 118, 143, 0.1), transparent 24%);
}

strong {
  font-weight: 520;
}

body[data-mode="alert"] {
  background:
    radial-gradient(circle at top right, rgba(187, 100, 55, 0.1), transparent 24%),
    linear-gradient(180deg, #fffaf7 0%, var(--bg-alert) 100%);
}

body[data-mode="position"] {
  background:
    radial-gradient(circle at top right, rgba(15, 122, 89, 0.09), transparent 24%),
    linear-gradient(180deg, #f9fdfb 0%, var(--bg) 100%);
}

body[data-theme="dark"][data-mode="alert"] {
  background:
    radial-gradient(circle at top right, rgba(190, 122, 72, 0.14), transparent 24%),
    linear-gradient(180deg, #100d0b 0%, var(--bg-alert) 100%);
}

body[data-theme="dark"][data-mode="position"] {
  background:
    radial-gradient(circle at top right, rgba(73, 195, 150, 0.12), transparent 24%),
    linear-gradient(180deg, #0b1210 0%, var(--bg) 100%);
}

button,
input,
select,
textarea,
table {
  font: inherit;
}

button {
  appearance: none;
}

button:focus-visible,
.fold-panel summary:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.18);
  outline-offset: 2px;
}

@media (hover: none) and (pointer: coarse) {
  a,
  button,
  summary,
  [role="tab"] {
    -webkit-tap-highlight-color: transparent;
  }

  a:focus-visible,
  button:focus-visible,
  summary:focus-visible,
  [role="tab"]:focus-visible {
    outline: none;
  }
}

.page-shell {
  width: min(1220px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 26px;
  position: relative;
  z-index: 1;
  animation: fade-up 360ms ease-out;
}

.about-shell {
  width: min(1040px, calc(100vw - 28px));
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(185, 75, 27, 0.34);
  }

  100% {
    box-shadow: 0 0 0 12px rgba(185, 75, 27, 0);
  }
}

@keyframes pulse-hold {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 122, 89, 0.22);
  }

  100% {
    box-shadow: 0 0 0 12px rgba(15, 122, 89, 0);
  }
}

@keyframes idle-pulse {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(86, 101, 119, 0.24);
  }

  65% {
    transform: scale(1.08);
    box-shadow: 0 0 0 14px rgba(86, 101, 119, 0);
  }

  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(86, 101, 119, 0);
  }
}

@keyframes empty-breathe {
  0%,
  100% {
    transform: translateY(0);
    border-color: rgba(127, 140, 157, 0.16);
    background:
      radial-gradient(circle at top left, rgba(142, 182, 214, 0.07), transparent 30%),
      rgba(255, 255, 255, 0.6);
  }

  50% {
    transform: translateY(-2px);
    border-color: rgba(127, 140, 157, 0.24);
    background:
      radial-gradient(circle at top left, rgba(142, 182, 214, 0.1), transparent 30%),
      rgba(255, 255, 255, 0.68);
  }
}

@keyframes empty-breathe-dark {
  0%,
  100% {
    transform: translateY(0);
    border-color: rgba(148, 163, 184, 0.14);
    background:
      radial-gradient(circle at top left, rgba(92, 126, 156, 0.1), transparent 30%),
      rgba(15, 23, 33, 0.62);
  }

  50% {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.22);
    background:
      radial-gradient(circle at top left, rgba(92, 126, 156, 0.16), transparent 30%),
      rgba(18, 29, 41, 0.72);
  }
}

.dashboard {
  display: block;
}

.site-footer {
  margin-top: 22px;
  padding: 4px 2px 0;
}

.site-footer-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.about-page {
  display: grid;
  gap: 16px;
}

.about-page-text {
  gap: 0;
}

.about-hero,
.about-card,
.about-block {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.64)),
    var(--paper);
  box-shadow: var(--shadow);
}

.about-hero,
.about-block {
  padding: 22px;
}

.about-card {
  padding: 18px;
}

.about-article {
  max-width: 760px;
  padding: 8px 2px 0;
  display: grid;
  gap: 10px;
}

.about-article h2,
.about-article h3 {
  margin: 0;
}

.about-article h2 {
  font-size: clamp(1.38rem, 2vw, 1.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 560;
}

.about-article h3 {
  margin-top: 12px;
  font-size: 1.04rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 660;
  color: var(--ink);
}

.about-article p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
  font-size: 0.94rem;
}

.about-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  transition: color 140ms ease, opacity 140ms ease;
}

.about-link:hover {
  color: var(--orange-strong);
}

.about-hero {
  display: grid;
  gap: 8px;
}

.about-hero h2,
.about-block h2,
.about-card h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.about-hero h2 {
  font-size: clamp(1.42rem, 2.1vw, 1.9rem);
  line-height: 1.06;
  font-weight: 560;
}

.about-lead,
.about-card p,
.about-line p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
  font-size: 0.92rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-card h3 {
  font-size: 1rem;
  font-weight: 540;
  margin-bottom: 8px;
}

.about-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
  line-height: 1.52;
  font-size: 0.9rem;
}

.about-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.about-badge {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-stack {
  display: grid;
  gap: 10px;
}

.about-line {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.about-line:first-child {
  padding-top: 0;
  border-top: 0;
}

.about-line strong {
  font-size: 0.94rem;
  font-weight: 540;
  letter-spacing: -0.02em;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(372px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.workspace-left,
.right-rail {
  display: grid;
  gap: 18px;
}

.workspace-left > *,
.right-rail > * {
  opacity: 0;
  animation: rise-in 420ms ease-out forwards;
}

.workspace-left > *:nth-child(1),
.right-rail > *:nth-child(1) {
  animation-delay: 60ms;
}

.workspace-left > *:nth-child(2),
.right-rail > *:nth-child(2) {
  animation-delay: 120ms;
}

.workspace-left > *:nth-child(3),
.right-rail > *:nth-child(3) {
  animation-delay: 180ms;
}

.workspace-left > *:nth-child(4),
.right-rail > *:nth-child(4) {
  animation-delay: 240ms;
}

.right-rail {
  position: sticky;
  top: 18px;
}

.topbar,
.topbar-dock,
.hero-head,
.hero-headline,
.hero-pills,
.alert-banner,
.alert-meta,
.panel-head,
.panel-runtime,
.run-top,
.run-meta,
.feed-meta {
  display: flex;
  align-items: center;
}

.topbar,
.hero-head,
.alert-banner,
.panel-head,
.run-top {
  justify-content: space-between;
}

.topbar {
  position: relative;
  gap: 18px;
  margin-bottom: 14px;
}

.topbar-copy {
  display: flex;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 218, 166, 0.92), transparent 34%),
    linear-gradient(145deg, #f7a43a, #ef8a1d 62%, #df7014);
  border: 1px solid rgba(225, 120, 19, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 10px 22px rgba(241, 125, 28, 0.18);
}

.brand-mark-text {
  font-family: "Avenir Next", "Helvetica Neue", "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.11em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 2px rgba(131, 60, 10, 0.24);
  transform: translateX(-0.03em);
}

.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.eyebrow,
.section-label,
.metric-label,
.footer-label,
.status-pill,
.meta-pill,
.mini-pill,
.alert-label,
.alert-pill {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
}

.eyebrow,
.section-label,
.alert-label {
  margin: 0;
}

.topbar h1,
.panel h2,
.alert-banner h2,
.sheet-head h2 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(1.42rem, 2.16vw, 1.96rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 510;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.14em;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand-word-orange {
  color: #ef8a1d;
  font-family: "Avenir Next", "Helvetica Neue", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.44rem, 2.26vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-word-oracle {
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.34rem, 2.08vw, 1.92rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-style: italic;
}

.topbar-dock {
  margin-left: auto;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.topbar-menu-toggle {
  display: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.topbar-menu-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.topbar-menu-line {
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.topbar-menu-toggle[aria-expanded="true"] .topbar-menu-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.topbar-menu-toggle[aria-expanded="true"] .topbar-menu-line:nth-child(2) {
  opacity: 0;
}

.topbar-menu-toggle[aria-expanded="true"] .topbar-menu-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-link {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 520;
  letter-spacing: -0.01em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.topbar-link-x {
  min-width: 34px;
  width: 34px;
  padding: 0;
  color: var(--ink);
}

.topbar-link-x svg {
  width: 13px;
  height: 13px;
  display: block;
}

.topbar-link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.topbar-preferences {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.lang-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 122px;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 34px;
  padding: 0 34px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

.lang-select:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
}

.lang-select:focus-visible {
  outline: 2px solid rgba(247, 147, 26, 0.22);
  outline-offset: 2px;
}

.lang-select-caret {
  position: absolute;
  right: 11px;
  top: 50%;
  width: 12px;
  height: 12px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.lang-select-caret svg {
  display: block;
  width: 12px;
  height: 12px;
}

.btc-ticker {
  min-height: 34px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(247, 147, 26, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.98), rgba(255, 253, 251, 0.94)),
    rgba(255, 255, 255, 0.82);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(247, 147, 26, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.btc-ticker-mobile {
  display: none;
}

.btc-ticker:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 147, 26, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(247, 147, 26, 0.1);
}

.btc-ticker-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.btc-ticker-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.btc-ticker-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.btc-ticker-label {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.btc-ticker-value {
  font-size: 0.82rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.btc-ticker.is-offline .btc-ticker-value {
  color: var(--muted);
}

.pref-button {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

body[data-theme="dark"] .pref-button {
  background: rgba(22, 29, 38, 0.92);
  border-color: rgba(188, 202, 216, 0.09);
  color: #c3cfda;
}

body[data-theme="dark"] .lang-select {
  background: rgba(22, 29, 38, 0.92);
  border-color: rgba(188, 202, 216, 0.09);
  color: #d6dee6;
}

body[data-theme="dark"] .lang-select:hover {
  background: rgba(28, 37, 47, 0.96);
}

body[data-theme="dark"] .lang-select-caret {
  color: #95a3b1;
}

body[data-theme="dark"] .btc-ticker {
  border-color: rgba(247, 147, 26, 0.14);
  background:
    linear-gradient(180deg, rgba(33, 24, 17, 0.94), rgba(24, 21, 18, 0.92)),
    rgba(22, 29, 38, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(2, 6, 10, 0.24);
}

body[data-theme="dark"] .btc-ticker-label {
  color: #95a3b1;
}

body[data-theme="dark"] .about-hero,
body[data-theme="dark"] .about-card,
body[data-theme="dark"] .about-block {
  background:
    linear-gradient(180deg, rgba(20, 27, 35, 0.98), rgba(18, 25, 33, 0.95)),
    rgba(18, 25, 33, 0.94);
}

body[data-theme="dark"] .about-article p {
  color: #b4c0cc;
}

body[data-theme="dark"] .about-badge {
  background: rgba(22, 29, 38, 0.9);
  border-color: rgba(188, 202, 216, 0.08);
  color: #c3cfda;
}

body[data-theme="dark"] .topbar-link {
  background: rgba(22, 29, 38, 0.88);
  border-color: rgba(188, 202, 216, 0.09);
  color: #c3cfda;
}

body[data-theme="dark"] .topbar-link:hover {
  background: rgba(28, 37, 47, 0.96);
  color: #f2f6fa;
}

body[data-theme="dark"] .topbar-menu-toggle {
  background: rgba(22, 29, 38, 0.92);
  border-color: rgba(188, 202, 216, 0.09);
  color: #c3cfda;
}

body[data-theme="dark"] .brand-mark {
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 216, 159, 0.3), transparent 34%),
    linear-gradient(145deg, rgba(247, 164, 58, 0.92), rgba(239, 138, 29, 0.88) 62%, rgba(214, 101, 20, 0.86));
  border-color: rgba(244, 136, 27, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(244, 136, 27, 0.12);
}

body[data-theme="dark"] .brand-word-oracle {
  color: #f1f5f9;
}

body[data-theme="dark"] .brand-mark-text {
  color: rgba(255, 249, 242, 0.98);
}

.pref-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pref-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.pref-button:hover {
  color: var(--ink);
}

.theme-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  margin: auto;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.theme-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.theme-icon-sun {
  opacity: 0;
  transform: scale(0.72) rotate(-18deg);
}

body[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: scale(0.72) rotate(18deg);
}

body[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.topbar-dock > *,
.hero-pills > * {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.topbar-dock > *:hover,
.hero-pills > *:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.status-pill,
.meta-pill,
.mini-pill,
.alert-pill,
.ghost-button,
.sheet-close {
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

body[data-theme="dark"] .status-pill,
body[data-theme="dark"] .meta-pill,
body[data-theme="dark"] .mini-pill,
body[data-theme="dark"] .alert-pill,
body[data-theme="dark"] .ghost-button,
body[data-theme="dark"] .sheet-close {
  background: rgba(22, 29, 38, 0.88);
  border-color: rgba(188, 202, 216, 0.09);
}

.ghost-button,
.sheet-close {
  cursor: pointer;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#orders-history-button {
  margin-left: auto;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px 0 13px;
  white-space: nowrap;
  border-color: rgba(247, 147, 26, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 247, 238, 0.96), rgba(255, 253, 250, 0.9)),
    rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 20px rgba(247, 147, 26, 0.08);
}

#orders-history-button:hover {
  border-color: rgba(247, 147, 26, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 243, 230, 0.98), rgba(255, 250, 245, 0.94)),
    rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(247, 147, 26, 0.12);
}

#orders-history-button:focus-visible {
  outline: 2px solid rgba(247, 147, 26, 0.26);
  outline-offset: 2px;
}

.ghost-button:hover,
.sheet-close:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
}

.ghost-button-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
}

#orders-history-button .ghost-button-count {
  min-width: 22px;
  height: 22px;
  background: rgba(247, 147, 26, 0.14);
  color: #b85f1f;
  font-weight: 700;
}

body[data-theme="dark"] .ghost-button-count {
  background: rgba(236, 242, 248, 0.1);
}

body[data-theme="dark"] #orders-history-button {
  border-color: rgba(247, 147, 26, 0.18);
  background:
    linear-gradient(180deg, rgba(42, 29, 18, 0.94), rgba(28, 23, 18, 0.9)),
    rgba(22, 29, 38, 0.94);
  color: #f3f6fa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 26px rgba(2, 6, 10, 0.24);
}

body[data-theme="dark"] #orders-history-button:hover {
  border-color: rgba(247, 147, 26, 0.3);
  background:
    linear-gradient(180deg, rgba(54, 37, 23, 0.96), rgba(34, 28, 22, 0.92)),
    rgba(24, 31, 41, 0.96);
}

body[data-theme="dark"] #orders-history-button .ghost-button-count {
  background: rgba(247, 147, 26, 0.2);
  color: #ffcf98;
}

.status-pill.live {
  background: var(--up-soft);
  color: var(--up);
  border-color: rgba(15, 122, 89, 0.18);
}

.status-pill.error {
  background: var(--down-soft);
  color: var(--down);
  border-color: rgba(190, 79, 79, 0.18);
}

.alert-banner,
.hero-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58)),
    var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.alert-banner:hover,
.hero-card:hover,
.panel:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

body[data-theme="dark"] .alert-banner:hover,
body[data-theme="dark"] .hero-card:hover,
body[data-theme="dark"] .panel:hover {
  box-shadow: 0 22px 52px rgba(2, 6, 12, 0.34);
}

.alert-banner,
.panel,
.hero-card {
  padding: 18px;
}

.hero-card::before,
.panel::before,
.alert-banner::before,
.fold-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 24%);
}

body[data-theme="dark"] .hero-card::before,
body[data-theme="dark"] .panel::before,
body[data-theme="dark"] .alert-banner::before,
body[data-theme="dark"] .fold-panel::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%);
}

.alert-banner {
  gap: 14px;
  background:
    linear-gradient(90deg, rgba(187, 100, 55, 0.03), transparent 42%),
    linear-gradient(135deg, #fffaf7, var(--alert-soft));
}

body[data-theme="dark"] .alert-banner {
  background:
    linear-gradient(90deg, rgba(216, 146, 91, 0.08), transparent 38%),
    linear-gradient(135deg, rgba(27, 22, 18, 0.98), rgba(23, 19, 16, 0.95));
}

.alert-banner.analysis {
  background:
    linear-gradient(90deg, rgba(129, 169, 205, 0.04), transparent 42%),
    linear-gradient(135deg, #fbfdfe, rgba(240, 247, 252, 0.92));
}

body[data-theme="dark"] .alert-banner.analysis {
  background:
    linear-gradient(90deg, rgba(105, 138, 168, 0.08), transparent 38%),
    linear-gradient(135deg, rgba(18, 24, 32, 0.98), rgba(19, 27, 36, 0.95));
}

.alert-banner.holding {
  background:
    linear-gradient(90deg, rgba(15, 122, 89, 0.04), transparent 42%),
    linear-gradient(135deg, #f7fdf9, rgba(232, 247, 241, 0.9));
}

body[data-theme="dark"] .alert-banner.holding {
  background:
    linear-gradient(90deg, rgba(73, 195, 150, 0.08), transparent 38%),
    linear-gradient(135deg, rgba(16, 24, 21, 0.98), rgba(15, 28, 23, 0.95));
}

.alert-banner.short-signal {
  background:
    linear-gradient(90deg, rgba(190, 79, 79, 0.04), transparent 42%),
    linear-gradient(135deg, #fff8f8, rgba(252, 238, 238, 0.92));
}

body[data-theme="dark"] .alert-banner.short-signal {
  background:
    linear-gradient(90deg, rgba(236, 131, 131, 0.08), transparent 38%),
    linear-gradient(135deg, rgba(29, 17, 20, 0.98), rgba(34, 18, 21, 0.95));
}

.hidden {
  display: none !important;
}

.alert-beacon {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(187, 100, 55, 0.1);
}

body[data-theme="dark"] .alert-beacon {
  background: rgba(15, 23, 33, 0.74);
  border-color: rgba(242, 165, 113, 0.16);
}

.alert-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--alert-strong);
  box-shadow: 0 0 0 0 rgba(187, 100, 55, 0.24);
  animation: pulse 1.8s infinite;
}

.alert-banner.analysis .alert-dot {
  background: rgba(86, 101, 119, 0.78);
  animation: none;
  box-shadow: none;
}

.alert-banner.holding .alert-dot {
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(15, 122, 89, 0.2);
  animation: pulse-hold 2s infinite;
}

.alert-banner.long-signal .alert-dot {
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(15, 122, 89, 0.2);
  animation: pulse-hold 2s infinite;
}

.alert-banner.short-signal .alert-dot {
  background: var(--down);
  box-shadow: 0 0 0 0 rgba(190, 79, 79, 0.22);
  animation: pulse 1.8s infinite;
}

.alert-copy {
  display: grid;
  gap: 4px;
  flex: 1;
}

.alert-copy h2 {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.12;
  font-weight: 590;
  letter-spacing: -0.03em;
}

.alert-text {
  margin: 0;
  color: rgba(81, 50, 33, 0.76);
  font-size: 0.84rem;
}

body[data-theme="dark"] .alert-text {
  color: rgba(230, 217, 208, 0.8);
}

.alert-meta,
.hero-pills {
  gap: 8px;
  flex-wrap: wrap;
}

#alert-side.alert-pill {
  min-height: 28px;
  padding: 0 11px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-card {
  background:
    radial-gradient(circle at top left, rgba(142, 182, 214, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.94));
  color: var(--hero-ink);
}

body[data-theme="dark"] .hero-card {
  background:
    radial-gradient(circle at top left, rgba(80, 109, 134, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(18, 25, 33, 0.98), rgba(17, 24, 32, 0.96));
}

.hero-head {
  gap: 12px;
  margin-bottom: 12px;
}

.hero-copy {
  display: grid;
  gap: 6px;
}

.hero-headline {
  gap: 10px;
  flex-wrap: wrap;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  font-weight: 530;
  letter-spacing: -0.03em;
}

.hero-divider {
  width: 28px;
  height: 1px;
  background: rgba(127, 140, 157, 0.24);
}

.hero-summary {
  margin: 0;
  font-size: clamp(0.94rem, 1.28vw, 1.05rem);
  line-height: 1.46;
  letter-spacing: -0.03em;
  max-width: 52ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.strategy-stream {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 0;
}

.panel-experiment-chart {
  padding: 8px 8px 10px;
}

.panel-experiment-chart-head {
  margin-bottom: 10px;
}

.panel-experiment-chart-head .section-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.panel-experiment-chart-wrap {
  min-height: 430px;
  border-radius: 14px;
}

.strategy-flow-panel {
  min-height: 0;
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(247, 147, 26, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.64)),
    rgba(255, 255, 255, 0.82);
}

.strategy-flow-head {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.strategy-flow-panel .panel-head {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(127, 140, 157, 0.12);
}

.feed-tabs {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(127, 140, 157, 0.14);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(127, 140, 157, 0.04);
}

body[data-theme="dark"] .feed-tabs {
  background: rgba(21, 29, 37, 0.94);
  border-color: rgba(188, 202, 216, 0.08);
}

.feed-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px 8px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 560;
  position: relative;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.feed-tab::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  transform: translateY(-50%) scale(0.6);
  background: var(--ink);
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.feed-tab:hover {
  color: var(--ink);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.42);
}

body[data-theme="dark"] .feed-tab:hover {
  background: rgba(236, 242, 248, 0.05);
}

.feed-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(27, 39, 53, 0.14);
}

.feed-tab.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(27, 39, 53, 0.08);
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(127, 140, 157, 0.08);
  transform: translateY(-1px);
}

.feed-tab.is-active::after {
  transform: translateY(-50%) scale(1);
  opacity: 0.9;
}

.feed-tab.is-active[data-feed-tab="evolution"]::after {
  background: var(--up);
}

body[data-theme="dark"] .feed-tab.is-active {
  background: rgba(236, 242, 248, 0.09);
  border-color: rgba(236, 242, 248, 0.04);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(236, 242, 248, 0.05);
}

body[data-theme="dark"] .feed-tab.is-active::after {
  background: #ffffff;
}

.strategy-stream-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.strategy-stream-chart {
  margin-top: 0;
}

.chart-wrap-hero {
  width: 100%;
  height: auto;
  min-height: 360px;
  aspect-ratio: 16 / 7;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(127, 140, 157, 0.08);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(247, 147, 26, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
}

body[data-theme="dark"] .chart-wrap-hero {
  background:
    radial-gradient(circle at top left, rgba(247, 147, 26, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(18, 25, 33, 0.98), rgba(16, 23, 31, 0.98));
}

.chart-wrap-hero::before {
  display: none;
}

.chart-wrap-hero::after {
  display: none;
}

.chart-overlay {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-overlay-top {
  top: 14px;
  padding: 0 16px;
}

.chart-overlay-bottom {
  bottom: 12px;
  padding: 0 16px;
}

.chart-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  backdrop-filter: blur(10px);
}

.chart-chip-start {
  color: var(--ink);
  border: 1px solid rgba(127, 140, 157, 0.16);
  background: rgba(255, 255, 255, 0.9);
}

.chart-chip-current {
  color: #ffffff;
  background: rgba(61, 76, 93, 0.9);
}

.chart-chip-current.pnl-up {
  background: rgba(15, 122, 89, 0.92);
}

.chart-chip-current.pnl-down {
  background: rgba(190, 79, 79, 0.92);
}

.chart-date {
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 560;
  color: var(--chart-axis);
  letter-spacing: -0.01em;
}

body[data-theme="dark"] .chart-chip-start {
  color: #f3f6fa;
  border-color: rgba(188, 202, 216, 0.1);
  background: rgba(20, 28, 37, 0.88);
}

.strategy-brief-list {
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: grid;
  gap: 10px;
  padding-right: 0;
  padding-bottom: 2px;
}

.strategy-brief-list::-webkit-scrollbar {
  width: 8px;
}

.strategy-brief-list::-webkit-scrollbar-thumb {
  background: rgba(127, 140, 157, 0.24);
  border-radius: 999px;
}

.brief-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.brief-item::before {
  content: "";
  position: absolute;
  left: 61px;
  top: 12px;
  bottom: -12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(127, 140, 157, 0.16), rgba(127, 140, 157, 0));
}

.brief-item:last-child::before {
  display: none;
}

.brief-rail {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 2px;
  padding: 10px 10px 0 0;
}

.brief-day {
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--ink);
}

.brief-date-label,
.brief-time {
  color: var(--muted);
}

.brief-date-label {
  font-size: 0.74rem;
  line-height: 1.1;
}

.brief-time {
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brief-card {
  position: relative;
  min-width: 0;
  padding: 12px 13px 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(127, 140, 157, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 253, 255, 0.84)),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 22px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.brief-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(127, 140, 157, 0.28);
}

.brief-item:hover .brief-card {
  border-color: rgba(127, 140, 157, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 28px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.brief-content {
  display: grid;
  gap: 8px;
  padding-left: 0;
  min-width: 0;
}

.brief-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brief-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.brief-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(127, 140, 157, 0.46);
}

.brief-stamp {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.brief-label {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(127, 140, 157, 0.16);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.brief-label-neutral {
  border-color: rgba(127, 140, 157, 0.16);
  background: rgba(127, 140, 157, 0.08);
  color: var(--ink-soft);
}

.brief-label-long {
  border-color: rgba(20, 151, 91, 0.18);
  background: rgba(20, 151, 91, 0.1);
  color: var(--up);
}

.brief-label-short {
  border-color: rgba(225, 88, 88, 0.18);
  background: rgba(225, 88, 88, 0.1);
  color: var(--down);
}

.brief-label-alert {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.1);
  color: #c27a08;
}

.brief-label-evolution {
  border-color: rgba(59, 130, 246, 0.18);
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.brief-side-note {
  font-size: 0.69rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.brief-body {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.66;
  letter-spacing: -0.01em;
  white-space: pre-line;
}

.brief-body-strong {
  font-weight: 700;
  color: var(--ink);
}

.brief-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.brief-item-neutral .brief-card::before {
  background: rgba(127, 140, 157, 0.32);
}

.brief-item-long .brief-card::before {
  background: linear-gradient(180deg, rgba(20, 151, 91, 0.94), rgba(20, 151, 91, 0.44));
}

.brief-item-short .brief-card::before {
  background: linear-gradient(180deg, rgba(225, 88, 88, 0.94), rgba(225, 88, 88, 0.44));
}

.brief-item-alert .brief-card::before {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.96), rgba(245, 158, 11, 0.5));
}

.brief-item-evolution .brief-card::before {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.96), rgba(37, 99, 235, 0.48));
}

.brief-item-long .brief-kicker::before {
  background: rgba(20, 151, 91, 0.76);
}

.brief-item-short .brief-kicker::before {
  background: rgba(225, 88, 88, 0.76);
}

.brief-item-alert .brief-kicker::before {
  background: rgba(245, 158, 11, 0.76);
}

.brief-item-evolution .brief-kicker::before {
  background: rgba(37, 99, 235, 0.76);
}

body[data-theme="dark"] .strategy-flow-panel {
  background:
    radial-gradient(circle at top right, rgba(247, 147, 26, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(19, 27, 35, 0.96), rgba(18, 25, 33, 0.94)),
    rgba(18, 25, 33, 0.92);
}

body[data-theme="dark"] .brief-item::before {
  background: linear-gradient(180deg, rgba(188, 202, 216, 0.14), rgba(188, 202, 216, 0));
}

body[data-theme="dark"] .brief-card {
  border-color: rgba(188, 202, 216, 0.08);
  background:
    linear-gradient(180deg, rgba(23, 31, 41, 0.94), rgba(18, 26, 35, 0.9)),
    rgba(18, 25, 33, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(2, 6, 12, 0.18);
}

body[data-theme="dark"] .brief-item:hover .brief-card {
  border-color: rgba(188, 202, 216, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 34px rgba(2, 6, 12, 0.24);
}

body[data-theme="dark"] .brief-label {
  background: rgba(16, 24, 33, 0.88);
}

body[data-theme="dark"] .brief-label-neutral {
  border-color: rgba(188, 202, 216, 0.12);
  background: rgba(188, 202, 216, 0.07);
  color: #c7d2dd;
}

body[data-theme="dark"] .brief-label-long {
  border-color: rgba(52, 211, 153, 0.18);
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

body[data-theme="dark"] .brief-label-short {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

body[data-theme="dark"] .brief-label-alert {
  border-color: rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}

body[data-theme="dark"] .brief-label-evolution {
  border-color: rgba(96, 165, 250, 0.18);
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}

body[data-theme="dark"] .brief-stamp {
  color: #8da0b2;
}

body[data-theme="dark"] .brief-day {
  color: #edf2f7;
}

body[data-theme="dark"] .brief-date-label,
body[data-theme="dark"] .brief-time,
body[data-theme="dark"] .brief-kicker {
  color: #8da0b2;
}

body[data-theme="dark"] .brief-body-strong {
  color: #f3f6fa;
}

.hero-focus,
.config-grid,
.metric-grid,
.mini-grid,
.secondary-stack,
.feed-list,
.runs-list,
.orders-list {
  display: grid;
  gap: 9px;
}

.hero-focus {
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.85fr);
  margin-top: 12px;
}

.hero-side {
  display: grid;
  gap: 10px;
}

.metric-card,
.config-tile,
.summary-tile,
.detail-tile,
.hero-primary,
.hero-side-card,
.hero-trigger,
.strip-item,
.feed-item,
.run-card,
.empty-card,
.order-strip {
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.44)),
    rgba(255, 255, 255, 0.66);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

body[data-theme="dark"] .metric-card,
body[data-theme="dark"] .config-tile,
body[data-theme="dark"] .summary-tile,
body[data-theme="dark"] .detail-tile,
body[data-theme="dark"] .hero-primary,
body[data-theme="dark"] .hero-side-card,
body[data-theme="dark"] .hero-trigger,
body[data-theme="dark"] .feed-item,
body[data-theme="dark"] .run-card,
body[data-theme="dark"] .empty-card,
body[data-theme="dark"] .order-strip {
  background: rgba(22, 29, 38, 0.86);
}

.config-tile,
.summary-tile,
.detail-tile,
.hero-primary,
.hero-side-card,
.hero-trigger,
.feed-item,
.run-card,
.empty-card {
  padding: 14px;
  display: grid;
  gap: 5px;
}

.metric-card:hover,
.config-tile:hover,
.summary-tile:hover,
.detail-tile:hover,
.feed-item:hover,
.run-card:hover,
.fold-panel:hover,
.order-strip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.hero-primary {
  padding: 15px 16px;
  gap: 8px;
  background:
    radial-gradient(circle at top left, rgba(142, 182, 214, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(250, 252, 254, 0.98), rgba(243, 248, 252, 0.94));
}

body[data-theme="dark"] .hero-primary {
  background:
    radial-gradient(circle at top left, rgba(80, 109, 134, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(22, 29, 38, 0.98), rgba(19, 27, 36, 0.96));
}

.hero-primary-value {
  font-size: clamp(1.2rem, 1.8vw, 1.56rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 540;
}

.hero-primary-note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.hero-inline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-side-card strong,
.hero-trigger strong {
  line-height: 1.35;
  font-weight: 520;
}

.hero-trigger {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.7);
}

body[data-theme="dark"] .hero-trigger {
  background: rgba(20, 27, 35, 0.88);
}

.position-empty {
  min-height: 178px;
  border-radius: 18px;
  border: 1px dashed rgba(127, 140, 157, 0.18);
  background:
    radial-gradient(circle at top left, rgba(142, 182, 214, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.62);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  animation: empty-breathe 2.8s ease-in-out infinite;
}

body[data-theme="dark"] .position-empty {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top left, rgba(92, 126, 156, 0.12), transparent 30%),
    rgba(15, 23, 33, 0.64);
  animation: empty-breathe-dark 2.8s ease-in-out infinite;
}

.position-empty strong {
  font-size: 1.05rem;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.position-empty p {
  margin: 0;
  color: var(--muted);
}

.position-empty-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(86, 101, 119, 0.86);
  box-shadow: 0 0 0 0 rgba(86, 101, 119, 0.22);
  animation: idle-pulse 1.8s ease-out infinite;
}

.position-empty.pending {
  border-style: solid;
  border-color: rgba(187, 100, 55, 0.18);
  background:
    radial-gradient(circle at top left, rgba(242, 185, 122, 0.08), transparent 30%),
    rgba(255, 251, 247, 0.68);
}

body[data-theme="dark"] .position-empty.pending {
  border-color: rgba(242, 165, 113, 0.2);
  background:
    radial-gradient(circle at top left, rgba(213, 138, 89, 0.12), transparent 30%),
    rgba(23, 18, 15, 0.68);
}

.position-empty.pending .position-empty-dot {
  background: var(--alert-strong);
  box-shadow: 0 0 0 0 rgba(187, 100, 55, 0.24);
  animation: pulse 1.8s ease-out infinite;
}

.position-empty.long-signal {
  border-color: rgba(15, 122, 89, 0.18);
  background:
    radial-gradient(circle at top left, rgba(76, 197, 154, 0.08), transparent 30%),
    rgba(247, 253, 249, 0.7);
}

body[data-theme="dark"] .position-empty.long-signal {
  border-color: rgba(76, 197, 154, 0.2);
  background:
    radial-gradient(circle at top left, rgba(76, 197, 154, 0.1), transparent 30%),
    rgba(13, 27, 22, 0.7);
}

.position-empty.short-signal {
  border-color: rgba(190, 79, 79, 0.18);
  background:
    radial-gradient(circle at top left, rgba(239, 129, 129, 0.08), transparent 30%),
    rgba(255, 248, 248, 0.7);
}

body[data-theme="dark"] .position-empty.short-signal {
  border-color: rgba(239, 129, 129, 0.2);
  background:
    radial-gradient(circle at top left, rgba(239, 129, 129, 0.1), transparent 30%),
    rgba(34, 16, 19, 0.7);
}

.position-empty.long-signal strong,
.position-empty.long-signal p {
  color: var(--up);
}

.position-empty.short-signal strong,
.position-empty.short-signal p {
  color: var(--down);
}

.position-empty.long-signal .position-empty-dot {
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(15, 122, 89, 0.22);
  animation: pulse-hold 2s ease-out infinite;
}

.position-empty.short-signal .position-empty-dot {
  background: var(--down);
  box-shadow: 0 0 0 0 rgba(190, 79, 79, 0.22);
  animation: pulse 1.8s ease-out infinite;
}

.metric-label,
.metric-note,
.hero-card .footer-label {
  color: var(--hero-muted);
}

.secondary-stack {
  gap: 10px;
}

.archive-stack {
  margin-top: 16px;
}

.panel-head {
  gap: 10px;
  margin-bottom: 14px;
}

.experiment-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.panel-runtime {
  gap: 8px;
  justify-content: flex-end;
  text-align: right;
}

.chart-sheet-trigger {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.76rem;
  border-color: rgba(247, 147, 26, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 246, 235, 0.98), rgba(255, 251, 246, 0.94)),
    rgba(255, 255, 255, 0.94);
  color: #ad5a00;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 22px rgba(247, 147, 26, 0.1);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chart-sheet-trigger:hover {
  border-color: rgba(247, 147, 26, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 240, 221, 1), rgba(255, 248, 239, 0.96)),
    rgba(255, 255, 255, 0.98);
  color: #8f4900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(247, 147, 26, 0.14);
}

.chart-sheet-trigger:focus-visible {
  outline: 2px solid rgba(247, 147, 26, 0.24);
  outline-offset: 2px;
}

body[data-theme="dark"] .chart-sheet-trigger {
  border-color: rgba(247, 147, 26, 0.24);
  background:
    linear-gradient(180deg, rgba(72, 43, 18, 0.94), rgba(44, 29, 16, 0.96)),
    rgba(30, 22, 14, 0.96);
  color: #ffd59f;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 176, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .chart-sheet-trigger:hover {
  border-color: rgba(247, 147, 26, 0.38);
  background:
    linear-gradient(180deg, rgba(88, 52, 20, 0.98), rgba(53, 34, 18, 0.98)),
    rgba(35, 24, 15, 0.98);
  color: #ffe2b9;
}

.panel-runtime strong {
  font-size: 0.9rem;
  font-weight: 520;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
}

.panel h2 {
  font-size: 1rem;
  letter-spacing: -0.03em;
  font-weight: 520;
}

.config-grid {
  grid-template-columns: 1fr;
  margin-bottom: 8px;
}

.metric-grid,
.mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-grid {
  margin-top: 8px;
}

.config-tile,
.summary-tile,
.detail-tile {
  background: var(--paper-soft);
}

.config-tile {
  padding: 15px 16px;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background:
    radial-gradient(circle at top left, rgba(142, 182, 214, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
}

body[data-theme="dark"] .config-tile {
  background:
    radial-gradient(circle at top left, rgba(92, 126, 156, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(15, 24, 35, 0.98), rgba(18, 29, 41, 0.96));
}

.config-item {
  display: grid;
  gap: 6px;
  align-content: start;
}

.config-item + .config-item {
  padding-top: 0;
  margin-top: 0;
  padding-left: 16px;
  margin-left: 16px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.config-tile strong {
  font-size: clamp(1.08rem, 1.34vw, 1.28rem);
  line-height: 1.05;
  font-weight: 520;
  letter-spacing: -0.025em;
}

.stack-lines {
  display: grid;
  gap: 0;
}

.stack-row {
  min-height: 54px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stack-row strong {
  margin-left: auto;
  text-align: right;
}

.footer-label,
.metric-note {
  color: var(--muted);
}

.right-rail .footer-label {
  font-weight: 600;
  letter-spacing: 0.09em;
}

.right-rail .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 252, 254, 0.72)),
    rgba(255, 255, 255, 0.84);
}

body[data-theme="dark"] .right-rail .panel {
  background:
    linear-gradient(180deg, rgba(20, 27, 35, 0.98), rgba(18, 25, 33, 0.96)),
    rgba(18, 25, 33, 0.94);
  border-color: rgba(188, 202, 216, 0.09);
}

.right-rail .config-tile,
.right-rail .summary-tile,
.right-rail .detail-tile,
.right-rail .info-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 252, 254, 0.62)),
    rgba(255, 255, 255, 0.74);
  border-color: rgba(127, 140, 157, 0.1);
}

body[data-theme="dark"] .right-rail .config-tile,
body[data-theme="dark"] .right-rail .summary-tile,
body[data-theme="dark"] .right-rail .detail-tile,
body[data-theme="dark"] .right-rail .info-row {
  background:
    linear-gradient(180deg, rgba(25, 33, 42, 0.96), rgba(22, 29, 38, 0.92)),
    rgba(22, 29, 38, 0.9);
  border-color: rgba(188, 202, 216, 0.08);
}

.right-rail .config-tile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(249, 251, 253, 0.68)),
    rgba(255, 255, 255, 0.78);
}

body[data-theme="dark"] .right-rail .config-tile {
  background:
    linear-gradient(180deg, rgba(26, 34, 43, 0.98), rgba(23, 31, 40, 0.94)),
    rgba(23, 31, 40, 0.92);
}

.right-rail .position-empty {
  border-style: solid;
  border-color: rgba(127, 140, 157, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(249, 251, 253, 0.6)),
    rgba(255, 255, 255, 0.72);
}

body[data-theme="dark"] .right-rail .position-empty {
  border-color: rgba(188, 202, 216, 0.08);
  background:
    linear-gradient(180deg, rgba(25, 33, 42, 0.94), rgba(22, 29, 38, 0.9)),
    rgba(22, 29, 38, 0.88);
}

.right-rail .position-empty.pending,
.right-rail .position-empty.long-signal,
.right-rail .position-empty.short-signal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(249, 251, 253, 0.6)),
    rgba(255, 255, 255, 0.72);
}

body[data-theme="dark"] .right-rail .position-empty.pending,
body[data-theme="dark"] .right-rail .position-empty.long-signal,
body[data-theme="dark"] .right-rail .position-empty.short-signal {
  background:
    linear-gradient(180deg, rgba(25, 33, 42, 0.94), rgba(22, 29, 38, 0.9)),
    rgba(22, 29, 38, 0.88);
}

.right-rail .position-empty.pending {
  border-color: rgba(187, 100, 55, 0.16);
}

.right-rail .position-empty.long-signal {
  border-color: rgba(15, 122, 89, 0.16);
}

.right-rail .position-empty.short-signal {
  border-color: rgba(190, 79, 79, 0.16);
}

body[data-theme="dark"] .right-rail .position-empty.pending {
  border-color: rgba(236, 163, 104, 0.14);
}

body[data-theme="dark"] .right-rail .position-empty.long-signal {
  border-color: rgba(73, 195, 150, 0.14);
}

body[data-theme="dark"] .right-rail .position-empty.short-signal {
  border-color: rgba(236, 131, 131, 0.14);
}

.mono {
  font-family: "IBM Plex Mono", "SFMono-Regular", "Roboto Mono", monospace;
  font-weight: 520;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums slashed-zero;
}

.pnl-up {
  color: var(--up);
}

.pnl-down {
  color: var(--down);
}

.info-row {
  margin-top: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.fold-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.45)),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

body[data-theme="dark"] .fold-panel {
  background: rgba(18, 25, 33, 0.9);
}

.fold-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 530;
  position: relative;
  padding-right: 38px;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.fold-panel summary::-webkit-details-marker {
  display: none;
}

.fold-panel summary::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(86, 101, 119, 0.72);
  border-bottom: 1.5px solid rgba(86, 101, 119, 0.72);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease, border-color 180ms ease;
}

.fold-panel summary:hover {
  background: rgba(255, 255, 255, 0.46);
}

body[data-theme="dark"] .fold-panel summary:hover {
  background: rgba(236, 242, 248, 0.03);
}

.fold-panel[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

body[data-theme="dark"] .fold-panel[open] summary {
  background: rgba(236, 242, 248, 0.04);
}

.fold-panel[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.fold-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 460;
}

.fold-body {
  padding: 15px 18px 18px;
}

.feed-list,
.runs-list,
.orders-list {
  gap: 12px;
}

.feed-item strong,
.run-top strong {
  display: block;
  letter-spacing: -0.02em;
}

.run-title-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-item p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.run-detail-button {
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1;
  cursor: pointer;
}

.run-description-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(127, 140, 157, 0.05);
}

.run-description-body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.81rem;
  line-height: 1.6;
}

body[data-theme="dark"] .run-description-panel {
  background: rgba(236, 242, 248, 0.04);
}

.panel-experiment > .run-description-panel {
  margin: 0 14px 10px;
}

.panel-experiment > .panel-experiment-chart {
  border-top: 1px solid rgba(127, 140, 157, 0.1);
}

body[data-theme="dark"] .panel-experiment > .panel-experiment-chart {
  border-top-color: rgba(188, 202, 216, 0.08);
}

.run-meta,
.feed-meta {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  gap: 10px;
  flex-wrap: wrap;
}

.run-duration {
  color: var(--ink-soft);
  font-weight: 560;
}

.order-badge {
  border-radius: 999px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-theme="dark"] .order-badge,
body[data-theme="dark"] .run-status {
  background: rgba(15, 23, 33, 0.82);
}

.order-badge:not(.pnl-up):not(.pnl-down) {
  color: var(--ink-soft);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
}

body[data-theme="dark"] .sheet-backdrop {
  background: rgba(4, 8, 14, 0.62);
}

.sheet-backdrop.hidden {
  display: none;
}

.sheet-panel {
  width: min(1120px, calc(100vw - 24px));
  max-height: min(82vh, 800px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  animation: sheet-rise 220ms ease-out;
}

body[data-theme="dark"] .sheet-panel {
  background: rgba(17, 24, 32, 0.985);
  box-shadow: 0 30px 80px rgba(1, 5, 10, 0.44);
}

.chart-sheet-panel {
  width: min(1180px, calc(100vw - 32px));
}

.chart-sheet-body {
  padding-top: 0;
}

.chart-sheet-wrap {
  min-height: min(70vh, 640px);
  border-radius: 18px;
}

@keyframes sheet-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sheet-head {
  position: relative;
  padding: 18px 20px 14px;
  padding-right: 68px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.sheet-head h2 {
  font-size: 1rem;
  font-weight: 530;
}

.sheet-head > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.sheet-body {
  padding: 12px 14px 14px;
  overflow: auto;
}

.sheet-body::-webkit-scrollbar {
  width: 10px;
}

.sheet-body::-webkit-scrollbar-thumb {
  background: rgba(127, 140, 157, 0.28);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .sheet-body::-webkit-scrollbar-thumb {
  border-color: rgba(10, 17, 25, 0.96);
}

.sheet-body::-webkit-scrollbar-track {
  background: transparent;
}

.order-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 0 0 1px rgba(127, 140, 157, 0.04);
}

body[data-theme="dark"] .order-view-tabs {
  background: rgba(21, 29, 37, 0.94);
  border-color: rgba(188, 202, 216, 0.08);
}

.order-view-tab {
  border: 0;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 520;
  letter-spacing: -0.01em;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.order-view-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
  transform: translateY(-1px);
}

body[data-theme="dark"] .order-view-tab:hover {
  background: rgba(236, 242, 248, 0.05);
}

.order-view-tab.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(127, 140, 157, 0.08);
}

body[data-theme="dark"] .order-view-tab.is-active {
  background: rgba(236, 242, 248, 0.09);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(236, 242, 248, 0.05);
}

.orders-strip-list {
  display: grid;
  gap: 10px;
}

.orders-table-wrap {
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(252, 253, 255, 0.76)),
    rgba(255, 255, 255, 0.82);
  overflow: auto;
}

body[data-theme="dark"] .orders-table-wrap {
  background:
    linear-gradient(180deg, rgba(21, 29, 37, 0.98), rgba(18, 25, 33, 0.96)),
    rgba(18, 25, 33, 0.92);
}

.orders-table {
  min-width: 900px;
}

.orders-table-head,
.orders-table-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: 10px;
}

.orders-table-8 .orders-table-head,
.orders-table-8 .orders-table-row {
  grid-template-columns:
    minmax(68px, 0.74fr)
    minmax(60px, 0.64fr)
    minmax(104px, 0.98fr)
    minmax(68px, 0.68fr)
    minmax(104px, 0.9fr)
    minmax(88px, 0.76fr)
    minmax(136px, 1.12fr)
    minmax(124px, 0.96fr);
}

.orders-table-9 .orders-table-head,
.orders-table-9 .orders-table-row {
  grid-template-columns:
    minmax(60px, 0.62fr)
    minmax(106px, 0.92fr)
    minmax(100px, 0.86fr)
    minmax(100px, 0.86fr)
    minmax(64px, 0.56fr)
    minmax(86px, 0.7fr)
    minmax(98px, 0.84fr)
    minmax(126px, 0.98fr)
    minmax(126px, 0.98fr);
}

.orders-table-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 249, 251, 0.96);
}

body[data-theme="dark"] .orders-table-head {
  background: rgba(15, 22, 29, 0.98);
}

.orders-table-head .orders-table-cell {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orders-table-body {
  max-height: min(58vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
}

.orders-table-row {
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}

.orders-table-row:last-child {
  border-bottom: 0;
}

.orders-table-row:hover {
  background: rgba(255, 255, 255, 0.56);
}

body[data-theme="dark"] .orders-table-row:hover {
  background: rgba(236, 242, 248, 0.03);
}

.orders-table-cell {
  min-width: 0;
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-side-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.orders-side-pill.pnl-up {
  color: var(--up);
  border-color: rgba(15, 122, 89, 0.18);
  background: var(--up-soft);
}

.orders-side-pill.pnl-down {
  color: var(--down);
  border-color: rgba(190, 79, 79, 0.18);
  background: var(--down-soft);
}

.order-symbol-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.order-symbol-cell .coin-badge {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: transparent;
  color: inherit;
}

.coin-badge-btc svg {
  width: 18px;
  height: 18px;
  display: block;
}

.order-symbol-cell .mono {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-table-row .orders-table-cell:nth-child(7),
.orders-table-row .orders-table-cell:nth-child(8) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.22;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.order-focus-card,
.settled-order-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(252, 253, 255, 0.72)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

body[data-theme="dark"] .order-focus-card,
body[data-theme="dark"] .settled-order-card {
  background:
    linear-gradient(180deg, rgba(16, 26, 38, 0.96), rgba(13, 21, 31, 0.92)),
    rgba(15, 23, 33, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.order-focus-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.order-focus-card.pnl-up {
  background:
    radial-gradient(circle at top left, rgba(76, 197, 154, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(251, 255, 253, 0.95), rgba(247, 253, 249, 0.86));
}

.order-focus-card.pnl-down {
  background:
    radial-gradient(circle at top left, rgba(239, 129, 129, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 251, 0.95), rgba(254, 247, 247, 0.88));
}

body[data-theme="dark"] .order-focus-card.pnl-up {
  background:
    radial-gradient(circle at top left, rgba(76, 197, 154, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(11, 25, 20, 0.96), rgba(11, 22, 18, 0.94));
}

body[data-theme="dark"] .order-focus-card.pnl-down {
  background:
    radial-gradient(circle at top left, rgba(239, 129, 129, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(29, 16, 19, 0.96), rgba(23, 15, 17, 0.94));
}

.order-focus-top,
.settled-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-focus-top strong,
.settled-order-top strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 540;
}

.order-status-pill,
.order-mini-badge,
.order-mini-status {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.order-status-pill {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-soft);
}

body[data-theme="dark"] .order-status-pill,
body[data-theme="dark"] .order-mini-badge,
body[data-theme="dark"] .order-mini-status {
  background: rgba(236, 242, 248, 0.06);
}

.order-status-pill.pnl-up,
.order-mini-badge.pnl-up {
  color: var(--up);
  border-color: rgba(15, 122, 89, 0.18);
  background: var(--up-soft);
}

.order-status-pill.pnl-down,
.order-mini-badge.pnl-down {
  color: var(--down);
  border-color: rgba(190, 79, 79, 0.18);
  background: var(--down-soft);
}

.order-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.order-focus-item,
.settled-order-grid .order-inline-item {
  min-height: 70px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  display: grid;
  gap: 8px;
  align-content: start;
}

body[data-theme="dark"] .order-focus-item,
body[data-theme="dark"] .settled-order-grid .order-inline-item {
  background: rgba(236, 242, 248, 0.04);
}

.order-focus-item strong,
.settled-order-grid .order-inline-item strong {
  font-size: 0.92rem;
  line-height: 1.1;
}

.current-order-list {
  display: grid;
  gap: 8px;
}

.current-order-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

body[data-theme="dark"] .current-order-row {
  background: rgba(236, 242, 248, 0.04);
}

.current-order-row.is-empty {
  color: var(--ink-soft);
}

.order-mini-badge:not(.pnl-up):not(.pnl-down),
.order-mini-status {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
}

.settled-order-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.settled-order-card.pnl-up {
  border-color: rgba(15, 122, 89, 0.14);
}

.settled-order-card.pnl-down {
  border-color: rgba(190, 79, 79, 0.14);
}

.settled-pnl {
  font-size: 1rem;
  line-height: 1;
  font-weight: 560;
}

.settled-order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.orders-empty-card {
  min-height: 132px;
  text-align: center;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(142, 182, 214, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.72);
}

body[data-theme="dark"] .orders-empty-card {
  background:
    radial-gradient(circle at top left, rgba(92, 126, 156, 0.12), transparent 32%),
    rgba(15, 23, 33, 0.72);
}

.order-strip {
  padding: 10px 12px;
}

.order-strip:hover {
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .order-strip:hover {
  background: rgba(18, 29, 41, 0.92);
}

.order-strip.pnl-up {
  border-left: 2px solid rgba(15, 122, 89, 0.52);
}

.order-strip.pnl-down {
  border-left: 2px solid rgba(190, 79, 79, 0.46);
}

.order-inline {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.coin-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f9d86a, #f0b90b);
  color: #5a4300;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.order-symbol {
  letter-spacing: -0.02em;
}

.order-inline-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}

.order-inline-item em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.order-inline-item strong {
  line-height: 1.2;
}

.run-status {
  border-radius: 999px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.66rem;
}

.run-status.live {
  background: var(--up-soft);
  color: var(--up);
}

.run-status.archived {
  background: var(--down-soft);
  color: var(--down);
}

.empty-card {
  min-height: 110px;
  align-content: center;
  gap: 6px;
}

.chart-wrap {
  height: 180px;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  background:
    radial-gradient(circle at top left, rgba(142, 182, 214, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 252, 0.96));
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 140, 157, 0.34) transparent;
}

body[data-theme="dark"] .chart-wrap {
  background:
    radial-gradient(circle at top left, rgba(92, 126, 156, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(12, 20, 29, 0.94), rgba(15, 24, 35, 0.97));
}

.chart-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 24%, rgba(255, 255, 255, 0.06) 64%, transparent 100%);
  opacity: 0.9;
}

.chart-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 26%);
}

#equity-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-wrap::-webkit-scrollbar {
  height: 10px;
}

.chart-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(127, 140, 157, 0.34);
}

.chart-wrap::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin-top: 18px;
  }

  .right-rail {
    position: static;
  }

  .hero-focus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 16px, 1220px);
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .section-mobile-experiment,
  .section-mobile-position,
  .section-mobile-stats,
  .section-mobile-archive,
  .panel-experiment,
  .panel-position,
  .panel-stats,
  .archive-stack,
  .fold-panel {
    width: 100%;
    max-width: none;
    min-width: 0;
    align-self: stretch;
  }

  .hero-head,
  .alert-banner,
  .run-top,
  .run-meta,
  .feed-meta,
  .sheet-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .workspace-left,
  .right-rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .topbar {
    position: sticky;
    top: 8px;
    z-index: 30;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(127, 140, 157, 0.14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.94)),
      rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .topbar::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 140, 157, 0.18), transparent);
    opacity: 0.9;
    pointer-events: none;
  }

  .topbar-dock {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 24;
    display: none;
    width: auto;
    margin-left: 0;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(127, 140, 157, 0.14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.96)),
      rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    gap: 8px;
  }

  .topbar-copy {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }

  .btc-ticker-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 2px;
    min-width: 0;
    max-width: 132px;
    min-height: 34px;
    padding: 0 10px 0 8px;
    gap: 7px;
    border-radius: 11px;
    box-shadow: none;
  }

  .btc-ticker-mobile .btc-ticker-copy {
    display: inline-flex;
    align-items: center;
    min-height: 100%;
  }

  .btc-ticker-mobile .btc-ticker-value {
    font-size: 0.78rem;
    font-weight: 640;
    line-height: 1;
  }

  .topbar-dock.is-open {
    display: grid;
  }

  .topbar-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    border-color: rgba(127, 140, 157, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .topbar h1 {
    font-size: 1.12rem;
    line-height: 1.05;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand-mark-text {
    font-size: 0.82rem;
  }

  .brand-word-orange {
    font-size: 1.14rem;
  }

  .brand-word-oracle {
    font-size: 1.03rem;
  }

  .eyebrow {
    display: none;
  }

  .topbar-nav {
    display: contents;
  }

  .topbar-preferences {
    display: contents;
  }

  .lang-select-wrap {
    min-width: 0;
    width: 100%;
  }

  .lang-select {
    min-height: 40px;
    border-radius: 12px;
    font-size: 0.8rem;
  }

  .topbar-dock .btc-ticker {
    display: none;
  }

  .topbar-link {
    min-height: 40px;
    width: 100%;
    padding: 0 10px;
    border-radius: 12px;
    background: rgba(246, 249, 252, 0.96);
    font-size: 0.74rem;
    font-weight: 600;
  }

  .topbar-link-x svg {
    width: 14px;
    height: 14px;
  }

  .btc-ticker {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 11px 0 9px;
    gap: 8px;
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255, 247, 238, 0.98), rgba(255, 252, 248, 0.94)),
      rgba(255, 255, 255, 0.94);
    box-shadow: none;
  }

  .btc-ticker-copy {
    display: grid;
    align-items: center;
  }

  .btc-ticker-label {
    display: block;
  }

  .btc-ticker-value {
    font-size: 0.82rem;
    font-weight: 620;
  }

  .pref-button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border-radius: 12px;
  }

  .hero-focus {
    grid-template-columns: 1fr;
  }

  body[data-theme="dark"] .topbar-dock {
    background:
      linear-gradient(180deg, rgba(20, 27, 35, 0.98), rgba(18, 25, 33, 0.96)),
      rgba(18, 25, 33, 0.96);
    border-color: rgba(188, 202, 216, 0.11);
    box-shadow: 0 18px 30px rgba(1, 5, 10, 0.34);
  }

  body[data-theme="dark"] .topbar {
    background:
      linear-gradient(180deg, rgba(18, 25, 33, 0.95), rgba(17, 24, 32, 0.92)),
      rgba(18, 25, 33, 0.9);
    border-color: rgba(188, 202, 216, 0.11);
    box-shadow: 0 14px 26px rgba(1, 5, 10, 0.28);
  }

  body[data-theme="dark"] .topbar::after {
    background: linear-gradient(90deg, transparent, rgba(188, 202, 216, 0.12), transparent);
  }

  body[data-theme="dark"] .topbar-link,
  body[data-theme="dark"] .topbar-menu-toggle {
    background: rgba(24, 32, 41, 0.96);
  }

  body[data-theme="dark"] .btc-ticker {
    background:
      linear-gradient(180deg, rgba(39, 28, 19, 0.98), rgba(27, 22, 18, 0.94)),
      rgba(22, 29, 38, 0.94);
  }

  .about-hero,
  .about-block,
  .about-card {
    padding: 16px;
  }

  .about-article {
    padding-top: 4px;
  }

  .about-block-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .alert-banner,
  .panel,
  .hero-card,
  .strategy-flow-panel {
    padding: 14px;
    border-radius: 16px;
    box-shadow: none;
  }

  .alert-meta,
  .panel-runtime {
    width: auto;
    justify-content: flex-start;
    gap: 8px;
  }

  .alert-banner {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
  }

  .alert-copy h2 {
    font-size: 1.04rem;
    line-height: 1.16;
    font-weight: 620;
  }

  .alert-beacon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
  }

  .alert-copy {
    gap: 2px;
    padding-top: 1px;
  }

  .alert-text {
    font-size: 0.8rem;
    line-height: 1.42;
  }

  .alert-meta {
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 6px;
  }

  .section-label,
  .footer-label,
  .alert-label {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .alert-pill {
    min-height: 27px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.66rem;
  }

  .panel-head,
  .strategy-stream-top,
  .fold-panel summary {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .panel-head {
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .panel-head > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .panel h2 {
    font-size: 1.03rem;
    font-weight: 620;
  }

  .panel-experiment .panel-head {
    flex-wrap: nowrap;
    align-items: center;
  }

  .panel-experiment .panel-head > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .panel-experiment .panel-runtime {
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .panel-experiment .experiment-head-actions {
    margin-left: auto;
  }

  .panel-position .panel-head {
    flex-wrap: nowrap;
    align-items: center;
  }

  .panel-position .panel-head > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .panel-experiment,
  .panel-position,
  .panel-stats {
    padding: 0;
    overflow: hidden;
  }

  .panel-experiment > .panel-head,
  .panel-position > .panel-head,
  .panel-stats > .mini-grid {
    margin: 0;
  }

  .panel-experiment > .panel-head,
  .panel-position > .panel-head {
    padding: 14px 14px 12px;
  }

  .panel-experiment-chart {
    padding: 8px 12px 12px;
  }

  .panel-experiment-chart-head {
    margin-bottom: 8px;
  }

  .panel-experiment-chart-head .section-label {
    font-size: 0.72rem;
  }

  .panel-stats > .mini-grid {
    gap: 0;
  }

  .panel-runtime {
    padding: 6px 9px;
    border-radius: 10px;
    border: 1px solid rgba(127, 140, 157, 0.12);
    background: rgba(255, 255, 255, 0.72);
  }

  .experiment-head-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  body[data-theme="dark"] .panel-runtime {
    background: rgba(25, 33, 42, 0.92);
    border-color: rgba(188, 202, 216, 0.1);
  }

  .strategy-flow-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .chart-wrap-hero {
    min-height: 272px;
    aspect-ratio: auto;
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(252, 254, 255, 0.96), rgba(244, 248, 251, 0.96)),
      rgba(255, 255, 255, 0.96);
  }

  body[data-theme="dark"] .chart-wrap-hero {
    background:
      linear-gradient(180deg, rgba(16, 24, 32, 0.98), rgba(15, 22, 30, 0.98)),
      rgba(18, 25, 33, 0.96);
  }

  .strategy-flow-panel {
    min-height: 0;
    padding: 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 254, 0.88)),
      rgba(255, 255, 255, 0.92);
  }

  body[data-theme="dark"] .strategy-flow-panel {
    background:
      linear-gradient(180deg, rgba(18, 26, 35, 0.98), rgba(16, 23, 31, 0.96)),
      rgba(18, 25, 33, 0.94);
  }

  .strategy-flow-panel .panel-head {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .config-grid,
  .metric-grid,
  .mini-grid {
    gap: 8px;
  }

  .metric-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .config-tile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .config-item + .config-item {
    padding-left: 14px;
    margin-left: 14px;
    padding-top: 0;
    margin-top: 0;
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .summary-tile,
  .detail-tile {
    padding: 12px;
    gap: 5px;
    border-radius: 14px;
  }

  .info-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 14px;
    margin-top: 0;
  }

  .panel-experiment .config-grid,
  .panel-experiment .metric-grid,
  .panel-position .metric-grid,
  .panel-position .mini-grid,
  .panel-stats .mini-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .panel-experiment .config-tile {
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: transparent;
    box-shadow: none;
    padding: 14px;
    margin: 0;
  }

  .panel-experiment .config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .panel-experiment .config-item + .config-item {
    padding-left: 0;
    margin-left: 0;
    padding-top: 10px;
    margin-top: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .panel-experiment .summary-tile,
  .panel-position .summary-tile,
  .panel-position .detail-tile,
  .panel-stats .detail-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 52px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: transparent;
    box-shadow: none;
    padding: 14px;
    margin: 0;
  }

  .panel-experiment .summary-tile strong,
  .panel-experiment .config-item strong,
  .panel-position .summary-tile strong,
  .panel-position .detail-tile strong,
  .panel-position .info-row strong,
  .panel-stats .detail-tile strong {
    margin-left: auto;
    text-align: right;
  }

  .panel-position .position-empty {
    min-height: 0;
    padding: 14px;
    place-items: initial;
    justify-items: start;
    align-content: start;
    text-align: left;
    gap: 8px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: transparent;
    box-shadow: none;
  }

  .panel-experiment .config-grid,
  .panel-experiment .metric-grid,
  .panel-position .metric-grid,
  .panel-position .mini-grid,
  .panel-position .position-empty,
  .panel-position .info-row,
  .panel-stats .mini-grid {
    border-top: 1px solid rgba(127, 140, 157, 0.1);
  }

  .panel-experiment .summary-tile,
  .panel-position .summary-tile + .summary-tile,
  .panel-position .detail-tile,
  .panel-position .info-row,
  .panel-stats .detail-tile + .detail-tile {
    border-top: 1px solid rgba(127, 140, 157, 0.1);
  }

  .panel-position .info-row,
  .panel-experiment .info-row {
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 14px;
  }

  body[data-theme="dark"] .panel-experiment .config-grid,
  body[data-theme="dark"] .panel-experiment .metric-grid,
  body[data-theme="dark"] .panel-position .metric-grid,
  body[data-theme="dark"] .panel-position .mini-grid,
  body[data-theme="dark"] .panel-position .position-empty,
  body[data-theme="dark"] .panel-position .info-row,
  body[data-theme="dark"] .panel-stats .mini-grid,
  body[data-theme="dark"] .panel-experiment .summary-tile,
  body[data-theme="dark"] .panel-position .summary-tile + .summary-tile,
  body[data-theme="dark"] .panel-position .detail-tile,
  body[data-theme="dark"] .panel-stats .detail-tile + .detail-tile {
    border-top-color: rgba(188, 202, 216, 0.08);
  }

  .panel-experiment .stack-lines,
  .panel-position .stack-lines,
  .panel-stats .stack-lines {
    width: 100%;
    gap: 0;
  }

  .panel-experiment .stack-row,
  .panel-position .stack-row,
  .panel-stats .stack-row {
    width: 100%;
    min-height: 54px;
    padding: 14px;
    margin: 0;
    border-top: 1px solid rgba(127, 140, 157, 0.1);
    background: transparent;
    box-shadow: none;
  }

  .panel-position .position-empty {
    min-height: 0;
    padding: 14px;
    place-items: initial;
    justify-items: start;
    align-content: start;
    text-align: left;
    gap: 8px;
    border: 0;
    border-top: 1px solid rgba(127, 140, 157, 0.1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
  }

  .panel-position .position-empty.pending,
  .panel-position .position-empty.long-signal,
  .panel-position .position-empty.short-signal {
    background: transparent;
  }

  .fold-body {
    padding: 0;
  }

  .runs-list {
    gap: 0;
  }

  .run-card,
  .empty-card {
    margin: 0;
    min-height: 0;
    padding: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .run-card + .run-card,
  .empty-card + .run-card,
  .run-card + .empty-card {
    border-top: 1px solid rgba(127, 140, 157, 0.1);
  }

  body[data-theme="dark"] .panel-experiment .stack-row,
  body[data-theme="dark"] .panel-position .stack-row,
  body[data-theme="dark"] .panel-stats .stack-row,
  body[data-theme="dark"] .panel-position .position-empty,
  body[data-theme="dark"] .run-card + .run-card,
  body[data-theme="dark"] .empty-card + .run-card,
  body[data-theme="dark"] .run-card + .empty-card {
    border-top-color: rgba(188, 202, 216, 0.08);
  }

  .config-tile strong,
  .summary-tile strong,
  .detail-tile strong,
  .info-row strong,
  .panel-runtime strong {
    font-weight: 630;
  }

  .strategy-brief-list {
    min-height: 0;
    max-height: none;
    overflow: visible;
    gap: 8px;
    padding-right: 0;
  }

  .brief-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 9px;
  }

  .brief-item::before {
    left: 39px;
    top: 10px;
    bottom: -8px;
  }

  .brief-card {
    padding: 11px 12px 11px 13px;
    border-radius: 12px;
    box-shadow: none;
  }

  .brief-rail {
    gap: 1px;
    padding: 8px 8px 0 0;
  }

  .brief-day {
    font-size: 1rem;
    font-weight: 720;
  }

  .brief-date-label {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .brief-time {
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .brief-content {
    gap: 6px;
  }

  .brief-meta {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 7px;
  }

  .brief-kicker {
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    font-weight: 620;
  }

  .brief-stamp {
    display: none;
  }

  .brief-label {
    margin-left: 0;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 700;
  }

  .brief-body {
    font-size: 0.93rem;
    line-height: 1.58;
  }

  .brief-footer {
    justify-content: flex-start;
  }

  .brief-side-note {
    text-align: left;
    white-space: normal;
  }

  .feed-tabs {
    width: auto;
    min-width: 196px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    scrollbar-width: none;
    padding: 3px;
    border-radius: 11px;
    background: rgba(17, 24, 39, 0.05);
    box-shadow: none;
  }

  .feed-tabs::-webkit-scrollbar {
    display: none;
  }

  .feed-tab {
    flex: 1 1 auto;
    min-height: 34px;
    padding: 9px 10px 9px 20px;
    border-radius: 8px;
    font-size: 0.73rem;
    font-weight: 600;
  }

  .feed-tab::after {
    left: 8px;
    width: 5px;
    height: 5px;
  }

  .feed-tab.is-active {
    background: rgba(17, 24, 39, 0.92);
    color: #f8fafc;
    transform: none;
    box-shadow: none;
  }

  .feed-tab.is-active::after {
    background: #f7931a;
  }

  .feed-tab.is-active[data-feed-tab="evolution"]::after {
    background: #38bdf8;
  }

  body[data-theme="dark"] .feed-tabs {
    background: rgba(236, 242, 248, 0.05);
    border-color: rgba(188, 202, 216, 0.08);
  }

  body[data-theme="dark"] .feed-tab.is-active {
    background: rgba(236, 242, 248, 0.12);
    color: #f8fafc;
  }

  .order-inline {
    align-items: flex-start;
  }

  .order-view-tabs {
    width: 100%;
  }

  .order-view-tab {
    flex: 1 1 0;
  }

  .orders-table-wrap {
    overflow-x: auto;
  }

  .ghost-button {
    width: auto;
    min-width: 0;
    justify-content: space-between;
    border-radius: 10px;
  }

  .sheet-backdrop {
    padding: 10px;
    align-items: end;
  }

  .sheet-panel {
    width: 100%;
    max-height: min(88vh, 820px);
    border-radius: 18px;
  }

  .sheet-head,
  .sheet-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sheet-head {
    padding-right: 56px;
  }

  .sheet-close {
    top: 12px;
    right: 12px;
  }

  .orders-table {
    min-width: 920px;
  }

  #orders-history-button {
    min-width: 112px;
    padding: 0 12px;
  }


  .position-empty {
    min-height: 122px;
    padding: 14px;
    border-radius: 14px;
    gap: 8px;
  }

  .position-empty strong {
    font-size: 0.98rem;
    font-weight: 620;
  }

  .position-empty p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .fold-panel {
    border-radius: 16px;
    box-shadow: none;
  }

  .fold-panel summary {
    padding: 14px 16px;
    padding-right: 36px;
    font-size: 0.94rem;
  }

  .fold-body {
    padding: 12px 14px 14px;
  }

  .site-footer {
    margin-top: 16px;
    padding-top: 6px;
  }

  .site-footer-line {
    font-size: 0.82rem;
  }

  .section-mobile-feed {
    order: 2;
  }

  .section-mobile-experiment {
    order: 3;
  }

  .section-mobile-chart {
    order: 4;
  }

  .section-mobile-position {
    order: 5;
  }

  .section-mobile-stats {
    order: 6;
  }

  .section-mobile-archive {
    order: 7;
  }
}

@media (max-width: 560px) {
  .workspace,
  .workspace-left,
  .right-rail {
    gap: 12px;
  }

  .topbar {
    gap: 8px 10px;
    padding: 9px 10px;
  }

  .topbar-dock {
    padding: 8px;
    border-radius: 14px;
  }

  .btc-ticker {
    min-height: 36px;
    padding: 0 10px 0 7px;
    gap: 6px;
  }

  .btc-ticker-mobile {
    max-width: 118px;
    min-height: 32px;
    padding: 0 9px 0 7px;
    gap: 6px;
  }

  .btc-ticker-icon,
  .btc-ticker-icon svg {
    width: 16px;
    height: 16px;
  }

  .btc-ticker-value {
    font-size: 0.74rem;
  }

  .btc-ticker-mobile .btc-ticker-value {
    font-size: 0.74rem;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .brand-mark-text {
    font-size: 0.72rem;
  }

  .brand-copy {
    gap: 0;
  }

  .brand-subtitle {
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .brand-wordmark {
    gap: 0.08em;
  }

  .brand-word-orange {
    font-size: 0.98rem;
    letter-spacing: 0.05em;
  }

  .brand-word-oracle {
    font-size: 0.88rem;
  }

  .pref-button {
    min-height: 38px;
  }

  .topbar-menu-toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    gap: 3px;
  }

  .topbar-menu-line {
    width: 12px;
  }

  .status-pill,
  .meta-pill,
  .mini-pill,
  .alert-pill,
  .ghost-button,
  .sheet-close {
    min-height: 30px;
  }

  .alert-banner {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .alert-copy h2 {
    font-size: 1.02rem;
  }

  .alert-meta {
    grid-column: 1 / -1;
    width: 100%;
    justify-items: start;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
  }

  .chart-wrap-hero {
    min-height: 236px;
  }

  .chart-sheet-wrap {
    min-height: min(62vh, 460px);
  }

  .panel-experiment-chart {
    padding: 12px;
  }

  .panel-experiment-chart-wrap {
    min-height: 344px;
  }

  .brief-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
  }

  .brief-item::before {
    left: 36px;
  }

  .brief-day {
    font-size: 0.96rem;
  }

  .brief-date-label,
  .brief-time,
  .brief-side-note {
    font-size: 0.72rem;
  }

  .brief-body {
    font-size: 0.91rem;
    line-height: 1.56;
  }

  .feed-tabs {
    width: auto;
    min-width: 196px;
    margin-left: auto;
  }

  .order-strip {
    padding: 10px;
  }

  .order-inline {
    gap: 7px 10px;
  }

  .order-inline-item {
    width: 100%;
  }

  .orders-table {
    min-width: 860px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100vw - 12px, 1220px);
  }

  .topbar {
    padding: 8px 9px;
  }

  .brand-word-orange {
    font-size: 0.94rem;
  }

  .brand-word-oracle {
    font-size: 0.84rem;
  }

  .config-tile,
  .metric-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: flex-start;
  }

  .config-item + .config-item {
    padding-left: 0;
    margin-left: 0;
    padding-top: 10px;
    margin-top: 2px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .panel-runtime,
  .info-row {
    width: 100%;
  }

  .panel-experiment .panel-runtime {
    width: auto;
  }

  .alert-banner {
    padding: 12px;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .alert-beacon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .alert-copy h2 {
    font-size: 0.98rem;
  }

  .brief-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 7px;
  }

  .brief-item::before {
    left: 33px;
  }

  #orders-history-button {
    width: auto;
    max-width: none;
  }

  .position-empty {
    gap: 7px;
    padding: 12px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

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