/* 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 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; }
