/* The Trolley: the boards' look, built on tokens.css. No colors here that are not tokens. */

@font-face{font-family:"Dela Gothic One";src:url("../fonts/dela-gothic-one-latin-400.571602cd8f70.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Epilogue";src:url("../fonts/epilogue-latin-wght.43d9a5b1cc3d.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--font-sans);font-size:16px;line-height:24px}
a{color:var(--brand-purple)}a:hover{color:var(--deep-purple)}
img,svg{vertical-align:middle}
h1,h2,h3{font-family:var(--font-display);font-weight:400;letter-spacing:-0.02em;margin:0}
h1{font-size:24px;line-height:28px}
h2{font-size:20px;line-height:24px}
h3{font-size:18px;line-height:24px}
p{margin:0}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:-999px;top:8px;background:var(--white);padding:8px 16px;border-radius:var(--radius-md);z-index:10}
.skip:focus{left:8px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Page frame: phone screens are 390 wide in the boards; flex 320 to 480, centred above that. */
.page{max-width:480px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.page.with-tabs{padding-bottom:calc(var(--tab-bar) + 16px)}
.wide .page{max-width:720px}
.stripe{position:sticky;top:0;z-index:5}
.banner-test{background:var(--info-tint);color:var(--info);font-size:14px;line-height:20px;text-align:center;padding:6px 16px}
main{flex:1;display:flex;flex-direction:column;gap:var(--space-4);padding:24px 24px 32px}
.stack{display:flex;flex-direction:column;gap:var(--space-3)}
.stack-lg{display:flex;flex-direction:column;gap:var(--space-4)}
.push{margin-top:auto}
.muted{color:var(--cocoa)}
.small{font-size:14px;line-height:22px}
.center{text-align:center}

/* Header: round back button and a title (boards 1, 2, 4, 6). */
.header{display:flex;align-items:center;gap:16px;min-height:44px}
.back{flex:none;width:44px;height:44px;border-radius:50%;background:var(--white);border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--ink);text-decoration:none}
.back:hover{color:var(--ink);border-color:var(--gray)}
.brand{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.brand .logo{display:block;height:40px;width:auto}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.topbar .account-link{font-size:14px;font-weight:600;text-decoration:none;min-height:44px;display:flex;align-items:center}

/* Cards */
.card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px 20px}
.card.tight{padding:16px 20px}
.card.lavender{background:var(--lavender);border-color:transparent}
.card.warning{background:var(--warning-tint);border-color:#f0e2a8}
.card.info{background:var(--info-tint);border-color:transparent}
.card h2{margin-bottom:12px}
.card > .hint{color:var(--cocoa);font-size:14px;line-height:22px;margin:-6px 0 12px}
.overline{font-size:11px;line-height:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--cocoa)}
.overline.purple{color:var(--brand-purple)}
.list{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}
.list > *{border-top:1px solid var(--border)}
.list > *:first-child{border-top:0}
.row{display:flex;align-items:center;gap:16px;padding:16px 20px;color:var(--ink);text-decoration:none}
a.row:hover{background:var(--mist);color:var(--ink)}
.row .grow{flex:1;min-width:0}
.row .name{font-weight:600}

/* Buttons: pills, 52 tall, label never wraps */
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--target-button);padding:0 24px;border-radius:var(--radius-pill);border:2px solid var(--brand-purple);background:var(--brand-purple);color:var(--on-brand);font:700 15px/22px var(--font-sans);text-decoration:none;cursor:pointer;white-space:nowrap;width:100%}
.button:hover{background:var(--deep-purple);border-color:var(--deep-purple);color:var(--on-brand)}
.button.secondary{background:var(--white);color:var(--brand-purple)}
.button.secondary:hover{background:var(--mist);color:var(--deep-purple)}
.button.quiet{background:transparent;border-color:transparent;color:var(--brand-purple)}
.button.quiet:hover{background:var(--mist)}
.button.danger{background:var(--white);border-color:var(--error);color:var(--error)}
.button.danger:hover{background:var(--error-tint)}
.button.small{min-height:44px;padding:0 16px;width:auto}
.button[disabled]{opacity:.55;cursor:not-allowed}
.buttons{display:flex;gap:12px}
.buttons > *{flex:1}
form.inline{display:contents}

/* Fields */
label.field-label,.field-label{display:block;font-weight:600;margin-bottom:8px}
.input,.textarea,.select{width:100%;min-height:var(--target-field);border:1.5px solid var(--gray);border-radius:var(--radius-md);background:var(--white);color:var(--ink);font:400 16px/24px var(--font-sans);padding:11px 16px}
.textarea{min-height:96px;resize:vertical}
/* Drop-downs look like the text fields in every browser (Safari draws its own otherwise), with a drawn chevron. */
.select{-webkit-appearance:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 22px) 50%,calc(100% - 16px) 50%;background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:44px;color:var(--ink);cursor:pointer}
.input:focus,.textarea:focus,.select:focus{outline:2px solid var(--brand-purple);outline-offset:0;box-shadow:var(--shadow-focus-halo);border-color:var(--brand-purple)}
.input::placeholder,.textarea::placeholder{color:var(--gray)}
.field + .field{margin-top:16px}
.help{font-size:14px;line-height:22px;color:var(--cocoa);margin-top:8px}
.error-text{color:var(--error);font-size:14px;line-height:22px;margin-top:8px;font-weight:600}
.alert{border-radius:var(--radius-md);padding:12px 16px;font-size:15px;line-height:22px}
.alert.error{background:var(--error-tint);color:var(--error);font-weight:600}
.alert.success{background:var(--success-tint);color:var(--success);font-weight:600}
.code-input{font-size:28px;line-height:36px;letter-spacing:8px;text-align:center;font-variant-numeric:tabular-nums}

/* Check boxes for consent (boards 11, 12) */
.agree{display:flex;gap:12px;align-items:flex-start;font-weight:600;cursor:pointer}
.agree input{width:24px;height:24px;margin:0;flex:none;accent-color:var(--brand-purple)}
.check-list{display:flex;flex-direction:column;gap:4px;margin-top:12px}
.check-list .agree{min-height:44px;align-items:center}

/* Choice chips: a check and a color when chosen, never the color alone (boards 4, 6) */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative;display:inline-flex}
.chip input{position:absolute;opacity:0;width:1px;height:1px}
.chip span{display:inline-flex;align-items:center;gap:6px;min-height:var(--target-chip);padding:0 16px;border-radius:var(--radius-pill);border:1.5px solid var(--gray);background:var(--white);font-weight:600;cursor:pointer}
.chip span .icon{display:none}
.chip input:checked + span{background:var(--brand-purple);border-color:var(--brand-purple);color:var(--on-brand)}
.chip input:checked + span .icon{display:inline-block}
.chip input:focus-visible + span{outline:2px solid var(--brand-purple);outline-offset:2px;box-shadow:var(--shadow-focus-halo)}
.other-text{margin-top:12px}
.question + .question{margin-top:20px}
.question > .q-label{display:block;font-weight:600;margin-bottom:10px}
fieldset{border:0;margin:0;padding:0;min-width:0}
legend{padding:0}

/* Role choices (board 4): big radio cards */
.choice{display:flex;gap:16px;align-items:flex-start;padding:16px;border-radius:var(--radius-lg);background:var(--white);border:2px solid var(--border);cursor:pointer}
.choice input{width:22px;height:22px;margin:2px 0 0;flex:none;accent-color:var(--brand-purple)}
.choice:has(input:checked){background:var(--mist);border-color:var(--brand-purple)}
.choice .title{font-weight:700}
.choice .desc{font-size:14px;line-height:22px;color:var(--cocoa)}

/* Faces 1 to 5: shape and word, the color only helps */
.faces{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.faces label{position:relative;display:flex}
.faces input{position:absolute;opacity:0;width:1px;height:1px}
.faces span{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px;min-height:var(--target-chip);border-radius:var(--radius-md);border:1.5px solid var(--border);background:var(--white);font-size:13px;line-height:16px;font-weight:600;text-align:center;cursor:pointer}
.faces input:checked + span{border-color:var(--brand-purple);background:var(--mist);box-shadow:inset 0 0 0 1px var(--brand-purple)}
.faces input:focus-visible + span{outline:2px solid var(--brand-purple);outline-offset:2px}
.face-1{color:var(--stripe-rose)}.face-2{color:#c96a10}.face-3{color:#8a6d00}.face-4{color:var(--success)}.face-5{color:var(--stripe-sky)}

/* Stepper (board 6 Restroom) */
.stepper-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.stepper{display:flex;align-items:center;gap:8px}
.stepper button{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--ink);background:var(--white);color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.stepper button.plus{background:var(--brand-purple);border-color:var(--brand-purple);color:var(--on-brand)}
.stepper input{width:56px;text-align:center;font-size:20px;font-weight:700;border:0;background:transparent;color:var(--ink);font-family:var(--font-sans);-moz-appearance:textfield}
.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Tags and status chips: always words */
.tag{display:inline-flex;align-items:center;min-height:24px;padding:2px 12px;border-radius:var(--radius-pill);background:var(--tag-tint);color:var(--brand-purple);font-size:13px;line-height:20px;font-weight:700;white-space:nowrap}
.tag.info{background:var(--info-tint);color:var(--info)}
.tag.warning{background:var(--warning-tint);color:#6b5200}
.tag.gray{background:var(--canvas);color:var(--cocoa)}

/* Icons in round discs */
.disc{flex:none;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.disc.white{background:var(--white)}.disc.lav{background:var(--lavender);color:var(--brand-purple)}
.disc.rose{background:var(--stripe-rose)}.disc.orange{background:var(--stripe-orange)}.disc.sun{background:var(--stripe-sunshine)}
.disc.green{background:var(--stripe-green)}.disc.sky{background:var(--stripe-sky)}.disc.brand{background:var(--brand-purple);color:var(--on-brand)}
.disc.big{width:72px;height:72px}
.disc.ok{background:var(--success-tint);color:var(--success)}
.disc.wait{background:var(--warning-tint);color:#6b5200}

/* QR (board 2) */
.qr-card{display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}
.qr-card .who{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;font-weight:700}
.qr{width:240px;height:240px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--white)}
.steps .row{align-items:flex-start}
.steps .now{background:var(--mist)}
.steps .state{font-size:14px;font-weight:700;color:var(--gray)}
.steps .state.done{color:var(--success)}
.steps .state.now{color:var(--brand-purple);background:none}

/* Timeline cards (board 7) */
.entry h2{margin-bottom:4px}
.entry .from{color:var(--cocoa);font-size:14px;margin-bottom:12px}
.entry .tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.entry dl{margin:0}
.entry dt{font-size:11px;line-height:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--cocoa);margin-top:12px}
.entry dd{margin:4px 0 0}
.talk{background:var(--lavender);border-radius:var(--radius-md);padding:16px;margin-top:16px}
.talk p + p{margin-top:8px}
.morning{background:var(--lavender);border-radius:var(--radius-lg);padding:20px}
.morning dl{display:grid;grid-template-columns:100px 1fr;gap:8px 12px;margin:12px 0 0}
.morning dt{color:var(--cocoa);font-size:14px}
.morning dd{margin:0;font-weight:600}

/* Week strip (board 8) */
.week{display:flex;justify-content:space-between;gap:4px;margin-top:12px}
.week .day{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--cocoa)}
.week .dot{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--gray);display:flex;align-items:center;justify-content:center;background:var(--white)}
.week .done .dot{border-color:transparent;color:var(--ink)}
.week .done:nth-child(1) .dot{background:var(--stripe-rose)}.week .done:nth-child(2) .dot{background:var(--stripe-orange)}
.week .done:nth-child(3) .dot{background:var(--stripe-sunshine)}.week .done:nth-child(4) .dot{background:var(--stripe-green)}
.week .done:nth-child(5) .dot{background:var(--stripe-sky)}
.week .today{color:var(--ink);font-weight:800}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tile{display:block;color:var(--ink);text-decoration:none}
.tile:hover{color:var(--ink);border-color:var(--gray)}
.tile .big{font-family:var(--font-display);font-size:20px;line-height:28px;margin:6px 0}

/* Bottom tab bar (parent): Home, Timeline, People, Questions */
.tabbar{position:fixed;left:0;right:0;bottom:0;background:var(--white);border-top:1px solid var(--border);z-index:5;padding-bottom:env(safe-area-inset-bottom)}
.tabbar nav{max-width:480px;margin:0 auto;height:var(--tab-bar);display:grid;grid-template-columns:repeat(4,1fr)}
.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--cocoa);text-decoration:none;font-size:13px;line-height:16px;font-weight:600}
.tabbar a .pill{display:flex;align-items:center;justify-content:center;width:56px;height:32px;border-radius:var(--radius-pill)}
.tabbar a[aria-current="page"]{color:var(--brand-purple)}
.tabbar a[aria-current="page"] .pill{background:var(--lavender)}

/* Notices list (board 12) */
.ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.ticks li{display:flex;gap:12px;align-items:flex-start}
.ticks li .icon{flex:none;color:var(--success);margin-top:2px}
.ticks.purple li .icon{color:var(--brand-purple)}

/* Public page */
.hero{background:var(--white);border-radius:var(--radius-lg);padding:32px 24px;border:1px solid var(--border)}
.hero h1{font-size:32px;line-height:36px}
.steps-public{counter-reset:s;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px}
.steps-public li{display:flex;gap:16px;align-items:flex-start}
.steps-public li::before{counter-increment:s;content:counter(s);flex:none;width:36px;height:36px;border-radius:50%;background:var(--brand-purple);color:var(--on-brand);display:flex;align-items:center;justify-content:center;font-weight:700}
footer.site{padding:24px;text-align:center;font-size:14px;color:var(--cocoa)}
footer.site a{margin:0 8px}
.row.flush{padding:0}
.card.row{padding:16px 20px}
.icon{flex:none}
.ticks.danger li .icon{color:var(--error)}
.morning-box{margin:12px 0}
.card > legend{float:left;width:100%;margin-bottom:12px}
.card > legend + *{clear:both}
.card > legend h2{margin:0}

/* Desktop portals (boards 15 to 19): sidebar and content. Designed at 1440, usable from 1024; below that
   the sidebar becomes a top bar. */
.portal-body{background:var(--canvas)}
.portal{display:grid;grid-template-columns:240px 1fr;min-height:calc(100vh - 8px)}
.sidebar{background:var(--white);border-right:1px solid var(--border);padding:24px 16px;display:flex;flex-direction:column;gap:12px}
.sidebar .overline{padding:0 8px;margin-bottom:12px}
.side-nav{display:flex;flex-direction:column;gap:4px}
.side-nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 16px;border-radius:var(--radius-md);color:var(--ink);text-decoration:none;font-weight:600;border-left:4px solid transparent}
.side-nav a:hover{background:var(--mist);color:var(--ink)}
.side-nav a[aria-current="page"]{background:var(--lavender);color:var(--brand-purple);border-left-color:var(--brand-purple)}
.side-nav .count{margin-left:auto;min-width:24px;height:24px;border-radius:12px;background:var(--brand-purple);color:var(--on-brand);font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 6px}
.sidebar-foot{margin-top:auto;border-top:1px solid var(--border);padding-top:16px;display:flex;gap:12px;align-items:center}
.portal-main{padding:40px;display:flex;flex-direction:column;gap:24px;min-width:0}
.portal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}
.portal-head h1{font-size:32px;line-height:40px}
.portal-head .buttons{flex:none}
.portal-head .button{width:auto}
.split{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:24px;align-items:start}
.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.filters .input,.filters .select{width:auto;min-width:200px}
.filters .push-right{margin-left:auto;color:var(--cocoa)}
.table-wrap{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:auto}
table.table{width:100%;border-collapse:collapse}
.table th{position:sticky;top:0;background:var(--mist);text-align:left;font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:var(--cocoa);padding:14px 16px;white-space:nowrap}
.table td{padding:14px 16px;border-top:1px solid var(--border);vertical-align:middle}
.table tr:hover td{background:var(--mist)}
.table td.nowrap,.table .nowrap{white-space:nowrap}
.table a{color:var(--ink);text-decoration:none;font-weight:600}
.table tr.current td{background:var(--lavender)}
.panel{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;display:flex;flex-direction:column;gap:20px;position:sticky;top:24px}
.format-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.format-grid label{position:relative;display:flex}
.format-grid input{position:absolute;opacity:0;width:1px;height:1px}
.format-grid label > span{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;border-radius:var(--radius-md);border:1.5px solid var(--border);background:var(--white);font-weight:600;font-size:14px;text-align:center;padding:6px;cursor:pointer}
.format-grid input:checked + span{border-color:var(--brand-purple);box-shadow:inset 0 0 0 1px var(--brand-purple);background:var(--mist)}
.format-grid input:focus-visible + span{outline:2px solid var(--brand-purple);outline-offset:2px}
.format-grid input:disabled + span{opacity:.5;cursor:not-allowed}
.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:16px}
.toggle-row input{width:24px;height:24px;accent-color:var(--brand-purple);flex:none}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.stat{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px 24px;display:flex;gap:16px}
.stat::before{content:"";width:4px;border-radius:2px;background:var(--brand-purple)}
.stat.green::before{background:var(--stripe-green)}.stat.orange::before{background:var(--stripe-orange)}
.stat.rose::before{background:var(--stripe-rose)}.stat.sky::before{background:var(--stripe-sky)}
.stat .big{font-family:var(--font-display);font-size:28px;line-height:36px}
.chip-links{display:flex;gap:8px;flex-wrap:wrap}
.chip-links a{min-height:40px;display:inline-flex;align-items:center;padding:0 16px;border-radius:var(--radius-pill);border:1.5px solid var(--brand-purple);color:var(--brand-purple);font-weight:700;text-decoration:none}
.chip-links a[aria-current="true"]{background:var(--brand-purple);color:var(--on-brand)}
.status{display:inline-flex;align-items:center;min-height:24px;padding:2px 10px;border-radius:var(--radius-pill);font-size:13px;font-weight:700;white-space:nowrap}
.status.active{background:var(--success-tint);color:var(--success)}
.status.waiting_person,.status.waiting_parent{background:var(--warning-tint);color:#6b5200}
.status.declined{background:var(--error-tint);color:var(--error)}
.status.removed{background:var(--canvas);color:var(--cocoa)}
.status.required{background:var(--brand-purple);color:var(--on-brand)}
.status.pick{background:var(--tag-tint);color:var(--brand-purple)}
.status.retired,.status.hidden{background:var(--canvas);color:var(--cocoa)}
.preview-box{background:var(--mist);border-radius:var(--radius-md);padding:16px}
/* On a desktop the window itself never scrolls: the sidebar (logo, every menu item, the person and the
   Account link) stays put, and only the content scrolls. A very short window scrolls the sidebar too. */
@media (min-width:1024px){
  /* Long tables (question bank, consent log): the table scrolls with the content, so its header row
     stays at the top of the screen. Too wide a table scrolls the content sideways, never cut off. */
  .table-wrap.sticky-head{overflow:visible}
  .sticky-head .table th{z-index:1;box-shadow:inset 0 -1px 0 var(--border);top:-40px}  /* flush with the top: the content area has 40px padding */
  .sticky-head .table thead th:first-child{border-top-left-radius:calc(var(--radius-lg) - 1px)}
  .sticky-head .table thead th:last-child{border-top-right-radius:calc(var(--radius-lg) - 1px)}
  .sticky-head .table tbody tr:last-child td:first-child{border-bottom-left-radius:calc(var(--radius-lg) - 1px)}
  .sticky-head .table tbody tr:last-child td:last-child{border-bottom-right-radius:calc(var(--radius-lg) - 1px)}
  /* A side panel (the question editor, notes, the inbox) scrolls on its own and stays in view. */
  .portal-body{--chrome:8px}
  .portal-body:has(> .banner-test){--chrome:40px}
  .panel{max-height:calc(100vh - var(--chrome) - 48px);max-height:calc(100dvh - var(--chrome) - 48px);overflow-y:auto;overscroll-behavior:contain}
  .portal-body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  .portal-body > .stripe,.portal-body > .banner-test{flex:none}
  .portal{flex:1;min-height:0;grid-template-rows:minmax(0,1fr)}
  .sidebar{min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .portal-main{min-height:0;overflow-y:auto;outline:none}
}
@media (max-width:1023px){
  .portal{grid-template-columns:1fr}
  .sidebar{border-right:0;border-bottom:1px solid var(--border);flex-direction:row;flex-wrap:wrap;align-items:center}
  .sidebar .overline,.sidebar-foot{display:none}
  .side-nav{flex-direction:row;flex-wrap:wrap}
  .split{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .portal-main{padding:24px 16px}
  .panel{position:static}
}
.big-number{font-family:var(--font-display);font-size:32px;line-height:40px}
.purple-text{color:var(--brand-purple);font-weight:700}
legend.full{width:100%;margin-bottom:8px}
.pick{cursor:pointer}
.pick input{width:24px;height:24px;accent-color:var(--brand-purple);flex:none}
.pick.blocked{color:var(--gray);cursor:not-allowed}
.pick.blocked .name{color:var(--gray)}
progress{width:100%;height:10px;border:0;border-radius:var(--radius-pill);background:var(--sand);overflow:hidden;appearance:none;-webkit-appearance:none}
progress::-webkit-progress-bar{background:var(--sand);border-radius:var(--radius-pill)}
progress::-webkit-progress-value{background:var(--brand-purple);border-radius:var(--radius-pill)}
progress::-moz-progress-bar{background:var(--brand-purple);border-radius:var(--radius-pill)}
.chart{width:100%;height:auto;display:block}
.chart .grid{stroke:var(--border);stroke-width:1}
.chart .axis{fill:var(--cocoa);font-size:13px;font-family:var(--font-sans)}
.chart .line{fill:none;stroke:var(--brand-purple);stroke-width:2.5}
.chart .dot{fill:var(--white);stroke:var(--brand-purple);stroke-width:2.5}
.chart .range{stroke:var(--brand-purple);stroke-width:3;stroke-dasharray:4 3}
.chart .dot.flagged{fill:var(--error);stroke:var(--error)}
.chart .bar{fill:var(--stripe-green)}
.chart .zero{stroke:var(--gray);stroke-width:2}
.tag.flag{background:var(--error-tint);color:var(--error);gap:4px}
.note-box{border-top:1px solid var(--border);margin-top:16px;padding-top:12px}
.note-box .tags{margin-bottom:6px}
.tabs{display:flex;gap:8px;border-bottom:1px solid var(--border)}
.tabs a{min-height:44px;display:inline-flex;align-items:center;padding:0 12px;color:var(--cocoa);text-decoration:none;font-weight:600;border-bottom:3px solid transparent;margin-bottom:-1px}
.tabs a[aria-current="page"]{color:var(--brand-purple);border-bottom-color:var(--brand-purple)}
.inbox-row{align-items:flex-start}
.unread-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--brand-purple);margin-top:8px}
.unread-dot.read{background:transparent}
.count-pill{display:inline-flex;min-width:24px;height:24px;border-radius:12px;background:var(--brand-purple);color:var(--on-brand);font-size:13px;font-weight:700;align-items:center;justify-content:center;padding:0 6px}
details summary{cursor:pointer;color:var(--brand-purple);font-weight:600;min-height:44px;display:flex;align-items:center}
.format-grid small{font-size:13px;font-weight:400;line-height:18px}
/* The summary to print (journal/summary.html) */
.print-head{display:flex;flex-direction:column;gap:4px}
.print-title{font-size:28px;line-height:34px}
@media print{
  @page{margin:16mm}
  body{background:#fff}
  .stripe,.banner-test,.tabbar,.skip,.no-print,.alert,.sidebar{display:none!important}
  .portal-body{height:auto!important;overflow:visible!important;display:block!important}
  .portal{display:block!important}
  .portal-main{overflow:visible!important}
  .page,.page.with-tabs{padding:0!important;max-width:none}
  .card{box-shadow:none!important;border:1px solid #ccc}
  .avoid-break,.card.entry{break-inside:avoid;page-break-inside:avoid}
  a{color:inherit;text-decoration:none}
}
/* A select and its Save button on one table row (admin People) */
.inline-form{display:flex;gap:8px;align-items:center}
.inline-form .select{width:auto;min-width:190px}
.tag.done{background:var(--success-tint);color:var(--success)}
.changes{border-top:1px solid var(--border);margin-top:12px;padding-top:12px;display:flex;flex-direction:column;gap:6px}
.entry-split{border-top:2px solid var(--border);margin:16px 0 4px}
