/* The Rebirth shell (R65, R70): a slim space rail, tabs per space. Loaded after styles.css.
   The palette is styles.css :root, untouched (PROMPT_UI_OVERHAUL); the aliases below only
   derive from it, and the type is the system stack. */

:root {
  --bp-deep: var(--bg);
  --bp-panel: var(--surface);
  --bp-panel-2: var(--surface-2);
  --bp-line: var(--sep);
  --bp-grid: var(--fill);
  --ink: var(--text);
  --ink-2: var(--text-2);
  --ink-3: var(--text-3);
  --marker: var(--accent);
  --marker-ink: var(--text);
}

html, body { background: var(--bg); }

/* ── tokens the shell adds: scales only, every colour derives from :root ── */
:root {
  --rb-rail: 56px; --rb-nav: 240px; --rb-dock: 380px; --rb-status: 28px;
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-28: 28px; --fs-40: 40px;
  --rb-line: var(--sep);
  --rb-raise: color-mix(in srgb, var(--surface) 70%, var(--bg));
  --rb-ease: cubic-bezier(.23, 1, .32, 1);
}

/* canvas surfaces are solid; glass is kept for the pieces that float */
.rb-content .glass, .rb-content .glass-thick, .rb-content .glass-lens { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: var(--surface) !important; }

/* ── shell grid: rail · space nav · canvas · dock ─────────────────────── */
.rb-shell { display: grid; grid-template-columns: var(--rb-rail) var(--rb-nav) minmax(0, 1fr); height: 100vh; height: 100dvh; background: var(--bg); }
.rb-shell.nav-collapsed { grid-template-columns: var(--rb-rail) minmax(0, 1fr); }
.rb-shell.nav-collapsed .rb-spacenav { display: none; }
.rb-shell.has-dock { grid-template-columns: var(--rb-rail) var(--rb-nav) minmax(0, 1fr) var(--rb-dock); }
.rb-shell.nav-collapsed.has-dock { grid-template-columns: var(--rb-rail) minmax(0, 1fr) var(--rb-dock); }

.rb-rail { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border-right: 1px solid var(--rb-line); background: color-mix(in srgb, var(--bg) 70%, black); }
.rb-mark { width: 34px; height: 34px; margin-bottom: 12px; border: 0; border-radius: 10px; background: var(--accent-gradient); color: var(--text); font: 800 16px/1 var(--font); cursor: pointer; }
.rb-ws { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--text-3); cursor: pointer;
  transition: background-color .15s var(--rb-ease), color .15s var(--rb-ease), transform .1s var(--rb-ease); }
.rb-ws i { font-size: 21px; }
.rb-ws-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rb-ws:hover { background: var(--fill); color: var(--text); }
.rb-ws:active { transform: scale(.97); }
.rb-ws[aria-current="page"], .rb-ws[aria-pressed="true"] { background: var(--accent-fill); color: var(--accent-text); }
.rb-ws[aria-current="page"]::before { content: ""; position: absolute; left: -6px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.rb-dot { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--orange); color: var(--bg);
  font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.rb-rail-end { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rb-me { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 8px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; }

.rb-spacenav { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--rb-line); background: color-mix(in srgb, var(--bg) 88%, var(--surface)); }
.rb-spacenav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 8px 16px; }
.rb-spacenav-head h2 { margin: 0; font-size: var(--fs-16); font-weight: 700; letter-spacing: -.01em; }
.rb-spacenav-list { flex: 1; overflow: auto; padding: 0 8px 16px; display: flex; flex-direction: column; gap: 1px; }
.rb-nav-section { padding: 14px 8px 4px; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rb-tab { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--text-2);
  font: 500 var(--fs-13) var(--font); text-align: left; cursor: pointer; }
.rb-tab i { font-size: 16px; flex: none; color: var(--text-3); }
.rb-tab-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-tab-badge { flex: none; font-variant-numeric: tabular-nums; }
.rb-tab-badge .tag { font-size: 11px; padding: 0 6px; }
.rb-tab:hover { background: var(--fill); color: var(--text); }
.rb-tab[aria-current="page"] { background: var(--fill-2); color: var(--text); font-weight: 600; }
.rb-tab[aria-current="page"] i { color: var(--accent); }
.rb-subtabs { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 17px; padding-left: 10px; border-left: 1px solid var(--rb-line); }
.rb-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--text-3);
  font: 500 var(--fs-12) var(--font); text-align: left; cursor: pointer; }
.rb-sub:hover { color: var(--text); background: var(--fill); }
.rb-sub[aria-current="page"] { color: var(--accent-text); background: var(--accent-fill); }
.rb-sub .nav-sub-count { font-variant-numeric: tabular-nums; opacity: .8; }

.rb-main { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; /* head · Pause banner slot · content · composer · status */ grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; }
.rb-head { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 20px; border-bottom: 1px solid var(--rb-line); }
.rb-nav-btn:not(.is-needed) { display: none; }
.rb-ws-more { display: none; }
.rb-crumbs { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 90px; color: var(--text-3); font-size: var(--fs-14); }
.rb-crumbs i { font-size: 12px; }
.rb-title { min-width: 0; margin: 0; font-size: var(--fs-14); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.rb-tools > * { flex: none; }
.rb-search { display: inline-flex; align-items: center; gap: 8px; width: clamp(150px, 18vw, 260px); height: 32px; padding: 0 8px 0 10px; border: 0; border-radius: 8px; background: var(--fill); color: var(--text-3);
  font: 500 var(--fs-13) var(--font); cursor: pointer; box-shadow: inset 0 0 0 1px var(--rb-line); }
.rb-search span { flex: 1; text-align: left; }
.rb-search:hover { background: var(--fill-2); color: var(--text-2); }
kbd, .rb-search kbd { font: 600 11px var(--font); padding: 1px 5px; border-radius: 4px; background: var(--fill-2); color: var(--text-2); box-shadow: inset 0 -1px 0 var(--sep-strong); }
.rb-btn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--fill); color: var(--text);
  font: 600 var(--fs-13) var(--font); cursor: pointer; box-shadow: inset 0 0 0 1px var(--rb-line); transition: background-color .15s var(--rb-ease), transform .1s var(--rb-ease); }
.rb-btn:hover { background: var(--fill-2); }
.rb-btn:active, .rb-icon-btn:active { transform: scale(.97); }
.rb-btn-primary { background: var(--accent-strong); box-shadow: none; }
.rb-btn-primary:hover { background: color-mix(in srgb, var(--accent-strong) 88%, var(--text)); }
.rb-btn-icon { width: 32px; padding: 0; justify-content: center; }
.rb-icon-btn { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 0; border-radius: 7px; background: none; color: var(--text-3); cursor: pointer; }
.rb-icon-btn:hover { background: var(--fill); color: var(--text); }
.rb-pop-wrap { position: relative; }
.rb-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 200px; padding: 5px; border-radius: 12px; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--surface-2) 94%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--sep-strong), 0 18px 40px color-mix(in srgb, black 45%, transparent); animation: rbPop .16s var(--rb-ease); }
.rb-menu button { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: 500 var(--fs-13) var(--font); text-align: left; cursor: pointer; }
.rb-menu button i { font-size: 16px; color: var(--text-3); }
.rb-menu button:hover, .rb-menu button:focus-visible { background: var(--accent-fill); }
@keyframes rbPop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.rb-content { overflow: auto; min-height: 0; padding: 24px 28px 40px; }
.rb-content.is-full { overflow: hidden; padding: 0; }
.rb-main > .composer-bar { border-top: 1px solid var(--rb-line); }

.rb-status { display: flex; align-items: center; gap: 2px; height: var(--rb-status); padding: 0 8px; border-top: 1px solid var(--rb-line); color: var(--text-3); font-size: var(--fs-12); overflow-x: auto; scrollbar-width: none; }
.rb-seg { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 0; border-radius: 5px; background: none; color: inherit; font: inherit; white-space: nowrap; }
button.rb-seg { cursor: pointer; }
button.rb-seg:hover { background: var(--fill); color: var(--text); }
.rb-seg .dot { width: 7px; height: 7px; }
.dot-idle { background: var(--text-3); }
.rb-status-end { margin-left: auto; padding: 0 6px; white-space: nowrap; }

.rb-dock { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--rb-line); background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.rb-dock-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--rb-line); }
.rb-dock-head > i { color: var(--accent); font-size: 18px; }
.rb-dock-status { margin-left: auto; font-size: var(--fs-12); min-width: 0; overflow: hidden; }
.rb-dock .chat-log { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
.rb-dock .chat-composer { margin: 10px; }
.rb-dock-note { padding: 20px 16px; color: var(--text-2); }

.rb-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, black 50%, transparent); }
.rb-sheet { width: min(460px, 100%); max-height: 80vh; overflow: auto; padding: 18px 20px 20px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--sep-strong), 0 30px 70px color-mix(in srgb, black 55%, transparent); animation: rbPop .18s var(--rb-ease); }
.rb-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rb-sheet-head h2 { margin: 0; font-size: var(--fs-16); }
.rb-keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: var(--fs-13); }
.rb-more-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rb-more-list .rb-ws { width: auto; height: 72px; display: flex; flex-direction: column; gap: 6px; background: var(--fill); }
.rb-more-list .rb-ws-label { position: static; width: auto; height: auto; clip: auto; font-size: var(--fs-12); }
.rb-more-list .rb-ws[aria-current="page"]::before { display: none; }
.rb-keys dd { margin: 0; color: var(--text-2); }

/* Settings: the section index lives in the space nav on wide screens; the chips stay for narrow ones */
.rb-settings-index { display: flex; flex-direction: column; gap: 1px; margin: 4px 0 8px; }
.rb-settings-search { margin: 4px 0 2px; min-height: 30px; font-size: var(--fs-13); }
.rb-settings-item { padding-left: 14px; }
@media (min-width: 1101px) { .rb-shell:not(.nav-collapsed) .settings-chips { display: none !important; } }

/* toasts: bottom-centre above the status bar; a message never blocks the click under it */
.toast { bottom: calc(var(--rb-status) + 14px); pointer-events: none; }

/* the old in-page headers of full-width screens sit on the canvas, not in the shell */
.rb-content > .page-head:first-child { margin-top: 0; }

/* ── Home: the Today bento ───────────────────────────────────────────── */
.rb-today { max-width: 1240px; margin: 0 auto; }
.rb-hello { margin: 4px 0 22px; }
.rb-hello h2 { margin: 0; font-size: var(--fs-28); font-weight: 700; letter-spacing: -.02em; }
.rb-hello p { margin: 4px 0 0; color: var(--text-3); font-size: var(--fs-14); }
.rb-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(140px, auto); grid-auto-flow: dense; gap: 12px; }
.rb-tile { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 18px; border: 0; border-radius: 14px; text-align: left; font: inherit; color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); transition: background-color .15s var(--rb-ease), transform .1s var(--rb-ease), box-shadow .15s var(--rb-ease); }
button.rb-tile { cursor: pointer; }
button.rb-tile:hover { background: color-mix(in srgb, var(--surface) 80%, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--sep-strong); }
button.rb-tile:active { transform: scale(.985); }
.rb-tile-head { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: var(--fs-13); font-weight: 600; }
.rb-tile-head > i:first-child { font-size: 17px; }
.rb-tile-go { margin-left: auto; opacity: 0; color: var(--text-3); transition: opacity .15s var(--rb-ease); }
button.rb-tile:hover .rb-tile-go, button.rb-tile:focus-visible .rb-tile-go { opacity: 1; }
.rb-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rb-big b { font-size: var(--fs-40); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rb-big span { color: var(--text-2); font-size: var(--fs-14); }
.rb-meter { height: 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; }
.rb-meter span { display: block; height: 100%; border-radius: 3px; background: var(--accent-gradient); }
.rb-tile-foot { margin-top: auto; color: var(--text-3); font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.rb-cta { color: var(--accent-text); font-weight: 600; }
.rb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px 18px; }
.rb-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-stat b { font-size: var(--fs-20); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-stat span { color: var(--text-3); font-size: var(--fs-12); }
.rb-bars { display: flex; flex-direction: column; gap: 7px; }
.rb-bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: var(--fs-12); color: var(--text-2); }
.rb-bar-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rb-bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.rb-bar span { display: block; height: 100%; border-radius: 3px; min-width: 2px; }
.rb-live-row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-14); }
.rb-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rb-people li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-13); min-width: 0; }
.rb-people li span:last-child { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-wait { color: var(--text-3); font-size: var(--fs-13); }
.rb-t-calls { grid-column: span 4; background: linear-gradient(160deg, var(--accent-fill), transparent 60%), var(--surface); }
.rb-t-calls .rb-big b { font-size: 56px; }
.rb-t-follow, .rb-t-money { grid-column: span 4; }
.rb-t-money .rb-stats, .rb-t-deliver .rb-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.rb-t-money .rb-stat, .rb-t-deliver .rb-stat { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 12px; }
.rb-t-money .rb-stat b, .rb-t-deliver .rb-stat b { font-size: var(--fs-16); }
.rb-t-money .rb-stat span, .rb-t-deliver .rb-stat span { font-size: var(--fs-13); color: var(--text-2); }
.rb-t-pipe { grid-column: span 8; }
.rb-t-deliver, .rb-t-engine, .rb-t-jarvis, .rb-t-team { grid-column: span 4; }
.rb-t-feed { grid-column: span 12; }
.rb-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rb-feed li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--sep); font-size: var(--fs-13); }
.rb-feed li:first-child { border-top: 0; }
.rb-feed li i { color: var(--text-3); }
.rb-feed li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-feed li time { color: var(--text-3); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .rb-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rb-t-calls, .rb-t-pipe { grid-column: span 6; grid-row: auto; }
  .rb-t-follow, .rb-t-money, .rb-t-deliver, .rb-t-engine, .rb-t-jarvis { grid-column: span 3; }
  .rb-t-team, .rb-t-feed { grid-column: span 6; }
}
@media (max-width: 640px) {
  .rb-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .rb-bento > .rb-tile { grid-column: auto; }
}

:focus-visible { background: var(--accent-fill); }
@keyframes rbPop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.rb-content { overflow: auto; min-height: 0; padding: 24px 28px 40px; }
.rb-content.is-full { overflow: hidden; padding: 0; }
.rb-main > .composer-bar { border-top: 1px solid var(--rb-line); }

.rb-status { display: flex; align-items: center; gap: 2px; height: var(--rb-status); padding: 0 8px; border-top: 1px solid var(--rb-line); color: var(--text-3); font-size: var(--fs-12); overflow-x: auto; scrollbar-width: none; }
.rb-seg { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 0; border-radius: 5px; background: none; color: inherit; font: inherit; white-space: nowrap; }
button.rb-seg { cursor: pointer; }
button.rb-seg:hover { background: var(--fill); color: var(--text); }
.rb-seg .dot { width: 7px; height: 7px; }
.dot-idle { background: var(--text-3); }
.rb-status-end { margin-left: auto; padding: 0 6px; white-space: nowrap; }

.rb-dock { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--rb-line); background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.rb-dock-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--rb-line); }
.rb-dock-head > i { color: var(--accent); font-size: 18px; }
.rb-dock-status { margin-left: auto; font-size: var(--fs-12); min-width: 0; overflow: hidden; }
.rb-dock .chat-log { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
.rb-dock .chat-composer { margin: 10px; }
.rb-dock-note { padding: 20px 16px; color: var(--text-2); }

.rb-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, black 50%, transparent); }
.rb-sheet { width: min(460px, 100%); max-height: 80vh; overflow: auto; padding: 18px 20px 20px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--sep-strong), 0 30px 70px color-mix(in srgb, black 55%, transparent); animation: rbPop .18s var(--rb-ease); }
.rb-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rb-sheet-head h2 { margin: 0; font-size: var(--fs-16); }
.rb-keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: var(--fs-13); }
.rb-more-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rb-more-list .rb-ws { width: auto; height: 72px; display: flex; flex-direction: column; gap: 6px; background: var(--fill); }
.rb-more-list .rb-ws-label { position: static; width: auto; height: auto; clip: auto; font-size: var(--fs-12); }
.rb-more-list .rb-ws[aria-current="page"]::before { display: none; }
.rb-keys dd { margin: 0; color: var(--text-2); }

/* toasts: bottom-centre above the status bar; a message never blocks the click under it */
.toast { bottom: calc(var(--rb-status) + 14px); pointer-events: none; }

/* the old in-page headers of full-width screens sit on the canvas, not in the shell */
.rb-content > .page-head:first-child { margin-top: 0; }

/* ── Today ────────────────────────────────────────────────────────────── */
.rb-today { max-width: 880px; }
.rb-today-lede { margin: 0 0 22px; font-size: 16px; color: var(--ink-2); max-width: 60ch; }
.rb-now { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--bp-line); }
.rb-now li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--bp-line); }
.rb-now .rb-count { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; text-align: right; color: var(--ink); }
.rb-now li.is-first .rb-count { color: var(--marker); }
.rb-now .rb-what { font-size: 16px; font-weight: 600; }
.rb-now .rb-where { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.rb-go { height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--fill-2); color: var(--ink); font: 700 13.5px var(--font); cursor: pointer; }
.rb-now li.is-first .rb-go { background: var(--marker); color: var(--marker-ink); }
.rb-go:hover { filter: brightness(1.08); }
.rb-quiet { padding: 28px 4px; color: var(--ink-2); font-size: 15px; }
.rb-section-title { margin: 34px 0 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.rb-jump { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.rb-jump button { text-align: left; padding: 12px 14px; border: 0; border-radius: 8px; background: var(--bp-panel); color: var(--ink); font: 600 14px var(--font); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--bp-line); display: flex; align-items: center; gap: 10px; }
.rb-jump button i { font-size: 18px; color: var(--accent); }
.rb-jump button:hover { background: var(--bp-panel-2); }

:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }

/* ── 768–1100 px: the space nav and the dock float over the canvas ──── */
@media (max-width: 1100px) {
  .rb-shell, .rb-shell.has-dock, .rb-shell.nav-collapsed.has-dock { grid-template-columns: var(--rb-rail) minmax(0, 1fr); }
  .rb-spacenav { position: fixed; left: var(--rb-rail); top: 0; bottom: 0; z-index: 60; width: var(--rb-nav); box-shadow: 20px 0 50px color-mix(in srgb, black 40%, transparent); }
  .rb-shell:not(.nav-open) .rb-spacenav { display: none; }
  .rb-shell.nav-open .rb-spacenav { display: flex; }
  .rb-nav-btn:not(.is-needed) { display: grid; }
  .rb-dock { position: fixed; right: 0; top: 0; bottom: 0; z-index: 60; width: min(var(--rb-dock), 100vw); box-shadow: -20px 0 50px color-mix(in srgb, black 40%, transparent); }
  .rb-search { width: auto; }
  .rb-search span { display: none; }
}
/* ── phones: the rail becomes a bottom bar ───────────────────────────── */
@media (max-width: 767px) {
  .rb-shell, .rb-shell.has-dock, .rb-shell.nav-collapsed, .rb-shell.nav-collapsed.has-dock { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .rb-rail { order: 2; flex-direction: row; justify-content: space-around; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--rb-line); overflow-x: auto; }
  .rb-rail .rb-mark, .rb-me, .rb-ws[aria-current="page"]::before { display: none; }
  .rb-rail-end { margin: 0; flex-direction: row; }
  .rb-ws { flex: 1; min-width: 44px; height: 48px; }
  .rb-rail > .rb-ws[data-ws="delivery"], .rb-rail > .rb-ws[data-ws="leads"], .rb-rail > .rb-ws[data-ws="team"], .rb-rail-end > .rb-ws:not(.rb-ws-more) { display: none; }
  .rb-rail-end { flex: 1; } .rb-ws-more { display: grid; }
  .rb-crumbs > span, .rb-crumbs > i { display: none; }
  .rb-crumbs { min-width: 0; }
  .rb-tools { gap: 6px; }
  .rb-head [data-brain-talk], .rb-head .pill-label, .rb-head [data-b-call-mode] { display: none; }
  .rb-spacenav { left: 0; bottom: 60px; width: min(300px, 86vw); }
  .rb-dock { bottom: 60px; }
  .rb-head { padding: 8px 12px; }
  .rb-btn span { display: none; }
  .rb-btn { width: 36px; padding: 0; justify-content: center; }
  .rb-content { padding: 16px; }
  .rb-status { display: none; }
  .toast { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Screens from before the redesign ask for tabular figures inline; in this face that also
   widens "." and ",", which breaks German amounts ("17.670,00 €"). */

/* screen header inside a workspace: the tab is the title (R68) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rb-screen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 4px; }
.rb-screen-lede { margin: 0; max-width: 72ch; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.rb-screen-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* a screen's work on the left, how it runs on the right (R68) */
.rb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 16px; align-items: start; }
.rb-split-main, .rb-split-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1100px) { .rb-split { grid-template-columns: minmax(0, 1fr); } }

/* Call List / Call Mode phone-script picker (business.js) and shared business rows — classes instead of
   inline styles (scripts/lint/inline-styles.mjs). */
.call-script-picker { display: flex; align-items: center; gap: 4px; min-width: 0; }
.call-script-step { flex: none; width: 26px; height: 26px; }
.call-script-chips { flex: 1; min-width: 0; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: thin; padding: 2px 0; }
.call-script-chip { flex: none; font-size: 11.5px; padding: 3px 10px; white-space: nowrap; }
/* Shared script stars (ADR-0021) */
.script-star { width: 24px; height: 24px; flex: none; color: var(--text-3); }
.script-star[aria-pressed="true"] { color: var(--yellow); }
.script-star i { font-size: 14px; }
.script-star-mark { color: var(--yellow); font-size: 11px; margin-right: 4px; }
.call-script-chip.btn-primary .script-star-mark { color: inherit; }
.biz-btn-md { font-size: 12.5px; padding: 6px 12px; }
.biz-btn-md.is-verified { color: var(--green); }
.biz-row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

