/* Sukuijainiq — white space, three colours: green (mind), red (feelings), blue (body). */
/* The Mangiok font is used automatically when assets/fonts/Mangiok.woff2 (or .otf/.ttf) is uploaded. */

:root {
  --green: #67b13e; --red: #ed1c32; --blue: #7fd4f3; --ink: #111; --ink2: #555; --ink3: #8a8a8a;
  --line: #ececec; --soft: #f7f7f5; --bg: #fff; --r: 14px;
  --green-d: #4c8d29; --red-d: #c4122a; --blue-d: #2a9fc9;
  --font: "Mangiok", "Noto Sans", "Noto Sans Canadian Aboriginal", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 17px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--ink); text-decoration-color: #ccc; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .2em 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 1.8em 0 .6em; }
small, .small { font-size: .85rem; }
.muted { color: var(--ink2); }
code { background: var(--soft); padding: .1em .4em; border-radius: 6px; font-size: .95em; }
[lang="iu"], .tri-syl { font-family: "Mangiok", "Noto Sans Canadian Aboriginal", var(--font); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 60px; }

/* Header */
.top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.menu > a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--ink2); font-size: .95rem; }
.menu > a:hover { background: var(--soft); color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }
.langswitch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-left: 8px; }
.langswitch button { border: 0; background: none; padding: 5px 10px; border-radius: 999px; font: inherit; font-size: .8rem; color: var(--ink2); cursor: pointer; }
.langswitch button.on { background: var(--ink); color: #fff; }
.inline { display: inline; }
.linkish { background: none; border: 0; padding: 8px 10px; color: var(--ink2); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: #ccc; }
.linkish.danger, .danger { color: var(--red-d); }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu > a { padding: 12px; }
  .langswitch { margin: 8px 0; align-self: flex-start; flex-wrap: wrap; }
}
.foot { text-align: center; padding: 28px; color: var(--ink3); font-size: .85rem; display: flex; gap: 8px; justify-content: center; align-items: center; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .1s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-big { padding: 14px 26px; font-size: 1.05rem; }
.btn-small { padding: 5px 12px; font-size: .85rem; border-radius: 9px; }
.btn-danger { background: #fff; color: var(--red-d); border-color: #f4c2c8; }
.btn-star { background: #fff; color: var(--ink); border-color: #f2c94c; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
.form small { font-weight: 400; color: var(--ink2); }
input, select, textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid #dcdcdc; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
input[type=checkbox], input[type=radio] { width: auto; }
label.check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.trap { position: absolute; left: -9999px; }
.panel { max-width: 640px; margin: 20px auto; }
.narrow { max-width: 460px; }
.center-block { display: block; margin: 0 auto 10px; }
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; background: #eef7e8; border: 1px solid #cfe7c0; }
.flash-err { background: #fdecee; border-color: #f6c7cd; }
.flash-warn { background: #fff7e0; border-color: #f3dc9a; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table td, .table th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink3); font-weight: 600; }
.table td.ok { color: var(--green-d); font-weight: 600; } .table td.no { color: var(--ink2); }
.table tr.sel td { background: var(--soft); }
.table-scroll { overflow-x: auto; }
.links a, .links .linkish { margin-right: 8px; font-size: .9rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
@media (max-width: 760px) { .two, .grid3 { grid-template-columns: 1fr; gap: 20px; } }
.crumbs { margin: 0 0 8px; font-size: .9rem; } .crumbs a { color: var(--ink2); }
.searchbar { display: flex; gap: 8px; margin-bottom: 12px; } .searchbar input { flex: 1; } .searchbar select { width: auto; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink2); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }

/* Three-language text */
.tri-all { display: inline-flex; flex-direction: column; gap: 1px; }
.tri-all .tri-rom { color: var(--ink2); font-size: .88em; }
.tri-all .tri-en, .tri-all .tri-fr { color: var(--ink3); font-size: .8em; }
.tri-all .tri-syl + .tri-rom, .tri-all .tri-syl + .tri-en { margin-top: 1px; }
h1 .tri-all .tri-rom { font-size: .6em; font-weight: 500; } h1 .tri-all .tri-en, h1 .tri-all .tri-fr { font-size: .5em; font-weight: 500; }

/* Dimension colours */
.d-intellectual { --dc: var(--green); --dcd: var(--green-d); }
.d-emotional { --dc: var(--red); --dcd: var(--red-d); }
.d-physical { --dc: var(--blue); --dcd: var(--blue-d); }
.dim { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff; }
.dim-intellectual { background: var(--green); } .dim-emotional { background: var(--red); } .dim-physical { background: var(--blue); color: #063a4d; }
.node-code { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: var(--soft); color: var(--ink2); font-variant-numeric: tabular-nums; }
.node-code.big { font-size: .85rem; }
.vdot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 3px; vertical-align: middle; }
.v-core { background: var(--green); } .v-driving { background: var(--red); } .v-vehicle { background: var(--blue); }

/* Home */
.hero { text-align: center; padding: 40px 0 10px; }
.hero-logo { display: block; margin: 0 auto 24px; animation: rise .9s ease both; }
.hero h1 { font-size: 2.3rem; max-width: 640px; margin: 0 auto .4em; }
.lead { font-size: 1.15rem; color: var(--ink2); max-width: 600px; margin: 0 auto 1.4em; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.process { margin-top: 50px; }
.process h2 { text-align: center; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: start; }
/* The three shapes, as in the framework: title above in its colour, each one a step lower than the one before. */
.pcol { --c: var(--green); }
.pc-driving { --c: var(--red); margin-top: 22px; }
.pc-vehicle { --c: var(--blue); margin-top: 44px; }
.ptitle { margin: 0 0 6px; padding-left: 36px; font-size: 1.6rem; font-weight: 800; color: var(--c); line-height: 1.1; }
.pc-core .ptitle { color: #5f9e3a; } .pc-driving .ptitle { color: #d42a37; } .pc-vehicle .ptitle { color: #8ccbe2; }
.pbox { background: var(--c); color: #fff; padding: 26px 26px 0 36px; }
.pbox .sub { margin: 0 0 .25em; font-size: 1.3rem; font-weight: 800; }
.pbox ol { margin: 0; padding: 0 0 0 1.35em; font-size: 1.3rem; font-weight: 500; line-height: 1.75; }
.pc-core .pbox { padding-bottom: 96px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%); }
.pc-driving .pbox { padding-bottom: 104px; clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%); }
.pc-vehicle .pbox { padding-bottom: 96px; clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%); }
@media (max-width: 700px) { .three { grid-template-columns: 1fr; gap: 18px; } .pc-driving, .pc-vehicle { margin-top: 0; } .hero h1 { font-size: 1.8rem; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* Map: white nothingness, doors open as you prove yourself */
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.map { position: relative; display: grid; grid-template-columns: 130px repeat(var(--cols), minmax(118px, 1fr)); grid-auto-rows: auto; gap: 40px 18px; margin-top: 18px; padding: 10px 0 30px; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.level-label { grid-column: 1; align-self: center; color: var(--ink3); font-size: .85rem; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.level-label > span:not(.tri) { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink2); flex: none; }
.level-label.faint { opacity: .35; }
.node { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r); background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); min-height: 140px; transition: transform .15s, box-shadow .15s; }
/* The coloured edge on the left is the path's progress: a pale track that fills from the bottom up (--p, set on each card). */
.node::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; border-radius: var(--r) 0 0 var(--r); background: color-mix(in srgb, var(--dc) 30%, #fff); }
.node::after { content: ""; position: absolute; left: 0; bottom: 0; width: 7px; height: var(--p, 100%); border-radius: 0 0 0 var(--r); background: var(--dc); transition: height .6s ease; }
.node-complete::after { border-radius: var(--r) 0 0 var(--r); }
.node-glimpse::after { display: none; }
a.node:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.node-title { font-weight: 700; line-height: 1.25; }
.node-sub { font-size: .8rem; color: var(--ink2); margin-top: auto; }
.bar { display: block; width: 100%; height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; flex: none; }
.bar span { display: block; height: 100%; background: var(--dc); border-radius: 99px; }
.node-complete { background: color-mix(in srgb, var(--dc) 10%, #fff); border-color: color-mix(in srgb, var(--dc) 40%, #fff); }
.node-complete .node-sub { color: var(--dcd); font-weight: 600; }
.node-suggest { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc) 35%, #fff); animation: breathe 2.8s ease-in-out infinite; }
.node-soon { opacity: .7; }
.node-glimpse { background: transparent; border: 1.5px dashed #dcdcdc; color: var(--ink3); align-items: center; justify-content: center; cursor: default; }
.node-glimpse::before { display: none; }
.node-q { font-size: 1.8rem; font-weight: 300; color: #ccc; }
.node-hidden { visibility: hidden; }
.whisper { text-align: center; color: var(--ink3); font-size: .9rem; margin-top: 10px; }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--dc) 18%, #fff); } }
@media (max-width: 760px) {
  .map { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 14px; }
  .map > .node { grid-column: auto !important; grid-row: auto !important; }
  .map > .level-label { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 10px; }
  .node-hidden { display: none; }
  .map-lines { display: none; }
}

/* Node page */
.node-hero { display: flex; justify-content: space-between; gap: 30px; padding: 24px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--dc) 12%, #fff), #fff 70%); border: 1px solid var(--line); flex-wrap: wrap; }
.node-hero h1 { margin-top: 8px; }
.node-hero-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; justify-content: center; }
.lvl { color: var(--ink2); font-size: .9rem; margin-left: 6px; }
.done-badge { font-weight: 700; color: var(--dcd); font-size: 1.1rem; }
.tree { list-style: none; padding: 0; margin: 0; }
.act { display: flex; gap: 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.act .num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink3); width: 46px; flex: none; }
.act-title { flex: 1; min-width: 180px; }
.act-state { color: var(--ink2); font-size: .85rem; }
.act-passed .act-state { color: var(--green-d); font-weight: 600; }
.act-next { background: color-mix(in srgb, var(--dc) 8%, #fff); border-radius: 10px; }
.depth-1 { padding-left: 34px !important; } .depth-2 { padding-left: 62px !important; } .depth-3 { padding-left: 90px !important; }
.depth-1 .num, .depth-2 .num, .depth-3 .num { font-weight: 500; }
.icon-link { text-decoration: none; font-size: 1.2rem; color: var(--ink3); padding: 0 6px; }
.opened { margin: 20px 0; padding: 20px; border-radius: 16px; border: 1.5px dashed var(--line); animation: rise .6s both; }
.opened h2 { margin-top: 0; }
.opened-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

/* Activity */
.activity { max-width: 760px; margin: 0 auto; }
.act-head { margin-bottom: 18px; }
.instr { font-size: 1.05rem; color: var(--ink2); }
.illus { max-width: 100%; border-radius: 14px; margin: 10px 0; }
.supervise { background: #fff7e0; border: 1px solid #f3dc9a; padding: 8px 14px; border-radius: 10px; margin: 8px 0; font-weight: 600; }
.qform { display: grid; gap: 18px; }
.q { border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; margin: 0; }
.q legend { padding: 0 6px; font-weight: 700; font-size: 1.15rem; display: flex; gap: 10px; align-items: flex-start; }
.qn { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--dc); color: #fff; font-size: .9rem; flex: none; }
.d-physical .qn { color: #063a4d; }
.visual { font-size: 2.6rem; letter-spacing: .08em; text-align: center; padding: 14px 0 6px; line-height: 1.3; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-box { position: relative; display: flex; flex-direction: column; min-height: 64px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; justify-content: center; align-items: center; text-align: center; font-size: 1.15rem; font-weight: 600; background: #fff; color: var(--ink); transition: border-color .12s, background .12s, color .12s, transform .1s; }
.choice-box .tri-all { align-items: center; }
.choice:hover .choice-box { border-color: #9a9a9a; }
.choice:active .choice-box { transform: scale(.98); }
/* Selected answer: same text, with a thick coloured outline inside the button and a tick */
.choice input:checked + .choice-box { border-color: var(--dcd, var(--ink)); box-shadow: inset 0 0 0 3px var(--dcd, var(--ink)); }
.choice input:checked + .choice-box::after { content: "✓"; position: absolute; top: 6px; right: 10px; font-size: .95rem; font-weight: 700; color: var(--dcd, var(--ink)); }
.choice input:focus-visible + .choice-box { outline: 3px solid color-mix(in srgb, var(--dc, #999) 45%, #fff); outline-offset: 2px; }
.checkoff:has(input:checked) { border-style: solid; border-color: var(--dcd, var(--ink)); box-shadow: inset 0 0 0 3px var(--dcd, var(--ink)); }
.order-item:has(select:valid) { font-weight: 600; }
.answer-num, .answer-text { font-size: 1.6rem; text-align: center; max-width: 240px; display: block; margin: 10px auto 0; font-weight: 700; }
.order-list { display: grid; gap: 8px; } .order-item { display: flex; gap: 10px; align-items: center; } .order-item select { width: 76px; flex: none; }
.hint { color: var(--ink2); font-size: .88rem; margin: 6px 0; }
.checkoff { display: flex; gap: 10px; align-items: center; font-size: 1.1rem; font-weight: 600; padding: 12px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; }
.checkoff input { width: 24px; height: 24px; }

/* Result */
.result { max-width: 640px; margin: 0 auto; text-align: center; }
.score-ring { --p: 0; width: 150px; height: 150px; border-radius: 50%; margin: 10px auto 10px; display: grid; place-items: center; background: conic-gradient(var(--dc) calc(var(--p) * 1%), var(--soft) 0); animation: rise .6s both; }
.score-ring span { width: 118px; height: 118px; background: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 700; }
.marks { text-align: left; max-width: 480px; margin: 18px auto; padding: 0; list-style: none; }
.marks li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.marks .tick { font-weight: 700; width: 20px; flex: none; }
.marks .tri { flex: 1; }
.mark-visual { flex: none; font-size: 1.2rem; letter-spacing: .05em; }
.mark-ok .tick { color: var(--green-d); } .mark-no .tick { color: var(--red-d); }
.feedback { margin-top: 26px; padding: 22px; border-radius: 18px; background: var(--soft); }
.fb-q { font-weight: 600; margin-top: 0; }
.fb-diff { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.pill input { position: absolute; opacity: 0; }
.pill > span { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; }
.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,0,0,.15); }
.fb-next { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Progress page */
.me-top { display: flex; gap: 30px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.stats { display: flex; gap: 26px; margin-top: 12px; }
.stats div { display: flex; flex-direction: column; } .stats b { font-size: 2rem; line-height: 1; } .stats span { color: var(--ink2); font-size: .85rem; }
.wheel { max-width: 100%; height: auto; } .wheel-label { font-size: 18px; font-weight: 700; font-family: var(--font); }
.wheel-box { flex: 0 1 auto; max-width: 100%; }
.reflections { display: grid; gap: 12px; }
.refl { padding: 14px 16px; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 12px 12px 0; }
.refl-q { font-size: .88rem; color: var(--ink2); margin-bottom: 4px; } .refl-a { font-size: 1.02rem; }

/* Physical record */
.phys-form { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; padding: 18px; background: color-mix(in srgb, var(--blue) 10%, #fff); border-radius: 16px; }
.phys-form .wide { grid-column: 1 / 4; }
@media (max-width: 760px) { .phys-form { grid-template-columns: 1fr 1fr; } .phys-form .wide { grid-column: 1 / -1; } }
.weeks { display: flex; gap: 10px; align-items: flex-end; height: 150px; }
.week { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.wbar { width: 100%; max-width: 46px; flex: 1; display: flex; align-items: flex-end; background: var(--soft); border-radius: 8px; overflow: hidden; }
.wbar span { width: 100%; background: var(--blue); border-radius: 8px; min-height: 2px; }
.week small { color: var(--ink3); font-size: .72rem; white-space: nowrap; }
.bests { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.best { padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; }
.best span { font-size: 1.4rem; font-weight: 700; color: var(--blue-d); } .best small { color: var(--ink3); }
.best-tag { background: var(--blue); color: #063a4d; padding: 1px 8px; border-radius: 99px; font-size: .72rem; font-weight: 700; margin-left: 4px; }

/* Informer */
.login-card { display: flex; gap: 16px; align-items: center; padding: 18px; border: 2px dashed var(--ink); border-radius: 16px; margin-bottom: 20px; max-width: 520px; }
.login-card code { font-size: 1.1rem; }
.results { margin-bottom: 10px; }

/* Designer */
.design-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.design-head .actions { justify-content: flex-end; }
.dnode h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-left: 5px solid var(--dc); padding-left: 10px; }
.dtable td:first-child { width: 55%; }
.status { font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.st-published { background: #eef7e8; color: var(--green-d); } .st-draft { background: var(--soft); color: var(--ink2); }
.num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink3); margin-right: 6px; }
.outline .trio { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.outline .trio legend, .qlabel { font-weight: 700; font-size: .92rem; padding: 0 4px; }
@media (max-width: 1000px) { .outline .trio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .outline .trio { grid-template-columns: 1fr; } }
.trio label.syl, .trio-inline .syl { color: var(--ink); } .trio label.rom, .trio-inline .rom { color: var(--ink2); } .trio label.en, .trio-inline .en, .trio label.fr, .trio-inline .fr { color: var(--ink3); }
.outline-box { border: 2px solid var(--ink); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.outline-box h2 { margin: 0; }
.values { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.values > span { font-size: .9rem; color: var(--ink2); width: 100%; }
.vbox { display: flex !important; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; color: #fff; font-weight: 700 !important; cursor: pointer; }
.vbox small { color: inherit !important; opacity: .85; }
.vbox.v-vehicle { color: #063a4d; }
.illus-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; } .thumb { max-height: 90px; border-radius: 10px; display: block; margin-bottom: 4px; }
.qcard { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; display: grid; gap: 10px; background: #fff; }
.qcard-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .qtools { margin-left: auto; }
.trio-inline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.trio-inline label { display: grid; gap: 3px; font-size: .78rem; font-weight: 600; }
@media (max-width: 1000px) { .trio-inline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .trio-inline { grid-template-columns: 1fr; } }
.options { display: grid; gap: 8px; padding: 10px; background: var(--soft); border-radius: 12px; }
.opt-row { display: grid; grid-template-columns: auto auto 1fr 1fr 1fr 1fr auto auto; gap: 6px; align-items: center; }
.opt-row .correct { display: flex; gap: 4px; align-items: center; font-size: .78rem; font-weight: 600; }
.ordnum { font-weight: 700; width: 24px; text-align: center; }
@media (max-width: 1000px) { .opt-row { grid-template-columns: auto auto 1fr 1fr; } }
.qadd { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px; border: 1.5px dashed var(--line); border-radius: 14px; }
.points input { max-width: 100px; }
.save-bar { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; background: rgba(255,255,255,.95); padding: 14px 0; border-top: 1px solid var(--line); z-index: 5; }
.save-bar .btn-danger { margin-left: auto; }
.snapshot { padding: 16px 20px; border: 1.5px solid var(--line); border-radius: 14px; }
.agreement { padding: 18px; background: var(--soft); border-radius: 14px; margin-bottom: 16px; }
.feltbar { display: flex; width: 120px; height: 10px; border-radius: 99px; overflow: hidden; background: var(--soft); }
.f-easy { background: var(--green); } .f-ok { background: #c9c9c9; } .f-hard { background: var(--red); }
.legend span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px 0 12px; vertical-align: middle; }

/* Library */
.lib-node h2 { border-left: 5px solid var(--dc); padding-left: 10px; }
.lib-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.lib-list a { display: block; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; }
.lib-list a:hover { border-color: var(--ink); }

/* Printing */
.print-body { background: #eee; }
.print { max-width: 820px; margin: 0 auto; padding: 20px; }
.print-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: #fff; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; }
.print-tools a { padding: 4px 10px; border-radius: 8px; text-decoration: none; border: 1px solid var(--line); }
.print-tools a.on { background: var(--ink); color: #fff; }
.sheet { background: #fff; padding: 36px 40px; margin-bottom: 20px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.06); font-size: 15px; }
.sheet-head { display: flex; gap: 18px; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px; }
.sheet-head h1 { font-size: 1.5rem; margin: 2px 0 0; }
.sheet-logo { width: 54px; height: auto; }
.sheet-code { font-weight: 700; font-size: .85rem; color: var(--ink2); letter-spacing: .04em; }
.scorebox { margin-left: auto; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 14px; text-align: center; min-width: 120px; }
.scorebox .big { font-size: 1.3rem; font-weight: 700; white-space: nowrap; }
.who { display: flex; gap: 10px 28px; flex-wrap: wrap; font-size: 1rem; margin: 14px 0 18px; align-items: flex-end; }
.who-f { display: flex; align-items: flex-end; gap: 8px; white-space: nowrap; min-width: 0; }
.who-name { flex: 3 1 260px; }
.who-user { flex: 2 1 170px; }
.who-date { flex: 2 1 170px; }
.who-line { flex: 1; min-width: 120px; height: 1.15cm; border-bottom: 1.5px solid #000; display: flex; align-items: flex-end; padding: 0 4px 3px; box-sizing: border-box; }
.who-line .filled { font-size: 1.05rem; }
.pq { padding-left: 1.3em; display: grid; gap: 16px; }
.pq > li { break-inside: avoid; }
.pq-prompt { font-weight: 600; } .pts { color: var(--ink3); font-weight: 400; font-size: .85em; }
.pq .visual { font-size: 2rem; text-align: left; padding: 6px 0; }
.pchoices, .porder { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 6px 0 0; }
.pchoices li, .porder li { display: flex; gap: 8px; align-items: center; }
.circle { font-size: 1.3rem; line-height: 1; }
.box { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 6px; font-weight: 700; }
.line { border-bottom: 1.5px solid var(--ink); height: 34px; max-width: 280px; display: flex; align-items: flex-end; padding-bottom: 2px; }
.lines div { border-bottom: 1px solid #bbb; height: 30px; }
.pcheck { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.keyed { color: var(--green-d); font-weight: 700; }
.sheet-foot { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink2); }
.track { width: 100%; border-collapse: collapse; } .track td, .track th { border: 1px solid #bbb; padding: 10px 8px; font-size: .9rem; text-align: left; }
.track td:nth-child(n+2) { width: 18%; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 14px; }
  .noprint, .top, .foot, .menu-toggle, .tabs, .searchbar, .two section:first-child { display: none !important; }
  .print { padding: 0; max-width: none; }
  .sheet { box-shadow: none; padding: 0; margin: 0; page-break-after: always; }
  .sheet:last-child { page-break-after: auto; }
  .tri-all .tri-rom { color: #333; } .tri-all .tri-en, .tri-all .tri-fr { color: #555; }
}

/* Translations */
.tr-progress { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 10px 0 20px; }
.tr-progress div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.tr-progress .bar { --dc: var(--green); height: 8px; }
.tr-filters { flex-wrap: wrap; }
.tr-sec { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); margin: 26px 0 6px; }
.tr-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tr-src { font-size: .95rem; }
.tr-en { font-weight: 600; margin-bottom: 4px; white-space: normal; }
.tr-key { font-size: .7rem; color: var(--ink3); }
.tr-cell { display: grid; gap: 3px; }
.tr-cell > span { font-size: .75rem; font-weight: 700; color: var(--ink3); }
.tr-cell input, .tr-cell textarea { padding: 8px 10px; font-size: .95rem; }
.tr-warn input, .tr-warn textarea { border-color: var(--red); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 900px) { .tr-row { grid-template-columns: 1fr; } }

/* Sign-in safety */
.security { max-width: 760px; margin: 0 auto; }
.sec-card { border: 1.5px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; }
.sec-card h2 { margin: 0 0 6px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.setup-steps { padding-left: 1.3em; display: grid; gap: 14px; }
.qr-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.qr svg { display: block; border: 1px solid var(--line); border-radius: 12px; }
.secret { display: inline-block; margin-top: 6px; font-size: 1rem; letter-spacing: .05em; word-break: break-all; }
.inline-code { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.inline-code input { width: auto; flex: 1 1 160px; }
.code-input { font-size: 1.5rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; max-width: 220px; }
.codes-box { border: 2px dashed var(--ink); border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; }
.codes { columns: 2; padding-left: 1.4em; font-size: 1.15rem; } .codes code { background: none; }
.turn-off { margin-top: 14px; } .turn-off summary { cursor: pointer; color: var(--red-d); }
.twostep { text-align: center; } .twostep .form { text-align: left; } .twostep .lock { font-size: 2.4rem; }
.twostep .code-input { max-width: none; }
tr.ev-fail td { color: var(--red-d); }
@media print { .security > *:not(.codes-box) { display: none !important; } .codes-box { border: 0; } }

/* Pictures in questions and answers */
.q-img { display: block; max-width: 100%; max-height: 320px; margin: 12px auto 4px; border-radius: 14px; object-fit: contain; }
.opt-img { display: block; width: 100%; max-height: 150px; object-fit: contain; margin-bottom: 6px; border-radius: 10px; }
.choice-box:has(.opt-img) { padding: 10px; }
.order-item .opt-img { width: 64px; height: 64px; margin: 0; display: inline-block; vertical-align: middle; }
.order-item > span { display: flex; align-items: center; gap: 10px; }
.mark-img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; flex: none; }
.pchoices .opt-img, .porder .opt-img { width: 90px; height: 90px; display: inline-block; vertical-align: middle; margin: 0 6px 0 0; }
.pq .q-img { margin: 6px 0; max-height: 200px; }
.qpic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 760px) { .qpic-row { grid-template-columns: 1fr; } }
.pic { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.pic-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.pic-small .pic-thumb { width: 40px; height: 40px; border-radius: 8px; }
.pic-small { gap: 2px; margin: 0; flex-wrap: nowrap; }
.pic-small .pic-tools { display: flex; flex-direction: column; }
.pic-small .pic-tools .linkish { padding: 0 4px; font-size: .8rem; }
.pic-add-small { width: 40px; height: 40px; border: 1.5px dashed #ccc; border-radius: 8px; background: #fff; cursor: pointer; font-size: 1.1rem; }
.pic-add-small:hover { border-color: var(--ink); }
.pic-status:empty { display: none; }
/* Whichever language comes first is shown as the main text */
.tri-all > :first-child { color: inherit !important; font-size: inherit !important; font-weight: inherit !important; }

/* Translate activities */
.trA-group { margin-top: 26px; }
.trA-group h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.1rem; border-left: 5px solid var(--dc); padding-left: 10px; }
.trA-row { display: grid; grid-template-columns: 140px repeat(4, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.trA-label { font-size: .85rem; font-weight: 600; color: var(--ink2); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.trA-label .pic-thumb { width: 54px; height: 40px; }
.trA-empty input, .trA-empty textarea { background: #fffbea; border-color: #f0d98a; }
@media (max-width: 1000px) { .trA-row { grid-template-columns: 1fr 1fr; } .trA-label { grid-column: 1 / -1; padding-top: 0; flex-direction: row; } }
.foot .version { color: var(--ink3); margin-left: 6px; font-size: .8rem; }

/* Difficulty */
.diff-box { border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; }
.diff-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.diff-head h2 { margin: 0; }
.diff-score { display: flex; align-items: baseline; gap: 4px; }
.diff-score b { font-size: 2rem; line-height: 1; }
.diff-score small { margin-left: 8px; color: var(--ink2); }
.diff-q { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: center; }
.diff-q-name { font-weight: 600; font-size: .92rem; }
.diff-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.diff-opt { position: relative; cursor: pointer; }
.diff-opt input { position: absolute; opacity: 0; }
.diff-opt span { display: block; height: 100%; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .85rem; font-weight: 500; }
.diff-opt span b { display: inline-block; width: 20px; color: var(--ink3); }
@media (hover: hover) { .diff-opt:hover span { border-color: #9a9a9a; } }   /* 3.36: no grey border left behind after a tap on phones */
.diff-opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.diff-opt input:checked + span b { color: var(--ink); }
.diff-opt input:focus-visible + span { outline: 3px solid #ccc; }
@media (max-width: 760px) { .diff-q { grid-template-columns: 1fr; } .diff-opts { grid-template-columns: 1fr 1fr; } }
.diff-place p { margin: 4px 0; padding: 8px 12px; border-radius: 10px; font-size: .92rem; }
.diff-sug { background: var(--soft); }
.diff-warn { background: #fff7e0; border: 1px solid #f3dc9a; }
.diff-good { background: #eef7e8; color: var(--green-d); }
.diff-warn-inline { color: #9a6b00; margin-top: 2px; }
.dbadge { display: inline-grid; place-items: center; min-width: 30px; padding: 2px 7px; border-radius: 99px; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dbadge-none { background: var(--soft); color: var(--ink3); }
.dbadge-1 { background: #e8f4fb; color: #1f6f8b; } .dbadge-2 { background: #e5f3dc; color: #3f7a1f; }
.dbadge-3 { background: #fff1c9; color: #8a6200; } .dbadge-4 { background: #fde2cf; color: #a24a0c; } .dbadge-5 { background: #fbd5da; color: #a1172b; }
.cal-cal_harder { color: #a24a0c; } .cal-cal_easier { color: #1f6f8b; } .cal-cal_ok { color: var(--green-d); } .cal-cal_wait { color: var(--ink3); }
.table.stats { display: table; }

/* About */
.about { max-width: 900px; margin: 0 auto; }
.about-hero { display: flex; gap: 36px; align-items: center; padding: 10px 0 20px; }
.about-hero img { flex: none; animation: rise .9s ease both; }
@media (max-width: 700px) { .about-hero { flex-direction: column; text-align: center; gap: 16px; } .about-hero img { width: 150px; } }
.about-nav { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 10px 0 10px; position: sticky; top: 63px; background: rgba(255,255,255,.96); z-index: 4; }
.about-nav a { padding: 6px 14px; border-radius: 99px; text-decoration: none; border: 1px solid var(--line); font-size: .9rem; }
.about-nav a:hover { border-color: var(--ink); }
.about section { scroll-margin-top: 130px; padding-bottom: 10px; }
.about h2 { font-size: 1.6rem; margin-top: 1.6em; }
.about section > p { font-size: 1.05rem; max-width: 740px; }
.about-vision blockquote { margin: 0; padding: 22px 26px; font-size: 1.3rem; line-height: 1.5; border-left: 6px solid var(--green); background: linear-gradient(90deg, #f3f9ef, #fff); border-radius: 0 16px 16px 0; }
.about h3 { margin-top: 1.6em; }
.colours { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sw { display: inline-block; width: 18px; height: 18px; border-radius: 4px; } .sw-g { background: var(--green); } .sw-r { background: var(--red); } .sw-b { background: var(--blue); margin-right: 6px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 16px; }
.logo-part { margin: 0; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.logo-part-big { grid-column: span 2; }
@media (max-width: 480px) { .logo-part-big { grid-column: auto; } }
.logo-img { height: 160px; display: grid; place-items: center; }
.logo-part-big .logo-img { height: 300px; }
.logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-part figcaption { display: flex; flex-direction: column; gap: 2px; }
.logo-part figcaption span { color: var(--ink2); font-size: .95rem; }
.foot a { color: inherit; text-decoration: none; }
.logo-img img { max-height: 160px; width: auto; height: auto; }
.logo-part-big .logo-img img { max-height: 300px; }
.about-hero .lead { margin: 0 0 .8em; max-width: none; }
.about-nav { background: #fff; } .top { background: #fff; }

/* Sound */
.play { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: .85rem; color: var(--ink); vertical-align: middle; flex: none; padding: 0 0 0 2px; }
.play:hover { border-color: var(--ink); }
.play.playing { background: var(--ink); color: #fff; border-color: var(--ink); }
legend .play { margin-left: 6px; }
.instr { display: flex; gap: 10px; align-items: flex-start; }
.choice-box .play { position: absolute; bottom: 6px; right: 6px; width: 30px; height: 30px; }
.order-item .play { width: 30px; height: 30px; }
.aud { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.aud-small { flex-wrap: nowrap; gap: 2px; }
.aud-small .play { width: 30px; height: 30px; }
.opt-media { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.rec.recording { background: var(--red); color: #fff; border-color: var(--red); animation: breathe 1.4s infinite; }
.act-audio { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 2px; }

/* Privacy and consent (2.0) */
.agebox { border: 1px solid var(--line, #e5e5e5); border-radius: 10px; padding: 8px 14px 10px; margin: 0; }
.agebox legend { padding: 0 6px; font-weight: 600; }
.agebox label.check { display: inline-flex; margin-right: 18px; }
.consentbox { border-left: 3px solid #f2c94c; padding: 4px 0 4px 12px; display: grid; gap: 8px; }
.consentbox[hidden] { display: none; }
.consent ul, .privacy ul { padding-left: 20px; }
.consent ul li, .privacy ul li { margin: 4px 0; }
.consent-sheet { font-size: 1.05rem; }
.form-lines p { margin: 18px 0; }
.contact-box { border: 1px solid var(--line, #e5e5e5); border-radius: 10px; padding: 10px 14px; display: inline-block; font-weight: 600; }
.danger-zone { margin-top: 18px; border: 1px solid #f4c2c8; border-radius: 10px; padding: 8px 14px; }
.danger-zone summary { cursor: pointer; color: var(--red-d); font-weight: 600; }
pre.code { background: #f6f6f4; border: 1px solid #e5e5e5; border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: .85rem; white-space: pre-wrap; word-break: break-all; }

/* Groups (2.0) */
.group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 14px 0; }
.group-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid #e5e5e5; border-radius: 12px; text-decoration: none; color: inherit; background: #fff; }
.group-card:hover { border-color: #bbb; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.inline-form input { flex: 1 1 220px; }
.table-wrap { overflow-x: auto; }
.class-table td { vertical-align: top; }
.row-stuck { background: #fff8e6; }
.flag { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 99px; background: #f1f1ef; margin: 0 4px 4px 0; white-space: nowrap; text-decoration: none; color: inherit; }
.flag-stuck { background: #ffe9b8; }
.flag-review { background: #dff0ff; }
.badge-count { font-size: .8rem; color: #b07d00; margin-left: 6px; }
.pick-list { display: grid; gap: 4px; max-height: 260px; overflow: auto; border: 1px solid #eee; border-radius: 8px; padding: 8px; }
b.filled { font-weight: 700; border-bottom: 1px solid #999; padding: 0 6px; }

/* Review before publishing (2.0) */
.review-panel, .review-box { border: 2px solid #f2c94c; background: #fffbea; border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.review-box h2 { font-size: 1.05rem; margin: 4px 0 6px; }
.review-box ul { margin: 0; padding-left: 18px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.review-actions textarea { flex: 1 1 240px; min-height: 42px; }
.status.st-review { background: #fff1c2; color: #7a5a00; }

/* Badges and certificates (2.0) */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin: 10px 0 18px; }
.badge-item { text-align: center; }
.badge-item svg { display: block; margin: 0 auto 4px; }
.badge-name { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.give-badge { margin: 0 0 18px; }
.give-badge summary { cursor: pointer; font-weight: 600; }
.give-badge label.check { align-items: flex-start; }
.new-badge { display: inline-flex; gap: 14px; align-items: center; text-align: left; background: #fffbea; border: 2px solid #f2c94c; border-radius: 16px; padding: 10px 18px; margin: 8px auto 12px; animation: pop .5s ease-out; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.certificate { max-width: 900px; margin: 0 auto; text-align: center; border: 10px double #c9a227; padding: 34px 40px; background: #fff; }
.cert-logo { width: 120px; }
.cert-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .9rem; color: #9a7400; margin-top: 8px; }
.cert-given, .cert-for { font-style: italic; color: #555; margin-top: 14px; }
.cert-name { font-size: 2.4rem; font-weight: 700; margin: 6px 0; border-bottom: 1px solid #ccc; display: inline-block; padding: 0 30px 4px; }
.cert-badge { margin: 14px 0 0; }
.cert-title { font-size: 1.6rem; font-weight: 700; margin-top: 4px; }
.cert-desc, .cert-note { max-width: 560px; margin: 8px auto; }
.cert-note { font-style: italic; }
.cert-foot { display: flex; justify-content: space-around; margin-top: 30px; gap: 20px; }
.cert-foot div { display: flex; flex-direction: column; min-width: 200px; }
.cert-foot span { border-bottom: 1px solid #333; min-height: 1.6em; padding-bottom: 2px; }
.cert-foot small { color: #666; margin-top: 4px; }
@page cert { size: landscape; }
@media print { .certificate { page: cert; border-width: 8px; } }

/* Show your experiment (2.0) */
.experiment { display: grid; gap: 10px; }
.experiment textarea { width: 100%; }
.photo-pick { display: flex; flex-direction: column; gap: 6px; border: 2px dashed #ccc; border-radius: 12px; padding: 12px; }
.photo-pick span { font-weight: 600; }
.exp-review { border: 1px solid #e5e5e5; border-radius: 12px; padding: 14px 16px; margin: 14px 0; display: grid; gap: 10px; background: #fff; }
.exp-answer { border-top: 1px solid #f0f0f0; padding-top: 10px; display: grid; gap: 6px; }
.exp-q { font-weight: 600; }
.exp-photo { max-width: 100%; max-height: 320px; border-radius: 8px; display: block; }
.exp-answer blockquote { margin: 0; padding: 8px 12px; background: #f7f7f5; border-radius: 8px; }
.pts-pick select { width: auto; }
.flash-info { background: #eaf4ff; border-color: #bcdcf7; }
.pexp .drawbox { border: 1px dashed #999; height: 160px; margin-top: 8px; display: flex; align-items: flex-end; padding: 6px; font-size: .8rem; color: #888; }
.breath { font-size: 1.4rem; margin-right: 6px; }

/* Calm breathing (2.0) */
.calm { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; }
.calm-circle { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #cfe8f7, #7fbde3); display: flex; align-items: center; justify-content: center; transform: scale(.7); transition: transform 4s ease-in-out; }
.calm-circle.grow { transform: scale(1.35); }
.calm-circle.shrink { transform: scale(.7); transition-duration: 5s; }
.calm-circle.finished { transform: scale(1); background: radial-gradient(circle, #d8f3e0, #7cc79a); transition-duration: .6s; }
.calm-word { font-weight: 600; color: #0b3c5d; font-size: .95rem; text-align: center; padding: 0 6px; }
.calm-count { color: #666; }
@media (prefers-reduced-motion: reduce) { .calm-circle { transition: none; } }

/* Agenda (2.0) */
.soon { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.soon-card { border: 2px solid #f2c94c; background: #fffbea; border-radius: 14px; padding: 12px 16px; }
.soon-card h2 { margin: 4px 0 6px; font-size: 1.15rem; }
.soon-when { font-size: .85rem; font-weight: 700; color: #7a5a00; }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.month { border: 1px solid #e5e5e5; border-radius: 12px; padding: 10px 14px; background: #fff; }
.month.now { border-color: #333; }
.month h2 { font-size: 1rem; margin: 2px 0 8px; text-transform: capitalize; }
.month ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.month li { display: flex; gap: 10px; }
.month .day { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #f1f1ef; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.node-chip { display: inline-block; font-size: .78rem; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--dc, #ccc); color: var(--dcd, #333); text-decoration: none; margin: 4px 4px 0 0; }
.map-soon { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.soon-chip { font-size: .88rem; padding: 6px 12px; border-radius: 99px; background: #fffbea; border: 1px solid #f2c94c; text-decoration: none; color: inherit; }

/* Offline (2.0) */
.offline-only { display: none !important; }
body.is-offline .offline-only { display: inline-flex !important; }
.offline-bar { background: #1d1d1b; color: #fff; text-align: center; padding: 8px 14px; font-size: .9rem; }
.offline-waiting { background: #eaf4ff; border: 1px solid #bcdcf7; border-radius: 10px; padding: 8px 14px; margin: 10px 0; font-size: .9rem; }
.offline-done { text-align: center; padding: 30px 10px; }
.offline-done .big { font-size: 3rem; color: var(--green-d, #1d6b3c); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1d1d1b; color: #fff; padding: 10px 18px; border-radius: 99px; z-index: 50; font-size: .9rem; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
[hidden] { display: none !important; }
.calm-circle { margin: 28px 0; }
/* Staff see more menu links: keep them on one line, and use the ☰ menu sooner. */
body.staff .menu > a { padding: 8px 9px; font-size: .9rem; }
@media (max-width: 1300px) {
  body.staff .menu-toggle { display: block; }
  body.staff .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  body.staff .menu.open { display: flex; }
  body.staff .menu > a { padding: 12px; font-size: .95rem; }
  body.staff .langswitch { margin: 8px 0; align-self: flex-start; flex-wrap: wrap; }
}

/* Credits and payments (2.1) */
.credit { color: var(--ink3, #777); font-size: .9rem; text-align: center; margin: 18px 0 0; }
.pay-totals { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.pay-totals div { border: 1px solid #e5e5e5; border-radius: 12px; padding: 10px 18px; display: flex; flex-direction: column; min-width: 160px; background: #fff; }
.pay-totals b { font-size: 1.5rem; }
.pay-totals span { color: #777; font-size: .85rem; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.subtabs a { padding: 6px 14px; border-radius: 99px; border: 1px solid #e5e5e5; text-decoration: none; color: inherit; font-size: .92rem; }
.subtabs a.on { background: #1d1d1b; color: #fff; border-color: #1d1d1b; }
input.money { width: 110px; text-align: right; flex: 0 0 auto !important; }
.pay-form { flex-wrap: nowrap; margin: 0; }
.owed-card { border: 1px solid #e5e5e5; border-radius: 12px; padding: 12px 16px; margin: 12px 0; display: grid; gap: 10px; background: #fff; }
.owed-card header { display: flex; justify-content: space-between; align-items: baseline; }
.owed-total { font-size: 1.3rem; font-weight: 700; }
.owed-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.owed-items li { display: flex; align-items: center; gap: 8px; }
.owed-items li label { flex: 1; }
.owed-items .amt { font-variant-numeric: tabular-nums; }

/* Illustrations (2.2) */
.ill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 10px 0 24px; }
.ill-card { border: 1px solid #e5e5e5; border-radius: 14px; padding: 14px 16px; background: #fff; display: grid; gap: 8px; align-content: start; }
.ill-card.st-submitted { border-color: #f2c94c; }
.ill-card.st-approved { border-color: #9fd3b0; }
.ill-card header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ill-price { font-weight: 700; white-space: nowrap; }
.ill-details { margin: 0; font-size: .92rem; }
.ill-pics { display: flex; gap: 10px; flex-wrap: wrap; }
.ill-pics figure { margin: 0; }
.ill-pics img { max-width: 130px; max-height: 110px; border-radius: 8px; border: 1px solid #eee; display: block; object-fit: contain; background: #fafafa; }
.ill-pics figcaption { font-size: .75rem; color: #777; }
.ill-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ill-card blockquote { margin: 0; padding: 6px 10px; background: #f7f7f5; border-radius: 8px; }
.ill-review { gap: 8px; }
.illus-page .lead, .payments .lead, .groups .lead, .informer .lead, .admin .lead, .design .lead { margin-left: 0; margin-right: 0; text-align: left; }

/* Thanks page (2.3) */
.credits-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 10px 0 20px; }
.credits-head .lead { margin: 0; text-align: left; }
.credits-head .btn { margin-left: auto; }
.funders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 10px 0 24px; }
.funder { border: 1px solid #e5e5e5; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; text-decoration: none; color: inherit; background: #fff; }
.funder img { max-height: 70px; max-width: 180px; object-fit: contain; margin-bottom: 4px; }
.people-list { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 20px; }
.people-list li { display: flex; flex-direction: column; border-left: 3px solid #e5e5e5; padding: 2px 0 2px 12px; }
.people-list span { color: #555; font-size: .92rem; }

/* Font page (2.4) */
.font-preview { border: 1px solid #e5e5e5; border-radius: 14px; padding: 16px 20px; margin: 10px 0 20px; background: #fff; }
.font-preview p { margin: 8px 0; }
.fp-big { font-size: 2rem; line-height: 1.3; }
.fp-mid { font-size: 1.3rem; }

/* Sign-up and site (2.8) */
.settings-card { border: 1px solid #e5e5e5; border-radius: 14px; padding: 14px 18px; margin: 16px 0; background: #fff; }
.settings-card h2 { margin-top: 4px; }
.settings-card.is-closed { border-color: #e04a5f; }
.closed-bar { background: #9c2235; color: #fff; text-align: center; padding: 8px 14px; font-size: .92rem; }
.closed-bar a { color: #fff; font-weight: 700; }
.closed-panel { text-align: center; margin-top: 40px; }

/* Clear way back to the map (2.10) */
.crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1.5px solid var(--line, #ddd); border-radius: 99px; background: #fff; color: var(--ink, #1d1d1b); text-decoration: none; font-weight: 600; font-size: .95rem; }
.crumbs a:hover { border-color: var(--ink, #1d1d1b); }
.crumbs { margin: 0 0 14px; }
.fb-map { margin-top: 14px; display: flex; justify-content: center; }
.btn-map { min-width: 220px; }
.done-badge { text-align: center; }
@media (max-width: 760px) {
  .node-hero-side { align-items: stretch; flex: 1 1 100%; }
  .node-hero-side .btn, .node-hero-side .done-badge { width: 100%; justify-content: center; text-align: center; }
}

/* Animations (2.11) */
.anim { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 8px; margin: 6px 0 12px; border-radius: 14px; background: #f8f8f6; }
.add-anim-label { display: block; width: 100%; margin: 8px 0 2px; font-weight: 600; font-size: .9rem; }
.btn-anim { border-color: #c9b6f2; }
.anim-answer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.anim-answer input { max-width: 140px; }
/* Count with me */
.count-stage { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 86px; }
.count-item { display: flex; flex-direction: column; align-items: center; animation: popin .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.ci-thing { font-size: 2.6rem; line-height: 1.1; }
.ci-num { font-weight: 700; color: var(--ink2, #555); }
@keyframes popin { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* Timer */
.anim-timer { position: relative; }
.timer-ring { width: 170px; height: 170px; transform: rotate(-90deg); }
.tr-bg { fill: none; stroke: #e7e7e3; stroke-width: 10; }
.tr-fg { fill: none; stroke: var(--dcd, #1d1d1b); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer-num { position: absolute; top: 14px; left: 0; right: 0; height: 170px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.anim-timer.done .timer-num { color: var(--green-d, #1d6b3c); }
.anim-buttons { display: flex; gap: 8px; }
/* Compare */
.anim-compare { align-items: stretch; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr; gap: 10px; align-items: center; }
.bar-label { font-weight: 600; text-align: right; }
.bar-track { background: #ecece8; border-radius: 99px; height: 30px; overflow: hidden; }
/* Only the bars of Compare questions (not the progress bars on the map and elsewhere) */
.bar-track .bar { height: 100%; width: 0; background: var(--dc, #67b13e); border-radius: 99px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: #fff; font-weight: 700; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.bar-track .bar span { opacity: 0; transition: opacity .3s 1.2s; }
.anim-compare.grown .bar { width: var(--w); }
.anim-compare.grown .bar span { opacity: 1; }
.anim-compare .anim-play { align-self: center; }
/* Pattern */
.pattern-stage { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 2.2rem; min-height: 60px; }
.pt { opacity: .12; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.pt.on { opacity: 1; transform: none; }
.pt-q.on { color: var(--dcd, #1d1d1b); font-weight: 700; border: 3px dashed currentColor; border-radius: 12px; padding: 0 12px; animation: pulseq 1.2s ease-in-out infinite; }
@keyframes pulseq { 50% { transform: scale(1.15); } }
/* Moon */
.moon-svg { width: 160px; height: 160px; background: #0f1d33; border-radius: 50%; }
.moon-dark { fill: #2a3550; }
.moon-lit { fill: #f6efc9; }
.moon-range { width: min(320px, 90%); }
/* Heart */
.heart-svg { width: 120px; fill: #e04a5f; transform-origin: 50% 55%; }
.heart-svg.beat { animation: beat .32s ease-out; }
@keyframes beat { 30% { transform: scale(1.22); } 100% { transform: scale(1); } }
.heart-time { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Paper */
.pbars .bar { width: auto; background: #999; }
.pbars .bar-row { margin: 4px 0; }
.moon-row { font-size: 1.8rem; letter-spacing: 6px; }
@media (prefers-reduced-motion: reduce) { .count-item, .pt-q.on { animation: none; } .bar-track .bar { transition: none; } }

/* Milestones (2.12) */
.ms-list { display: grid; gap: 14px; margin: 12px 0 24px; }
.ms-card { border: 1px solid #e5e5e5; border-left: 6px solid #cfcfca; border-radius: 14px; padding: 14px 18px; background: #fff; display: grid; gap: 8px; }
.ms-card.ms-reached { border-left-color: #2e9e5b; }
.ms-card.ms-late { border-left-color: #e04a5f; }
.ms-card header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.ms-card h2 { margin: 0; font-size: 1.2rem; }
.ms-when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ms-desc { margin: 0; }
.ms-bar { height: 12px; background: #ecece8; border-radius: 99px; overflow: hidden; }
.ms-bar span { display: block; height: 100%; background: #2e9e5b; border-radius: 99px; }
.ms-planned td { vertical-align: middle; }
.ms-picks { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 6px 0; }
.ms-picks b { width: 100%; font-size: .9rem; }
.ms-picks .pick { font-size: .92rem; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status.st-planned { background: #e8e2fb; color: #4b3a8c; }
.timeline { position: relative; margin: 16px 0 28px; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 140px; top: 0; bottom: 0; width: 3px; background: #e5e5e5; }
.tl-item { position: relative; display: grid; grid-template-columns: 122px 36px 1fr; align-items: start; margin: 0 0 16px; }
.tl-date { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #999; margin: 3px auto 0; position: relative; z-index: 1; }
.tl-done .tl-dot { background: #2e9e5b; border-color: #2e9e5b; }
.tl-late .tl-dot { border-color: #e04a5f; }
.tl-late .tl-date { color: #9c2235; }
.tl-body { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 10px 14px; display: grid; gap: 6px; }
.tl-now { position: relative; height: 0; border-top: 2px dashed #e04a5f; margin: 26px 0 22px 122px; }
.tl-now span { position: absolute; top: -22px; left: 30px; font-size: .8rem; color: #9c2235; background: #fff; padding: 0 6px; }
.tl-head { margin: 18px 0 10px 158px; }
@media (max-width: 600px) {
  .timeline::before { left: 95px; }
  .tl-item { grid-template-columns: 80px 30px 1fr; }
  .tl-date { font-size: .78rem; }
  .tl-now { margin-left: 80px; } .tl-head { margin-left: 110px; }
}
@media print { .milestones .crumbs, .milestones .actions { display: none !important; } .ms-card, .tl-body { break-inside: avoid; } }

/* Cycling wheel (2.13) */
.wheel-legend { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: .92rem; }
.wheel-legend li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wheel-legend li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); align-self: center; }
.wheel-legend span { color: var(--ink2, #555); }
.wheel-help summary { cursor: pointer; font-size: .9rem; color: var(--ink2, #555); margin-top: 6px; }
.wheel-help p { max-width: 420px; }
.wheel-table th, .wheel-table td { vertical-align: middle; }
.wheel-table .lv { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #f1f1ef; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; margin-right: 4px; }
.wheel-table .mini { height: 6px; background: #eee; border-radius: 9px; overflow: hidden; margin-bottom: 3px; min-width: 90px; }
.wheel-table .mini span { display: block; height: 100%; }
.wheel-table td { font-size: .88rem; }
.new-dot .dot-big { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.new-dot .dot-big svg { display: block; }
.wheel-step { margin: 4px 0 10px; }
@media (max-width: 640px) {
  .wheel-table thead { display: none; }
  .wheel-table, .wheel-table tbody, .wheel-table tr, .wheel-table th, .wheel-table td { display: block; width: 100%; }
  .wheel-table tr { border: 1px solid #eee; border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
  .wheel-table th { border: 0; padding: 2px 0 6px; text-transform: none; font-size: .95rem; color: var(--ink, #1d1d1b); }
  .wheel-table td { border: 0; padding: 4px 0; }
  .wheel-table td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .8rem; color: var(--c, #999); }
  .wheel-table td.wt-empty { display: none; }
}

/* Roman → syllabics (2.14) */
.sylwrap { position: relative; display: block; min-width: 0; }
.sylwrap > input, .sylwrap > textarea { width: 100%; padding-right: 44px; box-sizing: border-box; }
.syl-toggle, .rom-to-syl { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); border: 1px solid #ccc; background: #fff; border-radius: 99px; padding: 1px 7px; font: inherit; font-size: .78rem; line-height: 1.5; cursor: pointer; color: #555; width: auto; min-width: 0; z-index: 1; }
.sylwrap-area .syl-toggle, .sylwrap-area .rom-to-syl { top: 6px; transform: none; }
.syl-toggle.on { background: #1d1d1b; color: #fff; border-color: #1d1d1b; }
.rom-to-syl:hover, .syl-toggle:hover { border-color: #1d1d1b; }
.flash-fill { box-shadow: 0 0 0 3px #f2c94c !important; transition: box-shadow .3s; }
.syl-setting { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; border: 1px solid #eee; border-radius: 12px; padding: 8px 14px; margin: 10px 0; font-size: .92rem; }

/* Tracing sheets (2.15) */
.trace-card { display: flex; gap: 16px; align-items: center; border: 1.5px dashed #bbb; border-radius: 14px; padding: 12px 18px; margin: 10px 0 20px; text-decoration: none; color: inherit; background: #fff; }
.trace-card:hover { border-color: #1d1d1b; }
.trace-card-sample { font-size: 2rem; color: rgba(29, 29, 27, .25); border-bottom: 2px solid rgba(29, 29, 27, .5); line-height: 1.1; padding: 0 6px; }
.trace-tools { background: #fff; border-radius: 14px; padding: 16px 20px; margin-bottom: 18px; }
.trace-tools h1 { margin: 4px 0; }
.trace-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
@media (max-width: 760px) { .trace-grid { grid-template-columns: 1fr; } }
.trace-text label, .trace-settings label { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; font-weight: 600; }
.trace-text textarea { font-size: 1.2rem; min-height: 140px; }
.trace-settings fieldset { border: 1px solid #eee; border-radius: 12px; padding: 8px 14px; margin: 0 0 10px; }
.trace-settings label.check { flex-direction: row; font-weight: 500; }
.trace-settings b { font-weight: 500; color: #666; }
.trace-actions { display: flex; gap: 12px; align-items: center; }
.trace-sheet h1:empty { display: none; }
.trace-rows { margin-top: 14px; }
.trace-row { display: block; break-inside: avoid; page-break-inside: avoid; overflow: visible; }
.trace-text { font-family: var(--font); letter-spacing: .04em; }
@media print {
  .trace-body .trace-tools { display: none !important; }
  .trace-row { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.trace-body main { width: 100%; box-sizing: border-box; }
.trace-sheet { width: 100%; box-sizing: border-box; }

/* Usage (2.22) */
.usage-range { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 8px 0 4px; }
.usage-range .presets { display: flex; flex-wrap: wrap; gap: 6px; }
.usage-range .chip { font-size: .88rem; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; background: #fff; }
.usage-range .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.usage-range label { display: flex; gap: 6px; align-items: center; font-size: .9rem; }
.usage-range input[type=date] { padding: 6px 8px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.usage-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.usage-kpis .kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.usage-kpis .kpi b { font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.usage-kpis .kpi span { font-size: .85rem; color: var(--ink2); }
.usage-kpis.small-kpis .kpi b { font-size: 1.4rem; }
.usage-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.usage-charts h3 { font-size: .95rem; margin: 0 0 6px; color: var(--ink2); font-weight: 600; }
.usage-chart { width: 100%; height: auto; display: block; }
.usage-chart .ax { font-size: 11px; fill: var(--ink3); }
.usage-table td:not(:first-child), .usage-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage-table tr.quiet td { color: var(--ink3); }
.dimdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.usage-list { padding-left: 1.4em; margin: 0; } .usage-list li { margin: 4px 0; }
@media (max-width: 760px) { .usage-charts, .usage-two { grid-template-columns: 1fr; gap: 10px; } .usage-chart .ax { font-size: 20px; } }
@media print { .usage .tabs, .usage-range, .usage .btn { display: none !important; } }

/* Translation spreadsheet (2.23) */
.tf-two { align-items: start; }
.tf-card { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 20px 16px; }
.tf-card h2 { margin-top: .8em; }
.tf-card label { display: block; margin: 10px 0; }
.tf-card select, .tf-card input[type=file] { display: block; width: 100%; margin-top: 4px; }
.tf-card label.check { display: flex; gap: 8px; align-items: center; }
.tf-langs { border: 0; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tf-langs legend { padding: 0; margin-bottom: 4px; }
.tf-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-summary { padding-left: 1.2em; } .tf-summary .warn { color: #8a5a00; }
.tf-changes td { vertical-align: top; }
.tf-changes .tf-old { color: var(--ink2); background: #fbf3f3; }
.tf-changes .tf-new { background: #f1f8ec; }
@media (max-width: 760px) {
  .tf-two { grid-template-columns: 1fr; gap: 16px; }
  .tf-changes thead { display: none; }
  .tf-changes tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tf-changes td { display: block; border: 0; padding: 4px 6px; }
  .tf-changes td::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
}

/* Sister activities and mastery (2.24) */
.sister-panel { border: 2px solid #c9e4f2; background: #f2f9fd; border-radius: 12px; padding: 10px 16px; margin: 12px 0; }
.sister-panel .sister-list { margin-left: 10px; }
.sister-panel .sister-list a { display: inline-block; padding: 2px 10px; border-radius: 99px; border: 1px solid #c9e4f2; background: #fff; text-decoration: none; font-variant-numeric: tabular-nums; margin: 2px 2px 2px 0; }
.sister-panel .sister-list a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sister-panel p { margin: 6px 0 0; }
.mastery-form { margin: -6px 0 8px; color: var(--ink2); }
.mastery-form label { display: inline-flex !important; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.mastery-form select { font: inherit; width: auto !important; display: inline-block; padding: 3px 8px; border-radius: 8px; border: 1px solid #ddd; margin: 0; }

/* Machine translation (2.25) */
.mt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; margin: 12px 0; border: 1px dashed #b9d7ea; background: #f5fafd; border-radius: 12px; position: sticky; top: 8px; z-index: 5; }
.mt-bar b { font-size: .92rem; }
.mt-bar .mt-status { color: var(--ink2); flex-basis: 100%; }
.mt-filled { background: #fff9db !important; box-shadow: inset 0 0 0 2px #f2d36b !important; }
.mt-filled.mt-draft { background: #fff1e6 !important; box-shadow: inset 0 0 0 2px #f2a86b !important; }
.mt-state { font-size: .8rem; vertical-align: middle; padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.mt-state.on { background: #e5f4e4; color: var(--green-d); } .mt-state.off { background: #f0efec; color: var(--ink2); }
.mt-two { align-items: start; }
.mt-card { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 20px 14px; margin-bottom: 16px; }
.mt-card label { display: block; margin: 12px 0; }
.mt-card label input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; }
.mt-card .switch-row, .mt-card label.check { display: flex; gap: 8px; align-items: center; }
.mt-meter { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-top: 10px; } .mt-meter span { display: block; height: 100%; background: var(--blue-d); }
.mt-steps li { margin: 4px 0; }
@media (max-width: 760px) { .mt-two { grid-template-columns: 1fr; gap: 0; } .mt-bar { position: static; } }
.tr-title-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.tr-title-row .sylwrap, .tr-title-row > input { flex: 1; min-width: 0; }
.tr-title-row .btn { flex: none; }

/* Sisters page and side-by-side editor (2.27) */
.sis-path { margin: 26px 0; padding-left: 14px; border-left: 4px solid var(--line); }
.sis-path.d-intellectual { border-color: var(--green); } .sis-path.d-emotional { border-color: var(--red); } .sis-path.d-physical { border-color: var(--blue); }
.sis-path h2 { margin: 0 0 6px; }
.sis-path-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 4px 0 8px; }
.sis-path-tools .mastery-form { margin: 0; }
.inline-form { display: inline; margin: 0; }
.sis-plan > summary { list-style: none; cursor: pointer; } .sis-plan > summary::-webkit-details-marker { display: none; }
.sis-plan-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; padding: 10px 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sis-plan-form label { margin: 0; } .sis-plan-form p { flex-basis: 100%; margin: 0; }
.sis-ok { color: var(--green-d); font-weight: 600; }
.sis-table td { vertical-align: middle; }
.sis-main .num { color: var(--ink3); font-weight: 600; margin-right: 4px; }
.sis-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sis-chip { font-size: .8rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; background: #fff; white-space: nowrap; }
.sis-chip.st-published { border-color: #b9dfb0; background: #f1f8ec; } .sis-chip.st-review { border-color: #f3dc9a; background: #fff7e0; } .sis-chip.st-planned { border-style: dashed; }
.sis-chip.sis-missing { border-style: dashed; color: var(--ink3); }
.sis-count { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; } .sis-count.short { color: #b5620b; } .sis-count.ok { color: var(--green-d); }
.swap-box { border: 2px solid #c9e4f2; background: #f2f9fd; border-radius: 14px; padding: 6px 18px 12px; margin: 14px 0; }
.swap-box h2 { margin: .6em 0 .2em; font-size: 1.1rem; }
.swap-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; } .swap-row input { flex: 1; min-width: 0; }
.swap-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.sis-block { border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px 12px; margin: 14px 0; }
.sis-block legend { font-weight: 700; padding: 0 6px; }
.sis-trio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sis-cell { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.sis-lang { font-size: .78rem; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
.sis-orig { font-size: .88rem; color: var(--ink2); background: var(--soft); border-radius: 8px; padding: 5px 8px; min-height: 1.9em; }
.sis-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; margin: 10px 0 0; }
.sis-opt { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 8px; }
.sis-opt-head { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.sis-val { width: 90px; display: inline-block; }
.sis-pic { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; } .sis-pic img { height: 54px; border-radius: 8px; }
.sister-editor .sw.same { border-style: dashed !important; border-color: #d9a441 !important; }
.sister-editor .sw.swapped { background: #eef8ff; }
.sis-legend { display: flex; gap: 14px; } .sis-orig-key { background: var(--soft); padding: 2px 8px; border-radius: 6px; } .sis-same-key { border: 1px dashed #d9a441; padding: 1px 8px; border-radius: 6px; }
@media (max-width: 860px) { .sis-trio { grid-template-columns: 1fr 1fr; } .sis-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sis-trio { grid-template-columns: 1fr; } }
.sisters-page .searchbar { flex-wrap: wrap; }
.sisters-page .searchbar select { max-width: 100%; }
@media (max-width: 760px) {
  .sis-table, .sis-table tbody, .sis-table tr, .sis-table td { display: block; width: 100%; }
  .sis-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .sis-table td { border: 0; padding: 3px 0; }
  .sis-path { padding-left: 10px; }
}
.sis-cell input, .sis-cell textarea, .sis-cell .sylwrap, .sis-row input { width: 100%; max-width: none; box-sizing: border-box; display: block; min-height: 38px; }
.sis-cell .sylwrap input, .sis-cell .sylwrap textarea { width: 100%; }
.sis-row .sis-val { width: 90px; }

/* Report for partners (2.28) */
.rp-actions { margin-left: auto; display: flex; gap: 8px; }
.rp-sheet { border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; margin: 14px 0; background: #fff; }
.rp-head { display: flex; gap: 16px; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.rp-logo { width: 56px; height: 56px; object-fit: contain; }
.rp-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); font-weight: 600; }
.rp-head h1 { margin: 0; font-size: 1.6rem; }
.rp-summary { font-size: 1.08rem; line-height: 1.55; margin: 16px 0; }
.rp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 6px; }
.rp-kpis .kpi { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rp-kpis .kpi b { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rp-kpis .kpi span { font-size: .85rem; color: var(--ink2); }
.rp-delta { font-size: .8rem; font-weight: 600; } .rp-delta.up { color: var(--green-d); } .rp-delta.down { color: #b5620b; } .rp-delta.same { color: var(--ink3); }
.rp-sheet h2 { font-size: 1.15rem; margin: 1.4em 0 .5em; padding-top: .4em; border-top: 1px solid var(--line); }
.rp-sheet h3 { font-size: .9rem; color: var(--ink2); margin: 0 0 6px; font-weight: 600; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.rp-table td:last-child, .rp-table th:not(:first-child), .rp-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.rp-chart { width: 100%; height: auto; display: block; } .rp-chart .ax { font-size: 11px; fill: var(--ink3); }
.rp-dims { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 1.05rem; } .rp-dims b { margin-left: 4px; }
.rp-hbar { display: grid; grid-template-columns: 90px 1fr 46px; gap: 8px; align-items: center; margin: 6px 0; font-size: .92rem; }
.rp-track { display: block; height: 10px; background: #ecece8; border-radius: 99px; overflow: hidden; } .rp-fill { display: block; height: 100%; background: var(--blue-d); }
.rp-hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.rp-funders { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.rp-funder-list { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 6px; font-weight: 600; }
.rp-funder-list img { height: 34px; vertical-align: middle; margin-right: 6px; }
.rp-note { margin-top: 14px; }
.group-settings { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; } .group-settings label { margin: 0; }
@media (max-width: 760px) { .rp-kpis { grid-template-columns: 1fr 1fr; } .rp-two { grid-template-columns: 1fr; } .rp-sheet { padding: 16px; } .rp-actions { margin-left: 0; } }
@media print {
  .report .noprint, .report .usage-range { display: none !important; }
  .rp-sheet { border: 0; padding: 0; margin: 0; }
  .rp-sheet h2 { break-after: avoid; } .rp-table, .rp-two, .rp-kpis { break-inside: avoid; }
  .rp-fill, .rp-track, .rp-chart rect, .dimdot { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
@media print { .report-body header.top, .report-body .foot, .report-body .closed-bar { display: none !important; } .report-body main { padding: 0; } }
@media print {
  .report-body .wrap, .report-body main { padding: 0 !important; max-width: none !important; width: 100% !important; }
  .rp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rp-sheet { padding: 0 2px !important; }
}
.rp-table td:last-child { white-space: nowrap; }

/* Lanes and trails (2.29) */
.lanes { margin: 18px 0; }
.lane-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.lane-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 0; background: #fff; }
.lane-card.on { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(0,0,0,.06); }
.lane-on { font-weight: 600; color: var(--green-d); font-size: .9rem; }
.lane-tag { font-size: .75rem; color: var(--ink2); background: var(--soft); border-radius: 99px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.lane-sum { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.lane-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .9rem; padding: 6px 10px; border-radius: 10px; background: var(--soft); }
.lane-line.done { background: #f1f8ec; }
.lane-badge-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 6px; } .lane-badge-form label { margin: 0; font-size: .8rem; }
.steps-note { background: #f2f9fd; border: 1px solid #c9e4f2; border-radius: 10px; padding: 8px 12px; }
.steps-toggle { display: block; margin-top: 4px; }
.group-lanes label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; margin: 6px 0; }
.trails-strip { margin: 26px 0 10px; }
.trail-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.trail-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; border: 2px dashed var(--line); text-decoration: none; color: inherit; background: #fff; }
.trail-tile.d-intellectual { border-color: var(--green); } .trail-tile.d-emotional { border-color: var(--red); } .trail-tile.d-physical { border-color: var(--blue); }
.trail-tile.tr-locked { opacity: .55; border-style: dotted; }
.trail-tile.tr-complete { border-style: solid; }
.tbar { display: block; height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; } .tbar span { display: block; height: 100%; background: var(--ink); }
.trail-list { display: grid; gap: 12px; margin-top: 16px; }
.trail-card { border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.trail-card.d-intellectual { border-left-color: var(--green); } .trail-card.d-emotional { border-left-color: var(--red); } .trail-card.d-physical { border-left-color: var(--blue); }
.trail-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trail-card.ts-proposed { background: #fffbea; }
.trail-acts { margin: 6px 0; padding-left: 1.4em; } .trail-acts li { margin: 3px 0; }
.trail-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 560px) { .group-lanes label { grid-template-columns: 1fr; } }

/* Accounts (2.30) */
.acc-top { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.acc-two { align-items: start; }
.acc-form label, .acc-form .check { display: block; margin: 10px 0; }
.acc-form .check { display: flex; gap: 8px; align-items: center; }
.acc-groups { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.acc-consent { padding-left: 24px; }
.acc-info td:first-child { color: var(--ink2); width: 40%; }
.acc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-log { padding-left: 1.1em; margin: 4px 0; }
.acc-danger { border-color: #f6c7cd !important; }
.acc-danger input { max-width: 260px; display: block; margin: 6px 0 10px; }
.ok { color: var(--green-d); }
.bulk-table tr.bad td { background: #fdecee; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card-grid .login-card { margin: 0; max-width: none; break-inside: avoid; page-break-inside: avoid; }
@media print { .cards-body .top, .cards-body .foot { display: none !important; } .card-grid { grid-template-columns: 1fr 1fr; } .account-page .acc-two { display: none; } }
@media (max-width: 760px) { .acc-two { grid-template-columns: 1fr; } }

/* Sub-groups, places, comparisons (2.31) */
.place-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 8px 0; }
.place-fields label { margin: 0; }
.place-box { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 12px 0; }
.place-box summary { cursor: pointer; font-weight: 600; }
.group-tree { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 20px; }
.group-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; margin-left: calc(var(--d) * 26px); background: #fff; }
.group-row:hover { border-color: var(--ink); }
.group-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; }
.group-tags span { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--ink2); }
.new-group { margin-top: 18px; }
.add-sub { display: flex; flex-direction: column; gap: 6px; border-style: dashed; }
.view-switch { margin-left: 10px; font-weight: 400; } .view-switch a { margin-right: 8px; } .view-switch a.on { font-weight: 700; text-decoration: none; }
.bulk-bar { position: sticky; bottom: 8px; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; padding: 8px 12px; margin: 8px 0 18px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.bulk-bar select { width: auto; max-width: 100%; }
.helper-list { padding-left: 1.1em; } .helper-list li { margin: 4px 0; }
.group-settings label { display: block; margin: 8px 0; }
.cmp-by, .cmp-measures { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.cmp-by .chip, .cmp-measures .chip { font-size: .85rem; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; background: #fff; color: inherit; }
.cmp-by .chip.on, .cmp-measures .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cmp-by select { width: auto; }
.cmp-bars { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.cmp-bar { display: grid; grid-template-columns: minmax(110px, 26%) 1fr 70px; gap: 10px; align-items: center; }
.cmp-bar .cmp-name { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-bar .rp-track { height: 14px; } .cmp-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.cmp-table tr.cmp-all td { background: var(--soft); }
.cmp-table th { white-space: normal; font-size: .72rem; }
@media (max-width: 560px) { .group-row { margin-left: calc(var(--d) * 12px); } .cmp-bar { grid-template-columns: 1fr 60px; } .cmp-bar .rp-track { grid-column: 1 / -1; grid-row: 2; } }
.trace-font-sample { font-size: 1.8rem; margin: 0 0 6px; padding: 8px 12px; border: 1px dashed var(--line, #ccc); border-radius: 10px; }
.plan-box { margin: 14px 0 22px; padding: 14px 18px; border: 1px solid var(--line, #ddd); border-radius: 14px; background: #fafaf7; } .plan-box summary { cursor: pointer; } .plan-table td { vertical-align: top; }
/* A wide map (many paths side by side) scrolls sideways inside its box. (2.33) */
.map-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.map { min-width: calc(130px + var(--cols) * 136px); }
@media (max-width: 760px) { .map-scroll { overflow: visible; margin: 0; padding: 0; } .map { min-width: 0; } }
.aud-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; } .aud-suggest:empty { display: none; } .aud-same { display: inline-flex; align-items: center; gap: 4px; } .aud-small .aud-suggest { flex-basis: 100%; }
.aud-same-mark { font-size: .95rem; color: var(--ink3); } .aud-small .aud-suggest { margin-top: 2px; gap: 4px; }
/* Sounds page (2.36) */
.snd-search { display: flex; gap: 8px; align-items: center; margin: 14px 0 6px; flex-wrap: wrap; }
.snd-search input { flex: 1 1 260px; max-width: 420px; }
.snd-table td { vertical-align: top; }
.snd-new { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.snd-group { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 12px 0; }
.snd-group h3 { margin: 0 0 8px; }
.snd-choice { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.snd-choice:first-of-type { border-top: 0; }
.count-pill { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 99px; background: var(--soft); font-size: .75rem; text-align: center; }
/* Difficulty suggested from the questions (2.38) */
.diff-sugtag { display: block; font-size: .72rem; font-weight: 600; color: var(--ink3); margin-top: 2px; }
.diff-q.suggested .diff-sugtag { color: #8a6d00; }
.diff-q.suggested .diff-opt input:checked + span { border-style: dashed; }
/* Emoji drawings (2.41) */
img.emo { height: 1.15em; width: auto; vertical-align: -0.2em; display: inline-block; }
.count-item .ci-thing img.emo, .pattern-stage img.emo { height: 1em; vertical-align: middle; }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 16px 0; }
.emo-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.emo-card.has-pic { border-color: color-mix(in srgb, var(--green, #67b13e) 45%, #fff); }
.emo-pair { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.emo-char { font-size: 2.2rem; line-height: 1; }
.emo-arrow { color: var(--ink3); }
.emo-pic { width: 48px; height: 48px; object-fit: contain; }
.emo-none { font-size: .8rem; color: var(--ink3); border: 1px dashed var(--line); border-radius: 8px; padding: 6px 8px; }
.emo-places { color: var(--ink2); line-height: 1.5; }
.emo-form { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.emo-src { font-weight: 600; } .emo-src-builtin { color: #3f7f22; } .emo-src-own { color: #1e6fa8; } .emo-src-emoji { color: var(--ink3); } .emo-form { flex-wrap: wrap; }
.emo-code { font-size: .95rem; background: var(--soft); padding: 4px 8px; border-radius: 8px; } .emo-h { margin-top: 28px; } .emo-new { max-width: 520px; }
.keep-check { align-items: flex-start; gap: 10px; font-weight: 600; } .keep-check small { font-weight: 400; }
.tr-keep-help { background: #fff8e1; border-radius: 10px; padding: 10px 14px; }
/* Place suggestions (2.50) */
.place-wrap { position: relative; display: block; }
.place-sug { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; font-weight: 400; }
.place-sug li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.place-sug li small { color: var(--ink3); white-space: nowrap; }
.place-sug li:hover, .place-sug li.on { background: var(--soft); }
/* Home on a computer screen: everything (welcome, buttons and the three columns) fits in one screen height. (2.51) */
@media (min-width: 900px) {
  /* Same columns as the three coloured boxes below: the logo is centred over the green one, the text starts over the red one. */
  body.home .hero { display: grid; grid-template-columns: 1fr 2fr; column-gap: 6px; align-items: center;
    text-align: left; padding: clamp(14px, 4vh, 44px) 0 0; }
  body.home .hero > :not(.hero-logo) { grid-column: 2; padding-left: 22px; }
  body.home .hero-logo { grid-column: 1; grid-row: 1 / span 4; justify-self: center; width: auto; height: clamp(150px, 30vh, 290px); margin: 0; }
  body.home .hero h1 { font-size: clamp(1.7rem, 4.4vh, 2.4rem); margin: 0 0 .35em; max-width: none; }
  body.home .hero .lead { margin: 0 0 clamp(.7em, 2.4vh, 1.3em); max-width: none; font-size: clamp(1rem, 2.3vh, 1.15rem); }
  body.home .hero .actions { justify-content: flex-start; }
  body.home .hero > .small { margin: .7em 0 0; }
  body.home .process { margin-top: clamp(28px, 6vh, 64px); }
  body.home .process h2 { margin: 0 0 clamp(8px, 1.6vh, 16px); font-size: clamp(1.15rem, 2.8vh, 1.5rem); }
  body.home .pbox { padding-top: clamp(12px, 2.4vh, 26px); }
  body.home .pbox .sub, body.home .pbox ol { font-size: clamp(.95rem, 2.3vh, 1.3rem); }
  body.home .pbox ol { line-height: 1.6; }
  @media (max-height: 760px) { body.home .pbox ol { line-height: 1.45; } body.home .hero { padding-top: 10px; } body.home .process { margin-top: 28px; } body.home .process h2 { margin-bottom: 4px; } body.home .tip-hint { margin: -6px 0 4px; } body.home .hero-logo { height: clamp(130px, 26vh, 290px); } }
  body.home .ptitle { font-size: clamp(1.25rem, 3vh, 1.6rem); }
  body.home .pc-core .pbox, body.home .pc-vehicle .pbox { padding-bottom: clamp(44px, 9.5vh, 96px); }
  body.home .pc-driving .pbox { padding-bottom: clamp(50px, 10.5vh, 104px); }
  body.home .pc-driving { margin-top: clamp(14px, 2.6vh, 22px); } body.home .pc-vehicle { margin-top: clamp(28px, 5.2vh, 44px); }
}
/* Home: explanations on the three columns (2.52) */
.tip-hint { text-align: center; margin: -4px 0 10px; }
.process .tip { cursor: help; border-radius: 6px; outline-offset: 3px; }
.process li .tip { border-bottom: 2px dotted currentColor; padding-bottom: 1px; }
.process .tip:hover h3, .process .tip:focus-visible h3 { text-decoration: underline dotted 2px; text-underline-offset: 4px; }
.tip-pop { position: absolute; z-index: 60; max-width: 300px; padding: 12px 14px; background: #1d1d1b; color: #fff; border-radius: 12px; font-size: .92rem; line-height: 1.45; box-shadow: 0 12px 30px rgba(0,0,0,.25); pointer-events: none; animation: tipIn .15s ease; }
@keyframes tipIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.process .tip-open { margin: 4px 0 8px; padding: 8px 10px; background: rgba(255,255,255,.22); border-radius: 8px; font-size: .9rem; line-height: 1.4; }
.pc-vehicle .tip-open { background: rgba(255,255,255,.3); }
.process .ptitle .tip { border-bottom: 2px dotted currentColor; }
.trf-link { margin: 6px 0 12px; } .trf-steps .settings-card h2 { margin-top: 0; } .trf-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; border: 0; padding: 0; } .trf-table tr.bad td { background: #fdecee; } .trf-table td { vertical-align: top; }

/* Try until right (2.56): wrong choices are crossed off, the right one turns green */
.choice.tried .choice-box { opacity: .45; background: #f3f3f1; border-style: dashed; text-decoration: line-through; cursor: not-allowed; box-shadow: none; }
.choice.tried .choice-box::before { content: "✕"; position: absolute; top: 6px; right: 10px; font-size: .9rem; color: #999; }
.choice.tried:hover .choice-box { border-color: var(--line); }
.choice.right .choice-box, .choice.right input:checked + .choice-box { border-color: #67b13e; background: #e5f4e4; box-shadow: inset 0 0 0 3px #67b13e; }
.choice.right input:checked + .choice-box::after { color: #3f7f22; }
.q-try input.tried { border-color: #e0a100; background: #fff8e1; animation: try-shake .3s; }
.q-try input.right { border-color: #67b13e; background: #e5f4e4; }
@keyframes try-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .q-try input.tried { animation: none; } }
.try-check { margin-top: 8px; }
.try-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.try-note.try-no { background: #fff8e1; color: #6b5200; }
.try-note.try-yes { background: #e5f4e4; color: #2f6418; }
.try-dots { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 6px; }
.try-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e0a100; }
.try-dots i.r { background: #67b13e; }
/* Hints */
.q-hint { margin-top: 10px; }
.hint-btn { font-weight: 600; }
.hint-text { margin-top: 6px; padding: 8px 12px; border-left: 4px solid #e0a100; background: #fffbea; border-radius: 0 10px 10px 0; }
.hint-text p { margin: 0; }
.hint-edit { margin: 10px 0; }
.hint-edit summary { cursor: pointer; font-weight: 600; }
/* Brave guess */
.estimate .est-see { margin-top: 8px; }
.est-out { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #eef4fb; color: #1d3f63; }
.est-out.est-very { background: #e5f4e4; color: #2f6418; }
.est-out.est-close { background: #f0f7e8; color: #3d5a1d; }
.est-out b { display: block; margin-bottom: 2px; }
/* It comes back later */
.comeback-lead { margin: 22px 0 6px; padding: 8px 12px; background: #f1ecfb; border-radius: 10px; }
fieldset.q-comeback { border-color: #8d6cc8; border-style: dashed; }

/* 2.57: the nine steps in the designer */
.steps-box { margin: 26px 0 10px; }
.steps-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.steps-col { border-radius: 16px; padding: 12px 12px 14px; color: #fff; }
.steps-col.sc-core { background: var(--green); } .steps-col.sc-driving { background: var(--red); } .steps-col.sc-vehicle { background: var(--blue); color: #063a4d; }
.steps-col h3 { margin: 0; font-size: 1.05rem; } .steps-col .sub { margin: 0 0 6px; font-size: .8rem; font-weight: 600; opacity: .9; }
.step-card { background: rgba(255,255,255,.93); color: var(--ink); border-radius: 12px; padding: 9px 10px; margin-top: 8px; }
.step-name { display: flex; gap: 8px; align-items: center; font-weight: 800; }
.step-name input { width: 18px; height: 18px; accent-color: #111; }
.step-n { margin-left: auto; font-size: .7rem; font-weight: 700; border-radius: 99px; padding: 1px 8px; background: #eef6e8; color: #3f7f22; }
.step-why { font-size: .78rem; color: #666; margin: 2px 0 6px 26px; }
.step-adds { display: flex; flex-wrap: wrap; gap: 5px; margin-left: 26px; }
.kind-add { font: inherit; font-size: .8rem; font-weight: 600; border: 1.5px solid #d6d6d2; background: #fff; color: var(--ink); border-radius: 99px; padding: 3px 10px; cursor: pointer; }
.kind-add:hover { border-color: #888; }
.kind-add.kind-new { border-color: #e0a100; background: #fff8e1; }
.step-try { display: flex; gap: 6px; align-items: center; margin: 8px 0 0 26px; font-weight: 700; font-size: .88rem; }
.kind-step { font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 1px 8px; color: #fff; }
.kind-step.ks-core { background: var(--green-d); } .kind-step.ks-driving { background: var(--red-d); } .kind-step.ks-vehicle { background: var(--blue-d); }
.qadd-more { margin: 6px 0 18px; font-weight: 600; }
@media (max-width: 760px) { .steps-cols { grid-template-columns: 1fr; } }
/* Path: the nine steps with how many activities build each */
.steps-bar { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin: 6px 0 10px; }
.steps-bar .sb { font-size: .7rem; font-weight: 700; text-align: center; padding: 5px 2px; border-radius: 8px; line-height: 1.2; }
.steps-bar .sb b { display: block; font-size: .85rem; }
.sb-core { background: var(--green); color: #fff; } .sb-driving { background: var(--red); color: #fff; } .sb-vehicle { background: var(--blue); color: #063a4d; }
.steps-bar .sb-none { background: #f4f4f2; color: #aaa; border: 1.5px dashed #d0d0d0; }
@media (max-width: 760px) { .steps-bar { grid-template-columns: repeat(3, 1fr); } }
/* New question types */
.explain .explain-see { margin-top: 8px; }
.explain-out { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #eef4fb; }
.explain-out b { display: block; margin-bottom: 4px; }
.pstep { font-weight: 700; margin: 12px 0 6px; } .pstep span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; margin-right: 6px; }
.pchoose input:disabled + .choice-box { opacity: .45; }
.predict-out { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.predict-out.same { background: #e5f4e4; color: #2f6418; } .predict-out.diff { background: #fff8e1; color: #6b5200; }
.record-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.record-table th, .record-table td { border: 1.5px solid var(--line); padding: 6px; text-align: center; }
.record-table th { background: #f5f5f3; } .record-table td.rn { width: 36px; color: #888; font-weight: 700; }
.record-table input { width: 100%; border: 0; text-align: center; font: inherit; font-size: 1.05rem; background: transparent; }
.record-add { margin-top: 8px; }
.form .steps-box label.step-name, .form .steps-box label.step-try { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.form .steps-box label.step-name { font-size: 1rem; }
.form .steps-box label input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: none; }

/* 2.59: what learners wonder, explain and record */
.think-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 6px; }
.think-filters label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.think-list { display: grid; gap: 12px; margin-top: 8px; }
.think-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #fff; }
.think-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.think-kind { font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 2px 9px; color: #fff; background: var(--green-d); }
.tk-record .think-kind { background: var(--blue-d); }
.think-q { margin: 8px 0 4px; color: var(--ink2); font-size: .92rem; }
.think-a { margin: 4px 0 6px; padding: 8px 12px; border-left: 4px solid var(--green); background: #f6faf3; border-radius: 0 10px 10px 0; font-size: 1.08rem; font-weight: 600; }
.think-act { margin-top: 6px; } .think-sent { font-size: .85rem; color: #7a5a00; font-weight: 600; }
.ideas-box { border: 1.5px solid #f0d27a; background: #fffbea; border-radius: 14px; padding: 12px 16px; margin: 14px 0; }
.ideas-box h2 { margin: 0 0 4px; font-size: 1.1rem; } .ideas-box ul { margin: 8px 0 0; padding-left: 18px; } .ideas-box li { margin: 6px 0; }
.idea-text { font-weight: 600; } form.inline { display: inline; }
/* 2.60: Translations — learner words first */
.tr-learner-progress { background: #f4f9ef; border: 1.5px solid #cfe5bf; border-radius: 12px; padding: 10px 14px; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.tr-learner-progress .bar { flex: 1; min-width: 120px; height: 10px; background: #e3eedb; border-radius: 99px; overflow: hidden; }
.tr-learner-progress .bar span { display: block; height: 100%; background: var(--green); }
.tr-learner-progress .small { flex-basis: 100%; }
.tr-group { margin: 22px 0 4px; padding: 6px 12px; border-radius: 10px; background: #f1f1ef; font-size: 1.1rem; }
.tr-group-learner { background: #eef6e8; color: #2f6418; }
.tr-learner { font-size: .9rem; }
/* Learner progress: nine step stickers */
.steps-me { margin: 22px 0; }
.stickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sticker-col { border-radius: 16px; padding: 10px; display: grid; gap: 8px; }
.sticker-col.sk-core { background: #eef6e8; } .sticker-col.sk-driving { background: #fdecee; } .sticker-col.sk-vehicle { background: #e9f7fd; }
.sticker-title { font-weight: 800; font-size: .85rem; text-align: center; }
.sk-core .sticker-title { color: var(--green-d); } .sk-driving .sticker-title { color: var(--red-d); } .sk-vehicle .sticker-title { color: var(--blue-d); }
.sticker { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 8px 10px; border: 2px dashed #d6d6d2; }
.sticker-pic { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: #f1f1ef; filter: grayscale(1); opacity: .45; }
.sticker-pic img { width: 34px; height: 34px; }
.sticker-name { font-weight: 800; } .sticker-n { font-size: .78rem; color: #888; }
.sticker.sl-1, .sticker.sl-2, .sticker.sl-3 { border-style: solid; }
.sticker.sl-1 .sticker-pic, .sticker.sl-2 .sticker-pic, .sticker.sl-3 .sticker-pic { filter: none; opacity: 1; }
.sk-core .sticker:not(.sl-0) { border-color: var(--green); } .sk-core .sticker:not(.sl-0) .sticker-pic { background: #dcefcf; }
.sk-driving .sticker:not(.sl-0) { border-color: var(--red); } .sk-driving .sticker:not(.sl-0) .sticker-pic { background: #fbd5da; }
.sk-vehicle .sticker:not(.sl-0) { border-color: var(--blue); } .sk-vehicle .sticker:not(.sl-0) .sticker-pic { background: #cdeefb; }
.sticker.sl-2 .sticker-pic { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d9b54a; }
.sticker.sl-3 .sticker-pic { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e0a100; }
.sticker:not(.sl-0) .sticker-n { color: var(--ink2); font-weight: 600; }
.sticker-next { margin-top: 10px; padding: 8px 12px; background: #fff8e1; border-radius: 10px; font-weight: 600; }
@media (max-width: 760px) { .stickers { grid-template-columns: 1fr; } }
/* What to make next */
.next-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 14px 0; background: #fff; }
.next-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.next-missing { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: .75rem; font-weight: 700; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.chip-core { background: #eef6e8; color: #2f6418; } .chip-driving { background: #fdecee; color: #a4101f; } .chip-vehicle { background: #e9f7fd; color: #17617c; }
.next-lvl { margin: 14px 0 4px; font-size: 1rem; } .next-empty { margin: 0; padding-left: 0; list-style: none; columns: 2; }
.next-empty li { padding: 3px 0; break-inside: avoid; } .next-empty .dim { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.next-ideas { background: #fffbea; border: 1.5px solid #f0d27a; border-radius: 12px; padding: 8px 14px; font-weight: 600; }
@media (max-width: 760px) { .next-empty { columns: 1; } }
/* Confusing questions */
.conf-list { display: grid; gap: 12px; margin-top: 10px; }
.conf-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #fff; }
.conf-card header { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; }
.conf-rate-wrap { display: grid; justify-items: center; gap: 2px; text-align: center; }
.conf-rate-wrap small { font-size: .68rem; color: #6b5200; font-weight: 600; line-height: 1.1; }
.conf-rate { display: grid; place-items: center; color: #6b5200; width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(#e0a100 var(--r), #f3efe2 0); position: relative; }
.conf-rate::before { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.conf-rate b { position: relative; font-size: 1rem; }
.conf-opts { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 4px; }
.conf-opts li { padding: 4px 10px; border-radius: 8px; background: #f7f7f5; }
.conf-opts li.right { background: #e5f4e4; } .conf-opts li.top-wrong { background: #fff1d6; }
.conf-opts .opt-img { max-height: 40px; vertical-align: middle; }
.conf-pick { font-size: .78rem; font-weight: 700; color: #8a5a00; }
.conf-hint { color: #6b5200; }
@media (max-width: 760px) { .conf-card header { grid-template-columns: 76px 1fr; } .conf-card header .btn { grid-column: span 2; } }
/* 2.61: voice for buttons and messages */
.play.play-voice { width: 30px; height: 30px; font-size: .75rem; vertical-align: middle; margin-left: 4px; }
.check-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.snd-h { margin: 18px 0 6px; font-size: 1.05rem; }
/* 2.62: a copy away from the server */
.offsite { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 18px 0; background: #fff; }
.offsite.offsite-due { border-color: #f0d27a; background: #fffbea; }
.offsite h2 { margin-top: 0; }
.offsite-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.offsite-ways h3 { margin: 4px 0; font-size: 1rem; }
@media (max-width: 760px) { .offsite-ways { grid-template-columns: 1fr; } }
/* 2.63: speed */
.speed-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.speed-facts div { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; background: #fff; }
.speed-facts b { display: block; font-size: 1.5rem; } .speed-facts span { font-size: .82rem; color: var(--ink2); }
.speed-how li { margin: 3px 0; }
tr.speed-heavy td { background: #fff8e1; }
@media (max-width: 760px) { .speed-facts { grid-template-columns: 1fr; } }
/* Emoji picker (activity designer, picture line) */
.emo-row { display: flex; gap: 6px; align-items: center; }
.emo-row input { flex: 1; min-width: 0; }
.emo-open { white-space: nowrap; }
.emo-panel { position: absolute; z-index: 60; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 10px; display: grid; gap: 8px; }
.emo-panel[hidden] { display: none; }
.emo-search { width: 100%; font: inherit; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; }
.emo-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.emo-tabs button { font: inherit; font-size: .76rem; font-weight: 600; border: 1.5px solid #e2e2de; background: #fafaf8; border-radius: 99px; padding: 2px 9px; cursor: pointer; }
.emo-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.emo-grid-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 4px; max-height: 240px; overflow-y: auto; padding: 2px; }
.emo-cell { height: 42px; border: 1.5px solid transparent; background: #f6f6f4; border-radius: 10px; font-size: 1.45rem; cursor: pointer; display: grid; place-items: center; padding: 0; line-height: 1; }
.emo-cell:hover, .emo-cell:focus-visible { border-color: var(--ink); background: #fff; }
.emo-cell img { width: 30px; height: 30px; }
.emo-cell.has-drawing { background: #eef6e8; }
.emo-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.emo-tools .btn:last-child { margin-left: auto; }
.emo-drawn-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: #eef6e8; border: 1.5px solid #cfe5bf; vertical-align: -1px; }
/* 2.65: the step ticks are labels; "Try until right" is a switch that changes the activity */
.steps-ticks-note { background: #f1f6fb; border-radius: 10px; padding: 8px 12px; margin: 4px 0 8px; color: #1d3f63; }
.form .steps-box label.step-try.switch { margin-top: 10px; padding: 8px 10px; border: 1.5px dashed var(--red); border-radius: 12px; background: #fff; }
.switch input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; flex: none; width: 40px; height: 22px; border-radius: 99px; background: #cfcfcb; transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--green-d); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid #9cc7f0; outline-offset: 2px; }
.switch-state { margin-left: auto; font-size: .72rem; font-weight: 800; border-radius: 99px; padding: 2px 8px; background: #f1f1ef; color: #777; }
.switch-state::after { content: attr(data-off); }
.switch input:checked ~ .switch-state { background: #e5f4e4; color: #2f6418; }
.switch input:checked ~ .switch-state::after { content: attr(data-on); }
.switch-what { font-weight: 600; color: #a4101f; }
/* 2.66: stars and how it felt, on the map and path pages */
.felt-row { display: inline-flex; gap: 5px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.node .felt-row { display: flex; }
.felt-star { font-weight: 800; color: #b07d00; background: #fff4cc; border: 1.5px solid #e9c64f; border-radius: 99px; padding: 0 8px; font-size: .82rem; line-height: 1.6; }
.felt { font-size: .74rem; font-weight: 700; border-radius: 99px; padding: 1px 8px; line-height: 1.6; }
.felt-easy { background: #e5f4e4; color: #2f6418; }
.felt-ok { background: #eeeeec; color: #555; }
.felt-hard { background: #fdecd9; color: #8a4b00; }
.act-state .felt-row { margin: 0 0 0 6px; vertical-align: middle; }
.fb-star-note { text-align: center; margin: 4px 0 0; }
/* 2.70: atoms and molecules are drawn bigger, so protons, neutrons and electrons can be counted */
img.emo[src*="/site/atom-"], img.emo[src*="/site/mol-"], img.emo[src*="/site/proton"], img.emo[src*="/site/neutron"], img.emo[src*="/site/electron"] { height: 2em; vertical-align: middle; }
.visual img.emo[src*="/site/atom-"], .visual img.emo[src*="/site/mol-"] { height: 2.6em; margin: 0 .1em; }
.choice-box img.emo[src*="/site/atom-"], .choice-box img.emo[src*="/site/mol-"] { height: 3.2em; }
@media (max-width: 520px) { .visual img.emo[src*="/site/atom-"], .visual img.emo[src*="/site/mol-"] { height: 2em; } }
/* 2.71: the solar system picture is wide and detailed: shown bigger, like atoms */
img.emo[src*="/site/solar-system"] { height: 2em; vertical-align: middle; }
.visual img.emo[src*="/site/solar-system"] { height: 2.6em; }
/* 2.72: people, dogs and homes show a little bigger in questions */
.visual img.emo[src*="/site/family"], .visual img.emo[src*="/site/dog-team"], .visual img.emo[src*="/site/row-house"] { height: 1.6em; }
/* 2.73: measurement pictures are drawn bigger so the ruler and the length can be read */
img.emo[src*="/site/mm-"], img.emo[src*="/site/cm-"], img.emo[src*="/site/m-"] { height: 2.2em; vertical-align: middle; }
.visual img.emo[src*="/site/mm-"], .visual img.emo[src*="/site/cm-"], .visual img.emo[src*="/site/m-"] { height: 2.8em; }
.choice-box img.emo[src*="/site/mm-"], .choice-box img.emo[src*="/site/cm-"], .choice-box img.emo[src*="/site/m-"] { height: 3.4em; }
/* 2.74: drawings inside answer boxes are big enough to look at closely (count the sides of a shape, the particles of an atom) */
.choice-box img.emo { height: 2.6em; vertical-align: middle; }
.choice-box img.emo[src*="/site/"] { height: 3.4em; }
/* 2.75: wave and quark pictures are drawn bigger, like atoms, so their details can be read */
img.emo[src*="/site/wave"], img.emo[src*="/site/frequency-"], img.emo[src*="/site/amplitude"], img.emo[src*="/site/em-spectrum"], img.emo[src*="/site/sound-"], img.emo[src*="/site/proton-quarks"], img.emo[src*="/site/neutron-quarks"], img.emo[src*="/site/prism"], img.emo[src*="/site/spectrum"] { height: 2em; vertical-align: middle; }
.visual img.emo[src*="/site/wave"], .visual img.emo[src*="/site/frequency-"], .visual img.emo[src*="/site/amplitude"], .visual img.emo[src*="/site/em-spectrum"], .visual img.emo[src*="/site/sound-"], .visual img.emo[src*="/site/proton-quarks"], .visual img.emo[src*="/site/neutron-quarks"], .visual img.emo[src*="/site/prism"], .visual img.emo[src*="/site/spectrum"] { height: 2.6em; }
/* 2.76: light diagrams shown bigger, like the waves */
img.emo[src*="/site/reflection"], img.emo[src*="/site/mirror-image"], img.emo[src*="/site/lake-reflection"], img.emo[src*="/site/refraction"], img.emo[src*="/site/straw-in-water"], img.emo[src*="/site/lens-"], img.emo[src*="/site/shadow"], img.emo[src*="/site/transparent"], img.emo[src*="/site/translucent"], img.emo[src*="/site/opaque"] { height: 2em; vertical-align: middle; }
.visual img.emo[src*="/site/reflection"], .visual img.emo[src*="/site/mirror-image"], .visual img.emo[src*="/site/lake-reflection"], .visual img.emo[src*="/site/refraction"], .visual img.emo[src*="/site/straw-in-water"], .visual img.emo[src*="/site/lens-"], .visual img.emo[src*="/site/shadow"], .visual img.emo[src*="/site/transparent"], .visual img.emo[src*="/site/translucent"], .visual img.emo[src*="/site/opaque"] { height: 2.6em; }
/* 2.77: all site drawings (people, science diagrams…) show at a readable size in the picture line and in question text */
.visual img.emo[src*="/site/"] { height: 2.2em; vertical-align: middle; margin: 0 .05em; }
.q legend img.emo[src*="/site/"], .instr img.emo[src*="/site/"] { height: 1.8em; vertical-align: middle; }
@media (max-width: 520px) { .visual img.emo[src*="/site/"] { height: 1.9em; } }

/* 2.83 Sharing an activity, and guests */
.share { margin: 18px 0 6px; }
.share-result { text-align: center; }
.share-panel { margin: 12px auto 0; max-width: 560px; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; gap: 16px; flex-wrap: wrap; text-align: left; background: #fff; }
.share-opts { flex: 1 1 240px; display: flex; flex-direction: column; }
.share-opt { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border: 0; border-bottom: 1px solid #f0f0f0; background: none; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.share-opt:hover { background: var(--soft); }
.share-ic { width: 30px; height: 30px; border-radius: 8px; background: #eef0f2; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.share-fb { background: #1877f2; color: #fff; font-weight: 700; font-family: Arial, sans-serif; }
.share-qr { flex: none; }
.share-qr svg { width: 132px; height: 132px; display: block; }
.share-safe { flex-basis: 100%; margin: 0; }
.share-page { max-width: 640px; margin: 0 auto; }
.share-path { color: var(--blue-d); font-weight: 700; font-size: .9rem; margin: 0; }
.d-intellectual .share-path { color: var(--green-d); } .d-emotional .share-path { color: var(--red-d); }
.share-page h1 { margin-top: .2em; }
.share-hero { border-radius: 18px; min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px; margin: 6px 0 14px; background: #e8f6fc; flex-wrap: wrap; }
.d-intellectual .share-hero { background: #eef7e8; } .d-emotional .share-hero { background: #fdecee; }
.share-hero .sp-emo { width: 120px; height: 120px; } .share-hero .sp-illus { max-width: 100%; max-height: 300px; border-radius: 12px; }
.share-hero .sp-emoji { font-size: 90px; line-height: 1; }
.share-try .q { margin-top: 0; }
.share-verdict { border-radius: 12px; padding: 10px 14px; font-weight: 700; margin: 10px 0 0; }
.share-verdict.ok { background: #f0f9eb; color: #2f6b14; } .share-verdict.no { background: #fff6e0; color: #7a5300; }
.share-next { border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 18px 0; }
.share-next h2 { margin: 0 0 4px; }
.share-go { display: flex; flex-direction: column; gap: 8px; align-items: stretch; margin-top: 12px; }
.share-go .btn { width: 100%; text-align: center; }
.share-rec { font-size: .8rem; color: var(--green-d); font-weight: 700; margin: -4px 0 4px; text-align: center; }
.share-next > .btn { display: block; text-align: center; margin: 10px 0 0; }
.share-guest-note { margin: 12px 0 0; }
.share-about { margin-top: 30px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.guest-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #eef7ff; border: 1px solid #cfe6f7; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.guest-bar span { flex: 1 1 220px; }
.guest-box { border: 2px solid var(--line); border-radius: var(--r); padding: 14px 18px; max-width: 560px; }
.share-poster { max-width: 700px; margin: 0 auto; padding: 30px 20px; text-align: center; }
.share-poster .sp-logo { width: 120px; }
.share-poster h1 { font-size: 2.6rem; margin: .2em 0; }
.share-poster .sp-path { font-weight: 700; color: var(--ink2); margin: 10px 0 0; }
.share-poster .sp-pics { display: flex; justify-content: center; gap: 12px; margin: 10px 0; }
.share-poster .sp-pics .sp-emo { width: 130px; height: 130px; } .share-poster .sp-pics .sp-illus { max-height: 260px; max-width: 100%; }
.share-poster .sp-qr svg { width: 320px; height: 320px; max-width: 80vw; }
.share-poster .sp-scan { font-size: 1.4rem; font-weight: 700; margin: 6px 0 0; } .share-poster .sp-url { color: var(--ink2); }
@media print { .no-print, .share, .guest-bar { display: none !important; } .share-poster { padding: 0; } }

/* 2.85 A visitor's game: keep it or forget it */
.visit-keep { border: 2px solid var(--line); border-radius: var(--r); padding: 18px; margin: 22px auto 0; max-width: 520px; text-align: center; background: #fff; }
.visit-keep h2 { margin: 0 0 6px; }
.visit-keep .btn { display: block; margin: 10px 0 0; }
.visit-forget { margin: 14px 0 4px; }
.visit-note { margin-bottom: 12px; }

/* 2.86 Word games */
.words-home { max-width: 720px; margin: 0 auto; }
.words-known { font-weight: 700; }
.words-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.words-game { display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); background: #fff; }
.words-game:hover { border-color: var(--ink); }
.words-game b { font-size: 1.25rem; }
.words-game .wg-ic { font-size: 2.2rem; line-height: 1; }
.words-game.is-off { opacity: .5; pointer-events: none; }
.words-play { max-width: 640px; margin: 0 auto; }
.wp-top { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.wq { font-size: 1.2rem; font-weight: 700; margin: 6px 0 10px; }
.w-pic { min-height: 170px; display: flex; align-items: center; justify-content: center; font-size: 110px; line-height: 1; background: var(--soft); border-radius: 18px; padding: 16px; }
.w-pic img.emo { height: 150px !important; width: auto; }
.w-desc { font-size: 1.15rem; background: var(--soft); border-radius: 18px; padding: 16px 18px; }
.w-choices { display: grid; gap: 10px; margin: 14px 0; }
.w-choice { border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; font: inherit; cursor: pointer; text-align: center; color: var(--ink); }
.w-choice:hover:not(:disabled) { border-color: var(--ink); }
.w-choice.is-right { border-color: #67b13e; background: #f0f9eb; }
.w-choice.is-wrong { border-color: var(--red); background: #fdecee; }
.w-choice:disabled { cursor: default; }
.word-iu { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.word-iu .w-syl { font-size: 1.6rem; font-weight: 700; }
.word-iu .w-rom { font-size: 1.3rem; font-weight: 600; color: var(--ink2); }   /* 3.40: bigger, closer to the syllabics */
.word-iu .w-rom:only-child { font-size: 1.6rem; font-weight: 700; color: var(--ink); }   /* roman only: as big as syllabics would be */
.small-iu { flex-direction: row; gap: 8px; align-items: baseline; } .small-iu .w-syl { font-size: 1.15rem; } .small-iu .w-rom, .small-iu .w-rom:only-child { font-size: 1.1rem; }
.w-after { text-align: center; }
.w-verdict { font-weight: 700; font-size: 1.15rem; margin: 4px 0; } .w-verdict.ok { color: #2f6b14; } .w-verdict.no { color: #9a5a00; }
.w-meaning { font-size: 1.05rem; } .w-mini img.emo { height: 1.6em; vertical-align: middle; }
.wend { text-align: center; }
.words-ed { max-width: 1000px; margin: 0 auto; }
.wcounts { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.wcounts span { border: 1px solid var(--line); border-radius: 30px; padding: 4px 12px; font-size: .9rem; }
.wcounts .ok { border-color: #b9dea0; background: #f0f9eb; } .wcounts .warn { border-color: #f3d58a; background: #fff6e0; }
.wform { border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 14px 0; }
.wf-pic { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.wf-pic label { flex: 1 1 260px; } .wf-pic .emo-row { display: flex; gap: 8px; align-items: center; }
.wf-pic-show { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; font-size: 56px; background: var(--soft); border-radius: 14px; }
.wf-pic-show img.emo { height: 70px !important; }
.wfilter { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.wtable .wt-pic { font-size: 28px; width: 50px; text-align: center; } .wtable .wt-pic img.emo { height: 36px !important; }
.wtable .word-iu { align-items: flex-start; } .wtable .word-iu .w-syl { font-size: 1.1rem; } .wtable .word-iu .w-rom { font-size: 1rem; }
.wdl { list-style: none; padding: 0; } .wdl li { margin: 8px 0; }
.pager a { padding: 2px 8px; } .pager a.on { font-weight: 700; text-decoration: underline; }

/* 2.86 English or French chosen: Inuttitut syllabics first, then the chosen language (readable, not faded) */
.tri-learn .tri-en, .tri-learn .tri-fr { color: var(--ink2); font-size: .92em; }
h1 .tri-learn .tri-en, h1 .tri-learn .tri-fr { font-size: .62em; font-weight: 600; }

/* 2.88 Administration → Features */
.feat-form { max-width: 760px; }
.feat-group { border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 16px 6px; margin: 0 0 16px; }
.feat-group legend { font-weight: 800; padding: 0 6px; }
.feat-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0ee; position: relative; cursor: pointer; }
.feat-row:last-child { border-bottom: 0; }
.feat-row .feat-text { display: flex; flex-direction: column; gap: 2px; }
.feat-row.feat-sub { padding-left: 26px; }

/* Emojis page: find a picture by name (2.93) */
.emo-find label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.emo-find input { flex: 1 1 220px; max-width: 420px; font: inherit; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.emo-card .emo-name { color: var(--muted, #666); font-style: italic; margin: 2px 0; }
.emo-card[hidden], .emo-grid[hidden] { display: none !important; }

/* Activities menu (2.93): a drop-down on wide screens, an indented list inside the ☰ menu. */
.menu-grp { position: relative; display: flex; align-items: center; }
.menu-grp .mg-top { text-decoration: none; padding: 8px 4px 8px 12px; border-radius: 10px 0 0 10px; color: var(--ink2); font-size: .95rem; }
.menu-grp .mg-top.is-here { color: var(--ink); font-weight: 600; }
.menu-grp .mg-tog { background: none; border: 0; padding: 8px 10px 8px 4px; border-radius: 0 10px 10px 0; color: var(--ink2); font: inherit; cursor: pointer; }
.menu-grp .mg-top:hover, .menu-grp .mg-tog:hover { background: var(--soft); color: var(--ink); }
.menu-grp .mg-sub { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.12); padding: 6px; flex-direction: column; }
.menu-grp:hover .mg-sub, .menu-grp:focus-within .mg-sub, .menu-grp.open .mg-sub { display: flex; }
.menu-grp .mg-sub a { text-decoration: none; padding: 9px 12px; border-radius: 8px; color: var(--ink2); }
.menu-grp .mg-sub a:hover { background: var(--soft); color: var(--ink); }
.menu-grp .mg-sub2 { display: flex; flex-direction: column; margin: 0 0 4px 14px; padding-left: 8px; border-left: 2px solid var(--line); }
.menu-grp .mg-sub2 a { padding: 6px 10px; font-size: .92rem; }
body.staff .menu-grp .mg-top { padding: 8px 2px 8px 9px; font-size: .9rem; }
@media (max-width: 860px) {
  .menu-grp { flex-wrap: wrap; }
  .menu-grp .mg-top { padding: 12px; flex: 1; }
  .menu-grp .mg-tog { display: none; }
  .menu-grp .mg-sub { display: flex; position: static; width: 100%; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 12px; padding: 0 0 0 6px; }
}
@media (max-width: 1300px) {
  body.staff .menu-grp { flex-wrap: wrap; }
  body.staff .menu-grp .mg-top { padding: 12px; flex: 1; font-size: .95rem; }
  body.staff .menu-grp .mg-tog { display: none; }
  body.staff .menu-grp .mg-sub { display: flex; position: static; width: 100%; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 12px; padding: 0 0 0 6px; }
}

/* Math practice (2.93) */
.math-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin: 16px 0; }
.math-op, .math-level { display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); background: #fff; }
.math-op:hover, .math-level:hover { border-color: var(--ink); }
.math-op b, .math-level b { font-size: 1.25rem; }
.mo-ic { font-size: 2.2rem; line-height: 1; }
h1 .mo-ic { font-size: 1em; }
.mo-ex { font-size: 1.35rem; font-weight: 700; color: var(--ink2); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mo-stars { color: #e3a008; letter-spacing: 2px; }
.math-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.math-level.is-next { border-color: #2f6b14; background: #f3faef; }
.math-level.is-passed b::after { content: ' ★'; color: #e3a008; }
.ml-go { font-weight: 700; color: #2f6b14; }
.math-play { max-width: 560px; margin: 0 auto; }
.m-dots { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 14px; flex-wrap: wrap; }
.md-g { display: flex; flex-wrap: wrap; gap: 6px; max-width: 150px; }
.md-g i { width: 26px; height: 26px; border-radius: 50%; background: #2a9fd6; display: block; }
.md-away i { background: #fff; border: 3px dashed #c8352b; }
.md-op { font-size: 2rem; font-weight: 700; }
.m-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.m-q { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-eq { font-size: 2.2rem; font-weight: 700; color: var(--ink2); }
.m-in { width: 4.2em; font: inherit; font-size: 2.4rem; font-weight: 800; text-align: center; padding: 4px 6px; border: 3px solid var(--line); border-radius: 14px; }
.m-in:focus { border-color: var(--ink); outline: none; }
.m-in.is-right { border-color: #2f6b14; background: #eef8e8; } .m-in.is-wrong { border-color: #c8352b; background: #fdeeee; }
.m-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 8px; justify-content: center; width: 100%; margin-top: 8px; }
.m-pad button { font: inherit; font-size: 1.6rem; font-weight: 700; height: 60px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; }
.m-pad button:hover:not(:disabled) { border-color: var(--ink); }
.m-pad .m-ok { background: var(--ink); color: #fff; border-color: var(--ink); font-size: 1rem; }
.m-pad button:disabled { opacity: .45; cursor: default; }
.math-play .w-after { text-align: center; margin-top: 14px; }
.ml-done { font-weight: 700; color: var(--ink2); } .ml-done.is-done { color: #2f6b14; }
.mo-times { color: #2f6b14; font-weight: 600; }
.m-times { font-size: 1.1rem; } .m-times .m-done { color: #2f6b14; }

/* Translations (2.95): boxes wrap and grow to show all the text; they can also be pulled taller. */
.tr-cell textarea.tr-grow { resize: vertical; min-height: 40px; overflow: hidden; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-cell textarea.tr-grow:focus { overflow: auto; }
/* Algebra (2.97): the equation, then "x = [answer]" on the line below; x in italics, unlike × */
.m-alg { flex-direction: column; gap: 14px; }
.m-alg .m-q { text-align: center; }
.m-alg .m-line { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 12px; border-top: 2px dashed var(--line); }
.m-x { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; color: #1f5fa8; padding: 0 .04em; }

/* 2.98: interface words in Inuttitut + English/French (tl()) inside buttons, links, labels and small text */
.btn .tri-learn, button .tri-learn { align-items: center; text-align: center; line-height: 1.15; }
.btn .tri-learn .tri-en, .btn .tri-learn .tri-fr, button .tri-learn .tri-en, button .tri-learn .tri-fr,
a .tri-learn .tri-en, a .tri-learn .tri-fr { color: inherit; opacity: .8; }
.tri-learn .tri-syl { line-height: 1.25; }
label > .tri-learn, .small .tri-learn, small .tri-learn { vertical-align: top; }
.flash .tri-learn, p .tri-learn { display: inline-flex; }
/* 2.99: wheel labels in two languages: the chosen language under the Inuttitut, smaller */
.wheel-label .wheel-label-2 { font-size: 13px; font-weight: 600; opacity: .85; }
/* the top menu with two-language words: compact */
.menu .tri-learn { line-height: 1.05; gap: 0; }
.menu .tri-learn .tri-en, .menu .tri-learn .tri-fr { font-size: .74em; opacity: .85; }
.foot .tri-learn { display: inline-flex; vertical-align: middle; }
.foot .tri-learn .tri-en, .foot .tri-learn .tri-fr { font-size: .85em; }

/* 3.00: language button in the top bar, shown when the menu is folded into ☰ (phones, tablets; staff below 1300px) */
.lang-quick { display: none; position: relative; margin-left: auto; }
.lang-quick > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink2); background: #fff; white-space: nowrap; max-width: 150px; }
.lang-quick > summary::-webkit-details-marker { display: none; }
.lang-quick > summary .lq-now { overflow: hidden; text-overflow: ellipsis; }
.lang-quick[open] > summary { border-color: var(--ink); color: var(--ink); }
.lang-quick .lq-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 6px; display: flex; flex-direction: column; min-width: 230px; }
.lang-quick .lq-pop button { text-align: left; border: 0; background: none; font: inherit; font-size: 1rem; padding: 11px 12px; border-radius: 10px; color: var(--ink2); cursor: pointer; }
.lang-quick .lq-pop button:hover { background: var(--soft); color: var(--ink); }
.lang-quick .lq-pop button.on { background: var(--ink); color: #fff; }
.lang-quick + .menu-toggle { margin-left: 6px; }
@media (max-width: 860px) { .lang-quick { display: block; } }
@media (max-width: 1300px) { body.staff .lang-quick { display: block; } }

/* 3.02: a round "pill" fits one line; when it holds two or three languages it becomes a softly rounded box that wraps all the lines */
:is(.dim, .felt, .felt-star, .soon-chip, .status, .crumbs a, .about-nav a, .subtabs a, .pill > span, .chip, .node-chip, .flag, .best-tag, .step-n, .kind-step, .think-kind, .mt-state, .sis-chip, .lane-tag, .group-tags span, .switch-state, .emo-tabs button, .kind-add, .toast, .count-pill, .dbadge, .langswitch button):has(.tri-learn > :nth-child(2)) { border-radius: 12px; display: inline-block; vertical-align: middle; padding-top: 4px; padding-bottom: 4px; line-height: 1.3; }
.pill > span:has(.tri-learn > :nth-child(2)) { border-radius: 18px; padding: 8px 18px; }
.crumbs a:has(.tri-learn > :nth-child(2)) { display: inline-flex; border-radius: 16px; padding: 7px 16px; }
.about-nav a:has(.tri-learn > :nth-child(2)) { border-radius: 14px; padding: 5px 14px; }
.dim .tri-learn > span, .status .tri-learn > span, .kind-step .tri-learn > span, .think-kind .tri-learn > span { color: inherit !important; }
.dim .tri-learn > span + span { opacity: .88; }
.m-pad .m-ok:has(.tri-learn > :nth-child(3)) { font-size: .82rem; line-height: 1.15; }
.pill input:checked + span .tri-learn > span { color: inherit !important; } .pill input:checked + span .tri-learn > span + span { opacity: .8; }
/* 3.03: the open ☰ menu scrolls on its own, so every item can be reached on a phone */
@media (max-width: 860px) {
  .menu.open { max-height: calc(100vh - var(--top-h, 64px)); max-height: calc(100dvh - var(--top-h, 64px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
}
@media (max-width: 1300px) {
  body.staff .menu.open { max-height: calc(100vh - var(--top-h, 64px)); max-height: calc(100dvh - var(--top-h, 64px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
}
@media (max-width: 860px) { .menu.open { flex-wrap: nowrap; } .menu.open > * { flex-shrink: 0; } }
@media (max-width: 1300px) { body.staff .menu.open { flex-wrap: nowrap; } body.staff .menu.open > * { flex-shrink: 0; } }
/* 3.04: on the Translations page the search box gets its own full-width line above the drop-down menus */
.tr-filters input[name="q"] { flex: 1 1 100%; min-width: 0; }
.tr-filters select { flex: 1 1 200px; width: auto; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
/* 3.05: Words game — the Next button sits right under the answers, next to "Right!/Not quite", and the page scrolls just enough to show it */
.w-go { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.w-go .w-verdict { margin: 0; }
.w-go .w-next { min-width: 150px; }
.w-after .w-meaning { margin: 8px 0 0; }
@media (max-width: 700px) {
  .words-play .crumbs { margin: 0 0 6px; }
  .words-play .wq { margin: 2px 0 6px; font-size: 1.1rem; }
  .w-pic { min-height: 0; height: 128px; font-size: 84px; padding: 8px; border-radius: 14px; }
  .w-pic img.emo { height: 112px !important; }
  .w-desc { padding: 10px 14px; font-size: 1.05rem; }
  .w-choices { gap: 8px; margin: 10px 0; }
  .w-choice { padding: 8px 10px; }
  .w-go { gap: 10px; }
  .w-go .w-next { flex: 1 1 150px; }
}
/* 3.08: Physical record weeks: the day, then the month (translatable, in every language chosen) */
.week small { display: flex; flex-direction: column; align-items: center; line-height: 1.2; text-align: center; }
.week small .wk-d { font-weight: 700; color: var(--ink2); }
.week small .tri-learn { font-size: .95em; }
/* 3.09: Write words — badges, rank, collection, my words; stars and credits in the games; hidden words for staff */
.wg-write { border-color: #f5b800; }
.wg-badges { font-size: 1.15rem; letter-spacing: 2px; } .wg-badges img.emo { height: 1.2em; vertical-align: middle; }
.words-write { max-width: 860px; margin: 0 auto; }
.wr-got { display: flex; gap: 18px; align-items: center; background: #fff8df; border: 2px solid #f5b800; border-radius: 18px; padding: 16px 18px; margin: 10px 0 18px; animation: wr-pop .5s ease-out; }
.wr-got h2 { margin: 0 0 4px; }
.wr-got p { margin: 4px 0; }
.wr-got-badge { font-size: 64px; line-height: 1; flex: 0 0 auto; animation: wr-spin 1s ease-out; } .wr-got-badge img.emo { height: 76px; width: auto; }
.wr-got-rank { font-weight: 700; } .wr-got-rank img.emo { height: 1.3em; vertical-align: middle; }
@keyframes wr-pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wr-spin { from { transform: rotate(-25deg) scale(.4); } 60% { transform: rotate(8deg) scale(1.15); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .wr-got, .wr-got-badge { animation: none; } }
.wr-me { border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 18px; }
.wr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; text-align: center; }
.wr-stats > div { background: var(--soft); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; gap: 2px; }
.wr-stats b { font-size: 1.5rem; }
.wr-stats span { font-size: .85rem; color: var(--ink2); }
.wr-rank { margin: 14px 0 4px; }
.wr-rank-now { display: inline-block; font-weight: 700; background: #fff3c4; border-radius: 12px; padding: 4px 12px; margin-bottom: 8px; } .wr-rank img.emo { height: 1.2em; vertical-align: middle; }
.wr-bar { height: 12px; background: var(--soft); border-radius: 8px; overflow: hidden; }
.wr-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f5b800, #f08a24); border-radius: 8px; }
.wr-h { font-size: 1.1rem; margin: 16px 0 8px; }
.wr-coll { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.wr-slot { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.wr-slot img.emo { height: 34px; width: auto; }
.wr-slot.has { background: #fff; border: 1.5px solid var(--line); }
.wr-slot.next { border: 2px dashed #f5b800; color: #b88a00; font-weight: 800; font-size: 22px; animation: wr-glow 1.6s ease-in-out infinite alternate; }
.wr-slot small { position: absolute; right: 3px; bottom: 1px; font-size: .62rem; font-weight: 700; color: var(--ink2); }
@keyframes wr-glow { from { background: #fffbea; } to { background: #ffefb0; } }
@media (prefers-reduced-motion: reduce) { .wr-slot.next { animation: none; } }
.wr-form fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.wr-form legend { font-weight: 700; margin-bottom: 6px; }
.wr-more { margin: 4px 0 12px; } .wr-more > summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.wr-notes ul { margin: 6px 0 0 18px; padding: 0; }
.wr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wr-list li { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.wr-list li.is-hidden { background: #fdecee; border-color: #f2b8bf; }
.wr-li-badge { font-size: 28px; text-align: center; } .wr-li-badge img.emo { height: 34px; }
.wr-li-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wr-li-desc { color: var(--ink2); overflow-wrap: anywhere; }
.wr-li-hidden { color: #a1202f; font-weight: 600; }
.wr-li-votes { white-space: nowrap; font-weight: 700; color: #b88a00; }
.wr-li-fix { color: #9a5a00; }
@media (max-width: 560px) { .wr-list li { grid-template-columns: 38px 1fr; } .wr-li-votes, .wr-list li .btn { grid-column: 2; justify-self: start; } }
.w-by { margin: 8px 0 0; font-size: .95rem; color: var(--ink2); } .w-by img.emo { height: 1.3em; vertical-align: middle; }
.w-staff { margin: 6px 0 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: .9rem; }
.w-own { margin: 8px 0 0; font-weight: 600; color: #b88a00; }
.w-rate { margin: 10px auto 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.w-rate-q { font-size: .95rem; color: var(--ink2); }
.w-rate-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.w-star, .w-fixb { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 12px; font: inherit; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.w-star .ws-ic, .w-fixb .ws-ic { font-size: 1.25rem; line-height: 1; color: #b88a00; }
.w-star.on { background: #fff3c4; border-color: #f5b800; } .w-star.on .ws-ic { color: #f5b800; }
.w-fixb.on { background: #fff4e5; border-color: #f08a24; }
.w-note { display: flex; gap: 6px; width: 100%; max-width: 420px; } .w-note input { flex: 1; min-width: 0; }
.wt-hidden { opacity: .6; background: #fdecee; }
.wt-act { white-space: nowrap; } .wt-act form { display: block; }
.wcounts a { text-decoration: none; }
.wr-more > summary { list-style: none; display: flex; gap: 8px; align-items: flex-start; }
.wr-more > summary::-webkit-details-marker { display: none; }
.wr-more > summary::before { content: '▸'; flex: 0 0 auto; transition: transform .15s; }
.wr-more[open] > summary::before { transform: rotate(90deg); }
/* 3.10: words wait to be checked; ★ in the menu for Producers, Informers and Administrators */
.wr-st { font-weight: 600; } .wr-st-wait { color: #8a6a00; } .wr-st-no { color: #a1202f; } .wr-st-ok { color: #1e7a3c; }
.nav-star { color: #b88a00 !important; font-weight: 700; white-space: nowrap; }
.nav-star .nav-star-l { display: none; }
.menu.open .nav-star .nav-star-l { display: inline; color: var(--ink2); font-weight: 600; }
.nav-star-n { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: #f5b800; color: #1d1d1b; font-size: .78rem; font-weight: 800; line-height: 1.5; text-align: center; vertical-align: 1px; }
.star-quick { display: none; margin-left: auto; text-decoration: none; color: #b88a00; font-weight: 700; font-size: 1.05rem; padding: 6px 10px; border: 1px solid #f5d66b; border-radius: 999px; background: #fffbea; white-space: nowrap; }
.lang-quick + .star-quick { margin-left: 6px; }
.star-quick + .menu-toggle { margin-left: 6px; }
@media (max-width: 1300px) { body.staff .star-quick { display: inline-block; } }
.wg-staff { display: flex; flex-wrap: wrap; gap: 10px; }
.wr-board ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.wr-board li span { margin-right: 8px; } .wr-board li b { color: #b88a00; } .wr-board li.me { font-weight: 700; }
.rv-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 14px 0; background: #fff; }
.rv-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: start; }
.rv-head p { margin: 2px 0 0; }
.rv-pic { font-size: 40px; line-height: 1; } .rv-pic img.emo { height: 56px; }
.rv-desc { margin: 10px 0; padding: 10px 12px; background: var(--soft); border-radius: 12px; }
.rv-desc p { margin: 0 0 4px; overflow-wrap: anywhere; } .rv-desc p:last-child { margin: 0; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rv-no { display: flex; gap: 8px; flex: 1 1 320px; } .rv-no input { flex: 1; min-width: 0; }
.rv-pt { font-size: .8rem; opacity: .8; margin-left: 4px; }
@media (max-width: 560px) { .rv-no { flex-direction: column; } .rv-actions > .btn { width: 100%; } }

/* 3.11: an activity of Words turned off (only Administrators still see it) */
.words-game .wg-off { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 700; color: #8a5a00; background: #fff4d6; border-radius: 999px; padding: 2px 10px; align-self: flex-start; }

/* 3.12: language menu words in English or French: the Inuttitut first, then the English or French under it */
.ll { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; gap: 1px; }
.ll .ll-iu { font-size: .92em; }
.ll .ll-en, .ll .ll-fr { font-size: .72em; opacity: .75; }
.lq-pop .ll { align-items: flex-start; }
.lq-now .ll { flex-direction: row; gap: 5px; align-items: baseline; }

/* 3.12: new versions of my words to answer (Words in the menu, and ✍️ next to ☰ on phones) */
.star-quick + .star-quick { margin-left: 6px; }
@media (max-width: 860px) { .sw-quick { display: inline-block; } }
.wr-sw-alert { display: inline-block; margin-top: 4px; font-weight: 700; color: #8a5a00; background: #fff4d6; border-radius: 999px; padding: 2px 10px; align-self: flex-start; }
.wr-similar, .wr-swap { border: 2px solid #f5d66b; background: #fffbea; border-radius: 16px; padding: 16px 18px; margin: 18px 0; }
.wr-similar h2, .wr-swap h2 { margin-top: 0; }
.sw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.sw-side { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sw-side h3 { margin: 0 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink2); }
.sw-side.sw-new { border-color: #9bc37a; }
.sw-side p { margin: 4px 0; }
.sw-pic { font-size: 1.6rem; float: right; }
.sw-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sim-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.sim-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.sim-list .sim-main { flex: 1 1 220px; }
.sim-list .sim-main p { margin: 3px 0; }
.sim-same { display: inline-block; font-size: .75rem; font-weight: 700; background: #fde2e1; color: #9b1c1c; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.sim-mine { display: inline-block; font-size: .75rem; font-weight: 700; background: #e6f2ff; color: #1d4f91; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.wr-new-word { background: #fff; border: 1px dashed #9bc37a; border-radius: 12px; padding: 10px 14px; }
.sw-kept { font-size: .85rem; color: #8a5a00; }
@media (max-width: 640px) { .sw-pair { grid-template-columns: 1fr; } }

/* 3.13: Next right under the score, for those who go fast */
.quick-next { display: flex; justify-content: center; margin: 14px 0 18px; }
.quick-next .btn { min-width: 200px; }
.feedback.fb-plain { padding-top: 18px; }

/* 3.13: on small phones, a ★ or ✍️ next to ☰ leaves no room for the name: the logo stays, the name hides, the pills slim down */
@media (max-width: 480px) {
  .top:has(.star-quick) .brand span { display: none; }
  .top:has(.star-quick) .star-quick { padding: 5px 8px; font-size: .95rem; }
}

/* 3.13: map cards: "Complete" and the ★ on one line, no "how it felt" chip */
.node-sub-row { margin-top: auto; display: flex; align-items: flex-end; gap: 6px; }
.node-sub-row .node-sub { margin-top: 0; min-width: 0; }
/* 3.52: the ★ sits in the card's bottom-right corner, so it never makes the card taller or sticks out */
.node-sub-row .felt-star { position: absolute; right: 4px; bottom: 3px; font-size: .7rem; padding: 0 5px; line-height: 1.35; }
.node-sub-row:has(.felt-star) { padding-bottom: 8px; }   /* room for the ★ under a long last line (like ᐱᔭᕇᕐᓯᒪᔪᖅ) */

/* 3.13: "Do again" stands out: filled in the path's colour, with ↻, at the end of the row */
.act-links { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.btn.btn-again { background: var(--dcd, var(--green-d)); border-color: var(--dcd, var(--green-d)); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.btn.btn-again:hover { filter: brightness(1.08); }
.btn-again .again-ic { font-size: 1.25em; font-weight: 800; line-height: 1; }

/* 3.15: Translations: the words new since the last update */
.tr-new { border: 2px solid #f5d66b; background: #fffbea; border-radius: 14px; padding: 12px 16px; margin: 14px 0; display: grid; gap: 8px; }
.tr-new.tr-new-done { border-color: #b9dca2; background: #f3faee; }
.tr-new-miss { color: #8a5a00; font-weight: 700; margin-left: 6px; }
.tr-new-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tr-new-tag { font-size: .72rem; font-weight: 700; background: #fff4d6; color: #8a5a00; border-radius: 999px; padding: 1px 7px; }

/* 3.15: map cards start the next activity; ☰ Choose opens the list */
.node-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.node-pick { font-size: .72rem; font-weight: 700; color: var(--ink2); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px 9px; cursor: pointer; white-space: nowrap; position: relative; z-index: 2; }
.node-pick:hover, .node-pick:focus-visible { border-color: var(--dcd, var(--ink2)); color: var(--dcd, var(--ink)); }
.crumbs-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs-act a { display: inline-flex; align-items: center; gap: 4px; }
.crumbs-act .crumb-map { font-weight: 700; }
.crumb-sep { color: var(--ink3); }

/* 3.15 "Answer and move on": checked at once */
.q-quick { scroll-margin-top: calc(var(--top-h, 70px) + 12px); }
.choice.wrong .choice-box { border-color: #e04a4a; background: #fdecec; box-shadow: inset 0 0 0 3px #e04a4a; }
.choice.wrong .choice-box::before { content: "✕"; position: absolute; top: 6px; right: 10px; font-size: 1rem; font-weight: 800; color: #c4122a; }
.choice.right-show .choice-box { border-color: #67b13e; border-style: dashed; background: #f1f9ee; }
.choice.right-show .choice-box::before { content: "✓"; position: absolute; top: 6px; right: 10px; font-size: 1rem; font-weight: 800; color: #3f7f22; }
.q-quick.quick-done .choice input:disabled + .choice-box { cursor: default; }
.q-quick.quick-done .choice:not(.right):not(.wrong):not(.right-show) .choice-box { opacity: .55; }
.btn.quick-sending { animation: quick-pulse .5s ease-in-out 2; }
@keyframes quick-pulse { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .btn.quick-sending { animation: none; } }

/* 3.15: class themes for Write words */
.wt-banner { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; text-decoration: none; color: var(--ink); border: 2px solid #f5b800; background: linear-gradient(135deg, #fff7d6, #fffdf3); border-radius: 16px; padding: 12px 16px; margin: 12px 0 16px; }
.wt-banner .wt-ic { grid-row: span 2; font-size: 1.9rem; }
.wt-banner .small { color: var(--ink2); }
.wt-now { border: 2px solid #f5b800; background: linear-gradient(135deg, #fff7d6, #fffdf3); border-radius: 18px; padding: 14px 18px; margin: 16px 0; }
.wt-now-head { display: flex; gap: 12px; align-items: flex-start; }
.wt-now-head .wt-ic { font-size: 2.2rem; line-height: 1; }
.wt-now h2 { margin: 2px 0 4px; }
.wt-kicker { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #8a5a00; }
.wt-words summary { cursor: pointer; font-weight: 700; margin-top: 6px; }
.wt-chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wt-chips li { background: #fff; border: 1.5px solid #f1dc8f; border-radius: 999px; padding: 4px 12px; display: inline-flex; align-items: center; gap: 4px; }
.wt-chips li.mine { border-color: #9bc37a; }
.wt-chips li.waiting { opacity: .75; border-style: dashed; }
.wt-for { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #fffbea; border: 1.5px solid #f5d66b; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.wt-for select { flex: 1 1 200px; }
.wt-act { display: inline-flex; gap: 6px; align-items: center; }

.choice.wrong input:checked + .choice-box { border-color: #e04a4a; background: #fdecec; box-shadow: inset 0 0 0 3px #e04a4a; }
.choice.wrong input:checked + .choice-box::after { content: none; }

/* 3.16: the coming moments under the map's title: space under Continue, "Tomorrow" kept whole beside the event */
.map-head { margin-bottom: 6px; }
.map-soon { margin: 14px 0 18px; }
.map-soon .soon-chip { display: flex !important; align-items: center; gap: 10px; border-radius: 16px !important; padding: 8px 14px !important; line-height: 1.3; }
.map-soon .soon-ic { flex: none; font-size: 1.2rem; }
.map-soon .soon-when { flex: none; white-space: nowrap; padding-right: 10px; border-right: 1px solid #f2c94c; }
.map-soon .soon-when .tri-learn > * { white-space: nowrap; }
.map-soon .soon-title { flex: 1 1 auto; min-width: 0; }

/* 3.18: Features: the language people see first */
.feat-first { display: grid; gap: 4px; margin: 12px 0 4px; padding-top: 12px; border-top: 1px dashed var(--line); }
.feat-first select { max-width: 340px; }

/* 3.18: home: the title over the three columns sits tighter */
.process h2 .tri-learn > * { line-height: 1.12; margin-top: 0; margin-bottom: 0; }
.process h2 .tri-learn > * + * { margin-top: 2px; }
/* 3.18: inside the green, red and blue shapes, every language in white (the dotted lines stay under the syllabics) */
.pbox, .pbox .sub, .pbox li, .pbox .tri-learn > *, .pbox .tri-learn .tri-en, .pbox .tri-learn .tri-fr, .pbox .tri-learn .tri-rom { color: #fff !important; }
.pbox li::marker { color: #fff; }
/* 3.18: the green shape's slant no longer cuts its last line: the slant has a set height and the text stops above it */
.pc-core .pbox { --slant: clamp(70px, 12vh, 140px); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--slant))); padding-bottom: calc(var(--slant) + 10px) !important; }
/* 3.18: the title above each shape in the shape's colour, in every language (dotted line stays under the syllabics) */
.pcol .ptitle, .pcol .ptitle .tri-learn > *, .pcol .ptitle .tri-learn .tri-en, .pcol .ptitle .tri-learn .tri-fr, .pcol .ptitle .tri-learn .tri-rom { color: var(--c) !important; }

/* 3.19: the box under the results is tighter: smaller gaps, the three choices share the width */
.feedback { margin-top: 18px; padding: 16px 14px; }
.feedback .fb-q { margin: 0 0 10px; text-align: center; }
.feedback .fb-diff { gap: 6px; margin-bottom: 12px; }
.feedback .fb-diff .pill { flex: 1 1 0; min-width: 0; display: flex; }
.feedback .fb-diff .pill > span { flex: 1; text-align: center; padding: 6px 8px !important; }
.feedback .fb-next { gap: 8px; }
.feedback .fb-next .btn { padding-top: 8px; padding-bottom: 8px; }
.feedback .fb-star-note { margin: 4px 0 0; line-height: 1.25; }
.feedback .fb-map { margin-top: 10px; }
.feedback .fb-map .btn { padding-top: 8px; padding-bottom: 8px; }
.quick-next { margin: 10px 0 14px; }
.feedback .fb-diff .pill > span { overflow-wrap: anywhere; font-size: .95rem; padding: 6px 4px !important; min-width: 0; }
@media (max-width: 480px) { .feedback .fb-diff .pill > span { font-size: .84rem; } .feedback { padding: 14px 10px; } }

/* 3.21: buttons with an arrow: the text in the middle, the arrow halfway between the text and the button's edge */
.btn.btn-arrow { display: inline-flex; align-items: center; justify-content: center; }
.btn.btn-arrow[hidden] { display: none; }
.btn.btn-arrow::before { content: ""; flex: 1 1 0; min-width: 1.6em; }
.btn.btn-arrow .ba-text { flex: 0 1 auto; text-align: center; }
.btn.btn-arrow .ba-arrow { flex: 1 1 0; display: flex; justify-content: center; align-items: center; font-size: 1.15em; min-width: 1.6em; }
.btn.btn-arrow { padding-left: 0; padding-right: 0; gap: 0; }
.btn.btn-arrow::before, .btn.btn-arrow .ba-arrow { min-width: 2.8em; }

/* 3.22: a path's label row: with several languages, each language sits on the same line in the coloured label
   and in "Level 2 · Base of reason" (syllabics with syllabics, English with English, French with French) */
.node-meta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.node-meta .dim { padding: 5px 12px !important; border-radius: 12px; font-size: .9rem; line-height: 1.4; display: inline-block; }
.node-meta .lvl { display: inline-flex; flex-wrap: wrap; align-items: flex-start; gap: 0 6px; padding-top: 5px; font-size: .9rem; line-height: 1.4; }
.node-meta .tri-learn > * { display: block; font-size: 1em !important; line-height: 1.4 !important; margin: 0 !important; padding: 0 !important; min-height: 1.4em; }
.node-meta { flex-wrap: nowrap; }
.node-meta .dim { flex: none; }
.node-meta .lvl { flex: 1 1 0; min-width: 0; }
@media (max-width: 480px) { .node-meta .dim, .node-meta .lvl { font-size: .82rem; } .node-meta { gap: 8px; } }
@media (max-width: 600px) {
  .node-meta { flex-wrap: wrap; gap: 8px; }
  .node-meta .lvl { flex: 1 1 100%; padding-top: 0; }
}

/* 3.23: buttons with an icon on the left (map, download): the words in the middle, the icon halfway between
   the button's left edge and the words, in the button's own colour */
.btn.btn-icon { display: inline-flex; align-items: center; justify-content: center; padding-left: 0; padding-right: 0; gap: 0; }
.btn.btn-icon[hidden] { display: none; }
.btn.btn-icon .bi-icon { flex: 1 1 0; min-width: 2.8em; display: flex; justify-content: center; align-items: center; }
.btn.btn-icon .bi-text { flex: 0 1 auto; text-align: center; }
.btn.btn-icon::after { content: ""; flex: 1 1 0; min-width: 2.8em; }
.btn .ic { width: 1.5em; height: 1.5em; flex: none; }
.btn-big .ic { width: 1.6em; height: 1.6em; }

/* ===== 3.24: layout and design ===== */
/* Drawn icons everywhere in the interface: the colour of the text around them */
.ic { width: 1.25em; height: 1.25em; vertical-align: -.25em; flex: none; }
.btn .ic { width: 1.35em; height: 1.35em; }
.btn.btn-icon .ic { width: 1.5em; height: 1.5em; }
.crumbs-act .ic { width: 1.15em; height: 1.15em; }
.node-pick .ic { width: 1.1em; height: 1.1em; vertical-align: -.2em; }
.icon-link .ic { width: 1.3em; height: 1.3em; }
.hint-btn .ic { color: #c99500; }
.lang-quick summary .ic { width: 1.25em; height: 1.25em; color: #3d7bd9; }
.sw-quick .ic { width: 1.2em; height: 1.2em; color: #8a5a00; }

/* 2. A path's page: Print and Save for offline share one row, as two smaller buttons */
.node-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.node-tools .btn-tool { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; font-size: .92rem; min-height: 46px; }
.node-tools .btn-tool[hidden] { display: none; }
.node-tools .btn-tool .tri-learn { text-align: left; align-items: flex-start; }

/* 3. Buttons with several languages: the first language full size, the others smaller and lighter */
.btn .tri-learn > span + span, button .tri-learn > span + span { font-size: .78em !important; opacity: .82; line-height: 1.15 !important; font-weight: 500; }
.btn .tri-learn, button .tri-learn { line-height: 1.12; gap: 1px; }

/* 4. Phones: the language button shows the globe and a short name; the full names are in the list it opens */
.lq-short { display: none; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 600px) {
  .lang-quick summary .lq-now { display: none; }
  .lang-quick summary .lq-short { display: inline; }
  .lang-quick summary { padding-left: 10px; padding-right: 12px; gap: 4px; }
}

/* 6. Phones: room at the bottom so the last button is not under the browser's own bar */
@media (max-width: 900px) and (pointer: coarse) {
  .foot { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* 7. Phones: a path's activities: a narrow number, the title on its own line, the dots and the result under it */
@media (max-width: 600px) {
  .tree .act { display: grid; grid-template-columns: auto auto 1fr auto; grid-template-areas: "num title title links" "num vals state links"; column-gap: 8px; row-gap: 4px; align-items: center; padding: 10px 4px; }
  .tree .act .num { grid-area: num; width: auto; min-width: 26px; font-size: .85rem; align-self: start; padding-top: 2px; }
  .tree .act .act-title { grid-area: title; min-width: 0; }
  .tree .act .vals { grid-area: vals; }
  .tree .act .act-state { grid-area: state; min-width: 0; }
  .tree .act .act-links { grid-area: links; margin-left: 0; flex-direction: column; align-items: flex-end; gap: 6px; }
  .depth-1 { padding-left: 14px !important; } .depth-2 { padding-left: 26px !important; } .depth-3 { padding-left: 38px !important; }
}
/* 3.24: the footer wraps on small phones instead of pushing the page sideways */
.foot { flex-wrap: wrap; row-gap: 6px; }
.foot .version { max-width: 100%; }
@media (max-width: 420px) { .foot .version { flex-basis: 100%; text-align: center; margin-left: 0; } }

/* ===== 3.25: the writing ladder ===== */
.wl { display: grid; gap: 10px; }
.wl-voice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: #f3f8ff; border: 1.5px solid #cfe0f7; }
.wl-voice .wl-rec { font-size: 1.05rem; padding: 12px 20px; }
.wl-voice .wl-rec .ic { width: 1.4em; height: 1.4em; }
.wl-voice .wl-rec.wl-recording { background: #d93025; border-color: #d93025; animation: wl-pulse 1.2s ease-in-out infinite; }
@keyframes wl-pulse { 50% { box-shadow: 0 0 0 8px rgba(217,48,37,.18); } }
@media (prefers-reduced-motion: reduce) { .wl-voice .wl-rec.wl-recording { animation: none; } }
.wl-voice .wl-rec-time { font-variant-numeric: tabular-nums; font-weight: 700; color: #d93025; }
.wl-voice .wl-play { max-width: 100%; height: 40px; }
.wl-voice .wl-voice-note { flex-basis: 100%; margin: 0; }
.wl-has-voice .wl-voice { background: #eef8ea; border-color: #b9dca2; }
.wl-write summary { cursor: pointer; font-weight: 600; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; padding: 4px 0; }
.wl-write[open] summary { margin-bottom: 8px; }
.wl-write textarea { width: 100%; }
.wl-or { margin: 0; }
.wl-starts { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-start { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .92rem; cursor: pointer; color: var(--ink); }
.wl-start:hover, .wl-start:focus-visible { border-color: var(--ink2); }
.wl-start .tri-learn > span + span { font-size: .8em; opacity: .8; }
.wl-need { margin: 0; }
.wl-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-tile { min-width: 52px; padding: 10px 14px; font: inherit; font-size: 1.35rem; font-weight: 600; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.wl-tile:hover:not(:disabled), .wl-tile:focus-visible { border-color: var(--ink2); }
.wl-tile:disabled { opacity: .3; cursor: default; }
.wl-tile-word { font-size: 1.4rem; padding: 12px 20px; }
.wl-tile-word.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.wl-built-row { display: flex; gap: 8px; align-items: center; }
.wl-built-row .wl-built { flex: 1; font-size: 1.4rem; background: #fafaf7; }
.wl-model { margin: 0 0 6px; }
.wl-model-word { font-size: 1.5rem; letter-spacing: .02em; padding: 2px 10px; border-radius: 8px; background: #fff7d6; }
.think-voice, .refl-voice { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.think-voice audio, .refl-voice audio { height: 36px; max-width: 100%; }

/* ===== 3.26: the syllabics keyboard (layout by Thomassie Mangiok) ===== */
.kb-open-btn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 2px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink2); cursor: pointer; }
.kb-open-btn .ic { width: 1.3em; height: 1.3em; color: var(--ink); }
.kb-open-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; } .kb-open-btn.on .ic { color: #fff; }
.sylkbd { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #57575b; padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
.sylkbd[hidden] { display: none; }
.sylkbd .kb-bar { display: flex; justify-content: space-between; align-items: center; max-width: 620px; margin: 0 auto 6px; color: #fff; }
.sylkbd .kb-title { font-weight: 700; opacity: .85; padding-left: 4px; }
.sylkbd .kb-close { background: none; border: 0; color: #fff; padding: 4px 8px; cursor: pointer; }
.sylkbd .kb-close .ic { width: 1.6em; height: 1.6em; }
.kb-keys { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; max-width: 620px; margin: 0 auto; }
.kb-k { min-width: 0; height: 52px; border: 0; border-radius: 9px; font: inherit; font-size: 1.55rem; line-height: 1; padding: 0; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.28); color: #fff; display: flex; align-items: center; justify-content: center; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.kb-k:active { transform: translateY(1px); filter: brightness(1.12); box-shadow: none; }
.kb-green { background: #7bbf45; } .kb-blue { background: #1c95c4; } .kb-orange { background: #e8692b; } .kb-black { background: #050505; }
.kb-white { background: #fff; color: #333; }
.kb-off { opacity: .4; }
.kb-mod.on .kb-dot1 { background: #1c95c4; }
.kb-dot1 { width: 7px; height: 7px; border-radius: 50%; background: #333; display: block; }
.kb-dot2 { width: 20px; height: 7px; display: block; background: radial-gradient(circle at 3.5px 3.5px, #333 3.5px, transparent 4px), radial-gradient(circle at 16.5px 3.5px, #333 3.5px, transparent 4px); }
.kb-set.on { box-shadow: inset 0 0 0 3px #fff, 0 2px 0 rgba(0,0,0,.28); }
.kb-tri { width: 0; height: 0; display: block; border: 13px solid transparent; }
.kb-tri-down { border-top: 22px solid #fff; border-bottom: 0; margin-top: 4px; }
.kb-tri-up { border-bottom: 22px solid #fff; border-top: 0; margin-bottom: 4px; }
.kb-tri-right { border-left: 22px solid #fff; border-right: 0; margin-left: 6px; }
.kb-tri-left { border-right: 22px solid #fff; border-left: 0; margin-right: 6px; }
.kb-erase { grid-column: span 2; }
.kb-space { grid-column: span 3; align-items: flex-end; padding-bottom: 14px; }
.kb-space-bar { width: 60%; height: 4px; border-radius: 2px; background: #444; display: block; }
.kb-enter { grid-column: span 2; }
.kb-erase svg, .kb-enter svg { width: 70%; max-width: 64px; height: auto; }
.kb-numkey { font-size: 1.4rem; }
/* 3.28: the finals at the same size as ᕻ and the other syllabics (no enlarging) */
body.kb-open { padding-bottom: 300px; }
@media (max-width: 480px) { .kb-k { height: 46px; font-size: 1.35rem; } .kb-keys { gap: 5px; } .sylkbd { padding-left: 5px; padding-right: 5px; } .kb-tri { border-width: 11px; } .kb-tri-down { border-top-width: 19px; } .kb-tri-up { border-bottom-width: 19px; } .kb-tri-right { border-left-width: 19px; } .kb-tri-left { border-right-width: 19px; } }

/* 3.27: "My keyboard" in the keyboard's bar; the enter key's arrow */
.sylkbd .kb-bar { gap: 8px; }
.sylkbd .kb-title { margin-right: auto; }
.sylkbd .kb-mine { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.sylkbd .kb-mine .ic { width: 1.3em; height: 1.3em; }
.kb-enter svg { width: 34px; height: 34px; max-width: none; }
/* 3.29: "I made this, or I have permission" */
.rights-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0; padding: 6px 10px; border: 1.5px dashed var(--line); border-radius: 8px; font-size: .9rem; line-height: 1.35; color: var(--ink2); }
.rights-box > label.check { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.rights-box input { flex: none; width: 18px; height: 18px; margin: 0; }
.rights-box .notice-pop { display: contents; }
.rights-box .notice-pop .np-body { flex-basis: 100%; }
.rights-box:has(input:checked) { border-style: solid; border-color: var(--green); color: var(--ink); }
/* 3.30 */
.wr-gift { margin: 10px 0 4px; }
/* 3.31: a notice behind a small button */
.notice-pop > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--ink2); border-radius: 999px; padding: 2px 4px; }
.notice-pop > summary::-webkit-details-marker { display: none; }
.np-i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font: italic 700 .8rem/1 Georgia, serif; flex: none; }
.notice-pop[open] > summary .np-i { background: var(--ink2); color: #fff; border-color: var(--ink2); }
.np-body { margin: 6px 0 2px; padding: 8px 10px; background: #f5f5f3; border-radius: 8px; font-size: .88rem; line-height: 1.45; color: var(--ink2); }
.wh-box { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 18px 0; }
.wh-box h2 { margin-top: 0; }
.wh-hidden { background: #fff7e0; border-color: #e6c25a; }
.status.st-withdrawn { background: #eee; color: #777; }
/* 3.34: invite people to Write words */
.wi-top { margin: 4px 0 14px; }
.wi-theme-share { margin-top: 8px; }
.wi-page { text-align: center; }
.wi-page .wi-logo { display: block; margin: 0 auto 6px; }
.wi-theme { background: #fff7e0; border-radius: 10px; padding: 8px 12px; display: inline-block; margin: 4px 0 10px; }
.wi-go { display: flex; flex-direction: column; gap: 10px; align-items: center; margin: 18px 0 8px; }
.wi-go .btn { min-width: 240px; }
.wi-poster-lead { font-size: 1.3rem; max-width: 520px; margin: 10px auto 18px; }

/* 3.35: QR sign-in cards */
.login-card .lc-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.login-card .lc-qr { flex: none; text-align: center; }
.login-card .lc-qr svg { display: block; width: 116px; height: 116px; }
.login-card .lc-scan { font-size: .8rem; font-weight: 700; margin-top: 2px; }
.card-page { text-align: center; }
.card-page .card-mark { display: block; margin: 0 auto 8px; }
.card-page .card-name { font-size: 2rem; line-height: 1.25; margin: 0 0 16px; }
.card-page .form { align-items: center; }
.card-page .card-go { width: 100%; max-width: 320px; font-size: 1.4rem; padding: 18px; }
.card-page .keep-check { text-align: left; max-width: 360px; margin: 14px auto 0; }
@media print { .card-grid .login-card { padding: 12px; gap: 10px; } }

/* 3.36 Listen and tap */
.listen { margin-top: 8px; }
.ls-screen { position: relative; min-height: 132px; border: 2px solid var(--line); border-radius: 18px; background: var(--soft); display: flex; align-items: center; justify-content: center; padding: 14px; }
.ls-wait { color: var(--ink2); text-align: center; font-size: 1rem; }
.ls-pop { position: absolute; inset: 14px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ls-pop:empty { display: none; }
.ls-set { display: flex; gap: 10px; width: 100%; justify-content: center; flex-wrap: wrap; pointer-events: auto; animation: ls-in .22s ease-out; }
.ls-set.ls-out { animation: ls-out .3s ease-in forwards; pointer-events: none; }
@keyframes ls-in { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes ls-out { to { opacity: 0; transform: translateY(-10px) scale(.96); } }
.ls-opt { flex: 1 1 0; min-width: 0; max-width: 220px; min-height: 84px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font: inherit; font-size: 1.45rem; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; transition: transform .08s, border-color .12s, background .12s; }
.ls-opt:active { transform: scale(.96); }
.ls-opt .tri-rom, .ls-opt .tri-en, .ls-opt .tri-fr { font-size: .85rem; font-weight: 500; color: var(--ink2); }
.ls-opt.ls-right { border-color: var(--green); background: color-mix(in srgb, var(--green) 16%, #fff); }
.ls-opt.ls-wrong { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, #fff); }
.ls-opt.ls-was { border-color: var(--green); border-style: dashed; }
.ls-track { position: relative; height: 8px; border-radius: 99px; background: var(--line); margin: 14px 4px 12px; }
.ls-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: var(--dc, var(--blue-d)); }
.ls-tick { position: absolute; top: -3px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: var(--ink3); opacity: .55; }
.ls-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ls-speeds { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.ls-speed input { position: absolute; opacity: 0; pointer-events: none; }
.ls-speed span { display: inline-block; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; cursor: pointer; background: #fff; }
.ls-speed input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.ls-speed input:focus-visible + span { outline: 3px solid var(--blue); }
.ls-tally { display: flex; gap: 16px; margin-top: 10px; font-size: 1rem; color: var(--ink2); }
.ls-ok b { color: var(--green-d); }
.ls-no b { color: var(--red-d); }
.ls-of { margin-left: auto; }
.ls-end { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--soft); }
.ls-score { font-size: 1.5rem; margin: 0 0 6px; }
.ls-missed ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ls-missed li { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 1.15rem; font-weight: 600; }
.ls-word .tri-rom, .ls-word .tri-en, .ls-word .tri-fr { font-size: .8rem; font-weight: 500; color: var(--ink2); margin-left: 4px; }
.listen.ls-done .ls-screen { display: none; }
@media (max-width: 520px) { .ls-opt { font-size: 1.2rem; min-height: 72px; padding: 8px; } .ls-speeds { margin-left: 0; } }
/* Designer: marking the words */
.ls-edit { margin: 8px 0; }
.ls-player { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; position: sticky; top: 64px; z-index: 3; background: #fff; padding: 6px 0; }
.ls-audio { flex: 1 1 280px; min-width: 0; }
.ls-markbtn { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; min-width: 120px; }
.ls-marks { display: flex; flex-direction: column; gap: 6px; }
.ls-rate { width: auto; }
.ls-mrow { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ls-mrow > .play, .ls-mrow > .ls-num, .ls-mrow > .ls-nudge, .ls-mrow > .linkish { margin-top: 10px; }
.ls-nudge { display: inline-flex; align-items: center; gap: 2px; }
.ls-nudge .linkish { font-size: 1.2rem; padding: 0 6px; text-decoration: none; }
.ls-field { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ls-field input { width: 100%; }
.ls-num { width: 22px; text-align: right; color: var(--ink3); font-size: .85rem; }
.ls-time { font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; font-size: .9rem; }

/* 3.39: QR cards shown full screen on the teacher's phone (informer/screen.php) */
.screen-body main.wrap { max-width: 640px; padding: 0; margin: 0 auto; }
.scr-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--bg, #fff); }
.scr-close { font-weight: 700; text-decoration: none; padding: 8px 4px; }
.scr-count { font-size: 1.1rem; }
.scr-arrows { display: flex; gap: 8px; }
.scr-arrows button { width: 48px; height: 44px; border-radius: 12px; border: 2px solid var(--ink, #111); background: transparent; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.scr-arrows button:disabled { opacity: .25; cursor: default; }
.scr-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.scr-track::-webkit-scrollbar { display: none; }
.scr-card { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px 12px; min-height: calc(100svh - 120px); text-align: center; box-sizing: border-box; }
.scr-name b { display: block; font-size: 1.9rem; line-height: 1.15; overflow-wrap: anywhere; }
.scr-name span { display: block; font-size: 1.6rem; margin-top: 2px; }
.scr-qr { background: #fff; padding: 6px; border-radius: 12px; }
.scr-qr svg { display: block; width: min(84vw, 52svh, 460px); height: auto; }
.scr-scan { font-weight: 700; font-size: 1.15rem; }
.scr-note { text-align: center; padding: 0 16px 16px; margin: 0; }

/* 3.41: Administration → Font: the fonts on the website */
.fi-list { margin: 8px 0 28px; }
.fi-card { border: 1px solid var(--line); border-radius: var(--r, 12px); padding: 14px 16px; margin-bottom: 12px; max-width: 640px; }
.fi-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.fi-dev { padding: 2px 10px; border-radius: 99px; background: var(--soft); white-space: nowrap; }
.fi-dev.fi-ok { background: #e6f4dc; color: #2f6b12; font-weight: 600; }
.fi-dev.fi-bad { background: #fde3e5; color: #a3121f; font-weight: 600; }
.fi-sample { font-size: 1.5rem; margin: 10px 0; overflow-wrap: anywhere; }
.fi-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 8px; font-size: .95rem; }
.fi-dl dt { color: var(--ink2); }
.fi-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .fi-dl { gap: 4px 10px; font-size: .88rem; } }

/* 3.44: from the word games to Write words */
.wp-crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.wp-crumbs .wp-write { background: #fff8e6; border-color: #f2b705; }
.wend-write { margin: 22px auto 0; max-width: 520px; padding: 16px 18px; border: 2px dashed #f2b705; border-radius: 16px; background: #fffbef; }
.wend-write p { margin: 0 0 12px; font-weight: 600; }

/* 3.45: what a person may do with words */
.acc-limits { margin: 14px 0 6px; padding: 10px 14px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.acc-limits legend { font-weight: 700; padding: 0 6px; }
.acc-limits small { display: block; margin: 0 0 8px 28px; }

/* 3.46: nothing wider than a phone screen */
.ms-list > *, .ms-card > * { min-width: 0; }
.ms-card header > div:first-child { min-width: 0; flex: 1 1 160px; }
@media (max-width: 700px) {
  main table.table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main select { max-width: 100%; }
}
/* Pages made for paper (certificates, printed sheets, consent form): shrunk to fit a phone screen, printed full size */
@media screen { main.print.fit-screen { zoom: var(--fit, 1); } }
.searchbar { flex-wrap: wrap; } .searchbar input { min-width: 180px; } .searchbar select { max-width: 100%; }
.two > * { min-width: 0; }

/* 3.47: the roman line under the syllabics is the same size in every button, badge and chip */
:root { --rom-sm: .82rem; }
.btn .tri-learn > span + span, button .tri-learn > span + span,
:is(.dim, .felt, .felt-star, .soon-chip, .status, .chip, .node-chip, .flag, .best-tag, .kind-step, .think-kind, .mt-state, .sis-chip, .lane-tag, .group-tags span, .switch-state, .emo-tabs button, .kind-add, .count-pill, .dbadge) .tri-learn > span + span {
  font-size: var(--rom-sm) !important; line-height: 1.2 !important;
}
.felt:has(.tri-learn > :nth-child(2)), .felt-star:has(.tri-learn > :nth-child(2)) { font-size: .9rem; }

/* 3.48: share a math level */
.ms-crumbs { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ms-crumbs .crumbs { margin-bottom: 6px; }
.ms-end { margin-top: 18px; display: flex; justify-content: center; }
.ms-level { font-weight: 700; color: var(--ink2); margin: 0 0 6px; }
.ms-hero { background: #eef7e8; }
.ms-ex { font-size: 2.6rem; font-weight: 800; letter-spacing: .02em; padding: 12px 0; }
.ms-poster .ms-ex { font-size: 3.2rem; }
.ms-keep { margin-top: 18px; }

/* 3.50: sign-up checks */
.sg-box { margin-top: 12px; }
.sg-box input[type=password], .sg-box input[name=turnstile_site] { font-family: ui-monospace, monospace; }
.sg-why { color: var(--ink2); }
.cf-turnstile { margin: 6px 0 12px; min-height: 65px; }
.ec-resend { margin: -4px 0 14px; }
.ec-sent h1 { margin-bottom: 8px; }

/* 3.51: sign-up posters */
.pst-list { display: grid; gap: 10px; margin: 10px 0 16px; }
.pst-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 14px; align-items: center; border: 1px solid #e5e5e5; border-radius: 12px; padding: 10px 14px; background: #fbfcfd; }
.pst-row.pst-off, .pst-row.pst-ended { background: #f5f5f5; opacity: .85; }
.pst-row .pst-main { min-width: 0; }
.pst-name { font-size: 1.08rem; margin-right: 6px; overflow-wrap: anywhere; }
.pst-state { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: #dff3e4; color: #1b6b34; vertical-align: 2px; }
.pst-off .pst-state { background: #eee; color: #666; } .pst-ended .pst-state { background: #fdf0d6; color: #8a5a00; }
.pst-count { text-align: right; white-space: nowrap; } .pst-count b { font-size: 1.5rem; }
.pst-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pst-actions form { margin: 0; }
.pst-more { grid-column: 1 / -1; } .pst-more summary { cursor: pointer; color: var(--ink2); }
.pst-more form { margin: 8px 0 0; } .pst-more .inline-form { flex-wrap: wrap; }
.pst-add { border-top: 1px solid #eee; padding-top: 10px; } .pst-add h3 { margin: 4px 0 8px; }
.pst-poster h1 { font-size: 2.4rem; }
.pst-steps { display: inline-block; text-align: left; font-size: 1.15rem; margin: 10px auto 6px; padding-left: 1.4em; }
.pst-steps li { margin: 3px 0; }
.pst-type { margin-top: 12px; } .pst-type .sp-url { font-size: 1.05rem; overflow-wrap: anywhere; color: var(--ink); }
.pst-for { margin-top: 18px; }

/* 3.54: sign-in page: "Create my account" is its own clear button, under a divider */
.login-new { margin: 22px 0 14px; padding-top: 18px; border-top: 1.5px solid var(--line); text-align: center; }
.login-new-q { margin: 0 0 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.login-new-btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green-d); border: 2px solid var(--green-d); }
.login-new-btn:hover { background: color-mix(in srgb, var(--green) 22%, #fff); }

/* 3.55: passkeys */
.pk-signin-box { margin: 4px 0 0; }
.pk-or { display: flex; align-items: center; gap: 10px; color: var(--ink3); font-size: .85rem; margin: 14px 0 12px; }
.pk-or::before, .pk-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.pk-signin-btn { display: flex; width: 100%; box-sizing: border-box; gap: 10px; }
.pk-signin-btn > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.pk-signin-btn small { font-weight: 500; font-size: .8rem; color: var(--ink2); }
.pk-msg { margin: 10px 0 0; }
.pk-offer { border: 2px solid var(--blue-d); background: color-mix(in srgb, var(--blue) 14%, #fff); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; }
.pk-offer p { margin: 0 0 8px; }
.pk-offer-title { font-weight: 700; font-size: 1.1rem; display: flex; gap: 8px; align-items: flex-start; }
.pk-offer-warn { color: var(--ink2); }
.pk-offer-btns { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 4px; }
.pk-list { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 8px; }
.pk-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.pk-list .pk-name { font-weight: 700; }
.pk-list form { margin: 0 0 0 auto; }
.pk-add-form label[hidden] { display: none; }

/* 3.58: bigger text in the opened phone menu */
.menu.open > a, .menu.open .menu-grp .mg-top { font-size: 1.2rem; }
.menu.open .menu-grp .mg-sub a { font-size: 1.12rem; }
.menu.open .menu-grp .mg-sub2 a { font-size: 1.05rem; }
.menu.open .tri-learn .tri-en, .menu.open .tri-learn .tri-fr { font-size: .8em; opacity: .9; }

/* 3.59: the small lines read bigger — card status ("Complete", "Activities coming soon"), card code, level names, menu second line */
.node-sub { font-size: .95rem; }
.node-code { font-size: .8rem; }
.level-label { font-size: 1.02rem; }
.menu.open .tri-learn .tri-en, .menu.open .tri-learn .tri-fr { font-size: .9em; opacity: 1; }

/* 3.60: staff menus (Agenda, Informer, Design, People, About…), the language buttons and "Sign out" as big as the rest */
body.staff .menu.open > a, body.staff .menu.open .menu-grp .mg-top { font-size: 1.2rem; }
.menu.open .langswitch button { font-size: 1rem; padding: 7px 12px; }
.menu.open form .linkish { font-size: 1.2rem; }
.menu.open form .linkish .tri-learn { align-items: flex-start; text-align: left; }
.menu.open form .linkish .tri-learn > span + span { font-size: .9em !important; opacity: 1; }

/* 3.61: in the opened phone menu, the languages are an even grid of buttons: "All" across, then two by two */
.menu.open .langswitch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; align-self: stretch; border: 0; border-radius: 0; padding: 0; margin: 12px 0 8px; }
.menu.open .langswitch button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 14px; font-size: 1rem; line-height: 1.2; color: var(--ink); }
.menu.open .langswitch button:first-of-type { grid-column: 1 / -1; }
.menu.open .langswitch button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.menu.open .langswitch button.on .tri-learn > span { color: #fff !important; }
.menu.open .langswitch button .tri-learn > span + span { font-size: .9em !important; opacity: 1; }
.menu.open .langswitch button:not(.on) .tri-learn > span + span { color: var(--ink2) !important; }

/* 3.62: in the opened phone menu, one size for every syllabic line and one size for every roman line */
.menu.open { --m-syl: 1.25rem; --m-rom: 1.1rem; }
.menu.open > a, .menu.open .menu-grp .mg-top, .menu.open .menu-grp .mg-sub a, .menu.open .menu-grp .mg-sub2 a,
body.staff .menu.open > a, body.staff .menu.open .menu-grp .mg-top, .menu.open form .linkish, .menu.open .langswitch button { font-size: var(--m-rom); }
.menu.open .tri-learn .tri-syl { font-size: var(--m-syl) !important; }
.menu.open .tri-learn .tri-en, .menu.open .tri-learn .tri-fr, .menu.open .tri-learn .tri-rom { font-size: var(--m-rom) !important; opacity: 1; }
.menu.open .langswitch button:lang(iu), .menu.open .langswitch button[value=syl] { font-size: var(--m-syl); }

/* 3.63: on a computer, the same rule — one syllabic size and one roman size in the menu bar, and one (larger) pair in the drop-down */
.menu:not(.open) { --d-syl: 1rem; --d-rom: .86rem; }
.menu:not(.open) > a, .menu:not(.open) .menu-grp .mg-top, body.staff .menu:not(.open) > a, body.staff .menu:not(.open) .menu-grp .mg-top,
.menu:not(.open) form .linkish, .menu:not(.open) .langswitch button { font-size: var(--d-rom); }
.menu:not(.open) .tri-learn .tri-syl { font-size: var(--d-syl) !important; }
.menu:not(.open) .tri-learn .tri-en, .menu:not(.open) .tri-learn .tri-fr, .menu:not(.open) .tri-learn .tri-rom { font-size: var(--d-rom) !important; opacity: 1; }
.menu:not(.open) .langswitch button[value=syl] { font-size: var(--d-syl); }
.menu:not(.open) .menu-grp .mg-sub { --d-syl: 1.12rem; --d-rom: .95rem; }
.menu:not(.open) .menu-grp .mg-sub a, .menu:not(.open) .menu-grp .mg-sub2 a { font-size: var(--d-rom); }

/* 3.64: a long word (only when needed) (like "raisonnement") breaks with a hyphen inside the card instead of running past its border */
.node, .node-title, .level-label, .level-label .tri { min-width: 0; }
/* app.js adds .hy only where a word really doesn't fit, so other cards keep whole words */
.node.hy .node-title, .node.hy .node-sub, .level-label.hy { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* the "Choose" chip: only its ☰ icon when the card is too narrow for the word (the word stays for screen readers via aria-label) */
.node-top { min-width: 0; }
.node:has(.node-pick) { container-type: inline-size; }
@container (max-width: 170px) {
  .node-pick { font-size: 0; padding: 4px 7px; }
  .node-pick .ic { width: 15px; height: 15px; vertical-align: middle; }
}

/* 3.65: on a computer the map page uses the whole width of the screen and each card is at least ~170px wide;
   the rest of the map is reached by scrolling sideways, or with the ◀ ▶ buttons */
@media (min-width: 761px) {
  .wrap:has(.map-scroll) { max-width: none; }
  .map { min-width: calc(130px + var(--cols) * 188px); }
}
.map-arrow { position: fixed; top: 50%; z-index: 30; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.14); display: grid; place-items: center; transition: opacity .15s; }
.map-arrow:hover, .map-arrow:focus-visible { border-color: var(--ink); }
.map-arrow[hidden] { display: none; }
@media (max-width: 760px) { .map-arrow { display: none !important; } }
@media print { .map-arrow { display: none !important; } }
@media (min-width: 761px) {
  .map-scroll { margin: 0; padding: 0; }
  .map > .level-label { position: sticky; left: 0; z-index: 3; background: #fff; padding-right: 10px; align-self: stretch; box-shadow: 0 -21px 0 #fff, 0 21px 0 #fff; }
  .map-lines { z-index: 1; }
}

/* 3.66: the page body is its own layer below the menu bar, so nothing in it (like the faded second line of the
   "← Pratique des maths" button) can be drawn on top of an opened menu */
body > main { position: relative; z-index: 0; isolation: isolate; }
.top { z-index: 40; }
.menu-grp .mg-sub, .lang-quick .lq-pop { z-index: 60; }

/* 3.66: an activity's answer rows — one tidy line per answer: Right · picture & sound · 4 boxes · ↑✕ */
.opt-row { grid-template-columns: auto auto repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.opt-row:has(> .opt-val) { grid-template-columns: auto auto auto repeat(4, minmax(0, 1fr)) auto; }
.opt-row .sylwrap, .opt-row > input { min-width: 0; }
.opt-tools { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.opt-tools .linkish { padding: 4px 8px; font-size: 1rem; line-height: 1; text-decoration: none; }
.opt-tools .linkish[disabled] { opacity: .25; cursor: default; }
.opt-media { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 120px; }
/* the ⌨ that opens the syllabics keyboard sits inside the box, beside ᐊ */
.sylwrap > .kb-in { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); margin: 0; padding: 2px 6px; border-width: 1px; z-index: 1; line-height: 1.4; }
.sylwrap > .kb-in > span { display: none; }
.sylwrap > .kb-in .ic { width: 1.15em; height: 1.15em; }
.sylwrap:has(> .kb-in) > .syl-toggle, .sylwrap:has(> .kb-in) > .rom-to-syl { right: 42px; }
.sylwrap:has(> .kb-in) > input { padding-right: 84px; }
@media (max-width: 1000px) {
  .opt-row, .opt-row:has(> .opt-val) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opt-row > .opt-media { justify-self: end; max-width: none; flex-wrap: nowrap; }
  .opt-row > .opt-tools { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 600px) {
  .opt-row > .sylwrap, .opt-row > input, .opt-row > .opt-val { grid-column: 1 / -1; }
}
