:root{color-scheme:light;--bg-page: #f4f3ee;--bg-surface: #fffefa;--bg-surface-2: #ebeae4;--bg-muted: #e5e4dd;--bg-subtle: #f8f7f2;--bg-info: #e9eaff;--input-bg: #fffefa;--btn-secondary-bg: #fffefa;--text-primary: #171919;--text-secondary: #4a5050;--text-muted: #707676;--border: #d8d8d0;--border-strong: #bfc1b7;--border-soft: #e6e5df;--border-dashed: #afb3a8;--accent: #c9ff27;--accent-hover: #b5ee00;--accent-text: #547000;--accent-ink: #182000;--accent-ring: rgba(181, 238, 0, .38);--accent-soft-bg: #efffc5;--accent-soft-bg-strong: #e3ff8a;--accent-soft-border: #a6ce17;--cta: #ff0000;--cta-hover: #cc0000;--cta-ink: #3a0000;--cta-ring: rgba(255, 0, 0, .35);--hot: #f25d82;--hot-soft: #ffe4eb;--panel-bg: #171919;--panel-text: #f8f8f2;--editor-backdrop: #202322;--modal-backdrop: rgba(16, 19, 18, .66);--shadow-sm: 0 4px 0 rgba(23, 25, 25, .06);--shadow-md: 0 18px 50px rgba(23, 25, 25, .17);--shadow-drawer: 14px 0 40px rgba(23, 25, 25, .25);--shadow-float: 0 8px 22px rgba(23, 25, 25, .18);--warn-text: #8b5a00;--error-bg: #ffe7e8;--error-text: #9d2736;--success-bg: #e3f8dc;--success-text: #306a32;color:var(--text-primary);background:var(--bg-page);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility}[data-theme=dark]{color-scheme:dark;--bg-page: #171919;--bg-surface: #202322;--bg-surface-2: #292d2b;--bg-muted: #303532;--bg-subtle: #1a1d1c;--bg-info: #292d48;--input-bg: #171919;--btn-secondary-bg: #252927;--text-primary: #f7f8f1;--text-secondary: #c1c8c1;--text-muted: #98a19a;--border: #393e3a;--border-strong: #545b55;--border-soft: #303532;--border-dashed: #596159;--accent-text: #d6ff56;--accent-ink: #182000;--accent-ring: rgba(201, 255, 39, .3);--accent-soft-bg: rgba(201, 255, 39, .13);--accent-soft-bg-strong: rgba(201, 255, 39, .2);--accent-soft-border: #87a927;--hot: #ff86a5;--hot-soft: rgba(242, 93, 130, .16);--panel-bg: #101211;--editor-backdrop: #111312;--modal-backdrop: rgba(0, 0, 0, .76);--shadow-sm: 0 4px 0 rgba(0, 0, 0, .15);--shadow-md: 0 20px 56px rgba(0, 0, 0, .38);--shadow-drawer: 14px 0 40px rgba(0, 0, 0, .55);--shadow-float: 0 8px 22px rgba(0, 0, 0, .35);--warn-text: #ffd76b;--error-bg: rgba(183, 47, 65, .22);--error-text: #ffa9b4;--success-bg: rgba(67, 137, 68, .22);--success-text: #abeca2}*{box-sizing:border-box}html{min-width:320px}body{min-width:320px;min-height:100vh;margin:0;color:var(--text-primary);background-color:var(--bg-page);background-image:radial-gradient(var(--border-soft) .65px,transparent .65px);background-size:12px 12px;transition:background-color .2s ease,color .2s ease}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}img{display:block;max-width:100%}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{text-wrap:balance}.eyebrow,.auth-kicker{margin-bottom:9px;color:var(--accent-text);font-size:11px;font-weight:900;letter-spacing:.13em;line-height:1.2;text-transform:uppercase}label{display:grid;gap:8px;color:var(--text-primary);font-size:13px;font-weight:800}input,select,textarea{width:100%;min-height:48px;border:1px solid var(--border-strong);border-radius:10px;outline:none;background:var(--input-bg);color:var(--text-primary);padding:12px 14px;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}input::placeholder,textarea::placeholder{color:var(--text-muted);opacity:.78}input:hover,select:hover,textarea:hover{border-color:var(--text-muted)}input:focus,select:focus,textarea:focus{border-color:var(--accent-text);box-shadow:0 0 0 3px var(--accent-ring)}textarea{min-height:96px;resize:vertical}input:read-only,textarea:read-only{background:var(--bg-subtle);color:var(--text-muted);cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.primary-button,.secondary-button,.ghost-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;font-size:14px;font-weight:900;line-height:1.1;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease}.primary-button{min-height:48px;background:var(--accent);box-shadow:3px 3px 0 var(--accent-ink);color:var(--accent-ink);padding:0 18px}.primary-button:hover:not(:disabled){transform:translate(1px,1px);box-shadow:2px 2px 0 var(--accent-ink);background:var(--accent-hover)}.primary-button:active:not(:disabled){transform:translate(3px,3px);box-shadow:0 0 0 var(--accent-ink)}.primary-button:disabled{opacity:.58;box-shadow:none}.primary-button.cta-button{background:var(--cta);box-shadow:3px 3px 0 var(--cta-ink);color:var(--cta-ink)}.primary-button.cta-button:hover:not(:disabled){box-shadow:2px 2px 0 var(--cta-ink);background:var(--cta-hover)}.primary-button.cta-button:active:not(:disabled){box-shadow:0 0 0 var(--cta-ink)}.cta-button:focus-visible{outline-color:var(--cta);box-shadow:0 0 0 3px var(--cta-ring)}.secondary-button{min-height:44px;border-color:var(--border-strong);background:var(--btn-secondary-bg);color:var(--text-primary);padding:0 15px}.secondary-button:hover:not(:disabled){border-color:var(--text-primary);background:var(--bg-muted);transform:translateY(-1px)}.ghost-button{width:100%;min-height:42px;background:transparent;color:var(--text-secondary);padding:0 12px}.ghost-button:hover{background:var(--hot-soft);color:var(--hot)}.icon-button{width:42px;height:42px;background:var(--bg-muted);color:var(--text-primary)}.icon-button:hover:not(:disabled){background:var(--accent);color:var(--accent-ink)}.compact-button{min-height:36px;padding:0 10px;font-size:12px}.compact-icon-button{width:34px;height:34px;flex-shrink:0}.form-error,.form-success,.form-info{position:relative;z-index:10;margin-bottom:16px;border:1px solid transparent;border-radius:10px;padding:11px 13px;font-size:13px;font-weight:650}.form-error{border-color:color-mix(in srgb,var(--error-text) 25%,transparent);background:var(--error-bg);color:var(--error-text)}.form-success{border-color:color-mix(in srgb,var(--success-text) 25%,transparent);background:var(--success-bg);color:var(--success-text)}.form-info{display:flex;align-items:center;gap:8px;background:var(--bg-info);color:var(--text-secondary)}.spin{animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loader-page{display:grid;min-height:100vh;place-items:center;color:var(--accent-text)}.auth-page{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(370px,.65fr);min-height:100vh;padding:20px;gap:20px;background:#151817}.auth-hero{position:relative;display:flex;min-height:calc(100vh - 40px);flex-direction:column;overflow:hidden;border:1px solid #3e453d;border-radius:20px;background:#222624;color:#f7f8f1;padding:clamp(28px,5vw,64px)}.auth-hero:before{position:absolute;z-index:0;top:-22vmax;right:-17vmax;width:46vmax;height:46vmax;border:clamp(44px,7vw,92px) solid var(--accent);border-radius:50%;content:"";opacity:.95}.auth-hero:after{position:absolute;right:7%;bottom:12%;width:clamp(104px,13vw,190px);height:clamp(104px,13vw,190px);border:1px solid #596057;border-radius:18px;background:repeating-linear-gradient(-45deg,transparent 0 11px,rgba(201,255,39,.14) 11px 13px);content:"";transform:rotate(-12deg)}.auth-hero>*{position:relative;z-index:1}.auth-hero .brand-button{display:block;width:min(480px,85%);background:transparent;padding:8px 0}.auth-hero .brand-logo{width:100%}.brand-logo--dark,[data-theme=dark] .brand-logo--light,.auth-hero .brand-logo--light{display:none}[data-theme=dark] .brand-logo--dark,.auth-hero .brand-logo--dark{display:block}.auth-hero-copy{max-width:700px;margin-top:auto;padding-top:clamp(24px,4vw,48px)}.auth-kicker{color:var(--accent)}.auth-hero h1{max-width:640px;margin-bottom:22px;font-family:Impact,Haettenschweiler,Arial Narrow Bold,sans-serif;font-size:clamp(58px,8vw,118px);font-weight:400;letter-spacing:.015em;line-height:1.14;text-transform:uppercase}.auth-hero h1 span{color:var(--accent)}.auth-hero h1.auth-hero-title{margin-bottom:16px;font-size:clamp(44px,min(5.2vw,10vh),76px);line-height:.96}.auth-hero-copy>p:last-child{max-width:490px;margin-bottom:0;color:#c2c8c0;font-size:clamp(16px,1.6vw,19px);line-height:1.45}.auth-hero-points{display:flex;flex-wrap:wrap;gap:12px 28px;margin:clamp(24px,4vw,40px) 0 0;padding:0;list-style:none;color:#d7ddd4;font-size:12px;font-weight:750}.auth-hero-points li{display:flex;align-items:center;gap:8px}.auth-hero-points svg{flex:0 0 auto;color:var(--accent);stroke-width:2.4}.auth-card{align-self:center;width:min(100%,480px);margin:auto;border:1px solid var(--border);border-radius:18px;background:var(--bg-surface);box-shadow:var(--shadow-md);padding:clamp(24px,4vw,42px)}.stack{display:grid;gap:16px}.auth-card-heading{margin-bottom:10px}.auth-card-heading h2{margin-bottom:7px;font-size:clamp(26px,3vw,34px);letter-spacing:-.055em;line-height:1}.auth-card-heading>p:last-child{margin-bottom:0;color:var(--text-muted);font-size:14px}.auth-submit{width:100%;margin-top:4px}.auth-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:4px}.auth-login-links{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.auth-link{width:fit-content;border:0;background:transparent;color:var(--accent-text);padding:2px 0;text-align:left;font-size:13px;font-weight:850}.auth-login-links .auth-link:last-child{justify-self:end;text-align:right}.auth-link:hover{color:var(--text-primary);text-decoration:underline;text-underline-offset:3px}.dashboard-shell{display:grid;grid-template-columns:274px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;display:flex;height:100vh;flex-direction:column;gap:15px;border-right:1px solid var(--border);background:var(--bg-surface);padding:22px 16px 18px}.brand{display:flex;align-items:flex-start;justify-content:space-between;min-height:60px;padding:4px 8px 14px}.brand>div{min-width:0}.brand .brand-button{display:flex;width:280px;max-width:100%;border:0;background:transparent;padding:0;transform:scale(1.15);transform-origin:left center}.brand .brand-logo{width:100%}.brand-button{cursor:pointer;transition:opacity .18s ease}.brand-button:hover{opacity:.68}.brand-caption,.mobile-menu-button,.mobile-sidebar-close,.mobile-menu-backdrop{display:none}.sidebar-nav{display:grid;gap:4px}.sidebar-nav button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--text-secondary);padding:0 11px;text-align:left;font-size:13px;font-weight:800;transition:background-color .18s ease,color .18s ease,transform .18s ease}.sidebar-nav button:hover{background:var(--bg-muted);color:var(--text-primary)}.sidebar-nav button.active{border-color:var(--border);background:var(--bg-muted);box-shadow:inset 3px 0 0 var(--accent);color:var(--text-primary)}.sidebar-create{display:grid;gap:8px;border:1px dashed var(--border-strong);border-radius:12px;background:var(--bg-subtle);padding:12px}.sidebar-create>span{color:var(--text-muted);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.sidebar-create .primary-button{width:100%;min-height:40px;padding:0 10px;font-size:12px}.sidebar-nav--bottom{margin-top:auto}.theme-toggle{position:relative;width:52px;min-height:38px;border:1px solid var(--border);border-radius:999px;background:var(--bg-subtle);color:var(--text-secondary);padding:0}.theme-toggle-thumb{position:absolute;top:6px;left:5px;width:26px;height:26px;border-radius:50%;background:var(--accent);transition:transform .2s ease,background-color .2s ease}.theme-toggle-icon{position:absolute;top:50%;transform:translateY(-50%)}.theme-toggle-icon--sun{left:10px;color:var(--accent-ink)}.theme-toggle-icon--moon{display:none}[data-theme=dark] .theme-toggle-thumb{transform:translate(16px);background:#8e9890}[data-theme=dark] .theme-toggle-icon--sun{display:none}[data-theme=dark] .theme-toggle-icon--moon{display:block;left:26px;color:#151817}.profile-card{display:flex;align-items:center;gap:10px;width:100%;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--bg-surface);color:var(--text-primary);padding:10px;text-align:left}.profile-card:hover{border-color:var(--accent-text);background:var(--accent-soft-bg)}.profile-card span{display:block;color:var(--text-muted);font-size:11px;font-weight:700}.profile-card strong{display:block;overflow:hidden;max-width:185px;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.dashboard-main{width:min(100%,1660px);padding:clamp(24px,4vw,54px)}.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:30px}.dashboard-header-copy{max-width:770px}.dashboard-title-row{display:flex;align-items:center;gap:12px}.dashboard-title-icon{display:grid;width:38px;height:38px;flex:none;place-items:center;border-radius:10px;background:var(--accent);color:var(--accent-ink);transform:rotate(-5deg)}.dashboard-header h1{margin:0;font-size:clamp(34px,4vw,54px);letter-spacing:-.065em;line-height:.95}.dashboard-header-copy>p:last-child{max-width:670px;margin:13px 0 0;color:var(--text-muted);font-size:15px}.dashboard-header-actions{display:flex;align-items:center;gap:12px;flex:none;padding-top:4px}.header-note{display:grid;max-width:115px;color:var(--text-muted);font-size:11px;line-height:1.25}.header-note b{color:var(--text-primary);font-size:13px}.quick-start{display:grid;grid-template-columns:minmax(250px,.78fr) minmax(420px,1.22fr);gap:clamp(22px,4vw,52px);overflow:hidden;margin-bottom:24px;border:1px solid #343a35;border-radius:18px;background:#202522;color:#f7f8f1;padding:clamp(23px,4vw,38px)}.quick-start-intro{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.quick-start .eyebrow{color:var(--accent)}.quick-start h2{margin-bottom:14px;font-family:Impact,Haettenschweiler,Arial Narrow Bold,sans-serif;font-size:clamp(33px,3.5vw,51px);font-weight:400;letter-spacing:.05em;line-height:1.1;text-transform:uppercase}.quick-start h2 span{color:var(--accent)}.quick-start-intro>p:not(.eyebrow){max-width:430px;color:#bac3ba;font-size:14px}.quick-start .primary-button{margin-top:5px}.quick-start-steps{display:grid;align-content:center;gap:0;margin:0;padding:0;list-style:none}.quick-start-steps li{display:grid;grid-template-columns:40px 28px minmax(0,1fr);align-items:center;gap:12px;min-height:84px;border-bottom:1px solid #384039;padding:12px 0}.quick-start-steps li:last-child{border-bottom:0}.quick-start-number{color:var(--accent);font-family:Impact,sans-serif;font-size:20px;font-weight:400;letter-spacing:.06em}.quick-start-steps svg{color:#f7f8f1}.quick-start-steps strong{display:block;font-size:15px}.quick-start-steps p{margin:2px 0 0;color:#aeb8ae;font-size:12px}.content-section,.modal{border:1px solid var(--border);border-radius:16px;background:var(--bg-surface);box-shadow:var(--shadow-sm)}.content-section{padding:clamp(18px,3vw,28px)}.section-heading{margin-bottom:20px;color:var(--text-muted);font-size:14px}.section-heading>p{max-width:700px;margin:0}.section-heading.split{display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-grid,.album-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.reference-groups{display:grid;gap:26px}.reference-group{display:grid;gap:14px}.reference-group-title{margin:0;font-size:17px;letter-spacing:-.02em}.preview-card,.album-card,.source-photo-card{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--bg-surface);content-visibility:auto;contain-intrinsic-size:300px;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.preview-card:hover,.album-card:hover,.source-photo-card:hover{border-color:var(--text-muted);box-shadow:var(--shadow-sm);transform:translateY(-2px)}.preview-card-open{display:block;width:100%;border:0;background:transparent;padding:0;cursor:zoom-in}.preview-card img{width:100%;aspect-ratio:16 / 9;background:var(--bg-subtle);object-fit:cover}.preview-card-body{display:grid;gap:0;padding:14px}.preview-card h3,.album-card h3{margin:0;font-size:15px;line-height:1.18}.preview-card-body h3{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.preview-card span,.album-card span{color:var(--accent-text);font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.use-reference-button{width:100%;min-height:38px;margin-top:13px;padding:0 10px;font-size:12px}.preview-card-actions{position:absolute;z-index:1;top:9px;right:9px;display:flex;gap:6px}.favorite-button,.delete-button,.download-button{display:inline-grid;width:35px;height:35px;place-items:center;border:1px solid rgba(255,255,255,.58);border-radius:9px;background:#161918d1;color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.favorite-button:hover,.favorite-button.is-favorite{background:var(--hot);color:#fff}.delete-button:hover{background:#cf3f58}.download-button:hover{background:var(--accent)}.download-button:disabled,.delete-button:disabled{cursor:wait;opacity:.7}.favorite-button:disabled,.delete-button:disabled{cursor:wait;opacity:.7}.album-card-open{display:block;width:100%;border:0;background:transparent;color:inherit;padding:0;text-align:left}.album-card img{width:100%;aspect-ratio:4 / 3;background:var(--bg-subtle);object-fit:cover}.album-card div{padding:14px}.album-card h3{margin-top:5px}.album-placeholder{display:grid;width:100%;aspect-ratio:4 / 3;place-items:center;background:var(--accent-soft-bg);color:var(--accent-text)}.album-card-description{color:var(--text-muted);font-size:13px;display:-webkit-box;margin:8px 0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.source-photo-card img{width:100%;aspect-ratio:1;background:var(--bg-subtle);object-fit:contain}.source-photo-card .delete-button{position:absolute;z-index:1;top:9px;right:9px}.source-photo-open{display:block;width:100%;border:0;background:transparent;padding:0;cursor:zoom-in}.source-photo-card span{display:block;overflow:hidden;color:var(--text-secondary);padding:10px 12px;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}.album-card .delete-button{position:absolute;z-index:1;top:9px;right:9px}.empty-state{display:grid;min-height:240px;place-items:center;border:1px dashed var(--border-dashed);border-radius:12px;color:var(--text-muted);padding:24px;text-align:center}.empty-state p{margin-bottom:0}.empty-state-upload{align-content:center;gap:17px}.empty-state-title{color:var(--text-primary);font-size:18px;font-weight:800}.empty-state-dropzone{width:min(420px,100%);justify-content:center;min-height:64px}.inline-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.album-edit-form{display:grid;gap:16px;margin-bottom:22px;border:1px solid var(--border);border-radius:12px;background:var(--bg-subtle);padding:18px}.album-edit-form .section-heading{margin-bottom:0}.album-edit-form .section-heading h3{margin-bottom:4px}.inline-link{border:0;background:transparent;color:var(--accent-text);padding:0;font:inherit;font-weight:850;text-decoration:underline;text-underline-offset:3px}.inline-link:hover{color:var(--text-primary)}.reference-source{display:block;overflow:hidden;margin-top:8px;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px}.reference-source a{color:var(--text-muted);font-weight:800;text-decoration:none}.reference-source a:hover{color:var(--accent-text);text-decoration:underline}.reference-score{color:var(--accent-text);font-weight:900}.file-field{position:relative;display:flex;align-items:center;min-height:52px;overflow:hidden;border:1px dashed var(--accent-soft-border);border-radius:10px;background:var(--accent-soft-bg);color:var(--accent-text);padding:0 14px;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}.file-field input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.file-field span{overflow:hidden;margin-left:8px;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:750}.file-field:hover,.file-field.is-dragging{border-color:var(--accent-text);background:var(--accent-soft-bg-strong);box-shadow:0 0 0 3px var(--accent-ring)}.file-field.has-preview{flex-direction:column;align-items:stretch;min-height:0;padding:10px;cursor:default}.file-field-preview{display:flex;width:100%;flex-direction:column;gap:8px}.file-field-preview img{width:100%;max-height:220px;border-radius:7px;background:var(--bg-subtle);object-fit:contain}.file-field-preview span{margin-left:0;text-align:center}.file-field-thumbs{display:flex;flex-wrap:wrap;gap:8px}.file-field-thumb{position:relative;display:block;width:84px;height:84px;border-radius:7px;overflow:hidden;background:var(--bg-subtle)}.file-field-thumb img{width:100%;height:100%;object-fit:cover}.file-field-thumb .delete-button{position:absolute;z-index:1;top:4px;right:4px;width:24px;height:24px}.modal-backdrop{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:flex;align-items:flex-start;justify-content:center;overflow:auto;background:var(--modal-backdrop);padding:24px}.modal{width:min(680px,100%);max-height:calc(100dvh - 48px);overflow-y:auto;margin:auto 0;border-radius:16px;padding:clamp(20px,4vw,30px);box-shadow:var(--shadow-md)}.modal-header,.modal-actions{display:flex;align-items:center;justify-content:space-between;gap:15px}.modal-header{margin-bottom:20px}.modal-header h2{margin-bottom:4px;font-size:26px;letter-spacing:-.05em;line-height:1}.modal-header p:not(.eyebrow),.reference-upload-modal p:not(.eyebrow),.photo-upload-modal p:not(.eyebrow){margin:4px 0 0;color:var(--text-muted);font-size:13px}.modal-actions{justify-content:flex-end}.reference-upload-modal,.photo-upload-modal{display:grid;gap:16px}.reference-file-field{margin:0}.profile-settings-modal{display:grid;gap:20px}.settings-form{display:grid;gap:14px;border-top:1px solid var(--border-soft);padding-top:20px}.settings-form h3{display:flex;align-items:center;gap:8px;margin:0;font-size:16px}.settings-form .secondary-button{justify-self:start}.lightbox-backdrop{position:fixed;z-index:200;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#000000db;padding:24px}.lightbox-image{max-width:100%;max-height:calc(100dvh - 48px);border-radius:8px;box-shadow:var(--shadow-md);object-fit:contain}.lightbox-close{position:fixed;top:20px;right:20px;background:#ffffff24;color:#f7f8f1}.lightbox-close:hover{background:#ffffff42;color:#fff}.editor-backdrop{position:fixed;z-index:30;top:0;right:0;bottom:0;left:0;overflow:auto;background:var(--editor-backdrop)}.preview-editor{min-height:100vh;padding:20px}.preview-editor-header{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1640px;margin:0 auto 16px;color:#f7f8f1}.preview-editor-header .eyebrow{color:var(--accent)}.preview-editor-header h2{margin-bottom:0;font-family:Impact,Haettenschweiler,Arial Narrow Bold,sans-serif;font-size:clamp(34px,4vw,50px);font-weight:400;letter-spacing:.02em;line-height:.9;text-transform:uppercase}.preview-editor-header .icon-button{background:#343a36;color:#f7f8f1}.preview-editor-header .icon-button:hover{background:var(--accent);color:var(--accent-ink)}.preview-editor-columns{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(370px,.86fr);max-width:1640px;min-height:calc(100vh - 118px);margin:0 auto;overflow:hidden;border:1px solid #3a403b;border-radius:16px;background:var(--bg-surface);box-shadow:var(--shadow-md)}.editor-inputs{overflow:auto;border-right:1px solid var(--border);padding:20px}.editor-section{margin-bottom:20px;border:1px solid var(--border-soft);border-radius:11px;background:var(--bg-subtle);padding:15px}.editor-section:last-child{margin-bottom:0}.editor-section h3{margin-bottom:10px;font-size:16px;letter-spacing:-.02em}.editor-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.editor-section-heading h3{margin:0}.editor-selected-reference{display:grid;grid-template-columns:108px 1fr;align-items:center;gap:11px;margin-bottom:14px;border:2px solid var(--accent-text);border-radius:10px;background:var(--bg-surface);padding:9px;box-shadow:0 0 0 3px var(--accent-ring)}.editor-selected-reference img{width:100%;aspect-ratio:16 / 9;border-radius:7px;background:var(--bg-subtle);object-fit:contain}.editor-selected-reference .eyebrow{margin-bottom:3px;color:var(--accent-text)}.editor-selected-reference strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:13px}.editor-reference-catalogs{display:grid;gap:16px;min-height:0}.editor-reference-catalogs section{display:grid;gap:8px}.editor-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.editor-catalog-heading h4{margin:0;font-size:13px}.editor-catalog-heading span{color:var(--accent-text);font-size:11px;font-weight:900}.editor-catalog-empty{margin:0;color:var(--text-muted);font-size:12px}.editor-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.editor-reference-card,.editor-photo-choice{overflow:hidden;border:2px solid var(--border);border-radius:9px;background:var(--bg-surface);color:var(--text-primary);padding:0;text-align:left;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.editor-reference-card:hover,.editor-photo-choice:hover{border-color:var(--text-muted);transform:translateY(-1px)}.editor-reference-card.is-selected,.editor-photo-choice.is-selected{border-color:var(--accent-text);box-shadow:0 0 0 3px var(--accent-ring)}.editor-reference-card img{width:100%;aspect-ratio:16 / 9;background:var(--bg-subtle);object-fit:contain}.editor-reference-card span,.editor-photo-choice span{display:block;overflow:hidden;padding:8px;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800}.editor-reference-card span{display:grid;gap:3px}.editor-reference-card span small{overflow:hidden;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px}.editor-choice-list{display:grid;gap:7px;margin-bottom:12px}.editor-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--border-soft);border-radius:9px;background:var(--bg-surface);padding:10px}.editor-choice-label{display:flex;flex:1;align-items:flex-start;gap:10px;min-width:0}.editor-choice input{width:auto;min-height:0;margin-top:3px;accent-color:var(--accent-text)}.editor-choice strong,.editor-choice small{display:block}.editor-choice strong{font-size:12px}.editor-choice small{margin-top:2px;color:var(--text-muted);font-size:11px;font-weight:550}.editor-album-edit{display:grid;gap:10px;border:1px solid var(--accent-soft-border);border-radius:9px;background:var(--accent-soft-bg);padding:12px}.editor-album-edit label{font-size:12px;font-weight:750}.editor-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:9px}.editor-photo-choice{position:relative}.editor-photo-select{display:block;width:100%;height:100%;border:0;background:transparent;padding:0}.editor-photo-choice img{display:block;width:100%;aspect-ratio:1;background:var(--bg-subtle);object-fit:cover}.editor-photo-choice .delete-button{position:absolute;z-index:1;top:6px;right:6px;width:26px;height:26px}.editor-generate-button{width:100%;margin-top:13px}.reference-source-note{margin:0 0 10px;color:var(--warn-text);font-size:12px;font-weight:700}.editor-results{display:flex;min-height:0;flex-direction:column;background:var(--panel-bg);color:var(--panel-text);padding:24px}.editor-results .eyebrow{color:var(--accent)}.editor-results h3{margin-bottom:0;font-family:Impact,Haettenschweiler,Arial Narrow Bold,sans-serif;font-size:30px;font-weight:400;letter-spacing:.03em;line-height:.95;text-transform:uppercase}.editor-results-empty{display:grid;flex:1;place-items:center;align-content:center;gap:12px;color:#bdc7bc;text-align:center}.editor-results-empty svg{color:var(--accent)}.editor-results-empty p{max-width:270px;margin:0;font-size:14px}.generated-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:13px}.generated-preview-card{position:relative;display:grid;gap:8px;min-width:0}.generated-preview-open{display:block;width:100%;border:0;background:transparent;padding:0;cursor:zoom-in}.generated-preview-card-corner-actions{position:absolute;z-index:1;top:9px;right:9px;display:flex;gap:6px}.generated-preview-card img{width:100%;aspect-ratio:16 / 9;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:var(--bg-subtle);object-fit:cover}.generated-preview-card-body{display:grid;gap:6px}.generated-preview-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.generated-preview-card-header>div{display:grid;min-width:0;gap:3px}.generated-preview-card-header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.generated-preview-card-header small{color:#aab5aa;font-size:10px}.generated-preview-card-actions,.generated-preview-actions{display:flex;flex-wrap:wrap;gap:8px}.generated-preview-card-actions .secondary-button,.generated-preview-card-actions .primary-button,.generated-preview-actions .secondary-button,.generated-preview-actions .primary-button{flex:1 1 120px;justify-content:center}.generation-status{display:inline-flex;width:fit-content;align-items:center;border-radius:999px;background:#ffffff21;padding:3px 7px;color:#e4ece3;font-size:10px;font-weight:850;text-transform:uppercase}.generation-status.is-complete{background:#6bca5e38;color:#baf3b3}.generation-status.is-pending{background:#ffc94433;color:#ffe19a}.content-section .generated-preview-card{padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--bg-subtle)}.content-section .generated-preview-card .reference-source{white-space:normal}.regenerate-modal{display:grid;gap:16px}.regenerate-modal-preview{width:100%;aspect-ratio:16 / 9;border:1px solid var(--border);border-radius:10px;object-fit:cover}@media (min-width: 981px){.editor-backdrop{overflow:hidden;padding:14px}.preview-editor{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;height:100%;padding:0}.preview-editor-header{width:100%;max-width:none;margin:0;padding:14px 8px 14px 10px}.preview-editor-header h2{font-size:32px}.preview-editor-columns{width:100%;max-width:none;min-height:0;height:100%}.editor-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr) minmax(0,.7fr);gap:12px;overflow:hidden;padding:14px}.editor-section{display:flex;min-height:0;flex-direction:column;margin:0;padding:12px}.editor-reference-catalogs,.editor-choice-list,.editor-photo-grid{overflow:auto}.editor-reference-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-choice-list{flex:0 1 auto;max-height:40%;margin-bottom:8px}.editor-photo-grid{flex:1 1 0;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr))}.editor-results{padding:20px}}@media (max-width: 1240px){.preview-grid,.album-grid,.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-header-actions .header-note{display:none}}@media (max-width: 1060px){.quick-start{grid-template-columns:1fr;gap:18px}.quick-start-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quick-start-steps li{grid-template-columns:34px 1fr;align-items:start;min-height:112px;border:1px solid #384039;border-radius:10px;padding:12px}.quick-start-steps li svg{grid-column:1;grid-row:2;margin-top:4px}.quick-start-steps li div{grid-column:2;grid-row:1 / span 2}.preview-editor-columns{grid-template-columns:1fr}.editor-inputs{border-right:0;border-bottom:1px solid var(--border)}.editor-results{min-height:390px}}@media (max-width: 860px){.auth-page,.dashboard-shell{grid-template-columns:1fr}.auth-page{min-height:100vh;padding:12px;gap:12px}.auth-hero{min-height:460px;border-radius:14px;padding:28px}.auth-hero .brand-button{width:240px}.auth-hero-copy{margin-top:auto;padding-top:24px}.auth-hero h1{font-size:clamp(52px,14vw,90px)}.auth-hero-points{margin-top:28px}.auth-card{width:100%}.sidebar{position:fixed;z-index:80;inset:0 auto 0 0;width:min(340px,calc(100vw - 38px));height:100dvh;transform:translate(-105%);transition:transform .22s ease;box-shadow:var(--shadow-drawer)}.sidebar.is-open{transform:translate(0)}.mobile-menu-button{position:fixed;z-index:70;top:16px;left:16px;display:inline-flex;border:1px solid var(--border);box-shadow:var(--shadow-float)}.mobile-sidebar-close{position:absolute;top:21px;right:16px;display:inline-flex}.mobile-menu-backdrop{position:fixed;z-index:75;top:0;right:0;bottom:0;left:0;display:block;width:100%;border:0;background:#00000085;opacity:0;pointer-events:none;transition:opacity .22s ease}.mobile-menu-backdrop.is-visible{opacity:1;pointer-events:auto}.dashboard-main{padding-top:86px}.preview-editor-columns{grid-template-columns:1fr}.editor-inputs{border-right:0;border-bottom:1px solid var(--border)}.editor-results{min-height:390px}}@media (max-width: 680px){.dashboard-main{padding:78px 14px 20px}.dashboard-header{flex-direction:column;margin-bottom:22px}.dashboard-header h1{font-size:37px}.dashboard-header-actions,.dashboard-header-actions .primary-button{width:100%}.section-heading.split,.modal-actions{align-items:stretch;flex-direction:column}.section-heading.split .primary-button,.modal-actions>button{width:100%}.quick-start{border-radius:14px;padding:21px}.quick-start h2{font-size:37px}.quick-start-steps{grid-template-columns:1fr}.quick-start-steps li{min-height:78px;grid-template-columns:34px 28px 1fr;align-items:center}.quick-start-steps li svg{grid-column:2;grid-row:1;margin:0}.quick-start-steps li div{grid-column:3;grid-row:1}.preview-grid,.album-grid,.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.preview-card-body,.album-card div{padding:11px}.preview-card h3,.album-card h3{font-size:13px}.preview-card-actions,.source-photo-card .delete-button{top:7px;right:7px}.favorite-button,.delete-button{width:31px;height:31px;border-radius:8px}.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px);border-radius:14px}.modal-header{align-items:flex-start}.preview-editor{padding:12px}.preview-editor-header{padding:4px 2px 12px}.preview-editor-header h2{font-size:33px}.preview-editor-columns{border-radius:12px}.editor-inputs,.editor-results{padding:14px}.editor-reference-grid,.editor-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.generated-preview-grid{grid-template-columns:1fr}}@media (max-width: 390px){.auth-hero{min-height:430px;padding:22px}.auth-hero-points{display:grid;gap:7px}.preview-grid,.album-grid,.photo-grid{grid-template-columns:1fr}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
