:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--page);
  font-synthesis:none;
  --green:#126a4a;
  --line:#dce5df;
  --muted:#67756e;
  color-scheme:light;
  --text:#172622;
  --page:#f6f8f6;
  --input-text:#203a2e;
  --secondary:#3c5147;
  --prose:#52645a;
  --subtle:#8b9990;
  --badge:#839289;
  --placeholder:#929d97;
  --footer-text:#8c9891;
  --soft:#e8eee9;
  --output:#f0f5f1;
  --soft-hover:#dfede3;
  --control-border:#bacfc1;
  --mode-hover:#d3e3d8;
  --mode-hover-text:#174a32;
  --action-hover:#0a5137;
  --disabled:#e0e8e3;
  --disabled-border:#ccd8d0;
  --disabled-text:#5a6b61;
  --secondary-button:#eef4ef;
  --code:#e5ede7;
  --selected-language:#e0ede4;
  --card-hover:#eef5ef;
  --card-hover-border:#8fbba0;
  --callout:#eaf2ec;
  --error:#a83636;
  --surface:#fff;
  --action:#126a4a;

}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,textarea {
  font:inherit;
}
a {
  color:inherit;
}
button,a,textarea {
  -webkit-tap-highlight-color:transparent;
}
button,a {
  touch-action:manipulation;
}
:focus-visible {
  outline:3px solid #29b680;
  outline-offset:4px;
}
.header {
  max-width:1180px;
  margin:auto;
  padding:24px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.brand {
  display:block;
}
.brand img {
  display:block;
  width:184px;
  height:auto;
}
.header-note {
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:8px;
}
.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#22ad76;
}
main {
  max-width:1180px;
  margin:auto;
  padding:52px 32px 40px;
}
.intro {
  margin-bottom:32px;
}
.eyebrow {
  font-size:10px;
  letter-spacing:.19em;
  font-weight:700;
  color:var(--green);
  margin:0 0 16px;
}
h1 {
  font-size:clamp(36px,4.4vw,56px);
  font-weight:650;
  letter-spacing:-.045em;
  line-height:1.08;
  margin:0 0 18px;
}
h1 span {
  color:var(--subtle);
}
.description {
  font-size:14px;
  line-height:1.7;
  color:var(--muted);
  margin:0;
}
.mode-switch {
  display:inline-flex;
  gap:4px;
  padding:5px;
  background:var(--soft);
  border-radius:10px;
  margin-bottom:20px;
}
.mode-switch a {
  min-width:118px;
  padding:10px 16px;
  text-decoration:none;
  border-radius:7px;
  font-size:13px;
  font-weight:600;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  line-height:1.4;
  gap:22px;
  color:var(--muted);
}
.mode-switch a[aria-current] {
  background:var(--surface);
  color:var(--green);
  box-shadow:0 1px 4px #173d2310;
}
.workspace {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.panel {
  min-width:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}
.output-panel {
  background:var(--output);
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 22px;
  border-bottom:1px solid var(--line);
}
.panel-heading label {
  font-size:14px;
  font-weight:650;
}
.badge {
  font-size:9px;
  letter-spacing:.13em;
  color:var(--badge);
}
textarea {
  display:block;
  width:100%;
  min-height:256px;
  resize:vertical;
  padding:22px;
  border:0;
  background:transparent;
  color:var(--input-text);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:13px;
  line-height:1.7;
  border-radius:0;
}
textarea::placeholder {
  color:var(--placeholder);
}
textarea:focus {
  outline:0;
  box-shadow:inset 0 0 0 2px #2aad79;
}
textarea[aria-invalid=true] {
  box-shadow:inset 0 0 0 2px #ba4444;
}
.panel-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 18px;
  border-top:1px solid var(--line);
  min-height:55px;
}
.panel-footer>span {
  font-size:11px;
  color:var(--muted);
}
button {
  border:0;
  border-radius:6px;
  cursor:pointer;
}
button:disabled {
  cursor:default;
  opacity:.42;
}
.panel-footer button {
  background:transparent;
  color:var(--green);
  font-size:11px;
  font-weight:600;
  padding:8px 6px;
}
.panel-footer button:hover:not(:disabled) {
  background:var(--soft-hover);
}
.small-actions {
  display:flex;
  gap:5px;
}
.conversion-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:18px;
}
.conversion-bar p {
  font-size:11px;
  line-height:1.6;
  color:var(--muted);
  margin:0;
}
.primary-button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  padding:14px 22px;
  background:var(--action);
  color:white;
  font-size:13px;
  font-weight:600;
  border-radius:9px;
}
.primary-button:hover {
  background:var(--action-hover);
}
.feedback {
  min-height:22px;
  font-size:12px;
  color:var(--green);
  margin:12px 0 20px;
}
.feedback.error {
  color:var(--error);
}
.details {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  padding-top:30px;
  border-top:1px solid var(--line);
}
.detail-icon {
  font-family:ui-monospace,monospace;
  font-size:16px;
  color:var(--green);
}
h2 {
  font-size:12px;
  font-weight:650;
  margin:12px 0 8px;
}
.details p {
  font-size:11px;
  color:var(--muted);
  line-height:1.7;
  margin:0;
}
footer {
  max-width:1180px;
  margin:auto;
  padding:20px 32px 28px;
  display:flex;
  justify-content:space-between;
  color:var(--footer-text);
  font-size:10px;
}
footer span:first-child {
  font-weight:700;
}
@media(max-width:700px) {
  .header {
    padding:18px 20px;
  }
  .brand img {
    width:150px;
  }
  .header-note {
    font-size:10px;
  }
  main {
    padding:36px 20px 24px;
  }
  .workspace {
    grid-template-columns:1fr;
  }
  .intro {
    margin-bottom:24px;
  }
  textarea {
    min-height:190px;
  }
  .conversion-bar {
    align-items:stretch;
    flex-direction:column;
  }
  .primary-button {
    justify-content:center;
  }
  .details {
    grid-template-columns:1fr;
    gap:24px;
  }
  footer {
    padding:20px;
    gap:16px;
  }
  .panel-heading {
    padding:16px 18px;
  }
}
@media(prefers-reduced-motion:no-preference) {
  button,a {
    transition:background-color .15s,color .15s;
  }
}

/* Keep the conversion actions visible beside the text they operate on. */
.header { padding-top:14px; padding-bottom:14px; }
.brand img { width:160px; }
main { padding-top:28px; }
.intro { margin-bottom:22px; }
h1 { font-size:clamp(28px,4vw,42px); line-height:1.2; margin-bottom:10px; }
.eyebrow { margin-bottom:10px; }
.mode-switch { border:1px solid var(--control-border); }
.mode-switch a { font-size:15px; min-height:46px; color:var(--secondary); }
.mode-switch a[aria-current] { background:var(--action); color:white; }
.mode-switch a:hover { background:var(--mode-hover); color:var(--mode-hover-text); }
.mode-switch a[aria-current]:hover { background:var(--action-hover); color:white; }
.panel-heading { min-height:72px; padding:14px 18px; }
textarea { min-height:220px; font-size:14px; }
.panel-action { margin:0; padding:16px 18px; border-top:1px solid var(--line); flex-direction:column; align-items:stretch; gap:10px; }
.primary-button { min-height:50px; width:100%; font-size:16px; justify-content:center; gap:14px; box-shadow:0 3px 7px #126a4a22; }
.copy-button { display:flex; align-items:center; gap:8px; min-height:44px; padding:10px 16px; background:var(--action); color:white; font-size:14px; font-weight:700; border:1px solid var(--green); }
.copy-button:hover:not(:disabled) { background:var(--action-hover); }
.copy-button:disabled { opacity:1; background:var(--disabled); border-color:var(--disabled-border); color:var(--disabled-text); }
.panel-footer button { min-height:40px; font-size:12px; padding:8px 10px; background:var(--secondary-button); }
.output-hint { font-size:11px; }
.guide { margin-top:32px; padding-top:20px; border-top:1px solid var(--line); max-width:860px; }
.guide h2 { font-size:20px; margin:22px 0 12px; }
.guide p,.guide li { font-size:14px; line-height:1.8; color:var(--prose); }
.guide ol { padding-left:22px; }
.guide code { background:var(--code); padding:2px 5px; border-radius:4px; overflow-wrap:anywhere; }
.guide a { color:var(--green); text-underline-offset:3px; }
.guide details { border-bottom:1px solid var(--line); padding:14px 0; }
.guide summary { font-size:15px; font-weight:600; cursor:pointer; line-height:1.5; }
@media(max-width:700px) {
  main { padding-top:24px; }
  .description br { display:none; }
  .mode-switch { display:flex; }
  .mode-switch a { flex:1; justify-content:center; min-width:0; padding:10px; font-size:14px; }
  .panel-heading { padding:12px 16px; }
  textarea { min-height:160px; padding:16px; }
  .panel-footer { padding:10px 14px; }
  .copy-button { padding:10px 12px; }
}

.converter-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:8px; }
.converter-toolbar .mode-switch { margin:0; }
.auto-convert-button { flex-shrink:0; min-height:44px; padding:10px 16px; border:1px solid var(--green); background:var(--action); color:white; font-size:14px; font-weight:700; }
.auto-convert-button:hover { background:var(--action-hover); }
.auto-convert-button[aria-pressed="false"] { background:var(--surface); color:var(--secondary); border-color:var(--control-border); }
.auto-convert-button[aria-pressed="false"]:hover { background:var(--soft); }
.auto-convert-hint { margin:0 0 16px; font-size:12px; line-height:1.6; color:var(--muted); }
@media(max-width:700px) {
  .converter-toolbar { gap:8px; }
  .auto-convert-button { padding:10px 8px; font-size:12px; }
  .converter-toolbar .mode-switch a { padding:8px; font-size:12px; min-height:40px; }
}

.header-tools { display:flex; align-items:center; gap:18px; }
.language-switch { display:flex; gap:4px; border:1px solid var(--line); border-radius:8px; padding:3px; }
.language-switch a { padding:7px 10px; font-size:12px; text-decoration:none; border-radius:5px; }
.language-switch a[aria-current] { background:var(--selected-language); color:var(--green); font-weight:700; }
.language-switch a:hover { background:var(--soft); }
@media(max-width:700px) { .header-tools { gap:8px; } .header-tools .header-note { display:none; } .brand img { width:125px; } .language-switch a { padding:7px 8px; } }

/* Shared information pages and site navigation. */
.footer-links { display:flex; flex-wrap:wrap; gap:12px 24px; }
.footer-links a { color:var(--secondary); text-underline-offset:4px; }
.footer-links a[aria-current] { color:var(--green); font-weight:700; }
.info-page { max-width:860px; padding-bottom:48px; }
.back-link { display:inline-block; margin-bottom:26px; color:var(--green); text-underline-offset:4px; font-size:14px; }
.info-content { font-size:16px; line-height:1.85; color:var(--secondary); overflow-wrap:anywhere; }
.info-content h2 { margin:32px 0 10px; font-size:22px; line-height:1.4; color:var(--text); }
.info-content p { margin:0 0 16px; }
.info-content ul { padding-left:24px; margin:0 0 20px; }
.info-content li { margin-bottom:8px; }
.info-content a { color:var(--green); text-underline-offset:4px; }
.info-content .info-action { display:inline-block; background:var(--action); color:white; padding:12px 20px; border-radius:8px; font-weight:700; text-decoration:none; }
.info-content .info-action:hover { background:var(--action-hover); }
.info-date { font-size:14px; color:var(--muted); }
@media(max-width:700px) { footer { align-items:flex-start; gap:16px; flex-direction:column; } .info-content { font-size:15px; } .footer-links { gap:12px 18px; } }

.guide-resources { margin-top:36px; border-top:1px solid var(--line); padding-top:24px; }
.guide-resources > h2 { font-size:22px; margin:0 0 18px; }
.guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.guide-card { display:block; padding:24px; border:1px solid var(--line); border-radius:12px; background:var(--surface); text-decoration:none; }
.guide-card:hover { background:var(--card-hover); border-color:var(--card-hover-border); }
.guide-card h2,.guide-card h3 { margin:0 0 12px; font-size:19px; line-height:1.5; color:var(--text); }
.guide-card p { color:var(--prose); font-size:14px; line-height:1.8; margin:0 0 16px; }
.guide-card span { color:var(--green); font-size:14px; font-weight:700; }
.article-toc { display:flex; flex-direction:column; gap:8px; background:var(--callout); border-radius:10px; padding:20px; margin:24px 0; }
.info-content code { background:var(--code); border-radius:4px; padding:2px 5px; font-size:.9em; }
.info-content pre { white-space:pre-wrap; overflow-wrap:anywhere; margin:8px 0 20px; padding:16px; background:var(--callout); border-radius:8px; }
.info-content pre code { padding:0; background:transparent; }
.table-wrap { overflow-x:auto; margin:20px 0; }
.info-content table { width:100%; border-collapse:collapse; font-size:14px; }
.info-content caption { text-align:left; margin-bottom:10px; font-weight:700; }
.info-content th,.info-content td { text-align:left; padding:12px; border:1px solid var(--line); vertical-align:top; }
.info-content th { background:var(--callout); }
.article-related { border-top:1px solid var(--line); margin-top:32px; }
.info-content h2[id] { scroll-margin-top:24px; }
@media(max-width:700px) { .guide-grid { grid-template-columns:1fr; } .guide-card { padding:20px; } }

/* Theme colors are shared by converter, guides and information pages. */
:root[data-theme="dark"] {
  color-scheme:dark;
  --green:#86dcaf;
  --line:#34483e;
  --muted:#abbdb2;
  --text:#e7f0eb;
  --page:#101914;
  --input-text:#e7f0eb;
  --secondary:#c6d7cc;
  --prose:#c0d0c6;
  --subtle:#9aafa2;
  --badge:#a9beb1;
  --placeholder:#9aafa2;
  --footer-text:#a4b7ac;
  --soft:#223229;
  --output:#192b21;
  --soft-hover:#2c4435;
  --control-border:#587463;
  --mode-hover:#30493b;
  --mode-hover-text:#c9f4da;
  --action-hover:#185a3e;
  --disabled:#293c31;
  --disabled-border:#455e4d;
  --disabled-text:#b0c2b6;
  --secondary-button:#263b2e;
  --code:#263a2e;
  --selected-language:#2b4535;
  --card-hover:#21392b;
  --card-hover-border:#628e72;
  --callout:#203329;
  --error:#ffaaa7;
  --surface:#1a2720;
  --action:#216c4b;
}
:root[data-theme="dark"] .brand img { filter:brightness(0) invert(1); }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:9px 12px; border:1px solid var(--control-border); background:var(--surface); color:var(--secondary); font-size:12px; font-weight:600; white-space:nowrap; }
.theme-toggle[hidden] { display:none; }
.theme-toggle:hover { background:var(--soft-hover); }
.theme-toggle[aria-pressed="true"] { border-color:var(--green); color:var(--green); }
.theme-icon { font-size:19px; line-height:1; }
@media(max-width:700px) { .theme-label { display:none; } .theme-toggle { width:44px; padding:8px; } }
@media(max-width:380px) { .header { padding-left:16px; padding-right:16px; } .brand img { width:106px; } .header-tools { gap:6px; } }

/* Native details keeps every language link available without JavaScript. */
.language-switch { position: relative; border: 0; padding: 0; background: transparent; }
.language-menu { position: relative; font-size: .85rem; }
.language-menu summary { cursor: pointer; padding: .65rem .8rem; border: 1px solid var(--border, #cbd5e1); border-radius: 10px; white-space: nowrap; }
.language-options { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); display: grid; min-width: 210px; max-height: min(65vh, 480px); overflow-y: auto; background: #fff; color: #17233d; border: 1px solid #cbd5e1; border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px #0002; }
.language-options a { display: block; border-radius: 6px; padding: .65rem .85rem; white-space: nowrap; }
.language-options a:hover, .language-options a[aria-current="page"] { background: #e5f3f2; color: #12544e; }
html[data-theme="dark"] .language-options { background: #182333; color: #edf3fa; border-color: #425168; }
html[data-theme="dark"] .language-options a:hover, html[data-theme="dark"] .language-options a[aria-current="page"] { background: #254640; color: #b9f2dc; }
.info-content pre { max-width: 100%; overflow-x: auto; padding: 1rem; }
.mode-switch a, .primary-button, .copy-button, .auto-convert-button { white-space: normal; text-align: center; }
.panel-heading { gap: .75rem; }
@media (max-width: 600px) {
  .header-tools { flex-wrap: wrap; justify-content: flex-end; }
  .converter-toolbar { align-items: stretch; }
  .mode-switch { min-width: 0; }
  .mode-switch a { min-width: 0; overflow-wrap: anywhere; }
  .panel-footer { gap: .5rem; flex-wrap: wrap; }
  .small-actions { flex-wrap: wrap; }
}

/* Practical guide examples remain readable on narrow screens. */
.article-breadcrumb, .article-byline { font-size: .9rem; color: var(--muted); }
.article-toc { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; }
.article-toc ol { margin-bottom: 0; padding-left: 1.3rem; }
.article-toc li { margin: .45rem 0; }
.info-content section[id] { scroll-margin-top: 1.5rem; }
.article-table { max-width: 100%; overflow-x: auto; margin: 1rem 0; }
.article-table table { width: 100%; border-collapse: collapse; }
.article-table th, .article-table td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--line); }
.article-table code { white-space: nowrap; }
.info-content .article-code { max-width: 100%; overflow-x: auto; white-space: pre; padding: 1rem; line-height: 1.6; }
.article-example { white-space: normal; text-align: center; }
.article-references a { overflow-wrap: anywhere; }

.converter-help { max-width: 860px; }
.converter-help .article-table { font-size: .9rem; color: var(--text); }
.converter-help .article-table code { white-space: normal; overflow-wrap: anywhere; }
.converter-related ul { padding-left: 1.2rem; margin: 0; }
.converter-related li { margin: .65rem 0; line-height: 1.6; }
.converter-related a, .article-tool-links a { color: var(--green); text-underline-offset: 3px; }
.article-tool-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }

.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; }
.charset-control { flex:0 1 190px; min-width:0; }
#charset-select { width:100%; min-height:44px; padding:10px 30px 10px 12px; border:1px solid var(--control-border); border-radius:7px; background:var(--surface); color:var(--text); font:inherit; font-size:14px; cursor:pointer; }
#charset-select:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
.charset-hint { color:var(--muted); font-size:12px; line-height:1.7; margin:8px 0 0; }
.output-panel { display:flex; flex-direction:column; }
.output-actions { padding:16px 18px; margin-top:auto; border-top:1px solid var(--line); }
.output-actions .copy-button { width:100%; justify-content:center; min-height:44px; }
@media(max-width:700px) {
  .charset-control { flex-basis:160px; }
  .output-actions { padding:14px 16px; }
}
.output-panel .panel-heading > label { word-break:keep-all; }
@media(max-width:700px) {
  .charset-control { flex-basis:140px; }
  #charset-select { font-size:13px; padding-left:10px; padding-right:25px; }
}

/* Shared rows keep both converter panels aligned. */
.workspace .panel { display:flex; flex-direction:column; }
.workspace .panel-heading { min-height:72px; }
.workspace textarea { height:220px; min-height:220px; resize:none; }
.panel-heading .small-actions { flex-shrink:0; gap:6px; }
.panel-heading .small-actions button { min-height:40px; padding:8px 12px; background:var(--secondary-button); color:var(--green); font-size:12px; font-weight:600; }
.panel-heading .small-actions button:hover { background:var(--soft-hover); }
.workspace .panel-action, .workspace .output-actions { display:grid; grid-template-rows:minmax(36px,1fr) 48px; gap:10px; padding:16px 18px; margin:0; min-height:126px; align-items:stretch; }
.workspace .panel-action p, .output-action-hint { align-self:center; margin:0; color:var(--muted); font-size:11px; line-height:1.6; }
.workspace .primary-button, .workspace .copy-button { height:48px; min-height:48px; padding:10px 16px; justify-content:center; font-size:14px; }
@supports(grid-template-rows:subgrid) {
  .workspace { grid-template-rows:minmax(72px,auto) minmax(220px,auto) minmax(126px,auto); }
  .workspace .panel { display:grid; grid-row:span 3; grid-template-rows:subgrid; row-gap:0; }
  .workspace textarea { height:100%; min-height:0; }
}
@media(max-width:700px) {
  .workspace { grid-template-rows:none; }
  .workspace .panel { display:grid; grid-row:auto; grid-template-rows:minmax(72px,auto) minmax(160px,auto) minmax(126px,auto); }
  .workspace textarea { height:160px; min-height:0; }
  .panel-heading .small-actions { gap:4px; }
  .panel-heading .small-actions button { font-size:11px; padding:8px 7px; }
  .workspace .panel-action, .workspace .output-actions { padding:16px; }
}
.workspace { row-gap:0; }
@media(max-width:700px) {
  .workspace { row-gap:18px; }
  .panel-heading .small-actions { flex-shrink:1; }
}
@media(max-width:700px) {
  .converter-toolbar { flex-wrap:wrap; gap:12px; }
  .converter-toolbar .auto-convert-button { max-width:100%; flex:0 1 auto; }
  .converter-toolbar .mode-switch { flex:1 1 100%; min-width:0; }
}
.workspace .panel-action, .workspace .output-actions { grid-template-columns:minmax(0,1fr); justify-content:stretch; }
.workspace .panel-action .primary-button { width:100%; }

/* Both native corner grips resize the synchronized converter fields. */
.workspace textarea {
  height:220px;
  min-height:220px;
  resize:vertical;
  overflow:auto;
}
@media(max-width:700px) {
  .workspace textarea { height:160px; min-height:160px; }
}

/* Keep the file tool below the initial viewport, without clipping tall content. */
.text-converter { min-height:calc(100svh - var(--site-header-height, 110px) - 52px); display:flex; flex-direction:column; }
.file-scroll-hint { display:block; align-self:center; margin:auto 0 0; padding:18px 12px 24px; font-size:12px; color:var(--muted); text-decoration:none; }
.file-scroll-hint:hover { color:var(--green); }
.file-converter { border-top:1px solid var(--line); padding:32px 0 40px; scroll-margin-top:24px; }
.file-converter h2 { font-size:21px; line-height:1.4; margin:0 0 8px; letter-spacing:-.02em; }
.file-description { color:var(--muted); font-size:14px; line-height:1.7; margin:0 0 18px; }
.file-dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:190px; padding:24px; border:1px dashed var(--control-border); border-radius:12px; background:var(--output); cursor:pointer; text-align:center; }
.file-dropzone svg { color:var(--muted); margin-bottom:4px; }
.file-dropzone strong { font-size:15px; }
.file-dropzone span { font-size:12px; line-height:1.6; color:var(--muted); }
.file-dropzone .file-selection { color:var(--green); font-weight:600; overflow-wrap:anywhere; max-width:100%; }
.file-selection:empty { display:none; }
.file-dropzone:hover, .file-dropzone.dragging { border-color:var(--green); background:var(--soft-hover); }
.file-action-row { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:16px; }
.file-action-row p { margin:0; color:var(--muted); font-size:12px; line-height:1.7; }
.file-action-row button { font-size:14px; min-height:44px; flex-shrink:0; }
.file-action-row button:disabled { background:var(--disabled); color:var(--disabled-text); cursor:not-allowed; }
.file-status { font-size:13px; line-height:1.7; margin:12px 0 0; color:var(--green); }
.file-status:empty { display:none; }
.file-status.error { color:var(--error); }
.file-download { display:inline-block; font-size:14px; font-weight:600; color:var(--green); margin-top:12px; text-underline-offset:4px; }
.file-download[hidden] { display:none; }
@media(min-width:701px) {
 .text-converter .workspace textarea { height:clamp(220px, calc(100svh - 680px), 440px); }
}
@media(max-width:700px) {
 .text-converter { min-height:calc(100svh - var(--site-header-height, 80px) - 36px); }
 .file-converter { padding-top:24px; }
 .file-action-row { flex-wrap:wrap; gap:12px; }
 .file-action-row button { width:100%; justify-content:center; }
 .file-dropzone { padding:24px 16px; }
}
.text-converter .feedback:empty { display:none; }
@media(min-width:701px) {
 body[data-mode] main { padding-top:32px; }
 .text-converter { min-height:calc(100svh - var(--site-header-height, 110px) - 32px); }
 .text-converter .intro { margin-bottom:24px; }
}
@media(min-width:701px) {
 .text-converter .workspace { grid-template-rows:minmax(72px,auto) minmax(190px,auto) minmax(110px,auto); }
 .text-converter .workspace textarea { min-height:190px; height:clamp(190px, calc(100svh - 660px), 440px); }
 .text-converter .panel-action, .text-converter .output-actions { min-height:110px; grid-template-rows:minmax(24px,1fr) 44px; padding:12px 18px; }
 .text-converter .workspace .primary-button, .text-converter .workspace .copy-button { height:44px; min-height:44px; }
 .text-converter .file-scroll-hint { padding:12px 12px 16px; }
}
/* File actions use their own columns instead of the full-width text action. */
.file-action-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; }
.file-action-row p { min-width:0; word-break:keep-all; overflow-wrap:break-word; }
.file-action-row .primary-button { width:auto; min-width:140px; max-width:100%; justify-content:center; }
.file-description { max-width:100%; word-break:keep-all; overflow-wrap:break-word; }
.file-dropzone strong, .file-dropzone > span { max-width:100%; word-break:keep-all; overflow-wrap:break-word; }
@media(max-width:700px) {
 .file-action-row { grid-template-columns:minmax(0,1fr); gap:12px; }
 .file-action-row .primary-button { width:100%; }
}
