:root{--photos-safe-top:calc(max(env(safe-area-inset-top,0px),var(--rv-native-safe-top,0px)) + 6px);--photos-safe-bottom:calc(max(env(safe-area-inset-bottom,0px),var(--rv-native-safe-bottom,0px)) + 6px);color-scheme:light;--canvas:#f8f8fa;--paper:#fff;--ink:#17171b;--muted:#898992;--line:#e7e7ec;--accent:#6d79a7;--blue:#697cb1}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--canvas);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif}button,select,input{font:inherit}button{cursor:pointer}.photos-app{max-width:920px;margin:auto;min-height:100dvh;padding-bottom:calc(90px + var(--photos-safe-bottom))}.photos-head{height:calc(62px + var(--photos-safe-top));padding:var(--photos-safe-top) 20px 0;display:flex;align-items:center;justify-content:space-between}.photos-wordmark{font-size:15px;font-weight:700;letter-spacing:-.3px}.photos-wordmark i{font-style:normal;font-weight:450;color:#8b8b92}.icon-button{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:#eeeef1;color:#34343a}.icon-button svg{width:20px;height:20px}.photos-head #photosBack{font-size:32px;line-height:30px;padding-bottom:4px}.photos-heading{display:flex;align-items:end;justify-content:space-between;padding:16px 22px 7px}.photos-heading .eyebrow{display:block;font-size:10px;letter-spacing:2.2px;font-weight:750;color:#9296a6;margin-bottom:5px}.photos-heading h1{font-size:38px;letter-spacing:-1.7px;line-height:1.1;margin:0;font-weight:750}.soft-button{border:0;background:#eaeaef;border-radius:18px;padding:8px 15px;font-size:13px;font-weight:600;color:#393941}.photos-filter{margin:8px 21px 16px;display:flex;align-items:center;gap:6px;font-size:13px;color:#898992}.photos-filter select{appearance:none;border:0;border-radius:13px;padding:6px 20px 6px 9px;background:#eaeaf0;color:#3d4151;font-size:12px;font-weight:650;max-width:160px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center}.photos-filter span{margin-left:auto;font-size:12px}.photos-content{padding-bottom:24px}.photos-section{margin:0 0 26px}.section-heading{display:flex;justify-content:space-between;align-items:baseline;margin:0 21px 11px}.section-heading strong{font-size:19px;letter-spacing:-.5px}.section-heading small{font-size:12px;color:#a0a0a8}.photos-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:0 2px}.photos-tile{padding:0;border:0;background:#e9e9ed;aspect-ratio:1;overflow:hidden;position:relative}.photos-tile img{width:100%;height:100%;object-fit:cover;display:block}.photos-tile .fav{position:absolute;bottom:7px;right:8px;color:white;text-shadow:0 1px 5px #0009;font-size:15px}.today-hero{margin:0 16px 25px;border-radius:23px;overflow:hidden;position:relative;aspect-ratio:1.3;background:#ddd}.today-hero img{height:100%;width:100%;object-fit:cover}.today-hero:after{content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#0009)}.today-hero .hero-caption{position:absolute;z-index:1;bottom:19px;left:20px;color:white;display:flex;flex-direction:column;gap:4px}.hero-caption strong{font-size:30px;letter-spacing:-.7px}.hero-caption small{font-size:12px;letter-spacing:.3px}.today-intro{margin:0 21px 15px;color:#7b7b84;font-size:14px}.album-section-title{margin:4px 21px 14px;font-size:19px;font-weight:700}.album-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;margin:0 18px}.album-card{border:0;background:none;text-align:left;padding:0;color:inherit;min-width:0}.album-cover{width:100%;aspect-ratio:1.02;border-radius:17px;overflow:hidden;background:linear-gradient(135deg,#dedfe8,#eeeff4);position:relative}.album-cover img{width:100%;height:100%;object-fit:cover}.album-cover .album-symbol{position:absolute;bottom:11px;right:11px;color:white;text-shadow:0 1px 4px #333;font-size:22px}.album-card strong{display:block;font-size:14px;margin:7px 2px 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.album-card small{color:#929299;font-size:12px;margin-left:2px}.photos-empty{text-align:center;color:#92929b;padding:16vh 20px}.photos-empty .empty-icon{display:grid;place-items:center;margin:auto;width:90px;height:90px;background:#eeeef2;border-radius:25px;color:#b1b3c2}.empty-icon svg{width:42px}.photos-empty h3{color:#34343b;font-size:18px;margin:20px 0 5px}.photos-empty p{font-size:13px}.photos-tabbar{position:fixed;bottom:0;left:0;right:0;height:calc(72px + var(--photos-safe-bottom));padding-bottom:var(--photos-safe-bottom);background:#f9f9fadd;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-top:1px solid #e4e4e8;display:flex;justify-content:center;z-index:5}.photos-tabbar button{border:0;background:none;color:#a3a4ae;width:min(110px,25%);font-size:10px;font-weight:650;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.photos-tabbar .tab-icon{font-size:26px;line-height:26px;font-weight:300}.photos-tabbar button.active{color:var(--blue)}.photos-sidebar{position:fixed;z-index:12;inset:var(--photos-safe-top) auto 0 0;width:min(320px,84vw);transform:translateX(-103%);transition:transform .23s;background:#f9f9fbe8;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border-radius:0 22px 22px 0;padding:20px 16px;box-shadow:12px 0 45px #0002;overflow:auto}.photos-sidebar.open{transform:translateX(0)}.side-head{display:flex;justify-content:space-between;align-items:center;font-size:22px;margin-bottom:23px}.side-head button{border:0;background:none;font-size:26px}.photos-sidebar>button,.photos-sidebar #photosCharacters button,.photos-sidebar #photosAlbums button{display:block;width:100%;text-align:left;border:0;border-radius:11px;padding:13px 12px;background:transparent;font-size:15px;color:#34343b}.photos-sidebar>button.selected{background:#e8e8ed}.side-label{color:#aaaab1;font-size:10px;letter-spacing:1.4px;margin:20px 12px 8px;font-weight:750}.photos-scrim{position:fixed;inset:0;background:#15151d55;z-index:11}.photos-search{padding:0 20px 18px}.photos-search label{display:flex;align-items:center;gap:8px;background:#e9e9ee;border-radius:12px;padding:10px 12px;color:#888}.photos-search svg{width:17px;height:17px}.photos-search input{border:0;outline:0;background:none;width:100%;font-size:15px;color:var(--ink)}.photo-detail{border:0;padding:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;background:#fff;color:#18181b}.photo-detail::backdrop{background:#0009}.detail-head{height:calc(64px + var(--photos-safe-top));padding:var(--photos-safe-top) 16px 0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f0f2}.detail-head div{text-align:center;display:flex;flex-direction:column;max-width:65%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.detail-head strong{font-size:15px}.detail-head small{font-size:11px;color:#92929a;margin-top:2px}.detail-head button{border:0;background:none;color:var(--accent);font-size:22px;min-width:42px}.detail-image{height:calc(100dvh - 252px - var(--photos-safe-top) - var(--photos-safe-bottom));min-height:210px;display:flex;align-items:center;justify-content:center;background:#f9f9fa}.detail-image img{max-width:100%;max-height:100%;object-fit:contain}.detail-filmstrip{height:56px;display:flex;justify-content:safe center;gap:3px;overflow-x:auto;padding:7px 10px;scrollbar-width:none}.detail-filmstrip::-webkit-scrollbar{display:none}.detail-filmstrip button{border:0;padding:0;background:#ddd;flex:0 0 41px;height:41px;overflow:hidden;opacity:.63;border-radius:3px}.detail-filmstrip button.active{opacity:1;outline:2px solid var(--accent);outline-offset:1px}.detail-filmstrip img{width:100%;height:100%;object-fit:cover}.detail-note{margin:0 18px;padding:8px 2px;max-height:74px;overflow:auto;font-size:12px;line-height:1.45;color:#47474e}.detail-note small{display:block;color:#999;margin-top:3px}.detail-actions{position:absolute;bottom:0;width:100%;display:flex;align-items:center;justify-content:space-around;padding:9px 12px calc(13px + var(--photos-safe-bottom));background:#f9f9fae6;backdrop-filter:blur(18px);border-top:1px solid #ededf0}.detail-actions button{border:0;background:none;color:var(--blue);font-size:25px;min-width:48px;height:38px}.detail-actions .visually-hidden-action{display:none}.photo-actions{border:0;border-radius:20px;padding:8px;width:min(360px,90vw);background:#f6f6f9;box-shadow:0 20px 50px #0004}.photo-actions button{display:block;width:100%;border:0;border-bottom:1px solid #dddde2;background:transparent;text-align:center;padding:16px;color:var(--blue)}.photo-actions #actionRemove{color:#d63e37}.photo-actions #actionCancel{font-weight:700;border:0}@media(min-width:700px){.photos-grid{grid-template-columns:repeat(5,1fr)}.photo-detail{width:min(700px,100vw);margin:auto;border-radius:20px}.today-hero{aspect-ratio:2}.album-cards{grid-template-columns:repeat(3,1fr)}}
.today-hero{display:block;width:calc(100% - 32px);border:0;padding:0;text-align:left;cursor:pointer}
.photos-tile.selected:after{content:"";position:absolute;inset:0;border:3px solid #6d79a7;pointer-events:none}
.selected-check{position:absolute;top:7px;right:8px;border-radius:50%;background:#6d79a7;color:#fff;width:23px;height:23px;display:grid;place-items:center;font-size:14px;z-index:1}
.photos-selection{position:fixed;z-index:6;bottom:calc(72px + var(--photos-safe-bottom));left:0;right:0;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 8px;background:#f9f9faef;backdrop-filter:blur(20px);border-top:1px solid #e8e8ed;font-size:12px}
.photos-selection span{margin-right:auto;color:#777;white-space:nowrap}
.photos-selection button{border:0;border-radius:12px;padding:8px 9px;background:#e9eaf1;color:#59699d;font-size:12px}
.photos-selection button:last-child{color:#b44b4b}
.photos-selection button:disabled{opacity:.42}
.photo-actions [hidden]{display:none}
.empty-cover{display:grid;place-items:center;height:100%;font-size:52px;color:#a7abc0}

/* Photos chrome: quiet vector controls and a shared frosted sheet vocabulary. */
.photos-head .icon-button svg{width:21px;height:21px}
.photos-head #photosBack{padding:0}
.photos-tabbar{height:calc(70px + var(--photos-safe-bottom));background:rgba(249,249,251,.82);box-shadow:0 -9px 24px #2020270a}
.photos-tabbar button{gap:5px;font-size:11px;font-weight:570;letter-spacing:.1px;transition:color .2s}
.photos-tabbar .tab-icon{width:30px;height:30px;display:grid;place-items:center}
.photos-tabbar svg{width:26px;height:26px;display:block}
.photos-tabbar button.active{font-weight:700;color:#6b79a8}
.photos-tabbar button.active svg{stroke-width:1.95}
.photos-sidebar{width:min(342px,84vw);padding:25px 16px 32px;background:rgba(250,250,252,.91);border-radius:0 25px 25px 0;box-shadow:18px 0 50px #0d0d241a}
.side-head{height:52px;padding:0 13px;margin:0 0 18px}
.side-head strong{font-size:23px;letter-spacing:-.5px}
.side-head button{width:36px;height:36px;display:grid;place-items:center;color:#484852}
.side-head button svg{width:19px;height:19px}
.photos-sidebar .side-nav button,.photos-sidebar #photosCharacters button,.photos-sidebar #photosAlbums button,.photos-sidebar #photosNewAlbum{display:flex;align-items:center;gap:15px;text-align:left;width:100%;min-height:48px;padding:10px 14px;border:0;border-radius:13px;background:transparent;color:#36363d;font-size:15px;font-weight:520;line-height:1.2}
.photos-sidebar button svg{flex:none;width:22px;height:22px}
.photos-sidebar .side-nav button.selected{background:rgba(112,124,166,.13);color:#556597;font-weight:650}
.photos-sidebar .side-label{margin:25px 14px 8px;font-size:10px;letter-spacing:1.8px;color:#9596a0}
.photos-sidebar #photosNewAlbum{color:#56689c}
.photos-filter .filter-trigger{border:0;border-radius:14px;padding:7px 9px 7px 11px;display:inline-flex;align-items:center;gap:6px;background:#eaeaf0;color:#3d4151;font-size:12px;font-weight:650;max-width:170px}
.filter-trigger span{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-trigger svg{width:13px;height:13px;flex:none}
.character-picker{inset:0;margin:auto;max-width:min(390px,calc(100vw - 34px));width:100%;max-height:min(70dvh,620px);padding:0;border:0;border-radius:21px;background:rgba(248,248,251,.97);color:#202027;box-shadow:0 18px 55px #1113;overflow:hidden}
.character-picker::backdrop{background:#13131b64;backdrop-filter:blur(4px)}
.picker-title{font-size:16px;font-weight:700;text-align:center;padding:19px 16px 13px;border-bottom:1px solid #dcdce2}
#characterChoices{max-height:min(55dvh,480px);overflow-y:auto}
.picker-option{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:57px;padding:10px 19px;border:0;border-bottom:1px solid #e5e5e9;background:transparent;text-align:left;font-size:16px;color:inherit}
.picker-radio{width:21px;height:21px;border:1.8px solid #a6a8b0;border-radius:50%;flex:none;margin-left:12px}
.picker-radio.checked{border:6px solid #6579a9}
.picker-cancel{display:block;width:100%;min-height:52px;border:0;background:transparent;font-size:16px;font-weight:650;color:#6477a6}
.detail-head{height:calc(58px + var(--photos-safe-top));padding:var(--photos-safe-top) 14px 0}
.detail-head button{min-width:42px;height:42px;display:grid;place-items:center}
.detail-head button svg{width:21px;height:21px}
.detail-head #detailMore svg{width:23px;height:23px}
.detail-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.detail-head small{overflow:hidden;text-overflow:ellipsis}
.detail-image{height:calc(100dvh - 243px - var(--photos-safe-top) - var(--photos-safe-bottom))}
.detail-filmstrip{height:58px;gap:4px;padding:7px 10px}
.detail-filmstrip button{height:42px;flex-basis:42px}
.detail-note{max-height:76px}
.detail-actions{min-height:57px;padding:7px 12px calc(10px + var(--photos-safe-bottom));background:rgba(249,249,251,.88)}
.detail-actions button{display:grid;place-items:center;height:42px;color:#6379ad}
.detail-actions button svg{width:25px;height:25px}
.photo-actions{inset:0;margin:auto;width:min(360px,calc(100vw - 44px));max-height:calc(100dvh - 70px);padding:0;border:0;border-radius:22px;background:transparent;box-shadow:none;overflow-y:auto}
.photo-actions::backdrop{background:#11161a78;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.action-preview{overflow:hidden;border-radius:20px;margin-bottom:12px;background:#e4e4e8;box-shadow:0 8px 25px #0002}
.action-preview img{display:block;width:100%;max-height:min(39dvh,350px);object-fit:contain}
.action-list{border-radius:18px;background:rgba(250,250,252,.94);overflow:hidden;backdrop-filter:blur(24px)}
.photo-actions .action-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:49px;padding:11px 17px;border:0;border-bottom:1px solid #dcdce0ab;background:transparent;text-align:left;font-size:15px;color:#28282d}
.photo-actions .action-list button svg{width:20px;height:20px;flex:none;order:2;color:#667aaa}
.photo-actions .action-list button:last-child{border-bottom:0}
.photo-actions .action-list button.danger,.photo-actions .action-list button.danger svg{color:#cb454a}
.photo-actions .action-cancel{width:100%;min-height:49px;margin-top:9px;border:0;border-radius:15px;background:rgba(250,250,252,.94);color:#6477a6;text-align:center;font-size:15px;font-weight:700}
.photo-actions button[hidden]{display:none}

.photos-tile .fav svg{width:16px;height:16px;fill:#fff;stroke:#fff;stroke-width:1.5;filter:drop-shadow(0 1px 3px #0008)}
.album-symbol svg{width:24px;height:24px;filter:drop-shadow(0 1px 3px #0008)}
.detail-actions .is-favorite svg{fill:#6379ad}

/* The guide is a full-page iOS-style reading sheet, independent of photo browsing. */
.photos-sidebar .side-nav .guide-entry{margin-top:7px;border-top:1px solid #e5e5e9;border-radius:0;padding-top:15px;color:#606b89}
.photos-sidebar .side-nav .guide-entry svg{color:#7280a7}
.photos-guide{inset:0;margin:auto;width:min(100vw,760px);height:100dvh;max-width:none;max-height:none;padding:0;border:0;background:#f7f7fa;color:#1c1c21}
.photos-guide::backdrop{background:#15172070;backdrop-filter:blur(7px)}
.guide-bar{height:calc(57px + var(--photos-safe-top));padding:var(--photos-safe-top) 15px 0;display:flex;align-items:center;justify-content:space-between;background:#f8f8fadb;backdrop-filter:blur(20px);border-bottom:1px solid #e8e8ec;position:relative;z-index:1}
.guide-bar strong{font-size:16px;letter-spacing:-.2px}
.guide-back{display:flex;align-items:center;gap:1px;min-width:72px;border:0;background:none;color:#6376a6;font-size:15px;padding:8px 1px}
.guide-back svg{width:19px;height:19px}
.guide-bar-space{min-width:72px}
.guide-scroll{height:calc(100dvh - 57px - var(--photos-safe-top));overflow-y:auto;overscroll-behavior:contain;padding:0 17px calc(38px + var(--photos-safe-bottom))}
.guide-intro{padding:42px 8px 27px}
.guide-overline{display:block;color:#7884a7;font-size:10px;font-weight:750;letter-spacing:2.2px;margin-bottom:14px}
.guide-intro h1{font-size:clamp(32px,8vw,44px);line-height:1.14;letter-spacing:-1.4px;margin:0 0 16px}
.guide-intro p{font-size:15px;line-height:1.72;color:#666a75;margin:0;max-width:550px}
.guide-group{margin:0 0 28px}
.guide-group h2{font-size:19px;letter-spacing:-.4px;margin:0 7px 11px}
.guide-card{border:1px solid #e8e8ee;border-radius:19px;background:#fff;overflow:hidden;box-shadow:0 3px 15px #33334a06}
.guide-item{display:flex;align-items:flex-start;gap:14px;margin:0 17px;padding:18px 0;border-bottom:1px solid #efeff2}
.guide-item:last-child{border-bottom:0}
.guide-number,.guide-glyph{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:10px;background:#eff0f6;color:#6a78a1;font-weight:750;font-size:11px}
.guide-glyph svg{width:19px;height:19px}
.guide-item h3{font-size:15px;line-height:1.3;margin:3px 0 7px;color:#292a31}
.guide-item p{margin:0;color:#72747e;font-size:13px;line-height:1.66}
.guide-footnote{font-size:12px;line-height:1.7;color:#9a9ba4;margin:5px 8px 0}
