body.fu-app-page { margin: 0; background: #f8f5ec; }

#fu-app {
    --fu-paper: #f8f5ec;
    --fu-white: #fffefa;
    --fu-ink: #233d34;
    --fu-dark: #193b31;
    --fu-border: #dedfd1;
    --fu-line: #eeebe1;
    background: radial-gradient(ellipse 740px 340px at 12% 0, #fffaf0 0, transparent 78%), var(--fu-paper);
}

#fu-app .fu-topbar {
    background: #fffdf6;
    border-bottom-color: #e6e2d4;
    padding-top: env(safe-area-inset-top, 0px);
}

#fu-app .fu-topbar-inner {
    min-height: 68px;
    gap: 12px;
    padding-left: max(clamp(22px, 4.25vw, 66px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(22px, 4.25vw, 66px), env(safe-area-inset-right, 0px));
}

#fu-app .fu-brand-logo {
    display: block;
    width: clamp(142px, 16vw, 209px);
    height: auto;
    max-height: 52px;
    min-width: 0;
    object-fit: contain;
    object-position: left center;
}

#fu-app .fu-family-heading { min-width: 0; }
#fu-app .fu-family-heading h1 {
    font-size: clamp(34px, 5.2vw, 62px);
}

#fu-app .fu-board { box-shadow: 0 12px 34px rgb(71 67 38 / .075); }
#fu-app .fu-board-toolbar { background: #fcfbf3; }
#fu-app .fu-days:not(.fu-days-month) .fu-day.is-weekend { background: #fdf8ec; }
#fu-app .fu-days:not(.fu-days-month) .fu-day.is-today { background: #eef5e8; }
#fu-app .fu-main { padding-bottom: max(36px, env(safe-area-inset-bottom, 0px)); }

@media (max-width: 760px) {
    #fu-app .fu-topbar-inner {
        min-height: 54px;
        gap: 6px;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }
    #fu-app .fu-brand-logo { width: clamp(116px, 31vw, 161px); max-height: 44px; }
    #fu-app .fu-top-actions .fu-btn { min-height: 44px; }
    #fu-app .fu-top-actions .fu-icon-btn { width: 44px; min-height: 44px; }
    #fu-app .fu-main { padding-top: 17px; }
    #fu-app .fu-family-heading h1 { font-size: clamp(24px, 7.35vw, 34px); }
    #fu-app .fu-board .fu-board-band { height: 26px; }
}

@media (max-width: 480px) {
    #fu-app .fu-top-actions .fu-btn[data-action="share"] { width: 44px; padding-inline: 0; }
    #fu-app .fu-top-actions .fu-btn[data-action="share"] span { display: none; }
}

@media (max-width: 379px) {
    #fu-app .fu-topbar-inner { padding-inline: 8px; }
    #fu-app .fu-brand-logo { width: min(29vw, 116px); }
}

/* ---------- 0.4.0: Fargeland-typografi, maler og stjernetavle ---------- */
@font-face {
    font-family: "Baloo 2";
    src: url("brand/baloo-2-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

#fu-app {
    --th-paper: #fffdf9; --th-ink: #153e47; --th-muted: #4f6a70; --th-accent: #7047d7; --th-accent2: #f45f98;
    --th-soft: #f3eeff; --th-weekend: #fff6ea; --th-line: #e4dcf3; --th-grid: #c9bfe0;
    --fu-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
}
#fu-app .fu-family-heading h1 { font-family: var(--fu-display); font-weight: 800; letter-spacing: -.035em; color: var(--th-ink); line-height: 1.08; }
#fu-app .fu-board-title h2, #fu-app .fu-dialog-header h2, #fu-app .fu-side-title h2, #fu-app .fu-star-name h3, #fu-app .fu-stars-empty h3, #fu-app .fu-star-tip h3 { font-family: var(--fu-display); font-weight: 800; letter-spacing: -.02em; color: var(--th-ink); }
#fu-app .fu-day-number { font-family: var(--fu-display); letter-spacing: -.02em; }
#fu-app .fu-btn-primary { background: var(--th-ink); border-color: var(--th-ink); }
#fu-app .fu-btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--th-ink), black 18%); border-color: color-mix(in srgb, var(--th-ink), black 18%); }
#fu-app .fu-days:not(.fu-days-month) .fu-day.is-weekend, #fu-app .fu-day.is-weekend { background: color-mix(in srgb, var(--th-weekend), white 35%); }
#fu-app .fu-days:not(.fu-days-month) .fu-day.is-today, #fu-app .fu-day.is-today { background: color-mix(in srgb, var(--th-soft), white 25%); }
#fu-app .fu-day.is-today .fu-day-number { background: var(--th-accent); }
#fu-app .fu-segment button { display: inline-flex; align-items: center; gap: 4px; }
#fu-app .fu-segment button .fu-ui-icon { width: 14px; height: 14px; }
#fu-app .fu-segment button[aria-pressed="true"] { color: var(--th-ink); }
#fu-app .fu-segment button[aria-pressed="true"] .fu-ui-icon { color: var(--th-accent); fill: color-mix(in srgb, var(--th-accent), white 55%); }

#fu-app .fu-board-band { height: 44px; overflow: hidden; background: var(--th-paper); border-bottom: 1px solid var(--th-line); }
#fu-app .fu-board-band svg { display: block; width: 100%; height: 100%; }

/* Middag */
#fu-app .fu-dinner { display: flex; align-items: center; gap: 5px; width: 100%; min-height: 30px; margin-top: 6px; padding: 5px 6px; border: 1px dashed var(--th-grid); border-radius: 8px; background: transparent; color: var(--th-muted); font-size: 10.5px; font-weight: 700; text-align: left; }
#fu-app .fu-dinner span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-app .fu-dinner .fu-ui-icon { width: 13px; height: 13px; flex: 0 0 auto; }
#fu-app .fu-dinner.has-text { border-style: solid; border-color: var(--th-line); background: var(--th-paper); color: var(--th-ink); font-size: 11px; }
#fu-app button.fu-dinner:hover { border-color: var(--th-accent); color: var(--th-ink); }
#fu-app .fu-write-space { min-height: 18px; padding-top: 8px; }
#fu-app .fu-idea-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#fu-app .fu-idea-chips button { border: 1px solid var(--fu-border); background: var(--fu-white); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
#fu-app .fu-idea-chips button:hover { border-color: var(--th-accent); background: var(--th-soft); }

/* Maler */
#fu-app .fu-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#fu-app .fu-theme-card { position: relative; display: grid; border: 1px solid var(--th-line); border-radius: 12px; overflow: hidden; background: var(--th-paper); cursor: pointer; }
#fu-app .fu-theme-card input { position: absolute; opacity: 0; }
#fu-app .fu-theme-card:has(input:checked) { box-shadow: 0 0 0 2.5px var(--th-accent); border-color: transparent; }
#fu-app .fu-theme-card:has(input:focus-visible) { outline: 2px solid #437c5e; outline-offset: 2px; }
#fu-app .fu-theme-band { height: 46px; display: block; border-bottom: 1px solid var(--th-line); }
#fu-app .fu-theme-band svg { width: 100%; height: 100%; display: block; }
#fu-app .fu-theme-text { padding: 6px 9px 8px; display: grid; gap: 1px; color: var(--th-ink); }
#fu-app .fu-theme-text b { font-family: var(--fu-display); font-size: 15px; line-height: 1.1; }
#fu-app .fu-theme-text small { color: var(--th-muted); font-size: 11px; line-height: 1.25; }

/* Stjernetavle */
#fu-app .fu-workspace.is-stars { grid-template-columns: minmax(0, 1fr) clamp(230px, 21vw, 300px); grid-template-areas: "board sidebar"; }
#fu-app .fu-stars-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 15px; border-bottom: 1px solid var(--fu-line); }
#fu-app .fu-day-chips { display: flex; gap: 5px; flex-wrap: wrap; }
#fu-app .fu-day-chips button { display: grid; justify-items: center; min-width: 42px; padding: 4px 6px; border: 1px solid var(--fu-border); border-radius: 10px; background: var(--fu-white); line-height: 1.1; }
#fu-app .fu-day-chips b { font-size: 10.5px; color: var(--th-muted); }
#fu-app .fu-day-chips span { font: 800 16px/1.1 var(--fu-display); color: var(--th-ink); }
#fu-app .fu-day-chips .is-today b { color: var(--th-accent); }
#fu-app .fu-day-chips button[aria-pressed="true"] { background: var(--th-ink); border-color: var(--th-ink); }
#fu-app .fu-day-chips button[aria-pressed="true"] b, #fu-app .fu-day-chips button[aria-pressed="true"] span { color: #fff; }
#fu-app .fu-stars-loading { padding: 10px 15px 0; color: var(--fu-muted); font-size: 12px; }
#fu-app .fu-star-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 14px; padding: 15px; flex: 1; align-content: start; }
#fu-app .fu-star-card { --pc: var(--fu-person-color, #e8c77a); display: grid; gap: 10px; align-content: start; border: 1px solid color-mix(in srgb, var(--pc), white 45%); border-radius: 18px; padding: 13px 14px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--pc), white 82%) 0, var(--fu-white) 72px); }
#fu-app .fu-star-card header { display: flex; align-items: center; gap: 10px; min-width: 0; }
#fu-app .fu-star-avatar .fu-person-mark { width: 44px; height: 44px; font-size: 26px; padding: 5px; box-shadow: 0 0 0 3px #fff, 0 2px 8px #0000001a; }
#fu-app .fu-star-name { min-width: 0; flex: 1; }
#fu-app .fu-star-name h3 { font-size: 22px; line-height: 1; }
#fu-app .fu-star-name p { color: var(--th-muted); font-size: 12px; font-weight: 700; margin-top: 3px; }
#fu-app .fu-star-prize { display: inline-flex; align-items: center; gap: 5px; max-width: 42%; padding: 5px 9px; border-radius: 999px; background: #fff7dc; border: 1px solid #f1dfa3; color: #6b5310; font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fu-app .fu-star-prize .fu-ui-icon { width: 14px; height: 14px; flex: 0 0 auto; }
#fu-app .fu-star-card header .fu-icon-btn { width: 32px; min-height: 32px; flex: 0 0 auto; }
#fu-app .fu-star-progress { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--pc), white 75%); overflow: hidden; }
#fu-app .fu-star-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--th-accent), var(--th-accent2)); transition: width .45s cubic-bezier(.2, .9, .3, 1.2); }
#fu-app .fu-star-progress.is-full i { background: linear-gradient(90deg, #ffc93c, #f39a1e, #ffc93c); background-size: 200% 100%; animation: fu-shine 2.4s linear infinite; }
@keyframes fu-shine { to { background-position: -200% 0; } }

#fu-app .fu-check { display: grid; place-items: center; border: 1.5px solid transparent; border-radius: 10px; background: transparent; padding: 2px; aspect-ratio: 1; width: 100%; max-width: 44px; justify-self: center; }
#fu-app button.fu-check { cursor: pointer; transition: transform .12s, background .2s; }
#fu-app button.fu-check:hover { background: var(--th-soft); }
#fu-app button.fu-check:active { transform: scale(.92); }
#fu-app .fu-check .fu-ri { width: 100%; height: 100%; display: block; }
#fu-app .fu-check.is-done { background: color-mix(in srgb, var(--pc), white 78%); }
#fu-app .fu-check.is-off { opacity: .55; }
#fu-app .fu-check.is-pop { animation: fu-pop .42s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes fu-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
#fu-app .fu-check.is-big { aspect-ratio: auto; max-width: none; gap: 4px; padding: 10px 6px 8px; border: 2px dashed var(--th-grid); border-radius: 16px; background: var(--fu-white); }
#fu-app .fu-check.is-big .fu-ri { width: 54px; height: 54px; }
#fu-app .fu-check.is-big span { font-size: 12px; font-weight: 800; line-height: 1.15; text-align: center; color: var(--th-ink); }
#fu-app .fu-check.is-big.is-done { border-style: solid; border-color: color-mix(in srgb, var(--pc), black 8%); background: color-mix(in srgb, var(--pc), white 72%); }
#fu-app .fu-star-day { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 9px; }
#fu-app .fu-star-week { display: grid; gap: 3px; }
#fu-app .fu-star-row { display: grid; grid-template-columns: minmax(118px, 2.1fr) repeat(7, minmax(28px, 1fr)); gap: 3px; align-items: center; }
#fu-app .fu-star-row > span { display: grid; place-items: center; min-width: 0; }
#fu-app .fu-star-row.is-head span { font-size: 10.5px; font-weight: 800; color: var(--th-muted); padding-bottom: 2px; }
#fu-app .fu-star-row.is-head span.is-today { color: var(--th-accent); }
#fu-app .fu-star-row > span.is-today:not([role="columnheader"]) { background: color-mix(in srgb, var(--th-soft), white 30%); border-radius: 10px; }
#fu-app .fu-star-label { display: flex !important; align-items: center; gap: 6px; justify-content: start !important; font-size: 12px; font-weight: 750; }
#fu-app .fu-star-label .fu-ri { width: 24px; height: 24px; flex: 0 0 auto; }
#fu-app .fu-star-label span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.15; overflow-wrap: anywhere; }
#fu-app .fu-star-last { font-size: 11.5px; color: var(--th-muted); font-weight: 700; }
#fu-app .fu-stars-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 20px 48px; max-width: 520px; margin: 0 auto; }
#fu-app .fu-stars-empty-art { display: flex; gap: 10px; }
#fu-app .fu-stars-empty-art svg { width: 58px; height: 58px; }
#fu-app .fu-stars-empty-art svg:nth-child(odd) { transform: rotate(-6deg); }
#fu-app .fu-stars-empty h3 { font-size: 28px; }
#fu-app .fu-stars-empty p { color: var(--fu-muted); }

#fu-app .fu-stars-side { gap: 10px; }
#fu-app .fu-routine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
#fu-app .fu-routine-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--fu-line); background: #faf9f3; border-radius: 10px; padding: 6px 8px; }
#fu-app button.fu-routine-item:hover { border-color: var(--th-grid); background: var(--th-soft); }
#fu-app .fu-routine-icon svg { width: 28px; height: 28px; display: block; }
#fu-app .fu-routine-item b { display: block; font-size: 12.5px; }
#fu-app .fu-routine-item small { display: block; color: var(--fu-muted); font-size: 10.5px; }
#fu-app .fu-side-actions { display: flex; }
#fu-app .fu-star-tip { margin-top: auto; border-radius: 12px; background: var(--th-soft); padding: 12px 13px; }
#fu-app .fu-star-tip h3 { font-size: 15px; margin-bottom: 6px; }
#fu-app .fu-star-tip ol { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 12px; color: var(--th-ink); }

/* Dialoger for stjernetavla */
#fu-app .fu-preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#fu-app .fu-preset { display: flex; align-items: center; gap: 7px; border: 1px solid var(--fu-border); border-radius: 10px; padding: 5px 8px; background: var(--fu-white); cursor: pointer; font-size: 12.5px; font-weight: 700; min-width: 0; }
#fu-app .fu-preset svg { width: 28px; height: 28px; flex: 0 0 auto; }
#fu-app .fu-preset span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-app .fu-preset input { accent-color: var(--th-accent); flex: 0 0 auto; }
#fu-app .fu-preset:has(input:checked) { border-color: var(--th-accent); background: var(--th-soft); }
#fu-app .fu-preset.is-new:not(:has(input:checked)) { opacity: .78; }
#fu-app .fu-ri-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
#fu-app .fu-ri-choice { position: relative; display: grid; place-items: center; border: 1px solid var(--fu-border); border-radius: 10px; padding: 4px; background: var(--fu-white); cursor: pointer; }
#fu-app .fu-ri-choice input { position: absolute; opacity: 0; }
#fu-app .fu-ri-choice svg { width: 34px; height: 34px; }
#fu-app .fu-ri-choice:has(input:checked) { border-color: var(--th-accent); box-shadow: 0 0 0 1.5px var(--th-accent); background: var(--th-soft); }
#fu-app .fu-weekday-options { display: flex; flex-wrap: wrap; gap: 5px; }
#fu-app .fu-weekday-choice { position: relative; cursor: pointer; }
#fu-app .fu-weekday-choice input { position: absolute; opacity: 0; }
#fu-app .fu-weekday-choice span { display: grid; place-items: center; min-width: 40px; height: 36px; border: 1px solid var(--fu-border); border-radius: 9px; font-weight: 800; font-size: 12.5px; background: var(--fu-white); }
#fu-app .fu-weekday-choice input:checked + span { background: var(--th-ink); border-color: var(--th-ink); color: #fff; }
#fu-app .fu-weekday-choice input:focus-visible + span { outline: 2px solid #437c5e; outline-offset: 2px; }

/* Feiring */
#fu-app .fu-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100000; overflow: hidden; }
#fu-app .fu-confetti i { position: absolute; top: -16px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; background: var(--c); animation: fu-fall 2.1s cubic-bezier(.25, .6, .4, 1) var(--d) forwards; }
#fu-app .fu-confetti i:nth-child(3n) { border-radius: 50%; width: 10px; height: 10px; }
@keyframes fu-fall { to { transform: translate3d(calc(var(--d) * 60px - 18px), 105vh, 0) rotate(var(--r)); } }

@media (max-width: 1000px) {
    #fu-app .fu-workspace.is-stars { grid-template-columns: minmax(0, 1fr) 220px; }
}
@media (max-width: 760px) {
    #fu-app .fu-workspace.is-stars { grid-template-columns: minmax(0, 1fr); grid-template-areas: "board" "sidebar"; }
    #fu-app .fu-board-band { height: 34px; }
    #fu-app .fu-stars-bar { padding: 9px 10px; }
    #fu-app .fu-day-chips { width: 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
    #fu-app .fu-day-chips button { min-width: 0; padding-inline: 2px; }
    #fu-app .fu-star-cards { padding: 10px; gap: 10px; }
    #fu-app .fu-star-card { padding: 11px 10px 12px; }
    #fu-app .fu-star-row { grid-template-columns: minmax(70px, 1.25fr) repeat(7, minmax(26px, 1fr)); gap: 2px; }
    #fu-app .fu-star-label { font-size: 11px; gap: 4px; }
    #fu-app .fu-star-label .fu-ri { width: 20px; height: 20px; }
    #fu-app .fu-star-day { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    #fu-app .fu-check.is-big .fu-ri { width: 48px; height: 48px; }
    #fu-app .fu-star-prize { max-width: 38%; }
    #fu-app .fu-theme-grid, #fu-app .fu-preset-grid { grid-template-columns: minmax(0, 1fr); }
    #fu-app .fu-days:not(.fu-days-month) .fu-dinner { grid-column: 2; margin-top: 4px; min-height: 28px; }
    #fu-app .fu-board-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    #fu-app .fu-check.is-pop, #fu-app .fu-star-progress.is-full i { animation: none; }
    #fu-app .fu-star-progress i { transition: none; }
}

#fu-app .fu-event-name { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }

/* ---------- 0.5.0: profilbilder, venner, etterfylling ---------- */
#fu-app .fu-person-mark.has-photo { padding: 0; overflow: hidden; background: var(--fu-person-color); box-shadow: 0 0 0 2px var(--fu-person-color); }
#fu-app .fu-person-mark.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
#fu-app .fu-event-meta .fu-person-mark.has-photo { width: 22px; height: 22px; min-width: 22px; border: 1.5px solid #fff; }
#fu-app .fu-event-meta .is-guest .fu-person-mark { outline: 1.5px dashed color-mix(in srgb, var(--fu-event-color), black 25%); outline-offset: 1px; }
#fu-app .fu-going { display: inline-flex; color: #2d7a4f; }
#fu-app .fu-going .fu-ui-icon { width: 13px; height: 13px; stroke-width: 2.6; }
#fu-app .fu-event.is-shared { border-left-style: solid; }
#fu-app .fu-event.is-pending { background: repeating-linear-gradient(135deg, #ffffff 0 6px, var(--fu-event-bg) 6px 12px); border-style: dashed; }
#fu-app .fu-event-from { display: block; margin-top: 2px; font-size: 9px; font-weight: 800; color: color-mix(in srgb, var(--fu-event-color), black 45%); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-app .fu-friends-button { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--th-grid); border-radius: 10px; background: var(--th-paper); font-weight: 750; font-size: 12px; color: var(--th-ink); }
#fu-app .fu-friends-button:hover { border-style: solid; border-color: var(--th-accent); }
#fu-app .fu-friends-button .fu-ui-icon { width: 16px; height: 16px; }
#fu-app .fu-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--th-accent2, #f45f98); margin-left: auto; box-shadow: 0 0 0 3px color-mix(in srgb, var(--th-accent2, #f45f98), white 70%); }
#fu-app .fu-friend-pick { display: grid; gap: 8px; }
#fu-app .fu-friend-group { display: grid; gap: 4px; }
#fu-app .fu-friend-marks { display: inline-flex; gap: 3px; margin-left: 6px; }
#fu-app .fu-banner.is-friend { background: #f3eeff; border-color: #ddd0fa; color: #2d2350; }
#fu-app .fu-photo-row { display: flex; align-items: center; gap: 12px; }
#fu-app .fu-photo-preview { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--fu-person-color), white 60%); color: var(--fu-muted); box-shadow: 0 0 0 3px var(--fu-person-color); flex: 0 0 auto; }
#fu-app .fu-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
#fu-app .fu-photo-preview .fu-ui-icon { width: 26px; height: 26px; }
#fu-app .fu-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
#fu-app .fu-photo-pick { cursor: pointer; }
#fu-app .fu-activity-photo-field .fu-photo-preview {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--fu-soft);
  box-shadow: none;
}
#fu-app .fu-activity-photo-field .fu-photo-pick { position: relative; }
#fu-app .fu-activity-photo-field .fu-photo-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#fu-app .fu-activity-photo-field .fu-photo-pick:focus-within { outline: 2px solid var(--fu-ink); outline-offset: 2px; }
#fu-app .fu-activity-photo img { border-radius: 5px; object-fit: cover; }
#fu-app .fu-dayview-mark.fu-activity-photo img { border-radius: 12px; }
#fu-app .fu-person-chip .fu-person-mark.has-photo, #fu-app .fu-person-choice .fu-person-mark.has-photo { width: 24px; height: 24px; }
#fu-app .fu-star-avatar .fu-person-mark.has-photo { width: 48px; height: 48px; }
#fu-app .fu-check.is-future { opacity: .35; }
#fu-app .fu-check.is-future.is-big { border-style: dotted; }
#fu-app .fu-stars-note { display: flex; align-items: center; gap: 7px; margin: 10px 15px 0; padding: 8px 11px; border-radius: 10px; background: #fff7dc; border: 1px solid #f1dfa3; color: #5e4a10; font-size: 12px; font-weight: 700; }
#fu-app .fu-stars-note .fu-ui-icon { width: 15px; height: 15px; flex: 0 0 auto; }

/* To hjem */
#fu-app .fu-home { display: flex; align-items: center; gap: 5px; width: 100%; min-height: 26px; margin: 2px 0 6px; padding: 2px 6px 2px 3px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--home), white 70%); color: color-mix(in srgb, var(--home), black 62%); font-size: 10.5px; font-weight: 800; text-align: left; }
#fu-app button.fu-home:hover { background: color-mix(in srgb, var(--home), white 55%); }
#fu-app .fu-home > span:not(.fu-person-mark):not(.fu-home-icon) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-app .fu-home .fu-person-mark { width: 20px; height: 20px; font-size: 12px; padding: 1px; background: #fff; }
#fu-app .fu-home-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; flex: 0 0 auto; }
#fu-app .fu-home-icon .fu-ui-icon, #fu-app .fu-home b .fu-ui-icon { width: 13px; height: 13px; }
#fu-app .fu-home b.fu-home-swap { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; background: #fff; color: #7a3412; }
#fu-app .fu-home.is-change { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--home), black 15%); }
#fu-app .fu-home.is-mini { width: auto; min-height: 6px; height: 6px; margin: 0 2px 3px; padding: 0; border-radius: 4px; background: var(--home); justify-content: center; }
#fu-app .fu-home.is-mini.is-change { height: 14px; color: #fff; }
#fu-app .fu-home.is-mini .fu-ui-icon { width: 11px; height: 11px; }
#fu-app .fu-home-pair { align-items: start; }
#fu-app .fu-home-field { padding: 10px !important; border-radius: 12px; background: color-mix(in srgb, var(--home), white 82%); }
#fu-app .fu-home-field .fu-fields { grid-template-columns: minmax(0, 1fr); gap: 6px; }
#fu-app .fu-home-field .fu-color-choice i { width: 19px; height: 19px; }
#fu-app .fu-home-grid { display: grid; gap: 6px; margin-top: 8px; }
#fu-app .fu-home-week { display: grid; grid-template-columns: 92px repeat(7, minmax(0, 1fr)); gap: 3px; align-items: center; }
#fu-app .fu-home-week button { display: grid; justify-items: center; gap: 1px; min-height: 44px; padding: 3px 1px; border: 0; border-radius: 9px; background: color-mix(in srgb, var(--home), white 55%); color: color-mix(in srgb, var(--home), black 65%); }
#fu-app .fu-home-week button b { font-size: 11px; }
#fu-app .fu-home-week button span { font-size: 9px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-app .fu-home-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
#fu-app .fu-idea-chips button[aria-pressed="true"] { background: var(--th-ink); border-color: var(--th-ink); color: #fff; }
@media (max-width: 760px) {
    #fu-app .fu-home-week { grid-template-columns: 62px repeat(7, minmax(0, 1fr)); }
    #fu-app .fu-home-week button span { display: none; }
    #fu-app .fu-days:not(.fu-days-month) .fu-home { grid-column: 1 / -1; margin: 0 0 4px; }
}

/* ---------- 0.6.0: innstillinger og diplom ---------- */
#fu-app .fu-gear { border-color: transparent; background: transparent; }
#fu-app .fu-gear .fu-ui-icon { width: 21px; height: 21px; }
#fu-app .fu-settings { gap: 12px; }
#fu-app .fu-settings-account { display: grid; gap: 12px; min-width: 0; }
#fu-app .fu-set-calendar-links { display: grid; gap: 5px; }
#fu-app .fu-set-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; gap: 9px; align-items: center; min-height: 52px; width: 100%;
    text-align: start; padding: 6px 8px; border: 1px solid var(--th-line); border-radius: 10px; background: var(--th-paper); color: var(--th-ink); }
#fu-app .fu-set-row:hover { border-color: var(--th-grid); }
#fu-app .fu-set-row > span { display: grid; overflow-wrap: anywhere; }
#fu-app .fu-set-row small { color: var(--fu-muted); }
#fu-app .fu-set-row > .fu-ui-icon { width: 16px; height: 16px; }
#fu-app .fu-entry-list.fu-family-picker li > div { display: grid; gap: 2px; overflow-wrap: anywhere; }
#fu-app .fu-entry-list.fu-family-picker .fu-btn { min-height: 44px; padding-inline: 12px; font-size: 13px; }
#fu-app .fu-set-profile { display: flex; align-items: center; gap: 14px; padding: 4px 0 6px; }
#fu-app .fu-avatar { width: 64px; height: 64px; flex: 0 0 auto; filter: drop-shadow(0 6px 12px #7047d733); }
#fu-app .fu-set-profile b { display: block; font: 800 22px/1.05 var(--fu-display); color: var(--th-ink); }
#fu-app .fu-set-profile small { display: block; color: var(--fu-muted); font-size: 12.5px; margin-top: 2px; }
#fu-app .fu-set-profile a { display: inline-block; margin-top: 5px; font-size: 12.5px; font-weight: 750; color: var(--th-accent); }
#fu-app .fu-set-section { border: 1px solid var(--fu-line); border-radius: 14px; padding: 12px 13px; background: #fcfbf6; display: grid; gap: 8px; }
#fu-app .fu-set-section h3 { display: flex; align-items: center; gap: 7px; font: 800 15px/1.1 var(--fu-display); color: var(--th-ink); margin: 0 0 2px; }
#fu-app .fu-set-section h3 .fu-ui-icon { width: 16px; height: 16px; color: var(--th-accent); }
#fu-app .fu-set-access { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
#fu-app .fu-set-access > p, #fu-app .fu-set-access > a { grid-column: 1 / -1; }
#fu-app .fu-set-access b { display: block; font: 800 17px/1.1 var(--fu-display); color: var(--th-ink); }
#fu-app .fu-set-access small { display: block; margin: 3px 0 8px; color: var(--fu-muted); font-size: 12px; line-height: 1.35; }
#fu-app .fu-ring { width: 78px; height: 78px; }
#fu-app .fu-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 3px 0; }
#fu-app .fu-switch b { display: block; font-size: 13px; }
#fu-app .fu-switch small { display: block; color: var(--fu-muted); font-size: 11.5px; line-height: 1.3; margin-top: 1px; }
#fu-app .fu-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#fu-app .fu-switch i { position: relative; flex: 0 0 auto; width: 46px; height: 27px; border-radius: 999px; background: #d8d4c8; transition: background .2s; }
#fu-app .fu-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .2s; }
#fu-app .fu-switch input:checked + i { background: var(--th-accent); }
#fu-app .fu-switch input:checked + i::after { transform: translateX(19px); }
#fu-app .fu-switch input:focus-visible + i { outline: 2px solid #437c5e; outline-offset: 2px; }
#fu-app .fu-switch input:disabled + i { opacity: .5; }
#fu-app .fu-set-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
#fu-app .fu-set-links .fu-btn { min-height: 34px; font-size: 12px; }
#fu-app .fu-diploma-button { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: linear-gradient(90deg, #ffd46a, #ffb84a); color: #4a3405; font: 800 14px/1 var(--fu-display); box-shadow: 0 6px 16px #f3a21e40; }
#fu-app .fu-diploma-button .fu-ui-icon { width: 17px; height: 17px; }

/* ---------- 0.7: Hent inn, ukeplan (AI), koblede kalendere, superbruker, flerdagers ---------- */
#fu-app .fu-hub { display: grid; gap: 10px; }
#fu-app .fu-hub-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px 16px;
  border: 1px solid var(--th-grid, #e6dfd3); border-radius: 16px; background: var(--th-paper, #fff); color: inherit; font: inherit; cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s; }
#fu-app .fu-hub-card:hover, #fu-app .fu-hub-card:focus-visible { border-color: var(--th-accent, #e07a5f); box-shadow: 0 6px 18px rgba(60, 40, 20, .08); transform: translateY(-1px); }
#fu-app .fu-hub-card strong { display: block; font-size: 1.02rem; }
#fu-app .fu-hub-card > span:last-child > span { display: block; font-size: .88rem; opacity: .75; margin-top: 2px; line-height: 1.35; }
#fu-app .fu-hub-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--th-accent, #e07a5f) 14%, #fff); color: var(--th-accent, #e07a5f); }
#fu-app .fu-hub-icon .fu-ui-icon { width: 24px; height: 24px; }
#fu-app .fu-hub-badge { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px;
  background: #fde7c7; color: #8a4b08; vertical-align: 2px; margin-left: 4px; }
#fu-app .fu-ai-drop { display: block; cursor: pointer; }
#fu-app .fu-ai-preview { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--th-grid, #e0d6c6); border-radius: 18px;
  text-align: center; background: color-mix(in srgb, var(--th-accent, #e07a5f) 5%, #fff); }
#fu-app .fu-ai-preview .fu-ui-icon { width: 34px; height: 34px; color: var(--th-accent, #e07a5f); }
#fu-app .fu-ai-preview span { font-size: .88rem; opacity: .7; }
#fu-app .fu-ai-preview img { max-height: 180px; max-width: 100%; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
#fu-app .fu-ai-preview.is-reading img { animation: fu-ai-scan 1.6s ease-in-out infinite; }
#fu-app .fu-ai-reading { position: absolute; inset: auto 12px 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .92); font-style: normal; font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
@keyframes fu-ai-scan { 50% { filter: brightness(1.12) saturate(1.2); transform: scale(1.01); } }
#fu-app .fu-ai-text summary, #fu-app .fu-help summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 4px 0; }
#fu-app .fu-ai-text textarea { width: 100%; font: inherit; border-radius: 12px; border: 1px solid var(--th-grid, #e0d6c6); padding: 10px; }
#fu-app .fu-ai-privacy { display: flex; gap: 8px; align-items: flex-start; }
#fu-app .fu-ai-privacy .fu-ui-icon { flex: none; width: 18px; height: 18px; color: #2f8a5b; }
#fu-app .fu-help p { font-size: .88rem; margin: .4em 0; }
#fu-app .fu-import-row .fu-check-row small, #fu-app .fu-check-row small { display: block; font-size: .82rem; opacity: .7; }
#fu-app .fu-import-mark { flex: none; width: 28px; height: 28px; display: inline-grid; place-items: center; font-size: 18px; }
#fu-app .fu-import-mark img { width: 100%; }
#fu-app .fu-import-tools { display: flex; gap: 6px; flex-wrap: wrap; }
#fu-app .fu-check-row.is-removed strong { text-decoration: line-through; text-decoration-color: rgba(180, 40, 40, .5); }
#fu-app .fu-note { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff6e6; }
#fu-app .fu-note .fu-ui-icon { flex: none; width: 18px; height: 18px; }
#fu-app .fu-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
#fu-app .fu-feed-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
#fu-app .fu-banner.is-admin { background: #1f2a44; color: #fff; }
#fu-app .fu-banner.is-admin a { color: #fff; border-color: rgba(255, 255, 255, .4); }
#fu-app .fu-event-span { font-size: .78em; opacity: .8; white-space: nowrap; }
#fu-app .fu-import-row { position: relative; }
#fu-app .fu-import-edit { position: absolute; top: 8px; right: 8px; padding: 4px 10px; min-height: 0; font-size: .85rem; }
#fu-app .fu-import-row:has(.fu-import-edit) .fu-check-row { padding-right: 64px; }
#fu-app .fu-ai-preview.is-reading > span { visibility: hidden; }

/* Ukedager i en serie (henting man–fre) */
#fu-app .fu-weekdays { border: 0; padding: 0; margin: 0; }
#fu-app .fu-weekdays legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
#fu-app .fu-weekdays > div { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
#fu-app .fu-weekdays label { position: relative; cursor: pointer; }
#fu-app .fu-weekdays input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
#fu-app .fu-weekdays span { display: grid; place-items: center; height: 44px; border-radius: 14px; border: 1.5px solid var(--th-grid, #e3dccf);
  background: var(--th-paper, #fff); font-weight: 700; transition: background .15s, border-color .15s, color .15s; }
#fu-app .fu-weekdays label:nth-child(n+6) span { color: #b0563f; }
#fu-app .fu-weekdays input:checked + span { background: var(--th-accent, #2f4a3a); border-color: var(--th-accent, #2f4a3a); color: #fff; }
#fu-app .fu-weekdays input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--th-accent, #2f4a3a) 40%, transparent); outline-offset: 2px; }
#fu-app .fu-weekdays p { margin: 6px 0 0; }

/* ---------- Mobil: dialogen dekker hele skjermen, er låst sideveis og følger tastaturet ---------- */
@media (max-width: 640px), (pointer: coarse) and (max-width: 900px) {
  html.fu-modal-open, html.fu-modal-open body { overflow: hidden !important; overscroll-behavior: none; }
  #fu-app .fu-dialog { width: 100%; max-width: none; height: var(--fu-vvh, 100dvh); max-height: none; margin: 0; inset: var(--fu-vvt, 0px) 0 auto 0;
    border: 0; border-radius: 0; box-shadow: none; overflow: hidden; overscroll-behavior: contain; touch-action: pan-y; }
  #fu-app .fu-dialog[open] { display: flex; flex-direction: column; }
  #fu-app .fu-dialog::backdrop { background: var(--fu-white, #fff); }
  #fu-app .fu-dialog-header { flex: 0 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px 10px; background: var(--fu-white, #fff); }
  #fu-app .fu-dialog-header h2 { font-size: 20px; }
  #fu-app .fu-dialog > .fu-dialog-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 14px 16px 0; display: flex; flex-direction: column; gap: 13px; }
  #fu-app .fu-dialog > .fu-dialog-body > * { flex: 0 0 auto; }
  #fu-app .fu-dialog > .fu-dialog-body > *, #fu-app .fu-dialog .fu-fields > * { min-width: 0; max-width: 100%; }
  #fu-app .fu-dialog > .fu-dialog-body > .fu-dialog-footer { margin-top: auto; }
  #fu-app .fu-dialog-footer { position: sticky; bottom: 0; z-index: 2; margin: 4px -16px 0; width: calc(100% + 32px); max-width: none !important; box-sizing: border-box; padding: 10px 16px max(12px, env(safe-area-inset-bottom));
    background: var(--fu-white, #fff); border-top: 1px solid var(--fu-line, #ece7dc); }
  #fu-app .fu-dialog-footer .fu-btn { min-height: 46px; }
  #fu-app .fu-dialog-footer-end { flex: 1 1 auto; }
  #fu-app .fu-dialog-footer-end .fu-btn-primary { flex: 1 1 auto; }
  #fu-app .fu-dialog input:not([type="checkbox"]):not([type="radio"]), #fu-app .fu-dialog select, #fu-app .fu-dialog textarea { font-size: 16px; min-height: 44px; }
  #fu-app .fu-dialog input[type="date"], #fu-app .fu-dialog input[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; width: 100%; text-align: left; }
  #fu-app .fu-dialog input[type="date"]::-webkit-date-and-time-value, #fu-app .fu-dialog input[type="time"]::-webkit-date-and-time-value { text-align: left; }
  #fu-app .fu-dialog .fu-color-options { display: flex; flex-wrap: wrap; gap: 8px; }
  #fu-app .fu-dialog .fu-color-choice i { width: 30px; height: 30px; }
  #fu-app .fu-dialog .fu-person-choice { min-height: 40px; }
}

/* ---------- Priser: uke, måned, år ---------- */
#fu-app .fu-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#fu-app .fu-plan { position: relative; display: grid; justify-items: center; gap: 2px; padding: 18px 8px 14px; border-radius: 16px; text-decoration: none; text-align: center;
  border: 1.5px solid var(--th-grid, #e3dccf); background: var(--th-paper, #fff); color: var(--th-ink, #2b2118); transition: transform .15s, border-color .15s, box-shadow .15s; }
#fu-app .fu-plan:hover, #fu-app .fu-plan:focus-visible { transform: translateY(-2px); border-color: var(--th-accent, #e07a5f); box-shadow: 0 8px 22px rgba(60, 40, 20, .1); }
#fu-app .fu-plan.is-featured { border-color: var(--th-accent, #e07a5f); background: color-mix(in srgb, var(--th-accent, #e07a5f) 8%, #fff); }
#fu-app .fu-plan span { font-weight: 700; font-size: .9rem; opacity: .8; }
#fu-app .fu-plan strong { font: 800 1.6rem/1.1 var(--fu-display, inherit); }
#fu-app .fu-plan small { font-size: .8rem; opacity: .7; }
#fu-app .fu-plan em { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: .7rem; font-weight: 800;
  padding: 3px 8px; border-radius: 99px; background: var(--th-accent, #e07a5f); color: #fff; }
#fu-app .fu-plan-note { display: flex; gap: 8px; align-items: flex-start; }
#fu-app .fu-plan-note .fu-ui-icon { flex: none; width: 18px; height: 18px; color: #2f8a5b; }
#fu-app .fu-banner.is-trial { background: #fff6e6; }
@media (max-width: 420px) { #fu-app .fu-plan strong { font-size: 1.3rem; } #fu-app .fu-plans { gap: 6px; } }

/* Tid fra–til */
#fu-app .fu-time-pair > span { display: block; }
#fu-app .fu-time-pair > div { display: flex; align-items: center; gap: 6px; }
#fu-app .fu-time-pair input { flex: 1 1 0; min-width: 0; }
#fu-app .fu-time-pair input[name="endTime"]:placeholder-shown { color: var(--fu-muted, #8a8476); }
#fu-app .fu-time-dash { flex: 0 0 auto; font-weight: 700; opacity: .6; }
@media (max-width: 640px) { #fu-app .fu-dialog .fu-fields > .fu-time-pair { grid-column: 1 / -1; } }
@media (max-width: 640px) { #fu-app .fu-dialog .fu-fields > .fu-field:has(input[name="date"]) { grid-column: 1 / -1; } }

/* Illustrerte personmerker (stjerne, bjørn, blomst, dinosaur) */
#fu-app .fu-person-mark.has-art > span { display: block; width: 100%; height: 100%; }
#fu-app .fu-person-mark.has-art img { object-fit: contain; }

/* ---------- Symbolvelger med bilder ---------- */
#fu-app .fu-icon-picker { scroll-margin-top: 12px; }
#fu-app .fu-fields > .fu-icon-picker { grid-column: 1 / -1; }
#fu-app .fu-icon-current { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 37px; padding: 4px 10px 4px 5px; border: 1px solid var(--fu-border, #ddd6c8);
  border-radius: 8px; background: #faf9f3; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#fu-app .fu-icon-current:hover { border-color: var(--th-accent, #e07a5f); }
#fu-app .fu-icon-current .fu-ui-icon { margin-left: auto; width: 16px; height: 16px; flex: none; opacity: .6; }
#fu-app .fu-icon-current-mark { width: 28px; height: 28px; flex: none; display: grid; place-items: center; font-size: 19px; }
#fu-app .fu-icon-current-mark img, #fu-app .fu-icon-choice-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
#fu-app .fu-icon-current-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-app .fu-icon-panel { min-width: 0; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--fu-border, #ddd6c8); }
#fu-app .fu-icon-results { max-height: min(280px, 37vh); max-height: min(280px, calc(var(--fu-vvh, 100dvh) * .37)); overflow-y: auto; }
#fu-app .fu-icon-search { width: 100%; min-height: 38px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--fu-border, #ddd6c8); background: #faf9f3; font: inherit; margin-bottom: 6px; }
#fu-app .fu-icon-groups section { margin-top: 8px; }
#fu-app .fu-icon-groups h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin: 0 0 4px; }
#fu-app .fu-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 4px; }
#fu-app .fu-icon-choice { display: grid; justify-items: center; gap: 2px; padding: 7px 3px 6px; border: 1px solid transparent; border-radius: 10px; background: none;
  font: inherit; font-size: 11px; line-height: 1.15; color: inherit; cursor: pointer; text-align: center; }
#fu-app .fu-icon-choice:hover, #fu-app .fu-icon-choice:focus-visible { background: #f6f2ea; }
#fu-app .fu-icon-choice.is-selected { border-color: var(--th-accent, #e07a5f); background: color-mix(in srgb, var(--th-accent, #e07a5f) 10%, #fff); }
#fu-app .fu-icon-choice[hidden], #fu-app .fu-icon-groups section[hidden] { display: none; }
#fu-app .fu-icon-choice-mark { width: 38px; height: 38px; display: grid; place-items: center; font-size: 26px; }
#fu-app .fu-rename { margin-top: -4px; font-size: 13px; }
#fu-app .fu-side-actions { display: inline-flex; gap: 4px; }
#fu-app .fu-name-list { display: grid; gap: 6px; max-height: 52vh; overflow-y: auto; }
#fu-app .fu-name-row { display: grid; grid-template-columns: 30px minmax(70px, 110px) minmax(0, 1fr); align-items: center; gap: 8px; }
#fu-app .fu-name-row[hidden] { display: none; }
#fu-app .fu-name-row .fu-icon-option-mark { width: 30px; height: 30px; display: grid; place-items: center; font-size: 20px; }
#fu-app .fu-name-default { font-size: 13px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-app .fu-name-row input { min-width: 0; width: 100%; min-height: 36px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--fu-border, #ddd6c8); background: #faf9f3; font: inherit; }
@media (max-width: 640px) {
  #fu-app .fu-dialog .fu-icon-current { min-height: 44px; }
  #fu-app .fu-dialog .fu-name-list { max-height: none; overflow: visible; }
}
#fu-app .fu-brand-logo { object-fit: contain; object-position: left center; }

/* ---------- Kom i gang ---------- */
#fu-app .fu-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 4px; padding: 0; }
#fu-app .fu-steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; opacity: .5; padding-bottom: 6px; border-bottom: 3px solid var(--th-grid, #e6dfd3); }
#fu-app .fu-steps li span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--th-grid, #e6dfd3); font-size: 11px; }
#fu-app .fu-steps li.is-current, #fu-app .fu-steps li.is-done { opacity: 1; border-color: var(--th-accent, #e07a5f); }
#fu-app .fu-steps li.is-current span, #fu-app .fu-steps li.is-done span { background: var(--th-accent, #e07a5f); color: #fff; }
#fu-app .fu-setup-lead { font-size: 15px; line-height: 1.45; }
#fu-app .fu-setup-h { font-size: 14px; margin: 6px 0 0; }
#fu-app .fu-setup-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px) 32px; gap: 8px; align-items: end; }
#fu-app .fu-setup-row.is-child { grid-template-columns: minmax(0, 1fr) 150px 140px 32px; }
#fu-app .fu-setup-row input, #fu-app .fu-setup-row select, #fu-app .fu-setup-child input[type="text"], #fu-app .fu-setup-row textarea { min-width: 0; width: 100%; min-height: 40px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--fu-border, #ddd6c8); background: #faf9f3; font: inherit; }
#fu-app .fu-setup-mini { display: grid; gap: 3px; }
#fu-app .fu-setup-mini span { font-size: 11px; font-weight: 700; opacity: .7; }
#fu-app .fu-row-remove { width: 32px; height: 40px; }
#fu-app .fu-row-remove:only-child { visibility: hidden; }
#fu-app .fu-setup-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#fu-app .fu-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--th-grid, #e3dccf); background: #fff; font: inherit; font-size: 13px; color: inherit; cursor: pointer; }
#fu-app .fu-chip .fu-ui-icon { width: 14px; height: 14px; }
#fu-app .fu-chip:disabled { opacity: .45; cursor: default; }
#fu-app .fu-setup-routines { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
#fu-app .fu-setup-child { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #faf7f0; }
#fu-app .fu-setup-loading { display: grid; justify-items: center; gap: 8px; padding: 40px 10px; text-align: center; }
#fu-app .fu-setup-spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--th-grid, #e6dfd3); border-top-color: var(--th-accent, #e07a5f); animation: fu-spin 1s linear infinite; }
@keyframes fu-spin { to { transform: rotate(360deg); } }
#fu-app .fu-setup-people { display: flex; flex-wrap: wrap; gap: 6px; }
#fu-app .fu-setup-stars { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
#fu-app .fu-review-row small { display: block; }
#fu-app .fu-setup-done { text-align: center; }
#fu-app .fu-setup-big { font-size: 56px; margin: 0; line-height: 1.1; }
#fu-app .fu-banner.is-setup { background: linear-gradient(120deg, #fff4e3, #f3edff); }
#fu-app .fu-pulse { position: relative; animation: fu-pulse 1.8s ease-in-out infinite; }
@keyframes fu-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--th-accent, #e07a5f) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { #fu-app .fu-pulse, #fu-app .fu-setup-spinner { animation: none; } }
@media (max-width: 640px) {
  #fu-app .fu-setup-row.is-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; }
  #fu-app .fu-setup-row.is-child > input[type="text"] { grid-column: 1 / -1; }
  #fu-app .fu-steps li { font-size: 0; gap: 0; justify-content: center; }
  #fu-app .fu-steps li span { font-size: 11px; }
}
#fu-app .fu-dialog textarea { font: inherit; line-height: 1.45; }
#fu-app .fu-setup-routines .fu-preset span:last-child { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }

/* Kom i gang: hjelperen svarte ikke */
.fu-setup-aierror{background:#fff4e5;border:1px solid #f0c48a;border-radius:14px;padding:12px 14px;margin:0 0 14px}
.fu-setup-aierror p{margin:0 0 6px}
.fu-setup-aierror .fu-btn{margin-top:4px}

/* ---------- 0.11.0: Delte lister (handleliste, pakkeliste, husk) ---------- */
#fu-app .fu-event-list { position: relative; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 5px; border-radius: 999px; background: #fffefa; border: 1px solid color-mix(in srgb, var(--fu-event-color, #7a8a83), white 35%); color: #22382e; font-size: 10px; font-weight: 800; line-height: 1.5; }
#fu-app .fu-event-list .fu-ui-icon { width: 11px; height: 11px; stroke-width: 2.2; }
#fu-app .fu-event-list.is-done { opacity: .7; }
#fu-app .fu-event-list.is-new { background: #fff0d6; border-color: #f0b468; color: #6b3f00; }
#fu-app .fu-event-list i { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #f08a24; border: 2px solid #fff; }
#fu-app .fu-banner.is-list { background: #fff6e8; border-color: #f2d3a2; color: #4a3413; }
#fu-app .fu-banner.is-list p { display: flex; align-items: center; gap: 8px; margin: 0; }
#fu-app .fu-banner.is-list p .fu-ui-icon { width: 20px; height: 20px; flex: none; color: #c86b10; }

#fu-dialog .fu-list-when { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
#fu-dialog .fu-list-when > span:last-child { display: grid; color: #5d7068; font-size: 14px; }
#fu-dialog .fu-list-when strong { color: #193b31; font-size: 16px; }
#fu-dialog .fu-list-mark { width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 30px; }
#fu-dialog .fu-list-mark img { width: 52px; height: 52px; object-fit: contain; }
#fu-dialog .fu-list-add { display: flex; gap: 8px; }
#fu-dialog .fu-list-add input { flex: 1; min-width: 0; font-size: 17px; padding: 12px 14px; border: 1.5px solid #d8d6c6; border-radius: 14px; background: #fff; }
#fu-dialog .fu-list-add input:focus { outline: none; border-color: #193b31; box-shadow: 0 0 0 3px rgba(25, 59, 49, .12); }
#fu-dialog .fu-list-add .fu-btn { flex: none; border-radius: 14px; }
#fu-dialog .fu-list-hint { margin: 6px 2px 10px; }
#fu-dialog .fu-list { list-style: none; margin: 0; padding: 0; }
#fu-dialog .fu-list-item { display: flex; align-items: center; gap: 6px; border-top: 1px solid #efede3; padding: 4px 0; }
#fu-dialog .fu-list-item:first-child { border-top: 0; }
#fu-dialog .fu-list-item label { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 46px; cursor: pointer; }
#fu-dialog .fu-list-item input { width: 26px; height: 26px; margin: 0; flex: none; accent-color: #2f7d5b; }
#fu-dialog .fu-list-item label > span { display: grid; }
#fu-dialog .fu-list-text { font-size: 17px; color: #193b31; }
#fu-dialog .fu-list-text em { font-style: normal; background: #fff0d6; color: #7a4a00; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; margin-left: 7px; vertical-align: 2px; }
#fu-dialog .fu-list-item small { color: #7a8a83; font-size: 12px; }
#fu-dialog .fu-list-item.is-done .fu-list-text { text-decoration: line-through; color: #8a958f; }
#fu-dialog .fu-list-remove { border: 0; background: none; width: 40px; height: 40px; border-radius: 10px; color: #9aa59f; display: grid; place-items: center; cursor: pointer; }
#fu-dialog .fu-list-remove:hover { background: #f3f1e8; color: #193b31; }
#fu-dialog .fu-list-remove .fu-ui-icon { width: 18px; height: 18px; }
#fu-dialog .fu-list-empty { color: #6b7b74; text-align: center; padding: 16px 8px; margin: 0; }
#fu-dialog .fu-list-donehead { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 0; color: #5d7068; font-size: 14px; font-weight: 700; }
:is(#fu-dialog, #fu-app) .fu-link-btn { border: 0; background: none; color: #5d7068; text-decoration: underline; font: inherit; font-weight: 600; cursor: pointer; padding: 6px 2px; }
#fu-dialog .fu-list-previous { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1.5px dashed #d8c8a6; background: #fffaf0; border-radius: 14px; padding: 10px 12px; margin: 0 0 6px; font: inherit; font-weight: 700; color: #4a3413; cursor: pointer; }
#fu-dialog .fu-list-previous > span { display: grid; }
#fu-dialog .fu-list-previous small { font-weight: 500; color: #7a6a4f; }
#fu-dialog .fu-list-share { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; margin-top: 14px; padding: 12px; border-radius: 14px; background: #eef5f0; color: #22382e; }
#fu-dialog .fu-list-share > .fu-ui-icon { width: 20px; height: 20px; margin-top: 2px; }
#fu-dialog .fu-list-share p { margin: 0; font-size: 14px; }
#fu-dialog .fu-list-share input { grid-column: 1 / -1; font-size: 13px; padding: 8px 10px; border: 1px solid #cfdcd3; border-radius: 10px; background: #fff; color: #22382e; }
#fu-dialog .fu-list-share > div { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) {
    #fu-dialog .fu-list-add .fu-btn span { display: none; }
    #fu-dialog .fu-list-add .fu-btn { padding-inline: 14px; }
}
#fu-app .fu-plan-once, #fu-dialog .fu-plan-once { display: flex; gap: 8px; align-items: flex-start; background: #eef5f0; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
#fu-dialog .fu-plan-once .fu-ui-icon { flex: none; width: 18px; height: 18px; color: #2f8a5b; margin-top: 1px; }
#fu-app .fu-banner.is-list p .fu-feature-art { width: 40px; height: 40px; flex: none; margin: -6px 0; }
#fu-dialog .fu-setup-aierror { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
#fu-dialog .fu-setup-aierror .fu-feature-art { width: 48px; height: 48px; grid-row: span 3; }
#fu-dialog .fu-setup-aierror > :not(img) { grid-column: 2; justify-self: start; }

/* ---------- 0.12.0: Dagsvisning (forstørrelsesglass) ---------- */
#fu-app .fu-day-zoom { margin-left: auto; width: 23px; min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--fu-line); padding: 0; color: var(--fu-muted); background: var(--fu-white); margin-top: 1px; cursor: pointer; }
#fu-app .fu-day-zoom .fu-ui-icon { width: 13px; height: 13px; stroke-width: 2.2; }
#fu-app .fu-day-zoom:hover { color: var(--th-ink, #193b31); border-color: currentColor; }
#fu-app .fu-day-zoom + .fu-add-day { margin-left: 3px; }
@media (max-width: 900px) {
    #fu-app .fu-days:not(.fu-days-month) .fu-day-zoom { min-width: 28px; width: 28px; height: 28px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day-zoom .fu-ui-icon { width: 15px; height: 15px; }
}

:is(#fu-dialog, #fu-app) .fu-dayview { display: grid; gap: 14px; align-content: start; }
:is(#fu-dialog, #fu-app) .fu-dayview-nav { display: flex; align-items: center; gap: 8px; }
:is(#fu-dialog, #fu-app) .fu-dayview-nav > span { flex: 1; text-align: center; font-weight: 800; color: #5d7068; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
:is(#fu-dialog, #fu-app) .fu-dayview-home { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-radius: 14px; background: color-mix(in srgb, var(--home, #a8c89e), white 78%); font-weight: 700; }
:is(#fu-dialog, #fu-app) .fu-dayview-home.is-change { outline: 2px dashed color-mix(in srgb, var(--home, #a8c89e), black 15%); outline-offset: -2px; }
:is(#fu-dialog, #fu-app) .fu-dayview-events { display: grid; gap: 10px; }
:is(#fu-dialog, #fu-app) .fu-dayview-event { display: grid; grid-template-columns: 76px minmax(0, 1fr) 18px; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 12px 12px 10px; border-radius: 18px;
    border: 1.5px solid color-mix(in srgb, var(--fu-event-color), white 40%); background: var(--fu-event-bg); color: #193b31; font: inherit; cursor: pointer; }
:is(#fu-dialog, #fu-app) .fu-dayview-event.is-pending { border-style: dashed; }
:is(#fu-dialog, #fu-app) .fu-dayview-event > .fu-ui-icon { width: 18px; height: 18px; color: #7a8a83; }
:is(#fu-dialog, #fu-app) .fu-dayview-mark { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 16px; background: #fffefa; font-size: 44px; line-height: 1; }
:is(#fu-dialog, #fu-app) .fu-dayview-mark img { width: 68px; height: 68px; object-fit: contain; }
:is(#fu-dialog, #fu-app) .fu-dayview-main { display: grid; gap: 3px; min-width: 0; }
:is(#fu-dialog, #fu-app) .fu-dayview-main strong { font: 800 22px/1.1 var(--fu-display, "Baloo 2", system-ui); letter-spacing: -.01em; overflow-wrap: anywhere; }
:is(#fu-dialog, #fu-app) .fu-dayview-time { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; color: color-mix(in srgb, var(--fu-event-color), black 45%); }
:is(#fu-dialog, #fu-app) .fu-dayview-time .fu-ui-icon { width: 13px; height: 13px; }
:is(#fu-dialog, #fu-app) .fu-dayview-main small { color: #4f625b; font-size: 13px; }
:is(#fu-dialog, #fu-app) .fu-dayview-people { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
:is(#fu-dialog, #fu-app) .fu-dayview-people > span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 999px; background: #fffefa; font-size: 13px; font-weight: 700; }
:is(#fu-dialog, #fu-app) .fu-dayview-people .fu-person-mark { width: 24px; height: 24px; min-width: 24px; }
:is(#fu-dialog, #fu-app) .fu-dayview-people .is-guest { outline: 1.5px dashed #a59bc4; }
:is(#fu-dialog, #fu-app) .fu-dayview-extra { display: flex; gap: 6px; margin-top: 4px; }
:is(#fu-dialog, #fu-app) .fu-dayview-extra .fu-event-list { font-size: 12px; padding: 2px 9px 2px 6px; position: relative; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: #fffefa; border: 1px solid #e1d9c4; font-weight: 800; }
:is(#fu-dialog, #fu-app) .fu-dayview-extra .fu-event-list.is-new { background: #fff0d6; border-color: #f0b468; }
:is(#fu-dialog, #fu-app) .fu-dayview-extra .fu-event-list i { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #f08a24; border: 2px solid #fff; }
:is(#fu-dialog, #fu-app) .fu-dayview-extra .fu-ui-icon, :is(#fu-dialog, #fu-app) .fu-dayview-listhint .fu-ui-icon { width: 13px; height: 13px; }
:is(#fu-dialog, #fu-app) .fu-dayview-listhint { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #5d7068; }
:is(#fu-dialog, #fu-app) .fu-dayview-empty { margin: 0; padding: 26px 10px; text-align: center; color: #6b7b74; border: 1.5px dashed #dedfd1; border-radius: 18px; }
:is(#fu-dialog, #fu-app) .fu-dayview-section h3 { display: flex; align-items: center; gap: 7px; margin: 4px 0 8px; font-size: 15px; color: #193b31; }
:is(#fu-dialog, #fu-app) .fu-dayview-section h3 .fu-ui-icon { width: 17px; height: 17px; }
:is(#fu-dialog, #fu-app) .fu-dayview-dinner { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid #e7e2d2; background: #fffefa; font: 700 17px/1.3 system-ui; color: #193b31; text-align: left; }
:is(#fu-dialog, #fu-app) .fu-dayview-dinner span { color: #8a958f; font-weight: 600; }
:is(#fu-dialog, #fu-app) .fu-dayview-dinner .fu-ui-icon { width: 16px; height: 16px; color: #8a958f; }
:is(#fu-dialog, #fu-app) .fu-dayview-star { padding: 10px 0; border-top: 1px solid #efede3; }
:is(#fu-dialog, #fu-app) .fu-dayview-star p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
:is(#fu-dialog, #fu-app) .fu-dayview-checks { display: flex; flex-wrap: wrap; gap: 8px; }
:is(#fu-dialog, #fu-app) .fu-dayview-checks .fu-check { width: auto; min-width: 74px; height: auto; padding: 6px 8px; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 700; }
:is(#fu-dialog, #fu-app) .fu-dayview-checks .fu-check svg { width: 40px; height: 40px; }

/* ---------- 0.13.0: Gjort (hentet/levert) og dagbok ---------- */
#fu-app .fu-event-done { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px 0 3px; border-radius: 999px; background: #2f7d5b; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 1.6; }
#fu-app .fu-event-done .fu-ui-icon { width: 10px; height: 10px; stroke-width: 3; }
#fu-app .fu-event-undone { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.6px solid color-mix(in srgb, var(--fu-event-color, #7a8a83), black 25%); background: #fffefa; }
#fu-app .fu-day-diary { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: #fff0d6; color: #a0590b; vertical-align: 3px; }
#fu-app .fu-day-diary .fu-ui-icon { width: 10px; height: 10px; stroke-width: 2.4; }

:is(#fu-dialog, #fu-app) .fu-dayview-row { display: grid; gap: 6px; }
:is(#fu-dialog, #fu-app) .fu-done-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 16px; border: 2px dashed #b9c9bf; background: #fffefa; color: #2b4a3d; font: inherit; text-align: left; cursor: pointer; }
:is(#fu-dialog, #fu-app) .fu-done-btn > .fu-ui-icon { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; border: 2px solid #9fb9aa; color: transparent; stroke-width: 3; transition: background .2s, color .2s; }
:is(#fu-dialog, #fu-app) .fu-done-btn > span { display: grid; font-weight: 800; font-size: 17px; }
:is(#fu-dialog, #fu-app) .fu-done-btn small { font-weight: 600; font-size: 12.5px; color: #6b7b74; }
:is(#fu-dialog, #fu-app) .fu-done-btn.is-done { border-style: solid; border-color: #2f7d5b; background: #e8f4ec; }
:is(#fu-dialog, #fu-app) .fu-done-btn.is-done > .fu-ui-icon { background: #2f7d5b; border-color: #2f7d5b; color: #fff; }
:is(#fu-dialog, #fu-app) .fu-done-btn.is-done small { color: #2f7d5b; }
:is(#fu-dialog, #fu-app) .fu-done-btn.is-future { opacity: .6; cursor: default; }
:is(#fu-dialog, #fu-app) .fu-done-btn.is-pop > .fu-ui-icon { animation: fu-done-pop .45s ease; }
@keyframes fu-done-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
#fu-dialog .fu-done-top { margin: 0 0 14px; }
#fu-dialog .fu-confirm-row { align-items: flex-start; }
#fu-dialog .fu-confirm-row > span { display: grid; }
#fu-dialog .fu-confirm-row small { color: #6b7b74; font-size: 12.5px; }

:is(#fu-dialog, #fu-app) .fu-diary h3 small { margin-left: auto; font-weight: 600; font-size: 11.5px; color: #8a958f; }
:is(#fu-dialog, #fu-app) .fu-diary-entry { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 10px 12px; margin: 0 0 8px; border-radius: 14px; background: #fff8ec; border: 1px solid #f1e2c4; }
:is(#fu-dialog, #fu-app) .fu-diary-entry p { margin: 0 0 4px; font-size: 15.5px; line-height: 1.45; color: #2a3a33; white-space: normal; }
:is(#fu-dialog, #fu-app) .fu-diary-entry small { color: #8a7a5c; font-size: 12px; }
:is(#fu-dialog, #fu-app) .fu-diary-mood { font-size: 28px; line-height: 1; text-align: center; }
:is(#fu-dialog, #fu-app) .fu-diary-mood.is-empty { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff0d6; color: #a0590b; }
:is(#fu-dialog, #fu-app) .fu-diary-mood.is-empty .fu-ui-icon { width: 16px; height: 16px; }
:is(#fu-dialog, #fu-app) .fu-diary-date { display: block; border: 0; background: none; padding: 0; margin: 0 0 4px; font: 800 14px/1.2 system-ui; color: #193b31; text-decoration: underline; cursor: pointer; }
:is(#fu-dialog, #fu-app) .fu-diary-write { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: #fffaf2; border: 1.5px solid #f1e2c4; }
:is(#fu-dialog, #fu-app) .fu-diary-moods { display: flex; gap: 6px; overflow-x: auto; }
:is(#fu-dialog, #fu-app) .fu-diary-moodbtn { flex: 1 0 auto; display: grid; justify-items: center; gap: 2px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid transparent; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
:is(#fu-dialog, #fu-app) .fu-diary-moodbtn span { font-size: 10.5px; font-weight: 700; color: #6b7b74; }
:is(#fu-dialog, #fu-app) .fu-diary-moodbtn.is-on { border-color: #e0a144; background: #fff0d6; }
:is(#fu-dialog, #fu-app) .fu-diary-write textarea { width: 100%; min-height: 84px; resize: vertical; font: inherit; font-size: 16px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #e7dcc2; background: #fff; }
:is(#fu-dialog, #fu-app) .fu-diary-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
:is(#fu-dialog, #fu-app) .fu-diary-foot [data-diary-count] { font-size: 12px; color: #8a958f; }
:is(#fu-dialog, #fu-app) .fu-diary-foot [data-diary-count].is-over { color: #b32d2e; font-weight: 800; }
:is(#fu-dialog, #fu-app) .fu-diary-back { margin-top: 6px; }
:is(#fu-dialog, #fu-app) .fu-diary-log { display: grid; gap: 4px; }
@media (max-width: 760px) {
    /* Mobil: dag og dato øverst, forstørrelsesglass og pluss under, så de ikke ligger oppå aktivitetene. */
    #fu-app .fu-days:not(.fu-days-month) .fu-day-heading { flex-wrap: wrap; justify-content: flex-start; gap: 4px; padding-right: 6px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day-heading > div { flex: 1 0 100%; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day-zoom { margin-left: 0; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day-zoom + .fu-add-day { margin: 1px 0 0; }
}

/* ---------- 0.13.0: Visning og redigering, og Dag-visning ---------- */
#fu-app .fu-mode-btn { white-space: nowrap; }
#fu-app .fu-workspace.is-show:not(.is-stars) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "board"; }
#fu-app .fu-board.is-show .fu-write-space { display: none; }
#fu-app .fu-board.is-show .fu-board-footer { display: none; }
#fu-app .fu-board.is-show .fu-event { min-height: 54px; }
#fu-app .fu-board.is-show .fu-event-icon { width: 34px; height: 34px; font-size: 26px; }
#fu-app .fu-board.is-show .fu-event-icon img { width: 34px; height: 34px; }
#fu-app .fu-board.is-show .fu-event-name { font-size: 14px; }
#fu-app .fu-event-wrap { display: grid; gap: 3px; min-width: 0; }
#fu-app .fu-done-mini { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 3px 8px; border-radius: 10px; border: 1.5px dashed #9fb9aa; background: #fffefa; color: #2b4a3d; font: 800 12px/1.1 system-ui; cursor: pointer; }
#fu-app .fu-done-mini .fu-ui-icon { width: 16px; height: 16px; padding: 2px; border-radius: 50%; border: 1.5px solid #9fb9aa; color: transparent; stroke-width: 3.2; flex: none; }
#fu-app .fu-done-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-app .fu-done-mini.is-done { border-style: solid; border-color: #2f7d5b; background: #e8f4ec; color: #22603f; }
#fu-app .fu-done-mini.is-done .fu-ui-icon { background: #2f7d5b; border-color: #2f7d5b; color: #fff; }
#fu-app .fu-dayboard .fu-dayboard-body { padding: 14px 16px 18px; max-width: 760px; width: 100%; margin: 0 auto; }
#fu-app .fu-dayboard .fu-dayboard-add { justify-self: start; }
#fu-app .fu-dayboard .fu-dayview-event { font-size: 1.02em; }
@media (min-width: 900px) {
    #fu-app .fu-dayboard .fu-dayview-events { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
@media (max-width: 760px) {
    #fu-app .fu-segment:not(.fu-view-tabs) button { padding-inline: 9px; }
    #fu-app .fu-board.is-show .fu-days:not(.fu-days-month) .fu-event { min-height: 46px; }
    #fu-app .fu-board.is-show .fu-days:not(.fu-days-month) .fu-event-icon { width: 30px; height: 30px; }
    #fu-app .fu-board.is-show .fu-days:not(.fu-days-month) .fu-event-name { font-size: 13px; }
    #fu-app .fu-dayboard .fu-dayboard-body { padding: 10px 10px 14px; }
}
/* Visning: plass til de større bildene, så de ikke ligger over klokkeslettet. */
#fu-app .fu-board.is-show .fu-days:not(.fu-days-month) .fu-event { grid-template-columns: 36px minmax(0, 1fr); column-gap: 7px; }
@media (max-width: 900px) {
    #fu-app .fu-board.is-show .fu-days:not(.fu-days-month) .fu-event { grid-template-columns: 30px minmax(0, 1fr); column-gap: 6px; }
}

/* Måned i visningsmodus: mindre bilder som får plass i ruta (0.14.1). */
#fu-app .fu-days-month .fu-event-wrap { grid-template-columns: minmax(0, 1fr); }
#fu-app .fu-days-month .fu-event-wrap > * { min-width: 0; }
#fu-app .fu-board.is-show .fu-days-month .fu-event { min-height: 0; grid-template-columns: 24px minmax(0, 1fr); column-gap: 4px; align-items: center; }
#fu-app .fu-board.is-show .fu-days-month .fu-event-icon,
#fu-app .fu-board.is-show .fu-days-month .fu-event-icon img { width: 22px; height: 22px; font-size: 17px; }
#fu-app .fu-board.is-show .fu-days-month .fu-event-name { font-size: 11.5px; }
#fu-app .fu-days-month .fu-done-mini { min-height: 24px; padding: 2px 5px; font-size: 10.5px; gap: 3px; }
#fu-app .fu-days-month .fu-done-mini .fu-ui-icon { width: 13px; height: 13px; }
@media (max-width: 760px) {
    #fu-app .fu-board.is-show .fu-days-month .fu-event { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    #fu-app .fu-board.is-show .fu-days-month .fu-event-icon,
    #fu-app .fu-board.is-show .fu-days-month .fu-event-icon img { width: 26px; height: 26px; }
    #fu-app .fu-days-month .fu-done-mini { padding: 2px; min-height: 22px; }
    #fu-app .fu-days-month .fu-done-mini span { display: none; }
    #fu-app .fu-days-month .fu-done-mini .fu-ui-icon { width: 15px; height: 15px; }
}

/* ---------- 0.14.0: Mat hjemme ---------- */
#fu-app .fu-pantry-btn { display: inline-flex; align-items: center; gap: 6px; }
#fu-app .fu-pantry-btn-art { width: 22px; height: 22px; object-fit: contain; margin: -4px 0; }
#fu-app .fu-banner.is-pantry { background: #eef6f3; border-color: #c9e0d6; color: #1f3b31; display: grid; gap: 8px; }
#fu-app .fu-banner.is-pantry p { display: flex; align-items: center; gap: 8px; margin: 0; }
#fu-app .fu-banner.is-pantry .fu-feature-art { width: 34px; height: 34px; flex: none; }
#fu-app .fu-pantry-used { display: flex; flex-wrap: wrap; gap: 6px; }
#fu-dialog .fu-chip { border: 1.5px solid #d6d9cc; background: #fff; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; font-weight: 700; color: #36463f; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }

#fu-dialog .fu-pantry { display: grid; gap: 12px; align-content: start; }
#fu-dialog .fu-pantry-list { list-style: none; margin: 0; padding: 0; }
#fu-dialog .fu-pantry-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; border-top: 1px solid #efede3; padding: 3px 0; }
#fu-dialog .fu-pantry-item:first-child { border-top: 0; }
#fu-dialog .fu-pantry-name { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; padding: 0 2px; font: inherit; font-size: 17px; color: #193b31; text-align: left; cursor: pointer; }
#fu-dialog .fu-pantry-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 8px; }
#fu-dialog .fu-chip-art, #fu-app .fu-dayboard .fu-chip-art { width: 18px; height: 18px; object-fit: contain; }
#fu-dialog .fu-pantry-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: #fff4e5; }
#fu-dialog .fu-pantry-undo > span { flex: 1 0 auto; }
#fu-dialog .fu-pantry-first { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 4px; }
#fu-dialog .fu-pantry-first .fu-pantry-first-art { width: 72px; height: 72px; display: inline-block; margin: 0 4px; }
#fu-dialog .fu-pantry-first p { margin: 0; color: #4f625b; }
#fu-dialog .fu-pantry-tell { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1.5px dashed #c6b8e6; background: #f7f3ff; border-radius: 16px; padding: 12px 14px; font: inherit; color: #3b2a6b; cursor: pointer; }
#fu-dialog .fu-pantry-tell.is-first { border-style: solid; background: #7047d7; color: #fff; }
#fu-dialog .fu-pantry-tell > .fu-ui-icon { width: 24px; height: 24px; flex: none; }
#fu-dialog .fu-pantry-tell > span { display: grid; }
#fu-dialog .fu-pantry-tell small { font-size: 12.5px; opacity: .85; }
#fu-dialog .fu-sort-list { list-style: none; margin: 0; padding: 0; }
#fu-dialog .fu-sort-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #efede3; padding: 6px 0; }
#fu-dialog .fu-sort-name { display: flex; align-items: center; gap: 10px; font-size: 16px; }
#fu-dialog .fu-sort-name input { width: 22px; height: 22px; accent-color: #2f7d5b; }
#fu-dialog .fu-sort-places { display: flex; gap: 4px; }
#fu-dialog .fu-sort-place { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 2px solid transparent; background: #f6f4ee; cursor: pointer; opacity: .45; }
#fu-dialog .fu-sort-place input { position: absolute; opacity: 0; }
#fu-dialog .fu-sort-place:has(input:checked) { opacity: 1; border-color: #2c5141; background: #f0f6f2; }
#fu-dialog .fu-sort-art { width: 32px; height: 32px; object-fit: contain; }
#fu-dialog .fu-food-sum { margin: 0 0 8px; font-size: 16px; }
#fu-dialog .fu-food-list { list-style: none; margin: 0 0 10px; padding: 0; }
#fu-dialog .fu-food-row { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid #efede3; }
#fu-dialog .fu-food-row:first-child { border-top: 0; }
#fu-dialog .fu-food-row > span, #fu-dialog .fu-food-row label > span { display: grid; flex: 1; }
#fu-dialog .fu-food-row small { color: #6b7b74; font-size: 12.5px; }
#fu-dialog .fu-food-row.is-have > .fu-ui-icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #2f7d5b; color: #fff; stroke-width: 3; flex: none; }
#fu-dialog .fu-food-row.is-have strong { color: #2f5a46; }
#fu-dialog .fu-food-row label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
#fu-dialog .fu-food-row label input { width: 26px; height: 26px; accent-color: #c86b10; margin: 0; }
#fu-dialog .fu-food-row.is-missing small { color: #a0590b; font-weight: 700; }
#fu-dialog .fu-food-art { width: 34px; height: 34px; object-fit: contain; flex: none; }
#fu-dialog .fu-food-edit { margin: 4px 0 8px; }
#fu-dialog .fu-food-edit summary { cursor: pointer; font-weight: 700; color: #5d7068; font-size: 14px; }
#fu-dialog .fu-food-edit textarea { width: 100%; margin: 8px 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #ddd8c8; }
#fu-dialog .fu-dinner-food { margin-top: 12px; }
#fu-dialog .fu-dayview-food, #fu-app .fu-dayboard .fu-dayview-food { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
#fu-dialog .fu-pantry-first-row { display: flex; justify-content: center; gap: 10px; }
#fu-dialog .fu-pantry-first .fu-pantry-first-art { width: 64px; height: 64px; margin: 0; }

/* ---------- 0.14.1: Hva kan vi lage? ---------- */
#fu-dialog .fu-cook-open { border-style: solid; border-color: #e8c98f; background: #fff7e6; color: #5a3a08; }
#fu-dialog .fu-cook-open .fu-food-art { width: 40px; height: 40px; }
#fu-dialog .fu-cook-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#fu-dialog .fu-cook-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1.5px solid #ece7da; background: #fffefa; }
#fu-dialog .fu-cook-card.is-ai { border-color: #d9cdf3; background: #faf7ff; }
#fu-dialog .fu-cook-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
#fu-dialog .fu-cook-text strong { font-size: 16.5px; color: #193b31; }
#fu-dialog .fu-cook-text small { color: #6b7b74; font-size: 12.5px; line-height: 1.35; }
#fu-dialog .fu-cook-text small b { color: #2f7d5b; }
#fu-dialog .fu-cook-how { font-size: 13px; line-height: 1.4; color: #44385e; }
#fu-dialog .fu-cook-how em { font-style: normal; font-weight: 800; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #ece5fb; color: #4b2fa3; margin-right: 2px; }
#fu-dialog .fu-cook-how.is-big { font-size: 15px; margin: 0 0 6px; }
#fu-dialog .fu-cook-card .fu-btn { flex: none; }
#fu-dialog .fu-cook-ai { display: flex; gap: 8px; }
#fu-dialog .fu-cook-ai input { flex: 1; min-width: 0; font-size: 16px; padding: 11px 13px; border: 1.5px solid #d8d6c6; border-radius: 14px; background: #fff; }
#fu-dialog .fu-cook-ai .fu-btn { border-radius: 14px; white-space: nowrap; }
#fu-dialog .fu-cook-ai .fu-btn[disabled] { opacity: .7; cursor: progress; }
#fu-dialog .fu-cook-days { display: flex; flex-wrap: wrap; gap: 6px; }
#fu-dialog .fu-cook-day { position: relative; cursor: pointer; }
#fu-dialog .fu-cook-day input { position: absolute; opacity: 0; }
#fu-dialog .fu-cook-day > span { display: grid; min-width: 74px; padding: 7px 11px; border-radius: 14px; border: 2px solid #ece7da; background: #fffefa; text-align: center; }
#fu-dialog .fu-cook-day b { font-size: 14px; }
#fu-dialog .fu-cook-day small { font-size: 11px; color: #8a6a3a; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-dialog .fu-cook-day input:checked + span { border-color: #2c5141; background: #f0f6f2; }
#fu-dialog .fu-cook-day input:focus-visible + span { outline: 3px solid #7aa6ff; outline-offset: 2px; }
@media (max-width: 520px) {
    #fu-dialog .fu-cook-ai { flex-direction: column; }
    #fu-dialog .fu-cook-card { align-items: flex-start; }
}

#fu-dialog .fu-list-shortcut { color: var(--fu-muted); }
#fu-dialog .fu-list-shortcut summary { cursor: pointer; padding: 5px 0; font-weight: 700; }
#fu-dialog .fu-list-shortcut p { margin-block: 4px 8px; }
#fu-dialog .fu-list-shortcut h3 { margin: 12px 0 3px; font-size: 1rem; color: var(--fu-ink); }
#fu-dialog .fu-list-shortcut ol { padding-inline-start: 1.5em; margin-block: 0 8px; }
#fu-dialog .fu-list-shortcut li + li { margin-top: 4px; }
#fu-dialog .fu-list-shortcut-actions { display: flex; flex-wrap: wrap; gap: 6px; }
#fu-dialog .fu-list-shortcut-status:empty { margin: 0; }
#fu-dialog .fu-list-shortcut input:not([hidden]) {
    display: block; width: 100%; min-width: 0; margin-bottom: 7px; padding: 8px 10px;
    border: 1px solid var(--fu-border); border-radius: 8px; background: var(--fu-white);
    color: var(--fu-ink); font-size: 16px;
}

/* Profilknapp og innlogging i appen */
#fu-app .fu-profile-btn { width: 40px; height: 40px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: none; cursor: pointer; flex: 0 0 auto;
    box-shadow: 0 0 0 1px var(--fu-border), 0 2px 6px rgb(30 20 60 / .12); transition: transform .15s ease, box-shadow .15s ease; }
#fu-app .fu-profile-btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--th-accent, #7047d7), 0 4px 10px rgb(30 20 60 / .16); }
#fu-app .fu-profile-btn:focus-visible { outline: 3px solid var(--th-accent, #7047d7); outline-offset: 2px; }
#fu-app .fu-profile-btn .fu-avatar { display: block; width: 100%; height: 100%; }
#fu-app .fu-login-btn { white-space: nowrap; }
#fu-app .fu-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#fu-app .fu-set-signin { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--th-soft, #f3eeff); font-size: 13px; }
#fu-app .fu-set-signin > .fu-ui-icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--th-accent, #7047d7); }
#fu-app .fu-set-signin span { flex: 1 1 auto; }
#fu-app .fu-auth { display: grid; gap: 14px; max-width: 440px; margin-inline: auto; width: 100%; }
#fu-app .fu-auth-lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--th-ink, #153e47); }
#fu-app .fu-vipps { position: relative; display: grid; min-height: 48px; cursor: pointer; }
#fu-app .fu-vipps.is-busy { opacity: .6; pointer-events: none; }
#fu-app .fu-vipps vipps-mobilepay-button { display: block; width: 100%; }
#fu-app .fu-vipps vipps-mobilepay-button:not(:defined) { display: none; }
#fu-app .fu-vipps vipps-mobilepay-button:defined + .fu-vipps-btn { display: none; }
#fu-app .fu-vipps-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; border: 0; border-radius: 999px;
    background: #ff5b24; color: #fff; font: 600 16px/1 system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
#fu-app .fu-vipps-btn b { font-weight: 800; letter-spacing: -.01em; }
#fu-app .fu-vipps-btn:hover { background: #ec4e19; }
#fu-app .fu-vipps-btn:focus-visible { outline: 3px solid #ff5b24; outline-offset: 3px; }
#fu-app .fu-auth-or { display: flex; align-items: center; gap: 10px; margin: 2px 0 -2px; color: var(--fu-muted); font-size: 12.5px; }
#fu-app .fu-auth-or::before, #fu-app .fu-auth-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--fu-border); }
#fu-app .fu-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--th-soft, #f3eeff); }
#fu-app .fu-auth-tabs button { min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--fu-muted); font: 750 14px/1 inherit; cursor: pointer; }
#fu-app .fu-auth-tabs button[aria-pressed="true"] { background: #fff; color: var(--th-ink, #153e47); box-shadow: 0 1px 3px rgb(30 20 60 / .14); }
#fu-app .fu-auth-form { display: grid; gap: 12px; }
#fu-app .fu-auth-form .fu-field input { min-height: 46px; }
#fu-app .fu-auth-submit { width: 100%; min-height: 48px; justify-content: center; font-size: 15.5px; }
#fu-app .fu-auth-form > .fu-btn-quiet { justify-self: center; }
#fu-app .fu-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#fu-app .fu-auth-foot { margin: 2px 0 0; text-align: center; }
#fu-app .fu-auth-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#fu-app .fu-auth-sent { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px; border-radius: 14px; background: var(--th-soft, #f3eeff); font-size: 14px; line-height: 1.45; }
#fu-app .fu-auth-sent .fu-ui-icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--th-accent, #7047d7); margin-top: 1px; }
@media (max-width: 760px) {
    #fu-app .fu-profile-btn { width: 35px; height: 35px; }
}
@media (max-width: 420px) {
    #fu-app .fu-top-actions .fu-btn[data-action="print"] span, #fu-app .fu-top-actions .fu-login-btn span { font-size: 12px; }
}

/* Stjerner: underfaner, hele familien og rundt i huset */
#fu-app .fu-star-tabs { display: flex; gap: 4px; padding: 10px 15px 0; border-bottom: 1px solid var(--fu-line); overflow-x: auto; scrollbar-width: none; }
#fu-app .fu-star-tabs button { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--fu-muted); font: 750 14px/1 inherit; cursor: pointer; }
#fu-app .fu-star-tabs button .fu-ui-icon { width: 16px; height: 16px; }
#fu-app .fu-star-tabs button[aria-selected="true"] { color: var(--th-ink, #153e47); border-bottom-color: var(--th-accent, #7047d7); }
#fu-app .fu-star-tabs button[aria-selected="true"] .fu-ui-icon { color: var(--th-accent, #7047d7); }
#fu-app .fu-fam { display: grid; gap: 14px; padding: 15px; align-content: start; }
#fu-app .fu-fam-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 18px; border-radius: 18px; background: var(--th-soft, #f3eeff); }
#fu-app .fu-fam-total { display: grid; }
#fu-app .fu-fam-total b { font: 800 44px/0.95 var(--fu-display); color: var(--th-ink, #153e47); }
#fu-app .fu-fam-total span { font-size: 13px; color: var(--fu-muted); font-weight: 700; }
#fu-app .fu-fam-progress { flex: 1 1 260px; display: grid; gap: 8px; }
#fu-app .fu-fam-progress p { margin: 0; font-size: 14px; color: var(--th-ink, #153e47); }
#fu-app .fu-fam-table { display: grid; border: 1px solid var(--fu-line); border-radius: 14px; overflow: hidden; background: var(--fu-white); }
#fu-app .fu-fam-row { display: grid; grid-template-columns: minmax(110px, 1.6fr) repeat(7, minmax(0, 1fr)) minmax(54px, .9fr); align-items: center; border-top: 1px solid var(--fu-line); min-height: 48px; }
#fu-app .fu-fam-row.is-head { border-top: 0; min-height: 40px; background: #fbfaf5; font-size: 12px; font-weight: 800; color: var(--fu-muted); text-align: center; }
#fu-app .fu-fam-row.is-head small { display: block; font-weight: 600; font-size: 11px; }
#fu-app .fu-fam-row.is-head .is-today { color: var(--th-accent, #7047d7); }
#fu-app .fu-fam-row.is-total { background: #fbfaf5; }
#fu-app .fu-fam-who { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-width: 0; }
#fu-app .fu-fam-who b { font: 800 15px/1.1 var(--fu-display); color: var(--th-ink, #153e47); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-app .fu-fam-cell { display: flex; align-items: center; justify-content: center; gap: 2px; height: 100%; font-weight: 800; color: var(--th-ink, #153e47); }
#fu-app .fu-fam-cell.is-today { background: color-mix(in srgb, var(--th-accent, #7047d7), white 92%); }
#fu-app .fu-fam-cell .fu-ui-icon { width: 15px; height: 15px; color: #e8a417; fill: #ffd46a; }
#fu-app .fu-fam-cell i { color: #c9c3b4; font-style: normal; }
#fu-app .fu-fam-cell.is-best b { padding: 2px 8px; border-radius: 999px; background: #ffd46a; }
#fu-app .fu-fam-sum { text-align: center; font: 800 17px/1 var(--fu-display); color: var(--th-ink, #153e47); }
#fu-app .fu-fam-sum small { font-size: 12px; color: var(--fu-muted); }
#fu-app .fu-fam-note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--fu-muted); }
#fu-app .fu-fam-note .fu-ui-icon { width: 15px; height: 15px; color: #e8a417; }
#fu-app .fu-places { display: grid; gap: 14px; padding: 15px; align-content: start; }
#fu-app .fu-places-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
#fu-app .fu-places-intro p { margin: 0; flex: 1 1 320px; font-size: 14px; color: var(--fu-muted); line-height: 1.45; }
#fu-app .fu-places-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#fu-app .fu-place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; align-items: start; }
#fu-app .fu-place-card { display: grid; gap: 10px; padding: 13px 14px; border: 1px solid var(--fu-line); border-radius: 18px; background: var(--fu-white); }
#fu-app .fu-place-card.is-kitchen { background: #fcfbf6; border-style: dashed; }
#fu-app .fu-place-card header { display: flex; align-items: center; gap: 10px; }
#fu-app .fu-place-card header > div { flex: 1; min-width: 0; }
#fu-app .fu-place-card h3 { margin: 0; font: 800 19px/1.1 var(--fu-display); color: var(--th-ink, #153e47); }
#fu-app .fu-place-card header p { margin: 2px 0 0; font-size: 12.5px; color: var(--fu-muted); }
#fu-app .fu-place-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; background: var(--th-soft, #f3eeff); }
#fu-app .fu-place-icon svg { width: 34px; height: 34px; }
#fu-app .fu-place-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
#fu-app .fu-place-routine { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--fu-line); }
#fu-app .fu-place-routine:first-child { border-top: 0; }
#fu-app .fu-place-routine .fu-routine-item { min-width: 0; }
#fu-app .fu-place-checks { display: flex; gap: 6px; }
#fu-app .fu-place-checks.is-off { font-size: 12px; color: var(--fu-muted); }
#fu-app .fu-place-check { display: grid; justify-items: center; gap: 1px; }
#fu-app .fu-place-check .fu-check { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fu-person-color, #ccc), white 30%); }
#fu-app .fu-place-check small { font-size: 10.5px; font-weight: 700; color: var(--fu-muted); max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fu-app .fu-package-list { display: grid; gap: 10px; }
#fu-app .fu-package { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--fu-line); border-radius: 14px; cursor: pointer; }
#fu-app .fu-package:has(input:checked) { border-color: var(--th-accent, #7047d7); background: color-mix(in srgb, var(--th-accent, #7047d7), white 94%); }
#fu-app .fu-package input { margin-top: 3px; accent-color: var(--th-accent, #7047d7); width: 18px; height: 18px; }
#fu-app .fu-package-body { display: grid; gap: 4px; }
#fu-app .fu-package-body b { font: 800 16px/1.1 var(--fu-display); color: var(--th-ink, #153e47); }
#fu-app .fu-package-body small { color: var(--fu-muted); font-size: 12.5px; }
#fu-app .fu-package-items { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; }
#fu-app .fu-package-items span { display: inline-flex; align-items: center; gap: 4px; }
#fu-app .fu-package-items svg { width: 20px; height: 20px; }
#fu-app .fu-package-items em { font-style: normal; color: var(--fu-muted); }
#fu-app .fu-routine-icon .fu-dress { width: 100%; height: 100%; }
#fu-app .fu-routine-icon .fu-dress.is-art { width: 64px; height: 120px; }
#fu-app .fu-dress-pick { border: 1px solid var(--fu-line); border-radius: 12px; padding: 10px 12px; }
#fu-app .fu-dress-pick summary { display: flex; align-items: center; gap: 6px; font-weight: 750; cursor: pointer; }
#fu-app .fu-dress-pick summary .fu-ui-icon { width: 15px; height: 15px; color: var(--th-accent, #7047d7); }
#fu-app .fu-dress-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; margin-top: 6px; }
@media (max-width: 760px) {
    #fu-app .fu-star-tabs { padding: 6px 8px 0; }
    #fu-app .fu-star-tabs button { padding: 0 10px; font-size: 13px; }
    #fu-app .fu-fam, #fu-app .fu-places { padding: 10px; }
    #fu-app .fu-fam-row { grid-template-columns: 74px repeat(7, minmax(0, 1fr)) 44px; min-height: 44px; }
    #fu-app .fu-fam-who { padding: 0 6px; gap: 4px; }
    #fu-app .fu-fam-who b { font-size: 12.5px; }
    #fu-app .fu-fam-who .fu-person-mark, #fu-app .fu-fam-who .fu-person-photo { display: none; }
    #fu-app .fu-fam-cell { font-size: 12.5px; flex-direction: column; gap: 0; }
    #fu-app .fu-fam-cell .fu-ui-icon { width: 12px; height: 12px; }
}

/* ---------- Store ikoner og bildevisning ---------- */
#fu-app .fu-workspace.is-big { grid-template-columns: minmax(0, 1fr); display: block; }
#fu-app .fu-pic { overflow: hidden; }
#fu-app .fu-pic-body { padding: 18px clamp(12px, 3vw, 30px) 28px; }
#fu-app .fu-pic-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
#fu-app .fu-pic-arrow { width: 64px; height: 64px; border-radius: 22px; border: 2px solid var(--fu-border); background: var(--fu-white); color: var(--th-ink, var(--fu-ink)); display: grid; place-items: center; cursor: pointer; }
#fu-app .fu-pic-arrow .fu-ui-icon { width: 32px; height: 32px; stroke-width: 2.4; }
#fu-app .fu-pic-arrow:hover { border-color: var(--th-accent, #79c8b8); }
#fu-app .fu-pic-title { text-align: center; min-width: 0; }
#fu-app .fu-pic-title h2 { margin: 0; font-family: var(--fu-display); font-weight: 800; font-size: clamp(34px, 6vw, 58px); line-height: 1; letter-spacing: -.03em; color: var(--th-ink, var(--fu-ink)); }
#fu-app .fu-pic-title p { margin: 6px 0 0; font-size: 17px; font-weight: 700; color: var(--th-muted, #6b6f63); }
#fu-app .fu-pic-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin: 16px 0 4px; }
#fu-app .fu-pic-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--fu-line); }
#fu-app .fu-pic-switch button { border: 0; background: none; padding: 9px 20px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 16px; color: var(--fu-ink); cursor: pointer; }
#fu-app .fu-pic-switch button[aria-pressed="true"] { background: var(--fu-white); box-shadow: 0 1px 4px #0002; }
#fu-app .fu-pic-who { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#fu-app .fu-pic-who button { display: inline-flex; align-items: center; gap: 7px; border: 2px solid var(--fu-border); background: var(--fu-white); border-radius: 999px; padding: 4px 14px 4px 4px; font: inherit; font-weight: 700; font-size: 15px; color: var(--fu-ink); cursor: pointer; }
#fu-app .fu-pic-who button[aria-pressed="true"] { border-color: var(--fu-ink); background: #fff8e6; }
#fu-app .fu-pic-who .fu-person-mark { width: 34px; height: 34px; }
#fu-app .fu-pic-all { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fu-line); }
#fu-app .fu-pic-all .fu-ui-icon { width: 20px; height: 20px; }

#fu-app .fu-pic-bands { display: grid; gap: 14px; margin-top: 16px; }
#fu-app .fu-pic-band { border-radius: 26px; padding: 14px 16px 18px; background: #fffdf7; border: 2px solid var(--fu-line); }
#fu-app .fu-pic-band.is-morning { background: #fff6e4; }
#fu-app .fu-pic-band.is-afternoon { background: #f1f8ef; }
#fu-app .fu-pic-band.is-evening { background: #f1eefb; }
#fu-app .fu-pic-band.is-now { border-color: var(--fu-ink); box-shadow: 0 0 0 4px #ffd36a66; }
#fu-app .fu-pic-band.is-past { opacity: .55; }
#fu-app .fu-pic-band h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--fu-display); font-weight: 800; font-size: 24px; color: var(--fu-ink); }
#fu-app .fu-pic-band h3 svg { width: 42px; height: 42px; flex: none; }
#fu-app .fu-pic-band h3 b { font-family: inherit; font-size: 14px; background: var(--fu-ink); color: #fff; padding: 3px 11px; border-radius: 999px; letter-spacing: .02em; }
#fu-app .fu-pic-free { margin: 0; font-weight: 700; color: var(--th-muted, #7a7d70); font-size: 17px; }
#fu-app .fu-pic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }

#fu-app .fu-pic-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 14px 10px 12px; border-radius: 24px;
    border: 3px solid var(--fu-event-color); background: var(--fu-white); cursor: pointer; font: inherit; color: var(--fu-ink); text-align: center;
    box-shadow: 0 4px 0 color-mix(in srgb, var(--fu-event-color) 55%, #0000); transition: transform .12s; }
#fu-app .fu-pic-card:hover { transform: translateY(-2px); }
#fu-app .fu-pic-card:active { transform: translateY(1px); }
#fu-app .fu-pic-mark { width: 128px; height: 128px; display: grid; place-items: center; font-size: 84px; line-height: 1; }
#fu-app .fu-pic-mark img { width: 100%; height: 100%; object-fit: contain; }
#fu-app .fu-pic-mark.fu-activity-photo img { border-radius: 18px; object-fit: cover; }
#fu-app .fu-pic-label { display: grid; gap: 2px; font-family: var(--fu-display); font-weight: 800; font-size: 20px; line-height: 1.1; overflow-wrap: anywhere; }
#fu-app .fu-pic-label small { font-family: var(--fu-body, inherit); font-weight: 700; font-size: 14px; color: var(--th-muted, #6b6f63); }
#fu-app .fu-pic-people { display: flex; justify-content: center; gap: 4px; }
#fu-app .fu-pic-people .fu-person-mark { width: 32px; height: 32px; }
#fu-app .fu-pic-card.is-past { opacity: .5; filter: saturate(.6); }
#fu-app .fu-pic-card.is-pending { border-style: dashed; }
#fu-app .fu-pic-check { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: #3f9c6d; color: #fff; display: grid; place-items: center; }
#fu-app .fu-pic-check .fu-ui-icon { width: 22px; height: 22px; stroke-width: 3; }

/* Bare bilder: teksten er der for skjermlesere, men vises ikke. */
#fu-app .fu-pic.is-pictures .fu-pic-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#fu-app .fu-pic.is-pictures .fu-pic-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
#fu-app .fu-pic.is-pictures .fu-pic-mark { width: 150px; height: 150px; font-size: 100px; }
#fu-app .fu-pic.is-pictures .fu-pic-title p { font-size: 15px; }

#fu-app .fu-pic-empty { display: grid; justify-items: center; gap: 8px; padding: 50px 10px; font-size: 18px; font-weight: 700; color: var(--th-muted, #6b6f63); }
#fu-app .fu-pic-empty svg { width: 90px; height: 90px; }

/* Uke med store bilder */
#fu-app .fu-pic-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
#fu-app .fu-pic-wday { border-radius: 22px; background: #fffdf7; border: 2px solid var(--fu-line); padding: 8px; display: grid; align-content: start; gap: 8px; min-width: 0; }
#fu-app .fu-pic-wday.is-today { border-color: var(--fu-ink); box-shadow: 0 0 0 4px #ffd36a66; }
#fu-app .fu-pic-wday.is-past { opacity: .5; filter: saturate(.7); }
#fu-app .fu-pic-whead { display: grid; justify-items: center; border: 0; background: none; cursor: pointer; font: inherit; color: var(--fu-ink); padding: 2px; }
#fu-app .fu-pic-whead span { font-weight: 800; font-size: 15px; text-transform: capitalize; }
#fu-app .fu-pic-whead b { font-family: var(--fu-display); font-size: 30px; line-height: 1; }
#fu-app .fu-pic-wday.is-today .fu-pic-whead b { background: var(--fu-ink); color: #fff; border-radius: 999px; min-width: 44px; padding: 4px 6px 2px; }
#fu-app .fu-pic-wcards { display: grid; gap: 8px; }
#fu-app .fu-pic-card.is-small { padding: 8px 4px 8px; border-radius: 18px; gap: 4px; border-width: 2.5px; }
#fu-app .fu-pic-card.is-small .fu-pic-mark { width: min(92px, 100%); height: auto; aspect-ratio: 1; font-size: 56px; }
#fu-app .fu-pic-card.is-small .fu-pic-label { font-size: 14px; }
#fu-app .fu-pic-card.is-small .fu-pic-people .fu-person-mark { width: 22px; height: 22px; }
#fu-app .fu-pic-card.is-small .fu-pic-check { width: 24px; height: 24px; top: 4px; right: 4px; }
#fu-app .fu-pic-more { border: 2px dashed var(--fu-border); background: none; border-radius: 16px; padding: 10px; font: inherit; font-weight: 800; font-size: 20px; color: var(--fu-ink); cursor: pointer; }
@media (max-width: 860px) {
    #fu-app .fu-pic-week { grid-template-columns: 1fr; }
    #fu-app .fu-pic-wday { grid-template-columns: 64px 1fr; align-items: center; }
    #fu-app .fu-pic-wcards { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
    #fu-app .fu-pic-wday:not(:has(.fu-pic-card)) .fu-pic-wcards { display: none; }
}
@media (max-width: 560px) {
    #fu-app .fu-pic-wday { grid-template-columns: 52px 1fr; padding: 6px; border-radius: 18px; }
    #fu-app .fu-pic-wcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    #fu-app .fu-pic-card.is-small .fu-pic-label { font-size: 12px; }
    #fu-app .fu-pic-whead b { font-size: 26px; }
}
@media (max-width: 560px) {
    #fu-app .fu-pic-body { padding: 12px 10px 20px; }
    #fu-app .fu-pic-arrow { width: 52px; height: 52px; border-radius: 18px; }
    #fu-app .fu-pic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #fu-app .fu-pic.is-pictures .fu-pic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #fu-app .fu-pic-mark, #fu-app .fu-pic.is-pictures .fu-pic-mark { width: 100%; max-width: 132px; height: auto; aspect-ratio: 1; }
    #fu-app .fu-pic-label { font-size: 17px; }
    #fu-app .fu-pic-band { padding: 12px 10px 14px; border-radius: 22px; }
    #fu-app .fu-pic-who button > span:last-child { display: none; }
    #fu-app .fu-pic-who button { padding: 4px; }
}

/* Ett bilde i stort */
#fu-dialog .fu-pic-zoom { display: grid; justify-items: center; text-align: center; gap: 10px; }
#fu-dialog .fu-pic-zoom-mark { width: min(260px, 70vw); aspect-ratio: 1; display: grid; place-items: center; font-size: 160px; border-radius: 32px; background: color-mix(in srgb, var(--fu-event-color) 14%, #fffefa); border: 3px solid var(--fu-event-color); }
#fu-dialog .fu-pic-zoom-mark img { width: 88%; height: 88%; object-fit: contain; }
#fu-dialog .fu-pic-zoom-mark.fu-activity-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
#fu-dialog .fu-pic-zoom-when { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 20px; font-weight: 800; }
#fu-dialog .fu-pic-zoom-when svg { width: 36px; height: 36px; }
#fu-dialog .fu-pic-zoom-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 0; font-weight: 700; font-size: 17px; }
#fu-dialog .fu-pic-zoom-people span { display: inline-flex; align-items: center; gap: 6px; }
#fu-dialog .fu-pic-zoom-people .fu-person-mark { width: 36px; height: 36px; }
#fu-dialog .fu-pic-zoom .fu-dialog-footer { width: 100%; }

/* Velg visning */
#fu-dialog .fu-size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 16px; }
#fu-dialog .fu-size-card { position: relative; display: grid; gap: 8px; padding: 10px; border: 2px solid #e2dfd2; border-radius: 18px; background: #fffefa; cursor: pointer; }
#fu-dialog .fu-size-card:has(input:checked) { border-color: #233d34; box-shadow: 0 0 0 3px #ffd36a88; }
#fu-dialog .fu-size-card input { position: absolute; opacity: 0; }
#fu-dialog .fu-size-card:has(input:focus-visible) { outline: 2px solid #233d34; outline-offset: 2px; }
#fu-dialog .fu-size-text b { display: block; font-size: 15px; }
#fu-dialog .fu-size-text small { display: block; font-size: 12.5px; line-height: 1.3; color: #6b6f63; margin-top: 2px; }
#fu-dialog .fu-size-preview { height: 74px; border-radius: 12px; background: #f4f1e7; padding: 8px; display: grid; gap: 5px; align-content: start; }
#fu-dialog .fu-size-preview i { display: block; border-radius: 6px; }
#fu-dialog .fu-size-preview.is-standard i.l { height: 9px; background: #c9d8ee; }
#fu-dialog .fu-size-preview.is-standard i.s { width: 60%; background: #f3c7b8; }
#fu-dialog .fu-size-preview.is-large { grid-template-columns: 1fr 1fr; }
#fu-dialog .fu-size-preview.is-large i.b { height: 34px; background: #ffd889; border: 2px solid #233d34; border-radius: 10px; }
#fu-dialog .fu-size-preview.is-large i.t { height: 7px; width: 80%; justify-self: center; background: #8a8c80; }
#fu-dialog .fu-size-preview.is-pictures { grid-template-columns: 1fr 1fr; align-content: center; }
#fu-dialog .fu-size-preview.is-pictures i.x { height: 52px; background: #b6e2d6; border: 2px solid #233d34; border-radius: 12px; }
@media (max-width: 560px) {
    #fu-dialog .fu-size-grid { grid-template-columns: 1fr; }
    #fu-dialog .fu-size-card { grid-template-columns: 92px 1fr; align-items: center; }
    #fu-dialog .fu-size-preview { height: 64px; }
}

/* Låst skjerm */
#fu-app.fu-is-locked .fu-heading-locked { margin-bottom: 4px; }
#fu-app .fu-lock-btn { position: relative; gap: 8px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; overflow: hidden; }
#fu-app .fu-lock-btn .fu-lock-ring { position: absolute; inset: 0; background: #ffd36a; transform: scaleX(0); transform-origin: left; z-index: 0; }
#fu-app .fu-lock-btn.is-holding .fu-lock-ring { transform: scaleX(1); transition: transform 2s linear; }
#fu-app .fu-lock-btn > :not(.fu-lock-ring) { position: relative; z-index: 1; }
@media (max-width: 560px) { #fu-app .fu-lock-btn > span:last-child { display: none; } }
#fu-app .fu-pic-band.is-past .fu-pic-card.is-past { opacity: 1; filter: none; }

/* Velg påkledningsfigur for hvert barn */
#fu-app .fu-figure-pick { margin-top: 12px; display: grid; gap: 8px; }
#fu-app .fu-figure-pick > p { margin: 0; }
#fu-app .fu-figure-row { border: 0; margin: 0; padding: 0; min-width: 0; }
#fu-app .fu-figure-row legend { float: left; width: 100%; display: flex; align-items: center; gap: 6px; font-weight: 750; font-size: 14px; padding: 0; margin-bottom: 4px; }
#fu-app .fu-figure-row legend .fu-person-mark { width: 22px; height: 22px; }
#fu-app .fu-figure-options { clear: both; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
#fu-app .fu-figure-choice { position: relative; display: grid; place-items: center; border: 2px solid var(--fu-line); border-radius: 12px; background: #fffefa; cursor: pointer; padding: 4px; }
#fu-app .fu-figure-choice img { display: block; height: 76px; width: 100%; object-fit: contain; }
#fu-app .fu-figure-choice input { position: absolute; opacity: 0; }
#fu-app .fu-figure-choice:has(input:checked) { border-color: var(--fu-ink); box-shadow: 0 0 0 3px #ffd36a88; }
#fu-app .fu-figure-choice:has(input:focus-visible) { outline: 2px solid var(--fu-ink); outline-offset: 2px; }
@media (max-width: 560px) { #fu-app .fu-figure-choice img { height: 56px; } }

/* Rundt i huset: trykk på stedet, velg det som skal henge der */
#fu-app .fu-place-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
#fu-app .fu-place-open > span:last-child { min-width: 0; }
#fu-app .fu-place-open p { margin: 2px 0 0; font-size: 12.5px; color: var(--fu-muted); }
#fu-app .fu-place-open:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
#fu-app .fu-place-open:focus-visible { outline: 2px solid var(--fu-ink); outline-offset: 3px; }
#fu-app .fu-place-fill { justify-self: start; }
#fu-app .fu-place-card.is-empty .fu-place-fill { justify-self: stretch; justify-content: center; }
#fu-dialog .fu-fill-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
#fu-dialog .fu-fill-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid #e6e2d4; border-radius: 14px; background: #fffefa; cursor: pointer; }
#fu-dialog .fu-fill-item:has(input:checked) { border-color: #233d34; background: #fff8e6; }
#fu-dialog .fu-fill-item input { position: absolute; opacity: 0; }
#fu-dialog .fu-fill-item:has(input:focus-visible) { outline: 2px solid #233d34; outline-offset: 2px; }
#fu-dialog .fu-fill-item::after { content: ''; margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfc9b8; background: #fff; }
#fu-dialog .fu-fill-item:has(input:checked)::after { border-color: #233d34; background: #233d34 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
#fu-dialog .fu-fill-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
#fu-dialog .fu-fill-icon svg { width: 40px; height: 40px; }
#fu-dialog .fu-fill-icon .fu-dress.is-art { width: 30px; height: 48px; }
#fu-dialog .fu-fill-text { display: grid; min-width: 0; }
#fu-dialog .fu-fill-text b { font-size: 14.5px; line-height: 1.2; }
#fu-dialog .fu-fill-text small { font-size: 12px; color: #6b6f63; }

/* «Hentet» inne i aktiviteten: nå, eget klokkeslett, endre eller angre */
:is(#fu-dialog, #fu-app) .fu-done-panel { display: grid; gap: 10px; }
:is(#fu-dialog, #fu-app) .fu-done-panel > div.fu-done-btn { cursor: default; }
:is(#fu-dialog, #fu-app) .fu-done-row { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
:is(#fu-dialog, #fu-app) .fu-done-time { display: grid; gap: 4px; flex: 1 1 150px; font-size: 13px; font-weight: 700; color: #5d6a63; }
:is(#fu-dialog, #fu-app) .fu-done-time input { font: inherit; font-size: 16px; font-weight: 700; padding: 8px 10px; border: 2px solid #d9d4c4; border-radius: 12px; background: #fff; color: #2b2b2b; min-height: 44px; }
:is(#fu-dialog, #fu-app) .fu-done-row .fu-btn { min-height: 44px; }

/* Eksempeluka: «Prøv dette» */
#fu-app .fu-guide { background: linear-gradient(120deg, #fff6e4, #eef6ee); border: 1px solid #ecdcb4; border-radius: 16px; margin: 0 0 18px; padding: 12px 14px 10px; color: #2f3b2f; }
#fu-app .fu-guide-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
#fu-app .fu-guide-head > div { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
#fu-app .fu-guide-head strong { font-family: var(--fu-display); font-size: 19px; display: inline-flex; align-items: center; gap: 6px; letter-spacing: -.02em; }
#fu-app .fu-guide-head strong .fu-ui-icon { width: 18px; height: 18px; color: #e08a1f; }
#fu-app .fu-guide-head small { color: #6b6a55; font-weight: 700; font-size: 12px; }
#fu-app .fu-guide-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(35, 61, 52, .1); overflow: hidden; min-width: 60px; }
#fu-app .fu-guide-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f5b544, #7cbf7a); transition: width .5s ease; }
#fu-app .fu-guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#fu-app .fu-guide-list button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--fu-white); border: 1px solid #e8e2cc; border-radius: 12px; padding: 9px 10px; cursor: pointer; color: inherit; font: inherit; transition: transform .15s ease, box-shadow .15s ease; }
#fu-app .fu-guide-list button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(60, 50, 20, .08); }
#fu-app .fu-guide-mark { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff1d4; color: #c8761a; }
#fu-app .fu-guide-mark .fu-ui-icon { width: 18px; height: 18px; }
#fu-app .fu-guide-text { display: flex; flex-direction: column; min-width: 0; }
#fu-app .fu-guide-text b { font-size: 14px; line-height: 1.2; }
#fu-app .fu-guide-text small { color: #6e6c5a; font-size: 12px; line-height: 1.3; margin-top: 2px; }
#fu-app .fu-guide-list li.is-done button { background: #f1f8ef; border-color: #cfe5c9; }
#fu-app .fu-guide-list li.is-done .fu-guide-mark { background: #7cbf7a; color: #fff; }
#fu-app .fu-guide-list li.is-done b { text-decoration: line-through; text-decoration-color: rgba(47, 59, 47, .35); }
#fu-app .fu-guide-done { margin: 10px 0 4px; font-size: 14px; }
#fu-app .fu-guide-foot { display: flex; justify-content: flex-end; margin-top: 6px; }
#fu-app .fu-guide-reset { font-size: 12px; min-height: 30px; }
#fu-app .fu-guide-reset .fu-ui-icon { width: 14px; height: 14px; }
#fu-app .fu-guide.is-closed { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; flex-wrap: wrap; }
#fu-app .fu-guide-open { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; font-weight: 800; padding: 4px 6px; }
#fu-app .fu-guide-open .fu-ui-icon { width: 17px; height: 17px; color: #e08a1f; }
#fu-app .fu-guide-open small { background: #fff; border: 1px solid #ecdcb4; border-radius: 99px; padding: 1px 8px; font-size: 12px; }
@media (max-width: 900px) { #fu-app .fu-guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  #fu-app .fu-guide { padding: 10px; }
  #fu-app .fu-guide-head { flex-wrap: wrap; gap: 6px 10px; }
  #fu-app .fu-guide-head > div { flex: 1; }
  #fu-app .fu-guide-bar { order: 3; flex-basis: 100%; height: 6px; }
  #fu-app .fu-guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #fu-app .fu-guide-list button { padding: 7px 8px; gap: 7px; min-height: 52px; }
  #fu-app .fu-guide-mark { width: 28px; height: 28px; }
  #fu-app .fu-guide-mark .fu-ui-icon { width: 15px; height: 15px; }
  #fu-app .fu-guide-text b { font-size: 13px; }
  #fu-app .fu-guide-text small { display: none; }
  #fu-app .fu-guide-foot { justify-content: center; }
}
@media print { #fu-app .fu-guide { display: none; } }

/* Husstand: type, bolig og kjæledyr */
#fu-app .fu-home-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#fu-app .fu-home-type { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--fu-border); border-radius: 14px; background: var(--fu-white); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
#fu-app .fu-home-type input { position: absolute; opacity: 0; pointer-events: none; }
#fu-app .fu-home-type-art { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f6f1e4; }
#fu-app .fu-home-type-art svg { width: 36px; height: 36px; }
#fu-app .fu-home-type b { display: block; font-size: 15px; line-height: 1.2; }
#fu-app .fu-home-type small { display: block; font-size: 12px; color: var(--fu-muted); line-height: 1.3; margin-top: 2px; }
#fu-app .fu-home-type:has(input:checked) { border-color: var(--th-accent, #e07a5f); background: var(--th-soft, #fff4ec); }
#fu-app .fu-home-type:has(input:focus-visible) { outline: 2px solid var(--th-accent, #e07a5f); outline-offset: 2px; }
#fu-app .fu-chip-radios { display: flex; flex-wrap: wrap; gap: 6px; }
#fu-app .fu-chip-radio { position: relative; cursor: pointer; }
#fu-app .fu-chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
#fu-app .fu-chip-radio span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--fu-border); background: var(--fu-white); font-size: 13px; font-weight: 700; }
#fu-app .fu-chip-radio input:checked + span { border-color: var(--th-accent, #e07a5f); background: var(--th-soft, #fff4ec); }
#fu-app .fu-chip-radio input:focus-visible + span { outline: 2px solid var(--th-accent, #e07a5f); outline-offset: 2px; }
#fu-app .fu-setup-row.is-pet { grid-template-columns: minmax(0, 1fr) minmax(0, 150px) 32px; }
#fu-app .fu-setup-twohomes { margin-top: 2px; }
#fu-app .fu-kind-pick { display: inline-flex; }
#fu-app .fu-kind-pick label { position: relative; cursor: pointer; }
#fu-app .fu-kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
#fu-app .fu-kind-pick span { display: inline-flex; align-items: center; min-height: 31px; padding: 0 13px; border-radius: 7px; color: var(--fu-muted); font-weight: 750; font-size: 13px; }
#fu-app .fu-kind-pick input:checked + span { background: var(--fu-white); box-shadow: 0 1px 4px #2e422315; color: var(--fu-dark); }
#fu-app .fu-kind-pick input:focus-visible + span { outline: 2px solid var(--th-accent, #e07a5f); }
#fu-app .fu-set-privacy .fu-set-links { margin-top: 8px; }
@media (max-width: 560px) {
  #fu-app .fu-home-types { grid-template-columns: 1fr; gap: 6px; }
  #fu-app .fu-home-type { padding: 8px 10px; }
  #fu-app .fu-home-type-art { width: 38px; height: 38px; }
  #fu-app .fu-setup-row.is-pet { grid-template-columns: minmax(0, 1fr) 110px 32px; }
}
#fu-app .fu-home-type-art img { width: 40px; height: 40px; object-fit: contain; display: block; }
@media (max-width: 560px) { #fu-app .fu-home-type-art img { width: 34px; height: 34px; } }

/* Eksempeluka: «Start med blanke ark» */
#fu-app .fu-pulse.fu-pulse-few { animation-iteration-count: 4; }
#fu-app .fu-guide-foot { align-items: center; gap: 8px; flex-wrap: wrap; }
#fu-app .fu-guide-own { margin: 0 auto 0 0; font-size: 13px; color: #4b4a3c; }
#fu-app .fu-guide-own strong { color: #2f3b2f; }
#fu-app .fu-guide-blank { min-height: 38px; font-size: 14px; }
#fu-app .fu-guide-closed-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#fu-app .fu-guide.is-closed .fu-guide-blank { min-height: 32px; font-size: 13px; padding-inline: 12px; }
#fu-app .fu-guide.is-blank .fu-guide-blank-text { margin: 0 0 8px; font-size: 14px; max-width: 760px; }
#fu-app .fu-guide.is-blank .fu-guide-foot { justify-content: flex-start; }
@media (max-width: 560px) {
  #fu-app .fu-guide-own { flex-basis: 100%; text-align: center; margin: 0; }
  #fu-app .fu-guide-foot .fu-guide-blank { flex: 1 1 100%; justify-content: center; }
}

/* Middag i dagvisningen: koblet til Mat hjemme */
#fu-app .fu-food-card { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--fu-border); background: var(--fu-white); text-align: left; cursor: pointer; color: inherit; font: inherit; }
#fu-app .fu-food-card:hover { border-color: color-mix(in srgb, var(--fu-dark), white 60%); }
#fu-app .fu-food-card .fu-food-art { width: 40px; height: 40px; flex: none; object-fit: contain; }
#fu-app .fu-food-card > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
#fu-app .fu-food-card strong { font-size: 15px; line-height: 1.25; }
#fu-app .fu-food-card small { font-size: 13px; color: var(--fu-muted); line-height: 1.3; }
#fu-app .fu-food-card > .fu-ui-icon { width: 18px; height: 18px; flex: none; color: var(--fu-muted); }
#fu-app .fu-food-card.is-ready { background: #f1f8ef; border-color: #cfe5c9; }
#fu-app .fu-food-card.is-ready small { color: #2f7a4b; font-weight: 700; }
#fu-app .fu-food-card.is-missing { background: #fff6e8; border-color: #f2d9a6; }
#fu-app .fu-food-card.is-missing small { color: #9a5b12; font-weight: 700; }
#fu-app .fu-food-card.is-low small { color: #9a5b12; }
#fu-app .fu-food-card.is-cook { background: linear-gradient(120deg, #fff6e4, #f2f8f1); }
#fu-app .fu-dayview-food-note { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; color: var(--fu-muted); font-size: 14px; }
#fu-app .fu-dayview-food-note .fu-food-art { width: 30px; height: 30px; object-fit: contain; }
#fu-app .fu-dayview-food-note .fu-link-btn { margin-left: auto; }

/* Innlogging med Google, og uka fra «blanke ark» som blir med inn i kontoen. */
#fu-app .fu-auth-quick { display: grid; gap: 10px; }
#fu-app .fu-google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid #747775; border-radius: 999px;
    background: #fff; color: #1f1f1f; font: 600 15.5px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; transition: background .15s, box-shadow .15s; }
#fu-app .fu-google-btn:hover { background: #f8faff; box-shadow: 0 1px 3px rgb(60 64 67 / .2); }
#fu-app .fu-google-btn:focus-visible { outline: 3px solid #4285f4; outline-offset: 3px; }
#fu-app .fu-google-btn.is-busy { opacity: .6; pointer-events: none; }
#fu-app .fu-google-g { flex: 0 0 auto; width: 20px; height: 20px; }
#fu-app .fu-auth-carry, #fu-app .fu-carry-badge { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: #eef5f0; font-size: 14px; line-height: 1.45; color: var(--th-ink, #153e47); }
#fu-app .fu-auth-carry .fu-ui-icon, #fu-app .fu-carry-badge .fu-ui-icon { flex: 0 0 auto; width: 20px; height: 20px; color: #2f8a5b; margin-top: 1px; }
#fu-app .fu-carry-done { display: grid; gap: 12px; }
#fu-app .fu-carry-done > p { margin: 0; }
#fu-app .fu-guide.is-blank .fu-guide-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 2px 0 8px; }
#fu-app .fu-guide.is-blank .fu-guide-keep small { color: var(--fu-muted); font-size: 13px; }

/* Eksempeluka: «Prøv gratis» alltid synlig. Øverst på store skjermer, som en fast knapp nederst på mobil. */
#fu-app .fu-demo-cta-top { white-space: nowrap; }
#fu-app .fu-demo-cta { display: none; }
@media (max-width: 760px) {
    #fu-app .fu-demo-cta-top { display: none; }
    #fu-app .fu-demo-cta { position: sticky; z-index: 40; bottom: max(10px, env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 4px; margin: 18px auto 0;
        max-width: 440px; padding: 10px 12px 8px; border-radius: 20px; background: rgb(255 254 250 / .94); box-shadow: 0 8px 30px rgb(40 30 20 / .18); backdrop-filter: blur(8px); }
    #fu-app .fu-demo-cta .fu-btn { width: 100%; min-height: 48px; justify-content: center; font-size: 16px; }
    #fu-app .fu-demo-cta small { color: var(--fu-muted); font-size: 12.5px; }
}
@media print { #fu-app .fu-demo-cta, #fu-app .fu-demo-cta-top { display: none !important; } }
