:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #171926; background: #f8fafc; }
* { box-sizing: border-box; }
body { margin: 0; background: #f8fafc; }
button, textarea, input { font: inherit; }
[hidden] { display: none !important; }
.tool { width: min(100%, 1080px); margin: auto; padding: clamp(20px, 4vw, 40px); }
.tool__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: #6d28d9; font-size: .76rem; font-weight: 800; 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: #5d6472; line-height: 1.6; }
.privacy { flex: none; padding: 7px 10px; border-radius: 999px; color: #5b21b6; background: #ede9fe; font-size: .78rem; font-weight: 750; }
.form-card, .result { display: grid; gap: 20px; padding: clamp(18px, 3vw, 28px); border: 1px solid #d8dee8; border-radius: 18px; background: #fff; }
.input-field { display: grid; gap: 7px; min-width: 0; font-weight: 750; }
.input-field textarea, .input-field input { width: 100%; padding: 13px; border: 1px solid #9ba7b8; border-radius: 10px; color: inherit; background: #fff; }
.input-field textarea { min-height: 220px; resize: vertical; font: 500 .9rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.input-field input { font: 600 .94rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.input-field small, .boundary, .result-note { color: #646b78; font-weight: 400; line-height: 1.55; }
.boundary { margin: 0; }
.form-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; }
button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 10px; color: #fff; background: #6d28d9; cursor: pointer; font-weight: 800; }
button:hover { background: #5b21b6; }
button.secondary { border: 1px solid #b7a3da; color: #5b21b6; background: #fff; }
button.secondary:hover { background: #f5f3ff; }
button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid rgb(124 58 237 / 25%); outline-offset: 2px; }
.error { margin-top: 16px; padding: 14px 16px; border-left: 3px solid #b42318; color: #7a271a; background: #fff3f2; }
.result { margin-top: 18px; }
.result__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.result__header > div:first-child { display: flex; align-items: center; gap: 10px; }
.result__header h3 { margin: 0; font-size: 1.22rem; }
.step { display: grid; place-items: center; width: 30px; height: 30px; margin: 0; border-radius: 50%; color: #fff; background: #7c3aed; font-weight: 850; }
.output { color: #ede9fe !important; background: #171528 !important; border-color: #3b3157 !important; }
.copy-status { min-height: 1.4em; margin: -10px 0 0; color: #5b21b6; font-size: .88rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.metrics > div { min-width: 0; padding: 13px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
dt { color: #64748b; font-size: .78rem; } dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 800; }
.result-note { margin: 0; }
.pointer-list { display: grid; gap: 8px; max-height: 520px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.pointer-list button { display: grid; grid-template-columns: minmax(140px, 1fr) auto minmax(120px, 1fr); gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid #e2e8f0; color: #252936; background: #f8fafc; text-align: left; }
.pointer-list button:hover { border-color: #b7a3da; background: #f5f3ff; }
.pointer-list code, .pointer-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pointer-list code { color: #5b21b6; font-weight: 750; }
.pointer-list em { color: #64748b; font-size: .78rem; font-style: normal; }
@media (max-width: 700px) { .tool__header, .result__header { display: grid; } .privacy { justify-self: start; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pointer-list button { grid-template-columns: 1fr auto; } .pointer-list span { grid-column: 1 / -1; } }
@media (max-width: 440px) { .tool { padding-inline: 14px; } .metrics, .actions { grid-template-columns: 1fr; display: grid; } .actions button, .form-actions button { width: 100%; } .form-actions { display: grid; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
