:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --panel: #111412;
  --panel-2: #161a17;
  --panel-3: #1b201c;
  --line: #2a302b;
  --line-soft: #202520;
  --text: #f0f2e9;
  --muted: #8d978e;
  --muted-2: #667068;
  --accent: #d9ff43;
  --accent-soft: rgba(217, 255, 67, 0.12);
  --orange: #ff916c;
  --blue: #7eb7ff;
  --serif: "Noto Serif SC", Georgia, serif;
  --sans: "Noto Sans SC", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% -10%, rgba(217, 255, 67, 0.06), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-width: 320px;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 244px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.94);
  padding: 28px 20px 22px;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  border: 1px solid #46503f;
  padding: 8px;
  transform: rotate(-3deg);
}

.brand-mark i {
  display: block;
  width: 5px;
  background: var(--accent);
}

.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 12px; }

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.primary-nav {
  margin-top: 64px;
}

.nav-label,
.eyebrow {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.nav-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  padding: 15px 8px;
  color: #a9b0a9;
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.nav-item::before {
  position: absolute;
  left: -20px;
  width: 3px;
  height: 0;
  background: var(--accent);
  content: "";
  transition: 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  padding-left: 13px;
}

.nav-item.active::before {
  height: 24px;
}

.nav-item span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.nav-item b {
  min-width: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  text-align: center;
}

.sidebar-note {
  display: flex;
  gap: 10px;
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 13px;
}

.pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  margin-top: 5px;
}

.sidebar-note strong {
  font-size: 12px;
}

.sidebar-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.sidebar-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
}

.main {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  height: 78px;
  grid-template-columns: minmax(280px, 660px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.82);
  padding: 0 42px;
  backdrop-filter: blur(16px);
}

.search-wrap {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  background: #101310;
  padding: 10px 12px;
  transition: 180ms ease;
}

.search-wrap:focus-within {
  border-color: #647533;
  box-shadow: 0 0 0 3px rgba(217, 255, 67, 0.06);
}

.search-wrap svg {
  width: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.search-wrap input::placeholder {
  color: #636a64;
}

kbd {
  border: 1px solid #394039;
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 2px 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.market-status {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.market-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.market-status small,
.market-status strong {
  display: block;
}

.market-status small {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.market-status strong {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
}

.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 72px;
  align-items: center;
  min-height: 430px;
  border-bottom: 1px solid var(--line);
  padding: 58px 5vw 48px;
}

.hero h1 {
  max-width: 620px;
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: clamp(43px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.hero-copy {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-visual {
  position: relative;
  border: 1px solid #30372e;
  background:
    linear-gradient(150deg, rgba(217, 255, 67, 0.025), transparent 56%),
    #0d100e;
  padding: 18px 20px 15px;
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.24);
}

.hero-visual::before {
  position: absolute;
  inset: -6px 13px 6px -6px;
  z-index: -1;
  border: 1px solid #222820;
  content: "";
}

.visual-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hero-visual svg {
  display: block;
  width: 100%;
  margin: 4px 0;
}

.grid-lines path {
  fill: none;
  stroke: #242a25;
  stroke-width: 1;
}

.hero-visual .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.hero-visual .area {
  fill: url(#area);
}

.hero-visual circle {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
}

.visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.visual-metrics div {
  padding: 12px 10px 2px;
}

.visual-metrics div + div {
  border-left: 1px solid var(--line);
}

.visual-metrics span,
.visual-metrics strong {
  display: block;
}

.visual-metrics span {
  color: var(--muted-2);
  font-size: 9px;
}

.visual-metrics strong {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  align-items: start;
}

.library-panel {
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 32px 24px 60px;
  scrollbar-color: #343a34 transparent;
  scrollbar-width: thin;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}

.section-heading > span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.quick-filters {
  display: flex;
  gap: 5px;
  margin: 23px 0 18px;
  overflow-x: auto;
}

.quick-filters button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.quick-filters button:hover,
.quick-filters button.active {
  border-color: #65752f;
  background: var(--accent-soft);
  color: var(--accent);
}

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

.article-card {
  position: relative;
  width: 100%;
  border: 1px solid var(--line-soft);
  background: #0e110f;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.article-card:hover,
.article-card.active {
  border-color: #4b5740;
  background: var(--panel-2);
  transform: translateX(3px);
}

.article-card.active::after {
  position: absolute;
  inset: 12px 0 12px auto;
  width: 2px;
  background: var(--accent);
  content: "";
}

.article-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-card .category {
  border: 1px solid var(--line);
  padding: 3px 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.article-card .read-time {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
}

.article-card h3 {
  margin: 13px 0 5px;
  font-size: 14px;
  font-weight: 600;
}

.article-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card .level {
  display: inline-block;
  margin-top: 12px;
  color: #74816c;
  font-family: var(--mono);
  font-size: 8px;
}

.empty-state {
  border: 1px dashed var(--line);
  padding: 38px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 28px;
}

.empty-state h3 {
  margin: 10px 0 4px;
  color: var(--text);
  font-size: 14px;
}

.empty-state p {
  margin: 0;
  font-size: 11px;
}

.reader {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 58px clamp(28px, 5vw, 76px) 110px;
}

.reader-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 38px;
}

.reader-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.tag {
  background: var(--accent);
  padding: 4px 8px;
  color: #161a0b;
  font-weight: 600;
}

.reader-head h2 {
  margin: 18px 0 15px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.14;
}

.reader-head h2 em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.35em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 670px;
  margin: 0;
  color: #b8c0b7;
  font-size: 16px;
  line-height: 1.8;
}

.concept-badge {
  display: grid;
  width: 128px;
  height: 146px;
  place-content: center;
  border: 1px solid #48513c;
  background: linear-gradient(145deg, var(--accent-soft), transparent);
  text-align: center;
  transform: rotate(2deg);
}

.concept-badge span,
.concept-badge small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.concept-badge strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 48px;
  line-height: 1.2;
}

.key-takeaway {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 24px;
  align-items: start;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  margin: 40px 0 8px;
  padding: 22px 25px;
}

.key-takeaway > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.key-takeaway p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.reader-section {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
  padding: 44px 0;
}

.section-number {
  color: #586057;
  font-family: var(--mono);
  font-size: 11px;
}

.reader h3 {
  margin: -5px 0 18px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.reader-section p,
.generic-content p {
  color: #a9b1a8;
  font-size: 14px;
  line-height: 1.9;
}

.formula-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: #0f1210;
  margin-top: 24px;
  padding: 22px;
}

.formula-card span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.formula-card strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.formula-card mark {
  background: var(--accent);
  padding: 2px 5px;
  color: #111;
}

.formula-card small {
  color: var(--muted);
  font-size: 10px;
}

.math-line {
  overflow-x: auto;
  border: 1px solid #3c4636;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  margin: 22px 0;
  padding: 17px 20px;
}

.math-line code {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.probability-scale {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.probability-scale > div {
  position: relative;
  display: flex;
  height: 28px;
  align-items: center;
  justify-content: space-between;
  border-radius: 30px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}

.probability-scale > div::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
}

.probability-scale i {
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.probability-scale b {
  z-index: 1;
  background: var(--panel);
  padding: 0 8px;
  color: var(--text);
  font-size: 9px;
  font-weight: 400;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.comparison-grid > div {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
}

.role {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 8px;
}

.buyer { color: var(--blue); }
.seller { color: var(--orange); }

.comparison-grid h4 {
  margin: 18px 0 7px;
  font-size: 14px;
}

.comparison-grid p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.warning-line {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}

.warning-line strong {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
}

.warning-line p {
  margin: -5px 0 0;
  font-size: 12px;
}

.data-table {
  border: 1px solid var(--line);
  margin: 22px 0;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 0.7fr;
  gap: 14px;
  border-top: 1px solid var(--line-soft);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 11px;
}

.table-row:first-child {
  border-top: 0;
}

.table-row.header {
  background: var(--panel-2);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
}

.table-row strong {
  color: var(--text);
  font-weight: 500;
}

.calculator {
  border: 1px solid #394334;
  background:
    linear-gradient(145deg, rgba(217, 255, 67, 0.045), transparent 50%),
    #0e110f;
  margin: 50px 0 10px;
  padding: 28px;
}

.calculator-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.calculator-head h3 {
  margin: 7px 0 0;
}

.calculator-head > span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  padding: 22px 0;
}

.calculator-grid label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
}

.calculator-grid label > div {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #0a0c0b;
  padding: 9px 10px;
}

.calculator-grid input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
}

.calculator-grid b {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.calculator-results > div {
  padding: 20px 14px 2px;
}

.calculator-results > div + div {
  border-left: 1px solid var(--line);
}

.calculator-results span,
.calculator-results strong,
.calculator-results small {
  display: block;
}

.calculator-results span {
  color: var(--muted);
  font-size: 9px;
}

.calculator-results strong {
  margin: 7px 0 5px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}

.calculator-results small {
  color: var(--muted-2);
  font-size: 8px;
}

.checklist {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  background: var(--panel);
  padding: 14px;
}

.checklist li > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.checklist strong {
  font-size: 12px;
}

.checklist p {
  margin: 3px 0 0;
  font-size: 10px;
}

.reader-footer-note {
  border: 1px solid var(--line);
  margin-top: 36px;
  padding: 20px;
}

.reader-footer-note strong {
  color: var(--orange);
  font-size: 11px;
}

.reader-footer-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.generic-reader .reader-head {
  grid-template-columns: 1fr;
}

.generic-content {
  padding-top: 34px;
}

.generic-content section {
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
}

.generic-content h3 {
  margin: 0 0 12px;
}

.generic-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.generic-points li {
  border-left: 2px solid #47513d;
  background: var(--panel);
  padding: 12px 15px;
  color: #aeb5ad;
  font-size: 12px;
  line-height: 1.7;
}

.rich-section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 20px;
}

.rich-index {
  padding-top: 5px;
  color: #596159;
  font-family: var(--mono);
  font-size: 10px;
}

.rich-section-body {
  min-width: 0;
}

.rich-section-body > p {
  max-width: 820px;
}

.learning-diagram {
  margin: 24px 0 8px;
  padding: 20px;
  border: 1px solid #354033;
  background:
    linear-gradient(145deg, rgba(217, 255, 67, 0.035), transparent 44%),
    #0d110e;
}

.learning-diagram figcaption {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.learning-diagram figcaption span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.learning-diagram figcaption strong {
  font-family: var(--serif);
  font-size: 18px;
}

.learning-diagram > p {
  margin: 16px 0 0;
  color: #9ea69e;
  font-size: 10px;
  line-height: 1.8;
}

.reprice-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  margin-top: 18px;
}

.reprice-flow > div {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.reprice-flow > i {
  align-self: center;
  color: #667064;
  font-family: var(--mono);
  font-style: normal;
}

.reprice-flow span {
  color: #707970;
  font-family: var(--mono);
  font-size: 8px;
}

.reprice-flow strong {
  margin: 12px 0 6px;
  font-size: 13px;
}

.reprice-flow b {
  color: #aeb5ad;
  font-size: 10px;
}

.reprice-flow .trade-chip {
  border-color: #675c2b;
  background: #18170f;
}

.reprice-flow .reprice-end {
  border-color: #53602f;
  background: #14190f;
}

.not-equal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  padding: 12px;
  background: #111511;
  color: #aeb5ad;
  font-size: 10px;
}

.not-equal b {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 18px;
}

.orderbook-diagram + .orderbook-diagram {
  margin-top: 12px;
}

.book-stage {
  display: grid;
  grid-template-columns: 110px minmax(280px, 1fr) 110px;
  grid-template-areas:
    "start ladder result"
    ". force .";
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.book-start,
.book-result {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.book-start {
  grid-area: start;
}

.book-result {
  grid-area: result;
  border-color: #53602f;
}

.is-down .book-result {
  border-color: #72422f;
}

.book-start span,
.book-result span {
  color: #687168;
  font-size: 8px;
}

.book-start strong,
.book-result strong {
  margin: 8px 0 4px;
  font-family: var(--mono);
  font-size: 18px;
}

.book-result em {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.is-down .book-result em {
  color: var(--orange);
}

.book-ladder {
  display: grid;
  grid-area: ladder;
  gap: 5px;
}

.book-level {
  display: grid;
  grid-template-columns: 40px 64px minmax(110px, 1fr) 58px;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #111511;
}

.book-level > span,
.book-level > em {
  color: #697169;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
}

.book-level > strong {
  font-family: var(--mono);
  font-size: 10px;
}

.book-depth {
  position: relative;
  height: 22px;
  overflow: hidden;
  background: #171d16;
}

.book-depth i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--depth);
  background: rgba(217, 255, 67, 0.17);
}

.is-down .book-depth i {
  background: rgba(255, 126, 82, 0.2);
}

.book-depth b {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 8px;
  color: #b8beb7;
  font-size: 8px;
}

.book-level.consumed {
  border-style: dashed;
}

.book-level.consumed > em {
  color: var(--accent);
}

.is-down .book-level.consumed > em {
  color: var(--orange);
}

.order-force {
  display: flex;
  grid-area: force;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #53602f;
  background: #18200f;
}

.is-down .order-force {
  border-color: #72422f;
  background: #21130f;
}

.order-force span {
  color: #818a80;
  font-size: 8px;
}

.order-force strong {
  font-family: var(--mono);
  font-size: 11px;
}

.order-force i {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 16px;
  font-style: normal;
}

.is-down .order-force i {
  color: var(--orange);
}

.liquidity-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.liquidity-panel {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.liquidity-panel.shallow {
  border-color: #67502f;
  background: #18140f;
}

.liquidity-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.liquidity-panel > div:first-child span {
  color: #707970;
  font-family: var(--mono);
  font-size: 8px;
}

.liquidity-panel > div:first-child strong {
  font-size: 12px;
}

.liquidity-panel dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 16px 0;
  background: var(--line-soft);
}

.liquidity-panel dl > div {
  padding: 10px;
  background: #101410;
}

.liquidity-panel dt {
  color: #687168;
  font-size: 8px;
}

.liquidity-panel dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 11px;
}

.impact-meter {
  height: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, transparent 0 9%, var(--line-soft) 9% 10%),
    #0c100c;
}

.impact-meter i {
  display: block;
  width: max(var(--impact), 8px);
  height: 100%;
  background: var(--accent);
}

.shallow .impact-meter i {
  background: var(--orange);
}

.liquidity-panel > p {
  margin: 9px 0 14px;
  color: #808980;
  font-size: 9px;
}

.liquidity-panel > p strong {
  color: var(--text);
  font-family: var(--mono);
}

.liquidity-panel > b {
  color: var(--accent);
  font-size: 10px;
}

.liquidity-panel.shallow > b {
  color: var(--orange);
}

.maker-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1.15fr 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.maker-flow > i,
.hedge-flow > i {
  color: #687168;
  font-family: var(--mono);
  font-style: normal;
}

.maker-person,
.quote-gate,
.maker-core {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}

.maker-person span,
.quote-gate span,
.maker-core span,
.hedge-flow span {
  color: #6f786f;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.maker-person strong,
.quote-gate strong,
.maker-core strong {
  margin: 10px 0 5px;
  font-size: 11px;
}

.maker-person small,
.quote-gate small,
.maker-core small,
.hedge-flow small {
  color: #858d85;
  font-size: 8px;
  line-height: 1.5;
}

.bid-gate {
  border-color: #3e6047;
  background: #101a13;
}

.ask-gate {
  border-color: #6a4937;
  background: #1b1310;
}

.quote-gate strong {
  font-family: var(--mono);
  font-size: 16px;
}

.bid-gate strong {
  color: #75dda0;
}

.ask-gate strong {
  color: var(--orange);
}

.maker-core {
  border-color: #58642f;
  background:
    radial-gradient(circle at 50% 20%, rgba(217, 255, 67, 0.1), transparent 45%),
    #151a11;
}

.maker-core strong {
  color: var(--accent);
}

.spread-strip {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 12px 15px;
  border-left: 2px solid var(--accent);
  background: #171d10;
}

.spread-strip > span {
  color: #869084;
  font-size: 8px;
}

.spread-strip > strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
}

.spread-strip > p {
  margin: 0;
  color: #9ca49b;
  font-size: 8px;
  line-height: 1.6;
}

.hedge-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
}

.hedge-flow > div {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.hedge-flow strong {
  margin: 11px 0 5px;
  font-size: 11px;
}

.hedge-flow .hedge-action {
  border-color: #4d5931;
  background: #141a10;
}

.hedge-flow .stronger {
  border-color: #6b7430;
  background: #1a210f;
}

.hedge-action strong {
  color: var(--accent);
  font-family: var(--mono);
}

.hedge-warning {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  margin-top: 10px;
  padding: 13px 15px;
  border-left: 2px solid var(--orange);
  background: #1b1410;
}

.hedge-warning strong {
  color: var(--orange);
  font-size: 8px;
}

.hedge-warning p {
  margin: 0;
  color: #a5aba4;
  font-size: 8px;
  line-height: 1.7;
}

.strategy-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.strategy-card {
  padding: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0, rgba(217, 255, 67, 0.055), transparent 34%),
    var(--panel);
}

.strategy-rank,
.strategy-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.strategy-rank span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.strategy-rank b {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: #7f887e;
  font-size: 8px;
  font-weight: 500;
}

.strategy-title {
  margin-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.strategy-title h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.strategy-title small {
  color: #6d756d;
  font-family: var(--mono);
  font-size: 8px;
}

.payoff-chart {
  width: 84px;
  flex: 0 0 84px;
  overflow: visible;
}

.payoff-zero,
.payoff-axis {
  fill: none;
  stroke: #303730;
  stroke-width: 0.7;
  stroke-dasharray: 2 2;
}

.payoff-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payoff-chart text {
  fill: #5c655c;
  font-family: var(--mono);
  font-size: 5px;
}

.strategy-card dl {
  display: grid;
  gap: 8px;
  margin: 15px 0;
}

.strategy-card dl > div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px;
}

.strategy-card dt {
  color: #657065;
  font-family: var(--mono);
  font-size: 8px;
}

.strategy-card dd {
  margin: 0;
  color: #adb4ac;
  font-size: 9px;
  line-height: 1.6;
}

.strategy-card > p {
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  color: #808880;
  font-size: 9px;
  line-height: 1.65;
}

.life-entry {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #566331;
  background:
    radial-gradient(circle at 50% 0, rgba(217, 255, 67, 0.1), transparent 56%),
    #151a11;
  text-align: center;
}

.life-entry span,
.life-monitor > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.life-entry strong {
  font-size: 14px;
}

.life-entry b {
  color: #bec5bd;
  font-family: var(--mono);
  font-size: 11px;
}

.life-entry small {
  color: #7e877d;
  font-size: 8px;
}

.life-arrow {
  padding: 7px;
  color: var(--accent);
  font-family: var(--mono);
  text-align: center;
}

.life-monitor {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}

.life-monitor > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.life-monitor b {
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  color: #8d968c;
  font-size: 8px;
  font-weight: 500;
}

.life-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.life-branches article {
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.life-branches article.safe {
  border-color: #4c5b31;
  background: #141a10;
}

.life-branches article.assigned {
  border-color: #684431;
  background: #1a1310;
}

.life-branches span {
  color: #737c73;
  font-family: var(--mono);
  font-size: 8px;
}

.life-branches strong {
  display: block;
  margin: 11px 0 6px;
  font-size: 11px;
}

.life-branches .safe strong {
  color: var(--accent);
}

.life-branches .assigned strong {
  color: var(--orange);
}

.life-branches p {
  margin: 0;
  color: #929a91;
  font-size: 9px;
  line-height: 1.65;
}

.life-warning {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  margin-top: 9px;
  padding: 13px 15px;
  border-left: 2px solid var(--orange);
  background: #1b1410;
}

.life-warning strong {
  color: var(--orange);
  font-size: 9px;
}

.life-warning p {
  margin: 0;
  color: #a5aca4;
  font-size: 9px;
  line-height: 1.65;
}

.sell-put-calculator {
  margin: 34px 0;
  padding: 24px;
  border: 1px solid #4b5830;
  background:
    linear-gradient(150deg, rgba(217, 255, 67, 0.045), transparent 34%),
    #0e130e;
}

.sell-put-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.sell-put-inputs label > span {
  display: block;
  margin-bottom: 6px;
  color: #879087;
  font-size: 8px;
}

.sell-put-inputs label > div {
  display: flex;
  height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  background: #0b0f0c;
}

.sell-put-inputs input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

.sell-put-inputs label b {
  padding: 0 9px;
  color: #6f786f;
  font-size: 8px;
  font-weight: 500;
}

.sell-put-stage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.sell-put-stage > div {
  min-height: 105px;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sell-put-stage span,
.sell-put-outcomes > article > span {
  color: #747d74;
  font-size: 8px;
}

.sell-put-stage strong {
  display: block;
  margin: 12px 0 5px;
  font-family: var(--mono);
  font-size: 13px;
}

.sell-put-stage small {
  color: #626a62;
  font-size: 7px;
}

.sell-put-outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.sell-put-outcomes article {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.sell-put-outcomes dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 12px 0;
  background: var(--line-soft);
}

.sell-put-outcomes dl > div {
  padding: 10px;
  background: #101410;
}

.sell-put-outcomes dt {
  color: #6e776e;
  font-size: 8px;
}

.sell-put-outcomes dd {
  margin: 5px 0 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
}

.sell-put-outcomes article > p {
  margin: 0;
  color: #858d85;
  font-size: 8px;
  line-height: 1.65;
}

.calculator-disclaimer {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  margin-top: 10px;
  padding: 13px 15px;
  border-left: 2px solid var(--orange);
  background: #1a1410;
}

.calculator-disclaimer strong {
  color: var(--orange);
  font-size: 8px;
}

.calculator-disclaimer p {
  margin: 0;
  color: #919991;
  font-size: 8px;
  line-height: 1.65;
}

.hierarchy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hierarchy-item {
  min-height: 138px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(217, 255, 67, 0.045), transparent 60%),
    var(--panel);
}

.hierarchy-item > span {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hierarchy-item strong {
  display: block;
  font-size: 13px;
}

.hierarchy-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.framework-card {
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.framework-card > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.framework-card h4 {
  margin: 18px 0 6px;
  font-size: 13px;
}

.framework-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.rich-table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--line);
}

.rich-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #0d110e;
  text-align: left;
}

.rich-table th,
.rich-table td {
  padding: 13px 15px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: #9da59d;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.65;
  vertical-align: top;
}

.rich-table thead th {
  color: #687168;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rich-table tbody th {
  width: 18%;
  color: var(--text);
  font-weight: 600;
}

.rich-table tr:last-child > * {
  border-bottom: 0;
}

.rich-table tr > *:last-child {
  border-right: 0;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.sector-card {
  padding: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 0, rgba(217, 255, 67, 0.06), transparent 35%),
    var(--panel);
}

.sector-card-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line-soft);
}

.sector-card-head > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #53602f;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.sector-card h4 {
  margin: 0 0 3px;
  font-size: 13px;
}

.sector-card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.sector-card dl {
  display: grid;
  gap: 10px;
  margin: 15px 0 0;
}

.sector-card dl > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 9px;
}

.sector-card dt {
  color: #657065;
  font-family: var(--mono);
  font-size: 8px;
}

.sector-card dd {
  margin: 0;
  color: #a9b0a9;
  font-size: 9px;
  line-height: 1.65;
}

.rich-note {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: #1a2110;
}

.rich-note strong {
  color: var(--accent);
  font-size: 9px;
}

.rich-note p {
  margin: 0;
  color: #c8cdc7;
  font-size: 10px;
  line-height: 1.75;
}

.rich-checklist {
  display: grid;
  gap: 1px;
  margin: 22px 0 0;
  padding: 0;
  background: var(--line-soft);
  list-style: none;
}

.rich-checklist li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: var(--panel);
}

.rich-checklist span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.rich-checklist p {
  margin: 0;
  color: #bdc3bc;
  font-size: 10px;
}

.article-sources > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-sources a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: #bcc3bb;
  font-size: 9px;
  text-decoration: none;
}

.article-sources a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.article-sources a span {
  font-family: var(--mono);
}

.market-clock-tool {
  margin: 52px 0 18px;
}

.market-live-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(2, minmax(150px, 0.75fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #3c4637;
  background: var(--line);
}

.market-live-copy,
.market-live-time,
.market-session-progress {
  background:
    radial-gradient(circle at 100% 0, rgba(217, 255, 67, 0.07), transparent 44%),
    #0e110f;
}

.market-live-copy {
  padding: 25px 24px;
}

.market-live-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
}

.market-live-title h3 {
  margin: 0;
  font-size: 22px;
}

.market-live-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 7px rgba(141, 151, 142, 0.1);
}

.market-live-copy > p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.market-live-time {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
}

.market-live-time > span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.market-live-time strong {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.market-live-time small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.market-live-card[data-session="regular"] .market-live-dot,
.market-live-card[data-session="regular"] [data-session-progress] {
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(217, 255, 67, 0.1);
}

.market-live-card[data-session="premarket"] .market-live-dot,
.market-live-card[data-session="premarket"] [data-session-progress] {
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(126, 183, 255, 0.1);
}

.market-live-card[data-session="afterhours"] .market-live-dot,
.market-live-card[data-session="afterhours"] [data-session-progress] {
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(255, 145, 108, 0.1);
}

.market-live-card[data-session="overnight"] .market-live-dot,
.market-live-card[data-session="overnight"] [data-session-progress] {
  background: #9a90ff;
  box-shadow: 0 0 0 7px rgba(154, 144, 255, 0.1);
}

.market-live-card[data-session="closed"] .market-live-dot,
.market-live-card[data-session="closed"] [data-session-progress] {
  background: #727a73;
  box-shadow: 0 0 0 7px rgba(114, 122, 115, 0.1);
}

.market-session-progress {
  grid-column: 1 / -1;
  padding: 14px 18px 17px;
}

.market-session-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
}

.market-session-progress span,
.market-session-progress b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
}

.market-session-progress b {
  color: #c9cec8;
  text-align: right;
}

.market-session-progress > i {
  display: block;
  height: 3px;
  overflow: hidden;
  background: #272d28;
}

.market-session-progress > i > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--muted);
  transition: width 500ms ease;
}

.world-clock-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 46px 0 18px;
}

.world-clock-heading h3 {
  margin: 8px 0 0;
  font-size: 22px;
}

.world-clock-heading > p {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  text-align: right;
}

.world-clock-heading > p span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f3f0e7;
  box-shadow: 12px 0 0 #1e211f;
  margin-right: 12px;
}

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

.world-clock-card {
  --clock-face: #171a18;
  --clock-ink: #f2f4ec;
  --clock-muted: #8f9890;
  overflow: hidden;
  border: 1px solid #303631;
  border-radius: 19px;
  background:
    radial-gradient(circle at 16% 0, rgba(115, 124, 255, 0.15), transparent 40%),
    linear-gradient(160deg, #1b1f23, #0d0f10 74%);
  padding: 17px;
  color: #f2f4ec;
  transition:
    background 500ms ease,
    color 500ms ease,
    border-color 500ms ease;
}

.world-clock-card.day {
  --clock-face: #f7f4eb;
  --clock-ink: #1b201c;
  --clock-muted: #717972;
  border-color: #d5d2c9;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 204, 65, 0.38), transparent 38%),
    linear-gradient(160deg, #fffdf8, #e7e7df 78%);
  color: #181b19;
}

.world-clock-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.world-clock-card-head span {
  color: var(--clock-muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  transition: color 500ms ease;
}

.world-clock-card-head h4 {
  margin: 4px 0 0;
  color: inherit;
  font-size: 15px;
}

.world-clock-card-head .day-state {
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 4px 7px;
  letter-spacing: 0;
}

.world-clock-face {
  position: relative;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(128, 137, 129, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 60%, rgba(128, 137, 129, 0.08) 61% 62%, transparent 63%),
    repeating-conic-gradient(
      from -0.5deg,
      rgba(128, 137, 129, 0.65) 0 1deg,
      transparent 1deg 30deg
    ),
    var(--clock-face);
  margin: 21px auto 18px;
  color: var(--clock-ink);
  box-shadow:
    inset 0 0 0 6px var(--clock-face),
    0 13px 30px rgba(0, 0, 0, 0.18);
  transition:
    background 500ms ease,
    color 500ms ease;
}

.world-clock-face > span {
  position: absolute;
  color: var(--clock-muted);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
}

.clock-12 {
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
}

.clock-3 {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.clock-6 {
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
}

.clock-9 {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  width: 2px;
  border-radius: 4px;
  background: currentColor;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 100%;
}

.hour-hand {
  height: 31px;
  width: 3px;
}

.minute-hand {
  height: 42px;
}

.second-hand {
  height: 45px;
  width: 1px;
  background: #ff705b;
}

.clock-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: block;
  width: 7px;
  height: 7px;
  border: 2px solid #ff705b;
  border-radius: 50%;
  background: var(--clock-face);
  transform: translate(-50%, -50%);
}

.world-clock-digital strong,
.world-clock-digital span {
  display: block;
}

.world-clock-digital strong {
  color: inherit;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.world-clock-digital span {
  margin-top: 4px;
  color: var(--clock-muted);
  font-size: 8px;
}

.world-clock-meta {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  border-top: 1px solid rgba(128, 137, 129, 0.25);
  padding-top: 11px;
}

.world-clock-meta span {
  color: var(--clock-muted);
  font-family: var(--mono);
  font-size: 7px;
}

.clock-method-note {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 16px;
}

.clock-method-note strong {
  color: var(--accent);
  font-size: 9px;
}

.clock-method-note p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.mobile-overlay {
  display: none;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .sidebar {
    width: 210px;
  }

  .hero {
    gap: 34px;
    padding-right: 34px;
    padding-left: 34px;
  }

  .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .market-live-card {
    grid-template-columns: 1fr 1fr;
  }

  .market-live-copy {
    grid-column: 1 / -1;
  }

  .calculator-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    width: min(300px, 84vw);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .main {
    width: 100%;
  }

  .topbar {
    grid-template-columns: auto 1fr;
    height: 68px;
    gap: 12px;
    padding: 0 18px;
  }

  .mobile-menu {
    display: grid;
    width: 34px;
    height: 34px;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    background: var(--panel);
  }

  .mobile-menu span {
    display: block;
    width: 15px;
    height: 1px;
    background: var(--text);
  }

  .market-status {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 50px 24px;
  }

  .hero-visual {
    width: 100%;
  }

  .workspace {
    display: block;
  }

  .library-panel {
    position: relative;
    top: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .article-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .reader {
    padding: 48px 24px 90px;
  }

  .market-live-card {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .market-live-copy {
    grid-column: auto;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.6);
  }

  body.nav-open .mobile-overlay {
    display: block;
  }
}

@media (max-width: 590px) {
  .search-wrap kbd {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    padding-right: 12px;
    padding-left: 12px;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

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

  .concept-badge {
    display: none;
  }

  .key-takeaway {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .reader-section {
    grid-template-columns: 1fr;
  }

  .rich-section {
    grid-template-columns: 1fr;
  }

  .rich-index {
    padding-top: 0;
  }

  .framework-grid,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .rich-note {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .reprice-flow {
    grid-template-columns: 1fr;
  }

  .reprice-flow > i {
    transform: rotate(90deg);
  }

  .book-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "start result"
      "ladder ladder"
      "force force";
  }

  .liquidity-compare {
    grid-template-columns: 1fr;
  }

  .maker-flow {
    grid-template-columns: 1fr;
  }

  .maker-flow > i,
  .hedge-flow > i {
    transform: rotate(90deg);
    text-align: center;
  }

  .spread-strip {
    grid-template-columns: 1fr auto;
  }

  .spread-strip > p {
    grid-column: 1 / -1;
  }

  .hedge-flow {
    grid-template-columns: 1fr;
  }

  .hedge-warning {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .strategy-gallery {
    grid-template-columns: 1fr;
  }

  .life-branches {
    grid-template-columns: 1fr;
  }

  .life-warning,
  .calculator-disclaimer {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sell-put-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sell-put-stage,
  .sell-put-outcomes {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row.header {
    display: none;
  }

  .learning-diagram {
    margin-right: -6px;
    margin-left: -6px;
    padding: 15px;
  }

  .book-level {
    grid-template-columns: 34px 58px minmax(95px, 1fr) 48px;
    gap: 5px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .not-equal {
    align-items: stretch;
    gap: 7px;
    text-align: center;
  }

  .sell-put-calculator {
    margin-right: -10px;
    margin-left: -10px;
    padding: 17px 14px;
  }

  .sell-put-outcomes {
    grid-template-columns: 1fr;
  }

  .market-live-card {
    grid-template-columns: 1fr 1fr;
  }

  .market-live-copy {
    grid-column: 1 / -1;
  }

  .market-live-time {
    padding: 18px 14px;
  }

  .market-live-time strong {
    font-size: 20px;
  }

  .market-session-progress > div,
  .world-clock-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .world-clock-heading > p {
    text-align: left;
  }

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

  .world-clock-card {
    padding: 14px;
  }

  .world-clock-face {
    width: 112px;
    height: 112px;
  }

  .hour-hand {
    height: 27px;
  }

  .minute-hand {
    height: 37px;
  }

  .second-hand {
    height: 40px;
  }

  .clock-method-note {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .calculator {
    margin-right: -10px;
    margin-left: -10px;
    padding: 20px 15px;
  }

  .calculator-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-results {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-results > div:nth-child(3) {
    border-left: 0;
  }

  .calculator-results > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
