:root {
  color-scheme: light;
  --page: #f5f7f6;
  --paper: #fff;
  --ink: #183a34;
  --muted: #5b6c66;
  --green: #17644f;
  --line: #dce4df;
  --error: #ad3030;
  --error-bg: #fff3f1;
  --warning: #805411;
  --warning-bg: #fff9ec;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
button:disabled { opacity: .55; cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
button { cursor: pointer; }
button, a, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #247864; }
textarea:focus-visible { outline-offset: -3px; }
::selection { background: #d2eadf; color: #143d31; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus-visible { position: static; display: block; width: fit-content; max-width: 91vw; height: auto; margin: calc(12px + env(safe-area-inset-top, 0px)) 4.5vw 0; padding: 12px; overflow: visible; clip-path: none; white-space: normal; background: var(--paper); }
.site-header { min-height: 100px; margin: 0 4.5vw; padding: calc(19px + env(safe-area-inset-top, 0px)) 0 19px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 23px; font-weight: 750; letter-spacing: -.6px; }
.brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; color: #e5f5bc; background: var(--ink); font: 700 23px var(--mono); letter-spacing: -4px; padding-right: 4px; }
.brand-note { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0; font-weight: 450; color: var(--muted); }
.local-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
main { padding: 45px 4.5vw 0; }
.intro { position: relative; margin-bottom: 32px; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.6px; color: var(--green); margin: 0 0 15px; }
h1 { margin: 0 0 16px; font-size: clamp(36px, 4.2vw, 64px); letter-spacing: -2.5px; line-height: 1.05; font-weight: 720; }
h1 > span:not(.sr-only) { color: var(--green); }
.title-dot { color: #718f29; }
.intro-text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 66ch; }
.steps { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps span { display: grid; place-items: center; width: 22px; height: 22px; background: #e6ede8; border-radius: 50%; color: #355c4e; font-size: 10px; font-weight: 750; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 18px #203f3004; min-width: 0; overflow: hidden; }
.panel-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; gap: 12px; }
.panel-heading > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-step { color: #74847b; font: 11px var(--mono); }
h2 { margin: 0; font-size: 16px; font-weight: 680; letter-spacing: -.4px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 11px 17px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 650; line-height: 1.4; text-decoration: none; transition: background-color 140ms, border-color 140ms; }
.button-primary { color: white; background: var(--green); box-shadow: 0 2px 2px #134f4315; }
.button-primary > span { font-size: 18px; line-height: 1; }
.button-primary kbd { margin-left: 9px; background: #ffffff1a; color: #ecf8f0; border: 1px solid #ffffff42; padding: 2px 5px; font-size: 10px; }
.button-quiet { color: var(--muted); background: transparent; padding: 9px 0 9px 8px; font-size: 12px; font-weight: 500; text-align: right; }
.button-quiet span { color: var(--green); font-size: 16px; }
.editor-heading { flex-wrap: wrap; }
.editor-heading .example-actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }
.language-control { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px 20px; border-top: 1px solid var(--line); }
.language-control label { color: var(--muted); font-size: 12px; }
.language-control select { flex: 1 1 200px; min-width: 0; max-width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.button-secondary { background: #f1f6f3; color: var(--green); border-color: #d5e3da; }
.button:active:not(:disabled) { background: #dae8df; color: var(--ink); }
.button-primary:active:not(:disabled) { background: #104c3d; color: white; }
.editor-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 20px; border-block: 1px solid var(--line); color: #5a6d62; background: #fafcfb; font: 10px var(--mono); }
.code-editor { display: flex; position: relative; height: 420px; height: clamp(360px, 49dvh, 560px); background: #fcfdfc; --code-line: 28px; }
.line-gutter { overflow: hidden; width: 54px; flex: 0 0 54px; border-right: 1px solid #e8ede8; background: #f6f9f6; }
#line-numbers { padding: 16px 0; }
.line-number { height: var(--code-line); line-height: var(--code-line); text-align: right; padding-right: 14px; position: relative; font: 12px/var(--code-line) var(--mono); color: #7a8b80; }
.line-number.error { background: #fae3df; color: #9b3432; }
.line-number.warning { background: #fcf0d9; color: #7e5315; }
.line-number.error::after, .line-number.warning::after { content: ""; position: absolute; right: 4px; top: 12px; height: 5px; width: 5px; border-radius: 50%; background: currentColor; }
#code { display: block; resize: none; margin: 0; padding: 16px; flex: 1 1 0%; min-width: 0; width: 100%; height: 100%; border: 0; border-radius: 0; color: #24483a; background: transparent; font: 16px/var(--code-line) var(--mono); white-space: pre; overflow: auto; tab-size: 2; overscroll-behavior: contain; }
#code::placeholder { color: #8a998f; opacity: 1; }
.editor-help { border-top: 1px solid var(--line); padding: 11px 18px; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
kbd { font: 10px var(--mono); background: #edf2ee; border: 1px solid #dce5de; border-radius: 4px; padding: 1px 4px; white-space: nowrap; }
.editor-actions { padding: 17px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.storage-status { margin: 0; max-width: 27ch; color: var(--muted); font-size: 11px; line-height: 1.6; }
.count-badge { display: grid; place-items: center; padding: 3px 8px; min-width: 24px; border-radius: 6px; background: #edf3ef; color: #476555; font: 11px var(--mono); }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 0 22px 16px; }
.report-actions p { flex: 1 1 180px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.report-dialog { position: fixed; inset: 0; z-index: 10; width: min(760px, calc(100% - 32px)); height: fit-content; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 22px; overflow: auto; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--paper); }
.report-dialog::backdrop { background: #183a3440; }
.report-dialog h2 { font-size: 20px; }
.report-dialog p { margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
#report-text { display: block; width: 100%; min-height: 160px; max-height: 45vh; max-height: 45dvh; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fcfdfc; font: 16px/1.6 var(--mono); }
.report-dialog .button { display: block; margin: 16px 0 0 auto; }
.results-summary { padding: 12px 22px; border-block: 1px solid var(--line); color: var(--muted); font-size: 11px; min-height: 39px; background: #fafcfb; }
.severity-legend { margin: 0; padding: 0 22px 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.problem-list { margin: 0; padding: 0 20px; list-style: none; min-height: clamp(360px, 49dvh, 560px); max-height: calc(clamp(360px, 49dvh, 560px) + 47px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.problem { padding: 19px 0; border-bottom: 1px solid var(--line); }
.problem:last-child { border-bottom: 0; }
.severity { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 5px; font-size: 11px; font-weight: 650; color: var(--error); background: var(--error-bg); }
.severity::before { content: "!"; display: grid; place-items: center; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; }
.warning .severity { color: var(--warning); background: var(--warning-bg); }
.problem-jump { display: block; width: 100%; padding: 12px 0 0; margin: 0; text-align: left; background: transparent; border: 0; color: var(--ink); font-size: 14px; line-height: 1.65; font-weight: 650; overflow-wrap: anywhere; }
.problem-location { display: block; margin-bottom: 3px; color: var(--muted); font: 10px/1.6 var(--mono); font-weight: 450; }
.problem p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
code { font-family: var(--mono); font-size: .95em; border-radius: 4px; padding: 1px 3px; background: #edf2ef; color: #235745; overflow-wrap: anywhere; }
.fix-button { margin-top: 11px; padding: 7px 12px; min-height: 40px; font-size: 12px; border: 1px solid #cbded2; color: var(--green); background: #f1f7f3; }
.original-message { font: 10px/1.7 var(--mono) !important; color: #68756f; }
.results-footnote { margin: 0; padding: 15px 22px; min-height: 69px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.7; }
.empty-state { min-height: inherit; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 38px 14px; text-align: center; }
.empty-mark { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 23px; border-radius: 18px; color: #5d7c62; background: #f0f5ef; border: 1px solid #e0e9de; font: 25px var(--mono); }
.empty-state h3 { margin: 0 0 9px; font-size: 19px; font-weight: 620; letter-spacing: -.6px; }
.empty-state p { max-width: 34ch; color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.empty-footnote { margin-top: 28px; color: #69796d; font-size: 10px; line-height: 1.7; }
.success-state .empty-mark { background: #edf6dd; color: #48752a; border-color: #dce8c9; }
.success-state p { max-width: 40ch; }
.success-note { color: var(--green); font-size: 11px; line-height: 1.7; padding: 16px 0; margin: 0; }
.console-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr); gap: 40px; padding: 30px; margin-top: 26px; }
.console-intro { padding: 6px 0; }
.console-intro .eyebrow { margin-bottom: 13px; }
.console-intro h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.9px; max-width: 18ch; }
.console-intro > p:last-child { max-width: 40ch; font-size: 12px; line-height: 1.85; margin: 14px 0 0; color: var(--muted); }
.console-form { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 10px; }
.console-form label { font-size: 12px; font-weight: 650; }
#console-error { width: 100%; max-width: 100%; resize: vertical; min-height: 96px; max-height: 420px; border: 1px solid #d6e1d9; border-radius: 9px; padding: 12px; font: 16px/1.65 var(--mono); color: #2c4c3a; background: #fcfdfc; }
#console-error::placeholder { color: #819086; font-size: 12px; }
.console-form .button { justify-self: end; }
.console-result { width: 100%; border-left: 3px solid #80a377; background: #f4f8f2; padding: 14px 16px; border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.console-result h3 { font-size: 14px; line-height: 1.65; margin: 0; }
.console-result p { color: var(--muted); font-size: 12px; line-height: 1.85; margin: 6px 0 0; }
.console-result .original-message { white-space: pre-wrap; }
.notice { padding: 20px; background: var(--warning-bg); color: var(--warning); }
.site-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 25px 4.5vw calc(26px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 10px; line-height: 1.8; }
.site-footer p { margin: 0; max-width: 57ch; }
.site-footer a { text-decoration: none; text-align: right; }
.site-footer a span { margin-left: 4px; }
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover:not(:disabled) { background: #104e3c; }
  .button-secondary:hover:not(:disabled), .fix-button:hover:not(:disabled) { background: #e2efe5; border-color: #abc7b3; }
  .button-quiet:hover, .problem-jump:hover:not(:disabled), .site-footer a:hover { color: #126749; text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 1600px) {
  .workspace { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
  .intro-text { font-size: 18px; }
  .panel-heading { padding-inline: 25px; }
  .problem-list { padding-inline: 25px; }
  .problem p, .console-intro > p:last-child { font-size: 14px; }
  .problem-jump { font-size: 16px; }
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .problem-list { max-height: 620px; min-height: 280px; }
  .console-panel { gap: 24px; grid-template-columns: minmax(0, 1fr); }
  .console-intro h2 { max-width: none; }
  .console-intro > p:last-child { max-width: 70ch; }
  .results-footnote { min-height: 0; }
  .site-footer { flex-direction: column; gap: 10px; }
  .site-footer a { text-align: left; }
}
@media (max-width: 520px) {
  .site-header { min-height: 84px; }
  .brand { font-size: 20px; gap: 10px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 21px; }
  .brand-note { font-size: 10px; }
  .local-badge { font-size: 0; gap: 0; }
  .local-badge .status-dot { width: 8px; height: 8px; }
  main { padding-top: 29px; }
  h1 { max-width: 13ch; font-size: 43px; line-height: 1.08; letter-spacing: -1.8px; }
  .intro-text { font-size: 14px; line-height: 1.7; }
  .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .steps { column-gap: 13px; row-gap: 10px; font-size: 10px; margin-top: 20px; }
  .steps li { gap: 5px; }
  .steps span { width: 18px; height: 18px; font-size: 9px; }
  .intro { margin-bottom: 25px; }
  .panel-heading { padding: 13px 15px; min-height: 65px; gap: 6px; }
  h2 { font-size: 15px; }
  .panel-heading > div { gap: 7px; }
  .editor-heading { display: grid; grid-template-columns: minmax(0, 1fr); }
  .editor-heading .example-actions { margin-left: 0; justify-content: flex-start; }
  .editor-heading .button-quiet { padding-left: 0; text-align: left; }
  .language-control { padding-inline: 14px; }
  .panel-step { font-size: 9px; }
  .button-quiet { font-size: 11px; gap: 4px; }
  .editor-meta { padding: 11px 14px; font-size: 10px; }
  .code-editor { height: 360px; }
  .line-gutter { width: 39px; flex-basis: 39px; }
  .line-number { font-size: 10px; padding-right: 11px; }
  #code { padding-inline: 11px; }
  .editor-help { padding: 10px 12px; font-size: 10px; gap: 7px; }
  .editor-help kbd { font-size: 10px; }
  .editor-actions { padding: 14px; gap: 8px; }
  .storage-status { font-size: 10px; max-width: 19ch; }
  .button-primary { padding: 11px 13px; gap: 8px; }
  .button-primary kbd { font-size: 8px; margin-left: 0; }
  .problem-list { padding-inline: 16px; }
  .results-summary { padding-inline: 16px; }
  .report-actions, .severity-legend { padding-inline: 16px; }
  .results-footnote { padding-inline: 16px; }
  .console-panel { padding: 23px 18px; gap: 21px; }
  .console-intro h2 { font-size: 25px; }
  .site-footer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
