:root {
  color-scheme: light;
  --ink: #121216;
  --muted: #6c6c74;
  --line: #e8e8ed;
  --blue: #0075d6;
  --surface: #f5f5f7;
  --pill: 62.4375rem;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #c9b99f;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; padding: 1.5rem; background: linear-gradient(125deg, #c3b296, #dfd5c2 50%, #b5a287); }
button, input, select, textarea { font: inherit; }
button, select, input[type='checkbox'], input[type='radio'], summary { cursor: pointer; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
:focus-visible { outline: 0.1875rem solid var(--blue); outline-offset: 0.3125rem; }
::selection { background: #cdeaff; color: var(--ink); }
.canvas { min-height: calc(100svh - 3rem); padding: 1.5rem 0 1.75rem; background: white; border-radius: 2.125rem; box-shadow: 0 1.25rem 4.375rem #3225121a; }
.page-width { width: min(76.25rem, calc(100% - 7rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 0.0625rem; height: 0.0625rem; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { display: flex; align-items: center; gap: 1.5rem; width: fit-content; max-width: calc(100% - 3rem); margin-inline: auto; padding: 0.4375rem 0.5rem 0.4375rem 1.375rem; color: white; background: #08080c; border: 0.0625rem solid #2b2b32; border-radius: var(--pill); box-shadow: 0 0.1875rem 0.5rem #0000001c, inset 0 0.0625rem 0.0625rem #ffffff35; }
.wordmark { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.06875rem; text-decoration: none; }
.wordmark span { color: #00a0ff; }
.preset-navigation { display: flex; gap: 0.25rem; min-width: 0; margin: 0; padding: 0.25rem; border: 0; border-radius: var(--pill); background: #28282f; box-shadow: inset 0 0.0625rem 0.1875rem #0007, 0 0.0625rem 0 #ffffff14; }
.preset-option { position: relative; cursor: pointer; }
.preset-option input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; }
.preset-option span { display: block; padding: 0.625rem 1.1875rem; border: 0.0625rem solid transparent; border-radius: var(--pill); color: #dddde3; font-size: 0.875rem; transition: background .18s, box-shadow .18s, color .18s; }
.preset-option:hover span { color: white; background: #ffffff12; }
.preset-option input:checked + span { color: white; background: #55555e; border-color: #ffffff13; box-shadow: inset 0 0.0625rem 0.125rem #ffffff36, 0 0.125rem 0.3125rem #0005; }
.preset-option input:focus-visible + span { outline: 0.1875rem solid #7fcfff; outline-offset: 0.1875rem; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-block: 4.5rem 2.8125rem; }
h1 { margin: 0; font-size: clamp(2rem, 3.1vw, 2.875rem); line-height: 1.13; letter-spacing: -.055em; font-weight: 400; }
#headline-period { color: var(--blue); }
.intro-copy { margin: 0 0 0.1875rem; font-size: 1rem; line-height: 1.6; letter-spacing: -0.01875rem; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 5rem; align-items: start; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; min-height: 1.75rem; margin: 0 0.625rem 0.875rem; }
h2 { display: flex; align-items: center; gap: 0.625rem; margin: 0; font-size: 0.875rem; font-weight: 400; letter-spacing: -0.0125rem; }
.step { display: inline-grid; place-items: center; width: 1.5625rem; height: 1.5625rem; border-radius: 50%; background: #e8f5ff; color: #0072c7; font-size: 0.6875rem; }
.file-tag, .live-label { color: var(--muted); font-size: 0.6875rem; }
.file-tag { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.live-label, .local-note { display: flex; align-items: center; gap: 0.4375rem; }
.live-label i, .local-note i { width: 0.3125rem; height: 0.3125rem; border-radius: 50%; background: #009dff; }
.button { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 0.5rem; min-height: 2.75rem; padding: 0.625rem 0.875rem; border: 0.0625rem solid transparent; border-radius: 0.75rem; background: transparent; color: inherit; font-size: 0.8125rem; line-height: 1.3; transition: background .15s, border-color .15s, color .15s; }
.button-icon { flex: none; width: 1.125rem; height: 1.125rem; }
.button--primary {
  gap: 1.0625rem;
  min-height: 2.9375rem;
  max-width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 1.3125rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--blue);
  color: white;
  font-size: 0.875rem;
  font-weight: 400;
  box-shadow: inset 0 0.0625rem 0.0625rem #ffffff38, 0 0.25rem 0.625rem #0075d61a;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.button--primary .button-icon { width: 1.625rem; height: 1.625rem; padding: 0.3125rem; border-radius: 50%; background: #ffffff24; }
.button--primary:hover:not(:disabled) {
  background: #006ac2;
  box-shadow: inset 0 0.0625rem 0.0625rem #ffffff38, 0 0.375rem 0.9375rem #0075d630;
  transform: translateY(-0.0625rem);
}
.button--primary:active:not(:disabled) {
  transform: translateY(0.0625rem);
  box-shadow: inset 0 0.125rem 0.25rem #0000001a;
}
.button--text { min-height: 2rem; padding: 0.375rem 0; border-radius: 0.375rem; color: var(--muted); font-size: 0.6875rem; }
.button--text:hover:not(:disabled) { color: var(--blue); }
.button--text:active:not(:disabled) { color: #005ea8; }
.button--text > span { font-size: 1rem; line-height: 1; }
.status { min-height: 1.25rem; margin: 1.125rem 0.5rem 0; color: #236a50; font-size: 0.75rem; line-height: 1.6; }
.status.error { color: #ac332c; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 2.625rem; color: var(--muted); font-size: 0.6875rem; }
.language-navigation { display: flex; gap: 0.375rem; margin: 0; padding: 0; border: 0; }
.language-option { position: relative; cursor: pointer; }
.language-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
.language-option span { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding-inline: 0.4375rem; border-radius: var(--pill); background: #e8f5ff; color: #0072c7; font-size: 0.6875rem; transition: background .18s; }
.language-option:hover span { background: #cce8ff; color: #005ea8; }
.language-option input:checked + span { background: var(--blue); color: white; }
.language-option input:focus-visible + span { outline: 0.1875rem solid var(--blue); outline-offset: 0.1875rem; }
.version { font: 0.625rem ui-monospace, SFMono-Regular, Consolas, monospace; }

@media (min-width: 100rem) {
  .canvas { padding-block: 2rem; }
  .page-width { width: min(87.5rem, calc(100% - 9rem)); }
  .intro { padding-block: 5.375rem 3.25rem; }
  .workspace { gap: 6rem; }
}

@media (max-width: 65.625rem) {
  body { padding: 1rem; }
  .canvas { min-height: calc(100svh - 2rem); border-radius: 1.75rem; }
  .page-width { width: calc(100% - 4rem); }
  .workspace { gap: 2.75rem; }
}

@media (max-width: 43.75rem) {
  body { padding: 0.5rem; }
  .canvas { min-height: calc(100svh - 1rem); padding-top: 1rem; border-radius: 1.5rem; }
  .page-width { width: calc(100% - 2.25rem); }
  .site-header { max-width: calc(100% - 1.5rem); gap: 0.5625rem; padding: 0.375rem 0.4375rem 0.375rem 0.9375rem; }
  .wordmark { font-size: 1.125rem; }
  .preset-navigation { gap: 0; padding: 0.1875rem; }
  .preset-option span { padding: 0.625rem 0.8125rem; font-size: 0.75rem; }
  .intro { display: block; padding-block: 2.625rem 2rem; }
  h1 { font-size: clamp(1.875rem, 7.2vw, 2.625rem); }
  .intro-copy { margin: 1.125rem 0 0; font-size: 0.875rem; }
  .intro-copy br { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .panel-heading { margin-inline: 0.25rem; }
  .site-footer { flex-wrap: wrap; gap: 1.25rem 0.625rem; margin-top: 1.875rem; font-size: 0.625rem; }
  .version { width: 100%; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
