/* The editor keeps a neutral, readable shell while its preview explores any palette. */
#theme-studio{--ts-ink:#183c43;--ts-muted:#63767b;--ts-line:#d5dfdd;--ts-paper:#fff;--ts-canvas:#f3f6f5;--ts-teal:#0d786c;--ts-mint:#dbf4e8;--ts-orange:#ff8154;box-sizing:border-box;color:var(--ts-ink);font:14px/1.5 Arial,sans-serif;max-width:1500px;margin:0 auto}
#theme-studio *,#theme-studio *:before,#theme-studio *:after{box-sizing:border-box}
#theme-studio [hidden]{display:none!important}
#theme-studio button,#theme-studio input{font-family:Arial,sans-serif}
#theme-studio button{cursor:pointer;letter-spacing:0;text-transform:none;box-shadow:none;transition:background .15s,border-color .15s}
#theme-studio button:disabled{cursor:default;opacity:.48}
#theme-studio :is(button,input,summary,[role=slider]):focus-visible{outline:3px solid #df6e35!important;outline-offset:3px}
#theme-studio :is(h2,h3,p){color:var(--ts-ink);margin-top:0}
#theme-studio .ts-header{position:static;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 0 22px;background:none;border:0;box-shadow:none;min-height:0}
#theme-studio .ts-eyebrow{font-size:9px;font-weight:800;letter-spacing:1.7px;color:#18846d}
#theme-studio .ts-header h2{font-size:clamp(27px,2.5vw,37px);font-weight:800;line-height:1.13;letter-spacing:-1.1px;margin:7px 0 9px}
#theme-studio .ts-header p{font-size:13px;color:var(--ts-muted);margin:0}
#theme-studio .ts-state{flex-shrink:0;padding:7px 12px;border:1px solid #bcd9c9;background:#e5f4ec;color:#2e6b50;border-radius:20px;font-size:11px;font-weight:700}
#theme-studio .ts-state[data-dirty=true]{background:#fff0dd;color:#92551e;border-color:#ecd2ac}
#theme-studio .ts-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding:16px 0;border-block:1px solid var(--ts-line)}
#theme-studio .ts-toolbar>div{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
#theme-studio .ts-button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:44px;padding:11px 15px;border:1px solid #bdcfca;border-radius:8px;background:#fff;color:var(--ts-ink);font-size:12px;font-weight:750;line-height:1.35}
#theme-studio .ts-button:hover:not(:disabled){background:#edf5f1;border-color:#6a9e8c}
#theme-studio .ts-button.ts-primary{background:var(--ts-teal);color:#fff;border-color:var(--ts-teal)}
#theme-studio .ts-button.ts-primary:hover:not(:disabled){background:#075f57}
#theme-studio .ts-link{min-height:44px;padding:8px 5px;background:none;border:0;border-radius:5px;color:#356c64;text-decoration:none;font-size:11px;font-weight:700;line-height:1.4}
#theme-studio .ts-link:hover:not(:disabled){text-decoration:underline}
#theme-studio .ts-notice{display:flex;align-items:center;gap:9px;font-size:11px;padding:11px 13px;margin:15px 0 20px;border:1px solid #d3e6dc;border-radius:8px;background:#eaf4ef;color:#41665d}
#theme-studio .ts-notice>span{color:#309977;font-size:15px}
#theme-studio .ts-layout{display:grid;grid-template-columns:minmax(270px,330px) minmax(0,1fr);gap:20px;align-items:start}
#theme-studio .ts-edit-fields{border:0;padding:0;margin:0;min-width:0;display:grid;gap:15px}
#theme-studio .ts-card{padding:19px;border:1px solid var(--ts-line);border-radius:12px;background:var(--ts-paper);box-shadow:0 4px 14px #173b3c05;min-width:0}
#theme-studio .ts-section-title{display:flex;align-items:center;gap:9px;margin-bottom:17px}
#theme-studio .ts-section-title>span{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;background:#edf3ef;color:#59776b;border-radius:7px;font-size:10px;font-weight:800}
#theme-studio .ts-section-title h3{font-size:14px;line-height:1.3;font-weight:800;margin:0;color:var(--ts-ink)}
#theme-studio .ts-palettes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#theme-studio .ts-palettes>button{min-width:0;padding:10px 5px;border:1px solid #dae2de;border-radius:8px;background:#f8faf8;color:#345349;text-align:center;min-height:64px}
#theme-studio .ts-palettes>button:hover{border-color:#459a7d;background:#eef8f2}
#theme-studio .ts-palettes b{display:block;font-size:9px;margin-top:6px;line-height:1.2}
#theme-studio .ts-palette-dots{display:flex;justify-content:center}
#theme-studio .ts-palette-dots i{display:block;flex:0 0 15px;width:15px;height:15px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 0 1px #203d3210;margin-left:-3px}
#theme-studio label.ts-name{display:grid;gap:6px;font-size:11px;font-weight:700;margin-top:17px;color:#506b63}
#theme-studio :is(.ts-name input,.ts-color-values input[type=text],.ts-color-values input:not([type]),.ts-rgb input){display:block;width:100%;min-height:43px;margin:0;padding:10px 11px;border:1px solid #c4d5cd;border-radius:7px;background:#fbfcfa;color:#24443c;font-size:13px;line-height:1.3}
#theme-studio .ts-segments{display:flex;gap:3px;padding:3px;border:1px solid #d4dfda;background:#f0f4f1;border-radius:8px}
#theme-studio .ts-segments button{display:flex;justify-content:center;align-items:center;flex:1;min-height:37px;padding:7px 8px;border:0;border-radius:5px;background:transparent;color:#5c7369;font-size:10px;font-weight:750;line-height:1.3}
#theme-studio .ts-segments button[aria-pressed=true]{background:#fff;color:#106b59;box-shadow:0 2px 5px #163e2d0d}
#theme-studio .ts-color-list{display:grid;gap:5px;margin-top:14px}
#theme-studio .ts-color-row{display:flex;gap:11px;align-items:center;padding:8px 9px;min-height:52px;border:1px solid transparent;border-radius:8px;background:transparent;color:#294b41;text-align:left;width:100%}
#theme-studio .ts-color-row:hover{background:#f1f6f2}
#theme-studio .ts-color-row[aria-pressed=true]{border-color:#83b6a3;background:#ebf6ef;box-shadow:inset 3px 0 #298064}
#theme-studio .ts-color-row b{display:block;font-size:11px;line-height:1.35}
#theme-studio .ts-color-row small{display:block;font-size:10px;line-height:1.4;color:#74877e;margin-top:3px;font-family:monospace}
#theme-studio .ts-swatch{display:block;flex:0 0 29px;width:29px;height:29px;border-radius:7px;background:var(--swatch);border:1px solid #223a2922;box-shadow:0 2px 4px #173b3c09}
#theme-studio .ts-selected{display:flex;gap:9px;align-items:center;margin:0 0 14px;font-size:11px;color:#4d6b5f}
#theme-studio .ts-selected>span{width:21px;height:21px;border:1px solid #234c3525;border-radius:5px}
#theme-studio .ts-color-pad{position:relative;width:100%;height:190px;border-radius:9px;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),var(--picker-hue,#00ffcc);border:1px solid #173b3c22;touch-action:none;cursor:crosshair;overflow:visible;isolation:isolate}
#theme-studio .ts-color-knob{position:absolute;width:17px;height:17px;border:2px solid white;box-shadow:0 0 0 1px #112e3599,0 2px 5px #0005;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;background:transparent}
#theme-studio .ts-hue-heading{display:flex;justify-content:space-between;margin:14px 0 7px;color:#63776e;font-size:10px}
#theme-studio .ts-hue-heading label{color:#496658;font-size:11px;font-weight:750}
#theme-studio input.ts-hue{-webkit-appearance:none;appearance:none;width:100%;height:17px;min-height:17px;padding:0;margin:0;border:0;border-radius:20px;background:linear-gradient(90deg,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000);cursor:pointer}
#theme-studio input.ts-hue::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:24px;background:transparent;border:3px solid #fff;border-radius:7px;box-shadow:0 0 0 1px #375c57,0 1px 4px #0004}
#theme-studio input.ts-hue::-moz-range-thumb{width:10px;height:20px;background:transparent;border:3px solid #fff;border-radius:7px;box-shadow:0 0 0 1px #375c57}
#theme-studio .ts-picker-hint{font-size:10px;color:#7b8b83;line-height:1.5;margin:10px 0 16px}
#theme-studio .ts-picker-hint span{display:block;font-size:9px;margin-top:3px}
#theme-studio .ts-color-values{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:12px}
#theme-studio .ts-color-values label,#theme-studio .ts-rgb label{display:grid;gap:6px;font-size:10px;font-weight:700;color:#5f786b}
#theme-studio .ts-color-values input[data-ts-hex]{font-family:monospace;font-weight:750;font-size:15px}
#theme-studio input[type=color]{display:block;width:100%;height:43px;min-height:43px;padding:4px;border:1px solid #c4d5cd;border-radius:7px;background:#fbfcfa;cursor:pointer}
#theme-studio input[aria-invalid=true]{border-color:#bc503d!important;outline-color:#bc503d}
#theme-studio .ts-precision{border:0;border-top:1px solid #e2e9e3;padding-top:8px;margin-top:15px}
#theme-studio .ts-precision summary{min-height:35px;align-content:center;font-size:11px;font-weight:700;color:#637a6a;cursor:pointer}
#theme-studio .ts-rgb{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:9px 0}
#theme-studio .ts-rgb input{min-width:0;padding:9px}
#theme-studio .ts-local-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px}
#theme-studio .ts-local-actions button{font-size:10px;min-height:35px;text-align:left}
#theme-studio .ts-contrasts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}
#theme-studio .ts-contrasts>div{padding:9px;border:1px solid #cfdfd3;background:#f0f7f1;border-radius:7px;color:#34714f}
#theme-studio .ts-contrasts>div[data-pass=false]{border-color:#ebd1ac;background:#fff6e8;color:#976225}
#theme-studio .ts-contrasts b{display:block;font-size:14px}
#theme-studio .ts-contrasts span{display:block;font-size:9px;margin-top:4px;line-height:1.35}
#theme-studio .ts-small{font-size:10px;line-height:1.6;color:#7b8c82;margin:11px 0 0}
#theme-studio .ts-preview{position:sticky;top:calc(var(--ttc-workspace-height,0px) + 102px);min-width:0}
#theme-studio .ts-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;position:static;background:none;border:0;padding:0;min-height:0;box-shadow:none}
#theme-studio .ts-preview-heading>div{display:flex;align-items:center;gap:7px;font-size:12px}
#theme-studio .ts-live-dot{width:7px;height:7px;flex:0 0 7px;background:#369e75;border-radius:50%;box-shadow:0 0 0 4px #369e7514}
#theme-studio .ts-preview-heading .ts-link{min-height:32px;font-size:10px;color:#6d8578}
#theme-studio .ts-preview-heading .ts-link[aria-pressed=true]{color:#b96b32;text-decoration:underline}
#theme-studio .ts-preview-controls{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 13px;flex-wrap:wrap}
#theme-studio .ts-preview-controls .ts-segments{flex:1;min-width:220px}
#theme-studio .ts-device-controls{display:flex;gap:3px;padding:3px;border:1px solid #d4dfda;border-radius:8px;background:#f0f4f1}
#theme-studio .ts-device-controls button{display:flex;align-items:center;gap:4px;justify-content:center;border:0;background:none;color:#7c8d83;border-radius:5px;min-height:37px;padding:7px;font-size:16px}
#theme-studio .ts-device-controls button span{font-size:9px;font-weight:750}
#theme-studio .ts-device-controls button[aria-pressed=true]{background:#fff;color:#1f7862;box-shadow:0 2px 5px #163e2d0d}
#theme-studio .ts-preview-wrap{border:1px solid #c7d2cc;border-radius:12px;overflow:hidden;box-shadow:0 16px 32px #173b3c0e;background:#10282d;width:100%;margin:auto;transition:max-width .2s}
#theme-studio .ts-browser-bar{display:flex;align-items:center;gap:13px;padding:10px 13px;background:#e5eae6;color:#a2b0a7}
#theme-studio .ts-browser-bar>span{font-size:8px;letter-spacing:3px;white-space:nowrap}
#theme-studio .ts-browser-bar small{font-size:9px;color:#7e8e83}
#theme-studio .ts-preview-wrap iframe{display:block;width:100%;height:clamp(430px,calc(100dvh - 365px),730px);border:0;background:#061416}
#theme-studio .ts-preview-wrap[data-device=mobile]{max-width:370px;border-radius:23px;border:7px solid #213e3e}
#theme-studio .ts-preview-wrap[data-device=mobile] .ts-browser-bar{padding:8px 10px;justify-content:center}
#theme-studio .ts-preview-wrap[data-device=mobile] .ts-browser-bar>span{display:none}
#theme-studio .ts-preview-caption{padding-inline:4px}
#theme-studio .ts-publish-info{display:flex;gap:6px 15px;align-items:center;flex-wrap:wrap;margin-top:13px;border-top:1px solid #d6e0d8;padding-top:10px}
#theme-studio .ts-publish-info p{flex:1 1 100%;font-size:10px;color:#789083;margin:0}
#theme-studio .ts-publish-info .ts-link{font-size:10px;min-height:30px}
#theme-studio .ts-feedback{position:sticky;bottom:14px;z-index:30;border:1px solid #8fbea9;border-radius:9px;background:#f3fff7;color:#2a6d4d;font-size:12px;padding:12px 16px;margin:20px 0 0;box-shadow:0 6px 20px #173b3c15}
#theme-studio .ts-feedback:empty{display:none}
#theme-studio .ts-feedback.is-error{border-color:#cb8a7d;background:#fff4ef;color:#963d2a}
#theme-studio .ts-dialog{width:min(520px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #afc8bb;border-radius:15px;padding:28px;background:#fff;color:#183c43;box-shadow:0 20px 70px #001b2440}
#theme-studio .ts-dialog::backdrop{background:#071f29a6;backdrop-filter:blur(3px)}
#theme-studio .ts-dialog h2{font-size:25px;margin:0 0 14px;line-height:1.2}
#theme-studio .ts-dialog p{font-size:14px;line-height:1.7;color:#64796e;margin:0 0 22px}
#theme-studio .ts-dialog>div{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
#theme-studio .ts-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:1250px) and (min-width:951px){#theme-studio .ts-layout{grid-template-columns:minmax(245px,290px) minmax(0,1fr);gap:15px}#theme-studio .ts-card{padding:15px}#theme-studio .ts-device-controls button span{display:none}}
@media(max-width:950px){#theme-studio .ts-layout{grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:15px}#theme-studio .ts-header{align-items:flex-start;gap:12px}#theme-studio .ts-header h2{font-size:29px}#theme-studio .ts-state{font-size:10px;padding:6px 9px}#theme-studio .ts-card{padding:15px}#theme-studio .ts-device-controls button span{display:none}#theme-studio .ts-preview{top:calc(var(--ttc-workspace-height,0px) + 130px)}}
@media(max-width:680px){#theme-studio .ts-layout{display:flex;flex-direction:column;gap:18px}#theme-studio .ts-preview{order:-1;width:100%;position:sticky;z-index:20;top:calc(var(--ttc-workspace-height,0px) + 127px);background:#eaf0ed;padding:9px;border:1px solid #cbdad0;border-radius:12px;box-shadow:0 8px 20px #163b3c14}#theme-studio .ts-edit-fields{width:100%}#theme-studio .ts-preview-heading{margin-bottom:4px;gap:5px}#theme-studio .ts-preview-heading>div{font-size:11px}#theme-studio .ts-preview-heading .ts-link{font-size:9px;min-height:26px}#theme-studio .ts-preview-controls{gap:6px;margin-bottom:7px;flex-wrap:nowrap}#theme-studio .ts-preview-controls .ts-segments{min-width:0}#theme-studio .ts-preview-controls .ts-segments button{padding:5px;min-height:31px;font-size:9px}#theme-studio .ts-device-controls{gap:0}#theme-studio .ts-device-controls button{min-height:31px;padding:5px;font-size:15px}#theme-studio .ts-preview-wrap iframe{height:210px;min-height:0}#theme-studio .ts-browser-bar{display:none}#theme-studio .ts-preview-caption,#theme-studio .ts-publish-info{display:none}#theme-studio .ts-preview-wrap[data-device=mobile]{max-width:330px;border-width:4px;border-radius:13px}#theme-studio .ts-toolbar{gap:7px;padding:12px 0}#theme-studio .ts-toolbar>div:first-child{display:grid;grid-template-columns:1fr 1fr;width:100%}#theme-studio .ts-button{font-size:11px;padding:10px 11px;min-height:44px}#theme-studio .ts-toolbar>div:last-child{justify-content:flex-end;width:100%;gap:12px}#theme-studio .ts-toolbar .ts-link{min-height:33px;font-size:10px}#theme-studio .ts-header{display:block;padding-bottom:13px}#theme-studio .ts-header h2{font-size:29px}#theme-studio .ts-header .ts-state{display:inline-flex;margin-top:13px}#theme-studio .ts-header p{font-size:12px}#theme-studio .ts-notice{font-size:10px;margin:12px 0 15px}#theme-studio .ts-palettes{grid-template-columns:repeat(5,minmax(0,1fr))}#theme-studio .ts-palettes>button{padding:9px 3px}#theme-studio .ts-palettes b{font-size:8px}#theme-studio .ts-palette-dots i{width:12px;height:12px;flex-basis:12px}#theme-studio .ts-color-list{grid-template-columns:1fr 1fr;gap:4px}#theme-studio .ts-color-row{padding:8px;min-height:61px}#theme-studio .ts-color-row b{font-size:10px}#theme-studio .ts-swatch{flex-basis:25px;width:25px;height:25px}#theme-studio .ts-color-row small{font-size:9px}#theme-studio .ts-color-pad{height:190px}#theme-studio input:not([type=range]):not([type=color]){font-size:16px!important}#theme-studio .ts-section-title h3{font-size:15px}#theme-studio .ts-segments button{min-height:41px;font-size:11px}#theme-studio .ts-feedback{bottom:9px;font-size:11px;padding:10px}#theme-studio .ts-dialog{padding:22px}#theme-studio .ts-dialog>div{display:grid;grid-template-columns:1fr}#theme-studio .ts-dialog h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){#theme-studio *,#theme-studio *:before,#theme-studio *:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

#theme-studio .ts-mobile-tools{display:none}@media(max-width:680px){#theme-studio .ts-mobile-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin-top:18px;padding:15px;border:1px solid #cadbd0;border-radius:11px;background:#fff}#theme-studio .ts-mobile-tools>p{grid-column:1/-1;font-size:10px;color:#71897b;margin:0 0 4px}#theme-studio .ts-mobile-tools .ts-link{text-align:left;min-height:40px;font-size:10px}}
