:root{--ink:#2b2620;--muted:#756c60;--paper:#f7f5ef;--line:#e6e0d2;--blue:#1b3fcb;--red:#b4001f}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 system-ui,-apple-system,sans-serif}button,input,select{font:inherit}button,a,input,select,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;background:white;border:1px solid var(--line);border-radius:9px;padding:10px 16px;color:var(--ink);font-weight:600}button:hover{background:#f0eee7}button:disabled{opacity:.55;cursor:wait}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:3px solid #b8791f;outline-offset:3px}[hidden]{display:none!important}.topbar{background:white;border-bottom:1px solid var(--line);padding:19px max(24px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{font:bold italic 26px Georgia,serif;color:var(--red);line-height:1.2}.brand span{color:var(--blue)}.brand small{display:block;font:10px system-ui,sans-serif;letter-spacing:.2em;color:var(--muted);margin-top:7px}.topbar nav{display:flex;align-items:center;gap:22px}main{max-width:1180px;margin:32px auto;padding:0 24px}.card{background:#fff;border:1px solid var(--line);border-radius:18px}.auth{max-width:440px;padding:36px;margin:60px auto}.eyebrow{font-size:11px;letter-spacing:.14em;color:#94601b;font-weight:700}h1,h2,h3{font-family:Georgia,serif;line-height:1.2;margin:12px 0}h1{font-size:38px;font-weight:500}h2{font-size:28px;font-weight:500}h3{font-size:21px}.muted{color:var(--muted)}label{display:block;font-weight:600;margin:0 0 18px}input,select{display:block;width:100%;background:#fff;border:1px solid #cfc8bb;border-radius:9px;padding:12px;margin-top:7px;color:var(--ink)}label small{display:block;font-weight:400;color:var(--muted);margin-top:5px}.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:#1532a5}.danger{color:var(--red)}.auth .primary{width:100%;margin-top:4px}.message{border-radius:10px;padding:13px 18px;background:#eaf0ff;color:#233c88;overflow-wrap:anywhere}.message:empty{display:none}.message.error{background:#fff0ee;color:#a22020}.message.success{background:#e9f5ee;color:#236143}.heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:28px 0}.heading p{margin:10px 0 0}.workspace{display:grid;grid-template-columns:330px 1fr;gap:24px;align-items:start}.sidebar{padding:24px}.sidebar #count{font-size:13px}.product-list{max-height:640px;overflow-y:auto;display:grid;gap:7px}.product-item{display:flex;align-items:center;text-align:left;gap:12px;font-weight:500;padding:10px;width:100%}.product-item.active{border-color:var(--blue);background:#f0f3ff}.product-item img,.placeholder{width:42px;height:42px;object-fit:cover;border-radius:7px;background:var(--paper);flex-shrink:0}.placeholder{display:grid;place-items:center;color:#a89d8c}.product-item span:last-child{min-width:0;overflow-wrap:anywhere}.product-item small{display:block;color:var(--muted);font-size:11px;font-weight:400}.editor{padding:30px;min-height:430px;min-width:0}#empty-editor{text-align:center;padding:60px 25px}.empty-icon{font-size:42px;color:#b8791f}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:26px}.photo-section{border-top:1px solid var(--line);padding-top:18px}.badge{font:12px system-ui;background:var(--paper);padding:5px 9px;border-radius:20px}.upload{border:1px dashed #a8b6e7;background:#f7f9ff;padding:20px;border-radius:12px}.upload strong{display:block;color:var(--blue)}.upload span{display:block;font-size:12px;font-weight:400;color:var(--muted);margin:4px 0}.upload input{border:0;padding:6px 0;font-size:13px;background:transparent}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px}.photo-card{border:1px solid var(--line);padding:8px;border-radius:10px;min-width:0}.photo-card img{width:100%;aspect-ratio:1;object-fit:contain;background:var(--paper);border-radius:6px}.photo-card button{font-size:12px;width:100%;margin-top:7px;padding:7px}.photo-card small{color:var(--muted);font-size:11px}.account{padding:20px 26px;margin-top:24px}.account summary{cursor:pointer;font-weight:600}.account form{max-width:450px;padding-top:20px}footer{text-align:center;color:var(--muted);font-size:12px;margin:36px 20px}body.busy .workspace,body.busy .account{opacity:.72;pointer-events:none}@media(max-width:760px){.topbar{padding:16px;align-items:flex-start}.brand{font-size:23px}.topbar nav{gap:10px;flex-wrap:wrap;justify-content:flex-end;font-size:12px}.topbar button{font-size:12px;padding:6px 9px}main{padding:0 16px;margin-top:20px}.heading{align-items:flex-start;flex-direction:column;gap:16px}h1{font-size:32px}.workspace{grid-template-columns:1fr;gap:16px}.sidebar,.editor{padding:20px}.product-list{max-height:250px}.auth{padding:26px;margin:28px auto}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.heading .primary{width:100%}}
