/* BookForest – children's pages inside the Koha OPAC. Everything is scoped under .fn-app.
   No web fonts are loaded (no third-party requests on children's pages). */
html.fn-active #userdetails > :not(#fn-root) { display: none !important; }
#fn-root, #fn-consent-root { margin-bottom: 24px; }
/* while a page is on its way the current one stays; a thin bar shows progress (after a short delay, so quick changes do not flicker) */
#fn-root { position: relative; }
#fn-root.fn-busy::before { content: ""; position: absolute; z-index: 5; top: 0; left: 18px; right: 18px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, transparent, #3B36A8 40%, #FFC83D 60%, transparent); background-size: 200% 100%;
    opacity: 0; animation: fn-bar 1s linear infinite, fn-show .01s linear .15s forwards; }
#fn-root.fn-busy > .fn-app { transition: opacity .2s ease .25s; opacity: .7; }
@keyframes fn-bar { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes fn-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #fn-root.fn-busy::before { animation: fn-show .01s linear .15s forwards; } }

.fn-app {
    --ink: #23205A; --ink2: #4A4778; --ground: #F3F6FF; --card: #FFFFFF; --line: #DDE3F5;
    --primary: #3B36A8; --primary-ink: #FFFFFF; --accent: #FFC83D; --accent-ink: #23205A;
    --ok: #0F7A6C; --ok-bg: #DDF4EF; --warn: #A84A0C; --warn-bg: #FFE8D6; --soft: #EDEBFF;
    --radius: 18px;
    font-family: "Segoe UI Rounded", "Nunito", "Segoe UI", "Noto Sans", system-ui, -apple-system, sans-serif;
    color: var(--ink); background: var(--ground); border-radius: 20px; padding: 22px; line-height: 1.45;
}
.fn-app.fn-theme-little { --ground: #EFFAF6; --line: #CDEBE2; --primary: #3B36A8; --soft: #E3F6EF; }
.fn-app.fn-theme-teen { --ink: #F2F1FF; --ink2: #C3C1EC; --ground: #14132B; --card: #22214A; --line: #34336A; --primary: #B8F05A; --primary-ink: #14132B; --accent: #B8F05A; --accent-ink: #14132B; --soft: #2E2D5A; --ok: #9BE7C4; --ok-bg: #1F3D3A; --warn: #FFB59E; --warn-bg: #3D2A2A; }
.fn-app h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 8px; color: var(--ink); }
.fn-app h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 12px; color: var(--ink); }
.fn-app h3 { font-size: 1rem; font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.fn-app a { color: var(--primary); font-weight: 700; }
.fn-theme-teen a { color: var(--accent); }
.fn-app p { margin: 0 0 8px; }
.fn-muted { color: var(--ink2); font-size: .9rem; }
.fn-big { font-size: 1.15rem; font-weight: 800; }
.fn-eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.fn-grow { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fn-card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; border: 1px solid transparent; }
.fn-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fn-soft { background: var(--soft); }
.fn-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.fn-two > .fn-card { margin-bottom: 0; }
.fn-two + .fn-two, .fn-two + .fn-card, .fn-card + .fn-two { margin-top: 16px; }
.fn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.fn-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fn-row > .fn-field { flex: 1 1 220px; }

/* buttons */
.fn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--primary); color: var(--primary-ink) !important; font-weight: 800; font-size: .95rem; text-decoration: none !important; cursor: pointer; font-family: inherit; }
.fn-btn:hover { filter: brightness(1.08); }
.fn-btn:disabled { opacity: .6; cursor: wait; }
.fn-btn-soft { background: var(--soft); color: var(--ink) !important; }
.fn-btn-dark { background: var(--ink); color: var(--card) !important; }
.fn-btn-big { min-height: 56px; font-size: 1.1rem; padding: 0 26px; border-radius: 18px; }
.fn-btn-sm { min-height: 38px; padding: 0 12px; font-size: .85rem; border-radius: 12px; }
.fn-link { background: none; border: 0; color: var(--ink2); font-weight: 700; cursor: pointer; padding: 6px 0; font-family: inherit; text-decoration: underline; }
.fn-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; font-weight: 700; font-size: .85rem; text-decoration: none !important; cursor: pointer; font-family: inherit; }
.fn-chip.is-on { background: var(--ink); color: var(--card) !important; border-color: var(--ink); }
.fn-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 800; background: var(--soft); color: var(--ink); }
.fn-tag-ok { background: var(--ok-bg); color: var(--ok); }

/* in-app navigation */
.fn-tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--card); border-radius: 16px; padding: 6px; margin-bottom: 16px; }
.fn-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--ink) !important; text-decoration: none !important; font-weight: 700; }
.fn-tab:hover { background: var(--soft); }
.fn-tab.is-on { background: var(--ink); color: var(--card) !important; }
.fn-theme-teen .fn-tab.is-on { background: var(--accent); color: var(--accent-ink) !important; }
.fn-tab .fn-av-img, .fn-tab .fn-avsvg, .fn-tab .fn-kid { width: 22px !important; height: 22px !important; }
.fn-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 14px; font-size: .9rem; }
.fn-flash { display: flex; align-items: center; gap: 8px; background: var(--ok-bg); color: var(--ok); border-radius: 14px; padding: 12px 16px; font-weight: 800; margin-bottom: 16px; }
.fn-loading { padding: 30px; text-align: center; color: var(--ink2); }
.fn-note { background: var(--soft); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }

/* hello + hero */
.fn-hello { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.fn-hello h1 { margin: 0; }
.fn-hero { margin-bottom: 16px; }
.fn-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-bottom: 16px; }
.fn-hero-grid > .fn-card { margin-bottom: 0; }
.fn-level { background: var(--primary); color: var(--primary-ink); }
.fn-level h2 { color: var(--primary-ink); font-size: 1.6rem; margin: 4px 0 0; }
.fn-theme-teen .fn-level { background: #2E2D5A; color: var(--ink); } .fn-theme-teen .fn-level h2 { color: var(--ink); }
.fn-level-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.fn-level-icon { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; color: #9BE7C4; }
.fn-level-foot, .fn-goal-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-weight: 700; font-size: .92rem; }
.fn-meter { height: 14px; background: rgba(0,0,0,.12); border-radius: 99px; overflow: hidden; }
.fn-level .fn-meter { background: rgba(255,255,255,.22); }
.fn-meter span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.fn-meter-sm { height: 8px; width: 100%; margin: 6px 0 2px; }
.fn-meter-light { background: rgba(255,255,255,.3); }
.fn-goal { background: var(--accent); color: var(--accent-ink); }
.fn-goal h2 { color: var(--accent-ink); font-size: 1.35rem; }
.fn-theme-teen .fn-goal { background: var(--card); color: var(--ink); } .fn-theme-teen .fn-goal h2 { color: var(--ink); }
.fn-segs { display: flex; gap: 6px; margin: 10px 0 0; }
.fn-seg { flex: 1; height: 12px; border-radius: 4px; background: rgba(255,255,255,.55); }
.fn-seg.on { background: var(--ink); }
.fn-theme-teen .fn-seg { background: #3A3970; } .fn-theme-teen .fn-seg.on { background: var(--accent); }
.fn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fn-stat { background: var(--card); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.fn-stat .fn-i { color: var(--warn); }
.fn-stat strong { font-size: 1.6rem; line-height: 1.1; }
.fn-stat small { font-size: .9rem; color: var(--ink2); }
.fn-stat span { color: var(--ink2); font-size: .85rem; font-weight: 700; }
.fn-attn { border: 2px solid #FF8A3D; }

/* album (little readers) */
.fn-album h2 { font-size: 1.3rem; }
.fn-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px; justify-items: center; margin-bottom: 12px; }
.fn-slot { width: 60px; height: 60px; border-radius: 50%; border: 3px dashed #B8D9CF; display: inline-flex; align-items: center; justify-content: center; color: #6B9187; font-weight: 800; font-size: 1.4rem; }
.fn-slot-gift { border-style: solid; border-color: var(--accent); background: #FFF4D1; color: var(--warn); }

/* lists of rows */
.fn-rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fn-row-item { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fn-row-item .fn-cover { width: 48px; height: 66px; font-size: 0; flex-shrink: 0; }
.fn-mini { margin: 0; padding-left: 18px; }
.fn-late { color: var(--warn); font-weight: 800; }
.fn-hold-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); flex-shrink: 0; }
.fn-hold-waiting { background: var(--ok-bg); color: var(--ok); }
.fn-date { width: 52px; height: 56px; border-radius: 14px; background: var(--primary); color: var(--primary-ink); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.fn-date strong { font-size: 1.3rem; } .fn-date small { font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.fn-date-big { width: 72px; height: 76px; } .fn-date-big strong { font-size: 1.7rem; }
.fn-badge-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fn-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-align: center; font-size: .8rem; font-weight: 700; }

/* programme list */
.fn-banner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.fn-banner h1 { color: var(--accent-ink); }
.fn-banner .fn-muted { color: var(--accent-ink); opacity: .8; }
.fn-theme-teen .fn-banner { background: var(--card); color: var(--ink); } .fn-theme-teen .fn-banner h1 { color: var(--ink); } .fn-theme-teen .fn-banner .fn-muted { color: var(--ink2); }
.fn-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--ink) calc(var(--p) * 1%), rgba(255,255,255,.55) 0); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fn-theme-teen .fn-ring { background: conic-gradient(var(--accent) calc(var(--p) * 1%), #3A3970 0); }
.fn-ring > span { width: 70px; height: 70px; border-radius: 50%; background: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.fn-theme-teen .fn-ring > span { background: var(--card); }
.fn-ring small { font-size: .7rem; font-weight: 700; }
.fn-agtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fn-agtab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; font-weight: 700; text-decoration: none !important; }
.fn-agtab.is-on { border: 2px solid var(--primary); background: var(--soft); }
.fn-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.fn-search input { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; min-width: 260px; background: var(--card); color: var(--ink); font-family: inherit; }
.fn-checkline { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; min-height: 32px; margin: 6px 0; }
.fn-checkline input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.fn-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.fn-book { position: relative; display: flex; flex-direction: column; gap: 6px; }
.fn-book h3 { font-size: .98rem; } .fn-book h3 a { color: var(--ink); }
.fn-cover { position: relative; height: 230px; border-radius: 12px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 12px; font-weight: 800; font-size: .95rem; line-height: 1.2; }
.fn-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fn-book-reading .fn-cover, .fn-book-to_confirm .fn-cover { outline: 3px solid #FF8A3D; outline-offset: 3px; }
.fn-book-mark { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: #9BE7C4; color: #0B5D52; display: flex; align-items: center; justify-content: center; }
.fn-state { font-size: .85rem; font-weight: 800; margin: 0; }
.fn-state-read, .fn-state-hold_waiting, .fn-state-available { color: var(--ok); }
.fn-state-reading, .fn-state-to_confirm, .fn-state-pending { color: var(--warn); }
.fn-state-all_out, .fn-state-hold_queued, .fn-state-hold_transit, .fn-state-hold_suspended, .fn-state-no_copies, .fn-state-hold_processing { color: var(--ink2); }
.fn-book-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.fn-revs summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--ink2); }
.fn-rev { margin: 8px 0 0; padding: 10px 12px; background: var(--soft); border-radius: 12px; font-size: .88rem; border: 0; }
.fn-rev p { margin: 6px 0 0; }
.fn-revgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.fn-stars { color: #C9CDD8; white-space: nowrap; letter-spacing: 1px; } .fn-star.on { color: #E0A100; }
.fn-empty { text-align: center; padding: 30px; color: var(--ink2); }

/* forms */
.fn-app input:not([type=radio]):not([type=checkbox]), .fn-app select, .fn-app textarea { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid #C9D0E6; padding: 8px 12px; background: #fff; color: #23205A; font-family: inherit; font-size: 1rem; }
.fn-app textarea { min-height: 90px; }
.fn-app fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.fn-app fieldset.fn-card { padding: 18px; }
.fn-app legend { font-size: 1.1rem; font-weight: 800; padding: 0; margin-bottom: 10px; color: var(--ink); float: none; width: auto; }
.fn-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fn-field > label, .fn-label { font-weight: 800; }
.fn-form-error { background: #FDE2DE; color: #7A2318; border-radius: 12px; padding: 10px 14px; font-weight: 700; margin: 10px 0; }
.fn-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fn-chipbox { position: relative; display: inline-flex; }
.fn-chipbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fn-chipbox span, .fn-chipbox.is-locked { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.fn-chipbox input:checked + span { border: 2px solid var(--primary); background: var(--soft); }
.fn-chipbox input:focus-visible + span { outline: 3px solid var(--accent); }
.fn-chipbox.is-locked { opacity: .65; cursor: not-allowed; border-style: dashed; }
.fn-chips-big .fn-chipbox span { min-height: 56px; font-size: 1.05rem; padding: 0 22px; }
.fn-rate { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.fn-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fn-rate label { font-size: 2.4rem; line-height: 1; color: #C9CDD8; cursor: pointer; padding: 2px 4px; }
.fn-rate label:hover, .fn-rate label:hover ~ label, .fn-rate input:checked ~ label { color: #E0A100; }
.fn-rate input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 8px; }
.fn-reward { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: var(--ok-bg); color: var(--ok); border-radius: 14px; padding: 12px 16px; font-weight: 700; margin: 6px 0 14px; }
.fn-readform { max-width: 760px; }
.fn-parent { background: #FFF9E8; color: #23262A; border: 1px solid #F0D27A; }
.fn-parent legend, .fn-parent h2 { color: #23205A; }
.fn-theme-teen .fn-parent { background: #2A2840; color: var(--ink); border-color: #4D4B80; } .fn-theme-teen .fn-parent legend, .fn-theme-teen .fn-parent h2 { color: var(--ink); }
.fn-pickgrid { display: flex; flex-wrap: wrap; gap: 10px; }
.fn-pick { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.fn-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fn-pick > span { border-radius: 50%; padding: 3px; border: 3px solid transparent; display: inline-flex; }
.fn-pick input:checked + span { border-color: var(--primary); }
.fn-pick input:focus-visible + span { outline: 3px solid var(--accent); }
.fn-pick.is-locked { opacity: .5; cursor: not-allowed; }
.fn-pick.is-locked small { font-size: .7rem; font-weight: 700; }

/* team, forum */
.fn-teamcard { display: flex; flex-wrap: wrap; gap: 18px; background: var(--ok); color: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.fn-teamcard h1, .fn-teamcard .fn-eyebrow { color: #fff; }
.fn-theme-teen .fn-teamcard { background: #1F3D3A; }
.fn-members { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; max-width: 420px; }
.fn-member { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; text-align: center; }
.fn-member small { font-size: .7rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.fn-member.is-me .fn-av-img, .fn-member.is-me .fn-kid, .fn-member.is-me .fn-avsvg { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 50%; }
.fn-board, .fn-ladder { list-style: none; padding: 0; margin: 0; }
.fn-board li, .fn-ladder li { display: flex; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--line); }
.fn-board li.is-me, .fn-ladder li.is-me { background: var(--soft); margin: 0 -18px; padding: 0 18px; font-weight: 800; }
.fn-ladder li.is-done { opacity: .7; }
.fn-rank { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.fn-board li:first-child .fn-rank { background: var(--accent); color: var(--accent-ink); }
.fn-threadlist { list-style: none; padding: 0; margin: 0 0 12px; }
.fn-threadlist li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.fn-newthread summary { cursor: pointer; font-weight: 800; color: var(--primary); margin: 6px 0; }
.fn-theme-teen .fn-newthread summary { color: var(--accent); }
.fn-posts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.fn-post { background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.fn-post.is-staff { border: 2px solid var(--ok); }
.fn-post.is-pending { opacity: .75; border: 2px dashed var(--line); }
.fn-post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fn-post-body { margin: 8px 0 4px; }
.fn-reply { display: flex; flex-direction: column; gap: 8px; }
.fn-reply label { font-weight: 800; }
.fn-reply .fn-btn { align-self: flex-start; }

/* badges */
.fn-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.fn-badge-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: 0; }
.fn-badge-tile.is-locked h3 { opacity: .75; }

/* events */
.fn-events-layout { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.fn-events-layout > .fn-grow { flex: 999 1 520px; }
.fn-side { flex: 1 1 280px; }
.fn-eventlist { list-style: none; padding: 0; margin: 0; }
.fn-event { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.fn-event-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fn-pts { color: var(--ok); font-weight: 800; }
.fn-codebox { background: var(--accent); color: var(--accent-ink); }
.fn-codebox h2, .fn-codebox label { color: var(--accent-ink); }
.fn-codebox label { font-weight: 800; display: block; margin-bottom: 6px; }
.fn-codebox input { text-transform: uppercase; letter-spacing: .1em; font-weight: 800; margin-bottom: 10px; }
.fn-theme-teen .fn-codebox { background: var(--card); color: var(--ink); } .fn-theme-teen .fn-codebox h2, .fn-theme-teen .fn-codebox label { color: var(--ink); }

/* avatar studio */
.fn-avlayout { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.fn-avpreview { flex: 1 1 260px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fn-avbig { width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; }
.fn-avlayout > .fn-grow { flex: 999 1 380px; }
.fn-swatches { display: flex; gap: 12px; margin: 6px 0 14px; }
.fn-swatch { position: relative; cursor: pointer; }
.fn-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fn-swatch > span:first-of-type { display: block; width: 46px; height: 46px; border-radius: 50%; }
.fn-swatch input:checked + span { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--accent); }
.fn-swatch input:focus-visible + span { outline: 3px solid var(--accent); }

/* parent consent page */
.fn-consent { max-width: 760px; margin: 10px auto; }

/* shared drawing */
.fn-i { flex-shrink: 0; vertical-align: middle; }
.fn-kid { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #23205A; flex-shrink: 0; }
.fn-kid-sun { background: #FFC83D; } .fn-kid-star { background: #FF8A3D; } .fn-kid-moon { background: #3B36A8; color: #FFC83D; }
.fn-kid-flower { background: #9BE7C4; color: #0B5D52; } .fn-kid-heart { background: #F47C8A; } .fn-kid-leaf { background: #8FD18F; color: #1E4A1E; }
.fn-kid-staff { background: #0F7A6C; color: #fff; }
.fn-av-img { border-radius: 50%; object-fit: cover; background: #EEF1FA; flex-shrink: 0; }
.fn-avsvg { flex-shrink: 0; }
.fn-badge-disc { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #23205A; flex-shrink: 0; }
.fn-badge-disc.is-locked { background: #EEF1FA; border: 2px dashed #B8BED3; color: #6B7090; }
.fn-theme-teen .fn-badge-disc.is-locked { background: #2E2D5A; border-color: #5C5A8F; color: #B9B7E0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.fn-menu-item a { font-weight: 700; }
.fn-chipbox .fn-emoji { font-weight: 400; font-size: 1.25em; line-height: 1; }
/* help */
.fn-help-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.fn-help-head h1 { margin: 0; }
.fn-help-head p { margin: 2px 0 0; }
.fn-help-ico { color: var(--primary); }
.fn-help-q { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; background: var(--card); }
.fn-help-q > summary { cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fn-help-q > summary::-webkit-details-marker { display: none; }
.fn-help-q > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.fn-help-q[open] > summary::after { content: "–"; }
.fn-help-q > summary:focus-visible { outline: 3px solid var(--accent); border-radius: 14px; }
.fn-help-q > p, .fn-help-q > ul { margin: 0; padding: 0 18px 14px 18px; line-height: 1.6; }
.fn-help-q > ul { padding-left: 38px; }
.fn-help-link-kid { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
