:root {
  color-scheme: light;
  --ink: #15233b;
  --subtle: #475771;
  --rule: #d3dce9;
  --white: #fff;
  --back: #f0f4fa;
  --navy: #142036;
  --blue: #204ba2;
  --blue-deep: #153878;
  --blue-soft: #e7eefc;
  --orange: #ffc17e;
  --error: #a12e25;
  --warning: #815311;
  --green: #17614f;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.2rem; }
body { margin: 0; color: var(--ink); background: var(--back); font-size: 1rem; line-height: 1.55; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.037em; }
button, input, textarea { font: inherit; }
button, label:has(input[type="file"]), label:has(input[type="radio"]) { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible, label:has(input:focus-visible) { outline: 3px solid #467fcc; outline-offset: 3px; }
.shell { width: min(73rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: -10rem; left: 1rem; z-index: 3; padding: .55rem .7rem; background: var(--white); }
.skip:focus { top: .6rem; }
.header { background: var(--navy); color: #edf2fc; border-bottom: 1px solid #45516a; }
.masthead { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; white-space: nowrap; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.brand-symbol { display: grid; gap: 3px; width: 1.9rem; padding: .39rem .37rem; background: var(--orange); border-radius: .45rem; }
.brand-symbol i { display: block; height: 2px; background: var(--navy); border-radius: 999px; }
.brand-symbol i:nth-child(2) { width: 70%; }
.brand-symbol i:nth-child(3) { width: 88%; }
nav { display: flex; gap: clamp(.85rem, 3vw, 2rem); }
nav a { color: #d8e1f3; text-decoration: none; font-size: .9rem; white-space: nowrap; }
nav a:hover { text-decoration: underline; }
.hero { background: var(--navy); color: #f8faff; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.2rem 3rem; padding: 2.95rem 0 3.1rem; }
h1 { font-size: clamp(2.45rem, 6.2vw, 4.9rem); letter-spacing: -.063em; max-width: 54rem; font-weight: 790; }
.hero-copy p { color: #d9e2f4; font-size: 1.08rem; max-width: 39rem; margin-top: 1rem; }
.privacy { width: min(15.25rem, 100%); display: flex; align-items: flex-start; gap: .7rem; background: #243653; border: 1px solid #516582; padding: .85rem; border-radius: .75rem; color: #e8effd; }
.privacy-mark { background: var(--orange); color: var(--ink); display: grid; place-items: center; flex: 0 0 1.55rem; height: 1.55rem; border-radius: 50%; font-weight: 800; }
.privacy p { margin-top: .16rem; color: #ccd9ee; font-size: .88rem; }
.workspace { padding: 1.2rem 0 2.7rem; }
.noscript, .feedback:not(:empty) { padding: .65rem .8rem; border-radius: .5rem; background: var(--blue-soft); margin-bottom: 1rem; }
.toolbar, .panel { background: var(--white); border: 1px solid var(--rule); border-radius: .85rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1.5rem; padding: 1rem; margin-bottom: 1rem; }
.store-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.store-picker legend, .locale-editor label { font-weight: 750; font-size: .85rem; padding: 0; margin-bottom: .38rem; }
.store-options { display: flex; flex-wrap: wrap; gap: .25rem; background: #edf2f9; border-radius: .5rem; padding: .25rem; }
.store-options label { position: relative; }
.store-options input, .file-control input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; }
.store-options span { display: block; padding: .38rem .65rem; color: var(--subtle); font-weight: 720; line-height: 1.3; font-size: .91rem; border-radius: .32rem; }
.store-options input:checked + span { color: #fff; background: var(--navy); }
.options { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; align-items: center; min-height: 2.35rem; }
.options label { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 630; cursor: pointer; }
.options input { accent-color: var(--blue); height: 1.02rem; width: 1.02rem; margin: 0; }
.file-tools { margin-left: auto; display: flex; gap: .45rem; flex-wrap: wrap; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 2.32rem; padding: .45rem .72rem; border: 1px solid transparent; border-radius: .45rem; font-weight: 740; font-size: .875rem; line-height: 1.32; white-space: nowrap; }
.ghost { color: var(--ink); background: var(--white); border-color: #aebed5; }
.ghost:hover:not(:disabled) { background: #f0f4fb; }
.light { background: var(--blue-soft); color: var(--blue-deep); border-color: #d8e4fb; }
.light:hover:not(:disabled) { background: #d9e6ff; }
.strong { color: var(--white); background: var(--blue); border-color: var(--blue); }
.strong:hover { background: var(--blue-deep); }
.file-control input { cursor: pointer; }
.working-area { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(17rem, 1fr); align-items: start; gap: 1rem; }
.panel { min-width: 0; padding: clamp(1rem, 2.2vw, 1.4rem); }
.editor-head, .review-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.editor-head p, .review-head p { color: var(--subtle); font-size: .9rem; margin-top: .25rem; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
h3 { font-size: 1.12rem; }
.locale-editor { display: grid; grid-template-columns: minmax(0, 12rem) 1fr; align-items: center; justify-items: start; gap: .3rem .6rem; margin-top: 1rem; }
.locale-editor label { grid-column: 1 / -1; margin-bottom: 0; }
.locale-editor input, .field textarea { width: 100%; border: 1px solid #b3c1d6; color: var(--ink); border-radius: .47rem; background: #fcfdff; }
.locale-editor input { padding: .38rem .55rem; }
.remove { color: #8b443a; }
.help { margin: .9rem 0 1.05rem; padding: .6rem .8rem; border-left: 3px solid #e6a45e; background: #fff5e9; color: #593b27; border-radius: .2rem .42rem .42rem .2rem; font-size: .9rem; }
.help a, .reference a { color: var(--blue-deep); font-weight: 700; text-underline-offset: .15em; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field { grid-column: 1 / -1; min-width: 0; }
.field.compact { grid-column: auto; }
.fields.play .field.compact { grid-column: 1 / -1; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem .45rem; flex-wrap: wrap; margin-bottom: .25rem; }
.field-head label { font-weight: 760; }
.count { color: var(--subtle); font: .83rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.count.error { color: var(--error); font-weight: 750; }
.field textarea { display: block; padding: .55rem .6rem; resize: vertical; line-height: 1.45; min-height: 2.5rem; }
.field textarea[aria-invalid="true"] { border-color: #c26a60; }
.field-detail { color: var(--subtle); margin-top: .25rem; font-size: .85rem; }
.field-detail:empty { display: none; }
.locale-list { list-style: none; padding: 0; margin: .55rem 0 1rem; display: grid; gap: .32rem; max-height: 16rem; overflow-y: auto; }
.locale-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; align-items: center; width: 100%; text-align: left; padding: .45rem .6rem; border: 1px solid var(--rule); border-radius: .4rem; background: #f9fbff; color: var(--ink); font-size: .9rem; }
.locale-list button[aria-current="true"] { background: #edf3ff; border-color: #86a3de; font-weight: 750; }
.locale-list button:hover { background: var(--blue-soft); }
.locale-list .locale-name, #active-label { overflow-wrap: anywhere; }
.locale-status { font-weight: 720; color: var(--subtle); font-size: .8rem; }
.locale-status.error { color: var(--error); }
.locale-status.warning { color: var(--warning); }
.locale-status.ok { color: var(--green); }
.summary { border-top: 1px solid var(--rule); padding-top: .85rem; }
.summary > p, .supporting { margin-top: .35rem; color: var(--subtle); font-size: .875rem; }
.finding-list { display: grid; gap: .45rem; list-style: none; padding: 0; margin: .55rem 0; }
.finding-list li { border-left: 3px solid #d4a660; padding-left: .6rem; font-size: .9rem; color: #60400d; }
.finding-list li.error { border-left-color: #d1776e; color: #782c26; }
.finding-list a { display: block; font-weight: 750; color: inherit; text-underline-offset: .15em; }
.report-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .85rem; }
.feedback:not(:empty) { margin: 1rem 0 0; color: var(--blue-deep); }
.feedback:empty { height: 0; }
.reference { margin-top: 2.25rem; }
.reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: .9rem; }
.reference-grid > div { border-top: 1px solid #b6c8e3; padding-top: .8rem; }
.reference p { margin-top: .42rem; color: var(--subtle); font-size: .93rem; }
.reference ul { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .9rem; }
.reference li { margin-top: .27rem; }
.footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: 1.05rem 0; color: var(--subtle); font-size: .88rem; }
.footer a { color: var(--ink); font-weight: 850; }
@media (max-width: 58rem) {
  .file-tools { margin-left: 0; }
}
@media (max-width: 46rem) {
  .hero-inner, .working-area { grid-template-columns: 1fr; }
  .hero-inner { padding: 2.15rem 0; }
  .privacy { width: auto; justify-self: start; }
  .reference-grid { grid-template-columns: 1fr; }
}
@media (max-width: 33rem) {
  .shell { width: calc(100% - 1.5rem); }
  .masthead { min-height: 3.65rem; }
  nav a:first-child { display: none; }
  .hero-copy p { font-size: 1rem; }
  .fields { grid-template-columns: 1fr; }
  .file-tools { width: 100%; }
  .footer-inner { flex-wrap: wrap; }
}
