/* TEEVAULT creative workspace. Page-scoped theme; shared stores remain unchanged. */
.tv-mini { --mini-ink:#282642; --mini-muted:#68677b; --mini-line:#ddddea; --mini-accent:#5540cb; --mini-panel:#fff; color-scheme:light; color:var(--mini-ink); background-color:#f7f6fb; background-image:radial-gradient(#a8a1cf30 .7px,transparent .7px); background-size:18px 18px; padding-top:26px; }
.tv-mini a { color:#5540cb; }
.tv-mini-heading { position:relative; isolation:isolate; padding:10px 0 24px; border:0; border-radius:0; margin-bottom:0; }
.tv-mini-heading::before { content:''; position:absolute; z-index:-1; pointer-events:none; width:44%; height:100%; right:5%; top:0; border-radius:50%; background:radial-gradient(ellipse at var(--studio-light-x,65%) var(--studio-light-y,45%),#ffc9a666,transparent 70%); }
.tv-mini-heading>div>span { color:#78607f; font-size:9px; letter-spacing:.18em; margin-top:18px; }
.tv-mini-heading h1 { font-family:inherit; font-size:clamp(32px,3.4vw,48px); font-weight:750; letter-spacing:-2px; line-height:1.08; margin:10px 0 12px; }
.tv-mini-heading h1 em { font-family:inherit; font-weight:750; font-style:normal; color:#6550d8; }
.tv-mini-heading p { font-size:12px; margin-bottom:0; }
.tv-mini-heading p strong { color:#46318f; }
.tv-mini-wallet { position:relative; background:#ffdf89; border:0; border-radius:6px 22px 6px 22px; padding:21px 24px; box-shadow:5px 5px 0 #edb5ad; transform:rotate(2deg); }
.tv-mini-wallet::before { content:'YOUR CREATIVE FUEL'; display:block; font-size:8px; font-weight:700; letter-spacing:.12em; margin-bottom:7px; }
.tv-mini-wallet b { color:#423061; font-size:21px; }
.tv-mini-wallet small { color:#665044; font-size:10px; }
.tv-mini-wallet a { color:#493477; }
.tv-mini-status { display:flex; align-items:center; gap:8px; background:#eeebfc; color:#5c5480; border:0; border-left:3px solid #a997e8; border-radius:0 8px 8px 0; font-size:11px; padding:10px 13px; margin:0 0 20px; }
.tv-mini-status[data-kind="error"] { color:#962f47; background:#ffebee; border-color:#d65970; }
.tv-mini-status[data-kind="success"] { color:#276951; background:#e5f7ed; border-color:#49a67e; }
.tv-mini-layout { grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); gap:22px; }
.tv-mini-tools { position:relative; padding:25px; background:#fff; border:1px solid #ded8ef; border-radius:22px; box-shadow:0 10px 30px #44317a09; overflow:hidden; }
.tv-mini-creative-heading { position:relative; margin:-25px -25px 0; padding:23px 25px 18px; background:#ffe3d8; border-bottom:1px solid #f4cabb; }
.tv-mini-creative-heading::after { content:'+'; margin-left:auto; color:#cb856c; font-size:43px; font-weight:300; transform:rotate(15deg); }
.tv-mini-ai-mark { color:#fff; background:#a34e67; border:0; border-radius:14px; box-shadow:4px 4px 0 #efb2a4; transition:transform .25s; }
.tv-mini-creative-heading:hover .tv-mini-ai-mark { transform:rotate(-9deg) scale(1.06); }
.tv-mini-creative-heading>div>span { color:#965a4d; font-size:8px; }
.tv-mini-creative-heading h2 { color:#633d43; font-size:clamp(19px,1.8vw,24px); }
.tv-mini-creative-intro { color:#797183; margin:14px 0 20px; font-size:12px; }
.tv-mini-tools .tv-mini-tabs { background:#f0edf8; border:0; padding:5px; border-radius:12px; }
.tv-mini-tools .tv-mini-tabs button { color:#706586; transition:background .2s,color .2s; }
.tv-mini-tools .tv-mini-tabs [aria-pressed="true"] { color:#fff; background:#6650cf; box-shadow:0 3px 8px #6550cf26; }
.tv-mini-tools .tv-mini-tabs button>span { color:#ffdf89; }
.tv-mini-prompt-card { background:#fffefa; border:1px solid #dcd6e8; border-radius:14px; box-shadow:none; }
.tv-mini-prompt-card:focus-within { border-color:#8663dc; box-shadow:0 0 0 4px #ece5ff; }
.tv-mini-idea-label { color:#4f426d; padding-top:16px; font-size:12px; }
.tv-mini-tools [data-mini-prompt] { color:#353047; background:transparent; caret-color:#6b42c7; min-height:112px; font-size:14px; }
.tv-mini-tools [data-mini-prompt]::placeholder { color:#797182; }
.tv-mini-style-note { color:#777082; font-size:10px; margin:10px 2px 16px; }
.tv-mini-ideas { margin:14px 0 6px; }
.tv-mini-ideas>span { color:#888092; font-size:10px; }
.tv-mini-ideas>div { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.tv-mini-ideas button { border:1px solid transparent; border-radius:20px; padding:8px 11px; color:#45558a; background:#e7edff; font:inherit; font-size:11px; cursor:pointer; transition:transform .18s,box-shadow .18s; }
.tv-mini-ideas button[data-tone="coral"] { color:#994736; background:#ffe3d9; }
.tv-mini-ideas button[data-tone="violet"] { color:#694794; background:#eee1fc; }
.tv-mini-ideas button:hover:not(:disabled) { transform:translateY(-3px); box-shadow:0 4px 0 #51436b15; border-color:currentColor; }
.tv-mini-tools .tv-mini-creative-extras { background:#f6f5fa; border:1px solid #e9e5ef; border-radius:11px; }
.tv-mini-creative-extras summary,.tv-mini-creative-extras summary::before { color:#6b5c80; }
.tv-mini-creative-extras .tv-mini-extras-hint { color:#8b8197; }
.tv-mini-extras-body { border-top-color:#e8e3ee; }
.tv-mini textarea,.tv-mini select,.tv-mini-sizes input,.tv-mini-tools .tv-mini-extras-body select { color:#393348; background-color:#fff; border-color:#dcd7e5; }
.tv-mini-tools [data-mini-prompt] { background:transparent; }
.tv-mini-primary { color:#fff; background:#6350cb; border-radius:12px; transition:transform .18s,box-shadow .18s; }
.tv-mini-primary:hover:not(:disabled) { background:#5540ba; box-shadow:0 5px 16px #6350cb26; transform:translateY(-1px); }
.tv-mini-tools .tv-mini-create { color:#fff; background:linear-gradient(100deg,#6650d4,#8450cf); min-height:53px; box-shadow:0 5px 0 #ddd0f6; border-radius:12px; font-size:14px; }
.tv-mini-tools .tv-mini-create:hover:not(:disabled) { background:linear-gradient(100deg,#5740c5,#8750d3); filter:none; box-shadow:0 6px 0 #d3c1f1,0 10px 25px #8960db24; transform:translateY(-2px); }
.tv-mini[aria-busy="true"] .tv-mini-tools { border-color:#a186db; }
.tv-mini[aria-busy="true"] .tv-mini-create::before { border-color:#ffffff66; border-top-color:#fff; }
.tv-mini-tools .tv-mini-credit-note { color:#898093; margin-top:14px; }
.tv-mini input[type="file"]::file-selector-button { background:#e9defa; color:#583c83; }
.tv-mini-tools .tv-mini-upload { background:#f5efff; border-color:#b7a0d9; color:#5a417d; }
.tv-mini-tools .tv-mini-upload>svg { color:#8a60c5; }
.tv-mini-tools .tv-mini-upload>span { color:#7b6c8c; }
.tv-mini-tools .tv-mini-library { border-top-color:#e6deef; }
.tv-mini-tools .tv-mini-library h3 { color:#746080; }
.tv-mini-tools [data-mini-gallery] button { background:#f3eff8; border-color:#e4dbef; }
.tv-mini-tools [data-mini-gallery] button:hover,.tv-mini-tools [data-mini-gallery] button[aria-pressed="true"] { border-color:#9c76d3; box-shadow:0 0 0 2px #e9dafb; }
.tv-mini-preview { background:radial-gradient(ellipse at 50% 47%,#f8fcf2 0,#dcefee 49%,#b7dbe5 100%); border:1px solid #bad9dd; border-radius:22px; box-shadow:inset 0 1px 0 #fff; padding-top:20px; }
.tv-mini-preview::before { content:''; position:absolute; pointer-events:none; z-index:-1; width:80%; aspect-ratio:1; border:1px solid #ffffff99; border-radius:50%; top:16%; left:10%; box-shadow:0 0 0 35px #ffffff22,0 0 0 70px #ffffff12; }
.tv-mini-preview [data-mini-shirt] { filter:drop-shadow(0 15px 12px #5845782b); }
.tv-mini-product-tag,.tv-mini-preview-note,.tv-mini-preview>small { color:#554269; text-shadow:none; background:#fcfaffc9; padding:5px 9px; border-radius:20px; }
.tv-mini-product-tag { font-size:8px; letter-spacing:.12em; }
.tv-mini-preview-note { font-weight:600; font-size:11px; }
.tv-mini-preview>small { background:transparent; color:#78688a; font-size:8px; }
.tv-mini-adjust { background:#fffdf8ed; border-color:#d5c7e7; box-shadow:0 7px 20px #7350991a; backdrop-filter:blur(10px); }
.tv-mini-adjust button { color:#6b548a; }
.tv-mini-adjust button:hover:not(:disabled),.tv-mini-adjust .tv-mini-preview-toggle[aria-pressed="true"] { color:#563092; background:#eaddfa; }
.tv-mini-adjust button:active:not(:disabled) { background:#d5c0f3; }
.tv-mini-boundary { border-color:#8362acb3; }
.tv-mini-boundary::before { color:#654287; text-shadow:none; background:#fff9; padding:1px 3px; border-radius:3px; }
.tv-mini-boundary::after { border-left-color:#8362ac55; }
.tv-mini-boundary.is-centered::after { border-left-color:#268166; box-shadow:0 0 4px #67c5a533; }
.tv-mini-boundary.is-centered::before { color:#21664d; }
.tv-mini-corner::after { border-color:#6a43a5; background:#f3e7ff; box-shadow:0 0 0 1px #fff; }
.tv-mini-print.is-selected::after { color:#fff; background:#7950b6; }
.tv-mini-measure { color:#fff; background:#64458eeb; border-color:#9973bf; box-shadow:0 3px 10px #70528922; }
.tv-mini-product-options { background:#fff; border-color:#ded8eb; box-shadow:0 8px 28px #44317a08; border-radius:20px; }
.tv-mini-section-title>span { display:grid; place-items:center; color:#875d20; background:#ffedbd; width:27px; height:27px; border-radius:9px; }
.tv-mini-section-title>b { color:#5c469a; background:#eee6fb; border-radius:20px; padding:7px 10px; }
.tv-mini-locations label { background:#f8f6fc; transition:background .18s,border-color .18s; }
.tv-mini-locations label:hover { background:#ece4fa; }
.tv-mini-locations label:has(input:checked) { background:#e9e0fb; border-color:#a78bda; }
.tv-mini-sizes input:focus { border-color:#a68bd7; background:#f9f5ff; }
/* Generation keeps its original dark blue neural presentation. */
.tv-mini-generation { color:#eef3ff; color-scheme:dark; background:#0c152b; border-color:#30456c; box-shadow:0 28px 100px #020612aa; }
.tv-mini-generation::backdrop { background:#030918cc; backdrop-filter:blur(9px); }
.tv-mini-generation header>span { color:#a5bfff; }
.tv-mini-generation header button { color:#dae6ff; background:#14223d; border-color:#354c73; }
.tv-mini-generation-stage { background:radial-gradient(ellipse at 25% 30%,#4518882b,transparent 65%),radial-gradient(ellipse at 85% 70%,#0073a32b,transparent 65%),#050919; }
.tv-mini-generation-stage canvas { filter:none; mix-blend-mode:normal; }
.tv-mini-generation-stage.has-result { background-color:#121d34; background-image:repeating-conic-gradient(#14223b 0% 25%,#1d2d49 0% 50%); }
.tv-mini-generation p { color:#b6c7e5; }
.tv-mini-generation-actions button { color:#071428; background:#a8c7ff; border-color:#a8c7ff; }
.tv-mini-generation-actions [data-mini-generation-cancel] { color:#cad9f3; background:#14223d; border-color:#354c73; }
.tv-mini-generation button:focus-visible { outline-color:#9ebdff; }
body:has([data-tv-mini]) .cart-bubble { color:#534064; background:#fffafded; border:1px solid #dbc9eb; box-shadow:0 8px 35px #75529826; }
body:has([data-tv-mini]) .cart-bubble-icon { background:#8155c3; color:#fff; }
body:has([data-tv-mini]) .cart-bubble small { color:#806e8e; }
body:has([data-tv-mini]) .cart-bubble>b { border-left-color:#dfcfeb; }
@media(min-width:1000px) { .tv-mini-viewport { width:min(100%,390px); }.tv-mini-preview { min-height:610px; }.tv-mini-preview-note { margin-top:auto; } }
@media(max-width:760px) { .tv-mini-heading { gap:20px; padding-bottom:25px; }.tv-mini-heading h1 { font-size:36px; letter-spacing:-1.6px; }.tv-mini-wallet { align-self:flex-start; padding:12px 17px; transform:rotate(-1deg); width:auto; display:block; }.tv-mini-wallet b { font-size:17px; }.tv-mini-wallet::before { font-size:7px; }.tv-mini-wallet small { margin-top:4px; }.tv-mini-layout { grid-template-columns:1fr; }.tv-mini-tools { padding:21px 18px; }.tv-mini-creative-heading { margin:-21px -18px 0; padding:21px 18px 17px; }.tv-mini-creative-heading::after { font-size:30px; }.tv-mini-creative-heading h2 { font-size:20px; }.tv-mini-ideas button { padding:8px 9px; font-size:10px; } }
@media(prefers-reduced-motion:reduce) { .tv-mini-ideas button,.tv-mini-primary,.tv-mini-ai-mark,.tv-mini-locations label { transition:none; }.tv-mini-ideas button:hover:not(:disabled),.tv-mini-primary:hover:not(:disabled),.tv-mini-creative-heading:hover .tv-mini-ai-mark { transform:none; } }

/* Compact creation surface: one brief, one style row and four ink choices. */
.tv-mini-creative-heading { padding-block:17px; }
.tv-mini-creative-heading h2 { font-size:22px; }
.tv-mini-ai-mark { width:38px; height:38px; border-radius:12px; }
.tv-mini-ai-mark svg { width:25px; height:25px; }
.tv-mini-tools .tv-mini-tabs { margin-top:18px; margin-bottom:14px; }
.tv-mini-tools .tv-mini-tabs button { padding-block:9px; }
.tv-mini-tools [data-mini-prompt] { min-height:103px; padding-bottom:12px; }
.tv-mini-style-note { display:none; }
.tv-mini-custom-ink { display:flex; align-items:center; gap:8px; margin-top:9px; color:#776a87; font-size:10px; }
.tv-mini-custom-ink input { width:30px; height:27px; padding:2px; border:1px solid #d4c6e9; border-radius:6px; background:#fff; cursor:pointer; }
.tv-mini-custom-ink output { font:600 11px monospace; color:#5b407e; }
.tv-mini .tv-mini-custom-ink{gap:6px;min-width:0;max-width:100%}
.tv-mini-ink-colors{display:flex;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:thin}
.tv-mini-ink-chip{display:flex;align-items:center;gap:4px;flex-shrink:0;padding:3px;border:1px solid #e2d7f1;border-radius:8px;background:#faf7ff}
.tv-mini .tv-mini-ink-chip input{width:27px;height:25px;flex:0 0 27px}
.tv-mini .tv-mini-custom-ink button{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;padding:3px;border:1px solid #dfd2ef;border-radius:7px;background:#faf7ff;color:#64468c;cursor:pointer}
.tv-mini .tv-mini-ink-chip button{width:19px;height:23px;flex-basis:19px;border:0;background:transparent}
.tv-mini-ink-chip .studio-icon{width:12px;height:12px}
.tv-mini-ink-colors:has(.tv-mini-ink-chip:nth-child(2)) output{display:none}
.tv-mini .tv-mini-custom-ink [data-mini-ink-count]{flex-shrink:0;font-family:inherit;font-size:10px;font-weight:500;line-height:1.3;color:#786687;white-space:nowrap}
.tv-mini-tools .tv-mini-creative-extras { background:transparent; border:0; margin:10px 0; }
.tv-mini-creative-extras summary { padding:10px 2px; }
.tv-mini-tools .tv-mini-create { min-height:48px; }
.tv-mini-tools .tv-mini-credit-note { margin-top:11px; font-size:9px; }

.tv-mini-gallery-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.tv-mini-tools .tv-mini-gallery-heading h3 { margin:0; font-size:13px; }
.tv-mini-gallery-heading button { padding:5px 7px; border:0; border-radius:7px; color:#705496; background:#f1eafa; font:inherit; font-size:10px; cursor:pointer; }
.tv-mini-gallery-heading button:hover { background:#e6d9f6; }
.tv-mini-tools [data-mini-gallery] { grid-template-columns:repeat(3,minmax(0,1fr)); }

.tv-mini-composer-actions { display:flex; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#c7b5e8 transparent; align-items:center; gap:6px; padding:0 12px 10px; }
.tv-mini-composer-actions button { display:grid; place-items:center; width:34px; height:34px; padding:6px; border:1px solid #ded6ec; border-radius:50%; background:#f6f1fd; color:#6c548b; cursor:pointer; }
.tv-mini-composer-actions button:hover:not(:disabled) { background:#e9ddfa; border-color:#b59bd7; }
.tv-mini-tools .tv-mini-composer-actions select { width:100%; min-width:0; max-width:100%; padding:2px 15px 3px 0; color:#6a5486; border:0; border-radius:0; background-color:transparent; font-size:11px; cursor:pointer; }
.tv-mini-reference-tray { padding:0 12px 10px; }
.tv-mini-reference-tray [data-mini-references] { margin:0; gap:6px; }
.tv-mini-reference-tray .tv-mini-reference { padding:4px; background:#f5f1fa; border-color:#e4dced; max-width:100%; }
.tv-mini-reference-tray .tv-mini-reference img { width:40px; height:40px; border-radius:5px; }
.tv-mini-reference-tray .tv-mini-reference button { color:#8c668f; font-size:10px; padding:4px; }
.tv-mini-reference-tray .tv-mini-field { margin:8px 0 0; font-size:10px; }
.tv-mini-reference-tray select { padding:7px; font-size:11px; }
.tv-mini-tools .tv-mini-create { margin-top:14px; }
.tv-mini-composer-select { flex:1 0 125px; min-width:125px; padding:5px 8px; border-radius:11px; background:#f2edf9; }
.tv-mini-composer-select>span { display:block; color:#8a7b9c; font-size:9px; line-height:1.4; }
.tv-mini-prompt-card>.tv-mini-custom-ink { margin:0; padding:0 13px 10px; }
@media(max-width:760px) { .tv-mini-composer-actions { gap:4px; padding-inline:9px;  }.tv-mini-composer-actions button { width:30px; height:30px; }.tv-mini-composer-select { padding:5px; }.tv-mini-tools .tv-mini-composer-actions select { font-size:10px; padding-right:11px; } }
.tv-mini-tools .tv-mini-composer-actions select { appearance:none; -webkit-appearance:none; padding-right:10px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='m1 1 3 3 3-3' fill='none' stroke='%237b6797' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right center; }

/* Preview-owned garment controls, independent from artwork transform tools. */
.tv-mini-preview { padding-left:48px; }
.tv-mini-product-rail { position:absolute; z-index:6; top:50%; left:8px; transform:translateY(-50%); display:flex; flex-direction:column; gap:4px; padding:4px; border:1px solid #d5c7e7; border-radius:15px; background:#fffdf8ed; box-shadow:0 6px 20px #73509918; }
.tv-mini-product-rail>button { display:grid; place-items:center; width:34px; height:36px; padding:6px; border:0; border-radius:10px; background:transparent; color:#71568d; cursor:pointer; }
.tv-mini-product-rail>button:hover:not(:disabled),.tv-mini-product-rail>button[aria-expanded="true"] { background:#eee3fb; }
.tv-mini-color-dot { display:block; width:23px; height:23px; border:2px solid #fff; border-radius:50%; background:var(--swatch,#25282a); box-shadow:0 0 0 1px #aaa1b5; }
.tv-mini-product-popover { position:absolute; z-index:7; left:58px; top:50%; transform:translateY(-50%); width:min(245px,calc(100% - 112px)); padding:12px; border:1px solid #d7c9e6; border-radius:16px; background:#fffdfcf5; box-shadow:0 12px 38px #45305830; backdrop-filter:blur(12px); }
.tv-mini-product-popover>header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; color:#69527f; font-size:11px; }
.tv-mini-product-popover>header>button { border:0; background:#f2eaf9; color:#7b6190; border-radius:50%; width:25px; height:25px; font-size:18px; line-height:1; cursor:pointer; }
.tv-mini-color-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.tv-mini-color-choices>button { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:6px; padding:7px 2px; border:1px solid transparent; border-radius:10px; background:transparent; color:#6d6078; font:inherit; font-size:9px; line-height:1.3; cursor:pointer; }
.tv-mini-color-choices>button>i { width:29px; height:29px; border-radius:50%; background:var(--swatch); border:2px solid #fff; box-shadow:0 0 0 1px #c5bdcc; }
.tv-mini-color-choices>button:hover,.tv-mini-color-choices>button[aria-pressed="true"] { background:#f0e7fb; border-color:#baa3d6; }
.tv-mini-product-popover .tv-mini-placement-grid { margin:0; gap:7px; }
.tv-mini-product-popover .tv-mini-placement-grid legend { font-size:9px; color:#95869f; margin-bottom:8px; }
.tv-mini-product-popover .tv-mini-placement-grid label { position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; padding:9px 3px; font-size:9px; text-align:center; color:#716080; }
.tv-mini-placement-grid label>svg { display:block; width:29px; height:33px; }
.tv-mini-placement-grid input { position:absolute; opacity:0; width:1px; height:1px; }
.tv-mini-placement-grid label:has(input:focus-visible) { outline:2px solid #8764ba; outline-offset:2px; }
@media(max-width:480px) { .tv-mini-product-popover { left:53px; padding:9px; width:calc(100% - 106px); }.tv-mini-color-choices { gap:4px; }.tv-mini-color-choices>button { font-size:8px; }.tv-mini-product-popover>header { font-size:10px; } }

.tv-mini-composer-actions>button { flex:0 0 34px; }
.tv-mini-garment-select { flex-basis:165px; }
.tv-mini-composer-actions::-webkit-scrollbar { height:4px; }
.tv-mini-composer-actions::-webkit-scrollbar-thumb { background:#c7b5e8; border-radius:9px; }

.tv-mini-sizes label>small { display:block; font-size:10px; color:#70558c; font-weight:500; }
