:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #171926; background: #fbfaf7; }
* { box-sizing: border-box; }
body { margin: 0; background: #fbfaf7; }
button, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.tool { width: min(100%, 1080px); margin: auto; padding: clamp(20px, 4vw, 40px); }
.tool__header, .section-heading, .result__header, .output-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tool__header { margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: #075985; font-size: .76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 10px; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.08; letter-spacing: -.035em; }
.lead { max-width: 720px; margin-bottom: 0; color: #626578; line-height: 1.6; }
.privacy, .mode-label { flex: none; padding: 7px 10px; border-radius: 999px; color: #075985; background: #e0f2fe; font-size: .78rem; font-weight: 800; }
.surface, .result { margin-bottom: 18px; padding: clamp(18px, 3vw, 28px); border: 1px solid #dddde5; border-radius: 18px; background: #fff; }
.section-heading { margin-bottom: 18px; }
.section-heading > div:first-child, .result__header > div { display: flex; align-items: center; gap: 10px; }
.section-heading h3, .result__header h3 { margin: 0; font-size: 1.18rem; }
.step, .status-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #0369a1; font-weight: 850; }
.status-mark { background: #157f5b; }
label > span { display: block; margin-bottom: 7px; font-weight: 780; }
textarea { display: block; width: 100%; min-height: 260px; padding: 14px; resize: vertical; overflow: auto; border: 1px solid #b9bdc9; border-radius: 11px; color: #202338; background: #fff; font: 500 .9rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
textarea[readonly] { background: #f7f8fb; }
select { min-height: 44px; padding: 8px 36px 8px 12px; border: 1px solid #b9bdc9; border-radius: 10px; color: inherit; background: #fff; }
.hint, .result-note { margin: 10px 0 0; color: #676a79; line-height: 1.55; }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.option-grid > div { min-width: 0; }
.notices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.notice { margin: 0; padding: 12px 14px; border-left: 3px solid #0284c7; color: #484960; background: #f0f9ff; line-height: 1.5; }
.actions, .compact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions { margin-top: 18px; }
button, .file-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid #0369a1; border-radius: 10px; color: #fff; background: #0369a1; cursor: pointer; font-weight: 800; text-decoration: none; }
button:hover, .file-button:hover { background: #075985; }
button.secondary, button.ghost { color: #075985; background: #fff; }
button.secondary:hover, button.ghost:hover { background: #f0f9ff; }
button.ghost { border-color: #c7cad4; color: #55596c; }
button.compact, .file-button { min-height: 38px; padding: 7px 12px; font-size: .86rem; }
.file-button span { margin: 0; }
.file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button:focus-visible, select:focus-visible, textarea:focus-visible, .file-button:focus-within { outline: 3px solid rgb(2 132 199 / 28%); outline-offset: 2px; }
.error { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid #b42318; color: #7a271a; background: #fff3f2; line-height: 1.5; overflow-wrap: anywhere; }
.result__header { align-items: center; margin-bottom: 18px; }
.result__header .eyebrow { margin-bottom: 3px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.metrics > div { min-width: 0; padding: 13px; border: 1px solid #e5e5eb; border-radius: 12px; background: #fafafd; }
dt { color: #686b7b; font-size: .78rem; line-height: 1.35; }
dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 850; }
.output-heading { align-items: end; margin-bottom: 10px; }
.output-heading label span { margin: 0; }
.copy-status { min-height: 1.35em; margin: 8px 0 0; color: #376353; font-size: .86rem; }
@media (max-width: 720px) {
  .option-grid { grid-template-columns: 1fr; }
  .tool__header, .section-heading, .result__header, .output-heading { display: grid; }
  .privacy, .mode-label { justify-self: start; }
  .notices, .metrics { grid-template-columns: 1fr 1fr; }
  .compact-actions { width: 100%; }
  .actions button { flex: 1 1 150px; }
}
@media (max-width: 460px) {
  .notices, .metrics { grid-template-columns: 1fr; }
  .actions button, .compact-actions button, .file-button { width: 100%; }
  textarea { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
