:root {
  --canvas: #f4f8f6;
  --surface: #ffffff;
  --surface-soft: #eaf4f0;
  --surface-warm: #fff8e8;
  --navy: #092f35;
  --navy-soft: #16474c;
  --teal: #087d78;
  --teal-hover: #056964;
  --teal-pale: #d9f0ea;
  --gold: #efb43c;
  --ink: #102f3a;
  --muted: #506970;
  --line: #cdded9;
  --line-strong: #aec8c1;
  --danger: #9c2e24;
  --success: #17623d;
  --radius-sm: .65rem;
  --radius-md: 1rem;
  --radius-lg: 1.4rem;
  --shadow-sm: 0 1px 2px rgb(9 47 53 / 6%), 0 8px 22px rgb(9 47 53 / 6%);
  --shadow-md: 0 18px 48px rgb(9 47 53 / 10%);
  --press: cubic-bezier(.2, .8, .2, 1);
}

html { background: var(--canvas); }
body {
  background:
    radial-gradient(circle at 86% 3%, rgb(201 237 230 / 60%), transparent 28rem),
    linear-gradient(180deg, #f8fbfa 0, var(--canvas) 34rem);
  color: var(--ink);
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3 { text-wrap: balance; }
h1 {
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: .96;
}
h2 {
  font-weight: 730;
  letter-spacing: -.035em;
  line-height: 1.04;
}
p, li { text-wrap: pretty; }

.prototype-banner {
  min-height: 2.35rem;
  display: grid;
  place-items: center;
  padding: .55rem 1.25rem;
  background: var(--navy);
  color: #e7f8f3;
  font-size: .76rem;
  font-weight: 780;
  letter-spacing: .045em;
  text-align: center;
}

.site-header {
  width: min(100% - 2.5rem, 1200px);
  min-height: 5.25rem;
  margin-inline: auto;
  border-bottom: 1px solid rgb(174 200 193 / 70%);
}
.brand {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -.018em;
}
.brand span { color: var(--teal); font-weight: 720; }
.site-header nav { gap: .2rem; }
.site-header nav a {
  position: relative;
  padding-inline: .78rem;
  color: #264a51;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--press);
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { background: var(--surface-soft); color: var(--navy); }
.site-header nav a[aria-current="page"]::after {
  position: absolute;
  right: .78rem;
  bottom: .32rem;
  left: .78rem;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

#main-content { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.eyebrow {
  margin-bottom: .75rem;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.lead { max-width: 48rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.hero {
  min-height: 33rem;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, .7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 4rem;
}
.hero h1 { max-width: 9ch; margin-bottom: 1.4rem; }
.hero p { max-width: 42rem; }
.hero-card {
  position: relative;
  overflow: hidden;
  align-self: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid #b8d8d0;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(224 242 236 / 96%));
  box-shadow: var(--shadow-md);
}
.hero-card::before {
  position: absolute;
  width: 8rem;
  height: 8rem;
  top: -4.75rem;
  right: -3.5rem;
  border: 1.25rem solid rgb(239 180 60 / 55%);
  border-radius: 50%;
  content: "";
}
.hero-card h2 { position: relative; margin-top: 0; font-size: clamp(1.65rem, 3vw, 2.15rem); }
.hero-card p { position: relative; color: #38565d; font-size: .98rem; }
.hero-card a { position: relative; color: var(--navy); font-weight: 850; text-underline-offset: .2em; }

.hero-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.button, button {
  gap: .45rem;
  border-radius: .72rem;
  background: var(--teal);
  box-shadow: 0 2px 0 #055a56, 0 8px 20px rgb(8 125 120 / 14%);
  transition: transform 120ms var(--press), box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
  touch-action: manipulation;
}
.button:hover, button:hover { background: var(--teal-hover); box-shadow: 0 2px 0 #044d49, 0 11px 24px rgb(8 125 120 / 20%); }
.button:active, button:active { transform: translateY(2px) scale(.98); box-shadow: 0 0 0 #044d49, 0 3px 9px rgb(8 125 120 / 12%); }
.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 2px 0 var(--line-strong), 0 7px 16px rgb(9 47 53 / 7%);
}
.button-secondary:hover { border-color: #8fb9ae; background: var(--teal-pale); color: var(--navy); }
button:disabled, button:disabled:hover, button:disabled:active { cursor: not-allowed; opacity: .62; transform: none; box-shadow: none; }

.how-steps { padding: 1rem 0 4rem; border-top: 1px solid var(--line); }
.how-steps h2 { margin: 1.3rem 0 1rem; font-size: 1.8rem; }
.how-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; counter-reset: step; list-style: none; }
.how-steps li {
  min-height: 7rem;
  display: grid;
  align-content: start;
  gap: .35rem;
  padding: 1.2rem 1.5rem;
  border-left: 1px solid var(--line);
  counter-increment: step;
}
.how-steps li:first-child { border-left: 0; padding-left: 0; }
.how-steps strong { color: var(--navy); font-size: 1.1rem; }
.how-steps strong::before { margin-right: .5rem; color: var(--teal); content: "0" counter(step); font-size: .75rem; letter-spacing: .08em; }
.how-steps span { color: var(--muted); }

.panel, .plt-stats article, .plt-choice-card, .vote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 96%);
  box-shadow: var(--shadow-sm);
}
.panel { margin-bottom: 2rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
.form-panel, .tracking-panel, .outcomes { scroll-margin-top: 1rem; }
.form-panel h2, .tracking-panel h2, .outcomes h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.form-panel > div:first-child { max-width: 48rem; }
.form-panel form, .auth-page form, .idea-card form, .admin-tools form, .plt-main form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form-panel form > .button, .auth-page form > .button, .idea-card form > .button, .admin-tools form > .button, .plt-main form > .button { justify-self: start; }

label { gap: .42rem; font-size: .9rem; font-weight: 780; }
.field-hint { color: var(--muted); font-size: .78rem; font-weight: 500; line-height: 1.4; }
input, textarea, select {
  border-color: #789995;
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
input:hover, textarea:hover, select:hover { border-color: #477b75; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgb(8 125 120 / 13%); outline: none; }
textarea { resize: vertical; }
.privacy-note, .small-print { color: var(--muted); font-size: .88rem; }
.check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .65rem; padding: .85rem; border-radius: .7rem; background: var(--surface-soft); }
.check input { width: 1.15rem; min-height: 1.15rem; margin-top: .15rem; accent-color: var(--teal); }
fieldset { display: grid; gap: .9rem; border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; }
legend { padding: 0 .35rem; font-weight: 850; }

.notice { display: block; width: fit-content; margin: .75rem 0; border: 1px solid transparent; }
.notice.warning { border-color: #ead18e; background: #fff6dc; color: #674700; }
.notice.error { border-color: #e4b0aa; background: #fff1ef; color: var(--danger); }
.notice.success { border-color: #a9d5bd; background: #e7f6ed; color: var(--success); }

.tracking-panel form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .8rem; max-width: 760px; }
.tracking-panel form > .button { align-self: end; }
.track-card, .outcome-card {
  margin-top: 1.1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-left: .35rem solid var(--teal);
  border-radius: .75rem;
  background: var(--surface-soft);
}
.track-card h3 { font-size: 1.55rem; }
.outcome-card { border-left-color: var(--gold); background: var(--surface-warm); }
.outcome-card h3 { font-size: 1.2rem; }
.panel.outcomes { display: block; }
#outcome-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }

.reference-card { text-align: center; }
.reference-card code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1.5rem auto;
  padding: 1rem 1.2rem;
  overflow-wrap: anywhere;
  border-radius: .8rem;
  background: var(--navy);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .07em;
}
.reference-card .hero-actions { justify-content: center; }

.content-page { max-width: 850px; padding: 4.5rem 0 6rem; }
.content-page h1, .auth-page h1, .workspace h1 { max-width: 14ch; font-size: clamp(2.8rem, 6vw, 4.8rem); }
.content-page .panel h2 { margin-top: 2rem; font-size: 1.65rem; }
.content-page .panel h2:first-child { margin-top: 0; }
.auth-page { max-width: 620px; padding: 4.5rem 0 6rem; }
.auth-page .panel { box-shadow: var(--shadow-md); }
.auth-page details { margin-top: 1.5rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.auth-page summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 850; list-style: none; }
.auth-page summary::-webkit-details-marker { display: none; }
.auth-page summary::after { width: 1.75rem; height: 1.75rem; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--teal); content: "+"; font-size: 1.15rem; transition: transform 180ms var(--press), background-color 180ms ease; }
.auth-page details[open] summary::after { background: var(--teal-pale); transform: rotate(45deg); }
.footer { margin-top: 2rem; background: rgb(255 255 255 / 55%); }

.workspace { padding: 2.5rem 0 6rem; }
.workspace-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.workspace-head h1 { margin-bottom: .5rem; }
.admin-page-nav {
  position: sticky;
  top: .75rem;
  z-index: 5;
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: .25rem;
  margin-bottom: 2.5rem;
  padding: .3rem;
  overflow-x: auto;
  border: 1px solid rgb(174 200 193 / 85%);
  border-radius: .85rem;
  background: rgb(255 255 255 / 82%);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px) saturate(150%);
}
.admin-page-nav a { white-space: nowrap; }
.admin-page-nav a[aria-current="page"] { background: var(--navy); color: #fff; }

.idea-card { margin-top: .85rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; }
.idea-card summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; padding: 1rem 1.1rem; cursor: pointer; font-weight: 850; }
.idea-card[open] { border-color: #9fc4bb; box-shadow: var(--shadow-sm); }
.idea-card summary small { text-align: right; }
.idea-private { padding: 0 1.1rem 1.1rem; }
.idea-private > p { white-space: pre-wrap; }
.idea-summary-copy { min-width: 0; display: grid; gap: .25rem; }
.idea-summary-copy .idea-title { overflow-wrap: anywhere; font-size: 1.04rem; }
.idea-summary-copy > small { color: var(--muted); text-align: left; font-weight: 600; }
.duplicate-label, .summary-review { width: fit-content; border-radius: 999px; padding: .2rem .55rem; font-size: .68rem; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.duplicate-label { background: var(--teal-pale); color: var(--navy); }
.summary-review { background: #fff0d1; color: #674700; }
.pupil-count { width: 4.6rem; min-height: 4.6rem; display: grid; grid-template-columns: 1fr auto; place-content: center; align-items: center; gap: 0 .3rem; padding: .55rem; border: 1px solid #b8d8d0; border-radius: 1rem; background: var(--surface-soft); color: var(--navy); text-align: center; }
.pupil-count svg { grid-row: 1 / 3; width: 1.65rem; fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.pupil-count strong { font-size: 1.25rem; line-height: 1; }
.pupil-count small { color: var(--muted); font-size: .63rem; font-weight: 800; text-align: center !important; text-transform: uppercase; }
.duplicate-explainer { display: grid; gap: .2rem; margin: .2rem 0 1rem; padding: .9rem 1rem; border-left: .3rem solid var(--teal); border-radius: .5rem; background: var(--surface-soft); }
.duplicate-explainer span { color: var(--muted); font-size: .84rem; }
.idea-instance { padding: 1rem 0 1.5rem; border-top: 1px solid var(--line); }
.idea-instance:first-of-type { border-top: 0; }
.idea-instance + .idea-instance { margin-top: .5rem; }
.idea-instance > p { white-space: pre-wrap; }
.idea-instance-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.idea-instance-head .eyebrow { margin-bottom: .25rem; }
.idea-instance-head h3 { margin: 0; font-size: 1.25rem; }
.idea-instance-head > small { flex: 0 0 auto; color: var(--muted); }
.moderation-flag { display: grid; gap: .18rem; margin: 1rem 0; padding: .85rem 1rem; border: 1px solid #e8c879; border-radius: .7rem; background: #fff7df; color: #5f4308; }
.moderation-flag span { font-size: .86rem; }
.moderation-flag small { color: #755d29; }
.moderation-clear { width: fit-content; margin: .9rem 0; color: var(--muted); font-size: .8rem; }
.moderation-clear span { color: var(--success); font-weight: 900; }
.admin-tools form { align-content: start; }
.ballot-admin-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #fff;
}
.ballot-admin-card h3 { font-size: 1.2rem; }
.ballot-admin-card ul { margin: .7rem 0 0; padding-left: 1.2rem; }
.vote-comments summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--navy); font-weight: 800; }
.vote-comments p { padding: .75rem; border-left: 3px solid var(--teal); background: var(--surface-soft); }

.code-dashboard form { display: grid; gap: 1rem; max-width: 760px; }
.code-dashboard code { overflow-wrap: anywhere; font-weight: 850; }
.code-list { display: grid; gap: .7rem; margin-top: 1rem; }
.code-list article { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fbfdfc; }
.code-list article > div { display: flex; min-width: 0; align-items: center; gap: .7rem; }
.code-status { flex: 0 0 auto; border-radius: 999px; padding: .23rem .58rem; font-size: .7rem; font-weight: 850; }
.code-status[data-status="active"] { background: #dff5e8; color: var(--success); }
.code-status[data-status="used"] { background: #e7edf1; color: var(--ink); }
.code-status[data-status="expired"] { background: #fff0ee; color: var(--danger); }
.code-status[data-status="full"] { background: #fff2d5; color: #633f00; }

.admin-account-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(22rem, 1.1fr); align-items: start; gap: 1rem; }
.admin-account-grid .panel { min-width: 0; }
.admin-account-grid h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.member-list { display: grid; gap: .65rem; margin-top: 1.25rem; }
.member-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #fbfdfc; }
.member-identity { min-width: 0; display: grid; gap: .18rem; }
.member-identity strong { overflow-wrap: anywhere; }
.member-identity code { width: fit-content; color: var(--muted); font-size: .72rem; }
.member-access { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: .6rem; }
.member-access .button { min-height: 38px; padding: .52rem .75rem; font-size: .82rem; }
.access-status { border-radius: 999px; padding: .25rem .58rem; font-size: .72rem; font-weight: 850; }
.access-status[data-status="active"] { background: #dff5e8; color: var(--success); }
.access-status[data-status="revoked"] { background: #fff0ee; color: var(--danger); }
.button-danger { border-color: #8d2a22; background: var(--danger); box-shadow: 0 2px 0 #6f201a, 0 8px 18px rgb(156 46 36 / 14%); }
.button-danger:hover { background: #81251e; box-shadow: 0 2px 0 #641b16, 0 10px 22px rgb(156 46 36 / 20%); }
.confirmation-dialog { width: min(100% - 2rem, 33rem); padding: 0; border: 1px solid var(--line); border-radius: 1.1rem; background: #fff; color: var(--ink); box-shadow: 0 28px 80px rgb(9 47 53 / 28%); }
.confirmation-dialog::backdrop { background: rgb(9 47 53 / 48%); backdrop-filter: blur(5px); }
.confirmation-dialog form { display: grid; gap: .75rem; margin: 0; padding: 1.5rem; }
.confirmation-dialog h2 { margin: 0; font-size: 1.85rem; }
.confirmation-dialog p { margin-block: 0 .5rem; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .7rem; margin-top: .5rem; }

.profile-panel { max-width: 760px; }
.profile-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.profile-summary h2 { margin: 0 0 .35rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.profile-summary p:last-child { margin: 0; color: var(--muted); }
.profile-avatar { width: 4rem; height: 4rem; display: grid; place-items: center; border-radius: 1.15rem; background: linear-gradient(145deg, var(--teal), var(--navy-soft)); color: #fff; box-shadow: 0 10px 24px rgb(8 125 120 / 20%); font-size: 1.75rem; font-weight: 900; }
.profile-panel form { max-width: 34rem; margin-top: 1.5rem; }
.account-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 2rem 0 0; }
.account-details div { padding: .9rem; border-radius: .75rem; background: var(--surface-soft); }
.account-details dt { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.account-details dd { margin: .25rem 0 0; overflow-wrap: anywhere; font-weight: 750; }

.vote-card { padding: clamp(1.25rem, 3vw, 2rem); }
.vote-card h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.optional-comment { margin-top: 1.25rem; }
.optional-comment textarea { background: #fbfdfc; }
.ballot-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.5rem 0 1rem; }
.ballot-option {
  min-height: 7.5rem;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.15rem;
  border: 2px solid var(--line-strong);
  border-radius: .9rem;
  background: #f4f8f7;
  color: var(--ink);
  box-shadow: none;
  font-size: 1.08rem;
  text-align: left;
}
.ballot-icon { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 80%); font-size: 1.4rem; }
.ballot-option[data-choice="FOR"] { border-color: #80b99a; background: #e6f5ec; }
.ballot-option[data-choice="AGAINST"] { border-color: #d4a29b; background: #fff0ee; }
.ballot-option[data-choice="NO_VOTE"] { border-color: #aabdc3; background: #edf2f4; }
.ballot-option[data-choice="ABSTAIN"] { border-color: #d7b765; background: #fff5da; }
.ballot-option:hover { border-color: var(--teal); background: #fff; box-shadow: 0 10px 22px rgb(8 125 120 / 14%); }
.ballot-option.selected { border-color: var(--teal); background: var(--teal); color: #fff; }
.ballot-option.selected:disabled { opacity: 1; }

.plt-member-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); width: 100% !important; min-height: 100vh; margin: 0 !important; background: var(--canvas); }
.plt-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 1.5rem 1rem; background: var(--navy); color: #fff; }
.plt-brand { color: #fff; font-weight: 900; text-decoration: none; }
.plt-brand span { display: block; margin-top: .16rem; color: #aedaD1; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.plt-signed { margin: 2.75rem 0 1.4rem; padding: 1rem; border: 1px solid #315d61; border-radius: .8rem; background: rgb(255 255 255 / 3%); color: #d4e8e4; font-size: .78rem; }
.plt-signed strong { color: #fff; font-size: .92rem; }
.plt-signed small { color: #acd6cf; }
.plt-sidebar nav { display: grid; gap: .2rem; }
.plt-sidebar nav a { min-height: 44px; padding: .72rem; border-radius: .58rem; color: #d4e8e4; font-size: .86rem; }
.plt-sidebar nav a:hover, .plt-sidebar nav a[aria-current="page"] { background: var(--navy-soft); color: #fff; }
.plt-signout { margin-top: auto; border-color: #3d686b; background: transparent; color: #fff; box-shadow: none; }
.plt-signout:hover { background: var(--navy-soft); box-shadow: none; }
.plt-main { width: 100%; max-width: 1180px; padding: clamp(2.75rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem); }
.plt-main h1 { max-width: 13ch; font-size: clamp(3rem, 6vw, 5.35rem); }
.plt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin: 2rem 0 3rem; }
.plt-stats article { min-height: 9rem; padding: 1.3rem; }
.plt-stats small, .plt-stats span { display: block; }
.plt-stats strong { display: block; margin: .35rem 0; color: var(--teal); font-size: 2rem; letter-spacing: -.04em; }
.plt-choice-card { max-width: 720px; padding: clamp(1.3rem, 3vw, 2rem); }
.plt-choice-card h2 { font-size: 2.2rem; }
.plt-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.plt-choice-grid a { display: grid; align-content: center; gap: .35rem; min-height: 6rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); text-decoration: none; transition: transform 160ms var(--press), box-shadow 160ms ease, background-color 160ms ease; }
.plt-choice-grid a:hover { background: var(--surface-soft); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.plt-choice-grid a:active { transform: scale(.985); }
.plt-choice-grid span { color: var(--muted); font-size: .85rem; }

.selection-confirmed { color: var(--navy); font-weight: 750; }
.noscript { width: min(100% - 2.5rem, 720px); margin: 4rem auto; }

@keyframes settle-in {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vote-confirm {
  0% { transform: scale(.98); }
  60% { transform: scale(1.018); }
  100% { transform: scale(1); }
}
@keyframes status-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero, .content-page, .workspace, .plt-main { animation: settle-in 360ms var(--press) both; }
  .how-steps, .form-panel, .tracking-panel, .outcomes { animation: settle-in 420ms var(--press) both; }
  .how-steps { animation-delay: 50ms; }
  .form-panel { animation-delay: 85ms; }
  .tracking-panel { animation-delay: 120ms; }
  .outcomes { animation-delay: 155ms; }
  .ballot-option.selected { animation: vote-confirm 280ms var(--press) both; }
  .notice, .selection-confirmed { animation: status-in 200ms ease-out both; }
}

@media (hover: hover) {
  .site-header nav a:hover { transform: translateY(-1px); }
  .idea-card, .ballot-admin-card, .vote-card, .outcome-card { transition: transform 170ms var(--press), box-shadow 170ms ease, border-color 170ms ease; }
  .idea-card:hover, .ballot-admin-card:hover, .vote-card:hover, .outcome-card:hover { border-color: #b5d0c9; box-shadow: 0 13px 28px rgb(9 47 53 / 9%); transform: translateY(-2px); }
}

@media (prefers-reduced-transparency: reduce) {
  .admin-page-nav { background: #fff; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .panel, .vote-card, .plt-stats article, .plt-choice-card, input, textarea, select { border-color: #557772; }
  .admin-page-nav { background: #fff; border-color: var(--navy); }
}

@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .prototype-banner { min-height: 3rem; display: block; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
  .site-header, #main-content { width: min(100% - 1.5rem, 1200px); }
  .site-header { min-height: auto; display: grid; align-items: start; gap: .85rem; padding: 1rem 0; }
  .site-header nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: .2rem; }
  .site-header nav a { justify-content: flex-start; padding-inline: .58rem; font-size: .78rem; }
  .site-header nav a[aria-current="page"]::after { right: .58rem; left: .58rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .hero .eyebrow { max-width: 100%; font-size: .68rem; letter-spacing: .1em; white-space: normal; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .how-steps ol { grid-template-columns: 1fr; }
  .how-steps li, .how-steps li:first-child { min-height: auto; padding: 1rem 0; border-top: 1px solid var(--line); border-left: 0; }
  .tracking-panel form, .form-grid { grid-template-columns: 1fr; }
  .workspace-head, .ballot-admin-card, .idea-card summary { display: grid; }
  .idea-card summary small { text-align: left; }
  .idea-card summary { grid-template-columns: minmax(0, 1fr) auto; }
  .pupil-count { width: 4.15rem; min-height: 4.15rem; }
  .idea-instance-head { display: grid; }
  .admin-page-nav { top: .4rem; width: 100%; }
  .code-list article { display: grid; }
  .admin-account-grid { grid-template-columns: 1fr; }
  .member-row, .member-access { display: grid; justify-content: stretch; }
  .member-access { grid-template-columns: auto 1fr; }
  .member-access .button, .member-access .small-print { grid-column: 1 / -1; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .account-details { grid-template-columns: 1fr; }
  .profile-summary { align-items: start; }
  .ballot-options, .plt-stats, .plt-choice-grid { grid-template-columns: 1fr; }
  .ballot-option { min-height: 5.5rem; }
  .plt-member-layout { grid-template-columns: 1fr; }
  .plt-sidebar { position: static; height: auto; min-height: auto; }
  .plt-signed { margin: 1.35rem 0; }
  .plt-sidebar nav { grid-template-columns: repeat(2, 1fr); }
  .plt-sidebar nav a { justify-content: center; padding-inline: .35rem; text-align: center; font-size: .72rem; }
  .plt-signout { margin-top: 1.25rem; }
  .plt-main { padding: 2.5rem 1rem; }
}

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