/* SPDX-License-Identifier: AGPL-3.0-only */
/* Fido console (brand book Bloom, pages 8 to 10): round, motherly tints,
   soft greens, warm pastels, reassuring blues; coral instead of alarming red
   (the logo red is kept for the brand only). Anton for titles, Lato for text,
   served from /static/fonts (SIL OFL). No external file. */
@font-face { font-family: "Anton"; src: url(/static/fonts/anton-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(/static/fonts/lato-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(/static/fonts/lato-latin-700-normal.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url(/static/fonts/lato-latin-900-normal.woff2) format("woff2"); font-weight: 800 900; font-display: swap; }
:root {
  /* Charter tints: green #4CA626, lavender #E2CBF5, violet #9581DB, blue #3C4FBE,
     coral #FA9A73, yellow #FADB32, anise #B9DB32, cream #FFE7C2, sage #C3D5B4,
     ink #283425, logo red #FF5757. Action tints are darkened for AA contrast. */
  --brand: #4CA626; --brand-red: #FF5757;
  --bg: #fff8ec; --surface: #ffffff; --surface-2: #fff0d6; --ink: #283425; --ink-2: #4a5646; --muted: #6e7a6a;
  --line: #efe6d3; --line-2: #ddd2b9;
  --accent: #367d1a; --accent-deep: #2f6e15; --accent-ink: #ffffff; --accent-soft: #e3f2d9;
  --sun: #fadb32; --sun-soft: #fff6cc; --mint: #367d1a; --mint-soft: #e3f2d9; --sky: #3c4fbe; --sky-soft: #e3e7fa;
  --lilac: #9581db; --lilac-soft: #f1e6fb;
  --warn: #b4502f; --warn-soft: #ffe6da; --ok-soft: #e3f2d9;
  --radius: 24px; --radius-sm: 14px;
  --shadow: 0 2px 0 rgba(40, 52, 37, .04), 0 14px 30px -18px rgba(40, 52, 37, .25);
  --font: "Lato", "Segoe UI", system-ui, sans-serif;
  --font-title: "Anton", "Impact", "Arial Narrow", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d261b; --surface: #263124; --surface-2: #2e3a2b; --ink: #f3f1e8; --ink-2: #cfd6c8; --muted: #9ba894;
    --line: #34412f; --line-2: #405039; --accent: #7ccb52; --accent-deep: #9bdc78; --accent-ink: #142010; --accent-soft: #2c4224;
    --sun-soft: #3d3a1f; --mint: #7ccb52; --mint-soft: #2c4224; --sky: #8e9bff; --sky-soft: #252c4a; --lilac-soft: #352d4a;
    --warn: #ffa585; --warn-soft: #43302a; --ok-soft: #2c4224;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--accent-deep); text-underline-offset: 3px; font-weight: 600; }
h1, h2, h3 { font-weight: 900; letter-spacing: -.01em; line-height: 1.15; }
h1, .brand { font-family: var(--font-title); font-weight: 400; letter-spacing: .01em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 .3em; }
h2 { font-size: 1.3rem; margin: 0; }
h3 { font-size: 1.06rem; margin: 0 0 .4em; }
p { margin: .4em 0; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: .15em .45em; border-radius: 8px; word-break: break-all; }
.muted { color: var(--muted); font-size: .93em; }
.small { font-size: .87em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.top-in { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand-red); text-decoration: none; font-size: 1.6rem; text-transform: uppercase; }
.brand svg { width: 38px; height: 38px; flex: none; transition: transform .3s; }
.brand:hover svg { transform: rotate(-8deg) scale(1.05); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .95em; }
.top nav a:hover { background: var(--surface-2); color: var(--ink); }
.who { color: var(--muted); font-size: .86em; padding: 0 4px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Page */
main { max-width: 1100px; margin: 0 auto; padding: 22px 20px 110px; }
main.narrow { max-width: 480px; padding-top: 40px; }
.crumbs { font-size: .92em; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--accent-deep); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { color: var(--ink-2); margin: 0; }

/* Cards */
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { flex: 1; }
.card.attention { border-color: var(--sun); background: linear-gradient(180deg, var(--sun-soft), var(--surface) 70%); }
a.card { transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px) rotate(-.3deg); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.split { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.sub { padding-top: 16px; margin-top: 16px; border-top: 2px dashed var(--line); }
.anchor { scroll-margin-top: 86px; }
/* Section colours: each part of a child's settings has its own. */
#web .card-head h2::before, #temps .card-head h2::before, #horaires .card-head h2::before, #analyse .card-head h2::before,
#applis .card-head h2::before, #listes .card-head h2::before, #blocages .card-head h2::before {
  content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 5px; margin-right: 10px; vertical-align: 1px; transform: rotate(12deg); }
#web .card-head h2::before { background: var(--sky); }
#temps .card-head h2::before { background: var(--sun); }
#horaires .card-head h2::before { background: var(--lilac); }
#analyse .card-head h2::before { background: var(--accent); }
#applis .card-head h2::before { background: var(--mint); }
#listes .card-head h2::before { background: var(--sky); }
#blocages .card-head h2::before { background: var(--lilac); }

/* Flash messages (without JavaScript) */
.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.flash.ok { background: var(--ok-soft); }
.flash.err { background: var(--warn-soft); color: var(--warn); }
.notice { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; background: var(--sun-soft); }

/* Controls */
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  background: var(--surface); border: 2px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 14px; min-height: 44px; max-width: 100%; transition: border-color .15s, box-shadow .15s; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
button:focus-visible, summary:focus-visible, a:focus-visible, input[type=checkbox]:focus-visible, input[type=radio]:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
input.num { width: 7em; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .9em; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.field input:not([type=checkbox]), .field select { width: 100%; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; font-weight: 800;
  border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 18px; min-height: 42px; line-height: 1.2;
  box-shadow: 0 3px 0 var(--line-2); transition: transform .08s, box-shadow .08s, background .15s; }
button:hover, .btn:hover { background: var(--surface-2); }
button:active, .btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line-2); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 var(--accent-deep); }
button.primary:hover, .btn.primary:hover { background: var(--accent-deep); }
button.primary:active, .btn.primary:active { box-shadow: 0 0 0 var(--accent-deep); }
button.danger, .btn.danger { color: var(--warn); border-color: var(--warn-soft); background: var(--surface); box-shadow: 0 3px 0 var(--warn-soft); }
button.ghost, .btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); box-shadow: none; }
button.ghost:hover, .btn.ghost:hover { background: var(--surface-2); }
button.small, .btn.small { min-height: 34px; padding: 4px 14px; font-size: .88em; }
.btn.big { padding: 13px 28px; font-size: 1.08em; min-height: 52px; }
button:disabled { opacity: .6; cursor: progress; }
form.inline { display: inline; }

/* Switch */
label.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
label.switch input { appearance: none; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; margin: 0; cursor: pointer; transition: background .2s; }
label.switch input::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
label.switch input:checked { background: var(--mint); }
label.switch input:checked::after { transform: translateX(20px); }
label.switch b { font-weight: 800; display: block; }
label.switch small { color: var(--muted); font-size: .9em; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 2px solid var(--line-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .93em; font-weight: 700;
  background: var(--surface); user-select: none; color: var(--ink-2); text-decoration: none; transition: transform .15s, background .15s; }
.chip:hover { transform: translateY(-1px); }
.chip input { accent-color: var(--accent); margin: 0; width: 16px; height: 16px; }
.chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }

/* Segmented control */
.segmented { display: inline-flex; border-radius: 999px; padding: 4px; background: var(--surface-2); flex-wrap: wrap; gap: 2px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: 7px 15px; border-radius: 999px; font-size: .92em; font-weight: 700; color: var(--ink-2); transition: background .2s; }
.segmented input:checked + span { background: var(--surface); color: var(--accent-deep); box-shadow: 0 3px 0 var(--line-2); }

/* "i" */
details.info { position: relative; display: inline-block; }
details.info > summary { list-style: none; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; color: var(--lilac); background: var(--lilac-soft);
  display: grid; place-items: center; font: 900 14px/1 Georgia, serif; font-style: italic; transition: transform .2s; }
details.info > summary:hover { transform: scale(1.1) rotate(-6deg); }
details.info > summary::-webkit-details-marker { display: none; }
details.info[open] > summary { background: var(--sky); color: #fff; }
details.info > div { position: absolute; right: -8px; top: 36px; z-index: 30; width: min(360px, 86vw); background: var(--surface); border: 2px solid var(--lilac-soft);
  border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: 0 18px 40px -14px rgba(40, 52, 37, .35); font-size: .93em; color: var(--ink-2); animation: pop .18s ease-out; }
details.info > div p:first-child { margin-top: 0; }
details.info > div p:last-child { margin-bottom: 0; }
details.more > summary { cursor: pointer; color: var(--accent-deep); font-size: .93em; font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-bottom: 2px dashed var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1 1 200px; min-width: 0; }
.list .when { color: var(--muted); font-size: .86em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 8px 0; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px 6px; border-bottom: 2px dashed var(--line); vertical-align: top; }
th { font-size: .85em; color: var(--muted); font-weight: 800; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-weight: 800; letter-spacing: 0; vertical-align: middle; font-size: .74em; padding: 3px 10px; border-radius: 999px;
  background: var(--sky-soft); color: var(--sky); white-space: nowrap; }
.badge.accent { background: var(--mint-soft); color: var(--mint); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }

/* Figures */
.figures { display: flex; flex-wrap: wrap; gap: 14px; }
.figures > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 18px; min-width: 130px; }
.figures b { display: block; font-size: 1.9em; font-weight: 900; line-height: 1.1; }
.meter { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--sun)); border-radius: 999px; }
.bar { background: var(--accent); height: 10px; border-radius: 999px; min-width: 2px; }

/* Child page */
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 22px; }
.toc a { text-decoration: none; color: var(--ink-2); background: var(--surface); border: 2px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .9em; font-weight: 700; transition: transform .15s; }
.toc a:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days .chip { padding: 4px 11px; font-size: .86em; }
.slot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0; }
.slot + .slot { border-top: 2px dashed var(--line); }
.js .slot.spare, .add-slot { display: none; }
.js .add-slot { display: inline-flex; margin-top: 6px; }
.savebar { display: flex; justify-content: flex-end; gap: 10px; align-items: center; margin: 4px 0 26px; }
.savebar-text { margin-right: auto; color: var(--ink-2); font-weight: 700; }
.js form.settings .savebar { position: fixed; left: 50%; bottom: 18px; z-index: 40; width: min(720px, calc(100% - 28px)); margin: 0;
  padding: 10px 12px 10px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: 0 20px 44px -14px rgba(40, 52, 37, .55);
  transform: translate(-50%, 160%); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .25s; }
.js form.settings .savebar .savebar-text { color: var(--bg); }
.js form.settings .savebar button.ghost { color: var(--bg); }
.js form.settings.dirty .savebar { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
html:not(.js) .savebar-text, html:not(.js) .savebar [data-undo] { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: min(560px, calc(100% - 28px)); transform: translate(-50%, 30px) scale(.96); opacity: 0;
  background: var(--mint); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 18px; box-shadow: 0 18px 40px -14px rgba(40, 52, 37, .5);
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; }
.toast.in { transform: translate(-50%, 0) scale(1); opacity: 1; }
.toast.bad { background: var(--warn); }

/* Welcome page */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 26px 0 20px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 320px; margin: 0 auto; } }
.eyebrow { display: inline-block; font-size: .8em; font-weight: 800; color: var(--accent-deep); background: var(--accent-soft); padding: 5px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.8rem); line-height: 1.05; margin: .35em 0 .3em; color: var(--accent); }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--sun) 62%); padding: 0 .08em; }
.hero .lead { font-size: 1.15em; color: var(--ink-2); max-width: 32em; }
.hero .row { margin-top: 24px; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.bob { animation: bob 4s ease-in-out infinite; transform-origin: 50% 100%; }
.blink { animation: blink 5s infinite; transform-origin: center; transform-box: fill-box; }
.float-a { animation: float 5s ease-in-out infinite; } .float-b { animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes bob { 50% { transform: translateY(-1.2px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 30px 0; }
.feature { border-radius: var(--radius); padding: 24px; transition: transform .2s; }
.feature:hover { transform: translateY(-4px) rotate(-.5deg); }
.feature:nth-child(1) { background: var(--sky-soft); } .feature:nth-child(2) { background: var(--sun-soft); }
.feature:nth-child(3) { background: var(--mint-soft); } .feature:nth-child(4) { background: var(--lilac-soft); }
.feature .ico { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); margin-bottom: 14px; transform: rotate(-6deg); box-shadow: var(--shadow); }
.feature:nth-child(1) .ico { color: var(--sky); } .feature:nth-child(2) .ico { color: #b08a00; }
.feature:nth-child(3) .ico { color: var(--mint); } .feature:nth-child(4) .ico { color: var(--lilac); }
.feature .ico svg { width: 26px; height: 26px; }
.feature p { color: var(--ink-2); font-size: .96em; }
.section-title { margin: 50px 0 10px; font-size: clamp(1.6rem, 3vw, 2.1rem); text-align: center; }
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 24px 0; }
.steps li { counter-increment: s; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.2em; color: #fff; background: var(--accent); transform: rotate(-8deg); box-shadow: 0 3px 0 var(--accent-deep); }
.steps li:nth-child(2)::before { background: var(--sky); box-shadow: 0 3px 0 #2c3b96; }
.steps li:nth-child(3)::before { background: var(--mint); box-shadow: 0 3px 0 #2f6e15; }
.promise { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); border-radius: 32px; padding: 38px; margin: 46px 0; display: grid; gap: 22px; grid-template-columns: 1fr 1.4fr; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; padding: 28px; } }
.promise::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%; background: var(--accent); opacity: .35; }
.promise h2 { color: inherit; font-size: 1.8rem; }
.promise ul { margin: 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.promise li { padding-left: 34px; position: relative; }
.promise li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 8px; background: var(--mint); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .85em; }
.promise li + li { margin-top: 12px; }
.cta { text-align: center; background: var(--sun-soft); border-radius: 32px; padding: 40px 24px; }
footer.site { margin-top: 44px; padding: 22px 0 0; color: var(--muted); font-size: .9em; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 2px dashed var(--line); }

/* Sign-in */
.auth h1 { text-align: center; }
.auth .lead { text-align: center; color: var(--ink-2); margin-bottom: 22px; }
.auth .card { padding: 28px; }
.auth .btn, .auth button.primary { width: 100%; }
.auth .alt { text-align: center; margin-top: 16px; font-size: .94em; color: var(--ink-2); }
.code-input { letter-spacing: .45em; font-size: 1.4em !important; text-align: center; font-variant-numeric: tabular-nums; font-weight: 800; }
.mascot-small { display: block; width: 84px; margin: 0 auto 6px; }

@media (max-width: 560px) {
  main { padding: 18px 14px 110px; }
  .card { padding: 18px; border-radius: 20px; }
  .who, .top nav a[href="/"] { display: none; }
}
.hero-art { position: relative; }
.hero-mascot { position: absolute; left: 27%; top: 15%; width: 46%; }
.hero-mascot svg, .mascot-small svg { width: 100%; height: auto; display: block; }

/* Avatars */
.avatar { display: inline-block; width: 44px; height: 44px; border-radius: 30%; overflow: hidden; flex: none; vertical-align: middle; background: var(--surface-2); }
.avatar svg, .avatar .avatar-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar.xs { width: 30px; height: 30px; } .avatar.lg { width: 76px; height: 76px; } .avatar.xl { width: 96px; height: 96px; }
.avatar-wrap { position: relative; display: inline-block; }
.avatar-wrap .avatar-edit { position: absolute; right: -6px; bottom: -6px; }
.avatar-edit > summary { background: var(--surface) !important; color: var(--ink-2) !important; border: 2px solid var(--line-2); font: 700 13px/1 var(--font) !important; font-style: normal !important; }
.avatar-edit > div { left: -10px; right: auto; width: min(340px, 86vw); }
.avatar-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.avatar-pick button { padding: 0; min-height: 0; width: 100%; aspect-ratio: 1; border-radius: 30%; box-shadow: none; overflow: hidden; border: 2px solid transparent; }
.avatar-pick button:hover { border-color: var(--accent); transform: scale(1.06); }
.avatar-pick svg { width: 100%; height: 100%; display: block; }
hr.soft { border: 0; border-top: 2px dashed var(--line); margin: 14px 0; }
.title-with-avatar { display: flex; align-items: center; gap: 16px; }
.people { display: flex; flex-wrap: wrap; gap: 12px; }
.person { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 999px; padding: 5px 14px 5px 5px; font-weight: 700; }
.top .me { display: inline-flex; align-items: center; gap: 8px; }
footer.legal { max-width: 1100px; margin: -70px auto 0; padding: 0 20px 40px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: .86em; }
footer.legal a { color: var(--muted); font-weight: 600; text-decoration: none; }
footer.legal a:hover { color: var(--accent-deep); }

/* Age profiles */
.profiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.profile { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; background: var(--surface); }
.profile input { accent-color: var(--accent); margin-top: 3px; }
.profile:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.profile b, .profile-btn b { display: block; }
.profile small, .profile-btn small { color: var(--muted); font-weight: 500; display: block; margin-top: 2px; line-height: 1.35; }
.profile-btn { display: block; text-align: left; border-radius: var(--radius-sm); padding: 12px 14px; height: auto; }
.profile-btn.suggested { border-color: var(--mint); background: var(--mint-soft); }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
.day { background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; margin: 4px 0 2px; }
a.badge { text-decoration: none; }
