/* Modified from Open Design web-prototype. See NOTICE and OPEN-DESIGN-LICENSE.txt. */

    /* ─── tokens ─────────────────────────────────────────────────────────
       Six variables. Bind them to the active DESIGN.md and stop.
       Do not introduce raw hex anywhere else in this file. */
    :root {
      --bg:      #f7f6f2;
      --surface: #ffffff;   /* cards, modals, raised areas */
      --fg:      #111111;
      --muted:   #626262;
      --border:  #dddddd;
      --accent:  #d97706;

      /* derived — do not change */
      --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
      --fg-soft:     color-mix(in oklch, var(--fg) 6%, transparent);

      /* type — display = serif (default), body = sans, mono for numerics */
      --font-display: 'Iowan Old Style', 'Charter', Georgia, 'Times New Roman', serif;
      --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
      --font-mono:    ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;

      /* scale — clamp() so it works at 1280, 1440, 1920 without media queries */
      --fs-h1: clamp(44px, 6vw, 76px);
      --fs-h2: clamp(32px, 4vw, 48px);
      --fs-h3: 22px;
      --fs-lead: 19px;
      --fs-body: 16px;
      --fs-meta: 13px;

      /* spacing — 8-point grid */
      --gap-xs: 8px;
      --gap-sm: 12px;
      --gap-md: 20px;
      --gap-lg: 32px;
      --gap-xl: 56px;
      --gap-2xl: 96px;
      --container: 1280px;
      --gutter: 32px;

      --radius: 4px;
      --radius-lg: 8px;
    }

    /* ─── reset & base ──────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--fg);
      font-family: var(--font-body);
      font-size: var(--fs-body);
      line-height: 1.55;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }
    img, svg { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; }
    p { text-wrap: pretty; }
    h1, h2, h3, h4 { text-wrap: balance; }

    /* ─── layout primitives ─────────────────────────────────────────── */
    .container {
      max-width: var(--container);
      margin-inline: auto;
      padding-inline: var(--gutter);
    }
    .section {
      padding-block: clamp(48px, 8vw, var(--gap-2xl));
    }
    .section + .section { border-top: 1px solid var(--border); }
    .stack { display: flex; flex-direction: column; }
    .stack > * + * { margin-top: var(--gap-md); }
    .row { display: flex; align-items: center; gap: var(--gap-md); }
    .row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
    .grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
    .grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }
    @media (max-width: 920px) {
      .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
    }

    /* ─── type ──────────────────────────────────────────────────────── */
    .h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
    .h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
    .h3, h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
    .lead   { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; }
    .eyebrow {
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent);
      margin: 0 0 var(--gap-md);
    }
    .meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
    .num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

    /* ─── chrome: nav + footer ──────────────────────────────────────── */
    .topnav {
      position: sticky; top: 0; z-index: 10;
      background: color-mix(in oklch, var(--bg) 92%, transparent);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }
    .topnav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
    .topnav .logo { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
    .topnav nav { display: flex; gap: var(--gap-lg); }
    .topnav nav a { font-size: 14px; color: var(--muted); }
    .topnav nav a:hover { color: var(--fg); }
    .pagefoot { padding-block: var(--gap-xl); color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
    .pagefoot .row-between { flex-wrap: wrap; gap: var(--gap-md); }

    /* ─── buttons ───────────────────────────────────────────────────── */
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 11px 20px;
      border-radius: var(--radius);
      border: 1px solid transparent;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: -0.005em;
      transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
    }
    .btn:active { transform: translateY(1px); }
    .btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
    .btn-primary:hover { background: color-mix(in oklch, var(--accent) 88%, black); }
    .btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
    .btn-secondary:hover { border-color: var(--fg); }
    .btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px; }
    .btn-ghost:hover { color: var(--accent); }
    .btn-arrow::after { content: '→'; transition: transform 0.15s ease; }
    .btn-arrow:hover::after { transform: translateX(2px); }

    /* ─── card / surface ────────────────────────────────────────────── */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px;
    }
    .card-flat { background: transparent; border: 0; padding: 0; }
    .card-rule { background: transparent; border: 0; border-top: 1px solid var(--fg); padding: 24px 0 0; border-radius: 0; }

    /* ─── feature cell (icon + h3 + p) ──────────────────────────────── */
    .feature .feature-mark {
      width: 36px; height: 36px;
      display: grid; place-items: center;
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--accent);
      margin-bottom: var(--gap-md);
    }
    .feature .feature-mark svg { width: 18px; height: 18px; }
    .feature h3 { margin-bottom: 6px; }
    .feature p  { margin: 0; color: var(--muted); font-size: 15px; }

    /* ─── stat (big number + label) ─────────────────────────────────── */
    .stat .stat-num {
      font-family: var(--font-display);
      font-size: clamp(56px, 8vw, 96px);
      line-height: 0.95;
      letter-spacing: -0.04em;
      color: var(--accent);
      font-weight: 600;
    }
    .stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 24ch; }
    .stat .stat-unit  { font-size: 0.5em; opacity: 0.7; margin-left: 2px; }

    /* ─── quote / testimonial ───────────────────────────────────────── */
    .quote {
      font-family: var(--font-display);
      font-size: clamp(24px, 2.6vw, 32px);
      line-height: 1.32;
      letter-spacing: -0.01em;
      max-width: 28ch;
    }
    .quote-author { color: var(--muted); font-size: 14px; margin-top: var(--gap-md); }
    .quote-mark   {
      font-family: var(--font-display);
      font-size: 140px; line-height: 0.7;
      color: var(--accent); opacity: 0.18;
      margin-bottom: -28px;
    }

    /* ─── pill / badge / tag ────────────────────────────────────────── */
    .pill {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 10px;
      background: var(--accent-soft);
      color: var(--accent);
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .tag {
      display: inline-flex; align-items: center;
      padding: 4px 10px;
      background: transparent;
      color: var(--muted);
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: 12px;
    }

    /* ─── form field ────────────────────────────────────────────────── */
    .field { display: flex; flex-direction: column; gap: 6px; }
    .field label { font-size: 13px; color: var(--muted); }
    .input, .textarea {
      width: 100%;
      padding: 11px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      color: var(--fg);
      font: inherit;
      font-size: 15px;
    }
    .input:focus, .textarea:focus {
      outline: 2px solid var(--accent-soft);
      border-color: var(--accent);
    }
    .textarea { min-height: 96px; resize: vertical; line-height: 1.55; }

    /* ─── table (data-style, no chrome) ─────────────────────────────── */
    .ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .ds-table th, .ds-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
    .ds-table th { color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
    .ds-table tbody tr:hover { background: var(--fg-soft); }
    .ds-table .num-col { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }

    /* ─── image placeholder (DS-tinted block, never broken <img>) ──── */
    .ph-img {
      background:
        linear-gradient(135deg, var(--accent-soft), var(--fg-soft)),
        var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      aspect-ratio: 16 / 10;
      display: grid; place-items: center;
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.04em;
    }
    .ph-img.square    { aspect-ratio: 1 / 1; }
    .ph-img.portrait  { aspect-ratio: 3 / 4; }
    .ph-img.wide      { aspect-ratio: 16 / 9; }
    .content-img {
      display: block;
      max-width: 100%;
      max-height: min(70vh, 720px);
      width: auto;
      height: auto;
      object-fit: contain;
      justify-self: center;
      border-radius: var(--radius-lg);
    }

    /* ─── divider ───────────────────────────────────────────────────── */
    .rule  { border: 0; border-top: 1px solid var(--border); margin: 0; }
    .rule-strong { border: 0; border-top: 1px solid var(--fg); margin: 0; }

    /* ─── hero variants used by layouts.md ──────────────────────────── */
    .hero          { padding-block: clamp(80px, 12vw, 160px); }
    .hero-center   { text-align: center; max-width: 32ch; margin-inline: auto; }
    .hero h1       { margin-bottom: var(--gap-md); }
    .hero .lead    { margin-bottom: var(--gap-lg); }
    .hero-cta      { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }
    .hero-center .hero-cta { justify-content: center; }
    .hero-split    { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-2xl); align-items: center; }
    @media (max-width: 920px) { .hero-split { grid-template-columns: 1fr; } }

    /* ─── log row (newsletter, blog list, changelog) ────────────────── */
    .log-row { display: grid; grid-template-columns: 120px 1fr 100px; gap: var(--gap-lg); padding: 22px 0; border-top: 1px solid var(--border); align-items: baseline; }
    .log-row .meta { color: var(--muted); }
    .log-row h3 { font-size: 19px; }
    .log-row .pull { text-align: right; }

    /* Framebudget application layer, composed on the Open Design seed. */
    html { scroll-behavior: smooth; scroll-padding-top: 90px; }
    [hidden] { display: none !important; }
    :focus-visible { outline: 2px solid var(--fg); outline-offset: 5px; }
    a:hover { text-decoration: underline; text-underline-offset: 5px; }
    button, input, select { font: inherit; }
    input, select { min-width: 0; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    .skip { position: fixed; left: 16px; top: -80px; padding: 12px 20px; background: var(--fg); color: var(--surface); z-index: 20; }
    .skip:focus { top: 16px; }
    .topnav { position: relative; backdrop-filter: none; background: var(--surface); }
    .topnav-inner { height: 88px; }
    .logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body) !important; font-size: 24px !important; font-weight: 650 !important; letter-spacing: -1.1px !important; }
    .logo svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; }
    .logo-period { margin-left: -10px; }
    .nav-note { font-size: 10px; letter-spacing: 1px; }
    .topnav nav a { color: var(--fg); font-size: 13px; }
    .hero { padding-block: 64px 48px; }
    .hero-layout { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 48px; }
    .hero h1 { font-size: clamp(48px, 5.6vw, 78px); font-weight: 400; letter-spacing: -3.8px; margin: 0; line-height: 1.03; }
    h1 em, .closing em { font-weight: 400; }
    .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.6px; }
    .rec-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); margin-right: 8px; }
    .hero-aside { padding-bottom: 5px; justify-self: end; }
    .hero-index { font-size: 10px; letter-spacing: 1px; }
    .hero .lead { font-size: 16px; margin: 18px 0 22px; line-height: 1.7; }
    .text-link { font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
    .text-link span { margin-left: 26px; }
    .calculator-section { padding: 0 0 40px; border-top: 0 !important; }
    .calculator-shell { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
    .settings { padding: 28px 36px 20px; min-width: 0; }
    .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
    .panel-heading .eyebrow { margin: 0; }
    .reset { border: 0; background: transparent; padding: 5px 0 5px 12px; font-size: 12px; color: var(--muted); }
    .reset:hover { color: var(--fg); }
    .reset span { margin-left: 7px; }
    .mode-switch { display: flex; padding: 4px; background: var(--fg-soft); border-radius: 5px; margin-bottom: 24px; }
    .mode-switch button { width: 50%; border: 1px solid transparent; border-radius: 3px; padding: 9px 5px; background: transparent; color: var(--muted); font-size: 13px; }
    .mode-switch button.active { background: var(--surface); color: var(--fg); border-color: var(--border); box-shadow: 0 1px 3px var(--fg-soft); }
    .mode-switch button:hover { color: var(--fg); }
    .field { gap: 7px; margin-bottom: 17px; }
    .field label, legend { color: var(--fg); font-size: 12px; font-weight: 600; }
    .input, .unit-input { border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
    .input { padding: 11px 12px; font-size: 13px; min-height: 43px; }
    select { cursor: pointer; }
    .unit-input { display: flex; align-items: center; padding-right: 12px; }
    .unit-input input { border: 0; outline-offset: 0; width: 100%; background: transparent; padding: 10px 12px; font-family: var(--font-mono); font-size: 15px; color: var(--fg); min-height: 42px; }
    .unit-input:focus-within { outline: 2px solid var(--fg); outline-offset: 2px; }
    .unit-input input:focus-visible { outline: none; }
    .unit-input > span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
    .hint { margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
    .help-link { display: inline-flex; width: 17px; height: 17px; justify-content: center; align-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); font-size: 10px; margin-left: 5px; }
    .bitrate-field { display: grid; grid-template-columns: 1fr 150px; align-items: center; }
    .bitrate-field .field-error { grid-column: 1 / -1; }
    .compact-grid { gap: 16px; }
    .field-error:empty { display: none; }
    .field-error { font-size: 11px; font-weight: 600; text-decoration: underline; }
    input[aria-invalid="true"] { box-shadow: inset 3px 0 var(--fg); }
    .capacity-field { margin: 20px 0; padding: 0; border: 0; }
    .capacity-field legend { margin-bottom: 10px; padding: 0; }
    .capacity-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .capacity-options label { position: relative; cursor: pointer; }
    .capacity-options input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
    .capacity-options span { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 57px; border: 1px solid var(--border); border-radius: 4px; font-family: var(--font-mono); font-size: 15px; }
    .capacity-options small { font-size: 9px; color: var(--muted); }
    .capacity-options input:checked + span { background: var(--fg); color: var(--surface); border-color: var(--fg); }
    .capacity-options input:checked + span small { color: var(--surface); }
    .capacity-options input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
    .capacity-options label:hover span { border-color: var(--fg); }
    .margin-row { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 18px; align-items: center; }
    .margin-row label { font-size: 12px; font-weight: 600; }
    .margin-row small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 3px; }
    .margin-row select { background: var(--surface); color: var(--fg); border: 1px solid var(--border); padding: 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; }
    #form-status { min-height: 17px; margin-top: 9px; }
    .result-panel { background: var(--fg); color: var(--surface); padding: 34px 40px; display: flex; flex-direction: column; min-width: 0; }
    .result-panel .eyebrow { color: color-mix(in oklch, var(--surface) 65%, transparent); }
    .result-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; border: 1px solid color-mix(in oklch, var(--surface) 30%, transparent); border-radius: 3px; padding: 4px 7px; }
    #result-content { flex: 1; display: flex; flex-direction: column; }
    .result-number { font-family: var(--font-display); letter-spacing: -4px; font-size: clamp(66px, 6.8vw, 94px); line-height: 1.05; margin-top: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    #main-unit { font-family: var(--font-mono); font-size: 20px; letter-spacing: -1px; margin-left: 12px; }
    .result-subtitle { font-size: 12px; color: color-mix(in oklch, var(--surface) 65%, transparent); margin: 12px 0 0; max-width: 37ch; }
    .storage-visual { display: flex; align-items: center; justify-content: center; gap: 35px; padding: 44px 0 38px; }
    .sd-card { position: relative; width: 130px; height: 163px; flex-shrink: 0; background: color-mix(in oklch, var(--surface) 7%, var(--fg)); border: 1px solid color-mix(in oklch, var(--surface) 32%, transparent); border-radius: 13px 5px 5px 5px; transform: rotate(-9deg); padding: 18px 13px 10px; box-shadow: 9px 12px 0 color-mix(in oklch, var(--surface) 5%, transparent); }
    .sd-contacts { display: flex; gap: 4px; margin-bottom: 15px; }
    .sd-contacts i { width: 12px; height: 20px; background: color-mix(in oklch, var(--surface) 50%, var(--fg)); border-radius: 0 0 2px 2px; }
    .sd-brand { display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: .7px; opacity: .7; }
    #sd-size { font-family: var(--font-body); font-weight: 650; font-size: 37px; letter-spacing: -2px; line-height: 1.3; }
    .sd-unit { font-family: var(--font-mono); font-size: 10px; margin-left: 5px; }
    .sd-bottom { border-top: 1px solid color-mix(in oklch, var(--surface) 25%, transparent); padding-top: 7px; margin-top: 6px; font-family: var(--font-mono); font-size: 6px; letter-spacing: .5px; }
    .visual-caption { flex: 1; max-width: 240px; min-width: 0; }
    .visual-caption .meta { color: color-mix(in oklch, var(--surface) 55%, transparent); font-size: 8px; letter-spacing: 1px; }
    .visual-caption strong { display: block; font-size: 23px; font-weight: 450; letter-spacing: -.6px; margin: 8px 0; }
    #card-context { display: block; font-size: 11px; color: color-mix(in oklch, var(--surface) 70%, transparent); }
    .capacity-meter { height: 4px; background: color-mix(in oklch, var(--surface) 18%, transparent); border-radius: 2px; margin: 18px 0 8px; overflow: hidden; }
    .capacity-meter span { display: block; height: 100%; background: var(--surface); width: 66%; transition: width 180ms ease; }
    #capacity-note { font-family: var(--font-mono); font-size: 9px; color: color-mix(in oklch, var(--surface) 55%, transparent); }
    .result-stats { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 14px; border-top: 1px solid color-mix(in oklch, var(--surface) 22%, transparent); border-bottom: 1px solid color-mix(in oklch, var(--surface) 22%, transparent); padding: 22px 0; margin-top: auto; }
    .result-stats span { display: block; font-size: 10px; color: color-mix(in oklch, var(--surface) 65%, transparent); margin-bottom: 8px; }
    .result-stats strong { font-family: var(--font-mono); font-size: 17px; font-weight: 400; }
    .result-bottom { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding-top: 24px; }
    .result-bottom p { color: color-mix(in oklch, var(--surface) 60%, transparent); font-size: 10px; margin: 0; }
    .share-button { color: var(--surface); background: transparent; border: 0; border-bottom: 1px solid color-mix(in oklch, var(--surface) 35%, transparent); font-size: 11px; padding: 8px 0; white-space: nowrap; }
    .share-button:hover { border-color: var(--surface); }
    .share-button span { margin-left: 7px; }
    .result-panel :focus-visible { outline-color: var(--surface); }
    #copy-fallback { margin-top: 16px; font-size: 12px; }
    #share-url { display: block; width: 100%; margin-top: 8px; }
    .under-calculator { display: flex; justify-content: space-between; padding-top: 13px; font-size: 10px; color: var(--muted); gap: 16px; }
    .section { padding-block: 64px; }
    .section.hero { padding-block: 64px 48px; }
    .section.calculator-section { padding-block: 0 40px; }
    h2 { font-size: 38px; font-weight: 400; letter-spacing: -1.4px; }
    .small-lead { font-size: 14px; margin-top: 20px; max-width: 29ch; }
    .guide-grid { grid-template-columns: 1fr 1.6fr; gap: 100px; }
    #table-context { font-size: 10px; margin-top: 24px; }
    .ds-table th { font-size: 10px; }
    .ds-table td { font-family: var(--font-mono); font-size: 13px; padding-block: 16px; }
    .ds-table td:nth-child(n+2), .ds-table th:nth-child(n+2) { text-align: right; }
    .ds-table tr.selected { background: var(--fg-soft); }
    .selected td:first-child::after { content: ' ←'; color: var(--muted); }
    .table-wrap { min-width: 0; }
    .table-wrap > .hint { margin-top: 16px; }
    .notes-heading { margin-bottom: 38px; }
    .notes-grid { gap: 40px; }
    .notes-grid .meta { font-size: 10px; }
    .notes-grid h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 18px 0 12px; }
    .notes-grid p { color: var(--muted); font-size: 13px; line-height: 1.8; }
    .notes-grid .formula { font-family: var(--font-mono); font-size: 10px; color: var(--fg); margin-top: 20px; }
    .faq-section { background: var(--fg-soft); }
    .faq-list details { border-bottom: 1px solid var(--border); }
    .faq-list summary { cursor: pointer; font-size: 14px; padding: 17px 24px 17px 0; list-style: none; position: relative; }
    .faq-list summary::-webkit-details-marker { display: none; }
    .faq-list summary::after { content: '+'; position: absolute; right: 0; font-family: var(--font-mono); }
    .faq-list details[open] summary::after { content: '−'; }
    .faq-list details p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 20px; }
    .closing h2 { font-size: 44px; }
    .closing .btn { font-size: 12px; padding: 15px 22px; }
    .closing .btn span { margin-left: 24px; }
    .pagefoot { padding-block: 28px; font-size: 11px; }
    .pagefoot .logo { font-size: 18px !important; color: var(--fg); }
    .ad-slot { text-align: center; margin-bottom: 40px; min-height: 100px; }
    .noscript { position: fixed; bottom: 0; background: var(--surface); border: 2px solid var(--fg); padding: 16px; width: 100%; z-index: 30; }
    @media (min-width: 921px) { .settings { min-height: 670px; } }
    @media (max-width: 1100px) { .nav-note { display: none; } .result-panel { padding-inline: 28px; } .settings { padding-inline: 28px; } .storage-visual { gap: 24px; } .visual-caption strong { font-size: 20px; } .result-bottom { align-items: flex-start; flex-direction: column; } .guide-grid { gap: 56px; } }
    @media (max-width: 920px) { .hero-layout { grid-template-columns: 1fr; gap: 24px; } .hero-aside { justify-self: start; } .hero-index { display: none; } .hero .lead { margin: 0 0 16px; } .calculator-shell { grid-template-columns: 1fr; } .compact-grid { grid-template-columns: 1fr 1fr; } .result-panel { padding: 32px; } .result-number { font-size: 84px; } .result-bottom { flex-direction: row; } .guide-grid { grid-template-columns: 1fr; gap: 32px; } .small-lead { max-width: 50ch; } .storage-visual { padding-block: 36px; } .visual-caption { max-width: 300px; } .visual-caption strong { font-size: 28px; } .notes-grid { gap: 32px; } .under-calculator { flex-direction: column; gap: 3px; } .section.hero { padding-top: 40px; } }
    @media (max-width: 540px) { :root { --gutter: 20px; } .topnav-inner { height: 72px; } .topnav .logo { font-size: 21px !important; } .topnav nav { gap: 16px; } .topnav nav a { font-size: 11px; } .topnav nav a:first-child { display: none; } .hero h1 { letter-spacing: -2.5px; font-size: 50px; } .hero .lead { font-size: 14px; } .section.hero { padding-bottom: 32px; } .settings { padding: 24px 20px 14px; } .result-panel { padding: 28px 22px; } .result-number { font-size: 74px; } .result-stats { gap: 10px; } .result-stats strong { font-size: 15px; } .result-stats span { min-height: 30px; } .visual-caption strong { font-size: 22px; } .storage-visual { gap: 25px; } .sd-card { width: 108px; height: 146px; padding: 14px 10px; } .sd-contacts { gap: 3px; margin-bottom: 10px; } .sd-contacts i { width: 10px; } .sd-bottom { font-size: 5px; } .sd-brand { font-size: 7px; } .visual-caption .meta { font-size: 7px; } #sd-size { font-size: 33px; } .result-bottom { gap: 10px; } .result-bottom p { font-size: 9px; } .share-button { font-size: 10px; } .section { padding-block: 44px; } h2 { font-size: 34px; } .ds-table th, .ds-table td { padding-inline: 8px; } .ds-table td { font-size: 12px; } .closing .row-between { align-items: flex-start; flex-direction: column; gap: 28px; } .closing h2 { font-size: 38px; } .pagefoot .row-between { align-items: flex-start; flex-direction: column; gap: 12px; } }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
  


