/* cvsJsonTool — Modern CSS3, logical properties everywhere so RTL (ar/ur) mirrors automatically. */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f1f2f8;
  --text: #15172a;
  --muted: #5d6178;
  --border: #e2e4ef;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --code-bg: #0f1222;
  --code-text: #e6e8f5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 22, 40, .06), 0 4px 16px rgba(20, 22, 40, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Bengali", "PingFang SC", "Hiragino Sans", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --graph-correlation: #4f46e5;
  --graph-association: #0891b2;
  --graph-dependency: #d97706;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f1a; --surface: #151829; --surface-2: #1c2036; --text: #e8eaf6; --muted: #9aa0bd;
    --border: #2a2f4a; --accent: #818cf8; --accent-ink: #0d0f1a; --accent-soft: #23264a;
    --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; --code-bg: #0a0c16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
[lang="ar"] { --font: "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
[lang="ur"] { --font: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Sans Arabic", system-ui, sans-serif; }
[lang="ur"] body { line-height: 1.9; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--accent); }
img, svg { max-inline-size: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin-block: 0 .5em; }
h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h2 { font-size: 1.3rem; margin-block-start: 1.6em; }
h3 { font-size: 1.05rem; margin-block-start: 1.4em; }
code, pre, textarea.code { font-family: var(--mono); }
.container { max-inline-size: 1320px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-inline-size: 920px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ok { color: var(--ok); } .error { color: var(--bad); } .warn { color: var(--warn); }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 8px; inset-block-start: -40px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { inset-block-start: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons & controls */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; min-block-size: 38px; }
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-small { padding: 4px 10px; font-size: .85rem; min-block-size: 32px; }
.btn-block { inline-size: 100%; justify-content: center; }
.btn-icon { inline-size: 40px; block-size: 40px; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; }
.btn-icon-close { border: 0; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; min-block-size: 38px; max-inline-size: 100%;
}
.field-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.field-inline select { min-block-size: 34px; padding-block: 4px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; cursor: pointer; user-select: none; }
.toggle input { inline-size: 16px; block-size: 16px; accent-color: var(--accent); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-inline-start: 6px; }
.badge-premium { background: linear-gradient(90deg, #f59e0b, #ec4899); color: #fff; }
.badge-ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge-bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-block-end: 16px; }
.flash { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 10px 14px; margin-block: 12px; }
.flash-error, .alert-error { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); border-color: var(--bad); }
.alert { border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; margin-block: 10px; }
.alert-ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block: 10px; }
.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding-block: 6px; }
.row-center { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.stack label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

/* Header */
.site-header { background: var(--surface); border-block-end: 1px solid var(--border); position: sticky; inset-block-start: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; min-block-size: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.tool-nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.tool-nav a { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.tool-nav a:hover, .tool-nav a.active { color: var(--accent); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2px; z-index: 30; }
.lang-switch li a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--text); }
.lang-switch li a:hover, .lang-switch li a[aria-current] { background: var(--accent-soft); color: var(--accent); }

/* Ads: reserved space eliminates layout shift (CLS < 0.1) */
.ad-slot { display: block; margin: 12px auto; text-align: center; max-inline-size: 100%; min-block-size: calc(var(--ad-h) + 18px); contain: layout; }
.ad-slot ins { min-block-size: var(--ad-h); }
.ad-header-banner, .ad-in-converter-leaderboard { max-inline-size: calc(var(--ad-w) + 2px); }
.ad-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-block-end: 2px; }
@media (max-width: 760px) { .ad-slot { min-block-size: calc(var(--ad-mh) + 18px); } .ad-sidebar-skyscraper { display: none; } }

/* Page */
.page-intro { padding-block: 20px 8px; }
.lead { color: var(--muted); font-size: 1.05rem; max-inline-size: 70ch; margin-block: 0; }
.page-intro.center .lead { margin-inline: auto; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; align-items: start; }
.sidebar { position: sticky; inset-block-start: 76px; display: grid; gap: 16px; }
.upsell .check-list { font-size: .85rem; }
@media (max-width: 1100px) { .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); } .sidebar { position: static; } }

/* Workspace */
.workspace { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.adaptive-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block-end: 8px; }
.adaptive-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; background: var(--accent-soft); border-radius: 999px; font-size: .82rem; font-weight: 600; }
.adaptive-chip .dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.adaptive-chip select { min-block-size: 28px; padding-block: 2px; font-size: .8rem; border-radius: 999px; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .adaptive-chip .dot { animation: none; } }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.suggestion { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--accent); background: var(--surface); border-radius: var(--radius-sm); padding: 4px 4px 4px 10px; font-size: .85rem; animation: rise .25s ease-out; }
@keyframes rise { from { transform: translateY(4px); opacity: 0; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding-block: 8px 12px; border-block-end: 1px solid var(--border); margin-block-end: 12px; }
.segmented { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 10px; }
.segmented button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; direction: ltr; }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.workspace[data-mode="csv2json"] .json2csv-only, .workspace[data-mode="json2csv"] .csv2json-only { display: none; }
.panes { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.pane { display: flex; flex-direction: column; min-inline-size: 0; }
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block-end: 6px; flex-wrap: wrap; min-block-size: 36px; }
.pane-title { font-weight: 700; }
.pane-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.pane-swap { display: flex; align-items: center; }
.editor-wrap { position: relative; flex: 1; }
#input { inline-size: 100%; block-size: 420px; resize: vertical; font: 13px/1.5 var(--mono); padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); tab-size: 4; white-space: pre; overflow: auto; }
.drop-overlay { position: absolute; inset: 0; display: none; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 2px dashed var(--accent); border-radius: var(--radius-sm); font-weight: 700; }
.editor-wrap.dragging .drop-overlay { display: grid; }
.output-wrap { flex: 1; min-block-size: 420px; display: flex; }
#output-raw { margin: 0; flex: 1; block-size: 420px; overflow: auto; background: var(--code-bg); color: var(--code-text); border-radius: var(--radius-sm); padding: 12px; font-size: 13px; line-height: 1.5; resize: vertical; }
.table-wrap { flex: 1; overflow: auto; max-block-size: 520px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.data-table { border-collapse: collapse; inline-size: 100%; font-size: .85rem; }
.data-table th, .data-table td { border-block-end: 1px solid var(--border); padding: 6px 10px; text-align: start; vertical-align: top; white-space: nowrap; max-inline-size: 360px; overflow: hidden; text-overflow: ellipsis; }
.data-table thead th { position: sticky; inset-block-start: 0; background: var(--surface-2); font-weight: 700; z-index: 1; }
.data-table td.num { text-align: end; font-variant-numeric: tabular-nums; }
.data-table td.null { color: var(--muted); font-style: italic; }
.data-table .rownum { color: var(--muted); text-align: end; inline-size: 1%; }
.data-table tr.changed td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.data-table.compact td { white-space: normal; }
.statusbar { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; padding-block-start: 10px; color: var(--muted); }
#status-main { color: var(--text); font-weight: 600; }
.status-errors { color: var(--bad); font-weight: 600; }
@media (max-width: 900px) {
  .panes { grid-template-columns: minmax(0, 1fr); }
  .pane-swap { justify-content: center; }
  .pane-swap .btn-icon { transform: rotate(90deg); }
  #input, #output-raw { block-size: 280px; }
  .output-wrap { min-block-size: 280px; }
}

/* Generative UI — profile-driven composition */
.workspace[data-adaptive="casual"] .adv-dev { display: none; }
.workspace[data-adaptive="analyst"] .panes { grid-template-columns: minmax(0, 2fr) auto minmax(0, 3fr); }
.workspace[data-adaptive="developer"] #input, .workspace[data-adaptive="developer"] #output-raw { font-size: 12.5px; }
body[data-adaptive="bulk"] .ai-tabs [data-panel="batch"] { order: -2; }
body[data-adaptive="analyst"] .ai-tabs [data-panel="analyze"] { order: -3; }
body[data-adaptive="analyst"] .ai-tabs [data-panel="graph"] { order: -2; }
body[data-adaptive="developer"] .ai-tabs [data-panel="repair"] { order: -3; }
body[data-adaptive="developer"] .ai-tabs [data-panel="history"] { order: -2; }
body[data-adaptive="bulk"] .dropzone { min-block-size: 200px; border-width: 3px; }

/* AI suite */
.ai-suite { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-block: 16px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.tabs [role="tab"] { border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: 8px 12px; border-block-end: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--accent); border-block-end-color: var(--accent); }
.ai-tabs { border-block-end: 1px solid var(--border); padding-inline: 8px; }
.ai-panel { padding: 16px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.panel-head p { margin: 0; max-inline-size: 60ch; }
.panel-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-body { margin-block-start: 12px; }
.loading { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 16px 0; }
.spin { inline-size: 18px; block-size: 18px; border: 2px solid var(--border); border-block-start-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.analysis-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.eyebrow { display: block; text-transform: uppercase; font-size: .72rem; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.big { display: block; font-size: 1.4rem; margin-block: 4px 10px; }
.meter { margin-block: 8px; }
.meter-label { display: flex; justify-content: space-between; font-size: .82rem; }
.meter-track { block-size: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter-fill { block-size: 100%; background: var(--accent); border-radius: 999px; }
.tone-good .meter-fill { background: var(--ok); } .tone-ok .meter-fill { background: var(--warn); } .tone-bad .meter-fill { background: var(--bad); }
.grade { display: flex; align-items: baseline; gap: 8px; margin-block: 4px 8px; }
.grade strong { font-size: 2.2rem; }
.grade span { font-size: 1.1rem; font-weight: 800; padding: 0 8px; border-radius: 6px; background: var(--surface-2); }
.grade-A span { color: var(--ok); } .grade-D span, .grade-F span { color: var(--bad); }
.issues, .fix-list, .insights, .batch-list, .version-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.issues li { display: flex; gap: 8px; align-items: baseline; font-size: .9rem; }
.sev { font-size: .7rem; font-weight: 800; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); }
.sev-error .sev { color: var(--bad); } .sev-warning .sev { color: var(--warn); } .sev-info .sev { color: var(--muted); }
.fix-list li { display: flex; gap: 8px; align-items: baseline; }
.fix-count { font-weight: 800; color: var(--accent); min-inline-size: 3ch; }
.repair-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.repair-compare figure { margin: 0; }
.repair-compare figcaption { font-weight: 700; font-size: .85rem; margin-block-end: 4px; }
.code-block { background: var(--code-bg); color: var(--code-text); padding: 12px; border-radius: var(--radius-sm); overflow: auto; max-block-size: 360px; font-size: 12.5px; margin: 0; }
.code-block.repaired { box-shadow: inset 3px 0 0 var(--ok); }
.graph-stage { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--surface)); }
#graph-svg { inline-size: 100%; display: block; touch-action: none; }
.edge { fill: none; }
.edge-correlation { stroke: var(--graph-correlation); } .edge-association { stroke: var(--graph-association); } .edge-dependency { stroke: var(--graph-dependency); }
.node { cursor: grab; }
.node circle { stroke: var(--surface); stroke-width: 2; }
.node-identifier circle { stroke: var(--text); stroke-dasharray: 3 2; }
.node text { font-size: 11px; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.graph-legend { display: flex; gap: 14px; padding: 8px 12px; font-size: .8rem; flex-wrap: wrap; }
.lg::before { content: ""; display: inline-block; inline-size: 18px; block-size: 3px; margin-inline-end: 6px; vertical-align: middle; }
.lg-correlation::before { background: var(--graph-correlation); } .lg-association::before { background: var(--graph-association); } .lg-dependency::before { background: var(--graph-dependency); }
.summary section { margin-block-end: 12px; }
.summary h4 { margin-block-end: 4px; }
.summary ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 4px; }
.batch-options, .rtl-options { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-block-end: 12px; }
.dropzone { display: grid; place-items: center; gap: 4px; text-align: center; min-block-size: 140px; border: 2px dashed var(--border); border-radius: var(--radius); cursor: pointer; padding: 20px; background: var(--surface-2); }
.dropzone.dragging, .dropzone:hover { border-color: var(--accent); }
.batch-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) 120px minmax(0, 2fr); gap: 10px; align-items: center; font-size: .88rem; }
.batch-list progress { inline-size: 100%; accent-color: var(--accent); }
.version-list .version { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; border-block-end: 1px solid var(--border); padding-block: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }

/* SEO content */
.seo-content { padding-block: 8px 24px; }
.steps { padding-inline-start: 1.3em; display: grid; gap: 6px; }
.feature-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.feature-grid li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; }
.feature-grid span { color: var(--muted); font-size: .9rem; }
.faq details { border-block-end: 1px solid var(--border); padding-block: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin-block: 8px 0; }
.check-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.check-list li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-inline-end: 8px; }
.check-list.columns { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-list li { margin-block-end: 12px; }
.feature-list h3 { margin-block: 0 4px; }
.feature-list p { margin: 0; color: var(--muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-block: 24px; }
.plan .price { font-size: 1.8rem; font-weight: 800; margin-block: 4px 12px; }
.plan-featured { border: 2px solid var(--accent); }
.auth-wrap { display: grid; place-items: center; padding-block: 40px; }
.form-card { inline-size: min(420px, 100%); display: grid; gap: 12px; }
.form-card label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.error-page h1 { font-size: 4rem; margin-block: 30px 0; }

/* Footer */
.site-footer { border-block-start: 1px solid var(--border); background: var(--surface); margin-block-start: 32px; padding-block: 16px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 20px; padding-block: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: .9rem; }
.footer-langs ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Dialog & toast */
.interstitial { border: 0; border-radius: var(--radius); padding: 18px; background: var(--surface); color: var(--text); max-inline-size: 420px; text-align: center; }
.interstitial::backdrop { background: rgba(10, 12, 25, .55); }
#interstitial-slot { min-block-size: 280px; display: grid; place-items: center; }
.interstitial-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-start: 10px; }
.toast { position: fixed; inset-block-end: 20px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 50; font-weight: 600; max-inline-size: calc(100% - 32px); }
[dir="rtl"] .toast { transform: translateX(50%); }
.toast[data-kind="error"] { background: var(--bad); color: #fff; }
.toast[data-kind="ok"] { background: var(--ok); color: #fff; }

/* RTL specifics that logical properties do not cover */
[dir="rtl"] .pane-swap .btn-icon svg { transform: scaleX(-1); }
[dir="rtl"] #input, [dir="rtl"] #output-raw, [dir="rtl"] .code-block { direction: ltr; text-align: left; }
[dir="rtl"] .data-table[dir="rtl"] td.num { text-align: start; }
