:root{--bg:#f3f7fd;--surface:#fff;--surface2:#edf4ff;--text:#102848;--muted:#71839e;--line:#d8e5f5;--primary:#1769e0;--primary2:#55a7ff;--danger:#d83a3a;--shadow:0 14px 38px rgba(30,75,130,.10)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.app-shell{max-width:1320px;margin:auto;padding:18px 22px 110px}.card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}.topbar{position:sticky;top:12px;z-index:25;min-height:88px;border-radius:24px;padding:14px 16px;display:grid;grid-template-columns:minmax(250px,1fr) auto auto;align-items:center;gap:18px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{width:52px;height:52px;border-radius:17px;background:linear-gradient(145deg,var(--primary),#3186f2);display:grid;place-items:center;color:#fff;font-size:24px;font-weight:850;box-shadow:0 10px 24px rgba(23,105,224,.25);overflow:hidden}.brand-mark.has-photo{background-size:cover;background-position:center;color:transparent}.avatar-picker{cursor:pointer}.brand-copy h1{margin:0;font-size:21px}.brand-copy p{margin:3px 0 0;color:var(--muted);font-size:12px}.header-filters{display:flex;align-items:center;gap:8px}.segmented{display:flex;background:var(--surface2);border-radius:13px;padding:4px}.segmented button,.text-btn{border:0;background:transparent;padding:9px 13px;border-radius:10px;color:var(--muted);cursor:pointer;font-weight:650}.segmented button.active,.text-btn.active{background:var(--surface);color:var(--primary);box-shadow:0 3px 12px rgba(23,105,224,.12)}select,input[type=search]{height:42px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:0 12px;color:var(--text);font:inherit}.header-filters select{max-width:170px}.top-actions{display:flex;align-items:center;gap:7px}.icon-btn{border:1px solid var(--line);background:var(--surface);width:42px;height:42px;border-radius:13px;color:var(--text);cursor:pointer}.role-badge{padding:8px 10px;border-radius:11px;background:var(--surface2);color:var(--primary);font-size:11px;font-weight:800;white-space:nowrap}.collection-head{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:34px 4px 18px}.collection-head h2{font-size:34px;letter-spacing:-.03em;margin:0}.collection-head p{margin:5px 0 0;color:var(--muted)}.collection-head input{width:min(390px,100%)}.timeline{display:grid;gap:32px}.age-group{display:grid;gap:15px}.age-header{display:flex;align-items:center;justify-content:space-between;padding:0 4px}.age-header h2{font-size:29px;margin:0}.age-header-actions{display:flex;align-items:center;gap:9px}.age-header span{color:var(--muted)}.season-group{display:grid;gap:12px}.season-cover{background:linear-gradient(120deg,#e8f2ff,#f9fcff);border:1px solid var(--line);padding:16px 18px;border-radius:18px;display:flex;align-items:center;justify-content:space-between}.season-cover h3{margin:0;font-size:22px}.season-actions{display:flex;align-items:center;gap:10px}.season-cover span{color:var(--muted);font-size:13px}.album-delete{border:0;background:#ffe8e8;color:#a52b2b;border-radius:10px;padding:8px 10px;cursor:pointer;font-weight:700}.day-group{display:grid;gap:9px}.day-title{font-size:14px;color:var(--muted);font-weight:700;padding-left:3px}.media-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:215px;gap:10px}.media-card{position:relative;border:0;border-radius:18px;overflow:hidden;padding:0;background:#dce7f4;cursor:pointer}.media-card:nth-child(8n+1){grid-column:span 2;grid-row:span 2}.media-card img,.media-card video{width:100%;height:100%;object-fit:cover;display:block}.media-overlay{position:absolute;inset:auto 0 0;padding:36px 11px 10px;background:linear-gradient(transparent,rgba(6,24,49,.72));color:#fff;text-align:left;font-size:12px}.media-badge{position:absolute;top:10px;right:10px;background:rgba(7,31,64,.62);color:#fff;padding:6px 8px;border-radius:9px;font-size:12px}.favorite-dot{position:absolute;top:10px;left:10px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.92);color:#ffb000;font-size:19px}.select-check{position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;background:#fff;border:2px solid #bdd2ec;display:grid;place-items:center;z-index:3}.media-card.selected .select-check{background:var(--primary);border-color:var(--primary);color:#fff}.selection-bar{position:sticky;top:112px;z-index:20;margin-bottom:18px;padding:12px 14px;border-radius:16px;background:#0d315f;color:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow)}.selection-bar>div{display:flex;gap:8px}.empty{text-align:center;padding:64px 25px;border-radius:22px}.empty-icon{font-size:50px;color:var(--primary2)}.empty h3{font-size:27px;margin:12px 0 8px}.empty p{color:var(--muted)}.fab{position:fixed;right:28px;bottom:26px;z-index:35;width:64px;height:64px;border:0;border-radius:50%;background:linear-gradient(145deg,var(--primary),#348af2);color:#fff;font-size:38px;line-height:1;box-shadow:0 16px 36px rgba(23,105,224,.35);cursor:pointer}.upload-sheet{position:fixed;inset:0;z-index:60}.sheet-backdrop{position:absolute;inset:0;border:0;background:rgba(4,20,42,.52)}.sheet-panel{position:absolute;right:22px;bottom:22px;width:min(470px,calc(100% - 24px));background:var(--surface);border:1px solid var(--line);border-radius:27px;padding:14px;box-shadow:0 26px 70px rgba(4,26,57,.32);display:grid;gap:10px}.sheet-handle{width:42px;height:4px;border-radius:10px;background:var(--line);margin:0 auto 2px}.sheet-title{display:flex;align-items:center;justify-content:space-between;padding:3px 3px 6px}.sheet-title h3{margin:0}.action-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:15px;display:flex;align-items:center;gap:13px;cursor:pointer}.primary-action{background:linear-gradient(145deg,var(--primary),#2d82ee);color:#fff;border-color:transparent}.action-icon{width:44px;height:44px;border-radius:14px;background:var(--surface2);color:var(--primary);display:grid;place-items:center;font-size:24px}.primary-action .action-icon{background:rgba(255,255,255,.18);color:#fff}.action-card div{display:grid;gap:3px}.action-card small{color:var(--muted);font-size:12px}.primary-action small{color:#dbeaff}.hidden{display:none!important}.primary-btn,.secondary-btn,.danger-btn{border:0;border-radius:13px;padding:12px 15px;font-weight:750;cursor:pointer}.primary-btn{background:var(--primary);color:#fff}.secondary-btn{background:var(--surface2);color:var(--text)}.danger-btn{background:#ffe9e9;color:#a52b2b;width:100%;margin-top:10px}.danger-btn.compact{width:auto;margin:0}.full{width:100%;margin-top:9px}.auth-screen{position:fixed;inset:0;z-index:100;background:linear-gradient(145deg,#dcecff,#f8fbff 52%,#cfe5ff);display:grid;place-items:center;padding:20px}.auth-card{width:min(430px,100%);background:#fff;border:1px solid #d9e7f8;border-radius:30px;padding:34px;box-shadow:0 24px 70px rgba(26,84,157,.2)}.auth-card h2{font-size:34px;margin:8px 0}.auth-card>p{color:#667892}.auth-card form{display:grid;gap:14px;margin-top:22px}.auth-card label{display:grid;gap:7px;font-size:13px;font-weight:700}.auth-card input{height:48px;border:1px solid #d9e5f6;border-radius:13px;padding:0 14px}.login-error{min-height:20px;color:#c53b3b;font-size:13px}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;color:var(--primary)}.locked{filter:blur(4px);pointer-events:none;user-select:none}dialog{width:min(1100px,96vw);height:min(850px,94vh);border:0;padding:0;border-radius:24px;background:#071a34;color:#fff;overflow:hidden}dialog::backdrop{background:rgba(3,14,30,.86)}#viewerMedia{height:calc(100% - 120px);display:grid;place-items:center;background:#031025}#viewerMedia img,#viewerMedia video{max-width:100%;max-height:100%;object-fit:contain}.viewer-close{position:absolute;right:14px;top:14px;z-index:4;border:0;background:rgba(0,0,0,.5);color:#fff;width:42px;height:42px;border-radius:50%;font-size:27px}.viewer-nav{position:absolute;top:45%;z-index:3;border:0;background:rgba(0,0,0,.42);color:#fff;width:48px;height:64px;font-size:38px}.viewer-nav.prev{left:10px}.viewer-nav.next{right:10px}.viewer-info{height:120px;padding:16px 22px;display:grid;grid-template-columns:1fr auto;gap:8px 20px;align-items:center}.viewer-info div{display:flex;gap:12px}.viewer-info span{color:#a9bdd8;font-size:13px}.viewer-info p{grid-column:1;margin:0;color:#dce8f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewer-info button{grid-column:2;grid-row:1/3;border:1px solid #42658d;background:transparent;color:#fff;border-radius:12px;padding:10px 14px}.confirm-dialog{width:min(560px,92vw);height:auto;background:var(--surface);color:var(--text)}.confirm-content{padding:28px}.dialog-title{display:flex;align-items:center;justify-content:space-between}.dialog-title h3{margin:0;font-size:25px}.settings-section{margin-top:22px}.settings-section h4{margin:0 0 10px}.sync-card{padding:15px;border:1px solid var(--line);border-radius:16px;display:grid;grid-template-columns:1fr auto;gap:10px}.sync-card p{margin:4px 0 0;color:var(--muted);font-size:13px}.sync-badge{background:#e5f1ff;color:var(--primary);padding:7px 10px;border-radius:10px;font-size:12px;font-weight:750}.progress{grid-column:1/-1;height:7px;background:#e9f0f9;border-radius:20px;overflow:hidden}.progress div{height:100%;width:0;background:linear-gradient(90deg,var(--primary),var(--primary2))}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.stat{padding:13px;border:1px solid var(--line);border-radius:14px;display:grid;gap:3px}.stat span{color:var(--muted);font-size:12px}.stat strong{font-size:24px}.access-list{display:grid;gap:8px}.access-list div{padding:12px;border:1px solid var(--line);border-radius:13px;display:grid;gap:3px}.access-list span{color:var(--muted);font-size:12px}.confirm-icon{width:58px;height:58px;border-radius:20px;background:var(--surface2);color:var(--primary);display:grid;place-items:center;margin:0 auto 16px;font-size:30px}.confirm-content>h3,.confirm-content>p{text-align:center}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}body.dark{--bg:#061426;--surface:#0d213b;--surface2:#142d4d;--text:#eef6ff;--muted:#9db0ca;--line:#203b5d;--shadow:0 16px 45px rgba(0,0,0,.24)}body.dark .season-cover{background:linear-gradient(120deg,#102c4e,#0d213b)}.role-viewer .fab,.role-viewer .admin-only{display:none!important}.role-member .admin-only{display:none!important}.role-viewer .viewer-info button,.role-viewer .favorite-dot{display:none}
@media(max-width:1050px){.topbar{grid-template-columns:1fr auto}.header-filters{grid-column:1/-1;order:3}.header-filters select{flex:1;max-width:none}.role-badge{display:none}}
@media(max-width:720px){.app-shell{padding:10px 10px 100px}.topbar{top:8px;border-radius:20px;padding:11px;gap:10px}.brand-mark{width:46px;height:46px}.brand-copy p{font-size:11px}.top-actions .text-btn{display:none}.header-filters{overflow-x:auto;padding-bottom:2px}.header-filters select{min-width:145px}.collection-head{display:grid;padding:24px 2px 14px}.collection-head h2{font-size:28px}.collection-head input{width:100%}.media-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:165px}.media-card:nth-child(8n+1){grid-column:span 2;grid-row:span 1}.fab{right:18px;bottom:18px;width:58px;height:58px}.sheet-panel{right:12px;bottom:12px}.stats-grid{grid-template-columns:repeat(2,1fr)}.selection-bar{top:155px}.age-header h2{font-size:25px}.season-cover h3{font-size:19px}}

/* v5 premium interface refinements */
:root{--bg:#f5f8fc;--surface:rgba(255,255,255,.94);--surface2:#eef4fb;--line:#dbe6f2;--shadow:0 18px 48px rgba(34,72,118,.09)}
body{background:radial-gradient(circle at 20% 0,#eef5ff 0,transparent 35%),var(--bg)}
.topbar{grid-template-columns:minmax(245px,1fr) auto auto;min-height:82px;border-radius:22px;padding:12px 14px;backdrop-filter:blur(18px);box-shadow:0 12px 36px rgba(36,74,121,.08)}
.brand-mark{border-radius:15px;box-shadow:0 10px 25px rgba(23,105,224,.22)}
.header-filters{background:var(--surface2);padding:4px;border-radius:15px}
.header-filters select{background:transparent;border-color:transparent;font-weight:650}
.segmented{background:transparent;padding:0}
.segmented button.active{box-shadow:0 4px 14px rgba(23,105,224,.13)}
.top-actions{justify-content:flex-end}.top-actions .icon-btn{border-color:transparent;background:var(--surface2)}
.favorite-header-btn{font-size:23px;line-height:1;color:#7589a5}.favorite-header-btn.active{color:#e04b68;background:#fff0f4;border-color:#ffd4df}
.role-badge{background:#eaf3ff;border:1px solid #d9e9fb;font-size:11px}
.collection-head{align-items:center;padding-top:30px}.collection-head h2{font-size:32px}.collection-tools{display:flex;align-items:center;gap:10px}.collection-tools input{width:min(360px,48vw)}
.selection-trigger{white-space:nowrap;border:1px solid var(--line);background:var(--surface)}
.season-cover{background:linear-gradient(120deg,rgba(228,240,255,.95),rgba(255,255,255,.95));box-shadow:0 8px 24px rgba(47,88,137,.05)}
.media-grid{gap:12px}.media-card{border-radius:20px;box-shadow:0 8px 24px rgba(32,64,103,.08);transition:transform .2s ease,box-shadow .2s ease}.media-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(32,64,103,.14)}
.day-title{font-size:13px;letter-spacing:.01em;color:#657a96;padding:2px 4px 0}
.favorite-dot{color:#e04b68;background:rgba(255,255,255,.94);box-shadow:0 6px 18px rgba(26,54,89,.18)}
.setting-field{display:grid;gap:7px;font-size:13px;font-weight:750}.setting-field input{height:44px;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:var(--surface);color:var(--text);font:inherit}.setting-hint{font-size:12px;color:var(--muted);margin:7px 0 0}
@media(max-width:1050px){.collection-tools{width:100%}.collection-tools input{flex:1;width:auto}}
@media(max-width:720px){.collection-head{gap:14px}.collection-tools{display:grid;grid-template-columns:1fr auto}.collection-tools input{width:100%}.selection-trigger{padding-inline:12px}.favorite-header-btn{display:inline-grid!important}.top-actions{gap:5px}.role-badge{display:none}}

/* v6 mobile and premium refinements */
.collection-head.compact-head{padding:12px 2px 10px;display:block}.collection-head .collection-titles{display:none}
.collection-tools{display:flex;justify-content:space-between;gap:10px}.collection-tools input{flex:1;min-width:0}
.topbar{grid-template-columns:minmax(220px,1fr) auto auto;gap:12px}
.top-actions{gap:8px}.top-actions .icon-btn{display:grid;place-items:center;font-size:22px}
.favorite-header-btn{font-size:28px;line-height:1;display:grid;place-items:center}
.header-filters{display:flex;align-items:center;gap:8px;background:var(--surface2);padding:4px;border-radius:16px;flex-wrap:nowrap}
.header-filters.hidden,.hidden{display:none!important}
.header-filters select{min-width:150px}
.season-cover{display:grid;grid-template-columns:88px 1fr auto;gap:14px;align-items:center}
.season-thumb{width:88px;height:88px;border-radius:18px;overflow:hidden;background:#dce7f4;box-shadow:0 10px 24px rgba(32,64,103,.08)}
.season-thumb img{width:100%;height:100%;object-fit:cover;display:block}.season-copy{display:grid;gap:4px;min-width:0}.season-copy h3{margin:0}.season-copy span{color:var(--muted);font-size:13px}
.standalone-season{gap:10px}
.fav-chip{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:12px;border:0;background:rgba(255,255,255,.94);display:grid;place-items:center;z-index:3;color:#7f91ab;font-size:20px;box-shadow:0 8px 16px rgba(18,42,78,.16)}
.fav-chip.active{color:#e1486b;background:#fff1f4}
.media-card .media-badge{right:10px;top:auto;bottom:54px}
.media-card .select-check{right:52px}
.media-card.selected{outline:3px solid rgba(23,105,224,.25)}
.fab{width:62px;height:62px;border-radius:20px;right:16px;bottom:calc(env(safe-area-inset-bottom, 0px) + 16px);line-height:1;display:grid;place-items:center;font-size:40px;box-shadow:0 18px 40px rgba(23,105,224,.34);transform:translateZ(0)}
.role-badge{display:none!important}
.session-card{padding:12px;border:1px solid var(--line);border-radius:13px;display:grid;gap:4px;background:var(--surface2)}
.photo-action-list{display:grid;gap:10px;margin-top:16px}
#deletePhotoBtn[disabled]{opacity:.55;cursor:not-allowed}
body.season-filter-hidden #seasonFilter{display:none!important}

@media(max-width:1050px){
  .topbar{grid-template-columns:1fr auto;align-items:start}
  .header-filters{grid-column:1/-1;order:3;max-width:100%;overflow-x:auto;scrollbar-width:none}
  .header-filters::-webkit-scrollbar{display:none}
  .top-actions{justify-self:end}
}

@media(max-width:720px){
  .app-shell{padding:10px 10px 96px}
  .topbar{top:8px;border-radius:22px;padding:12px;grid-template-columns:1fr auto;gap:10px}
  .brand{min-width:0;align-items:center}
  .brand-mark{width:58px;height:58px;border-radius:18px;font-size:29px;flex:none}
  .brand-copy{min-width:0}.brand-copy h1{font-size:19px;line-height:1.1}.brand-copy p{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-actions{gap:8px;align-self:start}
  .top-actions .icon-btn{width:46px;height:46px;border-radius:16px}
  .favorite-header-btn{font-size:30px}
  .header-filters{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto;gap:8px;padding:0;background:transparent}
  .header-filters .segmented{grid-column:1/-1;background:var(--surface2);padding:4px;border-radius:16px}
  .header-filters select{min-width:0;width:100%;height:44px;border-radius:14px;background:var(--surface2);border-color:transparent;font-size:16px}
  .collection-head.compact-head{padding-top:8px}
  .collection-tools{display:grid;grid-template-columns:1fr auto;gap:8px}
  .selection-trigger{padding:0 14px;height:48px;border-radius:14px}
  .collection-tools input{height:48px;border-radius:16px;font-size:16px}
  .age-header{padding-top:4px}.age-header h2{font-size:24px}
  .season-cover{grid-template-columns:74px 1fr;gap:12px;padding:14px}.season-actions{grid-column:1/-1;justify-content:flex-end}
  .season-thumb{width:74px;height:74px;border-radius:16px}
  .season-copy h3{font-size:22px}
  .day-title{font-size:13px;line-height:1.3;padding-left:1px}
  .media-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:168px;gap:10px}
  .media-card:nth-child(8n+1){grid-column:span 2;grid-row:span 1}
  .media-card{border-radius:20px}
  .media-overlay{font-size:11px;padding:32px 10px 10px}
  .fav-chip{width:36px;height:36px;border-radius:13px;font-size:21px}
  .selection-bar{top:150px;border-radius:16px;display:grid;gap:10px}
  .selection-bar>div{justify-content:flex-end}
  dialog{width:min(96vw,1100px);height:min(92vh,850px)}
}

/* v7 reference-matched gallery layout */
.app-shell{max-width:1480px;padding-top:14px}
.topbar{min-height:76px;grid-template-columns:minmax(250px,1fr) auto auto;border-radius:24px;padding:12px 16px}
.header-filters{background:transparent;padding:0;border-radius:0}
.header-filters .segmented{background:transparent}
.header-filters select{height:46px;padding:0 40px 0 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-weight:700}
.top-actions .icon-btn{width:46px;height:46px;border:1px solid var(--line);background:var(--surface);border-radius:15px}
.favorite-header-btn{font-family:Arial,sans-serif;font-size:27px;font-weight:400}
.gallery-toolbar{margin:18px 0 22px;padding:12px 14px;border-radius:18px;display:flex;justify-content:flex-end;align-items:center;gap:12px;box-shadow:0 8px 28px rgba(34,72,118,.06)}
.gallery-toolbar select{height:44px;min-width:170px;border:1px solid var(--line);border-radius:13px;padding:0 38px 0 14px;background:var(--surface);color:var(--text);font:inherit;font-weight:650}
.view-switch{display:flex;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--surface)}
.view-switch button{width:48px;height:42px;border:0;border-right:1px solid var(--line);background:transparent;color:var(--muted);font-size:22px;cursor:pointer}.view-switch button:last-child{border-right:0}.view-switch button.active{background:#eaf3ff;color:var(--primary)}
.timeline{display:grid;gap:22px}
.season-group{background:transparent}
.season-cover{min-height:160px;grid-template-columns:360px 1fr 34px;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 12px 34px rgba(34,72,118,.07)}
.season-thumb{width:100%;height:160px;border-radius:0;box-shadow:none}.season-thumb img{object-fit:cover}
.season-copy{padding:24px 28px;align-content:center}.season-copy h3{font-size:28px}.season-copy span{font-size:15px}
.season-actions{padding-right:18px}.album-delete{display:none}
.day-group{margin-top:14px}.day-title{font-size:14px;font-weight:650;margin-bottom:10px}
.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:310px;gap:16px}
.media-card:nth-child(8n+1){grid-column:span 1;grid-row:span 1}
.media-card{border-radius:20px}.media-card img,.media-card video{object-fit:cover}
.media-overlay{opacity:0;transition:opacity .2s ease}.media-card:hover .media-overlay{opacity:1}
.fab{width:44px;height:44px;border-radius:13px;font-size:28px;right:24px;bottom:24px;box-shadow:0 12px 28px rgba(23,105,224,.32)}
body.list-layout .media-grid{grid-template-columns:1fr;grid-auto-rows:180px}
body.list-layout .media-card{display:grid;grid-template-columns:260px 1fr;background:var(--surface)}
body.list-layout .media-card img,body.list-layout .media-card video{width:260px}
body.list-layout .media-overlay{position:relative;opacity:1;background:none;color:var(--text);display:flex;align-items:center;font-weight:650}

@media(max-width:720px){
  .app-shell{padding:8px 8px 86px}
  .topbar{position:sticky;top:6px;grid-template-columns:1fr auto;padding:12px;border-radius:22px;gap:12px}
  .brand-mark{width:54px;height:54px}.brand-copy h1{font-size:22px}.brand-copy p{font-size:11px}
  .top-actions .icon-btn{width:44px;height:44px;border-radius:14px}
  .header-filters{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:10px;overflow:visible}
  .header-filters .segmented{min-width:0;background:var(--surface2);padding:4px;border-radius:15px}
  .header-filters select{width:100%;min-width:138px;height:46px;background:var(--surface);font-size:15px}
  .gallery-toolbar{margin:12px 0 14px;padding:8px 10px;border-radius:16px}
  .gallery-toolbar select{height:42px;min-width:148px;font-size:14px}
  .view-switch button{width:44px;height:40px}
  .season-cover{min-height:0;display:grid;grid-template-columns:1fr;border-radius:20px;overflow:hidden}
  .season-thumb{height:220px;grid-row:2}.season-copy{padding:18px 18px 10px}.season-copy h3{font-size:25px}.season-actions{display:none}
  .day-title{font-size:13px;margin:10px 2px}
  .media-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:190px;gap:8px}
  .media-card:nth-child(8n+1){grid-column:span 2;grid-row:span 1}
  .media-card{border-radius:16px}.fav-chip{top:8px;right:8px;width:32px;height:32px;border-radius:11px;font-size:19px}
  .fab{position:fixed;width:42px;height:42px;border-radius:12px;right:14px;bottom:calc(env(safe-area-inset-bottom,0px) + 14px);font-size:27px}
  body.list-layout .media-grid{grid-template-columns:1fr;grid-auto-rows:120px}
  body.list-layout .media-card{grid-template-columns:130px 1fr}
  body.list-layout .media-card img,body.list-layout .media-card video{width:130px}
}
