:root {
  color-scheme: light;
  --font-sans: Inter, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", Consolas, "Liberation Mono", ui-monospace, monospace;

  --bg: #f4f1e9;
  --bg-2: #ece7dd;
  --surface: rgba(252, 250, 244, .92);
  --surface-solid: #fcfaf4;
  --surface-2: rgba(243, 239, 229, .82);
  --surface-3: rgba(232, 226, 214, .64);
  --ink: #20211d;
  --ink-2: #343630;
  --muted: #65675e;
  --muted-2: #8a8c82;
  --line: rgba(32, 33, 29, .13);
  --line-strong: rgba(32, 33, 29, .26);
  --primary: #415a45;
  --primary-2: #253229;
  --primary-soft: rgba(65, 90, 69, .1);
  --accent: #c6b958;
  --accent-soft: rgba(198, 185, 88, .18);
  --steel: #59656b;
  --steel-soft: rgba(89, 101, 107, .12);
  --ok: #35633e;
  --ok-soft: rgba(53, 99, 62, .12);
  --warn: #85652b;
  --warn-soft: rgba(133, 101, 43, .13);
  /* --bad: #8d3d35; */
  --bad: #e45716;
  --bad-soft: rgba(141, 61, 53, .12);
  --shadow: 0 22px 54px rgba(24, 25, 22, .09);
  --shadow-soft: 0 12px 28px rgba(24, 25, 22, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --focus: 0 0 0 3px rgba(198, 185, 88, .4), 0 0 0 1px rgba(32, 33, 29, .66);
  --ease: cubic-bezier(.22, .78, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink-2);
  background:
    linear-gradient(90deg, rgba(32, 33, 29, .045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(32, 33, 29, .038) 1px, transparent 1px),
    radial-gradient(circle at 18% -10%, rgba(198, 185, 88, .18), transparent 28rem),
    radial-gradient(circle at 100% 8%, rgba(65, 90, 69, .14), transparent 29rem),
    linear-gradient(180deg, #fbf8f0 0%, var(--bg) 48%, #f8f5ee 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(32, 33, 29, .055) 50%, transparent 51% 100%),
    linear-gradient(180deg, rgba(251, 248, 240, .82), rgba(251, 248, 240, .2));
  background-size: min(100%, 1120px) 100%, 100% 100%;
  background-position: center top, center top;
  opacity: .58;
}

button,
input,
textarea,
select { font: inherit; }

button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }

p {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: clamp(.95rem, 2.45vw, 1rem);
  line-height: 1.62;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.05rem, 8.8vw, 4.15rem);
  line-height: 1.01;
  letter-spacing: -.058em;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.14rem, 3.6vw, 1.48rem);
  line-height: 1.16;
  margin-bottom: 10px;
}

h3 {
  font-size: clamp(1.01rem, 3vw, 1.18rem);
  line-height: 1.32;
  letter-spacing: -.018em;
}

strong { color: var(--ink); }

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .82rem .9rem;
  color: var(--ink-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(252, 250, 244, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .64);
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: rgba(101, 103, 94, .72); }

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible,
.choice:focus-within .choice-card,
.drop:focus-within,
.mini-btn:focus-visible {
  outline: none;
  border-color: rgba(65, 90, 69, .58);
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: .75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: .72rem .95rem;
  border: 1px solid rgba(252, 250, 244, .2);
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface-solid);
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .62rem max(.8rem, calc((100vw - 1120px) / 2));
  background: rgba(244, 241, 233, .84);
  border-bottom: 1px solid rgba(32, 33, 29, .1);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .66rem;
  min-width: 48%;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: .95rem;
  letter-spacing: -.01em;
}

.brand-copy small {
  margin-top: .22rem;
  color: var(--muted);
  font-size: .72rem;
}

.topbar-nav,
.badges,
.inline-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .38rem;
}

.topbar-nav {
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar-nav::-webkit-scrollbar { display: none; }

.topbar-nav span,
.pill,
.step-pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  min-height: 28px;
  padding: .33rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(252, 250, 244, .72);
  color: var(--ink-2);
  font-size: .74rem;
  font-weight: 820;
  line-height: 1.1;
  white-space: nowrap;
}

.pill::before,
.badge::before,
.topbar-nav span::before {
  content: "";
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

.pill.ok { background: var(--ok-soft); border-color: rgba(53, 99, 62, .22); color: var(--ok); }
.pill.warn { background: var(--warn-soft); border-color: rgba(133, 101, 43, .22); color: var(--warn); }
.pill.bad { background: var(--bad-soft); border-color: rgba(141, 61, 53, .22); color: var(--bad); }
.pill.muted { background: rgba(89, 101, 107, .09); color: var(--steel); }

.app {
  width: min(1120px, calc(100% - 1rem));
  margin: .75rem auto clamp(2.25rem, 7vw, 5rem);
}

.app:focus { outline: none; }

.grid { display: grid; gap: .9rem; }
.grid.two,
.grid.three { grid-template-columns: 1fr; align-items: start; }

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(.92rem, 3.4vw, 1.3rem);
  overflow: clip;
}

.card > * { position: relative; }

.card.soft {
  background: rgba(238, 233, 222, .72);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
  margin-bottom: .9rem;
}

.hero-card,
.solve-hero,
.public-head {
  min-height: auto;
  display: grid;
  align-content: space-between;
  gap: clamp(1rem, 4vw, 1.75rem);
  background:
    linear-gradient(135deg, rgba(252, 250, 244, .96), rgba(239, 235, 224, .88)),
    radial-gradient(circle at 88% 6%, rgba(198, 185, 88, .17), transparent 17rem),
    linear-gradient(90deg, rgba(65, 90, 69, .1), transparent 26%);
  border-color: rgba(32, 33, 29, .14);
}

.hero-card::after,
.solve-hero::after,
.public-head::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: .9;
}

.hero-copy { max-width: 760px; }
.hero-copy p { max-width: 690px; font-size: clamp(1rem, 3.1vw, 1.14rem); }

.hero-kicker,
.solve-eyebrow,
.task-kicker,
.module-eyebrow,
.system-label {
  margin: 0 0 .5rem;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.hero-orbit {
  position: absolute;
  right: clamp(.9rem, 3vw, 1.6rem);
  top: clamp(.9rem, 3vw, 1.4rem);
  width: min(28vw, 230px);
  aspect-ratio: 1;
  opacity: .7;
  pointer-events: none;
}

.hero-orbit__ring,
.hero-orbit__node {
  position: absolute;
  display: block;
}

.hero-orbit__ring {
  inset: 18%;
  border: 1px solid rgba(65, 90, 69, .28);
  border-radius: 50%;
  background:
    linear-gradient(rgba(65, 90, 69, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 90, 69, .12) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero-orbit__node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(65, 90, 69, .1);
}

.hero-orbit__node--a { left: 17%; top: 21%; }
.hero-orbit__node--b { right: 20%; top: 42%; background: var(--accent); }
.hero-orbit__node--c { left: 42%; bottom: 18%; }

.hero-system {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .44rem;
  max-width: 720px;
}

.system-step {
  min-width: 0;
  padding: .68rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(252, 250, 244, .64);
}

.system-step small {
  display: block;
  margin-bottom: .22rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 850;
}

.system-step strong {
  display: block;
  font-size: .9rem;
  line-height: 1.2;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: .58rem;
}

.header,
.module-head,
.task-head,
.solve-task__head,
.solve-section-head,
.solve-result__top,
.solve-submit-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .82rem;
}

.header { margin-bottom: .9rem; }
.header p { max-width: 70ch; }

.section-title-line {
  display: flex;
  align-items: center;
  gap: .62rem;
}

.section-index,
.step-index {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(252, 250, 244, .7);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 850;
}

.stat-card,
.metric,
.summary-row,
.file-row,
.status-row,
.timeline-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(252, 250, 244, .68);
  padding: .74rem;
  box-shadow: none;
}

.stat-card small,
.metric small,
.summary-row small,
.solve-answer-grid dt {
  display: block;
  margin-bottom: .2rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.stat-card strong,
.metric strong,
.summary-row strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.2;
}

.metric.large strong { font-size: 1.24rem; }

.actions,
.action-row,
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .56rem;
  margin-top: 1.9rem;
  margin-bottom: 10px;
}

.upload-actions {
  align-items: center;
  justify-content: space-between;
}

.upload-options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-left: auto;
}

.upload-option {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .48rem;
  min-height: 40px;
  margin: 0;
  padding: .58rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(252, 250, 244, .7);
  color: var(--ink-2);
  font-size: .88rem;
  font-weight: 780;
  line-height: 1.2;
}

.upload-option input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  padding: .75rem 1rem;
  font-size: .91rem;
  font-weight: 850;
  line-height: 1.08;
  text-decoration: none;
  user-select: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(24, 25, 22, .08);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.btn.primary {
  border-color: rgba(32, 33, 29, .92);
  background: linear-gradient(135deg, var(--ink), var(--primary-2) 58%, var(--primary));
  color: var(--surface-solid);
  box-shadow: 0 13px 26px rgba(24, 25, 22, .16);
}

.btn.secondary {
  border-color: var(--line-strong);
  background: rgba(252, 250, 244, .7);
  color: var(--ink);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--primary-2);
}

.btn.ghost:hover:not(:disabled) { background: var(--primary-soft); }
.btn.danger { background: rgba(252, 250, 244, .7); border-color: rgba(141, 61, 53, .28); color: var(--bad); }
.btn.full { width: 100%; }
.btn.small { min-height: 35px; padding: .52rem .7rem; font-size: .84rem; }

.progress-shell {
  display: grid;
  gap: .62rem;
  margin-bottom: .9rem;
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.progress-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(32, 33, 29, .09);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .26s var(--ease-out);
}

.step-list {
  display: grid;
  gap: .44rem;
}

.step-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .58rem;
  padding: .42rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.step-row strong { display: block; font-size: .9rem; }
.step-row span:not(.step-index) { display: block; color: var(--muted); font-size: .82rem; line-height: 1.34; }
.step-row.is-done { color: var(--ok); }
.step-row.is-done .step-index { border-color: rgba(53, 99, 62, .24); background: var(--ok-soft); color: var(--ok); }
.step-row.is-active { border-color: rgba(65, 90, 69, .18); background: var(--primary-soft); }
.step-row.is-active .step-index { background: var(--primary); border-color: var(--primary); color: var(--surface-solid); box-shadow: 0 0 0 4px rgba(65, 90, 69, .12); }
.step-row.is-muted { opacity: .68; }

.fields { display: grid; gap: .88rem; }
.fields.two,
.fields.three { grid-template-columns: 1fr; }

.label,
label .label {
  display: block;
  margin-bottom: .38rem;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 820;
}

.help {
  margin: .38rem 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: .58rem;
}

.choice {
  position: relative;
  display: block;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-card {
  position: relative;
  display: grid;
  gap: .28rem;
  height: 100%;
  padding: .82rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(252, 250, 244, .72);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), transform .18s var(--ease);
}

.choice-card::before {
  content: "";
  position: absolute;
  right: .72rem;
  top: .72rem;
  width: .55rem;
  height: .55rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(252, 250, 244, .7);
}

.choice-card strong { padding-right: 1.2rem; font-size: .96rem; }
.choice-card span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.choice-card:hover { border-color: rgba(65, 90, 69, .34); }
.choice input:checked + .choice-card {
  border-color: rgba(65, 90, 69, .6);
  background: linear-gradient(180deg, rgba(65, 90, 69, .09), rgba(252, 250, 244, .84));
  box-shadow: 0 0 0 3px rgba(65, 90, 69, .1);
}

.choice input:checked + .choice-card::before {
  border-color: var(--primary);
  background: radial-gradient(circle, var(--primary) 0 48%, transparent 51%);
}

.drop {
  display: grid;
  gap: .72rem;
  place-items: start;
  text-align: left;
  border: 1.5px dashed rgba(65, 90, 69, .36);
  border-radius: var(--radius);
  padding: clamp(.92rem, 4vw, 1.25rem);
  background:
    linear-gradient(135deg, rgba(252, 250, 244, .78), rgba(232, 226, 214, .56)),
    linear-gradient(90deg, rgba(65, 90, 69, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(65, 90, 69, .06) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}

.drop:hover,
.drop.is-dragover {
  border-color: rgba(65, 90, 69, .72);
  box-shadow: inset 0 0 0 1px rgba(65, 90, 69, .14), var(--shadow-soft);
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(252, 250, 244, .18);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: var(--surface-solid);
  font-size: 1.25rem;
  font-weight: 950;
}

.drop strong { font-size: 1.02rem; }
.drop p { max-width: 70ch; margin: 0; font-size: .91rem; }
.native-file-input { position: fixed; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

.drop {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.drop > :not(.drop-file-input) {
  pointer-events: none;
}

.drop .drop-file-input.native-file-input {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.files,
.summary,
.status-list,
.task-list,
.payment-actions,
.solve-task-list {
  display: grid;
  gap: .58rem;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: .58rem;
  margin: .72rem 0;
}

.notice {
  padding: .78rem .86rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  margin: .62rem 0 .62rem 0;
  font-size: .93rem;
  line-height: 1.5;
  animation: cardIn .22s var(--ease-out) both;
}

.notice.compact { padding: .65rem .75rem; font-size: .86rem; }
.notice:last-child { margin-bottom: 0; }
.notice.info { background: var(--steel-soft); color: #39454a; border-color: rgba(89, 101, 107, .2); }
.notice.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(53, 99, 62, .2); }
.notice.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(133, 101, 43, .2); }
.notice.error { background: var(--bad-soft); color: var(--bad); border-color: rgba(141, 61, 53, .22); }
.noscript { width: min(1120px, calc(100% - 1rem)); margin: 1rem auto; }

.promo-code-field {
  display: grid;
  gap: .38rem;
  margin-top: .88rem;
}

.promo-code-field input {
  text-transform: uppercase;
}

.promo-code-field .help {
  margin: 0;
}

.invoice-section {
  display: grid;
  gap: .72rem;
  margin-top: .88rem;
  padding-top: .88rem;
  border-top: 1px solid var(--line);
}

.invoice-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .68rem;
  align-items: start;
  margin: 0;
}

.invoice-toggle input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: .14rem 0 0;
  accent-color: var(--primary);
}

.invoice-toggle span {
  display: grid;
  gap: .12rem;
}

.invoice-toggle strong {
  font-size: .98rem;
}

.invoice-toggle small,
.invoice-note {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.invoice-note {
  margin: 0;
}

.invoice-form {
  display: grid;
  gap: .82rem;
}

.invoice-memory-actions {
  display: flex;
  justify-content: flex-start;
}

.invoice-memory-clear {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.invoice-fields {
  gap: .72rem;
}

.legal-consents {
  display: grid;
  gap: .58rem;
  margin-top: .88rem;
  padding: .86rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(252, 250, 244, .78)),
    rgba(232, 226, 214, .38);
}

.consent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .62rem;
  align-items: start;
  margin: 0;
  color: var(--ink-2);
  font-size: .9rem;
  line-height: 1.46;
}

.consent-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: .12rem 0 0;
  accent-color: var(--primary);
}

.consent-row a,
.legal-note a {
  color: var(--primary-2);
  font-weight: 850;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.legal-note {
  margin: .1rem 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.empty {
  display: grid;
  gap: .14rem;
  padding: .86rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(252, 250, 244, .54);
}

.empty strong { color: var(--ink); }
.empty span { color: var(--muted); }

.loader {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(65, 90, 69, .18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .85s linear infinite;
  vertical-align: -2px;
}

.loader-track {
  position: relative;
  display: none;
  flex: 1;
  min-width: 90px;
  height: 4px;
  border-radius: 999px;
  background: rgba(32, 33, 29, .08);
  overflow: hidden;
}

.loader-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: scan 1.35s var(--ease) infinite;
}

.attachments-panel {
  display: grid;
  gap: .78rem;
  margin-top: .8rem;
}

.attachments-head,
.file-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.attachments-head > div,
.file-preview-head > div {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.attachments-head strong,
.file-preview-head strong,
.attachment-body strong {
  color: var(--ink);
}

.attachments-head span,
.attachment-body span,
.file-preview-head span {
  color: var(--muted);
  font-size: .82rem;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .52rem;
}

.attachment-tile {
  min-width: 0;
  display: grid;
  gap: .46rem;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(252, 250, 244, .68);
  animation: cardIn .18s var(--ease-out) both;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.attachment-tile:hover,
.attachment-tile:focus-within {
  border-color: rgba(65, 90, 69, .36);
  box-shadow: var(--shadow-soft);
}

.attachment-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(65, 90, 69, .12), rgba(198, 185, 88, .16)),
    linear-gradient(90deg, rgba(32, 33, 29, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(32, 33, 29, .06) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
}

.attachment-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-glyph {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ink), var(--primary));
  color: var(--surface-solid);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.file-glyph.large {
  width: 66px;
  height: 66px;
  font-size: .94rem;
}

.attachment-body {
  display: grid;
  gap: .14rem;
  min-width: 0;
}

.attachment-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
}

.attachment-actions {
  display: grid;
  grid-template-columns: repeat(3, 31px);
  align-items: center;
  justify-content: start;
  gap: .3rem;
}

.mini-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 31px;
  min-width: 31px;
  min-height: 31px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(252, 250, 244, .82);
  color: var(--ink-2);
  box-shadow: none;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}

.mini-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.mini-btn:hover,
.mini-btn:focus-visible {
  border-color: rgba(65, 90, 69, .42);
  background: var(--primary-soft);
  color: var(--primary-2);
}

.mini-btn.danger { color: var(--bad); border-color: rgba(141, 61, 53, .22); }
.mini-btn.danger:hover,
.mini-btn.danger:focus-visible { background: var(--bad-soft); color: var(--bad); }
.mini-btn::after,
.mini-btn::before { display: none; }

.attachment-more {
  min-height: 150px;
  place-items: center;
  text-align: center;
  color: var(--primary-2);
}

.attachment-more strong { font-size: 1.65rem; }

.file-preview-panel,
.ready-link-card,
.payment-card {
  display: grid;
  gap: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(252, 250, 244, .74);
  padding: .85rem;
  margin-top: 10px;
  box-shadow: none;
  animation: cardIn .22s var(--ease-out) both;
}

.feedback-card {
  display: grid;
  gap: 0;
  transition: gap .68s cubic-bezier(.18, .82, .2, 1);
}

.feedback-card.is-expanded {
  gap: .72rem;
}

.feedback-form-shell {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.992);
  transition:
    grid-template-rows .72s cubic-bezier(.18, .82, .2, 1),
    opacity .42s ease,
    transform .64s cubic-bezier(.18, .82, .2, 1),
    visibility 0s linear .72s;
  will-change: grid-template-rows, opacity, transform;
}

.feedback-card.is-expanded .feedback-form-shell {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.feedback-form {
  display: grid;
  gap: .66rem;
  min-height: 0;
  padding-top: .1rem;
}

.feedback-type-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .42rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.feedback-field {
  display: grid;
  gap: .32rem;
  min-width: 0;
}

.feedback-field textarea {
  min-height: 108px;
}

.feedback-meta {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  color: var(--muted-2);
  font-size: .78rem;
  line-height: 1.3;
}

.feedback-validation {
  min-height: 1.15rem;
  margin: -.16rem 0 0;
  color: var(--bad);
  font-size: .82rem;
  font-weight: 780;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .08rem;
}

@media (max-width: 760px) {
  .feedback-type-group {
    grid-template-columns: 1fr;
  }

  .feedback-actions {
    display: grid;
  }

  .feedback-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-card,
  .feedback-form-shell {
    transition: none;
    transform: none;
  }

  .feedback-form-shell {
    visibility: hidden;
  }

  .feedback-card.is-expanded .feedback-form-shell {
    visibility: visible;
  }
}

.file-preview-image {
  width: 100%;
  max-height: min(52vh, 500px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.file-preview-document {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  padding: .86rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.copy-row,
.download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .58rem;
  align-items: center;
}

.link-input {
  background: rgba(252, 250, 244, .86);
  overflow: hidden;
  text-overflow: ellipsis;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

.sticky-summary { position: sticky; top: 82px; }

.status-row,
.timeline-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .62rem;
}

.status-row div { min-width: 0; overflow-wrap: anywhere; }

.status-dot {
  width: .72rem;
  height: .72rem;
  margin-top: .35rem;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 4px rgba(138, 140, 130, .12);
}

.status-dot.active {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(133, 101, 43, .13);
  animation: statusPulse 1.8s var(--ease) infinite;
}

.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(53, 99, 62, .12); }
.status-dot.bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(141, 61, 53, .12); }

.public-shell,
.solve-shell {
  display: grid;
  gap: .9rem;
}

.public-head,
.solve-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.solve-hero__content { min-width: 0; }
.solve-hero__content h1 { margin: .12rem 0 .56rem; overflow-wrap: anywhere; }
.solve-hero__content p { max-width: 68ch; }
.solve-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
}

.solve-expiry {
  color: rgba(246, 241, 223, .78);
  font-size: .88rem;
}

.solve-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
  align-items: start;
}

.solve-form,
.solve-result,
.solve-side { min-width: 0; }
.solve-side { position: sticky; top: 82px; }
.solve-section-head { margin-bottom: .95rem; }

.task-card,
.solve-task {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .86rem;
  background: rgba(252, 250, 244, .68);
  scroll-margin: 104px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}

.solve-task:focus-within {
  border-color: rgba(65, 90, 69, .38);
  box-shadow: var(--shadow-soft);
}

.solve-task.is-invalid {
  border-color: rgba(141, 61, 53, .45);
  box-shadow: 0 0 0 3px rgba(141, 61, 53, .08);
}

.choice-list,
.solve-choice-group {
  display: grid;
  gap: .56rem;
}

.solve-field {
  display: grid;
  gap: .35rem;
  margin-top: .78rem;
}

.solve-choice-group {
  margin: .78rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.answer-choice,
.solve-choice {
  --choice-pad: .76rem;
  --choice-control: 1.05rem;
  --choice-control-top: calc(var(--choice-pad) - .22rem);
  position: relative;
  display: block;
  min-height: calc(var(--choice-pad) * 2 + var(--choice-control));
  padding: var(--choice-pad) var(--choice-pad) var(--choice-pad) calc(var(--choice-pad) + var(--choice-control) + .72rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(252, 250, 244, .72);
  cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}

.answer-choice:hover,
.solve-choice:hover { border-color: rgba(65, 90, 69, .35); background: rgba(65, 90, 69, .045); }
.answer-choice input,
.solve-choice input {
  position: absolute;
  top: var(--choice-control-top);
  left: var(--choice-pad);
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--primary);
}

.solve-choice:has(input:checked) {
  border-color: rgba(65, 90, 69, .58);
  box-shadow: 0 0 0 3px rgba(65, 90, 69, .1);
}

.solve-choice.fx-reactive {
  overflow: visible;
  transform: none;
  will-change: auto;
}

.solve-choice.fx-reactive::after {
  content: none;
  display: none;
}

.answer-choice > span,
.solve-choice > span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rich-text {
  min-width: 0;
  color: inherit;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.rich-text > * { margin: 0; }
.rich-text > * + * { margin-top: .56rem; }
.rich-text p { margin: 0; }
.rich-text strong { font-weight: 900; }
.rich-text em { font-style: italic; }
.rich-text a {
  color: var(--primary);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}
.rich-text code,
.math-fallback {
  padding: .08rem .26rem;
  border: 1px solid rgba(32, 33, 29, .12);
  border-radius: 6px;
  background: rgba(32, 33, 29, .055);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .93em;
}
.rich-code {
  margin: 0;
  padding: .72rem .78rem;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(32, 33, 29, .055);
}
.rich-code code {
  padding: 0;
  border: 0;
  background: transparent;
  white-space: pre;
}
.rich-text ul,
.rich-text ol {
  margin: 0;
  padding-left: 1.22rem;
}
.rich-text li + li { margin-top: .22rem; }
.answer-lines {
  display: grid;
  gap: .2rem;
  margin: 0;
  padding-left: 1.05rem;
}
.answer-lines li { overflow-wrap: anywhere; }
.rich-text blockquote {
  margin: 0;
  padding: .58rem .72rem;
  border-left: 3px solid rgba(65, 90, 69, .38);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(65, 90, 69, .055);
}
.rich-heading {
  margin: 0;
  font-size: .98rem;
  line-height: 1.34;
  letter-spacing: 0;
}
.rich-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.rich-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  font-size: .92rem;
}
.rich-table th,
.rich-table td {
  padding: .5rem .58rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.rich-table th {
  background: rgba(65, 90, 69, .075);
  font-weight: 900;
}
.rich-table tr:last-child td { border-bottom: 0; }
.rich-table th:last-child,
.rich-table td:last-child { border-right: 0; }
.rich-text .katex {
  line-height: 1.35;
}
.rich-text .katex-html {
  padding-block: .08em;
}
.math-block,
.katex-display {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}
.math-block {
  padding: .68rem .6rem .62rem;
  border: 1px solid rgba(65, 90, 69, .14);
  border-radius: var(--radius-sm);
  background: rgba(252, 250, 244, .72);
}
.math-block .katex-display {
  margin: .1rem 0;
  overflow: visible;
}
.katex-display {
  margin: .35rem 0;
  padding-block: .12rem;
}
.solve-task-prompt {
  margin-top: .16rem;
  font-size: 1.04rem;
  font-weight: 760;
  line-height: 1.5;
  color: var(--ink);
}
.solve-task-prompt .rich-heading { font-size: 1.02rem; }
.solve-task-visual {
  margin: .84rem 0 .92rem;
  padding: .68rem;
  border: 1px solid rgba(76, 32, 12, .16);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, .72);
}
.solve-task-visual img {
  display: block;
  width: 100%;
  max-height: min(360px, 58vh);
  object-fit: contain;
}
.solve-instructions { max-width: 70ch; color: var(--muted); }
.rich-text--choice {
  display: block;
  line-height: 1.56;
}
.rich-text--choice > * + * { margin-top: .3rem; }
.rich-text--notice { margin-top: .34rem; }
.answer-choice.disabled { color: var(--muted); }
.input-preview { background: var(--surface-2); color: var(--muted); }

.solve-field-error {
  margin-top: .65rem;
  color: var(--bad);
  font-weight: 850;
  font-size: .9rem;
}

.solve-submit-bar {
  margin-top: .95rem;
  padding: .86rem;
  border: 1px solid rgba(65, 90, 69, .17);
  border-radius: var(--radius);
  background: rgba(65, 90, 69, .055);
  align-items: center;
}

.solve-submit-bar__copy { display: grid; gap: .18rem; }
.solve-submit-bar__copy span { color: var(--muted); font-size: .9rem; }
.solve-submit { min-width: 180px; }

.solve-wait {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
}

.solve-wait__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(65, 90, 69, .18);
  border-radius: 11px;
  background: var(--primary-soft);
}

.solve-result__top {
  align-items: center;
  margin-bottom: .95rem;
}

.solve-score {
  --score: 0%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(circle closest-side, var(--surface-solid) 68%, transparent 70%),
    conic-gradient(var(--primary) var(--score), rgba(32, 33, 29, .12) 0);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
}

.solve-score strong,
.solve-score span { grid-area: 1 / 1; }
.solve-score strong { margin-top: -.72rem; font-size: 1.52rem; }
.solve-score span { align-self: center; margin-top: 2.06rem; color: var(--muted); font-size: .74rem; font-weight: 850; }

.solve-task--result { background: rgba(252, 250, 244, .74); }
.solve-task--correct { border-color: rgba(53, 99, 62, .3); }
.solve-task--partial { border-color: rgba(133, 101, 43, .32); }
.solve-task--incorrect { border-color: rgba(141, 61, 53, .28); }

.solve-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: .36rem .62rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.solve-result-badge--correct { background: var(--ok-soft); color: var(--ok); }
.solve-result-badge--partial { background: var(--warn-soft); color: var(--warn); }
.solve-result-badge--incorrect { background: var(--bad-soft); color: var(--bad); }
.solve-points { margin-top: .7rem; color: var(--ink); }
.solve-feedback { margin: .72rem 0 0; color: var(--ink-2); }
.solve-explanation {
  margin-top: .76rem;
  padding: .78rem .86rem;
  border: 1px solid rgba(18, 86, 96, .18);
  border-radius: var(--radius-sm);
  background: rgba(238, 249, 247, .78);
  color: var(--ink-2);
}
.solve-explanation strong {
  display: block;
  color: var(--ink);
  font-size: .86rem;
  margin-bottom: .28rem;
}
.solve-explanation p {
  margin: 0;
  overflow-wrap: anywhere;
}

.solve-answer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  margin: .78rem 0 0;
}

.solve-answer-grid > div {
  min-width: 0;
  padding: .74rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.solve-answer-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.solve-json {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: .84rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity .34s var(--ease-out),
    transform .34s var(--ease-out),
    border-color .18s var(--ease),
    box-shadow .18s var(--ease),
    background-color .18s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan {
  from { transform: translateX(-110%); }
  to { transform: translateX(280%); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(133, 101, 43, .12); }
  50% { box-shadow: 0 0 0 7px rgba(133, 101, 43, .07); }
}

@media (min-width: 560px) {
  .app { width: min(1120px, calc(100% - 1.35rem)); }
  .hero-stats,
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choices,
  .invoice-type-choices,
  .fields.two,
  .copy-row,
  .download-row,
  .solve-answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .copy-row,
  .download-row { grid-template-columns: minmax(0, 1fr) auto; }
  .attachment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loader-track { display: block; }
}

@media (min-width: 760px) {
  .app { width: min(1120px, calc(100% - 2rem)); margin-top: 1rem; }
  .card { padding: clamp(1.05rem, 2.2vw, 1.35rem); }
  .grid { gap: 1rem; }
  .hero { gap: 1rem; margin-bottom: 1rem; }
  .fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .invoice-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .public-head,
  .solve-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .solve-hero__meta { justify-content: flex-end; min-width: 220px; }
}

@media (min-width: 981px) {
  .hero { grid-template-columns: minmax(0, 1.22fr) minmax(292px, .78fr); }
  .grid.two { grid-template-columns: minmax(0, 1.34fr) minmax(286px, .8fr); }
  .hero-card { min-height: 375px; }
  .step-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step-row { grid-template-columns: 1fr; }
  .attachment-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .solve-layout { grid-template-columns: minmax(0, 1fr) minmax(276px, .38fr); }
}

@media (max-width: 980px) {
  .sticky-summary,
  .solve-side { position: static; }
  .hero-orbit { display: none; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  body { background-size: 56px 56px, 56px 56px, auto, auto, auto; }
  body::before { opacity: .38; }
  .topbar { align-items: flex-start; flex-direction: column; gap: .5rem; padding: .54rem .72rem; }
  .topbar-nav { width: 60%; justify-content: flex-start; flex-wrap: nowrap; padding-bottom: .08rem; }
  .topbar-nav span { min-height: 25px; padding: .28rem .54rem; font-size: .7rem; }
  .brand-copy small { display: none; }
  .app { width: min(100% - .85rem, 1120px); margin-top: .56rem; }
  .card,
  .task-card,
  .solve-task,
  .solve-submit-bar { padding: .78rem; border-radius: 13px; }
  .hero { gap: .68rem; }
  .hero-card { gap: .85rem; }
  .hero-system { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header,
  .task-head,
  .solve-task__head,
  .solve-section-head,
  .solve-result__top,
  .solve-submit-bar { flex-direction: column; }
  .header { gap: .56rem; margin-bottom: .72rem; }
  .actions,
  .action-row,
  .payment-actions { gap: .48rem; margin-top: .74rem; }
  .btn { width: 100%; min-height: 45px; }
  .btn.small { width: auto; }
  .progress-shell { margin-bottom: .72rem; }
  .drop { padding: .86rem; }
  .attachments-head,
  .file-preview-head { flex-direction: column; align-items: stretch; }
  .file-preview-document { grid-template-columns: 1fr; }
  .solve-submit { width: 100%; }
  .solve-wait { grid-template-columns: 1fr; }
  .solve-score { width: 108px; height: 108px; }
  .solve-score strong { font-size: 1.34rem; }
  .solve-score span { margin-top: 1.82rem; font-size: .7rem; }
}

@media (max-width: 430px) {
  h1 { font-size: clamp(1.92rem, 11.7vw, 2.52rem); letter-spacing: -.046em; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: .99rem; }
  p { font-size: .92rem; }
  .app { width: min(100% - .72rem, 1120px); }
  .card,
  .task-card,
  .solve-task,
  .solve-submit-bar { padding: .72rem; border-radius: 12px; }
  input,
  textarea,
  select { padding: .7rem .76rem; }
  .choice-card { padding: .68rem; }
  .answer-choice,
  .solve-choice { --choice-pad: .68rem; }
  .stat-card,
  .metric,
  .summary-row,
  .status-row,
  .timeline-row,
  .empty { padding: .64rem; }
  .hero-system { gap: .38rem; }
  .system-step { padding: .56rem; }
  .attachment-grid { gap: .42rem; }
  .attachment-tile { padding: .38rem; }
  .attachment-actions { grid-template-columns: repeat(3, 30px); gap: .25rem; }
  .mini-btn { width: 30px; min-width: 30px; min-height: 30px; }
}

@media (hover: none), (pointer: coarse) {
  .btn:hover:not(:disabled),
  .attachment-tile:hover,
  .solve-choice:hover,
  .choice-card:hover,
  .drop:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal-on-scroll,
  .attachment-tile,
  .notice,
  .ready-link-card,
  .feedback-card,
  .payment-card,
  .file-preview-panel {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   izitest.pl — premium dark redesign inspired by drinksom.eu energy
   Scope: visual layer only. No API, state, routing or business logic changes.
   Paste at the very end of static/main.css.
   ========================================================================== */

:root {
  color-scheme: dark;

  --font-sans: Inter, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", Consolas, "Liberation Mono", ui-monospace, monospace;

  --bg: #070806;
  --bg-2: #0c100b;
  --surface: rgba(17, 21, 15, .78);
  --surface-solid: #11150f;
  --surface-2: rgba(24, 30, 21, .76);
  --surface-3: rgba(35, 43, 29, .66);

  --ink: #f6f1df;
  --ink-2: #e7dfc4;
  --muted: #b3aa91;
  --muted-2: #827a67;

  --line: rgba(246, 241, 223, .13);
  --line-strong: rgba(246, 241, 223, .25);

  --primary: #d7ff63;
  --primary-2: #99c536;
  --primary-soft: rgba(215, 255, 99, .12);

  --accent: #ff6a2a;
  --accent-soft: rgba(255, 106, 42, .16);

  --steel: #b7ddcf;
  --steel-soft: rgba(183, 221, 207, .12);

  --ok: #b8ff7a;
  --ok-soft: rgba(184, 255, 122, .14);
  --warn: #ffd36b;
  --warn-soft: rgba(255, 211, 107, .15);
  --bad: #ff776d;
  --bad-soft: rgba(255, 119, 109, .14);

  --shadow: 0 26px 90px rgba(0, 0, 0, .42);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, .26);

  --radius: 22px;
  --radius-sm: 16px;
  --radius-xs: 999px;

  --focus: 0 0 0 3px rgba(215, 255, 99, .35), 0 0 0 1px rgba(246, 241, 223, .72);
  --ease: cubic-bezier(.22, .78, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --hero-glow-a: rgba(215, 255, 99, .34);
  --hero-glow-b: rgba(255, 106, 42, .24);
  --hero-glow-c: rgba(183, 221, 207, .20);
}

html {
  background: var(--bg);
  scroll-padding-top: 94px;
}

body {
  color: var(--ink-2);
  background:
    radial-gradient(circle at 12% 8%, rgba(215, 255, 99, .16), transparent 25rem),
    radial-gradient(circle at 82% 2%, rgba(255, 106, 42, .16), transparent 27rem),
    radial-gradient(circle at 70% 84%, rgba(183, 221, 207, .10), transparent 32rem),
    linear-gradient(180deg, #080906 0%, #0d110b 42%, #070806 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, rgba(246, 241, 223, .055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(246, 241, 223, .043) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 36%, rgba(215, 255, 99, .10) 43%, transparent 52% 100%),
    linear-gradient(245deg, transparent 0 42%, rgba(255, 106, 42, .09) 49%, transparent 58% 100%);
  background-size: 74px 74px, 74px 74px, 160% 160%, 150% 150%;
  background-position: center top, center top, 0% 0%, 100% 0%;
  opacity: .72;
  animation: iziInfiniteField 18s linear infinite;
}

body::after {
  z-index: -1;
  opacity: .18;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .9) 0 1px, transparent 1.4px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, .7) 0 1px, transparent 1.4px);
  background-size: 34px 34px, 47px 47px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 72%);
}

p {
  color: var(--muted);
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.15rem, 14vw, 8.6rem);
  line-height: .82;
  letter-spacing: -.085em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.28rem, 4.2vw, 2.05rem);
  letter-spacing: -.055em;
}

h3 {
  letter-spacing: -.035em;
}

a {
  text-decoration-color: rgba(215, 255, 99, .45);
  text-underline-offset: .18em;
}

input,
textarea,
select {
  min-height: 50px;
  color: var(--ink);
  border-color: rgba(246, 241, 223, .14);
  background:
    linear-gradient(180deg, rgba(246, 241, 223, .095), rgba(246, 241, 223, .045)),
    rgba(7, 8, 6, .72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 1px 0 rgba(255, 255, 255, .03);
}

input::placeholder,
textarea::placeholder {
  color: rgba(179, 170, 145, .66);
}

select {
  color-scheme: dark;
}

.skip-link {
  background: var(--primary);
  color: #11150f;
  border-color: rgba(215, 255, 99, .42);
}

.topbar {
  padding-top: .78rem;
  padding-bottom: .78rem;
  background:
    linear-gradient(180deg, rgba(7, 8, 6, .86), rgba(7, 8, 6, .62));
  border-bottom-color: rgba(246, 241, 223, .11);
  backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .035);
}

.brand {
  gap: .74rem;
}

.brand-copy small,
.topbar-nav span,
.pill,
.step-pill,
.badge,
.hero-kicker,
.solve-eyebrow,
.task-kicker,
.module-eyebrow,
.system-label,
.progress-top,
.stat-card small,
.metric small,
.summary-row small,
.solve-answer-grid dt,
.section-index,
.step-index {
  font-family: var(--font-mono);
  letter-spacing: .105em;
  text-transform: uppercase;
}

.topbar-nav span,
.pill,
.step-pill,
.badge {
  min-height: 31px;
  border-color: rgba(246, 241, 223, .14);
  background: rgba(246, 241, 223, .055);
  color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.pill.ok {
  background: var(--ok-soft);
  border-color: rgba(184, 255, 122, .24);
  color: var(--ok);
}

.pill.warn {
  background: var(--warn-soft);
  border-color: rgba(255, 211, 107, .25);
  color: var(--warn);
}

.pill.bad {
  background: var(--bad-soft);
  border-color: rgba(255, 119, 109, .28);
  color: var(--bad);
}

.pill.muted {
  background: rgba(246, 241, 223, .055);
  color: var(--muted);
}

.app {
  width: min(1180px, calc(100% - 1rem));
  margin-top: .9rem;
}

.card,
.task-card,
.solve-task,
.file-preview-panel,
.ready-link-card,
.payment-card,
.stat-card,
.metric,
.summary-row,
.file-row,
.status-row,
.timeline-row,
.empty,
.choice-card,
.answer-choice,
.solve-choice {
  border-color: rgba(246, 241, 223, .13);
  background:
    linear-gradient(180deg, rgba(246, 241, 223, .09), rgba(246, 241, 223, .04)),
    rgba(14, 17, 12, .78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    var(--shadow-soft);
}

.card {
  border-radius: var(--radius);
}

.card.soft {
  background:
    linear-gradient(180deg, rgba(215, 255, 99, .07), rgba(246, 241, 223, .035)),
    rgba(9, 11, 8, .72);
}

.hero {
  position: relative;
  isolation: isolate;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1rem calc(50% - 50vw) auto;
  height: min(72vh, 760px);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 32%, var(--hero-glow-a), transparent 24rem),
    radial-gradient(circle at 78% 8%, var(--hero-glow-b), transparent 22rem),
    linear-gradient(100deg, transparent 0 18%, rgba(215, 255, 99, .18) 24%, transparent 32% 100%),
    linear-gradient(260deg, transparent 0 44%, rgba(255, 106, 42, .15) 52%, transparent 60% 100%);
  filter: blur(.2px);
  opacity: .92;
  animation: iziHeroFlow 16s var(--ease) infinite alternate;
}

.hero-card,
.solve-hero,
.public-head {
  position: relative;
  min-height: clamp(560px, 74vh, 820px);
  overflow: hidden;
  border-color: rgba(215, 255, 99, .21);
  background:
    radial-gradient(circle at 18% 16%, rgba(215, 255, 99, .25), transparent 19rem),
    radial-gradient(circle at 88% 12%, rgba(255, 106, 42, .23), transparent 20rem),
    linear-gradient(122deg, rgba(246, 241, 223, .13), rgba(246, 241, 223, .04) 38%, rgba(7, 8, 6, .56)),
    rgba(10, 12, 8, .86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 38px 120px rgba(0, 0, 0, .48);
}

.solve-hero::before,
.public-head::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      100deg,
      transparent 0 7%,
      rgba(215, 255, 99, .12) 7.5% 8.7%,
      transparent 9.8% 16%
    ),
    repeating-linear-gradient(
      260deg,
      transparent 0 10%,
      rgba(255, 106, 42, .10) 10.5% 12%,
      transparent 13.5% 22%
    );
  opacity: .62;
  transform: rotate(-6deg);
  animation: iziInfiniteBands 20s linear infinite;
}

.hero-card::after,
.solve-hero::after,
.public-head::after {
  inset: auto 1.15rem .45rem 1.15rem;
  width: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 255, 99, .68), rgba(255, 106, 42, .44), transparent);
  opacity: .95;
}

.hero-copy {
  max-width: 920px;
  align-self: end;
}

.hero-copy p {
  max-width: 680px;
}

.hero-copy > p:not(.hero-kicker),
.solve-hero__content > p:not(.solve-eyebrow),
.public-head p:not(.hero-kicker) {
  color: rgba(246, 241, 223, .78);
  font-size: clamp(1.02rem, 2.7vw, 1.32rem);
  line-height: 1.5;
}

.hero-kicker,
.solve-eyebrow,
.module-eyebrow,
.task-kicker {
  color: var(--primary);
  font-size: .72rem;
  font-weight: 900;
}

.hero-kicker::before,
.solve-eyebrow::before,
.module-eyebrow::before,
.task-kicker::before {
  content: "/// ";
  color: var(--accent);
}

.hero-system {
  max-width: 820px;
  gap: .55rem;
}

.system-step {
  border-color: rgba(246, 241, 223, .13);
  background:
    linear-gradient(180deg, rgba(246, 241, 223, .09), rgba(246, 241, 223, .035)),
    rgba(7, 8, 6, .58);
  backdrop-filter: blur(14px);
}

.system-step small {
  color: var(--primary);
}

.system-step strong {
  color: var(--ink);
}

.hero-stats {
  align-self: end;
}

.stat-card {
  background:
    linear-gradient(180deg, rgba(215, 255, 99, .10), rgba(246, 241, 223, .035)),
    rgba(7, 8, 6, .62);
}

.stat-card small,
.metric small,
.summary-row small {
  color: var(--muted-2);
}

.stat-card strong,
.metric strong,
.summary-row strong {
  color: var(--ink);
}

.hero-orbit {
  top: clamp(1rem, 4vw, 2.4rem);
  right: clamp(1rem, 5vw, 3rem);
  width: min(34vw, 330px);
  opacity: .92;
}

.hero-orbit__ring {
  inset: 8%;
  border-color: rgba(215, 255, 99, .32);
  background:
    radial-gradient(circle, transparent 42%, rgba(215, 255, 99, .08) 43% 44%, transparent 45%),
    linear-gradient(rgba(215, 255, 99, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 255, 99, .12) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow:
    inset 0 0 44px rgba(215, 255, 99, .09),
    0 0 70px rgba(215, 255, 99, .09);
  animation: iziOrbitSpin 18s linear infinite;
}

.hero-orbit__node {
  background: var(--primary);
  box-shadow:
    0 0 0 7px rgba(215, 255, 99, .10),
    0 0 34px rgba(215, 255, 99, .36);
}

.hero-orbit__node--b {
  background: var(--accent);
  box-shadow:
    0 0 0 7px rgba(255, 106, 42, .12),
    0 0 34px rgba(255, 106, 42, .35);
}

.header,
.module-head,
.task-head,
.solve-task__head,
.solve-section-head,
.solve-result__top,
.solve-submit-bar {
  gap: 1rem;
}

.section-index,
.step-index {
  border-color: rgba(215, 255, 99, .25);
  background: rgba(215, 255, 99, .09);
  color: var(--primary);
}

.btn {
  min-height: 48px;
  border-radius: 999px;
  padding: .82rem 1.15rem;
  letter-spacing: .035em;
  text-transform: uppercase;
  box-shadow: none;
}

.btn.primary {
  color: #0b0e08;
  border-color: rgba(215, 255, 99, .76);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .65), transparent 23%),
    linear-gradient(135deg, #f1ff9d, var(--primary) 52%, var(--primary-2));
  box-shadow:
    0 0 0 1px rgba(215, 255, 99, .17),
    0 18px 48px rgba(215, 255, 99, .20);
}

.btn.secondary {
  color: var(--ink);
  border-color: rgba(246, 241, 223, .18);
  background:
    linear-gradient(180deg, rgba(246, 241, 223, .10), rgba(246, 241, 223, .04)),
    rgba(7, 8, 6, .62);
}

.btn.ghost {
  color: var(--primary);
}

.btn.ghost:hover:not(:disabled) {
  background: rgba(215, 255, 99, .10);
}

.btn.danger {
  color: var(--bad);
  border-color: rgba(255, 119, 109, .28);
  background: rgba(255, 119, 109, .08);
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(246, 241, 223, .08),
    0 20px 56px rgba(0, 0, 0, .30);
}

.btn.primary:hover:not(:disabled) {
  box-shadow:
    0 0 0 1px rgba(215, 255, 99, .30),
    0 22px 60px rgba(215, 255, 99, .24);
}

.progress-shell {
  border-color: rgba(215, 255, 99, .16);
}

.progress-bar {
  height: 7px;
  background: rgba(246, 241, 223, .10);
}

.progress-bar span {
  background: linear-gradient(90deg, var(--primary), #f8ffaf, var(--accent));
  box-shadow: 0 0 28px rgba(215, 255, 99, .24);
}

.step-row {
  background: rgba(246, 241, 223, .025);
}

.step-row.is-active {
  border-color: rgba(215, 255, 99, .22);
  background: rgba(215, 255, 99, .09);
}

.step-row.is-active .step-index {
  background: var(--primary);
  border-color: var(--primary);
  color: #0b0e08;
  box-shadow: 0 0 0 5px rgba(215, 255, 99, .12);
}

.step-row.is-done {
  color: var(--ok);
}

.step-row.is-done .step-index {
  background: var(--ok-soft);
  border-color: rgba(184, 255, 122, .25);
  color: var(--ok);
}

.choice-card {
  min-height: 100%;
}

.choice-card::before {
  border-color: rgba(246, 241, 223, .25);
  background: rgba(7, 8, 6, .72);
}

.choice-card:hover,
.answer-choice:hover,
.solve-choice:hover {
  border-color: rgba(215, 255, 99, .36);
  background:
    linear-gradient(180deg, rgba(215, 255, 99, .09), rgba(246, 241, 223, .04)),
    rgba(12, 15, 10, .82);
}

.choice input:checked + .choice-card,
.solve-choice:has(input:checked) {
  border-color: rgba(215, 255, 99, .62);
  background:
    linear-gradient(180deg, rgba(215, 255, 99, .13), rgba(246, 241, 223, .045)),
    rgba(12, 15, 10, .88);
  box-shadow:
    0 0 0 3px rgba(215, 255, 99, .11),
    var(--shadow-soft);
}

.choice input:checked + .choice-card::before {
  border-color: var(--primary);
  background: radial-gradient(circle, var(--primary) 0 48%, transparent 51%);
}

.drop {
  border-color: rgba(215, 255, 99, .32);
  background:
    radial-gradient(circle at 18% 16%, rgba(215, 255, 99, .13), transparent 18rem),
    linear-gradient(135deg, rgba(246, 241, 223, .08), rgba(246, 241, 223, .03)),
    linear-gradient(90deg, rgba(215, 255, 99, .12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(215, 255, 99, .09) 1px, transparent 1px),
    rgba(7, 8, 6, .72);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
}

.drop:hover,
.drop.is-dragover {
  border-color: rgba(215, 255, 99, .76);
  box-shadow:
    inset 0 0 0 1px rgba(215, 255, 99, .12),
    0 24px 70px rgba(0, 0, 0, .34);
}

.drop-icon,
.file-glyph {
  color: #0b0e08;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .68), transparent 28%),
    linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 34px rgba(215, 255, 99, .16);
}

.attachment-preview {
  background:
    radial-gradient(circle at 20% 18%, rgba(215, 255, 99, .16), transparent 16rem),
    linear-gradient(90deg, rgba(246, 241, 223, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(246, 241, 223, .06) 1px, transparent 1px),
    rgba(7, 8, 6, .72);
  background-size: auto, 18px 18px, 18px 18px, auto;
}

.attachment-tile:hover,
.attachment-tile:focus-within {
  border-color: rgba(215, 255, 99, .36);
  box-shadow: var(--shadow-soft);
}

.mini-btn {
  border-color: rgba(246, 241, 223, .14);
  background: rgba(246, 241, 223, .065);
  color: var(--ink-2);
}

.mini-btn:hover,
.mini-btn:focus-visible {
  border-color: rgba(215, 255, 99, .45);
  background: rgba(215, 255, 99, .11);
  color: var(--primary);
}

.notice {
  border-color: rgba(246, 241, 223, .13);
  background:
    linear-gradient(180deg, rgba(246, 241, 223, .09), rgba(246, 241, 223, .04)),
    rgba(7, 8, 6, .74);
}

.notice.info {
  color: var(--steel);
  background: var(--steel-soft);
  border-color: rgba(183, 221, 207, .22);
}

.notice.ok {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: rgba(184, 255, 122, .22);
}

.notice.warn {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: rgba(255, 211, 107, .22);
}

.notice.error {
  color: var(--bad);
  background: var(--bad-soft);
  border-color: rgba(255, 119, 109, .25);
}

.empty {
  color: var(--muted);
  border-color: rgba(246, 241, 223, .14);
  background:
    linear-gradient(180deg, rgba(246, 241, 223, .07), rgba(246, 241, 223, .03)),
    rgba(7, 8, 6, .58);
  margin-top: 5px;
}

.spinner {
  border-color: rgba(215, 255, 99, .20);
  border-top-color: var(--primary);
}

.loader-track {
  background: rgba(246, 241, 223, .10);
}

.loader-track span {
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.status-dot {
  background: var(--muted-2);
  box-shadow: 0 0 0 4px rgba(246, 241, 223, .08);
}

.status-dot.active {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(255, 211, 107, .12);
}

.status-dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(184, 255, 122, .13);
}

.status-dot.bad {
  background: var(--bad);
  box-shadow: 0 0 0 4px rgba(255, 119, 109, .13);
}

.solve-shell,
.public-shell {
  position: relative;
  isolation: isolate;
}

.solve-hero {
  min-height: auto;
}

.solve-hero__content h1 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 10vw, 6.7rem);
}

.solve-hero__meta {
  position: relative;
  z-index: 1;
  display: grid;
}

.solve-layout {
  gap: 1rem;
}

.solve-submit-bar {
  border-color: rgba(215, 255, 99, .18);
  background:
    linear-gradient(135deg, rgba(215, 255, 99, .10), rgba(255, 106, 42, .06)),
    rgba(7, 8, 6, .68);
}

.solve-score {
  background:
    radial-gradient(circle closest-side, #11150f 68%, transparent 70%),
    conic-gradient(var(--primary) var(--score), rgba(246, 241, 223, .12) 0);
  box-shadow:
    inset 0 0 0 1px rgba(246, 241, 223, .12),
    0 0 46px rgba(215, 255, 99, .12);
}

.solve-result-badge--correct {
  background: var(--ok-soft);
  color: var(--ok);
}

.solve-result-badge--partial {
  background: var(--warn-soft);
  color: var(--warn);
}

.solve-result-badge--incorrect {
  background: var(--bad-soft);
  color: var(--bad);
}

.link-input,
.input-preview {
  color: var(--ink);
}

.file-preview-image {
  background: rgba(7, 8, 6, .72);
}

.reveal-on-scroll {
  transform: translateY(18px) scale(.985);
  transition:
    opacity .58s var(--ease-out),
    transform .58s var(--ease-out),
    border-color .18s var(--ease),
    box-shadow .18s var(--ease),
    background-color .18s var(--ease);
}

.reveal-on-scroll.is-visible {
  transform: translateY(0) scale(1);
}

@keyframes iziInfiniteField {
  0% {
    background-position: center top, center top, 0% 0%, 100% 0%;
  }
  100% {
    background-position: center top, center top, 120% 80%, -40% 60%;
  }
}

@keyframes iziHeroFlow {
  0% {
    opacity: .72;
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes iziInfiniteBands {
  0% {
    transform: translate3d(-4%, -2%, 0) rotate(-6deg);
  }
  100% {
    transform: translate3d(4%, 2%, 0) rotate(-6deg);
  }
}

@keyframes iziOrbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 560px) {
  .app {
    width: min(1180px, calc(100% - 1.5rem));
  }

  .hero-stats,
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .app {
    width: min(1180px, calc(100% - 2.25rem));
    margin-top: 1.2rem;
  }

  .card {
    padding: clamp(1.15rem, 2.2vw, 1.55rem);
  }

  .hero {
    gap: 1.1rem;
  }

  .hero-card,
  .solve-hero,
  .public-head {
    padding: clamp(1.35rem, 3vw, 2rem);
  }
}

@media (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1.42fr) minmax(300px, .58fr);
  }

  .hero-card {
    min-height: clamp(620px, 78vh, 860px);
  }

  .system-aside {
    min-height: clamp(620px, 78vh, 860px);
  }

  .grid.two {
    grid-template-columns: minmax(0, 1.42fr) minmax(300px, .58fr);
  }
}

@media (max-width: 980px) {
  .hero-orbit {
    display: block;
    width: min(42vw, 220px);
    opacity: .48;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 92px;
  }

  body::before {
    background-size: 54px 54px, 54px 54px, 180% 180%, 170% 170%;
    opacity: .58;
  }

  .topbar {
    padding: .62rem .72rem;
  }

  .topbar-nav span {
    min-height: 28px;
  }

  .app {
    width: min(100% - .86rem, 1180px);
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.85rem, 17vw, 4.6rem);
    line-height: .86;
  }

  .hero-card,
  .solve-hero,
  .public-head {
    min-height: 560px;
    border-radius: 20px;
  }

  .hero-copy {
    padding-top: 4.2rem;
  }

  .hero-system {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn {
    width: 100%;
  }

  .btn.small {
    width: auto;
  }

  .solve-hero__content h1 {
    max-width: 11ch;
    font-size: clamp(2.35rem, 13vw, 4rem);
  }
}

@media (max-width: 430px) {
  .app {
    width: min(100% - .72rem, 1180px);
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 3.7rem);
  }

  h2 {
    font-size: 1.16rem;
  }

  p {
    font-size: .94rem;
  }

  .hero-card,
  .solve-hero,
  .public-head {
    min-height: 530px;
  }

  .card,
  .task-card,
  .solve-task,
  .solve-submit-bar {
    padding: .78rem;
    border-radius: 18px;
  }

  input,
  textarea,
  select {
    padding: .76rem .82rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .btn:hover:not(:disabled),
  .attachment-tile:hover,
  .solve-choice:hover,
  .choice-card:hover,
  .drop:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero::before,
  .solve-hero::before,
  .public-head::before,
  .hero-orbit__ring {
    animation: none !important;
  }

  .reveal-on-scroll,
  .attachment-tile,
  .notice,
  .ready-link-card,
  .feedback-card,
  .payment-card,
  .file-preview-panel {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   izitest.pl — warm gradient redesign patch
   Scope: UI/UX only. No business logic, API, upload, payment or polling changes.
   Paste at the very end of static/main.css.
   ========================================================================== */

:root {
  color-scheme: light;

  --font-sans: Inter, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", Consolas, "Liberation Mono", ui-monospace, monospace;

  --bg: #f26422;
  --bg-2: #f8a327;

  --surface: rgba(255, 247, 226, .82);
  --surface-solid: #fff7e2;
  --surface-2: rgba(255, 238, 199, .72);
  --surface-3: rgba(255, 219, 156, .58);

  --ink: #24120a;
  --ink-2: #3c1b0d;
  --muted: #7b4c25;
  --muted-2: #9f6d38;

  --line: rgba(76, 32, 12, .16);
  --line-strong: rgba(76, 32, 12, .28);

  --primary: #24120a;
  --primary-2: #5b220d;
  --primary-soft: rgba(36, 18, 10, .08);

  --accent: #f26422;
  --accent-2: #ffbd37;
  --accent-soft: rgba(242, 100, 34, .13);

  --steel: #24514f;
  --steel-soft: rgba(36, 81, 79, .10);

  --ok: #245a34;
  --ok-soft: rgba(36, 90, 52, .12);
  --warn: #8a5b0b;
  --warn-soft: rgba(138, 91, 11, .12);
  --bad: #913322;
  --bad-soft: rgba(145, 51, 34, .12);

  --shadow: 0 28px 90px rgba(76, 32, 12, .20);
  --shadow-soft: 0 16px 44px rgba(76, 32, 12, .13);

  --radius: 26px;
  --radius-sm: 18px;
  --radius-xs: 999px;

  --focus: 0 0 0 3px rgba(255, 255, 255, .62), 0 0 0 5px rgba(36, 18, 10, .42);
  --ease: cubic-bezier(.22, .78, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html {
  background: #f26422;
  scroll-padding-top: 92px;
}

body {
  color: var(--ink-2);
  background:
    radial-gradient(circle at 34% 42%, rgba(255, 219, 86, .92), transparent 22rem),
    radial-gradient(circle at 72% 34%, rgba(255, 112, 25, .92), transparent 30rem),
    radial-gradient(circle at 24% 76%, rgba(131, 30, 15, .24), transparent 27rem),
    linear-gradient(115deg, #d73516 0%, #f26422 38%, #f8a327 70%, #ffcc52 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .13) 1px, transparent 1px),
    radial-gradient(circle at 48% 42%, rgba(255, 246, 210, .45), transparent 18rem);
  background-size: 68px 68px, 68px 68px, auto;
  opacity: .20;
  animation: iziWarmGridDrift 22s linear infinite;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px),
    radial-gradient(circle at 50% 46%, rgba(72, 20, 8, .24), transparent 16rem);
  background-size: 10px 100%, auto;
  opacity: .18;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .36) 55%, transparent 100%);
}

p {
  color: var(--muted);
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.05rem, 8.8vw, 4.15rem);
  line-height: 1;
  letter-spacing: -0.052em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.2rem, 3.4vw, 1.82rem);
  line-height: 1.05;
  letter-spacing: -.052em;
}

h3 {
  letter-spacing: -.03em;
}

input,
textarea,
select {
  min-height: 50px;
  color: var(--ink);
  border-color: rgba(76, 32, 12, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 247, 226, .86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 1px 0 rgba(76, 32, 12, .04);
}

input::placeholder,
textarea::placeholder {
  color: rgba(123, 76, 37, .68);
}

.skip-link {
  background: var(--ink);
  color: var(--surface-solid);
  border-color: rgba(255, 255, 255, .26);
}

.topbar {
  padding: .78rem max(.82rem, calc((100vw - 1180px) / 2));
  background: radial-gradient(1200px 420px at 15% 0%, rgba(56, 189, 248, .10), transparent 60%),
    radial-gradient(900px 320px at 90% 10%, rgba(34, 197, 94, .08), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #070b12 100%);
  backdrop-filter: blur(22px) saturate(1.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18);
}

.brand-copy strong {
  color: rgb(255, 255, 255);
  font-size: 1.18rem;
  letter-spacing: -.02em; 
  /* letter-spacing: .125em; */
}

.brand-copy small {
  color: rgba(255, 247, 226, .78);
}

.topbar-nav {
  min-height: 1px;
}

.topbar-nav:empty {
  display: none;
}

.topbar-nav span {
  display: none;
}

.app {
  width: min(1180px, calc(100% - 1rem));
  margin-top: .9rem;
}

.hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1rem calc(50% - 50vw) auto;
  height: min(78vh, 760px);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 38%, rgba(255, 213, 72, .80), transparent 19rem),
    radial-gradient(circle at 70% 30%, rgba(255, 95, 21, .72), transparent 27rem),
    linear-gradient(100deg, transparent 0 22%, rgba(255, 243, 188, .28) 29%, transparent 37% 100%);
  filter: blur(.2px);
  opacity: .88;
  animation: iziWarmHeroShift 16s var(--ease) infinite alternate;
}

.card,
.task-card,
.solve-task,
.file-preview-panel,
.ready-link-card,
.payment-card,
.stat-card,
.metric,
.summary-row,
.file-row,
.status-row,
.timeline-row,
.empty,
.choice-card,
.answer-choice,
.solve-choice {
  border-color: rgba(76, 32, 12, .14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .70), rgba(255, 247, 226, .56)),
    rgba(255, 247, 226, .72);
}

.card {
  border-radius: var(--radius);
}

.card.soft {
  background:
    linear-gradient(180deg, rgba(255, 247, 226, .76), rgba(255, 238, 199, .64)),
    rgba(255, 247, 226, .72);
}

.hero-card {
  min-height: clamp(520px, 70vh, 760px);
  display: grid;
  align-content: end;
  overflow: hidden;
  color: #fff7e2;
  border-color: rgba(255, 255, 255, .26);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 225, 89, .78), transparent 16rem),
    radial-gradient(circle at 63% 43%, rgba(83, 20, 9, .26), transparent 14rem),
    radial-gradient(circle at 82% 30%, rgba(255, 98, 19, .72), transparent 22rem),
    linear-gradient(118deg, #d83416 0%, #f26422 42%, #f8a327 76%, #ffca4b 100%);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  width: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  opacity: .75;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 10px;
  /* padding-top: clamp(1.5rem, 2vw, 1rem);
  padding-bottom: clamp(2.4rem, -1vw, 8rem); */
}

.hero-copy h1 {
  color: #fff7e2;
  text-shadow: 0 18px 46px rgba(76, 32, 12, .18);
}

.hero-copy p {
  max-width: 640px;
}

.hero-copy > p:not(.hero-kicker) {
  color: rgba(255, 247, 226, .92);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  line-height: 1.52;
  text-shadow: 0 12px 34px rgba(76, 32, 12, .18);
}

.hero-kicker,
.solve-eyebrow,
.module-eyebrow,
.task-kicker {
  color: inherit;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.hero-kicker {
  color: rgba(255, 247, 226, .94);
}

.module-eyebrow,
.task-kicker,
.solve-eyebrow {
  color: #8d3212;
}

.hero-kicker::before,
.module-eyebrow::before,
.task-kicker::before,
.solve-eyebrow::before {
  content: "";
}

.hero-system,
.hero-stats {
  display: none !important;
}

.hero-orbit {
  position: absolute;
  right: clamp(0rem, 2vw, 0rem);
  top: clamp(4.5rem, 11vw, 3.5rem);
  width: min(38vw, 340px);
  opacity: .58;
}

.hero-orbit__ring {
  inset: 8%;
  border-color: rgba(255, 247, 226, .42);
  background:
    radial-gradient(circle, transparent 42%, rgba(255, 247, 226, .28) 43% 44%, transparent 45%),
    linear-gradient(rgba(255, 247, 226, .24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 226, .18) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow:
    inset 0 0 44px rgba(255, 247, 226, .14),
    0 0 70px rgba(255, 247, 226, .14);
  animation: iziOrbitSpin 20s linear infinite;
}

.hero-orbit__node {
  background: #fff7e2;
  box-shadow:
    0 0 0 7px rgba(255, 247, 226, .16),
    0 0 34px rgba(255, 247, 226, .34);
}

.hero-orbit__node--b {
  background: #24120a;
  box-shadow:
    0 0 0 7px rgba(36, 18, 10, .12),
    0 0 34px rgba(36, 18, 10, .20);
}

.system-aside {
  background:
    linear-gradient(180deg, rgba(255, 247, 226, .88), rgba(255, 238, 199, .74)),
    rgba(255, 247, 226, .72);
}

.header,
.module-head,
.task-head,
.solve-task__head,
.solve-section-head,
.solve-result__top,
.solve-submit-bar {
  gap: 1rem;
}

.section-index,
.step-index {
  border-color: rgba(76, 32, 12, .22);
  background: rgba(255, 255, 255, .48);
  color: var(--ink);
}

.topbar-nav span,
.pill,
.step-pill,
.badge {
  min-height: 31px;
  border-color: rgba(76, 32, 12, .14);
  background: rgba(255, 247, 226, .62);
  color: var(--ink-2);
  font-family: var(--font-mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.pill.ok {
  background: var(--ok-soft);
  border-color: rgba(36, 90, 52, .22);
  color: var(--ok);
}

.pill.warn {
  background: var(--warn-soft);
  border-color: rgba(138, 91, 11, .22);
  color: var(--warn);
}

.pill.bad {
  background: var(--bad-soft);
  border-color: rgba(145, 51, 34, .22);
  color: var(--bad);
}

.btn {
  min-height: 48px;
  border-radius: 999px;
  padding: .82rem 1.12rem;
  font-size: .86rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.btn.primary {
  color: #fff7e2;
  border-color: rgba(36, 18, 10, .86);
  background: radial-gradient(1200px 420px at 15% 0%, rgba(56, 189, 248, .10), transparent 60%),
    radial-gradient(900px 320px at 90% 10%, rgba(34, 197, 94, .08), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #070b12 100%);
  box-shadow: 0 18px 42px rgba(76, 32, 12, .24);
}

.btn.secondary {
  color: var(--ink);
  border-color: rgba(76, 32, 12, .22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 247, 226, .72));
}

.btn.ghost {
  color: #5b220d;
}

.btn.ghost:hover:not(:disabled) {
  background: rgba(36, 18, 10, .07);
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(76, 32, 12, .18);
}

.progress-shell {
  border-color: rgba(76, 32, 12, .14);
}

.progress-bar {
  height: 7px;
  background: rgba(76, 32, 12, .10);
}

.progress-bar span {
  background: linear-gradient(90deg, #24120a, #8d3212, #f26422);
  box-shadow: 0 0 24px rgba(242, 100, 34, .18);
}

.step-row.is-active {
  border-color: rgba(141, 50, 18, .18);
  background: rgba(242, 100, 34, .08);
}

.step-row.is-active .step-index {
  background: radial-gradient(1200px 420px at 15% 0%, rgba(56, 189, 248, .10), transparent 60%),
    radial-gradient(900px 320px at 90% 10%, rgba(34, 197, 94, .08), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #070b12 100%);
  border-color: var(--ink);
  color: var(--surface-solid);
  box-shadow: 0 0 0 5px rgba(36, 18, 10, .10);
}

.choice-card:hover,
.answer-choice:hover,
.solve-choice:hover {
  border-color: rgba(141, 50, 18, .28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(255, 234, 190, .62)),
    rgba(255, 247, 226, .76);
}

.choice input:checked + .choice-card,
.solve-choice:has(input:checked) {
  border-color: rgba(141, 50, 18, .46);
  background:
    linear-gradient(180deg, rgba(255, 224, 148, .48), rgba(255, 247, 226, .76)),
    rgba(255, 247, 226, .78);
  box-shadow:
    0 0 0 3px rgba(242, 100, 34, .10),
    var(--shadow-soft);
}

.choice input:checked + .choice-card::before {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--ink) 0 48%, transparent 51%);
}

.drop {
  border-color: rgba(141, 50, 18, .34);
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 214, 72, .28), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 238, 199, .54)),
    linear-gradient(90deg, rgba(141, 50, 18, .11) 1px, transparent 1px),
    linear-gradient(0deg, rgba(141, 50, 18, .09) 1px, transparent 1px);
  background-size: auto, auto, 38px 38px, 38px 38px;
}

.drop:hover,
.drop.is-dragover {
  border-color: rgba(141, 50, 18, .64);
  box-shadow:
    inset 0 0 0 1px rgba(141, 50, 18, .10),
    0 22px 56px rgba(76, 32, 12, .16);
}

.drop-icon,
.file-glyph {
  color: #fff7e2;
  background: radial-gradient(1200px 420px at 15% 0%, rgba(56, 189, 248, .10), transparent 60%),
    radial-gradient(900px 320px at 90% 10%, rgba(34, 197, 94, .08), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #070b12 100%);
}

.notice.info {
  background: var(--steel-soft);
  color: var(--steel);
  border-color: rgba(36, 81, 79, .18);
}

.notice.ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: rgba(36, 90, 52, .18);
}

.notice.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: rgba(138, 91, 11, .18);
}

.notice.error {
  background: var(--bad-soft);
  color: var(--bad);
  border-color: rgba(145, 51, 34, .20);
}

.spinner {
  border-color: rgba(76, 32, 12, .18);
  border-top-color: var(--ink);
}

.loader-track {
  background: rgba(76, 32, 12, .10);
}

.loader-track span {
  background: linear-gradient(90deg, transparent, #24120a, #f26422, transparent);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(10px) scale(.995);
  transition:
    opacity .34s var(--ease-out),
    transform .38s var(--ease-out),
    border-color .18s var(--ease),
    box-shadow .18s var(--ease),
    background-color .18s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.solve-hero,
.public-head {
  min-height: auto;
  color: #fff7e2;
  border-color: rgba(255, 255, 255, .24);
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 219, 86, .62), transparent 16rem),
    radial-gradient(circle at 82% 28%, rgba(255, 96, 20, .64), transparent 22rem),
    linear-gradient(118deg, #d83416 0%, #f26422 48%, #f8a327 100%);
}

.solve-hero h1,
.public-head h1 {
  color: #fff7e2;
  max-width: 13ch;
  font-size: clamp(2.3rem, 7.4vw, 4.6rem);
}

.solve-hero p,
.public-head p {
  color: rgba(255, 247, 226, .90);
}

.solve-hero .pill,
.public-head .pill {
  background: rgba(255, 247, 226, .84);
  color: #24120a;
}

.solve-shell .hero-system {
  display: none !important;
}

.solve-submit-bar {
  border-color: rgba(141, 50, 18, .18);
  background:
    linear-gradient(135deg, rgba(255, 226, 162, .52), rgba(255, 247, 226, .70)),
    rgba(255, 247, 226, .72);
}

.solve-score {
  background:
    radial-gradient(circle closest-side, #fff7e2 68%, transparent 70%),
    conic-gradient(#24120a var(--score), rgba(76, 32, 12, .12) 0);
  box-shadow:
    inset 0 0 0 1px rgba(76, 32, 12, .12),
    0 16px 44px rgba(76, 32, 12, .14);
}

@keyframes iziWarmGridDrift {
  0% {
    background-position: center top, center top, center center;
  }
  100% {
    background-position: 68px 68px, 68px 68px, center center;
  }
}

@keyframes iziWarmHeroShift {
  0% {
    opacity: .72;
    transform: translate3d(-1.2%, -1%, 0) scale(1);
  }
  100% {
    opacity: .98;
    transform: translate3d(1.4%, 1%, 0) scale(1.035);
  }
}

@keyframes iziWarmBands {
  0% {
    transform: translate3d(-4%, -2%, 0) rotate(-4deg);
  }
  100% {
    transform: translate3d(4%, 2%, 0) rotate(-4deg);
  }
}

@keyframes iziOrbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 560px) {
  .app {
    width: min(1180px, calc(100% - 1.35rem));
  }
}

@media (min-width: 760px) {
  .app {
    width: min(1180px, calc(100% - 2rem));
  }

  .hero-card {
    padding: clamp(1.4rem, 3vw, 2.2rem);
  }

  .hero-copy {
    padding-left: clamp(.2rem, 2vw, 1rem);
  }
}

@media (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1.46fr) minmax(292px, -0.01fr);
  }

  .hero-card,
  .system-aside {
    min-height: clamp(560px, 72vh, 780px);
  }
}

@media (max-width: 980px) {
  .hero-orbit {
    width: min(45vw, 230px);
    opacity: .36;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  body::before {
    background-size: 52px 52px, 52px 52px, auto;
    opacity: .16;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    padding: .62rem .72rem;
  }

  .app {
    margin-top: .62rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 12vw, 3.65rem);
    line-height: .96;
  }

  .hero-card {
    min-height: 500px;
  }

  .hero-copy {
    padding-top: 1rem;
  }

  .hero-orbit {
    right: -0.5rem;
    top: 2.8rem;
    width: 180px;
  }

  .btn {
    width: 100%;
  }

  .btn.small {
    width: auto;
  }
}

@media (max-width: 430px) {
  .app {
    width: min(100% - .72rem, 1180px);
  }

  h1 {
    font-size: clamp(2.05rem, 11vw, 3rem);
  }

  .hero-card {
    min-height: 470px;
  }

  .card,
  .task-card,
  .solve-task,
  .solve-submit-bar {
    padding: .78rem;
    border-radius: 20px;
  }
}

@media (hover: none), (pointer: coarse) {
  .btn:hover:not(:disabled),
  .attachment-tile:hover,
  .solve-choice:hover,
  .choice-card:hover,
  .drop:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero::before,
  .hero-orbit__ring {
    animation: none !important;
  }

  .reveal-on-scroll,
  .attachment-tile,
  .notice,
  .ready-link-card,
  .payment-card,
  .file-preview-panel {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

.reveal-on-scroll {
  --reveal-y: 10px;
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0) scale(.995);
  transition:
    opacity .34s var(--ease-out),
    transform .38s var(--ease-out),
    border-color .2s var(--ease),
    box-shadow .2s var(--ease),
    background-color .2s var(--ease);
  transition-delay: 0ms;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: var(--reveal-delay, 0ms);
}

.hero-orbit.reveal-on-scroll {
  transform: translate3d(0, var(--reveal-y), 0) scale(.96) rotate(-5deg);
}

.hero-orbit.reveal-on-scroll.is-visible {
  transform: translate3d(0, 0, 0) scale(1) rotate(0);
}

.fx-reactive {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform, box-shadow, border-color;
}

.fx-reactive.btn,
.fx-reactive.choice-card,
.fx-reactive.drop,
.fx-reactive.attachment-tile {
  transition:
    transform .24s var(--ease-out),
    box-shadow .24s var(--ease-out),
    border-color .2s var(--ease),
    background-color .2s var(--ease),
    color .2s var(--ease),
    filter .2s var(--ease);
}

.fx-reactive.btn::after,
.fx-reactive.choice-card::after,
.fx-reactive.drop::after,
.fx-reactive.attachment-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(255, 255, 255, .44), transparent 30%),
    linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, .22) 48%, transparent 64% 100%);
  transform: translateX(-18%);
  transition:
    opacity .28s var(--ease),
    transform .56s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .fx-reactive.btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.012);
    filter: saturate(1.06);
  }

  .fx-reactive.btn.primary:hover:not(:disabled) {
    box-shadow:
      0 24px 58px rgba(76, 32, 12, .28),
      0 0 0 1px rgba(255, 247, 226, .18) inset;
  }

  .fx-reactive.btn.secondary:hover:not(:disabled),
  .fx-reactive.btn.ghost:hover:not(:disabled) {
    box-shadow:
      0 18px 40px rgba(76, 32, 12, .14),
      0 0 0 1px rgba(255, 255, 255, .55) inset;
  }

  .fx-reactive.btn:hover:not(:disabled)::after,
  .fx-reactive.choice-card:hover::after,
  .fx-reactive.drop:hover::after,
  .fx-reactive.attachment-tile:hover::after {
    opacity: .78;
    transform: translateX(0);
  }

  .fx-reactive.btn:active:not(:disabled) {
    transform: translateY(1px) scale(.985);
    transition-duration: .1s;
  }

  .fx-reactive.choice-card:hover,
  .fx-reactive.drop:hover,
  .fx-reactive.attachment-tile:hover {
    transform: translateY(-3px);
    box-shadow:
      0 18px 46px rgba(76, 32, 12, .13),
      0 0 0 1px rgba(255, 255, 255, .5) inset;
  }

  .fx-reactive.attachment-tile:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible,
  .hero-orbit.reveal-on-scroll,
  .hero-orbit.reveal-on-scroll.is-visible {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .fx-reactive,
  .fx-reactive:hover,
  .fx-reactive:active {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .fx-reactive::after {
    display: none !important;
  }
}

/* Sprint 4 visibility patch: viewport toasts and active waiting status. */
.toast-region {
  position: fixed;
  right: clamp(.75rem, 2vw, 1.25rem);
  bottom: clamp(.75rem, 2vw, 1.25rem);
  z-index: 90;
  display: grid;
  width: min(430px, calc(100vw - 1rem));
  pointer-events: none;
}

.toast.notice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .74rem;
  min-height: 62px;
  margin: 0;
  padding: .92rem 1rem 1rem;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  border-radius: min(var(--radius-sm), 18px);
  border-color: rgba(36, 18, 10, .22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 247, 226, .82)),
    rgba(255, 247, 226, .92);
  color: var(--ink);
  box-shadow:
    0 22px 60px rgba(76, 32, 12, .24),
    0 0 0 1px rgba(255, 255, 255, .42) inset;
  backdrop-filter: blur(18px) saturate(1.15);
  animation: toastIn .24s var(--ease-out) both;
}

.toast.notice:focus-visible {
  outline: none;
  box-shadow:
    var(--focus),
    0 22px 60px rgba(76, 32, 12, .24);
}

.toast.notice.ok {
  border-color: rgba(36, 90, 52, .24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(232, 255, 219, .82)),
    rgba(255, 247, 226, .92);
}

.toast.notice.error {
  border-color: rgba(145, 51, 34, .26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 226, 219, .84)),
    rgba(255, 247, 226, .92);
}

.toast.notice.warn {
  border-color: rgba(138, 91, 11, .26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 240, 198, .84)),
    rgba(255, 247, 226, .92);
}

.toast-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--steel);
  box-shadow: 0 0 0 7px var(--steel-soft);
}

.toast.ok .toast-mark {
  background: var(--ok);
  box-shadow: 0 0 0 7px var(--ok-soft);
}

.toast.error .toast-mark {
  background: var(--bad);
  box-shadow: 0 0 0 7px var(--bad-soft);
}

.toast.warn .toast-mark {
  background: var(--warn);
  box-shadow: 0 0 0 7px var(--warn-soft);
}

.toast-copy {
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.toast-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(36, 18, 10, .08);
  font-size: 1.15rem;
  line-height: 1;
}

.toast-timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2, var(--accent)));
  transform-origin: left center;
  animation: toastTimer 5s linear forwards;
}

.work-status {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .82rem;
  align-items: center;
  margin: .86rem 0;
  padding: .86rem;
  overflow: hidden;
  border: 1px solid rgba(76, 32, 12, .16);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(255, 247, 226, .62)),
    radial-gradient(circle at 10% 18%, rgba(255, 189, 55, .18), transparent 14rem),
    rgba(255, 247, 226, .72);
  box-shadow:
    0 14px 38px rgba(76, 32, 12, .12),
    inset 0 1px 0 rgba(255, 255, 255, .45);
}

.work-status::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, .42) 46%, transparent 58% 100%);
  transform: translateX(-80%);
  animation: workSheen 2.6s var(--ease) infinite;
}

.work-status > * {
  position: relative;
}

.work-status__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 5px;
  border-radius: 50%;
  background: conic-gradient(var(--primary), var(--accent), var(--accent-2, var(--accent)), var(--primary));
  box-shadow:
    0 0 0 6px rgba(36, 18, 10, .06),
    0 12px 30px rgba(242, 100, 34, .18);
  animation: spin .95s linear infinite;
}

.work-status__ring::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: 0;
  border-radius: 50%;
  border: 1px solid rgba(76, 32, 12, .09);
  background:
    conic-gradient(from 18deg, transparent 0 20%, rgba(255, 255, 255, .78) 26%, transparent 34% 58%, rgba(242, 100, 34, .22) 64%, transparent 72% 100%);
  opacity: .82;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle, transparent 0 74%, #000 76% 100%);
  mask: radial-gradient(circle, transparent 0 74%, #000 76% 100%);
}

.work-status__ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 1;
  border-radius: 50%;
  background: var(--surface-solid);
}

.work-status__core {
  position: relative;
  z-index: 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(242, 100, 34, .42);
  animation: workCorePulse 1.9s var(--ease) infinite;
}

.work-status__dot {
  --orbit-angle: -90deg;
  --orbit-radius: 29px;
  --orbit-duration: 2.25s;
  --orbit-delay: 0s;
  --dot-size: 4px;
  --dot-color: var(--accent);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: var(--dot-size);
  height: var(--dot-size);
  margin: calc(var(--dot-size) / -2) 0 0 calc(var(--dot-size) / -2);
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow:
    0 0 0 1px rgba(255, 247, 226, .48),
    0 0 10px rgba(242, 100, 34, .28);
  transform: rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) scale(.82);
  animation:
    workOrbit var(--orbit-duration) cubic-bezier(.45, 0, .18, 1) infinite,
    workDotGlow var(--orbit-duration) ease-in-out infinite;
  animation-delay: var(--orbit-delay), var(--orbit-delay);
  will-change: transform, opacity;
}

.work-status__dot--1 {
  --orbit-angle: -92deg;
  --orbit-delay: 0s;
  --orbit-duration: 2.35s;
  --dot-size: 5px;
  --dot-color: var(--accent);
}

.work-status__dot--2 {
  --orbit-angle: -126deg;
  --orbit-delay: -.22s;
  --orbit-duration: 2.46s;
  --dot-size: 4px;
  --dot-color: #ff8f2f;
}

.work-status__dot--3 {
  --orbit-angle: -155deg;
  --orbit-delay: -.46s;
  --orbit-duration: 2.18s;
  --dot-size: 3px;
  --dot-color: #d99a2b;
}

.work-status__dot--4 {
  --orbit-angle: -184deg;
  --orbit-delay: -.71s;
  --orbit-duration: 2.58s;
  --dot-size: 4px;
  --dot-color: #8f5f12;
}

.work-status__dot--5 {
  --orbit-angle: -218deg;
  --orbit-delay: -.94s;
  --orbit-duration: 2.31s;
  --dot-size: 3px;
  --dot-color: #f6c35b;
}

.work-status.has-progress .work-status__ring {
  background: conic-gradient(var(--accent) var(--work-progress, 0%), rgba(76, 32, 12, .12) 0);
  animation: none;
}

.work-status__ring {
  grid-row: 1 / span 2;
}

.work-status__body {
  grid-column: 2;
  min-width: 0;
}

.work-status__details {
  grid-column: 2;
  min-width: 0;
}

.work-status__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

.work-status__top strong {
  min-width: 0;
  font-size: .96rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.work-status__top span {
  flex: 0 0 auto;
  color: var(--primary-2);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work-status p {
  margin: .26rem 0 .58rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.44;
}

.work-status__bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(76, 32, 12, .10);
}

.work-status__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  animation: scan 1.35s var(--ease) infinite;
}

.work-status__bar.is-determinate span {
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: none;
  transition: width .26s var(--ease-out);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toastTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes workSheen {
  0% { transform: translateX(-85%); }
  58%, 100% { transform: translateX(110%); }
}

@keyframes workCorePulse {
  0%, 100% {
    transform: scale(.9);
    box-shadow: 0 0 12px rgba(242, 100, 34, .32);
  }
  42% {
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(242, 100, 34, .5);
  }
}

@keyframes workOrbit {
  0% {
    opacity: .46;
    transform: rotate(calc(var(--orbit-angle) + 0deg)) translateX(calc(var(--orbit-radius) - 2px)) scale(.72);
  }
  16% {
    opacity: 1;
    transform: rotate(calc(var(--orbit-angle) + 46deg)) translateX(calc(var(--orbit-radius) + 1px)) scale(1.12);
  }
  34% {
    opacity: .72;
    transform: rotate(calc(var(--orbit-angle) + 116deg)) translateX(calc(var(--orbit-radius) - 4px)) scale(.86);
  }
  55% {
    opacity: .58;
    transform: rotate(calc(var(--orbit-angle) + 206deg)) translateX(calc(var(--orbit-radius) - 1px)) scale(.72);
  }
  76% {
    opacity: 1;
    transform: rotate(calc(var(--orbit-angle) + 302deg)) translateX(calc(var(--orbit-radius) + 2px)) scale(1.02);
  }
  100% {
    opacity: .46;
    transform: rotate(calc(var(--orbit-angle) + 360deg)) translateX(calc(var(--orbit-radius) - 2px)) scale(.72);
  }
}

@keyframes workDotGlow {
  0%, 100% { filter: saturate(.92) brightness(.96); }
  45% { filter: saturate(1.18) brightness(1.08); }
}

@media (max-width: 760px) {
  .toast-region {
    right: .5rem;
    bottom: .5rem;
    width: calc(100vw - 1rem);
  }

  .toast.notice {
    min-height: 58px;
    padding: .82rem .86rem .92rem;
  }

  .work-status {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .78rem;
  }

  .work-status__ring {
    grid-row: 1;
    align-self: start;
  }

  .work-status__body {
    padding-top: .12rem;
  }

  .work-status__details {
    grid-column: 1 / -1;
  }

  .work-status__top {
    align-items: flex-start;
    flex-direction: column;
    gap: .16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast.notice,
  .toast-timer,
  .work-status::before,
  .work-status__ring,
  .work-status__core,
  .work-status__dot,
  .work-status__bar span {
    animation: none !important;
  }

  .work-status__dot {
    opacity: .58;
    transform: rotate(var(--orbit-angle)) translateX(calc(var(--orbit-radius) - 2px)) scale(.82);
  }
}

.topbar-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: .42rem .72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(252, 250, 244, .72);
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 820;
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.topbar-nav a::before {
  content: "";
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

.topbar-nav a:hover {
  border-color: rgba(141, 50, 18, .28);
  background: rgba(255, 247, 226, .86);
}

.topbar-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(65, 90, 69, .34);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

.btn.ghost.danger {
  background: transparent;
  box-shadow: none;
}

.btn.ghost.danger:hover:not(:disabled),
.btn.ghost.danger:focus-visible {
  background: var(--bad-soft);
}

.builder-reset-action {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin-top: .42rem;
}

.builder-reset-action .btn,
.summary-reset-actions .btn {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.summary-reset-actions {
  justify-content: flex-end;
  margin-top: .84rem;
}

.topbar .brand {
  min-width: 0;
  max-width: 100%;
  flex: 0 0 auto;
}

.topbar .topbar-nav {
  min-width: 0;
  max-width: calc(100% - 7rem);
  margin-left: auto;
  justify-content: flex-end;
}

.app,
.hero-card,
.card {
  min-width: 0;
}

@media (max-width: 760px) {
  .brand {
    min-width: 0;
    flex: 0 0 auto;
    gap: .58rem;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    column-gap: .62rem;
    row-gap: .42rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: .64rem .76rem;
  }

  .topbar .brand {
    width: auto;
    max-width: 100%;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    margin-left: -.16rem;
  }

  .brand-copy strong {
    font-size: clamp(1.22rem, 6.2vw, 1.58rem);
  }

  .brand-copy strong {
    overflow-wrap: anywhere;
  }

  .topbar .topbar-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    justify-content: end;
    width: auto;
    max-width: min(48vw, 13.25rem);
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: .28rem;
    margin-left: 0;
    padding-bottom: 0;
    overflow: visible;
    transform: none;
  }

  .topbar-nav a {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 31px;
    padding: .32rem .48rem;
    font-size: .68rem;
    white-space: nowrap;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .hero-copy h1 {
    max-width: 10ch;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-card,
  .hero-copy,
  .hero-copy p {
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy > p:not(.hero-kicker) {
    max-width: min(32ch, calc(100vw - 2.2rem));
  }

  .hero-card .actions {
    display: grid;
    width: min(32rem, calc(100vw - 2.2rem));
    max-width: 100%;
  }

  .hero-card .actions .btn {
    width: 100%;
    min-width: 0;
  }

  .builder-reset-action {
    justify-content: stretch;
    width: 100%;
  }

  .summary-reset-actions {
    justify-content: stretch;
  }

  .builder-reset-action .btn,
  .summary-reset-actions .btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .topbar {
    column-gap: .42rem;
    padding-left: .55rem;
    padding-right: .55rem;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .brand-copy strong {
    font-size: clamp(1.18rem, 6.1vw, 1.45rem);
  }

  .topbar .topbar-nav {
    max-width: min(50vw, 11.25rem);
    gap: .24rem;
  }

  .topbar-nav a {
    min-height: 32px;
    padding: .32rem .42rem;
    font-size: .64rem;
  }

  .topbar-nav a::before {
    display: none;
  }
}

/* UI 10 Prompt 3: builder as a lively educational configurator. */
:root {
  --builder-ink: #07101f;
  --builder-paper: #fffdf7;
  --builder-blue: #0866f2;
  --builder-blue-dark: #053b91;
  --builder-orange: #ff7a1a;
  --builder-yellow: #ffd43b;
  --builder-green: #24a35a;
  --builder-line: rgba(7, 16, 31, .16);
  --builder-shadow: 0 18px 38px rgba(7, 16, 31, .12);
  --builder-comic-shadow: 5px 5px 0 rgba(7, 16, 31, .88);
}

.hero {
  margin-top: clamp(.7rem, 2vw, 1.05rem);
  margin-bottom: clamp(.9rem, 2.4vw, 1.25rem);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr);
  gap: clamp(1rem, 2.6vw, 1.6rem);
  align-items: stretch;
  min-height: 360px;
  border: 3px solid var(--builder-ink);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(118deg, #07101f 0%, #0d2e5f 46%, #0b6ccf 100%);
  background-size: 36px 36px, 36px 36px, auto;
  color: #fff;
  box-shadow: var(--builder-comic-shadow);
  overflow: hidden;
}

.hero-card::after {
  width: 8px;
  background: linear-gradient(180deg, var(--builder-yellow), var(--builder-orange), var(--builder-blue));
  opacity: 1;
}

.hero-card .hero-copy {
  display: grid;
  align-content: center;
  max-width: 760px;
  min-width: 0;
}

.hero-card .hero-kicker {
  color: #dbeafe;
}

.hero-card .hero-kicker::before {
  content: "";
  display: inline-block;
  width: .58rem;
  height: .58rem;
  margin-right: .36rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--builder-yellow);
  box-shadow: 2px 2px 0 var(--builder-ink);
  vertical-align: -.05rem;
}

.hero-card h1 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(2.1rem, 6.4vw, 4.1rem);
  line-height: .98;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .32);
}

.hero-card .hero-copy > p:not(.hero-kicker) {
  max-width: 67ch;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(.98rem, 2.1vw, 1.08rem);
}

.hero-card .actions {
  margin-top: 1.2rem;
  margin-bottom: .2rem;
}

.hero-card .btn.primary {
  border-color: var(--builder-ink);
  background: linear-gradient(135deg, var(--builder-yellow), var(--builder-orange));
  color: #111827;
  box-shadow: 5px 5px 0 rgba(7, 16, 31, .72);
}

.hero-card .btn.secondary {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .9);
  color: var(--builder-ink);
}

.builder-reset-action {
  margin-top: .35rem;
}

.builder-reset-action .btn {
  border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .82);
}

.builder-reset-action .btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.builder-hero-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  align-self: center;
  min-width: 0;
}

.builder-map-card {
  display: grid;
  gap: .28rem;
  min-height: 104px;
  padding: .82rem;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(7, 16, 31, .46);
}

.builder-map-card span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--builder-blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 950;
  box-shadow: 2px 2px 0 var(--builder-ink);
}

.builder-map-card strong {
  color: #fff;
  font-size: .98rem;
  line-height: 1.15;
}

.builder-map-card small {
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  line-height: 1.25;
}

.builder-map-card.is-active {
  border-color: rgba(255, 212, 59, .9);
  background: rgba(255, 212, 59, .16);
}

.system-aside {
  border: 2px solid var(--builder-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .96), rgba(248, 250, 252, .9)),
    var(--builder-paper);
  box-shadow: var(--builder-shadow);
}

.system-aside .header {
  margin-bottom: .8rem;
}

.system-aside .module-eyebrow {
  color: var(--builder-blue-dark);
}

.builder-layout {
  gap: clamp(.95rem, 2.2vw, 1.18rem);
  align-items: start;
}

.builder-flow {
  gap: clamp(.95rem, 2.2vw, 1.18rem);
  min-width: 0;
}

.builder-card,
.builder-progress,
.sticky-summary {
  border: 2px solid var(--builder-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .97), rgba(248, 250, 252, .9)),
    var(--builder-paper);
  box-shadow: var(--builder-shadow);
}

.builder-card {
  overflow: hidden;
}

.builder-card::after,
.builder-progress::after,
.sticky-summary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--builder-accent, var(--builder-blue));
}

.builder-card--config { --builder-accent: var(--builder-blue); }
.builder-card--upload { --builder-accent: var(--builder-green); }
.builder-card--quote { --builder-accent: var(--builder-orange); }
.builder-card--payment { --builder-accent: #7c4dff; }
.builder-card--status { --builder-accent: var(--builder-yellow); }
.builder-progress { --builder-accent: var(--builder-blue-dark); }

.builder-card .header,
.builder-progress .header {
  gap: 1rem;
  margin-bottom: 1rem;
}

.builder-card .module-eyebrow,
.builder-progress .progress-top,
.sticky-summary .module-eyebrow {
  color: var(--builder-blue-dark);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.builder-card .section-title-line {
  align-items: flex-start;
}

.builder-card h2,
.sticky-summary h2 {
  font-size: clamp(1.22rem, 2.6vw, 1.58rem);
  line-height: 1.12;
}

.builder-card p,
.sticky-summary p {
  font-size: .96rem;
}

.builder-card .section-index,
.builder-progress .step-index {
  border: 2px solid var(--builder-ink);
  border-radius: 9px;
  background: #fff;
  color: var(--builder-ink);
  box-shadow: 3px 3px 0 rgba(7, 16, 31, .76);
}

.builder-card .pill,
.builder-progress .pill {
  min-height: 32px;
  border-width: 2px;
  border-radius: 999px;
  font-weight: 900;
}

.builder-progress {
  display: grid;
  gap: .82rem;
}

.builder-progress .progress-top {
  color: var(--builder-blue-dark);
}

.builder-progress .progress-bar {
  height: 10px;
  border: 2px solid rgba(7, 16, 31, .12);
  background: rgba(8, 102, 242, .08);
}

.builder-progress .progress-bar span {
  background: linear-gradient(90deg, var(--builder-blue), var(--builder-green), var(--builder-yellow));
}

.builder-progress .step-list {
  gap: .58rem;
}

.builder-progress .step-row {
  min-width: 0;
  min-height: 92px;
  padding: .68rem;
  border: 2px solid rgba(7, 16, 31, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.builder-progress .step-row strong {
  color: var(--builder-ink);
  font-size: .9rem;
}

.builder-progress .step-row span:not(.step-index) {
  color: #536174;
}

.builder-progress .step-row.is-done {
  border-color: rgba(36, 163, 90, .32);
  background: rgba(36, 163, 90, .09);
}

.builder-progress .step-row.is-done .step-index {
  background: var(--builder-green);
  color: #fff;
}

.builder-progress .step-row.is-active {
  border-color: rgba(8, 102, 242, .45);
  background: rgba(8, 102, 242, .1);
  box-shadow: inset 0 0 0 1px rgba(8, 102, 242, .12);
}

.builder-progress .step-row.is-active .step-index {
  background: var(--builder-blue);
  color: #fff;
}

.builder-progress .step-row.is-muted {
  opacity: 1;
  background: rgba(255, 255, 255, .48);
}

.builder-card .fields {
  gap: 1rem;
}

.builder-card .label,
.payment-card .label,
.invoice-form .label {
  color: var(--builder-ink);
  font-weight: 900;
}

.builder-card .choices,
.payment-card .choices,
.invoice-form .choices {
  gap: .72rem;
}

.builder-card .choice-card,
.payment-card .choice-card,
.invoice-form .choice-card {
  min-height: 108px;
  border: 2px solid rgba(7, 16, 31, .13);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(7, 16, 31, .045);
}

.builder-card .choice-card::before,
.payment-card .choice-card::before,
.invoice-form .choice-card::before {
  width: .72rem;
  height: .72rem;
  border-width: 2px;
}

.builder-card .choice-card:hover,
.payment-card .choice-card:hover,
.invoice-form .choice-card:hover {
  border-color: rgba(8, 102, 242, .34);
  background: rgba(8, 102, 242, .035);
}

.builder-card .choice input:checked + .choice-card,
.payment-card .choice input:checked + .choice-card,
.invoice-form .choice input:checked + .choice-card {
  border-color: rgba(8, 102, 242, .66);
  background:
    linear-gradient(180deg, rgba(8, 102, 242, .11), rgba(255, 255, 255, .92)),
    #fff;
  box-shadow: 0 0 0 4px rgba(8, 102, 242, .1);
}

.builder-card .choice input:checked + .choice-card::before,
.payment-card .choice input:checked + .choice-card::before,
.invoice-form .choice input:checked + .choice-card::before {
  border-color: var(--builder-blue);
  background: radial-gradient(circle, var(--builder-blue) 0 46%, transparent 49%);
}

.builder-card input,
.builder-card textarea,
.builder-card select,
.payment-card input,
.invoice-form input {
  border: 2px solid rgba(7, 16, 31, .12);
  border-radius: 9px;
  background: #fff;
}

.builder-card input:focus,
.builder-card textarea:focus,
.builder-card select:focus,
.payment-card input:focus,
.invoice-form input:focus {
  border-color: rgba(8, 102, 242, .58);
  box-shadow: 0 0 0 4px rgba(8, 102, 242, .14);
}

.classroom-config,
.classroom-options,
.invoice-section,
.legal-consents {
  border-radius: 10px;
}

.classroom-options,
.invoice-section,
.legal-consents {
  border: 2px solid rgba(7, 16, 31, .1);
  background: rgba(248, 250, 252, .72);
  padding: .9rem;
}

.drop {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .82rem 1rem;
  border: 2px dashed rgba(8, 102, 242, .34);
  border-radius: 12px;
  padding: clamp(.95rem, 2vw, 1.2rem);
  background:
    linear-gradient(90deg, rgba(8, 102, 242, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 102, 242, .045) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.drop-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--builder-ink);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--builder-yellow), var(--builder-orange));
  color: var(--builder-ink);
  box-shadow: 3px 3px 0 rgba(7, 16, 31, .75);
}

.drop strong {
  grid-column: 2;
  font-size: 1.05rem;
}

.drop p {
  grid-column: 2 / 4;
  grid-row: 2;
  max-width: 74ch;
  color: #4b5563;
}

.drop .btn {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.upload-actions {
  margin-top: .78rem;
}

.upload-option {
  border: 2px solid rgba(7, 16, 31, .1);
  border-radius: 9px;
  background: #fff;
}

.attachments-panel {
  border: 2px solid rgba(7, 16, 31, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  padding: .82rem;
}

.attachment-tile {
  border: 2px solid rgba(7, 16, 31, .12);
  border-radius: 10px;
  background: #fff;
}

.attachment-tile:hover,
.attachment-tile:focus-within {
  border-color: rgba(8, 102, 242, .38);
  box-shadow: 0 12px 26px rgba(7, 16, 31, .1);
}

.attachment-preview {
  border-radius: 8px;
  background: #e8f4ff;
}

.file-glyph {
  border: 2px solid var(--builder-ink);
  border-radius: 10px;
  background: var(--builder-blue);
  box-shadow: 3px 3px 0 rgba(7, 16, 31, .74);
}

.quote-card .metrics {
  align-items: stretch;
}

.quote-card .metric.large {
  border-color: rgba(255, 122, 26, .42);
  background:
    linear-gradient(135deg, rgba(255, 212, 59, .26), rgba(255, 122, 26, .12)),
    #fff;
}

.quote-card .metric.large strong {
  color: #9a3412;
  font-size: clamp(1.32rem, 2.8vw, 1.78rem);
}

.payment-card,
.ready-link-card,
.file-preview-panel {
  border: 2px solid rgba(7, 16, 31, .12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 16, 31, .075);
}

.work-status {
  border: 2px solid rgba(8, 102, 242, .18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(8, 102, 242, .08), rgba(255, 255, 255, .92)),
    #fff;
}

.status-list {
  gap: .66rem;
}

.status-row {
  border: 2px solid rgba(7, 16, 31, .1);
  border-radius: 10px;
  background: #fff;
}

.status-dot.active {
  background: var(--builder-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, .15);
}

.sticky-summary {
  top: 92px;
  padding: 1.05rem;
  border-color: rgba(7, 16, 31, .18);
  background:
    linear-gradient(180deg, #fffdf7 0%, #f8fbff 100%),
    var(--builder-paper);
}

.sticky-summary .summary {
  gap: .54rem;
}

.sticky-summary .summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .28rem;
  align-items: start;
  border: 2px solid rgba(7, 16, 31, .09);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  padding: .68rem;
}

.sticky-summary .summary-row--next {
  grid-template-columns: 1fr;
  gap: .18rem;
  border-color: rgba(8, 102, 242, .26);
  background:
    linear-gradient(135deg, rgba(8, 102, 242, .12), rgba(255, 212, 59, .14)),
    #fff;
}

.sticky-summary .summary-row--next strong {
  color: var(--builder-blue-dark);
  font-size: 1.02rem;
}

.sticky-summary .summary-row small {
  line-height: 1.15;
}

.sticky-summary .summary-row strong {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.22;
}

.sticky-summary .notice {
  border: 2px solid rgba(8, 102, 242, .15);
  background: rgba(8, 102, 242, .055);
  color: #24445f;
}

.summary-reset-actions {
  margin-top: .78rem;
}

.builder-card .btn.primary,
.builder-progress .btn.primary,
.sticky-summary .btn.primary,
.quote-card .btn.primary,
.payment-card .btn.primary {
  border-color: rgba(7, 16, 31, .84);
  background: linear-gradient(135deg, var(--builder-yellow), var(--builder-orange));
  color: var(--builder-ink);
  box-shadow: 4px 4px 0 rgba(7, 16, 31, .78);
}

.builder-card .btn.secondary,
.builder-progress .btn.secondary,
.sticky-summary .btn.secondary,
.payment-card .btn.secondary {
  border: 2px solid rgba(7, 16, 31, .16);
  background: #fff;
  color: var(--builder-ink);
}

.builder-card .btn.ghost,
.sticky-summary .btn.ghost {
  color: var(--builder-blue-dark);
}

@media (min-width: 760px) {
  .builder-card .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-card .delivery-mode-choices,
  .invoice-type-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 981px) {
  .builder-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
  }

  .builder-progress .step-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .builder-progress .step-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .builder-hero-map {
    max-width: 720px;
  }

  .sticky-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero-card {
    gap: .95rem;
    border-width: 2px;
    box-shadow: 4px 4px 0 rgba(7, 16, 31, .86);
  }

  .hero-card h1 {
    max-width: 12ch;
  }

  .builder-hero-map {
    grid-template-columns: 1fr;
  }

  .builder-map-card {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .builder-map-card small {
    grid-column: 2;
  }

  .builder-layout,
  .builder-flow {
    gap: .78rem;
  }

  .builder-card,
  .builder-progress,
  .sticky-summary {
    border-width: 2px;
    border-radius: 11px;
  }

  .builder-card .header,
  .builder-progress .header {
    gap: .58rem;
  }

  .builder-progress .step-row {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .builder-card .choice-card,
  .payment-card .choice-card,
  .invoice-form .choice-card {
    min-height: 0;
  }

  .drop {
    grid-template-columns: auto minmax(0, 1fr);
    gap: .68rem;
  }

  .drop p,
  .drop .btn {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .drop .btn {
    justify-self: stretch;
  }

  .upload-actions,
  .upload-options,
  .payment-actions,
  .summary-reset-actions {
    display: grid;
    width: 100%;
    margin-left: 0;
  }

  .upload-option {
    width: 100%;
  }

  .attachments-panel {
    padding: .62rem;
  }

  .sticky-summary .summary-row {
    grid-template-columns: 1fr;
    gap: .18rem;
  }
}

@media (max-width: 430px) {
  .builder-map-card {
    padding: .68rem;
  }

  .builder-card .section-index,
  .builder-progress .step-index {
    width: 30px;
    height: 30px;
    box-shadow: 2px 2px 0 rgba(7, 16, 31, .76);
  }

  .builder-card .pill {
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .builder-progress .progress-bar span,
  .builder-card .choice-card,
  .attachment-tile,
  .status-dot.active {
    transition: none;
    animation: none;
  }
}

@media (max-width: 360px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    max-width: 100vw;
  }

  .topbar .brand {
    width: 100%;
  }

  .topbar .topbar-nav {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .topbar-nav a {
    flex: none;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: clamp(1.95rem, 10vw, 2.45rem);
    line-height: 1.02;
  }
}

/* Comic landing page */
:root {
  --comic-blue: #0866f2;
  --comic-blue-dark: #053b91;
  --comic-ink: #07101f;
  --comic-paper: #fffdf7;
  --comic-yellow: #ffd43b;
  --comic-orange: #ff7a1a;
  --comic-green: #24a35a;
  --comic-purple: #7c4dff;
  --comic-line: rgba(7, 16, 31, .18);
}

.app.app--landing {
  width: 100%;
  max-width: none;
  margin: 0;
}

.landing-shell {
  color: var(--comic-ink);
  background:
    linear-gradient(90deg, rgba(76, 32, 12, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(76, 32, 12, .07) 1px, transparent 1px),
    radial-gradient(circle at 22% 8%, rgba(255, 213, 72, .58), transparent 24rem),
    radial-gradient(circle at 82% 4%, rgba(255, 98, 19, .48), transparent 30rem),
    linear-gradient(118deg, #d83416 0%, #f26422 42%, #f8a327 76%, #ffca4b 100%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  overflow: hidden;
}

.landing-shell h1,
.landing-shell h2,
.landing-shell h3 {
  color: var(--comic-ink);
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.landing-shell h1 {
  max-width: 14ch;
  margin: 0;
  font-size: 4.25rem;
  line-height: .95;
}

.landing-title-full,
.landing-title-mobile {
  display: block;
}

.landing-title-mobile {
  display: none;
}

.landing-shell h2 {
  max-width: 15ch;
  margin: 0;
  font-size: 2.85rem;
  line-height: 1;
}

.landing-shell h3 {
  margin: 0;
  font-size: 2.12rem;
  line-height: 1.05;
}

.landing-shell p {
  color: #334155;
  font-size: 1.04rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.landing-hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  background-color: #f26422;
  background-image: url("/static/assets/comic/step-01.webp?v=comic-imagegen-20260621a");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 4px solid var(--comic-ink);
}

.landing-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  bottom: 0px;
  background:
    linear-gradient(135deg, var(--comic-yellow) 0 25%, transparent 25% 50%, var(--comic-yellow) 50% 75%, transparent 75%);
  background-size: 28px 22px;
  border-top: 4px solid var(--comic-ink);
  pointer-events: none;
}

.landing-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 18, 43, .86) 0%, rgba(3, 18, 43, .64) 34%, rgba(3, 18, 43, .16) 68%, rgba(3, 18, 43, .08) 100%),
    linear-gradient(180deg, rgba(3, 18, 43, .08), rgba(3, 18, 43, .68));
}

.landing-hero__inner {
  width: min(1180px, calc(100% - 2rem));
  display: grid;
  gap: 22px;
  margin: 0 auto;
  padding: 78px 0 58px;
}

.landing-hero__copy {
  max-width: 720px;
  min-width: 0;
}

.landing-hero__copy h1,
.landing-hero__copy p {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .42);
}

.landing-hero__copy > p:not(.landing-kicker) {
  max-width: 62ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, .9);
  font-size: 1.14rem;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--comic-blue);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.landing-kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--comic-yellow);
  box-shadow: 2px 2px 0 var(--comic-ink);
}

.landing-hero__copy .landing-kicker {
  color: #dbeafe;
}

.landing-actions,
.landing-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.landing-cta.btn {
  min-height: 50px;
  border-radius: 8px;
  padding: .88rem 1.06rem;
  box-shadow: 5px 5px 0 rgba(7, 16, 31, .86);
}

.landing-cta.btn.primary {
  border-color: #07101f;
  background: linear-gradient(135deg, #ffe156, var(--comic-orange));
  color: #10131b;
}

.landing-cta.btn.secondary {
  border-color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .9);
  color: var(--comic-ink);
}

.landing-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
}

.landing-hero__proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  color: var(--comic-blue-dark);
  font-size: .86rem;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(7, 16, 31, .52);
}

.landing-audience,
.landing-updates,
.landing-story,
.landing-strengths,
.landing-final {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.landing-audience {
  padding: 92px 0 44px;
}

.landing-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.landing-section-head p:not(.landing-kicker) {
  max-width: 68ch;
  margin: 0;
}

.landing-section-head--story {
  position: sticky;
  top: 68px;
  z-index: 2;
  width: min(620px, 100%);
  padding: 22px 0 12px;
  /* margin-bottom: -22svh; */
}

.landing-audience__grid,
.landing-strengths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-audience article,
.landing-strengths article {
  min-width: 0;
  border: 3px solid var(--comic-ink);
  border-radius: 8px;
  background: var(--comic-paper);
  box-shadow: 6px 6px 0 rgba(7, 16, 31, .88);
}

.landing-audience article {
  padding: 22px;
}

.landing-audience article:nth-child(1) { border-top-color: var(--comic-orange); }
.landing-audience article:nth-child(2) { border-top-color: var(--comic-blue); }
.landing-audience article:nth-child(3) { border-top-color: var(--comic-green); }

.landing-audience article span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px;
  border: 2px solid var(--comic-ink);
  border-radius: 8px;
  background: var(--comic-yellow);
  color: var(--comic-ink);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-audience article h3 {
  font-size: 1.24rem;
  line-height: 1.16;
}

.landing-audience article p {
  margin-top: 10px;
  font-size: .96rem;
}

.landing-updates {
  padding: 34px 0 28px;
}

.landing-updates__grid {
  display: grid;
  gap: 16px;
}

.landing-update {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
  padding: 24px;
  border: 3px solid var(--comic-ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 244, 255, .96), rgba(255, 248, 214, .94)),
    var(--comic-paper);
  box-shadow: 6px 6px 0 rgba(7, 16, 31, .88);
}

.landing-update__copy {
  min-width: 0;
}

.landing-update__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.landing-update__tag,
.landing-update__date {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 2px solid var(--comic-ink);
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.landing-update__tag {
  background: var(--comic-yellow);
  color: var(--comic-ink);
  box-shadow: 3px 3px 0 rgba(7, 16, 31, .88);
}

.landing-update__date {
  background: #fff;
  color: var(--comic-blue-dark);
}

.landing-update h3 {
  font-size: 1.42rem;
  line-height: 1.16;
}

.landing-update p {
  margin: 12px 0 0;
  font-size: .98rem;
}

.landing-update__list {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-update__list li {
  position: relative;
  min-width: 0;
  padding: 10px 10px 10px 30px;
  border: 2px solid rgba(7, 16, 31, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #334155;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.landing-update__list li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 16px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--comic-ink);
  border-radius: 50%;
  background: var(--comic-green);
}

.landing-story {
  padding: 58px 0 24px;
}

.landing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 28px;
  align-items: center;
  min-height: 74svh;
  padding: 36px 0;
}

.landing-panel--flip {
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
}

.landing-panel--flip .landing-panel__image {
  order: 2;
}

.landing-panel--flip .landing-panel__copy {
  order: 1;
}

.landing-panel__image {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 4px solid var(--comic-ink);
  border-radius: 8px;
  background: #d9edff;
  box-shadow: 8px 8px 0 rgba(7, 16, 31, .9);
  overflow: hidden;
}

.landing-panel__image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
}

.landing-panel__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-panel__copy {
  position: sticky;
  top: 118px;
  min-width: 0;
  padding: 26px;
  border: 4px solid var(--comic-ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(246, 251, 255, .94)),
    var(--comic-paper);
  box-shadow: 8px 8px 0 rgba(7, 16, 31, .9);
}

.landing-panel__number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 0 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--comic-blue);
  color: #fff !important;
  font-size: 1.42rem !important;
  font-weight: 950;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--comic-ink);
}

.landing-panel__copy > p:not(.landing-kicker):not(.landing-panel__number) {
  margin-top: 14px;
}

.landing-panel__copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.landing-panel__copy li {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 9px;
  border: 2px solid rgba(7, 16, 31, .18);
  border-radius: 8px;
  background: #eef6ff;
  color: var(--comic-blue-dark);
  font-size: .86rem;
  font-weight: 900;
}

.landing-panel__copy li:nth-child(2n) {
  background: #fff3bf;
  color: #6b4200;
}

.landing-panel__copy li:nth-child(3n) {
  background: #e9fbe9;
  color: #12622d;
}

.landing-strengths {
  padding: 76px 0;
}

.landing-strengths__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-strengths article {
  display: grid;
  gap: 10px;
  padding: 19px;
}

.landing-strengths article:nth-child(1) { background: #fff8d6; }
.landing-strengths article:nth-child(2) { background: #e8f4ff; }
.landing-strengths article:nth-child(3) { background: #ecfdf3; }
.landing-strengths article:nth-child(4) { background: #fff0e5; }

.landing-strengths strong {
  color: var(--comic-ink);
  font-size: 1.04rem;
  line-height: 1.2;
}

.landing-strengths span {
  color: #42516a;
  font-size: .94rem;
  line-height: 1.55;
}

.landing-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 56px;
  padding: 36px;
  border: 4px solid var(--comic-ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 212, 59, .96), rgba(255, 122, 26, .88)),
    var(--comic-yellow);
  box-shadow: 8px 8px 0 rgba(7, 16, 31, .9);
}

.landing-final h2 {
  max-width: 16ch;
}

.landing-final p:not(.landing-kicker) {
  max-width: 62ch;
  color: #2a240c;
}

@media (max-width: 1020px) {
  .landing-shell h1 {
    font-size: 3.35rem;
  }

  .landing-shell h2 {
    font-size: 2.28rem;
  }

  .landing-panel,
  .landing-panel--flip {
    grid-template-columns: 1fr;
  }

  .landing-update {
    grid-template-columns: 1fr;
  }

  .landing-panel--flip .landing-panel__image,
  .landing-panel--flip .landing-panel__copy {
    order: initial;
  }

  .landing-panel {
    min-height: auto;
    padding: 34px 0 52px;
  }

  .landing-panel__copy {
    position: relative;
    top: auto;
  }

  .landing-audience__grid,
  .landing-strengths__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-final {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .landing-hero {
    min-height: auto;
    background-position: center top;
    background-size: 100% auto;
    padding-top: clamp(205px, 56.25vw, 405px);
  }

  .landing-hero__shade {
    background:
      linear-gradient(180deg, rgba(3, 18, 43, .04) 0, rgba(3, 18, 43, .08) clamp(205px, 56.25vw, 405px), rgba(3, 18, 43, .88) clamp(250px, 68vw, 455px), rgba(3, 18, 43, .76) 100%);
  }

  .landing-hero__inner,
  .landing-audience,
  .landing-updates,
  .landing-story,
  .landing-strengths,
  .landing-final {
    width: calc(100vw - 1rem);
    max-width: 1180px;
    margin-left: .5rem;
    margin-right: .5rem;
  }

  .landing-hero__copy,
  .landing-hero__copy > p:not(.landing-kicker) {
    max-width: 100%;
  }

  .landing-hero__copy > p:not(.landing-kicker) {
    max-width: min(34ch, calc(100vw - 2rem));
  }

  .landing-hero__inner {
    padding: 28px 0 46px;
  }

  .landing-shell h1 {
    max-width: 11ch;
    font-size: 2.12rem;
    line-height: 1;
    overflow-wrap: normal;
    word-break: normal;
  }

  .landing-title-full {
    display: none;
  }

  .landing-title-mobile {
    display: block;
  }

  .landing-shell h2 {
    font-size: 1.86rem;
  }

  .landing-shell h3 {
    font-size: 1.48rem;
  }

  .landing-hero__copy > p:not(.landing-kicker),
  .landing-shell p {
    font-size: .98rem;
  }

  .landing-actions,
  .landing-final__actions {
    display: grid;
  }

  .landing-cta.btn {
    width: 100%;
  }

  .landing-hero__proof {
    display: none;
  }

  .landing-audience {
    padding-top: 72px;
  }

  .landing-updates {
    padding-top: 34px;
  }

  .landing-section-head--story {
    position: relative;
    top: auto;
    margin-bottom: -2svh;
  }

  .landing-audience__grid,
  .landing-strengths__grid {
    grid-template-columns: 1fr;
  }

  .landing-panel__image,
  .landing-panel__copy,
  .landing-audience article,
  .landing-update,
  .landing-strengths article,
  .landing-final {
    box-shadow: 5px 5px 0 rgba(7, 16, 31, .9);
  }

  .landing-panel__copy,
  .landing-update,
  .landing-final {
    padding: 19px;
  }
}

@media (max-width: 430px) {
  .landing-shell h1 {
    font-size: 2rem;
  }

  .landing-panel__number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem !important;
  }
}

.email-field {
  position: relative;
}

.email-field--attention .label {
  color: var(--bad);
}

.email-field--attention .label::after {
  content: "";
  display: block;
  width: min(100%, 13rem);
  height: 3px;
  margin-top: .28rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bad), rgba(255, 255, 255, 0));
}

input.is-attention {
  border-color: rgba(145, 51, 34, .68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 226, 219, .82)),
    var(--bad-soft);
  box-shadow:
    0 0 0 3px rgba(145, 51, 34, .16),
    inset 0 1px 0 rgba(255, 255, 255, .72);
}

input.is-attention:focus {
  border-color: var(--bad);
  box-shadow:
    0 0 0 3px rgba(145, 51, 34, .24),
    0 0 0 6px rgba(255, 255, 255, .34);
}

.field-callout {
  display: block;
  margin-top: .45rem;
  color: var(--bad);
  font-size: .84rem;
  font-weight: 780;
  line-height: 1.35;
}

.quote-card--needs-email {
  border-color: rgba(145, 51, 34, .34);
  box-shadow:
    0 0 0 1px rgba(145, 51, 34, .14) inset,
    var(--shadow-soft);
}

.quote-email-reminder {
  margin-bottom: .74rem;
  font-weight: 760;
}

.classroom-config {
  display: grid;
  gap: .78rem;
  padding: .82rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(255, 247, 226, .44)),
    rgba(255, 247, 226, .64);
}

.classroom-config:focus-within {
  border-color: rgba(65, 90, 69, .44);
  box-shadow: 0 0 0 3px rgba(65, 90, 69, .12);
}

.delivery-mode-choices {
  grid-template-columns: 1fr;
}

.classroom-options {
  display: grid;
  grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr);
  gap: .72rem;
  align-items: stretch;
}

.classroom-count-field {
  min-width: 0;
}

.classroom-count-field input {
  width: 100%;
}

.classroom-note {
  display: grid;
  align-content: center;
  margin: 0;
}

.ready-links-grid {
  display: grid;
  gap: .78rem;
  margin-top: .72rem;
}

.ready-link-card--private {
  border-color: rgba(133, 101, 43, .34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .68), rgba(255, 243, 188, .46)),
    rgba(255, 247, 226, .72);
}

.ready-link-card p {
  overflow-wrap: anywhere;
}

.ready-link-card .copy-row {
  min-width: 0;
}

.ready-link-card .btn {
  white-space: normal;
}

@media (min-width: 760px) {
  .ready-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 560px) {
  .delivery-mode-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .classroom-options {
    grid-template-columns: 1fr;
  }
}

.classroom-participant-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .72rem;
  margin: .9rem 0;
  padding: .82rem;
  border: 1px solid rgba(65, 90, 69, .24);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .64), rgba(255, 247, 226, .48)),
    rgba(255, 247, 226, .66);
}

.classroom-participant-panel:focus-within {
  border-color: rgba(65, 90, 69, .48);
  box-shadow: 0 0 0 3px rgba(65, 90, 69, .13);
}

.classroom-participant-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.classroom-participant-panel p {
  margin: .18rem 0 0;
}

.participant-code-field {
  margin: 0;
  min-width: 0;
}

.participant-code-field input {
  width: 100%;
  text-transform: uppercase;
}

.classroom-result-form {
  display: grid;
  gap: .72rem;
}

.classroom-result-form .classroom-participant-panel {
  margin: 0;
}

.classroom-result-actions {
  margin-top: 0;
}

@media (min-width: 760px) {
  .classroom-participant-panel {
    grid-template-columns: minmax(0, 1fr) minmax(180px, .38fr);
    align-items: start;
  }
}

@media (max-width: 760px) {
  .classroom-result-actions {
    flex-direction: column;
  }
}

.classroom-teacher-shell {
  gap: 1rem;
}

.classroom-teacher-head h1,
.classroom-teacher-head p {
  overflow-wrap: anywhere;
}

.classroom-teacher-grid {
  display: grid;
  gap: 1rem;
}

.classroom-teacher-card {
  display: grid;
  gap: .94rem;
}

.classroom-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.classroom-controls,
.classroom-delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .62rem;
  align-items: center;
}

.classroom-controls .btn,
.classroom-delete-actions .btn {
  white-space: normal;
}

.classroom-submissions-list,
.classroom-results-list,
.classroom-answer-list,
.classroom-explanations {
  display: grid;
  gap: .72rem;
}

.classroom-submission-row,
.classroom-result-row,
.classroom-explanations article {
  display: grid;
  gap: .68rem;
  min-width: 0;
  padding: .82rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .56), rgba(255, 247, 226, .34)),
    rgba(255, 247, 226, .48);
}

.classroom-submission-row:focus-within,
.classroom-result-row:focus-within {
  border-color: rgba(65, 90, 69, .44);
  box-shadow: 0 0 0 3px rgba(65, 90, 69, .12);
}

.classroom-submission-row__top,
.classroom-result-row__score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .72rem;
  align-items: center;
}

.classroom-submission-row small,
.classroom-result-row small,
.classroom-answer-item small,
.classroom-explanations small {
  display: block;
  color: var(--muted-2);
  font-size: .78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.classroom-submission-row strong,
.classroom-result-row strong,
.classroom-answer-item strong {
  overflow-wrap: anywhere;
}

.classroom-submission-row span,
.classroom-answer-question,
.classroom-answer-label,
.classroom-explanation-question,
.classroom-result-summary,
.classroom-explanations p {
  overflow-wrap: anywhere;
}

.classroom-submission-actions {
  justify-content: flex-start;
  margin-top: -.18rem;
}

.classroom-answer-preview {
  min-width: 0;
}

.classroom-answer-preview summary {
  cursor: pointer;
  font-weight: 800;
}

.classroom-answer-preview summary:focus-visible {
  outline: 3px solid rgba(65, 90, 69, .28);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.classroom-answer-list {
  margin-top: .64rem;
}

.classroom-answer-item {
  display: grid;
  gap: .26rem;
  min-width: 0;
  padding: .64rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .5);
}

.classroom-answer-value,
.classroom-task-feedback,
.classroom-task-explanation {
  color: var(--ink);
}

.classroom-answer-separator {
  color: var(--muted-2);
}

.classroom-answer-json {
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: .55rem .62rem;
  border-radius: var(--radius-sm);
  background: rgba(32, 33, 29, .055);
  font-size: .84rem;
}

.classroom-answer-label {
  color: var(--muted-2);
  font-size: .82rem;
  font-weight: 760;
}

.classroom-answer-question,
.classroom-explanation-question {
  display: block;
  line-height: 1.42;
}

.classroom-inline-result {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  color: var(--ok);
  font-weight: 820;
}

.classroom-task-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}

.classroom-result-summary {
  margin: 0;
}

.classroom-result-details {
  min-width: 0;
}

.classroom-result-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 840;
}

.classroom-result-details summary:focus-visible {
  outline: 3px solid rgba(65, 90, 69, .28);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.classroom-task-result-list {
  display: grid;
  gap: .62rem;
  margin-top: .64rem;
}

.classroom-task-result-item {
  display: grid;
  gap: .48rem;
  min-width: 0;
  padding: .68rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .55);
}

.classroom-task-result-item__head {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  justify-content: space-between;
}

.classroom-task-result-score {
  color: var(--muted);
  font-weight: 860;
}

.classroom-answer-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .58rem;
  margin: 0;
}

.classroom-answer-pair > div {
  min-width: 0;
  padding: .55rem .6rem;
  border: 1px solid rgba(76, 32, 12, .13);
  border-radius: var(--radius-sm);
  background: rgba(255, 249, 231, .58);
}

.classroom-answer-pair dt {
  margin: 0 0 .22rem;
  color: var(--muted-2);
  font-size: .78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.classroom-answer-pair dd {
  margin: 0;
}

.classroom-danger-zone {
  border-color: rgba(145, 51, 34, .34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 226, 219, .36)),
    rgba(255, 246, 242, .72);
}

@media (min-width: 920px) {
  .classroom-overview {
    grid-column: 1 / -1;
  }

  .classroom-teacher-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    align-items: start;
  }

  .classroom-submissions-card {
    grid-row: span 3;
  }

  .classroom-results-card,
  .classroom-aggregate-card,
  .classroom-danger-zone {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .classroom-controls,
  .classroom-delete-actions {
    display: grid;
  }

  .classroom-controls .btn,
  .classroom-delete-actions .btn {
    width: 100%;
  }

  .classroom-submission-row__top,
  .classroom-result-row__score {
    grid-template-columns: 1fr;
  }

  .classroom-task-result-item__head {
    display: grid;
  }

  .classroom-answer-pair {
    grid-template-columns: 1fr;
  }
}

/* UI 10 Prompt 1: calm product visual system.
   Older campaign/comic layers stay in the file, so this final layer is the current source of visual truth. */
:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --bg-2: #ebe5d8;
  --surface: rgba(255, 253, 247, .92);
  --surface-solid: #fffdf7;
  --surface-2: rgba(246, 242, 232, .9);
  --surface-3: rgba(232, 226, 213, .72);
  --ink: #172033;
  --ink-2: #253044;
  --muted: #667085;
  --muted-2: #87907f;
  --line: rgba(23, 32, 51, .12);
  --line-strong: rgba(23, 32, 51, .22);
  --primary: #2f5d46;
  --primary-2: #203d31;
  --primary-soft: rgba(47, 93, 70, .11);
  --accent: #f26422;
  --accent-2: #d7922d;
  --accent-soft: rgba(242, 100, 34, .12);
  --steel: #52616b;
  --steel-soft: rgba(82, 97, 107, .11);
  --ok: #2f6b45;
  --ok-soft: rgba(47, 107, 69, .12);
  --warn: #8a6426;
  --warn-soft: rgba(138, 100, 38, .13);
  --bad: #9b3f32;
  --bad-soft: rgba(155, 63, 50, .12);
  --shadow: 0 20px 58px rgba(23, 32, 51, .1);
  --shadow-soft: 0 10px 28px rgba(23, 32, 51, .075);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --focus: 0 0 0 3px rgba(47, 93, 70, .24), 0 0 0 1px rgba(23, 32, 51, .52);
}

html {
  background: var(--bg);
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 32, 51, .032) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 51, .028) 1px, transparent 1px),
    linear-gradient(135deg, rgba(47, 93, 70, .075) 0%, transparent 42%),
    linear-gradient(225deg, rgba(242, 100, 34, .055) 0%, transparent 38%),
    linear-gradient(180deg, #fffdf7 0%, #f5f2ea 52%, #f8f6f0 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

body::before {
  background: linear-gradient(90deg, transparent, rgba(255, 253, 247, .66), transparent);
  opacity: .58;
}

body::after {
  display: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  text-transform: none;
}

p {
  color: var(--muted);
}

input,
textarea,
select {
  min-height: 48px;
  border-color: var(--line);
  border-radius: var(--radius-xs);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 253, 247, .9)),
    var(--surface-solid);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74);
}

input::placeholder,
textarea::placeholder {
  color: rgba(102, 112, 133, .72);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(47, 93, 70, .48);
  box-shadow: var(--focus), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.topbar {
  background: rgba(255, 253, 247, .9);
  border-bottom: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .74),
    0 10px 30px rgba(23, 32, 51, .052);
  backdrop-filter: blur(18px) saturate(1.05);
}

.brand-copy strong {
  color: var(--ink);
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--muted);
}

.topbar-nav a,
.topbar-nav span {
  border-color: var(--line);
  background: rgba(255, 253, 247, .76);
  color: var(--ink-2);
  box-shadow: none;
}

.topbar-nav a::before,
.topbar-nav span::before {
  background: var(--primary);
  opacity: .46;
}

.topbar-nav a:hover {
  border-color: rgba(47, 93, 70, .28);
  background: var(--primary-soft);
  color: var(--primary-2);
}

.card,
.task-card,
.solve-task,
.file-preview-panel,
.ready-link-card,
.payment-card,
.stat-card,
.metric,
.summary-row,
.file-row,
.status-row,
.timeline-row,
.empty,
.choice-card,
.answer-choice,
.solve-choice,
.classroom-task-result-item,
.classroom-answer-pair > div {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .94), rgba(249, 246, 238, .86)),
    var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.card.soft,
.system-aside,
.solve-submit-bar {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .9), rgba(246, 242, 232, .84)),
    var(--surface-2);
}

.metric,
.summary-row {
  border-radius: var(--radius-sm);
}

.metric small,
.summary-row small {
  color: var(--muted);
  letter-spacing: 0;
}

.metric strong,
.summary-row strong {
  color: var(--ink);
  letter-spacing: 0;
}

.btn {
  min-height: 46px;
  border-radius: var(--radius-xs);
  padding: .78rem 1rem;
  font-size: .88rem;
  letter-spacing: 0;
  text-transform: none;
}

.btn.primary {
  border-color: rgba(32, 61, 49, .44);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--surface-solid);
  box-shadow: 0 12px 24px rgba(32, 61, 49, .18);
}

.btn.primary:hover:not(:disabled),
.fx-reactive.btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(32, 61, 49, .2);
}

.btn.secondary {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(246, 242, 232, .82)),
    var(--surface-solid);
  color: var(--ink);
}

.btn.ghost {
  color: var(--primary-2);
}

.btn.ghost:hover:not(:disabled) {
  background: var(--primary-soft);
}

.btn.danger,
.btn.ghost.danger:hover:not(:disabled),
.btn.ghost.danger:focus-visible {
  color: var(--bad);
  background: var(--bad-soft);
}

.pill,
.topbar-nav span,
.step-pill,
.badge {
  min-height: 29px;
  border-color: var(--line);
  background: rgba(255, 253, 247, .76);
  color: var(--ink-2);
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.pill.ok {
  border-color: rgba(47, 107, 69, .24);
  background: var(--ok-soft);
  color: var(--ok);
}

.pill.warn {
  border-color: rgba(138, 100, 38, .26);
  background: var(--warn-soft);
  color: var(--warn);
}

.pill.bad {
  border-color: rgba(155, 63, 50, .24);
  background: var(--bad-soft);
  color: var(--bad);
}

.pill.muted {
  background: var(--steel-soft);
  color: var(--steel);
}

.notice {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  box-shadow: none;
}

.notice.info {
  border-color: rgba(82, 97, 107, .2);
  background: var(--steel-soft);
  color: var(--steel);
}

.notice.ok {
  border-color: rgba(47, 107, 69, .22);
  background: var(--ok-soft);
  color: var(--ok);
}

.notice.warn {
  border-color: rgba(138, 100, 38, .24);
  background: var(--warn-soft);
  color: var(--warn);
}

.notice.error {
  border-color: rgba(155, 63, 50, .24);
  background: var(--bad-soft);
  color: var(--bad);
}

.progress-bar span,
.loader-track span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: none;
}

.step-row.is-active {
  border-color: rgba(47, 93, 70, .2);
  background: var(--primary-soft);
}

.step-row.is-active .step-index {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--surface-solid);
  box-shadow: 0 0 0 4px rgba(47, 93, 70, .12);
}

.choice-card:hover,
.answer-choice:hover,
.solve-choice:hover {
  border-color: rgba(47, 93, 70, .28);
  background: rgba(47, 93, 70, .055);
}

.choice input:checked + .choice-card,
.solve-choice:has(input:checked) {
  border-color: rgba(47, 93, 70, .42);
  background:
    linear-gradient(180deg, rgba(47, 93, 70, .11), rgba(255, 253, 247, .86)),
    var(--surface-solid);
  box-shadow: 0 0 0 3px rgba(47, 93, 70, .1), var(--shadow-soft);
}

.choice input:checked + .choice-card::before {
  border-color: var(--primary);
  background: radial-gradient(circle, var(--primary) 0 48%, transparent 51%);
}

.drop {
  border-color: rgba(47, 93, 70, .3);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .86), rgba(246, 242, 232, .72)),
    linear-gradient(90deg, rgba(47, 93, 70, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 93, 70, .055) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
}

.drop:hover,
.drop.is-dragover {
  border-color: rgba(47, 93, 70, .54);
  box-shadow: inset 0 0 0 1px rgba(47, 93, 70, .1), 0 18px 42px rgba(23, 32, 51, .1);
}

.drop-icon,
.file-glyph {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--surface-solid);
}

.spinner {
  border-color: rgba(23, 32, 51, .14);
  border-top-color: var(--primary);
}

.hero::before {
  background:
    linear-gradient(135deg, rgba(47, 93, 70, .11), transparent 55%),
    linear-gradient(225deg, rgba(242, 100, 34, .07), transparent 58%);
  opacity: .62;
  animation: none;
}

.hero-card,
.solve-hero,
.public-head {
  border-color: rgba(23, 32, 51, .14);
  background: linear-gradient(135deg, #203d31 0%, #2f5d46 56%, #51674e 100%);
  color: var(--surface-solid);
  box-shadow: var(--shadow);
}

.hero-copy h1,
.solve-hero h1,
.public-head h1 {
  color: var(--surface-solid);
  letter-spacing: 0;
  text-transform: none;
}

.hero-copy > p:not(.hero-kicker),
.solve-hero p,
.public-head p {
  color: rgba(255, 253, 247, .86);
}

.module-eyebrow,
.task-kicker,
.solve-eyebrow {
  color: var(--primary-2);
}

.solve-score {
  background:
    radial-gradient(circle closest-side, var(--surface-solid) 68%, transparent 70%),
    conic-gradient(var(--primary) var(--score), rgba(23, 32, 51, .12) 0);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
}

.landing-shell {
  --comic-ink: var(--ink);
  --comic-paper: var(--surface-solid);
  --comic-orange: var(--accent);
  --comic-yellow: #f1d36b;
  --comic-blue: #466d78;
  --comic-blue-dark: #284d57;
  --comic-green: #5d7b51;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 32, 51, .03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 51, .026) 1px, transparent 1px),
    linear-gradient(135deg, rgba(47, 93, 70, .08), transparent 42%),
    linear-gradient(180deg, #fffdf7 0%, #f5f2ea 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.landing-shell h1,
.landing-shell h2,
.landing-shell h3 {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.landing-shell p {
  color: var(--muted);
}

.landing-hero {
  border-bottom: 1px solid var(--line);
  background-color: transparent;
}

.landing-kicker {
  color: var(--primary-2);
}

.landing-nav a,
.landing-audience article,
.landing-update,
.landing-panel__copy,
.landing-panel__image,
.landing-strengths article,
.landing-final {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .94), rgba(249, 246, 238, .86)),
    var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.landing-audience article span,
.landing-update__tag,
.landing-update__date,
.landing-panel__copy li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary-2);
  box-shadow: none;
  text-transform: none;
}

.landing-panel__number {
  border: 1px solid rgba(255, 255, 255, .72);
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(47, 93, 70, .18);
}

.landing-final {
  background:
    linear-gradient(135deg, rgba(47, 93, 70, .12), rgba(242, 100, 34, .1)),
    var(--surface-solid);
}

.landing-final p:not(.landing-kicker) {
  color: var(--ink-2);
}

.landing-cta.btn.primary {
  border-color: rgba(188, 72, 22, .4);
  background: linear-gradient(135deg, var(--accent), #d44f19);
  color: var(--surface-solid);
  box-shadow: 0 14px 30px rgba(242, 100, 34, .2);
}

@media (max-width: 760px) {
  .btn {
    min-height: 44px;
  }

  .topbar {
    padding: .62rem .72rem;
  }

  .landing-update,
  .landing-final {
    padding: 20px;
  }
}

/* UI 10 Prompt 2: landing page and app shell refinement.
   This layer uses the Prompt 1 tokens; it only changes landing/shell composition. */
.topbar {
  min-height: 62px;
  padding-top: .56rem;
  padding-bottom: .56rem;
}

.brand {
  gap: .62rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 8px;
}

.brand-copy strong {
  font-size: 1.04rem;
  font-weight: 850;
}

.brand-copy small {
  margin-top: .14rem;
  font-size: .72rem;
}

.topbar-nav {
  gap: .18rem;
}

.topbar-nav a {
  min-height: 32px;
  padding: .42rem .56rem;
  border-color: transparent;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 760;
}

.topbar-nav a::before {
  display: none;
}

.topbar-nav a:hover {
  border-color: transparent;
  background: var(--primary-soft);
  color: var(--primary-2);
}

.app.app--landing {
  background: var(--bg);
}

.landing-shell {
  overflow: clip;
  background:
    linear-gradient(90deg, rgba(23, 32, 51, .026) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 51, .022) 1px, transparent 1px),
    linear-gradient(135deg, rgba(47, 93, 70, .075), transparent 44%),
    linear-gradient(180deg, #fffdf7 0%, #f5f2ea 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.landing-hero {
  min-height: 78svh;
  display: grid;
  align-items: center;
  padding: 52px 0 46px;
  border-bottom: 1px solid var(--line);
  background-color: transparent;
  background-image: none;
}

.landing-hero__shade {
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255, 253, 247, .96) 0 44%, rgba(47, 93, 70, .09) 44% 68%, rgba(242, 100, 34, .06) 100%);
}

.landing-hero__inner {
  width: min(1120px, calc(100% - 2rem));
  grid-template-columns: minmax(0, .95fr) minmax(340px, .78fr);
  gap: 36px;
  align-items: center;
  padding: 0;
}

.landing-hero__copy {
  max-width: 640px;
}

.landing-hero__copy h1,
.landing-hero__copy p {
  color: var(--ink);
  text-shadow: none;
}

.landing-shell h1 {
  max-width: 12.6ch;
  font-size: 4rem;
  line-height: .98;
}

.landing-shell h2 {
  max-width: 19ch;
  font-size: 2.34rem;
  line-height: 1.08;
}

.landing-shell h3 {
  font-size: 1.34rem;
  line-height: 1.18;
}

.landing-shell p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.64;
}

.landing-hero__copy > p:not(.landing-kicker) {
  max-width: 61ch;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.06rem;
  line-height: 1.64;
}

.landing-hero__note {
  max-width: 58ch;
  padding: .78rem .9rem;
  border: 1px solid rgba(47, 93, 70, .16);
  border-radius: var(--radius-sm);
  background: rgba(47, 93, 70, .075);
}

.landing-kicker {
  gap: 7px;
  margin-bottom: 14px;
  color: var(--primary-2);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.landing-kicker::before {
  width: .48rem;
  height: .48rem;
  border: 0;
  background: var(--primary);
  box-shadow: none;
}

.landing-hero__copy .landing-kicker {
  color: var(--primary-2);
}

.landing-actions,
.landing-final__actions {
  gap: .62rem;
  margin-top: 22px;
}

.landing-cta.btn {
  min-height: 46px;
  border-radius: var(--radius-xs);
  padding: .78rem 1rem;
  box-shadow: none;
}

.landing-cta.btn.primary {
  color: var(--surface-solid);
  box-shadow: 0 12px 24px rgba(242, 100, 34, .18);
}

.landing-cta.btn.secondary {
  border-color: var(--line);
  background: rgba(255, 253, 247, .88);
  color: var(--primary-2);
}

.landing-cta.btn:focus-visible,
.topbar-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(47, 93, 70, .34);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

.landing-hero__proof {
  max-width: 620px;
  gap: .42rem;
  margin-top: 20px;
}

.landing-hero__proof span {
  min-height: 30px;
  padding: .36rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, .76);
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 760;
  box-shadow: none;
}

.landing-hero__preview {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .88);
  box-shadow: var(--shadow);
}

.landing-preview__media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow: hidden;
}

.landing-preview__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(.96);
}

.landing-preview__panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 4px 2px 2px;
}

.landing-preview__head {
  display: grid;
  gap: 4px;
}

.landing-preview__head span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 780;
}

.landing-preview__head strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.28;
}

.landing-preview__flow {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-preview__flow li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .62rem;
  align-items: start;
  min-width: 0;
  padding: .62rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(246, 242, 232, .66);
}

.landing-preview__flow li > span {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--surface-solid);
  font-size: .78rem;
  font-weight: 850;
}

.landing-preview__flow div {
  display: grid;
  gap: .08rem;
  min-width: 0;
}

.landing-preview__flow strong {
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.2;
}

.landing-preview__flow small {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.28;
}

.landing-audience,
.landing-updates,
.landing-story,
.landing-strengths,
.landing-final {
  width: min(1120px, calc(100% - 2rem));
}

.landing-audience {
  padding: 70px 0 34px;
}

.landing-updates {
  padding: 36px 0 30px;
}

.landing-story {
  padding: 48px 0 28px;
}

.landing-strengths {
  padding: 56px 0 62px;
}

.landing-section-head {
  gap: 8px;
  max-width: 760px;
  margin-bottom: 24px;
}

.landing-section-head--story {
  position: relative;
  top: auto;
  z-index: 1;
  width: min(760px, 100%);
  padding: 0;
  margin-bottom: 24px;
}

.landing-audience__grid,
.landing-strengths__grid {
  gap: 14px;
}

.landing-audience article,
.landing-strengths article,
.landing-update,
.landing-final {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.landing-audience article {
  padding: 20px;
}

.landing-audience article:nth-child(1),
.landing-audience article:nth-child(2),
.landing-audience article:nth-child(3) {
  border-top-color: var(--line);
}

.landing-audience article span {
  margin-bottom: 12px;
  padding: .34rem .58rem;
  border: 1px solid rgba(47, 93, 70, .18);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-2);
  font-size: .78rem;
  font-weight: 780;
  text-transform: none;
}

.landing-update {
  grid-template-columns: minmax(0, .86fr) minmax(280px, 1.14fr);
  gap: 20px;
  padding: 22px;
}

.landing-update__meta {
  margin-bottom: 12px;
}

.landing-update__tag,
.landing-update__date {
  min-height: 28px;
  padding: .32rem .56rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary-2);
  font-size: .78rem;
  font-weight: 760;
  text-transform: none;
  box-shadow: none;
}

.landing-update__list {
  gap: 8px;
}

.landing-update__list li {
  padding: .72rem .78rem .72rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(255, 253, 247, .7);
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 650;
}

.landing-update__list li::before {
  left: .78rem;
  top: 1rem;
  width: .44rem;
  height: .44rem;
  border: 0;
  background: var(--primary);
}

.landing-panel,
.landing-panel--flip {
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: auto;
  margin-bottom: 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .94), rgba(249, 246, 238, .88)),
    var(--surface-solid);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.landing-panel--flip {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
}

.landing-panel__image {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--surface-2);
  box-shadow: none;
}

.landing-panel__image::before {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: .34;
}

.landing-panel__image img {
  filter: saturate(.8) contrast(.96);
}

.landing-panel__copy {
  position: relative;
  top: auto;
  align-content: center;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-panel__number {
  width: auto;
  height: auto;
  place-items: start;
  margin-bottom: 12px;
  padding: .26rem .52rem;
  border: 1px solid rgba(47, 93, 70, .2);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-2) !important;
  font-size: .82rem !important;
  font-weight: 850;
  box-shadow: none;
}

.landing-panel__copy ul {
  gap: 7px;
  margin-top: 16px;
}

.landing-panel__copy li,
.landing-panel__copy li:nth-child(2n),
.landing-panel__copy li:nth-child(3n) {
  min-height: 28px;
  padding: .32rem .58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 242, 232, .72);
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 720;
}

.landing-strengths__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-strengths article {
  padding: 18px;
}

.landing-strengths article:nth-child(1),
.landing-strengths article:nth-child(2),
.landing-strengths article:nth-child(3),
.landing-strengths article:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .94), rgba(249, 246, 238, .86)),
    var(--surface-solid);
}

.landing-strengths strong {
  color: var(--ink);
  font-size: 1rem;
}

.landing-strengths span {
  color: var(--muted);
  font-size: .94rem;
}

.landing-final {
  margin-bottom: 48px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(47, 93, 70, .1), rgba(242, 100, 34, .08)),
    var(--surface-solid);
}

@media (max-width: 1020px) {
  .landing-hero {
    min-height: auto;
  }

  .landing-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 22px 0 0;
  }

  .landing-shell h1 {
    font-size: 3.1rem;
  }

  .landing-shell h2 {
    font-size: 2rem;
  }

  .landing-hero__preview {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 58px;
    padding: .5rem .68rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-copy strong {
    font-size: 1.04rem;
  }

  .topbar-nav a {
    min-height: 30px;
    padding: .32rem .44rem;
    font-size: .7rem;
  }

  .landing-hero {
    padding: 32px 0 28px;
    background-size: auto;
  }

  .landing-hero__shade {
    background: linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(47, 93, 70, .07));
  }

  .landing-hero__inner,
  .landing-audience,
  .landing-updates,
  .landing-story,
  .landing-strengths,
  .landing-final {
    width: calc(100vw - 1.25rem);
    margin-left: .625rem;
    margin-right: .625rem;
  }

  .landing-shell h1 {
    max-width: 12ch;
    font-size: 2.18rem;
    line-height: 1.03;
  }

  .landing-shell h2 {
    max-width: 100%;
    font-size: 1.72rem;
  }

  .landing-shell h3 {
    font-size: 1.22rem;
  }

  .landing-hero__copy > p:not(.landing-kicker),
  .landing-shell p {
    font-size: .96rem;
  }

  .landing-hero__note {
    padding: .72rem;
  }

  .landing-actions,
  .landing-final__actions {
    display: grid;
  }

  .landing-hero__proof {
    display: none;
  }

  .landing-hero__preview {
    grid-template-columns: 126px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .landing-preview__media {
    aspect-ratio: 4 / 3;
    max-height: 178px;
  }

  .landing-preview__panel {
    padding: 0;
  }

  .landing-preview__head strong {
    font-size: .9rem;
  }

  .landing-preview__flow {
    display: none;
  }

  .landing-audience {
    padding-top: 52px;
  }

  .landing-audience__grid,
  .landing-strengths__grid {
    grid-template-columns: 1fr;
  }

  .landing-update,
  .landing-panel,
  .landing-panel--flip,
  .landing-final {
    grid-template-columns: 1fr;
  }

  .landing-panel--flip .landing-panel__image,
  .landing-panel--flip .landing-panel__copy {
    order: initial;
  }

  .landing-panel__image {
    aspect-ratio: 16 / 9;
  }

  .landing-panel__copy,
  .landing-update,
  .landing-final {
    padding: 18px;
  }
}

@media (max-width: 390px) {
  .brand-copy strong {
    font-size: .98rem;
  }

  .topbar .topbar-nav {
    max-width: min(50vw, 11.25rem);
  }

  .landing-shell h1 {
    font-size: 2.02rem;
  }

  .landing-preview__media {
    max-height: 112px;
  }
}

/* UI 10 direction correction: keep the split hero, restore the lively comic landing. */
.landing-shell {
  --comic-blue: #0866f2;
  --comic-blue-dark: #053b91;
  --comic-ink: #07101f;
  --comic-paper: #fffdf7;
  --comic-yellow: #ffd43b;
  --comic-orange: #ff7a1a;
  --comic-green: #24a35a;
  --comic-purple: #7c4dff;
  --comic-line: rgba(7, 16, 31, .18);
  color: var(--comic-ink);
  background:
    linear-gradient(90deg, rgba(76, 32, 12, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(76, 32, 12, .07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 213, 72, .38), transparent 42%),
    linear-gradient(118deg, #d83416 0%, #f26422 42%, #f8a327 76%, #ffca4b 100%);
  background-size: 32px 32px, 32px 32px, auto, auto;
  overflow: hidden;
}

.landing-hero {
  min-height: 78svh;
  display: grid;
  align-items: center;
  padding: 52px 0 46px;
  border-bottom: 1px solid var(--line);
  background-color: transparent;
  background-image: none;
}

.landing-hero__shade {
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255, 253, 247, .96) 0 44%, rgba(47, 93, 70, .09) 44% 68%, rgba(242, 100, 34, .06) 100%);
}

.landing-hero__inner {
  width: min(1120px, calc(100% - 2rem));
  grid-template-columns: minmax(0, .95fr) minmax(340px, .78fr);
  gap: 36px;
  align-items: center;
  padding: 0;
}

.landing-hero__preview {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .9);
  box-shadow: 0 22px 56px rgba(23, 32, 51, .14);
}

.landing-preview__media img {
  filter: none;
}

.landing-audience,
.landing-updates,
.landing-story,
.landing-strengths,
.landing-final {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.landing-audience {
  padding: 92px 0 44px;
}

.landing-updates {
  padding: 34px 0 28px;
}

.landing-story {
  padding: 58px 0 24px;
}

.landing-strengths {
  padding: 76px 0;
}

.landing-section-head {
  display: grid;
  gap: 10px;
  max-width: none;
  margin-bottom: 28px;
}

.landing-section-head p:not(.landing-kicker) {
  max-width: 68ch;
  margin: 0;
}

.landing-section-head--story {
  position: sticky;
  top: 68px;
  z-index: 2;
  width: min(620px, 100%);
  padding: 22px 0 12px;
  margin-bottom: 0;
}

.landing-shell h2 {
  max-width: 15ch;
  font-size: 2.85rem;
  line-height: 1;
}

.landing-shell h3 {
  margin: 0;
  font-size: 2.12rem;
  line-height: 1.05;
}

.landing-audience__grid,
.landing-strengths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-audience article,
.landing-strengths article {
  min-width: 0;
  border: 3px solid var(--comic-ink);
  border-radius: 8px;
  background: var(--comic-paper);
  box-shadow: 6px 6px 0 rgba(7, 16, 31, .88);
}

.landing-audience article {
  padding: 22px;
}

.landing-audience article:nth-child(1) { border-top-color: var(--comic-orange); }
.landing-audience article:nth-child(2) { border-top-color: var(--comic-blue); }
.landing-audience article:nth-child(3) { border-top-color: var(--comic-green); }

.landing-audience article span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px;
  border: 2px solid var(--comic-ink);
  border-radius: 8px;
  background: var(--comic-yellow);
  color: var(--comic-ink);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-audience article h3 {
  font-size: 1.24rem;
  line-height: 1.16;
}

.landing-audience article p {
  margin-top: 10px;
  font-size: .96rem;
}

.landing-update {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
  padding: 24px;
  border: 3px solid var(--comic-ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 244, 255, .96), rgba(255, 248, 214, .94)),
    var(--comic-paper);
  box-shadow: 6px 6px 0 rgba(7, 16, 31, .88);
}

.landing-update__tag,
.landing-update__date {
  min-height: 30px;
  padding: 5px 9px;
  border: 2px solid var(--comic-ink);
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-update__tag {
  background: var(--comic-yellow);
  color: var(--comic-ink);
  box-shadow: 3px 3px 0 rgba(7, 16, 31, .88);
}

.landing-update__date {
  background: #fff;
  color: var(--comic-blue-dark);
}

.landing-update h3 {
  font-size: 1.42rem;
  line-height: 1.16;
}

.landing-update p {
  margin: 12px 0 0;
  font-size: .98rem;
}

.landing-update__list {
  display: grid;
  gap: 10px;
}

.landing-update__list li {
  position: relative;
  min-width: 0;
  padding: 10px 10px 10px 30px;
  border: 2px solid rgba(7, 16, 31, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #334155;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.42;
}

.landing-update__list li::before {
  left: 11px;
  top: 16px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--comic-ink);
  background: var(--comic-green);
}

.landing-panel,
.landing-panel--flip {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 28px;
  align-items: center;
  min-height: 74svh;
  margin-bottom: 0;
  padding: 36px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.landing-panel--flip {
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
}

.landing-panel--flip .landing-panel__image {
  order: 2;
}

.landing-panel--flip .landing-panel__copy {
  order: 1;
}

.landing-panel__image {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 4px solid var(--comic-ink);
  border-radius: 8px;
  background: #d9edff;
  box-shadow: 8px 8px 0 rgba(7, 16, 31, .9);
  overflow: hidden;
}

.landing-panel__image::before {
  background-image: radial-gradient(circle, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 1;
}

.landing-panel__image img {
  filter: none;
}

.landing-panel__copy {
  position: sticky;
  top: 118px;
  min-width: 0;
  padding: 26px;
  border: 4px solid var(--comic-ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(246, 251, 255, .94)),
    var(--comic-paper);
  box-shadow: 8px 8px 0 rgba(7, 16, 31, .9);
}

.landing-panel__number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 0 14px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--comic-blue);
  color: #fff !important;
  font-size: 1.42rem !important;
  font-weight: 950;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--comic-ink);
}

.landing-panel__copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.landing-panel__copy li,
.landing-panel__copy li:nth-child(2n),
.landing-panel__copy li:nth-child(3n) {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 9px;
  border: 2px solid rgba(7, 16, 31, .18);
  border-radius: 8px;
  background: #eef6ff;
  color: var(--comic-blue-dark);
  font-size: .86rem;
  font-weight: 900;
}

.landing-panel__copy li:nth-child(2n) {
  background: #fff3bf;
  color: #6b4200;
}

.landing-panel__copy li:nth-child(3n) {
  background: #e9fbe9;
  color: #12622d;
}

.landing-strengths__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-strengths article {
  display: grid;
  gap: 10px;
  padding: 19px;
}

.landing-strengths article:nth-child(1) { background: #fff8d6; }
.landing-strengths article:nth-child(2) { background: #e8f4ff; }
.landing-strengths article:nth-child(3) { background: #ecfdf3; }
.landing-strengths article:nth-child(4) { background: #fff0e5; }

.landing-strengths strong {
  color: var(--comic-ink);
  font-size: 1.04rem;
  line-height: 1.2;
}

.landing-strengths span {
  color: #42516a;
  font-size: .94rem;
  line-height: 1.55;
}

.landing-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 56px;
  padding: 36px;
  border: 4px solid var(--comic-ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 212, 59, .96), rgba(255, 122, 26, .88)),
    var(--comic-yellow);
  box-shadow: 8px 8px 0 rgba(7, 16, 31, .9);
}

.landing-final h2 {
  max-width: 16ch;
}

.landing-final p:not(.landing-kicker) {
  max-width: 62ch;
  color: #2a240c;
}

@media (max-width: 1020px) {
  .landing-shell h2 {
    font-size: 2.28rem;
  }

  .landing-panel,
  .landing-panel--flip {
    grid-template-columns: 1fr;
  }

  .landing-update {
    grid-template-columns: 1fr;
  }

  .landing-panel--flip .landing-panel__image,
  .landing-panel--flip .landing-panel__copy {
    order: initial;
  }

  .landing-panel {
    min-height: auto;
    padding: 34px 0 52px;
  }

  .landing-panel__copy {
    position: relative;
    top: auto;
  }

  .landing-audience__grid,
  .landing-strengths__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-final {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-shell {
    background-size: 30px 30px, 30px 30px, auto, auto;
  }

  .landing-hero {
    min-height: auto;
    padding: 32px 0 28px;
  }

  .landing-hero__shade {
    background: linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(47, 93, 70, .07));
  }

  .landing-hero__inner,
  .landing-audience,
  .landing-updates,
  .landing-story,
  .landing-strengths,
  .landing-final {
    width: calc(100vw - 1rem);
    margin-left: .5rem;
    margin-right: .5rem;
  }

  .landing-shell h2 {
    font-size: 1.86rem;
  }

  .landing-shell h3 {
    font-size: 1.48rem;
  }

  .landing-audience {
    padding-top: 72px;
  }

  .landing-section-head--story {
    position: relative;
    top: auto;
    margin-bottom: -2svh;
  }

  .landing-audience__grid,
  .landing-strengths__grid {
    grid-template-columns: 1fr;
  }

  .landing-panel__image,
  .landing-panel__copy,
  .landing-audience article,
  .landing-update,
  .landing-strengths article,
  .landing-final {
    box-shadow: 5px 5px 0 rgba(7, 16, 31, .9);
  }

  .landing-panel__copy,
  .landing-update,
  .landing-final {
    padding: 19px;
  }
}

@media (max-width: 430px) {
  .landing-panel__number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem !important;
  }
}

/* Final guard: hero follows the reference screenshot, comic energy starts below it. */
.landing-hero {
  background:
    linear-gradient(90deg, rgba(23, 32, 51, .026) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 51, .022) 1px, transparent 1px),
    linear-gradient(115deg, #fffdf7 0 44%, #dfe8df 44% 68%, #f5f2ea 100%) !important;
  background-size: 48px 48px, 48px 48px, auto !important;
}

.landing-hero__shade {
  display: none !important;
}

@media (max-width: 760px) {
  .landing-hero {
    display: block !important;
    min-height: 0 !important;
    padding: 24px 0 28px !important;
    background:
      linear-gradient(90deg, rgba(23, 32, 51, .025) 1px, transparent 1px),
      linear-gradient(0deg, rgba(23, 32, 51, .02) 1px, transparent 1px),
      linear-gradient(180deg, #fffdf7 0%, #eef2e9 100%) !important;
    background-size: 38px 38px, 38px 38px, auto !important;
  }

  .landing-hero__inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start !important;
    width: calc(100vw - 1rem) !important;
    max-width: 100% !important;
    margin: 0 .5rem !important;
    padding: 0 !important;
  }

  .landing-hero__copy {
    max-width: 100% !important;
  }

  .landing-hero__preview {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    max-width: 100% !important;
    padding: 10px !important;
  }

  .landing-preview__flow {
    display: none !important;
  }
}

/* User correction: restore the original comic landing/topbar; keep only the split hero layout. */
.topbar {
  min-height: 60px;
  padding: .5rem max(.82rem, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(1200px 420px at 15% 0%, rgba(56, 189, 248, .10), transparent 60%),
    radial-gradient(900px 320px at 90% 10%, rgba(34, 197, 94, .08), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #070b12 100%);
  backdrop-filter: blur(22px) saturate(1.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18);
}

.brand {
  gap: .58rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 10px;
}

.brand-copy strong {
  color: #fff;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy small {
  color: rgba(255, 247, 226, .78);
  font-size: .66rem;
}

.topbar-nav {
  gap: .42rem;
}

.topbar-nav a {
  min-height: 31px;
  padding: .36rem .66rem;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 820;
  box-shadow: none;
}

.topbar-nav a::before {
  display: block;
  content: "";
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

.topbar-nav a:hover {
  border-color: rgba(255, 255, 255, .5);
  background: #fff7e2;
  color: #07101f;
}

.landing-shell {
  --comic-blue: #0866f2;
  --comic-blue-dark: #053b91;
  --comic-ink: #07101f;
  --comic-paper: #fffdf7;
  --comic-yellow: #ffd43b;
  --comic-orange: #ff7a1a;
  --comic-green: #24a35a;
  --comic-purple: #7c4dff;
  --comic-line: rgba(7, 16, 31, .18);
  color: var(--comic-ink);
  background:
    linear-gradient(90deg, rgba(76, 32, 12, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(76, 32, 12, .07) 1px, transparent 1px),
    radial-gradient(circle at 22% 8%, rgba(255, 213, 72, .58), transparent 24rem),
    radial-gradient(circle at 82% 4%, rgba(255, 98, 19, .48), transparent 30rem),
    linear-gradient(118deg, #d83416 0%, #f26422 42%, #f8a327 76%, #ffca4b 100%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  overflow: hidden;
}

.landing-hero {
  position: relative;
  min-height: calc(100svh - 60px);
  box-sizing: border-box;
  display: grid;
  align-items: center;
  isolation: isolate;
  padding: clamp(18px, 3svh, 34px) 0 clamp(20px, 3svh, 34px);
  border-bottom: 4px solid var(--comic-ink);
  background:
    linear-gradient(90deg, rgba(76, 32, 12, .10) 1px, transparent 1px),
    linear-gradient(0deg, rgba(76, 32, 12, .08) 1px, transparent 1px),
    linear-gradient(110deg, rgba(3, 18, 43, .90) 0 43%, rgba(8, 102, 242, .30) 43% 54%, rgba(255, 212, 59, .22) 54% 100%),
    linear-gradient(118deg, #d83416 0%, #f26422 42%, #f8a327 76%, #ffca4b 100%) !important;
  background-size: 32px 32px, 32px 32px, auto, auto !important;
  background-position: center !important;
  background-repeat: repeat, repeat, no-repeat, no-repeat !important;
}

.landing-hero__shade {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(1200px 420px at 15% 0%, rgba(56, 189, 248, .10), transparent 60%),
    radial-gradient(900px 320px at 90% 10%, rgba(34, 197, 94, .08), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #070b12 100%);}

.landing-hero__inner {
  width: min(1180px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(360px, .82fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: center;
  margin: 0 auto;
  padding: 0;
}

.landing-hero__copy {
  max-width: 720px;
  min-width: 0;
}

.landing-hero__copy h1,
.landing-hero__copy p {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .42);
}

.landing-shell h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 4.2vw, 3.75rem);
  line-height: .95;
}

.landing-shell h2 {
  max-width: 15ch;
  margin: 0;
  font-size: 2.85rem;
  line-height: 1;
}

.landing-shell h3 {
  margin: 0;
  font-size: 2.12rem;
  line-height: 1.05;
}

.landing-shell p {
  color: #334155;
  font-size: 1.04rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.landing-hero__copy > p:not(.landing-kicker) {
  max-width: 62ch;
  margin-top: 12px;
  color: rgba(255, 255, 255, .91);
  font-size: 1.04rem;
  line-height: 1.48;
}

.landing-hero__note {
  max-width: 58ch;
  padding: .72rem .9rem;
  border: 2px solid rgba(255, 255, 255, .58);
  border-radius: 8px;
  background: rgba(3, 18, 43, .38);
  box-shadow: 4px 4px 0 rgba(7, 16, 31, .52);
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--comic-blue);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.landing-kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--comic-yellow);
  box-shadow: 2px 2px 0 var(--comic-ink);
}

.landing-hero__copy .landing-kicker {
  color: #dbeafe;
}

.landing-actions,
.landing-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.landing-cta.btn {
  min-height: 43px;
  border-radius: 8px;
  padding: .68rem .92rem;
  box-shadow: 4px 4px 0 rgba(7, 16, 31, .86);
}

.landing-cta.btn.primary {
  border-color: #07101f;
  background: linear-gradient(135deg, #ffe156, var(--comic-orange));
  color: #10131b;
}

.landing-cta.btn.secondary {
  border-color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .9);
  color: var(--comic-ink);
}

.landing-cta.btn:focus-visible,
.topbar-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .72);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(8, 102, 242, .32);
}

.landing-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
}

.landing-hero__proof span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 9px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  color: var(--comic-blue-dark);
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(7, 16, 31, .52);
}

.landing-hero__preview {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: min(100%, 620px);
  justify-self: end;
  padding: 10px;
  border: 4px solid var(--comic-ink);
  border-radius: 8px;
  background: var(--comic-paper);
  box-shadow: 6px 6px 0 rgba(7, 16, 31, .90);
}

.landing-preview__media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 3px solid var(--comic-ink);
  border-radius: 8px;
  background: #d9edff;
  overflow: hidden;
}

.landing-preview__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.landing-preview__panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 4px 2px 2px;
}

.landing-preview__head {
  display: grid;
  gap: 3px;
}

.landing-preview__head span {
  color: var(--comic-blue-dark);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-preview__head strong {
  color: var(--comic-ink);
  font-size: 1.02rem;
  line-height: 1.18;
}

.landing-preview__flow {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-preview__flow li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 7px 9px;
  border: 2px solid rgba(7, 16, 31, .16);
  border-radius: 8px;
  background: #fff;
}

.landing-preview__flow li > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--comic-blue);
  color: #fff;
  font-size: .8rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 2px 2px 0 var(--comic-ink);
}

.landing-preview__flow strong {
  display: block;
  color: var(--comic-ink);
  font-size: .88rem;
  line-height: 1.18;
}

.landing-preview__flow small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: .76rem;
  line-height: 1.18;
}

@media (min-width: 761px) and (max-height: 820px) {
  .topbar {
    min-height: 54px;
    padding-top: .38rem;
    padding-bottom: .38rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-copy strong {
    font-size: .98rem;
  }

  .landing-hero {
    min-height: calc(100svh - 54px);
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .landing-hero__inner {
    gap: 22px;
  }

  .landing-shell h1 {
    font-size: clamp(2.55rem, 3.75vw, 3.2rem);
  }

  .landing-hero__copy > p:not(.landing-kicker) {
    margin-top: 9px;
    font-size: .95rem;
    line-height: 1.4;
  }

  .landing-hero__note {
    padding: .56rem .72rem;
  }

  .landing-actions {
    margin-top: 12px;
  }

  .landing-cta.btn {
    min-height: 38px;
    padding: .54rem .78rem;
  }

  .landing-hero__proof {
    gap: 6px;
  }

  .landing-hero__proof span {
    min-height: 26px;
    padding: 4px 8px;
    font-size: .72rem;
  }

  .landing-hero__preview {
    width: min(100%, 560px);
    gap: 7px;
    padding: 8px;
    border-width: 3px;
  }

  .landing-preview__media {
    border-width: 2px;
  }

  .landing-preview__panel {
    gap: 6px;
  }

  .landing-preview__head span {
    font-size: .7rem;
  }

  .landing-preview__head strong {
    font-size: .92rem;
  }

  .landing-preview__flow {
    gap: 4px;
  }

  .landing-preview__flow li {
    padding: 5px 7px;
  }

  .landing-preview__flow li > span {
    width: 22px;
    height: 22px;
    font-size: .72rem;
  }

  .landing-preview__flow strong {
    font-size: .8rem;
  }

  .landing-preview__flow small {
    font-size: .68rem;
  }
}

@media (max-width: 900px) {
  .landing-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-hero__preview {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    column-gap: .62rem;
    row-gap: .42rem;
    width: 100%;
    max-width: 100vw;
    min-height: 0;
    box-sizing: border-box;
    padding: .64rem .76rem;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    margin-left: -.16rem;
  }

  .brand-copy strong {
    font-size: clamp(1.22rem, 6.2vw, 1.58rem);
  }

  .topbar .topbar-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    justify-content: end;
    width: auto;
    max-width: min(48vw, 13.25rem);
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: .28rem;
    margin-left: 0;
    padding-bottom: 0;
    overflow: visible;
    transform: none;
  }

  .topbar-nav a {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 31px;
    padding: .32rem .48rem;
    font-size: .68rem;
    white-space: nowrap;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .landing-hero {
    display: block !important;
    min-height: auto !important;
    padding: 28px 0 34px !important;
    background:
      linear-gradient(90deg, rgba(76, 32, 12, .10) 1px, transparent 1px),
      linear-gradient(0deg, rgba(76, 32, 12, .08) 1px, transparent 1px),
      linear-gradient(180deg, rgba(3, 18, 43, .88) 0%, rgba(216, 52, 22, .86) 44%, rgba(248, 163, 39, .9) 100%) !important;
    background-size: 30px 30px, 30px 30px, auto !important;
  }

  .landing-hero__shade {
    display: block !important;
    background: linear-gradient(180deg, rgba(3, 18, 43, .32), rgba(3, 18, 43, .10));
  }

  .landing-hero__inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start !important;
    width: calc(100vw - 1rem) !important;
    max-width: 100% !important;
    margin: 0 .5rem !important;
    padding: 0 !important;
  }

  .landing-hero__copy {
    max-width: 100% !important;
  }

  .landing-shell h1 {
    max-width: 11ch;
    font-size: 2.3rem;
    line-height: .98;
  }

  .landing-hero__copy > p:not(.landing-kicker) {
    max-width: 100%;
    margin-top: 12px;
    font-size: .96rem;
    line-height: 1.5;
  }

  .landing-hero__note {
    padding: .72rem .78rem;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .landing-cta.btn {
    width: 100%;
    min-height: 46px;
  }

  .landing-hero__proof {
    display: none;
  }

  .landing-hero__preview {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    max-width: 100% !important;
    padding: 10px !important;
    border-width: 3px;
    box-shadow: 5px 5px 0 rgba(7, 16, 31, .9);
  }

  .landing-preview__media {
    border-width: 2px;
  }

  .landing-preview__panel {
    gap: 5px;
    padding: 0;
  }

  .landing-preview__head strong {
    font-size: .92rem;
  }

  .landing-preview__flow {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .topbar {
    column-gap: .42rem;
    padding-left: .55rem;
    padding-right: .55rem;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .brand-copy strong {
    font-size: clamp(1.18rem, 6.1vw, 1.45rem);
  }

  .topbar .topbar-nav {
    max-width: min(50vw, 11.25rem);
    gap: .24rem;
  }

  .topbar-nav a {
    min-height: 32px;
    padding: .32rem .42rem;
    font-size: .64rem;
  }

  .topbar-nav a::before {
    display: none;
  }
}

/* UI 10 Prompt 3 final guard: keep builder closer to the comic product than to the calm shell. */
.hero-card {
  border: 3px solid var(--builder-ink);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(118deg, #07101f 0%, #0d2e5f 46%, #0b6ccf 100%) !important;
  color: #fff;
  box-shadow: var(--builder-comic-shadow);
}

.hero-card::after {
  width: 8px;
  background: linear-gradient(180deg, var(--builder-yellow), var(--builder-orange), var(--builder-blue));
  opacity: 1;
}

.hero-card h1,
.hero-card .builder-map-card strong {
  color: #fff;
}

.hero-card .hero-copy > p:not(.hero-kicker),
.hero-card .builder-map-card small {
  color: rgba(255, 255, 255, .88);
}

.hero-card .btn.primary {
  border-color: var(--builder-ink);
  background: linear-gradient(135deg, var(--builder-yellow), var(--builder-orange));
  color: #111827;
  box-shadow: 5px 5px 0 rgba(7, 16, 31, .72);
}

.hero-card .btn.secondary {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .9);
  color: var(--builder-ink);
}

@media (max-width: 760px) {
  .hero-card {
    border-width: 2px;
    box-shadow: 4px 4px 0 rgba(7, 16, 31, .86);
  }
}

/* UI 10 Prompt 5: student result and teacher panel as lively educational dashboards. */
:root {
  --ui10-ink: #07101f;
  --ui10-blue: #0d2e5f;
  --ui10-blue-2: #0b6ccf;
  --ui10-yellow: #ffd43b;
  --ui10-orange: #ff7a1a;
  --ui10-green: #1f7a4d;
  --ui10-red: #b54534;
  --ui10-paper: #fffdf7;
  --ui10-line: rgba(7, 16, 31, .14);
  --ui10-shadow: 0 18px 42px rgba(7, 16, 31, .12);
  --ui10-comic-shadow: 5px 5px 0 rgba(7, 16, 31, .76);
}

.solve-shell,
.public-shell.classroom-teacher-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.6rem) 0 clamp(2rem, 5vw, 3.6rem);
}

.solve-hero,
.public-head.classroom-teacher-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  border: 3px solid var(--ui10-ink);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    radial-gradient(circle at 14% 18%, rgba(11, 108, 207, .28), transparent 22rem),
    linear-gradient(118deg, #07101f 0%, #0d2e5f 48%, #0b6ccf 100%) !important;
  background-size: 36px 36px, 36px 36px, auto, auto !important;
  color: #fff;
  box-shadow: var(--ui10-comic-shadow);
}

.solve-hero::after,
.public-head.classroom-teacher-head::after {
  inset: 0 0 0 auto;
  width: clamp(7px, 1vw, 10px);
  background: linear-gradient(180deg, var(--ui10-yellow), var(--ui10-orange), var(--ui10-blue-2));
  opacity: 1;
}

.solve-hero::before,
.public-head.classroom-teacher-head::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(42%, 390px);
  background: linear-gradient(112deg, transparent 0 22%, rgba(255, 212, 59, .18) 23% 48%, transparent 49%);
  pointer-events: none;
}

.solve-hero__content,
.classroom-teacher-head > div {
  position: relative;
  z-index: 1;
}

.solve-hero h1,
.public-head.classroom-teacher-head h1 {
  color: #fff;
  max-width: min(100%, 18ch);
  font-size: clamp(2rem, 3.8vw, 3.18rem);
  line-height: 1.04;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
  text-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.solve-hero__content > p:not(.solve-eyebrow),
.public-head.classroom-teacher-head p:not(.hero-kicker) {
  max-width: 68ch;
  color: rgba(255, 255, 255, .88);
}

.solve-eyebrow,
.public-head.classroom-teacher-head .hero-kicker,
.classroom-teacher-card .module-eyebrow {
  color: var(--ui10-yellow);
  letter-spacing: .02em;
}

.solve-hero .pill,
.public-head.classroom-teacher-head .pill {
  border: 2px solid rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: none;
}

.solve-shell .hero-system {
  margin-top: 1.15rem;
}

.solve-shell .system-step {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

.solve-shell .system-step small {
  color: var(--ui10-yellow);
}

.solve-shell .system-step strong {
  color: #fff;
}

.solve-layout {
  gap: clamp(1rem, 2.4vw, 1.4rem);
}

.solve-result,
.solve-form,
.solve-side,
.classroom-teacher-card {
  border: 2px solid rgba(7, 16, 31, .12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 248, 226, .72)),
    var(--ui10-paper);
  box-shadow: var(--ui10-shadow);
}

.solve-side {
  top: 92px;
}

.solve-result__top {
  align-items: center;
  margin: -.2rem -.2rem 1rem;
  padding: clamp(.9rem, 2.4vw, 1.25rem);
  border: 2px solid rgba(7, 16, 31, .10);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 212, 59, .22), transparent 16rem),
    linear-gradient(135deg, rgba(13, 46, 95, .08), rgba(255, 248, 226, .66));
}

.solve-score {
  width: clamp(124px, 16vw, 160px);
  height: clamp(124px, 16vw, 160px);
  border: 3px solid var(--ui10-ink);
  background:
    radial-gradient(circle closest-side, #fffdf7 66%, transparent 68%),
    conic-gradient(var(--ui10-orange) var(--score), rgba(7, 16, 31, .10) 0);
  box-shadow: 4px 4px 0 rgba(7, 16, 31, .14);
}

.solve-score strong {
  color: var(--ui10-ink);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.solve-score span {
  color: #4b5565;
}

.solve-task-list {
  gap: .9rem;
}

.solve-task {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(7, 16, 31, .12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 248, 226, .68)),
    var(--ui10-paper);
  box-shadow: 0 12px 30px rgba(7, 16, 31, .08);
}

.solve-task::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--ui10-blue-2), var(--ui10-yellow));
  opacity: .82;
}

.solve-task__head,
.solve-section-head,
.solve-submit-bar {
  gap: 1rem;
}

.task-kicker,
.module-eyebrow {
  color: var(--ui10-blue);
}

.solve-choice-group {
  gap: .64rem;
}

.answer-choice,
.solve-choice {
  min-height: 52px;
  border-width: 2px;
  border-radius: 10px;
}

.answer-choice input,
.solve-choice input {
  accent-color: var(--ui10-blue-2);
}

.answer-choice:hover,
.solve-choice:hover,
.solve-choice:has(input:checked) {
  border-color: rgba(11, 108, 207, .36);
  background:
    linear-gradient(135deg, rgba(11, 108, 207, .10), rgba(255, 253, 247, .88)),
    var(--ui10-paper);
}

.classroom-participant-panel {
  border: 2px solid rgba(11, 108, 207, .18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 212, 59, .20), rgba(255, 255, 255, .86)),
    var(--ui10-paper);
  box-shadow: 0 10px 26px rgba(7, 16, 31, .08);
}

.classroom-participant-panel:focus-within {
  border-color: rgba(11, 108, 207, .44);
  box-shadow: 0 0 0 4px rgba(11, 108, 207, .13);
}

.participant-code-field input {
  border-width: 2px;
  font-weight: 850;
  letter-spacing: .04em;
}

.solve-submit-bar {
  border: 2px solid rgba(7, 16, 31, .10);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 212, 59, .24), rgba(255, 255, 255, .82)),
    var(--ui10-paper);
}

.solve-task--result {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 248, 226, .74)),
    var(--ui10-paper);
}

.solve-task--correct {
  border-color: rgba(31, 122, 77, .28);
}

.solve-task--correct::after {
  background: linear-gradient(180deg, #24a35a, #9be073);
}

.solve-task--partial {
  border-color: rgba(186, 131, 28, .32);
}

.solve-task--partial::after {
  background: linear-gradient(180deg, #d89a18, var(--ui10-yellow));
}

.solve-task--incorrect {
  border-color: rgba(181, 69, 52, .28);
}

.solve-task--incorrect::after {
  background: linear-gradient(180deg, #d65b48, #ffb1a5);
}

.solve-result-badge {
  border: 2px solid currentColor;
  border-radius: 999px;
  font-weight: 900;
}

.solve-result-badge--correct {
  background: rgba(36, 163, 90, .13);
  color: var(--ui10-green);
}

.solve-result-badge--partial {
  background: rgba(255, 212, 59, .22);
  color: #8a5a00;
}

.solve-result-badge--incorrect {
  background: rgba(214, 91, 72, .12);
  color: var(--ui10-red);
}

.solve-feedback,
.solve-explanation {
  border-radius: 10px;
}

.solve-answer-grid {
  gap: .75rem;
}

.solve-answer-grid > div,
.classroom-answer-pair > div {
  border: 2px solid rgba(7, 16, 31, .10);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 248, 226, .68)),
    var(--ui10-paper);
}

.solve-answer-grid dt,
.classroom-answer-pair dt {
  color: var(--ui10-blue);
}

.classroom-teacher-grid {
  gap: clamp(1rem, 2.4vw, 1.35rem);
}

.classroom-overview {
  border-color: rgba(11, 108, 207, .22);
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 212, 59, .22), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(245, 250, 255, .82)),
    var(--ui10-paper);
}

.classroom-metrics {
  gap: .78rem;
}

.classroom-metrics .metric {
  min-height: 104px;
  border: 2px solid rgba(7, 16, 31, .12);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 248, 226, .78)),
    var(--ui10-paper);
}

.classroom-metrics .metric strong {
  color: var(--ui10-blue);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.classroom-controls {
  gap: .72rem;
  padding: .78rem;
  border: 2px solid rgba(7, 16, 31, .10);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(13, 46, 95, .07), rgba(255, 212, 59, .20)),
    var(--ui10-paper);
}

.classroom-controls .btn[data-action="classroom-evaluate"] {
  border-color: var(--ui10-ink);
  background: linear-gradient(135deg, var(--ui10-yellow), var(--ui10-orange));
  color: #111827;
  box-shadow: 4px 4px 0 rgba(7, 16, 31, .30);
}

.classroom-controls .btn[data-action="classroom-refresh"],
.classroom-controls .btn[data-action="classroom-download-pdf"] {
  border-color: rgba(11, 108, 207, .22);
  color: var(--ui10-blue);
}

.classroom-submission-actions .btn[data-action="classroom-download-student-pdf"] {
  border-color: rgba(11, 108, 207, .22);
  color: var(--ui10-blue);
}

.classroom-submission-row,
.classroom-result-row,
.classroom-explanations article {
  border: 2px solid rgba(7, 16, 31, .12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 248, 226, .72)),
    var(--ui10-paper);
  box-shadow: 0 10px 24px rgba(7, 16, 31, .07);
}

.classroom-submission-row__top,
.classroom-result-row__score {
  align-items: start;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(7, 16, 31, .10);
}

.classroom-inline-result {
  width: fit-content;
  padding: .45rem .62rem;
  border-radius: 999px;
  background: rgba(36, 163, 90, .12);
  color: var(--ui10-green);
}

.classroom-answer-item,
.classroom-task-result-item {
  border: 1px solid rgba(7, 16, 31, .10);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.classroom-task-statuses .pill {
  white-space: normal;
}

.classroom-result-details summary,
.classroom-answer-preview summary {
  width: fit-content;
  padding: .42rem .62rem;
  border-radius: 999px;
  background: rgba(13, 46, 95, .08);
  color: var(--ui10-blue);
}

.classroom-danger-zone {
  border-color: rgba(181, 69, 52, .20);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 234, 230, .62)),
    var(--ui10-paper);
  box-shadow: 0 10px 28px rgba(181, 69, 52, .08);
}

.classroom-danger-zone .btn.danger {
  border-color: rgba(181, 69, 52, .30);
  background: rgba(181, 69, 52, .10);
  color: var(--ui10-red);
  box-shadow: none;
}

@media (min-width: 920px) {
  .solve-layout {
    grid-template-columns: minmax(0, 1fr) minmax(310px, .36fr);
  }
}

@media (max-width: 760px) {
  .solve-shell,
  .public-shell.classroom-teacher-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: .75rem;
  }

  .solve-hero,
  .public-head.classroom-teacher-head {
    grid-template-columns: 1fr;
    border-width: 2px;
    box-shadow: 4px 4px 0 rgba(7, 16, 31, .86);
  }

  .solve-hero::before,
  .public-head.classroom-teacher-head::before {
    width: 58%;
    opacity: .46;
  }

  .solve-hero h1,
  .public-head.classroom-teacher-head h1 {
    max-width: 100%;
    font-size: clamp(1.78rem, 8.4vw, 2.42rem);
    line-height: 1.06;
  }

  .solve-shell .hero-system {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solve-result__top {
    align-items: flex-start;
  }

  .solve-score {
    width: 116px;
    height: 116px;
  }

  .solve-side {
    position: static;
  }

  .classroom-controls,
  .classroom-delete-actions {
    padding: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .solve-task,
  .classroom-submission-row,
  .classroom-result-row {
    transition: none;
  }
}

/* Prompt 2: shared public information page system */
.public-page {
  --public-ink: #07101f;
  --public-muted: #536174;
  --public-blue: #0d2e5f;
  --public-blue-strong: #0866f2;
  --public-yellow: #ffd43b;
  --public-orange: #ff7a1a;
  --public-paper: #fffdf7;
  --public-panel: rgba(255, 255, 252, .96);
  --public-line: rgba(7, 16, 31, .14);
  --public-shadow: 0 18px 44px rgba(7, 16, 31, .10);
  --public-shadow-strong: 0 26px 68px rgba(7, 16, 31, .18);
}

body.public-page {
  color: var(--public-ink);
  background:
    linear-gradient(rgba(13, 46, 95, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 46, 95, .045) 1px, transparent 1px),
    radial-gradient(circle at 14% -4%, rgba(255, 212, 59, .30), transparent 25rem),
    radial-gradient(circle at 92% 2%, rgba(255, 122, 26, .18), transparent 28rem),
    linear-gradient(180deg, #fffdf7 0%, #f7fbff 54%, #fff8e8 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

body.public-page .public-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  width: 100%;
  max-width: 100vw;
  min-height: 60px;
  box-sizing: border-box;
  padding: .5rem max(.82rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(246, 241, 223, .11);
  background:
    radial-gradient(1200px 420px at 15% 0%, rgba(56, 189, 248, .10), transparent 60%),
    radial-gradient(900px 320px at 90% 10%, rgba(34, 197, 94, .08), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #070b12 100%);
  backdrop-filter: blur(22px) saturate(1.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18);
}

body.public-page .public-brand {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
}

body.public-page .public-brand .brand-copy strong {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

body.public-page .public-brand .brand-copy small {
  color: rgba(255, 247, 226, .78);
}

body.public-page .public-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .42rem;
  min-width: 0;
}

body.public-page .public-topbar__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  min-width: 0;
  min-height: 31px;
  padding: .36rem .66rem;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  font-weight: 820;
  line-height: 1.1;
  text-decoration: none;
}

body.public-page .public-topbar__nav a::before {
  display: block;
  content: "";
  width: .38rem;
  height: .38rem;
  flex: 0 0 .38rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

body.public-page .public-topbar__nav a:hover {
  border-color: rgba(255, 255, 255, .5);
  background: #fff7e2;
  color: #07101f;
}

body.public-page .public-topbar__nav a:focus-visible,
body.public-page .public-brand:focus-visible,
body.public-page .public-action:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .72);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(8, 102, 242, .32);
}

body.public-page .public-wrap,
body.public-page .public-hero__copy,
body.public-page .public-hero__note,
body.public-page .public-content,
body.public-page .public-section,
body.public-page .public-card,
body.public-page .public-table-wrap {
  min-width: 0;
}

body.public-page .public-hero {
  position: relative;
  color: #fff;
}

body.public-page .public-hero__inner {
  border: 3px solid rgba(7, 16, 31, .92);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(118deg, #07101f 0%, #0d2e5f 46%, #0b6ccf 100%) !important;
  box-shadow: var(--public-shadow-strong);
}

body.public-page .public-card {
  border: 2px solid var(--public-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 248, 226, .78)),
    var(--public-panel);
  box-shadow: var(--public-shadow);
}

body.public-page .public-facts {
  display: grid;
  gap: .64rem;
}

body.public-page .public-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .66rem;
}

body.public-page .public-fact > span:first-child {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--public-blue);
  color: #fff;
  font-weight: 950;
}

body.public-page .public-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
}

body.public-page .public-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.public-page .public-layout {
  min-width: 0;
}

body.public-page .public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.public-page .public-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.public-page .public-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.public-page .public-band {
  border: 2px solid var(--public-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 212, 59, .22), transparent 18rem),
    radial-gradient(circle at 88% 4%, rgba(8, 102, 242, .10), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, .90), rgba(255, 248, 226, .82));
  box-shadow: var(--public-shadow);
}

body.public-page .public-note-row {
  min-width: 0;
}

body.public-page .public-toc,
body.public-page .public-toc__card,
body.public-page .public-toc__list,
body.public-page .public-toc__item,
body.public-page .public-table-card {
  min-width: 0;
}

body.public-page .public-table-wrap {
  max-width: 100%;
}

body.public-page .public-details {
  min-width: 0;
}

@media (max-width: 760px) {
  body.public-page .public-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: .42rem;
    column-gap: .62rem;
    padding: .64rem .76rem;
  }

  body.public-page .public-section__head {
    grid-template-columns: 1fr;
  }

  body.public-page .public-grid,
  body.public-page .public-grid--two,
  body.public-page .public-grid--three {
    grid-template-columns: 1fr;
  }
}

/* Legal document pages */
.legal-shell,
.legal-card,
.legal-section {
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-shell a:focus-visible,
#appFooter .footer__links a:focus-visible {
  outline: 3px solid rgba(65, 90, 69, .34);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

#appFooter,
#appFooter .footer__top,
#appFooter .footer__cols {
  min-width: 0;
}

.legal-doc {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(1.7rem, 4.4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

.legal-wrap {
  width: min(1120px, calc(100% - 2rem));
  min-width: 0;
  margin: 0 auto;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(.6rem, 2vw, 1rem) 0 clamp(1.3rem, 3vw, 2rem);
  color: #fff;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 0%, rgba(255, 122, 26, .18), transparent 24rem),
    linear-gradient(180deg, transparent, rgba(7, 16, 31, .04));
}

.legal-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, .82fr);
  align-items: center;
  gap: clamp(1.35rem, 4vw, 2.9rem);
  min-height: clamp(360px, 48vw, 520px);
  padding: clamp(2rem, 5.6vw, 4.7rem);
  border: 3px solid rgba(7, 16, 31, .92);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(118deg, #07101f 0%, #0d2e5f 46%, #0b6ccf 100%) !important;  box-shadow: 0 26px 68px rgba(7, 16, 31, .18);
  isolation: isolate;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .44rem;
  margin: 0 0 1rem;
  color: #dbeafe;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-eyebrow::before {
  content: "";
  width: .62rem;
  height: .62rem;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: #ffd43b;
  box-shadow: 2px 2px 0 rgba(7, 16, 31, .86);
}

.legal-hero h1 {
  max-width: min(100%, 14ch);
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5.8vw, 4.55rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
  text-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.legal-lead {
  max-width: 68ch;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.7vw, 1.13rem);
  line-height: 1.58;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .18);
}

.legal-hero-note {
  display: grid;
  gap: 1rem;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 248, 226, .96)),
    #fff;
  color: var(--ink);
  padding: clamp(1.05rem, 3vw, 1.55rem);
  box-shadow: 0 26px 68px rgba(7, 16, 31, .18);
}

.legal-facts {
  display: grid;
  gap: .64rem;
}

.legal-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .66rem;
  align-items: center;
  padding: .66rem;
  border: 1px solid rgba(7, 16, 31, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.legal-fact span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #0d2e5f;
  color: #fff;
  font-size: .82rem;
  font-weight: 950;
}

.legal-fact strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: start;
  margin-top: clamp(1.5rem, 4vw, 2.8rem);
}

.legal-toc {
  position: sticky;
  top: 86px;
  min-width: 0;
}

.legal-toc__card {
  border: 2px solid rgba(7, 16, 31, .14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 212, 59, .22), transparent 13rem),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 248, 226, .78)),
    var(--surface);
  padding: 1rem;
  box-shadow: 0 18px 44px rgba(7, 16, 31, .10);
}

.legal-toc__card h2 {
  margin: .14rem 0 .9rem;
  color: var(--ink);
  font-size: clamp(1.24rem, 2.4vw, 1.58rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.legal-toc__list {
  display: grid;
  gap: .5rem;
}

.legal-toc__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .66rem;
  align-items: center;
  min-height: 42px;
  max-height: 42px;
  padding: .46rem .56rem;
  overflow: hidden;
  border: 1px solid rgba(7, 16, 31, .12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 248, 226, .62)),
    rgba(255, 255, 255, .78);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(7, 16, 31, .045);
  transition: max-height .22s ease, min-height .22s ease, transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.legal-toc__item:hover,
.legal-toc__item:focus-visible {
  min-height: 60px;
  max-height: 76px;
  transform: translateY(-1px);
  border-color: rgba(8, 102, 242, .28);
  background:
    linear-gradient(135deg, rgba(8, 102, 242, .10), rgba(255, 212, 59, .24)),
    rgba(255, 255, 255, .92);
  box-shadow: 0 13px 26px rgba(7, 16, 31, .08);
}

.legal-toc__item small {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0d2e5f;
  color: #fff;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: 0;
}

.legal-toc__item strong {
  min-width: 0;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.18;
  overflow-wrap: normal;
  word-break: normal;
}

.legal-content {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.45rem);
  min-width: 0;
}

.legal-section {
  border: 2px solid rgba(7, 16, 31, .14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 248, 226, .76)),
    var(--surface);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: 0 12px 32px rgba(7, 16, 31, .08);
  scroll-margin-top: 96px;
}

.legal-section:nth-child(odd) {
  background:
    radial-gradient(circle at 92% 0%, rgba(8, 102, 242, .08), transparent 18rem),
    linear-gradient(135deg, rgba(255, 212, 59, .15), rgba(255, 255, 255, .82)),
    var(--surface);
}

.legal-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.38rem, 2.9vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.legal-section.rich-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  overflow-wrap: break-word;
}

.legal-section.rich-text > * + * {
  margin-top: .85rem;
}

.legal-section.rich-text strong {
  color: var(--ink);
}

.legal-section.rich-text a {
  color: #1f6846;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.legal-section.rich-text ul,
.legal-section.rich-text ol {
  display: grid;
  gap: .52rem;
  margin: 0;
  padding-left: 1.15rem;
}

.legal-section.rich-text li::marker {
  color: #ff7a1a;
}

.legal-section .rich-table-wrap {
  border: 2px solid rgba(7, 16, 31, .14);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(7, 16, 31, .06);
}

.legal-section .rich-table {
  min-width: 520px;
  font-size: .96rem;
}

.legal-section .rich-table th,
.legal-section .rich-table td {
  padding: .92rem 1rem;
}

.legal-section .rich-table th {
  background: linear-gradient(135deg, rgba(8, 102, 242, .12), rgba(255, 212, 59, .32));
  color: #0d2e5f;
}

.legal-section .rich-table td:first-child {
  color: #0d2e5f;
  font-weight: 850;
}

.legal-section .rich-code {
  border: 2px solid rgba(7, 16, 31, .12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 248, 226, .72)),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(7, 16, 31, .06);
}

@media (max-width: 980px) {
  .legal-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.legal-page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .legal-doc {
    padding-top: .9rem;
  }

  .legal-page,
  .legal-page .topbar,
  .legal-page .legal-doc,
  .legal-page .legal-hero,
  .legal-page .legal-hero__inner,
  .legal-page .legal-hero-note,
  .legal-page .legal-layout,
  .legal-page .legal-content,
  .legal-page .legal-section {
    max-width: 100%;
    min-width: 0;
  }

  .legal-page .topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    inline-size: 100vw !important;
    max-inline-size: 100vw !important;
    overflow-x: hidden;
    padding: .64rem .75rem .72rem;
  }

  .legal-page .topbar .brand {
    width: 100%;
    min-width: 0;
  }

  .legal-page .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    margin-left: 0;
  }

  .legal-page .brand-copy strong {
    font-size: clamp(1.08rem, 5.4vw, 1.3rem);
  }

  .legal-page .brand-copy small {
    display: block;
    font-size: .66rem;
  }

  .legal-page .topbar .topbar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1;
    grid-row: 2;
    align-items: stretch;
    width: 100%;
    max-width: calc(100vw - 1.5rem);
    gap: .34rem;
    overflow: visible;
  }

  .legal-page .topbar-nav a {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: .34rem .48rem;
    font-size: .68rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .legal-page .topbar-nav a:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
  }

  .legal-page .topbar-nav a::before {
    flex: 0 0 auto;
  }

  .legal-wrap {
    width: min(1120px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
  }

  .legal-hero__inner {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem;
    padding: 1rem;
    border-width: 2px;
    overflow: hidden;
  }

  .legal-hero__inner > div:first-child,
  .legal-hero-note {
    width: 100%;
    max-width: calc(100vw - 3rem);
    min-width: 0;
    justify-self: stretch;
  }

  .legal-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.82rem, 8.8vw, 2.35rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .legal-lead {
    width: 100%;
    max-width: 100%;
    font-size: .95rem;
    line-height: 1.48;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .legal-hero-note {
    width: 100%;
    gap: .75rem;
    padding: .9rem;
  }

  .legal-fact {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: .56rem;
    padding: .56rem;
  }

  .legal-fact span {
    width: 28px;
    height: 28px;
    font-size: .74rem;
  }

  .legal-fact strong,
  .legal-toc__item strong,
  .legal-section h2 {
    overflow-wrap: anywhere;
  }

  .legal-section {
    padding: 1rem;
  }

  .legal-toc__list {
    grid-template-columns: 1fr;
  }

  .legal-toc__item,
  .legal-toc__item:hover,
  .legal-toc__item:focus-visible {
    min-height: 48px;
    max-height: none;
  }

  .legal-section .rich-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 520px) {
  .legal-page .topbar .topbar-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-page .topbar-nav a:nth-last-child(1):nth-child(odd) {
    grid-column: auto;
  }

  .legal-wrap {
    width: min(350px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    margin-left: 24px;
    margin-right: auto;
  }

  .legal-hero__inner > div:first-child,
  .legal-hero-note {
    max-width: min(100%, 318px);
  }

  .legal-hero h1 {
    font-size: clamp(1.72rem, 7.4vw, 2.05rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-toc__item {
    transition: none;
  }
}

/* Teacher package recovery */
.package-recovery-shell {
  width: min(100% - 2rem, 1120px);
  margin: 2rem auto 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1rem;
  align-items: start;
}

.package-recovery-card,
.package-recovery-aside {
  border-radius: 8px;
}

.package-recovery-head {
  display: grid;
  gap: .45rem;
  margin-bottom: 1.2rem;
}

.package-recovery-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.package-recovery-head p,
.package-recovery-aside p {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.6;
}

.package-recovery-form,
.package-recovery-confirm {
  display: grid;
  gap: 1rem;
}

.package-recovery-form .fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.package-recovery-form input {
  text-transform: none;
}

#packageRecoveryPromoCode {
  text-transform: uppercase;
}

.package-recovery-summary {
  margin: 0;
}

.package-recovery-aside {
  padding: 1.15rem;
  border: 1px solid rgba(15, 23, 42, .12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(240, 253, 250, .78)),
    var(--surface);
}

.package-recovery-aside h2 {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0;
}

@media (max-width: 860px) {
  .package-recovery-shell {
    width: min(100% - 1rem, 680px);
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .package-recovery-form .fields {
    grid-template-columns: 1fr;
  }

  .package-recovery-head h1 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }
}


/* Prompt 2 public pricing page styles: migrated from cennik inline CSS. */
      body.pricing-page {
        --ink: #07101f;
        --ink-2: #172033;
        --muted: #536174;
        --line: rgba(7, 16, 31, .14);
        --line-strong: rgba(7, 16, 31, .26);
        --paper: #fffdf7;
        --soft: rgba(255, 248, 226, .82);
        --panel: rgba(255, 255, 252, .94);
        --brand: #0866f2;
        --brand-dark: #053b91;
        --accent: #ff7a1a;
        --accent-dark: #b8450b;
        --yellow: #ffd43b;
        --cream: #fff7e2;
        --green: #1f7a4d;
        --blue: #0d2e5f;
        --shadow: 0 18px 44px rgba(7, 16, 31, .10);
        --shadow-strong: 0 26px 68px rgba(7, 16, 31, .18);
      }

      body.pricing-page * { box-sizing: border-box; }

      html:has(body.pricing-page) {
        max-width: 100%;
        scroll-behavior: smooth;
        overflow-x: clip;
      }

      body.pricing-page {
        margin: 0;
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        color: var(--ink);
        background:
          linear-gradient(rgba(13, 46, 95, .045) 1px, transparent 1px),
          linear-gradient(90deg, rgba(13, 46, 95, .045) 1px, transparent 1px),
          radial-gradient(circle at 14% -4%, rgba(255, 212, 59, .32), transparent 25rem),
          radial-gradient(circle at 92% 2%, rgba(255, 122, 26, .20), transparent 28rem),
          linear-gradient(180deg, #fffdf7 0%, #f7fbff 54%, #fff8e8 100%);
        background-size: 34px 34px, 34px 34px, auto, auto, auto;
        line-height: 1.5;
        max-width: 100%;
        overflow-x: clip;
      }

      body.pricing-page a { color: inherit; }

      body.pricing-page .wrap {
        width: min(1120px, calc(100% - 32px));
        min-width: 0;
        margin: 0 auto;
        margin-top: 20px;
      }

      body.pricing-page .topbar {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .85rem;
        padding: .78rem max(.82rem, calc((100vw - 1180px) / 2));
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(246, 241, 223, .11);
        background:
          radial-gradient(1200px 420px at 15% 0%, rgba(56, 189, 248, .10), transparent 60%),
          radial-gradient(900px 320px at 90% 10%, rgba(255, 212, 59, .12), transparent 55%),
          linear-gradient(180deg, #0b1220 0%, #070b12 100%);
        backdrop-filter: blur(22px) saturate(1.12);
        box-shadow: 0 1px 0 rgba(255, 255, 255, .18);
      }

      body.pricing-page .brand {
        display: inline-flex;
        align-items: center;
        gap: .74rem;
        min-width: 0;
        max-width: 100%;
        text-decoration: none;
      }

      body.pricing-page .brand-mark {
        display: block;
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        border-radius: 10px;
      }

      body.pricing-page .brand-copy {
        display: grid;
        min-width: 0;
        line-height: 1.08;
      }

      body.pricing-page .brand-copy strong {
        color: #fff;
        font-size: 1.18rem;
        letter-spacing: 0;
        overflow-wrap: anywhere;
      }

      body.pricing-page .brand-copy small {
        margin-top: .22rem;
        color: rgba(255, 247, 226, .78);
        font-size: .72rem;
      }

      body.pricing-page .topbar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: .38rem;
        min-width: 0;
        max-width: calc(100% - 8rem);
        overflow-x: auto;
        scrollbar-width: none;
      }

      body.pricing-page .topbar-nav::-webkit-scrollbar { display: none; }

      body.pricing-page .topbar-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .36rem;
        min-width: 0;
        max-width: 100%;
        min-height: 28px;
        padding: .33rem .62rem;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 999px;
        background: rgba(255, 255, 255, .08);
        color: #fdfdfd;
        font-size: .74rem;
        font-weight: 820;
        line-height: 1.1;
        white-space: nowrap;
        overflow-wrap: anywhere;
        text-decoration: none;
      }

      body.pricing-page .topbar-nav a::before {
        content: "";
        width: .38rem;
        height: .38rem;
        border-radius: 50%;
        background: currentColor;
        opacity: .45;
      }

      body.pricing-page .topbar-nav a:hover {
        border-color: rgba(255, 212, 59, .60);
        background: rgba(255, 255, 255, .14);
      }

      body.pricing-page .topbar-nav a:focus-visible,
body.pricing-page .brand:focus-visible,
body.pricing-page .mail-link:focus-visible {
        outline: 3px solid rgba(255, 255, 255, .32);
        outline-offset: 3px;
        box-shadow: 0 0 0 4px rgba(65, 90, 69, .18);
      }

      body.pricing-page .hero {
        position: relative;
        display: block;
        grid-template-columns: none;
        gap: 0;
        overflow: hidden;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 26px 0 0;
        color: #fff;
        background: transparent;
      }

      body.pricing-page .hero::before {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 42%;
        pointer-events: none;
        background:
          radial-gradient(circle at 74% 0%, rgba(255, 122, 26, .18), transparent 24rem),
          linear-gradient(180deg, transparent, rgba(7, 16, 31, .04));
      }

      body.pricing-page .hero__inner {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
        gap: clamp(22px, 4vw, 46px);
        min-height: 0;
        padding: clamp(42px, 7vw, 76px);
        align-items: center;
        border: 3px solid rgba(7, 16, 31, .92);
        border-radius: 8px;
        background: linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
            linear-gradient(0deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
            linear-gradient(118deg, #07101f 0%, #0d2e5f 46%, #0b6ccf 100%) !important;        box-shadow: var(--shadow-strong);
        isolation: isolate;
      }

      body.pricing-page h1 {
        margin: 0;
        max-width: 12ch;
        font-size: clamp(2.1rem, 5.7vw, 4.35rem);
        line-height: 1.02;
        letter-spacing: 0;
        color: #fff;
        text-shadow: 0 18px 44px rgba(0, 0, 0, .22);
      }

      body.pricing-page .lead {
        margin: 22px 0 0;
        color: rgba(255, 255, 255, .86);
        max-width: 66ch;
        font-size: 1.12rem;
        text-shadow: 0 12px 34px rgba(0, 0, 0, .18);
      }

      body.pricing-page .hero-note {
        border: 2px solid rgba(255, 255, 255, .72);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 248, 226, .96)),
          #fff;
        color: var(--ink);
        padding: clamp(18px, 3vw, 26px);
        box-shadow: var(--shadow-strong);
      }

      body.pricing-page .hero-note strong {
        display: block;
        font-size: 1.06rem;
      }

      body.pricing-page .hero-note p {
        margin: 8px 0 0;
        color: var(--muted);
      }

      body.pricing-page .price-fact p {
        margin: 2px 0 0;
        font-size: .92rem;
      }

      body.pricing-page .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 26px;
      }

      body.pricing-page .hero-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        border: 2px solid rgba(255, 255, 255, .76);
        border-radius: 8px;
        padding: 11px 18px;
        color: #fff;
        font-weight: 900;
        line-height: 1.1;
        text-decoration: none;
        box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
      }

      body.pricing-page .hero-actions a:first-child {
        border-color: rgba(7, 16, 31, .88);
        background: linear-gradient(135deg, var(--accent), var(--yellow));
        color: #221106;
      }

      body.pricing-page .hero-actions a:last-child {
        background: rgba(255, 255, 255, .12);
      }

      body.pricing-page .hero-actions a:focus-visible {
        outline: 3px solid rgba(255, 212, 59, .54);
        outline-offset: 3px;
      }

      body.pricing-page .price-eyebrow {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        margin-bottom: 10px;
        border-radius: 999px;
        background: rgba(255, 212, 59, .38);
        color: var(--brand-dark);
        padding: 4px 10px;
        font-size: .8rem;
        font-weight: 900;
        text-transform: uppercase;
      }

      body.pricing-page .hero-price {
        display: grid;
        gap: 2px;
        color: var(--ink);
        font-size: clamp(2.4rem, 5.6vw, 4.15rem);
        line-height: .95;
      }

      body.pricing-page .hero-price small {
        color: var(--muted);
        font-size: .95rem;
        line-height: 1.25;
      }

      body.pricing-page .price-facts {
        display: grid;
        gap: 10px;
        margin-top: 18px;
      }

      body.pricing-page .price-fact {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        padding: 10px;
        border: 1px solid rgba(7, 16, 31, .12);
        border-radius: 8px;
        background: rgba(255, 255, 255, .78);
      }

      body.pricing-page .price-fact span {
        display: inline-grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: var(--blue);
        color: #fff;
        font-size: .82rem;
        font-weight: 950;
      }

      body.pricing-page .price-fact strong {
        color: var(--ink);
        font-size: 1rem;
      }

      body.pricing-page main { padding: clamp(48px, 7vw, 76px) 0 88px; }

      body.pricing-page section + section { margin-top: clamp(52px, 7vw, 84px); }

      body.pricing-page .section-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 22px;
        align-items: end;
        margin-bottom: 24px;
      }

      body.pricing-page h2 {
        margin: 0;
        font-size: clamp(1.52rem, 3.2vw, 2.2rem);
        line-height: 1.12;
        letter-spacing: 0;
      }

      body.pricing-page .section-head p {
        margin: 8px 0 0;
        color: var(--muted);
        max-width: 74ch;
      }

      body.pricing-page .pill {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        min-height: 34px;
        border-radius: 999px;
        border: 1px solid rgba(8, 102, 242, .18);
        background: rgba(255, 255, 255, .82);
        color: var(--blue);
        padding: 7px 12px;
        font-weight: 800;
        font-size: .9rem;
      }

      body.pricing-page .price-card {
        border: 2px solid rgba(7, 16, 31, .16);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 248, 226, .78)),
          var(--panel);
        overflow: hidden;
        box-shadow: var(--shadow);
      }

      body.pricing-page .price-table {
        width: 100%;
        border-collapse: collapse;
      }

      body.pricing-page .price-table th,
body.pricing-page .price-table td {
        padding: 18px;
        border-bottom: 1px solid var(--line);
        text-align: left;
        vertical-align: top;
      }

      body.pricing-page .price-table th {
        background: linear-gradient(135deg, rgba(8, 102, 242, .12), rgba(255, 212, 59, .32));
        color: var(--blue);
        font-size: .9rem;
      }

      body.pricing-page .price-table tr:last-child td { border-bottom: 0; }

      body.pricing-page .range {
        display: grid;
        gap: 3px;
      }

      body.pricing-page .range strong {
        font-size: 1.18rem;
      }

      body.pricing-page .range span {
        color: var(--muted);
        font-size: .92rem;
      }

      body.pricing-page .price {
        white-space: nowrap;
        font-size: 1.44rem;
        font-weight: 900;
        color: var(--accent-dark);
      }

      body.pricing-page .annual-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
      }

      body.pricing-page .annual-plan {
        display: grid;
        gap: 14px;
      }

      body.pricing-page .annual-plan__top {
        display: grid;
        gap: 6px;
      }

      body.pricing-page .annual-plan__price {
        color: var(--accent-dark);
        font-size: 2rem;
        font-weight: 900;
        line-height: 1;
      }

      body.pricing-page .annual-plan__price small {
        color: var(--muted);
        font-size: .92rem;
        font-weight: 700;
      }

      body.pricing-page .annual-plan .list {
        gap: 8px;
      }

      body.pricing-page .annual-grid + .note-row {
        margin-top: 18px;
        border: 2px solid rgba(7, 16, 31, .14);
        border-radius: 8px;
      }

      body.pricing-page .contact-row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
      }

      body.pricing-page .mail-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        border-radius: 999px;
        border: 2px solid rgba(7, 16, 31, .86);
        background: linear-gradient(135deg, var(--accent), var(--yellow));
        color: #221106;
        padding: 9px 14px;
        font-weight: 900;
        text-decoration: none;
        box-shadow: 0 10px 24px rgba(184, 69, 11, .18);
      }

      body.pricing-page .mail-link:hover { filter: saturate(1.08) brightness(.98); }

      body.pricing-page .muted { color: var(--muted); }

      body.pricing-page .note-row {
        border-top: 1px solid var(--line);
        background:
          linear-gradient(135deg, rgba(255, 212, 59, .22), rgba(255, 255, 255, .82));
        padding: 16px 18px;
        color: var(--muted);
      }

      body.pricing-page .grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
      }

      body.pricing-page .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      body.pricing-page .block {
        border: 2px solid rgba(7, 16, 31, .14);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 248, 226, .76)),
          var(--panel);
        padding: 19px;
        box-shadow: 0 12px 32px rgba(7, 16, 31, .08);
      }

      body.pricing-page .block:nth-child(odd) {
        background:
          linear-gradient(135deg, rgba(255, 212, 59, .18), rgba(255, 255, 255, .82)),
          var(--panel);
      }

      body.pricing-page .block h3 {
        margin: 0 0 8px;
        font-size: 1.08rem;
      }

      body.pricing-page .block p {
        margin: 0;
        color: var(--muted);
      }

      body.pricing-page .list {
        display: grid;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
      }

      body.pricing-page .list li {
        position: relative;
        padding-left: 18px;
      }

      body.pricing-page .list li::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--accent);
        position: absolute;
        left: 0;
        top: .62em;
      }

      body.pricing-page .band {
        border: 2px solid rgba(7, 16, 31, .14);
        border-radius: 8px;
        background:
          radial-gradient(circle at 14% 12%, rgba(255, 212, 59, .22), transparent 18rem),
          radial-gradient(circle at 88% 4%, rgba(8, 102, 242, .10), transparent 20rem),
          linear-gradient(135deg, rgba(255, 255, 255, .90), rgba(255, 248, 226, .82));
        padding: clamp(24px, 4vw, 34px);
        box-shadow: var(--shadow);
      }

      body.pricing-page .details {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 0;
        border: 2px solid rgba(7, 16, 31, .14);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 248, 226, .72)),
          var(--panel);
        overflow: hidden;
        box-shadow: 0 12px 32px rgba(7, 16, 31, .08);
      }

      body.pricing-page .details dt,
body.pricing-page .details dd {
        margin: 0;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
      }

      body.pricing-page .details dt {
        background: rgba(8, 102, 242, .10);
        color: var(--blue);
        font-weight: 800;
      }

      body.pricing-page .details dd { color: var(--muted); }
      body.pricing-page .details dt:last-of-type,
body.pricing-page .details dd:last-of-type { border-bottom: 0; }

      body.pricing-page .legal-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
      }

      @media (max-width: 900px) {
        body.pricing-page .hero__inner,
body.pricing-page .section-head,
body.pricing-page .annual-grid,
body.pricing-page .grid,
body.pricing-page .grid.two,
body.pricing-page .legal-grid {
          grid-template-columns: 1fr;
        }

        body.pricing-page h1 { max-width: 16ch; }
      }

      @media (max-width: 680px) {
        body.pricing-page .wrap { width: min(1120px, calc(100% - 22px)); }
        body.pricing-page .topbar {
          display: grid;
          grid-template-columns: minmax(0, 1fr) auto;
          align-items: center;
          justify-items: stretch;
          column-gap: .62rem;
          row-gap: .42rem;
          padding: .64rem .76rem;
        }
        body.pricing-page .brand {
          width: auto;
          gap: .58rem;
        }
        body.pricing-page .topbar-nav {
          display: grid;
          grid-column: 2;
          grid-row: 1;
          grid-template-columns: minmax(0,1fr);
          align-content: center;
          width: auto;
          max-width: 42vw;
          flex: 0 0 auto;
          justify-content: end;
          flex-wrap: nowrap;
          overflow: visible;
          padding-bottom: 0;
          gap: .32rem;
        }
        body.pricing-page .topbar-nav a {
          flex: 0 0 auto;
          min-height: 31px;
          padding: .34rem .56rem;
          font-size: .7rem;
          white-space: nowrap;
          text-align: center;
        }
        body.pricing-page .brand-mark {
          width: 58px;
          height: 58px;
          flex-basis: 58px;
          margin-left: -.16rem;
        }
        body.pricing-page .brand-copy strong { font-size: clamp(1.22rem, 6.2vw, 1.58rem); }
        body.pricing-page .brand-copy small { display: none; }
        body.pricing-page .hero {
          padding-top: 16px;
        }
        body.pricing-page .hero__inner {
          max-width: 100%;
          min-width: 0;
          padding: 28px 18px;
          border-width: 2px;
        }
        body.pricing-page .hero-note,
body.pricing-page .price-fact,
body.pricing-page .price-fact > div {
          min-width: 0;
        }
        body.pricing-page h1,
body.pricing-page .lead,
body.pricing-page .hero-note p,
body.pricing-page .price-fact strong,
body.pricing-page .price-fact p {
          overflow-wrap: anywhere;
        }
        body.pricing-page .hero__inner::after {
          width: 52%;
          opacity: .42;
        }
        body.pricing-page .hero-actions a {
          flex: 1 1 min(14rem, 100%);
        }
        body.pricing-page .hero-price {
          font-size: clamp(2.1rem, 14vw, 3.25rem);
        }
        body.pricing-page .price-card { overflow: hidden; }
        body.pricing-page .price-table { min-width: 0; }
        body.pricing-page .price-table thead { display: none; }
        body.pricing-page .price-table tbody,
body.pricing-page .price-table tr,
body.pricing-page .price-table td { display: block; }
        body.pricing-page .price-table tr {
          padding: 14px 16px;
          border-bottom: 1px solid var(--line);
        }
        body.pricing-page .price-table tr:last-child { border-bottom: 0; }
        body.pricing-page .price-table td {
          padding: 8px 0;
          border-bottom: 0;
        }
        body.pricing-page .price-table td::before {
          display: block;
          margin-bottom: 3px;
          color: var(--brand-dark);
          font-size: .72rem;
          font-weight: 900;
          text-transform: uppercase;
          letter-spacing: .05em;
        }
        body.pricing-page .price-table td:nth-child(1)::before { content: "Zakres materiału"; }
        body.pricing-page .price-table td:nth-child(2)::before { content: "Cena brutto"; }
        body.pricing-page .price-table td:nth-child(3)::before { content: "Co otrzymujesz"; }
        body.pricing-page .price-table td:nth-child(4)::before { content: "Dla kogo"; }
        body.pricing-page .price { white-space: normal; font-size: 1.28rem; }
        body.pricing-page .band { padding: 18px; }
        body.pricing-page .annual-plan__price { font-size: 1.72rem; }
        body.pricing-page .details { grid-template-columns: 1fr; }
        body.pricing-page .details dt { border-bottom: 0; }
      }

      @media (max-width: 560px) {
        html:has(body.pricing-page),
body.pricing-page {
          width: 100%;
          max-width: 100vw;
          overflow-x: hidden;
        }
        body.pricing-page .wrap {
          width: min(1120px, calc(100vw - 16px));
          max-width: calc(100vw - 16px);
        }
        body.pricing-page .topbar {
          grid-template-columns: minmax(0, 1fr);
          gap: .5rem;
          inline-size: 100vw !important;
          max-inline-size: 100vw !important;
          overflow-x: hidden;
          padding: .64rem .75rem .72rem;
        }
        body.pricing-page .brand {
          width: 100%;
          min-width: 0;
        }
        body.pricing-page .brand-mark {
          width: 48px;
          height: 48px;
          flex-basis: 48px;
          margin-left: 0;
        }
        body.pricing-page .brand-copy strong { font-size: clamp(1.08rem, 5.4vw, 1.3rem); }
        body.pricing-page .topbar-nav {
          grid-column: 1;
          grid-row: 2;
          width: 100%;
          max-width: 100%;
          display: grid;
          grid-template-columns: repeat(2, minmax(0, 1fr));
          align-items: stretch;
          gap: .34rem;
          max-width: calc(100vw - 1.5rem);
          overflow: visible;
        }
        body.pricing-page .topbar-nav a {
          width: 100%;
          min-width: 0;
          min-height: 34px;
          padding: .34rem .5rem;
          font-size: .68rem;
          white-space: normal;
        }
        body.pricing-page .topbar-nav a:nth-last-child(1):nth-child(odd) {
          grid-column: 1 / -1;
        }
        body.pricing-page .hero { padding-top: 12px; }
        body.pricing-page .hero__inner {
          grid-template-columns: minmax(0, 1fr) !important;
          gap: 18px;
          padding: 24px 14px;
          overflow: hidden;
        }
        body.pricing-page .hero__inner > div,
body.pricing-page .hero-note {
          width: 100%;
          max-width: calc(100vw - 44px);
          min-width: 0;
          justify-self: stretch;
        }
        body.pricing-page h1 {
          width: 100%;
          max-width: 100%;
          font-size: clamp(2rem, 9vw, 2.55rem);
          word-break: break-word;
        }
        body.pricing-page .lead {
          width: 100%;
          max-width: 100%;
          font-size: .96rem;
          line-height: 1.48;
          word-break: break-word;
        }
        body.pricing-page .hero-note {
          width: 100%;
          padding: 16px 14px;
        }
        body.pricing-page .price-facts { gap: 8px; }
        body.pricing-page .price-fact {
          grid-template-columns: 28px minmax(0, 1fr);
          gap: 8px;
          padding: 9px;
        }
        body.pricing-page .price-fact span {
          width: 28px;
          height: 28px;
          font-size: .74rem;
        }
        body.pricing-page .hero-actions {
          display: grid;
          grid-template-columns: 1fr;
          gap: 8px;
        }
        body.pricing-page .hero-actions a { width: 100%; }
      }

      @media (max-width: 520px) {
        body.pricing-page .wrap {
          width: min(350px, calc(100vw - 16px));
          max-width: calc(100vw - 16px);
          margin-left: 24px;
          margin-right: auto;
        }
        body.pricing-page .topbar-nav {
          grid-template-columns: minmax(0, 1fr);
        }
        body.pricing-page .topbar-nav a:nth-last-child(1):nth-child(odd) {
          grid-column: auto;
        }
        body.pricing-page .hero__inner > div,
body.pricing-page .hero-note {
          max-width: min(100%, 318px);
        }
        body.pricing-page h1 {
          font-size: clamp(1.9rem, 8vw, 2.25rem);
        }
      }

      @media (max-width: 360px) {
        body.pricing-page .topbar {
          grid-template-columns: minmax(0, 1fr);
          gap: .5rem;
        }
        body.pricing-page .brand { width: 100%; }
        body.pricing-page .topbar-nav {
          grid-column: 1;
          grid-row: 2;
          width: 100%;
          max-width: 100%;
          display: flex;
          flex-wrap: wrap;
          justify-content: flex-start;
        }
        body.pricing-page .topbar-nav a {
          flex: 1 1 min(8.6rem, 100%);
          white-space: normal;
        }
      }

/* Prompt 3: pricing page product polish */
body.pricing-page {
  --pricing-blue-900: #061226;
  --pricing-blue-800: #0d2e5f;
  --pricing-blue-600: #0866f2;
  --pricing-orange: #ff7a1a;
  --pricing-yellow: #ffd43b;
  --pricing-paper: #fffdf7;
  --pricing-panel: rgba(255, 255, 252, .97);
  --pricing-line: rgba(7, 16, 31, .16);
  --pricing-line-strong: rgba(7, 16, 31, .30);
  --pricing-shadow: 0 20px 54px rgba(7, 16, 31, .12);
  --pricing-comic-shadow: 5px 5px 0 rgba(7, 16, 31, .88);
}

body.pricing-page .pricing-main {
  padding: clamp(42px, 6vw, 66px) 0 clamp(72px, 8vw, 104px);
}

body.pricing-page .pricing-section {
  scroll-margin-top: 96px;
}

body.pricing-page .pricing-section + .pricing-section {
  margin-top: clamp(44px, 6vw, 76px);
}

body.pricing-page .hero {
  padding-top: clamp(24px, 3.4vw, 48px);
}

body.pricing-page .hero__inner {
  grid-template-columns: minmax(0, .98fr) minmax(340px, .78fr);
  min-height: clamp(520px, 43vw, 640px);
  overflow: hidden;
  padding: clamp(52px, 6vw, 82px);
  border-width: 3px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .065) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(255, 212, 59, .11), transparent 17rem),
    radial-gradient(circle at 88% 68%, rgba(255, 122, 26, .16), transparent 18rem),
    linear-gradient(118deg, #07101f 0%, #0d2e5f 48%, #0b6ccf 100%) !important;
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  box-shadow: var(--pricing-comic-shadow), 0 26px 70px rgba(7, 16, 31, .18);
}

body.pricing-page .hero__inner::before,
body.pricing-page .hero__inner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

body.pricing-page .hero__inner::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 31, .28), transparent 44%),
    radial-gradient(circle at 3rem calc(100% - 3rem), rgba(255, 255, 255, .10), transparent 10rem);
}

body.pricing-page .hero__inner::after {
  top: -18%;
  right: 22%;
  width: 13%;
  height: 140%;
  transform: skewX(-14deg);
  border-inline: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(255, 212, 59, .25), rgba(255, 255, 255, .08), rgba(255, 122, 26, .16));
  opacity: .75;
}

body.pricing-page .hero__inner > * {
  position: relative;
  z-index: 1;
}

body.pricing-page h1 {
  max-width: 13ch;
  font-size: clamp(2.85rem, 5.2vw, 4.7rem);
  text-wrap: balance;
}

body.pricing-page .lead {
  max-width: 57ch;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.62;
}

body.pricing-page .hero-actions {
  margin-top: 28px;
}

body.pricing-page .hero-actions a {
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: .98rem;
}

body.pricing-page .hero-actions a:first-child,
body.pricing-page .mail-link {
  box-shadow: 4px 4px 0 rgba(7, 16, 31, .88), 0 16px 30px rgba(255, 122, 26, .22);
}

body.pricing-page .hero-actions a:last-child {
  border-color: rgba(255, 255, 255, .76);
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
}

body.pricing-page .hero-note {
  align-self: center;
  border: 3px solid rgba(255, 255, 255, .82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(255, 249, 226, .97)),
    var(--pricing-panel);
  box-shadow: 4px 4px 0 rgba(7, 16, 31, .74), 0 24px 54px rgba(7, 16, 31, .20);
}

body.pricing-page .price-eyebrow {
  min-height: 30px;
  border: 1px solid rgba(7, 16, 31, .12);
  background: linear-gradient(135deg, rgba(255, 212, 59, .82), rgba(255, 247, 226, .98));
  box-shadow: 2px 2px 0 rgba(7, 16, 31, .13);
}

body.pricing-page .hero-price {
  margin-top: 2px;
  font-size: clamp(2.75rem, 4.9vw, 4.4rem);
  color: var(--pricing-blue-900);
}

body.pricing-page .hero-price small {
  max-width: 25ch;
  color: #526079;
}

body.pricing-page .price-fact {
  align-items: center;
  border-color: rgba(7, 16, 31, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 251, 255, .72)),
    rgba(255, 255, 255, .84);
}

body.pricing-page .price-fact span {
  box-shadow: 2px 2px 0 rgba(7, 16, 31, .15);
}

body.pricing-page .section-head {
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

body.pricing-page .section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
}

body.pricing-page .pill {
  min-height: 36px;
  border: 2px solid rgba(8, 102, 242, .18);
  background: rgba(255, 255, 255, .92);
  box-shadow: 2px 2px 0 rgba(13, 46, 95, .10);
}

body.pricing-page .price-card {
  border: 3px solid rgba(7, 16, 31, .18);
  box-shadow: var(--pricing-shadow), 4px 4px 0 rgba(7, 16, 31, .10);
}

body.pricing-page .price-table {
  table-layout: fixed;
}

body.pricing-page .price-table th {
  padding: 19px 18px;
  border-bottom: 2px solid rgba(7, 16, 31, .13);
  background:
    linear-gradient(135deg, rgba(8, 102, 242, .12), rgba(255, 212, 59, .42)),
    #fff7d8;
  color: #09285a;
  font-size: .82rem;
  letter-spacing: 0;
}

body.pricing-page .price-table th:nth-child(1) { width: 23%; }
body.pricing-page .price-table th:nth-child(2) { width: 18%; }
body.pricing-page .price-table th:nth-child(3) { width: 29%; }
body.pricing-page .price-table th:nth-child(4) { width: 30%; }

body.pricing-page .price-table td {
  padding: 20px 18px;
  line-height: 1.55;
}

body.pricing-page .price-row--base td {
  background: rgba(255, 255, 255, .58);
}

body.pricing-page .price-row--extended td {
  background: rgba(247, 251, 255, .48);
}

body.pricing-page .range strong {
  color: var(--pricing-blue-900);
  font-size: 1.22rem;
}

body.pricing-page .price-amount {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  border: 2px solid rgba(184, 69, 11, .20);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 212, 59, .34));
  padding: 6px 12px;
  color: var(--accent-dark);
  box-shadow: 2px 2px 0 rgba(184, 69, 11, .13);
}

body.pricing-page .price-row--extended .price-amount {
  background: linear-gradient(135deg, rgba(255, 122, 26, .15), rgba(255, 212, 59, .34));
}

body.pricing-page .note-row {
  border-top: 2px solid rgba(7, 16, 31, .13);
  background:
    linear-gradient(135deg, rgba(255, 212, 59, .26), rgba(255, 255, 255, .88)),
    rgba(255, 255, 255, .8);
  font-size: .96rem;
  line-height: 1.58;
}

body.pricing-page .annual-grid {
  align-items: stretch;
  gap: clamp(16px, 2.2vw, 24px);
}

body.pricing-page .annual-plan {
  position: relative;
  overflow: hidden;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  padding: clamp(20px, 2.6vw, 26px);
  border-width: 3px;
}

body.pricing-page .annual-plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--pricing-orange), var(--pricing-yellow), var(--pricing-blue-600));
}

body.pricing-page .annual-plan--featured {
  border-color: rgba(8, 102, 242, .34);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 212, 59, .34), transparent 13rem),
    linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(239, 246, 255, .82)),
    var(--pricing-panel);
  box-shadow: 5px 5px 0 rgba(7, 16, 31, .16), 0 22px 54px rgba(7, 16, 31, .13);
}

body.pricing-page .annual-plan__top {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(7, 16, 31, .12);
}

body.pricing-page .annual-plan h3 {
  margin: 0;
  color: var(--pricing-blue-900);
  font-size: 1.18rem;
}

body.pricing-page .annual-plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
  font-size: clamp(2rem, 3.5vw, 2.55rem);
  color: var(--accent-dark);
}

body.pricing-page .annual-plan .list {
  align-content: start;
  gap: 11px;
}

body.pricing-page .annual-plan .list li {
  padding-left: 22px;
}

body.pricing-page .annual-plan .list li::before {
  top: .58em;
  width: 9px;
  height: 9px;
  box-shadow: 1px 1px 0 rgba(7, 16, 31, .18);
}

body.pricing-page .contact-row {
  gap: 18px;
}

body.pricing-page .contact-row > span {
  max-width: 74ch;
}

body.pricing-page .mail-link {
  min-height: 44px;
  border-radius: 8px;
  padding: 11px 16px;
}

body.pricing-page .public-band {
  border-width: 3px;
  box-shadow: var(--pricing-shadow);
}

body.pricing-page .flow-card {
  min-height: 100%;
}

body.pricing-page .flow-card h3 {
  color: var(--pricing-blue-900);
}

body.pricing-page .block {
  border-width: 2px;
}

body.pricing-page .details {
  border-width: 3px;
  box-shadow: var(--pricing-shadow);
}

body.pricing-page .details dt {
  background:
    linear-gradient(135deg, rgba(8, 102, 242, .14), rgba(255, 212, 59, .20)),
    rgba(239, 246, 255, .86);
}

body.pricing-page .details dd {
  background: rgba(255, 255, 255, .58);
}

@media (max-width: 900px) {
  body.pricing-page .hero__inner {
    min-height: 0;
  }

  body.pricing-page .annual-plan--featured {
    box-shadow: 4px 4px 0 rgba(7, 16, 31, .14), 0 18px 42px rgba(7, 16, 31, .11);
  }
}

@media (max-width: 680px) {
  body.pricing-page .pricing-main {
    padding-top: 34px;
  }

  body.pricing-page .pricing-section + .pricing-section {
    margin-top: 42px;
  }

  body.pricing-page .wrap {
    width: min(1120px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin-inline: auto;
  }

  body.pricing-page .hero {
    padding-top: 16px;
  }

  body.pricing-page .hero__inner {
    gap: 16px;
    padding: 24px 16px;
    box-shadow: 3px 3px 0 rgba(7, 16, 31, .88), 0 18px 44px rgba(7, 16, 31, .14);
  }

  body.pricing-page .hero__inner::after {
    right: -12%;
    width: 32%;
    opacity: .34;
  }

  body.pricing-page .hero__inner > div,
  body.pricing-page .hero-note {
    max-width: 100%;
  }

  body.pricing-page h1 {
    font-size: clamp(2rem, 8.8vw, 2.55rem);
    line-height: 1.04;
  }

  body.pricing-page .lead {
    margin-top: 18px;
    font-size: .96rem;
    line-height: 1.5;
  }

  body.pricing-page .hero-actions {
    margin-top: 22px;
  }

  body.pricing-page .hero-actions a {
    min-height: 44px;
  }

  body.pricing-page .hero-note {
    padding: 16px 14px;
    box-shadow: 3px 3px 0 rgba(7, 16, 31, .55);
  }

  body.pricing-page .hero-price {
    font-size: clamp(2rem, 13vw, 3rem);
  }

  body.pricing-page .price-fact {
    align-items: start;
  }

  body.pricing-page .section-head h2 {
    font-size: clamp(1.55rem, 7vw, 2.05rem);
  }

  body.pricing-page .price-table tr {
    margin: 12px;
    border: 2px solid rgba(7, 16, 31, .14);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 248, 226, .66)),
      var(--pricing-panel);
    box-shadow: 0 10px 24px rgba(7, 16, 31, .07);
  }

  body.pricing-page .price-table tr:last-child {
    margin-bottom: 12px;
  }

  body.pricing-page .price-table td {
    padding: 8px 0;
  }

  body.pricing-page .price-amount {
    min-height: 34px;
    padding: 5px 10px;
  }

  body.pricing-page .annual-plan {
    padding: 20px 18px;
  }

  body.pricing-page .annual-plan__price {
    font-size: 2rem;
  }

  body.pricing-page .contact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.pricing-page .mail-link {
    width: 100%;
  }

  body.pricing-page .details dt,
  body.pricing-page .details dd {
    padding: 12px 14px;
  }
}

@media (max-width: 520px) {
  body.pricing-page .wrap {
    width: min(100% - 24px, 366px);
    max-width: calc(100vw - 24px);
    margin-inline: auto;
  }

  body.pricing-page .hero__inner > div,
  body.pricing-page .hero-note {
    max-width: 100%;
  }
}

/* Prompt 4: legal product document polish */
body.legal-page {
  --legal-blue-900: #061226;
  --legal-blue-800: #0d2e5f;
  --legal-blue-600: #0866f2;
  --legal-orange: #ff7a1a;
  --legal-yellow: #ffd43b;
  --legal-paper: #fffdf7;
  --legal-panel: rgba(255, 255, 252, .97);
  --legal-line: rgba(7, 16, 31, .16);
  --legal-line-strong: rgba(7, 16, 31, .30);
  --legal-shadow: 0 20px 54px rgba(7, 16, 31, .11);
  --legal-comic-shadow: 4px 4px 0 rgba(7, 16, 31, .82);
}

body.legal-page .legal-doc {
  padding-bottom: clamp(72px, 8vw, 110px);
}

body.legal-page .legal-hero {
  padding-top: clamp(24px, 3.4vw, 48px);
}

body.legal-page .legal-hero__inner {
  min-height: clamp(460px, 42vw, 610px);
  overflow: hidden;
  border-width: 3px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .065) 1px, transparent 1px),
    linear-gradient(118deg, #07101f 0%, #0d2e5f 48%, #0b6ccf 100%) !important;
  background-size: 36px 36px, 36px 36px, auto;
  box-shadow: var(--legal-comic-shadow), 0 26px 70px rgba(7, 16, 31, .18);
}

body.legal-page .legal-hero__inner::before,
body.legal-page .legal-hero__inner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

body.legal-page .legal-hero__inner::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 31, .30), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 52%);
}

body.legal-page .legal-hero__inner::after {
  top: -18%;
  right: 20%;
  width: 12%;
  height: 140%;
  transform: skewX(-14deg);
  border-inline: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(255, 212, 59, .25), rgba(255, 255, 255, .08), rgba(255, 122, 26, .16));
  opacity: .72;
}

body.legal-page .legal-hero__inner > * {
  position: relative;
  z-index: 1;
}

body.legal-page .legal-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 5vw, 4.55rem);
}

body.legal-page .legal-lead {
  max-width: 60ch;
  line-height: 1.62;
}

body.legal-page .legal-hero-note {
  align-self: center;
  border: 3px solid rgba(255, 255, 255, .82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(255, 249, 226, .97)),
    var(--legal-panel);
  box-shadow: 4px 4px 0 rgba(7, 16, 31, .72), 0 24px 54px rgba(7, 16, 31, .20);
}

body.legal-page .legal-fact {
  border-color: rgba(7, 16, 31, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 251, 255, .72)),
    rgba(255, 255, 255, .84);
}

body.legal-page .legal-quick {
  display: grid;
  gap: clamp(14px, 2vw, 18px);
  margin-top: clamp(.85rem, 2.4vw, 1.35rem);
  margin-bottom: clamp(1rem, 2.4vw, 1.55rem);
}

body.legal-page .legal-quick__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

body.legal-page .legal-quick__head h2 {
  margin: .15rem 0 0;
  color: var(--legal-blue-900);
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

body.legal-page .legal-quick__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 16px);
  min-width: 0;
}

body.legal-page .legal-quick__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .72rem;
  min-height: 74px;
  padding: .9rem;
  overflow: hidden;
  border: 2px solid rgba(7, 16, 31, .15);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 248, 226, .74)),
    var(--legal-panel);
  color: var(--legal-blue-900);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(7, 16, 31, .075);
}

body.legal-page .legal-quick__item::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--legal-orange), var(--legal-yellow), var(--legal-blue-600));
}

body.legal-page .legal-quick__item:hover,
body.legal-page .legal-quick__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(8, 102, 242, .28);
  box-shadow: 4px 4px 0 rgba(7, 16, 31, .11), 0 18px 40px rgba(7, 16, 31, .10);
}

body.legal-page .legal-quick__item span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--legal-blue-800);
  color: #fff;
  font-size: .78rem;
  font-weight: 950;
}

body.legal-page .legal-quick__item strong {
  min-width: 0;
  font-size: .98rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

body.legal-page .legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  min-width: 0;
}

body.legal-page .legal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  border: 2px solid rgba(7, 16, 31, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--legal-blue-900);
  padding: .65rem .9rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(7, 16, 31, .11);
}

body.legal-page .legal-action--primary {
  border-color: rgba(7, 16, 31, .82);
  background: linear-gradient(135deg, var(--legal-orange), var(--legal-yellow));
  color: #221106;
  box-shadow: 4px 4px 0 rgba(7, 16, 31, .82), 0 16px 30px rgba(255, 122, 26, .20);
}

body.legal-page .legal-action:hover,
body.legal-page .legal-action:focus-visible {
  border-color: rgba(8, 102, 242, .35);
  transform: translateY(-1px);
}

body.legal-page .legal-quick + .legal-layout {
  margin-top: clamp(1rem, 2.4vw, 1.6rem);
}

body.legal-page .legal-layout {
  gap: clamp(1rem, 2.6vw, 1.8rem);
}

body.legal-page .legal-toc {
  top: 76px;
}

body.legal-page .legal-toc__card {
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: .85rem;
  border-color: rgba(7, 16, 31, .16);
  scrollbar-width: thin;
}

body.legal-page .legal-toc__card h2 {
  margin-bottom: .65rem;
  font-size: clamp(1.18rem, 2vw, 1.38rem);
}

body.legal-page .legal-toc__list {
  gap: .42rem;
}

body.legal-page .legal-toc__item,
body.legal-page .legal-toc__item:hover,
body.legal-page .legal-toc__item:focus-visible {
  min-height: 40px;
  max-height: none;
}

body.legal-page .legal-toc__item {
  padding: .4rem .5rem;
  border-color: rgba(7, 16, 31, .12);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

body.legal-page .legal-toc__item:hover,
body.legal-page .legal-toc__item:focus-visible {
  transform: translateX(2px);
}

body.legal-page .legal-toc__item strong {
  font-size: .86rem;
}

body.legal-page .legal-content {
  gap: clamp(1rem, 2.2vw, 1.35rem);
}

body.legal-page .legal-section {
  position: relative;
  overflow: hidden;
  border-width: 2px;
  padding: clamp(1.45rem, 2.8vw, 2.05rem);
  box-shadow: var(--legal-shadow);
}

body.legal-page .legal-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--legal-orange), var(--legal-yellow), var(--legal-blue-600));
}

body.legal-page .legal-section h2 {
  color: var(--legal-blue-900);
  font-size: clamp(1.42rem, 2.7vw, 2.08rem);
}

body.legal-page .legal-section.rich-text {
  line-height: 1.66;
}

body.legal-page .legal-section.rich-text p {
  max-width: 76ch;
}

body.legal-page .legal-section.rich-text > * + * {
  margin-top: .95rem;
}

body.legal-page .legal-section.rich-text ul,
body.legal-page .legal-section.rich-text ol {
  display: grid;
  gap: .58rem;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

body.legal-page .legal-section.rich-text ol {
  counter-reset: legal-list;
}

body.legal-page .legal-section.rich-text li {
  position: relative;
  min-width: 0;
  min-height: 34px;
  padding: .52rem .72rem .52rem 2.55rem;
  border: 1px solid rgba(7, 16, 31, .10);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 251, 255, .62)),
    rgba(255, 255, 255, .78);
}

body.legal-page .legal-section.rich-text ul > li::before {
  content: "";
  position: absolute;
  left: .92rem;
  top: 1.05rem;
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--legal-orange), var(--legal-yellow));
  box-shadow: 1px 1px 0 rgba(7, 16, 31, .18);
}

body.legal-page .legal-section.rich-text ol > li {
  counter-increment: legal-list;
}

body.legal-page .legal-section.rich-text ol > li::before {
  content: counter(legal-list);
  position: absolute;
  left: .58rem;
  top: .54rem;
  display: inline-grid;
  place-items: center;
  min-width: 1.58rem;
  height: 1.58rem;
  padding: 0 .2rem;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
}

body.legal-page .legal-section .rich-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-width: 2px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 34px rgba(7, 16, 31, .075);
  -webkit-overflow-scrolling: touch;
}

body.legal-page .legal-section .rich-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .95rem;
}

body.legal-page .legal-section .rich-table th {
  border-bottom: 2px solid rgba(7, 16, 31, .12);
  background:
    linear-gradient(135deg, rgba(8, 102, 242, .13), rgba(255, 212, 59, .44)),
    #fff7d8;
}

body.legal-page .legal-section .rich-table td {
  vertical-align: top;
  border-bottom: 1px solid rgba(7, 16, 31, .08);
  background: rgba(255, 255, 255, .70);
}

body.legal-page .legal-section .rich-table tbody tr:nth-child(even) td {
  background: rgba(247, 251, 255, .72);
}

body.legal-page .legal-section .rich-table tr:last-child td {
  border-bottom: 0;
}

body.legal-page .legal-section .rich-table code {
  white-space: normal;
  overflow-wrap: anywhere;
}

body.legal-page .legal-section .rich-code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

@media (max-width: 980px) {
  body.legal-page .legal-quick__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.legal-page .legal-toc__card {
    max-height: none;
  }
}

@media (max-width: 640px) {
  body.legal-page .legal-hero {
    padding-top: 16px;
  }

  body.legal-page .legal-hero__inner {
    gap: 16px;
    padding: 1.05rem;
    box-shadow: 3px 3px 0 rgba(7, 16, 31, .82), 0 18px 44px rgba(7, 16, 31, .14);
  }

  body.legal-page .legal-hero__inner::after {
    right: -12%;
    width: 32%;
    opacity: .34;
  }

  body.legal-page .legal-hero h1 {
    font-size: clamp(1.92rem, 8.6vw, 2.55rem);
  }

  body.legal-page .legal-lead {
    margin-top: 16px;
    font-size: .95rem;
    line-height: 1.5;
  }

  body.legal-page .legal-hero-note {
    padding: .9rem;
    box-shadow: 3px 3px 0 rgba(7, 16, 31, .55);
  }

  body.legal-page .legal-quick {
    gap: .75rem;
    margin-top: .85rem;
    margin-bottom: 1rem;
  }

  body.legal-page .legal-quick__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .15rem;
  }

  body.legal-page .legal-quick__head h2 {
    font-size: clamp(1.24rem, 6.3vw, 1.55rem);
  }

  body.legal-page .legal-quick__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }

  body.legal-page .legal-quick__item {
    min-height: 64px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: .5rem;
    padding: .68rem .55rem;
  }

  body.legal-page .legal-quick__item span {
    width: 28px;
    height: 28px;
    font-size: .66rem;
  }

  body.legal-page .legal-quick__item strong {
    font-size: .82rem;
  }

  body.legal-page .legal-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .48rem;
  }

  body.legal-page .legal-action {
    width: 100%;
    min-height: 40px;
    padding: .58rem .7rem;
    font-size: .84rem;
  }

  body.legal-page .legal-quick + .legal-layout {
    margin-top: 1rem;
  }

  body.legal-page .legal-layout {
    gap: 1rem;
  }

  body.legal-page .legal-toc__card {
    padding: .78rem;
  }

  body.legal-page .legal-toc__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .42rem;
  }

  body.legal-page .legal-toc__item,
  body.legal-page .legal-toc__item:hover,
  body.legal-page .legal-toc__item:focus-visible {
    min-height: 44px;
    transform: none;
  }

  body.legal-page .legal-toc__item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: .44rem;
    padding: .42rem .44rem;
  }

  body.legal-page .legal-toc__item small {
    width: 24px;
    height: 24px;
    font-size: .64rem;
  }

  body.legal-page .legal-toc__item strong {
    font-size: .76rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  body.legal-page .legal-section {
    padding: 1rem;
  }

  body.legal-page .legal-section h2 {
    font-size: clamp(1.26rem, 6.3vw, 1.58rem);
  }

  body.legal-page .legal-section.rich-text {
    font-size: .95rem;
    line-height: 1.56;
  }

  body.legal-page .legal-section.rich-text li {
    padding: .5rem .58rem .5rem 2.38rem;
  }

  body.legal-page .legal-section .rich-table-wrap {
    overflow-x: visible;
  }

  body.legal-page .legal-section .rich-table {
    display: block;
    min-width: 0;
    font-size: .9rem;
  }

  body.legal-page .legal-section .rich-table thead {
    display: none;
  }

  body.legal-page .legal-section .rich-table tbody {
    display: grid;
    gap: .68rem;
  }

  body.legal-page .legal-section .rich-table tr {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(7, 16, 31, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 24px rgba(7, 16, 31, .06);
  }

  body.legal-page .legal-section .rich-table td {
    display: block;
    border-bottom: 1px solid rgba(7, 16, 31, .08);
    padding: .72rem .78rem;
  }

  body.legal-page .legal-section .rich-table td:first-child {
    background:
      linear-gradient(135deg, rgba(8, 102, 242, .11), rgba(255, 212, 59, .26)),
      rgba(255, 248, 226, .84);
  }

  body.legal-page .legal-section .rich-table td:last-child {
    border-bottom: 0;
  }

  body.legal-page .legal-section .rich-table td:not(:first-child)::before {
    content: "Opis";
    display: block;
    margin-bottom: .22rem;
    color: var(--legal-blue-800);
    font-family: var(--font-mono);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  body.legal-page #zakres .rich-table td:nth-child(2)::before {
    content: "Przykładowe dane";
  }

  body.legal-page #cele .rich-table td:nth-child(2)::before {
    content: "Podstawa prawna";
  }

  body.legal-page #uzywane .rich-table td:nth-child(2)::before {
    content: "Cel";
  }

  body.legal-page #uzywane .rich-table td:nth-child(3)::before {
    content: "Okres";
  }
}

@media (max-width: 360px) {
  body.legal-page .legal-quick__grid,
  body.legal-page .legal-toc__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.legal-page .legal-quick__item,
  body.legal-page .legal-action,
  body.legal-page .legal-toc__item {
    transition: none;
  }
}

@media print {
  body.legal-page {
    background: #fff !important;
    color: #111827;
  }

  body.legal-page .topbar,
  body.legal-page .legal-quick,
  body.legal-page .legal-toc,
  body.legal-page #appFooter {
    display: none !important;
  }

  body.legal-page .legal-doc,
  body.legal-page .legal-hero,
  body.legal-page .legal-layout {
    display: block;
    padding: 0;
    margin: 0;
  }

  body.legal-page .legal-hero__inner,
  body.legal-page .legal-section {
    border: 1px solid #d1d5db;
    box-shadow: none;
    color: #111827;
    background: #fff !important;
    break-inside: avoid;
  }

  body.legal-page .legal-hero h1,
  body.legal-page .legal-lead {
    color: #111827;
    text-shadow: none;
  }
}

/* UI PRO Prompt 1: shared product visual foundation for the app views.
   Scope excludes standalone pricing/legal/public info pages with their own shells. */
:root {
  --pro-bg: #f7efe2;
  --pro-bg-2: #efe3d0;
  --pro-paper: #fffaf2;
  --pro-paper-2: #fff4e4;
  --pro-panel: rgba(255, 250, 242, .95);
  --pro-ink: #07101f;
  --pro-ink-2: #172033;
  --pro-muted: #5f6b7a;
  --pro-line: rgba(7, 16, 31, .13);
  --pro-line-strong: rgba(7, 16, 31, .24);
  --pro-navy: #07101f;
  --pro-navy-2: #0d223d;
  --pro-orange: #ff7a1a;
  --pro-orange-2: #d95514;
  --pro-orange-soft: rgba(255, 122, 26, .13);
  --pro-green: #1f7a4d;
  --pro-green-2: #24a35a;
  --pro-green-soft: rgba(31, 122, 77, .13);
  --pro-blue: #1d5fd6;
  --pro-blue-2: #0d3f8f;
  --pro-blue-soft: rgba(29, 95, 214, .10);
  --pro-yellow: #ffd36e;
  --pro-yellow-soft: rgba(255, 211, 110, .22);
  --pro-red: #b54534;
  --pro-red-soft: rgba(181, 69, 52, .12);
  --pro-radius: 12px;
  --pro-radius-sm: 9px;
  --pro-radius-xs: 7px;
  --pro-shadow: 0 20px 54px rgba(7, 16, 31, .13);
  --pro-shadow-soft: 0 10px 28px rgba(7, 16, 31, .08);
  --pro-focus: 0 0 0 3px rgba(255, 122, 26, .22), 0 0 0 1px rgba(7, 16, 31, .6);

  --bg: var(--pro-bg);
  --bg-2: var(--pro-bg-2);
  --surface: var(--pro-panel);
  --surface-solid: var(--pro-paper);
  --surface-2: rgba(255, 244, 228, .86);
  --surface-3: rgba(239, 227, 208, .72);
  --ink: var(--pro-ink);
  --ink-2: var(--pro-ink-2);
  --muted: var(--pro-muted);
  --muted-2: #7a8493;
  --line: var(--pro-line);
  --line-strong: var(--pro-line-strong);
  --primary: var(--pro-orange);
  --primary-2: var(--pro-orange-2);
  --primary-soft: var(--pro-orange-soft);
  --accent: var(--pro-orange);
  --accent-2: var(--pro-yellow);
  --accent-soft: var(--pro-orange-soft);
  --steel: #536174;
  --steel-soft: var(--pro-blue-soft);
  --ok: var(--pro-green);
  --ok-soft: var(--pro-green-soft);
  --warn: #8a5a00;
  --warn-soft: var(--pro-yellow-soft);
  --bad: var(--pro-red);
  --bad-soft: var(--pro-red-soft);
  --shadow: var(--pro-shadow);
  --shadow-soft: var(--pro-shadow-soft);
  --radius: var(--pro-radius);
  --radius-sm: var(--pro-radius-sm);
  --radius-xs: var(--pro-radius-xs);
  --focus: var(--pro-focus);

  --builder-ink: var(--pro-ink);
  --builder-paper: var(--pro-paper);
  --builder-blue: var(--pro-blue);
  --builder-blue-dark: var(--pro-blue-2);
  --builder-orange: var(--pro-orange);
  --builder-yellow: var(--pro-yellow);
  --builder-green: var(--pro-green);
  --builder-line: var(--pro-line);
  --builder-shadow: var(--pro-shadow-soft);
  --builder-comic-shadow: 0 22px 56px rgba(7, 16, 31, .18);

  --ui10-ink: var(--pro-ink);
  --ui10-blue: var(--pro-navy-2);
  --ui10-blue-2: var(--pro-blue);
  --ui10-yellow: var(--pro-yellow);
  --ui10-orange: var(--pro-orange);
  --ui10-green: var(--pro-green);
  --ui10-red: var(--pro-red);
  --ui10-paper: var(--pro-paper);
  --ui10-line: var(--pro-line);
  --ui10-shadow: var(--pro-shadow-soft);
  --ui10-comic-shadow: 0 22px 56px rgba(7, 16, 31, .18);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) {
  overflow-x: clip;
  color: var(--pro-ink-2);
  background:
    linear-gradient(90deg, rgba(7, 16, 31, .033) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7, 16, 31, .028) 1px, transparent 1px),
    radial-gradient(circle at 12% -8%, rgba(255, 122, 26, .11), transparent 25rem),
    radial-gradient(circle at 95% 5%, rgba(31, 122, 77, .10), transparent 28rem),
    linear-gradient(180deg, #fff9ef 0%, var(--pro-bg) 48%, #fbf5ea 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) h1,
body:not(.pricing-page):not(.legal-page):not(.public-page) h2,
body:not(.pricing-page):not(.legal-page):not(.public-page) h3 {
  color: var(--pro-ink);
  letter-spacing: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) p {
  color: #000000;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar {
  background: linear-gradient(180deg, #07101f 0%, #0c182a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 14px 34px rgba(7, 16, 31, .22);
  backdrop-filter: blur(16px) saturate(1.05);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .brand {
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .brand-copy strong,
body:not(.pricing-page):not(.legal-page):not(.public-page) .brand-copy small {
  color: #fffaf2;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .brand-copy small {
  opacity: .7;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a,
body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav span {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 250, 242, .08);
  color: rgba(255, 250, 242, .92);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a::before,
body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav span::before {
  background: var(--pro-orange);
  opacity: .95;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a:hover {
  border-color: rgba(255, 122, 26, .44);
  background: rgba(255, 122, 26, .14);
  color: #fffaf2;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) input,
body:not(.pricing-page):not(.legal-page):not(.public-page) textarea,
body:not(.pricing-page):not(.legal-page):not(.public-page) select {
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(255, 250, 242, .94)),
    var(--pro-paper);
  color: var(--pro-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) input:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) textarea:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) select:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) .skip-link:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) .brand:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) .btn:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) button:focus-visible,
body:not(.pricing-page):not(.legal-page):not(.public-page) a:focus-visible,
body:not(.pricing-page):not(.legal-page):not(.public-page) .choice:focus-within .choice-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .drop:focus-within,
body:not(.pricing-page):not(.legal-page):not(.public-page) .mini-btn:focus-visible {
  outline: none;
  border-color: rgba(255, 122, 26, .52);
  box-shadow: var(--pro-focus);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress,
body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .system-aside,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-form,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-teacher-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .ready-link-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .payment-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .file-preview-panel {
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, .97), rgba(255, 244, 228, .84)),
    var(--pro-paper);
  box-shadow: var(--pro-shadow-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .card.soft {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, .90), rgba(239, 227, 208, .56)),
    var(--pro-paper-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .btn {
  border-radius: var(--pro-radius-xs);
  letter-spacing: 0;
  text-transform: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .btn.primary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .landing-cta.btn.primary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card .btn.primary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .btn.primary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary .btn.primary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .quote-card .btn.primary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .payment-card .btn.primary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls .btn[data-action="classroom-evaluate"] {
  border: 1px solid rgba(7, 16, 31, .76);
  background: linear-gradient(135deg, var(--pro-orange), var(--pro-orange-2));
  color: #fffaf2;
  box-shadow: 0 14px 28px rgba(255, 122, 26, .22), 0 1px 0 rgba(255, 255, 255, .32) inset;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .btn.primary:hover:not(:disabled),
body:not(.pricing-page):not(.legal-page):not(.public-page) .landing-cta.btn.primary:hover:not(:disabled),
body:not(.pricing-page):not(.legal-page):not(.public-page) .fx-reactive.btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 122, 26, .26), 0 1px 0 rgba(255, 255, 255, .32) inset;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .btn.secondary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card .btn.secondary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .btn.secondary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary .btn.secondary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .payment-card .btn.secondary {
  border: 1px solid var(--pro-line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 244, 228, .82)),
    var(--pro-paper);
  color: var(--pro-ink);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .btn.ghost,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card .btn.ghost,
body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary .btn.ghost {
  color: var(--pro-navy-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .btn.danger,
body:not(.pricing-page):not(.legal-page):not(.public-page) .btn.ghost.danger:hover:not(:disabled),
body:not(.pricing-page):not(.legal-page):not(.public-page) .btn.ghost.danger:focus-visible {
  border-color: rgba(181, 69, 52, .26);
  background: var(--pro-red-soft);
  color: var(--pro-red);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .pill,
body:not(.pricing-page):not(.legal-page):not(.public-page) .step-pill,
body:not(.pricing-page):not(.legal-page):not(.public-page) .badge {
  border: 1px solid var(--pro-line);
  background: rgba(255, 250, 242, .82);
  color: var(--pro-ink-2);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .pill.ok {
  border-color: rgba(31, 122, 77, .28);
  background: var(--pro-green-soft);
  color: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .pill.warn {
  border-color: rgba(255, 122, 26, .32);
  background: var(--pro-yellow-soft);
  color: #8a5a00;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .pill.bad {
  border-color: rgba(181, 69, 52, .28);
  background: var(--pro-red-soft);
  color: var(--pro-red);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .pill.muted {
  background: var(--pro-blue-soft);
  color: var(--pro-blue-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .notice {
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-sm);
  background: rgba(255, 250, 242, .86);
  color: var(--pro-ink-2);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .notice.info {
  border-color: rgba(29, 95, 214, .22);
  background: var(--pro-blue-soft);
  color: var(--pro-blue-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .notice.ok {
  border-color: rgba(31, 122, 77, .24);
  background: var(--pro-green-soft);
  color: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .notice.warn {
  border-color: rgba(255, 122, 26, .26);
  background: var(--pro-yellow-soft);
  color: #8a5a00;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .notice.error {
  border-color: rgba(181, 69, 52, .26);
  background: var(--pro-red-soft);
  color: var(--pro-red);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .metric,
body:not(.pricing-page):not(.legal-page):not(.public-page) .summary-row,
body:not(.pricing-page):not(.legal-page):not(.public-page) .file-row,
body:not(.pricing-page):not(.legal-page):not(.public-page) .status-row,
body:not(.pricing-page):not(.legal-page):not(.public-page) .timeline-row,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-task-result-item,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-answer-pair > div {
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 250, 242, .86)),
    var(--pro-paper);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .metric small,
body:not(.pricing-page):not(.legal-page):not(.public-page) .summary-row small,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-answer-grid dt,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-answer-pair dt {
  color: var(--pro-muted);
  letter-spacing: .035em;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .metric strong,
body:not(.pricing-page):not(.legal-page):not(.public-page) .summary-row strong {
  color: var(--pro-ink);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero,
body:not(.pricing-page):not(.legal-page):not(.public-page) .public-head.classroom-teacher-head {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--pro-radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    radial-gradient(circle at 12% 16%, rgba(255, 122, 26, .20), transparent 20rem),
    linear-gradient(118deg, var(--pro-navy) 0%, var(--pro-navy-2) 56%, #12375d 100%) !important;
  background-size: 34px 34px, 34px 34px, auto, auto !important;
  color: #fffaf2;
  box-shadow: var(--pro-shadow);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card::after,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero::after,
body:not(.pricing-page):not(.legal-page):not(.public-page) .public-head.classroom-teacher-head::after {
  width: 7px;
  background: linear-gradient(180deg, var(--pro-orange), var(--pro-green), var(--pro-blue));
  opacity: 1;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card h1,
body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card h2,
body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card h3,
body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card .builder-map-card strong,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero h1,
body:not(.pricing-page):not(.legal-page):not(.public-page) .public-head.classroom-teacher-head h1 {
  color: #fffaf2;
  text-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card .hero-kicker,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-eyebrow,
body:not(.pricing-page):not(.legal-page):not(.public-page) .public-head.classroom-teacher-head .hero-kicker {
  color: var(--pro-yellow);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card .hero-copy > p:not(.hero-kicker),
body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card .builder-map-card small,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero__content > p:not(.solve-eyebrow),
body:not(.pricing-page):not(.legal-page):not(.public-page) .public-head.classroom-teacher-head p:not(.hero-kicker) {
  color: rgba(255, 250, 242, .84);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card .btn.secondary {
  border-color: rgba(255, 250, 242, .34);
  background: rgba(255, 250, 242, .12);
  color: #fffaf2;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card {
  border: 1px solid rgba(255, 250, 242, .22);
  background: rgba(255, 250, 242, .10);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card span {
  border: 1px solid rgba(255, 250, 242, .70);
  background: var(--pro-orange);
  color: #fffaf2;
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card.is-active {
  border-color: rgba(255, 122, 26, .64);
  background: rgba(255, 122, 26, .16);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card::after,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress::after,
body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary::after,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task::after {
  width: 5px;
  background: var(--pro-section-accent, var(--pro-orange));
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card--config {
  --pro-section-accent: var(--pro-orange);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card--upload {
  --pro-section-accent: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card--quote {
  --pro-section-accent: var(--pro-orange);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card--payment {
  --pro-section-accent: var(--pro-navy-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card--status,
body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary {
  --pro-section-accent: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress {
  --pro-section-accent: var(--pro-blue);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .module-eyebrow,
body:not(.pricing-page):not(.legal-page):not(.public-page) .task-kicker,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card .module-eyebrow,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .progress-top,
body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary .module-eyebrow,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-teacher-card .module-eyebrow {
  color: var(--pro-navy-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .section-index,
body:not(.pricing-page):not(.legal-page):not(.public-page) .step-index,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card .section-index,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .step-index {
  border: 1px solid var(--pro-line-strong);
  background: var(--pro-paper);
  color: var(--pro-ink);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .progress-bar {
  height: 8px;
  border: 1px solid rgba(29, 95, 214, .18);
  background: var(--pro-blue-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .progress-bar span,
body:not(.pricing-page):not(.legal-page):not(.public-page) .progress-bar span,
body:not(.pricing-page):not(.legal-page):not(.public-page) .loader-track span {
  background: linear-gradient(90deg, var(--pro-blue), var(--pro-green), var(--pro-orange));
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .step-row,
body:not(.pricing-page):not(.legal-page):not(.public-page) .step-row {
  border: 1px solid var(--pro-line);
  background: rgba(255, 250, 242, .72);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .step-row.is-active,
body:not(.pricing-page):not(.legal-page):not(.public-page) .step-row.is-active {
  border-color: rgba(29, 95, 214, .34);
  background: var(--pro-blue-soft);
  box-shadow: inset 0 0 0 1px rgba(29, 95, 214, .08);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .step-row.is-active .step-index,
body:not(.pricing-page):not(.legal-page):not(.public-page) .step-row.is-active .step-index {
  background: var(--pro-blue);
  color: #fffaf2;
  border-color: var(--pro-blue);
  box-shadow: 0 0 0 4px rgba(29, 95, 214, .12);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .step-row.is-done,
body:not(.pricing-page):not(.legal-page):not(.public-page) .step-row.is-done {
  border-color: rgba(31, 122, 77, .26);
  background: var(--pro-green-soft);
  color: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-progress .step-row.is-done .step-index,
body:not(.pricing-page):not(.legal-page):not(.public-page) .step-row.is-done .step-index {
  background: var(--pro-green);
  color: #fffaf2;
  border-color: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .choice-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card .choice-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .payment-card .choice-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .invoice-form .choice-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .answer-choice,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-choice {
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-sm);
  background: rgba(255, 250, 242, .82);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .choice-card:hover,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card .choice-card:hover,
body:not(.pricing-page):not(.legal-page):not(.public-page) .payment-card .choice-card:hover,
body:not(.pricing-page):not(.legal-page):not(.public-page) .invoice-form .choice-card:hover,
body:not(.pricing-page):not(.legal-page):not(.public-page) .answer-choice:hover,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-choice:hover {
  border-color: rgba(255, 122, 26, .38);
  background: var(--pro-orange-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .choice input:checked + .choice-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card .choice input:checked + .choice-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .payment-card .choice input:checked + .choice-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .invoice-form .choice input:checked + .choice-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-choice:has(input:checked) {
  border-color: rgba(255, 122, 26, .58);
  background:
    linear-gradient(180deg, rgba(255, 122, 26, .14), rgba(255, 250, 242, .90)),
    var(--pro-paper);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .10);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .choice input:checked + .choice-card::before,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card .choice input:checked + .choice-card::before,
body:not(.pricing-page):not(.legal-page):not(.public-page) .payment-card .choice input:checked + .choice-card::before,
body:not(.pricing-page):not(.legal-page):not(.public-page) .invoice-form .choice input:checked + .choice-card::before {
  border-color: var(--pro-orange);
  background: radial-gradient(circle, var(--pro-orange) 0 46%, transparent 49%);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .drop {
  border: 1.5px dashed rgba(31, 122, 77, .42);
  border-radius: var(--pro-radius);
  background:
    linear-gradient(135deg, rgba(31, 122, 77, .08), rgba(255, 250, 242, .92)),
    linear-gradient(90deg, rgba(31, 122, 77, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 122, 77, .045) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .drop:hover,
body:not(.pricing-page):not(.legal-page):not(.public-page) .drop.is-dragover {
  border-color: rgba(31, 122, 77, .64);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 77, .10), var(--pro-shadow-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .drop-icon,
body:not(.pricing-page):not(.legal-page):not(.public-page) .file-glyph {
  border: 1px solid rgba(7, 16, 31, .24);
  background: linear-gradient(135deg, var(--pro-green), var(--pro-green-2));
  color: #fffaf2;
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .quote-card .metric.large,
body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary .summary-row--next,
body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero .summary-row--next {
  border-color: rgba(255, 122, 26, .28);
  background:
    linear-gradient(135deg, rgba(255, 211, 110, .28), rgba(255, 122, 26, .12)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .quote-card .metric.large strong,
body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary .summary-row--next strong {
  color: var(--pro-orange-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .status-dot.active {
  background: var(--pro-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, .16);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .status-dot.done {
  background: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .status-dot.error {
  background: var(--pro-red);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task {
  --pro-section-accent: var(--pro-blue);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--correct {
  --pro-section-accent: var(--pro-green);
  border-color: rgba(31, 122, 77, .28);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--partial {
  --pro-section-accent: var(--pro-yellow);
  border-color: rgba(255, 122, 26, .28);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--incorrect {
  --pro-section-accent: var(--pro-red);
  border-color: rgba(181, 69, 52, .28);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-score {
  border: 1px solid var(--pro-line-strong);
  background:
    radial-gradient(circle closest-side, var(--pro-paper) 67%, transparent 69%),
    conic-gradient(var(--pro-orange) var(--score), rgba(7, 16, 31, .10) 0);
  box-shadow: var(--pro-shadow-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-badge--correct,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-inline-result {
  background: var(--pro-green-soft);
  color: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-badge--partial {
  background: var(--pro-yellow-soft);
  color: #8a5a00;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-badge--incorrect {
  background: var(--pro-red-soft);
  color: var(--pro-red);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result__top,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-submit-bar,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-participant-panel {
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  background:
    radial-gradient(circle at 94% 0%, rgba(255, 211, 110, .22), transparent 16rem),
    linear-gradient(135deg, rgba(29, 95, 214, .06), rgba(255, 250, 242, .92)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-metrics .metric strong {
  color: var(--pro-navy-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls .btn[data-action="classroom-refresh"],
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls .btn[data-action="classroom-download-pdf"],
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-submission-actions .btn[data-action="classroom-download-student-pdf"] {
  border-color: rgba(29, 95, 214, .24);
  color: var(--pro-blue-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-danger-zone {
  border-color: rgba(181, 69, 52, .24);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, .96), rgba(181, 69, 52, .07)),
    var(--pro-paper);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .landing-shell {
  --comic-orange: var(--pro-orange);
  --comic-yellow: var(--pro-yellow);
  --comic-green: var(--pro-green);
  --comic-blue: var(--pro-blue);
  --comic-blue-dark: var(--pro-navy-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) #appFooter .footer {
  border-top: 1px solid rgba(255, 255, 255, .10);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 122, 26, .12), transparent 24rem),
    linear-gradient(180deg, #07101f 0%, #111827 100%);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .status-row,
body:not(.pricing-page):not(.legal-page):not(.public-page) .summary-row,
body:not(.pricing-page):not(.legal-page):not(.public-page) .metric,
body:not(.pricing-page):not(.legal-page):not(.public-page) .btn,
body:not(.pricing-page):not(.legal-page):not(.public-page) .pill,
body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a,
body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .58rem;
    padding: .58rem .72rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar .brand {
    width: 100%;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar .topbar-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .44rem;
    padding: 0;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav span {
    min-width: 0;
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-card,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .public-head.classroom-teacher-head {
    border-radius: var(--pro-radius);
    box-shadow: 0 16px 38px rgba(7, 16, 31, .16);
  }
}

@media (max-width: 430px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .app,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .public-shell.classroom-teacher-shell {
    width: min(100% - .85rem, 1180px);
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .btn {
    min-width: 0;
  }
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .skip-link:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) .brand:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) .btn:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) button:focus-visible,
body:not(.pricing-page):not(.legal-page):not(.public-page) a:focus-visible,
body:not(.pricing-page):not(.legal-page):not(.public-page) input:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) textarea:focus,
body:not(.pricing-page):not(.legal-page):not(.public-page) select:focus {
  outline: none !important;
  box-shadow: var(--pro-focus) !important;
}

/* UI PRO Prompt 2: builder configurator polish. */
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero {
  gap: .82rem;
  margin-top: .72rem;
  margin-bottom: .88rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card {
  grid-template-columns: minmax(0, 1fr) minmax(220px, .34fr);
  align-items: center;
  gap: .92rem;
  min-height: 0;
  padding: 1.15rem 1.24rem 1.15rem 1.34rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card .hero-copy {
  align-content: center;
  gap: .48rem;
  max-width: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card h1 {
  max-width: 14ch;
  margin: 0;
  font-size: 2.9rem;
  line-height: 1.01;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card .hero-kicker {
  margin: 0;
  font-size: .78rem;
  line-height: 1.2;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card .builder-hero-copy {
  max-width: 64ch;
  margin: 0;
  font-size: .94rem;
  line-height: 1.48;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-actions {
  gap: .55rem;
  margin-top: .34rem;
  margin-bottom: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-actions .btn {
  min-height: 40px;
  padding: .58rem .76rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-reset-action {
  margin-top: .12rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-reset-action .btn {
  min-height: 32px;
  padding: .38rem .54rem;
  opacity: .82;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-map {
  grid-template-columns: 1fr;
  align-self: stretch;
  gap: .48rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .18rem .54rem;
  min-height: 54px;
  padding: .54rem .62rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card span {
  width: 1.58rem;
  height: 1.58rem;
  font-size: .7rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card strong {
  font-size: .86rem;
  line-height: 1.16;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card small {
  grid-column: 2;
  font-size: .72rem;
  line-height: 1.2;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card {
  align-self: stretch;
  padding: .9rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card .header {
  gap: .62rem;
  margin-bottom: .66rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card h2 {
  font-size: 1.34rem;
  line-height: 1.1;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card p:not(.module-eyebrow) {
  font-size: .9rem;
  line-height: 1.42;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card .summary {
  gap: .42rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card .summary-row {
  padding: .54rem .6rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder {
  gap: .92rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-flow {
  gap: .88rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress {
  gap: .6rem;
  padding: .86rem .96rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .progress-top {
  font-size: .78rem;
  line-height: 1.2;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .progress-bar {
  height: 7px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .step-list {
  gap: .42rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .step-row {
  position: relative;
  min-height: 76px;
  padding: .56rem;
  overflow: hidden;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .step-row strong {
  font-size: .84rem;
  line-height: 1.15;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .step-row span:not(.step-index) {
  font-size: .74rem;
  line-height: 1.25;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .step-row.is-active {
  border-color: rgba(29, 95, 214, .46);
  background:
    linear-gradient(180deg, rgba(29, 95, 214, .13), rgba(255, 250, 242, .88)),
    var(--pro-paper);
  box-shadow: inset 0 0 0 1px rgba(29, 95, 214, .12), 0 8px 18px rgba(29, 95, 214, .08);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .step-row.is-done {
  border-color: rgba(31, 122, 77, .32);
  background:
    linear-gradient(180deg, rgba(31, 122, 77, .14), rgba(255, 250, 242, .9)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .step-row.is-muted {
  border-color: rgba(7, 16, 31, .10);
  background: rgba(255, 250, 242, .66);
  opacity: .76;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="config"],
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="upload"],
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="quote"],
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="payment"],
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="status"] {
  padding: 1.04rem 1.1rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-card .header {
  gap: .76rem;
  margin-bottom: .82rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-card h2 {
  font-size: 1.46rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-config-fields {
  gap: .82rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-choice-group {
  display: grid;
  gap: .42rem;
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-card .choices {
  gap: .56rem;
  align-items: stretch;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-card .choice-card {
  min-height: 94px;
  padding: .7rem .74rem .7rem 2.2rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-card .choice-card strong {
  line-height: 1.18;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-card .choice-card span {
  line-height: 1.34;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-quick-fields {
  gap: .62rem;
  padding: .74rem;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, .92), rgba(29, 95, 214, .055)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-quick-fields label {
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-notes-field textarea {
  min-height: 84px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .classroom-config {
  display: grid;
  gap: .68rem;
  padding: .78rem;
  border: 1px solid rgba(31, 122, 77, .22);
  border-radius: var(--pro-radius-sm);
  background:
    linear-gradient(135deg, rgba(31, 122, 77, .08), rgba(255, 250, 242, .92)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .classroom-options {
  align-items: center;
  gap: .62rem;
  padding: .68rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-drop {
  min-height: 0;
  grid-template-columns: auto minmax(0, 1fr) minmax(132px, auto);
  gap: .55rem .78rem;
  padding: .9rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-drop .drop-icon {
  width: 42px;
  height: 42px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-drop strong {
  font-size: 1rem;
  line-height: 1.18;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-drop p {
  max-width: none;
  font-size: .88rem;
  line-height: 1.42;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-drop .drop-picker-cta {
  min-width: 132px;
  justify-content: center;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .upload-actions {
  align-items: center;
  gap: .58rem;
  margin-top: .62rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .upload-option {
  min-height: 40px;
  padding: .5rem .62rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-limits {
  margin-top: .62rem;
  font-size: .84rem;
  line-height: 1.42;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .empty-attachments {
  border-color: rgba(31, 122, 77, .28);
  background:
    linear-gradient(135deg, rgba(31, 122, 77, .08), rgba(255, 250, 242, .92)),
    var(--pro-paper);
  padding: .78rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="quote"] .metrics {
  gap: .58rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="quote"] .metric,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="status"] .status-row {
  padding: .72rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="quote"] .metric.large {
  border-color: rgba(255, 122, 26, .36);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="payment"] .payment-actions,
body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="status"] .actions {
  gap: .58rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder > .sticky-summary {
  top: 86px;
  padding: .9rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder > .sticky-summary h2 {
  font-size: 1.24rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-summary {
  gap: .42rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-summary .summary-row {
  gap: .22rem .5rem;
  padding: .5rem .56rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-summary .summary-row:not(.summary-row--next) {
  grid-template-columns: minmax(76px, .7fr) minmax(0, 1fr);
  align-items: center;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-summary .summary-row--next {
  padding: .72rem;
  border-color: rgba(255, 122, 26, .38);
  box-shadow: 0 10px 22px rgba(255, 122, 26, .10);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-summary .summary-row small {
  font-size: .68rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-summary .summary-row strong {
  font-size: .88rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-summary .summary-row--next strong {
  font-size: .98rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder > .sticky-summary .notice {
  margin-top: .56rem;
  font-size: .8rem;
  line-height: 1.38;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .summary-reset-actions {
  margin-top: .52rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .summary-reset-actions .btn {
  width: 100%;
  min-height: 34px;
  padding: .42rem .5rem;
  border-color: rgba(181, 69, 52, .20);
  background: transparent;
  opacity: .78;
}

@media (min-width: 760px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-quick-fields.fields.three {
    grid-template-columns: minmax(230px, 1.35fr) minmax(140px, .72fr) minmax(120px, .55fr);
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .classroom-options {
    grid-template-columns: minmax(160px, .34fr) minmax(0, 1fr);
  }
}

@media (min-width: 981px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, .32fr);
    align-items: stretch;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder {
    grid-template-columns: minmax(0, 1fr) minmax(278px, .34fr);
  }
}

@media (max-width: 980px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card {
    grid-template-columns: 1fr;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder > .builder-flow {
    order: 1;
    width: 100%;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder > .sticky-summary {
    position: static;
    order: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero {
    gap: .58rem;
    margin-top: .58rem;
    margin-bottom: .66rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card {
    gap: .66rem;
    padding: .9rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card h1 {
    max-width: 100%;
    font-size: 1.86rem;
    line-height: 1.04;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card .hero-kicker {
    font-size: .72rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card .builder-hero-copy {
    font-size: .86rem;
    line-height: 1.4;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .42rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-actions .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-reset-action .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .42rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card {
    min-height: 70px;
    padding: .5rem;
    gap: .12rem .42rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card span {
    width: 1.42rem;
    height: 1.42rem;
    font-size: .64rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card strong {
    font-size: .78rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card small {
    font-size: .66rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card {
    padding: .76rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card h2 {
    font-size: 1.12rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card p:not(.module-eyebrow) {
    font-size: .84rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-flow {
    gap: .68rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="config"],
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="upload"],
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="quote"],
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="payment"],
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="status"],
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder > .sticky-summary {
    padding: .82rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .progress-top {
    gap: .38rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-progress .step-row {
    min-height: 0;
    padding: .5rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-card .header {
    gap: .52rem;
    margin-bottom: .66rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-card h2 {
    font-size: 1.24rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-card .choice-card {
    min-height: 0;
    padding: .62rem .66rem .62rem 2.08rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-quick-fields {
    grid-template-columns: 1fr;
    padding: .64rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .classroom-options {
    grid-template-columns: 1fr;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-drop {
    grid-template-columns: auto minmax(0, 1fr);
    padding: .72rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-drop p,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-drop .drop-picker-cta {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-drop .drop-picker-cta {
    width: 100%;
    min-width: 0;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-drop p,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-upload-limits {
    font-size: .8rem;
    line-height: 1.36;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .upload-actions,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .upload-options,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="payment"] .payment-actions,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="status"] .actions {
    display: grid;
    width: 100%;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .upload-actions .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="payment"] .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder [data-builder-region="status"] .btn {
    width: 100%;
    justify-content: center;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-summary .summary-row:not(.summary-row--next) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card {
    min-height: 66px;
    padding: .46rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card small {
    line-height: 1.15;
  }
}

/* UI PRO Prompt 3: history as a link return center. */
body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero {
  margin-top: .72rem;
  margin-bottom: .86rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-card {
  grid-template-columns: minmax(0, 1fr) minmax(240px, .34fr);
  align-items: end;
  gap: 1.1rem;
  min-height: 280px;
  padding: 1.35rem 1.45rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-card .hero-copy {
  align-content: end;
  gap: .58rem;
  max-width: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-card h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 5.2rem);
  line-height: .96;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-card .hero-copy > p:not(.hero-kicker) {
  max-width: 52ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics {
  align-self: end;
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics .summary {
  gap: .52rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics .summary-row {
  min-height: 58px;
  padding: .62rem .72rem;
  border-color: rgba(255, 250, 242, .28);
  background: rgba(255, 250, 242, .92);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-shell--links {
  gap: .92rem;
  align-items: start;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-card--links {
  --pro-section-accent: var(--pro-green);
  padding: 1.04rem 1.1rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-card--links .header {
  align-items: start;
  margin-bottom: .82rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-card--links .header > .btn {
  min-height: 34px;
  padding: .42rem .56rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-list {
  display: grid;
  gap: .68rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .74rem;
  padding: .88rem;
  overflow: hidden;
  border-color: rgba(7, 16, 31, .12);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 211, 110, .16), transparent 14rem),
    linear-gradient(180deg, rgba(255, 250, 242, .94), rgba(255, 244, 228, .78)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry--classroom::before {
  background: var(--pro-blue);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .58rem;
  align-items: start;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__header .status-dot {
  margin-top: .24rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__title {
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__title .module-eyebrow {
  margin-bottom: .22rem;
  color: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry--classroom .history-entry__title .module-eyebrow {
  color: var(--pro-blue-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.16;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__type {
  justify-self: end;
  white-space: nowrap;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .46rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-meta-item {
  display: grid;
  gap: .22rem;
  min-width: 0;
  padding: .52rem .56rem;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-sm);
  background: rgba(255, 250, 242, .82);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-meta-item--validity {
  border-color: rgba(255, 122, 26, .28);
  background: var(--pro-orange-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-meta-item small {
  color: var(--pro-muted);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-meta-item strong {
  min-width: 0;
  color: var(--pro-ink);
  font-size: .82rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__link {
  display: grid;
  min-width: 0;
  padding: .46rem .56rem;
  border: 1px dashed rgba(7, 16, 31, .18);
  border-radius: var(--pro-radius-sm);
  background: rgba(29, 95, 214, .055);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__link .mono {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--pro-blue-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .46rem;
  align-items: center;
  margin-top: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .btn {
  min-height: 36px;
  padding: .48rem .66rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-action-teacher.btn.primary {
  border-color: rgba(7, 16, 31, .78);
  background: linear-gradient(135deg, var(--pro-orange), var(--pro-orange-2));
  color: #fffaf2;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-action-student.btn.secondary {
  border-color: rgba(29, 95, 214, .28);
  color: var(--pro-blue-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-action-remove {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  opacity: .72;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-action-remove:hover:not(:disabled),
body:not(.pricing-page):not(.legal-page):not(.public-page) .history-action-remove:focus-visible {
  opacity: 1;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-shell--links > .sticky-summary {
  top: 86px;
  padding: .9rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-summary {
  gap: .44rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-summary .summary-row {
  padding: .55rem .6rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-empty {
  display: grid;
  gap: .52rem;
  border: 1px dashed rgba(31, 122, 77, .28);
  background:
    linear-gradient(135deg, rgba(31, 122, 77, .08), rgba(255, 250, 242, .92)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-empty .actions {
  margin-top: .2rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-active-card {
  --pro-section-accent: var(--pro-blue);
}

@media (min-width: 981px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-shell--links {
    grid-template-columns: minmax(0, 1fr) minmax(286px, .34fr);
  }
}

@media (max-width: 980px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics .summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-meta-item--validity {
    grid-column: 1 / -1;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-shell--links > .sticky-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero {
    margin-top: .58rem;
    margin-bottom: .66rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-card {
    gap: .74rem;
    padding: .92rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-card h1 {
    font-size: 2.1rem;
    line-height: 1;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-card .hero-copy > p:not(.hero-kicker) {
    font-size: .88rem;
    line-height: 1.38;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics .summary {
    grid-template-columns: 1fr;
    gap: .42rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics .summary-row {
    min-height: 0;
    padding: .54rem .6rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-card--links,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-shell--links > .sticky-summary {
    padding: .82rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-card--links .header {
    display: grid;
    grid-template-columns: 1fr;
    gap: .52rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-card--links .header > .btn {
    justify-self: start;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry {
    gap: .6rem;
    padding: .74rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__type {
    grid-column: 2;
    justify-self: start;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__meta {
    grid-template-columns: 1fr;
    gap: .38rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-meta-item {
    padding: .46rem .52rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-action-remove {
    margin-left: 0;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-empty .btn {
    width: 100%;
    justify-content: center;
  }
}

/* UI PRO Prompt 4: student solve work screen polish. */
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell--work {
  width: min(1120px, calc(100% - 1.4rem));
  padding-top: .82rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero--work {
  grid-template-columns: minmax(0, 1fr) minmax(188px, .27fr);
  align-items: center;
  gap: .9rem;
  min-height: 0;
  margin-bottom: .92rem;
  padding: 1.02rem 1.12rem 1rem 1.2rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero__content--work {
  display: grid;
  gap: .42rem;
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero--work h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2rem, 3.35vw, 3rem);
  line-height: 1.02;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero--work .solve-eyebrow,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero--work p {
  margin: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero--work .solve-hero__content > p:not(.solve-eyebrow) {
  max-width: 64ch;
  font-size: .94rem;
  line-height: 1.42;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-work-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .48rem;
  margin-top: .4rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-work-steps .system-step {
  min-height: 52px;
  padding: .5rem .58rem;
  border-radius: var(--pro-radius-sm);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-work-steps .system-step small {
  font-size: .68rem;
  line-height: 1;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-work-steps .system-step strong {
  font-size: .82rem;
  line-height: 1.14;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero__meta--work {
  display: grid;
  gap: .46rem;
  justify-items: end;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero__meta--work .pill {
  min-width: 176px;
  border-color: rgba(40, 180, 110, .52);
  background: linear-gradient(180deg, rgba(27, 150, 86, .34), rgba(18, 118, 72, .25));
  color: #e8fff1;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(7, 16, 31, .18);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-expiry {
  display: inline-flex;
  gap: .34rem;
  align-items: baseline;
  max-width: none;
  color: rgba(255, 250, 242, .86);
  text-align: right;
  line-height: 1.3;
  text-shadow: 0 1px 14px rgba(7, 16, 31, .32);
  white-space: nowrap;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-expiry strong {
  color: #fffaf2;
  white-space: nowrap;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--work {
  gap: .92rem;
  align-items: start;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-form--work,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side--work {
  min-width: 0;
  padding: .96rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-section-head--work {
  align-items: start;
  gap: .72rem;
  margin-bottom: .5rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-section-head--work h2,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side--work h2 {
  margin-bottom: .34rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-section-head--work .pill {
  flex: 0 0 auto;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-progress {
  position: relative;
  width: 100%;
  height: 8px;
  margin: .2rem 0 .88rem;
  overflow: hidden;
  border: 1px solid rgba(7, 16, 31, .12);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, .9), rgba(239, 227, 208, .76)),
    var(--pro-paper-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-progress > span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pro-orange), var(--pro-green));
  box-shadow: 0 0 16px rgba(255, 122, 26, .20);
  transition: width .18s ease;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-participant-panel--work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(192px, .34fr);
  align-items: center;
  gap: .76rem;
  margin-bottom: .82rem;
  padding: .82rem;
  border-color: rgba(31, 122, 77, .22);
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 211, 110, .22), transparent 13rem),
    linear-gradient(135deg, rgba(31, 122, 77, .08), rgba(255, 250, 242, .92)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-participant-panel--work > div,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-participant-panel--work .participant-code-field {
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-participant-panel--work h3,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-participant-panel--work p {
  margin-bottom: .28rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .participant-code-field input {
  min-height: 44px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task-list--work {
  gap: .72rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--work {
  padding: .82rem .86rem .88rem .98rem;
  border-color: rgba(29, 95, 214, .18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 250, 242, .86)),
    var(--pro-paper);
  box-shadow: 0 10px 24px rgba(7, 16, 31, .06);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--work::after {
  background: var(--pro-blue);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--work:hover {
  border-color: rgba(255, 122, 26, .30);
  box-shadow: 0 14px 30px rgba(7, 16, 31, .075);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--answered {
  border-color: rgba(31, 122, 77, .30);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(31, 122, 77, .07)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--answered::after {
  background: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--work.is-invalid {
  border-color: rgba(181, 69, 52, .34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(181, 69, 52, .08)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--work.is-invalid::after {
  background: var(--pro-red);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__head--work {
  align-items: start;
  gap: .72rem;
  padding-bottom: .52rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__head--work > div {
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__head--work .task-kicker {
  margin-bottom: .34rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__points {
  flex: 0 0 auto;
  white-space: nowrap;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task-prompt,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-choice > span,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-field {
  min-width: 0;
  overflow-wrap: anywhere;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-choice-group--single,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-choice-group--multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .52rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--work .solve-choice {
  min-height: 48px;
  align-items: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 250, 242, .86)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--work .solve-choice:focus-within {
  border-color: rgba(255, 122, 26, .52);
  box-shadow: var(--pro-focus);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-field--numeric input {
  min-height: 46px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-field--short textarea {
  min-height: 136px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-field-error {
  margin-top: .42rem;
  color: var(--pro-red);
  font-weight: 800;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-submit-bar--work {
  align-items: center;
  gap: .72rem;
  margin-top: .9rem;
  padding: .72rem;
  border-color: rgba(255, 122, 26, .28);
  background:
    radial-gradient(circle at 94% 0%, rgba(255, 211, 110, .28), transparent 12rem),
    linear-gradient(135deg, rgba(255, 122, 26, .10), rgba(255, 250, 242, .94)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-submit-bar--work .solve-submit-bar__copy {
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-submit-bar--work .solve-submit {
  flex: 0 0 auto;
  min-width: 176px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side--work {
  top: 84px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side--work .summary {
  gap: .44rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side--work .summary-row {
  min-height: 58px;
  padding: .56rem .62rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side--work .actions {
  margin-top: .68rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side--work .notice.compact {
  margin-top: .6rem;
  line-height: 1.38;
}

@media (min-width: 920px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--work {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .32fr);
  }
}

@media (max-width: 760px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell--work {
    width: min(100% - .75rem, 1120px);
    padding-top: .58rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero--work {
    grid-template-columns: 1fr;
    gap: .66rem;
    margin-bottom: .62rem;
    padding: .82rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero--work h1 {
    max-width: 100%;
    font-size: clamp(1.45rem, 7.2vw, 2rem);
    line-height: 1.04;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero--work .solve-hero__content > p:not(.solve-eyebrow) {
    font-size: .86rem;
    line-height: 1.4;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-work-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .42rem;
    margin-top: .2rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-work-steps .system-step {
    min-height: 46px;
    padding: .44rem .48rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero__meta--work {
    justify-items: start;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero__meta--work .pill {
    min-width: 0;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-expiry {
    max-width: 100%;
    text-align: left;
    white-space: normal;
    flex-wrap: wrap;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--work {
    gap: .64rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-form--work,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side--work {
    padding: .72rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-section-head--work {
    display: grid;
    grid-template-columns: 1fr;
    gap: .48rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-section-head--work .pill {
    justify-self: start;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-participant-panel--work {
    grid-template-columns: 1fr;
    gap: .58rem;
    margin-bottom: .64rem;
    padding: .68rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task-list--work {
    gap: .58rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--work {
    padding: .68rem .68rem .72rem .78rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__head--work {
    display: grid;
    grid-template-columns: 1fr;
    gap: .42rem;
    padding-bottom: .42rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__points {
    justify-self: start;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-choice-group--single,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-choice-group--multi {
    grid-template-columns: 1fr;
    gap: .44rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--work .solve-choice {
    min-height: 46px;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-field--short textarea {
    min-height: 126px;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-submit-bar--work {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: .58rem;
    padding: .66rem;
    box-shadow: 0 12px 28px rgba(7, 16, 31, .10);
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-submit-bar--work .solve-submit {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side--work {
    top: auto;
  }
}

@media (max-width: 430px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell--work {
    width: min(100% - .6rem, 1120px);
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-hero--work,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-form--work,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side--work {
    border-radius: var(--pro-radius-sm);
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-work-steps .system-step strong,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-submit-bar--work .solve-submit-bar__copy span {
    font-size: .8rem;
  }
}

/* UI PRO Prompt 5: student result as educational feedback. */
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--result {
  gap: .92rem;
  align-items: start;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--result .solve-result {
  min-width: 0;
  padding: .98rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .92rem;
  margin: -.1rem -.1rem .82rem;
  padding: .9rem;
  border: 1px solid rgba(255, 122, 26, .22);
  border-radius: var(--pro-radius);
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 211, 110, .28), transparent 13rem),
    linear-gradient(135deg, rgba(255, 122, 26, .11), rgba(255, 250, 242, .94)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-score--result {
  width: clamp(112px, 11vw, 134px);
  height: clamp(112px, 11vw, 134px);
  border: 1px solid rgba(7, 16, 31, .26);
  background:
    radial-gradient(circle closest-side, var(--pro-paper) 64%, transparent 66%),
    conic-gradient(var(--pro-orange) var(--score), rgba(7, 16, 31, .12) 0);
  box-shadow: 0 14px 30px rgba(255, 122, 26, .12), inset 0 0 0 1px rgba(255, 255, 255, .66);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-score--result strong {
  color: var(--pro-ink);
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-score--result span {
  color: var(--pro-ink-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result__copy {
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result__copy h2 {
  margin-bottom: .28rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result__copy .rich-text {
  max-width: 64ch;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result__actions {
  gap: .48rem;
  margin-top: .64rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result__actions .btn {
  width: auto;
  min-height: 40px;
  padding: .56rem .74rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .52rem;
  margin: 0 0 .78rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insight {
  min-width: 0;
  min-height: 68px;
  padding: .62rem .68rem;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 250, 242, .86)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insight small {
  display: block;
  color: var(--pro-muted);
  font-size: .7rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insight strong {
  display: block;
  margin-top: .16rem;
  color: var(--pro-ink);
  font-size: 1.42rem;
  line-height: 1;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insight--correct {
  border-color: rgba(31, 122, 77, .25);
  background: linear-gradient(180deg, rgba(31, 122, 77, .08), rgba(255, 250, 242, .90));
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insight--partial {
  border-color: rgba(255, 122, 26, .26);
  background: linear-gradient(180deg, rgba(255, 211, 110, .22), rgba(255, 250, 242, .90));
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insight--incorrect {
  border-color: rgba(181, 69, 52, .24);
  background: linear-gradient(180deg, rgba(181, 69, 52, .08), rgba(255, 250, 242, .90));
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-review {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .44rem;
  padding: .58rem;
  border: 1px dashed rgba(255, 122, 26, .28);
  border-radius: var(--pro-radius-sm);
  background: rgba(255, 250, 242, .72);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-review__item {
  max-width: 100%;
  justify-content: flex-start;
  white-space: normal;
  text-align: left;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-review__item--partial {
  border-color: rgba(255, 122, 26, .28);
  background: var(--pro-yellow-soft);
  color: #8a5a00;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-review__item--incorrect {
  border-color: rgba(181, 69, 52, .26);
  background: var(--pro-red-soft);
  color: var(--pro-red);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task-list--results {
  gap: .72rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--result {
  padding: .82rem .88rem .86rem .98rem;
  box-shadow: 0 10px 24px rgba(7, 16, 31, .055);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__head--result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .7rem;
  padding-bottom: .5rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__head--result > div {
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__head--result .solve-result-badge {
  justify-self: end;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--result .solve-points {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: .34rem;
  padding: .32rem .48rem;
  border: 1px solid var(--pro-line);
  border-radius: 999px;
  background: rgba(255, 250, 242, .82);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--result .solve-feedback {
  margin-top: .56rem;
  color: var(--pro-ink-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--result .solve-explanation {
  margin-top: .62rem;
  padding: .7rem .78rem;
  border-color: rgba(29, 95, 214, .18);
  background:
    linear-gradient(180deg, rgba(29, 95, 214, .07), rgba(255, 250, 242, .88)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--result .solve-answer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .54rem;
  margin-top: .62rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--result .solve-answer-grid > div {
  padding: .62rem .68rem;
  border-color: rgba(7, 16, 31, .11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 250, 242, .86)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--result .solve-answer-grid dt {
  margin-bottom: .24rem;
  font-size: .68rem;
  line-height: 1.16;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--result .solve-answer-grid dd {
  color: var(--pro-ink-2);
  font-size: .94rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--result > .solve-side {
  top: 84px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--result > .solve-side .summary {
  gap: .42rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--result > .solve-side .summary-row {
  min-height: 55px;
  padding: .54rem .6rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--result > .solve-side .notice.compact {
  margin-top: .62rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-result-card--lookup {
  border-color: rgba(29, 95, 214, .18);
}

@media (min-width: 920px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--result {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .30fr);
  }
}

@media (max-width: 760px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--result {
    gap: .64rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--result .solve-result {
    padding: .68rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result__top {
    grid-template-columns: 1fr;
    align-items: start;
    gap: .58rem;
    margin: 0 0 .62rem;
    padding: .72rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-score--result {
    width: 104px;
    height: 104px;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result__actions .btn {
    width: 100%;
    justify-content: center;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .38rem;
    margin-bottom: .62rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insight {
    min-height: 58px;
    padding: .48rem .42rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insight small {
    font-size: .58rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insight strong {
    font-size: 1.18rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-review {
    gap: .34rem;
    padding: .46rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-review__item {
    width: 100%;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--result {
    padding: .68rem .68rem .72rem .78rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__head--result {
    grid-template-columns: 1fr;
    gap: .42rem;
    padding-bottom: .38rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task__head--result .solve-result-badge {
    justify-self: start;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-task--result .solve-answer-grid {
    grid-template-columns: 1fr;
    gap: .44rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-layout--result > .solve-side {
    top: auto;
  }
}

@media (max-width: 430px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-insights {
    grid-template-columns: 1fr;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result-review {
    grid-column: auto;
  }
}

/* UI PRO Prompt 6: teacher classroom dashboard polish. */
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-teacher-grid--dashboard {
  gap: .9rem;
  align-items: start;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview {
  position: relative;
  overflow: hidden;
  gap: .78rem;
  padding: 1rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--pro-orange), var(--pro-green), var(--pro-blue));
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview > * {
  position: relative;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .public-head.classroom-teacher-head .pill {
  border-color: rgba(255, 255, 255, .64);
  background: rgba(255, 255, 255, .12);
  color: #fffdf7;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .header {
  align-items: start;
  gap: .8rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .classroom-metrics {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: .54rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .metric {
  min-height: 82px;
  padding: .62rem .68rem;
  border: 1px solid rgba(7, 16, 31, .11);
  border-radius: var(--pro-radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 250, 242, .88)),
    var(--pro-paper);
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .metric small,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-card small,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-problem-list__label {
  color: var(--pro-muted);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .metric strong {
  margin-top: .18rem;
  color: var(--pro-ink);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.08;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .classroom-metric--score {
  border-color: rgba(255, 122, 26, .28);
  background:
    linear-gradient(180deg, rgba(255, 211, 110, .25), rgba(255, 250, 242, .92)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .classroom-metric--score strong {
  color: var(--pro-orange-2);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics {
  display: grid;
  gap: .52rem;
  padding: .62rem;
  border: 1px solid rgba(29, 95, 214, .16);
  border-radius: var(--pro-radius);
  background:
    linear-gradient(135deg, rgba(29, 95, 214, .06), rgba(255, 250, 242, .9)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .44rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-card {
  min-width: 0;
  min-height: 62px;
  padding: .52rem .56rem;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius-sm);
  background: rgba(255, 250, 242, .78);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-card strong {
  display: block;
  margin-top: .16rem;
  color: var(--pro-ink);
  font-size: 1.24rem;
  line-height: 1;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-card--score {
  border-color: rgba(255, 122, 26, .28);
  background: var(--pro-orange-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-card--correct {
  border-color: rgba(31, 122, 77, .26);
  background: var(--pro-green-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-card--partial {
  border-color: rgba(255, 122, 26, .24);
  background: var(--pro-yellow-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-card--incorrect {
  border-color: rgba(181, 69, 52, .23);
  background: var(--pro-red-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-problem-list {
  display: grid;
  gap: .36rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-problem-list__label {
  display: block;
  margin-left: .08rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-problem-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .28rem .62rem;
  align-items: center;
  min-width: 0;
  padding: .52rem .58rem;
  border: 1px dashed rgba(255, 122, 26, .30);
  border-radius: var(--pro-radius-sm);
  background: rgba(255, 250, 242, .82);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-problem-item strong,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-problem-item span {
  color: var(--pro-ink);
  font-weight: 900;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-problem-bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 16, 31, .10);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-problem-bar span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pro-orange), var(--pro-red));
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .58rem;
  align-items: center;
  padding: .62rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls__primary,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: .46rem;
  align-items: center;
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls__secondary {
  justify-content: flex-end;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls .btn {
  min-height: 40px;
  padding: .56rem .72rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls .btn.primary {
  border-color: rgba(7, 16, 31, .22);
  background: linear-gradient(135deg, var(--pro-yellow), var(--pro-orange));
  color: var(--pro-ink);
  box-shadow: 0 10px 22px rgba(255, 122, 26, .16);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls .classroom-control-muted,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls .btn:disabled {
  opacity: .64;
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls--evaluated {
  border-color: rgba(31, 122, 77, .22);
  background:
    linear-gradient(135deg, rgba(31, 122, 77, .08), rgba(255, 250, 242, .92)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-submissions-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-results-card,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-aggregate-card {
  min-width: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-submission-row,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-result-row {
  position: relative;
  overflow: hidden;
  padding: .78rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-submission-row::before,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-result-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--pro-blue);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-submission-row--scored::before,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-result-row--strong::before {
  background: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-result-row--steady::before {
  background: var(--pro-orange);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-result-row--needs-work::before {
  background: var(--pro-red);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-result-row__score {
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: .72rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-result-row__badge {
  justify-self: end;
  min-width: 120px;
  padding: .42rem .52rem;
  border: 1px solid rgba(7, 16, 31, .10);
  border-radius: var(--pro-radius-sm);
  background: rgba(255, 250, 242, .76);
  text-align: right;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-inline-result {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: .38rem .56rem;
  border: 1px solid rgba(31, 122, 77, .22);
  border-radius: 999px;
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-task-statuses {
  gap: .34rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-task-statuses .pill {
  padding: .32rem .48rem;
  font-size: .76rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-task-result-item {
  border-left: 4px solid var(--pro-blue);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-task-result-item--correct {
  border-left-color: var(--pro-green);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-task-result-item--partial,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-task-result-item--needsReview {
  border-left-color: var(--pro-orange);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-task-result-item--incorrect {
  border-left-color: var(--pro-red);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-danger-zone {
  margin-top: .18rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-danger-zone .btn.danger {
  width: fit-content;
  min-width: min(100%, 260px);
  justify-content: center;
}

@media (min-width: 980px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-teacher-grid--dashboard {
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, .82fr);
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview {
    grid-column: 1 / -1;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-submissions-card {
    grid-column: 1;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-results-card,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-aggregate-card,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-danger-zone {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview {
    padding: .78rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .classroom-metrics,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics {
    padding: .5rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls {
    grid-template-columns: 1fr;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls__primary,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls__secondary {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-controls .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-danger-zone .btn.danger {
    width: 100%;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-result-row__score {
    grid-template-columns: 1fr;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-result-row__badge {
    justify-self: stretch;
    text-align: left;
  }
}

@media (max-width: 430px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .classroom-metrics {
    gap: .42rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .metric,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-card {
    min-height: 58px;
    padding: .48rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-analytics-card strong {
    font-size: 1.08rem;
  }
}

/* UI PRO Prompt 7: final mobile, chrome and edge-state polish. */
body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar {
  min-height: 64px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar .brand {
  flex: 1 1 auto;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav {
  flex: 0 1 auto;
  align-items: center;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a[href="/#/builder"] {
  border-color: rgba(255, 122, 26, .42);
  background: rgba(255, 122, 26, .14);
  color: #fffaf2;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a[href="/#/builder"]::before {
  background: var(--pro-orange);
  opacity: 1;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .btn,
body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a,
body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav span,
body:not(.pricing-page):not(.legal-page):not(.public-page) .pill {
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .empty,
body:not(.pricing-page):not(.legal-page):not(.public-page) .notice {
  max-width: 100%;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .empty:not(.loader) {
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 250, 242, .88)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-empty,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-submissions-card .empty,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-results-card .empty,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell > .notice,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell > .card:has(.notice),
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-teacher-shell > .notice {
  padding: .9rem;
  box-shadow: var(--pro-shadow-soft);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell > .notice.error,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell > .card:has(.notice.error),
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-teacher-shell > .notice.error {
  border-color: rgba(181, 69, 52, .26);
  background:
    linear-gradient(135deg, rgba(181, 69, 52, .10), rgba(255, 250, 242, .9)),
    var(--pro-paper);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .notice.compact {
  line-height: 1.38;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .summary-row,
body:not(.pricing-page):not(.legal-page):not(.public-page) .history-meta-item,
body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side .summary-row,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .metric {
  overflow: hidden;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .summary-row strong,
body:not(.pricing-page):not(.legal-page):not(.public-page) .history-meta-item strong,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-overview .metric strong {
  overflow-wrap: anywhere;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__link,
body:not(.pricing-page):not(.legal-page):not(.public-page) .ready-url,
body:not(.pricing-page):not(.legal-page):not(.public-page) .mono,
body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-answer-json {
  max-width: 100%;
  overflow-x: auto;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) #appFooter .footer {
  border-top: 1px solid rgba(255, 255, 255, .10);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 122, 26, .11), transparent 18rem),
    linear-gradient(180deg, #07101f 0%, #0b1424 100%);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) #appFooter .footer__links a {
  border-radius: 7px;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) #appFooter .footer__links a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .24), 0 0 0 1px rgba(255, 255, 255, .42);
}

@media (max-width: 760px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) {
    background-size: 36px 36px, 36px 36px, auto, auto, auto;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .48rem;
    min-height: 58px;
    padding: .42rem .58rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar .brand {
    width: auto;
    min-width: 0;
    flex: 1 1 126px;
    gap: .42rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 8px;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .brand-copy strong {
    font-size: .9rem;
    line-height: 1;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .brand-copy small {
    display: none;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar .topbar-nav {
    display: flex;
    width: auto;
    flex: 0 1 auto;
    grid-template-columns: none;
    justify-content: flex-end;
    gap: .32rem;
    min-width: 0;
    max-width: 58%;
    padding: 0;
    overflow: visible;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav span {
    width: auto;
    min-width: 0;
    min-height: 34px;
    padding: .38rem .52rem;
    font-size: .68rem;
    line-height: 1.05;
    white-space: normal;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a::before,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav span::before {
    width: .3rem;
    height: .3rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .app,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .public-shell.classroom-teacher-shell {
    width: min(100% - .86rem, 1180px);
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .app {
    margin-top: .54rem;
    margin-bottom: 2.1rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .hero,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .public-shell.classroom-teacher-shell {
    padding-top: .62rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-card,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-form,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-side,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-result,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-teacher-card,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-card {
    border-radius: var(--pro-radius-sm);
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .btn {
    min-height: 42px;
    line-height: 1.12;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .btn.small {
    min-height: 36px;
    padding: .46rem .62rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .actions {
    gap: .42rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .empty:not(.loader),
  body:not(.pricing-page):not(.legal-page):not(.public-page) .notice {
    padding: .72rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell > .notice,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell > .card:has(.notice),
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-teacher-shell > .notice {
    padding: .72rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .btn {
    width: 100%;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) #appFooter .footer {
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar {
    gap: .36rem;
    padding-inline: .48rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar .brand {
    flex-basis: 112px;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .brand-copy strong {
    font-size: .82rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar .topbar-nav {
    max-width: 62%;
    gap: .26rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav span {
    min-height: 32px;
    padding: .34rem .42rem;
    font-size: .62rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-flow .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .sticky-summary .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-shell .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .solve-shell .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .classroom-teacher-shell .btn {
    width: 100%;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .landing-shell .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .hero-actions .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .topbar-nav a {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .reveal,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .reveal-on-scroll,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .reveal-on-scroll.is-visible,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .interactive-fx,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .fx-reactive,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .fx-lift,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .fx-tilt {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* UI PRO regression fixes: landing contrast, compact builder, history CTA, toast/footer safety. */
body:not(.pricing-page):not(.legal-page):not(.public-page) .app--landing .landing-hero__copy h1,
body:not(.pricing-page):not(.legal-page):not(.public-page) .app--landing .landing-title-full,
body:not(.pricing-page):not(.legal-page):not(.public-page) .app--landing .landing-title-mobile {
  color: #fff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .42);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .app--landing .landing-hero__copy > p:not(.landing-kicker) {
  color: rgba(255, 255, 255, .86);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero {
  align-items: start;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card {
  align-self: start;
  min-height: 0 !important;
  height: auto;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card .hero-copy {
  align-content: start;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card {
  align-self: start;
  min-height: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card .summary-row {
  min-height: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-summary .summary-row:not(.summary-row--next) {
  grid-template-columns: 1fr;
  align-items: start;
  gap: .18rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-layout--builder .builder-summary .summary-row strong {
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-empty .actions,
body:not(.pricing-page):not(.legal-page):not(.public-page) .history-empty .btn {
  width: 100%;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-empty .btn {
  justify-content: center;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  max-width: min(100%, 30rem);
  margin-left: auto;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .btn {
  width: auto;
  min-width: 0;
  max-width: 13.5rem;
  min-height: 36px;
  padding: .42rem .72rem;
  justify-content: center;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions--1 {
  max-width: 13.5rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions--2 {
  max-width: 21rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions--3 {
  max-width: 29rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions--4 {
  max-width: 34rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__side {
  display: grid;
  gap: .5rem;
  justify-items: end;
  align-content: start;
  min-width: min(100%, 18rem);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .btn.primary.history-action {
  border-color: rgba(249, 115, 22, .78);
  background: linear-gradient(180deg, #ff8a2a, #e85b11);
  color: #fffaf2;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .16);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .btn.secondary.history-action {
  border-color: rgba(37, 99, 235, .28);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(236, 244, 255, .92));
  color: #123a74;
  box-shadow: 0 8px 18px rgba(7, 16, 31, .06);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .history-action-student,
body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .history-action-teacher {
  min-width: 8.75rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .history-action-teacher {
  min-width: 10.25rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-action-remove {
  margin-left: 0;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .history-action-remove {
  width: auto;
  min-width: 4.9rem;
  justify-self: end;
  border-color: rgba(127, 29, 29, .18);
  background: linear-gradient(180deg, rgba(255, 250, 242, .92), rgba(255, 237, 226, .84));
  color: #7f1d1d;
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics {
  align-self: stretch;
  display: grid;
  align-content: center;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics .summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: .48rem;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics .summary-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .18rem .54rem;
  min-height: 54px;
  padding: .54rem .62rem;
  border: 1px solid rgba(255, 250, 242, .22);
  border-radius: 10px;
  background: rgba(255, 250, 242, .10);
  color: #fffaf2;
  box-shadow: none;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics .summary-row--next {
  border-color: rgba(255, 122, 26, .64);
  background: rgba(255, 122, 26, .16);
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics .summary-row small {
  display: inline-grid;
  place-items: center;
  width: 1.58rem;
  height: 1.58rem;
  border: 1px solid rgba(255, 250, 242, .70);
  border-radius: 50%;
  background: var(--pro-orange);
  color: #fffaf2;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 950;
  line-height: 1;
}

body:not(.pricing-page):not(.legal-page):not(.public-page) .history-hero-metrics .summary-row strong {
  min-width: 0;
  color: #fffaf2;
  font-size: .86rem;
  line-height: 1.16;
}

@media (max-width: 760px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__side {
    grid-column: 1 / -1;
    justify-items: stretch;
    min-width: 0;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__side .history-entry__type {
    justify-self: start;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions--1,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions--2,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions--3,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions--4 {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .btn,
  body:not(.pricing-page):not(.legal-page):not(.public-page) .history-entry__actions .history-action-remove {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}

.toast-region {
  bottom: calc(clamp(.75rem, 2vw, 1.25rem) + var(--toast-footer-offset, 0px));
  z-index: 130;
}

.toast.notice {
  border: 1px solid rgba(7, 16, 31, .22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 240, 214, .96)),
    #fffaf2;
  color: #07101f;
  box-shadow:
    0 20px 54px rgba(7, 16, 31, .30),
    0 0 0 2px rgba(255, 255, 255, .84) inset;
}

.toast-copy {
  color: #07101f;
}

@media (min-width: 981px) {
  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .30fr);
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(200px, .28fr);
    padding-block: 1rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-map-card {
    min-height: 48px;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card {
    padding: .82rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card .header {
    margin-bottom: .5rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card h2 {
    font-size: 1.12rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card p:not(.module-eyebrow) {
    font-size: .82rem;
    line-height: 1.3;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .36rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card .summary-row {
    padding: .42rem;
  }

  body:not(.pricing-page):not(.legal-page):not(.public-page) .builder-session-card .summary-row strong {
    font-size: .84rem;
  }
}

@media (max-width: 760px) {
  .toast-region {
    bottom: calc(.5rem + var(--toast-footer-offset, 0px));
  }
}
