:root {
  /* BrightPath palette: forest green ground colour, marigold highlight, ember for the one call to action. */
  --bg: #f8f7f2; --surface: #ffffff; --text: #17231d; --muted: #59655d; --border: #dfe2dc;
  --accent: #1f5c42; --accent-text: #ffffff; --danger: #a33a2c; --notice: #fbefd0;
  --deep: #173e2d; --deep-text: #f4f3ec; --marigold: #f1c66b; --ember: #d8562f; --tint: #eceee8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121915; --surface: #1a231e; --text: #ebece6; --muted: #a2ada5; --border: #2f3b34;
    --accent: #6cc79c; --accent-text: #0e1612; --danger: #f08a7c; --notice: #3a3320;
    --deep: #0d2a1e; --deep-text: #ebece6; --marigold: #e2b65c; --ember: #ee7a52; --tint: #18211c; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header, main, footer { max-width: 720px; margin: 0 auto; padding: 16px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
header a.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 14px; flex-wrap: wrap; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 8px 0 12px; }
h2 { font-size: 1.15rem; margin: 24px 0 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin: 14px 0; }
.card > h2:first-child { margin-top: 0; }
.muted { color: var(--muted); font-size: .92rem; }
.notice { background: var(--notice); border-radius: 8px; padding: 10px 12px; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
input { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); width: 100%; }
input.code { font-family: ui-monospace, monospace; font-size: 1.3rem; letter-spacing: .12em; text-transform: uppercase; }
button { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-text); cursor: pointer; justify-self: start; }
button.secondary { background: transparent; color: var(--accent); }
button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
button:disabled { opacity: .6; cursor: default; }
.message { min-height: 1.4em; }
.message.error { color: var(--danger); }
.grant { display: grid; gap: 6px; }
.grant .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.tag { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; font-size: .82rem; margin: 2px 4px 2px 0; }
.hidden, [hidden] { display: none !important; }
footer { color: var(--muted); font-size: .85rem; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.choice input { width: auto; margin-top: 4px; }
.checksum { font-family: ui-monospace, monospace; font-size: .78rem; overflow-wrap: anywhere; }
pre { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px; overflow-x: auto; font-size: .85rem; }

/* Shared */
.brand-icon { display: inline-block; width: 2rem; height: 2rem; vertical-align: middle; border-radius: .45rem; margin-right: .45rem; }
a.button { display: inline-block; font-weight: 700; padding: 11px 20px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent); }
a.button.secondary { background: transparent; color: var(--accent); }
a.button:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--ember); margin: 0 0 10px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.split > * { min-width: 0; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .75rem; font-weight: 700;
  background: var(--tint); color: var(--muted); white-space: nowrap; }
.pill.approve { background: var(--accent); color: var(--accent-text); }
.consent-box { border-left: 4px solid var(--marigold); }

/* Home page */
body[data-page="home"] header, body[data-page="home"] main, body[data-page="home"] footer { max-width: 1040px; }
body[data-page="home"] main { display: grid; gap: 56px; padding-block: 8px 48px; }
body[data-page="home"] h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 14px; text-wrap: balance; letter-spacing: -.01em; }
body[data-page="home"] h3 { font-size: 1.1rem; margin: 0 0 6px; }
.hero { display: grid; gap: 32px; padding-top: 16px; }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 850; margin: 0; text-wrap: balance; }
.highlight { color: var(--accent); }
.hero-visual { min-width: 0; }
.band { background: var(--deep); color: var(--deep-text); border-radius: 28px; padding: clamp(22px, 4vw, 44px); }
.band .lead, .band .muted { color: color-mix(in srgb, var(--deep-text) 72%, transparent); }
.band a { color: var(--marigold); }
.band .ticks li::before { color: var(--marigold); }
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid color-mix(in srgb, var(--deep-text) 25%, transparent); padding-top: 14px; min-width: 0; }
.steps li::before { content: counter(step); font-weight: 900; color: var(--marigold); font-size: .9rem; }
.steps h3 { margin-top: 10px; }
.steps p { margin: 0; color: color-mix(in srgb, var(--deep-text) 72%, transparent); }
body[data-page="home"] .card { margin: 0; padding: 22px; border-radius: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--marigold); color: #1b2a20; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .92rem; }
.cta { background: var(--tint); border-radius: 28px; padding: clamp(22px, 4vw, 44px); }
.cta p { max-width: 62ch; }
/* Home page: three parent channels send approved practice to a child at the home computer. */
.send-flowchart { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1.2fr); gap: 16px; align-items: center; }
.send-role { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 800; color: var(--accent); }
.send-people { width: 44px; height: 26px; fill: var(--accent); flex: none; }
.send-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.send-channels li { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 14px 16px; box-shadow: 0 8px 24px rgb(23 62 45 / .06); }
.send-channels span { min-width: 0; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.send-channels b { display: block; color: var(--text); font-size: 1rem; }
.send-icon { width: 40px; height: 40px; flex: none; padding: 8px; border-radius: 12px; background: var(--deep);
  fill: none; stroke: var(--marigold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.send-arrow { margin: 0; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); }
.send-arrow svg { width: 100%; height: 20px; fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.send-child { margin: 0; min-width: 0; }
.send-child .send-role { justify-content: center; margin: 10px 0 0; }
.send-scene { display: block; width: 100%; height: auto; }
.send-chips { list-style: none; padding: 0; margin: 22px 0 10px; justify-content: center; }
.s-wall { fill: var(--tint); }
.s-desk { fill: #c99a62; }
.s-stand, .s-lamp path { fill: none; stroke: #4b5a52; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.s-lamp path + path { fill: var(--marigold); stroke-width: 4; }
.s-lamp rect, .s-keyboard { fill: #4b5a52; }
.s-frame { fill: #1d2622; stroke: var(--border); stroke-width: 2; }
.s-screen, .s-address { fill: var(--surface); }
.s-chrome { fill: var(--accent); }
.s-dot { fill: var(--accent-text); opacity: .6; }
.s-url { font: 700 9px system-ui, sans-serif; fill: var(--muted); }
.s-question { font: 800 17px system-ui, sans-serif; fill: var(--text); }
.s-apple { fill: var(--ember); }
.s-answer { fill: var(--surface); stroke: var(--border); stroke-width: 2; }
.s-answer.s-picked { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); stroke: var(--accent); }
.s-answer-text { font: 800 18px system-ui, sans-serif; fill: var(--text); }
.s-tick { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.s-offline path, .s-offline circle { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.s-offline circle { fill: var(--muted); stroke: none; }
.s-offline path:last-of-type { stroke: var(--ember); }
.s-shirt { fill: var(--ember); }
.s-skin { fill: #c98b62; }
.s-hair { fill: #3a2a20; }
.s-hair-shine { fill: none; stroke: #6b5040; stroke-width: 4; stroke-linecap: round; }
.s-chair { fill: var(--deep); }
@media (max-width: 760px) {
  .send-flowchart { grid-template-columns: 1fr; }
  .send-arrow { padding: 4px 0; }
  .send-arrow svg { width: 72px; height: 20px; transform: rotate(90deg); margin: 22px 0; }
}
/* Home page story: six illustrated scenes joined by a glowing path. */
.story > h2 { margin-bottom: 28px !important; }
.scenes { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; counter-reset: scene; }
.scenes::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; border-radius: 4px;
  background: linear-gradient(var(--marigold), var(--accent) 60%, var(--marigold)); opacity: .55; }
.scene { counter-increment: scene; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.scene::before { content: counter(scene); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--marigold); color: #1b2a20;
  font-weight: 900; box-shadow: 0 0 0 6px var(--bg), 0 0 24px var(--marigold); }
.scene-text { text-align: right; min-width: 0; }
.scene-text h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem) !important; line-height: 1.2; text-wrap: balance; }
.scene-text p { margin: 0; color: var(--muted); }
.scene-art { min-width: 0; position: relative; display: grid; justify-items: start; }
.scene:nth-child(even) .scene-text { order: 2; text-align: left; }
.scene:nth-child(even) .scene-art { justify-items: end; }
.scene-wide { grid-template-columns: 1fr; gap: 16px; padding-top: 40px; }
.scene-wide::before { top: 0; transform: translate(-50%, 0); }
.scene-wide .scene-text { text-align: center; background: var(--bg); padding: 4px 0; }
.scene-wide .scene-art { justify-items: stretch; }
.paper { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 16px 18px; max-width: 330px;
  transform: rotate(-3deg); box-shadow: 0 12px 30px rgb(23 62 45 / .12);
  background-image: repeating-linear-gradient(transparent 0 27px, color-mix(in srgb, var(--accent) 12%, transparent) 27px 28px); }
.paper p { margin: 0; line-height: 28px; }
.paper-label { font-size: .75rem; font-weight: 700; color: var(--muted); }
.paper-q { font-weight: 700; margin: 8px 0 !important; line-height: 1.4; }
.paper-a { color: var(--danger); font-family: "Comic Sans MS", "Segoe Print", cursive; font-size: 1.15rem; transform: rotate(-2deg); }
.snap { position: absolute; right: 8%; bottom: -12px; background: var(--deep); color: var(--deep-text); border-radius: 999px;
  padding: 5px 12px; font-size: .8rem; font-weight: 700; }
.mock-win { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; width: min(100%, 340px);
  box-shadow: 0 14px 34px rgb(23 62 45 / .14); display: grid; gap: 8px; padding-bottom: 14px; }
.mock-win > p { margin: 0 14px; }
.mock-win > .mock-bar { margin: 0; }
.mock-bar { background: var(--deep); color: var(--deep-text); font-size: .8rem; font-weight: 700; padding: 9px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.offline { background: var(--marigold); color: #1b2a20; border-radius: 999px; padding: 0 8px; font-size: .72rem; }
.story .bubble { margin: 0 14px; padding: 8px 11px; border-radius: 12px; font-size: .88rem; max-width: 85%; line-height: 1.35; }
.story .bubble.you { justify-self: end; background: var(--tint); }
.story .bubble.ai { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.mock-phone { background: var(--surface); border: 8px solid #1e2522; border-radius: 26px; width: 190px; overflow: hidden;
  display: grid; gap: 8px; padding-bottom: 14px; box-shadow: 0 16px 36px rgb(23 62 45 / .2); }
.mock-phone-head { margin: 0; background: #4f46e5; color: #fff; font-weight: 800; padding: 12px 12px 8px; font-size: .95rem; }
.mock-phone-head small { font-weight: 400; opacity: .85; margin-left: 4px; }
.mock-phone .bubble { margin: 0 8px; font-size: .8rem; max-width: 92%; }
.two-devices { display: flex; align-items: flex-end; justify-content: flex-end; }
.two-devices .mock-win { width: min(100%, 290px); margin-bottom: 30px; }
.two-devices .mock-phone { flex: none; width: 160px; margin-left: -24px; position: relative; z-index: 1; }
.two-devices .mock-bar { padding-right: 34px; }
.hill { background: linear-gradient(color-mix(in srgb, var(--marigold) 22%, var(--bg)), var(--bg)); border-radius: 28px; padding: 80px 22px 22px; overflow: hidden; }
.hill::after { content: ""; position: absolute; right: 26px; top: 14px; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(var(--marigold) 55%, transparent 70%); box-shadow: 0 0 40px var(--marigold); }
.hill-curve { position: absolute; left: 6%; top: 82px; width: 88%; height: calc(100% - 150px); }
.hill-curve path { fill: none; stroke: var(--marigold); stroke-width: 6; stroke-dasharray: 2 14; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.stones { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.stones li { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; display: grid; gap: 6px;
  justify-items: start; box-shadow: 0 10px 24px rgb(23 62 45 / .12); min-width: 0; }
.stones li:nth-child(1) { margin-top: 120px; } .stones li:nth-child(2) { margin-top: 80px; }
.stones li:nth-child(3) { margin-top: 40px; }
.stones .summit { background: var(--deep); color: var(--deep-text); border-color: var(--deep); }
.stones .summit .pill { background: var(--marigold); color: #1b2a20; }
.stone-icon { font-size: 1.8rem; line-height: 1; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; max-width: 340px; }
.subject-chips span { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 700; }
.scene:nth-child(even) .subject-chips { justify-content: flex-end; }
.agent { display: flex; gap: 10px; align-items: center; }
.agent b { display: block; font-size: .92rem; }
.agent-note { display: block; font-size: .85rem; color: var(--muted); }
.agent-avatar { position: relative; flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--tint); }
.agent-avatar svg { width: 1.7rem; height: 1.7rem; }
.agent-avatar.maths { color: var(--accent); }
.agent-avatar.reading { color: var(--marigold); }
.agent-avatar.science { color: var(--ember); }
.agent-avatar i { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-size: .72rem; line-height: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; padding: 2px; }
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.two-cards { gap: 14px; }
.two-cards .mock-win { width: min(100%, 300px); }
.scene:nth-child(even) .two-cards .writing { margin-right: 44px; }
.book .mock-bar { background: #4f46e5; color: #fff; }
.book-title { font-weight: 800; }
.answer-line { border-bottom: 2px dashed var(--border); font-family: "Comic Sans MS", "Segoe Print", cursive; color: var(--muted); padding-bottom: 2px; }
.writing-text { font-family: "Comic Sans MS", "Segoe Print", cursive; line-height: 1.5; color: var(--text);
  background: repeating-linear-gradient(transparent 0 23px, var(--border) 23px 24px); }
.reading-row { color: var(--muted); }
.review { width: 200px; }
.review > p { margin: 0 12px; }
.review-title { font-weight: 800; font-size: 1.05rem; }
.review-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 18px !important; }
.child-q { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.child-choices { display: flex; gap: 8px; }
.child-choices span { flex: 1; text-align: center; border: 2px solid var(--border); border-radius: 10px; padding: 8px 0; font-weight: 800; }
.child-choices .picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.child-foot { display: flex; justify-content: space-between; align-items: center; }
.stars { color: var(--marigold); font-size: 1.2rem; letter-spacing: 2px; }
.steps-dots { display: inline-flex; gap: 5px; }
.steps-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .25); }
.steps-dots i.done { background: var(--marigold); }
.steps-dots i.now { background: var(--deep-text); box-shadow: 0 0 0 3px rgb(255 255 255 / .25); }
.bar-row { display: grid; gap: 2px; font-size: .85rem; }
.bar-row meter { width: 100%; height: 10px; }
.next { font-weight: 800; color: var(--accent); }
.story-note { text-align: center; margin: 24px 0 0; }
@media (max-width: 720px) {
  .scenes::before { left: 18px; }
  .scene, .scene-wide { grid-template-columns: 1fr; gap: 14px; padding: 0 0 0 52px; }
  .scene::before, .scene-wide::before { left: 18px; top: 0; transform: translate(-50%, 0); }
  .scene-text, .scene:nth-child(even) .scene-text, .scene-wide .scene-text { order: 0; text-align: left; background: none; }
  .scene-art, .scene:nth-child(even) .scene-art { justify-items: start; }
  .two-devices { justify-content: flex-start; }
  .two-devices .mock-win { width: auto; flex: 1; min-width: 0; }
  .two-devices .mock-phone { width: 124px; }
  .scene:nth-child(even) .subject-chips { justify-content: flex-start; }
  .scene:nth-child(even) .two-cards .writing { margin-right: 0; margin-left: 20px; width: calc(100% - 20px); }
  .stones { grid-template-columns: 1fr; }
  .stones li:nth-child(n) { margin-top: 0; }
  .stones li:nth-child(1) { margin-left: 0; } .stones li:nth-child(2) { margin-left: 8%; }
  .stones li:nth-child(3) { margin-left: 16%; } .stones li:nth-child(4) { margin-left: 24%; }
  .hill-curve { display: none; }
  .hill { padding-top: 70px; }
}
@media (prefers-reduced-motion: no-preference) {
  .scene::before { animation: glow 2.4s ease-in-out infinite alternate; }
  @keyframes glow { to { box-shadow: 0 0 0 6px var(--bg), 0 0 6px var(--marigold); } }
}
/* Download page: one clear download, then other computers as tiles. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.download-panel { padding: clamp(18px, 4vw, 30px); border-radius: 16px; }
.download-panel h2 { margin: 0 0 14px; font-size: clamp(1.4rem, 4vw, 1.8rem); }
.download-panel .eyebrow { margin-bottom: 6px; }
a.button.big { font-size: 1.1rem; padding: 14px 26px; border-radius: 999px; margin-bottom: 4px; }
.install-steps { counter-reset: install; list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 10px; }
.install-steps li { counter-increment: install; display: grid; grid-template-columns: 2rem 1fr; gap: 10px; align-items: start; }
.install-steps li::before { content: counter(install); display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--tint); color: var(--accent); font-weight: 800; }
.check-download { border-top: 1px solid var(--border); padding-top: 12px; }
.check-download summary, .mac-help summary { cursor: pointer; color: var(--accent); font-weight: 600; }
fieldset.platforms { border: 0; padding: 0; margin: 22px 0; min-width: 0; }
fieldset.platforms legend { font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 10px; }
.platform-options { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .platform-options { grid-template-columns: 1fr; } }
.platform-tile { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 16px; min-height: 44px;
  background: var(--surface); border: 2px solid var(--border); border-radius: 14px; cursor: pointer; font-weight: 400;
  transition: border-color .15s, background-color .15s; }
.platform-tile:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.platform-tile.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.platform-tile.selected::after { content: "✓"; position: absolute; top: 8px; right: 12px; color: var(--accent); font-weight: 800; }
.platform-tile:has(input:focus-visible) { outline: 3px solid var(--marigold); outline-offset: 2px; }
.platform-tile.unavailable .tile-icon, .platform-tile.unavailable strong { opacity: .6; }
.tile-icon { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--tint); }
.tile-icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.tile-text { display: grid; gap: 2px; min-width: 0; }
.tile-text strong { font-size: 1.05rem; }
.tile-hint { color: var(--muted); font-size: .9rem; }
.tile-text .pill { justify-self: start; margin-top: 4px; font-size: .78rem; }
.mac-help { margin-top: 12px; }
.mac-help p { margin: 8px 0 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }


/* Consent: short labels, optional explanations and a reviewable per-computer summary. */
body[data-page="consent"] fieldset { border: 0; padding: 0; margin: 22px 0; min-width: 0; }
body[data-page="consent"] legend { font-weight: 700; margin-bottom: 10px; }
body[data-page="consent"] .choice { padding-block: 7px; }
body[data-page="consent"] .choice input { flex: 0 0 auto; }
body[data-page="consent"] .consent-permission { margin-bottom: 12px; overflow-wrap: anywhere; }
body[data-page="consent"] .consent-permission details { margin-left: 24px; }
body[data-page="consent"] details p { margin: 8px 0 12px; }
body[data-page="consent"] summary { color: var(--accent); cursor: pointer; }
body[data-page="consent"] .consent-permission .muted { margin: 2px 0 0 24px; }
body[data-page="consent"] .consent-privacy { margin-top: 24px; }
body[data-page="consent"] .consent-summary-connection + .consent-summary-connection { border-top: 1px solid var(--border); padding-top: 12px; }
body[data-page="consent"] .consent-summary h3 { font-size: 1rem; margin-bottom: 0; }
body[data-page="consent"] .consent-summary li { margin-block: 6px; }
body[data-page="consent"] .consent-additional { margin-top: 14px; }
body[data-page="consent"] .consent-additional > summary { font-weight: 600; padding-block: 8px; }


.password-input {
  display: flex;
  align-items: stretch;
  gap: .35rem;
  width: 100%;
}
.password-input > input {
  flex: 1 1 auto;
  min-width: 0;
}
button.password-toggle {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border, #c9c9c9);
  border-radius: .45rem;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
}
button.password-toggle:hover,
button.password-toggle:focus-visible {
  background: var(--surface-soft, #f3f1eb);
}

/* Equal access options for independent assistant clients. */
.assistant-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:start; }
.assistant-options > .card { min-width:0; margin:0; overflow-wrap:anywhere; }
.assistant-options h3 { margin-top:0; }
.assistant-options input { max-width:100%; }
@media (max-width:760px) { .assistant-options { grid-template-columns:1fr; } }

/* Dashboard: each section shows whether it is in use. Unused sections are dashed and keep their setup open;
   configured ones show only what is in use and fold their setup steps away. */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.section-head h2, .section-head h3 { margin: 0; }
.pill.state-in-use { background: var(--accent); color: var(--accent-text); }
.pill.state-attention { background: var(--notice); color: var(--text); }
.pill.state-idle { background: var(--tint); color: var(--text); }
.pill.state-off { background: transparent; color: var(--muted); border: 1px dashed var(--border); }
.section-in-use { border-left: 4px solid var(--accent); }
.section-attention { border-left: 4px solid var(--marigold); }
.section-off { border-style: dashed; }
.overview { list-style: none; padding: 0; margin: 0; }
.overview li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0;
  border-top: 1px solid var(--border); min-height: 44px; }
.overview li:first-child { border-top: 0; }
.grant.in-use { border-left: 4px solid var(--accent); }
.grant.ended { background: transparent; color: var(--muted); }
.grant .actions { margin: 8px 0 0; }
details.setup { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 4px; }
.section-off details.setup { border-top: 0; }
details.setup > summary, details.past > summary, details.edit > summary, details.danger-zone > summary {
  cursor: pointer; color: var(--accent); font-weight: 600; padding-block: 10px; }
details.edit > summary { font-weight: 500; font-size: .92rem; padding-block: 6px; }
details.edit p { margin: 0 0 4px; }
details.past { margin-top: 10px; }
details.danger-zone { margin-top: 32px; }
details.danger-zone > summary { color: var(--danger); }

.ticket-group h3 { margin: 18px 0 2px; }
.ticket-group h3 .pill { margin-left: 4px; vertical-align: middle; }
.ticket-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .95rem; }
.ticket-table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.ticket-table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.ticket-table td[data-label="Ticket"], .ticket-table td[data-label="Submitted"], .ticket-table td[data-label="Last update"] { white-space: nowrap; }
.pill.ticket-status.attention { background: var(--marigold); color: #17231d; }
.pill.ticket-status.pending { background: var(--notice); color: var(--text); }
.pill.ticket-status.progress { background: var(--accent); color: var(--accent-text); }
.pill.ticket-status.done { background: var(--tint); color: var(--text); border: 1px solid var(--border); }
.pill.ticket-status.closed { background: transparent; color: var(--muted); border: 1px dashed var(--border); }
@media (max-width: 640px) {
  .ticket-table thead { display: none; }
  .ticket-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .ticket-table td { display: flex; gap: 12px; padding: 3px 0; border: 0; }
  .ticket-table td::before { content: attr(data-label); flex: 0 0 96px; color: var(--muted); font-size: .8rem; }
}

.account-identity { max-width: 100%; overflow-wrap: anywhere; }
