/* Puchi Tools shared stylesheet.
   Theme colours come from CSS variables printed by layout.html (per site):
   --c-main --c-sub --c-bg --c-strong --c-btn-bg --c-btn-fg  (see build.py derive_theme) */

:root {
  --c-text: #2D2A32;
  --c-muted: #5E5868;
  --c-line: #E4DFEA;
  --c-card: #FFFFFF;
  --c-error: #B3261E;
  --c-error-bg: #FDECEA;
  --c-warn: #7A5300;
  --c-warn-bg: #FFF4D6;
  --c-ok: #1E6B45;
  --c-ok-bg: #E3F6EC;
  --c-info-bg: #EEF2FB;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(45, 42, 50, .06);
  --font: "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--c-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--c-strong); outline-offset: 2px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: .5rem; top: .5rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { margin: 40px 0; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); }
.site-header .container { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); font-weight: 700; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c-btn-bg); color: var(--c-btn-fg); font-size: 18px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.05rem; }
.brand-sub { font-size: .72rem; color: var(--c-muted); font-weight: 500; }
.header-spacer { flex: 1; }
.lang-switch { display: flex; gap: 4px; padding: 3px; background: var(--c-sub); border-radius: 999px; margin: 0; list-style: none; }
.lang-switch a, .lang-switch span { display: block; padding: 6px 12px; border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--c-text); min-height: 32px; }
.lang-switch [aria-current="true"] { background: #fff; font-weight: 700; box-shadow: var(--shadow); }

/* ---------- hero with mascot ---------- */
.hero { padding: 24px 0 8px; }
.hero-inner { display: flex; align-items: flex-end; gap: 16px; }
.hero h1 { font-size: 1.7rem; margin-bottom: .2em; }
.hero .tagline { color: var(--c-muted); margin: 0 0 .6em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.badges li { font-size: .78rem; background: #fff; border: 1px solid var(--c-line); border-radius: 999px; padding: 2px 10px; }
.badges li::before { content: "✓ "; color: var(--c-strong); font-weight: 700; }

/* Characters are guides, never obstacles: fixed small widths, no pointer events,
   they never overlap form controls and shrink first on small screens. */
.mascot { flex: none; width: 136px; pointer-events: none; user-select: none; }
.mascot img, .mascot svg { display: block; width: 100%; height: auto; }
.mascot img { filter: drop-shadow(0 2px 4px rgba(45, 42, 50, .08)); }
.speech { position: relative; background: #fff; border: 2px solid var(--c-sub); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.speech::after { content: ""; position: absolute; left: -10px; bottom: 22px; width: 16px; height: 16px; background: #fff; border-left: 2px solid var(--c-sub); border-bottom: 2px solid var(--c-sub); transform: rotate(45deg); }
.speech p:last-child { margin-bottom: 0; }
.mascot-row { display: flex; align-items: flex-end; gap: 12px; }
.mascot-row .speech { flex: 1; }
.mascot-row.small .mascot { width: 84px; }

/* Tool-page hero: title, then the character "explaining" the 3-step how-to strip.
   grid areas keep h1 first in the DOM but put the character beside the bubble. */
.hero-grid { display: grid; grid-template-columns: 136px minmax(0, 1fr); grid-template-areas: "mascot head" "mascot speech"; column-gap: 16px; align-items: end; }
.hero-head { grid-area: head; }
.hero-grid > .mascot { grid-area: mascot; align-self: end; }
.hero-speech { grid-area: speech; padding: 12px 14px 12px; }
.hero-speech::after { bottom: 30px; }
.hero .badges { margin-top: 10px; }

/* ---------- how-to strip (shared by every tool: see docs/new-tool.md) ----------
   3 illustrated steps + arrows. Art is inline SVG (sites/<id>/templates/howto-N.html);
   all words come from i18n. Colours follow the site theme through these classes. */
.howto-label { margin: 0 0 6px; font-size: .8rem; font-weight: 700; color: var(--c-strong); }
.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.howto-step { position: relative; background: var(--c-bg); border: 1px solid var(--c-sub); border-radius: 14px; padding: 8px 8px 10px; text-align: center; }
.howto-step:not(:last-child)::after {
  content: ""; position: absolute; top: 38%; right: -20px; width: 14px; height: 18px;
  background: var(--c-main); clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 2px;
}
.howto-art { pointer-events: none; user-select: none; }
.howto-art svg { display: block; width: 100%; height: auto; max-height: 112px; margin: 0 auto; }
.howto-title { margin: 6px 0 0; font-weight: 700; font-size: .92rem; line-height: 1.35; display: flex; align-items: center; justify-content: center; gap: 6px; }
.howto-num { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c-btn-bg); color: var(--c-btn-fg); font-size: .78rem; }
.howto-note { margin: 2px 0 0; font-size: .78rem; color: var(--c-muted); line-height: 1.45; }
.howto-note strong { color: var(--c-strong); }
.howto-foot { margin: 8px 0 0; font-size: .75rem; color: var(--c-muted); line-height: 1.5; }
/* SVG paint classes */
.howto-art .ln { stroke: #5E5868; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.howto-art .nf { fill: none; }
.howto-art .f-main { fill: var(--c-main); }
.howto-art .f-sub { fill: var(--c-sub); }
.howto-art .f-bg { fill: var(--c-bg); }
.howto-art .f-w { fill: #fff; }
.howto-art .f-strong { fill: var(--c-strong); }
.howto-art .f-btn { fill: var(--c-btn-bg); }
.howto-art .f-btnfg { fill: var(--c-btn-fg); }
.howto-art .f-text { fill: var(--c-text); }
.howto-art .f-muted { fill: var(--c-muted); }
.howto-art .s-main { stroke: var(--c-main); }
.howto-art .s-w { stroke: #fff; }
.howto-art text { font-family: var(--font); font-weight: 700; }

@media (max-width: 640px) {
  .hero { padding: 12px 0 0; }
  .hero h1 { font-size: 1.3rem; }
  .hero .mascot { width: 78px; }
  .mascot-row.small .mascot { width: 64px; }
  .hero .speech { padding: 8px 12px; font-size: .92rem; }
  .hero .tagline { font-size: .86rem; margin-bottom: 0; line-height: 1.5; }
  .hero-grid { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "mascot head" "speech speech"; column-gap: 10px; row-gap: 10px; }
  .hero-grid > .mascot { width: 64px; align-self: end; }
  .hero-speech { padding: 8px; }
  .hero-speech::after { left: 22px; top: -10px; bottom: auto; transform: rotate(135deg); }
  .howto-label { font-size: .74rem; margin-bottom: 4px; }
  .howto { gap: 14px; }
  .howto-step { padding: 4px 3px 6px; border-radius: 10px; }
  .howto-step:not(:last-child)::after { right: -12px; width: 9px; height: 12px; }
  .howto-art svg { max-height: 74px; }
  .howto-title { font-size: .74rem; gap: 3px; margin-top: 3px; flex-direction: column; }
  .howto-num { width: 18px; height: 18px; font-size: .68rem; }
  .howto-note { display: none; } /* phones: pictures + step titles only, so the tool stays in the first screen */
  .howto-foot { font-size: .68rem; margin-top: 6px; }
  .hero .badges { margin-top: 8px; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hero .badges li { font-size: .7rem; padding: 1px 8px; white-space: nowrap; flex: none; }
}
/* narrow phones: keep logo + language switch on one line (long English tool names) */
@media (max-width: 400px) {
  .site-header .container { gap: 8px; flex-wrap: nowrap; }
  .brand { gap: 8px; min-width: 0; }
  .brand-name { font-size: .9rem; }
  .brand-text { min-width: 0; }
  .lang-switch { flex: none; }
  .lang-switch a, .lang-switch span { padding: 6px 9px; font-size: .8rem; white-space: nowrap; }
}

/* ---------- cards / tool ---------- */
.card { background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--c-line); padding: 20px; }
.tool { margin-top: 16px; }
@media (max-width: 640px) { .card { padding: 14px; border-radius: 14px; } }

.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: step; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .88rem; padding: 6px 10px; border-radius: 999px; background: #F5F3F8; color: var(--c-muted); counter-increment: step; }
.steps li::before { content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--c-line); font-weight: 700; font-size: .8rem; }
.steps li[data-state="current"] { background: var(--c-sub); color: var(--c-text); font-weight: 700; }
.steps li[data-state="current"]::before { border-color: var(--c-strong); }
.steps li[data-state="done"]::before { content: "✓"; background: var(--c-btn-bg); color: var(--c-btn-fg); border-color: var(--c-btn-bg); }
.steps .state { font-size: .72rem; font-weight: 500; }
@media (max-width: 520px) { .steps li { flex-direction: column; gap: 2px; text-align: center; padding: 6px 4px; border-radius: 12px; font-size: .78rem; } }

.block { margin-top: 20px; }
.block-title { font-size: 1rem; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.block-title .num { width: 26px; height: 26px; border-radius: 50%; background: var(--c-sub); display: grid; place-items: center; font-size: .85rem; }

/* ---------- dropzone ---------- */
.dropzone { border: 3px dashed var(--c-main); background: var(--c-bg); border-radius: var(--radius); padding: 28px 16px; text-align: center; transition: background .15s; }
.dropzone.is-over { background: var(--c-sub); border-style: solid; }
.dropzone .dz-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 6px; }
.dropzone .dz-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0; }
.dropzone .hint { font-size: .82rem; color: var(--c-muted); margin: 0; }
.dropzone.compact { padding: 14px; }
@media (max-width: 640px) { .dropzone { padding: 18px 12px; } .dz-drag-text { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--c-btn-bg); color: var(--c-btn-fg); }
.btn-primary:hover { filter: brightness(.95); }
.btn-secondary { background: #fff; color: var(--c-text); border-color: var(--c-strong); }
.btn-secondary:hover { background: var(--c-bg); }
.btn-ghost { background: transparent; color: var(--c-strong); border-color: transparent; text-decoration: underline; min-height: 40px; padding: 6px 12px; }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding: 12px 32px; }
.btn-sm { min-height: 36px; padding: 4px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
.btn-download { background: var(--c-btn-bg); color: var(--c-btn-fg); }
.btn-download::before { content: "⬇"; }
.icon-btn { min-width: 40px; min-height: 40px; border-radius: 50%; border: 1px solid var(--c-line); background: #fff; cursor: pointer; font-size: 1rem; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--c-error-bg); border-color: var(--c-error); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.actions.center { justify-content: center; }

/* ---------- form ---------- */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .brand-sub { display: none; } .site-header .container { min-height: 52px; } }
.field label, .field .label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.field .help { font-size: .8rem; color: var(--c-muted); margin: 4px 0 0; }
.input, select.input { width: 100%; min-height: 48px; padding: 8px 14px; border: 2px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; font-size: 1rem; }
.input:focus { border-color: var(--c-strong); outline: none; box-shadow: 0 0 0 3px var(--c-sub); }
.input[aria-invalid="true"] { border-color: var(--c-error); }
.input-unit { display: flex; align-items: center; gap: 6px; }
.input-unit span { color: var(--c-muted); font-size: .9rem; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 8px 0; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--c-strong); margin-top: 3px; flex: none; }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; accent-color: var(--c-strong); min-height: 40px; }
.field-error { color: var(--c-error); font-size: .85rem; margin: 4px 0 0; }
.field-error::before { content: "⚠ "; }

/* ---------- file list ---------- */
.file-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.file-count { font-weight: 700; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; }
.file-item .thumb { width: 56px; height: 56px; flex: none; border-radius: 8px; object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.file-item .meta { flex: 1; min-width: 0; font-size: .88rem; }
.file-item .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .sub { color: var(--c-muted); font-size: .8rem; }
.file-item.is-error { border-color: var(--c-error); background: var(--c-error-bg); }
.file-item.is-done { border-color: var(--c-strong); }
.tag { display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: var(--c-sub); margin-left: 4px; vertical-align: 1px; }
.tag.err { background: var(--c-error); color: #fff; }
.tag.ok { background: var(--c-ok); color: #fff; }
.arrow { color: var(--c-muted); padding: 0 4px; }

/* ---------- status / progress / alerts ---------- */
.status { margin-top: 16px; }
.progress { height: 14px; background: #EEE; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--c-btn-bg); transition: width .2s; }
.status-text { font-size: .9rem; margin: 6px 0 0; }
.alert { border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0 0; font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.alert::before { flex: none; font-weight: 700; }
.alert-error { background: var(--c-error-bg); color: var(--c-error); border: 1px solid var(--c-error); }
.alert-error::before { content: "✕"; }
.alert-warn { background: var(--c-warn-bg); color: var(--c-warn); border: 1px solid #E8C35A; }
.alert-warn::before { content: "!"; }
.alert-info { background: var(--c-info-bg); color: var(--c-text); border: 1px solid #C9D3EE; }
.alert-info::before { content: "i"; }
.alert-ok { background: var(--c-ok-bg); color: var(--c-ok); border: 1px solid #9ED5B7; }
.alert-ok::before { content: "✓"; }
.alert ul { margin: 4px 0 0; padding-left: 1.2em; }

/* ---------- result ---------- */
.result { margin-top: 20px; border-top: 2px dashed var(--c-sub); padding-top: 20px; }
.result-head { display: flex; align-items: flex-end; gap: 12px; }
.result-head .mascot { width: 112px; }
@media (max-width: 640px) { .result-head .mascot { width: 72px; } }

/* ---------- ads & PR ---------- */
.ad-area { margin: 32px auto; max-width: var(--maxw); padding: 0 16px; }
.ad-label { display: block; font-size: .72rem; color: var(--c-muted); text-align: center; margin-bottom: 4px; letter-spacing: .1em; }
.ad-slot { min-height: 280px; background: transparent; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 8px 0; }
@media (max-width: 640px) { .ad-slot { min-height: 250px; } }
.pr-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 12px 0 0; }
.pr-card { display: block; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; color: var(--c-text); text-decoration: none; }
.pr-card .pr-badge { display: inline-block; font-size: .7rem; font-weight: 700; border: 1px solid var(--c-muted); color: var(--c-muted); border-radius: 4px; padding: 0 6px; margin-right: 6px; }
.pr-note { font-size: .78rem; color: var(--c-muted); margin: 8px 0 0; }

/* ---------- content sections ---------- */
.guide-steps { counter-reset: g; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.guide-steps li { counter-increment: g; position: relative; padding: 12px 14px 12px 56px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--c-line); }
.guide-steps li::before { content: counter(g); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--c-btn-bg); color: var(--c-btn-fg); display: grid; place-items: center; font-weight: 700; }
.guide-steps h3 { margin: 0 0 .2em; font-size: 1rem; }
.guide-steps p { margin: 0; font-size: .92rem; }
.tips { margin: 16px 0 0; padding-left: 1.2em; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.grid-cards li { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 14px 16px; }
.grid-cards .icon { font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 6px; }
.grid-cards h3 { font-size: 1rem; margin-bottom: .3em; }
.grid-cards p { font-size: .9rem; margin: 0; color: var(--c-muted); }
.tool-link { display: flex; gap: 12px; align-items: center; padding: 14px; text-decoration: none; color: var(--c-text); background: #fff; border-radius: var(--radius-sm); border: 2px solid var(--c-line); height: 100%; }
.tool-link:hover { border-color: currentColor; }
.tool-link .tool-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; flex: none; }
.tool-link .tool-mascot { width: 60px; height: 72px; object-fit: contain; object-position: bottom; flex: none; border-radius: 12px; }
.trio { display: flex; align-items: flex-end; gap: 4px; flex: none; pointer-events: none; }
.trio img { width: 96px; height: auto; }
@media (max-width: 640px) {
  .trio img { width: 64px; }
  .hero-stack { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-stack .trio { justify-content: center; }
  .hero-stack .speech::after { left: 50%; top: -10px; bottom: auto; transform: translateX(-50%) rotate(135deg); }
}
.tool-link strong { display: block; }
.tool-link span.desc { font-size: .85rem; color: var(--c-muted); }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style-position: outside; min-height: 48px; }
.faq summary::marker { color: var(--c-strong); }
.faq details > div { padding: 0 16px 14px; font-size: .95rem; }

/* ---------- legal pages ---------- */
.legal { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--c-line); margin-top: 24px; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal h2:first-of-type { margin-top: 0; }
.placeholder { background: var(--c-warn-bg); color: var(--c-warn); padding: 0 6px; border-radius: 4px; }
.legal table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.legal th, .legal td { border: 1px solid var(--c-line); padding: 6px 8px; text-align: left; vertical-align: top; }

/* ---------- footer ---------- */
.site-footer { margin-top: 48px; background: #fff; border-top: 1px solid var(--c-line); padding: 28px 0 40px; font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.footer-cols h2 { font-size: .95rem; margin-bottom: .4em; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 4px 0; }
.footer-cols a { display: inline-block; padding: 4px 0; }
.copyright { color: var(--c-muted); font-size: .8rem; margin-top: 20px; }

/* ---------- prompt output (illust) and tables ---------- */
.kv { width: 100%; border-collapse: collapse; font-size: .92rem; }
.kv th, .kv td { padding: 8px 10px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.kv th { width: 34%; font-weight: 700; }
.conf { display: inline-block; font-size: .72rem; border-radius: 999px; padding: 0 8px; margin-left: 6px; border: 1px solid currentColor; white-space: nowrap; }
.conf-high { color: var(--c-ok); }
.conf-ref { color: var(--c-warn); }
.conf-none { color: var(--c-muted); }
.prompt-box { position: relative; }
.prompt-box textarea { width: 100%; min-height: 96px; border: 2px solid var(--c-line); border-radius: var(--radius-sm); padding: 10px 12px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9rem; resize: vertical; background: #FCFCFE; }
.preview-img { max-height: 320px; width: auto; margin: 0 auto; display: block; border-radius: var(--radius-sm); background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .ad-area, .site-footer, .tool { display: none; } }
