/* Browser Pro Studio design tokens, adapted from the supplied redesign boards. */
.video-bank { max-width: 850px; margin: 2rem auto; padding: 2rem; }
.bank-fields { display: grid; gap: .75rem; margin: 2rem 0; }
.bank-fields label { font-weight: 700; }
.bank-fields select, .bank-fields textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: .5rem; padding: .7rem; background: var(--card); color: var(--ink); }
.bank-fields button, .bank-actions button, .bank-actions label { justify-self: start; }
.bank-idea { border-left: 4px solid var(--teal); padding: .75rem 1rem; background: var(--hover); }
.bank-list { padding-left: 1.5rem; }
.bank-list li { margin: .75rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: .5rem; }
.bank-list li span { display: block; margin-bottom: .6rem; white-space: pre-wrap; }
.bank-list li button { margin-right: .5rem; }
.bank-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.bank-note { color: var(--muted); }
:root {
  color-scheme: light;
  --surface: #f5f7fb;
  --card: #ffffff;
  --ink: #182235;
  --muted: #45536a;
  --line: #cbd3e1;
  --line-strong: #77859b;
  --brand: #0b2a55;
  --blue: #1d4ed8;
  --blue-dark: #1d4ed8;
  --accent: #1d4ed8;
  --teal: #0f766e;
  --hover: #e8eef8;
  --error: #b91c1c;
  --placeholder: #64748b;
  --panel-start: #e7effc;
  --on-action: #ffffff;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --surface: #131314;
  --card: #1f1f21;
  --ink: #f2f0f1;
  --muted: #c6c6cd;
  --line: #85868e;
  --line-strong: #85868e;
  --brand: #f2f0f1;
  --blue: #91baff;
  --blue-dark: #91baff;
  --accent: #91baff;
  --teal: #6fd6bc;
  --hover: #2a2a2b;
  --error: #fca5a5;
  --placeholder: #a6a6ae;
  --panel-start: #202c42;
  --on-action: #0b1830;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover,
.file-button:hover {
  background: var(--hover);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.primary {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--on-action);
}
.primary:hover {
  background: #173fb0;
  color: #fff;
}
html[data-theme="dark"] .primary:hover { background: #b5d0ff; color: #0b1830; }
header {
  max-width: 1280px;
  margin: auto;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
}
.brand {
  font-weight: 700;
  text-decoration: none;
}
.brand span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.5rem;
}
nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
nav a {
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem 0;
}
nav a[aria-current] {
  border-bottom: 2px solid var(--blue);
  color: var(--brand);
  font-weight: 700;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 2rem 3rem;
}
.intro {
  padding: 4rem 0 2.5rem;
  max-width: 850px;
}
.intro.compact {
  padding: 2.5rem 0 1.5rem;
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
  color: var(--brand);
}
h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin: 0.75rem 0 1.25rem;
}
h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.1rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
}
p {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.eyebrow {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.5rem;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(24,34,53,.06);
}
.card p {
  color: var(--muted);
}
.card .button {
  margin-top: 0.75rem;
}
.note {
  margin-top: 1.5rem;
  max-width: 850px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.draftbar {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.name-label {
  flex: 1;
  min-width: 200px;
}
#save-status {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.7rem 0;
}
.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.vertical {
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 1rem;
}
label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}
.file-button {
  position: relative;
  margin: 0;
  font-size: 1rem;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.file-button:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.wide {
  grid-column: 1/-1;
}
fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
  margin: 1rem 0;
}
legend {
  padding-right: 0.5rem;
  font-weight: 600;
}
.hint {
  font-size: 0.85rem;
  color: var(--muted);
}
.error,
#message.error {
  color: var(--error);
}
.success {
  color: var(--muted);
}
#message:empty {
  display: none;
}
#message {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.preview dl {
  margin: 0 0 1.5rem;
}
.preview dt {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.8rem;
}
.preview dd {
  margin: 0.2rem 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.preview-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 100px;
  padding: 1rem;
  background: var(--surface);
  border-radius: 0.5rem;
}
.preview h2:not(:first-child) {
  margin-top: 2rem;
}
.row-card {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}
.row-card .actions {
  margin-bottom: 1rem;
}
.row-card label:last-child {
  margin-bottom: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}
th,
td {
  padding: 0.6rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.help-sections {
  display: grid;
  gap: 1rem;
  max-width: 850px;
}
li {
  margin: 0.5rem 0;
}
footer {
  max-width: 1280px;
  margin: auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--surface);
  padding: 0.75rem;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}
dialog {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  max-width: 480px;
  padding: 1.5rem;
}
dialog::backdrop {
  background: #000b;
}
code {
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  header {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }
  h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 480px) {
  main,
  header,
  footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .card {
    padding: 1rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .intro {
    padding-top: 2rem;
  }
  footer {
    flex-direction: column;
  }
  .draftbar .actions {
    width: 100%;
  }
  .draftbar .actions > * {
    flex: 1;
  }
  nav {
    gap: 0.75rem;
  }
  h1 {
    font-size: 2rem;
  }
}

/* Homepage styles stay scoped to the landing page. */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 4rem; padding: 5rem 0 4rem; }
.home-page .eyebrow { letter-spacing: .1em; font-size: .75rem; }
.home-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.7rem); letter-spacing: -.045em; line-height: 1.05; }
.home-hero h1 span { color: var(--accent); }
.hero-copy .lead { max-width: 550px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.home-page .button { gap: .75rem; }
.hero-note { color: var(--muted); font-size: .85rem; margin-top: 1.25rem; }
.workflow-panel { background: linear-gradient(145deg, var(--panel-start), var(--card) 70%); border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 1rem; padding: 2rem; }
.workflow-panel h2 { margin-top: 1rem; font-size: 1.8rem; letter-spacing: -.025em; }
.workflow-list { list-style: none; margin: 1.75rem 0; padding: 0; }
.workflow-list li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); margin: 0; }
.step-number { color: var(--accent); font-size: .85rem; padding-top: .15rem; font-variant-numeric: tabular-nums; }
.workflow-list h3 { margin: 0 0 .35rem; }
.workflow-list p { margin: 0; color: var(--muted); font-size: .9rem; }
.workflow-foot { border-top: 1px solid var(--line); padding-top: 1rem; margin: 0; color: var(--accent); font-size: .8rem; }
.makers-section { scroll-margin-top: 2rem; padding: 1rem 0 3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading h2 { font-size: 1.9rem; margin: .65rem 0 0; letter-spacing: -.025em; }
.section-heading > p { max-width: 300px; margin: 0; color: var(--muted); font-size: .9rem; }
.maker-card { display: flex; flex-direction: column; padding: 1.75rem; border-top: 5px solid var(--brand); border-radius: .75rem; }
.maker-card:nth-child(even) { border-top-color: var(--teal); }
.maker-number { color: var(--accent); font-size: 1.7rem; margin-bottom: 1.5rem; font-variant-numeric: tabular-nums; }
.maker-card h3 { font-size: 1.4rem; margin: .75rem 0 0; }
.maker-card > p:not(.eyebrow) { margin-bottom: 1.75rem; }
.maker-card .button { margin-top: auto; justify-content: space-between; text-align: left; }
.draft-note { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); padding: 2.5rem 0 1rem; }
.draft-note h2 { margin: .75rem 0; }
.draft-note p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); }
.draft-note .button { flex-shrink: 0; }
@media (max-width: 1000px) { .home-hero { gap: 2rem; } .maker-card { padding: 1.25rem; } }
@media (max-width: 850px) { .home-hero { grid-template-columns: 1fr; padding: 3rem 0; } .section-heading, .draft-note { flex-direction: column; align-items: start; gap: 1rem; } .section-heading > p { max-width: none; } .maker-number { margin-bottom: .75rem; } }
@media (max-width: 480px) { .home-hero { padding-top: 2rem; } .workflow-panel { padding: 1.25rem; } .home-hero h1 { font-size: 2.7rem; } .section-heading h2 { font-size: 1.6rem; } .hero-actions .button { width: 100%; } }

.checkbox-label { display: flex; align-items: center; gap: .6rem; }
.checkbox-label input { width: 1.2rem; min-height: 1.2rem; margin: 0; flex: 0 0 1.2rem; }

.icon { width: 20px; height: 20px; fill: currentColor; flex: 0 0 20px; }
button, .button, .file-button { gap: .45rem; }
.icon-only { min-width: 44px; padding: .55rem; }

/* Theme-specific logo artwork retains accessible text alternatives. */
.logo-brand,
.hero-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 100%;
}
.logo-brand img,
.hero-logo img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}
.footer-logo img { width: 180px; }
.hero-logo { margin-bottom: 1rem; }
.hero-logo img { width: 320px; }
.logo-brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.logo-brand .logo-dark,
.hero-logo .logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

/* Rubric maker: one focused page at a time. */
.rubric-steps {display:flex;flex-wrap:wrap;gap:.75rem;margin:1.5rem 0;}
.rubric-steps a {padding:.8rem 1rem;border:1px solid var(--line);border-radius:.5rem;text-decoration:none;background:var(--card);color:var(--ink);}
.rubric-steps [aria-current] {border:2px solid var(--accent);background:var(--panel-start);color:var(--brand);font-weight:700;}
[data-rubric-step] .workspace {display:block;}
[data-rubric-step] .card {margin-bottom:1.5rem;}
[data-rubric-step="choose"] .workspace, [data-rubric-step="choose"] .draftbar,
[data-rubric-step="build"] .supplied-rubrics, [data-rubric-step="build"] .preview,
[data-rubric-step="download"] .supplied-rubrics, [data-rubric-step="download"] .editor,
[data-rubric-step="download"] .draftbar {display:none;}
.supplied-rubrics ul {list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem;}
.supplied-rubrics li {padding:1rem;border:1px solid var(--line);border-radius:.5rem;}
.supplied-rubrics h3 {margin-top:0;}
[data-rubric-step] .icon-only {width:auto;}

[data-rubric-step="choose"] > .hint {display:none;}

/* Rubric matrix stays inside the viewport even with ten performance levels. */
.rubric-chart {max-width:100%;overflow-x:auto;margin:1rem 0;}
.rubric-chart:focus-visible {outline:3px solid var(--accent);outline-offset:3px;}
.rubric-chart table {width:max-content;min-width:100%;table-layout:fixed;}
.rubric-chart th, .rubric-chart td {min-width:210px;max-width:260px;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere;}
.rubric-chart thead th {background:var(--card);}
.rubric-chart tbody th {text-align:left;}
.rubric-chart caption {text-align:left;font-weight:700;padding:.75rem 0;}
.rubric-chart p {margin:.5rem 0;font-weight:400;}

/* Redesign boards: one clear reading column and distinct editing stages. */
:root {
  --sunken: #edf1f8;
  --success: #0b6b52;
  --success-soft: #e1f4ee;
}
html[data-theme="dark"] {
  --sunken: #2a2a2b;
  --success: #7fdcc0;
  --success-soft: #16332d;
}
body { font-size: 1.0625rem; line-height: 1.55; }
header, main, footer { max-width: none; width: 100%; padding-inline: clamp(1rem, 2vw, 2.5rem); }
header { min-height: 76px; padding-block: .625rem; gap: 1.5rem; }
#menu-toggle { display: none; }
nav { gap: .125rem; align-items: center; }
nav a { min-height: 44px; display: inline-flex; align-items: center; padding: .55rem .75rem; border-radius: .5rem; font-size: 1rem; font-weight: 600; }
nav a:hover { background: var(--sunken); }
nav a[aria-current] { border-bottom: 3px solid var(--brand); border-radius: .5rem .5rem 0 0; }
main { padding-top: 1.5rem; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.015em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
.lead { color: var(--muted); font-size: 1.125rem; }
.intro { padding: 2rem 0 1.5rem; max-width: 760px; }
.intro.compact { padding: 1.5rem 0 1rem; }
.card { border-radius: .75rem; padding: clamp(1.25rem, 3vw, 1.75rem); }
button, .button, .file-button { border-width: 1.5px; border-radius: .5rem; font-weight: 600; }
button:not(.primary):hover, .button:not(.primary):hover, .file-button:hover { border-color: var(--blue); }
input, textarea, select { border-width: 1.5px; border-radius: .5rem; font-size: 1.0625rem; }
input:hover, textarea:hover, select:hover { border-color: var(--ink); }
label { font-size: 1rem; font-weight: 600; }
legend { color: var(--brand); font-size: 1.125rem; }
.hint, #save-status { font-size: .9375rem; line-height: 1.5; }
.workspace { grid-template-columns: minmax(0, 1fr); max-width: none; margin-inline: auto; gap: 1.5rem; }
.workspace .editor, .workspace .preview { scroll-margin-top: 1.5rem; }
.workspace .editor h2:first-child, .workspace .preview h2:first-child { padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.preview { border-top: 4px solid var(--brand); }
.preview-text { background: var(--sunken); border: 1px solid var(--line); }
.row-card { background: var(--card); }
.draftbar { max-width: none; margin-inline: auto; padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: .75rem; align-items: center; }
#builder > .hint { max-width: none; margin: 0 auto 1.5rem; }
#message:not(:empty) { max-width: none; margin-inline: auto; }
#message.error { border-color: var(--error); background: #fdecec; }
html[data-theme="dark"] #message.error { background: #3b1a1a; }
#message.success:not(:empty) { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.builder-steps, .rubric-steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); max-width: none; margin: 1rem auto 1.5rem; gap: .5rem; }
.rubric-steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
.builder-steps a, .rubric-steps a { display: flex; align-items: center; gap: .75rem; min-height: 60px; padding: .75rem 1rem; background: var(--card); border: 1.5px solid var(--line); border-radius: .625rem; color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600; }
.builder-steps button { display:flex; align-items:center; justify-content:flex-start; gap:.75rem; width:100%; min-height:60px; text-align:left; background:var(--card); color:var(--ink); }
.builder-steps button span:last-child { display:grid; line-height:1.3; }
.builder-steps button small { color:var(--muted); font-size:.75rem; font-weight:400; }
.builder-steps button[aria-current="step"] { background:var(--brand); border-color:var(--brand); color:#fff; }
.builder-steps button[aria-current="step"] small { color:inherit; }
.builder-steps a:hover, .rubric-steps a:hover { border-color: var(--brand); background: var(--sunken); }
.builder-steps a:first-child, .rubric-steps [aria-current="step"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.builder-steps a:first-child:hover, .rubric-steps [aria-current="step"]:hover { background: var(--brand); color: #fff; }
.builder-steps .step-number { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; color: inherit; font-size: .875rem; }
html[data-theme="dark"] .builder-steps a:first-child, html[data-theme="dark"] .rubric-steps [aria-current="step"] { background: var(--brand); color: var(--surface); }
html[data-theme="dark"] .builder-steps button[aria-current="step"] { color:var(--surface); }
[data-maker-stage="build"] #preview-section, [data-maker-stage="preview"] #editor-section { display:none; }
[data-maker-stage] .workspace { display:block; max-width:none; }
[data-maker-stage] .draftbar { max-width:none; margin-bottom:1rem; }
/* The three small makers share a focused Build → Preview layout. */
.maker-flow { max-width:none; margin:0 auto 4rem; }
.maker-flow .maker-intro { margin:2.25rem 0 1.5rem; }
.maker-flow .maker-intro .eyebrow { color:var(--teal); text-transform:uppercase; font-weight:700; letter-spacing:.09em; }
.maker-flow .maker-intro h1 { margin:.35rem 0; color:var(--brand); }
.maker-flow .maker-intro > p:last-child { margin:.4rem 0; color:var(--muted); }
.maker-flow .builder-steps { margin:1.5rem 0; max-width:760px; }
.maker-flow .builder-steps button { border:1.5px solid var(--line); border-radius:.625rem; }
.maker-flow .builder-steps button[aria-current="step"] { border-color:var(--brand); }
.maker-flow .maker-save-line { max-width:760px; margin:1.25rem auto; color:var(--success); font-weight:600; }
.maker-flow #message:empty { display:none; }
.maker-flow .workspace { max-width:none; }
.maker-flow [data-maker-stage="build"] .workspace { max-width:760px; }
.maker-flow .editor > h2, .maker-flow .preview > h2 { position:absolute; width:1px; height:1px; padding:0 !important; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 !important; }
.maker-flow .maker-name-card, .maker-flow #fields > fieldset, .maker-flow #fields > .row-card, .maker-flow #fields > label, .maker-flow #fields > details, .maker-flow #fields > p, .maker-flow #fields > div, .maker-flow #preview > * { background:var(--card); border:1px solid var(--line); border-radius:.75rem; padding:1.5rem; margin:0 0 1.25rem; box-shadow:0 1px 2px rgba(20,40,70,.05); }
.maker-flow .maker-name-card h3 { margin:0 0 1rem; color:var(--brand); }
.maker-flow .maker-name-card label { display:block; margin-bottom:.35rem; font-weight:600; }
.maker-flow .maker-name-card input { width:min(100%,560px); }
.maker-flow #fields > fieldset { min-width:0; }
.maker-flow #fields > fieldset legend { color:var(--brand); font-size:1.2rem; }
.maker-flow #fields > fieldset .grid { gap:1rem; }
.maker-flow #fields > fieldset label { min-width:0; }
.maker-flow #fields > fieldset input, .maker-flow #fields > fieldset textarea { width:100%; }
.maker-flow .maker-backup, .maker-flow .maker-import-help { border:1px solid var(--line); border-radius:.625rem; background:var(--card); padding:1rem; margin:1.25rem 0; }
.maker-flow .maker-backup summary, .maker-flow .maker-import-help summary { cursor:pointer; font-weight:600; }
.maker-flow .maker-backup .actions { margin-top:1rem; }
.maker-flow .maker-page-actions { margin-top:1.5rem; }
.maker-flow .maker-preview-lead { color:var(--muted); }
.maker-flow .maker-download-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1.5rem 0; }
.maker-flow .maker-download-card, .maker-flow .maker-backup-card { background:var(--card); border:1px solid var(--line); border-radius:.75rem; padding:1.5rem; }
.maker-flow .maker-download-card { border:2px solid var(--brand); }
.maker-flow .maker-download-grid h3 { margin:0 0 1rem; color:var(--brand); }
.maker-flow #downloads { background:transparent; border:0; padding:0; margin:0; }
.maker-flow #downloads button:first-child { background:var(--blue-dark); color:#fff; }
.maker-flow #download-help, .maker-flow .maker-backup-card p { color:var(--muted); margin:1rem 0 0; }
.maker-flow #preview-name { color:var(--brand); }
.maker-flow #preview { display:grid; gap:1rem; }
.maker-flow #preview > * { margin:0; }
.maker-flow #preview dl { display:grid; grid-template-columns:minmax(130px,190px) 1fr; gap:.65rem 1rem; }
.maker-flow #preview dt { color:var(--muted); font-weight:600; }
.maker-flow #preview dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
@media (max-width:700px) { .maker-flow .maker-download-grid { grid-template-columns:1fr; } .maker-flow #preview dl { grid-template-columns:1fr; } }
.home-page .home-hero { display:block; padding:4.5rem 0 2.5rem; }
.home-page .home-hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); gap:clamp(2rem,5vw,5rem); }
.hero-preview { border:1px solid var(--line); border-radius:1rem; background:var(--card); padding:2rem; box-shadow:0 18px 44px rgba(11,42,85,.08); align-self:center; }
.hero-preview .eyebrow { margin:0 0 1.4rem; color:var(--teal); font-weight:700; }
.preview-step { display:flex; align-items:center; gap:1rem; padding:1rem; border:1px solid var(--line); border-radius:.75rem; background:var(--surface); }
.preview-step > span { color:var(--teal); font-weight:700; font-variant-numeric:tabular-nums; }
.preview-step strong,.preview-step small { display:block; }
.preview-step small { color:var(--muted); }
.preview-app { border-color:var(--teal); }
.preview-connector { padding:.25rem 0 .25rem 1.5rem; color:var(--teal); font-weight:700; }
@media(max-width:850px) { .home-page .home-hero { grid-template-columns:1fr; } .hero-preview { width:100%; max-width:560px; } }
.home-page .hero-copy { max-width:720px; }
.home-page .home-hero .eyebrow { color:var(--teal); font-size:1rem; font-weight:700; }
.home-page .home-hero h1 { max-width:640px; margin:1.2rem 0; color:var(--brand); font-size:clamp(2.6rem,5vw,4rem); }
.home-page .home-hero h1 span { color:var(--brand); }
.home-page .home-hero .lead { color:var(--muted); font-size:1.2rem; }
.home-page .home-hero .hero-note { margin:1rem 0; color:var(--muted); }
.home-page .makers-section > h2, .home-page .home-workflow > h2 { color:var(--brand); font-size:1.5rem; margin:1rem 0; }
.home-page .maker-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.home-page .maker-card { min-height:255px; border:1px solid var(--line); padding:1.4rem; }
.home-page .maker-card h3 { margin:0 0:.6rem; color:var(--brand); font-size:1.25rem; }
.home-page .maker-card .maker-format { align-self:flex-start; border:1px solid var(--teal); border-radius:3rem; color:var(--teal); padding:.2rem .6rem; margin:0 0:.75rem; font-size:.8rem; }
.home-page .maker-card > p:not(.eyebrow) { margin-bottom:.75rem; }
.home-page .maker-card .button { justify-content:center; text-align:center; margin-top:auto; }
.home-page .home-workflow { margin:2rem 0 4rem; }
.home-page .home-workflow ol { list-style:none; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; counter-reset:workflow; }
.home-page .home-workflow li { display:grid; grid-template-columns:2rem 1fr; gap:.15rem .75rem; align-content:start; background:var(--hover); border-radius:.75rem; padding:1.25rem; counter-increment:workflow; }
.home-page .home-workflow li::before { content:counter(workflow); grid-row:span 2; display:grid; place-items:center; height:2rem; border:1px solid var(--line-strong); border-radius:50%; background:var(--card); }
.home-page .home-workflow li strong { color:var(--brand); }
.home-page .home-workflow li span, .home-page .home-workflow > p { color:var(--muted); }
.home-page .home-workflow > p { max-width:650px; }
@media (max-width:1000px) { .home-page .maker-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:650px) { .home-page .maker-cards, .home-page .home-workflow ol { grid-template-columns:1fr; } }
[data-maker-stage] .draftbar .name-label { width:min(100%,560px); }
[data-maker-stage] .draftbar .name-label input { width:100%; }
[data-maker-stage] .draftbar .maker-backup { width:100%; border-top:1px solid var(--line); padding-top:.75rem; }
.maker-backup summary, .maker-import summary { cursor:pointer; font-weight:600; }
.maker-backup summary span { color:var(--muted); font-size:.875rem; font-weight:400; margin-left:.5rem; }
.maker-backup .actions { margin-top:1rem; }
[data-maker-stage] .editor, [data-maker-stage] .preview { border:0; background:transparent; padding:0; box-shadow:none; }
[data-maker-stage] .editor fieldset, [data-maker-stage] .preview #preview > * { background:var(--card); border:1px solid var(--line); border-radius:.75rem; padding:1.25rem; margin-bottom:1rem; }
[data-maker-stage] .editor fieldset legend { background:var(--card); padding:.2rem .5rem; border-radius:.4rem; font-weight:700; }
[data-maker-stage] .editor > h2, [data-maker-stage] .preview > h2 { border:0 !important; }
.maker-page-actions { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.75rem; border-top:1px solid var(--line); margin-top:1.5rem; padding-top:1.5rem; }
.maker-download-heading { background:var(--card); border:2px solid var(--brand); border-radius:.75rem .75rem 0 0; padding:1.25rem 1.25rem 0; }
[data-maker-stage] #downloads { background:var(--card); border:2px solid var(--brand); border-top:0; border-radius:0 0 .75rem .75rem; padding:0 1.25rem 1.25rem; margin-bottom:1.5rem; }
[data-maker-stage] #downloads button:first-child { background:var(--blue-dark); border-color:var(--blue-dark); color:var(--on-action); }
[data-maker-stage] #downloads button:not(:first-child) { background:var(--card); border-color:var(--line-strong); color:var(--ink); }
.caption-field-actions { margin:1rem 0; display:flex; flex-wrap:wrap; gap:.5rem; }
.caption-field-actions p { flex-basis:100%; margin:0; }
.maker-import { border:1px solid var(--line); border-radius:.5rem; padding:.8rem 1rem; margin:1rem 0; }
.maker-import label { display:block; margin-top:1rem; }
[data-rubric-step] .workspace { max-width: none; }
.supplied-rubrics { max-width: none; margin-inline: auto; }
.supplied-rubrics ul { margin-top: 1.25rem; }
.supplied-rubrics li { padding: 1.25rem; border-radius: .75rem; background: var(--card); box-shadow: 0 1px 2px rgba(24,34,53,.06); }
.supplied-rubrics li h3 { margin: 0 0 .5rem; }
.supplied-rubrics li p { margin: 0 0 1rem; }
.supplied-rubrics li button { border-color: var(--blue); color: var(--blue); }
.supplied-rubrics li[hidden], #rubric-no-results[hidden] { display: none; }
.resume-draft { padding: 1.25rem; margin: 1rem 0 2rem; background: var(--panel-start); border: 1px solid var(--line); border-radius: .75rem; }
.resume-draft h3 { margin: 0 0 .5rem; }
.resume-draft p { margin: 0 0 1rem; }
.rubric-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr); gap: 1rem; margin: 1.25rem 0 .5rem; }
.rubric-filters label { display: grid; gap: .35rem; }
.rubric-filters input, .rubric-filters select { width: 100%; }
#rubric-results { color: var(--muted); margin: .5rem 0; }
.view-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.view-switch button[aria-pressed="true"] { background: var(--brand); color: var(--card); border-color: var(--brand); }
.rubric-total-status { padding: .7rem 1rem; border-radius: .5rem; background: var(--sunken); font-weight: 700; }
.rubric-total-status[data-balanced="true"] { color: var(--success); }
.rubric-grid-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: .6rem; }
.rubric-grid-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.rubric-scroll-panel { min-width: 0; }
.rubric-scroll-controls { position: sticky; top: .5rem; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--sunken); }
.rubric-scroll-controls[hidden] { display: none; }
.rubric-scroll-controls button { flex: 0 0 auto; background: var(--card); }
.rubric-scroll-hint { color: var(--muted); font-size: .875rem; font-weight: 600; text-align: center; }
@media (max-width: 600px) { .rubric-scroll-controls { flex-wrap: wrap; } .rubric-scroll-hint { order: -1; flex-basis: 100%; } .rubric-scroll-controls button { flex: 1 1 auto; } }
.rubric-edit-grid { width: max-content; min-width: 100%; border-collapse: collapse; table-layout: fixed; }
.rubric-edit-grid caption { text-align: left; padding: .75rem; font-weight: 700; }
.rubric-edit-grid th, .rubric-edit-grid td { min-width: 190px; max-width: 230px; padding: .5rem; vertical-align: top; border: 1px solid var(--line); }
.rubric-edit-grid th:first-child { min-width: 230px; }
.rubric-edit-grid th:nth-child(2), .rubric-edit-grid td:nth-child(2) { min-width: 100px; max-width: 120px; }
.rubric-edit-grid thead th { background: var(--sunken); text-align: left; }
.rubric-edit-grid label { display: block; font-size: .875rem; }
.rubric-edit-grid input, .rubric-edit-grid textarea { width: 100%; margin-top: .3rem; font-size: .9375rem; }
.rubric-edit-grid textarea { min-height: 100px; resize: vertical; }
.rubric-workflow textarea { overflow-y: hidden; resize: none; }
.rubric-grid-actions td { background: var(--sunken); max-width: none; }
.rubric-grid-actions button { margin: .2rem .35rem .2rem 0; }
.rubric-grid-actions details { display: inline-block; margin-right: .5rem; }
.rubric-grid-actions .sentence-bank { display: block; width: 100%; }
.rubric-grid-actions summary { cursor: pointer; }
.sentence-bank { display: block; max-width: 100%; margin: .75rem 0; }
.sentence-bank > summary { min-height: 44px; padding: .5rem 0; font-weight: 700; }
.sentence-bank-list { max-height: 16rem; overflow-y: auto; overflow-wrap: anywhere; padding-left: 1.5rem; }
.sentence-bank-list li { margin: .4rem 0; }
.sentence-bank-list button { min-height: 36px; }
.sentence-bank-ai { margin: .75rem 0; border-top: 1px solid var(--line); padding-top: .5rem; }
.sentence-bank-ai > summary { min-height: 44px; padding: .5rem 0; cursor: pointer; font-weight: 700; }
.sentence-bank-ai label { display: block; margin: .75rem 0; }
.sentence-bank-ai textarea { display: block; width: 100%; min-height: 7rem; margin-top: .35rem; }
.sentence-bank-ai [role="status"] ol { max-height: 16rem; overflow-y: auto; padding-left: 1.5rem; }
.sentence-upload { margin: .75rem 0; max-width: 100%; overflow-wrap: anywhere; }
.sentence-upload label { display: block; }
.sentence-upload input { display: block; max-width: 100%; margin-top: .4rem; }
.sentence-upload [role="status"] ul { max-height: 16rem; overflow-y: auto; padding-left: 1.5rem; }
.criterion-navigation { align-items: center; margin-bottom: 1rem; }
.criterion-navigation span { font-weight: 700; }
.criterion-order { margin-top: .75rem; }
.criterion-rows .row-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--card); }
.criterion-rows .row-card > legend, .criterion-rows .row-card > label:first-of-type, .criterion-rows .row-card > label:nth-of-type(n+4), .criterion-rows .row-card > button, .criterion-order, .criterion-descriptors { grid-column: 1 / -1; }
.criterion-rows .row-card > button { justify-self: start; }
.criterion-descriptors { margin-top: .75rem; border-top: 1px solid var(--line); }
.criterion-descriptors summary { cursor: pointer; min-height: 44px; padding: .65rem 0; font-weight: 700; }
.rubric-advanced { margin: 1.5rem 0; border: 1px solid var(--line); border-radius: .75rem; padding: .75rem 1rem; background: var(--card); }
.rubric-ai-setup { padding: 1rem; }
.rubric-ai-setup summary { cursor: pointer; font-weight: 700; font-size: 1.2rem; }
.rubric-ai-questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1rem 0; }
.rubric-ai-questions label { display: grid; gap: .35rem; }
.rubric-ai-questions input, .rubric-ai-questions select, .rubric-ai-questions textarea { width: 100%; }
.rubric-advanced summary { min-height: 44px; padding: .55rem 0; font-weight: 700; cursor: pointer; }
.rubric-advanced > label, .rubric-advanced > fieldset { display: block; margin-top: 1rem; }
.rubric-advanced > textarea { width: 100%; }
.rubric-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.rubric-list li { border: 1px solid var(--line); border-radius: .625rem; padding: 1rem; }
.rubric-list h3 { margin-top: 0; }
.rubric-list dt { font-weight: 700; margin-top: .75rem; }
.rubric-list dd { margin: .25rem 0 0; }
[data-preview-view="scoring"] td { text-align: center; font-size: 1.5rem; }
.rubric-resources { border: 1px solid var(--line); border-radius: .625rem; padding: .75rem 1rem; }
.rubric-resources summary { min-height: 44px; padding: .55rem 0; font-weight: 600; cursor: pointer; }
/* The rubric maker has its own three-page layout. */
.rubric-intro, .rubric-workflow, body:has(.rubric-workflow) .rubric-steps { max-width: none; margin-inline: auto; }
.rubric-intro { padding-bottom: .25rem; }
.rubric-intro .eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.rubric-steps small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.2; }
.rubric-steps .step-number { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; }
.rubric-steps [aria-current="step"] small { color: inherit; opacity: .8; }
.rubric-workflow .workspace { max-width: none; margin: 0; }
.rubric-workflow .editor, .rubric-workflow .preview { border: 0; background: transparent; padding: 0; box-shadow: none; }
.rubric-workflow .card { margin-bottom: 1.25rem; }
.rubric-workflow .supplied-rubrics { max-width: none; }
.rubric-start-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rubric-start-options .card { margin: 0; }
.rubric-start-options h3, .rubric-starter-list h3 { margin: 0 0 .4rem; color: var(--brand); }
.rubric-start-options p { color: var(--muted); }
.rubric-start-options .resume-draft { background: var(--card); }
.rubric-workflow .rubric-filters { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); align-items: end; }
.rubric-workflow .subject-select { display: none; }
.subject-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.subject-chips button { border-radius: 999px; white-space: nowrap; font-size: .8125rem; padding: .5rem .7rem; }
.subject-chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.rubric-starter-list { list-style: none; padding: 0; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1rem; }
.rubric-starter-list > li { min-width: 0; padding: 1rem; }
.starter-points { display: flex; overflow: hidden; border-radius: .35rem; min-height: 24px; background: var(--brand); color: #fff; }
.starter-points span { flex-basis: 0; min-width: 0; text-align: center; font-size: .75rem; font-weight: 700; border-right: 1px solid #fff; }
.starter-points span:nth-child(5n + 1) { background: #102d56; }
.starter-points span:nth-child(5n + 2) { background: #214272; }
.starter-points span:nth-child(5n + 3) { background: #30558a; }
.starter-points span:nth-child(5n + 4) { background: #3a6092; }
.starter-points span:nth-child(5n) { background: #456c9b; }
.starter-criteria { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.supplied-rubrics .starter-criteria { display: block; }
.supplied-rubrics .starter-criteria li { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; font-size: .875rem; }
.starter-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8125rem; font-weight: 700; }
.starter-footer button { white-space: nowrap; color: var(--blue); border-color: var(--blue); }
.rubric-save-line { max-width: none; margin: .5rem auto 1rem; color: var(--success); font-weight: 700; }
.rubric-details, .rubric-editor-card { max-width: none; margin-inline: auto; }
.rubric-details h2, .rubric-editor-card h2 { border: 0 !important; padding: 0 !important; margin-top: 0; }
.rubric-details .name-label { display: grid; gap: .4rem; max-width: 540px; }
.rubric-details #rubric-purpose-slot { margin-top: 1.25rem; }
.rubric-details #rubric-purpose-slot label { display: grid; gap: .4rem; }
.rubric-details #rubric-purpose-slot .hint { margin: .25rem 0; order: 2; }
.rubric-details textarea { width: 100%; min-height: 88px; }
.rubric-editor-card #fields > label:first-child { display: inline-grid; gap: .35rem; min-width: 160px; }
.rubric-editor-card #fields > .actions { display: inline-flex; margin-left: .75rem; }
.rubric-editor-card .view-switch { margin-top: 1.25rem; }
.rubric-editor-card .rubric-total-status { margin: 1rem 0 .5rem; }
.rubric-workflow .rubric-advanced { max-width: none; margin-inline: auto; }
.rubric-page-actions { max-width: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; margin: 1rem auto; border-top: 1px solid var(--line); }
.rubric-download-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rubric-download-cards .card { border: 1px solid var(--line); }
.rubric-download-cards h2 { margin: 0 0 1rem; }
.rubric-app-download { border: 2px solid var(--brand) !important; }
.rubric-download-cards p { margin: .6rem 0 0; }
.rubric-backup-download button { border-color: var(--blue); color: var(--blue); }
.rubric-preview-heading { margin: 1.25rem 0 .5rem; }
.rubric-preview-heading h2 { margin-bottom: .25rem; }
.rubric-workflow .preview #preview { margin: 0; }
.rubric-workflow .preview .rubric-chart th, .rubric-workflow .preview .rubric-chart td { min-width: 160px; max-width: 220px; }
.rubric-workflow .preview .rubric-chart table { border-collapse: collapse; }
.rubric-workflow .preview .rubric-chart th, .rubric-workflow .preview .rubric-chart td { border: 1px solid var(--line); padding: .75rem; }
.rubric-workflow .preview .rubric-resources { margin: .75rem 0; }
@media (max-width: 800px) { .rubric-starter-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .rubric-start-options, .rubric-download-cards, .rubric-starter-list, .rubric-workflow .rubric-filters { grid-template-columns: 1fr !important; } .rubric-workflow .subject-select { display: grid; } .subject-chips { display: none; } .rubric-page-actions { flex-wrap: wrap; } .rubric-editor-card #fields > .actions { display: flex; margin: .75rem 0; } }
.help-sections { max-width: none; gap: 1.5rem; margin-inline: auto; }
.help-sections .card { border-left: 4px solid var(--teal); }
main > .card { max-width: none; margin-inline: auto; }
main > .card form { max-width: 620px; }
.home-page .maker-card { min-height: 320px; }
.home-page .maker-card .eyebrow { color: var(--teal); }
@media (max-width: 850px) {
  header { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: .75rem; }
  header .logo-brand img { width: 155px; }
  #menu-toggle { display: inline-flex; min-width: 44px; }
  #site-navigation { display: none; grid-column: 1 / -1; padding: .5rem 0; border-top: 1px solid var(--line); }
  #site-navigation[data-open="true"] { display: flex; }
  #site-navigation a { width: 100%; }
  .builder-steps, .rubric-steps { grid-template-columns: 1fr; }
  .rubric-filters { grid-template-columns: 1fr; }
  .criterion-rows .row-card { grid-template-columns: 1fr; }
  .builder-steps a, .rubric-steps a { min-height: 50px; }
  .workspace, .draftbar { max-width: 100%; }
  .home-page .maker-card { min-height: 0; }
}

/* Browser Pro Studio header and footer, with a separate Tools navigation row. */
.studio-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
  max-width: none;
  padding: 0;
  background: #131314;
  border-bottom: 1px solid #45464c;
  color: #f2f0f1;
}
.studio-header-main {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
  padding: .5rem clamp(1rem, 4vw, 3rem);
}
.studio-header .studio-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .65rem;
  color: #f2f0f1;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
  white-space: nowrap;
}
.studio-brand img { width: 36px; height: 36px; border-radius: .5rem; }
.studio-header #site-navigation { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.studio-global-menu { position: relative; }
.studio-global-menu summary { color: #c6c6cd; cursor: pointer; font-size: .82rem; list-style: none; white-space: nowrap; }
.studio-global-menu summary::-webkit-details-marker { display: none; }
.studio-global-menu summary:hover,
.studio-global-menu[open] summary { color: #fff; }
.studio-header #site-navigation .studio-global-submenu {
  position: absolute;
  top: calc(100% + 1.4rem);
  left: -.75rem;
  display: grid;
  min-width: 13rem;
  padding: .35rem;
  background: #1b1b1d;
  border: 1px solid #45464c;
  box-shadow: 0 12px 24px rgb(0 0 0 / .25);
}
.studio-header #site-navigation .studio-global-submenu a { display: block; padding: .6rem .75rem; }
.studio-header #site-navigation a { color: #c6c6cd; font-size: .82rem; white-space: nowrap; text-decoration: none; }
.studio-header #site-navigation a:hover { color: #fff; }
.studio-header #site-navigation .studio-mobile-action { display: none; }
.studio-header-actions { display: flex; align-items: center; justify-self: end; gap: 1rem; }
.studio-header .studio-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .45rem .9rem;
  border: 1px solid #f2f0f1;
  border-radius: .25rem;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.studio-action-primary { background: #f2f0f1; color: #0e0e0f; }
.studio-action-outline { color: #f2f0f1; }
.studio-header .studio-action:hover { background: #d5d5db; color: #0e0e0f; }
.studio-header #theme-toggle,
.studio-header #menu-toggle { color: #f2f0f1; border-color: #45464c; }
.studio-header #theme-toggle:hover,
.studio-header #menu-toggle:hover { background: #2a2a2b; color: #fff; }
.studio-header .studio-tool-nav {
  display: flex;
  align-items: center;
  gap: .2rem .5rem;
  flex-wrap: wrap;
  padding: .35rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.studio-header .studio-tool-nav a { font-size: .9rem; }
.studio-header .studio-tool-nav form { margin: 0; }
.studio-header .studio-tool-nav form button { min-height: 44px; padding: .55rem .75rem; border: 0; }
.studio-header a:focus-visible,
.studio-header summary:focus-visible,
.studio-header button:focus-visible,
.studio-footer a:focus-visible { outline: 3px solid #91baff; outline-offset: 3px; }
.studio-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  max-width: none;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  background: #0e0e0f;
  border-top: 1px solid #45464c;
  color: #c6c6cd;
}
.studio-footer-about { display: grid; gap: .9rem; align-content: start; justify-items: start; }
.studio-footer p { max-width: 34rem; margin: 0; font-size: .9rem; line-height: 1.6; }
.studio-footer .studio-footer-technical { font-size: .7rem; line-height: 1.7; }
.studio-footer-brand { display: inline-flex; align-items: center; gap: .75rem; color: #f2f0f1; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.studio-footer-brand img { width: 40px; height: 40px; border-radius: .5rem; }
.studio-footer-nav { display: grid; align-content: start; justify-items: start; gap: 1rem; }
.studio-footer-links { display: flex; align-items: flex-start; gap: .75rem 1.5rem; flex-wrap: wrap; }
.studio-footer-nav a { color: #c6c6cd; font-size: .85rem; }
.studio-footer-about a { color: #f2f0f1; }
.studio-footer a:hover { color: #fff; }
@media (max-width: 1050px) {
  .studio-header-main { grid-template-columns: 1fr auto auto; gap: 1rem; }
  .studio-header #menu-toggle { display: inline-flex; order: 2; }
  .studio-header #site-navigation {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    padding: .5rem clamp(1rem, 4vw, 3rem) 1rem;
    background: #1b1b1d;
    border-bottom: 1px solid #45464c;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
  }
  .studio-header #site-navigation[data-open="true"] { display: flex; }
  .studio-global-menu { width: 100%; }
  .studio-global-menu summary { padding: .75rem 0; border-bottom: 1px solid #45464c; font-size: 1rem; }
  .studio-header #site-navigation .studio-global-submenu { position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 .35rem 1rem; }
  .studio-header #site-navigation .studio-global-submenu a { padding: .5rem 0; }
  .studio-header #site-navigation a { padding: .75rem 0; border-bottom: 1px solid #45464c; font-size: 1rem; }
  .studio-header #site-navigation .studio-mobile-action { display: block; }
  .studio-header .studio-tool-nav { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .studio-footer { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .studio-header-main { grid-template-columns: 1fr auto; gap: .5rem; }
  .studio-header .studio-brand { font-size: .95rem; }
  .studio-header-actions { gap: .25rem; }
  .studio-header .studio-action { display: none; }
}
