/* Design studio — full-screen editor */
:root { --ink:#0c1b3d; --ink-2:#3a4866; --paper:#eef0f4; --hair:#dde2ea; --c:#00aeef; --m:#ec008c; --y:#ffe600;
  --font:'Figtree','Inter',system-ui,sans-serif; --display:'Bricolage Grotesque','Figtree',system-ui,sans-serif; }
@font-face { font-family:'Bricolage Grotesque'; font-weight:200 800; font-display:swap; src:url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family:'Figtree'; font-weight:300 900; font-display:swap; src:url('../fonts/figtree-latin-wght-normal.woff2') format('woff2'); }
* { box-sizing: border-box; }
html, body.sx { height: 100%; margin: 0; }
body.sx { font-family: var(--font); color: var(--ink); background: var(--paper); overflow: hidden; display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; }
.sx svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sx button { font: inherit; color: inherit; cursor: pointer; }
.sx :focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }

/* top bar */
.sx-top { height: 64px; flex: none; background: #fff; border-bottom: 1px solid var(--hair); display: flex; align-items: center; gap: 14px; padding: 0 16px; z-index: 20; }
.sx-back { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ink); }
.sx-back:hover { background: var(--paper); }
.sx-brand { font: 800 18px var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.sx-prodname { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 14px; border-left: 1px solid var(--hair); height: 36px; font-weight: 700; }
.sx-prodname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
.sx-tools { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.sx-saved { font-size: 13px; color: var(--ink-2); margin-right: 8px; white-space: nowrap; }
.sx-ibtn { width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; }
.sx-ibtn:hover:not(:disabled) { background: var(--paper); }
.sx-ibtn:disabled { opacity: .3; cursor: default; }
.sx-end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.sx-link { display: flex; align-items: center; gap: 8px; border: 0; background: none; font-weight: 700; padding: 8px 10px; border-radius: 10px; }
.sx-link:hover { background: var(--paper); }
.sx-price { display: flex; align-items: baseline; gap: 6px; }
.sx-price small { color: var(--ink-2); font-size: 13px; }
.sx-price b { font: 800 22px var(--display); letter-spacing: -.02em; }
.sx-cta { border: 0; background: var(--m); color: #fff; font-weight: 800; font-size: 16px; padding: 0 26px; height: 46px; border-radius: 12px; box-shadow: 0 12px 24px -12px rgba(236,0,140,.8); transition: transform .15s, filter .15s; }
.sx-cta:hover { transform: translateY(-1px); filter: brightness(.95); }
.sx-cta:disabled { opacity: .6; cursor: wait; }

/* layout */
.sx-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 92px 340px minmax(0, 1fr) 120px; }
.sx-rail { background: #fff; border-right: 1px solid var(--hair); display: flex; flex-direction: column; padding: 10px 6px; gap: 2px; overflow-y: auto; }
.sx-rail button { border: 0; background: none; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.sx-rail button:hover { background: var(--paper); }
.sx-rail button.on { background: #e5f6fd; color: #006b94; }
.sx-panel { background: #fff; margin: 12px 0 12px 12px; border-radius: 18px; box-shadow: 0 0 0 1px var(--hair), 0 20px 40px -30px rgba(12,27,61,.4); overflow: hidden; display: flex; }
.sx-panel-in { padding: 20px; overflow-y: auto; width: 100%; }
.sx-panel h2 { font: 800 22px var(--display); letter-spacing: -.02em; margin: 0 0 14px; }
.sx-panel h3 { font: 700 13px var(--font); margin: 20px 0 8px; color: var(--ink-2); }
.sx-panel p.hint { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 0 0 12px; }
.sx-work { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.sx-sides { padding: 20px 12px; display: flex; flex-direction: column; gap: 14px; align-items: center; overflow-y: auto; }

/* panel components */
.sx-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: 12px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.sx-btn:hover { background: #162a57; }
.sx-btn.alt { background: #fff; color: var(--ink); }
.sx-btn.alt:hover { background: var(--paper); }
.sx-btn.hot { background: var(--c); border-color: var(--c); color: var(--ink); }
.sx-btn.hot:hover { filter: brightness(.95); }
.sx-btn.sm { min-height: 38px; font-size: 14px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chip { border: 1.5px solid var(--hair); background: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; text-align: left; line-height: 1.3; }
.sx-chip small { display: block; font-weight: 700; color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.sx-chip:hover { border-color: var(--ink); }
.sx-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sx-chip.on small { color: #c9d4ee; }
.sx-qty { display: inline-flex; border: 1.5px solid var(--hair); border-radius: 12px; overflow: hidden; }
.sx-qty button { width: 44px; height: 44px; border: 0; background: var(--paper); font-size: 20px; }
.sx-qty button:hover { background: var(--ink); color: #fff; }
.sx-qty input { width: 64px; text-align: center; border: 0; font: 700 16px var(--font); }
.sx-panel textarea, .sx-panel input[type=text], .sx-panel select { width: 100%; border: 1.5px solid var(--hair); border-radius: 10px; padding: 10px 12px; font: 500 15px var(--font); color: var(--ink); background: #fff; }
.sx-panel textarea { min-height: 84px; resize: vertical; }
.sx-panel textarea:focus, .sx-panel input:focus, .sx-panel select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,174,239,.25); outline: 0; }
.sx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sx-tile { aspect-ratio: 1; border: 1.5px solid var(--hair); border-radius: 12px; background: var(--paper); display: grid; place-items: center; padding: 0; overflow: hidden; }
.sx-tile:hover { border-color: var(--ink); }
.sx-tile img { width: 100%; height: 100%; object-fit: cover; }
.sx-tile svg { width: 46px; height: 46px; stroke-width: 0; fill: var(--ink); }
.sx-tile.emoji { font-size: 34px; line-height: 1; }
.sx-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sx-sw { aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--hair); padding: 0; }
.sx-sw:hover { box-shadow: 0 0 0 2px var(--ink); }
.sx-sw.on { box-shadow: 0 0 0 3px var(--ink); }
.sx-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sx-tpl { border: 1.5px solid var(--hair); border-radius: 14px; background: #fff; padding: 0; overflow: hidden; text-align: left; }
.sx-tpl:hover { border-color: var(--ink); }
.sx-tpl .pv { aspect-ratio: 1.4; display: grid; place-items: center; font: 800 26px var(--display); }
.sx-tpl b { display: block; padding: 8px 12px 10px; font-size: 13.5px; }
.sx-txtrow { display: flex; align-items: center; gap: 8px; width: 100%; border: 1.5px solid var(--hair); background: #fff; border-radius: 10px; padding: 10px 12px; text-align: left; margin-bottom: 8px; font-size: 15px; }
.sx-txtrow:hover, .sx-txtrow.on { border-color: var(--ink); }
.sx-txtrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-presets button { display: block; width: 100%; text-align: left; border: 1.5px solid var(--hair); background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.sx-presets button:hover { border-color: var(--ink); }
.sx-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.sx-switch { position: relative; width: 44px; height: 26px; border-radius: 99px; border: 0; background: #c3cbda; padding: 0; transition: background .15s; flex: none; }
.sx-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sx-switch.on { background: var(--ink); }
.sx-switch.on::after { transform: translateX(18px); }
.sx-sum { background: var(--paper); border-radius: 14px; padding: 14px 16px; margin-top: 18px; font-size: 14px; display: grid; gap: 6px; }
.sx-sum div { display: flex; justify-content: space-between; gap: 12px; }
.sx-sum b { font-weight: 700; }
.sx-note { background: #fff6cf; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }

/* contextual toolbar */
.sx-ctx { min-height: 56px; flex: none; margin: 12px 16px 0; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); display: flex; align-items: center; gap: 4px; padding: 6px 10px; overflow-x: auto; scrollbar-width: none; }
.sx-ctx::-webkit-scrollbar { display: none; }
.sx-ctx .hintx { color: var(--ink-2); font-size: 14px; padding: 0 6px; white-space: nowrap; }
.sx-ctx .sep { width: 1px; align-self: stretch; background: var(--hair); margin: 4px 6px; flex: none; }
.sx-ctx button, .sx-ctx select, .sx-ctx label.cb { height: 40px; min-width: 40px; border: 1.5px solid transparent; background: transparent; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; font: 700 14px var(--font); flex: none; }
.sx-ctx button:hover, .sx-ctx label.cb:hover { background: var(--paper); }
.sx-ctx button.on { background: #e5f6fd; border-color: var(--c); }
.sx-ctx select { border-color: var(--hair); max-width: 170px; background: #fff; }
.sx-ctx input[type=number] { width: 58px; height: 40px; border: 1.5px solid var(--hair); border-radius: 10px; text-align: center; font: 700 14px var(--font); }
.sx-ctx input[type=color] { width: 34px; height: 34px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.sx-ctx input[type=range] { width: 90px; accent-color: var(--ink); }
.sx-ctx label.cb { cursor: pointer; }
.sx-ctx .sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--hair); display: block; }
.sx-ctx .del:hover { background: #ffe5e9; color: #b3001b; }

/* canvas */
.sx-canvas { position: relative; flex: 1; min-height: 0; display: flex; overflow: auto; padding: 56px 40px 70px 56px; }
.sx-pills { position: absolute; top: 14px; right: 18px; display: flex; gap: 8px; z-index: 3; }
.sx-pills button { border: 1.5px solid #2aa876; color: #12603f; background: #e8f8f0; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; opacity: .55; }
.sx-pills button + button { border-color: var(--c); color: #006b94; background: #e5f6fd; }
.sx-pills button.on { opacity: 1; }
.sx-frame { position: relative; margin: auto; flex: none; }
.sx-mock { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; border-radius: 10px; }
.sx-frame.scene .sx-stage-clip { position: absolute; box-shadow: 0 0 0 1.5px rgba(236,0,140,.7), 0 2px 10px rgba(0,0,0,.25); }
.sx-pills button[hidden] { display: none; }
.sx-modal-grid figure.onprod { grid-column: 1 / -1; }
.sx-mp { position: relative; max-width: min(560px, 100%); max-height: 62vh; margin: 0 auto; }
.sx-modal-grid .sx-mp img { display: block; width: 100%; height: 100%; max-height: none; box-shadow: none; border-radius: 10px; background: none; }
.sx-modal-grid .sx-mp img.d { position: absolute; width: auto; height: auto; box-shadow: none; background: none; }
.sx-stage-clip { position: relative; box-shadow: 0 0 0 1.5px var(--c), 0 30px 60px -34px rgba(12,27,61,.55); background: #fff; overflow: hidden; touch-action: none; }
.sx-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: visible; }
.sx-guide { position: absolute; pointer-events: none; z-index: 900; }
.sx-guide.bleed { inset: 0; border: 2px solid rgba(0,174,239,.0); }
.sx-guide.safe { border: 2px dashed #2aa876; }
.sx-snap { position: absolute; background: var(--m); z-index: 950; display: none; pointer-events: none; }
.sx-snap.v { width: 2px; top: 0; bottom: 0; } .sx-snap.h { height: 2px; left: 0; right: 0; }
.sx-dim-v, .sx-dim-h { position: absolute; color: var(--ink-2); font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.sx-dim-v { left: -40px; top: 0; bottom: 0; width: 22px; border-left: 1.5px solid var(--ink-2); border-top: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); border-right: 0; width: 10px; left: -22px; }
.sx-dim-v span { position: absolute; left: -48px; transform: none; background: var(--paper); padding: 2px 4px; white-space: nowrap; }
.sx-dim-h { left: 0; right: 0; bottom: -28px; height: 10px; border: 1.5px solid var(--ink-2); border-top: 0; }
.sx-dim-h span { background: var(--paper); padding: 0 8px; transform: translateY(8px); }
.sx-zoom { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair), 0 14px 30px -16px rgba(12,27,61,.5); display: flex; align-items: center; padding: 4px; z-index: 4; }
.sx-zoom button { width: 44px; height: 40px; border: 0; background: none; border-radius: 10px; font-size: 22px; }
.sx-zoom .z-val { width: 74px; font: 700 15px var(--font); }
.sx-zoom button:hover { background: var(--paper); }

/* objects */
.ob { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; user-select: none; touch-action: none; cursor: move; }
.ob.text { white-space: pre-wrap; word-break: break-word; line-height: 1.15; cursor: move; }
.ob.text[contenteditable="true"] { cursor: text; user-select: text; outline: none; }
.ob.image img, .ob.shape svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.ob.image img { object-fit: fill; }
.ob.shape svg { stroke-width: 0; overflow: visible; }
.ob.hover:not(.sel)::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--c); pointer-events: none; opacity: .6; }
.ob.sel::after { content: ""; position: absolute; inset: -3px; border: 2.5px solid var(--c); pointer-events: none; }
.hd { position: absolute; width: 16px; height: 16px; background: #fff; border: 2.5px solid var(--c); border-radius: 50%; z-index: 960; touch-action: none; }
.hd.nw { left: -11px; top: -11px; cursor: nwse-resize; } .hd.ne { right: -11px; top: -11px; cursor: nesw-resize; }
.hd.sw { left: -11px; bottom: -11px; cursor: nesw-resize; } .hd.se { right: -11px; bottom: -11px; cursor: nwse-resize; }
.hd.rot { left: 50%; top: -40px; margin-left: -8px; cursor: grab; background: var(--c); }
.hd.rot::before { content: ""; position: absolute; left: 5px; top: 14px; width: 2px; height: 22px; background: var(--c); }
.sx-stage.dragover::after { content: "Drop image to add"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,174,239,.2); font: 800 54px var(--display); z-index: 999; color: var(--ink); }

/* sides */
.sx-side { border: 0; background: none; padding: 0; text-align: center; font-weight: 700; font-size: 14px; }
.sx-side canvas { display: block; width: 92px; height: auto; max-height: 120px; object-fit: contain; border: 2px solid var(--hair); border-radius: 8px; background: #fff; margin-bottom: 6px; }
.sx-side.on canvas { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); }

/* modal + toast */
.sx-modal { position: fixed; inset: 0; background: rgba(8,18,44,.6); display: grid; place-items: center; z-index: 100; padding: 20px; }
.sx-modal[hidden] { display: none; }
.sx-modal-card { background: #fff; border-radius: 20px; width: min(1000px, 100%); max-height: 92vh; overflow: auto; padding: 28px; position: relative; }
.sx-modal-x { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 32px; line-height: 1; width: 40px; height: 40px; border-radius: 10px; }
.sx-modal-x:hover { background: var(--paper); }
.sx-modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: start; }
.sx-modal-grid figure { margin: 0; text-align: center; }
.sx-modal-grid img { max-width: 100%; max-height: 62vh; border-radius: 10px; box-shadow: 0 0 0 1px var(--hair), 0 24px 40px -24px rgba(12,27,61,.5); background: #fff; }
.sx-modal-grid figcaption { margin-top: 10px; font-weight: 700; font-size: 14px; }
.sx-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 120; max-width: 90vw; }
.sx-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1180px) { .sx-body { grid-template-columns: 84px 300px minmax(0,1fr) 104px; } .sx-prodname span { max-width: 18ch; } .sx-saved { display: none; } }
@media (max-width: 900px) {
  .sx-top { height: 56px; padding: 0 10px; gap: 6px; }
  .sx-brand, .sx-prodname, .sx-link span { display: none; }
  .sx-end { gap: 8px; } .sx-price small { display: none; } .sx-price b { font-size: 18px; }
  .sx-cta { height: 42px; padding: 0 16px; font-size: 15px; }
  .sx-body { display: flex; flex-direction: column-reverse; position: relative; }
  .sx-rail { flex-direction: row; overflow-x: auto; padding: 4px; border-right: 0; border-top: 1px solid var(--hair); flex: none; gap: 0; }
  .sx-rail button { flex: 0 0 auto; min-width: 74px; padding: 8px 6px; font-size: 11.5px; }
  .sx-panel { position: static; flex: none; margin: 0; border-radius: 18px 18px 0 0; height: 40vh; box-shadow: 0 -14px 30px -20px rgba(12,27,61,.5); }
  .sx-panel.closed { display: none; }
  .sx-panel-in { padding: 16px; }
  .sx-work { flex: 1; min-height: 0; }
  .sx-ctx { margin: 8px 8px 0; }
  .sx-canvas { padding: 36px 26px 56px 40px; }
  .sx-pills { top: 6px; right: 8px; } .sx-pills button { font-size: 11.5px; padding: 3px 9px; }
  .sx-sides { position: absolute; right: 8px; top: 120px; flex-direction: row; padding: 0; z-index: 5; gap: 8px; overflow: visible; }
  .sx-side canvas { width: 54px; } .sx-side { font-size: 11px; }
  .sx-zoom { bottom: 6px; left: 8px; transform: none; } .sx-zoom button { width: 38px; height: 36px; }
  .sx-dim-v span { left: -34px; font-size: 11px; }
}
.sx-sheet-x { display: none; }
@media (pointer: coarse) {
  .sx .hd { width: 26px; height: 26px; margin: -13px; }
  .sx-ctx button, .sx-ctx select, .sx-ctx label.cb { min-height: 40px; }
}
@media (max-width: 900px) {
  .sx-sheet-x { display: block; position: sticky; top: 0; z-index: 2; width: 100%; height: 22px; background: #fff; border: 0; padding: 0; }
  .sx-sheet-x span { display: block; width: 44px; height: 5px; border-radius: 3px; background: #c4cbd8; margin: 8px auto 0; }
  .sx-panel { height: 42vh; overscroll-behavior: contain; }
  .sx-ctx { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sx-ctx > * { flex: none; }
  .sx-canvas { padding: 34px 10px 52px 10px; overscroll-behavior: contain; }
  .sx-sides { top: 172px; bottom: auto; right: 8px; }
  .sx-side { font-size: 0 !important; } .sx-side canvas { width: 44px; }
  .sx-body { padding-bottom: env(safe-area-inset-bottom); }
  .sx-top { padding-top: env(safe-area-inset-top); }
}
@media (prefers-reduced-motion: reduce) { .sx * { transition: none !important; } }

.sx-err { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: #b3001b; color: #fff; padding: 12px 18px; font-weight: 600; text-align: center; }
.sx-err button { background: none; border: 0; color: #fff; font-size: 22px; margin-left: 12px; cursor: pointer; }

.sx-gridov { position: absolute; inset: 0; pointer-events: none; z-index: 880; background-image: linear-gradient(rgba(12,27,61,.25) 3px, transparent 3px), linear-gradient(90deg, rgba(12,27,61,.25) 3px, transparent 3px); display: none; }
.sx-q { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.sx-q.ok { background: #e3f7ec; color: #12603f; } .sx-q.mid { background: #fff3d6; color: #8a5a00; } .sx-q.low { background: #ffe5e9; color: #b3001b; }
.sx-layers { display: grid; gap: 6px; }
.sx-layer { display: flex; gap: 6px; align-items: center; background: #f4f6fb; border-radius: 10px; padding: 4px; }
.sx-layer.on { box-shadow: 0 0 0 2px var(--c); background: #eaf7fd; } .sx-layer.off .nm { opacity: .45; text-decoration: line-through; }
.sx-layer .nm { flex: 1; text-align: left; border: 0; background: transparent; padding: 9px 8px; font: 600 14px var(--font); cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-layer button:not(.nm) { border: 0; background: #fff; border-radius: 8px; padding: 8px 10px; font: 600 12.5px var(--font); cursor: pointer; box-shadow: 0 0 0 1px var(--hair); }
.sx-input { width: 100%; border: 1.5px solid var(--hair); border-radius: 12px; padding: 12px 14px; font: 500 15px var(--font); }

.sx-flds { display: grid; gap: 8px; }
.sx-fld { display: grid; gap: 3px; padding: 8px 10px; border: 1.5px solid var(--hair); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sx-fld span { font: 600 12px var(--font); color: var(--ink-2); }
.sx-fld input { border: 0; outline: 0; font: 600 16px var(--font); padding: 4px 0; width: 100%; min-width: 0; color: var(--ink); background: transparent; }
.sx-fld input::placeholder { color: #a7b0c4; font-weight: 500; }
.sx-fld.on, .sx-fld:focus-within { border-color: var(--c); box-shadow: 0 0 0 3px rgba(0,174,239,.18); }
.sx-kt { display: grid; gap: 14px; }
.sx-kt-i { border: 1.5px solid var(--hair); border-radius: 16px; padding: 10px; background: #fff; }
.sx-kt-i.on { border-color: var(--c); box-shadow: 0 0 0 3px rgba(0,174,239,.15); }
.sx-kt-pv { display: block; width: 100%; border: 0; padding: 0; background: #f1f3f8; border-radius: 10px; cursor: pointer; overflow: hidden; }
.sx-kt-pv img { width: 100%; display: block; }
.sx-kt-dots { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .sx-kt-dots b { font: 700 14px var(--font); margin-right: auto; }
.sx-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--hair); cursor: pointer; padding: 0; } .sx-dot.on { box-shadow: 0 0 0 2.5px var(--ink); }
@media (max-width: 900px) { .sx-panel { display: flex !important; flex-direction: column; overflow: hidden; } .sx-panel.closed { display: none !important; } .sx-panel-in { flex: 1; min-height: 0; overflow-y: auto; width: 100%; } }

.sx-review { max-width: 520px; margin: 0 auto; grid-column: 1 / -1; }
.sx-review h2 { font: 800 22px var(--display); margin: 0 0 12px; }
.sx-review ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.sx-review li { background: #fff6dd; border-left: 4px solid #f5a300; border-radius: 10px; padding: 12px 14px; line-height: 1.45; }
.sx-review-b { display: flex; gap: 10px; flex-wrap: wrap; } .sx-review-b .sx-btn { flex: 1 1 180px; }
