*{box-sizing:border-box}body{margin:0;background:#f5f6f8;color:#252830;font:14px/1.6 'Segoe UI','Microsoft YaHei',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}button,input,select,textarea{outline:none}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #b28d52;outline-offset:3px}button{border:1px solid #e4e6eb;background:white;border-radius:8px;padding:8px 13px;color:inherit}button:hover{border-color:#c6a56d;background:#faf7f1}aside{position:fixed;inset:0 auto 0 0;width:236px;background:#fff;border-right:1px solid #e7e8ec;padding:30px 18px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;padding:0 12px 29px}.logo{background:#b38e54;color:white;border-radius:12px;width:39px;height:39px;display:grid;place-items:center;font-size:25px;font-weight:700}.brand strong{font-size:21px;letter-spacing:3px}.brand small{display:block;letter-spacing:2px;font-size:10px;color:#9699a2}.group{font-size:12px;color:#9a9da6;letter-spacing:1px;margin:23px 14px 9px}.nav{border:0;text-align:left;width:100%;padding:12px 13px;margin:3px 0;background:none;display:flex;align-items:center;gap:12px;color:#666c7a}.nav.active{background:#f4ede1;color:#967039;font-weight:600}.nav svg{width:18px;height:18px}.aside-bottom{margin-top:auto;border-top:1px solid #eee;padding:20px 10px 0;color:#858995;font-size:12px}.aside-bottom strong{display:block;color:#4d5460;font-size:14px}main{margin-left:236px}header{height:77px;background:#ffffffc9;border-bottom:1px solid #e8e9ed;padding:0 38px;display:flex;align-items:center;justify-content:space-between}.crumb{color:#a0a4af}.crumb b{color:#4a505e;font-weight:500}.top-right{display:flex;align-items:center;gap:16px;color:#818693}.badge{font-size:12px;border:1px solid #e8ddc8;background:#faf6ed;color:#a58348;border-radius:5px;padding:3px 8px}.avatar{background:#ede5d8;color:#987745;width:32px;height:32px;display:grid;place-items:center;border-radius:50%}.content{max-width:1390px;margin:auto;padding:32px 38px}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}h1{font-size:26px;letter-spacing:-.7px;margin:0 0 6px}p{margin:0;color:#8a8f9c}h2{font-size:16px;margin:0}h3{font-size:14px;margin:0}.muted{color:#969ba6;font-size:12px}.panel{border:1px solid #e4e6ec;border-radius:14px;background:white;padding:23px;margin-bottom:20px;box-shadow:0 3px 8px #1d294003}.workspace-tabs{display:flex;gap:4px;padding:5px;background:#ebeef2;border-radius:10px;width:max-content;margin-bottom:22px}.workspace-tabs button{background:none;border:0;padding:9px 26px;color:#777e8d}.workspace-tabs button.active{background:white;box-shadow:0 2px 7px #3331;color:#96723e}.editor{border:1px solid #e7e8ee;border-radius:11px;min-height:228px;padding:18px;position:relative}.editor textarea{resize:vertical;width:100%;min-height:132px;border:0;background:transparent;padding:3px;font-size:15px;line-height:1.9}.editor textarea::placeholder{color:#a1a6b0}.editor-bottom{display:flex;align-items:center;justify-content:space-between}.upload-mini{border:1px dashed #d6b887;background:#fcf9f3;color:#aa864a;display:flex;align-items:center;gap:7px}.primary{background:#b18c52;color:white;border-color:#b18c52;box-shadow:0 4px 10px #b18c5220;font-weight:600;padding:10px 21px}.primary:hover{background:#9f7d47;color:white}.toolbar{display:flex;flex-wrap:wrap;gap:21px;align-items:center;padding:19px 0 15px}.control{display:flex;align-items:center;gap:10px;color:#808692;font-size:13px}select,input{border:1px solid #e2e5ec;border-radius:7px;background:#fff;padding:9px 11px;color:#424956}select{min-width:120px}.seg{display:flex;gap:5px}.seg button,.chip{font-size:12px;padding:5px 11px}.seg .selected,.chip.selected,.angle.selected{background:#f8f2e7;color:#a07c43;border-color:#d4b77f}.chips{display:flex;gap:8px;align-items:center;padding-bottom:18px}.chip{border-radius:6px;color:#707786}.divider{border-top:1px solid #f0f1f4;padding-top:16px;display:flex;justify-content:space-between;align-items:center}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px;gap:12px}.result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.result{border:1px solid #e9eaf0;border-radius:10px;overflow:hidden;background:#fff}.result img{width:100%;aspect-ratio:1;object-fit:cover;display:block;background:#f6f6f6}.result-meta{padding:12px}.result-meta small{color:#969ba4}.result-meta button{font-size:12px;padding:4px 8px}.empty{min-height:180px;display:grid;place-content:center;text-align:center;background:repeating-linear-gradient(135deg,#fafbfc,#fafbfc 8px,#f9fafb 8px,#f9fafb 9px);border:1px dashed #e3e6ed;border-radius:11px;color:#999fab;gap:8px}.empty .empty-icon{font-size:32px;color:#c6b18a}.hint{border:1px solid #e8e9ef;border-radius:9px;padding:13px 16px;font-size:12px;color:#989da7;margin-top:20px;display:flex;gap:9px}.hint b{color:#a18551}.thumbs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.thumb{position:relative}.thumb img{width:65px;height:65px;object-fit:cover;border:1px solid #e5e7eb;border-radius:7px}.thumb button{position:absolute;right:-5px;top:-6px;padding:0;width:20px;height:20px;border-radius:50%;font-size:12px}.banner{background:linear-gradient(115deg,#faf5eb,#fff 75%);border:1px solid #e9e2d7;padding:25px;border-radius:13px;margin-bottom:21px}.banner .eyebrow{font-size:11px;letter-spacing:2px;color:#ac8a54;margin-bottom:6px}.banner h1{font-size:25px}.banner p{font-size:13px}.templates{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.template{padding:10px;text-align:left;position:relative}.template.selected{border-color:#b18c52;background:#fbf7ef}.template-art{height:115px;border-radius:6px;display:grid;place-items:center;overflow:hidden;background:#f1eee7;margin-bottom:10px}.template-art img{width:100%;height:100%;object-fit:cover}.template strong{display:block}.template span{color:#979aa3;font-size:12px}.two-col{display:grid;grid-template-columns:1fr 1.12fr;gap:22px}.dropzone{text-align:center;padding:28px 10px;border:1px dashed #d7c3a2;border-radius:11px;background:#fdfaf5;cursor:pointer}.dropzone strong{display:block;margin-bottom:5px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:22px 0}.field label{display:block;color:#67707f;font-size:13px;margin-bottom:7px}.field input,.field select{width:100%}.angles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.angle{text-align:left;padding:12px}.angle small{display:block;color:#949aa5;font-size:12px}.note{padding:10px 12px;border-left:2px solid #c2a06c;background:#faf7f1;color:#92908b;font-size:12px;margin:15px 0}.wide{width:100%}.two-col .result-grid{grid-template-columns:repeat(3,1fr)}.settings{max-width:880px}.settings p{margin:7px 0 20px}.settings .field{margin:15px 0}.settings textarea{width:100%;min-height:150px;border:1px solid #e2e5ec;border-radius:9px;padding:14px;background:#f8f9fb;font-family:monospace;font-size:13px}.folder{padding:23px;text-align:left}.folder-icon{font-size:34px;color:#b9955f}.folders{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.spin{display:inline-block;width:14px;height:14px;border:2px solid #ffffff70;border-top-color:white;border-radius:50%;animation:spin .8s linear infinite;margin-right:8px;vertical-align:middle}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#303644;color:white;padding:12px 23px;border-radius:9px;z-index:100;display:none}details{margin-top:12px;color:#8a909b;font-size:13px}summary{cursor:pointer}.row{display:flex;gap:10px;align-items:center}.switch{accent-color:#b18c52}footer{text-align:center;color:#b0b4bd;font-size:11px;padding:15px}.preview-modal{position:fixed;inset:0;background:#111b;z-index:50;display:grid;place-items:center;padding:40px}.preview-modal img{max-width:90vw;max-height:85vh;border-radius:10px}.preview-modal button{position:absolute;right:25px;top:20px}@media(min-width:1500px){.content{padding-top:40px}.editor{min-height:270px}.editor textarea{min-height:172px}}@media(max-width:1000px){aside{width:200px}main{margin-left:200px}.content{padding:24px}.two-col{grid-template-columns:1fr}.toolbar{gap:12px}.workspace-tabs button{padding:8px 14px}.result-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){aside{position:static;width:100%;padding:14px;display:block}.brand{padding-bottom:8px}.group,.aside-bottom{display:none}.nav{width:auto;display:inline-flex;font-size:12px;padding:8px}.nav svg{display:none}main{margin:0}header{height:55px;padding:0 18px}.content{padding:18px}.top-right .muted{display:none}.workspace-tabs{width:100%}.workspace-tabs button{flex:1;font-size:12px;padding:8px}.result-grid,.templates,.folders{grid-template-columns:repeat(2,1fr)}.page-title{align-items:flex-start}.page-title p{font-size:12px}.toolbar{align-items:flex-start}.form-grid{grid-template-columns:1fr}.chips{flex-wrap:wrap}.panel{padding:16px}}
.nav{font-size:13px}.nav span{white-space:nowrap}.brand strong{white-space:nowrap}.muted{color:#7b8290}.page-title p{color:#767f8e}

button.danger{color:#b33b32;border:1px solid #e8c6c2;background:#fff8f7}button.danger:hover{background:#fbe9e6;border-color:#b33b32}

.folder-card{border:1px solid #e4e6eb;border-radius:10px;background:white;overflow:hidden;min-width:0}.folder-open{display:block;width:100%;border:0;border-radius:0;background:transparent}.folder-open h3{overflow-wrap:anywhere}.folder-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 23px 20px}.folder-actions button{font-size:12px}

.brand .logo{flex-shrink:0}.brand strong{letter-spacing:.3px}

.settings-navigation{margin-top:23px}

.config-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.config-card{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:26px;text-align:left}.config-card svg{width:28px;height:28px;color:#a58348}.config-card span{font-size:12px;color:#969ba6}.config-back{margin-bottom:18px}

.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at top,#f6eddb,#f5f6f8 65%)}.login-card{width:min(440px,100%);text-align:center;padding:48px 30px;background:white;border:1px solid #e8e2d8;border-radius:20px;box-shadow:0 12px 48px #5b432312}.login-card h1{margin-top:18px}.login-card h2{color:#8f7042;margin:8px 0 18px}.login-card p{margin:15px 0}.login-button{display:block;text-decoration:none;color:white;background:#b18c52;border-radius:9px;padding:12px 18px;margin-top:30px}.login-button:hover{background:#9f7d47}.login-card .login-error{color:#b33b32;font-size:13px}.login-card small{color:#969ba6}

.login-card .login-help{font-size:12px;line-height:1.8;color:#7d8490}

.access-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #eee}.access-row small{display:block;color:#87909c;margin-top:5px;overflow-wrap:anywhere}.access-dialog{width:min(620px,90vw);border:1px solid #e6e1d8;border-radius:18px;padding:28px;max-height:80vh;overflow:auto;box-shadow:0 20px 80px #0003}.access-dialog::backdrop{background:#18251d66;backdrop-filter:blur(3px)}.access-dialog input{flex:1;min-width:0}.access-dialog label{display:block;margin-bottom:8px}.access-dialog #accessMatches{margin-top:18px}

.history-entry{padding:20px 0;border-bottom:1px solid #e5e7eb}.history-prompt{white-space:pre-wrap;overflow-wrap:anywhere}.history-thumbnails{display:flex;flex-wrap:wrap;gap:10px}.history-thumbnails img{width:88px;height:88px;object-fit:contain;border:1px solid #e5e7eb;border-radius:8px;pointer-events:none}

.history-navigation{margin-top:23px}@media(max-width:700px){.settings-navigation,.history-navigation{display:inline-block;margin-top:8px}}
.results-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:8px}.results-heading{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.results-heading h2{white-space:nowrap;margin:0}.results-actions{display:flex;gap:8px;flex-wrap:wrap}.results-actions button{white-space:nowrap;flex-shrink:0;min-height:36px;padding:7px 14px;font-size:13px}.results-help{font-size:12px;line-height:1.8;color:#858d9b;margin:0 0 18px;overflow-wrap:anywhere}.result-details{display:flex;flex-direction:column;gap:10px;margin-top:7px}.result-details small{overflow-wrap:anywhere;line-height:1.5}.result-actions{display:flex;gap:6px;flex-wrap:wrap}.result-actions button{white-space:nowrap;flex-shrink:0;font-size:12px;line-height:20px;min-height:32px;padding:5px 9px}.result-meta h3{line-height:1.5;margin:0}.result-grid,.two-col .result-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}
/* Match the account label and logout control in the top bar. */
.top-right > .badge,.top-right > button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:96px;height:36px;padding:0 12px;font-size:13px;line-height:1;border-radius:8px;white-space:nowrap}

.history-bulk{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e5e7eb}.history-bulk button{white-space:nowrap}.history-select{display:flex;align-items:center;gap:10px}.history-select input,.history-bulk input{accent-color:#b18c52}
.history-entry .section-head{margin-bottom:12px}.history-meta{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:13px;line-height:1.8;color:#7b8290;margin-bottom:14px}.history-meta span{white-space:nowrap}.history-prompt,.history-style{font-size:14px;line-height:1.8;margin:8px 0;color:#414957}.history-field-label{display:inline-block;color:#8a919e;font-size:13px;margin-right:12px}.history-thumbnails{margin-top:12px}.history-entry{padding:22px 0}
.replica-style-heading{margin-top:22px}.replica-style-heading h3{margin:0 0 6px;font-size:14px}.replica-style-heading p{margin:0 0 14px;font-size:13px}.replica-style-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.replica-style-option{text-align:left;padding:16px;min-height:108px;display:flex;flex-direction:column;gap:8px;border:1px solid #e4e6eb;border-radius:10px}.replica-style-option strong{font-size:14px}.replica-style-option span{font-size:12px;line-height:1.8;color:#7b8290}.replica-style-option.selected{border-color:#b18c52;background:#faf5ec;color:#967039}
