/* Design Studio */
#tab-studio { --sg: var(--surface, #fff); --sl: var(--line, #dfe5f0); --sm: var(--text-mute, #566074); }
.st { display: block; padding-bottom: 8px }
.st-head { margin: 0 0 20px }
.st-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #1d4ed8) }
.st-pro { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3b2300; padding: 3px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; box-shadow: 0 6px 16px -6px rgba(245, 158, 11, .7) }
.st-head h1 { margin: 10px 0 8px; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800 }
.st-head h1 em { font-style: normal; background: linear-gradient(95deg, #1d4ed8, #0891b2 60%, #059669); -webkit-background-clip: text; background-clip: text; color: transparent }
.st-sub { max-width: 62ch; margin: 0 0 16px; color: var(--sm); font-size: 15px; line-height: 1.55 }
.st-presets { display: flex; flex-wrap: wrap; gap: 8px }
.st-preset { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--sl); background: var(--sg); color: inherit; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s }
.st-preset i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12) }
.st-preset:hover { transform: translateY(-1px); border-color: var(--accent, #1d4ed8); box-shadow: 0 8px 20px -12px rgba(29, 78, 216, .6) }
.st-surprise { padding: 8px 14px; background: linear-gradient(135deg, #1d4ed8, #0891b2); color: #fff; border-color: transparent }
.st-surprise svg { margin-right: -2px }

.st-main { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 20px; align-items: start }
.st-stage { position: relative; border-radius: 26px; padding: 14px; background: radial-gradient(130% 110% at 15% 0%, #21399b 0%, #0b1b4d 52%, #060d2b 100%); box-shadow: 0 30px 60px -30px rgba(11, 27, 77, .65); position: sticky; top: 76px }
.st-canvas { position: relative; aspect-ratio: 1000 / 720; border-radius: 16px; overflow: hidden; background: #0f172a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 40px -20px rgba(0, 0, 0, .6) }
.st-canvas svg { width: 100%; height: 100%; display: block; touch-action: none }
.st-handle { cursor: grab }
.st-hint { pointer-events: none; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(11, 27, 77, .88); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); white-space: nowrap }
.st-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 2px }
.st-bar-top { padding-bottom: 12px }
.st-bar-bot { padding-top: 12px; gap: 10px }
.st-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px) }
.st-seg button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: #cbd8ff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s }
.st-seg button:hover { color: #fff }
.st-seg button.on { background: #fff; color: #0b1b4d; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6) }
.st-seg-sm button { padding: 7px 12px; font-size: 13px }
.st-range { display: inline-flex; align-items: center; gap: 10px; color: #cbd8ff; font-size: 13px; font-weight: 600 }
.st-range input { width: 120px; accent-color: #fbbf24 }
.st-pillbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(10px); transition: background .2s, color .2s }
.st-pillbtn:hover { background: rgba(255, 255, 255, .2) }
.st-pillbtn.on { background: #fbbf24; color: #3b2300; border-color: #fbbf24 }
.st-bar-bot.is-photo #stAmb, .st-bar-bot.is-photo .st-range, .st-bar-bot.is-photo [data-k="xray"] { display: none }
.st-xlegend { display: flex; flex-wrap: wrap; gap: 14px; padding: 8px 4px 0; color: #cbd8ff; font-size: 12.5px; font-weight: 600 }
.st-xlegend span { display: inline-flex; align-items: center; gap: 7px }
.st-xlegend i { width: 18px; height: 5px; border-radius: 3px }

/* panel */
.st-panel { border-radius: 22px; border: 1px solid var(--sl); background: var(--sg); max-height: calc(100vh - 100px); overflow: auto; overscroll-behavior: contain; position: sticky; top: 76px; box-shadow: 0 20px 40px -30px rgba(15, 23, 42, .35) }
.st-grp { border-bottom: 1px solid var(--sl) }
.st-grp:last-child { border-bottom: 0 }
.st-grp summary { list-style: none; cursor: pointer; padding: 16px 18px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--sg); z-index: 2 }
.st-grp summary::-webkit-details-marker { display: none }
.st-grp summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--sm); border-bottom: 2px solid var(--sm); transform: rotate(45deg); transition: transform .2s; margin-right: 3px }
.st-grp[open] summary::after { transform: rotate(-135deg) }
.st-gb { padding: 0 18px 18px }
.st-gb h4 { margin: 16px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sm) }
.st-gb h4:first-child { margin-top: 2px }
.st-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.st-tile, .st-card { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 7px; border-radius: 13px; border: 1.5px solid var(--sl); background: var(--sg); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s }
.st-tile:hover, .st-card:hover { border-color: #93a8e8; transform: translateY(-1px) }
.st-tile.on, .st-card.on { border-color: var(--accent, #1d4ed8); box-shadow: 0 0 0 3px rgba(29, 78, 216, .16) }
.st-tile .sw { display: block; position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; margin-bottom: 7px }
.st-tile .sw svg { width: 100%; height: 100%; display: block }
.st-none .sw { background: repeating-linear-gradient(45deg, var(--well, #f3f5fb), var(--well, #f3f5fb) 6px, transparent 6px, transparent 12px); display: grid; place-items: center; font-size: 12px; color: var(--sm) }
.ck { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent, #1d4ed8); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: .15s; font-style: normal }
.on > .sw .ck, .on > .art .ck { opacity: 1; transform: none }
.st-tile .br, .st-card .br { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sm); font-weight: 700 }
.st-tile .nm, .st-card .nm { font-size: 12.5px; font-weight: 700; line-height: 1.25; margin: 1px 0 3px }
.st-tile .pr, .st-card .pr { font-size: 11.5px; color: var(--sm); display: flex; flex-wrap: wrap; align-items: center; gap: 4px }
u { text-decoration: none }
.pr u, .rc { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #047857; background: #d9f5ea; padding: 1px 5px; border-radius: 5px }
.st-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.st-card .art { position: relative; display: block; height: 98px; border-radius: 9px; background: linear-gradient(180deg, var(--well, #f3f5fb), #e7ecf6); margin-bottom: 7px; padding: 6px }
.st-card .art svg { width: 100%; height: 100%; display: block }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px }
.st-chip { padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--sl); background: var(--sg); color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s }
.st-chip:hover { border-color: #93a8e8 }
.st-chip.on { background: var(--accent, #1d4ed8); border-color: var(--accent, #1d4ed8); color: #fff }
.st-dots { display: flex; flex-wrap: wrap; gap: 10px }
.st-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--sl), inset 0 -6px 10px -6px rgba(0, 0, 0, .35); display: grid; place-items: center; color: #fff; cursor: pointer; transition: .15s }
.st-dot svg { opacity: 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)) }
.st-dot.on { box-shadow: 0 0 0 3px var(--accent, #1d4ed8) }
.st-dot.on svg { opacity: 1 }
.st-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 8px; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--sl); background: var(--sg); color: inherit; font: inherit; text-align: left; cursor: pointer }
.st-switch .tx b { display: block; font-size: 13.5px }
.st-switch .tx small { color: var(--sm); font-size: 12px }
.st-switch i { flex: none; width: 40px; height: 24px; border-radius: 999px; background: #cbd3e1; position: relative; transition: background .2s }
.st-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transition: transform .2s }
.st-switch.on i { background: var(--accent, #1d4ed8) }
.st-switch.on i::after { transform: translateX(16px) }
.st-slide { display: block; margin-top: 10px }
.st-slide span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 4px }
.st-slide b { color: var(--accent, #1d4ed8) }
.st-slide input { width: 100%; accent-color: #1d4ed8 }
.st-photo-card { padding: 18px; border-bottom: 1px solid var(--sl) }
.st-photo-card h3 { margin: 0 0 4px; font-size: 17px }
.st-photo-card p { margin: 0 0 12px; font-size: 13px; color: var(--sm); line-height: 1.5 }
.st-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px }
.st-steps { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px }
.st-steps li { font-size: 13px; font-weight: 600; color: var(--sm); padding-left: 24px; position: relative }
.st-steps li::before { content: ''; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--sl) }
.st-steps li.now { color: var(--text, #0f172a) }
.st-steps li.now::before { border-color: var(--accent, #1d4ed8); background: radial-gradient(var(--accent, #1d4ed8) 40%, transparent 45%) }
.st-steps li.done::before { background: #059669; border-color: #059669 }

/* buttons */
.st-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1.5px solid var(--sl); background: var(--sg); color: inherit; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: .15s }
.st-btn:hover { border-color: #93a8e8 }
.st-btn-blue { background: var(--accent, #1d4ed8); border-color: var(--accent, #1d4ed8); color: #fff }
.st-btn-green { background: #059669; border-color: #059669; color: #fff; box-shadow: 0 12px 24px -14px rgba(5, 150, 105, .9) }
.st-btn:disabled { opacity: .7; cursor: default }

/* quote */
.st-boq { margin-top: 22px; padding: 26px; border-radius: 26px; border: 1px solid var(--sl); background: var(--sg); box-shadow: 0 20px 40px -30px rgba(15, 23, 42, .35) }
.st-boq-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px }
.st-boq h2 { margin: 6px 0 0; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.025em }
.st-total { text-align: right }
.st-total small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sm) }
.st-total strong { display: block; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -.04em; font-weight: 800; margin: 4px 0 2px; font-variant-numeric: tabular-nums }
.st-total span { font-size: 13px; color: var(--sm) }
.st-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 22px 0 12px; background: var(--well, #f3f5fb); gap: 2px }
.st-stack i { display: block; height: 100%; transition: width .3s }
.st-stack-leg { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--sm) }
.st-stack-leg span { display: inline-flex; align-items: center; gap: 7px }
.st-stack-leg i { width: 10px; height: 10px; border-radius: 3px }
.st-stack-leg b { color: var(--text, #0f172a); font-variant-numeric: tabular-nums }
.st-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--sl); border-radius: 16px }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px }
.st-table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sm); padding: 11px 16px; background: var(--well, #f3f5fb) }
.st-table th:nth-child(n+2), .st-table td.q, .st-table td.r, .st-table td.a { text-align: right }
.st-table td { padding: 11px 16px; border-top: 1px solid var(--sl); vertical-align: top; font-variant-numeric: tabular-nums }
.st-table td.nm b { display: block; font-weight: 600 }
.st-table td small { color: var(--sm); font-size: 12px }
.st-table td.r u { margin-left: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sm); background: var(--well, #f3f5fb); padding: 1px 6px; border-radius: 5px }
.st-table td.r u.rc { color: #047857; background: #d9f5ea }
.st-table td.a { font-weight: 700 }
.st-table tr.cat td { background: var(--well, #f3f5fb); font-weight: 700; padding: 9px 16px; border-top: 1px solid var(--sl) }
.st-table tr.cat i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 9px }
.st-table tr.cat b { float: right; font-variant-numeric: tabular-nums }
.st-boq-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px }
.st-boq-foot p { margin: 0; max-width: 58ch; font-size: 12.5px; line-height: 1.55; color: var(--sm) }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px }
.st-saved { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--sl) }
.st-saved h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sm) }
.st-saved-i { display: inline-flex; margin: 0 8px 8px 0; border: 1.5px solid var(--sl); border-radius: 12px; overflow: hidden }
.st-saved-i button { border: 0; background: var(--sg); color: inherit; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 12px; cursor: pointer }
.st-saved-i button small { margin-left: 8px; color: var(--sm) }
.st-saved-i .x { padding: 9px 11px; border-left: 1px solid var(--sl); color: var(--sm) }
.st-brands { margin-top: 22px; padding: 22px 26px; border-radius: 22px; background: var(--well, #f3f5fb); border: 1px solid var(--sl) }
.st-brands h3 { margin: 0 0 12px; font-size: 15px }
.st-brands div { display: flex; flex-wrap: wrap; gap: 8px }
.st-brands span { padding: 7px 13px; border-radius: 999px; background: var(--sg); border: 1px solid var(--sl); font-size: 13px; font-weight: 700; letter-spacing: -.01em }
.st-brands p { margin: 12px 0 0; font-size: 12.5px; color: var(--sm) }

/* whatsapp modal */
.st-back { position: fixed; inset: 0; z-index: 400; background: rgba(7, 12, 36, .6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px }
.st-modal { width: min(460px, 100%); max-height: 94vh; overflow: auto; background: var(--surface, #fff); color: var(--text, #0f172a); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7) }
.st-m-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px 10px }
.st-m-head small { display: block; color: var(--text-mute, #566074); font-size: 12.5px; margin-top: 2px }
.st-x { border: 0; background: var(--well, #f3f5fb); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; color: inherit }
.st-m-to { display: flex; align-items: center; gap: 12px; margin: 0 20px 12px; font-size: 13px; font-weight: 700 }
.st-m-to select { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line, #dfe5f0); background: var(--surface, #fff); color: inherit; font: inherit }
.st-wa { background: #efeae2; padding: 18px 16px; margin: 0 }
.st-bub { background: #d9fdd3; color: #111b21; border-radius: 12px 12px 3px 12px; padding: 6px 6px 8px; margin-left: auto; max-width: 330px; box-shadow: 0 1px 1px rgba(0, 0, 0, .16) }
.st-bub img { display: block; width: 100%; height: 170px; object-fit: cover; object-position: center 40%; border-radius: 8px }
.st-bub p { margin: 8px 6px 2px; font-size: 13.5px; line-height: 1.5; white-space: pre-line; color: #111b21 }
.st-bub .tm { display: block; text-align: right; font-size: 11px; color: #667781; margin: 2px 6px 0 }
.tk { color: #53bdeb }
.st-m-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; position: sticky; bottom: 0; background: var(--surface, #fff); border-top: 1px solid var(--line, #dfe5f0) }

[data-theme="dark"] .st-wa { background: #0b141a }
[data-theme="dark"] .st-dot { border-color: #1b2134 }

@media (max-width: 1100px) {
  .st-main { grid-template-columns: 1fr }
  .st-stage, .st-panel { position: static }
  .st-panel { max-height: none }
  .st-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)) }
  .st-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 640px) {
  .st-stage { padding: 10px; border-radius: 20px }
  .st-seg button { padding: 8px 11px; font-size: 13px }
  .st-range input { width: 90px }
  .st-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .st-boq { padding: 18px; border-radius: 20px }
  .st-total { text-align: left }
  .st-hint { white-space: normal; width: 86%; text-align: center }
  .st-actions, .st-actions .st-btn { width: 100% }
  .st-actions .st-btn { justify-content: center }
}
@media (prefers-reduced-motion: reduce) { .st * { transition: none !important } }
