:root{font-family:Inter,Segoe UI,Microsoft YaHei,sans-serif;color:#252a28;background:#f7f8f5;font-synthesis:none;--accent: #bd4c36;--muted: #777d77;--line: #e2e6df;--surface: #fff}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:4px}a{color:inherit;text-decoration:none}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:inherit;padding:10px 16px;cursor:pointer;transition:background .15s,transform .15s}button:hover{background:#f0f2ed}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:#a8402d}.muted,.subtle{color:var(--muted)}.muted{font-size:14px;line-height:1.8}.subtle{font-size:13px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:600;color:var(--muted);margin:0 0 12px}h1{font-size:30px;letter-spacing:-1px;line-height:1.3;margin:0 0 10px}h2{font-size:21px;margin:0 0 16px}h3{font-size:16px}p{margin:0 0 16px}label{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:500}input,textarea,select{width:100%;padding:12px;border:1px solid #dce0d8;background:#fff;border-radius:7px;color:inherit}input:focus,textarea:focus,select:focus{border-color:var(--accent);outline:2px solid #bd4c3618}textarea{resize:vertical;line-height:1.8}.error{background:#fff0ec;color:#a53822;padding:13px 16px;border-radius:6px;font-size:13px;line-height:1.7}.notice{background:#eef3e9;color:#52633e;padding:13px 16px;border-radius:6px;font-size:13px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:20px;letter-spacing:-.6px}.brand svg{color:var(--accent)}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:400;letter-spacing:1px;margin-top:4px}.auth-page{min-height:100svh;display:grid;grid-template-columns:1.1fr 1fr;background:#fff}.auth-brand{background:#ecefe7;padding:54px 64px;display:flex;flex-direction:column;justify-content:space-between;min-height:100svh}.auth-brand .brand span{font-size:11px;color:var(--muted);letter-spacing:1px;margin-left:18px;font-weight:400}.auth-brand h1{font-size:clamp(36px,4.5vw,70px);line-height:1.35;font-weight:500;letter-spacing:-2px}.auth-brand small{color:var(--muted)}.auth-form{align-self:center;justify-self:center;width:min(360px,80%);display:flex;flex-direction:column;gap:20px}.auth-form h2{font-size:26px;margin:0}.auth-form p{margin:0}.auth-form .primary{margin-top:8px;padding:14px}.app-shell{display:grid;grid-template-columns:232px 1fr;min-height:100svh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:30px 22px 18px;height:100svh;position:sticky;top:0;display:flex;flex-direction:column}.sidebar .brand{margin-bottom:44px}nav{display:flex;flex-direction:column;gap:7px}nav a{display:flex;align-items:center;gap:12px;font-size:14px;padding:12px 14px;border-radius:7px;color:#666d64}nav a:hover{background:#f7f8f5}nav a.router-link-exact-active{color:var(--accent);background:#fbefea;font-weight:600}nav .new-link{margin-bottom:9px;border:1px solid #e9d0c8}.nav-label{margin:28px 14px 6px;font-size:11px;letter-spacing:1px;color:#949a90}.profile{margin-top:auto;display:flex;gap:9px;align-items:center;border-top:1px solid var(--line);padding-top:18px}.profile strong{display:block;font-size:12px;max-width:74px;overflow:hidden;text-overflow:ellipsis}.profile small{font-size:10px;color:var(--muted)}.avatar{background:#edf0e7;color:#6d765e;width:31px;height:31px;border-radius:50%;display:grid;place-items:center;font-size:12px}.icon-btn{border:0;padding:5px;background:transparent}.main-content{padding:42px clamp(24px,4.4vw,76px);max-width:1620px;width:100%;margin:0 auto;animation:enter .25s ease}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:36px}.page-header .muted{margin:0}.inline-form{display:flex;align-items:end;gap:16px;padding:24px 0;border-block:1px solid var(--line);margin:24px 0}.inline-form label{max-width:280px;flex:1}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{color:var(--muted);font-weight:400;font-size:12px;padding:16px 12px;border-bottom:1px solid var(--line)}td{padding:20px 12px;border-bottom:1px solid var(--line)}.row-actions{display:flex;gap:8px}.row-actions button{padding:6px 12px;font-size:12px}.status{display:inline-flex;padding:4px 8px;border-radius:4px;background:#eee;color:#777;font-size:11px}.status.success{background:#eaf1e4;color:#527436}.actions{display:flex;gap:10px;justify-content:flex-end}.modal-backdrop{position:fixed;inset:0;background:#17201560;display:grid;place-items:center;padding:24px;z-index:50;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog{background:#fff;padding:30px;border-radius:12px;width:min(480px,100%);display:grid;gap:20px;box-shadow:0 20px 100px #0002}.boot{padding:50px;color:var(--muted)}@keyframes enter{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media(max-width:850px){.app-shell{grid-template-columns:180px 1fr}.sidebar{padding:24px 12px}.main-content{padding:30px 24px}.brand{font-size:17px}.profile{flex-wrap:wrap}.auth-brand{padding:40px 30px}.inline-form{flex-wrap:wrap}}@media(max-width:600px){.app-shell{display:block}.sidebar{position:relative;height:auto;padding:18px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{margin-bottom:18px}.sidebar nav{flex-direction:row;overflow-x:auto;gap:4px}.sidebar nav a{white-space:nowrap;padding:8px;font-size:12px}.nav-label,.profile,.sidebar nav .new-link{margin:0}.nav-label{display:none}.profile{position:absolute;top:18px;right:14px;border:0;padding:0}.profile .avatar,.profile strong,.profile small{display:none}.main-content{padding:28px 20px}.auth-page{display:block}.auth-brand{min-height:230px;padding:28px;gap:35px}.auth-brand h1{font-size:32px}.auth-brand small,.auth-brand .muted,.auth-brand .eyebrow{display:none}.auth-form{margin:40px auto;gap:18px}.page-header{align-items:start}h1{font-size:26px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:28px}.tabs button{border:0;background:none;border-radius:0;padding:12px 2px;color:var(--muted)}.tabs .selected{border-bottom:2px solid var(--accent);color:var(--accent)}.settings-form{max-width:850px}.settings-form section{padding:10px 0 30px;margin-bottom:20px;border-bottom:1px solid var(--line)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.span-2{grid-column:span 2}.settings-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.settings-actions .muted{margin:0;font-size:12px}@media(max-width:650px){.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.settings-actions .muted{width:100%;order:3}}.composer{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:48px}.composer-main{max-width:780px}.product-name input{font-size:17px;padding:16px}.field-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin:32px 0 14px}.field-heading span{color:var(--muted);font-size:12px}.upload-zone{height:320px;border:1px dashed #bec6b5;display:flex;align-items:center;justify-content:center;background:#eef1e9;border-radius:10px;position:relative;cursor:pointer;gap:14px;text-align:center;overflow:hidden}.upload-zone input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-zone span{font-size:12px;color:var(--muted)}.upload-zone small{font-size:10px;color:#939b8a;letter-spacing:.3px}.upload-icon{margin-bottom:10px;color:#7e8c6e}.upload-zone.dragging{background:#e3e9da;border-color:#738260}.upload-zone.filled{height:120px}.upload-previews{display:flex;gap:12px;margin:18px 0;flex-wrap:wrap}.upload-previews figure{position:relative;margin:0;width:108px;height:120px;border-radius:6px;overflow:hidden;background:#fff;border:1px solid var(--line)}.upload-previews img{width:100%;height:100%;object-fit:contain}.upload-previews figure span{position:absolute;bottom:0;left:0;font-size:10px;padding:4px 8px;background:#363e32;color:#fff}.upload-previews figure button{position:absolute;right:3px;top:3px;padding:3px;border:0;background:#fff9}.composer-aside{border-left:1px solid var(--line);padding-left:32px}.composer-aside h2{line-height:1.6;font-size:23px;font-weight:500;margin-bottom:30px}.deliverables{margin:26px 0}.deliverables div{padding:16px 0;border-bottom:1px solid var(--line)}.deliverables dt{font-size:13px;font-weight:600;margin-bottom:6px}.deliverables dd{margin:0;color:var(--muted);font-size:12px;line-height:1.8}.generate-button{width:100%;justify-content:space-between;padding:15px;margin:8px 0 14px}.composer-aside>small{display:block;font-size:10px;line-height:1.8}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:10px 16px;font-size:13px}.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.back-link{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-bottom:14px}.note-header{margin-bottom:28px}.generation-status{padding:16px 0;margin-bottom:28px}.generation-status>div{display:flex;gap:12px;align-items:center;font-size:12px}.generation-status b{margin-left:auto}.generation-status span{color:var(--muted)}.generation-status progress{width:100%;height:4px;border:0;display:block;margin:15px 0;accent-color:var(--accent)}.generation-status p{margin:0;font-size:11px;color:var(--muted)}.pulse{width:7px;height:7px;border-radius:50%;background:var(--accent);animation:pulse 1.4s infinite}.result-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:36px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.section-title h2{margin:0;font-size:17px}.image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.page-tile{min-width:0}.image-preview{padding:0;border:0;border-radius:7px;aspect-ratio:3/4;display:block;width:100%;position:relative;overflow:hidden;background:#eee}.image-preview>img{width:100%;height:100%;object-fit:contain;animation:enter .4s ease}.image-preview>span{position:absolute;right:10px;bottom:10px;background:#fffc;padding:7px;border-radius:5px;opacity:0;transition:opacity .15s}.image-preview:hover>span{opacity:1}.page-tile footer{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:11px;color:var(--muted)}.page-tile footer>div{display:flex;align-items:center;gap:8px}.page-tile footer small{margin-left:8px;font-size:9px}.image-placeholder{aspect-ratio:3/4;border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#e9ece5;color:#aab2a1;gap:18px}.image-placeholder span{font-size:54px;font-weight:300}.image-placeholder small{font-size:11px}.shimmer{background:linear-gradient(100deg,#edf0e8 30%,#f7f8f4,#edf0e8 70%);background-size:200% 100%;animation:shimmer 2s infinite}.copy-editor{padding-left:30px;border-left:1px solid var(--line)}.copy-editor label{margin-bottom:22px}.copy-editor input,.copy-editor textarea{background:#fff}.title-options{display:grid;gap:7px;margin-bottom:26px}.title-options button{text-align:left;justify-content:start;font-size:12px;line-height:1.6;border:1px solid transparent;background:transparent;padding:10px}.title-options button span{font-size:11px;color:var(--muted);align-self:start;margin-top:2px}.title-options .active{background:#fcf0ea;border-color:#edd8cd;color:#a34432}.tags{display:flex;flex-wrap:wrap;gap:7px 12px;font-size:12px;color:#6f7d5e;margin:5px 0 24px}.editor-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.editor-actions button{font-size:11px;padding:10px 12px}.copy-editor details,.source-details{padding-top:22px;margin-top:24px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}summary{cursor:pointer}details li{line-height:1.9}.source-strip{display:flex;gap:10px;margin-top:18px}.source-strip img{height:90px;width:90px;object-fit:contain;background:#fff;border-radius:5px;cursor:zoom-in}.copy-placeholder>div{height:14px;margin-bottom:20px;border-radius:3px}.copy-placeholder>div:nth-child(2){width:85%}.copy-placeholder>div:nth-child(3){width:60%}.image-modal>img{max-height:90svh;max-width:85vw;object-fit:contain}.close-preview{position:absolute;top:20px;right:24px}.job-error{display:flex;align-items:center;gap:18px;white-space:pre-line}.job-error span{flex:1}.job-error button{font-size:11px;white-space:nowrap}.text-button{border:0;padding:0;background:none;font-size:11px;color:var(--accent)}.history-toolbar{display:flex;justify-content:space-between;align-items:center;border-block:1px solid var(--line);padding:18px 0;margin-bottom:32px}.history-toolbar input{max-width:300px;background:transparent}.collection-header>.button{flex-shrink:0;white-space:nowrap}.collection-toolbar{gap:16px;flex-wrap:wrap;margin-bottom:8px}.collection-toolbar>div{display:flex;align-items:center;gap:18px}.collection-toolbar input{flex:1;min-width:180px}.collection-empty{min-height:250px}.product-group{border-bottom:1px solid var(--line);padding:22px 0}.product-group-header{display:grid;grid-template-columns:26px 48px minmax(0,1fr) auto;gap:14px;align-items:center}.group-toggle svg{transition:transform .18s ease}.group-toggle svg.collapsed{transform:rotate(-90deg)}.product-group-image{width:48px;height:48px;object-fit:contain;border-radius:5px;background:#edf0e9}.product-group-info{min-width:0}.product-group-info h2{font-size:15px;line-height:1.6;margin:0 0 4px;overflow-wrap:anywhere}.product-group-info p{margin:0;color:var(--muted);font-size:11px;line-height:1.6}.product-group-actions{display:flex;gap:8px;align-items:center}.compact-button{padding:8px 10px;font-size:12px;white-space:nowrap}.delete-group{background:transparent;border-color:transparent;color:var(--muted)}.delete-group:hover,.collection-delete:hover{color:#a53822;background:#fff0ec}.product-notes{margin:14px 0 0 88px}.collection-note{display:flex;align-items:center;gap:16px;border-top:1px solid var(--line);padding:10px 0;transition:background .15s}.collection-note:hover{background:#eff2eb}.collection-note-link{flex:1;min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr) auto 16px;gap:16px;align-items:center}.collection-note-image{width:42px;height:56px;object-fit:contain;background:#edf0e9;border-radius:3px}.collection-note-copy{min-width:0}.collection-note-copy h3{font-size:14px;font-weight:500;line-height:1.6;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-note-copy p{color:var(--muted);font-size:11px;margin:5px 0 0}.collection-open-icon{color:var(--muted)}.collection-delete{flex:0 0 36px;margin-right:5px;color:var(--muted)}.collection-dialog{width:min(480px,calc(100vw - 32px));margin:auto;border:1px solid var(--line);color:inherit;max-height:90svh;overflow-y:auto}.collection-dialog:not([open]){display:none}.collection-dialog::backdrop{background:#17201666}.delete-target-name{overflow-wrap:anywhere;line-height:1.7;font-weight:500}.danger-button{color:#fff;background:#a53822;border-color:#a53822}.danger-button:hover{background:#8b301e}@media(max-width:1000px){.product-group-header{grid-template-columns:26px 48px minmax(0,1fr)}.product-group-actions{grid-column:2 / -1;justify-self:end}}@media(max-width:600px){.collection-toolbar{gap:12px}.collection-toolbar input{max-width:none;flex-basis:100%}.collection-toolbar>div{width:100%;justify-content:space-between}.product-group{padding:18px 0}.product-group-header{gap:10px;grid-template-columns:22px 42px minmax(0,1fr)}.product-group-image{width:42px;height:42px}.product-group-info h2{font-size:14px}.product-group-info p span{display:block}.product-notes{margin-left:0}.collection-note{gap:8px}.collection-note-link{grid-template-columns:42px minmax(0,1fr);gap:4px 12px}.collection-note-image{grid-row:span 2}.collection-note-copy h3{white-space:normal;overflow-wrap:anywhere}.collection-note-link .status{grid-column:2;justify-self:start}.collection-open-icon{display:none}}@media(prefers-reduced-motion:reduce){.group-toggle svg,.collection-note{transition:none}}.empty-state{min-height:400px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#89937d;gap:14px}.empty-state h2{margin:10px 0 0;font-size:19px;color:#525c4a}.empty-state p{margin:0}.empty-state .button{margin-top:12px}@keyframes shimmer{to{background-position:-200% 0}}@keyframes pulse{50%{opacity:.25}}@media(min-width:1500px){.image-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1100px){.composer{gap:28px;grid-template-columns:minmax(0,1fr) 230px}.composer-aside{padding-left:24px}.result-layout{grid-template-columns:1fr}.copy-editor{padding:30px 0 0;border-left:0;border-top:1px solid var(--line)}}@media(max-width:800px){.composer{grid-template-columns:1fr}.composer-aside{padding:28px 0;border-left:0;border-top:1px solid var(--line)}.composer-aside h2,.composer-aside .deliverables{display:none}.upload-zone{height:260px}.field-heading{align-items:start;gap:8px}.field-heading span{font-size:10px}.job-error{flex-direction:column;align-items:start}}@media(max-width:400px){.image-grid{grid-template-columns:1fr}}.filter-bar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:30px}.filter-bar label{flex:1;min-width:140px;max-width:220px}.filter-bar input,.filter-bar select{padding:10px;font-size:12px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:10px 0 32px;margin-bottom:34px;border-bottom:1px solid var(--line)}.metrics>div{display:flex;flex-direction:column;gap:10px}.metrics span{font-size:12px;color:var(--muted)}.metrics strong{font-size:32px;font-weight:500;letter-spacing:-1px}.metrics .cost{font-size:19px;line-height:1.5;letter-spacing:0}.metrics small{font-size:10px;color:var(--muted)}.check-label{display:flex;flex-direction:row;gap:8px;align-items:center;font-size:11px;color:var(--muted)}.check-label input{width:14px;height:14px;accent-color:var(--accent)}.cell-note{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.6}.ledger-title{margin-top:42px}.call-error{max-width:200px;color:#9a5a46}@media(max-width:900px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.ledger-title{align-items:start;flex-direction:column}}@media(max-width:600px){.filter-bar label{max-width:100%;min-width:130px}.metrics strong{font-size:28px}}.image-count-field{margin-top:20px}@media(max-width:600px){.note-header{align-items:flex-start;flex-direction:column}.note-header .actions{align-self:flex-end}.note-header .button{white-space:nowrap}}
