:root{
  --vf-navy:#0a2947;--vf-navy-2:#133c5b;--vf-green:#168a67;--vf-green-2:#2eb383;--vf-mint:#eaf7f1;--vf-cream:#fbf8f2;--vf-sky:#eef6fa;
  --vf-surface:rgba(255,255,255,.88);--vf-line:rgba(16,52,72,.10);--vf-shadow:0 18px 55px rgba(15,42,60,.09);--vf-shadow-sm:0 8px 24px rgba(15,42,60,.07);
}
body.ui-2026{background:
  radial-gradient(circle at 10% -5%,rgba(46,179,131,.12),transparent 31rem),
  radial-gradient(circle at 92% 4%,rgba(77,142,190,.10),transparent 34rem),
  #f7f9f8;color:var(--text);letter-spacing:-.012em}
body.ui-2026 :is(h1,h2,h3,strong,.brand-name){letter-spacing:-.035em}
body.ui-2026 .topbar{border-bottom:1px solid var(--vf-line);box-shadow:0 1px 0 rgba(255,255,255,.9)}
body.ui-2026 .brand-icon{border-radius:11px;box-shadow:0 4px 14px rgba(10,41,71,.12)}
body.ui-2026 .brand-name{color:var(--vf-navy);font-weight:850}
body.ui-2026 .container{width:min(1180px,calc(100% - 30px))}
body.ui-2026 .card,body.ui-2026 .auth-card,body.ui-2026 .tv-panel{border:1px solid var(--vf-line);box-shadow:var(--vf-shadow-sm);background:var(--vf-surface);backdrop-filter:blur(18px)}
body.ui-2026 .card{border-radius:24px}
body.ui-2026 .eyebrow{color:var(--vf-green);font-weight:900;letter-spacing:.14em}
body.ui-2026 h1{color:var(--vf-navy);font-weight:880}
body.ui-2026 h2{color:var(--vf-navy);font-weight:840}
body.ui-2026 .muted,body.ui-2026 small{color:#6d7d88}
body.ui-2026 .primary{background:linear-gradient(135deg,var(--vf-green),var(--vf-green-2));box-shadow:0 8px 20px rgba(22,138,103,.20);transition:transform .15s ease,box-shadow .15s ease}
body.ui-2026 .primary:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(22,138,103,.26)}
body.ui-2026 .secondary{background:#fff;border:1px solid var(--vf-line);box-shadow:0 4px 12px rgba(15,42,60,.04)}
body.ui-2026 :is(input,select,textarea){border-color:rgba(16,52,72,.14);background:rgba(255,255,255,.94);min-height:45px}
body.ui-2026 :is(input,select,textarea):focus{border-color:var(--vf-green);box-shadow:0 0 0 4px rgba(22,138,103,.10)}
body.ui-2026 .page-head,body.ui-2026 .hero{padding:8px 2px 2px}
body.ui-2026 .page-head h1,body.ui-2026 .hero h1{font-size:clamp(2.15rem,4.5vw,3.35rem);line-height:1.02}
body.ui-2026 .section-head{margin-bottom:18px}
body.ui-2026 .section-head a{color:var(--vf-green);font-weight:800}
body.ui-2026 .adult-overview-strip{gap:12px}
body.ui-2026 .overview-stat{border:1px solid var(--vf-line);background:rgba(255,255,255,.82);border-radius:20px;box-shadow:var(--vf-shadow-sm);padding:18px;transition:transform .16s ease,border-color .16s ease}
body.ui-2026 .overview-stat:hover{transform:translateY(-2px);border-color:rgba(22,138,103,.24)}
body.ui-2026 .overview-stat.priority{background:linear-gradient(145deg,#e9f8f1,#fff);border-color:rgba(22,138,103,.15)}
body.ui-2026 .overview-stat strong{color:var(--vf-navy)}
body.ui-2026 .family-progress-person{border:1px solid var(--vf-line);background:#fff;border-radius:17px;box-shadow:0 4px 14px rgba(15,42,60,.04)}
body.ui-2026 .attention-row{border-color:rgba(16,52,72,.08);padding:13px 14px}
body.ui-2026 .task{border-color:var(--vf-line);border-radius:18px;box-shadow:0 3px 12px rgba(15,42,60,.035)}
body.ui-2026 .adult-task-line{border-color:rgba(16,52,72,.08)}
body.ui-2026 .admin-drawer{border:1px solid var(--vf-line);background:rgba(255,255,255,.82);border-radius:20px;box-shadow:0 5px 18px rgba(15,42,60,.045)}
body.ui-2026 .admin-drawer>summary{padding:16px 18px}
body.ui-2026 .reward-card{border-color:var(--vf-line);background:linear-gradient(145deg,#fff,#fbfdfc);border-radius:18px}
body.ui-2026 .long-term-goal-card{background:linear-gradient(145deg,#ecf9f3,#fff)}
body.ui-2026 .goal-progress-track{background:#dfece7}
body.ui-2026 .goal-progress-track span{background:linear-gradient(90deg,var(--vf-green),#44c693)}
body.ui-2026 .week-card,body.ui-2026 .month-card{border:1px solid var(--vf-line);box-shadow:var(--vf-shadow-sm);border-radius:22px}
body.ui-2026 .week-day>header,body.ui-2026 .month-headings{background:#f5f8f7}
body.ui-2026 .week-item,body.ui-2026 .month-item{border-color:rgba(16,52,72,.09)}
body.ui-2026 .view-toggle{border-color:var(--vf-line);box-shadow:0 4px 14px rgba(15,42,60,.04)}
body.ui-2026 .view-toggle a.active{background:var(--vf-navy)}
body.ui-2026.role-child{background:
  radial-gradient(circle at 10% 0%,rgba(46,179,131,.16),transparent 28rem),
  radial-gradient(circle at 92% 12%,rgba(255,193,94,.13),transparent 30rem),
  #f8fbf8}
body.ui-2026.role-child .topbar{background:rgba(255,255,255,.9)}
body.ui-2026 .child-home-goal{border-color:rgba(22,138,103,.15);box-shadow:var(--vf-shadow)}
body.ui-2026 .child-dashboard-task{border:1px solid var(--vf-line);border-radius:22px;background:linear-gradient(145deg,#fff,#f8fbfa);box-shadow:0 8px 22px rgba(15,42,60,.05)}
body.ui-2026 .happy-points,.ui-2026 .points{background:linear-gradient(145deg,var(--vf-navy),#245c7d);border-radius:22px}
body.ui-2026 .tv-child-column,body.ui-2026 .tv-adult-task-card{border-color:var(--vf-line);box-shadow:var(--vf-shadow-sm)}
body.ui-2026 .tv-child-column{border-radius:24px;background:rgba(255,255,255,.92)}
body.ui-2026 .tv-parent-mode,body.ui-2026 .tv-parent-note{border-color:var(--vf-line);box-shadow:var(--vf-shadow-sm)}
body.ui-2026 .success-note{border:1px solid rgba(22,138,103,.12);background:#edf9f3}
body.ui-2026 .alert{border:1px solid rgba(185,65,65,.10);background:#fff3f3}
body.public-shell{background:
  radial-gradient(circle at 12% 0%,rgba(46,179,131,.14),transparent 34rem),
  radial-gradient(circle at 90% 8%,rgba(67,145,191,.10),transparent 34rem),
  #f7faf8}
body.public-shell .topbar{background:rgba(255,255,255,.86);backdrop-filter:blur(22px);border-color:var(--vf-line)}
body.public-shell .auth-layout{min-height:calc(100vh - 170px);display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,.75fr);align-items:center;gap:54px;max-width:1060px;margin:0 auto;padding:48px 24px 72px}
/* The longer registration form must not vertically centre its introduction. */
body.public-shell .auth-layout:has(.auth-registration-card){align-items:start}
body.public-shell .auth-welcome{padding:42px 18px 42px 24px}
body.public-shell .auth-welcome img{width:86px;height:86px;border-radius:24px;box-shadow:0 16px 34px rgba(15,42,60,.12)}
body.public-shell .auth-welcome h1{font-size:clamp(3rem,6vw,5.2rem);line-height:.95;margin:16px 0 20px}
body.public-shell .auth-welcome>p:last-of-type{font-size:1.16rem;max-width:490px;color:#61717c}
body.public-shell .auth-welcome-pills{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}
body.public-shell .auth-welcome-pills span{background:#fff;border:1px solid var(--vf-line);padding:9px 12px;border-radius:999px;font-size:.82rem;font-weight:800;box-shadow:0 4px 12px rgba(15,42,60,.035)}
body.public-shell .auth-card{margin:0;width:100%;padding:34px;border-radius:28px;box-shadow:0 30px 80px rgba(15,42,60,.13)}
body.public-shell .auth-card-head{display:flex;align-items:center;gap:17px;margin-bottom:24px}
body.public-shell .auth-brand-icon{border-radius:20px;box-shadow:0 10px 26px rgba(15,42,60,.11)}
body.public-shell .portal-login-form{gap:17px}
body.public-shell .portal-login-button{min-height:50px;border-radius:15px;font-size:1rem}
body.public-shell .login-options{display:flex;justify-content:space-between;align-items:center;gap:14px}
body.public-shell .login-child-security{padding:12px 14px;border-radius:14px;background:#f6f8f7;color:#60717b;font-size:.84rem}
body.ui-2026 .site-footer{border-top:1px solid var(--vf-line);color:#6b7b86}
body.ui-2026 .site-footer a{color:#5f717c}
@media(max-width:980px){
  body.public-shell .auth-layout{grid-template-columns:1fr;gap:18px;padding-top:20px}
  body.public-shell .auth-welcome{text-align:center;padding-bottom:10px}
  body.public-shell .auth-welcome>p:last-of-type{margin-inline:auto}
  body.public-shell .auth-welcome-pills{justify-content:center}
  body.public-shell .auth-welcome h1{font-size:clamp(2.8rem,11vw,4.6rem)}
}
@media(max-width:760px){
  body.ui-2026 .container{width:min(100% - 18px,1180px);margin-top:14px}
  body.ui-2026 .card{border-radius:20px;padding:17px}
  body.ui-2026 .page-head h1,body.ui-2026 .hero h1{font-size:clamp(2rem,10vw,2.8rem)}
  body.ui-2026 .adult-overview-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ui-2026 .overview-stat{padding:14px;border-radius:17px}
  body.public-shell .auth-layout{padding:12px 14px 48px}
  body.public-shell .auth-welcome{padding:26px 8px 8px}
  body.public-shell .auth-welcome img{width:68px;height:68px}
  body.public-shell .auth-card{padding:23px;border-radius:22px}
  body.public-shell .auth-card-head .auth-brand-icon{width:56px;height:56px}
}
@media(max-width:480px){
  body.ui-2026 .adult-overview-strip{grid-template-columns:1fr 1fr}
  body.ui-2026 .overview-stat strong{font-size:1.55rem}
  body.public-shell .auth-welcome h1{font-size:2.65rem}
  body.public-shell .auth-welcome-pills{display:none}
}
/* Oppgaver */
body.ui-2026 .tasks-page .friendly-page-head{margin-bottom:20px}
body.ui-2026 .unified-task-create{background:linear-gradient(145deg,#f1faf6,#fff);border-color:rgba(22,138,103,.13)}
body.ui-2026 .task-kind-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:5px;background:#eef3f1;border-radius:15px}
body.ui-2026 .task-kind-picker label{border-radius:11px;padding:10px 12px;background:transparent}
body.ui-2026 .task-kind-picker label:has(input:checked){background:#fff;box-shadow:0 4px 13px rgba(15,42,60,.07);color:var(--vf-green)}
body.ui-2026 .adult-child-task-groups{display:grid;gap:12px}
body.ui-2026 .adult-child-task-group>summary{background:linear-gradient(90deg,#fff,#f7faf8)}
body.ui-2026 .adult-task-lines{background:#fbfcfc}
body.ui-2026 .adult-task-line{padding:13px 14px}
body.ui-2026 .task-summary{border-radius:16px!important;border-color:var(--vf-line)!important;box-shadow:0 4px 14px rgba(15,42,60,.04)}
body.ui-2026 .weekday-picks label{background:#fff;border-color:var(--vf-line);border-radius:12px}

/* Kalender */
body.ui-2026 .calendar-mac-layout{gap:16px}
body.ui-2026 .calendar-unified-create{background:linear-gradient(145deg,#eef7fb,#fff)}
body.ui-2026 .calendar-kind-switch{background:#edf2f1;border-radius:14px;padding:5px}
body.ui-2026 .calendar-kind-switch label:has(input:checked){background:#fff;border-radius:10px;box-shadow:0 4px 12px rgba(15,42,60,.06)}
body.ui-2026 .week-day.today>header{background:var(--vf-mint);color:var(--vf-green)}
body.ui-2026 .week-item.event{border-left-color:#498ebc}
body.ui-2026 .week-item.task{border-left-color:var(--vf-green)}
body.ui-2026 .month-day.today{box-shadow:inset 0 0 0 2px var(--vf-green)}
body.ui-2026 .month-day.today>header strong{background:var(--vf-green)}
/* Flokken */
body.ui-2026 .family-page .mac-settings-members{background:linear-gradient(145deg,#f5fbf8,#fff)}
body.ui-2026 .family-hierarchy{gap:10px}
body.ui-2026 .member-profile{padding:15px;border:1px solid var(--vf-line);border-radius:18px;background:#fff;box-shadow:0 5px 16px rgba(15,42,60,.035)}
body.ui-2026 .member-profile+.member-profile{margin-top:0}
body.ui-2026 .family-settings-drawer>summary span:first-child{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#f1f6f4}
body.ui-2026 .privacy-note{background:#f3f8f5;border-color:var(--vf-line)}

/* Premier */
body.ui-2026 .rewards-page .reward-hero{padding-bottom:4px}
body.ui-2026 .mac-reward-store{background:linear-gradient(145deg,#fff,#fbfdfc)}
body.ui-2026 .reward-grid{gap:13px}
body.ui-2026 .reward-card{padding:17px;transition:transform .15s ease,box-shadow .15s ease}
body.ui-2026 .reward-card:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,42,60,.07)}
body.ui-2026 .reward-emoji{background:linear-gradient(145deg,#fff4df,#fff);border:1px solid rgba(224,163,64,.12)}
body.ui-2026 .reward-share-pill{background:#eef7f3;color:#4f7164}
body.ui-2026 .reward-celebration{border-radius:22px;background:linear-gradient(145deg,#eaf8f1,#fff);border:1px solid rgba(22,138,103,.13)}
body.ui-2026 .ledger-row{border-color:rgba(16,52,72,.08)}

/* Flokktavle */
body.ui-2026 #flokktavle{max-width:1500px;margin-inline:auto}
body.ui-2026 .tv-hero{padding:8px 4px 2px}
body.ui-2026 .tv-child-columns{gap:14px}
body.ui-2026 .tv-child-column-head{padding-bottom:14px;border-bottom:1px solid rgba(16,52,72,.08)}
body.ui-2026 .tv-column-label{color:#60727d}
body.ui-2026 .tv-child-task{border-color:rgba(16,52,72,.08);background:#fafcfb;border-radius:14px}
body.ui-2026 .tv-today-block{background:#f6faf8;border-radius:16px}
body.ui-2026 .tv-rule-card{border-color:rgba(16,52,72,.08);background:#fff}
body.ui-2026 .tv-adult-task-card{background:linear-gradient(145deg,#fff,#f7faf8);border-radius:18px}
@media(max-width:760px){
  body.ui-2026 .task-kind-picker{grid-template-columns:1fr 1fr}
  body.ui-2026 .adult-task-line{padding:12px}
  body.ui-2026 .member-profile{padding:13px;border-radius:16px}
  body.ui-2026 .tv-child-columns{grid-template-columns:1fr}
  body.ui-2026 .tv-child-column.is-inactive-child{opacity:.88}
}
/* Offentlige sider skal alltid være lyse og rolige, uavhengig av lagret tema. */
:root[data-mode="light"] body.public-shell,
body.public-shell{
  color-scheme:light;
  --bg:#f7faf8;--panel:#fff;--text:#102d4b;--muted:#657682;--line:#dce7e2;--primary:#168a67;--primary-soft:#eaf7f1;
  background:
    radial-gradient(circle at 13% 4%,rgba(49,181,132,.16),transparent 31rem),
    radial-gradient(circle at 88% 12%,rgba(88,159,199,.12),transparent 34rem),
    linear-gradient(180deg,#fcfefd 0%,#f5faf7 100%) !important;
  background-attachment:fixed!important;
}
/* 2026-09-23: adult web shell uses a real sidebar instead of a floating dock. */
@media(min-width:901px){
  body:is(.role-owner,.role-parent){--vf-sidebar:214px;min-height:100vh;background:#f5f8f7!important;padding-left:var(--vf-sidebar)}
}
@media(min-width:901px){
  body:is(.role-owner,.role-parent)>.topbar{position:fixed;z-index:35;top:0;left:var(--vf-sidebar);right:0;min-height:58px;padding:8px 18px;background:rgba(255,255,255,.93)!important;border-bottom:1px solid var(--vf-line);box-shadow:0 5px 22px rgba(15,42,60,.05);backdrop-filter:blur(18px)}
  body:is(.role-owner,.role-parent)>.topbar>.brand{display:none}
  body:is(.role-owner,.role-parent) .site-footer{display:none!important}
}
@media(max-width:900px){
  body:is(.role-owner,.role-parent){padding-left:0;background:#f5f8f7!important}
  body:is(.role-owner,.role-parent)>.topbar{position:sticky;top:0;z-index:45;min-height:58px;padding:8px 12px;background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--vf-line);box-shadow:0 4px 18px rgba(15,42,60,.05);backdrop-filter:blur(18px)}
  body:is(.role-owner,.role-parent)>.topbar>.brand{display:flex;width:auto}
  body:is(.role-owner,.role-parent)>.topbar .brand-icon{width:34px;height:34px;border-radius:10px}
  body:is(.role-owner,.role-parent)>.topbar .brand-name{font-size:.95rem}
}
@media(max-width:700px){
  body:is(.role-owner,.role-parent)>.topbar{display:flex;flex-wrap:nowrap;gap:8px}
}
@media(min-width:901px){
  body:is(.role-owner,.role-parent) .today-page{gap:10px}
  body:is(.role-owner,.role-parent) .adult-overview-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}
  body:is(.role-owner,.role-parent) .overview-stat{min-height:88px;padding:13px 15px;border-radius:16px}
  body:is(.role-owner,.role-parent) .overview-stat span{font-size:.66rem}
  body:is(.role-owner,.role-parent) .overview-stat strong{font-size:1.65rem}
  body:is(.role-owner,.role-parent) .overview-stat small{font-size:.68rem}
  body:is(.role-owner,.role-parent) .family-progress-card{margin-bottom:10px;padding:14px 16px}
  body:is(.role-owner,.role-parent) .family-progress-card .section-head{margin-bottom:9px}
  body:is(.role-owner,.role-parent) .family-progress-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:7px}
  body:is(.role-owner,.role-parent) .family-progress-person{padding:8px 10px;border-radius:13px}
  body:is(.role-owner,.role-parent) .family-progress-person img,body:is(.role-owner,.role-parent) .progress-avatar{width:34px;height:34px}
  body:is(.role-owner,.role-parent) .today-page>.card{margin-bottom:10px;padding:14px 16px}
}
/* Landing/login palette across the adult web shell. */
@media(min-width:901px){
  body:is(.role-owner,.role-parent){background:#f7faf8!important}
}
/* One VårFlokk palette while the product design is being finalized. */
body.ui-2026{
  --bg:#f7faf8;
  --panel:#ffffff;
  --surface-2:#f4f8f6;
  --text:#102d4b;
  --ink:#102d4b;
  --muted:#657682;
  --line:rgba(16,52,72,.10);
  --primary:#168a67;
  --primary-soft:#eaf7f1;
  --success:#168a67;
  --accent:#168a67;
  background:#f7faf8;
}
body.ui-2026 :is(.page-head) h1{color:var(--vf-navy)}
body.ui-2026 a{accent-color:var(--vf-green)}
body.ui-2026 .points{background:linear-gradient(145deg,var(--vf-navy),#174563)}
body.ui-2026 .status-dot.open{background:var(--vf-green)}
/* Compact weather belongs in the top bar, not as a dashboard card. */
.topbar-weather{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 10px;border:1px solid rgba(22,138,103,.11);border-radius:12px;background:#edf8f3;color:var(--vf-navy);white-space:nowrap}
.topbar-weather>span{font-size:1.05rem;line-height:1}
.topbar-weather>strong{font-size:.78rem;letter-spacing:-.02em}
.topbar-weather>small{font-size:.68rem;color:#62766e}
.dashboard-open-list{min-width:0}
.dashboard-event-list{display:grid}
.dashboard-member-tasks{min-width:0;border:1px solid var(--vf-line);border-radius:15px;background:#fff;overflow:hidden}
.dashboard-member-tasks>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;background:#f4f9f6;border-bottom:1px solid var(--vf-line)}
.dashboard-member-tasks>header strong{display:flex;align-items:center;min-width:0;color:var(--vf-navy);font-size:.78rem}
.dashboard-member-tasks>header small{color:#72827c;font-size:.63rem;white-space:nowrap}
.dashboard-member-tasks .attention-list{padding:4px 8px}
.dashboard-member-tasks .attention-row{padding:8px 5px;background:transparent;border:0;border-bottom:1px solid rgba(16,52,72,.07);border-radius:0}
.dashboard-member-tasks .attention-row:last-child{border-bottom:0}

@media(min-width:901px){
  body:is(.role-owner,.role-parent) .today-minimal-page{width:100%;max-width:1600px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px}
  body:is(.role-owner,.role-parent) .today-minimal-page>.adult-overview-strip{grid-column:1/-1;margin:0}
  body:is(.role-owner,.role-parent) .today-minimal-page>.family-progress-card{grid-column:1/-1;margin:0}
  body:is(.role-owner,.role-parent) .today-minimal-page>.attention-card{grid-column:span 8;margin:0;padding:13px 14px}
  body:is(.role-owner,.role-parent) .today-minimal-page>.attention-card+ .card{grid-column:span 4;margin:0;padding:13px 14px}
  body:is(.role-owner,.role-parent) .attention-child-groups{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:8px}
  body:is(.role-owner,.role-parent) .today-page .section-head{margin-bottom:8px}
  body:is(.role-owner,.role-parent) .today-page .section-head h2{font-size:1rem}
  body:is(.role-owner,.role-parent) .today-page .event-row{padding:8px 0}
  body:is(.role-owner,.role-parent) .today-page .event-row .datebox{min-width:42px;padding:6px;font-size:.72rem}
}
@media(max-width:1100px) and (min-width:901px){
  body:is(.role-owner,.role-parent) .today-minimal-page>.attention-card,
  body:is(.role-owner,.role-parent) .today-minimal-page>.attention-card+ .card{grid-column:1/-1}
}
@media(max-width:900px){
  .topbar-weather{margin-left:auto;padding:5px 8px}
  .topbar-weather>small{display:none}
}
@media(max-width:700px){
  .topbar-weather{min-height:34px}
  .topbar-weather>strong{font-size:.72rem}
}
/* Compact Oppgaver workspace + modal create flow. */
.tasks-toolbar{display:flex!important;align-items:flex-end;justify-content:space-between;gap:18px}
.tasks-toolbar>div{min-width:0}
.tasks-toolbar .task-new-button{flex:0 0 auto;min-height:42px;padding:9px 15px;border-radius:12px}

.task-create-modal{width:min(760px,calc(100vw - 28px));max-width:760px;padding:0;border:0;border-radius:24px;background:#fff;color:var(--vf-navy);box-shadow:0 34px 100px rgba(15,42,60,.24);overflow:hidden}
.task-create-modal::backdrop{background:rgba(10,34,49,.34);backdrop-filter:blur(5px)}
.task-modal-shell{max-height:min(86vh,820px);overflow:auto}
.task-modal-head{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:21px 24px 16px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--vf-line);backdrop-filter:blur(18px)}
.task-modal-head h2{margin:2px 0 3px;font-size:1.45rem}
.task-modal-head p:last-child{margin:0;color:var(--muted);font-size:.78rem}
.task-modal-close{width:38px;height:38px;min-width:38px;min-height:38px;padding:0;border:1px solid var(--vf-line);border-radius:50%;background:#f3f7f5;color:var(--vf-navy);font-size:1.45rem;line-height:1}
.task-create-modal .unified-task-create{max-width:none;padding:20px 24px 24px;background:#fff!important;border:0!important}
.task-modal-form{gap:14px}
.task-modal-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:12px}
.task-modal-title-field{grid-column:1/-1}
.task-modal-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:9px;margin:4px -24px -24px;padding:14px 24px;background:rgba(255,255,255,.96);border-top:1px solid var(--vf-line);backdrop-filter:blur(18px)}
.task-modal-actions button{min-width:112px}

body:is(.role-owner,.role-parent) .tasks-page>.friendly-task-section{padding:12px 14px!important}
body:is(.role-owner,.role-parent) .tasks-page>.friendly-task-section>.section-head{padding:0 2px 8px!important;margin-bottom:8px}
body:is(.role-owner,.role-parent) .tasks-page .task-status-summary{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))!important;margin:7px 0 9px!important}
body:is(.role-owner,.role-parent) .tasks-page .task-summary{min-height:40px!important;padding:7px 9px!important;border-radius:10px!important;font-size:.68rem!important}

body:is(.role-owner,.role-parent) .tasks-page .adult-child-task-groups{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px!important;align-items:start}
body:is(.role-owner,.role-parent) .tasks-page .adult-child-task-group{min-width:0;border:1px solid var(--vf-line);border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 4px 16px rgba(15,42,60,.035)}
body:is(.role-owner,.role-parent) .tasks-page .task-static-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;padding:9px 11px;background:linear-gradient(90deg,#f3f9f6,#f9fcfa);border-bottom:1px solid var(--vf-line)}
body:is(.role-owner,.role-parent) .tasks-page .task-static-group-head>span{display:grid;gap:1px;min-width:0}
body:is(.role-owner,.role-parent) .tasks-page .task-static-group-head strong{color:var(--vf-navy);font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:is(.role-owner,.role-parent) .tasks-page .task-static-group-head small{color:var(--muted);font-size:.62rem}
body:is(.role-owner,.role-parent) .tasks-page .adult-task-lines{padding:3px 7px 6px!important;background:#fff}
body:is(.role-owner,.role-parent) .tasks-page .adult-task-line{grid-template-columns:42px minmax(0,1fr);gap:6px 8px;min-height:0!important;padding:8px 3px!important;border-top:1px solid rgba(16,52,72,.07)!important}
body:is(.role-owner,.role-parent) .tasks-page .adult-task-line:first-child{border-top:0!important}
body:is(.role-owner,.role-parent) .tasks-page .adult-task-line time{grid-column:1;font-size:.7rem}
body:is(.role-owner,.role-parent) .tasks-page .adult-task-line>div:nth-child(2){grid-column:2}
body:is(.role-owner,.role-parent) .tasks-page .adult-task-line>div:nth-child(2) strong{font-size:.77rem}
body:is(.role-owner,.role-parent) .tasks-page .adult-task-line>div:nth-child(2) small{font-size:.61rem}
body:is(.role-owner,.role-parent) .tasks-page .adult-task-line>b{grid-column:1;text-align:left;font-size:.62rem;color:var(--muted)}
body:is(.role-owner,.role-parent) .tasks-page .adult-task-actions{grid-column:2;justify-content:flex-end;gap:4px}
body:is(.role-owner,.role-parent) .tasks-page .adult-task-actions :is(button,a){min-height:28px;padding:4px 7px!important;font-size:.62rem!important}
@media(max-width:1290px) and (min-width:901px){
  body:is(.role-owner,.role-parent) .tasks-page .adult-child-task-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .tasks-toolbar{align-items:center}
  .task-create-modal{width:min(720px,calc(100vw - 20px));border-radius:21px}
}
@media(max-width:650px){
  .tasks-toolbar{align-items:flex-start}
  .tasks-toolbar .task-new-button{padding:8px 11px;font-size:.78rem}
  .task-create-modal{width:100%;max-width:none;margin:0;position:fixed;inset:auto 0 0;border-radius:22px 22px 0 0;max-height:92dvh}
  .task-modal-shell{max-height:92dvh}
  .task-modal-head{padding:17px 17px 13px}
  .task-create-modal .unified-task-create{padding:16px 17px calc(17px + env(safe-area-inset-bottom))}
  .task-modal-grid{grid-template-columns:1fr}
  .task-modal-title-field{grid-column:1}
  .task-modal-actions{margin:2px -17px calc(-17px - env(safe-area-inset-bottom));padding:12px 17px calc(12px + env(safe-area-inset-bottom))}
  body:is(.role-owner,.role-parent) .tasks-page .adult-child-task-groups{grid-template-columns:1fr}
}
/* Oppgaveoversikt: status counts are compact chips, not dashboard cards. */
body:is(.role-owner,.role-parent) .tasks-page .task-status-summary{
  display:flex!important;
  flex-wrap:wrap;
  align-items:center;
  gap:6px!important;
  margin:4px 0 9px!important;
}
body:is(.role-owner,.role-parent) .tasks-page .task-summary{
  min-height:0!important;
  width:auto!important;
  flex:0 0 auto;
  display:inline-flex!important;
  align-items:center;
  padding:5px 8px!important;
  border:1px solid var(--vf-line)!important;
  border-left-width:1px!important;
  border-radius:999px!important;
  background:#f5f8f7!important;
  box-shadow:none!important;
  color:#5e706a!important;
  font-size:.64rem!important;
  font-weight:800;
  line-height:1!important;
}
body:is(.role-owner,.role-parent) .tasks-page .task-summary.open{background:#edf8f3!important;color:var(--vf-green)!important}
body:is(.role-owner,.role-parent) .tasks-page .task-summary.submitted{background:#fff8e9!important;color:#9b6b16!important}
body:is(.role-owner,.role-parent) .tasks-page .task-summary.rejected{background:#fff1f1!important;color:#a74c4c!important}
body:is(.role-owner,.role-parent) .tasks-page .task-summary.approved{background:#f0f7f4!important;color:#587369!important}
body:is(.role-owner,.role-parent) .tasks-page .task-summary.recurring{background:#f1f5f3!important;color:#536963!important}
@media(max-width:520px){
  body:is(.role-owner,.role-parent) .tasks-page .task-status-summary{display:flex!important}
  body:is(.role-owner,.role-parent) .tasks-page .task-summary.recurring{grid-column:auto!important}
}
/* Oppgavevinduer: reward, edit and owner tools. */
.task-reward-modal,.task-edit-modal,.task-tools-modal{padding:0;border:0;background:#fff;color:var(--vf-navy);border-radius:22px;box-shadow:0 34px 100px rgba(15,42,60,.24);overflow:hidden}
.task-reward-modal{width:min(540px,calc(100vw - 26px))}
.task-edit-modal{width:min(650px,calc(100vw - 26px))}
.task-tools-modal{width:min(520px,calc(100vw - 26px))}
.task-reward-modal::backdrop,.task-edit-modal::backdrop,.task-tools-modal::backdrop{background:rgba(10,34,49,.34);backdrop-filter:blur(5px)}
.reward-modal-shell,.task-edit-shell,.task-tools-shell{max-height:min(86vh,800px);overflow:auto}
.reward-modal-head,.task-edit-head{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:19px 21px 14px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--vf-line);backdrop-filter:blur(18px)}
.reward-modal-head h2,.task-edit-head h2{margin:2px 0 3px;font-size:1.28rem}
.reward-modal-head p:last-child,.task-edit-head p:last-child{margin:0;color:var(--muted);font-size:.74rem}
.reward-modal-form,.task-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 21px}
.reward-modal-wide,.task-edit-form>label:not(:nth-child(2)):not(:nth-child(3)),.task-edit-form>div:not(.form-grid){grid-column:1/-1}
.reward-modal-actions,.task-edit-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;margin:3px -21px -18px;padding:13px 21px;background:#fbfdfc;border-top:1px solid var(--vf-line)}
.task-edit-delete{padding:11px 21px 18px;border-top:1px solid rgba(16,52,72,.07);background:#fff}
.task-edit-delete button{width:100%}
.task-tools-body{display:grid;gap:13px;padding:18px 21px}
.task-tools-body p{margin:0;color:var(--muted);line-height:1.5;font-size:.78rem}
.task-tools-body form{margin:0}
.task-tools-body button{width:100%}
.task-edit-form .weekday-picks{grid-template-columns:repeat(7,minmax(0,1fr))}
.task-edit-form .weekday-picks label{padding:7px 5px;font-size:.65rem}
@media(max-width:650px){
  .task-reward-modal,.task-edit-modal,.task-tools-modal{width:100%;max-width:none;margin:0;position:fixed;inset:auto 0 0;border-radius:22px 22px 0 0;max-height:92dvh}
  .reward-modal-shell,.task-edit-shell,.task-tools-shell{max-height:92dvh}
  .reward-modal-form,.task-edit-form{grid-template-columns:1fr;padding:16px 17px}
  .reward-modal-wide,.task-edit-form>*{grid-column:1!important}
  .reward-modal-head,.task-edit-head{padding:17px 17px 13px}
  .reward-modal-actions,.task-edit-actions{margin:2px -17px -16px;padding:12px 17px calc(12px + env(safe-area-inset-bottom))}
  .task-edit-delete{padding:11px 17px calc(16px + env(safe-area-inset-bottom))}
  .task-tools-body{padding:16px 17px calc(17px + env(safe-area-inset-bottom))}
  .task-edit-form .weekday-picks{grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* Shared overlay drawers for Calendar, Rewards, Flock and Rules. */
.surface-modal-open{overflow:hidden}
.surface-modal-drawer:not([open]){display:none!important}
.surface-modal-drawer[open]{
  position:fixed!important;z-index:140;top:50%;left:50%;transform:translate(-50%,-50%);
  width:min(820px,calc(100vw - 30px));max-height:86vh;margin:0!important;padding:0!important;
  display:flex!important;flex-direction:column;overflow:hidden;
  border:1px solid var(--vf-line)!important;border-radius:24px!important;background:#fff!important;
  box-shadow:0 36px 110px rgba(15,42,60,.27)!important
}
.surface-modal-drawer[open]::before{
  content:"";position:fixed;inset:-100vh -100vw;z-index:-1;background:rgba(10,34,49,.35);backdrop-filter:blur(5px)
}
.surface-modal-drawer[open]>summary{
  flex:0 0 auto;display:grid!important;grid-template-columns:36px 1fr 40px;align-items:center;gap:11px;
  min-height:68px;padding:13px 17px!important;list-style:none;background:rgba(255,255,255,.97)!important;
  border-bottom:1px solid var(--vf-line)!important;cursor:pointer
}
.surface-modal-drawer[open]>summary::-webkit-details-marker{display:none}
.surface-modal-drawer[open]>summary>span:first-child{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--vf-mint);color:var(--vf-green)}
.surface-modal-drawer[open]>summary>div strong,.surface-modal-drawer[open]>summary>div small{display:block}
.surface-modal-drawer[open]>summary>div strong{color:var(--vf-navy);font-size:.92rem}
.surface-modal-drawer[open]>summary>div small{margin-top:2px;color:var(--muted);font-size:.68rem}
.surface-modal-drawer[open]>summary>b{font-size:0;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#f3f7f5;color:var(--vf-navy)}
.surface-modal-drawer[open]>summary>b::after{content:"×";font-size:1.45rem;line-height:1}
.surface-modal-drawer[open]>.admin-drawer-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior:contain;padding:18px!important;background:#fbfdfc!important}
.surface-modal-drawer[open] .card{box-shadow:none!important;border-radius:18px!important}
.surface-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.surface-actions :is(button,a){min-height:40px;padding:8px 12px;border-radius:11px;font-size:.72rem}
@media(max-width:680px){
  .surface-modal-drawer[open]{top:auto;bottom:0;left:0;transform:none;width:100%;max-height:92dvh;border-radius:22px 22px 0 0!important}
  .surface-modal-drawer[open]>.admin-drawer-body{padding:15px!important;padding-bottom:calc(16px + env(safe-area-inset-bottom))!important}
  .surface-actions{justify-content:flex-start;width:100%}
}
/* Compact secondary surfaces: Calendar, Rewards, Flock and Rules. */

body:is(.role-owner,.role-parent) .calendar-page .mac-calendar-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
body:is(.role-owner,.role-parent) .calendar-page .calendar-mac-layout{grid-template-columns:170px minmax(0,1fr);gap:10px}
body:is(.role-owner,.role-parent) .calendar-page .week-card{padding:0;overflow:hidden}
body:is(.role-owner,.role-parent) .calendar-page .week-day{min-width:0}
body:is(.role-owner,.role-parent) .calendar-page .calendar-day-details{border:0;background:transparent}
body:is(.role-owner,.role-parent) .calendar-page .calendar-day-lines{padding:3px 5px 7px}
body:is(.role-owner,.role-parent) .calendar-page .week-item{padding:8px;border-radius:10px}
body:is(.role-owner,.role-parent) .calendar-page .week-item strong{font-size:.76rem}
body:is(.role-owner,.role-parent) .calendar-page .week-item p,body:is(.role-owner,.role-parent) .calendar-page .week-item small{font-size:.62rem}

body:is(.role-owner,.role-parent) .rewards-page>.grid.two{grid-template-columns:1fr!important}
body:is(.role-owner,.role-parent) .rewards-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
body:is(.role-owner,.role-parent) .rewards-page .mac-reward-store{padding:14px}
body:is(.role-owner,.role-parent) .rewards-page .reward-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
body:is(.role-owner,.role-parent) .rewards-page .reward-card{min-height:0;padding:13px;border-radius:15px}
body:is(.role-owner,.role-parent) .rewards-page .reward-card h3{font-size:.9rem}
body:is(.role-owner,.role-parent) .rewards-page .reward-card p{font-size:.7rem;line-height:1.4}
body:is(.role-owner,.role-parent) .rewards-page .reward-emoji{width:38px;height:38px}
body:is(.role-owner,.role-parent) .reward-pending-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

body:is(.role-owner,.role-parent) .family-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
body:is(.role-owner,.role-parent) .family-page .family-primary{display:block}
body:is(.role-owner,.role-parent) .family-page .mac-settings-members{padding:14px}
body:is(.role-owner,.role-parent) .family-page .family-hierarchy{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
body:is(.role-owner,.role-parent) .family-page .member-profile{padding:11px;border-radius:15px}
body:is(.role-owner,.role-parent) .family-page .member-profile .avatar{width:40px;height:40px}
body:is(.role-owner,.role-parent) .family-page .member-profile .member-body>strong{font-size:.82rem}
body:is(.role-owner,.role-parent) .family-page .member-profile .member-body>p{font-size:.66rem}
body:is(.role-owner,.role-parent) .family-page .compact-info-drawer{margin:6px 0 10px}

.rules-main-grid{display:block}
body:is(.role-owner,.role-parent) .rules-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
body:is(.role-owner,.role-parent) .rules-page .mac-rules-list{padding:14px}
body:is(.role-owner,.role-parent) .rules-page .rule-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body:is(.role-owner,.role-parent) .rules-page .rule-card{margin:0;padding:12px;border-radius:14px}
body:is(.role-owner,.role-parent) .rules-page .rule-body h3{font-size:.86rem}
body:is(.role-owner,.role-parent) .rules-page .rule-body p{font-size:.7rem}
body:is(.role-owner,.role-parent) .rules-page .rule-body>small{font-size:.6rem}

@media(max-width:1180px) and (min-width:901px){
  body:is(.role-owner,.role-parent) .rewards-page .reward-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body:is(.role-owner,.role-parent) .family-page .family-hierarchy{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  body:is(.role-owner,.role-parent) .calendar-page .mac-calendar-toolbar,
  body:is(.role-owner,.role-parent) .rewards-toolbar,
  body:is(.role-owner,.role-parent) .family-toolbar,
  body:is(.role-owner,.role-parent) .rules-toolbar{align-items:flex-start;flex-direction:column}
  body:is(.role-owner,.role-parent) .calendar-page .calendar-mac-layout{grid-template-columns:1fr}
  body:is(.role-owner,.role-parent) .rewards-page .reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  body:is(.role-owner,.role-parent) .rewards-page .reward-grid,
  body:is(.role-owner,.role-parent) .reward-pending-list,
  body:is(.role-owner,.role-parent) .family-page .family-hierarchy,
  body:is(.role-owner,.role-parent) .rules-page .rule-list{grid-template-columns:1fr}
}
/* Flokktavle weather: compact status strip, not a full card. */
body.ui-2026 #flokktavle .tv-weather-strip{
  display:flex;align-items:center;gap:10px;min-height:46px;margin:0 0 9px;padding:7px 11px;
  border:1px solid rgba(22,138,103,.12);border-radius:14px;background:linear-gradient(90deg,#edf8f3,#f8fbfa);
  box-shadow:0 4px 14px rgba(15,42,60,.035)
}
body.ui-2026 #flokktavle .tv-weather-icon{font-size:1.35rem;line-height:1}
body.ui-2026 #flokktavle .tv-weather-main{display:grid;gap:1px;min-width:0}
body.ui-2026 #flokktavle .tv-weather-main strong{color:var(--vf-navy);font-size:.84rem}
body.ui-2026 #flokktavle .tv-weather-main small{color:#687b72;font-size:.62rem}
body.ui-2026 #flokktavle .tv-weather-clothes{margin-left:auto;display:flex;align-items:center;gap:5px;max-width:46%;padding-left:10px;border-left:1px solid rgba(22,138,103,.12)}
body.ui-2026 #flokktavle .tv-weather-clothes small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5f726a;font-size:.63rem}
body.ui-2026 #flokktavle .tv-weather-strip.unavailable{min-height:38px;color:var(--muted)}
.surface-count-chip{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:var(--vf-surface-soft,#f2f7f4);color:var(--vf-ink,var(--text));font-size:.65rem;font-weight:800}
@media(max-width:700px){
  body.ui-2026 #flokktavle .tv-weather-strip{min-height:40px;padding:6px 9px}
  body.ui-2026 #flokktavle .tv-weather-clothes{display:none}
}
/* Flokken: every real member is an independent compact card in one grid. */
body:is(.role-owner,.role-parent) .family-page .family-hierarchy{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
  align-items:start;
}
body:is(.role-owner,.role-parent) .family-page .member-profile{
  min-width:0;margin:0!important;padding:11px!important;border-radius:15px!important;
  display:grid;grid-template-columns:40px minmax(0,1fr);gap:9px;align-items:start
}
body:is(.role-owner,.role-parent) .family-page .member-profile.role-owner{background:linear-gradient(145deg,#f0f9f5,#fff)}
body:is(.role-owner,.role-parent) .family-page .member-profile.role-parent{background:linear-gradient(145deg,#f7fbf9,#fff)}
body:is(.role-owner,.role-parent) .family-page .member-profile.role-child{background:#fff}
body:is(.role-owner,.role-parent) .family-page .member-profile .member-body{min-width:0}
body:is(.role-owner,.role-parent) .family-page .member-profile .member-body>strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:is(.role-owner,.role-parent) .family-page .member-profile .member-body>p{margin:2px 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:is(.role-owner,.role-parent) .family-page .member-profile details>summary{font-size:.65rem;padding:6px 7px}
@media(max-width:1350px) and (min-width:901px){
  body:is(.role-owner,.role-parent) .family-page .family-hierarchy{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:1050px) and (min-width:701px){
  body:is(.role-owner,.role-parent) .family-page .family-hierarchy{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  body:is(.role-owner,.role-parent) .family-page .family-hierarchy{grid-template-columns:1fr!important}
}
/* Calendar controls: same green/cream language as landing and login. */
body.ui-2026 .calendar-page .mac-calendar-toolbar{
  display:grid!important;grid-template-columns:minmax(240px,1fr) auto;align-items:start!important;gap:18px;
}
body.ui-2026 .calendar-page .view-toggle{grid-area:view;padding:3px!important;border:1px solid rgba(22,138,103,.13)!important;border-radius:11px!important;background:#edf7f2!important;box-shadow:none!important}
body.ui-2026 .calendar-page .view-toggle a{min-width:66px;padding:7px 11px!important;border-radius:8px!important;color:#5d7169!important;font-size:.72rem!important;font-weight:850!important}
body.ui-2026 .calendar-page .view-toggle a.active{background:var(--vf-green)!important;color:#fff!important;box-shadow:0 3px 9px rgba(22,138,103,.17)!important}
body.ui-2026 .calendar-page .week-nav{grid-area:nav;display:flex!important;gap:5px!important;flex-wrap:nowrap!important}
body.ui-2026 .calendar-page .week-nav .secondary{min-height:34px!important;padding:6px 9px!important;border-color:var(--vf-line)!important;border-radius:9px!important;background:#fff!important;color:#566a63!important;font-size:.68rem!important;white-space:nowrap}
body.ui-2026 .calendar-page .week-nav .secondary:hover{background:#f0f8f4!important;color:var(--vf-green)!important}
body.ui-2026 .calendar-page .calendar-filter{grid-area:filter;justify-self:end;margin:0!important}
body.ui-2026 .calendar-page .calendar-filter label{display:flex!important;align-items:center!important;gap:7px!important;color:#6b7d76;font-size:.66rem;font-weight:800}
body.ui-2026 .calendar-page .calendar-filter select{min-width:165px;min-height:34px;padding:6px 30px 6px 9px;border:1px solid var(--vf-line);border-radius:9px;background:#fff;color:var(--vf-navy);font-size:.7rem}
@media(max-width:900px){
  body.ui-2026 .calendar-page .mac-calendar-toolbar{grid-template-columns:1fr!important;gap:10px!important}
  body.ui-2026 .calendar-page .view-toggle{width:100%!important}
  body.ui-2026 .calendar-page .view-toggle a{flex:1}
  body.ui-2026 .calendar-page .week-nav{width:100%;display:grid!important;grid-template-columns:repeat(3,1fr)}
  body.ui-2026 .calendar-page .week-nav .secondary{justify-content:center;text-align:center}
  body.ui-2026 .calendar-page .calendar-filter{justify-self:stretch;width:100%!important}
  body.ui-2026 .calendar-page .calendar-filter label{width:100%}
  body.ui-2026 .calendar-page .calendar-filter select{flex:1;min-width:0}
}
/* Floating human support chat on VårFlokk pages. */
.support-widget{position:fixed;right:20px;bottom:20px;z-index:130;display:grid;justify-items:end;gap:9px}
.support-bubble{position:relative;display:flex;align-items:center;gap:7px;min-height:46px;padding:9px 14px;border:0;border-radius:999px;background:var(--vf-green);color:#fff;box-shadow:0 12px 34px rgba(22,138,103,.24);font:inherit;font-size:.75rem;font-weight:900;cursor:pointer}
.support-bubble>span{font-size:1.05rem}.support-bubble em{position:absolute;top:-5px;right:-4px;min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border:2px solid #fff;border-radius:999px;background:#df4f4f;color:#fff;font-size:.62rem;font-style:normal}
.support-panel{width:min(380px,calc(100vw - 24px));max-height:min(590px,calc(100dvh - 95px));overflow:hidden;border:1px solid var(--vf-line);border-radius:20px;background:#fff;box-shadow:0 24px 75px rgba(15,42,60,.20)}
/* Short windows must shrink the message scroller, keeping the controls visible. */
.support-panel:not([hidden]){display:flex;flex-direction:column}
.support-panel>:not(.support-message-list){flex-shrink:0}
.support-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;background:linear-gradient(100deg,#edf8f3,#f9fcfa);border-bottom:1px solid var(--vf-line)}
.support-panel>header strong,.support-panel>header small{display:block}.support-panel>header strong{color:var(--vf-navy);font-size:.85rem}.support-panel>header small{margin-top:2px;color:#667a72;font-size:.62rem}
.support-panel>header button{width:32px;height:32px;padding:0;border:1px solid var(--vf-line);border-radius:50%;background:#fff;color:var(--vf-navy);font-size:1.25rem}
.support-message-list{height:min(360px,45vh);min-height:0;flex-shrink:1;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:12px;background:#f8fbf9}
.support-message{max-width:86%;padding:8px 10px;border-radius:13px;background:#fff;border:1px solid rgba(16,52,72,.08)}
.support-message.user{align-self:flex-end;background:#e7f6ef;border-color:rgba(22,138,103,.10)}.support-message.admin{align-self:flex-start}
.support-message span,.support-message small{display:block;color:#75857f;font-size:.56rem}.support-message p{margin:2px 0 3px;color:var(--vf-navy);font-size:.72rem;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.support-empty{margin:auto;padding:26px 18px;text-align:center;color:#64776f}.support-empty>span{display:block;font-size:1.6rem}.support-empty strong{display:block;margin:5px 0;color:var(--vf-navy);font-size:.85rem}.support-empty p{margin:0;font-size:.68rem}
.support-compose{display:grid;grid-template-columns:1fr auto;gap:7px;padding:10px;border-top:1px solid var(--vf-line);background:#fff}.support-compose textarea{min-height:42px;max-height:110px;resize:vertical;padding:9px 10px;border-radius:11px;font-size:.72rem}.support-compose button{align-self:end;min-height:42px;padding:8px 12px;border-radius:11px}
.support-login-prompt{display:grid;justify-items:center;gap:9px;padding:28px 20px;text-align:center}.support-login-prompt>span{font-size:1.7rem}.support-login-prompt p{margin:0;color:#64776f;font-size:.75rem}.support-login-prompt a{padding:9px 15px;border-radius:11px;text-decoration:none}
@media(max-width:700px){
  .support-widget{right:10px;bottom:12px}
  body.role-child .support-widget{bottom:82px}
  .support-bubble{min-height:43px;padding:8px 12px}
  .support-bubble b{display:none}
  .support-panel{width:calc(100vw - 20px);max-height:min(620px,calc(100dvh - 92px));border-radius:18px}
  .support-message-list{height:min(390px,48vh)}
}
/* 2026-09-23 responsive pass: tablet is its own layout, not narrow desktop. */
@media(min-width:901px) and (max-width:1180px){
  body:is(.role-owner,.role-parent){padding-left:0!important;background:#f7faf8!important}
  body:is(.role-owner,.role-parent)>.topbar{
    position:sticky!important;top:0;left:0!important;right:0!important;
    min-height:58px;padding:8px 12px!important
  }
  body:is(.role-owner,.role-parent)>.topbar>.brand{display:flex!important;width:auto}
}
/* Calendar becomes stacked/columnar on touch widths instead of a clipped horizontal strip. */
@media(max-width:1180px){
  body.ui-2026 .calendar-page .calendar-mac-layout{display:block!important}
  body.ui-2026 .calendar-page .calendar-mac-main{min-width:0!important}
  body.ui-2026 .calendar-page .week-card{overflow:visible!important;padding:0!important}
  body.ui-2026 .calendar-page .week-grid{
    min-width:0!important;display:grid!important;grid-auto-flow:row!important;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
    grid-auto-columns:auto!important;gap:8px!important;overflow:visible!important
  }
  body.ui-2026 .calendar-page .week-day{
    min-width:0!important;border:1px solid var(--vf-line);border-radius:15px;overflow:hidden;background:#fff
  }
  body.ui-2026 .calendar-page .week-day>header{min-height:56px;padding:8px 10px!important}
  body.ui-2026 .calendar-page .calendar-day-lines{padding:6px!important}
  body.ui-2026 .calendar-page .week-item{margin:0 0 6px!important}
}
@media(max-width:620px){
  body.ui-2026 .calendar-page .week-grid{grid-template-columns:1fr!important}
  body.ui-2026 .calendar-page .calendar-filter label>span{display:none}
  body.ui-2026 .calendar-page .calendar-filter select{width:100%!important}
}
/* Task toolbar on phones: title first, actions below. */
@media(max-width:650px){
  body.ui-2026 .tasks-page .tasks-toolbar{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important
  }
  body.ui-2026 .tasks-page .tasks-toolbar h1{font-size:2rem!important;line-height:.98!important;max-width:none!important}
  body.ui-2026 .tasks-page>.friendly-task-section{padding:10px!important}
  body.ui-2026 .tasks-page .task-status-summary{margin:2px 0 7px!important}
}
/* Mobile home: important daily content should reach the first screen faster. */
@media(max-width:700px){
  body.ui-2026 .today-page .adult-overview-strip{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-bottom:8px!important
  }
  body.ui-2026 .today-page .overview-stat{
    min-height:72px!important;padding:10px 12px!important;border-radius:14px!important
  }
  body.ui-2026 .today-page .overview-stat span{font-size:.59rem!important}
  body.ui-2026 .today-page .overview-stat strong{font-size:1.45rem!important}
  body.ui-2026 .today-page .overview-stat small{font-size:.61rem!important}
  body.ui-2026 .today-page .family-progress-card{padding:11px!important;margin-bottom:8px!important}
  body.ui-2026 .today-page .family-progress-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important
  }
  body.ui-2026 .today-page .family-progress-person{min-height:58px!important;padding:7px 8px!important}
  body.ui-2026 .today-page .family-progress-person img,
  body.ui-2026 .today-page .progress-avatar{width:30px!important;height:30px!important}
  body.ui-2026 .today-page>.card{padding:11px!important;margin-bottom:8px!important}
}
/* Member cards: compact actions instead of tall stacks, especially on tablets. */
body.ui-2026 .family-page .member-profile .child-edit:not([open]){
  display:inline-block!important;margin:3px 4px 2px 0!important;vertical-align:top
}
body.ui-2026 .family-page .member-profile .child-edit:not([open])>summary{
  min-height:28px!important;padding:5px 8px!important;border:1px solid var(--vf-line)!important;
  border-radius:999px!important;background:#f4f8f6!important;color:var(--vf-green)!important;
  font-size:.62rem!important;font-weight:850!important;line-height:1!important
}
body.ui-2026 .family-page .member-profile .child-edit[open]{
  display:block!important;width:100%;margin:7px 0!important;padding-top:7px;border-top:1px solid rgba(16,52,72,.07)
}
@media(max-width:1180px){
  body.ui-2026 .family-page .family-hierarchy{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ui-2026 .family-page .member-profile{align-self:start!important}
}
@media(max-width:620px){
  body.ui-2026 .family-page .family-hierarchy{grid-template-columns:1fr!important}
}
/* Explicit mobile menu state for Safari/iOS: JS owns the toggle. */
/* iPhone menu positioning: keep the opened panel inside the viewport. */
@media(max-width:700px){
  body:is(.role-owner,.role-parent) > .topbar{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    transform:none!important;
    overflow:visible!important;
    background:#fff!important;
  }
}
