:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --bg-elevated: #11151c;
  --card: #181a20;
  --card-strong: #1e2329;
  --field: #0f141b;
  --line: #2b3139;
  --line-soft: rgba(132, 142, 156, 0.18);
  --text: #eaecef;
  --text-strong: #f5f5f5;
  --muted: #848e9c;
  --muted-strong: #b7bdc6;
  --accent: #fcd535;
  --accent-hover: #f0b90b;
  --accent-ink: #181a20;
  --accent-soft: rgba(252, 213, 53, 0.12);
  --cyber: #34d5ff;
  --cyber-soft: rgba(52, 213, 255, 0.14);
  --violet: #8f7cff;
  --violet-soft: rgba(143, 124, 255, 0.12);
  --buy: #0ecb81;
  --buy-soft: rgba(14, 203, 129, 0.12);
  --sell: #f6465d;
  --sell-soft: rgba(246, 70, 93, 0.12);
  --warning: #f0b90b;
  --warning-soft: rgba(240, 185, 11, 0.12);
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background:
    linear-gradient(rgba(52, 213, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 213, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 9% 8%, rgba(252, 213, 53, 0.09), transparent 24rem),
    radial-gradient(circle at 92% 3%, rgba(14, 203, 129, 0.06), transparent 22rem),
    linear-gradient(180deg, #0b0e11 0%, #0b0e11 35%, #07090d 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, 1.2fr) minmax(360px, 520px);
  gap: clamp(18px, 4vw, 72px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 56px);
}

.landing-legal,
.landing-workflow,
.landing-features {
  display: grid;
  gap: clamp(12px, 2vh, 18px);
  width: min(1320px, calc(100% - 36px));
}

.landing-legal {
  margin: -18px auto 0;
  padding: 0 0 clamp(22px, 4vw, 56px);
}

.landing-workflow {
  margin: -18px auto 18px;
  padding: 0;
}

.landing-features {
  margin: 0 auto 18px;
  padding: 0;
}

.features-head {
  display: grid;
  gap: 10px;
  max-width: 840px;
}

.features-head h2 {
  max-width: 760px;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

.features-head p {
  max-width: 760px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.54;
}

.features-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 2.6vw, 30px);
  background:
    linear-gradient(145deg, rgba(52, 213, 255, 0.08), transparent 48%),
    radial-gradient(circle at 86% 15%, rgba(252, 213, 53, 0.13), transparent 12rem),
    var(--card);
}

.feature-card::after {
  position: absolute;
  right: -48px;
  bottom: -55px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(52, 213, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.feature-card span {
  color: var(--cyber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  max-width: 360px;
  margin-top: 34px;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.05;
}

.feature-card p {
  max-width: 540px;
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.58;
}

.feature-primary {
  background:
    linear-gradient(135deg, rgba(252, 213, 53, 0.11), transparent 40%),
    linear-gradient(35deg, rgba(14, 203, 129, 0.08), transparent 58%),
    var(--card);
}

.landing-disclaimer,
.landing-faq {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 2.5vw, 30px);
  background:
    linear-gradient(120deg, rgba(252, 213, 53, 0.075), transparent 25rem),
    var(--card);
}

.landing-disclaimer {
  display: grid;
  gap: 11px;
}

.landing-disclaimer h2,
.landing-faq h2 {
  max-width: 860px;
  font-size: clamp(23px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-disclaimer p {
  max-width: 1040px;
  color: var(--muted-strong);
  line-height: 1.52;
}

.legal-cta {
  justify-self: start;
  border: 1px solid rgba(252, 213, 53, 0.25);
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.landing-faq {
  display: grid;
  grid-template-columns: minmax(230px, 0.66fr) minmax(360px, 1.34fr);
  gap: 10px 18px;
  background:
    radial-gradient(circle at 4% 6%, rgba(14, 203, 129, 0.1), transparent 18rem),
    var(--card);
}

.landing-faq > div {
  grid-row: span 6;
  display: grid;
  align-content: start;
  gap: 10px;
}

.landing-faq > div p {
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
}

.landing-faq details {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 13px;
  background: rgba(11, 14, 17, 0.66);
}

.landing-faq summary {
  cursor: pointer;
  color: var(--text-strong);
  font-weight: 700;
}

.landing-faq p {
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.42;
}

.landing-footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.landing-footer-head {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  justify-content: space-between;
}

.landing-fineprint {
  display: grid;
  gap: 7px;
  max-width: 1180px;
  line-height: 1.38;
}

.landing-fineprint p {
  margin: 0;
}

.landing-fineprint strong {
  color: var(--text-strong);
}

@media (min-width: 721px) {
  html.landing-snap-ready {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
    scroll-snap-type: y mandatory;
  }

  html.app-snap-ready {
    scroll-behavior: smooth;
    scroll-padding-top: 68px;
    scroll-snap-type: y mandatory;
  }

  html.app-scroll-settling {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  body[data-surface="auth"] .auth-page,
  body[data-surface="auth"] .landing-workflow,
  body[data-surface="auth"] .landing-tutorial,
  body[data-surface="auth"] .landing-features,
  body[data-surface="auth"] .landing-disclaimer,
  body[data-surface="auth"] .landing-faq,
  body[data-surface="auth"] .landing-footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body[data-surface="auth"] .landing-workflow,
  body[data-surface="auth"] .landing-tutorial,
  body[data-surface="auth"] .landing-features,
  body[data-surface="auth"] .landing-disclaimer,
  body[data-surface="auth"] .landing-faq {
    min-height: 100svh;
    align-content: center;
  }

  body[data-surface="auth"] .landing-workflow,
  body[data-surface="auth"] .landing-tutorial,
  body[data-surface="auth"] .landing-features {
    margin-top: 0;
    margin-bottom: 0;
    padding: clamp(16px, 3vh, 32px) 0;
  }

  body[data-surface="auth"] .landing-legal {
    margin-top: 0;
  }

  body[data-surface="auth"] .landing-footer {
    min-height: 100svh;
    align-content: center;
  }

  body[data-surface="public-app"] .tutorial-section,
  body[data-surface="public-app"] .feature-entry-list,
  body[data-surface="public-app"] .feature-panel {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body[data-surface="public-app"] .tutorial-section,
  body[data-surface="public-app"] .feature-entry-list,
  body[data-surface="public-app"] .feature-panel {
    min-height: calc(100svh - 68px);
    align-content: center;
  }

  body[data-surface="public-app"] .feature-panel {
    align-content: start;
  }
}

.auth-pitch {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  display: grid;
  align-content: center;
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 72px);
  background:
    linear-gradient(rgba(52, 213, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 213, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(52, 213, 255, 0.16), transparent 18rem),
    linear-gradient(120deg, rgba(14, 203, 129, 0.14), transparent 42%),
    radial-gradient(circle at 82% 22%, rgba(252, 213, 53, 0.22), transparent 16rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 36px),
    var(--card);
  background-size: 38px 38px, 38px 38px, auto, auto, auto, auto, auto;
  box-shadow: var(--shadow);
}

.cyber-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 34%, rgba(52, 213, 255, 0.16) 35%, transparent 36% 100%),
    radial-gradient(circle at 75% 62%, rgba(143, 124, 255, 0.16), transparent 13rem);
  opacity: 0.64;
  animation: cyberSweep 1800ms ease-out both;
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 20px;
  animation: brandSettle 820ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand-lockup::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  pointer-events: none;
  background:
    conic-gradient(from -40deg, transparent 0deg 36deg, rgba(52, 213, 255, 0.22) 52deg, rgba(252, 213, 53, 0.42) 68deg, transparent 92deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 45%, #000 47% 63%, transparent 65%);
  mask: radial-gradient(circle, transparent 0 45%, #000 47% 63%, transparent 65%);
  opacity: 0;
  transform: translateY(-50%) rotate(-34deg) scale(0.96);
  z-index: 2;
  animation: brandWaveSweep 1800ms cubic-bezier(0.2, 0.8, 0.2, 1) 140ms both;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  color: var(--text-strong);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand-lockup span {
  color: var(--muted-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  inline-size: 76px;
  block-size: 76px;
  min-inline-size: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
  background: #050607;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 16px 42px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(252, 213, 53, 0.18);
  animation: markAssemble 980ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand-mark-large {
  inline-size: 76px;
  block-size: 76px;
}

.brand-mark-mini {
  inline-size: 30px;
  block-size: 30px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 0 12px rgba(252, 213, 53, 0.22);
}

.auth-pitch::after {
  position: absolute;
  right: -110px;
  bottom: -145px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(252, 213, 53, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 46px rgba(14, 203, 129, 0.03);
  content: "";
}

.auth-pitch h1 {
  position: relative;
  z-index: 1;
  max-width: 650px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 750;
}

.auth-pitch p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: var(--muted-strong);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.62;
}

.auth-pillars {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.auth-pillars article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px;
  background: rgba(11, 14, 17, 0.68);
}

.auth-pillars strong {
  color: var(--text-strong);
  font-size: 14px;
}

.auth-pillars span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-console {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(252, 213, 53, 0.08), transparent 16rem),
    var(--card);
  box-shadow: var(--shadow);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.image-lightbox.hidden {
  display: none;
}

.image-lightbox-panel {
  display: grid;
  gap: 10px;
  width: min(1440px, 96vw);
  max-height: 94vh;
}

.image-lightbox-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 800;
}

.image-lightbox-close {
  width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.image-lightbox-close:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.image-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 58px);
  border: 1px solid rgba(252, 213, 53, 0.22);
  border-radius: 8px;
  background: #0b0e11;
  box-shadow: var(--shadow);
}

.auth-console-head {
  margin-bottom: 18px;
}

.auth-console-head h2 {
  margin-bottom: 5px;
  font-size: clamp(22px, 3vw, 30px);
}

.auth-console-head p {
  color: var(--muted-strong);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: var(--field);
}

.auth-tabs button {
  min-width: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted-strong);
  padding-inline: 7px;
}

.auth-tabs button:hover:not(:disabled),
.auth-tabs button.active {
  border-color: rgba(252, 213, 53, 0.26);
  background: var(--accent-soft);
  color: var(--accent);
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form button {
  margin-top: 5px;
}

.auth-form h3 {
  margin-bottom: 2px;
}

.auth-panel-copy {
  margin-top: -3px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.48;
}

.auth-text-action {
  justify-self: center;
  width: auto;
  min-height: auto;
  margin-top: 2px !important;
  border: 0;
  padding: 4px 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}

.auth-text-action:hover:not(:disabled) {
  background: transparent;
  color: var(--accent-hover);
  text-decoration: underline;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 50px;
}

.auth-field-label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  transition: color 0.16s ease;
}

.auth-field-indicator {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(132, 142, 156, 0.5);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.auth-field-valid {
  color: var(--buy);
}

.auth-field-valid input {
  border-color: rgba(14, 203, 129, 0.82);
  box-shadow: 0 0 0 2px rgba(14, 203, 129, 0.12);
}

.auth-field-valid .auth-field-indicator {
  border-color: var(--buy);
  background: var(--buy);
  opacity: 1;
  transform: scale(1);
}

.auth-field-valid .auth-field-indicator::after {
  width: 6px;
  height: 3px;
  border-bottom: 2px solid #061619;
  border-left: 2px solid #061619;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.auth-field-invalid {
  color: var(--sell);
}

.auth-field-invalid input {
  border-color: rgba(246, 70, 93, 0.74);
  box-shadow: 0 0 0 2px rgba(246, 70, 93, 0.1);
}

.auth-field-invalid .auth-field-indicator {
  border-color: rgba(246, 70, 93, 0.88);
  opacity: 1;
  transform: scale(1);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: var(--muted-strong);
  transform: translateY(-50%);
}

.auth-form .password-toggle {
  margin-top: 0;
}

.password-toggle:hover:not(:disabled),
.password-toggle.active {
  border-color: rgba(252, 213, 53, 0.26);
  background: var(--accent-soft);
  color: var(--accent);
}

.password-eye {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.password-eye::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.password-toggle.active .password-eye::before {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(-38deg);
}

.auth-turnstile {
  min-height: 65px;
}

.auth-turnstile:empty {
  display: none;
}

.auth-note {
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  line-height: 1.45;
}

.auth-legal-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 2px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
}

.auth-legal-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.auth-legal-consent a {
  color: var(--accent);
  text-decoration: none;
}

.auth-legal-consent a:hover {
  text-decoration: underline;
}

.auth-message,
.auth-session {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--field);
  color: var(--muted-strong);
  font-size: 13px;
}

.auth-message.ok {
  border-color: rgba(14, 203, 129, 0.34);
  background: var(--buy-soft);
  color: var(--buy);
}

.auth-message.error {
  border-color: rgba(246, 70, 93, 0.34);
  background: var(--sell-soft);
  color: var(--sell);
}

.auth-session {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-session span {
  margin-right: auto;
  color: var(--text);
}

.auth-session button {
  border-color: var(--line);
  background: var(--card-strong);
  color: var(--text);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.legal-links a {
  color: var(--muted-strong);
}

.legal-links a:hover {
  color: var(--accent);
}

.auth-legal-links {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.auth-reset-confirm {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.legal-page {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(18px, 4vw, 56px) 0;
}

.legal-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 48px);
  background:
    radial-gradient(circle at 90% 15%, rgba(252, 213, 53, 0.2), transparent 16rem),
    linear-gradient(120deg, rgba(14, 203, 129, 0.12), transparent 52%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 34px),
    var(--card);
  box-shadow: var(--shadow);
}

.legal-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--muted-strong);
  font-size: 13px;
}

.legal-topline a:first-child,
.legal-brand {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
}

.legal-hero h1 {
  max-width: 780px;
  margin-top: 18px;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.55;
}

.legal-date {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.legal-review {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(240, 185, 11, 0.28);
  border-radius: 12px;
  padding: 18px;
  background: var(--warning-soft);
}

.legal-review strong {
  color: var(--accent);
  font-size: 15px;
}

.legal-review span {
  color: var(--muted-strong);
  line-height: 1.5;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(180deg, rgba(252, 213, 53, 0.035), transparent 9rem), var(--card);
}

.legal-card h2 {
  margin-bottom: 12px;
  font-size: clamp(18px, 2vw, 23px);
}

.legal-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted-strong);
  line-height: 1.5;
}

.legal-document {
  display: grid;
  gap: 12px;
}

.legal-document section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(17px, 2.4vw, 28px);
  background:
    linear-gradient(180deg, rgba(252, 213, 53, 0.035), transparent 11rem),
    var(--card);
}

.legal-document h2 {
  margin-bottom: 12px;
  font-size: clamp(18px, 2vw, 25px);
}

.legal-document p {
  max-width: 980px;
  color: var(--muted-strong);
  line-height: 1.62;
}

.legal-document p + p {
  margin-top: 12px;
}

.legal-placeholder {
  color: var(--muted-strong);
  font-style: italic;
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 18px 4px 0;
}

.public-account-bar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 9px 18px;
  background: rgba(11, 14, 17, 0.94);
  backdrop-filter: blur(16px);
}

.app-mini-brand,
.account-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.app-mini-brand {
  min-width: 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.app-mini-brand > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-account-bar #public-user-email {
  margin-right: 8px;
  color: var(--muted-strong);
  font-size: 13px;
}

.public-account-bar button {
  border-color: var(--line);
  background: var(--card-strong);
  color: var(--text);
}

.public-account-bar button:hover:not(:disabled),
.auth-session button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.notification-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 10, 0.72);
  backdrop-filter: blur(8px);
}

.notification-card {
  display: grid;
  gap: 20px;
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(145deg, rgba(14, 203, 129, 0.09), transparent 42%),
    linear-gradient(90deg, rgba(252, 213, 53, 0.055), transparent 72%),
    var(--card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.notification-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.notification-card-head h2 {
  margin-bottom: 8px;
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.05;
}

.notification-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  border-radius: 50%;
  padding: 0;
  color: var(--muted-strong);
  font-size: 24px;
  line-height: 1;
}

.notification-form {
  display: grid;
  gap: 14px;
}

.notification-toggle {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px;
  background: rgba(11, 14, 17, 0.5);
}

.notification-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.notification-toggle span {
  display: grid;
  gap: 4px;
}

.notification-toggle strong {
  color: var(--text-strong);
}

.notification-toggle small,
.notification-rule {
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
}

.notification-rule {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 12px;
}

.notification-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

#notification-status[data-kind="ok"] {
  color: var(--success);
}

#notification-status[data-kind="error"] {
  color: var(--danger);
}

@media (max-width: 720px) {
  .notification-overlay {
    align-items: start;
    padding: 12px;
    overflow: auto;
  }

  .notification-card-head,
  .notification-actions {
    grid-template-columns: 1fr;
  }

  .notification-close {
    justify-self: end;
    grid-row: 1;
  }
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

body[data-surface="public-app"] .page {
  width: min(1760px, calc(100% - 72px));
  max-width: none;
  padding: 0;
}

header {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(252, 213, 53, 0.14), transparent 38%),
    var(--card);
  box-shadow: var(--shadow);
}

header::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 42%);
  content: "";
}

header::after {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(252, 213, 53, 0.32);
  background:
    linear-gradient(45deg, transparent 42%, var(--accent) 43% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--accent) 43% 57%, transparent 58%);
  opacity: 0.38;
  transform: rotate(45deg);
}

header p {
  max-width: 780px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.62;
}

.section-copy {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.52;
}

.surface-badge {
  width: fit-content;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--field);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.surface-badge.public-surface {
  border-color: rgba(14, 203, 129, 0.28);
  color: var(--buy);
}

.surface-callout {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(14, 203, 129, 0.12), transparent 55%),
    var(--card);
  box-shadow: var(--shadow);
}

.surface-callout strong {
  color: var(--text-strong);
  font-size: 15px;
  white-space: nowrap;
}

.surface-callout span {
  max-width: 820px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.55;
}

.tutorial-section {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(252, 213, 53, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(52, 213, 255, 0.07), transparent 64%),
    var(--card);
  box-shadow: var(--shadow);
}

.tutorial-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.tutorial-head h2 {
  margin-bottom: 6px;
}

.tutorial-head p {
  max-width: 820px;
  color: var(--muted-strong);
}

body[data-surface="public-app"] .tutorial-head {
  display: grid;
  gap: 10px;
  max-width: 840px;
}

body[data-surface="public-app"] .tutorial-head > div:first-child {
  display: grid;
  gap: 10px;
}

body[data-surface="public-app"] .tutorial-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.08;
  letter-spacing: 0;
}

body[data-surface="public-app"] .tutorial-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.54;
}

.tutorial-risk-note {
  max-width: 290px;
  border: 1px solid rgba(240, 185, 11, 0.28);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(240, 185, 11, 0.1);
  color: #ffcf5c;
  font-size: 12px;
  line-height: 1.45;
}

.landing-workflow-grid,
.workflow-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-workflow:not(.landing-review) .landing-workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-tutorial {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto 18px;
}

.landing-tutorial .tutorial-head {
  display: grid;
  gap: 10px;
  max-width: 840px;
  align-items: start;
}

.landing-tutorial .tutorial-head > div:first-child {
  display: grid;
  gap: 10px;
  max-width: 840px;
}

.landing-tutorial .tutorial-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-tutorial .tutorial-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.54;
}

.workflow-showcase-app {
  grid-template-columns: 1fr;
}

.workflow-example {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: clamp(14px, 1.7vw, 20px);
  background:
    linear-gradient(145deg, rgba(52, 213, 255, 0.055), transparent 56%),
    var(--card-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.workflow-process-card {
  min-height: 190px;
  align-content: start;
}

.workflow-example-wide {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: stretch;
}

.workflow-panel-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

.tutorial-step {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  border: 1px solid rgba(52, 213, 255, 0.24);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(52, 213, 255, 0.08);
  color: var(--cyber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workflow-example h3 {
  margin-bottom: 2px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.08;
}

.workflow-example p,
.workflow-read-card p {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.46;
}

.workflow-sequence {
  counter-reset: workflow-step;
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
  padding: 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.42;
  list-style: none;
}

.workflow-sequence li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
}

.workflow-sequence li::before {
  counter-increment: workflow-step;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(252, 213, 53, 0.28);
  border-radius: 50%;
  background: rgba(252, 213, 53, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  content: counter(workflow-step);
}

.workflow-screenshot {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(252, 213, 53, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(252, 213, 53, 0.045), transparent 8rem),
    #0b0e11;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42);
}

.workflow-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28vh;
  object-fit: contain;
  background: #0b0e11;
}

.workflow-image-button {
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #0b0e11;
  color: inherit;
  cursor: zoom-in;
}

.workflow-image-button:hover:not(:disabled) {
  background: #0b0e11;
}

.workflow-image-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.workflow-screenshot figcaption {
  border-top: 1px solid var(--line-soft);
  padding: 9px 11px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.38;
}

.workflow-screenshot figcaption strong {
  color: var(--text-strong);
}

.workflow-chart-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 11px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.workflow-chart-top span:last-child {
  color: var(--accent);
}

.workflow-read-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-read-card {
  display: grid;
  gap: 7px;
  min-height: 112px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 13px;
  background: var(--field);
}

.workflow-read-card span {
  color: var(--cyber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.workflow-read-card strong {
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.28;
}

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

.feature-tutorial-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: clamp(15px, 1.7vw, 20px);
  background:
    linear-gradient(145deg, rgba(52, 213, 255, 0.055), transparent 56%),
    var(--card-strong);
}

.feature-tutorial-card h3 {
  margin-bottom: 6px;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.08;
}

.feature-tutorial-card p {
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.5;
}

.tutorial-diagram {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) 18px minmax(88px, 1fr) 18px minmax(88px, 1fr) 18px minmax(88px, 1fr) 18px minmax(88px, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 94px;
  border: 1px solid rgba(252, 213, 53, 0.16);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(rgba(52, 213, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 213, 255, 0.035) 1px, transparent 1px),
    #0b0e11;
  background-size: 28px 28px;
}

.tutorial-diagram span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 8px;
  background: rgba(17, 21, 28, 0.92);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.tutorial-diagram i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(252, 213, 53, 0.16), rgba(52, 213, 255, 0.36));
}

.tutorial-diagram-history span:nth-of-type(3),
.tutorial-diagram-live span:nth-of-type(2) {
  border-color: rgba(252, 213, 53, 0.3);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(252, 213, 53, 0.08);
}

.tutorial-diagram-history span:nth-of-type(4),
.tutorial-diagram-live span:nth-of-type(4) {
  border-color: rgba(14, 203, 129, 0.28);
  color: var(--buy);
}

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

.tutorial-detail-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 11px;
  background: var(--field);
}

.tutorial-detail-grid strong {
  color: var(--text-strong);
  font-size: 13px;
}

.tutorial-detail-grid p {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.5;
}

.feature-entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vh, 18px);
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(52, 213, 255, 0.06), transparent 42%),
    linear-gradient(90deg, rgba(252, 213, 53, 0.055), transparent 72%),
    var(--card);
  box-shadow: var(--shadow);
}

body[data-surface="public-app"] .tutorial-section,
body[data-surface="public-app"] .feature-entry-list,
body[data-surface="public-app"] .feature-panel {
  min-height: calc(100svh - 68px);
  margin: 0;
  padding: clamp(10px, 1.4vh, 16px);
}

body[data-surface="public-app"] .feature-panel {
  height: calc(100svh - 68px);
  overflow: hidden;
}

body[data-surface="public-app"] .tutorial-section,
body[data-surface="public-app"] .feature-entry-list {
  align-content: center;
}

.feature-panel {
  scroll-margin-top: 0;
}

.feature-status.feature-entry-heading {
  grid-column: 1 / -1;
  width: fit-content;
  min-height: auto;
  margin: 0 0 clamp(8px, 1.4vh, 14px);
  border: 1px solid rgba(14, 203, 129, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--field);
  color: var(--buy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.5;
  text-transform: uppercase;
}

.feature-entry {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px 16px;
  align-content: start;
  align-items: start;
  width: 100%;
  min-height: clamp(138px, 18vh, 178px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  padding: 20px 46px 20px 20px;
  background:
    linear-gradient(145deg, rgba(52, 213, 255, 0.065), transparent 48%),
    radial-gradient(circle at 92% 18%, rgba(252, 213, 53, 0.12), transparent 10rem),
    var(--card);
  color: var(--text);
  text-align: left;
}

.feature-entry::after {
  position: absolute;
  right: 18px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}

.feature-entry span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--cyber);
  font-size: 12px;
  font-weight: 800;
}

.feature-entry strong {
  color: var(--text-strong);
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.08;
}

.feature-entry small {
  grid-column: 2;
  max-width: 780px;
  padding-right: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.58;
}

.feature-entry:hover:not(:disabled),
.feature-entry.active {
  border-color: rgba(52, 213, 255, 0.36);
  border-left-color: var(--cyber);
  background:
    linear-gradient(90deg, rgba(52, 213, 255, 0.12), transparent 52%),
    var(--card);
  color: var(--text);
}

.feature-entry.active::after,
.feature-entry:hover::after {
  border-color: var(--cyber);
}

.feature-status {
  min-height: 30px;
  margin: 0 0 8px;
  padding: 0 2px;
  font-size: 14px;
}

h1 {
  margin: 0 0 4px;
  color: var(--text-strong);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.card {
  background:
    linear-gradient(145deg, rgba(52, 213, 255, 0.045), transparent 48%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-top: 0;
  box-shadow: var(--shadow);
}

.feature-panel {
  display: grid;
  align-content: start;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(8px, 1vh, 12px);
  align-items: start;
  height: 100%;
  min-height: 0;
}

.workspace-main,
.workspace-controls,
.workspace-side {
  display: grid;
  gap: clamp(6px, 0.9vh, 10px);
  min-width: 0;
  align-content: start;
}

.workspace-control-head h2,
.workspace-side-head h2,
.chart-head h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 1.72vw, 28px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: 0;
}

.workspace-control-head .section-copy {
  max-width: 1120px;
}

.history-control-grid {
  grid-template-columns: minmax(150px, 0.44fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 0;
}

.history-control-grid button {
  align-self: end;
  width: auto;
  min-width: 166px;
}

.workspace-side {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(14, 203, 129, 0.08), transparent 38%),
    linear-gradient(90deg, rgba(52, 213, 255, 0.06), transparent 68%),
    var(--card-strong);
}

.workspace-side-head {
  display: grid;
  gap: 8px;
}

body.live-workspace-active #feature-workspace .workspace-layout {
  grid-template-columns: minmax(0, 1.22fr) minmax(380px, 0.78fr);
  height: 100%;
}

body.live-workspace-active .workspace-side {
  position: static;
  max-height: calc(100svh - 100px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
}

body.live-workspace-active .live-context-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

body.live-workspace-active .compact-confidence {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

body.live-workspace-active .live-direction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.live-workspace-active .signal-chart {
  height: min(56svh, 520px);
  min-height: 300px;
}

body.history-workspace-active .signal-chart {
  height: min(34svh, 360px);
  min-height: 250px;
}

body.live-workspace-active .workspace-side-head {
  gap: 5px;
}

body.live-workspace-active .workspace-side .section-copy {
  line-height: 1.36;
}

body.live-workspace-active .live-toolbar {
  margin: 2px 0;
}

body.live-workspace-active .market-panel {
  gap: 10px;
  padding: 12px;
}

body.live-workspace-active .live-alignment {
  min-height: 76px;
  padding: 12px;
}

body.live-workspace-active .live-alignment strong {
  font-size: 24px;
}

body.live-workspace-active .live-direction-grid {
  gap: 8px;
}

body.live-workspace-active .live-direction-grid .direction-item {
  min-height: 82px;
  gap: 5px;
  padding: 10px;
}

body.live-workspace-active .live-direction-grid .direction-item strong {
  font-size: 18px;
}

body.live-workspace-active .live-direction-grid .direction-item small {
  line-height: 1.3;
}

body.live-workspace-active .compact-confidence {
  gap: 8px;
}

body.live-workspace-active .compact-confidence-card {
  gap: 8px;
  padding: 11px;
}

body.live-workspace-active .compact-confidence-metrics {
  gap: 6px;
}

body.live-workspace-active .compact-confidence-metrics span {
  padding: 6px 7px;
}

.card-sub {
  margin: 10px 0 16px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--card-strong);
}

.market-intelligence-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 1.12fr);
  gap: 14px;
}

.market-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(52, 213, 255, 0.06), transparent 56%),
    var(--card-strong);
}

.replay-chart-shell {
  position: relative;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid rgba(252, 213, 53, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(52, 213, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 213, 255, 0.035) 1px, transparent 1px),
    #0b0e11;
  background-size: 36px 36px;
}

.signal-chart {
  display: block;
  width: 100%;
  height: min(58vh, 560px);
  min-height: 440px;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.signal-tooltip {
  position: absolute;
  z-index: 10;
  display: grid;
  gap: 4px;
  width: 246px;
  border: 1px solid rgba(252, 213, 53, 0.34);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(11, 14, 17, 0.96);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.signal-tooltip strong {
  color: var(--accent);
  font-size: 12px;
}

.signal-tooltip span {
  color: var(--muted-strong);
  font-size: 11px;
}

.replay-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 12px;
}

.replay-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-line {
  display: inline-block;
  width: 24px;
  height: 0;
  border-top: 2px dashed rgba(43, 213, 118, 0.78);
  box-shadow: 0 0 8px rgba(43, 213, 118, 0.22);
}

.legend-dot.signal-long {
  background: #0ecb81;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.legend-dot.signal-short {
  background: #f6465d;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.legend-dot.entry-long-marker {
  border: 1px solid #050607;
  background: #0ecb81;
}

.legend-dot.entry-short-marker {
  border: 1px solid #050607;
  background: #f6465d;
}

.legend-dot.exit-marker {
  border: 1px solid #eaecef;
  border-radius: 2px;
  background: #11151c;
  box-shadow: 0 0 6px rgba(234, 236, 239, 0.28);
}

.legend-dot.context-marker {
  width: 11px;
  height: 11px;
  border: 1px solid #a7f3ff;
  border-radius: 2px;
  background: #00e5ff;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.42);
}

.legend-dot.move-marker {
  width: 11px;
  height: 11px;
  border: 1px solid #ffe873;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(252, 213, 53, 0.42);
}

.legend-dot.tp-marker,
.legend-dot.sl-marker {
  width: 18px;
  height: 10px;
  border-radius: 3px;
  background: rgba(43, 213, 118, 0.16);
  border: 1px solid #2bd576;
  box-shadow: 0 0 8px rgba(43, 213, 118, 0.28);
}

.legend-dot.sl-marker {
  background: rgba(255, 95, 115, 0.16);
  border-color: #ff5f73;
  box-shadow: 0 0 8px rgba(255, 95, 115, 0.28);
}

.panel-kicker {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.direction-item {
  display: grid;
  gap: 8px;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px;
  background: var(--field);
}

.direction-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.direction-item strong {
  color: var(--text-strong);
  font-size: 25px;
  line-height: 1.05;
}

.direction-item small {
  color: var(--muted);
  line-height: 1.45;
}

.direction-item.buy {
  border-color: rgba(14, 203, 129, 0.26);
  background: linear-gradient(180deg, rgba(14, 203, 129, 0.1), transparent), var(--field);
}

.direction-item.buy strong {
  color: var(--buy);
}

.direction-item.sell {
  border-color: rgba(246, 70, 93, 0.26);
  background: linear-gradient(180deg, rgba(246, 70, 93, 0.1), transparent), var(--field);
}

.direction-item.sell strong {
  color: var(--sell);
}

.live-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0;
}

.live-toolbar label {
  width: min(220px, 100%);
}

.live-context-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 14px;
}

.live-alignment-panel,
.live-confidence-panel {
  align-content: start;
}

.live-alignment {
  display: grid;
  gap: 6px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(252, 213, 53, 0.1), transparent 60%),
    var(--field);
}

.live-alignment strong {
  color: var(--text-strong);
  font-size: 30px;
  line-height: 1;
}

.live-alignment span,
.live-alignment small {
  color: var(--muted-strong);
  line-height: 1.4;
}

.live-alignment.buy {
  border-color: rgba(14, 203, 129, 0.3);
  background: linear-gradient(135deg, rgba(14, 203, 129, 0.12), transparent 62%), var(--field);
}

.live-alignment.buy strong {
  color: var(--buy);
}

.live-alignment.sell {
  border-color: rgba(246, 70, 93, 0.3);
  background: linear-gradient(135deg, rgba(246, 70, 93, 0.12), transparent 62%), var(--field);
}

.live-alignment.sell strong {
  color: var(--sell);
}

.live-alignment.full {
  box-shadow: inset 0 0 0 1px rgba(252, 213, 53, 0.2), 0 0 26px rgba(252, 213, 53, 0.08);
}

.live-direction-grid {
  grid-template-columns: repeat(4, minmax(90px, 1fr));
}

.live-direction-grid .direction-item {
  min-height: 106px;
  padding: 12px;
}

.live-direction-grid .direction-item strong {
  font-size: 20px;
}

.compact-confidence {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.compact-confidence-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: var(--field);
}

.compact-confidence-title {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
}

.compact-confidence-caption {
  margin-top: -4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.compact-confidence-scores {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.compact-confidence-scores span,
.compact-confidence-metrics span {
  color: var(--muted-strong);
  font-size: 12px;
}

.compact-confidence-scores strong {
  justify-self: end;
  font-size: 18px;
}

.compact-confidence-scores .buy,
.compact-confidence-metrics .buy,
.compact-confidence-scores strong.buy {
  color: var(--buy);
}

.compact-confidence-scores .sell,
.compact-confidence-metrics .sell,
.compact-confidence-scores strong.sell {
  color: var(--sell);
}

.compact-confidence-scores strong.neutral {
  color: var(--text-strong);
}

.compact-confidence-bars {
  display: flex;
  gap: 5px;
  min-height: 8px;
}

.compact-confidence-bars i {
  display: block;
  min-width: 2px;
  border-radius: 999px;
}

.compact-confidence-bars .buy {
  background: var(--buy);
}

.compact-confidence-bars .sell {
  background: var(--sell);
}

.compact-confidence-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 7px;
}

.compact-confidence-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 7px 8px;
  background: rgba(11, 14, 17, 0.56);
}

.compact-confidence-metrics b {
  color: var(--text-strong);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 16px;
}

#api-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.span-2 {
  grid-column: span 2;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 500;
}

.hidden {
  display: none;
}

.top-mode {
  position: fixed;
  top: 14px;
  right: 18px;
  min-width: 188px;
  background: rgba(24, 26, 32, 0.94);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  z-index: 1000;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.top-mode select {
  min-width: 102px;
  padding: 6px 28px 6px 9px;
}

input,
select {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: var(--field);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

select {
  cursor: pointer;
}

input::placeholder {
  color: #5e6673;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.14);
}

input[type="checkbox"],
input[type="radio"] {
  min-height: auto;
  accent-color: var(--accent);
}

button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease, transform 120ms ease;
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  background: #2b3139;
  color: #5e6673;
  cursor: not-allowed;
}

#status {
  margin-left: 12px;
  color: var(--muted);
  font-size: 12px;
}

.warnings {
  max-height: min(8svh, 80px);
  margin-top: 8px;
  border: 1px solid rgba(252, 213, 53, 0.24);
  background:
    linear-gradient(90deg, rgba(252, 213, 53, 0.08), transparent 44%),
    rgba(17, 21, 26, 0.92);
  padding: 8px 10px;
  border-radius: 6px;
  overflow: auto;
}

.warnings:empty,
.infos:empty {
  display: none;
}

.warning {
  color: var(--muted-strong);
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.42;
}

.warning-title {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.35;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.warning-risk {
  color: #ffcf5c;
}

.lev-reduced {
  color: var(--sell);
  font-weight: 700;
}

.infos {
  margin-top: 8px;
}

.info {
  color: var(--muted-strong);
  padding: 6px 0;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

#replay-summary.live-price-summary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted-strong);
}

.summary-price {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  border: 1px solid rgba(252, 213, 53, 0.24);
  border-radius: 999px;
  padding: 4px 9px;
  background:
    linear-gradient(90deg, rgba(252, 213, 53, 0.12), rgba(14, 203, 129, 0.06)),
    rgba(11, 14, 17, 0.72);
  color: var(--accent);
  line-height: 1.2;
  white-space: nowrap;
}

.summary-price span {
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.summary-price span::after {
  content: ":";
}

.summary-price strong {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 800;
}

.summary-meta {
  white-space: nowrap;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.row h2 {
  margin-bottom: 0;
}

.confidence-panel {
  display: grid;
  gap: 14px;
}

.confidence-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: var(--card-strong);
}

.confidence-section-title {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.confidence-head {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.confidence-score {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  background: var(--field);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.confidence-score span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.confidence-score strong {
  font-size: 22px;
  line-height: 1.05;
}

.confidence-score.buy strong {
  color: var(--buy);
}

.confidence-score.sell strong {
  color: var(--sell);
}

.confidence-bars {
  display: flex;
  gap: 6px;
  min-height: 10px;
}

.confidence-bar {
  height: 10px;
  border-radius: 999px;
  min-width: 2px;
}

.confidence-bar.buy { background: var(--buy); }
.confidence-bar.sell { background: var(--sell); }

.confidence-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.confidence-grid div {
  background: var(--field);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.confidence-grid span,
.confidence-details span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.confidence-details {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.confidence-pill {
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text) !important;
}

.confidence-pill.buy {
  border-color: rgba(14, 203, 129, 0.25);
  background: var(--buy-soft);
  color: var(--buy) !important;
}

.confidence-pill.sell {
  border-color: rgba(246, 70, 93, 0.25);
  background: var(--sell-soft);
  color: var(--sell) !important;
}

.charts-stack {
  display: grid;
  gap: 18px;
}

.chart-card {
  background: var(--field);
  border-radius: 6px;
  padding: 12px;
  border: 1px solid var(--line);
}

.chart-title {
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--muted);
}

.chart-canvas {
  width: 100% !important;
  height: 360px !important;
  display: block;
}

@keyframes brandSettle {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cyberSweep {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 0.64;
    transform: translateX(0);
  }
}

@keyframes markAssemble {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.86);
  }
  72% {
    opacity: 1;
    transform: translateX(2px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes brandWaveSweep {
  0% {
    opacity: 0;
    transform: translateY(-50%) rotate(-34deg) scale(0.96);
  }
  28% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.18;
    transform: translateY(-50%) rotate(42deg) scale(1);
  }
}

@keyframes markSweep {
  from {
    opacity: 0;
    transform: rotate(-72deg) scale(0.94);
  }
  18% {
    opacity: 0.86;
  }
  to {
    opacity: 0;
    transform: rotate(42deg) scale(1);
  }
}

@keyframes fLineCollect {
  from {
    opacity: 0;
    transform: translateX(-18px) scaleX(0.35);
  }
  to {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes vaneRipple {
  from {
    opacity: 0;
    transform: translateX(-8px) rotate(20deg) scale(0.7);
  }
  42% {
    opacity: 1;
  }
  to {
    opacity: 0.68;
    transform: translateX(0) rotate(20deg) scale(1);
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    gap: clamp(16px, 2.8vw, 34px);
    padding: clamp(14px, 2.8vw, 34px);
  }

  .auth-pitch {
    gap: 12px;
    min-height: calc(100vh - clamp(28px, 5.6vw, 68px));
    padding: clamp(24px, 3.2vw, 40px);
  }

  .brand-lockup {
    margin-bottom: 10px;
  }

  .auth-pitch h1 {
    max-width: 560px;
    font-size: clamp(38px, 5.2vw, 58px);
  }

  .auth-pitch p {
    max-width: 520px;
    font-size: 15px;
  }

  .auth-pillars {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .auth-pillars article {
    min-height: 86px;
    padding: 12px;
  }
}

@media (min-width: 721px) and (max-height: 820px) {
  .auth-pitch {
    min-height: calc(100vh - 32px);
    padding: 24px;
  }

  .brand-mark-large {
    inline-size: 62px;
    block-size: 62px;
  }

  .brand-lockup::after {
    width: 62px;
    height: 62px;
  }

  .auth-pitch h1 {
    font-size: clamp(34px, 4.7vw, 54px);
  }

  .auth-pillars article {
    min-height: 78px;
  }

  .features-head h2 {
    font-size: clamp(26px, 3vw, 40px);
  }

  .features-head p,
  .feature-card p {
    font-size: 13px;
    line-height: 1.44;
  }

  .feature-card {
    min-height: 178px;
    padding: 18px;
  }

  .feature-card h3 {
    margin-top: 24px;
  }

  .workflow-example {
    gap: 10px;
    padding: 14px;
  }

  .workflow-screenshot img {
    max-height: 23vh;
  }

  .workflow-sequence {
    gap: 5px;
  }

  .landing-disclaimer,
  .landing-faq {
    padding: 20px;
  }

  .landing-faq details {
    padding: 8px 10px;
  }

  .landing-fineprint {
    gap: 6px;
    font-size: 11px;
    line-height: 1.34;
  }
}

@media (min-width: 721px) and (max-width: 1160px) {
  body.live-workspace-active #feature-workspace .workspace-layout {
    grid-template-columns: 1fr;
  }

  body.live-workspace-active .workspace-side {
    position: static;
    max-height: none;
    overflow: visible;
  }

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

  .history-control-grid button {
    justify-self: start;
  }
}

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

@media (max-width: 720px) {
  .auth-page {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 10px 10px;
  }

  .landing-legal,
  .landing-workflow,
  .landing-tutorial,
  .landing-features {
    width: calc(100% - 20px);
    margin-top: 8px;
  }

  .features-grid,
  .landing-workflow-grid,
  .feature-tutorial-grid,
  .tutorial-detail-grid,
  .workflow-showcase,
  .workflow-showcase-app,
  .workflow-example-wide,
  .workflow-read-grid,
  .market-intelligence-grid,
  .live-context-grid,
  .compact-confidence {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 210px;
  }

  .feature-card h3 {
    margin-top: 26px;
  }

  .landing-faq {
    grid-template-columns: 1fr;
  }

  .landing-faq > div {
    grid-row: auto;
  }

  .auth-pitch {
    min-height: 100svh;
    align-content: center;
    gap: 10px;
    border-radius: 12px;
    padding: 18px;
  }

  .auth-pitch h1 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.04;
  }

  .brand-lockup {
    gap: 10px;
    margin-bottom: 8px;
  }

  .brand-mark-large {
    inline-size: 62px;
    block-size: 62px;
  }

  .brand-lockup::after {
    width: 62px;
    height: 62px;
  }

  .auth-pitch p {
    font-size: 14px;
    line-height: 1.5;
  }

  .auth-pillars {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 6px;
  }

  .auth-pillars article {
    min-height: auto;
    padding: 12px;
  }

  .auth-pillars span {
    font-size: 12px;
    line-height: 1.38;
  }

  .features-head h2 {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.05;
  }

  .features-head p {
    font-size: 14px;
    line-height: 1.5;
  }

  .workflow-screenshot img {
    max-height: none;
  }

  .tutorial-diagram {
    grid-template-columns: 1fr;
  }

  .tutorial-diagram i {
    justify-self: center;
    width: 2px;
    height: 16px;
    background: linear-gradient(180deg, rgba(252, 213, 53, 0.16), rgba(52, 213, 255, 0.36));
  }

  .auth-console {
    border-radius: 12px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .public-account-bar {
    position: static;
    justify-content: stretch;
    flex-wrap: wrap;
    padding: 10px;
  }

  .app-mini-brand,
  .account-actions {
    width: 100%;
  }

  .account-actions {
    flex-wrap: wrap;
  }

  .public-account-bar #public-user-email {
    width: 100%;
  }

  .page {
    padding: 16px 10px 36px;
  }

  header {
    padding: 18px;
  }

  header::after {
    display: none;
  }

  .signal-chart {
    height: 460px;
    min-height: 420px;
  }

  .top-mode {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .card {
    padding: 14px;
  }

  #api-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  #replay-summary.live-price-summary {
    justify-content: flex-start;
  }

  .summary-meta {
    white-space: normal;
  }

  .surface-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .tutorial-section {
    padding: 14px;
  }

  .tutorial-head {
    display: grid;
  }

  .landing-tutorial .tutorial-head {
    grid-template-columns: 1fr;
  }

  .landing-tutorial .tutorial-risk-note {
    justify-self: stretch;
  }

  .tutorial-risk-note {
    max-width: none;
  }

  .live-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .live-toolbar label {
    width: 100%;
  }

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

  .feature-entry {
    grid-template-columns: 44px 1fr;
    gap: 10px 14px;
    min-height: 118px;
    padding: 16px;
  }

  .feature-entry-list,
  body.live-workspace-active #feature-workspace .workspace-layout,
  .history-control-grid {
    grid-template-columns: 1fr;
  }

  body[data-surface="public-app"] .feature-panel {
    height: auto;
    overflow: visible;
  }

  body.live-workspace-active .workspace-side {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .feature-entry small {
    grid-column: 2;
    padding-right: 0;
  }

  .workspace-layout {
    min-height: auto;
  }

  body.live-workspace-active .signal-chart,
  body.history-workspace-active .signal-chart {
    height: 460px;
    min-height: 420px;
  }

  .history-control-grid button {
    width: auto;
  }

  button {
    width: 100%;
  }
}
