:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#242729;background:#fafaf8;font-synthesis:none;line-height:1.6;--muted:#72777a;--border:#e4e5e1;--ink:#252a2b;--surface:#fff}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,input,select,a:focus-visible{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid #647f73}input:focus,select:focus{outline:2px solid #80988c;outline-offset:1px}button{touch-action:manipulation}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.75rem,4vw,2.25rem);font-weight:600;letter-spacing:-.04em;line-height:1.25;margin-bottom:12px}h2{font-size:1.3rem;font-weight:600;line-height:1.35;margin-bottom:14px}h3{font-size:1rem;font-weight:600;margin-bottom:12px}.site-shell{max-width:1280px;margin:auto;padding:0 40px;min-height:100dvh;display:flex;flex-direction:column}.site-header{min-height:96px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--border)}.brand{display:inline-flex;align-items:center;gap:8px;font-size:17px;font-weight:600;letter-spacing:.02em;flex-shrink:0}.brand-mark{font-size:25px;line-height:1}.account-bar{display:flex;align-items:center;gap:20px;font-size:13px}#account-name{font-weight:600}main{flex:1}.center-panel{min-height:calc(100dvh - 200px);display:flex;align-items:center;justify-content:center;padding:50px 0}.auth-card{width:100%;max-width:380px}.mfa-card{max-width:450px}.eyebrow{font-size:11px;letter-spacing:.18em;color:var(--muted);font-weight:600;margin-bottom:16px}.muted{color:var(--muted)}.small{font-size:12px}.auth-intro{font-size:14px;margin-bottom:30px}.auth-note{margin-top:18px;text-align:center}.optional{color:var(--muted);font-size:11px;font-weight:400;margin-left:6px}label:not(.file-picker):not(.checkbox-label):not(.sort-label){display:block;font-size:13px;font-weight:500;margin:17px 0 7px}input:not([type=checkbox]):not([type=file]){width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--border);background:#fff;border-radius:7px;color:var(--ink)}.otp-input{letter-spacing:.15em}.secret-input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:7px;border:1px solid transparent;font-size:13px;font-weight:500;line-height:1.4;text-align:center;text-decoration:none!important}.primary{background:var(--ink);color:#fff}.primary:hover{background:#424b49}.secondary{background:var(--surface);border-color:var(--border);color:var(--ink)}.secondary:hover{background:#f2f3ef}.full-width{width:100%}form>.primary.full-width{margin-top:24px}.text-button{border:0;background:transparent;color:var(--muted);padding:8px 0;min-height:40px;font-size:12px}.text-button:hover{color:var(--ink)}.form-error{color:#aa3f33;font-size:12px;margin-top:12px;overflow-wrap:anywhere}.notice{margin-top:24px;padding:12px 16px;background:#edf2ec;color:#3c5545;border:1px solid #dbe5d8;border-radius:7px;font-size:13px}.notice.error{background:#fff0ec;color:#9a4135;border-color:#eeddd8}.album-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:56px 0 32px}.album-heading h1{margin-bottom:10px}.album-heading p{margin-bottom:0}.album-heading .eyebrow{margin-bottom:14px}.album-heading>.button{flex-shrink:0}.album-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--border);padding-bottom:12px}.filters{display:flex;gap:6px}.filter{border:1px solid transparent;border-radius:6px;background:none;color:var(--muted);padding:8px 14px;font-size:13px;min-height:40px}.filter.active{border-color:var(--border);color:var(--ink);background:#fff}.toolbar-actions{display:flex;align-items:center;gap:18px}.sort-label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}select{border:0;background:transparent;color:var(--ink);font-size:12px;min-height:40px;max-width:116px}.catalog-meta{display:flex;justify-content:space-between;gap:12px;padding:16px 0 20px}.catalog-meta p{margin-bottom:0}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px;padding-bottom:48px}.media-card{min-width:0}.media-cover{border:1px solid var(--border);background:#f0f1ed;border-radius:9px;aspect-ratio:4/3;overflow:hidden;display:flex;align-items:center;justify-content:center;position:relative;width:100%;padding:0;color:#959b94;transition:background .15s}.media-cover:hover{background:#e7eae3}.media-cover img{width:100%;height:100%;object-fit:cover;display:block}.media-glyph{font-size:34px;font-weight:300}.cover-label{position:absolute;right:10px;bottom:8px;font-size:10px;letter-spacing:.04em;background:#ffffffd9;color:#646c63;border-radius:4px;padding:2px 6px}.media-title{font-size:13px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;margin:12px 0 3px}.media-info{font-size:11px;color:var(--muted);margin:0}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.card-action{font-size:11px;min-height:32px;flex-shrink:0}.empty-state{padding:60px 16px 100px;text-align:center}.empty-mark{font-size:48px;color:#a3aa9c;display:block;margin-bottom:18px}.empty-state h2{font-size:17px;margin-bottom:10px}.empty-state p{font-size:13px}.info-line{font-size:12px;color:#736856;background:#f3f0e9;border:1px solid #e9e4d9;border-radius:7px;padding:12px 16px;margin-bottom:24px}.site-footer{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--border);font-size:11px;color:#92978f;margin-top:12px}.modal{padding:28px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--ink);width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;box-shadow:0 24px 100px #121d1629}.modal::backdrop{background:#1a211c80;backdrop-filter:blur(3px)}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.modal-header h2{margin:0;overflow-wrap:anywhere;min-width:0}.icon-button{border:0;background:transparent;font-size:28px;color:var(--muted);width:36px;height:36px;padding:0;line-height:1;flex-shrink:0}.modal>form>p:first-child{font-size:13px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.file-picker{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;border:1px dashed #bcc5b7;background:#f8f9f5;border-radius:8px;min-height:110px;margin:18px 0 8px;cursor:pointer;font-size:14px}.file-input{width:100%;font-size:12px;margin:4px 0 12px}.file-input::file-selector-button{border:1px solid var(--border);border-radius:5px;padding:6px 10px;background:#fff;color:var(--ink);margin-right:8px}.selected-files{padding:0;list-style:none;margin:8px 0 20px;max-height:130px;overflow:auto;font-size:12px;color:var(--muted)}.selected-files li{overflow-wrap:anywhere;padding:4px 0;border-bottom:1px solid #f0f1ed}.checkbox-label{display:flex;align-items:flex-start;gap:10px;font-size:12px;margin:20px 0 12px;cursor:pointer}.checkbox-label input{flex-shrink:0;margin:4px 0;accent-color:var(--ink);width:15px;height:15px}.upload-progress-box{padding-top:10px}progress{width:100%;height:8px;border:0;border-radius:4px;overflow:hidden;background:#eceee8;accent-color:#617562}progress::-webkit-progress-bar{background:#eceee8}progress::-webkit-progress-value{background:#617562}progress::-moz-progress-bar{background:#617562}.viewer-modal{width:min(960px,calc(100% - 24px))}.viewer-content{background:#f1f2ed;display:flex;align-items:center;justify-content:center;min-height:150px;border-radius:8px;overflow:hidden}.viewer-content img,.viewer-content video{display:block;width:100%;max-height:70dvh;object-fit:contain}.viewer-content p{margin:25px;font-size:13px}.viewer-modal>p{margin:14px 0 0}.security-status{font-size:13px;color:#526a53;background:#f0f4ec;border-radius:6px;padding:10px 12px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#728768;margin-right:6px}.session-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--border)}#mfa-app-link{margin:6px 0 4px}#mfa-logout{margin-top:10px}[hidden]{display:none!important}
@media(min-width:1300px){.gallery{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:900px){.site-shell{padding:0 28px}.gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}.album-toolbar{align-items:flex-start;flex-direction:column;gap:8px}.toolbar-actions{width:100%;justify-content:flex-end;gap:22px}.filters{width:100%}.catalog-meta{padding-top:14px}}
@media(max-width:600px){.site-shell{padding:0 20px}.site-header{min-height:76px;gap:10px}.brand{font-size:15px;gap:4px}.brand-mark{font-size:22px}.account-bar{gap:13px;font-size:11px}.account-bar .text-button{font-size:11px}.center-panel{min-height:calc(100dvh - 174px);padding:38px 0}.album-heading{display:block;padding:32px 0 26px}.album-heading>.button{margin-top:24px;width:100%}.album-heading h1{font-size:29px}.album-heading>.muted{font-size:13px}.album-heading .eyebrow{margin-bottom:10px}.toolbar-actions{gap:15px;justify-content:space-between}.filter{padding:8px 16px}.toolbar-actions>.text-button{font-size:11px}.sort-label{font-size:11px;gap:3px}select{font-size:11px;max-width:102px}.catalog-meta{flex-wrap:wrap;gap:4px}.catalog-meta .small{font-size:10px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.media-cover{border-radius:7px;aspect-ratio:1/1}.media-title{font-size:12px;margin-top:9px}.media-info{font-size:10px}.card-bottom{gap:5px}.card-action{font-size:10px}.media-glyph{font-size:30px}.cover-label{font-size:9px;right:6px;bottom:6px}.site-footer{min-height:78px;font-size:10px;flex-wrap:wrap;align-content:center;gap:4px 12px}.site-footer a{margin-left:auto}.modal{padding:22px;max-height:calc(100dvh - 28px)}.modal-header h2{font-size:18px}.viewer-modal{padding:16px}.empty-state{padding-top:42px}.modal-actions .button{flex:1}.secret-input{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.site-shell{min-height:calc(100dvh - 64px)}.icp-filing{display:flex;align-items:center;justify-content:center;min-height:64px;margin:0 auto;padding:12px 20px;max-width:1200px;border-top:1px solid var(--border);color:#92978f;font-size:11px}.icp-filing a{padding:6px 0}@media(max-width:600px){.icp-filing{margin:0 20px;font-size:10px;min-height:64px}}
.processing-label{background:#fff4dd;color:#786440}.card-retry{font-size:11px;min-height:32px;color:#667b5f}.viewer-message{text-align:center;padding:28px 18px}.viewer-message p{margin:0 0 18px}.viewer-message .card-retry{padding:8px 18px}
.card-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.card-purge{color:#a34b41}.card-purge:hover{color:#84352c}.danger{background:#a4463b}.danger:hover{background:#85362c}#confirm-text{overflow-wrap:anywhere}@media(max-width:600px){.trash-card-bottom{flex-direction:column;align-items:flex-start;gap:0}.trash-card-bottom .card-actions{width:100%;justify-content:space-between}.card-actions{gap:8px}}
.processing-progress{margin:10px 0 7px;font-size:11px;line-height:1.5}.processing-progress p{margin:0 0 5px;overflow-wrap:anywhere}.processing-stage{color:#626d59;font-weight:500}.processing-percentage,.processing-details,.processing-eta{color:var(--muted)}.processing-progress progress{height:5px;margin:3px 0 7px;display:block}.viewer-processing{width:min(460px,100%);padding:32px 24px}.viewer-processing .processing-progress{margin:0;font-size:13px}.viewer-processing .processing-progress p{margin:0 0 10px}.viewer-processing .processing-stage{font-size:16px}.viewer-processing progress{height:8px;margin:12px 0 16px}.viewer-processing .processing-note{font-size:11px;color:var(--muted);margin:18px 0 8px;line-height:1.6}.viewer-processing .card-retry{padding:8px 0}@media(max-width:600px){.processing-progress{font-size:10px}.viewer-processing{padding:24px 18px}.viewer-processing .processing-stage{font-size:15px}}
#authenticator-start-form,#authenticator-confirm-form{margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}#authenticator-app-link{margin:12px 0}#authenticator-expiry{margin-top:12px}#authenticator-cancel{margin-top:8px}#authenticator-message{color:#526a53}
.upload-kind{width:100%;max-width:none;border:1px solid var(--border);border-radius:7px;padding:8px 12px;background:var(--surface)}.viewer-content{flex-wrap:wrap}.live-photo-controls{flex:0 0 100%;padding:14px 18px;text-align:center;background:#fff}.live-photo-controls .processing-progress{text-align:left;max-width:460px;margin:0 auto 12px}.live-photo-controls .small{margin:10px 0 0}.live-photo-controls .card-retry{margin-top:6px}
