/* Lane A page pieces on top of dx.css (tokens only). */
.rd-auth-form { display: grid; gap: 18px; }
.rd-auth-form .chip.danger { justify-self: start; white-space: normal; height: auto; min-height: 24px; padding: 4px 10px; }
.auth-card .rd-small { font-size: 12px; }
.auth-card .rd-auth-empty { padding: 8px; }
.gbtn .gmark { flex: none; }
.pw { display: flex; align-items: center; border: 1px solid var(--outline); border-radius: 8px; background: var(--surface); }
.pw .in { border: 0; flex: 1; min-width: 0; background: none; }
.pw .in:focus { outline: 0; }
.pw:focus-within { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.pw .ibtn { position: static; height: 42px; width: 44px; flex: none; }
.fld.err .pw { border-color: var(--danger); }
.strength { margin-top: 2px; }
.strength i.on.weak { background: var(--danger); }
.strength i.on.fair { background: var(--warn); }
.rd-grid { display: grid; gap: 14px; }
.rd-stack { display: grid; gap: 20px; min-width: 0; }
.rd-avatar-lg { width: 64px; height: 64px; font-size: 22px; flex: none; }
.rd-gicon { display: grid; place-items: center; width: 20px; flex: none; }
.list > li > a.li { border-top: 1px solid var(--line); }
.list > li:first-child > a.li { border-top: 0; }
.rd-li-form button.li { border-top: 1px solid var(--line); }
.rd-danger, .rd-danger .li-main strong { color: var(--danger); }
.logo-up { flex-wrap: wrap; }
.rd-numrow { min-height: 0; }
.rd-li-tight { min-height: 44px; }
.rd-ok { color: var(--ok); }
.rd-ink { color: var(--ink); }
.rd-plans { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rd-price-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rd-seg-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.rd-seg-scroll::-webkit-scrollbar { display: none; }
.rd-legal-col { width: 100%; max-width: 760px; margin-inline: auto; display: grid; gap: 20px; min-width: 0; text-align: left; }
.rd-legal { max-width: 760px; }
.main > .auth-foot { width: 90%; max-width: 760px; margin: 56px auto 0; padding: 24px 0 32px; border-top: 1px solid var(--line); }
.pub-hdr .pub-links { flex: none; }
.rd-legal-doc { padding-top: 16px; line-height: 22px; color: var(--ink-2); }
.rd-legal-doc h2 { font-size: 18px; line-height: 26px; color: var(--ink); margin: 24px 0 8px; }
.rd-legal-doc h3 { font-size: 15px; line-height: 22px; color: var(--ink); margin: 16px 0 6px; }
.rd-legal-doc p { margin: 0 0 12px; }
.rd-legal-doc ul, .rd-legal-doc ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.rd-legal-doc a { color: var(--primary-ink); font-weight: 500; position: relative; }
.rd-legal-doc a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.rd-legal-doc strong { color: var(--ink); font-weight: 600; }
.rd-legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.rd-legal-doc table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; display: block; overflow-x: auto; }
.rd-legal-doc th, .rd-legal-doc td { text-align: left; padding: 8px 12px 8px 0; vertical-align: top; border-top: 1px solid var(--line); }
.rd-legal-doc > :first-child { margin-top: 0; }
.rd-inv-acts { display: flex; gap: 8px; flex: none; }
.rd-form-card { max-width: 560px; }
.rd-pad-top { padding-top: 16px; }
@media (max-width: 599px) { .rd-kpis2 { order: 9; } }
/* Home */
.rd-home { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "live" "recent" "start"; align-items: start; }
.rd-home.no-live { grid-template-areas: "recent" "start"; }
.rd-home > .rd-recent { grid-area: recent; } .rd-home > .rd-live { grid-area: live; } .rd-home > .rd-start { grid-area: start; }
@media (min-width: 1024px) {
  .rd-home { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "recent live" "recent start"; grid-template-rows: auto 1fr; }
  .rd-home.no-live { grid-template-areas: "recent start"; grid-template-rows: auto; }
}
/* Live now drawer: search stays put while rows scroll; a bottom sheet on phones. */
.rd-live-srch { padding: 12px 20px; border-bottom: 1px solid var(--line); flex: none; }
.rd-live-srch .srch { display: block; }
.rd-live-b { padding: 0 0 env(safe-area-inset-bottom, 0px); gap: 0; }
.rd-live-b .li { padding: 10px 20px; }
@media (max-width: 599px) {
  .drawer.rd-live-d { top: auto; max-height: 85%; border-radius: 16px 16px 0 0; }
  .rd-live-d .bsheet-grab { align-self: center; flex: none; margin-top: 8px; }
  .rd-live-d .d-h { padding-top: 6px; min-height: 56px; }
}
.rd-cmark40 { width: 40px; height: 40px; }
.rd-tiles2 { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.rd-tile88 { min-height: 88px; }
.rd-card-foot { display: flex; justify-content: flex-end; padding: 8px 12px 12px; border-top: 1px solid var(--line); }
/* Recent header: the title never shrinks; the chips show only when they fit (home.js sets .rd-fit), else one picker. */
.rd-recent .card-h { flex-wrap: nowrap; }
.rd-recent .card-h h2 { flex: none; white-space: nowrap; }
.rd-segs { flex: 1 1 0; min-width: 0; display: flex; justify-content: flex-end; align-items: center; position: relative; }
.rd-segs .seg { display: none; overflow: hidden; }
.rd-recent.rd-fit .rd-segs .seg { display: inline-flex; }
.rd-recent.rd-fit .rd-seg-pick { display: none; }
.rd-segs .seg.rd-measure { display: inline-flex; position: absolute; right: 0; visibility: hidden; pointer-events: none; max-width: none; }
.rd-seg-pick { min-width: 0; max-width: 100%; }
.rd-seg-pick .fsel-w { min-width: 0; max-width: 100%; }
/* Library */
.rd-lib-tools .seg .muted { font-weight: 400; }
.rd-lib-acts { display: flex; gap: 8px; flex: none; align-items: center; }
.rd-empty-act { display: flex; justify-content: center; padding: 0 16px 20px; margin-top: -8px; }
.rd-lib-tools .srch { flex-basis: 180px; }
/* Rows with a menu: the title link covers the row, the menu sits above it */
.li.rd-row { position: relative; }
.rd-stretch { color: inherit; text-decoration: none; }
.rd-stretch::after { content: ""; position: absolute; inset: 0; }
.rd-row:hover { background: var(--surface-2); }
.rd-above { position: relative; z-index: 1; display: flex; gap: 8px; align-items: center; }
.rd-self-start { justify-self: start; }
/* Buzzer host stage */
.rd-grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-stage-ink { color: var(--stage-ink); }
.stagewrap .chip { background: var(--stage-2); color: var(--stage-ink); }
.stagewrap .chip.ok { background: var(--ok-c); color: var(--ok); }
.stagewrap .chip.bad { background: var(--danger-c); color: var(--danger); }
.rd-overline { color: var(--stage-soft); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.rd-soft { color: var(--stage-soft); }
/* Phones: the title and code keep the header row; a healthy connection chip steps aside. */
@media (max-width: 599px) { .stagewrap .sw-h { flex-wrap: nowrap; gap: 8px; padding: 12px 16px; } .stagewrap .sw-h .rd-conn.ok { display: none; } }
.rd-round[hidden] { display: none; }
.rd-bz-lobby, .rd-bz-board { display: grid; gap: 16px; justify-items: center; width: 100%; }
.rd-bz-lobby[hidden], .rd-bz-board[hidden] { display: none; }
.rd-qr-box { background: var(--surface); padding: 8px; border-radius: 10px; width: 136px; }
.rd-qr-box svg { display: block; width: 100%; height: auto; }
.rd-qr-center { justify-self: center; width: 180px; }
.rd-bz-rows { display: grid; gap: 8px; width: min(520px, 100%); }
.rd-bz-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--stage-2); }
.rd-bz-row.first { background: var(--primary); }
.rd-bz-row b { font-size: 20px; min-width: 24px; text-align: center; }
.rd-bz-row .nm { flex: 1; text-align: left; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-bz.big .sw-f { display: none; }
.rd-bz.big .rd-bz-rows { width: min(900px, 100%); }
.rd-bz.big .rd-bz-row { font-size: 1.6em; padding: 18px 24px; }
.rd-share { padding: 0 4px 8px; }
.rd-share-code { display: flex; align-items: center; gap: 10px; justify-content: center; }
.rd-composer { border-radius: 12px; align-items: center; }
.rd-composer .in { border: 0; background: none; padding: 0; height: 40px; }
.rd-bz-board-list .li { min-height: 48px; }
.rd-rank { min-width: 24px; text-align: center; font-weight: 600; color: var(--ink-3); }
/* Phone pages */
.rd-center { align-content: center; min-height: 60vh; display: grid; }
.rd-code-in { text-align: center; font: 700 26px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; height: 60px; }
.rd-code-in::placeholder { font: 400 16px/1 var(--font); letter-spacing: 0; text-transform: none; }
.rd-bp { display: grid; gap: 20px; }
.rd-bp-main { display: grid; justify-items: center; align-content: center; gap: 24px; min-height: calc(100vh - 160px); padding: 8px 0; }
.buzzbtn:disabled { opacity: .45; cursor: not-allowed; box-shadow: var(--shadow-1); }
.buzzbtn.hit { transform: translateY(6px); }
.rd-bp-mine { font-size: 20px; }
.topbar .chip { flex: none; }
.chip.bad { background: var(--danger-c); color: var(--danger); }
.li.me .li-main strong { color: var(--primary-ink); }
/* Routines */
.rd-chips .fchip { text-decoration: none; }
.rd-hide { display: none; }
.rd-rt-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rd-tile-wrap { display: grid; grid-template-rows: 1fr auto; gap: 2px; }
.rd-tile-wrap .tile { height: 100%; }
.rd-about-link { justify-self: start; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; min-height: 36px; padding: 0 8px; }
.rd-tile-chip { justify-self: start; }
.rd-li-top { align-items: flex-start; }
.rd-wrap strong { white-space: normal; }
.rd-prose { display: grid; gap: 10px; line-height: 22px; color: var(--ink-2); }
.rd-prose p { margin: 0; }
.rd-prose b { color: var(--ink); }
.rd-169 { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; padding: 0; }
.rd-169 img { width: 100%; height: 100%; object-fit: contain; }
.rd-empty-sm { padding: 8px; }
.rd-left { justify-content: flex-start; }
.rd-thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.rd-rp .sticky-note { color: var(--ink); }
.sticky-note .who { font-size: 12px; color: var(--ink-3); }
.sticky-note .heart { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); }
.sticky-note .heart svg { width: 14px; height: 14px; }
.sticky-note img { max-width: 100%; border-radius: 8px; }
.sticky-note .sw { display: inline-block; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); vertical-align: middle; }
.sticky-note .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* Routine phone inputs (routine-phone.js) and the report */
.rd-c { text-align: center; }
.rd-rp { display: grid; gap: 16px; }
.rd-pcard { display: grid; gap: 10px; }
.rd-pcard .card-b { display: grid; gap: 10px; }
.rd-pfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rd-color { display: flex; align-items: center; gap: 12px; }
.rd-color input[type="color"] { width: 56px; height: 44px; border: 1px solid var(--outline); border-radius: 8px; background: var(--surface); padding: 2px; }
.rd-canvas { display: grid; gap: 8px; }
.rd-canvas canvas { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); touch-action: none; }
.rd-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rd-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); position: relative; }
.rd-dot[aria-pressed="true"] { border-color: var(--ink); }
.rd-dot::after, .rd-brush::after { content: ""; position: absolute; inset: -6px; }
.rd-brush { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; position: relative; }
.rd-brush[aria-pressed="true"] { border-color: var(--primary); }
.rd-brush i { display: block; border-radius: 50%; background: var(--ink); }
.rd-like { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; justify-content: center; border: 0; background: none; color: var(--ink-3); border-radius: 999px; }
.rd-like[aria-pressed="true"] { color: var(--danger); }
.rd-like[aria-pressed="true"] svg { fill: currentColor; }
.rd-file { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rd-file img { max-height: 120px; border-radius: 8px; }
.rd-note-sm { min-height: 0; }
/* allauth pages: code field, Google chip, and the stock elements on the kit */
.rd-code .in { font: 600 20px/1 var(--mono); letter-spacing: .2em; text-align: center; text-transform: uppercase; height: 52px; }
.rd-gchip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.rd-gchip .gmark { flex: none; }
.rd-gchip .grow { display: grid; gap: 2px; min-width: 0; }
.rd-gchip b { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.rd-gchip .grow > span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-aa-btns, .rd-aa-providers { display: grid; gap: 10px; }
.rd-aa-p a { color: var(--primary-ink); font-weight: 500; text-decoration: none; }
.rd-aa-h2 { font-size: 16px; line-height: 24px; margin: 0; }
.rd-aa-hr { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.rd-aa-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.rd-aa-check input { width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.rd-aa-help { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rd-aa-img { max-width: 100%; height: auto; justify-self: center; border-radius: 8px; }
.rd-aa-link { justify-self: center; border: 0; background: none; padding: 0; min-height: 24px; }
#resend, #logout-from-stage, #pending-email { display: none; }
.rd-tap { min-height: 44px; }
.rd-ed:not(.editing) .in[data-rd-lock] { border-color: transparent; background: transparent; padding-inline: 0; }
.rd-ed:not(.editing) .in[data-rd-lock]:focus { outline-offset: 2px; }
.rd-ed.editing [data-rd-edit] { display: none; }
.rd-rt-grp { display: grid; gap: 10px; margin-bottom: 20px; }
.rd-rt-gh { font: 600 15px/20px var(--font); color: var(--ink-2); margin: 8px 0 0; }
