:root {
  color-scheme: dark;
  --bg: #0a1016;
  --surface: #111c25;
  --surface-strong: #15232d;
  --text: #e9f1f3;
  --muted: #8a9aa5;
  --muted-strong: #b3c1c8;
  --line: rgba(170, 205, 215, .16);
  --line-strong: rgba(170, 205, 215, .27);
  --accent: #76e6d2;
  --accent-deep: #45bfae;
  --accent-wash: rgba(118, 230, 210, .11);
  --amber: #f5c77d;
  --font-sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text);
  background: radial-gradient(circle at 8% -8%, rgba(118, 230, 210, .13), transparent 30rem), radial-gradient(circle at 94% 18%, rgba(76, 129, 163, .12), transparent 28rem), var(--bg);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.shell { width: min(1380px, 100%); margin: 0 auto; padding: 46px 30px 28px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 13px; color: var(--accent); font: 700 10px/1.2 var(--font-mono); letter-spacing: .2em; }
h1 { margin: 0; color: var(--text); font-size: clamp(32px, 4vw, 52px); font-weight: 650; letter-spacing: -.055em; line-height: 1.05; text-wrap: balance; }
.subtitle { margin: 13px 0 0; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.header-tools { display: flex; align-items: flex-end; flex-direction: column; gap: 12px; }
.theme-nav { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: rgba(17, 28, 37, .7); }
.theme-nav a { padding: 5px 8px; color: var(--muted); border-radius: 5px; font: 9px var(--font-mono); letter-spacing: .08em; text-decoration: none; transition: color .15s ease, background .15s ease; }
.theme-nav a:hover, body[data-theme="neon"] .theme-nav a[data-theme-link="neon"], body[data-theme="terminal"] .theme-nav a[data-theme-link="terminal"], body[data-theme="holo"] .theme-nav a[data-theme-link="holo"] { color: var(--text); background: var(--accent-wash); }
.privacy-pill { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 5px; padding: 8px 11px; color: var(--muted-strong); border: 1px solid var(--line); border-radius: 999px; background: rgba(17, 28, 37, .68); font: 12px/1 var(--font-mono); white-space: nowrap; }
.privacy-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash), 0 0 14px rgba(118, 230, 210, .65); }
.tool-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(14, 23, 31, .88); box-shadow: 0 26px 80px rgba(0, 0, 0, .25); }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: rgba(17, 28, 37, .82); }
.toolbar label { margin-left: 10px; color: var(--muted); font-size: 12px; }
.toolbar label:first-child { margin-left: 0; }
select { min-width: 118px; padding: 8px 30px 8px 10px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 7px; outline: 0; background: var(--surface-strong); font-size: 12px; }
select:disabled { cursor: not-allowed; opacity: .78; }
select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.format-arrow { padding: 0 2px; color: var(--accent); font: 15px var(--font-mono); }
.status { overflow: hidden; max-width: 45%; margin-left: auto; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.is-hidden { display: none !important; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; gap: 12px; min-height: 590px; padding: 20px; }
.panel { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; min-height: 53px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.panel-heading > div { display: flex; align-items: center; gap: 10px; }
.panel-index { color: var(--accent); font: 700 10px var(--font-mono); letter-spacing: .1em; }
h2 { margin: 0; color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.panel-hint { color: var(--muted); font-size: 11px; }
.file-row { display: flex; align-items: center; gap: 9px; min-height: 47px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: rgba(118, 230, 210, .025); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-input:focus { outline: 0; }
.file-button, .sample-button { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 6px; cursor: pointer; font-size: 11px; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.file-button { color: var(--muted-strong); border: 1px solid var(--line-strong); background: transparent; }
.file-button:hover { color: var(--accent); border-color: var(--accent-deep); background: var(--accent-wash); }
.sample-button { color: var(--amber); border: 1px solid rgba(245, 199, 125, .28); background: rgba(245, 199, 125, .08); }
.sample-button:hover { border-color: var(--amber); background: rgba(245, 199, 125, .14); }
.file-button:focus-visible, .sample-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-name { overflow: hidden; min-width: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
textarea { width: 100%; min-height: 495px; flex: 1; resize: vertical; padding: 18px; color: var(--text); border: 0; outline: 0; background: var(--surface); font-size: 15px; line-height: 1.85; }
textarea::placeholder { color: #60717d; }
textarea:focus { background: #13212b; box-shadow: inset 0 0 0 1px var(--accent-deep); }
#result { color: #dbe8e9; background: #0d1820; }
#result:focus { background: #12212a; }
.panel-output { min-height: 0; }
.word-preview { display: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; width: 100%; height: 495px; max-height: 495px; min-height: 0; flex: none; padding: 28px 30px; color: var(--text); background: var(--surface); font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; line-height: 1.75; }
.panel-output.is-word .word-preview { display: block; }
.panel-output.is-word #result { display: none; }
.word-preview h1, .word-preview h2, .word-preview h3, .word-preview h4, .word-preview h5, .word-preview h6 { margin: 0 0 14px; color: var(--text); font-family: inherit; letter-spacing: 0; }
.word-preview h1 { font-size: 27px; }
.word-preview h2 { margin-top: 26px; font-size: 21px; }
.word-preview h3 { margin-top: 20px; font-size: 17px; }
.word-preview p { margin: 0 0 14px; }
.word-preview ul, .word-preview ol { margin: 0 0 16px; padding-left: 24px; }
.word-preview li + li { margin-top: 5px; }
.word-preview blockquote { margin: 16px 0; padding: 10px 16px; border-left: 1px solid var(--accent); color: var(--muted-strong); background: var(--accent-wash); }
.word-preview pre { overflow: auto; margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-strong); background: rgba(0, 0, 0, .13); font: 12px/1.7 var(--font-mono); }
.word-preview code { padding: 2px 5px; border-radius: 4px; background: var(--accent-wash); font: .9em var(--font-mono); }
.word-preview pre code { padding: 0; background: transparent; }
.word-preview table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 13px; }
.word-preview th, .word-preview td { padding: 8px 10px; border: 1px solid var(--line-strong); text-align: left; }
.word-preview th { color: var(--text); background: var(--accent-wash); }
.word-preview a { color: var(--accent); }
.word-preview img { max-width: 100%; height: auto; }
.flow-mark { align-self: center; color: var(--accent); font: 16px var(--font-mono); text-align: center; }
.actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.word-name-dialog { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4, 12, 16, .68); backdrop-filter: blur(10px); }
.word-name-card { width: min(440px, 100%); padding: 24px; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--text); background: var(--surface-strong); box-shadow: 0 24px 80px rgba(0, 0, 0, .38); }
.word-name-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.word-name-heading > div { display: flex; align-items: baseline; gap: 10px; }
.word-name-heading h2 { margin: 0; font-size: 19px; }
.dialog-close { width: 30px; height: 30px; color: var(--muted-strong); border: 0; border-radius: 6px; cursor: pointer; background: transparent; font-size: 24px; line-height: 1; }
.dialog-close:hover { color: var(--text); background: var(--accent-wash); }
.word-name-intro { margin: 18px 0; color: var(--muted-strong); font-size: 13px; line-height: 1.7; }
.word-name-field { display: grid; gap: 8px; color: var(--muted-strong); font-size: 12px; }
.word-name-field input { width: 100%; min-height: 42px; padding: 0 12px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: var(--surface); font-size: 14px; }
.word-name-field input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.word-name-hint { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.word-name-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.button { min-height: 38px; padding: 0 15px; color: var(--muted-strong); border: 1px solid var(--line-strong); border-radius: 7px; cursor: pointer; background: transparent; font-size: 12px; transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease; }
.button:hover { color: var(--text); border-color: #78909a; background: rgba(170, 205, 215, .08); transform: translateY(-1px); }
.button-primary { color: #071116; border-color: var(--accent); background: var(--accent); font-weight: 700; }
.button-primary:hover { color: #071116; border-color: #9bf5e5; background: #9bf5e5; }
.button-primary span { margin-left: 5px; opacity: .55; }
.footer-note { margin: 14px 2px 0; color: var(--muted); font-size: 11px; }
:where(button, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) {
  .shell { padding: 30px 18px 22px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .header-tools { align-items: flex-start; }
  .privacy-pill { margin-bottom: 0; }
  .toolbar { flex-wrap: wrap; padding: 14px; }
  .status { width: 100%; max-width: none; margin: 4px 0 0; padding-top: 11px; border-top: 1px solid var(--line); }
  .workspace { grid-template-columns: 1fr; gap: 14px; min-height: 0; padding: 14px; }
  .flow-mark { height: 20px; transform: rotate(90deg); }
  textarea { min-height: 320px; }
  .word-preview { height: 320px; max-height: 320px; min-height: 0; padding: 20px; }
}
@media (max-width: 520px) {
  .shell { padding: 22px 12px 18px; }
  .eyebrow { margin-bottom: 10px; font-size: 9px; }
  h1 { font-size: 34px; }
  .subtitle { margin-top: 10px; font-size: 13px; }
  .tool-card { border-radius: 12px; }
  .toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto minmax(0, 1fr); gap: 8px; }
  .toolbar label { margin-left: 0; align-self: center; }
  .toolbar select { width: 100%; min-width: 0; }
  .format-arrow { text-align: center; }
  .status { grid-column: 1 / -1; }
  .workspace { padding: 10px; }
  .panel-heading { min-height: 48px; padding: 0 13px; }
  .file-row { flex-wrap: wrap; padding: 9px 10px; }
  .file-name { flex-basis: 100%; }
  textarea { min-height: 300px; padding: 15px; font-size: 14px; line-height: 1.8; }
  .word-preview { height: 300px; max-height: 300px; min-height: 0; padding: 16px; font-size: 14px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 10px 14px; }
  .word-name-card { padding: 20px; }
  .word-name-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .word-name-actions .button { width: 100%; }
  .button { width: 100%; padding: 0 8px; }
  #format { grid-column: 1 / -1; }
  .footer-note { line-height: 1.6; }
}

/* Three deliberately different visual systems. The URL keeps the selected
   theme shareable while all conversion behavior remains identical. */
body[data-theme="neon"] {
  --bg: #f0ebe2;
  --surface: #fbf9f4;
  --surface-strong: #f5f0e7;
  --text: #2c2c28;
  --muted: #817a70;
  --muted-strong: #5f5a51;
  --line: rgba(65, 63, 56, .16);
  --line-strong: rgba(65, 63, 56, .3);
  --accent: #b2573e;
  --accent-deep: #607d70;
  --accent-wash: rgba(178, 87, 62, .1);
  --amber: #9a713c;
}
body[data-theme="neon"] { background: radial-gradient(circle at 8% -12%, rgba(178, 87, 62, .11), transparent 28rem), radial-gradient(circle at 94% 8%, rgba(96, 125, 112, .12), transparent 30rem), var(--bg); }
body[data-theme="neon"]::before { opacity: .16; background-image: radial-gradient(rgba(44, 44, 40, .26) .45px, transparent .55px); background-size: 7px 7px; mask-image: linear-gradient(120deg, transparent, #000 22%, transparent 84%); }
body[data-theme="neon"] h1 { font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; font-weight: 500; letter-spacing: -.045em; }
body[data-theme="neon"] .tool-card { border-color: rgba(65, 63, 56, .2); border-radius: 4px 14px 5px 15px; background: rgba(251, 249, 244, .9); box-shadow: 0 24px 55px rgba(84, 69, 45, .12); }
body[data-theme="neon"] .toolbar { background: rgba(245, 240, 231, .7); }
body[data-theme="neon"] .panel { border-radius: 2px 10px 3px 11px; background: rgba(251, 249, 244, .82); }
body[data-theme="neon"] textarea { color: var(--text); background: #fffdf9; }
body[data-theme="neon"] textarea:focus { background: #fffefa; box-shadow: inset 0 0 0 1px var(--accent); }
body[data-theme="neon"] #result { color: #3e453f; background: #f6f2ea; }
body[data-theme="neon"] #result:focus { background: #fffaf2; }
body[data-theme="neon"] .word-preview { color: #3e453f; background: #fffdf9; font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; }
body[data-theme="neon"] .word-preview h1, body[data-theme="neon"] .word-preview h2, body[data-theme="neon"] .word-preview h3 { font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; font-weight: 500; }
body[data-theme="neon"] .word-preview pre { background: #f3f0e9; }
body[data-theme="neon"] .button-primary { color: #fffaf3; background: var(--accent); box-shadow: 0 8px 18px rgba(178, 87, 62, .18); }
body[data-theme="neon"] .theme-nav, body[data-theme="neon"] .privacy-pill { background: rgba(251, 249, 244, .72); }
body[data-theme="neon"] .theme-nav a:hover, body[data-theme="neon"] .theme-nav a[data-theme-link="neon"] { color: var(--accent); background: rgba(178, 87, 62, .09); }
body[data-theme="neon"] .shell { width: min(1240px, 100%); padding-top: 58px; }
body[data-theme="neon"] .topbar { margin-bottom: 38px; }
body[data-theme="neon"] .hero-copy::after { display: block; width: 86px; height: 1px; margin-top: 25px; content: ""; background: linear-gradient(90deg, var(--accent), transparent); }
body[data-theme="neon"] .workspace { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 24px; min-height: 590px; padding: 26px; }
body[data-theme="neon"] .panel-heading { min-height: 59px; padding: 0 20px; }
body[data-theme="neon"] .file-row { padding: 11px 16px; background: rgba(96, 125, 112, .035); }
body[data-theme="neon"] textarea { padding: 21px 20px; font-size: 15px; line-height: 1.9; }
body[data-theme="neon"] .actions { padding: 18px 26px 24px; }
body[data-theme="neon"] .footer-note { margin-top: 18px; }
@media (max-width: 900px) {
  body[data-theme="neon"] .shell { padding: 30px 18px 22px; }
  body[data-theme="neon"] .topbar { margin-bottom: 22px; }
  body[data-theme="neon"] .workspace { grid-template-columns: 1fr; gap: 14px; min-height: 0; padding: 14px; }
  body[data-theme="neon"] .panel-heading { min-height: 53px; padding: 0 16px; }
}
@media (max-width: 520px) {
  body[data-theme="neon"] .shell { padding: 22px 12px 18px; }
  body[data-theme="neon"] .workspace { padding: 10px; }
  body[data-theme="neon"] .panel-heading { min-height: 48px; padding: 0 13px; }
  body[data-theme="neon"] .file-row { padding: 9px 10px; }
  body[data-theme="neon"] textarea { min-height: 300px; padding: 15px; font-size: 14px; line-height: 1.8; }
  body[data-theme="neon"] .actions { padding: 12px 10px 14px; }
}

body[data-theme="terminal"] {
  --bg: #080b09;
  --surface: #0d1410;
  --surface-strong: #121c15;
  --text: #e5f6e1;
  --muted: #778d7b;
  --muted-strong: #b6cdb5;
  --line: rgba(137, 210, 135, .18);
  --line-strong: rgba(137, 210, 135, .35);
  --accent: #b8ff6b;
  --accent-deep: #59c77a;
  --accent-wash: rgba(184, 255, 107, .1);
  --amber: #ffc66d;
}
body[data-theme="terminal"]::before { opacity: .28; background-size: 32px 32px; }
body[data-theme="terminal"] .tool-card, body[data-theme="terminal"] .panel { border-radius: 3px; }
body[data-theme="terminal"] .button, body[data-theme="terminal"] select, body[data-theme="terminal"] .file-button, body[data-theme="terminal"] .sample-button { border-radius: 3px; font-family: var(--font-mono); }
body[data-theme="terminal"] h1, body[data-theme="terminal"] h2, body[data-theme="terminal"] textarea { font-family: var(--font-mono); }
body[data-theme="terminal"] h1 { text-transform: uppercase; letter-spacing: -.08em; }
body[data-theme="terminal"] .button-primary { box-shadow: 0 0 18px rgba(184, 255, 107, .16); }

body[data-theme="holo"] {
  --bg: #0b0920;
  --surface: #15132d;
  --surface-strong: #1d1940;
  --text: #f7f1ff;
  --muted: #a69abb;
  --muted-strong: #d2c8e6;
  --line: rgba(201, 164, 255, .2);
  --line-strong: rgba(218, 141, 255, .38);
  --accent: #b5a0ff;
  --accent-deep: #ff66c8;
  --accent-wash: rgba(181, 160, 255, .13);
  --amber: #ffd28d;
}
body[data-theme="holo"] { background: radial-gradient(circle at 12% 0%, rgba(101, 75, 255, .25), transparent 30rem), radial-gradient(circle at 90% 12%, rgba(255, 88, 206, .16), transparent 26rem), var(--bg); }
body[data-theme="holo"] .tool-card { border-radius: 20px; background: linear-gradient(135deg, rgba(30, 24, 64, .82), rgba(13, 11, 34, .92)); box-shadow: 0 30px 100px rgba(0, 0, 0, .36), 0 0 70px rgba(141, 84, 255, .13); backdrop-filter: blur(18px); }
body[data-theme="holo"] .panel { border-radius: 15px; background: rgba(24, 20, 52, .72); backdrop-filter: blur(12px); }
body[data-theme="holo"] .button-primary { background: linear-gradient(105deg, #a89bff, #ff7ed2); box-shadow: 0 0 26px rgba(255, 102, 200, .2); }
body[data-theme="holo"] .theme-nav, body[data-theme="holo"] .privacy-pill { backdrop-filter: blur(12px); }

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

/* Editorial instrument: a calm, asymmetric workspace with the result given
   slightly more visual authority than the source. */
body[data-theme="neon"] .shell { width: min(1320px, 100%); padding: 64px 34px 34px; }
body[data-theme="neon"] .topbar { align-items: flex-end; margin-bottom: 42px; }
body[data-theme="neon"] .hero-copy { max-width: 720px; }
body[data-theme="neon"] h1 { font-size: clamp(44px, 5.2vw, 72px); line-height: .98; letter-spacing: -.06em; }
body[data-theme="neon"] .subtitle { max-width: 34em; margin-top: 18px; font-size: 15px; line-height: 1.7; }
body[data-theme="neon"] .hero-copy::after { width: 112px; height: 2px; margin-top: 27px; background: var(--accent); }
body[data-theme="neon"] .tool-card { border-radius: 18px; box-shadow: 0 30px 70px rgba(84, 69, 45, .14); }
body[data-theme="neon"] .toolbar { min-height: 72px; padding: 14px 20px; gap: 12px; }
body[data-theme="neon"] .toolbar label { color: var(--muted-strong); font-weight: 600; }
body[data-theme="neon"] .toolbar select { min-width: 142px; border-radius: 9px; background: rgba(255, 253, 249, .9); }
body[data-theme="neon"] .status { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 249, .6); }
body[data-theme="neon"] .workspace { grid-template-columns: minmax(0, .92fr) 38px minmax(0, 1.08fr); gap: 18px; min-height: 610px; padding: 22px; }
body[data-theme="neon"] .panel { border-radius: 14px; background: rgba(255, 253, 249, .72); box-shadow: 0 12px 28px rgba(84, 69, 45, .06); }
body[data-theme="neon"] .panel-output { border-color: rgba(178, 87, 62, .34); background: #fffdf9; box-shadow: 0 15px 34px rgba(178, 87, 62, .1); }
body[data-theme="neon"] .panel-heading { min-height: 62px; padding: 0 20px; }
body[data-theme="neon"] .panel-output .panel-heading { background: rgba(178, 87, 62, .045); }
body[data-theme="neon"] textarea { min-height: 510px; padding: 24px 22px; font-size: 16px; line-height: 1.95; }
body[data-theme="neon"] #result { padding-right: 26px; }
body[data-theme="neon"] .word-preview { height: 510px; max-height: 510px; padding: 30px 32px; }
body[data-theme="neon"] .flow-mark { color: var(--accent); font-size: 20px; }
body[data-theme="neon"] .actions { align-items: center; padding: 18px 24px 22px; }
body[data-theme="neon"] .button { min-height: 42px; padding: 0 17px; border-radius: 9px; }
body[data-theme="neon"] .button-primary { box-shadow: 0 10px 20px rgba(178, 87, 62, .2); }
body[data-theme="neon"] .footer-note { margin-top: 20px; color: #8a8175; }
@media (max-width: 900px) {
  body[data-theme="neon"] .shell { padding: 38px 18px 24px; }
  body[data-theme="neon"] .topbar { margin-bottom: 26px; }
  body[data-theme="neon"] h1 { font-size: clamp(40px, 10vw, 58px); }
  body[data-theme="neon"] .workspace { gap: 14px; min-height: 0; padding: 14px; }
  body[data-theme="neon"] textarea { min-height: 320px; padding: 20px; }
  body[data-theme="neon"] .word-preview { height: 320px; max-height: 320px; padding: 22px; }
}
@media (max-width: 520px) {
  body[data-theme="neon"] .shell { padding: 28px 12px 18px; }
  body[data-theme="neon"] h1 { font-size: 40px; }
  body[data-theme="neon"] .subtitle { margin-top: 12px; font-size: 13px; }
  body[data-theme="neon"] .toolbar { min-height: 0; padding: 12px; }
  body[data-theme="neon"] .workspace { padding: 10px; }
  body[data-theme="neon"] .panel-heading { min-height: 52px; padding: 0 14px; }
  body[data-theme="neon"] textarea { min-height: 300px; padding: 16px; font-size: 14px; }
  body[data-theme="neon"] .word-preview { height: 300px; max-height: 300px; padding: 17px; }
  body[data-theme="neon"] .actions { padding: 12px 10px 14px; }
}
