/* Rabiti studio — editor, appearance, live preview, audience and link analytics. */
.st .ico, .st-preview .ico, .modal .ico, .st-quick-actions .ico, .st-ic-tile .ico { width: 18px; height: 18px; flex: none; display: block; }
.btn .ico { width: 16px; height: 16px; }
.st-head { align-items: flex-end; }
.spacer { flex: 1; }
code { font-family: var(--mono); font-size: .88em; background: var(--line-2); padding: 1px 5px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- live preview ---------- */
.st-preview { display: none; }
.st-preview-fab { display: none; }
body.has-preview .st-preview {
  display: flex; flex-direction: column; gap: 10px; position: fixed; z-index: 20;
  inset-inline-end: 24px; top: 84px; bottom: 18px; width: 352px;
}
body.has-preview .content { padding-inline-end: calc(352px + 52px); max-width: 1560px; }
.st-preview-top { display: flex; align-items: center; gap: 8px; padding-inline: 6px; }
.st-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: var(--muted); }
.st-live i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: stLive 2s infinite; }
@keyframes stLive { 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.st-preview-close { display: none !important; }
.st-phone { flex: 1; min-height: 0; max-height: 760px; width: 100%; margin: 0 auto; border-radius: 42px; border: 9px solid #161a33; border-top-width: 30px; background: #161a33; box-shadow: 0 30px 60px -30px rgba(22,26,51,.55), 0 0 0 1px rgba(22,26,51,.12); position: relative; }
.st-phone::before { content: ''; position: absolute; top: -22px; left: 50%; translate: -50% 0; width: 74px; height: 14px; border-radius: 99px; background: #05070f; z-index: 2; }
.st-phone iframe { width: 100%; height: 100%; border: 0; display: block; border-radius: 8px 8px 33px 33px; background: #fff; }
.st-preview-foot { display: flex; gap: 8px; justify-content: center; }
@media (max-width: 1180px) {
  body.has-preview .content { padding-inline-end: 30px; }
  body.has-preview .st-preview { display: none; }
  body.has-preview .st-preview-fab { display: inline-flex; position: fixed; z-index: 35; inset-inline-start: 50%; translate: 50% 0; bottom: 86px; align-items: center; gap: 7px; padding: 11px 18px; border-radius: 99px; border: 0; background: var(--ink); color: #fff; font-weight: 800; font-size: 13.5px; box-shadow: 0 14px 30px -10px rgba(16,24,40,.5); }
  body.has-preview.st-show-preview .st-preview { display: flex; inset: 0; width: auto; top: 0; bottom: 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); background: rgba(16,20,40,.72); backdrop-filter: blur(8px); z-index: 80; }
  body.st-show-preview .st-preview-top { color: #fff; }
  body.st-show-preview .st-live { color: #e4e7ff; }
  body.st-show-preview .st-preview-close { display: inline-flex !important; color: #fff; background: rgba(255,255,255,.12); }
  body.st-show-preview .st-phone { width: min(390px, 100%); max-height: none; }
  body.st-show-preview .st-preview-fab { display: none; }
}
@media (min-width: 1181px) and (max-width: 1380px) {
  body.has-preview .st-preview { width: 310px; }
  body.has-preview .content { padding-inline-end: calc(310px + 48px); }
}

/* ---------- collapsible sections ---------- */
.st-sec { margin-bottom: 16px; }
.st-sec-head { cursor: pointer; user-select: none; }
.st-chev { color: var(--muted); transition: transform .2s; display: grid; }
.st-sec.collapsed .st-chev { transform: rotate(180deg); }
.st-sec.collapsed > .card-body { display: none; }
.st-sec.collapsed > .card-head { border-bottom: 0; }

/* ---------- profile and socials ---------- */
.st-profile { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.st-avatar-edit { display: grid; justify-items: center; gap: 8px; }
.st-av { width: 86px; height: 86px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 30px; font-weight: 900; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.st-av img { width: 100%; height: 100%; object-fit: cover; }
.st-av-tools { display: flex; gap: 5px; }
.st-profile-fields .field:last-of-type { margin-bottom: 8px; }
.st-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; }
.st-switch-row b { display: block; font-size: 13.5px; }
.st-switch-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.st-switches { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin-bottom: 8px; }
.st-switches .st-switch-row { border-bottom: 1px solid var(--line-2); }
.st-socials { display: grid; gap: 8px; }
.st-soc { display: grid; grid-template-columns: auto 38px 1fr auto auto; align-items: center; gap: 8px; background: #fff; border-radius: 12px; }
.st-soc.off .st-soc-ic, .st-soc.off .input { opacity: .5; }
.st-soc-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--line-2); display: grid; place-items: center; }
.st-soc-ic .ico { width: 20px; height: 20px; }
.st-soc .input { padding: 9px 12px; font-size: 14px; }

/* ---------- block list ---------- */
.st-add-row { display: flex; gap: 10px; margin: 4px 0 14px; flex-wrap: wrap; }
.st-quick { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 8px; padding: 6px; padding-inline-start: 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.st-quick:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59,69,196,.12); }
.st-quick-ic { color: var(--accent); display: grid; }
.st-quick input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14.5px; padding: 8px 0; }
.st-add-block { border-radius: 16px; padding-inline: 16px; }
.st-list { display: grid; gap: 10px; }
.st-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, opacity .2s; }
.st-card:hover { border-color: #d5d9e4; }
.st-card.expanded { box-shadow: var(--shadow); border-color: #cfd3ea; }
.st-card.off { background: #fbfbfc; border-style: dashed; }
.st-card.off .st-ico, .st-card.off .st-fields { opacity: .55; }
.st-card.flash { animation: stFlash 1.2s ease; }
@keyframes stFlash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: var(--shadow-sm); } }
.st-card-main { display: flex; align-items: center; gap: 10px; padding: 12px 12px 4px; }
.st-grip { width: 30px; height: 34px; flex: none; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--muted-2); cursor: grab; touch-action: none; }
.st-grip:hover, .st-grip:focus-visible { background: var(--line-2); color: var(--ink-2); }
.st-sorting, .st-sorting * { cursor: grabbing !important; user-select: none; }
.st-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; overflow: hidden; }
.st-ico .ico { width: 21px; height: 21px; }
.st-ico img { width: 100%; height: 100%; object-fit: cover; }
.st-emoji { font-size: 21px; line-height: 1; }
.st-fields { flex: 1; min-width: 0; display: grid; gap: 1px; }
.st-inline { width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 4px 7px; outline: 0; color: var(--ink); transition: background .15s; }
.st-inline:hover { background: var(--line-2); }
.st-inline:focus { background: #f3f4ff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.st-title { font-weight: 800; font-size: 14.5px; }
.st-url { font-size: 12.5px; color: var(--muted); font-family: var(--mono); text-align: left; }
.st-fields-btn { border: 0; background: none; text-align: start; padding: 4px 7px; border-radius: 8px; }
.st-fields-btn:hover { background: var(--line-2); }
.st-fields-btn b { display: block; font-size: 14px; }
.st-fields-btn span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 2px 12px 9px; padding-inline-start: 92px; }
.st-feat { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 12px; font-weight: 700; position: relative; }
.st-feat .ico, .st-feat .ic { width: 15px; height: 15px; }
.st-feat:hover { background: var(--line-2); color: var(--ink-2); }
.st-feat.on { color: var(--accent-ink); }
.st-feat.on::after { content: ''; position: absolute; top: 4px; inset-inline-end: 4px; width: 6px; height: 6px; border-radius: 50%; background: #e6a100; }
.st-feat.active { background: var(--accent-soft); color: var(--accent-ink); }
.st-card-tools .chip { font-size: 11px; padding: 2px 8px; }
.danger-ghost:hover { color: #be123c; background: var(--rose-soft); }
.st-card-body { border-top: 1px solid var(--line-2); padding: 14px 16px 6px; background: #fcfcfe; border-radius: 0 0 16px 16px; }
.st-card-body .field { margin-bottom: 12px; }
.st-card-body > .seg, .st-card-body .st-seg { margin-bottom: 12px; }
.st-panel-title { font-size: 13px; font-weight: 900; margin: 0 0 8px; color: var(--ink); }
.st-placeholder { border: 2px dashed #b7bcf2; background: #f3f4ff; border-radius: 16px; }
.st-dragging { position: fixed !important; z-index: 200; box-shadow: var(--shadow-lg) !important; pointer-events: none; opacity: .96; }
.st-hint { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.st-hint .ic { margin-top: 3px; }
.st-empty { text-align: center; padding: 38px 20px; border: 2px dashed var(--line); border-radius: 20px; background: #fff; }
.st-empty-art { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.st-empty-art .ico { width: 30px; height: 30px; }
.st-empty h3 { margin: 0 0 6px; font-size: 17px; }
.st-empty p { margin: 0 auto 16px; color: var(--muted); max-width: 380px; font-size: 13.5px; }

/* editor sub-controls */
.st-seg { display: inline-flex; flex: none; }
.st-seg button { flex: 0 1 auto; }
.st-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; max-height: 232px; overflow: auto; padding: 8px 2px 10px; margin-top: 10px; }
.st-icon-grid button { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; border-radius: 11px; display: grid; place-items: center; color: var(--ink-2); }
.st-icon-grid.brands button { color: var(--c); }
.st-icon-grid button:hover { border-color: var(--accent); }
.st-icon-grid button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.st-emoji-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.st-emoji-row button { width: 40px; height: 40px; font-size: 20px; border: 1px solid var(--line); background: #fff; border-radius: 11px; }
.st-emoji-row button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.st-anim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.st-anim-tile { display: grid; justify-items: center; gap: 8px; padding: 12px 8px 10px; border: 1px solid var(--line); background: #fff; border-radius: 12px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.st-anim-tile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); color: var(--accent-ink); }
.st-anim-demo { width: 78%; height: 16px; border-radius: 6px; background: #dfe2f5; position: relative; overflow: hidden; }
.st-anim-demo.anim-pulse { animation: stPulse 2s infinite; }
.st-anim-demo.anim-shake { animation: stShake 2.4s infinite; }
.st-anim-demo.anim-glow { animation: stGlow 2s infinite; }
.st-anim-demo.anim-bounce { animation: stBounce 2s infinite; }
.st-anim-demo.anim-shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.95) 50%, transparent 70%) no-repeat; background-size: 250% 100%; animation: stShine 2.2s infinite; }
@keyframes stPulse { 0% { box-shadow: 0 0 0 0 rgba(59,69,196,.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(59,69,196,0); } }
@keyframes stShake { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-4deg); } 82% { transform: rotate(4deg); } 88% { transform: rotate(-2deg); } }
@keyframes stGlow { 50% { box-shadow: 0 0 14px 1px var(--accent); } }
@keyframes stBounce { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-5px); } 80% { transform: translateY(0); } 88% { transform: translateY(-2px); } }
@keyframes stShine { 0%, 40% { background-position: 130% 0; } 90%, 100% { background-position: -30% 0; } }
.st-img-field { display: flex; align-items: center; gap: 10px; }
.st-img-field > img, .st-img-ph { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; background: var(--line-2); display: grid; place-items: center; color: var(--muted-2); border: 1px solid var(--line); }
.st-img-tools { flex: 1; min-width: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.st-img-tools .input { flex: 1; min-width: 160px; padding: 8px 11px; font-size: 13px; }
.st-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; margin-bottom: 12px; }
.st-gal-item { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.st-gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.st-gal-item .input { padding: 6px 8px; font-size: 12px; }
.st-gal-tools { display: flex; justify-content: space-between; }
.st-gal-add { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 150px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 12.5px; font-weight: 800; cursor: pointer; }
.st-gal-add:hover { border-color: var(--accent); color: var(--accent-ink); }
.st-faq { display: grid; gap: 8px; margin-bottom: 10px; }
.st-faq-item { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.st-faq-item .input, .st-faq-item .textarea { grid-column: 1; padding: 8px 11px; font-size: 13.5px; }
.st-faq-item .btn { grid-column: 2; grid-row: 1; }
.st-prod-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.st-prod-pick label { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-size: 12.5px; }
.st-prod-pick label.off { opacity: .55; }
.st-prod-pick label:has(input:checked) { border-color: var(--accent); background: #f3f4ff; }
.st-prod-pick input { accent-color: var(--accent); }
.st-prod-pick span { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; flex: none; }
.st-prod-pick span img { width: 100%; height: 100%; object-fit: cover; }
.st-prod-pick b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- appearance ---------- */
.st-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 12px; }
.st-preset { border: 0; background: none; padding: 0; display: grid; gap: 7px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.st-preset-art { aspect-ratio: 3 / 4.1; border-radius: 14px; padding: 14px 11px; display: grid; align-content: start; justify-items: center; gap: 6px; box-shadow: inset 0 0 0 1px rgba(16,24,40,.08); transition: transform .2s, box-shadow .2s; }
.st-preset-art i { width: 24px; height: 24px; border-radius: 50%; margin-bottom: 4px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.st-preset-art em { width: 100%; height: 13px; display: block; }
.st-preset:hover .st-preset-art { transform: translateY(-2px); }
.st-preset.on .st-preset-art { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--accent); }
.st-preset.on b { color: var(--accent-ink); }
.st-layouts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.st-lay { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 6px 7px; display: grid; gap: 6px; justify-items: center; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.st-lay.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); color: var(--accent-ink); }
.st-lay-art { width: 100%; aspect-ratio: 3 / 4; border-radius: 8px; background: #eef0fb; padding: 7px 6px; display: grid; align-content: start; justify-items: center; gap: 4px; overflow: hidden; }
.st-lay-art .c { width: 18px; height: 18px; border-radius: 50%; background: #8f97ff; }
.st-lay-art .c.o { margin-top: -10px; box-shadow: 0 0 0 2px #eef0fb; }
.st-lay-art .c.s { width: 14px; height: 14px; }
.st-lay-art .cov { width: 100%; height: 18px; border-radius: 4px; background: #c9cdff; }
.st-lay-art .pst { width: calc(100% + 12px); margin: -7px -6px 0; height: 40%; background: linear-gradient(#8f97ff, #eef0fb); }
.st-lay-art .sd { display: flex; align-items: center; gap: 4px; width: 100%; }
.st-lay-art em { display: block; height: 4px; border-radius: 3px; background: #aab1ff; flex: 1; }
.st-lay-art em.big { width: 70%; height: 7px; flex: none; margin: 6px 0 2px; }
.st-lay-art b { display: block; width: 100%; height: 8px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px #d6d9f5; }
.st-shapes { display: flex; flex-wrap: wrap; gap: 8px; }
.st-shapes button { display: grid; justify-items: center; gap: 5px; padding: 8px 10px; border: 1px solid var(--line); background: #fff; border-radius: 12px; font-size: 11.5px; font-weight: 800; color: var(--ink-2); min-width: 72px; }
.st-shapes button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); color: var(--accent-ink); }
.st-shape { width: 34px; height: 34px; background: linear-gradient(140deg, #8f97ff, #3b45c4); }
.st-shape-circle { border-radius: 50%; } .st-shape-squircle { border-radius: 30%; } .st-shape-square { border-radius: 5px; }
.st-shape-arch { border-radius: 99px 99px 5px 5px; } .st-shape-blob { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.st-shape-khatam { clip-path: polygon(50% 0, 63% 19%, 85% 15%, 81% 37%, 100% 50%, 81% 63%, 85% 85%, 63% 81%, 50% 100%, 37% 81%, 15% 85%, 19% 63%, 0 50%, 19% 37%, 15% 15%, 37% 19%); }
.st-shape-hexagon { clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.st-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; margin-bottom: 14px; }
.st-color { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; }
.st-color b { display: block; font-size: 12.5px; }
.st-swatch { position: relative; width: 38px; height: 38px; flex: none; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(16,24,40,.14); overflow: hidden; }
.st-swatch input[type=color] { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); opacity: 0; cursor: pointer; border: 0; padding: 0; }
.st-hex { width: 96px; border: 0; background: none; padding: 1px 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); outline: 0; text-align: left; }
.st-hex:focus { color: var(--ink); }
.st-range { display: flex; align-items: center; gap: 12px; }
.st-range input { flex: 1; accent-color: var(--accent); }
.st-range output { min-width: 56px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--line-2); border-radius: 8px; padding: 4px 6px; }
.st-patterns { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.st-patterns button { display: grid; gap: 5px; justify-items: center; padding: 6px; border: 1px solid var(--line); background: #fff; border-radius: 12px; font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.st-patterns button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); color: var(--accent-ink); }
.st-pat { width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; background-size: 36px; }
.st-btn-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; margin-bottom: 14px; }
.st-bs { padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #f6f7fb; overflow: hidden; }
.st-bs.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.st-bs-demo { display: block; margin: 14px 10px; padding: 9px 6px; border-radius: var(--r); font-size: 12px; font-weight: 800; border: 1.5px solid transparent; background: var(--bb); color: var(--bt); }
.st-bs-soft { background: color-mix(in srgb, var(--bb) 75%, #fff); box-shadow: inset 0 0 0 1px rgba(16,24,40,.08); }
.st-bs-outline { background: transparent; border-color: var(--bb); color: var(--bb); filter: brightness(.6); }
.st-bs-glass { background: color-mix(in srgb, var(--bb) 25%, transparent); border-color: color-mix(in srgb, var(--bb) 50%, transparent); color: var(--ink); }
.st-bs-shadow { box-shadow: 0 6px 14px -6px rgba(16,24,40,.35); }
.st-bs-hard { border: 2px solid #1e1e1e; box-shadow: 3px 3px 0 #1e1e1e; }
.st-bs-neon { background: #0a0f1e; color: var(--ac); border-color: var(--ac); box-shadow: 0 0 10px -1px var(--ac); }
.st-bs-gradient { background: linear-gradient(120deg, var(--ac), #8f97ff); color: #fff; }
.st-bs-underline { background: transparent; border: 0; border-bottom: 1.5px solid #98a2b3; border-radius: 0; color: var(--ink); }
.st-font-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: start; }
.st-font-btn:hover { border-color: var(--accent); }
.st-font-btn b { font-size: 15px; }
.st-font-btn span { flex: 1; color: var(--muted); font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 9px; max-height: 58vh; overflow: auto; padding: 2px; }
.st-font { display: grid; gap: 2px; text-align: start; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.st-font:hover { border-color: var(--accent); }
.st-font.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: #f7f8ff; }
.st-font-sample { font-size: 21px; line-height: 1.5; color: var(--ink); }
.st-font b { font-size: 12.5px; font-family: var(--font); }
.st-font small { font-size: 11.5px; color: var(--muted); font-family: var(--font); }

/* ---------- modals: library, platforms, templates ---------- */
.st-lib-search { margin-bottom: 14px; }
.st-lib-group h4 { margin: 14px 0 8px; font-size: 12.5px; color: var(--muted); font-weight: 800; }
.st-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 8px; }
.st-lib-item { display: grid; justify-items: start; gap: 3px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: start; transition: border-color .15s, transform .15s; }
.st-lib-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.st-lib-item > span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 5px; }
.st-lib-item b { font-size: 13.5px; }
.st-lib-item small { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.st-plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 7px; max-height: 60vh; overflow: auto; }
.st-plats button { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 700; text-align: start; }
.st-plats button:hover { border-color: var(--accent); }
.st-plats .ico { width: 20px; height: 20px; }
.st-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.st-tpl { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; align-items: center; }
.st-tpl-body b { display: flex; align-items: center; gap: 7px; font-size: 14.5px; }
.st-tpl-body small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.st-tpl-art .st-preset { pointer-events: none; }

/* ---------- overview ---------- */
.st-hero { background: linear-gradient(125deg, #151a3d 0%, #22307a 60%, #3b45c4 100%); }
.st-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M36 10l7.6 18.4L62 36l-18.4 7.6L36 62l-7.6-18.4L10 36l18.4-7.6z'/%3E%3Crect x='24' y='24' width='24' height='24' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%); mask-image: linear-gradient(270deg, #000, transparent 70%); }
.st-hero p { color: #c9cdff; }
.st-hero-chip { background: rgba(242,183,5,.16) !important; color: #f8cf4d !important; }
.st-hero .btn.primary { background: #f2b705; border-color: #f2b705; color: #2a2000; box-shadow: 0 10px 24px -12px #f2b705; }
.st-hero .btn.primary:hover { background: #ffc81f; border-color: #ffc81f; }
.st-hero-url { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; padding: 4px 4px 4px 12px; padding-inline: 12px 4px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-family: var(--mono); font-size: 12.5px; color: #e4e7ff; max-width: 100%; }
.st-hero-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-hero-url .btn { color: #e4e7ff; }
.st-hero-stats { display: grid; gap: 10px; min-width: 170px; }
.st-hero-stats div { padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.st-hero-stats b { display: block; font-size: 19px; font-weight: 900; }
.st-hero-stats span { font-size: 11.5px; color: #c9cdff; }
@media (max-width: 800px) { .st-hero-stats { display: none; } }
.st-quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.st-quick-actions > * { display: grid; justify-items: start; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: start; box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s; }
.st-quick-actions > *:hover { transform: translateY(-2px); border-color: #c9cdff; }
.st-quick-actions span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 8px; }
.st-quick-actions b { font-size: 14px; }
.st-quick-actions small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .st-quick-actions { grid-template-columns: 1fr 1fr; } }
.stat.flat { box-shadow: none; background: var(--line-2); border: 0; }
.st-ic-tile { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.st-ic-tile .ico { width: 16px; height: 16px; }

/* ---------- analytics, share, audience ---------- */
.grid.st-c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.st-c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid.st-c5 { grid-template-columns: 1fr 1fr; } }
.st-chart { width: 100%; height: 220px; }
.st-qr-wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.st-qr { width: 196px; flex: none; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.st-qr svg { display: block; width: 100%; height: auto; }
.st-dot { width: 28px; height: 28px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.st-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.st-share .btn .ico { width: 15px; height: 15px; }
.st-tabs { display: inline-flex; margin-bottom: 14px; }
.st-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; }
.st-msg { max-width: 420px; white-space: pre-line; font-size: 13px; line-height: 1.7; color: var(--ink-2); }

@media (max-width: 720px) {
  .st-profile { grid-template-columns: 1fr; justify-items: stretch; }
  .st-avatar-edit { justify-self: center; }
  .st-card-tools { padding-inline-start: 12px; }
  .st-card-main { padding-inline: 8px; gap: 8px; }
  .st-feat span { display: none; }
  .st-feat { padding: 7px; }
  .st-layouts { grid-template-columns: repeat(3, 1fr); }
  .st-switches { grid-template-columns: 1fr; }
  .st-soc { grid-template-columns: auto 34px 1fr auto auto; gap: 6px; }
  .st-anim-grid { grid-template-columns: repeat(2, 1fr); }
  .st-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .st-preset-art { padding: 9px 7px; gap: 4px; }
  .st-preset-art i { width: 16px; height: 16px; }
  .st-preset-art em { height: 8px; }
  .st-preset { font-size: 11px; }
}
