:root {
  --black: #0b0b0b;
  --panel: #161616;
  --panel2: #1f1f1f;
  --line: #2c2c2c;
  --white: #ffffff;
  --muted: #a3a3a3;
  --red: #d71920;
  --red-dark: #a91217;
  --green: #2fb36d;
  --amber: #e0a526;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--white); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--white); }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: .25rem 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.red { color: var(--red); }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: calc(.6rem + env(safe-area-inset-top)) 1rem .6rem;
  background: var(--black); border-bottom: 3px solid var(--red);
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 800; letter-spacing: .06em; }
.brand b { color: var(--red); }
#nav { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
#nav a, #nav button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem;
  padding: .35rem .55rem; border-radius: 8px; text-decoration: none; cursor: pointer;
}
#nav a.active { color: var(--white); background: var(--panel2); }

main { max-width: 760px; margin: 0 auto; padding: 1rem; }
.loading { padding: 3rem 0; text-align: center; color: var(--muted); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; margin-bottom: 1rem;
}
.card.accent { border-left: 4px solid var(--red); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (max-width: 480px) { .grid4 { grid-template-columns: 1fr 1fr; } }

label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
input, select, textarea {
  width: 100%; background: var(--black); color: var(--white);
  border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
textarea { min-height: 70px; resize: vertical; }
.field { margin-bottom: .75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--red); color: var(--white); border: 0; border-radius: 10px;
  padding: .7rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--red-dark); }
.btn.secondary { background: var(--panel2); border: 1px solid var(--line); }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.btn.small { padding: .4rem .7rem; font-size: .85rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.auth { max-width: 380px; margin: 2rem auto; text-align: center; }
.auth .logo { width: 150px; height: 150px; border-radius: 16px; margin-bottom: 1rem; }
.auth form { text-align: left; }

.pill {
  display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .5rem;
  border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted);
}
.pill.red { background: rgba(215,25,32,.15); border-color: var(--red); color: #ff6b70; }
.pill.amber { background: rgba(224,165,38,.12); border-color: var(--amber); color: var(--amber); }
.pill.green { background: rgba(47,179,109,.12); border-color: var(--green); color: var(--green); }
.flags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .4rem; }

.exercise { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; }
.exercise:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.target { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.setrow { display: grid; grid-template-columns: 2rem 1fr 1fr 1fr 2rem; gap: .4rem; align-items: center; margin-bottom: .4rem; }
.setrow .n { color: var(--muted); font-weight: 700; text-align: center; }
.setrow.head { font-size: .75rem; color: var(--muted); margin-bottom: .2rem; }
.iconbtn { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .6rem .8rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--white); border-color: var(--red); }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.scroll { overflow-x: auto; }

.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: .25rem; }
.scale input { display: none; }
.scale span {
  display: block; text-align: center; padding: .45rem 0; border-radius: 6px;
  background: var(--black); border: 1px solid var(--line); cursor: pointer; font-size: .9rem;
}
.scale input:checked + span { background: var(--red); border-color: var(--red); font-weight: 700; }

.macro { background: var(--black); border: 1px solid var(--line); border-radius: 10px; padding: .6rem; text-align: center; }
.macro .v { font-size: 1.25rem; font-weight: 800; }
.macro .t { font-size: .75rem; color: var(--muted); }
.bar { height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; margin-top: .35rem; }
.bar > i { display: block; height: 100%; background: var(--green); }
.bar > i.over { background: var(--red); }
.bar > i.under { background: var(--amber); }

.comment { background: var(--black); border-left: 3px solid var(--red); padding: .6rem .8rem; border-radius: 6px; margin-top: .6rem; }
.comment b { color: var(--red); }

#toast {
  position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(150%);
  background: var(--white); color: var(--black); padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600;
  transition: transform .25s; max-width: 90vw; z-index: 50;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--red); color: var(--white); }

.daypick { display: flex; gap: .4rem; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted); padding: 1.5rem 0; }
details summary { cursor: pointer; }
@media (max-width: 480px) {
  .brand span { display: none; }
  #nav { flex-wrap: nowrap; gap: 0; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  #nav::-webkit-scrollbar { display: none; }
  #nav a, #nav button { padding: .35rem .3rem; font-size: .76rem; white-space: nowrap; }
  .topbar { padding-left: .6rem; padding-right: .6rem; }
}

/* ---- progress & tracking ---- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .75rem; }
@media (max-width: 420px) { .grid3 { gap: .35rem; } .grid3 .macro .v { font-size: 1rem; } }
.chart { position: relative; margin-top: .25rem; touch-action: pan-y; }
.chart svg { width: 100%; height: 200px; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .ln { fill: none; stroke: #e5484d; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .pt { fill: #e5484d; stroke: var(--panel); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .raw { fill: #9a9a9a; opacity: .7; }
.chart .tgt { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.chart .tgtl { fill: var(--green); }
.chart .cross { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .hov { fill: var(--white); stroke: #e5484d; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .tip { position: absolute; top: -.25rem; width: 130px; background: var(--white); color: var(--black); border-radius: 8px; padding: .35rem .5rem; font-size: .8rem; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.chart .tip .muted { color: #555; }
.chartempty { padding: 1rem 0; text-align: center; }
.legend { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: .4rem 0 0; }
.key { display: inline-block; }
.key.raw { width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; }
.key.ln { width: 16px; height: 2px; background: #e5484d; margin-left: .6rem; }
.tick { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); color: var(--white); font-size: 1rem; margin: 0; cursor: pointer; }
.tick:first-of-type { border-top: 0; }
.tick input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.phdate { margin-top: 1rem; }
.phgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.phgrid figure { margin: 0; }
.phgrid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; display: block; background: var(--black); }
.phgrid .drivelink { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border: 1px dashed var(--line); border-radius: 8px; font-size: .85rem; }
.phgrid figcaption { font-size: .8rem; color: var(--muted); margin-top: .25rem; display: flex; justify-content: space-between; }

/* ---- round 3: messages, rest timer, library ---- */
.badge { display: inline-block; min-width: 1.1rem; padding: 0 .3rem; margin-left: .3rem; border-radius: 999px; background: var(--red); color: var(--white); font-size: .7rem; font-weight: 800; line-height: 1.1rem; text-align: center; }
.chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 360px; }
.msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .15rem; }
.msgday { text-align: center; color: var(--muted); font-size: .75rem; margin: .8rem 0 .4rem; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .bubble { background: var(--panel2); border: 1px solid var(--line); padding: .55rem .8rem; border-radius: 14px 14px 14px 4px; white-space: normal; word-wrap: break-word; }
.msg.mine .bubble { background: var(--red); border-color: var(--red); border-radius: 14px 14px 4px 14px; }
.msg .meta { font-size: .7rem; color: var(--muted); margin: .15rem .3rem .4rem; }
.msgform { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); background: var(--panel); }
.msgform textarea { min-height: 44px; resize: none; }
.setrow { grid-template-columns: 1.4rem 1fr 1fr 1.15fr 2.1rem 1.2rem; gap: .3rem; }
.donebtn { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--line); background: var(--black); color: var(--muted); font-size: 1rem; cursor: pointer; }
.setrow.done .donebtn { background: var(--green); border-color: var(--green); color: var(--white); }
.setrow.done input { border-color: rgba(47,179,109,.5); }
.resttimer { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; width: min(420px, calc(100vw - 2rem));
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .3rem .7rem; padding: .7rem .9rem; background: var(--white); color: var(--black); border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.resttimer b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.resttimer .rt-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #555; }
.resttimer button { background: var(--black); color: var(--white); border: 0; border-radius: 8px; padding: .45rem .6rem; min-height: 2.5rem; font: inherit; font-size: .85rem; cursor: pointer; }
.resttimer .rt-bar { grid-column: 1 / -1; height: 4px; background: #ddd; border-radius: 2px; overflow: hidden; }
.resttimer .rt-bar i { display: block; height: 100%; background: var(--red); transition: width .5s linear; }
.exedit { background: var(--black); padding: .7rem; margin-bottom: .5rem; }
#loadSel { padding: .4rem .6rem; }
body.resting main { padding-bottom: 8rem; }

/* Diet */
.note { background: rgba(255,255,255,.04); border-left: 3px solid var(--red); border-radius: 8px; padding: .6rem .75rem; font-size: .85rem; color: var(--muted); }
.meal { border-top: 1px solid var(--line); padding: .6rem 0; }
.meal h3 { margin: 0; }
.meal ul { margin: .35rem 0; padding-left: 1.1rem; }
.meal p { margin: .25rem 0; }
#intakeForm textarea { min-height: 2.6rem; }

/* Handouts */
.handout { max-width: 760px; margin: 0 auto; }
.ho-head { margin-bottom: .5rem; }
.ho-head img { border-radius: 8px; }
.ho-freq { margin: .3rem 0 .8rem; }
.ho-list { list-style: none; padding: 0; margin: 1rem 0; counter-reset: ho; }
.ho-list li { counter-increment: ho; }
.ho-list h2::before { content: counter(ho) ". "; color: var(--red); }
.ho-list h2 { margin: 0; font-size: 1.1rem; }
.ho-dose { font-weight: 700; margin: .35rem 0; }
.printonly { display: none; }
body.handout-page .topbar nav { display: none; }
@media print {
  html, body { background: #fff !important; color: #000 !important; }
  .topbar, .noprint, #toast { display: none !important; }
  .printonly { display: block; }
  main { padding: 0 !important; }
  .handout .card { background: #fff; border: 1px solid #ccc; break-inside: avoid; color: #000; }
  .handout .note { background: #f4f4f4; color: #000; }
  .handout .muted { color: #555 !important; }
}

/* AI program writer */
.aibox { border: 1px dashed var(--line); border-radius: 10px; padding: .6rem .75rem; }
.aibox summary { cursor: pointer; }

/* Exercise picker + inline demos */
.picker { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.picker-box { width: 100%; max-width: 560px; max-height: 85vh; display: flex; flex-direction: column; margin: 0; border-radius: 16px 16px 0 0; }
@media (min-width: 700px) { .picker { align-items: center; } .picker-box { border-radius: 16px; } }
.picker-list { overflow-y: auto; flex: 1; margin: .5rem 0; min-height: 8rem; }
.chips { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .25rem; }
.chip { background: none; border: 1px solid var(--line); color: inherit; border-radius: 999px; padding: .25rem .7rem; font: inherit; font-size: .8rem; white-space: nowrap; cursor: pointer; }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.ytwrap { position: relative; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; margin-top: .5rem; border-radius: 10px; overflow: hidden; background: #000; }
.ytwrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media print { .ytwrap { display: none; } }
.weekbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: rgba(215,25,32,.08); border: 1px solid var(--red); border-radius: 10px; padding: .6rem .75rem; margin: .5rem 0; flex-wrap: wrap; }
.pickrow { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit; padding: .55rem .2rem; cursor: pointer; }
.pickrow:hover { background: rgba(255,255,255,.04); }

/* Collapsible cards */
h2.cardhead, h3.cardhead { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.colbtn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; width: 2rem; height: 2rem; flex: 0 0 auto; cursor: pointer; font-size: .95rem; line-height: 1; padding: 0; }
.colbtn:hover { color: inherit; }
.card.collapsed > :not(.cardhead) { display: none !important; }
.card.collapsed > .cardhead { margin-bottom: 0 !important; }
.card.collapsed > .cardhead h2, .card.collapsed > .cardhead h3 { margin: 0; }
@media print { .colbtn { display: none; } .card.collapsed > :not(.cardhead) { display: revert !important; } }
.row.between.cardhead { justify-content: flex-start; } .row.between.cardhead > :first-child { margin-right: auto; }
.mainlift + .mainlift { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }

/* View-as-client preview */
#previewBar { position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .5rem 1rem; background: #f5a524; color: #111; font-size: .9rem; }
#previewBar .btn { background: #111; color: #fff; border-color: #111; }
@media print { #previewBar { display: none; } }
.row.between.cardhead { flex-wrap: nowrap; } .row.between.cardhead > input { min-width: 0; }

/* ---- Bigger tap targets (44px) ---- */
.iconbtn { min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.iconbtn:hover { background: var(--panel2); }
.setrow { grid-template-columns: 1.2rem 1fr 1fr 1fr 2.75rem 2.75rem; gap: .3rem; }
.donebtn { width: 2.75rem; height: 2.75rem; font-size: 1.1rem; }
.setrow input { min-height: 2.75rem; padding-left: .5rem; padding-right: .4rem; }
.colbtn { width: 2.75rem; height: 2.75rem; }
.btn.small { min-height: 2.5rem; }
.linkbtn { min-height: 2.5rem; }

/* ---- Exercise swap & restored workout ---- */
.exhead { flex-wrap: nowrap; }
.exhead h3 { margin: 0; }
.swap select { width: auto; max-width: 11rem; min-height: 2.5rem; font-size: .85rem; padding: .3rem .5rem; }
.swapnote { margin: .2rem 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Client bottom bar (phones) ---- */
#tabbar { display: none; }
@media (max-width: 700px) {
  body.has-tabbar #nav { display: none; }
  body.has-tabbar .brand span { display: inline; }
  body.has-tabbar main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  body.has-tabbar #toast { bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
  body.has-tabbar .resttimer { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  #tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--black); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  #tabbar > a, #tabbar > button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    min-height: 3.6rem; color: var(--muted); text-decoration: none; background: none; border: 0; font: inherit; font-size: .7rem; cursor: pointer; }
  #tabbar > .active { color: var(--white); }
  #tabbar > .active svg { color: var(--red); }
  #tabbar .badge { position: absolute; top: .3rem; left: calc(50% + .3rem); margin: 0; font-style: normal; }
  #tabbar .moresheet { position: absolute; right: .5rem; bottom: calc(100% + .5rem); min-width: 12rem; background: var(--panel); border: 1px solid var(--line);
    border-radius: 14px; padding: .4rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; }
  #tabbar .moresheet[hidden] { display: none; }
  #tabbar .moresheet a, #tabbar .moresheet button { display: flex; align-items: center; min-height: 2.9rem; padding: 0 .9rem; border-radius: 10px; color: var(--white);
    text-decoration: none; background: none; border: 0; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
  #tabbar .moresheet a.active { background: var(--panel2); }
  #tabbar .moresheet button { color: var(--muted); border-top: 1px solid var(--line); border-radius: 0; margin-top: .2rem; }
  #tabbar .moresheet .badge { font-style: normal; }
}
@media print { #tabbar { display: none !important; } }

/* ---- Coach section menu ---- */
.secmenu { position: relative; margin: .5rem 0 1rem; }
.secbtn { display: flex; justify-content: space-between; align-items: center; min-height: 2.9rem; }
.seclist { position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 20; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: .4rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; }
.seclist[hidden] { display: none; }
.seclist a { display: flex; align-items: center; min-height: 2.8rem; padding: 0 .8rem; border-radius: 10px; color: var(--white); text-decoration: none; }
.seclist a.active { background: var(--panel2); color: var(--red); font-weight: 700; }
.seclist a:hover { background: var(--panel2); }

/* ---- Roster tools ---- */
.rostertools { display: grid; gap: .5rem; margin-bottom: 1rem; }
.rostertools .chips { flex-wrap: nowrap; overflow-x: auto; }
.rostertools .chip { min-height: 2.5rem; white-space: nowrap; }

/* ---- About (onboarding answers) ---- */
dl.about { margin: 0; }
dl.about dt { color: var(--muted); font-size: .85rem; margin-top: .6rem; }
dl.about dd { margin: .1rem 0 0; white-space: pre-wrap; }

/* ---- Photo compare ---- */
.compare { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cmpview { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem; }
.cmpview figure { margin: 0; }
.cmpview img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; }
.cmpview figcaption { text-align: center; font-size: .8rem; color: var(--muted); margin-top: .25rem; }
#toast { opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; }
#toast.show { opacity: 1; visibility: visible; }

/* ---- Daily quote ---- */
.quote { margin: 0 0 1rem; padding: .9rem 1rem; border-left: 4px solid var(--red); background: var(--panel); border-radius: 10px;
  font-size: 1.05rem; font-weight: 600; font-style: italic; line-height: 1.4; }
.quote::before { content: '“'; color: var(--red); font-size: 1.4rem; margin-right: .15rem; }
.quote::after { content: '”'; color: var(--red); font-size: 1.4rem; margin-left: .1rem; }

/* ---- Consent form ---- */
fieldset.yn { border: 0; border-top: 1px solid var(--line); margin: 0; padding: .7rem 0; }
fieldset.yn legend { padding: 0; margin-bottom: .45rem; font-size: .95rem; float: left; width: 100%; }
fieldset.yn label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 1.25rem 0 0; min-height: 2.5rem; color: var(--white); font-size: 1rem; clear: left; }
fieldset.yn input { width: 1.25rem; height: 1.25rem; }
label.check { display: flex; gap: .6rem; align-items: flex-start; margin-top: .8rem; color: var(--white); font-size: .95rem; }
label.check input { width: 1.3rem; height: 1.3rem; flex: 0 0 auto; margin-top: .1rem; }
