/* DIY livery (livery-editor.mjs): the DIY swatch beside the presets, and the editor that opens over the product panel. */
.swatch.livery-diy{position:relative;display:inline-flex;align-items:center;gap:5px;width:auto;height:22px;padding:0 9px 0 3px;border-radius:999px;background:#f8f8ee;color:#1f4d4c;font-size:9px;letter-spacing:.8px;line-height:1}
.swatch.livery-diy>span{width:14px;height:14px;border-radius:50%;background:conic-gradient(#d6342b,#f2c230,#3d9a4c,#1d8f89,#2f6fd6,#7a4bc4,#e46aa8,#d6342b);flex:none}.swatch.livery-diy>b{font-weight:800}.swatch.livery-diy:hover{transform:none;background:#fffdf1}
.livery-editor{position:absolute;top:26px;bottom:55px;right:40px;width:398px;box-sizing:border-box;z-index:4;display:flex;flex-direction:column;gap:12px;padding:16px 18px 14px 22px;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;color:var(--ink);background:#f9f6eef7;-webkit-backdrop-filter:blur(14px) saturate(1.05);backdrop-filter:blur(14px) saturate(1.05);border:1px solid #ffffffb0;border-radius:14px;box-shadow:0 12px 32px #3d2c1626;scrollbar-width:thin;scrollbar-color:#c0d2c2 transparent}
.livery-editor[hidden],.livery-pane[hidden],.livery-decal[hidden]{display:none}
.livery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.livery-head .eyebrow{margin-bottom:4px;font-size:9px}.livery-head h2{margin:0;font-size:22px;line-height:1.15;font-weight:780;letter-spacing:-.3px}.livery-intro{margin:6px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
.livery-done{flex:none;padding:8px 16px;font-size:12px;font-weight:750;background:var(--yellow);border-color:#e6c64d;box-shadow:0 2px 0 #d3b54c}.livery-done:hover{background:#fce177;border-color:#ccab31}
.livery-tabs{display:flex;gap:4px;border-bottom:1px solid #527b4e30}.livery-tab{margin-bottom:-1px;padding:7px 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-size:12px;color:var(--muted)}.livery-tab:hover{background:none;color:var(--ink)}.livery-tab[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--teal)}
.livery-zones{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.livery-zone{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}
.livery-zone-pick{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:8px;background:#ffffff8c;font-size:12px;font-weight:650;text-align:left}.livery-zone-pick[aria-expanded="true"]{border-color:var(--teal);background:#fffef6}.livery-zone-pick small{margin-left:auto;font-size:9px;font-weight:650;letter-spacing:.4px;color:var(--muted)}
.livery-chip{flex:none;width:18px;height:18px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #16303b33}
.livery-zone-reset{width:30px;height:30px;padding:0;border-radius:50%;font-size:14px;line-height:1}.livery-zone-reset:disabled{opacity:.3;cursor:default}
.livery-palette{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:6px 10px 10px}.livery-paint{width:22px;height:22px;padding:0;border-radius:50%;border:3px solid #f3f6e9;outline:1px solid #aabda380}.livery-paint:hover{transform:scale(1.1)}.livery-paint[aria-pressed="true"]{outline:2px solid #1f615c}
.livery-any{display:inline-flex;align-items:center;gap:6px;margin-left:4px;font-size:10px;color:var(--muted);cursor:pointer}.livery-any input{width:30px;height:24px;padding:0;border:1px solid var(--line);border-radius:6px;background:none;cursor:pointer}
.livery-reset-all{align-self:flex-start;margin-top:10px}.livery-reset-all:disabled{opacity:.4;cursor:default}
.livery-thumbs{display:flex;flex-wrap:wrap;gap:8px}.livery-thumbs:empty{display:none}.livery-thumb{width:54px;height:40px;padding:2px;border-radius:7px;background:repeating-conic-gradient(#e7ebe1 0 25%,#fff 0 50%) 0 0/10px 10px}.livery-thumb[aria-pressed="true"]{border:2px solid var(--teal)}.livery-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.livery-upload{min-height:38px;margin-top:10px;padding:9px 16px;font-size:12px}.livery-file{display:none}.livery-hint{margin:6px 0 0;font-size:10px;line-height:1.5;color:var(--muted)}
.livery-decal{display:flex;flex-direction:column;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid #527b4e30}
.livery-row{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:650}.livery-row select{flex:1;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:#fffef7;font-size:12px;color:var(--ink)}
.livery-sides{display:flex;gap:4px}.livery-sides button{flex:1;padding:6px 0;border-radius:6px;font-size:11px}.livery-sides button[aria-pressed="true"]{background:#16303b;border-color:#16303b;color:#fffdf5}
.livery-place{display:block;width:100%;height:210px;box-sizing:border-box;border:1px solid #527b4e30;border-radius:9px;background:#eef1e6;touch-action:none;cursor:crosshair}.livery-place:focus-visible{outline:3px solid #e3b936;outline-offset:2px}
.livery-slider{display:grid;grid-template-columns:72px 1fr;align-items:center;gap:10px;font-size:11px;font-weight:650}.livery-slider input{width:100%;accent-color:var(--teal)}
.livery-remove{align-self:flex-start;color:#a33a2b}.livery-status{min-height:14px;margin:0;font-size:10px;line-height:1.5;color:var(--muted)}.livery-status:empty{display:none}.livery-status.livery-warning{color:#a33a2b;font-weight:650}
.livery-editor.livery-dropping{outline:3px dashed var(--teal);outline-offset:-7px}
body.livery-editing #hotspots{visibility:hidden}
body[data-screen="garage"].garage-night .livery-editor{background:#0f1f26e8;border-color:#ffffff1f;color:#e6f0ec}body[data-screen="garage"].garage-night .livery-intro,body[data-screen="garage"].garage-night .livery-hint,body[data-screen="garage"].garage-night .livery-zone-pick small,body[data-screen="garage"].garage-night .livery-tab{color:#b3cac4}body[data-screen="garage"].garage-night .livery-zone-pick,body[data-screen="garage"].garage-night .livery-sides button{background:#ffffff14;color:#e6f0ec;border-color:#ffffff24}body[data-screen="garage"].garage-night .livery-tab[aria-selected="true"]{color:#fff}
@media(min-width:1600px){.livery-editor{right:55px;width:430px}}
@media(max-height:800px) and (min-width:901px){.livery-editor{top:18px;bottom:40px}.livery-place{height:170px}}
@media(max-width:1200px) and (min-width:901px){.livery-editor{right:27px;width:345px}}
@media(max-width:900px){.livery-editor{position:relative;inset:auto;width:auto;order:1;margin:8px 0;overflow:visible}}
