/* Site look (Prototype 1 "Fresh Teal", chosen by the client 2026-11-07). Loaded after styles.css.
   ONE colour knob: --pr (buttons, links, rail highlight, cards) and --brand follow it. When the new logo arrives,
   change --pr here and swap src/assets/logo.png; nothing else needs editing. Old look: index_old.html + src/styles_old.css. */
:root{--pr:#0b7f8e;--brand:var(--pr);--ac:#f07b2c;--st:#eaf3f4;--bd:#d6e5e7;--pn:#f7fbfb;--rl:#eef8f9;--rtx:#2f5d63;--ron:#fff;--ph:#e3f1f2;--dot:#c9dfe2;--tc:#e6f6f3;--ac2:#fff4ea}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--st:#1a2526;--bd:#2a3a3c;--pn:#172022;--rl:#162224;--rtx:#a9c8cc;--ron:#22343a;--ph:#1f3033;--dot:#26393b;--tc:#173331;--ac2:#33261b}}
:root[data-theme="dark"]{--st:#1a2526;--bd:#2a3a3c;--pn:#172022;--rl:#162224;--rtx:#a9c8cc;--ron:#22343a;--ph:#1f3033;--dot:#26393b;--tc:#173331;--ac2:#33261b}

.top{border-bottom:2px solid color-mix(in srgb,var(--pr) 35%,var(--bd))}
.btn{border-radius:8px}

/* left rail: light teal, active item = white card with a teal bar */
.rail{background:var(--rl);border-right:1px solid var(--bd);padding:6px 0;gap:2px}
.rail button{color:var(--rtx);--cut:var(--rl);margin:0 6px;border-radius:10px}
.rail button:hover{background:color-mix(in srgb,var(--pr) 9%,var(--rl))}
.rail button.on{background:var(--ron);color:var(--pr);--cut:var(--ron);box-shadow:inset 3px 0 var(--pr),0 2px 8px color-mix(in srgb,var(--pr) 13%,transparent);font-weight:600}
.new{background:var(--ac);color:#fff}

/* panel headers and links */
.ph,.pkhd{background:var(--ph);color:var(--tx)}.ph button,.pkhd button{color:var(--tx)}
.upn a{color:var(--pr)}.upz .bb{background:var(--pr)}

/* stage: pale teal with a faint dot grid; Undo column the same colour */
.stage{background:var(--st) radial-gradient(var(--dot) 1px,transparent 1.4px) 0 0/18px 18px}
.undoc{background:var(--st)}
.views{background:var(--pn)}.views button{border-radius:10px}.views .zoomgrp{border-radius:10px}

/* start panel: Templates card above the grid, AI card below */
.stp{padding:4px 0}.stp h2{margin-bottom:16px}
.sg{gap:12px}.sg button{background:var(--bg);border:1px solid var(--bd);border-radius:12px;padding:14px 6px;box-shadow:0 2px 8px color-mix(in srgb,var(--pr) 8%,transparent);transition:box-shadow .15s,border-color .15s}
.sg button:hover{border-color:var(--pr);box-shadow:0 4px 14px color-mix(in srgb,var(--pr) 16%,transparent)}.sg svg{height:54px}
.stc{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border-radius:12px;padding:14px 16px;margin:0 0 14px;border:1.5px solid;cursor:pointer;color:var(--tx);font-size:13px}
.stc.tpl{background:var(--tc);border-color:color-mix(in srgb,var(--pr) 45%,transparent)}
.stc.ai{background:var(--ac2);border-color:color-mix(in srgb,var(--ac) 45%,transparent);margin:14px 0 0}
.stc:hover{box-shadow:0 4px 14px #0002}
.stc i{flex:none;width:48px;height:48px;border-radius:12px;display:grid;place-items:center;color:#fff}.stc i svg{width:26px;height:26px}
.stc.tpl i{background:var(--pr)}.stc.ai i{background:var(--ac)}
.stc b{display:block;font-size:15px;margin-bottom:2px}.stc span{color:var(--mu)}.stc b{color:var(--tx)}
.stc em{font-style:normal;font-size:10px;font-weight:700;color:#fff;border-radius:6px;padding:1px 6px;margin-left:4px;vertical-align:2px}
.stc.tpl em{background:var(--pr)}.stc.ai em{background:var(--ac)}
/* the whole start panel fits on load on short laptop windows (1536 x 730 = 1920 px at 125 % with a bookmarks bar): smaller gaps only */
.stp h2{margin-bottom:10px}.stp .sn{margin-top:12px}.stc.tpl{margin-bottom:10px}.stc.ai{margin-top:10px}

@media(max-width:760px),(orientation:portrait) and (max-width:1100px),(max-height:520px) and (max-width:1100px){
.rail{padding:0;gap:0;border-right:0;border-top:1px solid var(--bd)}.rail button{margin:4px 1px;flex:1 1 0;min-width:48px;padding:7px 0 6px}.rail button.on{box-shadow:inset 0 3px var(--pr),0 2px 8px color-mix(in srgb,var(--pr) 13%,transparent)}}
/* phones: all 7 rail buttons share the width (no half-hidden Templates); smaller label below 400 px */
@media(max-width:400px){.rail button{font-size:10px;letter-spacing:-.2px}}

/* start-panel icons are drawn in #2237d8 by main.js (SVG attributes can't use variables): follow --pr */
.stp [stroke="#2237d8"]{stroke:var(--pr)}.stp [fill="#2237d8"]{fill:var(--pr)}

/* Custom Ink colour roles (client 2026-11-14; measured live on Custom Ink's Design Lab): where Custom Ink uses its logo
   orange we use OUR logo orange (--logo, sampled from the client's wordmark), where it uses near-black we use --ink.
   Main buttons (.btn.p: Add to Cart, Checkout, account-menu Dashboard …) and everything else keep the teal above
   (user 2026-11-14: black buttons with orange letters did not look good). Shapes unchanged. */
:root{--logo:#FB4600;--ink:#1E2126}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--ink:var(--tx)}}
:root[data-theme="dark"]{--ink:var(--tx)}
/* header: phone number + Chat Now in the logo colour, headset icon black (WhatsApp mark stays green) */
.contact a{color:var(--logo);font-weight:800}
.contact svg:not(.wa){color:var(--ink)}
/* Owner / Admin / Team Dashboard: logo-colour label in a black box */
.admlnk{color:var(--logo);border-color:var(--ink)}
.cart-count{background:var(--logo);color:#fff}
/* text links (My Designs Delete, cart Edit · Remove, Back to cart, Size chart …): teal, bold, underlined (user 2026-11-14);
   the bottom bar's Change Product Color / Change Product stay black like Custom Ink's */
.lnk{color:var(--pr);font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px}
.bar .lnk{color:var(--ink)}
.lnk:hover{color:color-mix(in srgb,var(--pr) 75%,#000)}.bar .lnk:hover{color:color-mix(in srgb,var(--ink) 70%,var(--bg))}
/* footer contacts: phone + Write to us */
.ftr .ftr-ct a{color:var(--logo)}
/* bottom bar: Save | Share and + Add Products in black (shape unchanged) */
.bar .btn:not(.p){color:var(--ink);border-color:var(--ink);font-weight:700}
/* Help pop-up: phone number + WhatsApp in the logo colour, like the header contacts (user, 14 Nov) */
.hcl{color:var(--logo)!important;font-weight:800}

/* Short laptop screens (client 2026-11-16: 1280 x 663 at 100 % zoom): the editor row never grows past the editor height
   (the 8-button rail used to push the whole editor 57 px under the bottom bar, hiding the AI prompt + panel bottoms);
   the rail tightens on short screens and scrolls as a last resort. Desktop layout only (phones keep their own rail). */
.studio{grid-template-rows:minmax(0,1fr)}
@media (min-width:1101px),(min-width:761px) and (orientation:landscape) and (min-height:521px){.rail{overflow-y:auto;scrollbar-width:none}}
@media (min-width:1101px) and (max-height:719px),(min-width:761px) and (orientation:landscape) and (min-height:521px) and (max-height:719px){.rail{padding:3px 0}.rail button{padding:7px 2px}.rail i{width:24px;height:24px;margin-bottom:3px}.new{margin-bottom:2px}}
@media (min-width:1101px),(min-width:761px) and (orientation:landscape) and (min-height:521px){.studio{min-height:440px;height:calc(100vh - var(--toph,62px) - 60px);height:calc(100dvh - var(--toph,62px) - 60px - env(safe-area-inset-top,0px))}}
