    :root {
      color-scheme: light dark;
      --ink: #121816;
      --ink-soft: #52615c;
      --paper: #f5f7f3;
      --paper-deep: #e8eee8;
      --panel: #fcfefd;
      --panel-soft: #f9fbf8;
      --line: #202a26;
      --muted-line: rgba(32, 42, 38, .16);
      --accent: #0e7a55;
      --accent-strong: #075c3e;
      --accent-soft: #dcefe7;
      --checker: rgba(32, 42, 38, .07);
      --shadow: 0 26px 70px rgba(18, 24, 22, .12);
      --small-shadow: 0 12px 30px rgba(18, 24, 22, .10);
      --radius: 14px;
      --mono: "SFMono-Regular", "Cascadia Mono", "Liberation Mono", Menlo, monospace;
      --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    }

    @media (prefers-color-scheme: dark) {
      :root {
        --ink: #eef6f2;
        --ink-soft: #aebdb6;
        --paper: #101614;
        --paper-deep: #19211e;
        --panel: #151d1a;
        --panel-soft: #111916;
        --line: #d8e5de;
        --muted-line: rgba(216, 229, 222, .18);
        --accent: #54d6a2;
        --accent-strong: #8ce9c1;
        --accent-soft: rgba(84, 214, 162, .14);
        --checker: rgba(216, 229, 222, .09);
        --shadow: 0 26px 70px rgba(0, 0, 0, .38);
        --small-shadow: 0 12px 34px rgba(0, 0, 0, .28);
      }
    }

    * {
      box-sizing: border-box;
    }

    [hidden] {
      display: none !important;
    }

    html {
      scroll-behavior: smooth;
      overflow-x: clip;
    }

    body {
      margin: 0;
      color: var(--ink);
      overflow-x: clip;
      background:
        linear-gradient(90deg, rgba(18, 24, 22, .035) 1px, transparent 1px),
        linear-gradient(rgba(18, 24, 22, .03) 1px, transparent 1px),
        var(--paper);
      background-size: 40px 40px, 40px 40px, auto;
      font-family: var(--sans);
      min-height: 100vh;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(135deg, transparent 0 38%, rgba(14, 122, 85, .08) 38% 40%, transparent 40% 100%);
      z-index: -1;
    }

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

    button,
    input,
    select {
      font: inherit;
    }

    button {
      cursor: pointer;
      touch-action: manipulation;
    }

    button:focus-visible,
    a:focus-visible,
    input:focus-visible {
      outline: 3px solid var(--accent);
      outline-offset: 2px;
    }

    .shell {
      max-width: 1380px;
      margin: 0 auto;
      padding: 18px;
    }

    section,
    .dropzone,
    .workspace,
    .controls,
    .preview-card {
      scroll-margin-top: 96px;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      min-height: 68px;
      margin-bottom: 14px;
      position: sticky;
      top: 0;
      z-index: 30;
      padding: 8px 0;
      background: color-mix(in srgb, var(--paper) 88%, transparent);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid color-mix(in srgb, var(--muted-line) 58%, transparent);
    }

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

    .mark {
      width: 38px;
      height: 38px;
      border: 1px solid var(--muted-line);
      border-radius: 10px;
      flex: 0 0 auto;
      object-fit: contain;
      padding: 0;
      background: var(--accent-soft);
    }

    .brand strong {
      display: block;
      font-size: 19px;
      letter-spacing: -.02em;
      line-height: 1;
    }

    .brand span {
      display: block;
      color: var(--ink-soft);
      font-size: 12px;
      margin-top: 4px;
    }

    .top-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 14px;
      min-width: 0;
    }

    .language-switch {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      min-height: 40px;
      padding: 0 10px;
      border: 1px solid var(--muted-line);
      border-radius: 999px;
      color: var(--ink);
      background: var(--panel-soft);
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
      text-decoration: none;
    }

    .language-switch:hover {
      border-color: var(--accent);
      background: var(--accent-soft);
    }

    .toplinks {
      display: flex;
      flex-wrap: nowrap;
      justify-content: flex-end;
      gap: 22px;
    }

    .toplinks a {
      color: var(--ink);
      border: 0;
      background: transparent;
      border-radius: 8px;
      padding: 8px 2px;
      text-decoration: none;
      font-size: 14px;
      transition: transform .18s ease, background .18s ease;
      white-space: nowrap;
    }

    .toplinks a:hover {
      color: var(--accent-strong);
      background: transparent;
      transform: translateY(-1px);
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(300px, .72fr) minmax(620px, 1.28fr);
      gap: 18px;
      align-items: stretch;
    }

    .intro {
      border: 1px solid var(--muted-line);
      background: var(--panel);
      box-shadow: var(--shadow);
      border-radius: var(--radius);
      padding: clamp(20px, 2.6vw, 30px);
      min-height: clamp(650px, calc(100dvh - 118px), 760px);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 22px;
      overflow: hidden;
      position: relative;
    }

    .intro::after {
      content: "";
      position: absolute;
      width: 240px;
      height: 240px;
      right: -94px;
      bottom: -96px;
      background:
        linear-gradient(90deg, transparent 31%, var(--accent) 31% 34%, transparent 34% 65%, var(--accent) 65% 68%, transparent 68%),
        linear-gradient(0deg, transparent 31%, var(--accent) 31% 34%, transparent 34% 65%, var(--accent) 65% 68%, transparent 68%);
      opacity: .14;
      pointer-events: none;
    }

    .kicker {
      display: inline-flex;
      width: fit-content;
      align-items: center;
      padding: 7px 10px;
      border: 1px solid var(--muted-line);
      border-radius: 999px;
      background: var(--accent-soft);
      font-family: var(--mono);
      font-size: 12px;
      color: var(--accent-strong);
      position: relative;
      z-index: 1;
    }

    h1 {
      font-size: clamp(40px, 4vw, 54px);
      line-height: 1;
      margin: 20px 0 14px;
      max-width: 520px;
      letter-spacing: 0;
      position: relative;
      z-index: 1;
    }

    .lede {
      color: var(--ink-soft);
      font-size: 16px;
      line-height: 1.5;
      max-width: 480px;
      margin: 0;
      position: relative;
      z-index: 1;
    }

    .trust-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 18px;
      position: relative;
      z-index: 1;
    }

    .trust-chip {
      border: 1px solid var(--muted-line);
      border-radius: 999px;
      background: var(--panel-soft);
      color: var(--ink);
      padding: 8px 11px;
      font-size: 12px;
      line-height: 1;
    }

    .intro-support {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 8px;
      max-width: 560px;
    }

    .support-title {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--ink-soft);
      text-transform: uppercase;
    }

    .task-link {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) 18px;
      gap: 12px;
      align-items: center;
      border: 1px solid var(--muted-line);
      border-radius: 12px;
      background: color-mix(in srgb, var(--panel) 86%, var(--accent-soft));
      padding: 11px 12px;
      color: var(--ink);
      text-decoration: none;
      transition: transform .16s ease, border-color .16s ease, background .16s ease;
      width: 100%;
      text-align: left;
    }

    .task-link:hover {
      transform: translateY(-1px);
      border-color: color-mix(in srgb, var(--accent) 42%, var(--muted-line));
      background: var(--panel);
    }

    .task-copy strong {
      display: block;
      font-size: 14px;
      line-height: 1.25;
    }

    .task-copy {
      color: var(--ink-soft);
      font-size: 13px;
      line-height: 1.35;
    }

    .task-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--muted-line));
      background: var(--panel);
      color: var(--accent-strong);
      font-weight: 800;
      font-size: 12px;
    }

    .task-arrow {
      color: var(--accent-strong);
      font-weight: 800;
      justify-self: end;
    }

    .workspace {
      display: grid;
      grid-template-columns: minmax(260px, .36fr) minmax(0, .64fr);
      grid-template-rows: minmax(180px, auto) minmax(0, 1fr);
      grid-template-areas:
        "upload upload"
        "controls stage";
      gap: 12px;
      border: 1px solid var(--muted-line);
      background: var(--panel);
      box-shadow: var(--shadow);
      border-radius: var(--radius);
      padding: 12px;
      height: clamp(650px, calc(100dvh - 118px), 760px);
      min-height: 0;
      overflow: hidden;
    }

    .controls {
      grid-area: controls;
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
      min-height: 0;
      overflow: auto;
      padding-right: 2px;
    }

    .dropzone {
      grid-area: upload;
      border: 1.5px dashed var(--muted-line);
      border-radius: var(--radius);
      background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .88), transparent 42%),
        linear-gradient(135deg, var(--accent-soft), transparent 78%),
        var(--panel-soft);
      min-height: 180px;
      display: grid;
      place-items: center;
      padding: 18px;
      text-align: center;
      position: relative;
      transition: transform .18s ease, background .18s ease;
      overflow: hidden;
    }

    .dropzone.is-dragging {
      transform: translateY(-2px);
      background: var(--accent-soft);
    }

    .dropzone:focus {
      outline: none;
    }

    .dropzone:focus-visible {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(14, 122, 85, .18);
    }

    .dropzone input {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      border: 0;
      opacity: 0;
      clip-path: inset(50%);
      overflow: hidden;
      white-space: nowrap;
      cursor: pointer;
    }

    .dropzone input::file-selector-button {
      display: none;
    }

    .drop-copy {
      position: relative;
      z-index: 1;
      display: grid;
      justify-items: center;
      gap: 8px;
    }

    .drop-icon {
      width: 50px;
      height: 40px;
      margin: 0 auto 10px;
      color: var(--accent-strong);
    }

    .dropzone strong {
      display: block;
      font-size: 24px;
      letter-spacing: -.03em;
      line-height: 1.05;
    }

    .dropzone span:not(.choose-file) {
      display: block;
      color: var(--ink-soft);
      font-size: 14px;
    }

    .choose-file {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 190px;
      min-height: 44px;
      margin: 4px auto;
      border-radius: 10px;
      background: var(--accent);
      color: #f7fff9;
      font-weight: 800;
      box-shadow: 0 12px 24px rgba(14, 122, 85, .22);
      cursor: pointer;
      position: relative;
      z-index: 2;
      text-decoration: none;
    }

    .file-hint {
      display: block;
      font-size: 12px;
    }

    .panel {
      border: 1px solid var(--muted-line);
      border-radius: var(--radius);
      background: var(--panel-soft);
      padding: 10px;
    }

    .panel-title {
      margin: 0 0 8px;
      font-size: 12px;
      text-transform: uppercase;
      font-family: var(--mono);
      letter-spacing: 0;
      color: var(--ink-soft);
    }

    .preset,
    .format-btn {
      min-height: 36px;
      border: 1px solid var(--muted-line);
      border-radius: 10px;
      background: var(--panel);
      color: var(--ink);
      transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
    }

    .preset {
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      letter-spacing: .01em;
    }

    .preset:hover,
    .format-btn:hover {
      transform: translateY(-1px);
    }

    .preset.is-active,
    .format-btn.is-active {
      background: var(--accent);
      color: #f7fff9;
      border-color: var(--accent);
      box-shadow: 0 8px 18px rgba(14, 122, 85, .22);
    }

    .presets {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
    }

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

    .custom-panel {
      background: color-mix(in srgb, var(--panel-soft) 78%, var(--paper));
    }

    .custom-fields {
      align-items: end;
      gap: 20px;
      position: relative;
    }

    .custom-fields::after {
      content: "x";
      position: absolute;
      left: 50%;
      bottom: 9px;
      transform: translateX(-50%);
      color: var(--ink-soft);
      font-size: 16px;
      font-weight: 700;
    }

    label {
      display: grid;
      gap: 5px;
      color: var(--ink-soft);
      font-size: 12px;
    }

    input[type="number"],
    select {
      width: 100%;
      border: 1px solid var(--muted-line);
      border-radius: 10px;
      background: var(--panel);
      min-height: 38px;
      padding: 8px 9px;
      color: var(--ink);
    }

    input[type="range"] {
      width: 100%;
      accent-color: var(--accent);
    }

    .format-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      margin-bottom: 8px;
    }

    .switch {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border: 1px solid var(--muted-line);
      background: var(--panel);
      border-radius: 10px;
      padding: 9px;
      color: var(--ink);
      font-size: 13px;
      margin-top: 8px;
    }

    .switch input {
      width: 19px;
      height: 19px;
      accent-color: var(--accent);
    }

    .quality-row.is-disabled {
      opacity: .55;
    }

    .format-help {
      min-height: 18px;
      color: var(--ink-soft);
      font-size: 11px;
      line-height: 1.45;
    }

    .field-help {
      margin: 10px 0 0;
      color: var(--ink-soft);
      font-size: 11px;
      line-height: 1.5;
    }

    .field-help strong {
      color: var(--ink);
    }

    .actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 0;
      position: sticky;
      bottom: 0;
      z-index: 3;
      padding-top: 8px;
      background:
        linear-gradient(to bottom, color-mix(in srgb, var(--panel) 12%, transparent), var(--panel) 36%),
        var(--panel);
    }

    .primary,
    .secondary {
      border: 1px solid var(--muted-line);
      border-radius: var(--radius);
      min-height: 44px;
      font-weight: 700;
      transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
    }

    .primary {
      background: var(--accent);
      color: #f7fff9;
      border-color: var(--accent);
      box-shadow: 0 12px 24px rgba(14, 122, 85, .24);
    }

    .secondary {
      background: var(--panel);
      color: var(--ink);
    }

    .primary:hover,
    .secondary:hover {
      transform: translateY(-1px);
      box-shadow: var(--small-shadow);
    }

    .primary:active,
    .secondary:active,
    .segmented button:active,
    .preset:active,
    .format-btn:active {
      transform: translateY(1px);
    }

    .primary:disabled,
    .secondary:disabled {
      cursor: not-allowed;
      opacity: .45;
      transform: none;
      box-shadow: none;
    }

    .status {
      grid-column: 1 / -1;
      color: var(--ink-soft);
      font-size: 12px;
      line-height: 1.45;
      min-height: 28px;
    }

    .stage {
      grid-area: stage;
      display: grid;
      grid-template-rows: minmax(0, 1.15fr) minmax(176px, .45fr);
      gap: 12px;
      min-width: 0;
      min-height: 0;
    }

    .stage.is-waiting {
      grid-template-rows: minmax(0, 1fr);
    }

    .preview-card,
    .results-card {
      border: 1px solid var(--muted-line);
      border-radius: var(--radius);
      background: var(--panel);
      min-width: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .card-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--muted-line);
      background: var(--paper-deep);
    }

    .card-title {
      margin: 0;
      font-size: 12px;
      font-family: var(--mono);
      text-transform: uppercase;
      color: var(--ink-soft);
    }

    .meta {
      color: var(--ink-soft);
      font-size: 12px;
      text-align: right;
    }

    .preview-wrap {
      flex: 1;
      min-height: 0;
      display: grid;
      place-items: center;
      padding: 14px;
      background:
        radial-gradient(circle at 78% 18%, rgba(14, 122, 85, .08), transparent 30%),
        linear-gradient(180deg, var(--panel) 0%, color-mix(in srgb, var(--accent-soft) 34%, var(--panel)) 100%);
    }

    .canvas-frame {
      position: relative;
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      display: grid;
      place-items: center;
      overflow: hidden;
      filter: drop-shadow(0 16px 30px rgba(18, 24, 22, .18));
    }

    canvas {
      display: block;
      background: var(--panel);
      border: 1px solid var(--muted-line);
      image-rendering: auto;
    }

    .empty {
      width: 100%;
      max-width: min(420px, 100%);
      justify-self: stretch;
      text-align: center;
      color: var(--ink-soft);
      padding: 20px;
    }

    .empty strong {
      display: block;
      color: var(--ink);
      font-size: 25px;
      letter-spacing: -.04em;
      margin-bottom: 8px;
    }

    .results .empty {
      padding: 12px;
    }

    .results .empty strong {
      font-size: 22px;
    }

    .results .empty p {
      display: none;
    }

    .preview-empty {
      max-width: min(720px, 100%);
      padding: 14px;
    }

    .preview-empty strong {
      font-size: 21px;
      letter-spacing: -.03em;
    }

    .preview-empty p {
      margin: 6px auto 0;
      max-width: 480px;
      line-height: 1.45;
    }

    .sample-preview {
      width: 100%;
      max-width: 660px;
      aspect-ratio: 1448 / 1086;
      border: 1px solid var(--muted-line);
      border-radius: 16px;
      box-shadow: 0 18px 34px rgba(18, 24, 22, .14);
      margin: 0 auto 12px;
      position: relative;
      overflow: hidden;
      background: var(--panel);
    }

    .sample-preview img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    .sample-grid-overlay {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .sample-grid-line {
      position: absolute;
      background: rgba(255, 255, 255, .92);
      box-shadow: 0 0 0 1px rgba(14, 122, 85, .18), 0 0 10px rgba(18, 24, 22, .22);
    }

    .sample-grid-line.is-vertical {
      top: 0;
      bottom: 0;
      width: 3px;
      transform: translateX(-50%);
    }

    .sample-grid-line.is-horizontal {
      left: 0;
      right: 0;
      height: 3px;
      transform: translateY(-50%);
    }

    .sample-label {
      position: absolute;
      left: 12px;
      bottom: 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .9);
      color: var(--ink);
      border: 1px solid rgba(32, 42, 38, .12);
      box-shadow: 0 8px 18px rgba(18, 24, 22, .10);
      padding: 7px 10px;
      font-size: 12px;
      font-weight: 700;
    }

    .sample-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .sample-actions strong {
      font-size: 18px;
      margin: 0;
    }

    .sample-btn {
      border: 1px solid var(--muted-line);
      background: var(--panel);
      color: var(--accent-strong);
      border-radius: 10px;
      min-height: 38px;
      padding: 0 14px;
      font-weight: 700;
      margin-top: 4px;
    }

    .results {
      flex: 1;
      overflow: auto;
      padding: 12px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
      gap: 10px;
      align-content: start;
    }

    .tile {
      border: 1px solid var(--muted-line);
      background: var(--panel);
      border-radius: 10px;
      overflow: hidden;
      min-width: 0;
    }

    .tile img {
      width: 100%;
      aspect-ratio: 1;
      object-fit: contain;
      background:
        linear-gradient(45deg, var(--checker) 25%, transparent 25%),
        linear-gradient(-45deg, var(--checker) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--checker) 75%),
        linear-gradient(-45deg, transparent 75%, var(--checker) 75%);
      background-size: 16px 16px;
      background-position: 0 0, 0 8px, 8px -8px, -8px 0;
      display: block;
    }

    .tile-foot {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 6px;
      padding: 7px;
      border-top: 1px solid var(--muted-line);
      font-size: 12px;
    }

    .tile-foot span {
      font-family: var(--mono);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .tile-foot a {
      color: #f7fff9;
      background: var(--accent);
      border-radius: 8px;
      padding: 5px 7px;
      text-decoration: none;
      white-space: nowrap;
    }

    .guide {
      margin-top: 28px;
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 18px;
    }

    .seo-section {
      margin-top: 18px;
    }

    .content-block {
      border: 1px solid var(--muted-line);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: var(--small-shadow);
      padding: clamp(20px, 3vw, 30px);
    }

    .content-block h2 {
      font-size: clamp(27px, 3.6vw, 42px);
      line-height: 1.05;
      letter-spacing: -.05em;
      margin: 0 0 16px;
    }

    .content-block h3 {
      margin: 22px 0 8px;
      font-size: 17px;
    }

    .content-block p,
    .content-block li {
      color: var(--ink-soft);
      line-height: 1.7;
    }

    .content-block ol,
    .content-block ul {
      padding-left: 22px;
      margin: 10px 0;
    }

    .steps-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-top: 18px;
      counter-reset: split-step;
    }

    .step-card {
      counter-increment: split-step;
      border: 1px solid var(--muted-line);
      border-radius: 12px;
      background: var(--panel-soft);
      padding: 16px;
      min-height: 150px;
    }

    .step-card::before {
      content: counter(split-step);
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: var(--accent);
      color: #f7fff9;
      font-weight: 800;
      margin-bottom: 12px;
    }

    .step-card h3 {
      margin: 0 0 8px;
      font-size: 16px;
    }

    .step-card p {
      margin: 0;
      line-height: 1.55;
    }

    .topic-rows,
    .facts-grid,
    .format-rows,
    .route-rows {
      display: grid;
      gap: 0;
      margin-top: 14px;
    }

    .topic-row,
    .fact-row,
    .format-row,
    .route-row {
      display: grid;
      grid-template-columns: minmax(150px, .46fr) minmax(0, 1fr);
      gap: 18px;
      padding: 16px 0;
      border-top: 1px solid var(--muted-line);
    }

    .topic-row:first-child,
    .fact-row:first-child,
    .format-row:first-child,
    .route-row:first-child {
      border-top: 0;
      padding-top: 4px;
    }

    .topic-row strong,
    .topic-row h3,
    .fact-row strong,
    .format-row strong,
    .format-row h3,
    .route-row h3,
    .route-row strong {
      letter-spacing: -.02em;
      margin: 0;
      font-size: 16px;
      line-height: 1.35;
    }

    .topic-row p,
    .fact-row p,
    .format-row p,
    .route-row p {
      margin: 0;
    }

    .route-row a {
      text-decoration: none;
      font-family: var(--mono);
      font-size: 13px;
      color: var(--accent-strong);
    }

    .note-line {
      margin-top: 16px;
      color: var(--ink-soft);
      font-size: 13px;
      line-height: 1.6;
    }

    .faq-item {
      border-top: 1px solid var(--muted-line);
      padding: 13px 0;
    }

    .faq-item:first-of-type {
      border-top: 0;
    }

    .faq-item h3 {
      margin-top: 0;
    }

    .footer {
      margin-top: 24px;
      color: var(--ink-soft);
      font-size: 13px;
      text-align: center;
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%) translateY(20px);
      background: var(--ink);
      color: var(--panel);
      border-radius: 999px;
      padding: 10px 14px;
      opacity: 0;
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease;
      z-index: 40;
      font-size: 13px;
    }

    .toast.is-visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    @media (max-width: 1060px) {
      .hero,
      .guide {
        grid-template-columns: 1fr;
      }

      .intro {
        min-height: auto;
      }

      h1 {
        font-size: 46px;
      }

      .intro-support {
        max-width: none;
      }

      .workspace {
        grid-template-columns: minmax(250px, .38fr) minmax(0, .62fr);
        height: auto;
        min-height: 640px;
        overflow: visible;
      }

      .controls {
        overflow: visible;
        padding-right: 0;
      }

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

    @media (max-width: 760px) {
      .shell {
        padding: 10px 12px 16px;
      }

      section,
      .dropzone,
      .workspace,
      .controls,
      .preview-card {
        scroll-margin-top: 72px;
      }

      .topbar {
        align-items: center;
        min-height: 54px;
        margin-bottom: 8px;
        padding: 6px 0;
      }

      .brand {
        gap: 10px;
      }

      .mark {
        width: 34px;
        height: 34px;
        border-radius: 9px;
      }

      .brand strong {
        font-size: 18px;
      }

      .brand span,
      .toplinks {
        display: none;
      }

      .hero {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .intro {
        order: 1;
        min-height: auto;
        padding: 14px;
        gap: 10px;
        border-radius: 12px;
        box-shadow: var(--small-shadow);
      }

      .hero-copy {
        order: 1;
        padding: 0;
      }

      .kicker {
        padding: 5px 8px;
        font-size: 11px;
      }

      .intro-support {
        display: none;
      }

      .support-title {
        display: none;
      }

      .task-link {
        grid-template-columns: 36px minmax(0, 1fr);
      }

      .task-arrow {
        display: none;
      }

      .task-copy {
        font-size: 0;
      }

      .task-copy strong {
        font-size: 13px;
      }

      .workspace {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: auto;
        padding: 8px;
        position: relative;
        z-index: 1;
        overflow: visible;
      }

      .dropzone {
        order: 1;
        min-height: 156px;
        padding: 14px 12px;
      }

      .drop-copy {
        gap: 6px;
      }

      .drop-icon {
        width: 42px;
        height: 34px;
        margin-bottom: 4px;
      }

      .dropzone strong {
        font-size: 22px;
      }

      .dropzone span:not(.choose-file) {
        font-size: 13px;
      }

      .choose-file {
        min-width: 160px;
        min-height: 42px;
        border-radius: 9px;
      }

      .file-hint {
        max-width: 260px;
        font-size: 11px;
      }

      .panel {
        padding: 9px;
        border-radius: 12px;
      }

      .controls {
        display: contents;
      }

      .stage {
        order: 4;
      }

      .presets-panel {
        order: 2;
      }

      .custom-panel {
        order: 3;
      }

      .export-panel {
        order: 5;
      }

      .actions {
        order: 6;
        position: static;
        background: transparent;
        padding-top: 0;
        grid-template-columns: 1fr;
      }

      .actions .status {
        order: -1;
        min-height: 0;
        padding: 9px 10px;
        border: 1px solid var(--muted-line);
        border-radius: 10px;
        background: var(--panel-soft);
        font-size: 12px;
      }

      .primary,
      .secondary,
      .preset,
      .format-btn {
        min-height: 48px;
      }

      .primary,
      .secondary {
        font-size: 16px;
      }

      .stage {
        grid-template-rows: minmax(240px, auto) minmax(220px, auto);
        gap: 10px;
      }

      .preview-card {
        min-height: 280px;
      }

      .sample-preview {
        max-width: 100%;
      }

      .results-card {
        min-height: 260px;
      }

      h1 {
        font-size: clamp(30px, 10vw, 36px);
        line-height: .98;
        margin: 10px 0 8px;
      }

      .intro::after {
        content: none;
      }

      .lede {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 14px;
        line-height: 1.42;
      }

      .trust-strip {
        gap: 6px;
        margin-top: 10px;
      }

      .trust-chip {
        padding: 6px 8px;
        font-size: 11px;
      }
    }

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

    @media (max-width: 460px) {
      .shell {
        padding: 8px 10px 14px;
      }

      .topbar {
        min-height: 50px;
      }

      .presets {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }

      .topic-row,
      .fact-row,
      .format-row,
      .route-row,
      .task-link,
      .steps-grid {
        grid-template-columns: 1fr;
      }

      h1 {
        font-size: 30px;
      }

      .lede {
        -webkit-line-clamp: 3;
      }

      .dropzone {
        min-height: 146px;
      }

      .drop-icon {
        width: 36px;
        height: 30px;
      }

      .file-hint {
        display: none;
      }

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

      .intro-support {
        grid-template-columns: 1fr;
      }

      .meta {
        text-align: left;
      }
    }
