/* SheetsAgent onboarding — matches the "Paper" dashboard theme
   (src/DashboardPaper.template.html): warm paper canvas, ink text, a single
   purple accent used sparingly, Instrument Serif headings + Inter body +
   JetBrains Mono labels. Tokens mirror that file so the two read as one product.
   All class/id hooks are driven by prototype.js — only the look changes here. */

:root {
  --accent: #7C3AED;
  --accent-soft: #F3EEFF;
  --accent-ink: #4C1D95;
  /* ink-3/4/5 match the uberpixel design tokens (warm grays); ink-4 also
     clears WCAG AA contrast on the paper background, which #8A8A8A did not. */
  --ink: #0A0A0A;
  --ink-2: #1F1F1F;
  --ink-3: #4A463E;
  --ink-4: #6F6A5C;
  --ink-5: #968F81;
  --line: #EFECE4;
  --line-2: #F5F2EC;
  --paper: #FEFCF8;
  --paper-2: #FCFAF3;
  --paper-3: #F7F2E6;
  --danger: #C2410C;
  --danger-soft: #FBEAE0;
  --radius: 14px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* WCAG 2.3.3 — users who ask for reduced motion get none. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper-2);
  font-size: 0.875rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- honesty strip ---- */
.proto-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 0.6563rem;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}
.proto-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.3);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.3); }
  70% { box-shadow: 0 0 0 6px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

/* ---- stage: vertically + horizontally centered ---- */
.stage {
  flex: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- progress rail: connected stepper ---- */
.rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 20px;
  position: relative;
}
.rail-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
}
/* connector runs dot-centre to dot-centre, tucked under the (solid) dots */
.rail-step + .rail-step::before {
  content: '';
  position: absolute;
  left: -50%;
  right: 50%;
  top: 12px;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.rail-dot {
  width: 24px; height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.6563rem;
  font-weight: 700;
  color: var(--ink-4);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 1;
}
.rail-step.is-active { color: var(--ink); }
.rail-step.is-active .rail-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.rail-step.is-done { color: var(--accent-ink); }
.rail-step.is-done .rail-dot {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.rail-step.is-done + .rail-step::before,
.rail-step.is-active + .rail-step::before { background: var(--accent); }
.rail-label { white-space: nowrap; }

/* ---- card + screens ---- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px 32px 28px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.screen { display: none; flex: 1; flex-direction: column; }
.screen.is-active { display: flex; }

/* staggered entrance — children fade up in sequence on screen change */
.screen.is-active > * {
  opacity: 0;
  animation: rise 0.45s var(--ease) forwards;
  animation-delay: 0.12s;
}
.screen.is-active > *:nth-child(1) { animation-delay: 0.02s; }
.screen.is-active > *:nth-child(2) { animation-delay: 0.06s; }
.screen.is-active > *:nth-child(3) { animation-delay: 0.10s; }
.screen.is-active > *:nth-child(4) { animation-delay: 0.14s; }
.screen.is-active > *:nth-child(5) { animation-delay: 0.18s; }
.screen.is-active > *:nth-child(6) { animation-delay: 0.22s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- kicker pill (mono, à la paper-login-kicker) ---- */
.kicker {
  font-family: var(--mono); font-size: 0.625rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 3px 8px; border-radius: 4px; display: inline-block;
  margin-bottom: 16px; font-weight: 600;
}

/* ---- brand ---- */
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.brand-mark {
  width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { display: block; }
.brand-name {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

/* ---- type ---- */
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.375rem;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}
.lead { font-size: 0.875rem; line-height: 1.6; color: var(--ink-3); margin-bottom: 8px; }
.lead.sub { font-size: 0.8125rem; color: var(--ink-4); }
.fine { font-size: 0.7188rem; line-height: 1.55; color: var(--ink-4); margin-top: 14px; font-style: italic; }
.mono { font-family: var(--mono); font-size: 0.7188rem; color: var(--ink-3); background: var(--paper-3); padding: 1px 5px; border-radius: 3px; font-style: normal; }

/* ---- action row ---- */
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}

/* ---- buttons ---- */
.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 10px 18px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  margin-left: auto;
}
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink-4); }
.btn-ghost:hover { color: var(--ink-2); background: var(--paper-3); }
.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.btn-soft:hover { background: #EBE2FF; }
.btn-soft:disabled { opacity: 0.55; cursor: default; }
.btn-link {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font: inherit; font-weight: 500;
  text-decoration: underline; text-underline-offset: 2px; padding: 0;
}

/* ---- Google sign-in (light) ---- */
.gsi {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  align-self: center;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.gsi:hover { background: var(--paper); border-color: var(--ink-5); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.gsi-logo {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  display: grid; place-items: center;
}
.gsi-logo svg { width: 100%; height: 100%; display: block; }
.gsi-logo.sm { width: 24px; height: 24px; flex: 0 0 24px; }

/* sign-in is a sparse, focal screen — centre the group vertically and keep
   "Back" right under the button instead of pinning it to the card's bottom
   (which left a big empty gap). */
#screen-signin { justify-content: center; }
#screen-signin .actions { margin-top: 24px; padding-top: 0; }

/* ---- consent ---- */
.consent-head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.consent-title { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.consent-acct { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-ink); margin-top: 3px; }
.consent-intro { font-size: 0.8125rem; font-weight: 600; margin-bottom: 11px; color: var(--ink-3); }
.scopes { list-style: none; display: grid; gap: 10px; }
.scopes li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.scope-ico {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}
.scopes strong { display: block; font-size: 0.8438rem; margin-bottom: 2px; color: var(--ink); font-weight: 600; }
.scopes span { font-size: 0.7813rem; color: var(--ink-3); line-height: 1.45; }

/* ---- provisioning ---- */
.provision { list-style: none; display: grid; gap: 4px; margin-top: 8px; }
.provision li {
  display: flex; gap: 13px; align-items: center;
  padding: 11px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.provision strong { font-size: 0.8438rem; font-weight: 500; color: var(--ink-3); }
.provision li.is-active {
  background: var(--accent-soft);
  border-color: #E4D8FF;
}
.provision li.is-active strong { font-weight: 600; color: var(--ink); }
.provision li.is-done strong { color: var(--ink); }
.provision li.is-pending { opacity: 0.45; }
.prov-state {
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-3);
  border: 1px solid var(--line);
  position: relative;
}
.provision li.is-active .prov-state {
  background: transparent;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
.provision li.is-done .prov-state { background: var(--accent); border-color: var(--accent); }
.provision li.is-done .prov-state::after { content: '✓'; color: #fff; font-size: 0.75rem; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }

.provision-error {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--danger-soft);
  border: 1px solid #F0CBB4;
  color: var(--danger);
  font-size: 0.8125rem;
}

/* ---- Activate-Apps-Script: "confirming with Google" waiting indicator ---- */
.enable-waiting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px auto 0;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #E4D8FF;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--accent-ink);
  text-align: left;
}
/* A class that sets `display` overrides the `hidden` attribute (same specificity,
   author rule wins). This restores it so [hidden] actually hides the box. */
.enable-waiting[hidden] { display: none; }
.enable-spinner {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

/* ---- done / authorize hero ---- */
.done-burst {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff; font-size: 1.75rem; font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px -8px rgba(124, 58, 237, 0.5);
  animation: pop 0.45s cubic-bezier(0.2, 1.5, 0.5, 1);
}
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.next-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper-2);
}
.next-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.next-row strong { display: block; font-size: 0.875rem; margin-bottom: 2px; color: var(--ink); font-weight: 600; }
.next-row span { font-size: 0.7813rem; color: var(--ink-3); line-height: 1.5; }
.next-row .btn { flex: 0 0 auto; padding: 9px 16px; }
.next-ok {
  margin-top: 13px;
  font-size: 0.7813rem;
  font-weight: 600;
  color: var(--accent-ink);
}

/* ---- authorize step ---- */
.auth-steps {
  margin: 4px 0 18px;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}
.auth-steps li { font-size: 0.8438rem; line-height: 1.5; color: var(--ink-3); }
.auth-steps li b { color: var(--ink); font-weight: 600; }
.auth-steps code {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--paper-3);
  color: var(--accent-ink);
  padding: 1px 5px;
  border-radius: 3px;
}
.auth-open { margin-bottom: 4px; }
.auth-open .btn { display: inline-block; text-decoration: none; }
.actions a.btn { display: inline-block; text-decoration: none; text-align: center; }

/* ---- final config form ---- */
.cfg-field { display: block; margin: 0 0 4px; }
.cfg-field span { display: block; font-size: 0.75rem; font-weight: 500; margin-bottom: 4px; color: var(--ink-3); }
.cfg-field input, .cfg-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s var(--ease);
}
.cfg-field input::placeholder, .cfg-input::placeholder { color: var(--ink-5); }
.cfg-field input:focus, .cfg-input:focus { outline: none; border-color: var(--accent); }
.cfg-input { margin-bottom: 12px; }
.cfg-input[aria-invalid="true"] { border-color: var(--danger); }
.cfg-msg {
  margin: 6px 0 0;
  padding: 10px 13px;
  border-radius: var(--radius);
  background: var(--danger-soft);
  border: 1px solid #F0CBB4;
  color: var(--danger);
  font-size: 0.7813rem;
}

/* collapsible "advanced" block — optional AI keys hidden behind a disclosure */
.cfg-advanced {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.cfg-advanced > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
  transition: background 0.15s var(--ease);
}
.cfg-advanced > summary::-webkit-details-marker { display: none; }
.cfg-advanced > summary:hover { background: var(--paper-2); }
.cfg-advanced > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cfg-advanced-label { display: flex; flex-direction: column; gap: 2px; }
.cfg-advanced-title { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.cfg-advanced-hint { font-size: 0.7188rem; color: var(--ink-4); }
.cfg-advanced-chev {
  flex: none;
  font-size: 0.875rem;
  color: var(--ink-4);
  transition: transform 0.18s var(--ease);
}
.cfg-advanced[open] > summary .cfg-advanced-chev { transform: rotate(180deg); }
.cfg-advanced-body {
  padding: 12px 13px 4px;
  border-top: 1px solid var(--line);
}

/* per-step detail line during provisioning */
.prov-detail { display: block; font-size: 0.75rem; color: var(--ink-4); line-height: 1.45; margin-top: 1px; }
.provision li.is-failed { background: var(--danger-soft); border-color: #F0CBB4; }
.provision li.is-failed .prov-state { background: var(--danger); border-color: var(--danger); }
.provision li.is-failed .prov-state::after { content: '!'; color: #fff; font-size: 0.75rem; font-weight: 700; }
.provision li.is-failed .prov-detail { color: var(--danger); }

/* ---- toast (mirrors the Paper dashboard's .paper-toast) ---- */
.toast {
  position: fixed; top: 50px; right: 16px; z-index: 9999;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 13px 18px; font-size: 0.8438rem; font-weight: 500; line-height: 1.45;
  max-width: 340px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  opacity: 0; transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-error { border-left-color: var(--danger); }
.toast-success { border-left-color: #2E8A4F; }
.toast-info { border-left-color: var(--accent); }

.stage-foot {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* ink-4, not ink-5 — 10px text needs 4.5:1 contrast (WCAG AA); ink-5 is 3.07:1. */
  color: var(--ink-4);
  margin-top: 20px;
}

/* ---- responsive ---- */
@media (max-width: 520px) {
  .card { padding: 28px 22px; }
  h1 { font-size: 2rem; }
  .rail-step { font-size: 0.5625rem; }
  .next-row { flex-direction: column; align-items: flex-start; }
  .next-row .btn { width: 100%; }
}

/* ---- reduced motion: keep the loading spinner, drop the decoration ---- */
@media (prefers-reduced-motion: reduce) {
  .proto-dot { animation: none; }
  .screen.is-active > * { animation: none; opacity: 1; }
  .done-burst { animation: none; }
  .toast { transition: opacity 0.2s ease; transform: none; }
  .toast.show { transform: none; }
}

/* --- invite banner (member joining a department) --- */
.invite-banner {
  margin: 10px 0 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 0.875rem;
}

/* Disabled CTA (e.g. blocked invalid-invite flow) — visibly + programmatically off. */
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Invalid-invite blocking state of the join banner. */
.invite-banner.is-error {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}


/* ---- Onboarding steps (ported from the dashboard wizard) ---- */
:root { --onb-line: #C9C4B8; } /* wizard control borders — setup's --line is too light at 1.6px */
.onb-usetype { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.onb-bigcard { position: relative; text-align: left; cursor: pointer; font-family: inherit;
  background: #fff; border: 1.8px solid var(--onb-line); border-radius: var(--radius-lg);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .14s, box-shadow .14s; }
.onb-bigcard:hover { border-color: var(--ink-5); }
.onb-bigcard.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.onb-bigcard-t { font-size: 15.5px; font-weight: 650; color: var(--ink); }
.onb-bigcard-d { font-size: 12.5px; line-height: 1.5; color: var(--ink-4); }
.onb-bigcard-tick { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center;
  opacity: 0; transform: scale(.5); transition: all .16s; }
.onb-bigcard.is-on .onb-bigcard-tick { opacity: 1; transform: none; }
.onb-block { margin-top: 18px; }
.onb-flabel { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 0 0 9px; }
.onb-req { color: var(--accent); font-weight: 700; }
.onb-input { width: 100%; border: 1.6px solid var(--onb-line); background: #fff; border-radius: 10px;
  padding: 11px 13px; font-size: 14px; font-family: inherit; color: var(--ink); box-sizing: border-box; }
.onb-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.onb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit;
  border: 1.6px solid var(--onb-line); background: #fff; color: var(--ink-2); font-size: 13px;
  font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: all .12s; }
.onb-chip:hover { border-color: var(--ink-5); }
.onb-chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.onb-roles { display: grid; grid-template-columns: 1fr; gap: 9px; }
.onb-rolecard { position: relative; text-align: left; cursor: pointer; font-family: inherit;
  border: 1.8px solid var(--onb-line); background: #fff; border-radius: 12px; padding: 13px 46px 13px 13px;
  display: flex; flex-direction: column; gap: 3px; transition: all .12s; }
.onb-rolecard:hover { border-color: var(--ink-5); }
.onb-rolecard.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.onb-rolecard-t { font-size: 13.5px; font-weight: 650; line-height: 1.25; color: var(--ink); }
.onb-rolecard-d { font-size: 12px; color: var(--ink-4); }
.onb-rolecard-tick { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 10px; display: grid; place-items: center;
  opacity: 0; transform: scale(.5); transition: all .14s; }
.onb-rolecard.is-on .onb-rolecard-tick { opacity: 1; transform: none; }
.onb-conn-group { margin-top: 16px; }
.onb-conn-head { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.onb-conn-opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-5); font-size: 11px; }
.onb-conn-list { list-style: none; margin: 0; padding: 0; }
.onb-conn { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.6px solid var(--onb-line);
  border-radius: 11px; padding: 10px 13px; margin-bottom: 7px; }
.onb-conn.is-on { border-color: var(--accent); background: var(--accent-soft); }
.onb-conn.is-soon { opacity: .6; }
.onb-conn-name { flex: 1; font-size: 13.5px; font-weight: 550; color: var(--ink); }
.onb-conn-badge { font-size: 12px; font-weight: 600; color: #1F8A5B; }
.onb-conn-soon { font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-4); background: var(--paper-3); border-radius: 999px; padding: 3px 8px; }
@media (max-width: 640px) { .onb-usetype, .onb-row2 { grid-template-columns: 1fr; } }
