.rb-overview {
  padding: clamp(36px, 5vw, 68px) 0 28px;
  background: radial-gradient(ellipse at 82% 5%, #304a37, var(--td-deep) 72%);
  color: #f5f9f0;
}
.rb-overview :focus-visible { outline-color: var(--td-lime); }
.rb-overview-heading, .rb-demo-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.rb-kicker, .rb-demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 .77rem/1.4 var(--td-mono);
}
.rb-kicker { color: #d7ed9d; }
.rb-kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px #d7ed9d88;
}
.rb-overview h1, .rb-demo h2 {
  margin: 9px 0 5px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.055em;
}
.rb-overview-heading p, .rb-status-note { color: #c4d1c4; }
.rb-overview-heading .td-button, .rb-text-link { flex: none; }
.rb-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 27px;
  gap: 10px;
}
.rb-metric {
  min-width: 0;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid #546b58;
  border-radius: 6px;
  background: #1b2c22;
}
.rb-metric[data-status="active"] { border-color: #a7c874; }
.rb-metric dt { color: #f1f5e9; font-weight: 700; }
.rb-metric dd, .rb-demo-summary dd {
  margin: 5px 0 0;
  font: 750 clamp(1.55rem, 4vw, 2.8rem)/1.15 var(--td-mono);
}
.rb-metric[data-status="active"] .rb-count { color: var(--td-lime); }
.rb-metric .rb-help { display: block; margin-top: 8px; color: #c4d1c4; font: .78rem/1.4 system-ui, sans-serif; }
.rb-status-note { margin-top: 13px; font-size: .81rem; }
.rb-demo { padding-block: clamp(40px, 6vw, 74px); }
.rb-demo-tag { color: #2f522e; }
.rb-demo-heading p, .rb-detail [data-run-note] { color: var(--td-muted); }
.rb-text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.rb-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  gap: 14px;
  align-items: start;
  margin-top: 21px;
}
.rb-report, .rb-detail {
  min-width: 0;
  padding: clamp(14px, 2.5vw, 26px);
  border: 1px solid var(--td-line);
  border-radius: 6px;
  background: #fdfdf7;
}
.rb-demo-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  border-bottom: 1px solid var(--td-line);
  padding-bottom: 17px;
  margin-bottom: 17px;
}
.rb-demo-summary dt { color: var(--td-muted); font-size: .82rem; }
.rb-demo-summary dd { font-size: 1.8rem; }
.rb-report h3, .rb-detail h3 { font-size: 1.15rem; }
.rb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  padding: 0;
  margin: 6px 0 14px;
  list-style: none;
  font-size: .76rem;
}
.rb-legend span { font-weight: 800; }
.rb-day { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--td-line); }
.rb-day-label { display: grid; justify-items: start; gap: 2px; font-size: .9rem; }
.rb-day-label span { color: var(--td-muted); font: .75rem/1.5 var(--td-mono); }
.rb-day-status { padding: 2px 6px; border-radius: 4px; background: #e6efdd; color: #2d5331; font-size: .73rem; font-weight: 700; }
.rb-day-upcoming { margin: 0; padding-top: 8px; border-top: 1px solid var(--td-line); color: var(--td-muted); font-size: .82rem; }
.rb-cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.rb-cell {
  display: grid;
  place-content: center;
  gap: 3px;
  min-height: 47px;
  padding: 4px 2px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: #eef4e6;
  color: #2d5331;
  cursor: pointer;
  font: 750 .9rem/1 var(--td-mono);
}
.rb-cell small { font-size: .69rem; font-weight: 600; }
.rb-cell[data-status="updated"] { color: #1a526e; background: #e7f3f9; }
.rb-cell[data-status="missing"] { color: #545f57; background: #f6f6f0; border-style: dashed; }
.rb-cell[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
.rb-selection { margin: 6px 0 9px; font-weight: 700; }
.rb-detail dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rb-detail dt { color: var(--td-muted); font-size: .79rem; }
.rb-detail dd { margin: 0; font-size: .92rem; font-weight: 700; }
.rb-detail [data-run-note] { margin-top: 9px; font-size: .87rem; }
.rb-detail figure { margin-top: 15px; }
.rb-detail figure a { display: block; width: fit-content; }
.rb-detail img { display: block; width: min(100%, 168px); height: auto; border: 1px solid var(--td-line); border-radius: 6px; }
.rb-detail figcaption { margin-top: 6px; color: var(--td-muted); font-size: .75rem; }
.rb-log { margin-top: 12px; font-size: .85rem; }
.rb-log summary { cursor: pointer; font-weight: 700; }
.rb-log pre { margin: 5px 0 0; padding: 8px; color: #dce9da; background: var(--td-deep); white-space: pre-wrap; border-radius: 4px; font-size: .75rem; }
@media (max-width: 760px) {
  .rb-overview-heading, .rb-demo-heading { flex-wrap: wrap; align-items: flex-start; }
  .rb-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-demo-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .rb-day { grid-template-columns: minmax(0, 1fr); }
  .rb-day-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .rb-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.rb-cad {
  margin-top: 17px;
  padding: clamp(13px, 2.5vw, 24px);
  border: 1px solid var(--td-line);
  border-radius: 6px;
  background: #fdfdf7;
}
.rb-cad-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.rb-cad h3 {
  margin: 4px 0;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -.04em;
}
.rb-cad-header p, .rb-cad-note { color: var(--td-muted); }
.rb-cad-status {
  padding: 5px 9px;
  border: 1px solid #aebfa3;
  border-radius: 4px;
  background: #ecf4e6;
  color: #2d5331;
  font-size: .81rem;
  font-weight: 700;
}
.rb-cad-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}
.rb-cad-metrics > div {
  padding: clamp(10px, 2.1vw, 17px);
  border: 1px solid var(--td-line);
  border-radius: 6px;
  background: #fdfdf7;
}
.rb-cad-metrics dt, .rb-cad-metrics dd:last-child {
  color: var(--td-muted);
  font-size: .81rem;
}
.rb-cad-metrics dd { margin: 2px 0 0; }
.rb-cad-metrics dd:first-of-type {
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  font-weight: 750;
}
.rb-cad-note { margin-top: 10px; }
@media (max-width: 540px) {
  .rb-cad-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-cad-metrics > div:last-child { grid-column: 1 / -1; }
}

.rb-apps, .rb-work {
  padding-block: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--td-line);
}
.rb-apps h2, .rb-work h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -.045em;
}
.rb-apps > p, .rb-work > p { color: var(--td-muted); }
.rb-app-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.rb-app-identity small { display: block; color: var(--td-muted); font-size: .79rem; }
.rb-app-icon {
  display: block;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}
.rb-app-placeholder {
  display: grid;
  place-items: center;
  background: #e8efe3;
  color: #35563a;
  border: 1px solid #c5d5c1;
  font-size: 1.3rem;
}
.rb-app-list, .rb-work-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: grid;
  gap: 7px;
}
.rb-app-list > li, .rb-work-list > li {
  padding: 10px 13px;
  border: 1px solid var(--td-line);
  border-radius: 5px;
  background: #fdfdf7;
}
.rb-app-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rb-work-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, .34fr) 5rem minmax(5.5rem, auto);
  align-items: center;
  gap: 5px 12px;
}
.rb-work-list .rb-app-icon { width: 34px; height: 34px; border-radius: 7px; }
.rb-work-time, .rb-work-count, .rb-work-badge { font-size: .82rem; }
.rb-work-time { color: var(--td-muted); }
.rb-work-count { font-weight: 700; }
.rb-work-badge {
  justify-self: end;
  padding: 2px 7px;
  border: 1px solid var(--td-line);
  border-radius: 4px;
  background: #f0f2e9;
  text-align: center;
}
[data-work-state="running"] .rb-work-badge { color: #2d5331; background: #ecf4e6; }
[data-work-state="attention"] .rb-work-badge { color: #8c3435; background: #faece8; }
.rb-activity-empty { margin-top: 11px; font-size: .86rem; }
@media (max-width: 600px) {
  .rb-work-list > li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .rb-work-list .rb-app-identity { grid-column: 1 / -1; }
  .rb-work-time { padding-left: 45px; }
}
