#fu-app {
    --fu-paper: #f7f6f0;
    --fu-white: #fffefa;
    --fu-ink: #21392f;
    --fu-dark: #18372b;
    --fu-muted: #56685c;
    --fu-border: #dedfd3;
    --fu-line: #ebeadf;
    --fu-soft: #edf1e7;
    --fu-mint: #e0eedc;
    --fu-yellow: #f7edc8;
    --fu-danger: #a13735;
    --fu-shadow: 0 10px 30px rgba(43, 54, 37, .045);
    min-height: 100vh;
    background: var(--fu-paper);
    color: var(--fu-ink);
    font: 500 14px/1.45 "DM Sans", "Inter", system-ui, sans-serif;
    color-scheme: light;
    text-align: left;
}

#fu-app *, #fu-app *::before, #fu-app *::after { box-sizing: border-box; }
#fu-app [hidden] { display: none !important; }
#fu-app button, #fu-app input, #fu-app select { font: inherit; }
#fu-app button { color: inherit; cursor: pointer; }
#fu-app button:disabled { opacity: .48; cursor: default; }
#fu-app button:focus-visible, #fu-app a:focus-visible, #fu-app input:focus-visible, #fu-app select:focus-visible, #fu-app label:has(input:focus-visible) {
    outline: 2px solid #437c5e;
    outline-offset: 2px;
}
#fu-app button, #fu-app a { -webkit-tap-highlight-color: transparent; }
#fu-app a { color: inherit; }
#fu-app p, #fu-app h1, #fu-app h2, #fu-app h3 { margin: 0; }
#fu-app h1, #fu-app h2, #fu-app h3 { color: var(--fu-dark); line-height: 1.14; }
#fu-app .fu-ui-icon { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
#fu-app .fu-topbar { background: var(--fu-white); border-bottom: 1px solid var(--fu-border); }
#fu-app .fu-topbar-inner, #fu-app .fu-main { width: min(100%, 1510px); margin-inline: auto; padding-inline: clamp(22px, 4.25vw, 66px); }
#fu-app .fu-topbar-inner { min-height: 70px; display: flex; align-items: center; gap: 20px; }
#fu-app .fu-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 850; line-height: 1; letter-spacing: -.075em; text-decoration: none; white-space: nowrap; }
#fu-app .fu-brand sup { font-size: 8px; margin-left: 3px; letter-spacing: -.02em; vertical-align: top; line-height: 1.15; }
#fu-app .fu-brand-mark { width: 27px; height: 27px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; transform: rotate(-10deg); }
#fu-app .fu-brand-mark i { display: block; border-radius: 80% 80% 20% 80%; background: #e4a445; }
#fu-app .fu-brand-mark i:nth-child(2) { transform: rotate(90deg); background: #de8068; }
#fu-app .fu-brand-mark i:nth-child(3) { transform: rotate(-90deg); background: #7fac83; }
#fu-app .fu-brand-mark i:nth-child(4) { transform: rotate(180deg); background: #9a87ac; }
#fu-app .fu-topbar-context { border-left: 1px solid var(--fu-border); padding-left: 20px; color: var(--fu-muted); font-size: 13px; white-space: nowrap; }
#fu-app .fu-top-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
#fu-app .fu-main { padding-block: 32px 48px; }
#fu-app .fu-loading { padding-block: 35px; }
#fu-app .fu-heading { display: grid; gap: 12px; margin: 0 0 20px; }
#fu-app .fu-heading h1 { font: 750 clamp(42px, 6vw, 70px)/1.08 "Bricolage Grotesque", "DM Sans", system-ui, sans-serif; margin: 0; overflow-wrap: anywhere; }
#fu-app .fu-family-example { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 13px; color: var(--fu-muted); }
#fu-app .fu-family-example .fu-ui-icon { width: 16px; height: 16px; }
#fu-app .fu-heading-controls { display: grid; gap: 8px; }
#fu-app .fu-heading-actions, #fu-app .fu-heading-edit-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#fu-app .fu-heading-actions:empty, #fu-app .fu-heading-edit-tools .fu-activities-jump { display: none; }
#fu-app .fu-view-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(78px, 1.12fr); max-width: 440px; border-bottom: 1px solid var(--th-line, var(--fu-line)); }
#fu-app .fu-view-tabs button {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 4px;
    min-width: 0; min-height: 44px; padding: 0 3px; border: 0; background: transparent;
    color: var(--fu-muted); font-size: 14px; font-weight: 750;
}
#fu-app .fu-view-tabs button[aria-pressed="true"] { color: var(--th-ink, var(--fu-dark)); font-weight: 850; }
#fu-app .fu-view-tabs button[aria-pressed="true"]::after {
    content: ""; position: absolute; inset: auto 10px -1px; height: 3px;
    border-radius: 3px 3px 0 0; background: var(--th-ink, var(--fu-dark));
}
#fu-app .fu-view-tabs [data-id="stars"] { border-inline-start: 1px solid var(--th-line, var(--fu-line)); }
#fu-app .fu-view-tabs [data-id="stars"] svg { width: 15px; height: 15px; color: #795515; fill: #ffe19e; }
#fu-app .fu-btn, #fu-app .fu-icon-btn {
    border: 1px solid var(--fu-border);
    background: var(--fu-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    border-radius: 9px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.15;
    white-space: nowrap;
    text-decoration: none;
}
#fu-app .fu-btn:hover:not(:disabled), #fu-app .fu-icon-btn:hover:not(:disabled) { background: var(--fu-soft); border-color: #c3cebf; }
#fu-app .fu-btn-primary { background: #244a37; border-color: #244a37; color: #fffefa; }
#fu-app .fu-btn-primary:hover:not(:disabled) { background: #183a29; border-color: #183a29; }
#fu-app .fu-btn-subtle { background: transparent; }
#fu-app .fu-btn-quiet { background: transparent; border-color: transparent; }
#fu-app .fu-btn-danger { color: var(--fu-danger); background: #fff8f6; border-color: #ead4d0; }
#fu-app .fu-btn-danger:hover:not(:disabled) { background: #faeae6; border-color: #e2c4bf; }
#fu-app .fu-heading-actions .fu-shortcut { min-height: 44px; padding-inline: 3px; border-color: transparent; background: transparent; }
#fu-app .fu-heading-actions .fu-shortcut:hover { background: var(--fu-soft); border-color: transparent; }
#fu-app .fu-heading-actions .fu-pantry-btn-art { width: 17px; height: 17px; }
#fu-app .fu-heading-actions .fu-new-activity { min-height: 44px; margin-inline-start: auto; }
#fu-app .fu-shopping-count {
    display: inline-grid; place-items: center; min-width: 18px; min-height: 18px; padding-inline: 3px;
    border-radius: 99px; background: var(--th-soft, var(--fu-soft)); color: var(--fu-dark); font-size: 11px;
}
#fu-app .fu-shopping-count.is-new { background: #f8e4b0; color: #5c401b; }
#fu-app .fu-shopping-count:empty { min-width: 7px; min-height: 7px; padding: 0; }
#fu-app .fu-top-actions > .fu-btn[data-action="share"] { border-color: transparent; background: transparent; }
#fu-app .fu-date-short { display: none; }
#fu-app .fu-calendar-toolbar .fu-date-picker {
    min-height: 44px; padding: 0; border-color: transparent; background: transparent;
    font: inherit; color: inherit; letter-spacing: inherit; text-align: start; white-space: normal;
}
#fu-app .fu-icon-btn { width: 36px; min-height: 36px; padding: 0; }
#fu-app .fu-icon-btn .fu-ui-icon { width: 17px; height: 17px; }
#fu-app .fu-segment { display: inline-flex; padding: 3px; border: 1px solid var(--fu-border); background: #eeeee5; border-radius: 10px; }
#fu-app .fu-segment button { border: 0; border-radius: 7px; min-height: 31px; padding: 0 13px; color: var(--fu-muted); font-weight: 750; font-size: 13px; background: transparent; }
#fu-app .fu-segment button[aria-pressed="true"] { background: var(--fu-white); box-shadow: 0 1px 4px #2e422315; color: var(--fu-dark); }
#fu-app .fu-banner { background: #f2eedc; border: 1px solid #e5ddbd; border-radius: 12px; color: #4b462e; margin: 0 0 18px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#fu-app .fu-banner > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
#fu-app .fu-workspace { display: grid; grid-template-columns: clamp(223px, 20.1vw, 288px) minmax(0, 1fr); grid-template-areas: "sidebar board"; gap: 17px; align-items: stretch; }
#fu-app .fu-panel { background: var(--fu-white); border: 1px solid var(--fu-border); border-radius: 15px; box-shadow: var(--fu-shadow); overflow: hidden; }
#fu-app .fu-sidebar { grid-area: sidebar; min-width: 0; padding: 16px; display: flex; flex-direction: column; scroll-margin-top: 10px; }
#fu-app .fu-side-title, #fu-app .fu-people-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
#fu-app .fu-side-title h2 { font-size: 19px; letter-spacing: -.035em; }
#fu-app .fu-side-title .fu-icon-btn, #fu-app .fu-people-title .fu-icon-btn { width: 30px; min-height: 30px; }
#fu-app .fu-search { display: flex; align-items: center; gap: 7px; padding: 0 9px; min-height: 37px; border: 1px solid var(--fu-border); border-radius: 8px; background: #f9f9f3; color: var(--fu-muted); }
#fu-app .fu-search input { background: transparent; color: var(--fu-ink); border: 0; min-width: 0; width: 100%; padding: 7px 0; outline: none; font-size: 13px; }
#fu-app .fu-search:focus-within { outline: 2px solid #437c5e; outline-offset: 1px; }
#fu-app .fu-search .fu-ui-icon { width: 16px; height: 16px; }
#fu-app .fu-category { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin: 11px 0 10px; }
#fu-app .fu-category select { min-width: 0; max-width: 100%; background: var(--fu-white); color: var(--fu-ink); border: 1px solid var(--fu-border); border-radius: 7px; padding: 5px 5px 5px 7px; font-weight: 700; font-size: 11.5px; }
#fu-app .fu-category-count { color: var(--fu-muted); font-size: 10px; white-space: nowrap; }
#fu-app .fu-library { min-height: 176px; max-height: 342px; overflow: auto; scrollbar-color: #c8cfbf transparent; scrollbar-width: thin; padding: 1px 2px 3px 1px; }
#fu-app .fu-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#fu-app .fu-library-item { display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; background: #f9f8f2; border: 1px solid var(--fu-line); border-radius: 10px; padding: 7px 2px 5px; min-height: 63px; min-width: 0; }
#fu-app button.fu-library-item { cursor: grab; }
#fu-app button.fu-library-item:hover, #fu-app .fu-library-item[aria-pressed="true"] { background: #f0f2e6; border-color: #a9bd9e; }
#fu-app .fu-library-item[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #628665; }
#fu-app .fu-library-icon, #fu-app .fu-event-icon, #fu-app .fu-person-mark, #fu-app .fu-icon-option-mark { display: inline-grid; place-items: center; font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; flex-shrink: 0; line-height: 1; }
#fu-app .fu-library-icon { font-size: 24px; width: 34px; height: 30px; }
#fu-app .fu-library-icon img, #fu-app .fu-event-icon img, #fu-app .fu-person-mark img, #fu-app .fu-icon-option-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
#fu-app .fu-library-label { width: 100%; font-size: 10.5px; font-weight: 740; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
#fu-app .fu-side-help { color: var(--fu-muted); font-size: 11.5px; line-height: 1.4; min-height: 31px; margin-top: 9px; }
#fu-app .fu-side-help.is-pending { color: #315e3e; font-weight: 750; }
#fu-app .fu-people-panel { border-top: 1px solid var(--fu-line); margin-top: auto; padding-top: 12px; }
#fu-app .fu-people-title { margin-bottom: 8px; }
#fu-app .fu-people-title h3 { font-size: 13px; }
#fu-app .fu-people-row { display: flex; flex-wrap: wrap; gap: 5px; }
#fu-app .fu-person-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--fu-line); background: #faf9f3; border-radius: 999px; padding: 3px 7px 3px 4px; font-size: 11px; font-weight: 700; max-width: 100%; }
#fu-app button.fu-person-chip:hover { border-color: #a9bd9e; background: var(--fu-soft); }
#fu-app .fu-person-mark { width: 22px; height: 22px; font-size: 14px; border-radius: 50%; background: var(--fu-person-color, #e3eddd); flex: 0 0 auto; padding: 2px; }
#fu-app .fu-muted { color: var(--fu-muted); }
#fu-app .fu-small { font-size: 12px; }
#fu-app .fu-board { grid-area: board; display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 10px; }
#fu-app .fu-board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 15px 13px; border-bottom: 1px solid var(--fu-border); }
#fu-app .fu-board-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#fu-app .fu-board-title-line { display: flex; align-items: center; gap: 5px; }
#fu-app .fu-board-title-line .fu-icon-btn { width: 28px; min-height: 28px; flex: 0 0 auto; border-color: transparent; background: transparent; }
#fu-app .fu-board-title-line .fu-ui-icon { width: 15px; height: 15px; }
#fu-app .fu-board-title h2 { font-size: clamp(17px, 2.1vw, 24px); font-weight: 800; letter-spacing: -.045em; }
#fu-app .fu-board-title p { color: var(--fu-muted); font-size: 11px; }
#fu-app .fu-board-nav { display: flex; align-items: center; gap: 5px; }
#fu-app .fu-board-nav .fu-btn { min-height: 36px; }
#fu-app .fu-board-nav .fu-nav-next { gap: 2px; padding-right: 7px; }
#fu-app .fu-nav-next .fu-ui-icon { width: 15px; height: 15px; }
#fu-app .fu-board-pending { display: none; }
#fu-app .fu-board-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
#fu-app .fu-board-scroller { display: flex; flex: 1; flex-direction: column; }
#fu-app .fu-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; flex: 1; }
#fu-app .fu-day { display: flex; flex-direction: column; min-width: 0; min-height: 390px; border-right: 1px solid var(--fu-line); padding: 9px 7px 8px; transition: background .14s; }
#fu-app .fu-day:last-child { border-right: 0; }
#fu-app .fu-day.is-weekend { background: #faf9f2; }
#fu-app .fu-day.is-today { background: #f2f6ec; }
#fu-app .fu-day.is-editable { cursor: pointer; }
#fu-app .fu-day.is-over, #fu-app .fu-board.has-pending .fu-day:hover { background: #edf4e6; box-shadow: inset 0 0 0 2px #9ebd95; }
@media (hover: hover) {
    #fu-app .fu-day.is-editable:not(.is-over):hover { box-shadow: inset 0 0 0 1px #b6c9b0; }
}
#fu-app .fu-day-heading { display: flex; justify-content: space-between; align-items: start; min-width: 0; min-height: 48px; gap: 2px; padding: 0 3px; }
#fu-app .fu-day-name { color: var(--fu-muted); display: block; font-weight: 750; font-size: 11px; line-height: 1.2; }
#fu-app .fu-day-short { display: none; }
#fu-app .fu-day-number { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; min-height: 27px; font-size: 23px; font-weight: 780; letter-spacing: -.07em; line-height: 1; margin: 3px 0 0 -1px; }
#fu-app .fu-day.is-today .fu-day-number { color: #fffefa; background: #3d6e4a; border-radius: 999px; font-size: 16px; margin-left: 0; }
#fu-app .fu-add-day { 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; }
#fu-app .fu-add-day:hover { background: var(--fu-mint); border-color: #b9cbb5; }
#fu-app .fu-add-day .fu-ui-icon { width: 14px; height: 14px; }
#fu-app .fu-board.has-pending .fu-add-day { color: #2d593a; border-color: #a0bc98; }
#fu-app .fu-day-events { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#fu-app .fu-event { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 4px; background: var(--fu-event-bg, #edf1e7); border: 1px solid var(--fu-event-line, #dfe8da); border-left: 3px solid var(--fu-event-color, #8aac78); border-radius: 8px; text-align: left; width: 100%; min-width: 0; padding: 6px 4px; color: var(--fu-dark); }
#fu-app button.fu-event:hover { filter: brightness(.97); }
#fu-app .fu-event-icon { width: 23px; height: 24px; font-size: 18px; }
#fu-app .fu-event-main { min-width: 0; }
#fu-app .fu-event-name { font-weight: 800; font-size: 11.5px; line-height: 1.18; display: block; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; word-break: normal; hyphens: none; }
#fu-app .fu-event-meta { color: #425347; display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; min-height: 0; margin-top: 3px; font-size: 9.5px; font-weight: 700; }
#fu-app .fu-event-meta:empty { display: none; }
#fu-app .fu-event-meta .fu-person-mark { height: 15px; width: 15px; padding: 1px; font-size: 10px; }
#fu-app .fu-event-meta .fu-person-mark.has-initial { display: inline-flex; width: auto; min-width: 22px; gap: 2px; padding-inline: 3px; border-radius: 20px; }
#fu-app .fu-event-meta .fu-person-mark b { color: #20362b; font: 800 9px/1 "DM Sans", system-ui, sans-serif; }
#fu-app .fu-event-repeat { display: inline-flex; }
#fu-app .fu-event-repeat .fu-ui-icon { width: 11px; height: 11px; }
#fu-app .fu-write-space { min-height: 36px; margin-top: auto; display: grid; align-content: end; gap: 13px; padding: 14px 2px 3px; }
#fu-app .fu-write-space i { display: block; border-bottom: 1px dashed #e4e4d9; }
#fu-app .fu-board-footer { border-top: 1px solid var(--fu-border); min-height: 47px; color: var(--fu-muted); padding: 8px 13px; display: flex; justify-content: space-between; align-items: center; gap: 7px; font-size: 11px; }
#fu-app .fu-board-footer p { display: flex; align-items: center; gap: 5px; }
#fu-app .fu-board-footer p:last-child { flex-shrink: 0; }
#fu-app .fu-board-footer .fu-ui-icon { width: 14px; height: 14px; }
#fu-app .fu-month-labels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #f7f8f0; border-bottom: 1px solid var(--fu-line); }
#fu-app .fu-month-labels > span { padding: 6px 8px; text-align: center; font-size: 11px; font-weight: 750; color: var(--fu-muted); }
#fu-app .fu-days-month .fu-day { min-height: 94px; padding: 4px 5px 5px; border-bottom: 1px solid var(--fu-line); }
#fu-app .fu-days-month .fu-day:nth-child(7n) { border-right: 0; }
#fu-app .fu-days-month .fu-day:nth-last-child(-n+7) { border-bottom: 0; }
#fu-app .fu-days-month .fu-day.is-outside { opacity: .59; background: #f6f5ef; }
#fu-app .fu-days-month .fu-day-heading { min-height: 27px; padding: 0 2px; }
#fu-app .fu-days-month .fu-day-number { min-width: 19px; min-height: 20px; font-size: 14px; margin: 0; }
#fu-app .fu-days-month .fu-day.is-today .fu-day-number { font-size: 12px; }
#fu-app .fu-days-month .fu-add-day { width: 19px; min-width: 19px; height: 19px; }
#fu-app .fu-days-month .fu-event { grid-template-columns: 16px minmax(0, 1fr); padding: 3px 2px; gap: 3px; }
#fu-app .fu-days-month .fu-event-icon { width: 15px; height: 15px; font-size: 13px; }
#fu-app .fu-days-month .fu-event-name { font-size: 10.5px; }
#fu-app .fu-days-month .fu-event-meta { font-size: 9px; }
#fu-app .fu-dialog { width: min(520px, calc(100% - 25px)); max-height: min(86vh, 760px); margin: auto; border: 1px solid var(--fu-border); border-radius: 16px; background: var(--fu-white); color: var(--fu-ink); padding: 0; box-shadow: 0 24px 80px #18372b3d; }
#fu-app .fu-dialog::backdrop { background: #19281f72; }
#fu-app .fu-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 19px 12px; border-bottom: 1px solid var(--fu-line); }
#fu-app .fu-dialog-header h2 { font-size: 22px; letter-spacing: -.03em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#fu-app .fu-dialog-header .fu-icon-btn { flex: 0 0 auto; }
#fu-app .fu-dialog-body { padding: 15px 19px 19px; display: grid; gap: 13px; }
#fu-app .fu-dialog form { margin: 0; }
#fu-app .fu-event-preview { display: inline-flex; justify-self: start; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border: 1px solid var(--fu-preview-color); border-left: 4px solid var(--fu-preview-color); border-radius: 8px; background: #f6f6eb; background: color-mix(in srgb, var(--fu-preview-color) 25%, var(--fu-white)); font-weight: 750; }
#fu-app .fu-event-preview { min-width: 0; max-width: 100%; }
#fu-app .fu-event-preview > :last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#fu-app .fu-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#fu-app .fu-field { display: grid; align-content: start; gap: 5px; min-width: 0; }
#fu-app .fu-field > span, #fu-app .fu-field > legend { font-weight: 750; font-size: 12px; }
#fu-app .fu-field input:not([type="checkbox"]), #fu-app .fu-field select { min-width: 0; width: 100%; border: 1px solid var(--fu-border); padding: 8px 9px; border-radius: 8px; background: #faf9f3; color: var(--fu-ink); min-height: 37px; }
#fu-app .fu-field input[type="file"] { font-size: 12px; }
#fu-app fieldset.fu-field { padding: 0; margin: 0; border: 0; }
#fu-app fieldset.fu-field legend { padding: 0; margin-bottom: 5px; }
#fu-app .fu-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 3px; }
#fu-app .fu-dialog-footer-start { display: flex; gap: 8px; flex-wrap: wrap; }
#fu-app .fu-dialog-footer-end { margin-left: auto; display: flex; justify-content: end; gap: 8px; flex-wrap: wrap; }
#fu-app .fu-form-error { color: #8e2e2c; background: #fcf0ed; border-radius: 8px; padding: 8px 9px; font-size: 13px; }
#fu-app .fu-event-basics > :first-child { grid-column: 1 / -1; }
#fu-app .fu-event-options { min-width: 0; border: 1px solid var(--fu-border); border-radius: 10px; background: #faf9f3; }
#fu-app .fu-event-options > summary { min-height: 44px; padding: 11px 12px; color: var(--fu-dark); font-weight: 750; cursor: pointer; }
#fu-app .fu-event-options > summary span { margin-left: 6px; color: var(--fu-muted); font-size: 12px; font-weight: 500; }
#fu-app .fu-event-options > summary:focus-visible { outline: 2px solid #437c5e; outline-offset: 2px; }
#fu-app .fu-event-options > div, #fu-app .fu-event-series { display: grid; gap: 12px; min-width: 0; }
#fu-app .fu-event-options > div { padding: 12px; border-top: 1px solid var(--fu-border); }
#fu-app .fu-color-options, #fu-app .fu-person-options { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
#fu-app .fu-color-choice, #fu-app .fu-person-choice, #fu-app .fu-icon-choice { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
#fu-app .fu-color-choice { padding: 3px; border-radius: 99px; }
#fu-app .fu-color-choice:has(input:checked) { box-shadow: 0 0 0 1.5px #345b3f; }
#fu-app .fu-color-choice input, #fu-app .fu-person-choice input, #fu-app .fu-icon-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#fu-app .fu-color-choice i { display: block; width: 23px; height: 23px; border-radius: 50%; background: var(--fu-swatch); border: 1px solid #243b2c29; }
#fu-app .fu-person-choice { padding: 3px 8px 3px 3px; gap: 4px; border: 1px solid var(--fu-border); border-radius: 99px; font-size: 12px; background: var(--fu-white); }
#fu-app .fu-person-choice:has(input:checked) { background: #eaf1e4; border-color: #799b73; }
#fu-app .fu-icon-choice { padding: 3px; border: 1px solid var(--fu-border); border-radius: 8px; background: #f9f8f2; }
#fu-app .fu-icon-choice:has(input:checked) { background: #eaf1e4; border-color: #799b73; }
#fu-app .fu-icon-option-mark { width: 28px; height: 27px; font-size: 19px; }
#fu-app .fu-entry-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 5px; }
#fu-app .fu-entry-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--fu-line); background: #faf9f3; border-radius: 8px; padding: 6px 7px; min-width: 0; }
#fu-app .fu-entry-list li > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
#fu-app .fu-entry-list li > div > span:not(.fu-person-mark):not(.fu-event-icon) { min-width: 0; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; word-break: normal; hyphens: none; }
#fu-app .fu-entry-list .fu-btn { min-height: 28px; padding: 4px 7px; font-size: 11px; flex: 0 0 auto; }
#fu-app .fu-check-row { display: flex; gap: 8px; align-items: center; cursor: pointer; }
#fu-app .fu-check-row input { accent-color: #436f4d; }
#fu-app .fu-import-row { background: #f9f8f2; padding: 8px 9px; border-radius: 8px; border: 1px solid var(--fu-line); }
#fu-app .fu-import-row [data-import-edit] { display: grid; gap: 8px; margin-top: 8px; }
#fu-app .fu-dialog-body h3 + .fu-entry-list { margin-top: 5px; }
#fu-app .fu-toast { position: fixed; z-index: 99999; right: 18px; bottom: 18px; max-width: min(420px, calc(100% - 36px)); padding: 10px 13px; color: #fffefa; background: #254734; box-shadow: 0 7px 28px #18372b35; border-radius: 9px; }
#fu-app .fu-toast.is-error { background: #852e2b; }
#fu-app .fu-empty { color: var(--fu-muted); padding: 7px 1px; font-size: 12px; }
#fu-app .fu-compact-select { display: flex; align-items: center; gap: 5px; }

@media (max-width: 1000px) {
    #fu-app .fu-topbar-inner, #fu-app .fu-main { padding-inline: 20px; }
    #fu-app .fu-workspace { grid-template-columns: 217px minmax(0, 1fr); gap: 12px; }
    #fu-app .fu-sidebar { padding: 12px; }
    #fu-app .fu-day { padding-inline: 4px; }
    #fu-app .fu-day-name { font-size: 10px; }
    #fu-app .fu-event { grid-template-columns: 19px minmax(0, 1fr); gap: 2px; }
    #fu-app .fu-event-icon { width: 18px; height: 20px; font-size: 15px; }
    #fu-app .fu-event-name { font-size: 10.5px; }
}
@media (max-width: 760px) {
    #fu-app .fu-topbar-inner, #fu-app .fu-main { padding-inline: 14px; }
    #fu-app .fu-topbar-inner { min-height: 57px; gap: 8px; }
    #fu-app .fu-topbar-context { display: none; }
    #fu-app .fu-brand { font-size: 20px; gap: 6px; }
    #fu-app .fu-brand-mark { width: 22px; height: 22px; }
    #fu-app .fu-top-actions { gap: 5px; }
    #fu-app .fu-top-actions .fu-btn { min-height: 35px; padding-inline: 8px; font-size: 12px; }
    #fu-app .fu-top-actions .fu-ui-icon { width: 15px; height: 15px; }
    #fu-app .fu-main { padding-block: 23px 30px; }
    #fu-app .fu-heading { gap: 9px; margin-bottom: 14px; }
    #fu-app .fu-heading-actions { gap: 7px; }
    #fu-app .fu-heading-actions .fu-btn, #fu-app .fu-heading-edit-tools .fu-btn { min-height: 44px; padding: 6px 8px; font-size: 12px; gap: 4px; }
    #fu-app .fu-heading-actions .fu-shortcut { padding-inline: 0; }
    #fu-app .fu-heading-edit-tools .fu-activities-jump { display: inline-flex; }
    #fu-app .fu-heading-actions .fu-ui-icon, #fu-app .fu-heading-edit-tools .fu-ui-icon { width: 15px; height: 15px; }
    #fu-app .fu-segment button { min-height: 27px; padding-inline: 7px; font-size: 11px; }
    #fu-app .fu-view-tabs { max-width: none; }
    #fu-app .fu-view-tabs button { font-size: 13px; }
    #fu-app .fu-calendar-toolbar { padding-block: 5px; gap: 4px; }
    #fu-app .fu-calendar-toolbar .fu-board-title-line { gap: 1px; }
    #fu-app .fu-calendar-toolbar .fu-board-title-line .fu-icon-btn { width: 44px; min-height: 44px; }
    #fu-app .fu-calendar-toolbar .fu-board-nav { gap: 0; flex: none; }
    #fu-app .fu-calendar-toolbar .fu-board-nav :is(.fu-btn, .fu-icon-btn) {
        width: auto; min-width: 44px; min-height: 44px; padding-inline: 4px; border-color: transparent; background: transparent;
    }
    #fu-app .fu-calendar-toolbar .fu-board-nav .fu-mode-btn { border-inline-start: 1px solid var(--th-line, var(--fu-line)); border-radius: 0; }
    #fu-app .fu-calendar-toolbar .fu-nav-next span, #fu-app .fu-calendar-toolbar .fu-mode-btn[aria-pressed="false"] span, #fu-app .fu-date-full { display: none; }
    #fu-app .fu-date-short { display: inline; }
    #fu-app .fu-workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "board" "sidebar"; }
    #fu-app .fu-board-pending { display: block; background: var(--fu-mint); color: var(--fu-dark); border-bottom: 1px solid #c0d5b9; font-weight: 750; padding: 6px 9px; font-size: 12px; }
    #fu-app .fu-library { max-height: 144px; min-height: 0; }
    #fu-app .fu-library-grid { grid-template-columns: repeat(auto-fit, minmax(57px, 1fr)); }
    #fu-app .fu-library-item { min-height: 50px; gap: 2px; }
    #fu-app .fu-library-icon { width: 27px; height: 25px; font-size: 20px; }
    #fu-app .fu-side-help { min-height: 0; margin-bottom: 8px; }
    #fu-app .fu-people-panel { padding-top: 7px; }
    #fu-app .fu-people-title { margin-bottom: 3px; }
    #fu-app .fu-board-toolbar { padding: 10px; gap: 6px; }
    #fu-app .fu-board-title-line { gap: 2px; }
    #fu-app .fu-board-title-line .fu-icon-btn { width: 23px; }
    #fu-app .fu-board-nav { gap: 3px; }
    #fu-app .fu-board-nav .fu-btn, #fu-app .fu-board-nav .fu-icon-btn { min-height: 31px; }
    #fu-app .fu-board-nav .fu-icon-btn { width: 29px; }
    #fu-app .fu-board-nav .fu-btn { padding-inline: 6px; font-size: 11px; }
    #fu-app .fu-days:not(.fu-days-month) { grid-template-columns: minmax(0, 1fr); }
    #fu-app .fu-days:not(.fu-days-month) .fu-day { display: grid; grid-template-columns: minmax(72px, 24%) minmax(0, 1fr); align-items: start; min-height: 54px; border-right: 0; border-bottom: 1px solid var(--fu-line); padding: 6px 8px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day:last-child { border-bottom: 0; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day-heading { min-height: 0; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day > :not(.fu-day-heading) { grid-column: 2; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day-heading { grid-column: 1; grid-row: 1 / span 6; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day > .fu-home { margin: 0 0 4px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day-name { font-size: 10px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day-number { min-width: 20px; min-height: 22px; font-size: 18px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day.is-today .fu-day-number { font-size: 13px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-day-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 116px), 1fr)); gap: 4px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-add-day { min-width: 28px; width: 28px; height: 28px; margin-inline: 3px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-event { min-height: 37px; grid-template-columns: 21px minmax(0, 1fr); align-items: center; padding: 5px 4px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-event-icon { width: 20px; height: 21px; font-size: 17px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-event-name { font-size: 11px; }
    #fu-app .fu-days:not(.fu-days-month) .fu-write-space { display: none; }
    #fu-app .fu-days-month .fu-day { min-height: 73px; padding-inline: 2px; }
    #fu-app .fu-days-month .fu-event { grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: 3px; }
    #fu-app .fu-days-month .fu-event-main { display: none; }
    #fu-app .fu-month-labels > span { padding-inline: 0; }
    #fu-app .fu-field input:not([type="checkbox"]), #fu-app .fu-field select, #fu-app .fu-search input { font-size: 16px; }
}
@media (max-width: 390px) {
    #fu-app .fu-topbar-inner, #fu-app .fu-main { padding-inline: 9px; }
    #fu-app .fu-top-actions .fu-btn { gap: 4px; }
}

/* Mat hjemme */
#fu-app #fu-dialog:has(.fu-pantry-home) { width: min(620px, calc(100% - 26px)); }
#fu-app #fu-dialog .fu-pantry-home { background: var(--fu-paper); }
#fu-dialog .fu-pantry-toolbar, #fu-dialog .fu-pantry-add-options { display: flex; align-items: center; gap: 8px; }
#fu-dialog .fu-pantry-add-options { flex-wrap: wrap; }
#fu-dialog .fu-pantry-toolbar > .fu-btn { flex: none; }
#fu-dialog .fu-pantry-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--fu-border); border-radius: 12px; background: var(--fu-white); color: var(--fu-muted); }
#fu-dialog .fu-pantry-search > .fu-ui-icon { flex: none; }
#fu-dialog .fu-pantry-search input { width: 100%; min-width: 0; padding: 9px 0; border: 0; color: var(--fu-ink); background: transparent; font-size: 16px; }
#fu-dialog .fu-pantry-search:focus-within { outline: 2px solid var(--fu-dark); outline-offset: 2px; }
#fu-dialog .fu-pantry-search input:focus { outline: 0; }
#fu-dialog .fu-pantry-filters { display: flex; flex-wrap: wrap; gap: 5px; }
#fu-dialog .fu-pantry-filters .fu-btn { border: 1px solid var(--fu-border); border-radius: 999px; min-height: 42px; padding-inline: 11px; }
#fu-dialog .fu-pantry-filters .fu-btn.is-on { background: var(--fu-dark); border-color: var(--fu-dark); color: var(--fu-white); }
#fu-dialog .fu-pantry-inventory { display: grid; gap: 9px; }
#fu-dialog .fu-pantry-room, #fu-dialog .fu-pantry-follow { overflow: clip; border: 1px solid var(--fu-border); border-radius: 14px; background: var(--fu-white); }
#fu-dialog .fu-pantry-follow { background: #fff4df; }
#fu-dialog .fu-pantry-follow h3 { margin: 9px 12px 0; font: 800 20px/1.2 var(--fu-display, system-ui); color: var(--fu-ink); }
#fu-dialog .fu-pantry-room-head { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 46px; padding: 4px 11px; border: 0;
  text-align: left; color: var(--fu-ink); background: var(--fu-mint); }
#fu-dialog .fu-pantry-room-head strong { font: 800 20px/1.2 var(--fu-display, system-ui); }
#fu-dialog .fu-pantry-room-head small { margin-left: auto; }
#fu-dialog .fu-pantry-room-art { width: 34px; height: 34px; object-fit: contain; }
#fu-dialog .fu-pantry-inventory .fu-pantry-list { padding: 0 12px; }
#fu-dialog .fu-pantry-name { justify-content: space-between; min-width: 0; grid-column: 1 / -1; width: 100%; overflow-wrap: anywhere; font-size: 15px; }
#fu-dialog .fu-pantry-follow .fu-pantry-name:has(+ .fu-btn) { grid-column: 1; }
#fu-dialog .fu-pantry-name > span, #fu-dialog .fu-pantry-name small { display: block; }
#fu-dialog .fu-pantry-name small { color: var(--fu-muted); font-size: 12px; }
#fu-dialog .fu-pantry-name .fu-ui-icon { flex: none; width: 14px; height: 14px; }
#fu-dialog .fu-pantry-room-empty { margin: 9px 12px; }
#fu-dialog .fu-pantry-tools .fu-btn, #fu-dialog .fu-pantry-tools .fu-chip { min-height: 40px; }
#fu-app .fu-pantry-used label { display: grid; align-content: start; gap: 3px; padding: 6px 9px; border: 1px solid var(--fu-border); border-radius: 10px; background: var(--fu-white); }
#fu-app .fu-pantry-used select { min-height: 38px; max-width: 100%; padding: 4px 6px; color: var(--fu-ink); background: var(--fu-paper); border: 1px solid var(--fu-border); border-radius: 7px; font: inherit; }
#fu-dialog .fu-cook-progress { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--fu-muted); }
#fu-dialog .fu-cook-progress span { width: 16px; height: 16px; border: 2px solid var(--fu-border); border-top-color: var(--fu-dark); border-radius: 50%; animation: fu-cook-spin .8s linear infinite; }
@keyframes fu-cook-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #fu-dialog .fu-cook-progress span { animation: none; } }
@media (max-width: 640px), (pointer: coarse) and (max-width: 900px) {
  #fu-app #fu-dialog:has(.fu-pantry-home) { width: 100%; }
  #fu-dialog .fu-pantry-filters .fu-btn { min-height: 44px; padding-inline: 9px; }
  #fu-dialog .fu-pantry-tools .fu-btn, #fu-dialog .fu-pantry-tools .fu-chip { min-height: 44px; }
}
/* Gjennomgang av vareforslag fra kvittering */
#fu-dialog .fu-receipt-review li { display: grid; gap: 6px; }
#fu-dialog .fu-receipt-review .fu-check-row { margin: 0; }
#fu-dialog .fu-receipt-review .fu-fields { margin: 0; width: 100%; }
#fu-dialog .fu-receipt-review .fu-field { min-width: 0; }

/* Skjermvisning */
html.fu-screen-open, html.fu-screen-open body { overflow: hidden; }
#fu-app .fu-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: auto;
    overscroll-behavior: contain;
    color: var(--fu-ink);
    background: var(--fu-paper);
}
#fu-app .fu-screen::backdrop { background: var(--fu-paper); }
#fu-app .fu-screen-panel { min-height: 100%; background: var(--fu-paper); }
#fu-app .fu-screen-panel:fullscreen { width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; }
#fu-app .fu-screen-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding: max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
    border-bottom: 1px solid var(--fu-border);
    background: var(--fu-white);
}
#fu-app .fu-screen-heading { flex: 1 1 210px; min-width: 0; }
#fu-app .fu-screen-heading h2 {
    font: 800 clamp(24px, 3vw, 38px)/1.06 var(--fu-display, system-ui);
    overflow-wrap: anywhere;
}
#fu-app .fu-screen-period, #fu-app .fu-screen-status, #fu-app .fu-screen-option-status { color: var(--fu-muted); font-size: 13px; }
#fu-app .fu-screen-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
#fu-app .fu-screen-options { position: relative; }
#fu-app .fu-screen-options summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-inline: 8px;
    color: var(--fu-muted);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    border-radius: 8px;
}
#fu-app .fu-screen-options summary::-webkit-details-marker { display: none; }
#fu-app .fu-screen-options summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border-inline-end: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
#fu-app .fu-screen-options[open] summary::after { transform: translateY(2px) rotate(225deg); }
#fu-app .fu-screen-options summary:focus-visible { outline: 2px solid #437c5e; outline-offset: 2px; }
#fu-app .fu-screen-controls {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 3px);
    z-index: 1;
    display: grid;
    gap: 5px;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 8px;
    border: 1px solid var(--fu-border);
    border-radius: 12px;
    background: var(--fu-white);
    box-shadow: 0 8px 30px #18372b20;
}
#fu-app .fu-screen-header .fu-btn { min-height: 44px; }
#fu-app .fu-screen-controls .fu-btn { justify-content: flex-start; white-space: normal; }
#fu-app .fu-screen-controls .fu-btn[aria-pressed="true"] { background: var(--fu-mint); }
#fu-app .fu-screen-status:empty { display: none; }
#fu-app .fu-screen-status:not(:empty) {
    padding: 9px max(18px, env(safe-area-inset-left));
    border-bottom: 1px solid var(--fu-border);
}
#fu-app .fu-screen-option-status { max-width: 215px; padding: 3px 4px; white-space: normal; }
#fu-app .fu-screen-option-status:empty { display: none; }
#fu-app .fu-screen-content {
    width: min(100%, 1720px);
    margin-inline: auto;
    padding: clamp(14px, 2.5vw, 38px);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}
#fu-app .fu-screen-days { display: grid; gap: clamp(8px, 1.25vw, 19px); }
#fu-app .fu-screen-days.is-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
#fu-app .fu-screen-day {
    display: flex;
    flex-direction: column;
    gap: clamp(9px, 1.2vw, 16px);
    min-width: 0;
    padding: clamp(9px, 1.15vw, 18px);
    border: 1px solid var(--fu-border);
    border-radius: 16px;
    background: var(--fu-white);
}
#fu-app .fu-screen-day.is-current {
    border-color: color-mix(in srgb, var(--fu-dark), white 42%);
    box-shadow: inset 0 3px var(--fu-dark);
}
#fu-app .fu-screen-day h3 {
    font: 800 clamp(15px, 1.65vw, 26px)/1.1 var(--fu-display, system-ui);
    overflow-wrap: anywhere;
}
#fu-app .fu-screen-days.is-today .fu-screen-day { padding: clamp(15px, 2vw, 30px); }
#fu-app .fu-screen-days.is-today .fu-screen-day h3 { font-size: clamp(24px, 3vw, 43px); }
#fu-app .fu-screen-events { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
#fu-app .fu-screen-event {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    align-items: start;
    gap: 7px;
    padding: clamp(6px, 0.85vw, 12px);
    border: 1px solid var(--fu-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--fu-screen-accent, var(--fu-mint)), var(--fu-white) 82%);
}
#fu-app .fu-screen-event-mark {
    width: clamp(35px, 4vw, 60px);
    height: clamp(35px, 4vw, 60px);
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    display: grid;
    place-items: center;
    padding: 4px;
    border-radius: 9px;
    color: var(--fu-dark);
    background: color-mix(in srgb, var(--fu-screen-accent, var(--fu-mint)), var(--fu-white) 55%);
    font-size: clamp(23px, 3vw, 40px);
}
#fu-app .fu-screen-event-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
#fu-app .fu-screen-event-mark.fu-activity-photo { overflow: hidden; padding: 0; }
#fu-app .fu-screen-event-mark.fu-activity-photo img { object-fit: cover; }
#fu-app .fu-screen-event-text { display: grid; gap: 3px; min-width: 0; }
#fu-app .fu-screen-event-text strong { font-size: clamp(14px, 1.35vw, 22px); line-height: 1.14; overflow-wrap: anywhere; }
#fu-app .fu-screen-time, #fu-app .fu-screen-empty { color: var(--fu-muted); font-size: clamp(12px, 1.1vw, 17px); }
#fu-app .fu-screen-people, #fu-app .fu-screen-home, #fu-app .fu-screen-dinner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}
#fu-app .fu-screen .fu-person-mark {
    position: relative;
    width: var(--fu-screen-person-size, 26px);
    height: var(--fu-screen-person-size, 26px);
    padding: 3px;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    font-size: 16px;
}
#fu-app .fu-screen .fu-person-mark.has-photo { padding: 0; }
#fu-app .fu-screen .fu-person-mark > span { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; }
#fu-app .fu-screen .fu-person-mark > span > :is(img, svg) { width: 100%; height: 100%; object-fit: contain; }
#fu-app .fu-screen .fu-person-mark > b {
    position: absolute;
    inset-inline-end: -2px;
    bottom: -2px;
    border-radius: 5px;
    padding: 1px 2px;
    background: var(--fu-white);
    font: 800 9px/1 system-ui;
}
#fu-app .fu-screen-home, #fu-app .fu-screen-dinner { color: var(--fu-muted); font-size: 14px; }
#fu-app .fu-screen-dinner { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--fu-line); }
#fu-app .fu-screen-dinner .fu-food-art { width: 26px; height: 26px; object-fit: contain; }
#fu-app .fu-screen-days.is-today .fu-screen-events { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
#fu-app .fu-screen-days.is-today .fu-screen-event { grid-template-columns: auto minmax(0, 1fr); padding: clamp(10px, 1.4vw, 20px); gap: clamp(8px, 1.2vw, 16px); }
#fu-app .fu-screen-days.is-today .fu-screen-event-mark { width: clamp(49px, 5.6vw, 82px); height: clamp(49px, 5.6vw, 82px); }
#fu-app .fu-screen-days.is-today .fu-screen-event-text strong { font-size: clamp(17px, 2vw, 29px); }
#fu-app .fu-screen-days.is-today { --fu-screen-person-size: 35px; }
#fu-app .fu-screen-days.is-today .fu-person-mark { font-size: 22px; }

@media (max-width: 930px) {
    #fu-app .fu-screen-days.is-week { grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); }
}
@media (max-width: 360px) {
    #fu-app .fu-heading-actions .fu-new-activity { width: 44px; }
    #fu-app .fu-heading-actions .fu-new-activity span { display: none; }
    #fu-app .fu-calendar-toolbar { flex-wrap: wrap; }
    #fu-app .fu-calendar-toolbar .fu-board-nav { margin-inline-start: auto; }
}
@media (max-width: 500px) {
    #fu-app .fu-screen-header { padding-inline: 12px; }
    #fu-app .fu-screen-heading { flex-basis: 100%; }
    #fu-app .fu-screen-options .fu-screen-controls { inset-inline-start: 0; inset-inline-end: auto; }
    #fu-app .fu-screen-days.is-week { grid-template-columns: minmax(0, 1fr); }
    #fu-app .fu-screen-days.is-week .fu-screen-event { grid-template-columns: auto minmax(0, 1fr); }
}

/* Skjermvisning som følger klokka */
@property --fu-now-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
#fu-app .fu-screen-clock { margin: 0; font: 800 clamp(26px, 3.4vw, 52px)/1 var(--fu-display, system-ui); color: var(--fu-dark); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
#fu-app .fu-screen-event { position: relative; transition: opacity .6s ease, filter .6s ease, transform .4s ease; }
#fu-app .fu-screen-badge:empty { display: none; }
#fu-app .fu-screen-badge { justify-self: start; padding: 2px 9px; border-radius: 99px; font-size: clamp(11px, .95vw, 15px); font-weight: 800; letter-spacing: .02em; background: var(--fu-white); color: var(--fu-muted); border: 1px solid var(--fu-border); }
#fu-app .fu-screen-progress { display: none; width: 100%; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--fu-screen-accent), white 70%); overflow: hidden; }
#fu-app .fu-screen-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--fu-screen-accent); transition: width 1s linear; }
#fu-app .fu-screen-event.is-past { opacity: .45; filter: saturate(.55); }
#fu-app .fu-screen-event.is-next .fu-screen-badge { background: var(--fu-dark); border-color: var(--fu-dark); color: #fff; }
#fu-app .fu-screen-event.is-now { z-index: 1; border-color: transparent; transform: scale(1.015); box-shadow: 0 0 0 2px color-mix(in srgb, var(--fu-screen-accent), transparent 55%); animation: fu-now-glow 3.2s ease-in-out infinite; }
#fu-app .fu-screen-event.is-now .fu-screen-badge { background: var(--fu-screen-accent); border-color: transparent; color: var(--fu-dark); }
#fu-app .fu-screen-event.is-now .fu-screen-progress { display: block; }
#fu-app .fu-screen-event.is-now::before {
    content: "";
    position: absolute;
    inset: -4px;
    padding: 4px;
    border-radius: 16px;
    background: conic-gradient(from var(--fu-now-angle), transparent 0deg, transparent 200deg, color-mix(in srgb, var(--fu-screen-accent), white 35%) 260deg, var(--fu-screen-accent) 320deg, color-mix(in srgb, var(--fu-screen-accent), var(--fu-dark) 35%) 345deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: fu-now-spin 7s linear infinite;
}
@keyframes fu-now-spin { to { --fu-now-angle: 360deg; } }
@keyframes fu-now-glow {
    0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--fu-screen-accent), transparent 55%), 0 6px 18px -8px color-mix(in srgb, var(--fu-screen-accent), transparent 40%); }
    50% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--fu-screen-accent), transparent 35%), 0 10px 30px -6px color-mix(in srgb, var(--fu-screen-accent), transparent 20%); }
}
#fu-app .fu-screen-tomorrow { display: flex; align-items: center; gap: 10px; margin: clamp(12px, 1.6vw, 24px) 0 0; padding: clamp(12px, 1.4vw, 20px); border-radius: 14px; background: var(--fu-white); border: 1px dashed var(--fu-border); font-size: clamp(15px, 1.5vw, 22px); }
#fu-app .fu-screen-tomorrow[hidden] { display: none; }
#fu-app .fu-screen-tomorrow .fu-ui-icon { width: 24px; height: 24px; color: #4c9a6d; flex: none; }
@media (prefers-reduced-motion: reduce) {
    #fu-app .fu-screen-event.is-now { animation: none; transform: none; box-shadow: 0 0 0 3px var(--fu-screen-accent); }
    #fu-app .fu-screen-event.is-now::before { animation: none; display: none; }
}
