/* Familieboka. Samme papir, strek og skrift som resten av Familieuka. */

#fu-app .fu-view-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(78px, 1.12fr) minmax(112px, 1.5fr); max-width: 560px; }
#fu-app .fu-view-tabs .fu-book-tab { border-inline-start: 1px solid var(--th-line, var(--fu-line)); }
#fu-app .fu-view-tabs .fu-book-tab svg { width: 16px; height: 16px; color: #2d5a43; fill: #e0eedc; }
#fu-app.fu-in-book .fu-heading-actions .fu-shortcut { display: none; }

#fu-app .fu-workspace.is-book { display: block; }
#fu-app .fu-book { display: grid; gap: 16px; max-width: 1240px; }
#fu-app .fu-book h2, #fu-app .fu-book h3, #fu-app .fu-book h4 { font-family: var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); letter-spacing: -.015em; margin: 0; }
#fu-app .fu-book p { margin: 0; }
#fu-app .fu-book a { color: var(--th-ink, var(--fu-dark)); }

/* Navigasjon */
#fu-app .fu-book-nav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
#fu-app .fu-book-nav::-webkit-scrollbar { display: none; }
#fu-app .fu-book-nav button {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 15px;
    border: 1px solid var(--fu-border); border-radius: 999px; background: var(--fu-white); color: var(--fu-muted);
    font-weight: 780; font-size: 14px; scroll-snap-align: start;
}
#fu-app .fu-book-nav button svg { width: 18px; height: 18px; }
#fu-app .fu-book-nav button:hover { background: var(--fu-soft); }
#fu-app .fu-book-nav button[aria-pressed="true"] { background: var(--th-ink, #244a37); border-color: var(--th-ink, #244a37); color: #fffefa; }

/* Kort og overskrifter */
#fu-app .fu-book-page { display: grid; gap: 16px; }
#fu-app .fu-book-intro { display: flex; align-items: center; gap: 18px; padding: 4px 2px; }
#fu-app .fu-book-intro .fu-book-art { width: min(260px, 34%); height: auto; }
#fu-app .fu-book-intro h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.05; font-weight: 800; }
#fu-app .fu-book-intro p { color: var(--fu-muted); margin-top: 4px; max-width: 60ch; }
#fu-app .fu-book-card { padding: 18px; display: grid; gap: 14px; overflow: visible; }
#fu-app .fu-book-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#fu-app .fu-book-card-head h3 { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; line-height: 1.15; }
#fu-app .fu-book-card-head h3 > svg { width: 21px; height: 21px; color: #2d5a43; flex: none; }
#fu-app .fu-book-card-head h3 .fu-person-mark { width: 30px; height: 30px; }
#fu-app .fu-book-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
#fu-app .fu-book-kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a6a1f; }
#fu-app .fu-book-hint { color: var(--fu-muted); font-size: 13px; line-height: 1.45; }
#fu-app .fu-book-big-number { font: 800 40px/1 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); letter-spacing: -.02em; }
#fu-app .fu-book-big-number small { font-size: 18px; color: var(--fu-muted); font-weight: 700; }
#fu-app .fu-book-row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#fu-app .fu-book-empty { display: grid; justify-items: center; gap: 12px; padding: 22px 12px; text-align: center; color: var(--fu-muted); border: 1.5px dashed var(--fu-border); border-radius: 12px; background: #fcfbf5; }
#fu-app .fu-book-empty p { max-width: 46ch; }
#fu-app .fu-book-empty > .fu-btn + .fu-btn { margin-top: -4px; }
#fu-app .fu-book-icon-btn { width: 34px; min-height: 34px; flex: none; }
#fu-app .fu-book-icon-btn svg { width: 17px; height: 17px; }

/* Oversikt */
#fu-app .fu-book-year-teaser {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left;
    border: 1px solid #ecd89a; border-radius: 15px; background: linear-gradient(110deg, #fff6d9, #fdf0d0 55%, #f7e6f0); color: var(--th-ink, var(--fu-dark));
}
#fu-app .fu-book-year-teaser > svg:first-child { width: 30px; height: 30px; color: #b57c12; flex: none; }
#fu-app .fu-book-year-teaser span { display: grid; gap: 2px; flex: 1; }
#fu-app .fu-book-year-teaser strong { font: 800 20px/1.1 var(--fu-display, "Baloo 2", system-ui); }
#fu-app .fu-book-year-teaser small { color: var(--fu-muted); font-size: 13px; }
#fu-app .fu-book-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#fu-app .fu-book-module {
    display: grid; grid-template-rows: auto 1fr; gap: 0; padding: 0; text-align: left; overflow: hidden;
    border: 1px solid var(--fu-border); border-radius: 15px; background: var(--fu-white); color: var(--fu-ink); box-shadow: var(--fu-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
#fu-app .fu-book-module:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(43, 54, 37, .09); }
#fu-app .fu-book-module-art { display: grid; place-items: center; aspect-ratio: 4 / 2.4; background: #f6f1e3; border-bottom: 1px solid var(--fu-line); }
#fu-app .fu-book-module:nth-child(6n+2) .fu-book-module-art { background: #f8eaec; }
#fu-app .fu-book-module:nth-child(6n+3) .fu-book-module-art { background: #e9f1e4; }
#fu-app .fu-book-module:nth-child(6n+4) .fu-book-module-art { background: #fbf0d4; }
#fu-app .fu-book-module:nth-child(6n+5) .fu-book-module-art { background: #e5eef4; }
#fu-app .fu-book-module:nth-child(6n+6) .fu-book-module-art { background: #efe8f4; }
#fu-app .fu-book-module-art img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
#fu-app .fu-book-module-icon { width: 54px; height: 54px; color: #2d5a43; stroke-width: 1.4; }
#fu-app .fu-book-module-text { display: grid; gap: 3px; padding: 13px 15px 15px; }
#fu-app .fu-book-module.is-plain { grid-template-rows: none; grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 14px; gap: 14px; }
#fu-app .fu-book-module.is-plain .fu-book-module-art { width: 64px; height: 64px; aspect-ratio: auto; border: 0; border-radius: 16px; }
#fu-app .fu-book-module.is-plain .fu-book-module-icon { width: 32px; height: 32px; stroke-width: 1.7; }
#fu-app .fu-book-module.is-plain .fu-book-module-text { padding: 0; }
#fu-app .fu-book-module-text strong { font: 800 19px/1.1 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-module-text small { color: var(--fu-muted); font-size: 13px; line-height: 1.35; }

#fu-app .fu-book-settings { padding: 0; display: block; }
#fu-app .fu-book-settings > summary { display: flex; align-items: center; gap: 8px; padding: 15px 18px; cursor: pointer; font-weight: 800; color: var(--th-ink, var(--fu-dark)); list-style: none; }
#fu-app .fu-book-settings > summary::-webkit-details-marker { display: none; }
#fu-app .fu-book-settings > summary svg { width: 19px; height: 19px; }
#fu-app .fu-book-settings[open] > summary { border-bottom: 1px solid var(--fu-line); }
#fu-app .fu-book-settings > form, #fu-app .fu-book-settings-block { padding: 14px 18px; display: grid; gap: 10px; border-bottom: 1px solid var(--fu-line); }
#fu-app .fu-book-settings-block:last-child { border-bottom: 0; }
#fu-app .fu-book-settings-block h4 { font-size: 16px; }
#fu-app .fu-book-settings-block p { color: var(--fu-muted); font-size: 14px; }
#fu-app .fu-book-settings-block .fu-btn { justify-self: start; }
#fu-app .fu-book-modules-pick { display: flex; flex-wrap: wrap; gap: 8px 16px; border: 0; padding: 0; margin: 0; }
#fu-app .fu-book-modules-pick legend { width: 100%; font-weight: 800; margin-bottom: 6px; }
#fu-app .fu-book-check { display: flex; align-items: flex-start; gap: 9px; font-weight: 650; }
#fu-app .fu-book-check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--th-ink, #244a37); flex: none; }

/* Samtykke og låst */
#fu-app .fu-book-card.is-consent { background: #fffaf0; border-color: #ecd89a; }
#fu-app .fu-book-consent { display: flex; gap: 16px; align-items: flex-start; }
#fu-app .fu-book-consent-icon { width: 34px; height: 34px; color: #8a6a1f; flex: none; }
#fu-app .fu-book-consent div { display: grid; gap: 8px; justify-items: start; }
#fu-app .fu-book-consent h3 { font-size: 20px; }
#fu-app .fu-book-locked { justify-items: center; text-align: center; padding: 36px 22px; max-width: 640px; margin: 10px auto; }
#fu-app .fu-book-locked-icon { width: 40px; height: 40px; color: #2d5a43; }
#fu-app .fu-book-locked h2 { font: 800 26px/1.1 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); margin: 0; }
#fu-app .fu-book-locked p { color: var(--fu-muted); max-width: 52ch; margin: 0; }
#fu-app .fu-book-bullets { margin: 4px 0; padding-left: 20px; display: grid; gap: 6px; }

/* Personer og faner */
#fu-app .fu-book-people { display: flex; gap: 8px; flex-wrap: wrap; }
#fu-app .fu-book-person {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 14px 4px 5px;
    border: 1px solid var(--fu-border); border-radius: 999px; background: var(--fu-white); font-weight: 780; color: var(--fu-ink);
}
#fu-app .fu-book-person.is-all { padding-inline: 16px; }
#fu-app .fu-book-person .fu-person-mark { width: 32px; height: 32px; }
#fu-app .fu-book-person[aria-pressed="true"] { border-color: var(--fu-person-color, #244a37); box-shadow: inset 0 0 0 1.5px var(--fu-person-color, #244a37); background: color-mix(in srgb, var(--fu-person-color, #e0eedc) 18%, #fffefa); }
#fu-app .fu-book-person.is-all[aria-pressed="true"] { border-color: var(--th-ink, #244a37); box-shadow: inset 0 0 0 1.5px var(--th-ink, #244a37); background: #e0eedc; }
#fu-app .fu-book-segment { display: inline-flex; justify-self: start; padding: 3px; border: 1px solid var(--fu-border); background: #eeeee5; border-radius: 10px; }
#fu-app .fu-book-segment button { border: 0; border-radius: 7px; min-height: 32px; padding: 0 14px; color: var(--fu-muted); font-weight: 750; font-size: 13px; background: transparent; }
#fu-app .fu-book-segment button[aria-pressed="true"] { background: var(--fu-white); box-shadow: 0 1px 4px #2e422315; color: var(--th-ink, var(--fu-dark)); }

/* Fliser med tall */
#fu-app .fu-book-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
#fu-app .fu-book-tile { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #faf8f0; border: 1px solid var(--fu-line); border-top: 4px solid var(--fu-person-color, #cfd9c6); }
#fu-app .fu-book-tile-name { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-tile-name .fu-person-mark { width: 24px; height: 24px; }
#fu-app .fu-book-tile-name svg { width: 18px; height: 18px; color: #2d5a43; }
#fu-app .fu-book-tile-values { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#fu-app .fu-book-tile-values b { font: 800 26px/1 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-tile-values span { color: var(--fu-muted); font-weight: 700; font-size: 14px; }
#fu-app .fu-book-tile small { color: var(--fu-muted); font-size: 12.5px; }

/* Diagram */
#fu-app .fu-book-chart { margin: 0; display: grid; gap: 6px; }
#fu-app .fu-book-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
#fu-app .fu-book-grid line { stroke: #e8e5d8; stroke-width: 1; }
#fu-app .fu-book-grid text, #fu-app .fu-book-xlabels text { fill: #7a8a7f; font-size: 12px; font-weight: 650; }
#fu-app .fu-book-line { fill: none; stroke: color-mix(in srgb, var(--fu-line) 82%, #193b31); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
#fu-app .fu-book-chart circle { fill: #fffefa; stroke: color-mix(in srgb, var(--fu-line) 82%, #193b31); stroke-width: 3; }
#fu-app .fu-book-line-label { fill: var(--th-ink, var(--fu-dark)); font: 800 14px var(--fu-display, "Baloo 2", system-ui); paint-order: stroke; stroke: #fffefa; stroke-width: 4px; }
#fu-app .fu-book-legend { display: flex; gap: 14px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 13px; font-weight: 700; color: var(--fu-muted); }
#fu-app .fu-book-legend li { display: inline-flex; align-items: center; gap: 6px; }
#fu-app .fu-book-legend li::before { content: ""; width: 14px; height: 4px; border-radius: 3px; background: var(--fu-line); }

/* Lister */
#fu-app .fu-book-list { list-style: none; margin: 0; padding: 0; display: grid; }
#fu-app .fu-book-list li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--fu-line); }
#fu-app .fu-book-list li:first-child { border-top: 0; }
#fu-app .fu-book-list-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
#fu-app .fu-book-list-main b { font-weight: 780; color: var(--th-ink, var(--fu-dark)); overflow-wrap: anywhere; }
#fu-app .fu-book-list-main small { color: var(--fu-muted); font-size: 13px; overflow-wrap: anywhere; }
#fu-app .fu-book-log > summary { cursor: pointer; font-weight: 750; color: var(--fu-muted); font-size: 14px; padding: 4px 0; }
#fu-app .fu-book-log[open] > summary { margin-bottom: 4px; }
#fu-app .fu-book-amount { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-amount.is-minus { color: #a13735; }
#fu-app .fu-book-budget-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #edf1e7; color: #2d5a43; flex: none; }
#fu-app .fu-book-budget-icon svg { width: 20px; height: 20px; }
#fu-app .fu-book-inline { display: flex; gap: 8px; }
#fu-app .fu-book-inline input { flex: 1; min-width: 0; min-height: 40px; border: 1px solid var(--fu-border); border-radius: 9px; padding: 8px 11px; background: #faf9f3; color: var(--fu-ink); }

/* Milepæler */
#fu-app .fu-book-milestones { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
#fu-app .fu-book-milestone {
    display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 8px 10px; text-align: center;
    border: 1.5px dashed #d6d5c6; border-radius: 14px; background: #fcfbf6; color: #a2a796; min-height: 132px;
}
#fu-app .fu-book-milestone:not(:disabled):hover { border-color: #b9c2ad; color: #6f7c6c; }
#fu-app .fu-book-milestone span { font-size: 12.5px; font-weight: 750; line-height: 1.2; color: var(--fu-muted); }
#fu-app .fu-book-milestone small { font-size: 11.5px; font-weight: 700; color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-milestone.is-done { border-style: solid; border-color: color-mix(in srgb, var(--fu-person-color, #99b65d) 60%, #fffefa); background: color-mix(in srgb, var(--fu-person-color, #e0eedc) 20%, #fffefa); color: #233c30; }
#fu-app .fu-book-milestone.is-done span { color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-big-icon { width: 52px; height: 52px; }
#fu-app .fu-book-milestone-title { display: flex; align-items: center; gap: 12px; font: 800 20px/1.1 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-milestone-title .fu-book-big-icon { color: #2d5a43; }

/* Tannloggen */
#fu-app .fu-book-teeth-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: center; }
#fu-app .fu-book-teeth { width: 100%; max-width: 330px; height: auto; justify-self: center; }
#fu-app .fu-book-teeth-label { fill: #a0a593; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
#fu-app .fu-book-tooth { cursor: pointer; outline: none; }
#fu-app .fu-book-tooth ellipse { fill: #fffefa; stroke: #233c30; stroke-width: 2.4; transition: fill .15s; }
#fu-app .fu-book-tooth:hover ellipse, #fu-app .fu-book-tooth:focus-visible ellipse { fill: #f1f6ea; }
#fu-app .fu-book-tooth:focus-visible ellipse { stroke: #447fbc; stroke-width: 3.4; }
#fu-app .fu-book-tooth.is-lost ellipse { fill: #f7edc8; stroke-dasharray: 4 3; }
#fu-app .fu-book-tooth path { fill: none; stroke: #8a6a1f; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#fu-app .fu-book-teeth-side { display: grid; gap: 8px; }
#fu-app .fu-book-teeth-side .fu-book-art { max-width: 180px; height: auto; }

/* Sitater */
#fu-app .fu-book-quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
#fu-app .fu-book-quotes li { position: relative; display: grid; gap: 8px; padding: 16px 44px 14px 16px; border-radius: 14px; background: #fffaf0; border: 1px solid #efe3c4; border-left: 5px solid var(--fu-person-color, #ffc842); }
#fu-app .fu-book-quotes blockquote { margin: 0; font: 700 18px/1.3 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-quotes p { font-size: 13px; color: var(--fu-muted); font-weight: 650; }
#fu-app .fu-book-quotes .fu-book-icon-btn { position: absolute; top: 8px; right: 8px; background: transparent; border-color: transparent; }

/* Gravid */
#fu-app .fu-book-start { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 16px 8px; }
#fu-app .fu-book-start .fu-book-big-icon { width: 64px; height: 64px; color: #2d5a43; }
#fu-app .fu-book-start h3 { font-size: 22px; }
#fu-app .fu-book-start p { color: var(--fu-muted); max-width: 48ch; }
#fu-app .fu-book-start.is-small { padding: 6px; }
#fu-app .fu-book-start.is-small .fu-person-mark { width: 44px; height: 44px; }
#fu-app .fu-book-week { background: linear-gradient(160deg, #fffefa 0, #fdf6e9 100%); }
#fu-app .fu-book-week-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#fu-app .fu-book-week-number { font: 800 clamp(48px, 8vw, 72px)/.95 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); letter-spacing: -.03em; margin: 4px 0 6px !important; }
#fu-app .fu-book-week-top p:last-child { color: var(--fu-muted); font-weight: 650; }
#fu-app .fu-book-food { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 130px; }
#fu-app .fu-book-food .fu-book-art { width: 120px; height: 120px; object-fit: contain; }
#fu-app .fu-book-food-blob { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #e9f1e4; color: #42834c; margin-bottom: 4px; }
#fu-app .fu-book-food-blob svg { width: 46px; height: 46px; }
#fu-app .fu-book-food small { color: var(--fu-muted); font-size: 12px; font-weight: 700; }
#fu-app .fu-book-food b { font: 800 20px/1.1 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-progress { position: relative; height: 12px; border-radius: 99px; background: #ece8da; overflow: hidden; }
#fu-app .fu-book-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #99b65d, #42834c); }
#fu-app .fu-book-progress i { position: absolute; top: 0; bottom: 0; width: 2px; background: #fffefa; }
#fu-app .fu-book-progress.is-goal span { background: linear-gradient(90deg, #ffc842, #ee793c); }
#fu-app .fu-book-progress-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--fu-muted); font-weight: 700; margin-top: -8px; }
#fu-app .fu-book-week h3 { font-size: 18px; }
#fu-app .fu-book-kick-today { display: grid; justify-items: center; gap: 6px; text-align: center; }
#fu-app .fu-book-kick { min-height: 48px; padding-inline: 20px; }
#fu-app .fu-book-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 110px; align-items: end; }
#fu-app .fu-book-bars span { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; justify-items: center; }
#fu-app .fu-book-bars i { align-self: end; width: 100%; max-width: 30px; min-height: 3px; border-radius: 7px 7px 3px 3px; background: #dd7b9d; }
#fu-app .fu-book-bars small { font-size: 11px; color: var(--fu-muted); font-weight: 700; text-transform: capitalize; }
#fu-app .fu-book-names { list-style: none; margin: 0; padding: 0; display: grid; }
#fu-app .fu-book-names li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--fu-line); }
#fu-app .fu-book-names li:first-child { border-top: 0; }
#fu-app .fu-book-name { display: grid; flex: 1; min-width: 0; font: 800 19px/1.1 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-name small { font: 650 12px/1.3 system-ui, sans-serif; color: var(--fu-muted); }
#fu-app .fu-book-stars { display: inline-flex; }
#fu-app .fu-book-stars button { display: grid; place-items: center; width: 32px; height: 36px; border: 0; background: transparent; color: #c9c3a8; padding: 0; }
#fu-app .fu-book-stars button svg { width: 22px; height: 22px; }
#fu-app .fu-book-stars button[aria-pressed="true"] { color: #b57c12; }
#fu-app .fu-book-stars button[aria-pressed="true"] svg { fill: #ffd76a; }
#fu-app .fu-book-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; }
#fu-app .fu-book-checklist li { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--fu-line); padding: 4px 0; }
#fu-app .fu-book-checklist label { display: flex; align-items: center; gap: 10px; flex: 1; min-height: 38px; font-weight: 650; }
#fu-app .fu-book-checklist input { width: 20px; height: 20px; accent-color: var(--th-ink, #244a37); }
#fu-app .fu-book-checklist input:checked + span { text-decoration: line-through; color: var(--fu-muted); }
#fu-app .fu-book-checklist .fu-book-icon-btn { background: transparent; border-color: transparent; }
#fu-app .fu-book-choice { display: grid; gap: 8px; justify-items: start; margin-top: 10px; }
#fu-app .fu-book-choice .fu-book-hint { margin-bottom: 8px; }

/* Økonomi */
#fu-app .fu-book-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#fu-app .fu-book-sums > div { display: grid; gap: 3px; padding: 13px 15px; border-radius: 12px; background: #faf8f0; border: 1px solid var(--fu-line); }
#fu-app .fu-book-sums small { font-size: 12.5px; color: var(--fu-muted); font-weight: 750; }
#fu-app .fu-book-sums b { font: 800 26px/1.05 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); font-variant-numeric: tabular-nums; }
#fu-app .fu-book-sums span { font-size: 12.5px; color: var(--fu-muted); }
#fu-app .fu-book-sums .is-plus { background: #eef5e8; border-color: #d3e3c8; }
#fu-app .fu-book-sums .is-minus { background: #fbecea; border-color: #efcfcb; }
#fu-app .fu-book-sums .is-minus b { color: #a13735; }
#fu-app .fu-book-stack { display: flex; height: 22px; border-radius: 8px; overflow: hidden; gap: 2px; background: #f1efe6; }
#fu-app .fu-book-stack span { min-width: 3px; }
#fu-app .fu-book-stack-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 18px; }
#fu-app .fu-book-stack-legend li { display: grid; grid-template-columns: 12px 1fr auto 42px; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; border-bottom: 1px solid var(--fu-line); }
#fu-app .fu-book-stack-legend li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--fu-swatch); }
#fu-app .fu-book-stack-legend b { font-variant-numeric: tabular-nums; }
#fu-app .fu-book-stack-legend small { color: var(--fu-muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Ukepenger */
#fu-app .fu-book-pockets { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
#fu-app .fu-book-pocket { border-top: 5px solid var(--fu-person-color, #ffc842); }
#fu-app .fu-book-pig { display: flex; align-items: center; gap: 16px; }
#fu-app .fu-book-pig > .fu-book-art { width: 110px; height: auto; }
#fu-app .fu-book-rate .fu-book-art { display: inline-block; width: 22px; height: 22px; vertical-align: middle; margin-right: 4px; }
#fu-app .fu-book-pig-icon { width: 72px; height: 72px; color: #dd7b9d; stroke-width: 1.3; flex: none; }
#fu-app .fu-book-pig p:last-child { color: var(--fu-muted); font-size: 13px; margin-top: 4px; }
#fu-app .fu-book-goal { display: grid; gap: 7px; }
#fu-app .fu-book-goal > p:first-child { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
#fu-app .fu-book-goal > p:first-child span { color: var(--fu-muted); font-weight: 700; font-size: 14px; }
#fu-app .fu-book-cheer { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #8a6a1f; }
#fu-app .fu-book-cheer svg { width: 18px; height: 18px; }

/* Hjemmet */
#fu-app .fu-book-house li.is-soon .fu-book-budget-icon { background: #fbf0d4; color: #8a6a1f; }
#fu-app .fu-book-house li.is-late .fu-book-budget-icon { background: #fbecea; color: #a13735; }
#fu-app .fu-book-house li.is-late small { color: #a13735; font-weight: 700; }
#fu-app .fu-book-house .fu-btn { min-height: 34px; padding-inline: 11px; }

/* Året vårt i tall */
#fu-app .fu-book-year-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
#fu-app .fu-book-year-head h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; line-height: 1; }
#fu-app .fu-book-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
#fu-app .fu-book-stat {
    position: relative; display: grid; align-content: start; gap: 4px; padding: 20px 18px 18px; border-radius: 18px; overflow: hidden;
    background: color-mix(in srgb, var(--fu-stat) 16%, #fffefa); border: 1px solid color-mix(in srgb, var(--fu-stat) 38%, #fffefa);
}
#fu-app .fu-book-stat::after { content: ""; position: absolute; right: -26px; top: -26px; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb, var(--fu-stat) 30%, transparent); }
#fu-app .fu-book-stat b { font: 800 clamp(38px, 5vw, 52px)/1 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); letter-spacing: -.02em; position: relative; z-index: 1; }
#fu-app .fu-book-stat span { font-weight: 800; color: var(--th-ink, var(--fu-dark)); font-size: 15px; position: relative; z-index: 1; }
#fu-app .fu-book-stat small { color: var(--fu-muted); font-size: 13px; position: relative; z-index: 1; }
#fu-app .fu-book-year-quote { margin: 0; text-align: center; padding: 26px 22px; background: #fffaf0; border-color: #efe3c4; }
#fu-app .fu-book-year-quote blockquote { margin: 0; font: 700 clamp(22px, 3vw, 30px)/1.25 var(--fu-display, "Baloo 2", system-ui); color: var(--th-ink, var(--fu-dark)); }
#fu-app .fu-book-year-quote figcaption { color: var(--fu-muted); font-weight: 700; }
#fu-app .fu-book-yearbook { grid-template-columns: auto 1fr; align-items: center; gap: 18px; background: linear-gradient(120deg, var(--th-ink, #244a37), color-mix(in srgb, var(--th-ink, #244a37), #fffefa 14%)); border: 0; color: #f6f1e3; }
#fu-app .fu-book-yearbook .fu-book-art { width: 150px; height: auto; border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
#fu-app .fu-book-yearbook div { display: grid; gap: 6px; justify-items: start; }
#fu-app .fu-book-yearbook h3 { color: #fffefa; font-size: 24px; }
#fu-app .fu-book-yearbook p { color: #dfe7da; }
#fu-app .fu-book-yearbook .fu-book-kicker { color: #ffd76a; }
#fu-app .fu-book-yearbook .fu-btn-primary { background: #ffc842; border-color: #ffc842; color: #193b31; }

/* Skjemaer i dialogen */
:is(#fu-dialog, #fu-app) .fu-book-form textarea { width: 100%; border: 1px solid var(--fu-border); padding: 8px 9px; border-radius: 8px; background: #faf9f3; color: var(--fu-ink); font: inherit; resize: vertical; }
:is(#fu-dialog, #fu-app) .fu-book-fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
:is(#fu-dialog, #fu-app) .fu-book-fields-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
:is(#fu-dialog, #fu-app) .fu-book-form .fu-field { margin-bottom: 10px; }
:is(#fu-dialog, #fu-app) .fu-book-form > p { margin: 0 0 12px; }

@media (max-width: 900px) {
    #fu-app .fu-book-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #fu-app .fu-book-two { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    #fu-app .fu-view-tabs { grid-template-columns: repeat(3, minmax(0, .8fr)) minmax(0, 1.15fr) minmax(0, 1.5fr); }
    #fu-app .fu-view-tabs button { font-size: 12.5px; padding: 0 1px; gap: 3px; }
    #fu-app .fu-view-tabs .fu-book-tab svg, #fu-app .fu-view-tabs [data-id="stars"] svg { width: 13px; height: 13px; }
    #fu-app .fu-book { gap: 12px; }
    #fu-app .fu-book-page { gap: 12px; }
    #fu-app .fu-book-card { padding: 14px; gap: 12px; }
    #fu-app .fu-book-intro { gap: 12px; }
    #fu-app .fu-book-intro .fu-book-art { display: none; }
    #fu-app .fu-book-intro p { font-size: 14px; }
    #fu-app .fu-book-modules { gap: 10px; }
    #fu-app .fu-book-module-text { padding: 10px 12px 12px; }
    #fu-app .fu-book-module.is-plain { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 10px; padding: 12px; }
    #fu-app .fu-book-module.is-plain .fu-book-module-art { width: 44px; height: 44px; border-radius: 12px; }
    #fu-app .fu-book-module.is-plain .fu-book-module-icon { width: 24px; height: 24px; }
    #fu-app .fu-book-module-text strong { font-size: 17px; }
    #fu-app .fu-book-module-text small { font-size: 12px; }
    #fu-app .fu-book-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #fu-app .fu-book-tile-values b { font-size: 22px; }
    #fu-app .fu-book-sums { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    #fu-app .fu-book-sums > div:last-child { grid-column: 1 / -1; }
    #fu-app .fu-book-sums b { font-size: 22px; }
    #fu-app .fu-book-teeth-wrap { grid-template-columns: minmax(0, 1fr); }
    #fu-app .fu-book-milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    #fu-app .fu-book-milestone { min-height: 112px; padding: 10px 4px 8px; }
    #fu-app .fu-book-big-icon { width: 40px; height: 40px; }
    #fu-app .fu-book-pockets { grid-template-columns: minmax(0, 1fr); }
    #fu-app .fu-book-week-top { align-items: flex-start; }
    #fu-app .fu-book-food { min-width: 96px; }
    #fu-app .fu-book-food .fu-book-art { width: 86px; height: 86px; }
    #fu-app .fu-book-food-blob { width: 72px; height: 72px; }
    #fu-app .fu-book-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #fu-app .fu-book-stat { padding: 16px 14px 14px; }
    #fu-app .fu-book-stat b { font-size: 34px; }
    #fu-app .fu-book-yearbook { grid-template-columns: minmax(0, 1fr); }
    #fu-app .fu-book-house li { flex-wrap: wrap; }
    #fu-app .fu-book-house .fu-book-list-main { flex-basis: calc(100% - 100px); }
    :is(#fu-dialog, #fu-app) .fu-book-fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

@media (max-width: 380px) {
    #fu-app .fu-view-tabs .fu-book-tab svg, #fu-app .fu-view-tabs [data-id="stars"] svg { display: none; }
    #fu-app .fu-book-modules { grid-template-columns: minmax(0, 1fr); }
}

@media print {
    #fu-app.fu-in-book .fu-book-nav, #fu-app.fu-in-book .fu-book-settings { display: none; }
}
