/* RelevoHR brand pieces: the inline logo (js/brand.js), the company × RelevoHR lockup at the top of the sidebar, the sign-in
   screen (js/signin.js) and Settings, Branding (js/views/branding.js). Colors come from the app.css tokens, which a company's
   branding overrides from /branding/theme.css. */

/* ---------- the RelevoHR logo: mark 1.25em, wordmark 1em tall (font-size sets the size) ---------- */
.rh-logo { display: inline-flex; align-items: center; gap: .32em; line-height: 1; white-space: nowrap; }
.rh-logo .rh-mark { width: 1.25em; height: 1.25em; flex: none; }
.rh-logo .rh-word { height: 1em; width: auto; aspect-ratio: 304 / 64; flex: none; }
.rh-logo.sm { font-size: 12px; gap: .3em; }

/* ---------- the sidebar's top: the company (logo or name), then "× relevoHR" (cobrand) ---------- */
.side .logo { flex-direction: column; align-items: stretch; gap: 8px; }
.side .logo .side-co { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side .logo .logo-plate { height: 50px; }
.side .co-logo { display: flex; align-items: center; height: 44px; padding: 2px 6px; }
.side .co-logo img { max-height: 40px; max-width: 100%; object-fit: contain; }
.co-initial { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--side-accent); color: #111; display: grid; place-items: center;
  flex: none; font-weight: 700; font-size: 15px; }
.co-name { font-weight: 600; font-size: 15px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--side-ink-strong); }
.side-x { display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 13px; color: var(--side-ink-strong); opacity: .9; }
.side-x .x { color: var(--side-ink); font-size: 12px; font-weight: 600; }
.side-rh { display: flex; padding: 4px 6px 0; font-size: 21px; color: var(--side-ink-strong); }
.side-co-small { padding: 0 8px; font-size: 11.5px; color: var(--side-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .rh-logo { --rh-hr: #f2b544; }
/* "Powered by relevoHR" right under the company (the Powered by lockup: sidebar, sign-in card, Settings, Branding) */
.powered-by { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.powered-by .rh-logo { color: var(--ink); }
.side .logo .powered-by { padding: 0 8px; font-size: 11.5px; color: var(--side-ink); }
.side .logo .powered-by .rh-logo { color: var(--side-ink-strong); font-size: 11.5px; }

/* ---------- sign-in ---------- */
.signin { --sx-brand: #1d4f91; --sx-deep: #0e1a33; --sx-accent: #f2b544;
  position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 480px); gap: 48px;
  align-items: center; padding: 48px clamp(20px, 5vw, 72px); background: var(--sx-deep); color: #fff; overflow: hidden; isolation: isolate; }
.signin.no-hl { grid-template-columns: minmax(0, 460px); justify-content: center; }
.sx-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sx-fx i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0; }
/* Aurora: slow light in the brand and accent colors */
.bg-aurora .sx-fx i { opacity: .55; }
.bg-aurora .sx-fx i:nth-child(1) { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: var(--sx-brand); animation: sx-drift 22s ease-in-out infinite alternate; }
.bg-aurora .sx-fx i:nth-child(2) { width: 42vmax; height: 42vmax; right: -12vmax; bottom: -16vmax; background: var(--sx-accent); opacity: .32; animation: sx-drift 28s ease-in-out infinite alternate-reverse; }
.bg-aurora .sx-fx i:nth-child(3) { width: 34vmax; height: 34vmax; left: 38%; top: 30%; background: color-mix(in srgb, var(--sx-brand) 60%, #ffffff); opacity: .22; animation: sx-drift 34s ease-in-out infinite alternate; }
@keyframes sx-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vmax, 4vmax) scale(1.12); } }
/* Mesh: still fields of color */
.bg-mesh { background:
  radial-gradient(60% 70% at 12% 18%, color-mix(in srgb, var(--sx-brand) 85%, transparent) 0%, transparent 60%),
  radial-gradient(50% 60% at 88% 82%, color-mix(in srgb, var(--sx-accent) 45%, transparent) 0%, transparent 65%),
  radial-gradient(40% 50% at 70% 20%, color-mix(in srgb, var(--sx-brand) 45%, #ffffff 10%) 0%, transparent 70%), var(--sx-deep); }
/* Blueprint: a quiet grid with a glow */
.bg-grid { background:
  radial-gradient(55% 60% at 30% 40%, color-mix(in srgb, var(--sx-brand) 55%, transparent), transparent 70%),
  linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 32px 32px, var(--sx-deep); }
/* Your photo, under a wash of the deep brand color so the words stay readable */
.bg-photo { background: linear-gradient(100deg, color-mix(in srgb, var(--sx-deep) 92%, transparent) 0%, color-mix(in srgb, var(--sx-deep) 70%, transparent) 55%,
  color-mix(in srgb, var(--sx-deep) 45%, transparent) 100%), var(--sx-photo) center / cover no-repeat, var(--sx-deep); }
@media (prefers-reduced-motion: reduce) { .sx-fx i { animation: none !important; } }

.sx-pitch { max-width: 640px; display: grid; gap: 18px; }
.sx-lockup { font-size: 30px; color: #fff; }
.sx-lockup .rh-logo { --rh-hr: #f2b544; }
.sx-h { font: 700 clamp(30px, 3.6vw, 46px)/1.08 var(--font-display); letter-spacing: -.02em; margin: 6px 0 0; color: #fff; text-wrap: balance; }
.sx-h em { font-style: normal; color: var(--sx-accent); }
.sx-sub { font-size: 16.5px; color: rgba(255,255,255,.82); margin: 0; max-width: 54ch; }
.sx-feats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.sx-feats li { display: flex; gap: 11px; align-items: flex-start; min-width: 0; }
.sx-feats b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.sx-feats span:not(.sx-ico) { display: block; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.72); }
.sx-ico { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--sx-accent); }
.sx-ico svg { width: 17px; height: 17px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sx-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.sx-chips svg { width: 14px; height: 14px; }

.sx-main { display: grid; gap: 18px; justify-items: stretch; min-width: 0; }
.sx-card { padding: 30px 30px 24px; border-radius: calc(var(--radius) + 8px); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.12); }
.sx-co { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 24px; color: var(--ink); }
.sx-co .logo-plate { width: auto; height: auto; padding: 0; background: none; border-radius: 0; justify-content: flex-start; }
.sx-co .logo-plate img { max-height: 56px; max-width: 260px; }
.sx-co .co-initial { background: var(--brand); color: var(--brand-ink); }
.sx-co .co-name { color: var(--ink); font-size: 19px; }
.sx-co .rh-logo { --rh-hr: #b7791f; }
.sx-x { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.sx-x .rh-logo { color: var(--ink); --rh-hr: #b7791f; }
.sx-pw { font-size: 12.5px; }
.sx-tag { margin-top: 6px; font-size: 13px; color: var(--muted); }
.sx-title { font: 600 22px/1.25 var(--font-display); margin: 22px 0 4px; letter-spacing: -.01em; }
.sx-welcome { color: var(--muted); margin: 0 0 16px; }
.sx-go { justify-content: center; padding: 11px; gap: 8px; font-size: 14.5px; }
.sx-go svg { width: 16px; height: 16px; }
.sx-hint { color: var(--muted); }
.sx-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sx-foot .rh-logo { color: var(--ink); --rh-hr: #b7791f; }
.sx-below { justify-self: center; font-size: 18px; color: rgba(255,255,255,.9); }
.sx-below .rh-logo { --rh-hr: #f2b544; }
/* the card's three looks: light (the app's own surface), glass and dark */
.card-glass .sx-card { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 30px 80px rgba(0,0,0,.3);
  --surface: rgba(255,255,255,.1); --ink: #ffffff; --ink-2: #f1f5f9; --muted: rgba(255,255,255,.75); --line: rgba(255,255,255,.2); --line-2: rgba(255,255,255,.32); }
.card-dark .sx-card { background: #171b21; color: #e6e9ee; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.45);
  --surface: #12161b; --ink: #e6e9ee; --ink-2: #c6cdd6; --muted: #9ba5b3; --line: #2b323c; --line-2: #3b4451; }   /* the dark-mode graphite (app/branding.py DARK) */
.card-glass .sx-card input, .card-dark .sx-card input { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.card-glass .sx-card .field > span, .card-dark .sx-card .field > span { color: var(--ink-2); }
.card-glass .sx-co .rh-logo, .card-dark .sx-co .rh-logo, .card-glass .sx-x .rh-logo, .card-dark .sx-x .rh-logo,
.card-glass .sx-foot .rh-logo, .card-dark .sx-foot .rh-logo { color: #fff; --rh-hr: #f2b544; }
.card-glass .sx-co .co-name, .card-dark .sx-co .co-name { color: #fff; }
@media (max-width: 960px) {
  .signin, .signin.no-hl { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 16px 36px; align-items: start; }
  .sx-main { order: -1; max-width: 480px; width: 100%; justify-self: center; }
  .sx-pitch { max-width: 560px; justify-self: center; }
  .sx-h { font-size: 28px; }
  .sx-feats { grid-template-columns: minmax(0, 1fr); }
  .sx-card { padding: 24px 20px 20px; }
}

/* ---------- Settings, Branding (js/views/branding.js) ---------- */
.bp { container-type: inline-size; }
.bp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.bp-preview { order: -1; display: grid; gap: 10px; min-width: 0; }
@container (min-width: 980px) {
  .bp-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); }
  .bp-preview { order: 0; position: sticky; top: 64px; }
}
.bp-controls { display: grid; gap: 16px; min-width: 0; }
.bp-hero { padding: 18px 20px; display: grid; gap: 12px; }
.bp-hero h2 { font: 600 18px/1.3 var(--font-display); }
.bp-hero p { color: var(--muted); margin: 4px 0 0; max-width: 70ch; }
.bp-hero-lock { display: flex; align-items: center; gap: 12px; font-size: 22px; flex-wrap: wrap; }
.bp-hero-lock .logo-plate { width: auto; height: auto; padding: 0; background: none; }
.bp-hero-lock .logo-plate img { max-height: 44px; max-width: 220px; }
.bp-hero-lock .co-initial { background: var(--brand); color: var(--brand-ink); }
.bp-hero-lock .co-name { color: var(--ink); }
.bp-hero-lock .rh-logo { color: var(--ink); --rh-hr: #b7791f; }
.bp-hero-x { color: var(--faint); font-weight: 600; font-size: 18px; }
.bp-jump { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.bp-sec { padding: 0; }
.bp-sec-head { display: flex; gap: 12px; padding: 16px 18px 0; align-items: flex-start; }
.bp-sec-head h2 { font-size: 15px; }
.bp-sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.bp-sec-ico { width: 32px; height: 32px; border-radius: var(--radius-sm); display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.bp-sec-ico svg { width: 17px; height: 17px; }
.bp-sec-body { padding: 14px 18px 18px; display: grid; gap: 10px; }
.bp-h3 { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }
.bp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; }
.bp-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
/* segmented choices */
.bp-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: calc(var(--radius) + 2px); background: var(--surface-3); border: 1px solid var(--line); justify-self: start; }
.bp-seg button { border: 0; background: none; padding: 6px 12px; border-radius: var(--radius); font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bp-seg button svg { width: 14px; height: 14px; }
.bp-seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.12), inset 0 0 0 1px var(--line); }
.bp-seg button:disabled { cursor: default; }
.bp-seg.sm button { padding: 4px 10px; font-size: 12.5px; }
/* switches */
.bp-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; position: relative; }
.bp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.bp-sw { width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); flex: none; position: relative; transition: background .15s; margin-top: 1px; }
.bp-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.bp-toggle input:checked + .bp-sw { background: var(--brand); }
.bp-toggle input:checked + .bp-sw::after { transform: translateX(16px); }
.bp-toggle input:focus-visible + .bp-sw { box-shadow: var(--focus); }
.bp-toggle b { display: block; font-size: 13.5px; font-weight: 600; }
.bp-toggle small { display: block; color: var(--muted); font-size: 12px; }
.bp-toggle.sm b { font-size: 12.5px; }
/* themes */
.bp-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bp-theme { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: calc(var(--radius) + 2px); padding: 8px 8px 10px; cursor: pointer; display: grid; gap: 2px; font: inherit; color: var(--ink); }
.bp-theme:hover { border-color: var(--line-2); }
.bp-theme.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); }
.bp-theme b { font-size: 13px; margin-top: 6px; } .bp-theme small { font-size: 11.5px; color: var(--muted); }
/* Sidebar looks (views/branding.js drawLooks): a tiny white sidebar in the brand color, its page-you're-on row drawn the look's way */
.bp-look-art { position: relative; display: grid; align-content: start; gap: 5px; height: 72px; padding: 8px 10px; border-radius: var(--radius); overflow: hidden;
  background: #ffffff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.bp-look-art .lk-top { display: none; }
.bp-look-art i { position: relative; display: block; height: 9px; margin-left: 13px; border-radius: 4px; background: #eef0f4; }
.bp-look-art i::before { content: ""; position: absolute; left: -13px; top: 0; width: 9px; height: 9px; border-radius: 3px; background: #c9ced6; }
.bp-look-art i.on { background: color-mix(in srgb, var(--t-brand) 16%, #ffffff); }
.bp-look-art[data-art="tiles"] i::before { background: color-mix(in srgb, var(--t-brand) 22%, #ffffff); }
.bp-look-art[data-art="tiles"] i.on { background: var(--t-brand); }
.bp-look-art[data-art="tiles"] i.on::before { background: var(--t-brand); box-shadow: inset 0 0 0 2px #ffffff; }
.bp-look-art[data-art="header"] .lk-top { display: block; height: 16px; margin: -8px -10px 2px; background: color-mix(in srgb, var(--t-brand) 45%, #0b0a1f); }
.bp-look-art[data-art="header"] i.on { box-shadow: -17px 0 0 -2px var(--t-brand); }
.bp-look-art[data-art="top"] { background: linear-gradient(180deg, color-mix(in srgb, var(--t-brand) 16%, #ffffff) 0, #ffffff 64px); }
.bp-look-art[data-art="top"] i::before { background: color-mix(in srgb, var(--t-brand) 55%, #ffffff); }
.bp-look-art[data-art="top"] i.on { background: #ffffff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--t-brand) 25%, #ffffff); }
.bp-look-art[data-art="bold"] i.on { background: linear-gradient(90deg, var(--t-brand), color-mix(in srgb, var(--t-brand) 55%, #f2b544)); }
.bp-theme-art { position: relative; height: 62px; border-radius: var(--radius); overflow: hidden; background: var(--t-bg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.bp-theme-art i { position: absolute; display: block; }
.bp-theme-art i:nth-child(1) { left: 0; top: 0; bottom: 0; width: 30%; background: var(--t-side); }
.bp-theme-art i:nth-child(2) { left: 7%; top: 30%; width: 4px; height: 12px; border-radius: 2px; background: var(--t-acc); }
.bp-theme-art i:nth-child(3) { left: 38%; top: 18%; width: 40%; height: 7px; border-radius: 3px; background: color-mix(in srgb, var(--t-brand) 18%, #fff); }
.bp-theme-art i:nth-child(4) { left: 38%; bottom: 16%; width: 30%; height: 16px; border-radius: 5px; background: var(--t-brand); }
/* pictures */
.bp-pics { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.bp-pic { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.bp-pic-art { width: 92px; height: 64px; flex: none; border-radius: var(--radius-sm); display: grid; place-items: center; overflow: hidden;
  background: #fff repeating-conic-gradient(#f1f3f6 0% 25%, #fff 0% 50%) 50% / 12px 12px; box-shadow: inset 0 0 0 1px var(--line); color: #9ca3af; }
.bp-pic.dark .bp-pic-art { background: var(--side-bg); }
.bp-pic-art img { max-width: 86%; max-height: 80%; object-fit: contain; }
.bp-pic-art svg { width: 24px; height: 24px; }
.bp-pic-txt { min-width: 0; } .bp-pic-txt b { display: block; font-size: 13px; } .bp-pic-txt small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.bp-pic label.btn { cursor: pointer; }
/* lockups */
.bp-lockups { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.bp-lock { border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 8px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); display: grid; gap: 8px; text-align: left; }
.bp-lock.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); }
.bp-lock b { font-size: 12.5px; }
.bp-lock-art { display: flex; flex-direction: column; gap: 6px; padding: 12px; min-height: 92px; border-radius: var(--radius); background: var(--side-bg); color: var(--side-ink-strong); overflow: hidden; }
.bp-lock-art .side-co { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bp-lock-art .logo-plate { height: 36px; padding: 4px 8px; }
.bp-lock-art .logo-plate img { max-height: 28px; }
.bp-lock-art .co-logo img { max-height: 30px; max-width: 100%; }
.bp-lock-art .side-rh { font-size: 17px; padding: 0; }
.bp-lock-art .side-x { padding: 0; font-size: 11px; }
.bp-lock-art .side-co-small { padding: 0; }
.bp-lock-art .rh-logo { --rh-hr: #f2b544; }
.bp-lock-art .powered-by { font-size: 10.5px; color: var(--side-ink); gap: 4px; }
.bp-lock-art .powered-by .rh-logo { font-size: 10px; color: var(--side-ink-strong); }
/* colors */
.bp-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.bp-color input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); cursor: pointer; flex: none; }
.bp-hex { width: 110px; text-transform: uppercase; }
.bp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bp-chip { width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); padding: 0; }
.bp-chip.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.bp-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-radius: var(--radius); background: var(--info-soft); color: var(--ink-2); }
.bp-note svg { width: 15px; height: 15px; color: var(--info); }
.bp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
.bp-fromlogo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bp-pair { display: inline-flex; align-items: center; gap: 4px; }
/* style swatches, corners, fonts, sign-in backgrounds */
.bp-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-swatch { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px 4px 4px; cursor: pointer; font: 500 12.5px var(--font); color: var(--ink-2); }
.bp-swatch i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.bp-swatch.on { border-color: var(--brand); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.bp-corners { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-corner { display: grid; justify-items: center; gap: 4px; width: 84px; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font: 500 12px var(--font); color: var(--ink-2); }
.bp-corner i { display: block; width: 44px; height: 26px; border: 2px solid var(--brand); border-bottom: 0; }
.bp-corner.on { border-color: var(--brand); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.bp-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.bp-font { display: grid; gap: 0; padding: 8px 10px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.bp-font .aa { font-size: 24px; line-height: 1.1; font-weight: 600; }
.bp-font b { font-size: 12.5px; } .bp-font small { font-size: 11px; color: var(--muted); }
.bp-font.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.bp-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.bp-bg { display: grid; gap: 1px; padding: 6px 6px 8px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.bp-bg b { font-size: 12.5px; margin-top: 5px; } .bp-bg small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.bp-bg.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.bp-bg-art { display: block; height: 56px; border-radius: var(--radius-sm); background-color: var(--sx-deep); }
.bp-bg-art.bg-aurora { background: radial-gradient(60% 90% at 15% 10%, var(--sx-brand), transparent 70%), radial-gradient(50% 70% at 90% 100%, color-mix(in srgb, var(--sx-accent) 70%, transparent), transparent 70%), var(--sx-deep); }
.bp-bg-art.bg-solid { background: var(--sx-deep); }
.bp-bg-art.bg-photo:not([style*="--sx-photo"]) { background: repeating-linear-gradient(45deg, var(--sx-deep) 0 8px, color-mix(in srgb, var(--sx-deep) 80%, #fff) 8px 16px); }
/* sidebar names */
.bp-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 14px; }
.bp-name { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.bp-name > span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-name > span svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.bp-name.grp > span { font-weight: 600; color: var(--ink); }
.bp-name.grp small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.bp-name input { padding: 5px 8px; font-size: 12.5px; }
/* save bar and reset */
.bp-savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: calc(var(--radius) + 2px);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-2); }
.bp-reset { display: flex; justify-content: flex-end; }
.bp-savebar[hidden], .bp-note[hidden] { display: none; }

/* ---------- the live preview: a small copy of the app and of the sign-in screen, in the draft's tokens ---------- */
.bp-pv-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bp-stage { border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 12px; }
.bp-app { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 360px; }
.bp-side { background: var(--side-bg); color: var(--side-ink); padding: 10px 7px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-brand { display: flex; flex-direction: column; gap: 5px; padding: 0 2px 6px; color: var(--side-ink-strong); }
.bp-brand .side-co { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bp-brand .logo-plate { height: 30px; padding: 3px 6px; border-radius: var(--radius-sm); }
.bp-brand .logo-plate img { max-height: 22px; }
.bp-brand .co-logo { height: 26px; padding: 0 2px; } .bp-brand .co-logo img { max-height: 24px; }
.bp-brand .co-initial { width: 20px; height: 20px; font-size: 11px; }
.bp-brand .co-name { font-size: 11.5px; }
.bp-brand .side-x { padding: 0 2px; font-size: 9px; gap: 4px; }
.bp-brand .side-rh { font-size: 12px; padding: 0 2px; }
.bp-brand .side-co-small { padding: 0 2px; font-size: 9.5px; }
.bp-brand .rh-logo { --rh-hr: #f2b544; }
.bp-nav { display: grid; gap: 1px; }
.bp-nav span { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: var(--radius-sm); font-size: 11px; position: relative; white-space: nowrap; overflow: hidden; }
.bp-nav span svg { width: 12px; height: 12px; flex: none; opacity: .85; }
.bp-nav span em { margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 600; padding: 0 5px; border-radius: 999px; background: var(--side-count-1-bg); color: var(--side-count-1-ink); }
.bp-nav span em.alt { background: var(--side-count-2-bg); color: var(--side-count-2-ink); }   /* the counts take turns, as in the sidebar (app.css) */
.bp-nav .lbl { margin-top: 6px; font-size: 8.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: color-mix(in srgb, var(--side-ink) 80%, var(--side-bg)); padding: 2px 6px; }
.bp-nav .on { background: var(--side-active); color: var(--side-ink-strong); font-weight: 600; overflow: visible; }
.bp-nav .on::before { content: ""; position: absolute; left: -7px; top: 4px; bottom: 4px; width: 3px; border-radius: 0 2px 2px 0; background: var(--side-accent); }
.bp-brand .powered-by { padding: 0 2px; font-size: 9px; gap: 3px; color: var(--side-ink); }
.bp-brand .powered-by .rh-logo { font-size: 9px; color: var(--side-ink-strong); }
.bp-main { display: flex; flex-direction: column; min-width: 0; }
.bp-top { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.bp-search { flex: 1; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--faint); font-size: 10px; overflow: hidden; white-space: nowrap; }
.bp-search svg { width: 11px; height: 11px; flex: none; }
.bp-stage .btn { pointer-events: none; }
.bp-stage .bp-app .btn.sm { padding: 3px 8px; font-size: 10.5px; gap: 4px; }
.bp-stage .bp-app .btn svg { width: 11px; height: 11px; }
.bp-page { padding: 12px; display: grid; gap: 10px; }
.bp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bp-head h1 { font: 600 15px/1.2 var(--font-display); }
.bp-head .sub { font-size: 10px; color: var(--muted); }
.bp-tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.bp-tabs span { padding: 4px 0 6px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bp-tabs .on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.bp-tabs i { font-style: normal; font-size: 9.5px; padding: 0 4px; border-radius: 3px; background: var(--brand-soft); color: var(--brand); }
.bp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bp-kpis .card { padding: 7px 9px; display: grid; }
.bp-kpis small { font-size: 9.5px; color: var(--muted); }
.bp-kpis b { font: 600 17px/1.1 var(--font-display); color: var(--brand); }
.bp-table { padding: 0; overflow: hidden; }
.bp-table .tr { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 6px; align-items: center; padding: 5px 9px; border-top: 1px solid var(--hair); font-size: 10.5px; }
.bp-table .th { border-top: 0; background: var(--surface-3); font-size: 9.5px; font-weight: 600; color: var(--muted); }
.bp-table .tr.sel { background: var(--brand-soft); box-shadow: inset 2px 0 0 var(--brand); }
.bp-table a { color: var(--brand); font-weight: 600; }
.bp-table .pill { font-size: 9.5px; padding: 0 6px; justify-self: start; }
/* the sign-in screen, drawn at 1200 x 760 and scaled into the preview */
.bp-signin-frame { position: relative; width: 100%; aspect-ratio: 1200 / 760; overflow: hidden; }
.bp-signin-frame > .signin { position: absolute; left: 0; top: 0; width: 1200px; height: 760px; min-height: 0; transform: scale(var(--k, .36)); transform-origin: 0 0;
  grid-template-columns: minmax(0, 1.15fr) 440px; padding: 40px 56px; }
.bp-signin-frame > .signin.no-hl { grid-template-columns: 440px; }
.bp-signin-frame .sx-fx i { animation: none; }
.bp-signin-frame .sx-main { order: 0; }
