/* Mesial draft styles. No external fonts or scripts. */
/* Mesial's typeface (decision 144): Manrope, SIL Open Font License (static/fonts/OFL-Manrope.txt), served from here */
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/manrope-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/manrope-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/manrope-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/manrope-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ink: #10302e;       /* Mesial's dark green ink (decision 144) */
  --coral: #e2704f;     /* the dot in the mark */
  --muted: #5d6b75;
  --line: #dfe5e8;
  --bg: #f6f8f7;
  --card: #ffffff;
  --brand: #0e7c74;
  --brand-ink: #ffffff;
  --brand-soft: #e3f3f1;
  --accent: #e8a33d;
  --danger: #b4372f;
  --ok: #1f7a4a;
  --warm: #f4a582;       /* coral, the welcoming accent */
  --warm-soft: #fde9df;
  --sand: #fbf6ef;
  --mint: #cfeee8;
  --sky: #dbe9fb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 43, .06), 0 2px 8px rgba(20, 33, 43, .04);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 .4rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
h3 { font-size: 1.05rem; margin: .2rem 0 .4rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 650; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.neg { color: var(--danger); }
.pos { color: var(--ok); }
.pad { padding: 1rem 1.25rem; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 1.5rem; padding: .75rem 1.5rem; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
/* the mark and word mark (decision 144) */
.logo { width: 30px; height: 22px; color: var(--brand); flex: none; }
.wordmark { font-family: Manrope, system-ui, sans-serif; font-weight: 700; letter-spacing: -.035em; font-size: 1.25rem; color: #10302E; }
h1, h2, h3, .ht-title, .org-button strong, .org-kind strong { font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.footer-brand { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.footer-brand .logo { width: 24px; height: 18px; }
.topnav, .appnav { display: flex; gap: 1.1rem; align-items: center; }
.topnav { margin-left: auto; }
.topnav a, .appnav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.appnav a { padding: .3rem 0; border-bottom: 2px solid transparent; }
.appnav a.active { border-color: var(--brand); color: var(--brand); }
.who { margin-left: auto; display: flex; gap: .75rem; align-items: center; font-size: .9rem; flex-wrap: wrap; }
.who form { margin: 0; }
.tenant { font-weight: 600; }
.switcher { display: flex; gap: .4rem; }
.switcher select { width: auto; padding: .25rem .4rem; }

.page { max-width: 1180px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }
.footer { max-width: 1180px; margin: 0 auto; padding: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }

/* cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow-x: auto; }
.narrow { max-width: 560px; margin: 2rem auto; }
.narrow-left { max-width: 560px; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack > * { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
@media (max-width: 860px) { .grid2, .grid-main { grid-template-columns: minmax(0, 1fr); } }

/* forms */
label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 550; }
input, select, textarea { font: inherit; font-weight: 400; padding: .5rem .6rem; border: 1px solid #c9d2d7; border-radius: 7px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
input:disabled, select:disabled, textarea:disabled { background: #f1f4f5; color: var(--muted); }
textarea { resize: vertical; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.check { flex-direction: row; align-items: flex-start; gap: .5rem; font-weight: 400; }
.check input { width: auto; margin-top: .25rem; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .6rem 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem 1rem; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: .8rem; }
legend { font-weight: 650; padding: 0 .3rem; }
fieldset.optional { background: #fafbfb; }
details summary { cursor: pointer; font-size: .9rem; color: var(--brand); }
.consent { font-size: .85rem; margin-top: .6rem; }

button, .button { display: inline-block; font: inherit; font-weight: 600; font-size: .92rem; padding: .55rem 1rem; border-radius: 7px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; text-align: center; }
button:hover, .button:hover { filter: brightness(1.07); }
button:disabled { opacity: .45; cursor: not-allowed; }
.ghost { background: transparent; color: var(--brand); }
.danger.ghost { color: var(--danger); border-color: var(--danger); }
button.small, .button.small { padding: .3rem .65rem; font-size: .83rem; }
.block { display: block; width: 100%; }
.actions { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.actions form, .actions button { width: 100%; margin: 0; }

/* messages */
.alert { background: #fbeceb; border: 1px solid #efc4c0; color: var(--danger); padding: .6rem .8rem; border-radius: 7px; }
.notice { background: var(--brand-soft); border: 1px solid #bfe2dd; padding: .6rem .8rem; border-radius: 7px; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.blockers { background: #fdf5e7; border: 1px solid #f1d9ad; border-radius: 7px; padding: .6rem .8rem; font-size: .88rem; }
.blockers ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* tables and lists */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .55rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.current td { background: var(--brand-soft); }
.table tr.dim td { opacity: .55; }
.card .table th:first-child, .card .table td:first-child { padding-left: 0; }
.card.flush .table th:first-child, .card.flush .table td:first-child { padding-left: 1.25rem; }
.list { list-style: none; margin: 0 0 1rem; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list.compact li { padding: .3rem 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 .75rem; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.facts.inline dd { text-align: left; }
.facts.price dd { font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: .3rem; margin-bottom: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: .5rem .8rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .92rem; }
.tabs a.active { color: var(--brand); border-color: var(--brand); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tile-label { font-size: .82rem; color: var(--muted); }
.tile-value { font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-note { font-size: .78rem; color: var(--muted); }

/* badges */
.badge { display: inline-block; font-size: .75rem; font-weight: 650; padding: .12rem .5rem; border-radius: 999px; background: #eef1f3; color: var(--muted); white-space: nowrap; }
.status-planned { background: #e8eefb; color: #2f4f9e; }
.status-decided { background: #fdf0d9; color: #8a5a0b; }
.status-published { background: #ddf3e6; color: var(--ok); }
.status-completed { background: #eef1f3; color: #44525c; }
.status-cancelled { background: #fbeceb; color: var(--danger); }
.booking-paid { background: #ddf3e6; color: var(--ok); }
.booking-invoice { background: #e8eefb; color: #2f4f9e; }
.booking-waitlist { background: #fdf0d9; color: #8a5a0b; }
.chip { display: inline-block; font-size: .75rem; background: var(--brand-soft); color: var(--brand); border-radius: 5px; padding: .05rem .4rem; margin: 0 .25rem .2rem 0; }

/* course list on narrow screens: secondary columns move under the title */
.narrow-only { display: none; }
@media (max-width: 860px) {
  .table .wide { display: none; }
  .narrow-only { display: block; }
  .title-cell { min-width: 11rem; }
}

.total-line { font-weight: 650; font-size: 1.05rem; margin: 0; }
.total-line:empty { display: none; }
.outbox { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.outbox summary { color: var(--ink); }
.outbox .badge { background: #fff; margin-right: .3rem; }
pre.mail { white-space: pre-wrap; font-family: inherit; font-size: .85rem; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: .7rem .8rem; margin: .4rem 0 0; }

/* ---------- organic, welcoming public pages ---------- */
body.public { background: var(--sand); }
.hero.organic, .org-head.organic { position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, #e6f5f2 0%, #f9efe6 60%, #fde9df 100%);
  border-radius: 40px 120px 40px 90px; padding: 3rem 2.5rem 2.6rem; margin-top: .5rem; }
.org-head.organic { padding: 2.2rem 2.5rem; margin-bottom: 1.5rem; border-radius: 32px 90px 32px 70px; }
.hero.organic h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 760px; letter-spacing: -.02em; }
.blob { position: absolute; z-index: -1; pointer-events: none; }
.blob path { fill: currentColor; }
.blob-1 { width: 340px; right: -70px; top: -90px; color: var(--mint); opacity: .9; }
.blob-2 { width: 220px; right: 140px; bottom: -110px; color: var(--warm); opacity: .35; }
.blob-3 { width: 120px; left: 46%; top: 18px; color: var(--sky); opacity: .9; }
.blob-4 { width: 420px; left: -160px; top: -120px; color: var(--warm-soft); }
.blob-org { width: 260px; right: -50px; top: -80px; color: var(--mint); }
.wave { display: block; width: 100%; height: 34px; margin: -6px 0 0; }
.wave path { fill: var(--mint); opacity: .55; }
.hero .search input, .hero .search select { border-radius: 999px; padding-left: 1rem; background: #fffdfb; }
.hero .search button { border-radius: 999px; padding-inline: 1.4rem; }
.hero .eyebrow { color: #b0603b; }
@media (max-width: 700px) {
  .hero.organic { padding: 2rem 1.3rem; border-radius: 28px 60px 28px 48px; }
  .blob-1 { width: 220px; right: -90px; }
  .blob-3 { display: none; }
}

body.public .course-card { border-radius: 22px 22px 22px 6px; border-color: #eadfd3;
  background: radial-gradient(circle at 105% -5%, var(--warm-soft) 0 70px, transparent 71px), #fff; }
body.public .course-card:nth-child(3n+2) { background: radial-gradient(circle at 105% -5%, var(--mint) 0 70px, transparent 71px), #fff; }
body.public .course-card:nth-child(3n) { background: radial-gradient(circle at 105% -5%, var(--sky) 0 70px, transparent 71px), #fff; }
body.public .card { border-radius: 20px; border-color: #eadfd3; }
body.public .buy { border-top: 0; background: linear-gradient(160deg, #fff 60%, var(--mint)); }
body.public .button, body.public button { border-radius: 999px; }

.members { position: relative; isolation: isolate; overflow: hidden; margin: 3rem 0 1rem; padding: 2.5rem 2rem;
  background: #fff; border-radius: 120px 36px 120px 36px; border: 1px solid #eadfd3; }
.members-head { max-width: 640px; }
.members h2 { font-size: 1.7rem; letter-spacing: -.01em; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.perk { padding: 1.2rem; border-radius: 24px; background: var(--sand); }
.perk h3 { margin-top: .6rem; }
.perk p { font-size: .92rem; }
.perk-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 46% 54% 58% 42% / 52% 40% 60% 48%; }
.perk-passport { background: var(--mint); color: var(--brand); }
.perk-bell { background: var(--sky); color: #2f4f9e; }
.perk-percent { background: var(--warm-soft); color: #b0603b; }
.perk-globe { background: #efe6fb; color: #6a46a8; }
.icon { width: 26px; height: 26px; }
.badge.soon { background: #fff; border: 1px solid #eadfd3; }
.members-cta { margin-top: 1.5rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.button.disabled { opacity: .55; cursor: default; }
@media (max-width: 700px) { .members { border-radius: 60px 24px 60px 24px; padding: 2rem 1.2rem; } }

/* ---------- participant account ---------- */
.auth.organic-card { position: relative; isolation: isolate; overflow: hidden; max-width: 520px; margin: 2rem auto;
  background: #fff; border: 1px solid #eadfd3; border-radius: 36px 90px 36px 70px; padding: 2.2rem 2rem; }
.blob-auth { width: 260px; right: -110px; top: -110px; color: var(--mint); }
.account-hero { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.account-hero.organic { position: relative; isolation: isolate; overflow: hidden; padding: 2.2rem 2.4rem;
  background: linear-gradient(135deg, #e6f5f2 0%, #f9efe6 65%, #fde9df 100%); border-radius: 40px 110px 40px 80px; }
.ring-box { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.ring { width: 132px; height: 132px; }
.ring-track { fill: none; stroke: #fff; stroke-width: 12; }
.ring-value { fill: none; stroke: var(--brand); stroke-width: 12; stroke-linecap: round; }
.ring-num { font-size: 26px; font-weight: 700; fill: var(--ink); }
.ring-unit { font-size: 11px; fill: var(--muted); }
.card h2 .icon, .members h2 .icon { width: 22px; height: 22px; vertical-align: -4px; color: var(--brand); margin-right: .2rem; }
.verify { border-left: 6px solid var(--warm); margin-bottom: 1.25rem; }
.perk.link { text-decoration: none; color: var(--ink); transition: transform .15s; }
.perk.link:hover { transform: translateY(-2px); }
.account-links { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
form.inline { display: inline; margin: 0; }
.passport { list-style: none; margin: 0; padding: 0; }
.passport li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.passport li:last-child { border-bottom: 0; }
.passport li.dim { opacity: .5; }
.pp-main { display: flex; flex-direction: column; gap: .15rem; min-width: 14rem; flex: 1; }
.pp-side { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.pp-side form { margin: 0; }
.pp-hours { font-variant-numeric: tabular-nums; font-weight: 600; }
.proof-verified { background: #ddf3e6; color: var(--ok); }
.proof-document { background: var(--sky); color: #2f4f9e; }
.proof-booked { background: var(--warm-soft); color: #9b4f2d; }
.proof-attended_partly { background: #fdf0d9; color: #8a5a0b; }
button.danger { color: var(--danger); border-color: var(--danger); }
.print-page main { max-width: 820px; margin: 2rem auto; padding: 0 1.5rem; }
.print-page tfoot th { border-top: 2px solid var(--ink); text-align: left; }
@media print {
  .no-print { display: none; }
  .print-page main { margin: 0; }
  body { background: #fff; }
}

/* evaluation */
.result { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.result:last-child { border-bottom: 0; }
.result h3 { font-size: .98rem; }
.avg { font-size: 1.4rem; font-weight: 700; margin: 0 0 .3rem; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.bars li { display: grid; grid-template-columns: 7rem 1fr 2rem; align-items: center; gap: .6rem; font-size: .88rem; }
progress { width: 100%; height: .7rem; appearance: none; border: 0; border-radius: 99px; background: #edf1f2; overflow: hidden; }
progress::-webkit-progress-bar { background: #edf1f2; border-radius: 99px; }
progress::-webkit-progress-value { background: var(--brand); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--brand); border-radius: 99px; }
.comments { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.comments li { margin-bottom: .3rem; }
.qr { display: flex; justify-content: center; }
.qr svg { max-width: 100%; height: auto; }
.qr-screen { display: grid; place-items: center; min-height: 100vh; text-align: center; background: #fff; }
.qr-screen h1 { font-size: 2.4rem; }
.qr.big svg { width: min(70vh, 90vw); height: auto; }
.eval-page { max-width: 560px; margin: 0 auto; }
.eval-form .question { gap: .6rem; }
.eval-form legend { font-weight: 600; }
.scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.pill { position: relative; flex-direction: row; font-weight: 500; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: block; width: 100%; text-align: center; padding: .7rem .5rem; border: 1px solid #c9d2d7; border-radius: 9px; background: #fff; cursor: pointer; }
.pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.booking-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.attendance input[type=checkbox] { width: 18px; height: 18px; }

/* public */
.hero { padding: 2.2rem 0 1.5rem; }
.hero h1 { font-size: 2.1rem; max-width: 720px; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.search { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .6rem; margin-top: 1.25rem; max-width: 900px; }
@media (max-width: 700px) { .search { grid-template-columns: 1fr; } }
.section-title { font-size: 1.1rem; margin: 1.25rem 0 .8rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.course-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .3rem; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.course-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.course-card p { font-size: .92rem; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 650; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .2rem 0 .6rem; font-size: .85rem; }
.meta dt { color: var(--muted); font-size: .75rem; }
.meta dd { margin: 0; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; border-top: 1px solid var(--line); padding-top: .7rem; flex-wrap: wrap; }
.seats { font-size: .82rem; color: var(--ok); }
.seats.full { color: #8a5a0b; }
.organizer { font-size: .8rem; color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); }
.prose p { max-width: 70ch; }
.price-big { font-size: 1.8rem; font-weight: 750; margin: 0; }
.buy { border-top: 4px solid var(--brand); }
.seller { background: #fafbfb; }
.org-head { padding: 1.5rem 0 1rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; }

/* ---------- Mesial Plus ---------- */
.plus-hero .price-tag { display: flex; flex-direction: column; align-items: flex-end; background: #fff; padding: 1rem 1.4rem; border-radius: 24px 24px 24px 6px; }
.plus-banner { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0 0; padding: 1rem 1.3rem; text-decoration: none; color: var(--ink);
  background: linear-gradient(110deg, var(--warm-soft), #fff 70%); border: 1px solid #f1cdb8; border-radius: 22px 60px 22px 60px; }
.plus-banner.is-member { background: linear-gradient(110deg, var(--mint), #fff 70%); border-color: #bfe2dd; }
.plus-banner > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.plus-arrow { font-size: 1.4rem; color: var(--brand); }
.plus-badge { background: var(--warm-soft); color: #9b4f2d; align-self: flex-start; }
.plus-note { background: var(--warm-soft); border-radius: 12px; padding: .5rem .7rem; font-size: .88rem; }
.plus-price { margin: .6rem 0 0; }
.plus-chip { background: var(--warm-soft); color: #9b4f2d; }
a.badge { text-decoration: none; }

/* ---------- lecturers ---------- */
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; font-weight: 700; font-size: .95rem; color: var(--brand);
  background: var(--mint); border-radius: 46% 54% 58% 42% / 52% 40% 60% 48%; }
.avatar.big { width: 76px; height: 76px; font-size: 1.5rem; }
.avatar.small { width: 28px; height: 28px; font-size: .72rem; vertical-align: middle; margin-right: .3rem; }
.lect-head { display: flex; gap: 1rem; align-items: center; }
.lect-head h1, .lect-head h3 { margin: 0; }
.lect-card:nth-child(3n+2) .avatar { background: var(--warm-soft); color: #9b4f2d; }
.lect-card:nth-child(3n) .avatar { background: var(--sky); color: #2f4f9e; }
.rating strong { font-size: 1.05rem; }
.refs { list-style: none; margin: 0; padding: 0; }
.refs li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.refs li:last-child { border-bottom: 0; }
.refs p { margin: .3rem 0 0; }
.ref-actions { display: flex; gap: .8rem; align-items: center; margin-top: .3rem; }
.ref-actions form { margin: 0; }
.ref-actions .icon { width: 16px; height: 16px; vertical-align: -3px; }
.ref-course { background: var(--mint); color: var(--brand); }
.ref-testimonial { background: var(--warm-soft); color: #9b4f2d; }
.dir-search { grid-template-columns: 2fr 1fr 1fr auto; margin: 0 0 1.25rem; }
.lect-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.compact-form { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); gap: .6rem; }

/* ---------- tasks ---------- */
.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .8rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--line); }
.tasks.compact .task { padding: .55rem 0; }
.task:last-child { border-bottom: 0; }
.task form { margin: 0; }
.task-main { display: flex; flex-direction: column; }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-due { font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick { width: 26px; height: 26px; padding: 0; border-radius: 50% 46% 52% 48%; border: 2px solid var(--brand); background: #fff; color: #fff;
  font-size: .9rem; line-height: 1; display: grid; place-items: center; }
.task.done .tick { background: var(--brand); }
.task.overdue .tick { border-color: var(--danger); }
.tick:disabled { opacity: .7; cursor: default; }
.questions { margin: 0; padding-left: 1.3rem; }
.questions li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.questions li > * { vertical-align: middle; }
.questions li form { display: inline; margin-left: .5rem; }

/* ---------- meetings ---------- */
.actions-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.agenda-item h2 { margin: 0; }
.agenda-item header { margin-bottom: .6rem; }
.pre { white-space: pre-wrap; }
.decision { background: var(--brand-soft); padding: .5rem .7rem; border-radius: 10px; }
.meet-actions { margin-top: .8rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.meet-actions form { margin: 0; }
.response { display: flex; gap: .4rem; }
.response form { margin: 0; }
.minutes li { margin-bottom: 1rem; }

/* ---------- documents ---------- */
.docs, .folders { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.docs li:last-child { border-bottom: 0; }
.docs form { margin: 0; }
.doc-main { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-icon { color: var(--brand); }
.doc-icon .icon { width: 22px; height: 22px; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.folders li { display: flex; justify-content: space-between; align-items: center; padding: .7rem .8rem; background: var(--sand); border-radius: 14px 14px 14px 4px; }
.folders a { text-decoration: none; color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.folder { width: 18px; height: 14px; background: var(--warm); border-radius: 3px 6px 3px 3px; display: inline-block; }
.upload { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; padding-top: .6rem; border-top: 1px dashed var(--line); }
.upload label { flex: 1; min-width: 220px; }
.doc-search { grid-template-columns: 1fr auto; margin: 0; min-width: 260px; }
.invitation { border-left: 6px solid var(--brand); margin-bottom: 1rem; }
.team-book { margin-bottom: .5rem; }

/* ---------- CV ---------- */
.vis { padding: .5rem 0; }
.talent-filter { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto auto; gap: .6rem; align-items: end; margin-bottom: 1.25rem; }
@media (max-width: 860px) { .talent-filter { grid-template-columns: 1fr 1fr; } }
.request p { margin: .3rem 0; }
.recovery { columns: 2; list-style: none; padding: 0; font-size: 1.05rem; }
.recovery li { padding: .2rem 0; }
.certs { margin-top: 1rem; }
a.badge.status-published { text-decoration: none; }

/* course search: profession, discipline, level, type, near me */
.search-wide { display: flex; flex-direction: column; gap: .5rem; max-width: 980px; }
.search-wide .search-row { display: flex; gap: .5rem; }
.search-wide .search-row input { flex: 1; }
.search-wide .search-filters, .search-wide .search-near { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.search-wide select { flex: 1 1 160px; min-width: 0; }
.search-wide .search-near a { white-space: nowrap; }
.chips { display: block; margin: .15rem 0 .35rem; }
.chip.kind { background: var(--warm-soft); color: #9a4a26; }
.chip.level { background: #e8eefc; color: #2f4f9c; }
.distance { color: var(--muted); font-size: .85em; white-space: nowrap; }
.badge.sponsored-badge { background: #fff3d6; color: #8a5a00; }
.course-card.is-sponsored { border-color: #f1d48c; }
fieldset.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
fieldset.checks legend { font-size: .85rem; font-weight: 600; margin-bottom: .25rem; }
fieldset.checks .hint { flex-basis: 100%; }
.narrow { max-width: 760px; }
@media (max-width: 640px) { .search-wide select { flex-basis: 100%; } }

/* congress and fair listings: review status, calendar, statistics */
.badge.review-pending { background: #fff3d6; color: #8a5a00; }
.badge.review-approved { background: var(--brand-soft); color: var(--brand); }
.badge.review-rejected { background: #fde2e2; color: #9b1c1c; }
.event-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.event-list li { background: #fff; border: 1px solid var(--line, #e3e7ea); border-radius: 10px; padding: .7rem .9rem; }
.event-list .chip { margin-left: .4rem; }
.checklist { margin: 0; padding-left: 1.2rem; font-size: .9rem; }
.inline-filter { display: flex; gap: .5rem; align-items: center; margin-top: .75rem; }
.alert-text { color: #9b1c1c; }
.review-item .row { align-items: end; }
.grow { flex: 1; }

.report-link { text-align: right; }
fieldset.checklist { border: 0; padding: 0; margin: 0; display: grid; gap: .35rem; }
fieldset.checklist legend { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }

.link-cloud { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .75rem; font-size: .85rem; }

.chip.last-minute { background: #fde2e2; color: #9b1c1c; }
.chip.student { background: #e8eefc; color: #2f4f9c; }
fieldset.sub { border: 1px solid var(--line, #e3e7ea); border-radius: 8px; padding: .6rem .8rem; }
fieldset.sub legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }

.exam-q { margin-bottom: .75rem; }
.exam-options { list-style: none; padding-left: 1rem; margin: .25rem 0; }
.exam-options li.right { color: var(--brand); font-weight: 600; }
.exam-take { max-width: 760px; margin: 0 auto; }
.exam-take fieldset { border: 1px solid var(--line, #e3e7ea); }
.option-row { align-items: end; }

/* clinic account */
.share-levels { border: 0; padding: 0; margin: 0; display: grid; gap: .4rem; }
.share-levels legend { font-weight: 600; margin-bottom: .3rem; }
.coverage { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.cov { font-size: .8rem; padding: .15rem .5rem; border-radius: 999px; background: #fde2e2; color: #9b1c1c; }
.cov.has { background: var(--brand-soft); color: var(--brand); }
.my-clinics .badge { margin-right: .4rem; }
.appraisal { max-width: 900px; }
.appraisal .write-lines { height: 9rem; border-bottom: 1px solid #ccd; background: repeating-linear-gradient(transparent, transparent 1.7rem, #dde 1.7rem, #dde calc(1.7rem + 1px)); }
@media print { .topbar, .footer, .no-print { display: none !important; } body { background: #fff; } }
/* clinic plans */
.prewrap { white-space: pre-wrap; }
.tabs-inline { display: flex; gap: 1rem; margin: .25rem 0 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.two-col h3 { font-size: .95rem; margin: .8rem 0 .2rem; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
@media print { .two-col { grid-template-columns: 1fr 1fr; } }
.inline-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.inline-form select { width: auto; min-width: 9rem; margin: 0; }
.inline-form button { margin: 0; }
/* course programme (schedule.ts) */
.programme-day h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.programme { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--brand-soft); }
.programme .session { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding: .45rem .75rem; }
.programme .session + .session { border-top: 1px solid #eef1f2; }
.programme .session-main { display: grid; gap: .1rem; }
.programme .kind-break, .programme .kind-meal { color: var(--muted); background: #f7f8f8; }
.programme .session.mine { background: var(--brand-soft); }
.session-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.schedule-day .table tr.kind-break td, .schedule-day .table tr.kind-meal td { color: var(--muted); }
.share-form { margin-top: .3rem; }
.share-form input[type=date] { width: auto; }
.mail-preview { white-space: pre-wrap; font-family: inherit; font-size: .88rem; background: #f7f8f8; padding: .8rem; border-radius: 8px; }
@media (max-width: 600px) { .programme .session { grid-template-columns: 1fr; gap: .1rem; } }
/* check-in on site (checkin.ts) */
.check-in-result { max-width: 520px; margin: 1rem auto; text-align: center; }
.check-in-result h1 { font-size: 2rem; margin: .2rem 0; }
.check-in-result.ok { border: 3px solid var(--brand); }
.check-in-result.fail { border: 3px solid #d97706; }
.check-in-big { font-size: 1.4rem; font-weight: 700; color: var(--brand); }
.check-in-button { font-size: 1.3rem; padding: 1rem 2.5rem; width: 100%; }
.check-in-card .qr svg { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto; }
.check-in-cta { align-items: center; gap: 1rem; }
.check-in-top { max-width: 380px; margin: 0 auto 1rem; text-align: center; }
/* course dinner (dinner.ts) */
.dinner-box { margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 12px; background: var(--brand-soft); }
.dinner-box h2 { margin-top: 0; }
.dinner-check { margin-top: .3rem; }

/* ==========================================================================
   Organic theme, everywhere (2026-10-25): soft shapes, enamel and gum colours,
   a sparse pattern of tooth outlines, and a scalloped "gum line" under the bar.
   Applies to the marketplace, the participant and lecturer pages, examination,
   the member account and the organizer app alike.
   ========================================================================== */
:root {
  --enamel: #fffdf8;
  --gum: #f7d9cf;
  --radius-org: 22px 22px 22px 8px;
}
body.public, body.app {
  background:
    radial-gradient(520px 420px at 105% -6%, rgba(207, 238, 232, .85), transparent 70%),
    radial-gradient(460px 380px at -8% 105%, rgba(253, 233, 223, .9), transparent 70%),
    radial-gradient(300px 260px at 92% 78%, rgba(219, 233, 251, .55), transparent 70%),
    url("/static/enamel.svg"),
    var(--sand);
  background-attachment: fixed, fixed, fixed, scroll, scroll;
}
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 248, .92); backdrop-filter: blur(6px); border-bottom: 0; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; pointer-events: none;
  background: url("/static/gumline.svg") center / 100% 100% no-repeat; filter: drop-shadow(0 2px 1px rgba(20, 33, 43, .05)); }
.page { padding-top: 2.4rem; }

/* cards, tiles and tables: organic corners, enamel surfaces */
.card { border-radius: var(--radius-org); border-color: #eadfd3; background: var(--enamel); box-shadow: 0 1px 2px rgba(20, 33, 43, .04), 0 10px 26px -18px rgba(14, 124, 116, .35); }
.card:nth-of-type(3n+2) { border-radius: 8px 22px 22px 22px; }
.card:nth-of-type(3n) { border-radius: 22px 8px 22px 22px; }
.card.flush { overflow: hidden; }
.tile { border-radius: 26px 26px 26px 10px; border-color: #eadfd3;
  background: radial-gradient(circle at 110% -10%, var(--mint) 0 54px, transparent 55px), var(--enamel); }
.tile:nth-child(2) { background: radial-gradient(circle at 110% -10%, var(--warm-soft) 0 54px, transparent 55px), var(--enamel); }
.tile:nth-child(3) { background: radial-gradient(circle at 110% -10%, var(--sky) 0 54px, transparent 55px), var(--enamel); }
.tile:nth-child(4) { background: radial-gradient(circle at 110% -10%, #efe6fb 0 54px, transparent 55px), var(--enamel); }
.tile-value { letter-spacing: -.02em; }
.table thead th { background: linear-gradient(180deg, #f3faf8, transparent); }
.table tbody tr:hover td { background: rgba(207, 238, 232, .25); }

/* buttons and inputs: soft pills */
button, .button { border-radius: 999px; padding-inline: 1.15rem; box-shadow: 0 6px 14px -10px rgba(14, 124, 116, .9); transition: transform .12s, box-shadow .12s; }
button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 10px 18px -12px rgba(14, 124, 116, .9); }
.ghost, button.ghost, .button.ghost { box-shadow: none; background: rgba(255, 255, 255, .6); }
input, select, textarea { border-radius: 12px; background: #fff; }
.badge { border-radius: 999px; }
.chip { border-radius: 999px; padding: .05rem .55rem; }

/* tabs and navigation: rounded chips with the active one in brand */
.tabs { gap: .35rem; border-bottom: 0; flex-wrap: wrap; }
.tabs a { border: 1px solid #eadfd3; border-radius: 999px; padding: .35rem .9rem; background: rgba(255, 255, 255, .65); }
.tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.appnav a { border-bottom: 0; padding: .3rem .7rem; border-radius: 999px; }
.appnav a.active { background: var(--brand-soft); color: var(--brand); }

/* headings: a small tooth before the eyebrow, organic page heads in the app */
.eyebrow::before { content: ""; display: inline-block; width: .95em; height: .95em; margin-right: .35em; vertical-align: -.12em;
  background: url("/static/tooth.svg") center / contain no-repeat; }
body.app .page > .pagehead { position: relative; isolation: isolate; padding: 1rem 1.4rem; margin: 0 0 1.2rem; border-radius: 30px 80px 30px 60px;
  background: linear-gradient(120deg, rgba(230, 245, 242, .95), rgba(249, 239, 230, .9) 70%, rgba(253, 233, 223, .9)); }
body.app .page > .pagehead::after { content: ""; position: absolute; z-index: -1; right: 18px; top: -26px; width: 120px; height: 120px; opacity: .55;
  background: var(--mint); border-radius: 46% 54% 58% 42% / 52% 40% 60% 48%; }
body.app h1 { letter-spacing: -.02em; }

/* the course page: an organic head like the start page */
.course-hero.organic { position: relative; isolation: isolate; overflow: hidden; padding: 2rem 2rem 1.6rem; margin-bottom: 1.2rem;
  border-radius: 36px 110px 36px 80px; background: linear-gradient(135deg, #e6f5f2 0%, #f9efe6 62%, #fde9df 100%); }
.course-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 720px; }
.course-hero .lead { max-width: 720px; }

/* tooth-shaped avatars, step numbers and ticks */
.avatar, .step-n { border-radius: 42% 42% 48% 48% / 38% 38% 62% 62%; }
.programme { border-left: 0; position: relative; }
.programme::before { content: ""; position: absolute; left: 0; top: .3rem; bottom: .3rem; width: 4px; border-radius: 4px;
  background: linear-gradient(var(--mint), var(--gum)); }
.programme .session { padding-left: 1rem; }
.programme .session.mine { background: linear-gradient(90deg, var(--brand-soft), transparent); border-radius: 0 14px 14px 0; }

/* the sign-in and code pages, the examination and the check-in result keep the soft card */
.check-in-result { border-radius: 40px 90px 40px 70px; }
.notice { border-radius: 14px 14px 14px 4px; }
.alert { border-radius: 14px 14px 14px 4px; }
@media (max-width: 700px) {
  body.app .page > .pagehead { border-radius: 24px 50px 24px 40px; }
  .course-hero.organic { padding: 1.5rem 1.2rem; border-radius: 26px 60px 26px 44px; }
}
@media print {
  body.public, body.app { background: #fff; }
  .topbar::after { display: none; }
  .card { box-shadow: none; }
}
/* examination, evaluation: the same soft card as the sign-in pages */
.exam-take, .eval-page { background: var(--enamel); border: 1px solid #eadfd3; border-radius: 36px 90px 36px 70px; padding: 2rem 2rem 1.6rem;
  margin: 1rem auto; box-shadow: 0 10px 26px -18px rgba(14, 124, 116, .35); }
@media (max-width: 700px) { .exam-take, .eval-page { border-radius: 24px 50px 24px 40px; padding: 1.4rem 1.1rem; } }
/* demo mode (demo.ts) */
.demo-bar { text-align: center; font-size: .85rem; padding: .45rem 1rem; margin-top: 14px; background: #fff4d6; border-bottom: 1px solid #f1dfa8; }
.demo-steps { padding-left: 1.2rem; display: grid; gap: .4rem; }
/* cards placed straight on the page (not in a grid or stack) get room between them */
.page > .card, .page > form.card { margin-bottom: 1.25rem; }
/* one account (decision 43): the places menu, the start page and the roles in the settings */
/* the language menu (decision 98) */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; white-space: nowrap; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: " ▾"; font-size: .8em; }
.lang-list { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 31; min-width: 10rem; display: flex; flex-direction: column; gap: .1rem;
  padding: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(20, 33, 43, .14); }
.lang-list a { display: block; padding: .4rem .7rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.lang-list a:hover { background: var(--brand-soft); }
.lang-list a[aria-current] { font-weight: 600; background: var(--brand-soft); }
.places-menu { position: relative; }
.places-menu > summary { list-style: none; cursor: pointer; white-space: nowrap; }
.places-menu > summary::-webkit-details-marker { display: none; }
.places-menu > summary::after { content: " ▾"; font-size: .8em; }
.places-list { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 30; min-width: 15rem; display: flex; flex-direction: column; gap: .1rem;
  padding: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(20, 33, 43, .14); }
.places-list a, .places-list button.link { display: block; padding: .45rem .7rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .95rem; text-align: left; }
.places-list a:hover, .places-list button.link:hover { background: var(--brand-soft); }
.places-list hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; width: 100%; }
.places-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .5rem .7rem .1rem; }
.places-list a .muted { display: block; font-size: .78rem; }
.places-list a.here { background: var(--brand-soft); font-weight: 650; }
.places-list a.places-add { color: var(--brand); font-weight: 600; }
.places-list form { margin: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; width: 100%; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; }
.hero-chips .chip { font-size: .85rem; padding: .2rem .65rem; border-radius: 999px; text-decoration: none; margin: 0; }
.hero-chips .chip.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.chip-plus { background: #fff3d6 !important; color: #8a5a00 !important; }
.home-section { margin: 1.75rem 0; }
.home-section .pagehead { margin-bottom: .6rem; }
.home-section h2 { margin: 0; }
.my-courses { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.my-course { display: grid; grid-template-columns: 11rem 1fr; column-gap: 1rem; row-gap: .15rem; padding: .85rem 1.1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.my-course:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.my-course > :not(.my-date) { grid-column: 2; }
.my-date { grid-row: 1 / span 3; color: var(--brand); font-weight: 650; font-size: .9rem; }
.my-courses li.done .my-course { background: var(--sand); }
.notes { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.note { font-size: .8rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; background: var(--warm-soft); color: #9a4a26; }
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.place-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.05rem 1.15rem; border-radius: 20px 20px 20px 6px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.place-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.place-organizer { background: linear-gradient(160deg, var(--mint), var(--card) 60%); }
.place-events { background: linear-gradient(160deg, #fff3d6, var(--card) 60%); }
.place-clinic { background: linear-gradient(160deg, var(--sky), var(--card) 60%); }
.place-lecturer { background: linear-gradient(160deg, var(--warm-soft), var(--card) 60%); }
.place-platform { background: linear-gradient(160deg, #ece8f6, var(--card) 60%); }
.place-empty { border-style: dashed; background: transparent; }
.place-title { font-size: 1.1rem; }
.place-facts { list-style: none; padding: 0; margin: .1rem 0 .3rem; font-size: .9rem; color: var(--muted); display: grid; gap: .15rem; }
.place-facts strong { color: var(--ink); }
.place-action { margin-top: auto; color: var(--brand); font-weight: 650; font-size: .9rem; }
.home-hero.organic { padding: 1.6rem 2rem; }
/* the start page as big tiles that each person chooses (decision 134) */
.home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .9rem; }
.home-tile { display: flex; flex-direction: column; gap: .25rem; min-height: 9.5rem; padding: 1rem 1.1rem; border-radius: 20px 20px 20px 6px;
  text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.home-tile:hover, .home-tile:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }
.ht-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .35rem; }
.ht-icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--brand-soft); color: var(--brand); flex: none; }
.ht-icon .icon { width: 1.45rem; height: 1.45rem; }
.ht-count { min-width: 1.7rem; height: 1.7rem; padding: 0 .45rem; border-radius: 999px; background: var(--warm); color: #4a1d08; font-weight: 700;
  font-size: .9rem; display: inline-grid; place-items: center; }
.home-tile .eyebrow { margin: 0; font-size: .72rem; }
.ht-title { font-size: 1.08rem; line-height: 1.25; }
.ht-sub { font-size: .87rem; color: var(--muted); }
.ht-sub strong { color: var(--ink); }
.home-tile.place-organizer { background: linear-gradient(160deg, var(--mint), var(--card) 60%); }
.home-tile.place-events { background: linear-gradient(160deg, #fff3d6, var(--card) 60%); }
.home-tile.place-clinic { background: linear-gradient(160deg, var(--sky), var(--card) 60%); }
.home-tile.place-lecturer { background: linear-gradient(160deg, var(--warm-soft), var(--card) 60%); }
.home-tile.place-platform { background: linear-gradient(160deg, #ece8f6, var(--card) 60%); }
.home-tile[class*="place-"] .ht-icon { background: rgba(255, 255, 255, .75); }
.ht-add { border-style: dashed; background: transparent; }
.ht-add .ht-icon { background: transparent; border: 1.5px dashed var(--brand); }
.home-todo { margin: 1.25rem 0 0; border-color: var(--warm); }
.home-todo h2 { display: flex; align-items: center; gap: .5rem; }
.todo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.todo-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.todo-list li:first-child { border-top: 0; padding-top: .2rem; }
.todo-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.todo-list .button { flex: none; min-width: 6.5rem; text-align: center; }
.home-more { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.home-more > h2 { color: var(--muted); font-size: .95rem; font-weight: 600; }
.ht-list { list-style: none; padding: 0; margin: 0; display: grid; }
.ht-list li { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.ht-list li:first-child { border-top: 0; }
.ht-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ht-buttons { display: flex; gap: .3rem; flex: none; }
.ht-buttons form { margin: 0; }
.tiles-settings { align-items: start; margin-bottom: 1rem; }
@media (max-width: 640px) {
  .home-hero.organic { padding: 1.3rem 1.2rem; }
  .home-tiles { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .home-tile { min-height: 8.5rem; padding: .85rem .8rem; }
  .ht-title { font-size: 1rem; }
  .todo-list li { flex-wrap: wrap; }
  .todo-list .button { width: 100%; }
  .ht-list li { flex-wrap: wrap; }
  .ht-buttons { width: 100%; justify-content: flex-end; }
}
.meter { display: block; width: 100%; height: 6px; margin-top: .25rem; border-radius: 999px; overflow: hidden; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.bars li { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr 3.5rem; gap: .6rem; align-items: center; font-size: .9rem; }
.bar { display: block; width: 100%; height: 10px; border-radius: 999px; overflow: hidden; }
svg.bar .bar-track, svg.meter .bar-track { fill: var(--brand-soft); }
svg.bar .bar-fill, svg.meter .bar-fill { fill: var(--brand); }
.bar-value { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.role-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0; }
.role-card.active { border-color: #b9e0da; }
.role-card > summary { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; cursor: pointer; list-style: none; }
.role-card > summary::-webkit-details-marker { display: none; }
.role-card > summary { min-height: 4.4rem; transition: background .15s; }
.role-card > summary:hover { background: #f6faf9; }
.role-card > summary strong { font-size: 1.05rem; }
.role-card > summary::after { content: '›'; color: var(--muted); font-size: 1.5rem; line-height: 1; transition: transform .15s; }
.role-card[open] > summary::after { transform: rotate(90deg); }
.role-card > summary > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.role-card[open] > summary { border-bottom: 1px solid var(--line); }
.role-body { padding: .9rem 1.1rem 1.1rem; }
.role-icon { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 45% 55% 50% 50%; background: var(--brand-soft); }
.role-clinic, .role-lab, .role-employee { background: var(--sky); }
.role-organizer { background: var(--mint); }
.role-advertiser { background: #fff3d6; }
.role-lecturer { background: var(--warm-soft); }
.role-student { background: #ece8f6; }
.badge.ok { background: #dff3e7; color: var(--ok); }
.badge.warn { background: #fff3d6; color: #8a5a00; }
fieldset.want { border: 1px dashed var(--line); border-radius: 12px; }
@media (max-width: 640px) {
  .my-course { grid-template-columns: 1fr; }
  .my-course > :not(.my-date), .my-course > .my-date { grid-column: 1; grid-row: auto; }
  .bars li { grid-template-columns: 1fr 3rem; }
  .bars .bar { grid-column: 1 / -1; grid-row: 2; }
  .places-list { right: -1rem; }
}
.list li > .chip { white-space: nowrap; align-self: flex-start; }
/* room between the Plus banner and the card after it (start page) */
.plus-banner + .card { margin-top: 1.25rem; }
/* back to the page above, instead of a breadcrumb trail */
.crumbs a.back { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem .3rem .65rem; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; transition: background .15s; }
.crumbs a.back::before { content: "←"; color: var(--brand); }
.crumbs a.back:hover { background: var(--brand-soft); }
.crumbs:has(a.back) { margin-bottom: .8rem; }
/* the organizer app (decision 44): the menu down the side, the course's parts under Courses */
.home-back { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem .3rem .65rem; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.home-back::before { content: "←"; color: var(--brand); }
.app-shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem; max-width: 1320px; margin: 0 auto; padding: 0 1.25rem; align-items: start; }
.app-shell > .page { padding-left: 0; padding-right: 0; max-width: none; margin: 0; }
.sidenav { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: .1rem; margin-top: 1.5rem; padding: .8rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px 22px 22px 8px; }
.sidenav a { display: block; padding: .45rem .75rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.sidenav a:hover { background: var(--sand); }
.sidenav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.sidenav-org { display: flex; flex-direction: column; padding: .3rem .75rem .7rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
/* at most seven in the menu, the rest under More (decision 135) */
.sidenav-more { margin-top: .2rem; padding-top: .2rem; border-top: 1px solid var(--line); }
.sidenav-more > summary { list-style: none; cursor: pointer; padding: .45rem .75rem; border-radius: 10px; color: var(--muted); font-size: .95rem; }
.sidenav-more > summary::-webkit-details-marker { display: none; }
.sidenav-more > summary::after { content: " ▾"; font-size: .8em; }
.sidenav-more[open] > summary::after { content: " ▴"; }
.sidenav-more > summary:hover { background: var(--sand); color: var(--ink); }
.sidenav-more-list { display: flex; flex-direction: column; gap: .1rem; }
.sidenav-more-list a { font-size: .92rem; }
/* the course page: the one next step first, the form in folded groups (decision 136) */
.course-now { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 1rem; padding: 1rem 1.3rem;
  border-color: var(--brand); background: linear-gradient(150deg, var(--mint), var(--card) 70%); }
.course-now > span { display: flex; flex-direction: column; gap: .15rem; }
.course-now .eyebrow { margin: 0; }
.course-now .button { font-size: 1.05rem; padding: .7rem 1.4rem; }
.course-form .set-list { margin: 0; }
.course-form .set-body { padding-top: .8rem; }
#status { scroll-margin-top: 5rem; }
@media (max-width: 640px) { .course-now .button { width: 100%; text-align: center; } }
/* organisation accounts (decision 138): the kind as big buttons, the base as big buttons, modules as a list */
.org-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; margin: 0 0 1.2rem; }
.org-kind { display: flex; flex-direction: column; gap: .3rem; padding: 1.15rem 1.25rem; min-height: 6.5rem; border-radius: 20px 20px 20px 6px; text-decoration: none;
  color: var(--ink); background: linear-gradient(160deg, var(--mint), var(--card) 60%); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.org-kind:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.org-kind strong { font-size: 1.1rem; }
.org-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 0 0 1.25rem; }
.org-button { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem; min-height: 8.5rem; border-radius: 20px 20px 20px 6px; text-decoration: none;
  color: var(--ink); background: var(--card); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.org-button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.org-button strong { font-size: 1.1rem; margin-top: .3rem; }
.org-modules-card { text-decoration: none; color: var(--ink); border-style: dashed; }
.module-list { list-style: none; padding: 0; margin: 0; }
.module-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.module-row:first-child { border-top: 0; }
.module-row.on { background: #f6faf9; }
.module-main { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.module-main .badge { align-self: flex-start; }
.module-action { flex: none; max-width: 22rem; }
.module-terms > summary { list-style: none; }
.module-terms > summary::-webkit-details-marker { display: none; }
.module-terms[open] form { margin-top: .6rem; }
.union-check { grid-column: 1 / -1; padding: .6rem .8rem; border-radius: 10px; background: var(--sand); }
.price-use-ask { margin: .4rem 0; padding: .8rem 1rem; border-radius: 14px; background: var(--warm-soft); scroll-margin-top: 5rem; }
.price-use-ask .row-gap { flex-wrap: wrap; }
.price-use-form select { width: auto; }
.warn-text { color: #b0571d; }
@media (max-width: 640px) {
  .org-buttons { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .org-button { min-height: 7.5rem; padding: .85rem; }
  .module-row { flex-direction: column; align-items: stretch; }
}
/* the board handover in four numbered steps (decision 139) */
.handover-step { margin: 0 0 1rem; max-width: 46rem; scroll-margin-top: 5rem; }
.handover-head { display: flex; align-items: center; gap: .7rem; }
.handover-head h2 { margin: 0; flex: 1; font-size: 1.2rem; }
.handover-head .wiz-num { width: 2rem; height: 2rem; background: var(--brand); color: var(--brand-ink); font-size: 1rem; }
.handover-check { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.handover-check li:first-child { list-style: none; margin-left: -1.2rem; }
.inline-date { display: inline-block; width: auto; margin-left: .4rem; }
/* putting up a course: one way in, a guide in five steps (decision 137) */
.create-one { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.25rem; padding: 1.1rem 1.35rem; border-radius: 24px 24px 24px 8px; text-decoration: none;
  color: var(--ink); border: 1px solid var(--line); background: linear-gradient(150deg, var(--mint), var(--card) 70%); transition: transform .15s, box-shadow .15s; }
.create-one:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.create-one > span:last-child { display: flex; flex-direction: column; gap: .1rem; }
.create-one strong { font-size: 1.2rem; }
.create-plus { display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; flex: none; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 1.6rem; line-height: 1; }
.wiz-steps { display: none; }
.wiz-steps.js { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; max-width: 46rem; }
.wiz-steps li { flex: 1; display: flex; align-items: center; gap: .45rem; padding: .45rem .6rem; border-radius: 12px; color: var(--muted); font-size: .88rem; background: var(--card); border: 1px solid var(--line); }
.wiz-num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%; background: #eef1f3; font-weight: 700; font-size: .85rem; }
.wiz-steps li.on { color: var(--brand); font-weight: 650; border-color: var(--brand); }
.wiz-steps li.on .wiz-num { background: var(--brand); color: var(--brand-ink); }
.wiz-steps li.done .wiz-num { background: var(--brand-soft); color: var(--brand); }
.wiz-step { display: flex; flex-direction: column; gap: 1rem; }
.wiz-step > .eyebrow { margin: 0; }
.wiz-step h2 { font-size: 1.35rem; margin: 0; }
.wizard:not(.js) .wiz-step + .wiz-step { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.wizard:not(.js) [data-next], .wizard:not(.js) [data-back] { display: none; }
.wiz-nav { display: flex; gap: .6rem; margin-top: .4rem; }
.wiz-nav button { font-size: 1.05rem; padding: .7rem 1.4rem; }
.wiz-nav button:not(.ghost) { margin-left: auto; min-width: 9rem; }
.wiz-more > summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .95rem; }
.wiz-more[open] > summary { margin-bottom: .6rem; }
.wiz-plan { border: 0; padding: 0; margin: .3rem 0 0; display: grid; gap: .6rem; }
.wiz-plan legend { font-weight: 650; margin-bottom: .5rem; padding: 0; }
.wiz-choice { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.wiz-choice > span { display: flex; flex-direction: column; gap: .1rem; }
.wiz-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.wiz-choice { flex-direction: row; font-weight: 400; }
.wiz-choice input[type=radio] { width: auto; flex: none; margin: .3rem 0 0; accent-color: var(--brand); }
.wiz-repeat { margin-top: 1rem; }
.wiz-repeat > summary { cursor: pointer; font-weight: 600; }
.wiz-repeat[open] > summary { margin-bottom: .8rem; }
@media (max-width: 640px) {
  .wiz-steps li { justify-content: center; padding: .4rem; }
  .wiz-steps li:not(.on) .wiz-name { display: none; }
  .wiz-steps li.on { flex: 3; }
  .wiz-nav button { flex: 1; min-width: 0; }
}
/* the course's parts on the course page, by phase */
.course-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin: 0 0 1.1rem; padding: .55rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.course-phase { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .15rem; }
.course-phase-name { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: .25rem; }
.course-nav a { padding: .25rem .55rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.course-nav a:hover { background: var(--sand); }
.course-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.create-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.create-choice { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.35rem; border-radius: 24px 24px 24px 8px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.create-choice:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.create-choice strong { font-size: 1.2rem; }
.create-simple { background: linear-gradient(150deg, var(--mint), var(--card) 70%); }
.create-full { background: linear-gradient(150deg, var(--sky), var(--card) 70%); }
a.tile.link { text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.tile.link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
a.tile.link .tile-note { color: var(--brand); }
.home-section h2 .count { font-size: .8rem; font-weight: 650; color: var(--muted); background: #eef1f3; border-radius: 999px; padding: .05rem .5rem; vertical-align: middle; }
.plan-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.plan-card { display: flex; gap: 1rem; align-items: center; padding: .8rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.plan-card-main { flex: 1; display: flex; flex-direction: column; gap: .1rem; text-decoration: none; color: var(--ink); min-width: 0; }
.plan-card-date { color: var(--brand); font-weight: 650; font-size: .85rem; }
.plan-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; min-width: 9rem; text-align: right; }
.plan-card-side .seats-meter { width: 7rem; }
.next-step { font-size: .85rem; font-weight: 650; color: var(--brand); text-decoration: none; }
.choice-card { border-style: dashed; }
.new-course:has([data-online]:checked) .on-site { display: none; }
.badge.status-draft { background: #eef1f3; color: var(--muted); }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 1rem; }
  .sidenav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; margin-top: 1rem; padding: .4rem; border-radius: 14px; }
  .sidenav a { white-space: nowrap; }
  .sidenav-org { display: none; }
  .sidenav-more { display: flex; align-items: center; margin: 0; padding: 0 0 0 .2rem; border-top: 0; border-left: 1px solid var(--line); }
  .sidenav-more > summary { white-space: nowrap; }
  .sidenav-more-list { flex-direction: row; }
  .course-nav { flex-wrap: nowrap; overflow-x: auto; }
  .course-phase { flex-wrap: nowrap; }
  .course-nav a { white-space: nowrap; }
  .plan-card { flex-direction: column; align-items: stretch; }
  .plan-card-side { align-items: flex-start; text-align: left; }
  .home-back { font-size: .85rem; }
}
/* pictures (decision 45) */
img.avatar { object-fit: cover; padding: 0; background: var(--brand-soft); }
.course-card.has-image { padding-top: 0; overflow: hidden; }
.course-card-img { display: block; width: calc(100% + 2.4rem); margin: 0 -1.2rem .5rem; aspect-ratio: 3 / 2; object-fit: cover; }
.course-hero-img { display: block; width: 100%; aspect-ratio: 3 / 1.4; object-fit: cover; border-radius: 30px 30px 30px 10px; margin-bottom: 1rem; }
.course-image-preview { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.photo-picks { display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-picks form { margin: 0; }
.photo-pick { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .35rem; background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 14px; cursor: pointer; width: 6rem; }
.photo-pick img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 42% 42% 48% 48% / 38% 38% 62% 62%; }
.photo-pick.chosen { border-color: var(--brand); background: var(--brand-soft); }
.lecturer-photo { width: 9rem; height: 9rem; object-fit: cover; border-radius: 42% 42% 48% 48% / 38% 38% 62% 62%; }
.plan-card-img { width: 4.5rem; height: 3rem; flex: none; object-fit: cover; border-radius: 10px; }
.plan-card-img.empty { background: linear-gradient(135deg, var(--mint), var(--sky)); opacity: .55; }
@media (max-width: 900px) { .plan-card-img { width: 100%; height: 7rem; } }
/* where and when, and the lecturers when putting up a course (decision 47) */
.venue-box { padding: .8rem .9rem; border-radius: 14px; background: var(--sand); }
.hint.warn { color: #9a4a26; font-weight: 600; }
.new-course:has([data-online]:checked) .on-site { display: none; }
.lect-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .4rem; max-height: 16rem; overflow-y: auto; overflow-x: hidden; padding: .2rem; }
.lect-pick { display: flex; flex-direction: row; align-items: center; gap: .5rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-weight: 400; }
.lect-pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.lect-pick > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.lect-pick .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* every block placed straight on a page keeps room to the one above (margins collapse, so nothing doubles) */
.page > * + * { margin-top: 1.25rem; }
.page > .crumbs + * { margin-top: 0; }
.perk.perk-main { background: linear-gradient(150deg, var(--mint), var(--sand) 75%); box-shadow: inset 0 0 0 2px #b9e0da; }
/* courses taken, on the start page (decision 49) */
.taken-list { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.taken-list li { display: grid; grid-template-columns: 11rem 1fr auto; gap: 1rem; align-items: center; padding: .75rem 1.1rem; }
.taken-list li + li { border-top: 1px solid var(--line); }
.taken-date { color: var(--muted); font-size: .88rem; }
.taken-main { display: flex; flex-direction: column; min-width: 0; }
.taken-side { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; }
a.badge { text-decoration: none; }
@media (max-width: 640px) { .taken-list li { grid-template-columns: 1fr; gap: .25rem; } .taken-side { justify-content: flex-start; } }
/* rows of perk cards fill evenly: four as 2 + 2 or one row, five as 2 + 3 – never one left alone */
@media (min-width: 641px) {
  .perks:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
  .perks:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .perks:has(> :nth-child(5):last-child) > :nth-child(-n+2) { grid-column: span 3; }
  .perks:has(> :nth-child(5):last-child) > :nth-child(n+3) { grid-column: span 2; }
  .perks:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) { .members .perks:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .perks { grid-template-columns: 1fr; } }
/* place cards: the eyebrow line has one height, so the titles line up across a row */
.place-card > .eyebrow { display: flex; align-items: center; gap: .4rem; min-height: 1.5rem; margin: 0; }
.place-card > .eyebrow .badge { font-size: .68rem; padding: .05rem .45rem; }
/* rows of tiles fill evenly too: four as one row or 2 + 2 */
.tiles:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .tiles:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .tiles:has(> :nth-child(4):last-child) { grid-template-columns: 1fr 1fr; } }
/* teams and the calendar (decision 51) */
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: .8rem; }
.team { display: flex; flex-direction: column; gap: .5rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--sand); }
.chips-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.chips-list .chip { display: inline-flex; align-items: center; gap: .25rem; margin: 0; font-size: .82rem; padding: .15rem .55rem; }
.chips-list form { margin: 0; }
.chips-list button.link { width: auto; color: var(--muted); font-size: 1rem; line-height: 1; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.inline-form .grow { flex: 1; min-width: 12rem; }
form.inline { display: inline; margin: 0; }
button.link.small.danger { color: var(--danger); font-size: .85rem; width: auto; }
.scope-tabs { margin-bottom: .6rem; }
.agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.agenda a { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 1rem; align-items: center; padding: .75rem 1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.agenda a:hover { box-shadow: var(--shadow); }
.agenda-meeting a { border-left: 4px solid #b9b4e6; }
.agenda-course a { border-left: 4px solid var(--brand); }
.agenda-when, .agenda-main { display: flex; flex-direction: column; min-width: 0; }
/* the phone: a bar at the bottom with what is used on the go */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .mobile-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card);
    border-top: 1px solid var(--line); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(20, 33, 43, .06); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .72rem; color: var(--muted); text-decoration: none; padding: .2rem 0; }
  .mobile-bar a.active { color: var(--brand); font-weight: 650; }
  .mobile-bar .icon { width: 1.3rem; height: 1.3rem; }
  .mobile-bar .plus-sign { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.3rem; line-height: 1; }
  body.app { padding-bottom: 4.5rem; }
  .agenda a { grid-template-columns: 1fr; gap: .2rem; }
}
/* the company and its clinics (decision 54) */
.company-shell { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.company-shell > .sidenav { margin-top: 0; top: 5.5rem; }
.company-main { min-width: 0; }
.company-main > * + * { margin-top: 1.25rem; }
.goal-hero { display: flex; align-items: center; gap: 1.5rem; }
.goal-hero h1 { margin: 0; font-size: 1.5rem; }
.goal-hero .stack { gap: .35rem; }
.goal-ring { width: 8.5rem; height: 8.5rem; flex: none; }
.small-hero .goal-ring { width: 6.5rem; height: 6.5rem; }
.ring-value.behind { stroke: #d08a2e; }
.warn-chip { background: #fff3d6 !important; color: #8a5a00 !important; text-decoration: none; }
.warn-text { color: #9a4a26; font-weight: 650; }
svg.meter.behind .bar-fill { fill: #d08a2e; }
.goal-cell { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.compact-search { display: flex; gap: .4rem; }
.compact-search input[name="q"] { min-width: 12rem; }
.clinic-table, .person-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.clinic-row, .person-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) 8rem 5rem; gap: 1rem; align-items: center; padding: .75rem 1rem;
  text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.person-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.4fr) 8rem; }
.clinic-row:first-child, .person-row:first-child { border-top: 0; }
.clinic-row > span:first-child, .person-row > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.clinic-row.head { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-top: .6rem; padding-bottom: .6rem; background: var(--sand); }
a.clinic-row:hover, a.person-row:hover { background: var(--brand-soft); }
.clinic-row.is-behind { box-shadow: inset 4px 0 0 #d08a2e; }
a.person-row.static { pointer-events: none; }
@media (max-width: 900px) {
  .company-shell { grid-template-columns: 1fr; gap: .8rem; }
  .company-shell > .sidenav { position: static; flex-direction: row; overflow-x: auto; }
  .company-shell .sidenav-org { display: none; }
}
@media (max-width: 640px) {
  /* the phone: rows become cards */
  .clinic-row.head { display: none; }
  .clinic-row, .person-row { grid-template-columns: 1fr; gap: .3rem; }
  .goal-hero { flex-direction: column; align-items: flex-start; }
}
.person-row > span:first-child .badge, .clinic-row > span:first-child .badge { align-self: flex-start; }

/* the calendar (decision 60): a month on a computer, the list on the phone, and "+" to add */
.cal-list { display: none; }
.cal-nav { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 .8rem; }
.cal-nav h2 { margin: 0; min-width: 11rem; text-align: center; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.cal-weekday { padding: .45rem .5rem; font-size: .78rem; color: var(--muted); text-transform: capitalize; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 7rem; padding: .3rem .35rem .45rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-grid > .cal-day:nth-last-child(-n+7) { border-bottom: 0; }
.cal-day.out { background: var(--sand); }
.cal-day.out .cal-num, .cal-day.past .cal-num { color: var(--muted); }
.cal-day.today .cal-num { background: var(--brand); color: #fff; border-radius: 50%; width: 1.6rem; height: 1.6rem; display: inline-grid; place-items: center; }
.cal-day-head { display: flex; justify-content: space-between; align-items: center; min-height: 1.6rem; }
.cal-num { font-size: .85rem; font-weight: 600; padding-left: .2rem; }
.cal-item { display: block; font-size: .76rem; line-height: 1.25; padding: .15rem .35rem; border-radius: 6px; text-decoration: none; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item.cal-meeting { background: #ecebfa; }
.cal-item.cal-course { background: #e2f1ee; }
.cal-item:hover { filter: brightness(.96); }
.cal-time { color: var(--muted); }
.cal-add { position: relative; }
.cal-add > summary { list-style: none; cursor: pointer; }
.cal-add > summary::-webkit-details-marker { display: none; }
.cal-plus { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: var(--brand); font-weight: 700; opacity: 0; }
.cal-day:hover .cal-plus, .cal-add[open] .cal-plus, .cal-plus:focus-visible { opacity: 1; background: var(--sand); }
.cal-add-menu { position: absolute; right: 0; top: calc(100% + .25rem); z-index: 30; display: flex; flex-direction: column; min-width: 13rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .3rem; }
.cal-add-menu a { padding: .45rem .65rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.cal-add-menu a:hover { background: var(--sand); }
.choice-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.choice-card { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--ink); }
@media (max-width: 760px) {
  .cal-month { display: none; }
  .cal-list { display: block; }
  .cal-add-wide .cal-add-menu { left: 0; right: auto; }
}

/* choosing lecturers (decision 61): the directory in its own view, the chosen ones as chips */
.lect-chosen { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.lect-chosen .chip { display: inline-flex; align-items: center; gap: .3rem; margin: 0; }
.lect-chosen .chip button.link { width: auto; color: var(--muted); font-size: 1.05rem; line-height: 1; padding: 0; }
.lect-choose > summary { list-style: none; display: inline-block; width: auto; cursor: pointer; }
.lect-choose > summary::-webkit-details-marker { display: none; }
.lect-sheet { margin-top: .6rem; display: flex; flex-direction: column; gap: .6rem; }
.lect-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.lect-sheet-head h3 { margin: 0; }
.lect-sheet-head button { width: auto; }
.lect-choose:not(.as-sheet) .lect-sheet-head button { display: none; }
.lect-filters { align-items: flex-end; }
.lect-choose.as-sheet[open]::before { content: ''; position: fixed; inset: 0; background: rgba(20, 33, 43, .35); z-index: 60; }
.lect-choose.as-sheet[open] > .lect-sheet { position: fixed; z-index: 61; left: 50%; top: 5vh; transform: translateX(-50%); width: min(46rem, calc(100% - 2rem));
  max-height: 90vh; overflow: auto; margin: 0; padding: 1.1rem 1.2rem; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.lect-choose.as-sheet .lect-picks { max-height: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.lect-pick input[type=checkbox] { flex: none; width: auto; margin: 0; }
.lect-pick[hidden] { display: none; }
body.sheet-open { overflow: hidden; }
@media (max-width: 700px) {
  .lect-choose.as-sheet[open] > .lect-sheet { top: 0; width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
}
/* task templates edited in place (decision 61) */
.tpl-list { list-style: none; margin: 0; padding: 0; }
.tpl-list li { display: flex; flex-direction: column; gap: .4rem; padding: .7rem 1.1rem; border-top: 1px solid var(--line); }
.tpl-title { display: flex; flex-direction: column; }
.tpl-edit { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.tpl-edit form { margin: 0; }
.tpl-when { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tpl-when select, .tpl-when input { width: auto; margin: 0; }
.tpl-when input[type=number] { width: 4.5rem; }
.tpl-edit button.link { width: auto; color: var(--muted); }
/* the lecturer's own figures: views and requests */
.lect-stats { display: grid; gap: .5rem; margin: 0; }
.lect-stats > div { display: flex; flex-direction: column; gap: .1rem; padding: .5rem .7rem; border-radius: 10px; background: var(--sand); }
.lect-stats dt { font-size: .88rem; }
.lect-stats dd { margin: 0; display: flex; align-items: baseline; gap: .5rem; }
.lect-stats dd strong { font-size: 1.3rem; }

/* choosing countries (decision 62) */
.country-picker { display: flex; flex-direction: column; gap: .5rem; }
.country-chips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.country-chips .chip { display: inline-flex; align-items: center; gap: .25rem; margin: 0; }
.country-chips .chip button.link { width: auto; color: var(--muted); font-size: 1rem; line-height: 1; padding: 0; }
.country-tools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.country-tools input { flex: 1; min-width: 12rem; margin: 0; }
.country-presets { display: flex; flex-wrap: wrap; gap: .3rem; }
.country-presets button { width: auto; }
.country-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .15rem .6rem; max-height: 13rem; overflow-y: auto;
  padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.country-list label[hidden] { display: none; }
.country-picker.is-live .country-list label:has(input:checked) { display: none; }
/* folded away until one works in the picker: the chosen ones show as chips (decisions 62, 63) */
.country-picker.is-live:not(.is-open) .country-list { display: none; }
/* adding a reference, behind its own button (decision 63) */
.ref-add > summary { list-style: none; display: inline-block; width: auto; cursor: pointer; }
.ref-add > summary::-webkit-details-marker { display: none; }
.ref-add[open] > summary { margin-bottom: .6rem; }

/* a congress or fair: run here or in its own system (decision 64) */
.registration-fields .check { align-items: flex-start; }
.registration-fields .check > span { display: flex; flex-direction: column; }
.registration-fields:not(:has(input[value=external]:checked)) .reg-link { display: none; }
.new-course .event-only { display: none; }
.new-course:has(select[name=kind] option[value=congress]:checked) .event-only,
.new-course:has(select[name=kind] option[value=fair]:checked) .event-only { display: block; }

/* rooms and parallel sessions (decision 64) */
.rooms-card .chips-list .chip { font-size: .85rem; }
.slots { display: flex; flex-direction: column; gap: .4rem; }
.slot-session { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .6rem; align-items: start; padding: .5rem .6rem; border-radius: 10px; background: var(--sand); }
.slot-session > span:nth-child(2) { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.slot-session form { margin: 0; }
.slot-session .badge { align-self: flex-start; }
.slot-parallel { display: flex; flex-direction: column; gap: .3rem; padding: .5rem; border: 1px dashed var(--line); border-radius: 12px; }
.slot-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .4rem; }
.slot-columns .slot-session { grid-template-columns: 1fr auto; }
.slot-columns .slot-session > .mono { grid-column: 1 / -1; }
.programme .parallel .parallel-sessions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .5rem; }
.programme .parallel .parallel-sessions > .muted { grid-column: 1 / -1; }
.parallel-session { display: flex; flex-direction: column; gap: .15rem; padding: .5rem .6rem; border-radius: 10px; background: var(--sand); }
.parallel-session .badge { align-self: flex-start; }
.parallel-session.mine { outline: 2px solid var(--brand); }

/* the logo beside the heading of the check page (decision 65) */
.cert-check .eyebrow { display: flex; align-items: center; gap: .45rem; }
.cert-check .eyebrow .logo { width: 24px; height: 18px; vertical-align: -3px; }
.annual-card .inline-form label { min-width: 8rem; }
.cert-check .eyebrow::before { display: none; }

/* attendance per session (decision 66) */
.session-choices { display: flex; flex-direction: column; gap: .4rem; }
.session-choices form { margin: 0; }
.session-choices button { width: 100%; text-align: left; justify-content: flex-start; }
.session-choices button.done { border-color: var(--brand); }
.session-attendance h3 { margin: .4rem 0 0; font-size: .95rem; }
.session-attendance .list li { gap: .6rem; }
.row-gap { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.session-sign main { text-align: center; }
.session-sign h1 { font-size: 2.6rem; margin: .4rem 0; }
.session-sign .sign-when { font-size: 1.3rem; }
.session-sign .sign-qr svg { width: min(80vw, 360px); height: auto; }
.session-sign .sign-scan { font-size: 1.2rem; font-weight: 600; }
.self-check-in.ok { border-color: var(--brand); }
.row-gap form.inline button.link { width: auto; }

/* pictures (decision 67): the organizer's card, and the gallery on the course page */
.course-image-card h3 { margin: .6rem 0 0; font-size: .95rem; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); gap: .5rem; }
.photo-grid li { display: flex; flex-direction: column; gap: .3rem; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.photo-grid input { font-size: .8rem; padding: .3rem .45rem; }
.manual-lecturer { padding: .5rem; border: 1px dashed var(--line); border-radius: 12px; }
.lect-photo-add > summary { list-style: none; cursor: pointer; }
.lect-photo-add[open] form { margin-top: .4rem; }
.gallery { margin-bottom: 1rem; }
.gallery.has-thumbs { display: grid; grid-template-columns: 3fr 1fr; gap: .5rem; }
.gallery-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; display: block; }
.gallery-thumbs { display: flex; flex-direction: column; gap: .5rem; }
.gallery-thumbs a { position: relative; display: block; min-height: 0; }
.gallery-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 33, 43, .5); color: #fff; font-weight: 700; font-size: 1.2rem; border-radius: 12px; }
.gallery-all { grid-column: 1 / -1; justify-self: start; width: auto; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12, 20, 26, .92); display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); display: flex; flex-direction: column; gap: .5rem; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #eef3f2; font-size: .9rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.lightbox .lb-credit, .lightbox .lb-count { color: #b8c4c2; }
.lightbox button { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 2.6rem; height: 2.6rem; font-size: 1.6rem; line-height: 1; padding: 0; flex: none; }
.lightbox .lb-close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 700px) {
  .gallery.has-thumbs { grid-template-columns: 1fr; }
  .gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .gallery-thumbs img { aspect-ratio: 4 / 3; }
  .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 1.2rem; }
  .lightbox .lb-prev { left: 1.2rem; }
  .lightbox .lb-next { right: 1.2rem; }
}

/* signing up for sessions (decision 68) */
.signup-line { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .2rem; }
.signup-line form { margin: 0; }
.signup-line button { width: auto; }
.signup-set > summary { list-style: none; cursor: pointer; }
.signup-set[open] form { margin-top: .4rem; }

/* cancellations and refunds (decision 69) */
.cancel-card details form { margin-top: .5rem; }
.refunds-card .list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }

/* the help centre (decision 71) */
.help-search { margin: 1rem 0 .4rem; }
.help-tabs { margin-bottom: 1rem; }
.help-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .8rem; }
.help-item { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink); }
.help-item .badge, .help-article .badge { align-self: flex-start; }
.help-article p { max-width: 62ch; }

/* the advertiser mode (decision 73) */
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .9rem; }
.event-card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: var(--ink); padding: 0; overflow: hidden; }
.event-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-card-body { display: flex; flex-direction: column; gap: .3rem; padding: 0 1rem 1rem; }
.event-card .badge { align-self: flex-start; }
.ads-draft { background: var(--sand); }
.ads-review { background: #fff3d6; }
.ads-live { background: #dff1ea; }
.ads-rejected { background: #fbeceb; }
.link-like { color: var(--brand); font-weight: 600; }
.ads-switch { margin-top: 1.4rem; }
.wizard-steps { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; counter-reset: step; }
.wizard-steps li { counter-increment: step; padding: .35rem .8rem; border-radius: 999px; background: var(--sand); font-size: .88rem; color: var(--muted); }
.wizard-steps li::before { content: counter(step) '. '; }
.wizard-steps li.current { background: var(--brand); color: #fff; font-weight: 600; }
.wizard-steps li.done a { color: var(--brand); }
.registration-fields .choice { align-items: flex-start; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; }
.registration-fields:not(:has(input[value=coursedent]:checked)) .reg-coursedent { display: none; }
.mobile-bar.mobile-bar-3 { grid-template-columns: repeat(3, 1fr); }
/* roles that cannot add courses or meetings have no + in the middle */
.mobile-bar.mobile-bar-4 { grid-template-columns: repeat(4, 1fr); }
/* the cookie notice (decision 74) */
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; max-width: 46rem; margin: 0 auto; display: flex; gap: .8rem; align-items: center;
  justify-content: space-between; padding: .7rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); font-size: .9rem; }
.cookie-bar button { width: auto; flex: none; }
body.app .cookie-bar { bottom: 5rem; }
.legal p, .legal li { max-width: 68ch; }
.legal h2 { margin-top: 1.4rem; }

/* Lecturer payment and expenses (decision 75): the company fields only when invoice is picked */
.pay-choice .check { align-items: flex-start; }
.pay-choice .check span { display: flex; flex-direction: column; }
.pay-invoice, .pay-salary { display: none; }
form:has(input[name="pay_method"][value="invoice"]:checked) .pay-invoice { display: flex; }
form:has(input[name="pay_method"][value="salary"]:checked) .pay-salary { display: block; }
.needs-answer { border-color: #e6c27a; }
.list.expenses li.expense { display: flex; gap: .8rem; align-items: flex-start; flex-wrap: wrap; }
.list.expenses li.expense .grow { flex: 1 1 14rem; min-width: 0; }
.list.expenses li.expense .num { text-align: right; white-space: nowrap; }
.expense-decide { flex: 1 1 100%; }
.badge.exp-submitted { background: #fff3d6; color: #8a5a00; }
.badge.exp-approved, .badge.exp-paid { background: #dff3e7; color: var(--ok); }
.badge.exp-rejected { background: #fbeceb; color: var(--danger); }

/* Membership associations (decision 76) */
.pct-input { width: 5.5rem; }
.member-price { margin-top: .4rem; }
.member-card h2 { margin-top: .1rem; }

/* "New here?" under the sign-in form: apart from the button, centred */
.login-new { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line, #e3ebe7); text-align: center; font-size: .95rem; }
.forgot-link { align-self: flex-end; font-weight: 400; margin-top: .25rem; }

/* The ribbon across a course card's corner for the signed-in member (decision 78) */
.course-card { position: relative; overflow: hidden; }
.ribbon { position: absolute; top: 2.4rem; right: -3.4rem; z-index: 2; width: 15rem; transform: rotate(45deg); text-align: center;
  padding: .3rem 0; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); pointer-events: none; }
.ribbon-member { background: #b5552f; }
.ribbon-match { background: var(--brand); }
.course-card.has-ribbon h3 { padding-right: 2.6rem; }

/* An association's ad for its membership (decision 79) */
.promo-card { border-left: 4px solid #b5552f; }
.promo-card h2 { margin: 0; }
.promo-lead { font-weight: 600; }
.promo-benefits { margin: 0; padding-left: 1.2rem; }
.promo-benefits li { margin: .15rem 0; }
.saved-line { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.member-price p { margin: .2rem 0; }
.national-card .facts dd strong { font-size: 1.15rem; color: #b5552f; }
.campaign-line { display: flex; gap: .5rem; align-items: baseline; font-weight: 600; }
.free-price { color: var(--ok); }

/* Tours and invitations (decision 85) */
.tour-row { align-items: end; }
.tour-row label { min-width: 7rem; }
.list li.current { font-weight: 600; }
.chip.members-only { background: #fbeee6; color: #8a4a2b; }

/* Mileage (decision 90): the distance instead of amount and receipt */
.exp-km { display: none; }
form:has(select[name="category"] option[value="mileage"]:checked) .exp-km { display: flex; }
form:has(select[name="category"] option[value="mileage"]:checked) .exp-money,
form:has(select[name="category"] option[value="mileage"]:checked) .exp-receipt { display: none; }
/* Downtime compensation (decision 113): the hours instead of amount and receipt */
.exp-hours { display: none; }
form:has(select[name="category"] option[value="downtime"]:checked) .exp-hours { display: flex; }
form:has(select[name="category"] option[value="downtime"]:checked) .exp-money,
form:has(select[name="category"] option[value="downtime"]:checked) .exp-receipt { display: none; }

/* An association's page and the membership card (decision 92) */
.news-item { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.news-item h3 { margin: .1rem 0 .3rem; }
.membership-card { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.2rem; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--brand), #2c5f8a); box-shadow: var(--shadow); max-width: 26rem; }
.membership-card .eyebrow { color: rgba(255, 255, 255, .8); }
.membership-org { font-size: 1.25rem; }
.membership-name { font-weight: 600; }

/* Partner, member price and customers (decision 89) */
.chip.partner { background: #e8f0fb; color: #2c5f8a; }
.chip.member-price-chip { background: #fbeee6; color: #8a4a2b; }
.ribbon-customer { background: #2c5f8a; }
.membership-card.customer-card { background: linear-gradient(135deg, #2c5f8a, #4a6b7d); }
.mp-filter { flex-direction: row; align-items: center; }

/* A tour as one card with its towns, and the short registration (decision 95) */
.tour-group { display: flex; flex-direction: column; gap: .4rem; }
.tour-group .course-card { flex: 1; }
.tour-towns { margin: 0 .4rem; }
.more-fields summary { cursor: pointer; }

/* Ads (decision 96): marked, calm, the same shape as the cards around them */
.ad-card { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px dashed #c9b8a6;
  background: #fffaf3; box-shadow: none; }
.ad-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #8a6d52; }
.ad-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; }
.ad-headline { font-size: 1.05rem; }
.ad-card .button { align-self: flex-start; }
.ad-card.ad-wide { flex-direction: column; }

/* cooperation between associations (decision 99) */
.coop-mailing { border-top: 1px solid var(--line); padding-top: .8rem; }
.coop-mailing:first-of-type { border-top: 0; padding-top: 0; }
.coop-mailing blockquote { margin: 0; padding: .5rem .8rem; border-left: 3px solid var(--line); white-space: pre-line; font-size: .95rem; }
/* the public menu on a phone: everything visible without swiping, every label on one line, two rows if needed;
   For organizers is in the footer */
@media (max-width: 700px) {
  body.public .topbar { gap: .35rem; padding: .6rem 1rem; }
  body.public .topnav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: .45rem 1rem; }
  body.public .topnav a { white-space: nowrap; }
  body.public .topnav a[href="/for-organizers"] { display: none; }
}
/* between a phone and a wide screen (a tablet, a narrow window): the menu goes under the logo on its own row,
   every label on one line (decision 151) */
@media (min-width: 701px) and (max-width: 1060px) {
  body.public .topbar { row-gap: .4rem; }
  body.public .topnav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: .45rem 1.1rem; }
  body.public .topnav a { white-space: nowrap; }
}
/* a tile that needs attention: something missing, run out or overdue */
.tile.warn { border-color: #e9b48f; background: #fdf3ea; }
.tile.warn .tile-value { color: #9a4a26; }
/* the organizer's logo (decision 105): small beside its name on cards, bigger on its pages */
.org-logo { height: 22px; width: auto; max-width: 90px; object-fit: contain; vertical-align: middle; }
.org-logo.big { height: 56px; max-width: 220px; }
.card-org { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); margin: .2rem 0 .4rem; }
.seller-name { display: flex; align-items: center; gap: .5rem; }
.hero-logo { display: inline-block; margin-bottom: .6rem; }
.logo-preview { padding: .6rem; background: #fff; border: 1px dashed var(--line); border-radius: 12px; display: inline-block; }
/* the course list in an organizer's own website (embed) */
body.embed { background: transparent; }
body.embed .page { padding: .5rem; max-width: none; }
.embed-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.embed-head h1 { font-size: 1.3rem; margin: 0; }
.embed-foot { margin-top: 1rem; }

/* The outcome by team and term (decision 117): a heading row per team, its sum, and the total */
.table tr.group th { text-align: left; padding-top: 1.1rem; font-size: .95rem; color: var(--brand); }
.table tr.subtotal td { border-top: 1px solid rgba(0, 0, 0, .12); }
.table tr.total td { border-top: 2px solid rgba(0, 0, 0, .25); }

/* The modules of an organizer in the platform admin (decision 118): a switch, what it holds, and the yearly price */
.features .feature-row { display: grid; grid-template-columns: 1fr 10rem; gap: .2rem 1rem; padding: .6rem 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.features .feature-row .hint { grid-column: 1; }
.features .feature-price { grid-column: 2; grid-row: 1 / span 2; font-size: .85rem; }
@media (max-width: 560px) { .features .feature-row { grid-template-columns: 1fr; } .features .feature-price { grid-column: 1; grid-row: auto; } }

/* Board work (decisions 121-123): the decision log, committee cards and the year wheel */
.list.decisions li { align-items: flex-start; }
.decision-text { margin: .25rem 0 .35rem; padding: .45rem .7rem; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; white-space: pre-line; }
.filters { align-items: end; flex-wrap: wrap; }
a.committee-card { display: block; color: inherit; text-decoration: none; }
a.committee-card:hover { box-shadow: 0 6px 18px rgba(14, 124, 116, .12); }
a.committee-card h2 { margin: .4rem 0 .2rem; }
.wheel-card { display: flex; justify-content: center; }
svg.wheel { width: 100%; max-width: 320px; height: auto; }
svg.wheel .wheel-seg { fill: #f3f6f5; stroke: #fff; stroke-width: 2; transition: fill .15s; }
svg.wheel .wheel-seg.has { fill: var(--brand-soft); }
svg.wheel .wheel-seg.now { fill: #fbe3d6; }
svg.wheel a:hover .wheel-seg { fill: #cfeee8; }
svg.wheel .wheel-month { font-size: 11px; fill: #4b5b66; }
svg.wheel .wheel-count { font-size: 13px; font-weight: 700; fill: var(--brand); }
svg.wheel .wheel-year { font-size: 22px; font-weight: 700; fill: #14212b; }
svg.wheel .wheel-sub { font-size: 11px; fill: #5d6b75; }
.wheel-month-card.now { border-color: #f2b99a; }

/* My tasks on the phone (decision 124): one column, large targets */
.mine { max-width: 640px; }
.mine h1 { margin-bottom: .2rem; }
.mine .card { margin-top: 1rem; }
.mine-list { list-style: none; margin: 0; padding: 0; }
.mine-list li { padding: .75rem 0; border-top: 1px solid var(--line); }
.mine-list li:first-child { border-top: 0; }
.mine-list a { display: flex; flex-direction: column; gap: .15rem; color: inherit; text-decoration: none; min-height: 44px; justify-content: center; }
.mine-answer { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .6rem; }
.mine-answer button { width: 100%; min-height: 44px; }
.mine-join { display: block; text-align: center; margin-top: .5rem; min-height: 44px; line-height: 44px; padding: 0; }
.mine .tasks .tick, .mine .programme-tasks .tick { width: 32px; height: 32px; }
.mine-empty p { font-size: 1.05rem; }
@media (max-width: 760px) { .mine { max-width: none; } }

/* a button that looks like a link has no shadow or lift (Remove, Mark as left, and the like) */
button.link, button.link:hover { box-shadow: none; transform: none; }

/* a cell in a row of fields may shrink to its column; a long label word ("Momsregistreringsnummer") is hyphenated
   instead of pushing its field out of the card */
.row > *, .grid2 > * { min-width: 0; }
.row > label, .grid2 > label { overflow-wrap: break-word; hyphens: auto; }
/* in the narrow side column two fields side by side are too tight: one under the other */
aside .grid2 { grid-template-columns: 1fr; }

/* Settings (decision 133): what is left to set up, then groups of folded rows with a line on how each stands */
.settings { max-width: 860px; }
.set-todo { background: var(--warm-soft); border: 1px solid #f2c3a8; border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .5rem; }
.set-todo h2 { font-size: 1rem; margin: 0 0 .4rem; }
.set-todo ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.set-todo a { display: inline-block; background: #fff; border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; text-decoration: none; }
.set-group { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .45rem; }
.set-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.set-row { display: block; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.set-row:first-child { border-top: 0; }
.set-row > summary, a.set-link { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem; cursor: pointer; list-style: none; min-height: 48px; color: var(--ink); text-decoration: none; }
.set-row > summary::-webkit-details-marker { display: none; }
.set-row > summary::after, a.set-link::after { content: '›'; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform .15s; }
.set-row[open] > summary::after { transform: rotate(90deg); }
.set-row[open] > summary { background: var(--brand-soft); }
.set-row > summary:hover, a.set-link:hover { background: #f6faf9; }
.set-title { flex: 1; font-weight: 600; font-size: .9rem; }
.set-status { font-size: .88rem; color: var(--muted); text-align: right; }
.set-status.ok { color: var(--ok); }
.set-status.warn { color: #b0571d; }
.set-body { padding: .4rem 1.1rem 1.2rem; }
/* the cards of the parts lie flat inside their row; the row already carries the heading */
.set-body > .card { border: 0; box-shadow: none; padding: 0; background: none; }
.set-body > .card > h2:first-child { display: none; }
.set-body .tpl-list { margin-left: 0; }
@media (max-width: 640px) { .set-row > summary, a.set-link { flex-wrap: wrap; gap: .2rem .8rem; } .set-status { text-align: left; flex-basis: 100%; order: 3; } }
/* simulated e-ID, contracts and the board evaluation (decision 145) */
.eid-card { margin: 1rem 0; border-color: var(--brand); }
.contract-body { padding: .8rem 1rem; background: var(--sand); border-radius: 10px; font-size: .95rem; }
.contract-view { margin-top: 1rem; }
.br-form .br-q { border: 0; padding: .6rem 0; margin: 0; border-top: 1px solid var(--line); }
.br-form .br-q legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.br-form .scale { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.pad-list li { padding: .8rem 1.1rem; }

/* the page's message after a form, when the page opens where one was (decision 149) */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 60; max-width: min(36rem, calc(100vw - 2rem));
  background: var(--ink, #10302e); color: #fff; padding: .7rem 1rem; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: .95rem;
  transition: opacity .5s ease, transform .5s ease; }
.toast-alert { background: #b3402f; }
.toast-out { opacity: 0; transform: translate(-50%, .5rem); }
@media (max-width: 760px) { .toast { bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); } }

/* the page for organisations (decision 151) */
.forg-base { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .9rem 1.4rem; }
.forg-base > div, .forg-modules li { display: flex; flex-direction: column; gap: .15rem; }
.forg-modules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
@media (min-width: 1100px) { .forg-kinds { grid-template-columns: repeat(5, 1fr); } }

/* the modules' price list in the admin pages (decision 153) */
.module-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.module-kpis > div { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem; border-radius: 12px; background: #f1f6f4; }
.module-kpis strong { font-size: 1.25rem; }
.module-prices-wrap { overflow-x: auto; }
.module-prices td { vertical-align: top; }
.module-prices .price-input { width: 7rem; }
.module-includes { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.module-includes li { margin: .15rem 0; }
.module-info > summary { list-style: none; cursor: pointer; }
.module-info > summary::-webkit-details-marker { display: none; }
.module-info[open] { flex-basis: 100%; }
.module-prices th:first-child { text-align: left; }

/* help on every page (decision 156): a button in the corner, above the phone menu */
.help-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; }
.help-fab > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px;
  background: var(--brand, #0f6d63); color: #fff; font-weight: 700; box-shadow: 0 6px 18px rgba(16, 48, 46, .22); }
.help-fab > summary::-webkit-details-marker { display: none; }
.help-fab > summary span[aria-hidden] { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: rgba(255,255,255,.22); }
.help-fab-panel { position: absolute; right: 0; bottom: calc(100% + .6rem); width: min(24rem, calc(100vw - 2rem)); max-height: 70vh; overflow: auto;
  background: #fff; border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 12px 36px rgba(16, 48, 46, .25); border: 1px solid var(--line, #dfe8e5); }
.help-fab-article > summary { cursor: pointer; }
.help-fab-article p { margin: .35rem 0; }
body.app .help-fab { bottom: 1rem; }
@media (max-width: 900px) { body.app .help-fab { bottom: 5rem; } .help-fab-label { display: none; } }
@media print { .help-fab { display: none !important; } }
