:root {
  color-scheme: light;
  --ink: #19263d;
  --muted: #526078;
  --line: #dce3ee;
  --blue: #224bb7;
  --blue-dark: #194097;
  --page: #f1f4f9;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { max-width: 1130px; width: calc(100% - 64px); margin-inline: auto; }
.masthead { background: var(--ink); color: white; overflow: hidden; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 62px; border-bottom: 1px solid #aebcdb42; }
.nav a { color: #e7edf9; font-size: .92rem; text-underline-offset: 4px; }
.nav .brand { display: inline-flex; gap: 9px; align-items: center; text-decoration: none; font-size: 1.09rem; font-weight: 730; color: white; }
.brand-mark { display: inline-block; width: 17px; height: 17px; border: 2px solid #ffbe96; border-radius: 3px; transform: rotate(-12deg); box-shadow: inset 0 0 0 3px #19263d; background: #ffbe96; }
.hero { position: relative; isolation: isolate; padding: 42px 0 54px; }
.hero::after { content: ''; position: absolute; z-index: -1; width: 400px; height: 200px; right: 0; top: 19px; background: repeating-linear-gradient(139deg, #b7c7f635 0, #b7c7f635 1px, transparent 1px, transparent 24px); mask-image: linear-gradient(90deg, transparent, #000 58%, transparent); }
h1, h2, p, ul, dl, dd { margin: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 4.9rem); letter-spacing: -.073em; font-weight: 790; line-height: .97; }
.hero p { margin-top: 19px; color: #d8e1f1; font-size: 1.05rem; max-width: 450px; }
.content { padding-top: 20px; }
.modes { margin-bottom: 15px; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #dae1ee; border-radius: 10px; background: #e7ecf6; }
button, input, textarea { font: inherit; }
button { cursor: pointer; min-height: 42px; border-radius: 8px; padding: 8px 14px; border: 1px solid transparent; font-size: .92rem; font-weight: 680; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #5178df; outline-offset: 3px; }
.mode { color: var(--muted); background: transparent; }
.mode[aria-pressed="true"] { color: var(--ink); background: white; border-color: #dce3ee; box-shadow: 0 1px 3px #19263d11; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 5px 18px #19263d08; }
.panel.result { min-height: 185px; }
h2 { font-size: 1.26rem; line-height: 1.3; letter-spacing: -.027em; }
form { margin-top: 16px; }
label, summary { font-size: .91rem; font-weight: 690; }
label { display: block; }
label span { color: var(--muted); font: .77rem ui-monospace, monospace; margin-left: 3px; }
input, textarea { display: block; border: 1px solid #cbd6e7; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-width: 0; margin-top: 5px; padding: 9px 11px; }
textarea { resize: vertical; min-height: 96px; font: .93rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
input::placeholder, textarea::placeholder { color: #65748b; opacity: 1; }
.hint { color: var(--muted); font-size: .9rem; margin-top: 7px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 15px; }
.wide { grid-column: 1 / -1; }
details { margin-top: 12px; border-radius: 8px; border: 1px solid var(--line); background: #f7f9fd; padding: 8px 10px; }
summary { min-height: 28px; cursor: pointer; color: #344765; }
details .fields { margin: 8px 0 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { border-color: #cfd9ed; background: white; color: var(--blue-dark); }
.quiet { color: var(--blue-dark); background: #edf2fe; }
.secondary:hover, .quiet:hover { background: #e4ecff; }
.output-actions { margin-top: 12px; }
.result-list, .findings { padding: 0; list-style: none; }
.result-list:not(:empty), .findings:not(:empty), .audit-values:not(:empty) { margin-top: 13px; }
.result-list { max-height: 445px; overflow: auto; padding-right: 4px; scroll-padding: 4px; }
.result-list li, .findings li { border: 1px solid var(--line); background: #f6f8fc; border-radius: 8px; padding: 10px 12px; margin-bottom: 7px; }
.result-list li:last-child, .findings li:last-child { margin-bottom: 0; }
.result-list header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: 8px; }
.result-list strong { font-size: .86rem; }
.result-list code { display: block; margin-top: 4px; font-size: .85rem; overflow-wrap: anywhere; color: #223f79; user-select: all; }
.result-list .copy { font-size: .83rem; min-height: 32px; padding: 4px 8px; }
.result-list .issue, .findings li { background: #fff3e9; border-color: #f6d8c4; color: #763a22; overflow-wrap: anywhere; }
.issue p { margin-top: 3px; font-size: .9rem; }
.result-list small, .output-note { color: var(--muted); font-size: .84rem; }
.output-note { margin-top: 12px; }
.audit-values div { border-top: 1px solid var(--line); padding: 7px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; overflow-wrap: anywhere; }
.audit-values dt { font-family: ui-monospace, monospace; color: #334b75; }
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 0 23px; }
.guide p { color: var(--muted); margin: 6px 0; max-width: 43ch; }
.guide a, .footer a { color: var(--blue-dark); text-underline-offset: 3px; }
.definitions { display: grid; gap: 7px; color: var(--muted); }
.definitions dt { color: var(--ink); font-weight: 700; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--line); padding: 16px 0 22px; color: var(--muted); font-size: .88rem; }
@media (max-width: 790px) {
  .shell { width: calc(100% - 36px); }
  .panel { padding: 16px; }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 28px); }
  .hero { padding: 32px 0 37px; }
  .hero::after { opacity: .4; right: -190px; }
  .workspace, .guide { grid-template-columns: 1fr; }
  .guide { gap: 15px; }
}
@media (max-width: 360px) { .fields { grid-template-columns: 1fr; } }
