:root{font-family:Roboto,"Noto Sans",Arial,sans-serif;color:#202124;background:#fff;color-scheme:light;font-synthesis:none;--blue:#1a63d9;--muted:#666a70;--line:#e6e7ea}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;color:inherit;border-radius:10px;padding:11px 16px;min-height:44px}button:hover{background:#f2f4f7}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,h1:focus-visible{outline:3px solid #75a7ff;outline-offset:3px}input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select{width:100%;padding:12px;border:1px solid #c6c8cd;border-radius:10px;background:#fff;color:#202124}input[type=file]{max-width:100%}label{display:block;margin:16px 0 8px;font-weight:500}p{line-height:1.5}h1,h2,p{overflow-wrap:anywhere}h1{font-size:28px;font-weight:600;letter-spacing:-.025em}h2{font-size:18px;font-weight:600}a{color:#175bc1;text-underline-offset:3px}::selection{background:#dbe8ff}input{caret-color:var(--blue)}[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.icon-button{display:inline-flex;align-items:center;justify-content:center;padding:10px;border:0;border-radius:50%;width:44px;height:44px;flex:0 0 auto;background:transparent}.icon-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#photos-app{max-width:960px;margin:auto;padding-bottom:env(safe-area-inset-bottom)}.photos-header{padding:22px 20px 0;background:#fff;position:sticky;top:0;z-index:3;border-bottom:1px solid #f1f2f4}.title-row,.header-buttons,.gallery-tabs,.date-row{display:flex;align-items:center}.title-row{justify-content:space-between}.title-row h1{margin:0;user-select:none;-webkit-user-select:none;touch-action:manipulation}.header-buttons{gap:2px}.gallery-tabs{gap:32px;margin-top:18px}.gallery-tabs button{padding:12px 0 14px;border:0;border-radius:0;min-height:46px;font-size:18px;font-weight:600;color:#6b6f76;background:transparent}.gallery-tabs button[aria-current]{color:var(--blue);box-shadow:inset 0 -3px var(--blue)}#search-box{padding:0 0 14px}.date-row{padding:20px 16px 12px;justify-content:space-between}.date-row h2{font-size:15px;margin:0}.date-row span{font-size:12px;color:var(--muted)}.media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:0 3px}.media-tile{position:relative;padding:0;border:0;border-radius:0;aspect-ratio:1;overflow:hidden;background:#eef0f2;min-width:0;min-height:0}.media-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .12s}.media-tile:hover img{opacity:.9}.video-badge{position:absolute;right:6px;bottom:7px;color:white;background:rgba(0,0,0,.62);padding:2px 5px;border-radius:4px;font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;display:flex;gap:4px;align-items:center}.video-badge svg{width:12px;height:12px;fill:white;stroke:none}.small-menu{position:absolute;right:20px;top:70px;min-width:190px;padding:6px;background:#fff;border-radius:12px;box-shadow:0 5px 20px #0002}.small-menu button{display:block;width:100%;text-align:left;border:0;border-radius:6px}.album-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px;padding:24px 16px}.album-tile{padding:0;border:0;text-align:left;background:none}.album-tile img{width:100%;aspect-ratio:1.1;object-fit:cover;border-radius:14px;background:#eff1f3}.album-tile strong{display:block;margin:10px 0 4px;font-size:15px}.album-tile span{color:var(--muted);font-size:13px}.quiet{color:var(--muted);font-size:14px;line-height:1.55}#no-media{text-align:center;padding:60px 24px}
.setup-page{max-width:720px;padding:24px 22px 64px;margin:auto}.setup-page>h1{margin:12px 0}.setup-heading{display:flex;align-items:center;gap:16px;justify-content:space-between}.setup-heading h1{font-size:25px}.setup-section{border-top:1px solid var(--line);padding-top:16px;margin-top:30px}.setup-section p{max-width:68ch}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:#1452b8}.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;font-weight:400;line-height:1.5}.check input{width:18px;height:18px;flex:0 0 auto;accent-color:var(--blue)}.quadrant-guide{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:20px 0}.quadrant-guide div{padding:18px;border:1px solid #f0f1f3;font-size:14px}.quadrant-guide img{display:block;height:64px;width:64px;object-fit:contain;margin:0 auto 10px}.quadrant-guide div{text-align:center}.outcome-editor,.remote-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.outcome-slot{min-width:0}.outcome-slot img{height:100px;width:100%;object-fit:contain;background:#fafafa;border-radius:10px}.outcome-slot button{display:block;width:100%;margin-top:8px}.outcome-slot label{font-size:14px;margin:10px 0 6px}.error{color:#a52626}#setup-status,#offline-status{font-size:14px;line-height:1.55}details{margin:20px 0}summary{cursor:pointer;font-weight:500;padding:10px 0}#sample-credits p{font-size:12px}
.viewer{position:fixed;inset:0;z-index:10;background:#080808;color:white;display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.viewer-header{display:flex;align-items:center;gap:10px;padding:12px 12px 8px;background:#080808}.viewer-header>div{flex:1;min-width:0}.viewer-header p{margin:0}.viewer-header #viewer-name{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewer-header #viewer-date{font-size:12px;color:#b9b9bd;margin-top:3px}.viewer .icon-button{color:white}.viewer .icon-button:hover{background:#fff2}.media-stage{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none}.media-stage>img,.media-stage>video,.media-stage>canvas{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.viewer-controls{padding:12px 22px 20px}.video-timeline{display:flex;align-items:center;gap:12px}.video-timeline span{font-size:12px;color:#ddd;font-variant-numeric:tabular-nums;min-width:28px}.video-timeline input{width:100%;accent-color:white;height:24px;cursor:pointer}.video-buttons{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.play-button{width:56px;height:56px}.play-button svg{width:30px;height:30px}.play-button use[href="#i-play"]{fill:white;stroke:none}.media-details{position:absolute;top:72px;right:16px;left:16px;margin-left:auto;max-width:360px;border:1px solid #464646;border-radius:12px;background:#242424;padding:20px;font-size:14px;line-height:1.6}#viewer-error{position:absolute;bottom:140px;padding:12px 20px;left:16px;right:16px;background:#292929;border-radius:10px;font-size:14px}
.remote-presets button img{width:100%;height:82px;object-fit:contain;display:block;margin-bottom:8px}#control-text-form{margin:26px 0}#control-text-form button{margin-top:12px}#remote-drawing{display:block;width:100%;aspect-ratio:1;background:white;border:1px solid #c6c8cd;border-radius:12px;touch-action:none}#control-current{margin:24px 0}#control-current img{max-width:100%;max-height:280px;object-fit:contain}#control-current figcaption{font-size:14px;color:var(--muted);margin-bottom:12px}
@media(min-width:700px){.media-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.photos-header{padding-top:32px}.album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.viewer-controls{width:min(100%,760px);margin:auto}.viewer-header{padding:16px 24px}.media-details{right:24px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.actions>a{display:inline-flex;align-items:center;padding:11px 6px;min-height:44px}
.spaced{margin-top:12px}
:root{scrollbar-width:thin;scrollbar-color:#b7bbc3 #fff}
.photos-header{padding-top:calc(22px + env(safe-area-inset-top))}
#gallery-title{min-height:44px;display:flex;align-items:center;-webkit-touch-callout:none}
.appearance-section{margin-top:24px}
.theme-options{padding:0;margin:24px 0;border:0;min-width:0}
.theme-options legend{font-weight:600;margin-bottom:8px}
.theme-options label{display:flex;align-items:center;gap:14px;margin:0;padding:14px 4px;border-bottom:1px solid var(--line);cursor:pointer}
.theme-options input{width:20px;height:20px;margin:0;flex:0 0 auto;accent-color:var(--blue)}
.theme-options img{width:44px;height:44px;border-radius:11px;flex:0 0 auto}
.theme-options small{display:block;color:var(--muted);font-size:13px;font-weight:400;line-height:1.5;margin-top:3px}
.home-icon-preview{display:flex;align-items:center;gap:16px;margin:26px 0 20px}
.home-icon-preview img{border-radius:15px;object-fit:cover;flex:0 0 auto;box-shadow:0 2px 7px #0002}
.home-icon-preview p{margin:4px 0 0}
.gallery-tabs svg{display:none}
#gallery-setup-link-status{overflow-wrap:anywhere}
:root[data-gallery-theme="miui"] #photos-app{background:#f7f7f7;min-height:100dvh;padding-bottom:calc(100px + env(safe-area-inset-bottom))}
:root[data-gallery-theme="miui"] .photos-header{background:#f7f7f7;border:0;padding-bottom:8px}
:root[data-gallery-theme="miui"] .title-row{position:relative;min-height:106px;align-items:flex-end}
:root[data-gallery-theme="miui"] #gallery-title{font-size:34px;font-weight:400;letter-spacing:-.025em}
:root[data-gallery-theme="miui"] .header-buttons{position:absolute;top:0;right:0}
:root[data-gallery-theme="miui"] .gallery-tabs{position:fixed;bottom:calc(22px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);margin:0;padding:4px 10px;gap:12px;width:188px;justify-content:center;border-radius:32px;background:#fff;box-shadow:0 4px 20px #0002}
:root[data-gallery-theme="miui"] .gallery-tabs button{min-width:70px;min-height:48px;padding:11px 22px;border:0;border-radius:24px;display:flex;align-items:center;justify-content:center;color:#757575}
:root[data-gallery-theme="miui"] .gallery-tabs button[aria-current]{color:#222;background:#f0f0f2;box-shadow:none}
:root[data-gallery-theme="miui"] .gallery-tabs svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
:root[data-gallery-theme="miui"] .gallery-tabs span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:root[data-gallery-theme="miui"] .media-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:0 2px}
:root[data-gallery-theme="miui"] .date-row{padding:16px 20px 12px}
:root[data-gallery-theme="miui"] .album-tile img{border-radius:12px}
:root[data-gallery-theme="miui"] #search-box{padding-top:14px}
:root[data-gallery-theme="miui"] .small-menu{top:66px}
@media(min-width:700px){:root[data-gallery-theme="miui"] .media-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-height:500px) and (orientation:landscape){:root[data-gallery-theme="miui"] .title-row{min-height:48px;align-items:center}:root[data-gallery-theme="miui"] .header-buttons{position:static}:root[data-gallery-theme="miui"] .gallery-tabs{bottom:calc(8px + env(safe-area-inset-bottom))}}
#appearance-status{font-size:14px;line-height:1.55}
:root[data-gallery-theme="samsung"] #photos-app,:root[data-gallery-theme="iphone"] #photos-app{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
:root[data-gallery-theme="samsung"] .photos-header{border:0;padding-bottom:6px}
:root[data-gallery-theme="samsung"] .title-row{position:relative;min-height:132px;justify-content:center;padding-bottom:32px}
:root[data-gallery-theme="samsung"] #gallery-title{font-size:34px;font-weight:400;letter-spacing:-.025em}
:root[data-gallery-theme="samsung"] .header-buttons{position:absolute;right:0;bottom:0}
:root[data-gallery-theme="samsung"] .gallery-tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,960px);margin:0;justify-content:center;gap:56px;background:#fff;padding:8px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #eeeeef}
:root[data-gallery-theme="samsung"] .gallery-tabs button{min-width:92px;padding:10px 0;font-size:16px;font-weight:600;color:#606168}
:root[data-gallery-theme="samsung"] .gallery-tabs button[aria-current]{color:#171719;border-bottom:2px solid #171719;box-shadow:none}
:root[data-gallery-theme="samsung"] .media-grid{gap:2px}
:root[data-gallery-theme="samsung"] .date-row h2{font-size:15px;font-weight:600}
:root[data-gallery-theme="iphone"]{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:root[data-gallery-theme="iphone"] #gallery-title{font-size:34px;font-weight:700;letter-spacing:-.03em}
:root[data-gallery-theme="iphone"] .photos-header{padding:calc(22px + env(safe-area-inset-top)) 20px 12px;border:0}
:root[data-gallery-theme="iphone"] .gallery-tabs{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);margin:0;padding:5px;gap:4px;width:min(340px,calc(100% - 32px));justify-content:center;border-radius:32px;background:#eeeeF1;box-shadow:0 4px 18px #0002}
:root[data-gallery-theme="iphone"] .gallery-tabs button{flex:1;min-height:48px;border:0;border-radius:26px;padding:10px 16px;font-size:15px;font-weight:600;color:#595b62}
:root[data-gallery-theme="iphone"] .gallery-tabs button[aria-current]{background:#fff;color:#0062d1;box-shadow:none}
:root[data-gallery-theme="iphone"] .media-grid{gap:2px}
:root[data-gallery-theme="iphone"] .date-row{padding-top:10px;padding-bottom:18px}
:root[data-gallery-theme="iphone"] .date-row h2{font-size:22px;letter-spacing:-.025em}
:root[data-gallery-theme="iphone"] .album-tile img{border-radius:8px}
@media(max-height:500px) and (orientation:landscape){:root[data-gallery-theme="samsung"] .title-row{min-height:58px;padding:0;justify-content:space-between}:root[data-gallery-theme="samsung"] .header-buttons{position:static}:root[data-gallery-theme="samsung"] #gallery-title{font-size:28px}}
