:root{
  --tm-shell:#182632;
  --tm-shell-2:#203440;
  --tm-shell-3:#2a3d48;
  --tm-panel:#f7f9fa;
  --tm-panel-2:#eef3f5;
  --tm-white:#fff;
  --tm-text:#17222b;
  --tm-muted:#687781;
  --tm-line:#d5dee3;
  --tm-teal:#147b80;
  --tm-teal-dark:#0e666b;
  --tm-copper:#d67a3c;
  --tm-copper-dark:#b95f28;
  --tm-disabled:#9ca8ae;
  --tm-radius:16px;
  --tm-shadow:0 12px 34px rgba(13,31,42,.16);
  font-family:Inter,Arial,sans-serif;
}

body.theme-v1{background:#f4f6f7;color:var(--tm-text)}
body.theme-v1 .app{max-width:1440px;padding:18px}
body.theme-v1 .topbar{
  margin:0 0 10px;padding:18px 22px;border-radius:18px 18px 10px 10px;
  background:linear-gradient(135deg,var(--tm-shell),var(--tm-shell-2));color:#fff;box-shadow:var(--tm-shadow)
}
body.theme-v1 .topbar .badge{display:none}
body.theme-v1 .topbar .brand{font-size:clamp(23px,2vw,32px);letter-spacing:-.02em;font-weight:800}
body.theme-v1 .tm-product-subtitle{margin-top:5px;color:#c7d2d8;font-size:13px;font-weight:600}

body.theme-v1 .tm-howto{
  display:grid;grid-template-columns:minmax(190px,.7fr) 1fr 1fr 1fr;gap:10px;
  margin:0 0 12px;padding:12px;border:1px solid #d7e0e4;border-radius:var(--tm-radius);
  background:var(--tm-panel);box-shadow:0 5px 16px rgba(13,31,42,.08)
}
body.theme-v1 .tm-howto-intro,body.theme-v1 .tm-howto-step{
  min-height:104px;padding:14px;border-radius:12px;background:#fff;border:1px solid #e2e8eb
}
body.theme-v1 .tm-howto-intro{background:linear-gradient(145deg,#fff,#eef7f7)}
body.theme-v1 .tm-howto-eyebrow{font-size:10px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:var(--tm-teal)}
body.theme-v1 .tm-howto h2{margin:5px 0 5px;font-size:22px}
body.theme-v1 .tm-howto p{margin:0;color:var(--tm-muted);font-size:12px;line-height:1.45}
body.theme-v1 .tm-howto-step{display:grid;grid-template-columns:34px 1fr;gap:9px;align-content:center}
body.theme-v1 .tm-howto-number{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--tm-teal);color:#fff;font-size:12px;font-weight:900}
body.theme-v1 .tm-howto-step strong{display:block;margin:1px 0 4px;font-size:13px}

body.theme-v1 .shell{display:block}
body.theme-v1 .workspace{
  padding:12px;background:linear-gradient(145deg,var(--tm-shell),#1c2d38);border:1px solid #314652;
  border-radius:18px;box-shadow:var(--tm-shadow)
}
body.theme-v1 .tm-editor-grid{
  display:grid;grid-template-columns:132px minmax(0,1fr) 330px;gap:12px;align-items:start
}
body.theme-v1 .tm-tool-rail{
  display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #344b57;border-radius:14px;
  background:rgba(10,24,33,.36);min-height:100%
}
body.theme-v1 .tm-tool-rail .tm-rail-divider{height:1px;background:#3b5360;margin:6px 0}
body.theme-v1 .tm-tool-rail button{
  width:100%;min-height:48px;padding:9px 8px;border:1px solid #49606c;border-radius:11px;background:#20333f;
  color:#edf4f6;font:inherit;font-size:12px;font-weight:800;cursor:pointer
}
body.theme-v1 .tm-tool-rail button:hover{border-color:#73a9aa;background:#27404d}
body.theme-v1 .tm-tool-rail button.active,body.theme-v1 .tm-tool-rail #addTextBtn:focus-visible{
  background:linear-gradient(180deg,var(--tm-teal),var(--tm-teal-dark));border-color:#55b1b4;color:#fff
}
body.theme-v1 .tm-tool-rail button:disabled{opacity:.38;cursor:not-allowed}
body.theme-v1 .tm-tool-rail .danger{color:#ffd8d3}

body.theme-v1 .tm-center{min-width:0}
body.theme-v1 .tm-view-tabs{display:flex;justify-content:center;margin:0 auto 8px}
body.theme-v1 .tm-view-tabs .side-tabs{display:flex;gap:0;width:min(300px,100%);margin:0;padding:3px;border:1px solid #3e525d;border-radius:10px;background:#1d2c35}
body.theme-v1 .tm-view-tabs .side-tabs button{
  flex:1;min-height:36px;border:0;border-radius:8px;background:transparent;color:#dbe5e9;font:inherit;font-weight:800;cursor:pointer
}
body.theme-v1 .tm-view-tabs .side-tabs button.active{background:var(--tm-teal);color:#fff;box-shadow:0 4px 11px rgba(15,92,96,.32)}
body.theme-v1 .stage-shell,body.theme-v1 .bottle-standard-stage,body.theme-v1 .bottle-flat-editor{
  background:#fff!important;border-radius:14px!important;box-shadow:none!important
}
body.theme-v1 .stage-shell{border:1px solid #dfe6e9;min-height:520px;padding-top:26px}
body.theme-v1 .bottle-editor-views{border-radius:14px;overflow:hidden;background:#fff;border:1px solid #dfe6e9}
body.theme-v1 .bottle-standard-stage{border:0!important}
body.theme-v1 .bottle-mode-heading{color:var(--tm-text)}
body.theme-v1 .bottle-measurements{color:#c9d4d9!important}
body.theme-v1 .orientation-btn{border-radius:9px!important}

body.theme-v1 .tm-thumbnails{display:flex;justify-content:center;gap:8px;overflow-x:auto;padding:9px 4px 2px;scrollbar-width:none}
body.theme-v1 .tm-thumbnails::-webkit-scrollbar{display:none}
body.theme-v1 .tm-thumb{
  flex:0 0 62px;height:64px;padding:4px;border:1px solid #cfd9de;border-radius:10px;background:#fff;cursor:pointer;overflow:hidden
}
body.theme-v1 .tm-thumb img{width:100%;height:100%;object-fit:contain;border-radius:6px}
body.theme-v1 .tm-thumb.active{border:2px solid var(--tm-teal);box-shadow:0 0 0 2px rgba(20,123,128,.12)}
body.theme-v1 .tm-wallet-thumb-face{width:100%;height:100%;display:grid;place-items:center;border-radius:8px;background:#171717;color:#d6d6d6;font-size:9px;font-weight:800}

body.theme-v1 .panel.order-summary-panel{
  width:auto;margin:0;padding:10px;border:1px solid #d5e0e4;border-radius:14px;background:var(--tm-panel);box-shadow:none;color:var(--tm-text)
}
body.theme-v1 .panel.order-summary-panel>h2,body.theme-v1 .panel.order-summary-panel>.sub{display:none}
body.theme-v1 .tm-properties-heading{display:flex;align-items:center;justify-content:space-between;padding:5px 4px 10px;font-size:15px;font-weight:900}
body.theme-v1 .tm-properties-heading small{color:var(--tm-muted);font-size:10px;font-weight:700}
body.theme-v1 .tm-property-section,body.theme-v1 .tm-accordion{
  margin:0 0 8px;border:1px solid var(--tm-line);border-radius:11px;background:#fff;overflow:hidden
}
body.theme-v1 .tm-property-section-title,body.theme-v1 .tm-accordion>summary{
  list-style:none;padding:11px 12px;font-size:12px;font-weight:900;cursor:pointer;background:#f8fafb
}
body.theme-v1 .tm-accordion>summary::-webkit-details-marker{display:none}
body.theme-v1 .tm-accordion>summary:after{content:'+';float:right;color:var(--tm-muted)}
body.theme-v1 .tm-accordion[open]>summary:after{content:'–'}
body.theme-v1 .tm-property-body,body.theme-v1 .tm-accordion-body{padding:10px 11px}
body.theme-v1 .tm-object-placeholder{padding:12px;color:var(--tm-muted);font-size:12px;line-height:1.4}
body.theme-v1 #toolbarTextControls,body.theme-v1 #toolbarImageControls,body.theme-v1 .bottle-edit-controls{
  position:static!important;display:flex!important;flex-wrap:wrap;gap:6px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible
}
body.theme-v1 #toolbarTextControls[hidden],body.theme-v1 #toolbarImageControls[hidden],body.theme-v1 .bottle-edit-controls[hidden]{display:none!important}
body.theme-v1 #toolbarTextControls input,body.theme-v1 #toolbarTextControls select{background:#fff}
body.theme-v1 .toolbar-text-value{width:100%!important}
body.theme-v1 .toolbar-font{width:100%!important}
body.theme-v1 .toolbar-size{flex:1 1 120px}
body.theme-v1 #toolbarBold,body.theme-v1 #toolbarItalic,body.theme-v1 #toolbarUnderline,body.theme-v1 #toolbarAlign,
body.theme-v1 .bottle-edit-controls button{
  min-width:38px;min-height:38px;border:1px solid var(--tm-line);border-radius:8px;background:#fff;color:var(--tm-text)
}
body.theme-v1 #toolbarBold.active,body.theme-v1 #toolbarItalic.active,body.theme-v1 #toolbarUnderline.active,body.theme-v1 #toolbarAlign.active{background:var(--tm-teal);color:#fff;border-color:var(--tm-teal)}
body.theme-v1 .legacy-inspector-controls{display:block!important}
body.theme-v1 .legacy-inspector-controls .pricing-box{display:none}
body.theme-v1 .legacy-inspector-controls .metrics{margin-top:7px}
body.theme-v1 .field input,body.theme-v1 .field select,body.theme-v1 .field textarea{border-color:var(--tm-line);background:#fff}
body.theme-v1 .segmented button.active{background:var(--tm-teal);border-color:var(--tm-teal)}

body.theme-v1 #productOptionsBar{margin:0;padding:0;background:transparent;border:0}
body.theme-v1 .product-option-group{padding:0!important}
body.theme-v1 .product-option-label{color:var(--tm-text)!important}
body.theme-v1 .product-option-choices{gap:7px!important}
body.theme-v1 .product-option-choice{border-radius:9px!important}
body.theme-v1 .product-option-choice.active{border-color:var(--tm-teal)!important;box-shadow:0 0 0 2px rgba(20,123,128,.14)}

body.theme-v1 .summary-card,body.theme-v1 .approval-details,body.theme-v1 .approval-confirm,body.theme-v1 .design-help-link{box-shadow:none}
body.theme-v1 .coverage-summary-card{margin-top:0}
body.theme-v1 .approval-details{border-color:var(--tm-line)}
body.theme-v1 .approval-confirm{border:1px solid #e3c6b4;background:#fff7f1;border-radius:10px;padding:10px}
body.theme-v1 .design-help-link{border-color:var(--tm-line)}

body.theme-v1 .tm-purchase-bar{
  grid-column:1/-1;display:grid;grid-template-columns:minmax(180px,.8fr) minmax(130px,.55fr) minmax(150px,.65fr) minmax(150px,.65fr) minmax(190px,.9fr);
  gap:10px;align-items:center;margin-top:12px;padding:10px 12px;border:1px solid #3b505b;border-radius:14px;background:#172730;color:#fff
}
body.theme-v1 .tm-purchase-label{display:block;margin-bottom:2px;color:#9fb0b8;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
body.theme-v1 .tm-qty{display:flex;align-items:center;gap:0}
body.theme-v1 .tm-qty button,body.theme-v1 .tm-qty input{
  width:42px;height:38px;border:1px solid #50636d;background:#203640;color:#fff;text-align:center;font:inherit;font-weight:800
}
body.theme-v1 .tm-qty button{cursor:pointer}
body.theme-v1 .tm-qty button:first-child{border-radius:8px 0 0 8px}
body.theme-v1 .tm-qty button:last-child{border-radius:0 8px 8px 0}
body.theme-v1 .tm-qty input{border-left:0;border-right:0;border-radius:0;-moz-appearance:textfield}
body.theme-v1 .tm-qty input::-webkit-inner-spin-button,body.theme-v1 .tm-qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body.theme-v1 .tm-price strong{display:block;color:#f3a06b;font-size:22px}
body.theme-v1 .tm-review-btn{
  min-height:44px;border:1px solid #d8a37e;border-radius:10px;background:transparent;color:#fff;font:inherit;font-weight:900;cursor:pointer
}
body.theme-v1 .add-to-cart-btn{
  width:100%;min-height:46px;border:0!important;border-radius:10px!important;background:linear-gradient(180deg,#efa36e,var(--tm-copper))!important;color:#2c180e!important;
  box-shadow:0 7px 18px rgba(196,96,41,.25);font-weight:900!important
}
body.theme-v1 .add-to-cart-btn:disabled{background:#66747a!important;color:#cdd4d7!important;box-shadow:none}
body.theme-v1 .add-to-cart-btn strong{margin-left:6px;color:inherit!important}

body.theme-v1 .action-strip{display:none!important}
body.theme-v1 #mainToolbar{display:none!important}
body.theme-v1 .mobile-note{display:none!important}
body.theme-v1 .quick-price{display:none!important}

body.theme-v1 .dev-template-modal{background:rgba(14,27,35,.7)!important}
body.theme-v1 .dev-template-dialog{border-color:#ced9dd!important;border-radius:16px!important;background:#f8fafb!important}
body.theme-v1 .dev-template-head{background:rgba(248,250,251,.97)!important;border-bottom-color:#d8e0e4!important}
body.theme-v1 .dev-template-load{background:var(--tm-teal)!important}

@media(max-width:980px){
  body.theme-v1 .tm-editor-grid{grid-template-columns:1fr}
  body.theme-v1 .tm-center{order:1}
  body.theme-v1 .tm-tool-rail{order:2;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(72px,1fr));padding:7px;overflow-x:auto}
  body.theme-v1 .tm-tool-rail .tm-rail-divider{display:none}
  body.theme-v1 .tm-tool-rail button{min-height:44px}
  body.theme-v1 .panel.order-summary-panel{order:3;display:block!important}
  body.theme-v1 .tm-purchase-bar{position:sticky;bottom:0;z-index:220;grid-template-columns:130px 1fr 1.2fr;margin-left:-4px;margin-right:-4px;box-shadow:0 -8px 22px rgba(12,27,35,.22)}
  body.theme-v1 .tm-purchase-bar .tm-unit-price,body.theme-v1 .tm-review-btn{display:none}
  body.theme-v1 .tm-howto{grid-template-columns:1fr 1fr 1fr 1fr}
  body.theme-v1 .tm-howto-intro h2{font-size:18px}
}

@media(max-width:620px){
  body.theme-v1 .app{padding:8px}
  body.theme-v1 .topbar{padding:14px 15px;margin-bottom:8px;border-radius:14px 14px 8px 8px}
  body.theme-v1 .topbar .brand{font-size:21px}
  body.theme-v1 .tm-product-subtitle{font-size:11px}
  body.theme-v1 .tm-howto{display:block;padding:9px}
  body.theme-v1 .tm-howto-intro{min-height:0;padding:10px}
  body.theme-v1 .tm-howto-intro p{display:none}
  body.theme-v1 .tm-howto-step{display:none}
  body.theme-v1 .workspace{padding:7px;border-radius:14px}
  body.theme-v1 .tm-editor-grid{gap:7px}
  body.theme-v1 .tm-tool-rail{grid-template-columns:repeat(5,90px);gap:5px;border-radius:10px}
  body.theme-v1 .tm-tool-rail button{font-size:10px;padding:6px}
  body.theme-v1 .tm-view-tabs{margin-bottom:6px}
  body.theme-v1 .stage-shell{min-height:390px;padding-left:0;padding-right:0}
  body.theme-v1 .panel.order-summary-panel{padding:7px;border-radius:10px}
  body.theme-v1 .tm-properties-heading{font-size:13px}
  body.theme-v1 .tm-purchase-bar{grid-template-columns:112px 92px minmax(118px,1fr);gap:6px;padding:7px}
  body.theme-v1 .tm-price strong{font-size:17px}
  body.theme-v1 .tm-qty button,body.theme-v1 .tm-qty input{width:34px;height:34px}
  body.theme-v1 .add-to-cart-btn{min-height:40px;font-size:12px!important;padding:7px!important}
  body.theme-v1 .tm-thumbnails{justify-content:flex-start}
}
