:root{color-scheme:dark;--bg:#111315;--panel:#191c1e;--panel2:#202426;--line:#2b3032;--text:#edece7;--muted:#929894;--accent:#d1ef9b;--sidebar:224px;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.65}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--text);padding:10px 17px;transition:.18s}button:hover{border-color:#626c61;background:#292e2c}.primary{background:var(--accent);color:#182016;border-color:var(--accent);font-weight:600}.primary:hover{background:#e1ffb0;border-color:#e1ffb0}.ghost{background:transparent}.text-button{background:transparent;border:0;padding:5px;color:var(--muted)}.danger{color:#ffb7a9}.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;background:#151719;border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 43px;font-size:23px;font-weight:650;letter-spacing:2px;line-height:1.35}.brand small{display:block;font-size:8px;color:var(--muted);letter-spacing:2px;margin-top:5px}.brand-mark{color:var(--accent);font-size:43px;font-weight:400}.side-label{font-size:10px;color:#777e79;letter-spacing:2px;padding:0 13px;margin-bottom:14px}.sidebar nav{display:grid;gap:7px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:7px;color:#9fa5a0;font-size:13px}.sidebar nav a>span:first-child{font-size:20px;width:22px;line-height:1}.sidebar nav a.active{color:var(--accent);background:#283123}.sidebar nav a:hover{background:#232726;color:var(--text)}.nav-tag{font-size:9px;margin-left:auto;border:1px solid #495440;padding:0 4px;border-radius:3px;color:var(--accent)}.side-line{height:1px;background:var(--line);margin:27px 12px}.side-bottom{margin-top:auto;padding-top:30px}.credit-card{padding:17px;background:linear-gradient(135deg,#2a3026,#1b201c);border:1px solid #3c4535;border-radius:10px}.credit-card>span{font-size:11px}.credit-card .spark{color:var(--accent);font-size:24px;display:block}.credit-card p{font-size:11px;color:var(--muted);line-height:1.9}.credit-card a{display:flex;justify-content:space-between;font-size:11px;color:var(--accent)}.sidebar-footer{font-size:9px;color:#7d867e;display:flex;align-items:center;gap:6px;margin-top:24px}.sidebar-footer>span:last-child{margin-left:auto;color:#616963}.status-dot{height:5px;width:5px;border-radius:50%;background:var(--accent);display:inline-block}.app-shell{margin-left:var(--sidebar)}.topbar{height:80px;padding:0 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{font-size:11px;color:#7c827e;display:flex;gap:15px}.breadcrumb strong{font-weight:400;color:#d6d9d2}.top-actions{display:flex;align-items:center;gap:19px}.local-badge{font-size:9px;letter-spacing:1.5px;color:#717a73}.balance-chip{font-size:13px;border-radius:20px;color:var(--accent);padding:6px 13px;background:#20271e;border-color:#394331}.balance-chip small{font-size:10px;color:#a1b18e;margin-left:5px}.avatar{height:34px;min-width:34px;padding:0 9px;border-radius:50%;background:#30352e;font-size:11px;color:#d4dbca}main{max-width:1540px;margin:auto;padding:35px 40px 50px;min-height:calc(100vh - 140px)}.main-footer{padding:20px 40px;border-top:1px solid var(--line);font-size:9px;color:#69716b;display:flex;justify-content:space-between;letter-spacing:1px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{color:var(--accent);font-size:9px;letter-spacing:2.5px;margin:0 0 8px}.page-heading h1,h1{font-size:28px;line-height:1.3;letter-spacing:1px;font-weight:500;margin:0 0 10px}.subtitle{font-size:12px;color:var(--muted);margin:0}.outline-link{font-size:11px;display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:8px 13px}.hero{display:grid;grid-template-columns:1.08fr 1fr;min-height:260px;border:1px solid #394239;border-radius:12px;background:#222922;overflow:hidden;margin-bottom:32px}.hero-copy{padding:31px 35px;position:relative;z-index:1;background:radial-gradient(ellipse at 90% 90%,#39422b80,transparent 80%)}.hero-copy .eyebrow{letter-spacing:3px;color:#a8bd90}.hero h2{font-size:31px;line-height:1.45;font-weight:400;letter-spacing:2px;margin:16px 0 11px}.hero h2 em{font-style:normal;color:var(--accent);font-family:Georgia,serif}.hero p{color:#acb5a6;font-size:11px;margin:0 0 22px}.hero .primary{padding:9px 18px;font-size:11px}.hero-meta{font-size:9px;color:#87957e;margin-left:12px}.hero-pictures{display:flex;align-items:center;justify-content:center;gap:12px;position:relative;background:linear-gradient(120deg,#222922,#454b3a)}.hero-pictures::after{content:"CURATED FOR YOU / 2026";position:absolute;right:20px;bottom:15px;font-size:8px;letter-spacing:2px;color:#c2c8ad}.hero-photo{width:30%;height:224px;object-fit:contain;object-position:center;background:#252b24;box-shadow:0 12px 30px #0006;border:5px solid #d6d3c4;border-bottom-width:20px;transform:rotate(-9deg)}.hero-photo:nth-child(2){transform:rotate(4deg) translateY(-4px);z-index:2}.hero-photo:nth-child(3){transform:rotate(12deg) translateY(15px)}.section-title{display:flex;align-items:baseline;gap:12px}.section-title h2{font-size:19px;font-weight:500;margin:0}.section-title small{font-size:10px;color:var(--muted)}.gallery-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:19px 0}.tabs{display:flex;gap:7px;flex-wrap:wrap}.tab{background:transparent;border:1px solid transparent;border-radius:20px;color:var(--muted);padding:6px 14px;font-size:11px}.tab.active{background:var(--accent);border-color:var(--accent);color:#1c2517}.search{position:relative;max-width:260px;width:100%}.search input{width:100%;padding:9px 13px 9px 34px;background:#1b1e20;border:1px solid var(--line);border-radius:7px;font-size:11px;color:var(--text)}.search span{position:absolute;left:12px;top:5px;color:var(--muted);font-size:20px}.filter-row{display:flex;justify-content:space-between;align-items:center;color:#757f77;font-size:10px;margin-bottom:19px}.filter-row select{border:0;background:transparent;color:#a2aaa2;font-size:10px;max-width:180px}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.sample-card{min-width:0;cursor:pointer}.sample-photo{position:relative;aspect-ratio:3/4;background:#222626;border:1px solid #303633;border-radius:9px;overflow:hidden}.sample-photo img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .5s}.sample-card:hover .sample-photo img{filter:brightness(1.05)}.sample-photo .favorite{position:absolute;right:12px;top:12px;width:31px;height:31px;padding:0;border-radius:50%;border:1px solid #ffffff35;background:#14181788;color:#fff;font-size:19px;backdrop-filter:blur(8px)}.favorite.selected{color:var(--accent);border-color:var(--accent)}.photo-badge{position:absolute;bottom:13px;left:13px;background:#111916a8;border:1px solid #fff2;border-radius:4px;padding:3px 7px;font-size:8px;letter-spacing:1px;color:#dce5d3}.sample-copy{display:flex;justify-content:space-between;align-items:center;padding:13px 1px 4px}.sample-copy h3{font-size:13px;font-weight:500;margin:0 0 5px}.sample-copy p{font-size:9px;color:#838c85;margin:0}.price{font-size:15px;color:#dddeda;font-family:Georgia,serif}.price small{font-size:10px}.sample-note{font-size:10px;color:#8a948a;margin:23px 0 0}.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:24px}.panel h2{font-size:17px;font-weight:500;margin:0 0 17px}.panel h3{font-size:13px;font-weight:500}.notice{background:#282a21;border:1px solid #454832;color:#c8c7a0;border-radius:7px;font-size:12px;padding:12px 15px;margin:0 0 20px}.notice.good{color:#c9e5ac;background:#242e21;border-color:#3d5135}.muted{color:var(--muted)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px}.studio-grid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:23px}.step-label{display:flex;gap:9px;align-items:center;font-size:12px;margin:0 0 14px}.step-number{width:21px;height:21px;border-radius:50%;border:1px solid #56634a;color:var(--accent);display:inline-flex;justify-content:center;align-items:center;font-size:10px}.field{display:grid;gap:7px;margin-bottom:15px;font-size:12px}.field input,.field select,.field textarea,input.control,select.control{width:100%;background:#121617;border:1px solid #363d38;color:#e0e5db;border-radius:6px;padding:10px 12px;font-size:12px}.field textarea{min-height:110px;resize:vertical}.field small{color:var(--muted);font-size:10px}.upload-zone{min-height:206px;border:1px dashed #4b5747;border-radius:8px;background:#171c19;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:23px;cursor:pointer;gap:8px}.upload-zone:hover{border-color:var(--accent)}.upload-zone img{max-height:210px;max-width:100%;object-fit:contain;border-radius:5px}.upload-zone b{font-size:12px;font-weight:500}.upload-zone small{font-size:10px;color:#858f85}.upload-icon{font-size:31px;color:#a3bc86}.hidden-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.wide{width:100%}.cost-line{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:15px 0}.cost-line strong{color:var(--accent);font-weight:400}.studio-empty{min-height:530px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:50px;background:radial-gradient(ellipse at center,#232b2250,transparent 65%)}.empty-art{display:grid;grid-template-columns:repeat(2,75px);gap:10px;transform:rotate(-8deg);margin-bottom:32px}.empty-art img{width:75px;height:100px;object-fit:contain;border:3px solid #8d9683;border-bottom:12px solid #8d9683;background:#30362c;opacity:.6}.empty-art img:nth-child(2){transform:translateY(15px)}.studio-empty h2{margin-bottom:8px}.studio-empty p{font-size:12px;color:var(--muted)}.studio-specs{display:flex;gap:25px;margin-top:22px;color:#9aa58f;font-size:10px}.stage-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.stage-pill{font-size:10px;padding:4px 9px;border-radius:20px;background:#2a3028;color:#a1b28d}.history-strip{display:flex;gap:10px;overflow:auto;margin-top:18px;padding-bottom:8px}.history-thumb{min-width:86px;max-width:86px;padding:5px;border-radius:5px;background:#202523;font-size:9px;text-align:left;overflow:hidden}.history-thumb img{width:74px;height:72px;object-fit:contain;background:#111}.history-thumb span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.task-heading h2{margin:0}.status-badge{font-size:10px;border:1px solid #4c5c41;border-radius:4px;padding:3px 7px;color:#c0d79e;white-space:nowrap}.comparison{height:480px;position:relative;overflow:hidden;background:#0d1010;border:1px solid #343b34;border-radius:7px;touch-action:none}.comparison img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;transform-origin:center}.comparison .after{clip-path:inset(0 0 0 50%)}.comparison-line{position:absolute;left:50%;height:100%;width:1px;background:#d1ef9b;pointer-events:none}.comparison-line::after{content:'‹ ›';position:absolute;top:50%;left:-17px;background:var(--accent);color:#1a2117;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px}.compare-label{position:absolute;top:12px;left:12px;background:#111b;padding:3px 8px;border-radius:4px;font-size:10px;pointer-events:none}.compare-label.right{left:auto;right:12px}.compare-controls{display:flex;align-items:center;gap:12px;font-size:11px;margin:12px 0;flex-wrap:wrap}.compare-controls input[type=range]{accent-color:var(--accent);width:100px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pair .zoom-cell{height:220px;overflow:hidden;background:#0e1111;position:relative;border:1px solid #303831;border-radius:6px;touch-action:none}.zoom-cell img{width:100%;height:100%;object-fit:contain;transform-origin:center;pointer-events:none}.zoom-cell span{position:absolute;bottom:7px;left:8px;font-size:10px;background:#111b;padding:1px 5px;pointer-events:none}.face-controls{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}.face-controls button{padding:5px 9px;font-size:10px}.face-score{padding:13px;background:#242e21;border-radius:5px;color:var(--accent);font-size:12px;margin-top:12px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:20px 0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:23px 0}.metric{padding:20px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}.metric>span{font-size:11px;color:var(--muted)}.metric strong{font-weight:400;font-size:29px;display:block;margin-top:8px}.metric small{font-size:11px;color:var(--accent)}.account-banner{display:flex;align-items:center;gap:20px;padding:25px;background:linear-gradient(115deg,#2a3327,#1a201c);border:1px solid #414c39;border-radius:10px}.big-avatar{width:65px;height:65px;border-radius:50%;background:#46533b;display:flex;align-items:center;justify-content:center;font-size:27px;color:var(--accent)}.account-banner h2{font-weight:500;margin:0 0 5px}.account-banner p{font-size:11px;color:var(--muted);margin:0}.account-banner .right{margin-left:auto;text-align:right}.account-banner .right strong{display:block;font-size:26px;color:var(--accent);font-weight:400}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px}table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}th,td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--line)}th{font-size:10px;font-weight:400;color:var(--muted);background:#1c211e}tbody tr:last-child td{border-bottom:0}td button{font-size:10px;padding:4px 8px;margin:2px}.table-thumb{width:40px;height:47px;object-fit:contain;vertical-align:middle;margin-right:10px}.empty{text-align:center;color:var(--muted);padding:55px 20px;font-size:12px}.admin-tabs{display:flex;gap:7px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:24px;padding-bottom:12px}.admin-tabs button{white-space:nowrap;font-size:11px;padding:7px 12px;background:transparent}.admin-tabs button.active{background:#2b3525;border-color:#49583a;color:var(--accent)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.full{grid-column:1/-1}.check{display:flex;align-items:center;gap:9px;font-size:12px}.check input{accent-color:var(--accent)}.range-row{display:grid;grid-template-columns:85px 1fr 40px;gap:10px;font-size:10px;align-items:center;margin:10px 0}.range-row input{width:100%;accent-color:var(--accent)}dialog{width:min(780px,calc(100vw - 30px));max-height:90vh;overflow:auto;background:#1b201d;border:1px solid #4c5846;border-radius:13px;color:var(--text);padding:30px;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#070a08bf;backdrop-filter:blur(6px)}.modal-close{position:absolute;right:14px;top:12px;width:30px;height:30px;padding:0;border:0;background:#30372e;z-index:2;font-size:19px}.auth-panel{max-width:350px;margin:15px auto}.auth-panel h2{font-size:24px;font-weight:400;margin-bottom:5px}.auth-panel .brand-mark{font-size:35px}.auth-panel p{font-size:12px;color:var(--muted);margin-bottom:22px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:27px}.detail-grid>img{width:100%;max-height:500px;object-fit:contain;background:#101411;border-radius:8px}.detail-grid h2{font-size:25px;font-weight:400;margin:20px 0 15px}.detail-grid p{color:var(--muted);font-size:12px}.detail-price{font-size:30px;margin:27px 0;color:#e1e8d7}.detail-meta{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0;padding:12px 0;font-size:11px;color:#a6b19e;line-height:2.3}#toast{position:fixed;bottom:30px;left:calc(50% + 80px);transform:translateX(-50%) translateY(25px);background:#d1ef9b;color:#1b2716;box-shadow:0 10px 40px #0007;border-radius:8px;max-width:min(600px,90vw);padding:12px 24px;font-size:12px;opacity:0;transition:.25s;z-index:100;pointer-events:none}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.loading{padding:80px;text-align:center;color:var(--muted)}.spinner{width:32px;height:32px;border:2px solid #46533d;border-top-color:var(--accent);border-radius:50%;animation:spin 1.2s linear infinite;margin:20px auto}@keyframes spin{to{transform:rotate(360deg)}}[hidden]{display:none!important}.mono{font-family:ui-monospace,monospace;font-size:10px}.small-note{font-size:10px;color:var(--muted);line-height:1.8}.plan-card{padding:20px;border:1px solid #4b5a3e;border-radius:8px;background:#252e21;text-align:center}.plan-card strong{font-size:26px;display:block;font-weight:400}.plan-card span{font-size:11px;color:var(--accent)}.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.plan-card button{display:block;width:100%;margin-top:14px;font-size:11px}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.selection-rect{position:absolute;border:1px solid var(--accent);background:#d1ef9b18;pointer-events:none}.studio-template{display:flex;align-items:center;gap:12px;margin:13px 0}.studio-template img{height:75px;width:57px;object-fit:contain;background:#111;border-radius:4px}.studio-template span{font-size:11px;color:var(--muted)}
@media(min-width:1600px){.gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.hero{min-height:300px}.hero-pictures{gap:24px}.hero-photo{height:258px}.hero h2{font-size:37px}}
@media(max-width:1150px){:root{--sidebar:190px}.sidebar{padding:25px 12px}.brand{font-size:20px;padding-left:6px}.topbar{padding:0 25px}main{padding:28px 25px}.hero-copy{padding:25px}.hero h2{font-size:26px}.hero-photo{height:190px}.hero-meta{display:none}.gallery{gap:17px}.studio-grid{grid-template-columns:290px minmax(0,1fr)}.comparison{height:380px}.pair .zoom-cell{height:170px}.metrics{grid-template-columns:repeat(2,1fr)}.local-badge{display:none}}
@media(max-width:1000px){:root{--sidebar:70px}.sidebar{padding:20px 9px}.brand{padding:0 0 30px;justify-content:center}.brand>span:last-child,.side-label,.side-line,.side-bottom,.sidebar nav a .nav-tag{display:none}.sidebar nav{gap:12px}.sidebar nav a{font-size:0;justify-content:center;padding:12px 4px;gap:0}.sidebar nav a>span:first-child{font-size:23px;width:auto}.sidebar nav+nav{margin-top:20px}.hero{grid-template-columns:1.1fr 1fr;min-height:230px}.hero-copy{padding:22px}.hero h2{font-size:24px}.hero-photo{height:160px;width:39%}.hero-photo:last-child{display:none}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-toolbar{align-items:flex-start;flex-direction:column}.search{max-width:none}.studio-grid{grid-template-columns:1fr}.studio-empty{min-height:350px}.studio-inputs{display:grid;grid-template-columns:1fr 1fr;gap:20px}.studio-inputs>div:last-child{grid-column:1/-1}.topbar{height:66px}.breadcrumb{font-size:10px;gap:9px}.top-actions{gap:10px}.main-footer{padding:20px 25px}.main-footer>span:last-child{display:none}.outline-link{display:none}.hero p{font-size:10px}.hero-copy .eyebrow{font-size:8px}.credit-card{display:none}.studio-specs{gap:15px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}#toast{left:calc(50% + 25px)}}
@media(max-width:520px){:root{--sidebar:55px}.sidebar{padding:16px 5px}.brand-mark{font-size:34px}.sidebar nav a>span:first-child{font-size:21px}.topbar{padding:0 14px}.breadcrumb>span,.breadcrumb{gap:7px}.balance-chip{padding:5px 9px;font-size:11px}.balance-chip small{display:none}.avatar{font-size:10px;min-width:30px;height:30px}main{padding:24px 15px}.page-heading h1{font-size:24px}.subtitle{font-size:10px}.hero{grid-template-columns:1fr;min-height:0}.hero-copy{padding:24px}.hero-pictures{height:185px;padding:18px;justify-content:flex-end;margin-top:-10px}.hero-photo{height:155px;width:30%}.hero-photo:last-child{display:block}.hero h2{font-size:29px;margin:10px 0}.hero-meta{display:inline;font-size:8px}.hero p{font-size:11px}.section-title h2{font-size:17px}.gallery{gap:18px 12px}.sample-copy{align-items:flex-start}.sample-copy h3{font-size:11px}.sample-copy p{font-size:8px}.price{font-size:12px}.price small{font-size:8px}.sample-photo .favorite{width:26px;height:26px;font-size:17px;top:8px;right:8px}.photo-badge{font-size:7px;left:7px;bottom:9px;padding:2px 5px}.tab{padding:5px 10px;font-size:10px}.panel{padding:17px}.studio-inputs{display:block}.grid2,.detail-grid{grid-template-columns:1fr}.detail-grid>img{max-height:300px}.detail-grid h2{margin-top:0}.metrics{gap:10px}.metric{padding:14px}.metric strong{font-size:24px}.account-banner{padding:17px;gap:12px}.big-avatar{width:45px;height:45px;font-size:22px}.account-banner h2{font-size:18px}.account-banner .right strong{font-size:21px}.account-banner p{font-size:9px}.comparison{height:350px}.pair .zoom-cell{height:160px}.plans{gap:8px}.plan-card{padding:12px 8px}.plan-card strong{font-size:21px}.plan-card button{font-size:10px;padding:6px}.main-footer{padding:16px}.task-heading h2{font-size:15px}dialog{padding:24px 18px}.top-actions{gap:7px}}
.admin-login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 15%,#28332277,transparent 65%),var(--bg);padding:25px}.admin-login-card{width:min(420px,100%);min-height:0;margin:0;padding:35px;background:#191e1bd9;border:1px solid #394435;border-radius:15px;box-shadow:0 25px 80px #0003}.admin-login-card .brand{padding:0 0 30px;font-size:23px;justify-content:flex-start}.admin-login-card .brand>span:last-child{display:block}.admin-login-card h1{font-size:25px}.admin-login-card form{margin-top:28px}.admin-login-back{display:block;font-size:11px;color:var(--muted);margin-top:22px;text-align:center}.price{font-family:inherit;font-size:12px;white-space:nowrap}.price small{font-size:9px}.sample-copy{gap:10px}.detail-price{font-size:24px}
.profile-control{display:flex;align-items:center;gap:8px;background:transparent;border:0;padding:0;color:var(--text)}.profile-control:hover{background:transparent}.profile-control #profile-identity{font-size:10px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.balance-status{font-size:9px;color:#c2b58f;max-width:95px}.top-actions{gap:12px}
@media(max-width:800px){.profile-control #profile-identity{max-width:130px;font-size:9px}.balance-status{font-size:8px;max-width:60px}.topbar .breadcrumb{flex-shrink:0}}
@media(max-width:520px){.profile-control{gap:5px}.profile-control #profile-identity{max-width:87px;white-space:normal;line-height:1.3;word-break:break-all}.top-actions{gap:6px}.topbar .breadcrumb{max-width:80px;flex-shrink:1}.balance-status{max-width:40px}}
.account-banner>div:nth-child(2){min-width:0;flex:1}.account-banner h2{overflow-wrap:anywhere}.account-banner .right{flex-shrink:0}
@media(max-width:520px){.has-user .topbar .breadcrumb{display:none}.has-user .top-actions{margin-left:auto}.profile-control{flex-shrink:0}}
.generation-options{display:grid;grid-template-columns:1.4fr 1fr;gap:12px}.batch-summary{margin-bottom:20px}.batch-results{display:flex;gap:12px;flex-wrap:wrap}.batch-result{display:grid;grid-template-columns:56px 1fr;gap:4px 12px;text-align:left;align-items:center;min-width:180px;flex:1;background:var(--panel);border:1px solid var(--border);padding:12px;border-radius:8px}.batch-result.selected{border-color:var(--accent)}.batch-result img{grid-row:span 3;width:56px;height:72px;object-fit:contain;background:#0d1010}.batch-result small{color:var(--muted)}@media(max-width:520px){.generation-options{grid-template-columns:1fr}.batch-result{min-width:130px}}

.comparison-original{position:absolute;inset:0;overflow:hidden;pointer-events:none;visibility:hidden}

[data-protected-sample]{-webkit-touch-callout:none;-webkit-user-drag:none;user-select:none}

.project-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:24px 0}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.project-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}.project-cover{display:flex;align-items:center;justify-content:center;height:240px;background:radial-gradient(ellipse at center,#303c2a,#141a17);text-decoration:none}.project-cover img{height:100%;width:100%;object-fit:contain}.project-cover>span{font-size:52px;color:var(--accent);text-align:center}.project-cover small{display:block;font-size:12px;color:var(--muted)}.project-card-copy{padding:20px}.project-card-copy h2{font-size:17px;font-weight:500;overflow-wrap:anywhere;margin:0 0 12px}.project-card-copy a{text-decoration:none}.project-card-copy p{font-size:11px;color:var(--muted);margin:8px 0}.project-card-copy .row-actions{margin-top:18px;justify-content:space-between;align-items:center}.project-card-copy button{font-size:11px;padding:6px 10px}.project-link{font-size:12px;color:var(--accent)}.project-empty{grid-column:1/-1}.project-originals{margin-bottom:24px}.project-originals h2 small{font-size:11px;color:var(--muted);margin-left:10px}.project-upload-button{padding:9px 15px;background:var(--accent);color:#1a2416;border-radius:6px;cursor:pointer;font-size:12px}#project-drop-zone{padding:22px;border:1px dashed #4b5747;border-radius:8px;text-align:center;font-size:12px;color:var(--muted);cursor:pointer;background:#171c19}#project-drop-zone:hover,#project-drop-zone:focus{border-color:var(--accent);color:var(--accent)}.project-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;margin-top:18px}.project-photo{padding:7px;min-width:0;background:#151b17;border:1px solid var(--line);border-radius:7px;text-align:left}.project-photo.selected{border-color:var(--accent);background:#293322}.project-photo img{width:100%;height:125px;object-fit:contain;background:#0e1210;display:block;border-radius:4px}.project-photo strong,.project-photo small{display:block;margin-top:6px;font-size:11px}.project-photo small{color:var(--muted);font-size:10px}.project-original-preview{width:100%;height:190px;object-fit:contain;background:#101411;border-radius:6px;margin-bottom:20px}.project-settings{align-self:start}.project-settings .check{align-items:flex-start;margin:15px 0}.upload-progress{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:11px;padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.upload-progress span:first-child{flex:1;min-width:0}.upload-progress button{padding:3px 10px;font-size:11px}.project-history-name{display:block;color:var(--muted);margin-top:5px}.project-card-copy .trash-expiry{color:var(--accent)}
@media(max-width:1150px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.project-grid{grid-template-columns:1fr}.project-toolbar .search{max-width:none}.project-cover{height:220px}.project-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.project-photo img{height:95px}.project-originals .task-heading{align-items:flex-start;flex-wrap:wrap}.project-upload-button{font-size:11px}.upload-progress{gap:7px}.project-settings{min-width:0}}
.profile-control{border-radius:6px;padding:8px 10px;max-width:100%}.profile-control #profile-identity{overflow-wrap:anywhere;white-space:normal}.account-banner h2{font-size:22px}@media(max-width:520px){.profile-control{max-width:180px;font-size:10px}.account-banner h2{font-size:18px}}
/* Compact studio project overview; editor and other pages retain their layout. */
main.project-list-page{max-width:1920px;padding:24px 28px 48px}.project-list-page .page-heading{margin-bottom:16px}.project-list-page .page-heading h1{font-size:23px;margin-bottom:6px}.project-list-page .eyebrow{margin-bottom:8px}.project-list-page .project-toolbar{margin:16px 0;gap:12px}.project-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.project-tools .search{width:220px}.project-tools select,.project-tools button{font-size:12px;padding:8px 10px}.project-tools #project-match-count{font-size:12px;color:var(--muted);white-space:nowrap}.project-list-page .project-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.project-list-page #project-list-status:empty{display:none}.project-list-page .project-card{border-radius:5px}.project-list-page .project-cover{height:auto;aspect-ratio:4/3;background:#111614;position:relative}.project-list-page .project-mosaic{display:grid;gap:2px;overflow:hidden}.project-mosaic img{min-width:0;min-height:0;display:block}.project-list-page .project-mosaic img{object-fit:cover;width:100%;height:100%}.project-list-page .mosaic-1{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr)}.project-list-page .mosaic-2{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr)}.project-list-page .mosaic-3{grid-template-columns:2fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr))}.mosaic-3 img:first-child{grid-row:1/3}.project-list-page .project-progress{position:absolute;left:8px;bottom:8px;max-width:calc(100% - 16px);font-size:11px;line-height:1.5;color:#fff;background:#000b;padding:3px 6px;border-radius:2px;text-align:left}.project-list-page .project-no-photo{font-size:32px;justify-self:center;align-self:center}.project-list-page .project-card-copy{padding:12px}.project-list-page .project-card-copy h2{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 5px}.project-list-page .project-card-copy p{margin:5px 0;line-height:1.5}.project-list-page .project-card-copy .row-actions{margin-top:9px;gap:6px;flex-wrap:wrap}.project-list-page .project-card-copy button{font-size:10px;padding:4px 7px}.project-new-card{display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;min-width:0;min-height:240px;background:#111614;border:1px dashed #45503f;border-radius:5px;color:var(--muted)}.project-new-card:hover,.project-new-card:focus-visible{border-color:var(--accent);color:var(--accent);background:#1b241a}.project-new-card>span{font-size:54px;font-weight:200;line-height:1}.project-new-card strong{font-size:13px;font-weight:500}.project-list-page .project-empty{padding:20px}
@media(max-width:1699px){.project-list-page .project-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1399px){.project-list-page .project-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1099px){.project-list-page .project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-tools{width:100%}}@media(max-width:699px){main.project-list-page{padding:20px 15px 35px}.project-list-page .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-tools{gap:8px}.project-tools .search{width:100%;max-width:none}.project-tools select{max-width:100%}.project-new-card{min-height:220px}}@media(max-width:479px){.project-list-page .project-grid{grid-template-columns:1fr}.project-new-card{min-height:230px}}
.project-tools select{background:#202624;color:var(--text);border:1px solid var(--line);border-radius:5px}
.library-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:20px 0}.library-toolbar>label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.library-toolbar select{padding:8px 12px;background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:6px}.template-expiring{position:absolute;top:10px;left:10px;background:#643b17;color:#ffdfab;padding:5px 9px;font-size:11px;border:1px solid #a87537;border-radius:4px}.template-expiring.expired{background:#472a2a;color:#ffc2b9;border-color:#865a58}.library-card-status{padding:0 16px 16px;font-size:12px}.library-card-status>strong{color:var(--accent);font-weight:500}.library-card-status p{font-size:11px;color:var(--muted);margin:6px 0}.library-card-status p.danger{color:#ffc98b}.template-purchase-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.template-purchase-actions button,.template-purchase-actions a{font-size:11px;padding:8px 10px}.template-library .sample-copy .price{font-size:11px;max-width:45%;text-align:right}.template-library .sample-card{cursor:default}@media(max-width:600px){.library-toolbar{align-items:stretch}.library-toolbar .tabs{width:100%}.library-toolbar>label{width:100%;justify-content:space-between}.library-card-status{padding:0 12px 12px}.template-purchase-actions{flex-direction:column}.template-purchase-actions>*{text-align:center}}

.category-filters{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.category-filters .field{min-width:130px;margin:0}.reference-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.reference-choices button{width:100px;padding:5px;font-size:12px}.reference-choices button.selected{outline:2px solid #b39bdf;background:#302844}.reference-choices img{display:block;width:100%;height:110px;object-fit:contain}.sample-detail-images{min-width:0}.sample-detail-images>img{width:100%;max-height:65vh;object-fit:contain}.sample-detail-images .reference-choices{max-height:270px;overflow-y:auto}

/* Feedback and studio template selection */
.feedback-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%;text-align:left;margin:12px 0;padding:18px;white-space:normal}
.feedback-row strong,.feedback-row small{overflow-wrap:anywhere}.feedback-row small{color:var(--muted);grid-column:1/-1}
.feedback-messages{display:grid;gap:14px;margin:24px 0;max-height:65vh;overflow:auto}
.feedback-message{border:1px solid #343b39;border-radius:12px;padding:16px;min-width:0}.feedback-message.admin{border-color:#758c50}.feedback-message small{display:block;margin-top:6px;color:#969e99}.feedback-message p{white-space:pre-wrap;overflow-wrap:anywhere}
#feedback-root textarea{min-height:130px;resize:vertical}#feedback-root .toolbar{flex-wrap:wrap}#feedback-filter input{min-width:0;max-width:100%}
#modal:has(#studio-picker){width:min(1000px,calc(100vw - 32px));max-width:calc(100vw - 32px)}#studio-picker{width:100%;min-width:0}.picker-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:18px}.picker-filters input{max-width:100%;min-width:0}.picker-filters .field{margin:0;flex:1;min-width:120px}
.studio-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-height:60vh;overflow:auto;margin-bottom:18px;padding:3px}
.studio-picker-card{display:flex;flex-direction:column;gap:7px;text-align:left;white-space:normal;min-width:0;padding:10px}.studio-picker-card img{width:100%;aspect-ratio:3/4;object-fit:contain;background:#101312;border-radius:6px}.studio-picker-card strong,.studio-picker-card small{overflow-wrap:anywhere}.studio-picker-card.selected{outline:2px solid #d2ef9d}.studio-picker-card:disabled{opacity:.6}.studio-picker-card small{font-size:12px}
@media(max-width:640px){#studio-picker{width:100%}.studio-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feedback-row{padding:12px}.picker-filters>input{width:100%}#feedback-filter{align-items:stretch}}

[data-feedback-nav]{position:relative}.feedback-unread,.feedback-list-unread{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;background:#dc424a;color:#fff;border-radius:12px;font-size:10px;font-weight:700;line-height:19px;font-variant-numeric:tabular-nums;white-space:nowrap}
[data-feedback-nav]>.feedback-unread{position:absolute;right:5px;bottom:2px;pointer-events:none}.feedback-list-unread{vertical-align:middle;margin-left:5px}
@media(max-width:900px){.sidebar [data-feedback-nav]>.feedback-unread{right:0;bottom:0;min-width:17px;height:17px;padding:0 4px;font-size:9px;line-height:17px}}

.alignment-picker{border:1px solid var(--line);border-radius:8px;padding:12px;margin:14px 0}.alignment-picker summary{cursor:pointer;font-size:12px}.alignment-face-groups{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0}.alignment-face-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.alignment-face-grid button{width:88px;padding:5px;white-space:normal}.alignment-face-grid svg{width:100%;height:85px;background:#121615}.alignment-face-grid span{font-size:10px}.alignment-face-grid [aria-pressed="true"]{outline:2px solid var(--accent)}
@media(max-width:520px){.alignment-face-groups{gap:10px}.alignment-face-grid button{width:72px}.alignment-face-grid svg{height:70px}}

.generation-progress{height:6px;width:min(100%,440px);margin:22px auto 10px;overflow:hidden;border-radius:8px;background:rgba(173,194,144,.15)}
.generation-progress span{display:block;height:100%;width:34%;border-radius:8px;background:var(--accent,#b4c996);animation:generation-wait 1.8s ease-in-out infinite}
.generation-progress.complete{margin:12px 0;width:100%}.generation-progress.complete span{width:100%;animation:none}
@keyframes generation-wait{0%{transform:translateX(-105%)}100%{transform:translateX(400%)}}
@media(prefers-reduced-motion:reduce){.generation-progress span{animation:none;width:100%;opacity:.55}}

.project-results{min-width:0}.project-history{margin-bottom:18px}.project-history h3{margin:0 0 14px}.project-history .history-strip{margin:0;overflow-x:auto;flex-wrap:nowrap;max-width:100%;padding:2px 2px 10px;scrollbar-width:thin}.project-history .history-thumb{flex:0 0 120px;min-width:120px;max-width:120px}.project-history .history-thumb img{width:108px;height:90px}.history-thumb.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.generation-confirm-previews{display:grid;grid-template-columns:1fr 1fr;gap:16px}.generation-confirm-previews figure{margin:0;min-width:0}.generation-confirm-previews img{width:100%;height:170px;object-fit:contain;background:#101312;border-radius:8px}.generation-confirm-previews figcaption{font-size:12px;margin-top:7px;overflow-wrap:anywhere}.generation-confirm-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.generation-confirm-details dt{color:var(--muted)}.generation-confirm-details dd{margin:0;text-align:right}.generation-confirm-details strong{color:var(--accent)}
@media(max-width:640px){.generation-confirm-previews{gap:10px}.generation-confirm-previews img{height:135px}.generation-confirm-details{font-size:13px;gap:10px}.project-history .history-thumb{flex-basis:110px;min-width:110px;max-width:110px}.project-history .history-thumb img{width:98px}}

/* Private final-image viewer, independent of the comparison and selection state. */
.portrait-viewer{width:min(1400px,94vw);max-width:94vw;height:92dvh;max-height:94dvh;padding:18px;overflow:hidden;background:#111615;color:var(--text,#eee);border:1px solid #3a443e;border-radius:16px}
.portrait-viewer::backdrop{background:rgb(0 0 0 / .85)}
.portrait-viewer-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.portrait-viewer-toolbar strong{margin-right:auto;overflow-wrap:anywhere}
.portrait-viewer-toolbar label{display:flex;align-items:center;gap:8px}
.portrait-viewer-toolbar input{width:130px}
.portrait-viewer-stage{height:calc(100% - 112px);display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;background:#080b09;border-radius:8px}
.portrait-viewer-stage img{max-width:100%;max-height:100%;object-fit:contain;user-select:none;flex-shrink:0}
@media(max-width:640px){.portrait-viewer{padding:12px;height:94dvh}.portrait-viewer-toolbar{gap:8px}.portrait-viewer-toolbar strong{flex-basis:100%}.portrait-viewer-toolbar button,.portrait-viewer-toolbar a{padding:8px}.portrait-viewer-toolbar input{width:90px}.portrait-viewer-stage{height:calc(100% - 172px)}}
.portrait-viewer[open]{display:flex;flex-direction:column;gap:10px}
.portrait-viewer .portrait-viewer-stage{height:auto;flex:1;min-height:0}
.portrait-viewer .small-note{margin:0}
.portrait-viewer-toolbar .outline-link{display:inline-flex}

/* Enlarged comparison keeps its own slider; local comparison frames stay 3:4. */
.compare-expand{position:absolute;right:14px;top:44px;z-index:3;padding:8px 12px;background:#202822e8;font-size:12px}
.pair .zoom-cell{height:auto;aspect-ratio:3/4;min-width:0}
.comparison-viewer .comparison-viewer-stage{height:auto;flex:1;min-height:120px;width:100%}
.comparison-viewer-control{display:flex;align-items:center;gap:12px}
.comparison-viewer-control input{flex:1;min-width:0}
.assistant-qr{display:flex;justify-content:center;margin:24px 0}
.assistant-qr img{display:block;width:min(280px,100%);height:auto;background:#fff;border:12px solid #fff;border-radius:8px}

.ledger-detail-row>td{padding:0!important}
.ledger-detail-panel{padding:20px;background:#171e19;border-left:3px solid var(--accent);white-space:normal}
.ledger-detail-panel h3{margin:0 0 8px}
.ledger-detail-summary{display:flex;gap:12px 24px;flex-wrap:wrap;margin:14px 0}
.ledger-detail-summary span{display:flex;flex-direction:column;color:var(--muted);font-size:12px}
.ledger-detail-summary strong{color:var(--text);font-size:15px}
.ledger-detail-panel small{display:block;color:var(--muted);white-space:normal;max-width:280px}
.ledger-detail-panel table{background:var(--bg)}
@media(max-width:640px){.ledger-detail-panel{padding:12px}.ledger-detail-summary{gap:10px}}
@media(max-width:640px){
 .user-ledger-table>thead>tr>th:last-child,.user-ledger-table>tbody>tr:not(.ledger-detail-row)>td:last-child{position:sticky;right:0;z-index:1;background:var(--panel2);box-shadow:-3px 0 8px #0004}
 .ledger-detail-panel{position:sticky;left:0;width:calc(100vw - var(--sidebar) - 48px);max-width:100%}
 .ledger-detail-summary{display:grid;grid-template-columns:1fr;gap:8px}
}

/* The image content box is 3:4; decorative borders sit outside it. */
.hero-pictures .hero-photo{box-sizing:content-box;flex:0 0 auto;width:27%;height:auto;aspect-ratio:3/4;object-fit:contain}
@media(max-width:1000px) and (min-width:521px){.hero-pictures .hero-photo{width:34%}}
@media(max-width:520px){.hero-pictures .hero-photo{width:26%;height:auto}}
.user-ledger-table td:first-child small{display:block;max-width:220px;white-space:normal;color:var(--muted)}

.studio-generation-notice{margin:16px 0;padding:15px 16px;border:1px solid #48543b;border-radius:8px;background:#242c22;color:#c9d2c0;font-size:12px;line-height:1.85;overflow-wrap:anywhere}
.studio-generation-notice h3{margin:0 0 8px;color:var(--accent);font-size:14px;font-weight:600}
.studio-generation-notice p{margin:0 0 9px}
.studio-generation-notice p:last-child{margin-bottom:0}
.studio-generation-notice strong{font-weight:500;color:#e0e8d7}

/* 制作设置参考图独立三列，避免影响样片详情的选择器。 */
#studio-template-preview .reference-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#studio-template-preview .reference-choices button{width:100%;min-width:0}
#studio-template-preview .reference-choices img{width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}
#studio-template-preview .reference-choices span{display:block;overflow-wrap:anywhere}

.project-original-open{display:block;width:100%;padding:0;border:0;background:transparent;margin:0 0 20px;cursor:zoom-in}
.project-original-open .project-original-preview{display:block;margin-bottom:0}
.project-original-open:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:6px}

.additional-prompt{margin:14px 0;min-width:0}.additional-prompt summary{cursor:pointer;font-size:13px}.additional-prompt summary small{display:inline;color:var(--muted);font-size:11px;line-height:1.7}.additional-prompt textarea{width:100%;min-width:0;resize:vertical}.additional-prompt .field{margin-top:12px}.generation-additional-prompt{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}

.project-photo strong,.project-settings h2{overflow-wrap:anywhere;word-break:break-word}

/* Share one backdrop across the gallery copy and its three framed images. */
.hero{background:linear-gradient(120deg,#222922,#454b3a)}.hero-pictures{background:transparent}
