:root{--navy:#0f2a4a;--gold:#f2b441;--ink:#111827;--muted:#6b7280;--line:#e5e7eb;--bg:#f5f6f8;--card:#fff;--green:#15803d;--red:#b91c1c;--amber:#b45309;--blue:#1d4ed8}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,Inter,Helvetica,Arial,sans-serif}a{color:var(--navy)}button{font:inherit}.shell{min-height:100%;display:flex;flex-direction:column}.top{display:flex;align-items:center;gap:18px;padding:0 22px;height:54px;background:var(--navy);color:#fff;position:sticky;top:0;z-index:5}.top .brand{color:#fff;text-decoration:none;font-weight:700;font-size:15px;display:flex;align-items:center;gap:8px}.mark{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--gold);color:var(--navy);font-weight:900}.top nav{display:flex;gap:4px}.top nav a{color:#cbd5e1;text-decoration:none;padding:6px 10px;border-radius:7px}.top nav a.active,.top nav a:hover{background:#ffffff1f;color:#fff}.top .muted{color:#94a3b8}.spacer{flex:1}.main{flex:1;width:100%;max-width:1180px;margin:0 auto;padding:26px 22px 60px}.center{display:grid;place-items:center;height:60vh}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}h1{font-size:24px;margin:0 0 4px;letter-spacing:-.01em}h2{font-size:16px;margin:0 0 12px}h3{font-size:14px;margin:0 0 8px}.page-head{display:flex;align-items:flex-start;gap:16px;margin-bottom:18px;flex-wrap:wrap}.page-head .sub{color:var(--muted);margin:0}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.btn{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #d1d5db;color:var(--ink);padding:8px 14px;border-radius:8px;cursor:pointer;text-decoration:none;font-weight:500}.btn:hover{background:#f9fafb}.btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}.btn.primary:hover{background:#163a63}.btn.danger{color:var(--red);border-color:#fecaca}.btn.ghost{background:transparent;border-color:transparent;color:inherit}.top .btn.ghost{color:#cbd5e1}.btn.small{padding:5px 10px;font-size:12px}.btn:disabled{opacity:.5;cursor:default}.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-bottom:16px}.grid{display:grid;gap:16px}.grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))}.grid.cols-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:16px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px}.stat .n{font-size:24px;font-weight:700;line-height:1.1}.stat .l{font-size:12px;color:var(--muted)}.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow-x:auto}.tabs a{padding:10px 14px;text-decoration:none;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}.tabs a.active{color:var(--navy);border-color:var(--navy);font-weight:600}.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:8px 10px;border-bottom:1px solid var(--line)}.table td{padding:9px 10px;border-bottom:1px solid #f1f5f9;vertical-align:top}.table tr:hover td{background:#fafbfc}.table-wrap{overflow-x:auto}.badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;background:#eef2f7;color:#334155}.badge.accepted{background:#dcfce7;color:var(--green)}.badge.declined{background:#fee2e2;color:var(--red)}.badge.maybe{background:#fef3c7;color:var(--amber)}.badge.waitlisted{background:#e0e7ff;color:#3730a3}.badge.pending{background:#f1f5f9;color:#475569}.badge.open{background:#dcfce7;color:var(--green)}.badge.draft{background:#f1f5f9}.badge.closed,.badge.cancelled{background:#fee2e2;color:var(--red)}.pill{padding:3px 9px;border-radius:999px;font-size:12px;font-weight:600}.pill.warn{background:#fde68a;color:#78350f}.field{display:flex;flex-direction:column;gap:5px}.field .lbl{font-weight:600;font-size:13px}.field small{color:var(--muted);font-weight:400}.field.wide{grid-column:1/-1}input[type=text],input[type=email],input[type=url],input[type=number],input[type=datetime-local],input[type=tel],select,textarea{width:100%;padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;font:inherit;background:#fff}input:focus,select:focus,textarea:focus{outline:2px solid #93c5fd;outline-offset:1px}textarea{min-height:90px;resize:vertical}.form{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.check{display:flex;align-items:center;gap:8px;font-weight:500}.check input{width:16px;height:16px}.alert{padding:10px 14px;border-radius:9px;margin-bottom:14px}.alert.err{background:#fef2f2;color:var(--red);border:1px solid #fecaca}.alert.ok{background:#f0fdf4;color:var(--green);border:1px solid #bbf7d0}.alert.info{background:#eff6ff;color:#1e3a8a;border:1px solid #bfdbfe}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.toolbar input[type=text]{width:260px}.toolbar select{width:auto}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:grid;place-items:center;z-index:20;padding:16px}.modal{background:#fff;border-radius:14px;width:100%;max-width:640px;max-height:90vh;overflow:auto;box-shadow:0 20px 60px #00000040}.modal header{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid var(--line);font-weight:600}.modal .body{padding:18px 20px}.modal .foot{padding:12px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.icon-btn{border:0;background:transparent;font-size:20px;cursor:pointer;color:var(--muted)}.login{min-height:100%;display:grid;place-items:center;padding:24px}.login .card{width:100%;max-width:400px;padding:28px}.ev-row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #f1f5f9}.ev-row:last-child{border:0}.ev-row .t{font-weight:600;font-size:15px}.ev-row .m{color:var(--muted);font-size:13px}.bar{height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden;display:flex}.bar span{display:block;height:100%}.qlist{display:grid;gap:8px}.qrow{display:grid;grid-template-columns:1fr 130px 1fr auto auto;gap:8px;align-items:center}@media (max-width:700px){.qrow{grid-template-columns:1fr 1fr}}.linkbox{display:flex;gap:8px;align-items:center}.linkbox input{flex:1;font-family:ui-monospace,Menlo,monospace;font-size:12px}.preview{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f3f4f6}.preview iframe{width:100%;height:560px;border:0;background:#fff}.scan{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media (max-width:800px){.scan{grid-template-columns:1fr}}video.cam{width:100%;border-radius:10px;background:#000;aspect-ratio:4/3}.big{font-size:32px;font-weight:800}.ok-flash{background:#dcfce7;border:2px solid #86efac;border-radius:12px;padding:20px;text-align:center}.dup-flash{background:#fef3c7;border:2px solid #fcd34d;border-radius:12px;padding:20px;text-align:center}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{background:#f1f5f9;border-radius:999px;padding:2px 8px;font-size:12px}details summary{cursor:pointer;color:var(--muted)}.studio-grid{display:grid;grid-template-columns:minmax(340px,440px) minmax(0,1fr);gap:16px;align-items:start}@media (max-width:1000px){.studio-grid{grid-template-columns:1fr}}.chat{display:flex;flex-direction:column;min-height:640px;max-height:calc(100vh - 300px);padding:14px 16px}.chat-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.chat-head h2{margin:0;font-size:16px}.chat-log{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:6px 2px}.chat-empty{color:var(--muted);font-size:13px}.chat-empty p{margin-top:0}.bubble{max-width:92%;padding:10px 12px;border-radius:12px;font-size:13.5px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.bubble.user{align-self:flex-end;background:var(--navy);color:#fff;border-bottom-right-radius:4px}.bubble.assistant{align-self:flex-start;background:#f1f5f9;border-bottom-left-radius:4px}.bubble.working{display:flex;align-items:center;gap:4px}.bubble .dot{width:6px;height:6px;border-radius:50%;background:#94a3b8;animation:blink 1.2s infinite}.bubble .dot:nth-child(2){animation-delay:.2s}.bubble .dot:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.bubble .acts{margin-top:8px}.chip.act{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);max-width:100%;white-space:normal}.chip.act.bad{border-color:#fecaca;color:var(--red)}.chip.act img{width:28px;height:20px;object-fit:cover;border-radius:4px}.chip.act.save_design{border-color:#bbf7d0;background:#f0fdf4}.chip.act.save_design.bad{background:#fef2f2}.linkish{border:0;background:none;padding:0;color:inherit;font:inherit;cursor:pointer;text-decoration:underline}.btn-chip{border:1px solid var(--line);background:#fff;cursor:pointer;color:var(--ink)}.btn-chip:hover{background:#f9fafb}.btn-chip:disabled{opacity:.5;cursor:default}.chips.quick{margin:8px 0 6px}.chat-input{display:flex;gap:8px;margin-top:8px;align-items:flex-end}.chat-input textarea{flex:1;resize:vertical;padding:9px 11px;border:1px solid #d1d5db;border-radius:9px;font:inherit;min-height:44px}.preview-pane .toolbar{margin-bottom:10px;flex-wrap:wrap}.preview-pane select{max-width:360px;padding:7px 9px;border:1px solid #d1d5db;border-radius:8px;font:inherit;background:#fff}.preview iframe{height:calc(100vh - 320px);min-height:560px}.preview.mobile{display:flex;justify-content:center;padding:18px}.preview.mobile iframe{width:390px;border:10px solid #111827;border-radius:28px;background:#fff}.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin-top:8px}.asset-grid img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;border:1px solid var(--line)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.color-row{display:flex;gap:8px;align-items:center}.color-row input[type=color]{width:38px;height:34px;padding:0;border:1px solid #d1d5db;border-radius:8px;background:#fff}.color-row input[type=text]{flex:1}.logo-row{display:flex;gap:10px;align-items:center}.logo-row img{height:34px;max-width:140px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:6px;padding:3px}.logo-row input{flex:1}.swatches{display:flex;gap:6px;margin-top:12px}.swatches span{width:34px;height:22px;border-radius:6px;border:1px solid rgba(0,0,0,.1)}.cover-row{display:flex;gap:12px;align-items:center;padding:8px 0 10px;border-bottom:1px solid var(--line);margin-bottom:6px}.cover-row img{width:96px;height:60px;object-fit:cover;border-radius:8px;border:1px solid var(--line);display:block}.cover-empty{width:96px;height:60px;border:1px dashed #cbd5e1;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;text-align:center}.cover-meta{flex:1;font-size:13px;min-width:0}.cover-actions{display:flex;gap:6px;margin-top:6px}.cover-actions label.btn{cursor:pointer}
