/* CryptoDesk — shared design system. No framework or remote font dependency. */
.dashboard-grid > div {
  min-width: 0;
}
.footer-links [aria-current="page"] {
  color: var(--green);
}
:root {
  color-scheme: dark;
  --bg: #0d1117;
  --surface: #131a23;
  --surface-2: #17212b;
  --line: #273341;
  --text: #edf3f8;
  --muted: #a4b3c3;
  --dim: #788b9e;
  --green: #66f2bd;
  --cyan: #62dbe8;
  --red: #ff8590;
  --orange: #ffbf75;
  --radius: 16px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 750px;
  background: radial-gradient(
    ellipse at 90% 0,
    rgba(42, 140, 125, 0.09),
    transparent 55%
  );
  pointer-events: none;
  z-index: -1;
}
html[lang="es"] [data-lang="en"],
html[lang="en"] [data-lang="es"],
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a,
button {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
svg {
  display: block;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.3rem, 4.3vw, 4.4rem);
  font-weight: 600;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1rem;
}
small {
  font-size: 0.8rem;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
::selection {
  background: var(--green);
  color: var(--bg);
}
.container {
  width: min(1280px, calc(100% - 64px));
  margin: auto;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--red);
}
.eyebrow {
  font: 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
}
.arrow {
  font-size: 1.2em;
  line-height: 1;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--green);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.noscript {
  padding: 16px;
  background: #302919;
  color: var(--orange);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand .brand-light {
  font-weight: 450;
  color: var(--muted);
}
.brand-mark {
  width: 32px;
  height: 36px;
  color: var(--green);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.system-label {
  font: 10px var(--mono);
  letter-spacing: 0.1em;
  color: var(--muted);
}
.system-label i,
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
}
.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--text);
  font: 12px var(--mono);
  min-height: 38px;
}
.lang-toggle:hover {
  border-color: var(--green);
}
.nav-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.main-nav {
  display: flex;
  gap: 26px;
  white-space: nowrap;
  width: max-content;
  min-width: 100%;
  height: 52px;
  align-items: stretch;
}
.main-nav a {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.main-nav a:hover {
  color: var(--text);
}
.main-nav a[aria-current="page"] {
  color: var(--green);
  border-color: var(--green);
}
main {
  padding-bottom: 76px;
}
.page-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 24px;
  font: 11px var(--mono);
  color: var(--muted);
}
.crumb {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.crumb a:hover {
  color: var(--green);
}
.page-hero {
  padding: 12px 0 36px;
  max-width: 950px;
}
.page-hero h1 {
  margin: 14px 0 22px;
}
.page-hero > p {
  max-width: 770px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}
.hero-dashboard {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 18px 0 44px;
}
.hero-dashboard h1 {
  font-size: clamp(2.3rem, 4.2vw, 4.05rem);
  margin: 14px 0 20px;
}
.hero-dashboard .hero-copy > p {
  max-width: 590px;
  color: var(--muted);
}
.text-accent {
  color: var(--green);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.button:hover {
  background: var(--surface-2);
  border-color: #486071;
  transform: translateY(-1px);
}
.button-primary {
  background: var(--green);
  border-color: var(--green);
  color: #0d211b;
}
.button-primary:hover {
  background: #96ffd4;
  border-color: #96ffd4;
}
.button-small {
  padding: 7px 12px;
  min-height: 38px;
  font-size: 12px;
}
.button-ghost {
  background: none;
}
.hero-art {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #14241f55, #10171e);
  overflow: hidden;
}
.hero-art-top {
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hero-art svg {
  width: 100%;
  height: 180px;
  margin: 12px 0;
}
.hero-art-bottom {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero-art-bottom strong {
  font-size: 14px;
  font-weight: 500;
}
.hero-art-bottom span {
  font: 10px var(--mono);
  color: var(--green);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 12px 0 18px;
}
.section-heading h2 {
  font-size: 1.1rem;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.section-heading a {
  font-size: 12px;
  color: var(--green);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.card:hover {
  border-color: #3a4b5b;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  padding: 20px 22px;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 10px;
}
.metric-value {
  font: 25px/1.4 var(--mono);
  margin: 12px 0 4px;
  letter-spacing: -1px;
}
.metric-note {
  font: 10px var(--mono);
  color: var(--muted);
}
.metric-icon {
  color: var(--cyan);
  font-size: 17px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.chart-card {
  padding: 24px;
  min-width: 0;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.card-top h2 {
  font-size: 1.12rem;
}
.tag {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 10px var(--mono);
  white-space: nowrap;
}
.tag-green {
  color: var(--green);
  border-color: #2c5447;
  background: #163c2c44;
}
.tag-orange {
  color: var(--orange);
  border-color: #58432d;
  background: #38291b44;
}
.chart-select {
  max-width: 165px !important;
  font-size: 12px !important;
  padding: 6px 10px !important;
}
.market-chart {
  width: 100%;
  height: 248px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 60px,
    #27334166 61px,
    #27334166 62px
  );
  border-bottom: 1px solid var(--line);
  position: relative;
}
.market-chart svg {
  width: 100%;
  height: 100%;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.chart-empty strong {
  font-size: 30px;
  color: var(--line);
  font-weight: 400;
}
.chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 10px var(--mono);
  margin-top: 15px;
}
.chart-price {
  font: 30px var(--mono);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.market-status {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
  min-height: 22px;
}
.market-connect-note {
  font-size: 11px;
  color: var(--muted);
  max-width: 650px;
}
.table-card {
  margin-top: 24px;
  overflow: hidden;
}
.table-title {
  padding: 22px 24px 0;
}
.table-scroll {
  overflow-x: auto;
}
.market-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
}
.market-table th {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  text-align: right;
  padding: 16px;
}
.market-table td {
  text-align: right;
  border-top: 1px solid var(--line);
  padding: 16px;
  font-family: var(--mono);
}
.market-table th:first-child,
.market-table td:first-child {
  text-align: left;
  padding-left: 24px;
}
.market-table tr:hover td {
  background: #1c273133;
}
.coin-name {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--sans);
  font-size: 13px;
}
.coin-name small {
  display: block;
  color: var(--muted);
  font: 10px var(--mono);
  margin-top: 2px;
}
.coin-icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: #22382e;
  font: 15px var(--mono);
  flex-shrink: 0;
}
.coin-bitcoin {
  background: #422f1d;
  color: #ffbd63;
}
.coin-ethereum {
  background: #2a2d45;
  color: #b9c2ff;
}
.coin-solana {
  background: #273044;
  color: #83e5d2;
}
.spark {
  width: 75px;
  height: 26px;
  display: inline-block;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  padding: 23px;
}
.sidebar-card h2 {
  font-size: 1.1rem;
  margin: 11px 0 8px;
}
.sidebar-card > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.lesson-links {
  margin-top: 20px;
}
.lesson-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}
.lesson-link:last-child {
  padding-bottom: 0;
}
.lesson-link .num {
  font: 10px var(--mono);
  color: var(--dim);
}
.lesson-link .arrow {
  margin-left: auto;
  color: var(--green);
}
.lesson-link:hover {
  color: var(--green);
}
.risk-card {
  border-color: #335346;
  background: linear-gradient(145deg, #17372955, #131a23);
}
.risk-card .risk-big {
  font: 48px var(--mono);
  letter-spacing: -4px;
  margin: 12px 0 0;
  color: var(--green);
}
.sidebar-card .button {
  width: 100%;
  margin-top: 14px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 42px 0;
}
.tool-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tool-card h3 {
  font-size: 1.1rem;
}
.tool-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.tool-card .tool-icon {
  font: 22px var(--mono);
  color: var(--cyan);
}
.tool-card .text-link {
  margin-top: auto;
}
.text-link {
  color: var(--green);
  font-size: 13px;
}
.ad-slot {
  border: 0;
  border-radius: 10px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  margin: 40px 0;
  background: #10171d;
  color: var(--dim);
  text-align: center;
  padding: 18px;
  font: 10px var(--mono);
  letter-spacing: 0.16em;
}

/* V2 learning components extend the original design and remain readable offline. */
.study-section { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 34px; scroll-margin-top: 150px; }
.study-section > h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 8px 0 20px; max-width: 850px; }
.study-section > p, .study-section > ul, .study-section > ol { max-width: 82ch; color: #bac7d4; }
.study-section p, .study-section li { line-height: 1.85; }
.study-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0; }
.study-card { padding: 26px; min-width: 0; }
.study-card h3 { color: var(--cyan); font-size: 1.06rem; margin-bottom: 15px; }
.study-card p, .study-card li { font-size: 14px; color: #bac7d4; }
.study-card p:last-child { margin-bottom: 0; }
.study-section a:not(.button), .page-index a, .editorial-byline a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.page-index { border: 1px solid var(--line); border-radius: 10px; background: #101820; padding: 16px 20px; margin: 0 0 28px; }
.page-index summary { cursor: pointer; color: var(--text); font-size: 13px; font-weight: 600; }
.page-index ol { columns: 2; column-gap: 28px; padding-left: 22px; margin-bottom: 2px; }
.page-index li { padding: 4px 0; break-inside: avoid; font-size: 12px; }
.editorial-byline { font-size: 12px; color: var(--muted); margin: -8px 0 22px; }
.lesson-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 22px 0; }
.lesson-table { border-collapse: collapse; width: 100%; min-width: 580px; font-size: 13px; }
.lesson-table caption { text-align: left; padding: 14px 18px; color: var(--muted); background: var(--surface); }
.lesson-table th, .lesson-table td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.lesson-table th { color: var(--cyan); font-weight: 600; }
.lesson-table tbody th { color: var(--text); }
.study-facts { margin: 0; }
.study-facts dt { color: var(--text); font-size: 13px; font-weight: 600; margin-top: 13px; }
.study-facts dd { color: var(--muted); font-size: 14px; margin: 3px 0 0; line-height: 1.8; }
.study-example { background: #12211e; border: 1px solid #335346; padding: 22px; border-radius: 10px; margin: 22px 0; }
.study-example h3 { margin-bottom: 14px; }
.study-example p:last-child { margin-bottom: 0; }
.learning-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.study-sources { font-size: 12px; color: var(--muted); margin: 28px 0; }
.study-sources li { margin: 8px 0; }
.source-note, .legal-copy, .study-section { overflow-wrap: anywhere; }
.glossary-jump { font-size: 12px; display: block; margin-top: 14px; color: var(--cyan); }
.form-card { scroll-margin-top: 150px; }
.lesson-table-scroll:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
@media (max-width: 700px) {
  .study-grid { grid-template-columns: 1fr; }
  .study-card { padding: 22px; }
  .page-index ol { columns: 1; }
  .study-section { margin-top: 32px; padding-top: 26px; }
  .study-section > h2 { font-size: 1.45rem; }
}
@media print {
  .page-index, .learning-links { display: none; }
  .study-grid { display: block; }
  .study-card { margin: 15px 0; }
  .study-section p, .study-section li, .study-card p, .study-card li, .study-facts dd { color: #222; }
}
.ad-slot small {
  font-family: var(--sans);
  letter-spacing: 0;
  color: var(--muted);
}
.ad-slot ins {
  width: 100%;
}
.learning-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.learning-bar a {
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
}
.learning-bar a.current {
  color: var(--green);
  background: #153126;
  border-color: #335346;
}
.learning-bar a:hover {
  border-color: var(--green);
}
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.article-card {
  padding: 30px;
  scroll-margin-top: 150px;
}
.article-card .article-num {
  font: 11px var(--mono);
  color: var(--green);
  margin-bottom: 20px;
  display: block;
}
.article-card h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.article-card h3 {
  font-size: 0.86rem;
  color: var(--cyan);
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 18px;
  font-weight: 500;
}
.article-card p {
  font-size: 14px;
  line-height: 1.9;
  color: #bac7d4;
}
.article-card p:last-child {
  margin-bottom: 0;
}
.practice {
  margin: 30px 0;
  padding: 30px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  border-color: #335346;
  background: #12211e;
}
.practice h2 {
  font-size: 1.3rem;
  margin-top: 10px;
}
.practice p {
  color: #bccfc8;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}
.next-lesson {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.source-note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 28px;
}
.source-note a,
.legal-copy a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reading-meta {
  font: 11px var(--mono);
  color: var(--muted);
  margin-bottom: 24px;
}
.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
}
.form-card {
  padding: 28px;
}
.form-card h2 {
  font-size: 1.25rem;
  margin-bottom: 7px;
}
.form-card .intro {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field label {
  font-size: 12px;
  color: #c3ced8;
}
.field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.field-wide {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  background: #0e151e;
  border: 1px solid #334353;
  border-radius: 8px;
  color: var(--text);
  padding: 11px 13px;
  min-height: 43px;
}
input[type="number"] {
  font-family: var(--mono);
}
input::placeholder,
textarea::placeholder {
  color: #8395a7;
}
textarea {
  resize: vertical;
  min-height: 150px;
}
select {
  cursor: pointer;
}
option {
  background: var(--surface);
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.form-error {
  padding: 12px 14px;
  background: #381f28;
  color: #ffb4ba;
  border: 1px solid #723440;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 20px;
}
.form-status {
  font-size: 13px;
  margin-top: 15px;
  color: var(--cyan);
}
.advanced {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}
.advanced summary {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 18px;
}
.result-card {
  padding: 28px;
  border-color: #335346;
  position: sticky;
  top: 156px;
}
.result-card h2 {
  font-size: 1rem;
}
.result-main {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.result-main > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.result-main strong {
  font: clamp(26px, 3vw, 39px) var(--mono);
  color: var(--green);
  display: block;
  letter-spacing: -1.5px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.result-main small {
  font: 11px var(--mono);
  color: var(--muted);
}
.result-list {
  margin: 10px 0;
}
.result-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #27334177;
  font-size: 12px;
}
.result-row dt {
  color: var(--muted);
}
.result-row dd {
  margin: 0;
  text-align: right;
  font-family: var(--mono);
}
.result-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
}
.result-alert {
  color: var(--orange);
  font-size: 12px;
}
.formula-card {
  margin-top: 28px;
  padding: 28px;
}
.formula-card h2 {
  margin-bottom: 18px;
}
.formula-card p {
  font-size: 14px;
  color: var(--muted);
}
.formula-card code {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  padding: 14px;
  background: var(--bg);
  border-radius: 8px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.method-grid h3 {
  margin: 10px 0 15px;
}
.glossary-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.search-field {
  flex: 1;
  min-width: 220px;
}
.filter-field {
  width: 230px;
}
.results-count {
  font: 11px var(--mono);
  color: var(--muted);
  margin-bottom: 20px;
}
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.glossary-card {
  padding: 24px;
}
.glossary-card h2 {
  font-size: 1.15rem;
  margin: 14px 0;
}
.glossary-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 0;
}
.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.widget-card {
  padding: 24px;
}
.widget-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.widget-toolbar .field {
  max-width: 270px;
  flex: 1;
}
.widget-area {
  height: 590px;
  background: #0e151d;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.widget-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background:
    linear-gradient(0deg, #0e151dee, #0e151dee),
    repeating-linear-gradient(0deg, transparent, transparent 50px, #273341 51px);
}
.widget-placeholder .widget-icon {
  font: 48px var(--mono);
  color: var(--green);
  margin-bottom: 20px;
}
.widget-placeholder h2 {
  margin-bottom: 14px;
}
.widget-placeholder p {
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
}
.widget-placeholder .button {
  margin-top: 10px;
}
.tradingview-widget-container {
  height: 100%;
  width: 100%;
}
.tradingview-widget-container__widget {
  height: calc(100% - 32px);
  width: 100%;
}
.tradingview-widget-copyright {
  height: 32px;
  font-size: 12px;
  line-height: 32px;
  padding-left: 12px;
  background: var(--surface);
  color: var(--cyan);
}
.widget-support {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  font-size: 12px;
  color: var(--muted);
}
.widget-support a {
  color: var(--cyan);
}
.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 50px;
}
.legal-aside {
  font-size: 12px;
  color: var(--muted);
}
.legal-aside a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.legal-aside .tag {
  margin-bottom: 20px;
}
.legal-copy {
  max-width: 810px;
}
.legal-copy section {
  margin-bottom: 34px;
}
.legal-copy h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.legal-copy h3 {
  font-size: 1rem;
  margin: 22px 0 12px;
}
.legal-copy p,
.legal-copy li {
  font-size: 14px;
  line-height: 1.9;
  color: #b6c3d0;
}
.legal-copy ul {
  padding-left: 20px;
}
.legal-data {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
}
.legal-data p:last-child {
  margin-bottom: 0;
}
.config-pending {
  color: var(--orange);
}
.notice {
  padding: 18px 22px;
  border-left: 2px solid var(--orange);
  background: #30271744;
  color: #d7c6ad;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  margin: 20px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}
.contact-side {
  padding: 28px;
}
.contact-side h2 {
  font-size: 1.2rem;
  margin: 12px 0 18px;
}
.contact-side p {
  font-size: 13px;
  color: var(--muted);
}
.privacy-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.inline-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cyan);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.footer-links button {
  font-size: 12px;
  text-decoration: none;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0f15;
  padding: 40px 0 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.footer-tagline {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--green);
}
.footer-risk {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.85;
  color: #8da0b2;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  font: 10px var(--mono);
  color: var(--dim);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #213d32;
  border: 1px solid #4c806a;
  color: var(--text);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 60;
  font-size: 13px;
  max-width: 90%;
  box-shadow: 0 12px 40px #0006;
}
@media (min-width: 1500px) {
  .container {
    width: min(1360px, calc(100% - 100px));
  }
  .hero-dashboard h1 {
    font-size: 4.2rem;
  }
}
@media (max-width: 1100px) {
  .main-nav {
    gap: 22px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .hero-dashboard {
    gap: 28px;
  }
  .metric-value {
    font-size: 22px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .main-nav a {
    font-size: 12px;
  }
  .glossary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-right {
    gap: 15px;
  }
}
@media (max-width: 850px) {
  .hero-dashboard {
    grid-template-columns: 1fr;
  }
  .hero-art {
    display: none;
  }
  .hero-dashboard h1 {
    font-size: 3rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .result-card {
    position: static;
  }
  .article-card {
    padding: 24px;
  }
  .tool-grid {
    gap: 12px;
  }
  .tool-card {
    padding: 20px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .legal-aside {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  .legal-aside .tag {
    margin: 0;
    align-self: center;
  }
  .legal-aside a {
    border: 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .widget-area {
    height: 550px;
  }
  .practice {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-top {
    height: 64px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-mark {
    width: 27px;
  }
  .system-label {
    display: none;
  }
  .main-nav {
    height: 46px;
    gap: 22px;
  }
  .page-topline {
    margin: 24px 0 20px;
    font-size: 10px;
  }
  .topline-right {
    display: none;
  }
  .hero-dashboard {
    padding: 4px 0 28px;
  }
  .hero-dashboard h1 {
    font-size: 2.4rem;
  }
  .hero-dashboard .hero-copy > p {
    font-size: 14px;
  }
  .hero-actions {
    margin-top: 20px;
  }
  .hero-actions .button {
    font-size: 12px;
  }
  .page-hero h1 {
    font-size: 2.2rem;
  }
  .page-hero > p {
    font-size: 14px;
  }
  .page-hero {
    padding-bottom: 24px;
  }
  .metrics-grid {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 20px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-note {
    font-size: 9px;
  }
  .metric-icon {
    display: none;
  }
  .chart-card {
    padding: 18px;
  }
  .card-top {
    gap: 8px;
  }
  .card-top h2 {
    font-size: 1rem;
  }
  .chart-select {
    max-width: 120px !important;
  }
  .chart-price {
    font-size: 25px;
  }
  .chart-meta {
    font-size: 9px;
    flex-wrap: wrap;
  }
  .market-chart {
    height: 220px;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .tool-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .article-card {
    padding: 24px;
  }
  .article-card h2 {
    font-size: 1.3rem;
  }
  .article-card p {
    font-size: 14px;
  }
  .glossary-grid {
    grid-template-columns: 1fr;
  }
  .glossary-controls {
    gap: 12px;
  }
  .filter-field {
    width: 100%;
  }
  .form-card,
  .result-card,
  .formula-card {
    padding: 22px;
  }
  .form-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  .field-wide {
    grid-column: auto;
  }
  .form-actions .button {
    flex: 1;
  }
  .widget-card {
    padding: 15px;
  }
  .widget-area {
    height: 510px;
  }
  .widget-placeholder {
    padding: 22px;
  }
  .widget-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .widget-toolbar .field {
    max-width: none;
    flex-basis: 100%;
  }
  .widget-support {
    font-size: 11px;
  }
  .footer-links {
    gap: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .ad-slot {
    margin: 30px 0;
  }
  .contact-side {
    padding: 22px;
  }
  .next-lesson {
    align-items: flex-start;
    flex-direction: column;
  }
  .table-title {
    padding-left: 18px;
  }
  .reading-meta {
    font-size: 10px;
  }
  .toast {
    font-size: 12px;
    width: max-content;
    text-align: center;
  }
  main {
    padding-bottom: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .ad-slot,
  .hero-actions,
  .form-actions,
  .widget-area,
  .glossary-controls {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .container {
    width: 100%;
  }
  .card {
    border: 1px solid #ccc;
    background: white;
    break-inside: avoid;
  }
  .article-grid,
  .calculator-grid,
  .legal-layout {
    display: block;
  }
  .article-card {
    margin-bottom: 20px;
  }
  .article-card p,
  .legal-copy p,
  .muted {
    color: #222;
  }
  .page-hero h1 {
    font-size: 30px;
  }
  .result-card {
    position: static;
  }
}
