/* SnapBio Links v2 — front-end dashboard */
.sbd, .sbd-login { --p: #1f3a5f; --a: #e0a100; --bg: #fff; --sur: #f5f6f8; --txt: #1b1f24; --mut: #5c6670; --bd: #e1e4e8; --ok: #1e7e34; --err: #c0392b; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--txt); line-height: 1.5; }
.sbd * { box-sizing: border-box; }
.sbd h1, .sbd h2, .sbd h3 { margin: 0 0 .5em; line-height: 1.2; }
.sbd a { color: var(--p); }
.sbd-loading { padding: 40px; text-align: center; color: var(--mut); }
.sbd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--bd); background: var(--bg); color: var(--txt); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.sbd-btn:hover { background: var(--sur); }
.sbd-btn-primary { background: var(--p); border-color: var(--p); color: #fff; }
.sbd-btn-primary:hover { filter: brightness(1.1); background: var(--p); }
.sbd-btn-accent { background: var(--a); border-color: var(--a); color: #111; }
.sbd-btn-danger { color: var(--err); border-color: #f1c5c0; }
.sbd-btn-sm { padding: 5px 10px; font-size: .85rem; }
.sbd-btn:disabled { opacity: .5; cursor: default; }
.sbd-login { padding: 32px; background: var(--sur); border-radius: 12px; text-align: center; }

/* Top bar */
.sbd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0 16px; border-bottom: 1px solid var(--bd); margin-bottom: 16px; }
.sbd-top h1 { font-size: 1.3rem; }
.sbd-top-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sbd-save-state { font-size: .85rem; color: var(--mut); }
.sbd-save-state.is-saving { color: var(--p); }
.sbd-save-state.is-error { color: var(--err); }

/* Sites list */
.sbd-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sbd-site-card { border: 1px solid var(--bd); border-radius: 12px; padding: 16px; background: var(--bg); }
.sbd-site-card h3 { font-size: 1.1rem; }
.sbd-site-card .sbd-meta { color: var(--mut); font-size: .85rem; margin-bottom: 10px; }
.sbd-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--sur); color: var(--mut); }
.sbd-badge.is-live { background: #e6f4ea; color: var(--ok); }
.sbd-new-card { border-style: dashed; display: flex; align-items: center; justify-content: center; min-height: 140px; cursor: pointer; color: var(--p); font-weight: 700; }

/* Wizard */
.sbd-wizard { max-width: 720px; margin: 0 auto; }
.sbd-steps { display: flex; gap: 6px; margin-bottom: 20px; }
.sbd-steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--bd); }
.sbd-steps span.is-done { background: var(--p); }
.sbd-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sbd-tpl { border: 2px solid var(--bd); border-radius: 12px; padding: 14px; cursor: pointer; }
.sbd-tpl.is-selected { border-color: var(--p); background: var(--sur); }
.sbd-tpl-swatch { display: flex; gap: 6px; margin-bottom: 8px; }
.sbd-tpl-swatch i { width: 28px; height: 28px; border-radius: 6px; display: block; }
.sbd-tpl h4 { margin: 0 0 4px; }
.sbd-tpl p { margin: 0; font-size: .85rem; color: var(--mut); }
.sbd-wizard-nav { display: flex; justify-content: space-between; margin-top: 20px; }

/* Editor layout */
.sbd-editor { display: grid; grid-template-columns: 200px minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .sbd-editor { grid-template-columns: 180px minmax(0, 1fr); } .sbd-preview { grid-column: 1 / -1; } }
@media (max-width: 720px) { .sbd-editor { grid-template-columns: 1fr; } }
.sbd-side { position: sticky; top: 20px; }
.sbd-side-group { margin-bottom: 14px; }
.sbd-side-group h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin: 0 0 6px; }
.sbd-side-link { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; font: inherit; cursor: pointer; color: var(--txt); }
.sbd-side-link:hover { background: var(--sur); }
.sbd-side-link.is-active { background: var(--p); color: #fff; }
.sbd-side-link .sbd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sbd-side-link .sbd-dot.is-off { background: #c7ccd1; }
@media (max-width: 720px) { .sbd-side { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; } .sbd-side-group { display: flex; gap: 4px; margin: 0; } .sbd-side-group h4 { display: none; } .sbd-side-link { white-space: nowrap; } }

.sbd-panel { background: var(--bg); border: 1px solid var(--bd); border-radius: 12px; padding: 20px; }
.sbd-panel h2 { font-size: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sbd-panel-help { color: var(--mut); font-size: .9rem; margin: -6px 0 16px; }
.sbd-field { margin-bottom: 14px; }
.sbd-field > label, .sbd-field > .sbd-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.sbd-field .sbd-hint { font-size: .8rem; color: var(--mut); margin-top: 3px; }
.sbd input[type=text], .sbd input[type=url], .sbd input[type=email], .sbd input[type=number], .sbd input[type=date], .sbd input[type=time], .sbd input[type=password], .sbd input[type=search], .sbd input[type=datetime-local], .sbd select, .sbd textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--bd); border-radius: 8px; font: inherit; background: var(--bg); color: var(--txt); }
.sbd textarea { min-height: 90px; resize: vertical; }
.sbd input:focus, .sbd select:focus, .sbd textarea:focus { outline: 2px solid var(--a); outline-offset: 1px; }
.sbd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sbd-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .sbd-row, .sbd-row3 { grid-template-columns: 1fr; } }
.sbd-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.sbd-toggle input { width: 40px; height: 22px; appearance: none; background: #c7ccd1; border-radius: 999px; position: relative; cursor: pointer; margin: 0; }
.sbd-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.sbd-toggle input:checked { background: var(--ok); }
.sbd-toggle input:checked::after { left: 21px; }
.sbd-color { display: flex; align-items: center; gap: 10px; }
.sbd-color input[type=color] { width: 44px; height: 36px; border: 1px solid var(--bd); border-radius: 8px; padding: 2px; background: none; }
.sbd-image { display: flex; gap: 12px; align-items: center; }
.sbd-image-thumb { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; background: var(--sur); border: 1px solid var(--bd); flex: 0 0 80px; }
.sbd-image-thumb.is-empty { display: flex; align-items: center; justify-content: center; color: var(--mut); font-size: .75rem; }
.sbd-image-actions { display: flex; flex-direction: column; gap: 6px; }
.sbd-image input[type=file] { display: none; }

/* Repeater */
.sbd-rep { display: grid; gap: 10px; }
.sbd-rep-item { border: 1px solid var(--bd); border-radius: 10px; padding: 12px; background: var(--sur); position: relative; }
.sbd-rep-item .sbd-field { margin-bottom: 8px; }
.sbd-rep-item .sbd-field:last-child { margin-bottom: 0; }
.sbd-rep-tools { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 8px; }
.sbd-rep-add { margin-top: 8px; }
.sbd-icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.sbd-icon-pick button { width: 38px; height: 38px; border: 1px solid var(--bd); border-radius: 8px; background: var(--bg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--p); }
.sbd-icon-pick button.is-selected { border-color: var(--p); background: var(--p); color: #fff; }
.sbd-icon-pick svg { width: 20px; height: 20px; }

/* Preview */
.sbd-preview { position: sticky; top: 20px; }
.sbd-phone { width: 100%; max-width: 400px; margin: 0 auto; border: 10px solid #1b1f24; border-radius: 34px; background: #fff; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.sbd-phone iframe { display: block; width: 100%; height: 680px; border: 0; }
.sbd-preview-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .85rem; color: var(--mut); }

/* Tables / stats */
.sbd-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sbd-table th, .sbd-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--bd); vertical-align: top; }
.sbd-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); }
.sbd-table-wrap { overflow-x: auto; }
.sbd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sbd-kpi { background: var(--sur); border-radius: 10px; padding: 12px 14px; }
.sbd-kpi b { display: block; font-size: 1.5rem; }
.sbd-kpi span { font-size: .8rem; color: var(--mut); }
.sbd-bars { display: grid; gap: 6px; }
.sbd-bar { display: grid; grid-template-columns: 140px 1fr 50px; gap: 8px; align-items: center; font-size: .85rem; }
.sbd-bar i { display: block; height: 10px; background: var(--p); border-radius: 5px; }
.sbd-spark { display: flex; align-items: flex-end; gap: 2px; height: 60px; margin-bottom: 16px; }
.sbd-spark i { flex: 1; background: var(--p); border-radius: 2px 2px 0 0; min-height: 2px; }
.sbd-notice { padding: 12px 14px; border-radius: 10px; background: var(--sur); border-left: 4px solid var(--p); margin-bottom: 14px; font-size: .92rem; }
.sbd-notice.is-ok { border-color: var(--ok); background: #e6f4ea; }
.sbd-notice.is-warn { border-color: var(--a); background: #fff7e0; }
.sbd-notice.is-err { border-color: var(--err); background: #fdecea; }
.sbd-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sbd-share { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.sbd-share code { background: var(--sur); padding: 6px 8px; border-radius: 6px; font-size: .85rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbd-qr { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--bd); border-radius: 10px; }
.sbd-divider { border: 0; border-top: 1px solid var(--bd); margin: 18px 0; }
.sbd-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1b1f24; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: .9rem; z-index: 9999; opacity: 0; transition: opacity .2s; pointer-events: none; }
.sbd-toast.is-show { opacity: 1; }

/* 2.2.1: demo sites + empty state */
.sbd-badge.is-demo { background: #fff4d6; color: #7a5300; }
.sbd-demo-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; margin: 0 0 16px; border: 1px dashed #c9a227; border-radius: 10px; background: #fffbea; }
.sbd-demo-bar p { margin: 0; flex: 1 1 280px; color: #3d3a2f; font-size: .95rem; line-height: 1.45; }
.sbd-empty { text-align: center; padding: 28px 16px; margin: 0 0 16px; border-radius: 12px; background: var(--sur); }
.sbd-empty h2 { margin: 0 0 6px; }
.sbd-empty p { margin: 0 0 14px; color: var(--mut); }

/* 2.2.2: themes (Elementor kits, Astra, etc.) style button[type=button]; keep dashboard buttons on-brand */
.sbd button.sbd-btn, .sbd a.sbd-btn, .sbd-login a.sbd-btn { background: var(--bg); color: var(--txt); border: 1px solid var(--bd); border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: normal; box-shadow: none; text-shadow: none; min-height: 0; width: auto; }
.sbd button.sbd-btn:hover, .sbd button.sbd-btn:focus, .sbd a.sbd-btn:hover { background: var(--sur); color: var(--txt); border-color: var(--bd); }
.sbd button.sbd-btn-primary, .sbd a.sbd-btn-primary, .sbd-login a.sbd-btn-primary, .sbd button.sbd-btn-primary:hover, .sbd button.sbd-btn-primary:focus, .sbd a.sbd-btn-primary:hover { background: var(--p); border-color: var(--p); color: #fff; }
.sbd button.sbd-btn-accent, .sbd button.sbd-btn-accent:hover { background: var(--a); border-color: var(--a); color: #111; }
.sbd button.sbd-btn-danger, .sbd button.sbd-btn-danger:hover { color: var(--err); border-color: #f1c5c0; }
.sbd button.sbd-btn-sm, .sbd a.sbd-btn-sm { padding: 5px 10px; font-size: .85rem; }
.sbd button.sbd-btn:focus-visible, .sbd a.sbd-btn:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }

/* 2.3.2: themes restyle every <button> (padding, colors, hover). Keep the editor's own controls intact. */
.sbd button.sbd-side-link, .sbd button.sbd-side-link:hover, .sbd button.sbd-side-link:focus { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 8px 10px; margin: 0; border: 0; border-radius: 8px; background: transparent; color: var(--txt); font: inherit; font-weight: 500; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; line-height: 1.4; }
.sbd button.sbd-side-link:hover, .sbd button.sbd-side-link:focus-visible { background: var(--sur); color: var(--txt); }
.sbd button.sbd-side-link.is-active, .sbd button.sbd-side-link.is-active:hover, .sbd button.sbd-side-link.is-active:focus { background: var(--p); color: #fff; }
.sbd button.sbd-side-link:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
.sbd .sbd-icon-pick button, .sbd .sbd-icon-pick button:hover, .sbd .sbd-icon-pick button:focus { width: 40px; height: 40px; min-width: 40px; min-height: 0; padding: 0; margin: 0; border: 1px solid var(--bd); border-radius: 8px; background: var(--bg); color: var(--txt); display: inline-flex; align-items: center; justify-content: center; box-shadow: none; line-height: 1; }
.sbd .sbd-icon-pick button:hover { border-color: var(--p); background: var(--sur); color: var(--txt); }
.sbd .sbd-icon-pick button.is-selected, .sbd .sbd-icon-pick button.is-selected:hover, .sbd .sbd-icon-pick button.is-selected:focus { background: var(--p); border-color: var(--p); color: #fff; }
.sbd .sbd-icon-pick button svg { width: 22px; height: 22px; min-width: 22px; flex: 0 0 22px; display: block; fill: none; stroke: currentColor; }
.sbd .sbd-icon-pick button:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
/* Hover on any dashboard button keeps dark text (theme hovers often switch to white) */
.sbd button.sbd-btn:not(.sbd-btn-primary):not(.sbd-btn-danger):not(.sbd-rep-add):hover, .sbd a.sbd-btn:not(.sbd-btn-primary):hover { color: var(--txt); }
/* 2.3.2: Chrome scroll anchoring + sticky sidebar/preview made the page jump ~400px on the first keystroke
   (any DOM change, e.g. the "Unsaved changes" label). Sticky panels must never be scroll anchors. */
.sbd, .sbd-side, .sbd-preview, .sbd-phone, .sbd-top { overflow-anchor: none; }
/* 2.3.2: themes often limit page content to ~650px. The dashboard breaks out to a wide, centered column,
   and its columns respond to the space it really has (container queries), not the screen width. */
.sbd { --sbd-w: min(1440px, calc(100vw - 80px)); position: relative; box-sizing: border-box; width: var(--sbd-w); max-width: none !important; margin-left: calc(50% - var(--sbd-w) / 2) !important; margin-right: 0 !important; container-type: inline-size; container-name: sbd; }
@container sbd (max-width: 1180px) { .sbd-editor { grid-template-columns: 190px minmax(0, 1fr); } .sbd-preview { grid-column: 1 / -1; position: static; } }
@container sbd (max-width: 760px) { .sbd-editor { grid-template-columns: minmax(0, 1fr); } .sbd-side { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; } .sbd-side-group { display: flex; gap: 4px; margin: 0; } .sbd-side-group h4 { display: none; } .sbd .sbd-side-link, .sbd button.sbd-side-link { white-space: nowrap; width: auto; } }
@supports not (container-type: inline-size) { @media (max-width: 1220px) { .sbd-editor { grid-template-columns: 190px minmax(0, 1fr); } .sbd-preview { grid-column: 1 / -1; position: static; } } }
@media (max-width: 700px) { .sbd { width: auto; margin-left: 0 !important; } }

/* 2.3.3: "+ Add" buttons are a full-width dashed target */
.sbd button.sbd-rep-add, .sbd button.sbd-rep-add:focus { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 14px 16px; border: 2px dashed var(--p); border-radius: 12px; background: color-mix(in srgb, var(--p) 6%, #fff); color: var(--p); font-size: 1rem; font-weight: 700; }
.sbd button.sbd-rep-add:hover { background: var(--p); border-style: solid; color: #fff; }
.sbd button.sbd-rep-add:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
/* Logo previews in the editor keep their shape */
.sbd .sbd-image-thumb { object-fit: contain; background: #fff; }

/* 2.4.0: AI writing help */
.sbd-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.sbd-ai-tag { display: inline-grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #6d28d9, #2563eb); }
.sbd .sbd-ai button.sbd-ai-btn, .sbd .sbd-ai button.sbd-ai-btn:focus { padding: 4px 10px; margin: 0; min-height: 0; border: 1px solid #d8d2f5; border-radius: 999px; background: #f6f3ff; color: #4c1d95; font: inherit; font-size: .8rem; font-weight: 650; line-height: 1.4; cursor: pointer; box-shadow: none; text-transform: none; }
.sbd .sbd-ai button.sbd-ai-btn:hover { background: #ede7ff; border-color: #6d28d9; color: #3b0f80; }
.sbd .sbd-ai button.sbd-ai-btn:disabled { opacity: .5; cursor: default; }
.sbd .sbd-ai button.sbd-ai-btn:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
.sbd-ai-box { margin-top: 8px; padding: 12px 14px; border: 1px solid #d8d2f5; border-left: 4px solid #6d28d9; border-radius: 10px; background: #fbfaff; }
.sbd-ai-out { white-space: pre-wrap; font-size: .95rem; line-height: 1.55; color: var(--txt); margin-bottom: 10px; }
.sbd-ai-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sbd-ai-left { font-size: .8rem; color: var(--mut); margin-left: auto; }
.sbd-ai-note { margin: 8px 0 0; font-size: .78rem; color: var(--mut); }
.sbd-ai-wait { margin: 0; color: #4c1d95; font-weight: 600; }
.sbd-ai-err { margin: 0 0 8px; color: var(--err); }
.sbd-ai-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.sbd-ai-notes { width: 100%; margin-bottom: 8px; }
.sbd-admin-ai { max-width: 1100px; margin: 24px auto 0; padding: 12px 16px; border: 1px dashed #c9cfd6; border-radius: 10px; font-family: system-ui, sans-serif; font-size: .92rem; }
.sbd-admin-ai summary { cursor: pointer; font-weight: 700; }

/* 2.4.1: template picker cards are buttons; demo links; starter option */
.sbd-tpl-wrap { display: flex; flex-direction: column; gap: 6px; }
.sbd button.sbd-tpl, .sbd button.sbd-tpl:hover, .sbd button.sbd-tpl:focus { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%; text-align: left; padding: 14px; margin: 0; border: 2px solid var(--bd); border-radius: 12px; background: var(--bg); color: var(--txt); font: inherit; text-transform: none; box-shadow: none; cursor: pointer; }
.sbd button.sbd-tpl:hover { border-color: var(--p); background: var(--bg); color: var(--txt); }
.sbd button.sbd-tpl.is-selected, .sbd button.sbd-tpl.is-selected:hover { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 20%, transparent); background: var(--bg); color: var(--txt); }
.sbd button.sbd-tpl:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
.sbd-tpl-name { font-weight: 800; font-size: 1.02rem; }
.sbd-tpl-races { font-size: .85rem; color: var(--mut); }
.sbd-tpl-swatch { display: flex; gap: 4px; margin-bottom: 4px; }
.sbd-tpl-swatch i { width: 26px; height: 26px; border-radius: 6px; display: block; }
.sbd-tpl-demo { font-size: .85rem; font-weight: 650; padding-left: 4px; }
.sbd-starter { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--bd); border-radius: 12px; background: var(--sur); font-size: .92rem; line-height: 1.45; cursor: pointer; }
.sbd-starter input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 18px; }
.sbd .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* 2.4.2: template picker with live mini previews */
.sbd-wizard.is-picker { max-width: 1100px; }
.sbd-tpl-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.sbd button.sbd-tpl, .sbd button.sbd-tpl:hover, .sbd button.sbd-tpl:focus { padding: 0; overflow: hidden; gap: 0; }
.sbd-tpl-meta { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.sbd-tpl-name { display: flex; align-items: center; gap: 8px; }
.sbd-tpl-check { font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--p); border-radius: 999px; padding: 2px 8px; }
.sbd-tpl-desc { font-size: .82rem; color: var(--mut); line-height: 1.4; }
.sbd-mini { display: block; width: 100%; font-family: var(--mb); background: #fff; border-bottom: 1px solid var(--bd); pointer-events: none; }
.sbd-mini-stripe { display: block; height: 4px; background: linear-gradient(90deg, var(--mp) 0 50%, var(--ma) 50% 100%); }
.sbd-mini-head { display: flex; align-items: center; gap: 6px; padding: 7px 10px; }
.sbd-mini-mono { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mp); color: var(--mop); font-style: normal; font-size: 8px; font-weight: 800; box-shadow: inset 0 0 0 2px var(--ma); font-family: var(--mh); }
.sbd-mini-head b { font-family: var(--mh); font-size: 11px; color: #15191f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.sbd-mini-nav { display: flex; gap: 4px; margin-left: auto; }
.sbd-mini-nav i { width: 16px; height: 4px; border-radius: 2px; background: #d6dae0; }
.sbd-mini-head em { font-style: normal; font-size: 8px; font-weight: 800; padding: 3px 7px; border-radius: 4px; background: var(--ma); color: var(--moa); }
.sbd-mini-hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 12px 18px; min-height: 120px; overflow: hidden; color: var(--mop); background: linear-gradient(135deg, var(--mp), color-mix(in srgb, var(--mp) 70%, #000)); border-bottom: 4px solid var(--ma); }
.sbd-mini-art { position: absolute; right: -6%; bottom: 0; width: 70%; height: auto; color: #fff; opacity: .2; }
.sbd-mini-office { position: relative; font-size: 7px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .95; }
.sbd-mini-office::before { content: ""; display: inline-block; width: 12px; height: 2px; background: var(--ma); vertical-align: middle; margin-right: 4px; }
.sbd-mini-name { position: relative; font-family: var(--mh); font-weight: 900; font-size: 20px; line-height: 1; letter-spacing: -.02em; }
.sbd-mini-slogan { position: relative; font-size: 9px; opacity: .9; max-width: 80%; }
.sbd-mini-btns { position: relative; display: flex; gap: 5px; margin-top: 4px; }
.sbd-mini-btns i { font-style: normal; font-size: 8px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--ma); color: var(--moa); }
.sbd-mini-btns i + i { background: transparent; color: var(--mop); box-shadow: inset 0 0 0 1px currentColor; }
.sbd-mini-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 0 10px 10px; margin-top: -8px; position: relative; }
.sbd-mini-links i { height: 16px; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); border: 1px solid #e3e6ea; }
/* template flavors */
.sbd-mini[data-mini="liberty"] .sbd-mini-stripe, .sbd-mini[data-mini="federal"] .sbd-mini-stripe { height: 5px; background: repeating-linear-gradient(90deg, var(--ma) 0 14px, #fff 14px 17px, var(--mp) 17px 31px, #fff 31px 34px); }
.sbd-mini[data-mini="liberty"] .sbd-mini-hero { border-bottom: 6px solid transparent; border-image: repeating-linear-gradient(90deg, var(--ma) 0 20px, #fff 20px 24px) 6; }
.sbd-mini[data-mini="liberty"] .sbd-mini-name, .sbd-mini[data-mini="federal"] .sbd-mini-name { text-transform: uppercase; letter-spacing: 0; }
.sbd-mini[data-mini="liberty"] .sbd-mini-btns i, .sbd-mini[data-mini="liberty"] .sbd-mini-head em, .sbd-mini[data-mini="federal"] .sbd-mini-btns i { border-radius: 3px; }
.sbd-mini[data-mini="heartland"] .sbd-mini-hero { background: linear-gradient(180deg, var(--mp), color-mix(in srgb, var(--mp) 70%, #000)); }
.sbd-mini[data-mini="heartland"] .sbd-mini-btns i { border-radius: 4px; }
.sbd-mini[data-mini="forward"] .sbd-mini-hero { background: linear-gradient(135deg, var(--mp), color-mix(in srgb, var(--mp) 60%, #4338ca)); border-bottom-color: transparent; border-image: linear-gradient(90deg, var(--ma), #ffc15e) 4; }
.sbd-mini[data-mini="grassroots"] .sbd-mini-hero { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--mp) 75%, #fff) 0%, var(--mp) 50%, color-mix(in srgb, var(--mp) 70%, #000) 100%); }
.sbd-mini[data-mini="grassroots"] .sbd-mini-links i { border-radius: 8px; }

/* 2.4.4: main AI actions */
.sbd .sbd-ai button.sbd-ai-btn.is-main, .sbd .sbd-ai button.sbd-ai-btn.is-main:focus { background: linear-gradient(135deg, #6d28d9, #2563eb); border-color: transparent; color: #fff; }
.sbd .sbd-ai button.sbd-ai-btn.is-main:hover { filter: brightness(1.08); color: #fff; }
.sbd .sbd-ai button.sbd-ai-btn[hidden] { display: none; }
.sbd-ai-paste { margin-top: 8px; }
.sbd-ai-paste .sbd-hint { flex: 1 1 260px; margin: 0; }
.sbd-ai-list { margin: 4px 0 10px; padding-left: 18px; font-size: .9rem; line-height: 1.5; }

/* 2.5.0: custom domains */
.sbd-domain-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sbd-domain-row input { flex: 1 1 220px; }
.sbd-domain-status { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 14px; padding: 12px 14px; border-radius: 10px; border-left: 4px solid #b7791f; background: #fff8e6; font-size: .92rem; }
.sbd-domain-status.is-live { border-left-color: #1e7e34; background: #eaf7ee; }
.sbd-domain-status.is-dns, .sbd-domain-status.is-new { border-left-color: #6b7280; background: var(--sur); }
.sbd-dns code { font-size: .9rem; word-break: break-all; }
.sbd-table-wrap { overflow-x: auto; margin-bottom: 10px; }
.sbd-domain-allow .sbd-badge { margin-left: 6px; }
/* 2.6.0 Cloudflare admin box */
.sbd-admin-cf input[type=text], .sbd-admin-cf input[type=password] { width: 100%; max-width: 480px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #8c959f; border-radius: 6px; font: inherit; }
.sbd-admin-cf small { color: #444; }
.sbd-admin-cf textarea { box-sizing: border-box; max-width: 100%; }
.sbd-dns tr.is-verify td { background: #fff8e1; }
.sbd-dns code.sbd-break { word-break: break-all; }

/* 2.7.2: buy-a-domain box */
.sbd .sbd-buy-domain { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 0 0 16px; border: 1px solid #D6DEEE; border-radius: 12px; background: #E8EEFB; color: #1F2937; }
.sbd .sbd-buy-domain > div { display: flex; flex-direction: column; gap: 2px; min-width: 200px; flex: 1 1 240px; }
.sbd .sbd-buy-domain strong { color: #0B1D3A; font-size: 16px; }
.sbd .sbd-buy-domain span { font-size: 15px; }
.sbd .sbd-buy-domain a.sbd-btn:link, .sbd .sbd-buy-domain a.sbd-btn:visited { background: #0B3FB0; color: #FFFFFF; text-decoration: none; white-space: normal; text-align: center; }
.sbd .sbd-buy-domain a.sbd-btn:hover, .sbd .sbd-buy-domain a.sbd-btn:visited:hover, .sbd .sbd-buy-domain a.sbd-btn:focus { background: #082C7A; color: #FFFFFF; }
.sbd .sbd-buy-domain a.sbd-btn:active { background: #082C7A; color: #FFFFFF; }
.sbd .sbd-buy-domain a.sbd-btn:focus-visible { outline: 3px solid #E8A838; outline-offset: 2px; }
.sbd .sbd-notice a:link, .sbd .sbd-notice a:visited { color: #0B3FB0; text-decoration: underline; }
.sbd .sbd-notice a:hover, .sbd .sbd-notice a:visited:hover, .sbd .sbd-notice a:active { color: #082C7A; }
@media (max-width: 600px) { .sbd .sbd-buy-domain a.sbd-btn { width: 100%; } }

/* 2.7.5: Admin center */
.sbac-jump { max-width: 1100px; margin: 0 auto 12px; font-family: system-ui, sans-serif; font-size: .95rem; }
.sbac-jump a:link, .sbac-jump a:visited { color: #0B3FB0; font-weight: 600; text-decoration: underline; }
.sbac-jump a:hover, .sbac-jump a:active { color: #082C7A; }
.sbac { max-width: 1100px; margin: 32px auto 0; padding: 20px; border: 1px solid #D6DEEE; border-radius: 14px; background: #FFFFFF; color: #1F2937; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.5; scroll-margin-top: 90px; }
.sbac *, .sbac *::before, .sbac *::after { box-sizing: border-box; }
.sbac-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.sbac-head h2 { margin: 0; font-size: 1.5rem; color: #0B1D3A; }
.sbac-badge { background: #0B1D3A; color: #FFFFFF; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.sbac-ver { color: #374151; font-size: .85rem; margin-left: auto; }
.sbac-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid #D6DEEE; margin-bottom: 18px; }
.sbac .sbac-tabs button, .sbac .sbac-tabs button:hover, .sbac .sbac-tabs button:focus { appearance: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; background: transparent; color: #374151; font: inherit; font-weight: 600; padding: 10px 12px; cursor: pointer; border-radius: 8px 8px 0 0; }
.sbac .sbac-tabs button:hover { background: #E8EEFB; color: #0B1D3A; }
.sbac .sbac-tabs button[aria-selected="true"], .sbac .sbac-tabs button[aria-selected="true"]:hover { color: #0B3FB0; border-bottom-color: #0B3FB0; background: #F3F6FC; }
.sbac button:focus-visible, .sbac a:focus-visible, .sbac input:focus-visible, .sbac select:focus-visible, .sbac-panel:focus-visible { outline: 3px solid #E8A838; outline-offset: 2px; }
.sbac-panel[hidden] { display: none !important; }
.sbac h3 { font-size: 1.15rem; color: #0B1D3A; margin: 22px 0 8px; }
.sbac-help, .sbac .description { color: #374151; font-size: .95rem; }
.sbac-muted { color: #4B5563; font-size: .9rem; }
.sbac-notice { background: #E7F4EA; border-left: 4px solid #1E6B34; color: #14532D; padding: 10px 12px; border-radius: 6px; font-weight: 600; }
.sbac a:link, .sbac a:visited { color: #0B3FB0; text-decoration: underline; }
.sbac a:hover, .sbac a:visited:hover, .sbac a:active { color: #082C7A; }
.sbac-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.sbac-stats > div { flex: 1 1 160px; background: #F3F6FC; border: 1px solid #D6DEEE; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.sbac-stats strong { font-size: 1.8rem; color: #0B1D3A; line-height: 1.1; }
.sbac-stats span { color: #374151; font-size: .9rem; }
.sbac-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sbac-checks li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 4px 12px; padding: 10px 12px; border: 1px solid #D6DEEE; border-radius: 10px; }
.sbac-checks li.is-todo { border-color: #E8A838; background: #FFF8EC; }
.sbac-dot { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.is-ok .sbac-dot { background: #1E6B34; color: #FFFFFF; }
.is-todo .sbac-dot { background: #8A5A00; color: #FFFFFF; }
.sbac-check-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sbac-check-text span { color: #374151; font-size: .92rem; }
.sbac .sbac-go, .sbac .sbac-go:hover, .sbac .sbac-go:focus { flex: 0 0 auto; background: #FFFFFF; color: #0B3FB0; border: 2px solid #0B3FB0; border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
.sbac .sbac-go:hover { background: #0B3FB0; color: #FFFFFF; }
.sbac-links a { display: inline-block; margin: 0 14px 6px 0; }
.sbac-tpls { display: flex; flex-wrap: wrap; gap: 16px; }
.sbac-tpl { flex: 1 1 300px; max-width: 100%; border: 1px solid #D6DEEE; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #FFFFFF; }
.sbac-tpl-art { position: relative; height: 150px; overflow: hidden; }
.sbac-tpl-art .sbac-art { position: absolute; right: 0; bottom: 6px; width: 58%; height: 88%; opacity: .6; }
.sbac-tpl-sample { position: absolute; left: 14px; top: 16px; font-weight: 800; font-size: 1.15rem; line-height: 1.15; display: flex; flex-direction: column; gap: 4px; max-width: 44%; }
.sbac-tpl-sample small { font-weight: 600; font-size: .8rem; opacity: .95; font-family: system-ui, sans-serif; }
.sbac-tpl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; }
.sbac-tpl-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sbac-tpl-body h4 { margin: 0; font-size: 1.1rem; color: #0B1D3A; }
.sbac-tpl-body p { margin: 0; font-size: .92rem; }
.sbac-tpl-races { color: #374151; font-weight: 600; }
.sbac-tpl-meta { color: #374151; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sbac-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.25); vertical-align: middle; }
.sbac-tpl-ctl { margin-top: auto !important; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.sbac-tpl-ctl label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sbac-table-wrap { overflow-x: auto; }
.sbac-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sbac-table th, .sbac-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #D6DEEE; vertical-align: top; }
.sbac-table thead th { background: #F3F6FC; color: #0B1D3A; }
/* wp-admin markup reused inside the Admin center */
.sbac .form-table { width: 100%; border-collapse: collapse; }
.sbac .form-table th { text-align: left; width: 200px; padding: 12px 10px 12px 0; vertical-align: top; color: #0B1D3A; }
.sbac .form-table td { padding: 10px 0; }
.sbac .widefat { width: 100%; border-collapse: collapse; }
.sbac .widefat th, .sbac .widefat td { padding: 8px; border-bottom: 1px solid #D6DEEE; text-align: left; vertical-align: top; }
.sbac input[type=text], .sbac input[type=email], .sbac input[type=url], .sbac input[type=password], .sbac input[type=number], .sbac select, .sbac textarea { max-width: 100%; padding: 8px 10px; border: 1px solid #6B7280; border-radius: 8px; font: inherit; color: #1F2937; background: #FFFFFF; }
.sbac .regular-text { width: 26em; }
.sbac .button, .sbac .button:hover, .sbac .button:focus { display: inline-block; background: #FFFFFF; color: #0B3FB0; border: 2px solid #0B3FB0; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.sbac .button:hover { background: #E8EEFB; color: #082C7A; }
.sbac .button-primary, .sbac .button-primary:hover, .sbac .button-primary:focus, .sbac .sbd-btn-primary, .sbac .sbd-btn-primary:hover, .sbac .sbd-btn-primary:focus { background: #0B3FB0; color: #FFFFFF; border: 2px solid #0B3FB0; }
.sbac .button-primary:hover, .sbac .sbd-btn-primary:hover { background: #082C7A; border-color: #082C7A; color: #FFFFFF; }
.sbac code { background: #F3F6FC; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
@media (max-width: 700px) {
	.sbac { padding: 14px; margin-top: 20px; border-radius: 10px; }
	.sbac-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.sbac .sbac-tabs button { white-space: nowrap; }
	.sbac-ver { margin-left: 0; width: 100%; }
	.sbac .form-table, .sbac .form-table tbody, .sbac .form-table tr, .sbac .form-table th, .sbac .form-table td { display: block; width: 100%; }
	.sbac .form-table th { padding-bottom: 0; }
	.sbac .regular-text, .sbac input[type=text], .sbac input[type=email], .sbac input[type=url], .sbac input[type=password], .sbac select { width: 100%; }
	.sbac-checks li { grid-template-columns: 28px 1fr; }
	.sbac .sbac-go { grid-column: 2; justify-self: start; }
	.sbac-stats > div { flex: 1 1 calc(50% - 6px); }
	.sbac-stats strong { font-size: 1.5rem; }
}

/* 2.7.7 */
.sbd-demo-note { margin: 0 0 12px; font-size: .95rem; color: #374151; }
.sbd-demo-note a:link, .sbd-demo-note a:visited { color: #0B3FB0; text-decoration: underline; }
.sbd-mini-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.sbac-tpl-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 8px; margin-top: 6px; border-top: 1px solid #D6DEEE; font-size: .9rem; }
.sbac-tpl-photo label { flex: 1 1 100%; }
.sbac-tpl-photo input[type=file] { flex: 1 1 180px; max-width: 100%; font-size: .85rem; }
.sbac-photo-btns { display: inline-flex; gap: 6px; }
.sbac .sbd-btn-sm, .sbac .sbd-btn-sm:hover, .sbac .sbd-btn-sm:focus { background: #FFFFFF; color: #0B3FB0; border: 2px solid #0B3FB0; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.sbac .sbd-btn-sm:hover { background: #E8EEFB; color: #082C7A; }
.sbac .sbac-linkbtn, .sbac .sbac-linkbtn:hover, .sbac .sbac-linkbtn:focus { background: none; border: 0; padding: 0; color: #0B3FB0; text-decoration: underline; font: inherit; cursor: pointer; }
.sbac .sbac-linkbtn:hover { color: #082C7A; }
.sbac-lineart { margin-top: 14px; }
.sbac-lineart label { display: inline-flex; gap: 8px; align-items: flex-start; }
/* 2.7.8 AI header photos */
.sbac-ai-all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; padding: 12px 14px; background: #F3F6FC; border: 1px solid #D6DEEE; border-radius: 10px; }
.sbac-ai-all .sbd-btn-primary[disabled] { opacity: .55; cursor: not-allowed; }
.sbac-ai-allstatus, .sbac-ai-status { font-weight: 600; color: #0B1D3A; font-size: .9rem; }
.sbac-tpl-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 8px; margin-top: 6px; border-top: 1px solid #D6DEEE; font-size: .9rem; }
.sbac-tpl-ai label { flex: 1 1 100%; }
.sbac-tpl-ai .sbac-ai-desc { flex: 1 1 180px; min-width: 0; font-size: .85rem; padding: 6px 8px; }
.sbac-tpl-ai .sbac-ai-status { flex: 1 1 100%; }
.sbac .sbd-btn-sm[disabled] { opacity: .55; cursor: wait; }
/* 2.7.9 delete / change template */
.sbd .sbd-actions-2 { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #D6DEEE; }
.sbd button.sbd-btn-del, .sbd button.sbd-btn-del:focus { background: #FFFFFF; color: #A4161A; border: 1px solid #E3B4B6; }
.sbd button.sbd-btn-del:hover { background: #A4161A; color: #FFFFFF; border-color: #A4161A; }
.sbd-tpl-use { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.sbd-dialog { max-width: 460px; width: calc(100% - 32px); border: 0; border-radius: 14px; padding: 22px; color: #1F2937; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; box-shadow: 0 20px 60px rgba(11,29,58,.35); }
.sbd-dialog::backdrop { background: rgba(11,29,58,.55); }
.sbd-dialog h2 { margin: 0 0 8px; font-size: 1.25rem; color: #0B1D3A; }
.sbd-dialog p { margin: 0 0 14px; line-height: 1.5; }
.sbd-dialog .sbd-dlg-type { display: block; margin-bottom: 6px; font-size: .95rem; }
.sbd-dialog input { width: 100%; padding: 9px 11px; border: 1px solid #6B7280; border-radius: 8px; font: inherit; margin-bottom: 14px; }
.sbd-dlg-btns { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.sbd-dialog .sbd-btn { padding: 9px 16px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; border: 1px solid #C9CFD6; background: #FFFFFF; color: #1F2937; }
.sbd-dialog .sbd-btn:hover { background: #F3F6FC; color: #0B1D3A; }
.sbd-dialog .sbd-btn-primary, .sbd-dialog .sbd-btn-primary:hover { background: #0B3FB0; border-color: #0B3FB0; color: #FFFFFF; }
.sbd-dialog .sbd-btn-danger, .sbd-dialog .sbd-btn-danger:hover { background: #A4161A; border-color: #A4161A; color: #FFFFFF; }
.sbd-dialog .sbd-btn[disabled] { opacity: .5; cursor: not-allowed; }
.sbd-dialog .sbd-btn:focus-visible, .sbd-dialog input:focus-visible { outline: 3px solid #E8A838; outline-offset: 2px; }
.sbd .sbd-tpl-use .sbd-hint { font-size: .9rem; line-height: 1.4; color: #374151; margin: 0; }
/* 2.7.10 photo library */
.sbac-lib { margin: 0 0 22px; padding: 14px 16px; border: 1px solid #D6DEEE; border-radius: 12px; background: #FFFFFF; }
.sbac-lib h3 { margin-top: 0; }
.sbac-lib-make { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 14px; }
.sbac-lib-make input[type=text] { flex: 1 1 260px; min-width: 0; }
.sbac-lib-status { flex: 1 1 100%; font-weight: 600; color: #0B1D3A; }
.sbac-lib-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sbac-lib-item { border: 1px solid #D6DEEE; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: #F3F6FC; }
.sbac-lib-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sbac-lib-label { padding: 6px 10px 0; font-weight: 600; font-size: .9rem; color: #0B1D3A; }
.sbac-lib-ctl { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 10px; align-items: center; }
.sbac-lib-ctl select { flex: 1 1 100%; font-size: .85rem; padding: 5px 8px; }
.sbac .sbac-del, .sbac .sbac-del:focus { color: #A4161A; border-color: #E3B4B6; }
.sbac .sbac-del:hover { background: #A4161A; color: #FFFFFF; border-color: #A4161A; }
.sbd-photo-pick h4 { margin: 14px 0 4px; font-size: 1rem; }
.sbd-photo-pick ul { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sbd button.sbd-photo-btn, .sbd button.sbd-photo-btn:hover, .sbd button.sbd-photo-btn:focus { display: flex; flex-direction: column; width: 100%; padding: 0; border: 2px solid #D6DEEE; border-radius: 10px; overflow: hidden; background: #FFFFFF; color: #1F2937; cursor: pointer; text-align: left; font: inherit; }
.sbd button.sbd-photo-btn:hover { border-color: #0B3FB0; }
.sbd button.sbd-photo-btn.is-on { border-color: #0B3FB0; box-shadow: 0 0 0 2px #0B3FB0; }
.sbd-photo-btn img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sbd-photo-btn span { padding: 6px 8px; font-size: .82rem; font-weight: 600; }
.sbd button.sbd-photo-btn:focus-visible { outline: 3px solid #E8A838; outline-offset: 2px; }
.sbd .sbd-photo-pick h4 { font-size: 1rem; font-weight: 700; color: #0B1D3A; margin: 16px 0 2px; }
.sbd .sbd-photo-pick .sbd-hint { font-size: .9rem; line-height: 1.4; color: #374151; margin: 0; }
/* 2.7.11 split mini previews */
.sbd-mini-split .sbd-mini-splitbody { position: relative; display: flex; align-items: stretch; min-height: 118px; background: linear-gradient(90deg, var(--mp) 0%, color-mix(in srgb, var(--mp) 80%, #000) 100%); color: var(--mop); overflow: hidden; }
.sbd-mini-split.is-light .sbd-mini-splitbody { background: linear-gradient(90deg, #fff 0%, #fff 55%, color-mix(in srgb, var(--mp) 10%, #fff) 100%); color: #1F2937; }
.sbd-mini-split.is-left .sbd-mini-splitbody { flex-direction: row-reverse; }
.sbd-mini-splittext { position: relative; z-index: 1; flex: 1 1 58%; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 10px 12px; }
.sbd-mini-split .sbd-mini-office { font-size: 6px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .95; }
.sbd-mini-split .sbd-mini-name { font-family: var(--mh); font-weight: 800; font-size: 11px; line-height: 1.1; }
.sbd-mini-split.is-light .sbd-mini-name { color: var(--mp); }
.sbd-mini-form { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 4px; }
.sbd-mini-form i { display: block; height: 7px; border-radius: 2px; background: #fff; border: 1px solid rgba(0,0,0,.15); }
.sbd-mini-form b { grid-column: 1 / -1; display: block; text-align: center; font-size: 6px; line-height: 9px; border-radius: 2px; background: var(--ma); color: var(--moa); }
.sbd-mini-person { position: relative; z-index: 1; flex: 0 0 40%; display: flex; align-items: flex-end; justify-content: center; }
.sbd-mini-person svg { width: 80%; height: auto; fill: color-mix(in srgb, var(--mop) 55%, transparent); }
.sbd-mini-split.is-light .sbd-mini-person svg { fill: color-mix(in srgb, var(--mp) 45%, #fff); }
.sbd-mini-split .sbd-mini-photo { opacity: .25; }

/* 2.7.12 AI Quick start in the new-site wizard */
.sbd-qs { margin: 0 0 28px; padding: 20px; border: 2px solid #c7d2fe; border-radius: 14px; background: linear-gradient(180deg, #f5f3ff, #eff6ff); }
.sbd-qs h2 { display: flex; align-items: center; justify-content: flex-start !important; gap: 10px; margin-top: 0; }
.sbd-qs .sbd-panel-help, .sbd-qs .sbd-hint { color: #334155; font-size: .95rem; }
.sbd-qs textarea { width: 100%; min-height: 120px; font: inherit; padding: 10px 12px; border: 1px solid #94a3b8; border-radius: 8px; background: #fff; box-sizing: border-box; }
.sbd-qs textarea:focus { outline: 3px solid #2563eb; outline-offset: 1px; }
.sbd-qs .sbd-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.sbd-qs .sbd-ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.sbd-qs-result:empty { display: none; }
.sbd-qs-result { margin-top: 10px; }
.sbd-qs.is-done { border-color: #86efac; background: #f0fdf4; }
.sbd-qs-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #f5f3ff; border: 1px solid #c7d2fe; margin: 0 0 16px; line-height: 1.45; }
@media (max-width: 600px) { .sbd-qs { padding: 14px; } .sbd-qs .sbd-ai-actions .sbd-btn { width: 100%; } }

/* 2.7.13 header photo in use + Remove */
.sbd-art-current { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; margin: 0 0 14px; }
.sbd-art-current img { width: 120px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; }
.sbd-art-current p { margin: 0 0 8px; }
.sbd-photo-none .sbd-photo-none-swatch { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; background: repeating-linear-gradient(45deg, #e2e8f0 0 8px, #f8fafc 8px 16px); border: 1px dashed #94a3b8; box-sizing: border-box; }
@media (max-width: 480px) { .sbd-art-current { flex-direction: column; align-items: flex-start; } .sbd-art-current img { width: 100%; height: auto; aspect-ratio: 16 / 9; } }

/* 2.7.15 Background picker (Home panel + wizard) */
.sbd-bg-pick { margin: 18px 0 8px; padding: 14px; border: 1px solid #D6DEEE; border-radius: 12px; background: #F8FAFC; }
.sbd .sbd-bg-pick h3, .sbd .sbd-bg-pick h4 { font-size: 1.05rem; font-weight: 700; color: #0B1D3A; margin: 0 0 4px; }
.sbd .sbd-bg-pick .sbd-hint { font-size: .9rem; line-height: 1.4; color: #374151; margin: 0; }
.sbd-bg-pick ul { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.sbd-photo-btn .sbd-photo-none-swatch { padding: 0 !important; border-radius: 0; border: 0; }
.sbd-bg-up input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 480px) { .sbd-bg-pick ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sbd-photo-btn .sbd-photo-none-swatch { display: block; width: 100%; aspect-ratio: 16 / 9; flex: none; background: repeating-linear-gradient(45deg, #e2e8f0 0 8px, #f8fafc 8px 16px); border-bottom: 1px dashed #94a3b8 !important; box-sizing: border-box; }
.sbd-cutout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 14px; }

/* 2.8.0 Admin center: Email tab */
.sbac-notice.is-err { background: #FDECEC; border-left-color: #B42318; color: #7A1A12; }
.sbac-form { display: grid; gap: 14px; max-width: 760px; }
.sbac-fieldset { border: 1px solid #D1D5DB; border-radius: 10px; padding: 12px 16px; margin: 0; }
.sbac-fieldset legend { font-weight: 700; padding: 0 6px; }
.sbac-radio, .sbac-check { display: flex; gap: 8px; align-items: center; min-height: 36px; }
.sbac-field { display: grid; gap: 4px; margin: 0; }
.sbac-field label { font-weight: 600; }
.sbac-field input, .sbac-field select { min-height: 42px; padding: 8px 10px; border: 1px solid #9CA3AF; border-radius: 8px; font: inherit; max-width: 100%; }
.sbac-hint { color: #4B5563; font-size: .88rem; }
.sbac-hint code { word-break: break-all; }
.sbac-details { border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px 14px; }
.sbac-details summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.sbac-details[open] { display: grid; gap: 10px; padding-bottom: 14px; }
.sbac-btn { font: inherit; font-weight: 700; border-radius: 999px; padding: 10px 18px; border: 1px solid #1F2937; background: #fff; color: #111827; cursor: pointer; min-height: 44px; }
.sbac-btn-primary { background: #0B3D91; border-color: #0B3D91; color: #fff; }
.sbac-btn:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }

/* 2.8.0 Email panel */
.sbd-mail-usage { background: var(--sur); border: 1px solid var(--bd); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; display: grid; gap: 6px; }
.sbd-mail-usage.is-own { background: #E7F4EA; border-color: #B7DFC2; color: #14532D; }
.sbd-meter { height: 8px; background: #fff; border: 1px solid var(--bd); border-radius: 999px; overflow: hidden; }
.sbd-meter span { display: block; height: 100%; background: var(--p); }
.sbd-mail-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.sbd-mail-tabs .sbd-btn, .sbd-mail-actions .sbd-btn, .sbd-mail-tpls .sbd-btn { min-height: 40px; }
.sbd-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--p); text-decoration: underline; cursor: pointer; }
.sbd-mail-tpls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.sbd-mail-tpls > span { font-weight: 600; font-size: .9rem; }
.sbd-mail-ai { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.sbd-mail-ai select, .sbd-mail-ai input { min-height: 40px; border: 1px solid #8a939c; border-radius: 8px; padding: 6px 10px; font: inherit; }
.sbd-mail-ai input { flex: 1 1 220px; min-width: 0; }
.sbd-fieldset { border: 1px solid var(--bd); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.sbd-fieldset legend { font-weight: 700; padding: 0 6px; }
.sbd-radio { display: flex; gap: 8px; align-items: center; min-height: 36px; }
.sbd-mail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.sbd-chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--bd); border-radius: 999px; padding: 6px 12px; min-height: 36px; background: #fff; cursor: pointer; }
.sbd-chip:has(input:checked) { border-color: var(--p); background: #EEF3FA; }
.sbd-mail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sbd-mail-table small { color: var(--mut); }
.sbd-err-text { color: #A12A1F !important; }
.sbd-nowrap { white-space: nowrap; }
.sbd-req { font-weight: 400; color: var(--mut); font-size: .85rem; }
.sbd-badge.is-sent { background: #E7F4EA; color: #14532D; }
.sbd-badge.is-sending, .sbd-badge.is-scheduled { background: #EEF3FA; color: #1F3A5F; }
.sbd-badge.is-paused { background: #FDF3D8; color: #6B4E00; }
@media (max-width: 640px) {
  .sbd-nowrap { white-space: normal; }
  .sbd-mail-actions .sbd-btn { flex: 1 1 100%; }
}
.sbd-mail-table tbody th { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; color: var(--txt); }
.sbd-mail-table tbody th small { font-weight: 400; }
.sbd-badge.is-failed { background: #FDECEC; color: #7A1A12; }
.sbd-details { border: 1px solid var(--bd); border-radius: 10px; padding: 8px 14px; margin: 0 0 12px; }
.sbd-details summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.sbd-details[open] { padding-bottom: 12px; }
.sbd-radio small { color: var(--mut); }
.sbd-mail-buy a { font-weight: 700; }

/* 2.9.0 Contacts, groups, automations */
.sbd-mail-groups { margin-bottom: 14px; }
.sbd-group-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.sbd-group-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--bd); }
.sbd-group-list li .sbd-linkbtn { font-weight: 700; }
.sbd-group-list small { color: var(--mut); margin-right: auto; }
.sbd-group-list input[type=text] { flex: 1 1 200px; width: auto; }
.sbd-inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.sbd-inline-form input { flex: 1 1 200px; width: auto !important; }
.sbd-mail-box { border: 1px solid var(--bd); border-radius: 12px; padding: 14px 16px; margin: 12px 0 16px; background: var(--sur); }
.sbd-mail-box h3 { margin-top: 0; }
.sbd-mc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sbd-mc-filters input { flex: 2 1 220px; width: auto !important; }
.sbd-mc-filters select { flex: 1 1 160px; width: auto !important; }
.sbd-mc-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.sbd-mc-bulk select { width: auto !important; min-width: 140px; }
.sbd-mail-table td input[type=checkbox], .sbd-mail-table th input[type=checkbox] { width: 20px; height: 20px; }
.sbd-label { font-weight: 600; margin: 8px 0 2px; }
.sbd-label small { font-weight: 400; color: var(--mut); }
.sbd-ms-list { display: grid; gap: 12px; margin-top: 14px; }
.sbd-ms-card { border: 1px solid var(--bd); border-radius: 12px; padding: 12px 16px; }
.sbd-ms-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.sbd-ms-head h3 { margin: 0; }
.sbd-ms-steps { margin: 8px 0; padding-left: 22px; display: grid; gap: 4px; }
.sbd-ms-steps small { color: var(--mut); }
.sbd-ms-edit { list-style: none; padding: 0; margin: 0 0 10px; }
.sbd-ms-wait input { max-width: 140px; }
@media (max-width: 640px) { .sbd-mc-bulk .sbd-btn { flex: 1 1 45%; } }
.sbd-mail-groups + .sbd-mail-actions { margin-bottom: 18px; }
.sbd-mc-filters input[type=search] { min-height: 42px; }

/* 2.9.1 Text-style buttons inside sentences: undo theme button styles (borders, padding, pink focus boxes) */
.sbd .sbd-linkbtn, .sbd .sbd-linkbtn:hover, .sbd .sbd-linkbtn:focus, .sbd .sbd-linkbtn:active {
  display: inline; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important;
  min-height: 0 !important; height: auto !important; width: auto !important; border-radius: 0 !important;
  font: inherit !important; line-height: inherit !important; letter-spacing: inherit !important; text-transform: none !important;
  color: var(--p) !important; text-decoration: underline !important; text-underline-offset: 2px; cursor: pointer; vertical-align: baseline;
}
.sbd .sbd-linkbtn:hover { text-decoration-thickness: 2px !important; }
.sbd .sbd-linkbtn:focus-visible { outline: 2px solid var(--p) !important; outline-offset: 2px; border-radius: 2px !important; }

/* 2.9.1 Custom domain guide */
.sbd-domain-guide { border: 1px solid var(--bd); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; background: var(--sur); }
.sbd-domain-guide h4 { margin: 0 0 8px; font-size: 1.05rem; }
.sbd-steps-list { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 12px; }
.sbd-steps-list li > strong:first-child { display: inline; }
.sbd-dns td, .sbd-dns th { vertical-align: middle; }
.sbd-dns small { color: var(--mut); }
.sbd-dns td:first-child strong, .sbd-dns .sbd-btn { white-space: nowrap; word-break: normal; }
.sbd-dns td:last-child { width: 1%; }
.sbd-registrars { margin: 6px 0; padding-left: 20px; display: grid; gap: 6px; font-size: .92rem; }
.sbd .sbd-hint { font-size: .85rem; color: var(--mut); }
.sbd-domain-guide { font-size: .95rem; }
.sbd-domain-guide .sbd-hint { margin: 6px 0 0; }
.sbd .sbd-details summary { font-size: 1rem; font-weight: 700; border: 0; outline-offset: 2px; }
.sbd-domain-guide { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .sbd-domain-guide { padding: 12px; }
  .sbd-steps-list { padding-left: 18px; }
  .sbd-domain-guide .sbd-dns thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sbd-domain-guide .sbd-dns, .sbd-domain-guide .sbd-dns tbody, .sbd-domain-guide .sbd-dns tr, .sbd-domain-guide .sbd-dns td { display: block; width: 100%; }
  .sbd-domain-guide .sbd-dns tr { border: 1px solid var(--bd); border-radius: 10px; padding: 8px 10px; margin: 8px 0; background: #fff; }
  .sbd-domain-guide .sbd-dns td { border: 0; padding: 3px 0; }
  .sbd-domain-guide .sbd-dns td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--mut); font-size: .8rem; }
}

/* 2.12.1: header bar, template filter, real screenshots, ready banner */
.sbd-brandbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; margin-bottom: 8px; border-bottom: 1px solid var(--bd); }
.sbd-brandbar-name { font-weight: 800; font-size: 1.2rem; color: var(--ink, #0f172a); text-decoration: none; }
.sbd-brandbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.sbd-brandbar nav a { color: var(--ink, #0f172a); text-decoration: none; font-weight: 600; }
.sbd-brandbar a:hover, .sbd-brandbar a:focus-visible { text-decoration: underline; }
.sbd-tpl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.sbd-chip { border: 1px solid var(--bd); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; color: inherit; min-height: 40px; }
.sbd-chip span { opacity: .65; font-weight: 500; margin-left: 2px; }
.sbd-chip.is-on { background: #1e293b; border-color: #1e293b; color: #fff; }
.sbd-chip:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.sbd-tpl-wrap[hidden] { display: none !important; }
.sbd-tpl-shot { display: block; aspect-ratio: 720 / 309; overflow: hidden; background: #e2e8f0; border-radius: 8px 8px 0 0; }
.sbd-tpl-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sbd-ready { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sbd-notice.is-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
/* 2.12.6: bare-domain options (Forwarding vs A record) */
.sbd-option { border: 1px solid var(--bd); border-radius: 10px; padding: 10px 12px; margin: 8px 0; background: #fff; }
.sbd-option > p { margin: 4px 0; }
.sbd-option .sbd-table-wrap { margin: 6px 0; }
/* 2.12.7: buy box actions */
.sbd .sbd-buy-domain > .sbd-buy-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; flex: 0 1 auto; min-width: 0; }
.sbd .sbd-buy-domain a.sbd-btn.sbd-buy-ask:link, .sbd .sbd-buy-domain a.sbd-btn.sbd-buy-ask:visited { background: #fff; color: #0B3FB0; border: 1px solid #0B3FB0; font-size: 15px; padding: 8px 14px; }
.sbd .sbd-buy-domain a.sbd-btn.sbd-buy-ask:hover, .sbd .sbd-buy-domain a.sbd-btn.sbd-buy-ask:focus { background: #E8EEFB; color: #0B3FB0; }

/* 2.12.11: inline error above the Check connection button (stays visible, unlike the toast) */
.sbd .sbd-domain-error { margin: 8px 0 10px; padding: 10px 12px; border-left: 4px solid #b32d2e; background: #fcf0f1; color: #3c1414; border-radius: 6px; font-size: 14px; line-height: 1.45; }
