/*
 * /sites/… — Brand Sites pages. Built on designs.css (tokens, cards, buttons, hero, forms, pagination); only what the
 * Sites views add lives here. Prefix: bs-.
 */

/* ---------- type ---------- */
.bs-h1 { margin: 0 0 4px; font-size: clamp(1.35rem, 1.2vw + 1rem, 1.75rem); line-height: 1.2; font-weight: 900; color: var(--text); letter-spacing: -.01em; }
.bs-h2 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 900; color: var(--text-dark); }
.bs-h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: .95rem; font-weight: 900; color: var(--text-dark); }
.bs-h3 .material-icons { font-size: 19px; color: var(--brand-blue); }
.bs-small { font-size: .82rem; }
.bs-block { display: block; }
.bs-lead { margin: 0 0 14px; color: var(--text-body); line-height: 1.55; }
.bs-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--tone, 76, 111, 255)); }
.bs-eyebrow .material-icons { font-size: 16px; }
.bs-eyebrow:hover { text-decoration: none; opacity: .8; }
.bs-label-note { font-weight: 600; font-size: .78rem; color: var(--text-muted); }
.bs-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bs-fineprint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 18px; color: var(--text-muted); font-size: .85rem; font-weight: 600; text-align: center; }
.bs-fineprint .material-icons { font-size: 17px; }
.bs-linkbtn { border: 0; background: none; padding: 0 4px; color: var(--brand-blue); font-weight: 800; font-size: .75rem; cursor: pointer; }
.brand-btn.is-disabled { opacity: .65; cursor: default; pointer-events: none; }
.brand-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.brand-btn.is-busy .material-icons, .templates-cta.is-busy .material-icons { animation: bs-spin 1s linear infinite; }
.bs-danger { background: #fee4e2; color: #b42318; }
.bs-danger:hover { background: #fecdca; color: #912018; }
@keyframes bs-spin { to { transform: rotate(360deg); } }

/* ---------- section bar + account menu ---------- */
.bs-subnav { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.bs-tabs { flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.bs-tabs::-webkit-scrollbar { display: none; }
.bs-tabs a, .bs-subtabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 13px 12px 12px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--text-muted); font-weight: 800; font-size: .9rem; white-space: nowrap; transition: color .15s, border-color .15s; }
.bs-tabs a .material-icons, .bs-subtabs a .material-icons { font-size: 18px; opacity: .75; }
.bs-tabs a:hover, .bs-subtabs a:hover { color: var(--text-dark); text-decoration: none; }
.bs-tabs a[aria-current="page"], .bs-subtabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--brand-blue); }
.bs-tabs a[aria-current="page"] .material-icons, .bs-subtabs a[aria-current="page"] .material-icons { color: var(--brand-blue); opacity: 1; }
.bs-subtabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; border-bottom: 1px solid var(--line-soft); }
.bs-subtabs::-webkit-scrollbar { display: none; }
.bs-subtabs a { padding: 10px 12px 9px; font-size: .86rem; }
.bs-signin { margin-bottom: 6px; }

.bs-me, .bs-more { position: relative; flex: 0 0 auto; }
.bs-me > summary, .bs-more > summary { list-style: none; }
.bs-me > summary::-webkit-details-marker, .bs-more > summary::-webkit-details-marker { display: none; }
.bs-me { margin-bottom: 6px; }
.bs-me-btn { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; max-width: 250px; transition: border-color .15s, box-shadow .15s; }
.bs-me-btn:hover, .bs-me[open] .bs-me-btn, .bs-me.is-active .bs-me-btn { border-color: rgba(76, 111, 255, .4); box-shadow: 0 8px 20px rgba(76, 111, 255, .12); }
.bs-me-avatar { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-cta); color: #fff; font-weight: 900; font-size: .85rem; }
.bs-me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; text-align: left; }
.bs-me-k { font-weight: 850; font-size: .8rem; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-me-v { font-size: .72rem; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.bs-me-caret { color: var(--text-muted); }
.bs-me-panel, .bs-more-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 300px; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 24px 60px rgba(10, 20, 30, .18); }
.bs-more-panel { width: 230px; }
.bs-me-panel > a, .bs-more-panel > a, .bs-more-panel button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text-dark); font-weight: 800; font-size: .86rem; width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
.bs-more-panel form { margin: 0; }
.bs-me-panel > a:hover, .bs-more-panel > a:hover, .bs-more-panel button:hover, .bs-me-panel > a[aria-current] { background: #f3f6ff; text-decoration: none; }
.bs-me-panel > a > span:nth-child(2) { display: flex; flex-direction: column; }
.bs-me-panel small { font-weight: 600; font-size: .74rem; color: var(--text-muted); }
.bs-me-panel .material-icons, .bs-more-panel .material-icons { color: var(--brand-blue); }
.bs-more-panel .is-danger, .bs-more-panel .is-danger .material-icons { color: #b42318; }
.bs-me-plan { padding: 10px 10px 12px; margin: 0 0 4px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 7px; }
.bs-me-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); }
.bs-me-sub { font-size: .76rem; color: var(--text-muted); font-weight: 700; }

/* ---------- callouts, notices ---------- */
.bs-callout { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border-color: #c7d7fe; background: linear-gradient(135deg, #f5f8ff, #fff); color: var(--text-dark); }
.bs-callout.is-warn { border-color: #ffe0a3; background: linear-gradient(135deg, #fffaf0, #fff); }
.bs-callout:hover { text-decoration: none; box-shadow: var(--shadow-tpl); }
.bs-callout > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bs-callout-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #e0eaff; color: var(--brand-blue); font-size: 22px; }
.bs-callout.is-warn .bs-callout-icon { background: #fff1d6; color: #b45309; }
.bs-notice { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 11px 13px; border-radius: 12px; background: #f3f6ff; color: #1e3a8a; font-weight: 650; font-size: .88rem; line-height: 1.45; }
.bs-notice .material-icons { font-size: 19px; margin-top: 1px; }
.bs-notice.is-warn { background: #fffaeb; color: #8a5a00; }
.bs-notice.is-error { background: #fef3f2; color: #b42318; }
.bs-notice a { font-weight: 800; color: inherit; text-decoration: underline; }
.bs-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-muted); font-size: .8rem; font-weight: 600; }
.bs-note .material-icons { font-size: 15px; }
.bs-hint-inline { font-size: .82rem; font-weight: 700; color: #8a5a00; }

/* ---------- status pills, meter ---------- */
.bs-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 850; white-space: nowrap; background: #eef1f6; color: #414a5a; }
.bs-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.bs-status.is-live { background: #ecfdf3; color: #067647; }
.bs-status.is-draft { background: #f2f4f7; color: #475467; }
.bs-status.is-offline { background: #fffaeb; color: #b54708; }
.bs-meter { height: 8px; border-radius: 999px; background: #e0eaff; overflow: hidden; }
.bs-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-blue); }
.bs-meter.is-full > span { background: #f79009; }
.bs-meter.is-full { background: #fef0c7; }
.bs-usage { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: .84rem; font-weight: 700; }
.bs-usage .bs-meter { width: 160px; }
.bs-chip-count { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: rgba(56, 58, 63, .08); font-size: .7rem; font-weight: 850; color: var(--text-muted); }

/* ---------- page heads, toolbars ---------- */
.bs-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 2px 16px; }
.bs-page-head p { margin: 0; }
.bs-page-head-center { justify-content: center; text-align: center; }
.bs-page-head-center p { max-width: 640px; margin: 0 auto; }
.bs-toolbar { gap: 10px; }
.bs-search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 460px; margin: 0; }
.bs-search > .material-icons { position: absolute; left: 12px; font-size: 19px; color: #667085; pointer-events: none; }
.bs-search input { width: 100%; height: 38px; padding: 0 12px 0 38px; border-radius: 12px; border: 1px solid rgba(15, 23, 42, .12); background: #fff; font-size: .92rem; }
.bs-search input:focus { outline: none; border-color: rgba(76, 111, 255, .55); box-shadow: 0 0 0 4px rgba(76, 111, 255, .12); }
.bs-search-sm { flex: 0 1 240px; }
.bs-search-sm input { height: 34px; border-radius: 10px; }
.bs-toggle, .bs-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(56, 58, 63, .06); border: 1px solid var(--line-soft); }
.bs-toggle a, .bs-toggle label, .bs-seg a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; font-weight: 850; font-size: .8rem; color: rgba(56, 58, 63, .75); cursor: pointer; white-space: nowrap; }
.bs-toggle a:hover, .bs-toggle label:hover, .bs-seg a:hover { text-decoration: none; background: rgba(255, 255, 255, .7); }
.bs-toggle [aria-current], .bs-seg a[aria-current] { background: #fff; color: var(--text-dark); box-shadow: 0 8px 20px rgba(10, 20, 30, .1); }
.bs-toggle .material-icons { font-size: 15px; color: var(--brand-blue); }
.bs-seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.bs-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding: 2px; }
.bs-chips::-webkit-scrollbar { display: none; }
.bs-chip { --tone: 76, 111, 255; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text-dark); font-weight: 800; font-size: .8rem; transition: border-color .15s, background .15s; }
.bs-chip .material-icons { font-size: 16px; color: rgb(var(--tone)); }
.bs-chip:hover { text-decoration: none; border-color: rgba(var(--tone), .45); }
.bs-chip.is-active { background: rgba(var(--tone), .1); border-color: rgba(var(--tone), .5); color: var(--text); }

/* ---------- drawn page (no thumbnail) ---------- */
.bs-cover { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 7%; padding: 6% 7%; background: linear-gradient(160deg, #fff, rgba(var(--tone), .1)); }
.bs-cover-bar { display: flex; gap: 6%; align-items: center; height: 6%; }
.bs-cover-bar i { display: block; height: 100%; border-radius: 99px; background: rgba(var(--tone), .25); flex: 0 0 12%; }
.bs-cover-bar i:first-child { flex-basis: 22%; background: rgba(var(--tone), .55); margin-right: auto; }
.bs-cover-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; background: linear-gradient(135deg, rgba(var(--tone), .9), rgba(var(--tone), .6)); color: #fff; text-align: center; padding: 6%; }
.bs-cover-hero .material-icons { font-size: clamp(20px, 3vw, 30px); opacity: .9; }
.bs-cover-name { font-weight: 900; font-size: clamp(.8rem, .9vw + .3rem, 1.05rem); line-height: 1.15; text-shadow: 0 2px 10px rgba(0, 0, 0, .12); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-cover-btn { width: 32%; height: 9%; min-height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .85); }
.bs-cover-row { display: flex; gap: 5%; height: 18%; }
.bs-cover-row i { flex: 1; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(10, 20, 30, .06); border: 1px solid rgba(var(--tone), .12); }

/* ---------- template cards ---------- */
.bs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bs-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bs-tpl { --tone: 76, 111, 255; position: relative; display: flex; flex-direction: column; border-radius: 16px; background: #fff; border: 1px solid rgba(15, 23, 42, .08); box-shadow: var(--shadow-tpl); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.bs-tpl:hover { transform: translateY(-3px); box-shadow: var(--shadow-tpl-hover); }
.bs-tpl-media, .bs-site-media { position: relative; display: block; aspect-ratio: 13 / 9; overflow: hidden; background: #eef1f6; }
.bs-tpl-media img, .bs-site-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.bs-tpl:hover .bs-tpl-media img { transform: scale(1.04); }
.bs-tpl-flag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #b54708; font-size: .7rem; font-weight: 900; box-shadow: 0 6px 16px rgba(10, 20, 30, .12); backdrop-filter: blur(8px); }
.bs-tpl-flag.is-in { color: #067647; }
.bs-tpl-flag .material-icons { font-size: 14px; }
.bs-tpl-hover { position: absolute; inset: auto 10px 10px auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; font-size: .74rem; font-weight: 850; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.bs-tpl-hover .material-icons { font-size: 15px; }
.bs-tpl:hover .bs-tpl-hover, .bs-tpl:focus-within .bs-tpl-hover { opacity: 1; transform: none; }
.bs-tpl-body { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px 13px; }
.bs-tpl-title { font-weight: 850; color: var(--text); font-size: .94rem; line-height: 1.3; }
.bs-tpl-title::after { content: ""; position: absolute; inset: 0; }
.bs-tpl-title:hover { text-decoration: none; color: var(--brand-blue); }
.bs-tpl-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 750; color: var(--text-muted); }
.bs-tone-dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--tone)); flex: 0 0 auto; }

/* ---------- site cards ---------- */
.bs-site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bs-site { --tone: 76, 111, 255; position: relative; display: flex; flex-direction: column; border-radius: 16px; background: #fff; border: 1px solid rgba(15, 23, 42, .08); box-shadow: var(--shadow-tpl); overflow: hidden; transition: box-shadow .25s var(--ease); }
.bs-site:hover { box-shadow: var(--shadow-tpl-hover); }
.bs-site-media { aspect-ratio: 16 / 9; }
.bs-site-status { position: absolute; left: 10px; top: 10px; box-shadow: 0 6px 16px rgba(10, 20, 30, .12); }
.bs-site-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 4px; flex: 1; min-width: 0; }
.bs-site-title { font-weight: 900; color: var(--text); font-size: 1rem; line-height: 1.3; }
.bs-site-title:hover { color: var(--brand-blue); text-decoration: none; }
.bs-site-url { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 750; min-width: 0; }
.bs-site-url > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-site-url .material-icons { font-size: 16px; }
.bs-site-url.is-muted { color: var(--text-muted); }
.bs-site-url.is-warn { color: #b54708; }
.bs-site-stats { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 800; color: var(--text-muted); margin-top: 2px; }
.bs-site-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.bs-site-stats .material-icons { font-size: 15px; color: rgba(var(--tone), .85); }
.bs-site-date { margin-left: auto; font-weight: 700; }
.bs-site-actions { display: flex; gap: 8px; padding: 10px 14px 14px; }
.bs-site-actions .brand-btn { flex: 1; }

/* ---------- hero (guests) ---------- */
.bs-hero::before { background: radial-gradient(closest-side, rgba(76, 111, 255, .22), rgba(76, 111, 255, 0)) !important; }
.bs-hero-search { position: relative; display: flex; align-items: center; margin-top: 14px; width: 100%; max-width: 560px; }
.bs-hero-search > .material-icons { position: absolute; left: 14px; font-size: 20px; color: #667085; pointer-events: none; }
.bs-hero-search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px 0 44px; border-radius: 14px; border: 1px solid rgba(15, 23, 42, .1); background: rgba(255, 255, 255, .95); font-size: 1rem; box-shadow: 0 10px 30px rgba(10, 20, 30, .06); }
.bs-hero-search input:focus { outline: none; border-color: rgba(76, 111, 255, .55); box-shadow: 0 0 0 4px rgba(76, 111, 255, .12); }
.bs-hero-points { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-weight: 750; font-size: .86rem; color: var(--text-dark); }
.bs-hero-points li { display: inline-flex; align-items: center; gap: 4px; }
.bs-hero-points .material-icons { font-size: 17px; color: #16a34a; }
.bs-hero-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 460px; margin-left: auto; }
.bs-hero-shot { --tone: 76, 111, 255; position: relative; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 22px 50px rgba(10, 20, 30, .14); }
.bs-hero-shot:nth-child(2n) { transform: translateY(18px); }
.bs-hero-chrome { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; background: #f2f4f7; border-bottom: 1px solid var(--line-soft); }
.bs-hero-chrome i { width: 6px; height: 6px; border-radius: 50%; background: #d0d5dd; }
.bs-hero-chrome span { margin-left: 6px; font-size: .62rem; font-weight: 800; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-hero-shot img, .bs-hero-shot .bs-cover { position: relative; display: flex; width: 100%; aspect-ratio: 13 / 9; object-fit: cover; object-position: top; }
.bs-hero-shot .bs-cover { position: relative; inset: auto; }

/* ---------- industries, steps, features ---------- */
.bs-industries { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.bs-industry { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text-dark); transition: border-color .15s, box-shadow .15s, transform .2s var(--ease); }
.bs-industry:hover { text-decoration: none; border-color: rgba(var(--tone), .45); box-shadow: 0 12px 28px rgba(var(--tone), .14); transform: translateY(-2px); }
.bs-industry-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--tone), .12); color: rgb(var(--tone)); }
.bs-industry-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bs-industry-text strong { font-size: .9rem; font-weight: 850; }
.bs-industry-text span { font-size: .76rem; color: var(--text-muted); font-weight: 700; }
.bs-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: bs; }
.bs-how li, .bs-features > div { --tone: 76, 111, 255; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: #fafbff; border: 1px solid var(--line-soft); }
.bs-how strong, .bs-features strong { color: var(--text); font-weight: 900; }
.bs-how span:last-child, .bs-features span:last-child { color: var(--text-body); font-size: .9rem; line-height: 1.5; }
.bs-how-icon .material-icons { font-size: 22px; }
.bs-how-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--tone), .12); color: rgb(var(--tone)); margin-bottom: 4px; }
.bs-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bs-plan-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bs-plan-mini { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); color: var(--text-dark); background: #fff; }
.bs-plan-mini:hover { text-decoration: none; border-color: rgba(76, 111, 255, .4); box-shadow: 0 12px 28px rgba(76, 111, 255, .12); }
.bs-plan-mini strong { font-weight: 900; }
.bs-plan-mini-price { font-size: 1.35rem; font-weight: 900; color: var(--text); }
.bs-plan-mini-price small, .bs-plan-price small { font-size: .8rem; font-weight: 750; color: var(--text-muted); }
.bs-plan-mini .bd-muted { font-size: .8rem; font-weight: 700; }
.bs-faq { display: grid; gap: 8px; }
.bs-faq details { border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; }
.bs-faq summary { cursor: pointer; padding: 13px 16px; font-weight: 850; color: var(--text-dark); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.bs-faq summary::-webkit-details-marker { display: none; }
.bs-faq summary::after { content: "+"; font-weight: 900; color: var(--brand-blue); }
.bs-faq details[open] summary::after { content: "–"; }
.bs-faq p { margin: 0; padding: 0 16px 14px; color: var(--text-body); line-height: 1.55; }
.bs-banner { border-radius: 18px; background: linear-gradient(120deg, #3E5BFF, #7c3aed 60%, #06b6d4); color: #fff; padding: 26px 26px; }
.bs-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.bs-banner h2 { margin: 0 0 4px; color: #fff; font-size: 1.35rem; font-weight: 900; }
.bs-banner p { margin: 0; opacity: .9; }
.bs-banner-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bs-banner-cta { background: #fff; color: #3E5BFF; }
.bs-banner-cta:hover { color: #3E5BFF; }
.bs-banner-link { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 850; }
.bs-banner-link:hover { color: #fff; }
.bs-banner-link .material-icons { font-size: 18px; }

/* ---------- dashboard ---------- */
.bs-welcome { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 2px 16px; }
.bs-welcome p { margin: 0; }
.bs-welcome-ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.bs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bs-stat { --tone: 76, 111, 255; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.bs-stat-k { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 850; color: var(--text-muted); }
.bs-stat-k .material-icons { font-size: 17px; color: rgb(var(--tone)); }
.bs-stat-v { font-size: 1.8rem; font-weight: 900; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.bs-stat-v small { font-size: .95rem; color: var(--text-muted); font-weight: 800; }
.bs-stat-h { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.bs-dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; margin-bottom: 18px; align-items: start; }
.bs-check-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bs-ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand-blue) calc(var(--p) * 1%), #e0eaff 0); }
.bs-ring span { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 900; color: var(--text-dark); }
.bs-checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.bs-checklist li { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; font-weight: 750; font-size: .88rem; color: var(--text-dark); }
.bs-checklist li .material-icons { font-size: 19px; color: #b3b9c6; }
.bs-checklist li.is-done { color: var(--text-muted); }
.bs-checklist li.is-done > span:last-child { text-decoration: line-through; text-decoration-color: rgba(95, 106, 122, .4); }
.bs-checklist li.is-done .material-icons { color: #16a34a; }
.bs-checklist li.is-next { background: #f3f6ff; }
.bs-checklist li.is-next .material-icons { color: var(--brand-blue); }
.bs-checklist a { color: inherit; font-weight: 850; }
.bs-checklist-inline { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 6px; }
.bs-top { margin: 0; padding: 0; list-style: none; counter-reset: top; display: grid; gap: 6px; }
.bs-top li { counter-increment: top; display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 750; }
.bs-top li::before { content: counter(top); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #eef1f6; font-size: .72rem; font-weight: 900; }
.bs-top li a { flex: 1; color: var(--text-dark); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-top li span { color: var(--text-muted); font-size: .78rem; }
.bs-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef4ff; color: #1e3a8a; font-weight: 900; font-size: .85rem; }
.bs-lead-mini { margin: 0; padding: 0; list-style: none; display: grid; }
.bs-lead-mini li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line-soft); }
.bs-lead-mini li:first-child { border-top: 0; }
.bs-lead-mini-who { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bs-lead-mini-who strong { color: var(--text-dark); font-size: .9rem; }
.bs-lead-mini-who .bd-muted { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-pill-form { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 850; background: #eef4ff; color: #1e3a8a; white-space: nowrap; }
.bs-pill-form.is-contact { background: #f4ebff; color: #6941c6; }
.bs-when { font-size: .78rem; font-weight: 750; color: var(--text-muted); white-space: nowrap; }
.bs-empty-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center; padding: 26px; margin-bottom: 18px; }
.bs-empty-hero > .bs-checklist { grid-column: 1 / -1; }
.bs-empty-hero p { margin: 4px 0 12px; }
.bs-empty-art { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #e0eaff, #f4ebff); color: var(--brand-blue); }
.bs-empty-art .material-icons { font-size: 36px; }
.bs-empty-art.is-warn { background: #fff1d6; color: #b45309; }
.bs-empty-inline { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: #f6f8ff; border: 1px dashed rgba(76, 111, 255, .3); margin-top: 12px; }
.bs-empty-inline > .material-icons { font-size: 28px; color: var(--brand-blue); }
.bs-empty-inline > div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }

/* ---------- chart (one series: visits; dot = a day with leads) ---------- */
.bs-chart { --n: 30; position: relative; }
.bs-chart-plot { position: relative; height: 190px; margin: 10px 0 0 30px; }
.bs-chart-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #eaecf0; }
.bs-chart-grid > span { position: absolute; right: calc(100% + 8px); top: -8px; font-size: .7rem; font-weight: 700; color: #98a2b3; font-variant-numeric: tabular-nums; }
.bs-chart-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: 2px; align-items: end; }
.bs-chart-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.bs-chart-bar { display: block; width: min(100%, 24px); min-height: 2px; border-radius: 4px 4px 0 0; background: #4C6FFF; transition: background .15s; }
.bs-chart-col:hover .bs-chart-bar { background: #3E5BFF; }
.bs-chart-col:hover::before { content: ""; position: absolute; inset: 0 -1px; border-radius: 6px; background: rgba(76, 111, 255, .07); }
.bs-chart-lead { position: absolute; bottom: -12px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #F79009; box-shadow: 0 0 0 2px #fff; }
.bs-chart-x { display: flex; justify-content: space-between; margin: 18px 0 0 30px; font-size: .72rem; font-weight: 700; color: #98a2b3; }
.bs-tip { position: fixed; z-index: 1000; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: #0f172a; color: #fff; font-size: .78rem; line-height: 1.4; box-shadow: 0 12px 30px rgba(10, 20, 30, .25); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.bs-tip strong { display: block; font-weight: 850; }
.bs-tip span { display: block; color: #cbd5e1; font-weight: 650; }

/* ---------- split layouts, preview ---------- */
.bs-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; margin-bottom: 18px; }
.bs-split-even { grid-template-columns: minmax(0, 1fr) 340px; }
.bs-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 10px; }
.bs-card { padding: 16px; }
.bs-preview { padding: 0; overflow: hidden; }
.bs-preview-bar { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--line-soft); background: #fafbfc; }
.bs-preview-url { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-soft); font-size: .78rem; font-weight: 750; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-preview-url .material-icons { font-size: 15px; color: #16a34a; }
.bs-devices { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(56, 58, 63, .06); }
.bs-devices button { display: grid; place-items: center; width: 32px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--text-muted); cursor: pointer; }
.bs-devices button .material-icons { font-size: 18px; }
.bs-devices button.is-active { background: #fff; color: var(--brand-blue); box-shadow: 0 4px 10px rgba(10, 20, 30, .1); }
.bs-frame { position: relative; height: min(72vh, 760px); min-height: 420px; overflow: hidden; background: #e9edf3; }
.bs-frame iframe { position: absolute; top: 0; left: 50%; border: 0; background: #fff; transform-origin: top center; width: 1280px; height: 100%; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(15, 23, 42, .06); }
.bs-frame-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-weight: 750; font-size: .88rem; pointer-events: none; }
.bs-frame-loading .material-icons { animation: bs-spin 1s linear infinite; }
.bs-frame.is-loaded .bs-frame-loading { display: none; }
.bs-use { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.bs-use .bs-h1 { margin-top: 4px; }
.bs-use-block { display: flex; flex-direction: column; gap: 8px; }
.bs-ticks { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); list-style: none; display: grid; gap: 9px; }
.bs-card .bs-ticks, .bs-plan .bs-ticks { margin-top: 0; padding-top: 0; border-top: 0; }
.bs-ticks li { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: var(--text-body); font-weight: 600; line-height: 1.4; }
.bs-ticks .material-icons { font-size: 18px; color: var(--brand-blue); margin-top: 1px; }
.bs-in-plans { padding: 16px; }
.bs-in-plans ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.bs-in-plans li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bs-in-plans li a { flex: 1; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #fafbff; border: 1px solid var(--line-soft); color: var(--text-dark); font-size: .86rem; }
.bs-in-plans li a span { color: var(--text-muted); font-weight: 750; }
.bs-in-plans li a:hover { text-decoration: none; border-color: rgba(76, 111, 255, .35); }

/* ---------- site page ---------- */
.bs-site-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 2px 12px; }
.bs-site-head-main { min-width: 0; }
.bs-site-head-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.bs-url-row { display: flex; align-items: center; gap: 6px; }
.bs-url-row a { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .9rem; }
.bs-url-row a .material-icons { font-size: 15px; }
.bs-addr-live { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; font-weight: 800; font-size: .88rem; word-break: break-all; }
.bs-publish { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.bs-publish p { margin: 0; }
.bs-address { display: flex; align-items: stretch; border: 1px solid rgba(15, 23, 42, .16); border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.bs-address:focus-within { border-color: rgba(76, 111, 255, .6); box-shadow: 0 0 0 4px rgba(76, 111, 255, .12); }
.bs-address.is-ok { border-color: #32d583; }
.bs-address.is-bad { border-color: #f04438; }
.bs-address-prefix { display: flex; align-items: center; padding: 0 8px 0 10px; background: #f6f7f9; color: var(--text-muted); font-size: .76rem; font-weight: 750; white-space: nowrap; border-right: 1px solid var(--line-soft); max-width: 55%; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.bs-address-prefix > span { direction: ltr; unicode-bidi: isolate; }
.bs-address-suffix { display: flex; align-items: center; padding: 0 10px 0 8px; background: #f6f7f9; color: var(--text-muted); font-size: .8rem; font-weight: 750; white-space: nowrap; border-left: 1px solid var(--line-soft); }
.bs-address input { flex: 1; min-width: 0; border: 0; padding: 9px 10px; font-size: .95rem; font-weight: 750; color: var(--text); background: none; }
.bs-address input:focus { outline: none; }
.bs-address-msg { min-height: 18px; font-size: .8rem; font-weight: 750; color: var(--text-muted); }
.bs-address-msg.is-ok { color: #067647; }
.bs-address-msg.is-bad { color: #b42318; }
.bs-address-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-address-suggest button { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 4px 10px; font-size: .76rem; font-weight: 800; color: var(--brand-blue); cursor: pointer; }
.bs-address-suggest button:hover { border-color: rgba(76, 111, 255, .45); }
.bs-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.bs-kv div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; background: #fafbff; border: 1px solid var(--line-soft); }
.bs-kv dt { font-size: .72rem; font-weight: 800; color: var(--text-muted); }
.bs-kv dd { margin: 0; font-weight: 900; color: var(--text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bs-health ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.bs-health li { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 750; color: var(--text-dark); }
.bs-health li .material-icons { font-size: 18px; color: #b3b9c6; }
.bs-health li.is-done .material-icons { color: #16a34a; }
.bs-health li a { color: inherit; }
.bs-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bs-fieldset:disabled { opacity: .6; }
.bs-favicon { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; background: #fafbff; border: 1px solid var(--line-soft); }
.bs-favicon > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bs-favicon-img { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: #b3b9c6; }
.bs-favicon-img img { width: 32px; height: 32px; object-fit: contain; }
.bs-count { align-self: flex-end; margin-top: -6px; font-size: .74rem; font-weight: 750; color: var(--text-muted); }
.bs-count.is-over { color: #b42318; }
.bs-snippet { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fff; margin-bottom: 10px; font-family: Arial, sans-serif; }
.bs-snippet-url { font-size: .78rem; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-snippet-title { font-size: 1.12rem; color: #1a0dab; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bs-snippet-desc { font-size: .84rem; color: #4d5156; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-radio-card { flex-direction: row !important; align-items: flex-start; gap: 10px !important; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600 !important; transition: border-color .15s, background .15s; }
.bs-radio-card:has(input:checked) { border-color: rgba(76, 111, 255, .55); background: #f6f8ff; }
.bs-radio-card input { margin-top: 3px; accent-color: var(--brand-blue); }
.bs-radio-card > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bs-radio-card strong { color: var(--text); }
.bs-ar-list { display: flex; flex-direction: column; gap: 4px; }
.bs-radio-card:not(:has(input:checked)) .bs-ar-list { display: none; }
.bs-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bs-code { font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; background: #0f1229; color: #d7dbff; border-color: #0f1229; resize: vertical; tab-size: 2; }
.bs-code:focus { border-color: var(--brand-blue); }
.bs-code::placeholder { color: #6f75a8; }
.bs-dialog { max-width: 460px; }
.bs-dialog p { margin: 6px 0 16px; line-height: 1.5; }

/* ---------- leads ---------- */
.bs-bulk { position: sticky; top: 6px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; }
.bs-bulk-all { margin: 0; font-weight: 850; }
.bs-bulk-actions, .bs-bulk-send { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bs-bulk-send .brand-form-field { width: auto; height: 32px; padding: 0 10px; font-size: .84rem; }
.bs-leads { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bs-lead { display: flex; align-items: flex-start; gap: 10px; padding: 0 0 0 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(10, 20, 30, .04); }
.bs-lead > input { margin-top: 22px; accent-color: var(--brand-blue); flex: 0 0 auto; }
.bs-lead > details { flex: 1; min-width: 0; }
.bs-lead summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 0; cursor: pointer; list-style: none; }
.bs-lead summary::-webkit-details-marker { display: none; }
.bs-lead-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.bs-lead-who strong { color: var(--text-dark); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-lead-who .bd-muted { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-lead-site { font-size: .8rem; font-weight: 750; color: var(--text-muted); max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-lead-caret { color: var(--text-muted); transition: transform .2s; }
.bs-lead details[open] .bs-lead-caret { transform: rotate(180deg); }
.bs-lead-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 14px 12px 0; padding: 12px; border-radius: 12px; background: #fafbff; border: 1px solid var(--line-soft); }
.bs-lead-fields dt { font-size: .72rem; font-weight: 850; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.bs-lead-fields dd { margin: 2px 0 0; color: var(--text-dark); font-weight: 650; font-size: .9rem; word-break: break-word; }
.bs-lead-reply { margin: 0 14px 12px 0; }

/* ---------- plans ---------- */
.bs-current { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 auto 18px; max-width: 920px; }
.bs-current > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bs-current strong { color: var(--text); }
.bs-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: 16px; }
.bs-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; }
.bs-plan.is-featured { border-color: rgba(76, 111, 255, .5); box-shadow: 0 24px 60px rgba(76, 111, 255, .18); }
.bs-plan.is-current { border-color: #6ce9a6; }
.bs-plan-tag { position: absolute; top: -11px; left: 20px; padding: 4px 10px; border-radius: 999px; background: var(--grad-cta); color: #fff; font-size: .7rem; font-weight: 900; letter-spacing: .03em; }
.bs-plan-tag.is-current { background: #12b76a; }
.bs-plan-name { margin: 0; font-size: 1.1rem; font-weight: 900; color: var(--text); }
.bs-plan-price { margin: 0; font-size: 2rem; font-weight: 900; color: var(--text); line-height: 1.1; }
.bs-plan-desc { margin: 0; color: var(--text-body); font-size: .9rem; line-height: 1.5; }
.bs-plan-alt { margin: -4px 0 0; font-size: .85rem; color: var(--text-muted); font-weight: 650; }
.bs-plan-alt strong { color: var(--text-dark); }
.bs-plan-pro { background: linear-gradient(180deg, #f7f5ff, #fff 45%); }
.bs-plan-mini.is-pro { border-color: rgba(124, 58, 237, .35); background: linear-gradient(135deg, #f7f5ff, #fff); }
.bs-plan-mini.is-pro strong { color: #6d28d9; }
.bs-plan .bs-ticks { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.bs-plan-cta { margin-top: auto; }
.bs-plan-cta form { margin: 0; }
.bs-plan-line { margin: 0 0 6px; color: var(--text-dark); }
.bs-table-wrap { overflow-x: auto; padding: 0; }
.bs-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bs-table th { text-align: left; padding: 11px 14px; font-size: .72rem; font-weight: 900; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.bs-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--text-dark); vertical-align: middle; }
.bs-table tr:last-child td { border-bottom: 0; }
.bs-table tbody tr:hover { background: #fafbff; }

/* ---------- integrations, media ---------- */
.bs-ars { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 8px; }
.bs-ar { --tone: 100, 116, 139; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.bs-ar.is-on { border-color: rgba(18, 183, 106, .45); }
.bs-ar-head { display: flex; align-items: center; gap: 12px; }
.bs-ar-head .bs-h3 { margin: 0 0 3px; }
.bs-ar-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--tone), .14); color: rgb(var(--tone)); font-weight: 900; font-size: 1.1rem; }
.bs-ar form { margin: 0; }
.bs-ar-connect > summary { list-style: none; width: fit-content; }
.bs-ar-connect > summary::-webkit-details-marker { display: none; }
.bs-ar-connect[open] > summary { display: none; }
.bs-ar-connect form { gap: 10px; }
.bs-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; border-style: dashed; }
.bs-upload > .material-icons { font-size: 30px; color: var(--brand-blue); }
.bs-upload > div { flex: 1; display: flex; flex-direction: column; min-width: 180px; }
.bs-upload.is-drag { border-color: var(--brand-blue); background: #f6f8ff; }
.bs-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
.bs-media-item { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(10, 20, 30, .05); }
.bs-media-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef1f6; }
.bs-media-item figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: .78rem; }
.bs-media-title { font-weight: 800; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-media-src { color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.bs-media-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .2s; }
.bs-media-actions form { margin: 0; }
.bs-media-actions .brand-btn { background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(10, 20, 30, .15); }
.bs-media-item:hover .bs-media-actions, .bs-media-item:focus-within .bs-media-actions { opacity: 1; }
.bs-media-add { padding: 0 10px 10px; margin: 0; }
.bs-media-add .brand-btn { width: 100%; }

/* ---------- admin ---------- */
.bs-admin-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.bs-admin-bar .bs-subtabs { flex: 1; }
.bs-admin-bar .bs-more { margin-bottom: 16px; }
.bs-rows { margin: 0; padding: 0; list-style: none; }
.bs-rows li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line-soft); }
.bs-rows li:first-child { border-top: 0; }
.bs-rows li > a { flex: 1; display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
.bs-rows li > a:hover { text-decoration: none; }
.bs-rows-main { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bs-rows-main strong { color: var(--text-dark); font-size: .9rem; }
.bs-rows-main .bd-muted { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-cell-user { display: flex; align-items: center; gap: 10px; color: inherit; }
.bs-cell-user > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.bs-cell-user .bd-muted { font-size: .78rem; }
.bs-cell-user:hover strong { color: var(--brand-blue); }
.bs-cell-actions { text-align: right; white-space: nowrap; }
.bs-cell-tpl { display: flex; align-items: center; gap: 10px; }
.bs-cell-thumb { flex: 0 0 auto; width: 52px; height: 36px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: rgba(var(--tone), .12); color: rgb(var(--tone)); }
.bs-cell-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bs-rename summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.bs-rename summary::-webkit-details-marker { display: none; }
.bs-rename summary .material-icons { font-size: 15px; color: var(--text-muted); }
.bs-inline-form { display: flex; gap: 6px; margin-top: 6px; }
.bs-inline-form .brand-form-field { height: 32px; padding: 0 8px; font-size: .86rem; }
.bs-switch { position: relative; width: 40px; height: 22px; border-radius: 999px; border: 0; background: #d0d5dd; cursor: pointer; transition: background .2s; }
.bs-switch span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.bs-switch.is-on { background: #12b76a; }
.bs-switch.is-on span { transform: translateX(18px); }
.bs-picker { display: flex; flex-direction: column; gap: 10px; }
.bs-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bs-picker-list { max-height: 520px; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.bs-picker-group { border: 1px solid var(--line-soft); border-radius: 12px; padding: 6px 12px 8px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 10px; }
.bs-picker-group legend { display: flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 900; font-size: .82rem; color: var(--text-dark); }
.bs-picker-group .bd-check { margin: 3px 0; font-size: .85rem; }
.bs-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; border-color: #fecdca; }
.bs-danger-zone > div { display: flex; flex-direction: column; gap: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
    .bs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bs-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bs-grid-6 > :nth-child(n+5) { display: none; }
}
@media (max-width: 1100px) {
    .bs-split, .bs-split-even, .bs-dash { grid-template-columns: minmax(0, 1fr); }
    .bs-side { position: static; }
    .bs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bs-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .bs-grid, .bs-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bs-grid-6 > :nth-child(n+5) { display: flex; }
    .bs-how { grid-template-columns: 1fr; }
    .bs-hero-stack { display: none; }
    .bs-code-grid { grid-template-columns: 1fr; }
    .bs-frame { height: 62vh; min-height: 360px; }
    .bs-lead-site { display: none; }
}
@media (max-width: 640px) {
    .bs-tabs a { padding: 12px 9px 11px; font-size: .86rem; }
    .bs-tabs a .material-icons { display: none; }
    .bs-me-text { display: none; }
    .bs-me-btn { padding: 4px; }
    .bs-me-panel { width: min(300px, calc(100vw - 30px)); }
    .bs-features, .bs-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .bs-stat-v { font-size: 1.45rem; }
    .bs-empty-hero { grid-template-columns: 1fr; text-align: left; }
    .bs-chart-plot { height: 150px; }
    .bs-lead summary { flex-wrap: wrap; }
    .bs-lead .bs-pill-form { order: 3; }
    .bs-kv { grid-template-columns: 1fr 1fr; }
    .bs-search, .bs-search-sm { flex: 1 1 100%; max-width: none; }
    .bs-welcome-ctas { width: 100%; }
    .bs-welcome-ctas .brand-btn { flex: 1; }
}
@media (max-width: 420px) {
    .bs-grid, .bs-grid-6 { grid-template-columns: 1fr; }
    .bs-features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .bs-tpl, .bs-tpl-media img, .bs-industry, .bs-chart-bar, .bs-switch span { transition: none; }
    .bs-frame-loading .material-icons, .brand-btn.is-busy .material-icons { animation: none; }
}
