/* css/pages/stat-builder.css */

.sb-page { background: #f1f5f9; min-height: 100vh; }

/* ---- Layout ---- */
.sb-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 20px 48px;
  align-items: start;
}

/* Parcours guidé : reste compact sur desktop et devient un repère tactile sur mobile. */
.sb-flow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15,23,42,.05);
}
.sb-flow__step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #718096;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.sb-flow__step b { display:grid; width:23px; height:23px; place-items:center; border-radius:50%; background:#edf2f7; color:#718096; font-size:10px; }
.sb-flow__step.is-active, .sb-flow__step:hover { color:#0758b7; background:#edf5ff; }
.sb-flow__step.is-active b { background:#1167d8; color:#fff; }
.sb-flow > i { flex: 1; height: 1px; min-width: 12px; background: #dbe5f0; }
.sb-photo-status { color:#0f766e; font-size:10px; font-weight:800; }
.sb-photo-status:not(.is-loaded) { color:#94a3b8; font-weight:650; }
.sb-photo-credit{display:grid;gap:5px;color:#334155;font-size:11px;font-weight:850}
.sb-photo-credit span{color:#8493a5;font-size:9px;font-weight:650}
.sb-photo-credit input{width:100%;min-height:38px;padding:8px 10px;border:1px solid #d6e0eb;border-radius:9px;background:#fff;color:#10243d;font:inherit;font-size:12px;font-weight:700;outline:none}
.sb-photo-credit input:focus{border-color:#2878d4;box-shadow:0 0 0 3px #2878d422}

/* ---- Config panel ---- */
.sb-panel {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(15,23,42,.08);
  overflow: hidden;
  position: sticky;
  top: 16px;
}

.sb-panel-header {
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, #07162c 0%, #1a3a6e 100%);
  border-bottom: none;
}
.sb-panel-title {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
}
.sb-panel-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.60);
  margin-top: 3px;
}

.sb-section {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(15,23,42,.05);
}
.sb-section:last-child { border-bottom: none; }

.sb-label {
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

/* ---- Search ---- */
.sb-search { position: relative; }
.sb-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 10px 36px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.sb-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  background: #fff;
}
.sb-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
}
.sb-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15,23,42,.12);
  z-index: 100;
  overflow: hidden;
  display: none;
}
.sb-suggestions.open { display: block; }
.sb-sug-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .1s;
}
.sb-sug-item:hover { background: #f1f5f9; }
.sb-sug-item img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(15,23,42,.08);
  background: #e2e8f0;
}
.sb-sug-name { font-size: 13px; font-weight: 800; color: #0f172a; }
.sb-sug-team { font-size: 11px; font-weight: 700; color: #64748b; }

/* Selected player chip */
.sb-player-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f0f7ff;
  border: 1px solid rgba(59,130,246,.18);
  border-radius: 12px;
  margin-top: 8px;
}
.sb-player-chip img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(15,23,42,.08);
}
.sb-player-chip-name { font-size: 13px; font-weight: 800; color: #1e40af; }
.sb-player-chip-team { font-size: 11px; font-weight: 700; color: #64748b; }
.sb-player-chip-clear {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #94a3b8;
  padding: 2px 4px;
  line-height: 1;
}
.sb-player-chip-clear:hover { color: #ef4444; }

/* ---- Period pills ---- */
.sb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sb-pill {
  border: 1px solid rgba(15,23,42,.12);
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all .12s;
}
.sb-pill:hover { background: #e0e7ff; border-color: rgba(99,102,241,.3); color: #4338ca; }
.sb-pill.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,.3);
}

/* ---- Photo upload ---- */
.sb-pill--premium{border-color:rgba(14,165,233,.35);background:linear-gradient(135deg,#ecfeff,#eff6ff);color:#0758b7}.sb-pill--premium.active{border-color:#0891b2;background:linear-gradient(135deg,#0758b7,#0891b2);color:#fff}.sb-premium-note{margin:9px 0 0;color:#64748b;font-size:10px;font-weight:700;line-height:1.45}
.sb-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.sb-photo-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #e2e8f0;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  transition: border-color .12s;
}
.sb-photo-thumb:hover { border-color: #3b82f6; }
.sb-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-photo-actions { display: flex; flex-direction: column; gap: 6px; }
.sb-upload-label {
  display: inline-block;
  background: #f0f7ff;
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  cursor: pointer;
  transition: background .12s;
}
.sb-upload-label:hover { background: #dbeafe; }
.sb-photo-note { font-size: 11px; font-weight: 700; color: #94a3b8; }
.sb-btn-ghost-sm {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  padding: 0;
  text-decoration: underline;
}
.sb-btn-ghost-sm:hover { color: #ef4444; }

/* ---- Color picker ---- */
.sb-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sb-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid rgba(15,23,42,.12);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.sb-color-swatch input[type=color] {
  width: 200%;
  height: 200%;
  margin: -25%;
  border: none;
  cursor: pointer;
  padding: 0;
}
.sb-color-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.sb-preset {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s, border-color .12s;
}
.sb-preset:hover { transform: scale(1.15); }
.sb-preset.active { border-color: #0f172a; }
.sb-color-auto {
  background: none;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}
.sb-color-auto:hover { background: #f1f5f9; }

/* ---- Theme selector ---- */
.sb-theme-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

/* ---- Preview panel ---- */
.sb-preview { display: flex; flex-direction: column; gap: 14px; }
.sb-instagram-preview{display:flex;flex-direction:column;gap:10px;padding:16px;background:#fff;border:1px solid #dce6f2;border-radius:18px;box-shadow:0 8px 28px rgba(6,22,47,.08)}
.sb-instagram-preview[hidden]{display:none}
.sb-instagram-preview__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sb-instagram-preview__head>div{display:grid;gap:3px}
.sb-instagram-preview__head span{color:#1474cf;font-size:10px;font-weight:950;letter-spacing:.12em}
.sb-instagram-preview__head strong{color:#10243d;font-size:16px;font-weight:900}
.sb-instagram-preview__canvas{width:min(100%,480px);margin:0 auto;overflow:hidden;border-radius:12px;background-color:#eef2f7;background-image:linear-gradient(45deg,#dce3ec 25%,transparent 25%,transparent 75%,#dce3ec 75%),linear-gradient(45deg,#dce3ec 25%,transparent 25%,transparent 75%,#dce3ec 75%);background-position:0 0,8px 8px;background-size:16px 16px;box-shadow:0 12px 30px rgba(6,22,47,.2)}
.sb-instagram-preview__canvas canvas{display:block;width:100%;height:auto}
.sb-instagram-preview__canvas canvas:has(+.sb-photo-editor__hint:not([hidden])){cursor:grab;touch-action:none;user-select:none}
.sb-photo-editor[hidden]{display:none}.sb-photo-editor{display:grid;gap:9px;padding:12px 14px;border:1px solid #dce6f2;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#f1f6fc)}
.sb-photo-editor__top{display:flex;align-items:center;justify-content:space-between;gap:12px}.sb-photo-editor__top>div{display:grid;gap:3px}.sb-photo-editor__top strong{color:#153354;font-size:10px;font-weight:950;letter-spacing:.1em}.sb-photo-editor__top span{color:#718198;font-size:11px;font-weight:650}.sb-photo-editor__top button{flex:none;padding:7px 10px;border:1px solid #d6e1ed;border-radius:8px;background:#fff;color:#43566d;cursor:pointer;font-family:inherit;font-size:10px;font-weight:800}
.sb-photo-editor__tools{display:flex;align-items:center;gap:7px}.sb-photo-editor__tools button{display:grid;width:36px;height:36px;place-items:center;border:1px solid #d7e1ed;border-radius:9px;background:#fff;color:#183454;cursor:pointer;font-family:inherit;font-size:18px;font-weight:800;line-height:1;transition:background .15s,border-color .15s,transform .15s}.sb-photo-editor__tools button:hover{border-color:#83b6ed;background:#edf6ff;transform:translateY(-1px)}.sb-photo-editor__tools input[type=range]{flex:1;min-width:50px;accent-color:#176fe5}.sb-photo-editor__tools output{min-width:43px;color:#294460;font-size:11px;font-weight:900;text-align:center}.sb-photo-editor__tools i{width:1px;height:23px;margin:0 3px;background:#d8e2ed}.sb-photo-editor__hint{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);padding:7px 10px;border:1px solid #ffffff36;border-radius:999px;background:#07182dcc;color:#fff;font-size:10px;font-weight:800;white-space:nowrap;pointer-events:none;backdrop-filter:blur(8px)}.sb-instagram-preview__canvas{position:relative}
#sbStylePills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#sbStylePills .sb-pill{min-height:42px;white-space:normal;line-height:1.2}
.sb-instagram-preview>.sb-preview-info{text-align:center}
.sb-ig-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #dce6f2;border-radius:14px;background:#f7faff}
.sb-ig-controls label{display:grid;gap:5px;color:#40536a;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.sb-ig-controls__group-title{grid-column:1/-1;margin-top:4px;color:#17385f;font-size:12px;font-weight:950;letter-spacing:.06em}
.sb-ig-controls input,.sb-ig-controls select{width:100%;min-height:38px;padding:8px 10px;border:1px solid #cbd8e6;border-radius:9px;background:#fff;color:#10243d;font-family:inherit;font-size:13px;font-weight:700;text-transform:none;letter-spacing:normal}
.sb-ig-controls input[type=range]{min-height:24px;padding:0;accent-color:#176fe5}.sb-ig-controls select:disabled{opacity:.66;background:#edf3fb;cursor:not-allowed}
.sb-ig-controls small{grid-column:1/-1;color:#60738a;font-size:12px;line-height:1.5}

.sb-canvas-wrap {
  position: relative;
  background: #0b1b33;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15,23,42,.20);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
#sbCanvas {
  width: 100%;
  height: auto;
  display: block;
}
.sb-canvas-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,22,44,.85);
  backdrop-filter: blur(2px);
  z-index: 10;
}
.sb-canvas-overlay.hidden { display: none; }
.sb-empty-state {
  text-align: center;
  color: #fff;
}
.sb-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .7; }
.sb-empty-title { font-size: 18px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.sb-empty-sub { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.55); }

.sb-loading-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
  background-size: 200% 100%;
  animation: sbSlide 1s linear infinite;
  display: none;
}
.sb-loading-bar.active { display: block; }
@keyframes sbSlide {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Preview meta ---- */
.sb-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 2px;
}
.sb-preview-info { font-size: 12px; font-weight: 700; color: #64748b; }
.sb-preview-info span { color: #0f172a; font-weight: 900; }

/* ---- Actions ---- */
.sb-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sb-btn-primary {
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background .12s, box-shadow .12s, transform .1s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-btn-primary:hover { background: #1e40af; box-shadow: 0 6px 20px rgba(29,78,216,.3); transform: translateY(-1px); }
.sb-btn-primary:active { transform: translateY(0); box-shadow: none; }
.sb-btn-primary:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.sb-btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .12s, box-shadow .12s;
}
.sb-btn-secondary:hover { background: #f8fafc; box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.sb-btn-secondary:disabled { opacity: .45; cursor: default; }

/* ---- Status message ---- */
.sb-status {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  padding: 6px 0;
  min-height: 24px;
}
.sb-status.ok   { color: #16a34a; }
.sb-status.err  { color: #dc2626; }
.sb-status.info { color: #2563eb; }

/* ---- Game picker ---- */
.sb-game-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}
.sb-game-list::-webkit-scrollbar { width: 4px; }
.sb-game-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.sb-game-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.sb-game-loading { font-size: 12px; font-weight: 700; color: #94a3b8; padding: 8px 0; }
.sb-game-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background .1s, border-color .1s;
}
.sb-game-item:hover { background: #eff6ff; border-color: rgba(59,130,246,.25); }
.sb-game-item.selected { background: #eff6ff; border-color: #3b82f6; }
.sb-game-date { color: #64748b; font-size: 11px; min-width: 56px; }
.sb-game-matchup { color: #0f172a; flex: 1; }
.sb-game-result { font-size: 11px; font-weight: 800; }
.sb-game-result.w    { color: #16a34a; }
.sb-game-result.l    { color: #dc2626; }
.sb-game-result.live { color: #f59e0b; }
.sb-game-pts { color: #0f172a; }

/* Checkbox multi-game */
.sb-game-item--check { cursor: pointer; }
.sb-game-item--check:not(.selected) { opacity: .55; }
.sb-game-check {
  width: 15px;
  height: 15px;
  accent-color: #3b82f6;
  flex-shrink: 0;
  cursor: pointer;
}

/* ---- Hashtags ---- */
.sb-tags-auto {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  min-height: 4px;
}
.sb-auto-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .12s;
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(59,130,246,.22);
  color: #1d4ed8;
  user-select: none;
}
.sb-auto-tag.off {
  background: #f1f5f9;
  border-color: rgba(15,23,42,.10);
  color: #94a3b8;
  text-decoration: line-through;
  opacity: .65;
}
.sb-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
  min-height: 4px;
}
.sb-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(139,92,246,.10);
  border: 1px solid rgba(139,92,246,.22);
  color: #7c3aed;
}
.sb-tag-chip button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #a78bfa;
  padding: 0;
  line-height: 1;
  margin-left: 2px;
}
.sb-tag-chip button:hover { color: #dc2626; }
.sb-tag-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sb-tag-input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}
.sb-tag-input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.10); }
.sb-tag-add-btn {
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
  transition: background .12s;
}
.sb-tag-add-btn:hover { background: #7c3aed; }

/* ---- Disclaimer ---- */
.sb-disclaimer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 14px 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  font-size: 12px;
  color: #78350f;
  line-height: 1.55;
}

@media (max-width: 1272px) {
  .sb-disclaimer { margin-left: 20px; margin-right: 20px; }
}

.sb-disclaimer__icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.sb-disclaimer__text strong {
  display: block;
  font-weight: 900;
  margin-bottom: 4px;
  color: #92400e;
  font-size: 13px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .sb-layout {
    grid-template-columns: 1fr;
    padding: 12px 14px 32px;
  }
  .sb-panel {
    position: static;
  }
  .sb-preview { order: -1; }
  .sb-disclaimer { margin-left: 14px; margin-right: 14px; }
}

/* ===========================================================================
   Studio BBD — interface V2
   ========================================================================== */
.sb-page{--studio-navy:#06162f;--studio-blue:#1167d8;--studio-red:#ed2939;--studio-ink:#0b1730;--studio-muted:#68768c;--studio-line:#dfe6ef;background:#f3f6fa}
.sb-studio-hero{position:relative;display:flex;max-width:1240px;min-height:205px;align-items:flex-end;justify-content:space-between;gap:30px;overflow:hidden;margin:20px auto 0;padding:30px 36px;border-radius:24px;color:#fff;background:radial-gradient(circle at 88% 12%,rgba(17,103,216,.6),transparent 30%),radial-gradient(circle at 72% 110%,rgba(237,41,57,.25),transparent 30%),linear-gradient(135deg,#06142b,#0a2348 64%,#092d60);box-shadow:0 20px 48px rgba(6,22,47,.2)}
.sb-studio-hero::after{content:"CREATE";position:absolute;right:-14px;top:-28px;color:rgba(255,255,255,.035);font-size:142px;font-weight:1000;letter-spacing:-.08em}
.sb-studio-hero__copy,.sb-studio-hero__steps{position:relative;z-index:1}
.sb-studio-hero__eyebrow{display:flex;align-items:center;gap:8px;margin:0;color:#8dc9ff;font-size:10px;font-weight:950;letter-spacing:.15em}.sb-studio-hero__eyebrow i{width:8px;height:8px;border-radius:50%;background:var(--studio-red);box-shadow:0 0 0 5px rgba(237,41,57,.15)}
.sb-studio-hero h1{margin:12px 0 8px;font-size:clamp(34px,4.4vw,49px);line-height:.95;letter-spacing:-.055em;font-weight:1000}.sb-studio-hero h1 span{color:#70b9ff}.sb-studio-hero__copy>p:last-child{max-width:550px;margin:0;color:rgba(255,255,255,.67);font-size:13px;font-weight:650}
.sb-studio-hero__steps{display:flex;gap:7px}.sb-studio-hero__steps span{display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:rgba(255,255,255,.07);color:rgba(255,255,255,.68);font-size:10px;font-weight:800;white-space:nowrap}.sb-studio-hero__steps b{display:grid;width:20px;height:20px;place-items:center;border-radius:50%;background:#fff;color:var(--studio-navy);font-size:9px}

.sb-layout{grid-template-columns:390px minmax(0,1fr);gap:24px;max-width:1240px;padding:24px 0 48px}
.sb-panel{top:14px;border-color:var(--studio-line);border-radius:20px;box-shadow:0 10px 32px rgba(11,23,48,.075)}
.sb-panel-header{padding:21px 22px 19px;background:radial-gradient(circle at 95% 0%,rgba(17,103,216,.55),transparent 45%),var(--studio-navy)}
.sb-panel-kicker{margin-bottom:4px;color:#8dc9ff;font-size:9px;font-weight:950;letter-spacing:.13em}.sb-panel-title{font-size:19px}.sb-panel-sub{font-size:11px}
.sb-section{padding:18px 21px;border-color:#edf1f6}.sb-label{margin-bottom:9px;color:#77859a;font-size:10px;letter-spacing:.09em}
.sb-pill{padding:7px 11px;border-color:#dce4ee;border-radius:9px;background:#f7f9fc;color:#536177;font-size:11px}.sb-pill:hover{background:#edf5ff;color:#0758b7}.sb-pill.active{border-color:var(--studio-blue);background:var(--studio-blue);box-shadow:none}
.sb-section-heading{display:flex;align-items:center;gap:10px;margin-bottom:13px}.sb-section-heading>span{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;background:#eaf3ff;color:#0758b7;font-size:11px;font-weight:950}.sb-section-heading>div{display:flex;flex-direction:column}.sb-section-heading strong{color:var(--studio-ink);font-size:12px}.sb-section-heading small{margin-top:1px;color:#8a97aa;font-size:9px;font-weight:650}
.sb-template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:15px}.sb-template{display:flex;min-width:0;flex-direction:column;gap:6px;padding:6px;border:1px solid #dfe6ef;border-radius:10px;background:#fff;color:#5d6b7f;cursor:pointer;font-family:inherit;font-size:9px;font-weight:850;text-align:left}.sb-template:hover{border-color:#aebed1}.sb-template.active{border-color:var(--studio-blue);box-shadow:0 0 0 2px rgba(17,103,216,.1);color:#0758b7}.sb-template__visual{display:block;height:47px;border-radius:6px;background:#07162c}.sb-template__visual--classic{background:radial-gradient(circle at 80% 15%,#2367bd,transparent 40%),linear-gradient(135deg,#07162c,#17365f)}.sb-template__visual--team{background:radial-gradient(circle at 82% 20%,#e03a3e,transparent 40%),linear-gradient(135deg,#06080d,#301015)}.sb-template__visual--midnight{background:radial-gradient(circle at 75% 15%,#475569,transparent 34%),linear-gradient(135deg,#020617,#0f172a)}
.sb-field-label{display:flex;justify-content:space-between;margin-bottom:6px;color:#536177;font-size:10px;font-weight:850}.sb-field-label em{color:#9aa6b8;font-style:normal;font-weight:650}.sb-text-input{box-sizing:border-box;width:100%;padding:10px 11px;border:1px solid #dce4ee;border-radius:10px;outline:0;background:#f8fafc;color:var(--studio-ink);font-family:inherit;font-size:12px;font-weight:700}.sb-text-input:focus{border-color:var(--studio-blue);box-shadow:0 0 0 3px rgba(17,103,216,.1);background:#fff}

.sb-preview{gap:13px}.sb-preview-head{display:flex;align-items:flex-end;justify-content:space-between;padding:3px 2px}.sb-preview-head>div{display:flex;flex-direction:column}.sb-preview-head span{color:var(--studio-blue);font-size:9px;font-weight:950;letter-spacing:.13em}.sb-preview-head strong{margin-top:2px;color:var(--studio-ink);font-size:21px;letter-spacing:-.035em}.sb-reset-btn{padding:7px 10px;border:1px solid var(--studio-line);border-radius:9px;background:#fff;color:#657389;cursor:pointer;font-family:inherit;font-size:10px;font-weight:800}.sb-reset-btn:hover{color:var(--studio-red)}
.sb-canvas-wrap{width:100%;max-width:720px;border-radius:20px;box-shadow:0 18px 45px rgba(6,22,47,.2)}
.sb-preview-meta{padding:3px 2px 7px}.sb-btn-primary,.sb-btn-secondary{border-radius:10px}.sb-btn-primary{background:var(--studio-blue)}
.sb-publish{margin-top:7px;padding:19px;border:1px solid var(--studio-line);border-radius:17px;background:#fff;box-shadow:0 8px 25px rgba(11,23,48,.055)}.sb-publish__head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:11px}.sb-publish__head span:first-child{color:var(--studio-blue);font-size:9px;font-weight:950;letter-spacing:.12em}.sb-publish h2{margin:3px 0 0;color:var(--studio-ink);font-size:18px;letter-spacing:-.03em}.sb-publish__count{padding:4px 7px;border-radius:7px;background:#f1f5f9;color:#758297;font-size:9px;font-weight:850}.sb-publish__count.is-limit{background:#fff1f2;color:#be123c}.sb-publish textarea{box-sizing:border-box;width:100%;min-height:92px;resize:vertical;padding:12px 13px;border:1px solid #dfe6ef;border-radius:11px;outline:0;background:#f8fafc;color:#26344a;font-family:inherit;font-size:12px;font-weight:650;line-height:1.55}.sb-publish textarea:focus{border-color:var(--studio-blue);background:#fff}.sb-publish__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.sb-x-btn{padding:10px 16px;border:0;border-radius:10px;background:#050505;color:#fff;cursor:pointer;font-family:inherit;font-size:12px;font-weight:900}.sb-x-btn:disabled{opacity:.4;cursor:default}
.sb-disclaimer{border-color:#e3e8ef;background:#f8fafc;color:#68768c}.sb-disclaimer__text strong{color:#425069}

@media(max-width:1272px){.sb-studio-hero{margin-right:20px;margin-left:20px}.sb-layout{padding-right:20px;padding-left:20px}}
@media(max-width:900px){.sb-studio-hero{align-items:flex-start;flex-direction:column}.sb-studio-hero__steps{width:100%}.sb-studio-hero__steps span{flex:1}.sb-layout{grid-template-columns:1fr}.sb-panel{position:static}.sb-preview{order:-1}.sb-canvas-wrap{max-width:650px}}
@media(max-width:640px){.sb-studio-hero{min-height:0;margin:10px 10px 0;padding:25px 20px;border-radius:20px}.sb-studio-hero h1{font-size:37px}.sb-studio-hero__steps{gap:4px}.sb-studio-hero__steps span{justify-content:center;padding:7px 4px;font-size:8px}.sb-layout{padding:15px 10px 30px}.sb-preview-head{padding:0 4px}.sb-actions{width:100%}.sb-actions button{flex:1;justify-content:center;padding-right:10px;padding-left:10px}.sb-publish{padding:15px}.sb-publish__actions button{flex:1}.sb-template-grid{gap:5px}}
@media(max-width:640px){.sb-instagram-preview{padding:11px;border-radius:14px}.sb-instagram-preview__head{align-items:flex-start;flex-direction:column}.sb-instagram-preview__head button{width:100%;justify-content:center}.sb-ig-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sb-ig-controls small{font-size:11px}#sbStylePills{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#sbStylePills .sb-pill{padding:9px 8px;font-size:12px}}
@media(max-width:520px){.sb-photo-editor{padding:10px}.sb-photo-editor__top span{max-width:230px;line-height:1.35}.sb-photo-editor__tools{gap:5px}.sb-photo-editor__tools button{width:33px;height:34px}.sb-photo-editor__tools output{min-width:37px;font-size:10px}.sb-photo-editor__tools i{margin:0 1px}}
@media(max-width:640px){
  .sb-flow{position:sticky;top:8px;z-index:20;gap:2px;padding:7px 5px;justify-content:space-between}
  .sb-flow__step{flex:1;justify-content:center;gap:4px;padding:6px 2px;font-size:9px}
  .sb-flow__step b{width:20px;height:20px;font-size:9px}
  .sb-flow>i{min-width:4px;max-width:10px}
  .sb-photo-status{max-width:170px;line-height:1.25}
}
