html, body, #react-entry-point {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, sans-serif;
  color: #333;
  background: #fff;
}

.rshell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.rshell-main {
  display: flex;
  flex: 1;
  min-height: 0;
}

.rshell-catalog {
  width: 270px;
  flex: 0 0 270px;
  border-right: 1px solid #ddd;
  background: #fcfcfc;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: width .18s ease, flex-basis .18s ease;
}

.rshell-brand {
  padding: 10px 9px 5px;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rshell-brand .ia {
  color: #8e44ad;
}

.rshell-controls {
  padding: 8px 9px;
  border-bottom: 1px solid #ddd;
}

.rshell-input,
.rshell-select,
.rshell-textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
}

.rshell-input,
.rshell-select {
  padding: 5px 6px;
}

.rshell-textarea {
  height: 80px;
  padding: 7px;
  resize: vertical;
}

.rshell-row {
  padding: 7px 8px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.rshell-row:hover,
.rshell-row.active {
  background: #f3f0fb;
}

.rshell-general-row {
  background: #f6f1fb;
  border-bottom: 2px solid #ddd;
}

.rshell-general-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rshell-button.secondary.rshell-new-app-inline {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-color: #8e44ad;
  background: #8e44ad;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
}

.rshell-button.secondary.rshell-new-app-inline:hover {
  border-color: #7c3a99;
  background: #7c3a99;
  color: #fff;
}

.rshell-app-count {
  padding: 4px 9px;
  border-bottom: 1px solid #eee;
  color: #777;
  font-size: 10.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.rshell-app-count button {
  border: 0;
  background: transparent;
  color: #6f42c1;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.rshell-row-title-line {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rshell-row-title-line .rshell-row-title {
  min-width: 0;
  flex: 1;
}

.rshell-fork-btn {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #777;
  cursor: pointer;
  font: 700 15px/1 system-ui, sans-serif;
  padding: 0;
}

.rshell-fork-btn:hover {
  background: #e9e2f1;
  color: #6f42c1;
}

.rshell-workspace-child {
  width: 100%;
  height: 28px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  color: #555;
  cursor: pointer;
  font: 10.5px system-ui, sans-serif;
  text-align: left;
  padding: 4px 9px 4px 21px;
}

.rshell-workspace-child:hover {
  background: #f0f4f1;
}

.rshell-workspace-child > span:last-child {
  color: #888;
  font-size: 9px;
}

.rshell-workspace-child .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999;
}

.rshell-workspace-child .dot.running,
.rshell-workspace-item .state.running { background: #1f9d55; }
.rshell-workspace-child .dot.creating,
.rshell-workspace-child .dot.building,
.rshell-workspace-item .state.creating,
.rshell-workspace-item .state.building { background: #cc7a00; }
.rshell-workspace-child .dot.failed,
.rshell-workspace-item .state.failed { background: #b33; }
}

.rshell-row-title {
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

.rshell-row-meta {
  margin-top: 2px;
  font-size: 10px;
  color: #777;
}

.rshell-tag {
  display: inline-block;
  color: #fff;
  border-radius: 8px;
  padding: 0 5px;
  font-size: 9px;
  margin: 3px 3px 0 0;
}

.rshell-frame {
  flex: 1;
  min-width: 0;
  border: none;
  height: 100%;
}

.rshell-home {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: auto;
  background: #fff;
}

.rshell-home-inner {
  width: min(1040px, calc(100% - 56px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.rshell-home-head {
  padding-bottom: 28px;
  border-bottom: 1px solid #d9dde4;
}

.rshell-home-kicker,
.rshell-home-section-head p {
  margin: 0 0 7px;
  color: #147a50;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.rshell-home-head h1 {
  margin: 0;
  color: #20242a;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.rshell-home-description {
  max-width: 760px;
  margin: 12px 0 0;
  color: #656d78;
  font-size: 15px;
  line-height: 1.6;
}

.rshell-home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.rshell-home-stats > span,
.rshell-home-stats > button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: #555;
  background: #f6f7f8;
  border: 1px solid #d9dde4;
  border-radius: 999px;
  font: 12px system-ui, sans-serif;
}

.rshell-home-stats > button {
  cursor: pointer;
}

.rshell-home-stats > button:hover,
.rshell-home-stats > button.selected {
  color: #fff;
  background: #8e44ad;
  border-color: #8e44ad;
}

.rshell-home-stats > button.danger:hover,
.rshell-home-stats > button.danger.selected {
  background: #b53b35;
  border-color: #b53b35;
}

.rshell-home-section {
  padding-top: 34px;
}

.rshell-home-section + .rshell-home-section {
  margin-top: 38px;
  border-top: 1px solid #d9dde4;
}

.rshell-home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.rshell-home-section-head h2 {
  margin: 0;
  color: #20242a;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.rshell-home-section-head > span {
  color: #777;
  font-size: 11px;
}

.rshell-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rshell-featured-app {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: #20242a;
  background: #fff;
  border: 1px solid #d9dde4;
  border-top: 4px solid var(--app-color, #777);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rshell-featured-app:hover,
.rshell-featured-app:focus-visible {
  border-color: var(--app-color, #777);
  box-shadow: 0 7px 20px rgba(32, 36, 42, .12);
  outline: none;
}

.rshell-featured-app > img,
.rshell-featured-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid #e3e5e8;
}

.rshell-featured-app > img {
  object-fit: cover;
  object-position: top center;
  background: #f4f5f7;
}

.rshell-featured-fallback {
  display: flex;
  align-items: end;
  padding: 18px;
  box-sizing: border-box;
  color: #555;
  background: #f1f3f5;
  font-size: 17px;
  font-weight: 750;
}

.rshell-featured-body {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  padding: 15px 16px 13px;
}

.rshell-featured-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.rshell-featured-title h3 {
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.rshell-featured-title > span {
  flex: 0 0 auto;
  color: #147a50;
  font-size: 11px;
  font-weight: 750;
}

.rshell-featured-body > p {
  margin: 8px 0 12px;
  color: #656d78;
  font-size: 12.5px;
  line-height: 1.5;
}

.rshell-featured-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: #777;
  font-size: 10.5px;
}

.rshell-featured-meta span:last-child {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rshell-home-section-head.activity {
  align-items: center;
}

.rshell-activity-filters {
  display: inline-flex;
  border: 1px solid #cfd3d8;
  border-radius: 5px;
  overflow: hidden;
}

.rshell-activity-filters button {
  min-height: 30px;
  padding: 5px 10px;
  color: #555;
  background: #fff;
  border: 0;
  border-right: 1px solid #cfd3d8;
  cursor: pointer;
  font: 11px system-ui, sans-serif;
}

.rshell-activity-filters button:last-child {
  border-right: 0;
}

.rshell-activity-filters button:hover,
.rshell-activity-filters button.selected {
  color: #fff;
  background: #555;
}

.rshell-activity-list {
  border-top: 1px solid #cfd3d8;
}

.rshell-activity-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: stretch;
  min-height: 82px;
  padding: 13px 8px 13px 0;
  color: #333;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #d9dde4;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rshell-activity-list > button:hover,
.rshell-activity-list > button:focus-visible {
  background: #f7f8f9;
  outline: none;
}

.rshell-activity-color {
  width: 4px;
  min-height: 100%;
}

.rshell-activity-copy,
.rshell-activity-detail {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rshell-activity-copy {
  gap: 4px;
}

.rshell-activity-title {
  color: #333;
  font-size: 12px;
  font-weight: 750;
}

.rshell-activity-comment {
  display: -webkit-box;
  overflow: hidden;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rshell-activity-latest {
  overflow: hidden;
  color: #7a8490;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rshell-activity-detail {
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  color: #888;
  font-size: 10px;
  text-align: right;
}

.rshell-activity-status {
  padding: 2px 6px;
  color: #fff;
  background: #777;
  border-radius: 999px;
  font-size: 9px;
  text-transform: lowercase;
}

.rshell-activity-status.new { background: #cc7a00; }
.rshell-activity-status.working { background: #8e44ad; }
.rshell-activity-status.done { background: #1f9d55; }
.rshell-activity-status.awaiting_approval { background: #2980b9; }
.rshell-activity-status.held { background: #6f42c1; }
.rshell-activity-status.rejected { background: #555; }

.rshell-activity-more {
  display: block;
  margin: 16px auto 0;
  padding: 6px 10px;
  color: #6f2f8d;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 700 11px system-ui, sans-serif;
}

.rshell-home-empty {
  margin: 0;
  padding: 18px 0;
  color: #777;
  font-size: 12px;
}

.rshell-feedback {
  width: 320px;
  flex: 0 0 320px;
  border-left: 1px solid #ddd;
  background: #fcfcfc;
  padding: 12px;
  box-sizing: border-box;
  overflow: auto;
  transition: width .18s ease, flex-basis .18s ease, padding .18s ease;
}

.rshell-catalog.collapsed,
.rshell-feedback.collapsed {
  width: 0;
  flex-basis: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.rshell-collapse-btn {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #666;
  cursor: pointer;
  font: 700 15px/1 system-ui, sans-serif;
  padding: 0;
}

.rshell-collapse-btn:hover,
.rshell-edge-tab:hover {
  background: #f3f0fb;
  color: #333;
}

.rshell-edge-tab {
  flex: 0 0 28px;
  width: 28px;
  border: 0;
  background: #fcfcfc;
  color: #555;
  cursor: pointer;
  font: 700 11px system-ui, sans-serif;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0;
}

.rshell-edge-tab.left {
  border-right: 1px solid #ddd;
}

.rshell-edge-tab.right {
  border-left: 1px solid #ddd;
}

.rshell-feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rshell-auth {
  position: relative;
  min-height: 18px;
  margin-bottom: 3px;
  text-align: right;
  font-size: 11px;
}

.rshell-auth-trigger {
  position: relative;
  z-index: 92;
  border: none;
  background: transparent;
  border-radius: 5px;
  color: #777;
  cursor: pointer;
  font: inherit;
  padding: 1px 5px;
  user-select: none;
}

.rshell-auth-trigger:hover {
  background: #f3f0fb;
}

.rshell-auth-dot {
  color: #999;
  margin-right: 4px;
}

.rshell-auth-dot.on {
  color: #1f9d55;
}

.rshell-auth-caret {
  color: #999;
  font-size: 9px;
  margin-left: 3px;
}

.rshell-auth-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 91;
  min-width: 132px;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .13);
}

.rshell-auth-menu .auth-menu-item {
  display: block;
  padding: 7px 14px;
  color: #333;
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
}

.rshell-auth-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: none;
  background: transparent;
  cursor: default;
}

.rshell-feedback h4 {
  margin: 0 0 2px;
  font-size: 14px;
}

.rshell-button {
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rshell-button.primary {
  width: 100%;
  background: #1f9d55;
  color: #fff;
}

.rshell-button.secondary {
  background: #fff;
  border: 1px solid #ddd;
  color: #777;
}

.rshell-button.secondary.active {
  background: #f3f0fb;
  border-color: #8e44ad;
  color: #333;
}

.rshell-button:disabled {
  opacity: .45;
  cursor: default;
}

.rshell-new-app-modal {
  width: min(560px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.rshell-new-app-modal h3 {
  margin: 0;
  font-size: 17px;
}

.rshell-new-app-body {
  display: grid;
  gap: 9px;
  padding: 12px;
  overflow: auto;
}

.rshell-field {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #555;
}

.rshell-checkbox-field {
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 26px;
  color: #555;
  font-size: 11px;
}

.rshell-checkbox-field input {
  margin: 0;
}

.rshell-checkbox-field span {
  font-weight: 700;
  color: #444;
}

.rshell-checkbox-field small {
  min-width: 0;
  color: #777;
  font-size: 11px;
}

.rshell-new-app-prompt {
  min-height: 112px;
}

.rshell-new-app-notes {
  min-height: 72px;
}

.rshell-new-app-modal > .rshell-modal-actions {
  flex: 0 0 auto;
  padding: 0 12px 10px;
}

.rshell-new-app-modal .rshell-button.primary {
  width: auto;
}

.rshell-new-app-msg {
  min-height: 16px;
  padding: 0 12px 10px;
  color: #777;
  font-size: 11.5px;
}

.rshell-workspace-modal,
.rshell-workspace-panel {
  width: min(560px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.rshell-replay-modal {
  width: min(1120px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.rshell-replay-modal h3 { margin: 0; font-size: 17px; }
.rshell-replay-id { color: #777; font: 10px ui-monospace, monospace; }

.rshell-replay-body {
  min-height: 180px;
  overflow: auto;
  padding: 12px;
}

.rshell-replay-audit,
.rshell-replay-common {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
  color: #666;
  font-size: 11px;
}

.rshell-replay-audit b { color: #6f42c1; font-size: 13px; }
.rshell-replay-audit div { flex-basis: 100%; color: #777; }

.rshell-replay-launch {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.rshell-replay-launch > .rshell-button { width: max-content; min-width: 112px; }

.rshell-replay-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rshell-replay-profiles label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #444;
  font-size: 11px;
}

.rshell-replay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 10px;
}

.rshell-replay-variant {
  min-width: 0;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fafafa;
  overflow: hidden;
}

.rshell-replay-variant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 0;
  font-size: 13px;
}

.rshell-replay-variant .state {
  border-radius: 3px;
  background: #777;
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
}

.rshell-replay-variant .state.done,
.rshell-replay-variant .state.preserved { background: #1f9d55; }
.rshell-replay-variant .state.working,
.rshell-replay-variant .state.running { background: #8e44ad; }
.rshell-replay-variant .state.failed,
.rshell-replay-variant .state.rejected { background: #b33; }

.rshell-replay-meta {
  padding: 2px 10px 8px;
  color: #777;
  font: 10px/1.4 ui-monospace, monospace;
  overflow-wrap: anywhere;
}

.rshell-replay-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-block: 1px solid #ddd;
  background: #fff;
}

.rshell-replay-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  padding: 8px 10px 0;
  color: #666;
  font-size: 10px;
}

.rshell-replay-checks .ok,
.rshell-replay-common .ok { color: #177755; font-weight: 700; }
.rshell-replay-checks .bad,
.rshell-replay-common .bad { color: #a33; font-weight: 700; }
.rshell-replay-variant .rshell-workspace-actions { padding: 0 10px 8px; }
.rshell-replay-kept { color: #177755; font-size: 10.5px; }

.rshell-replay-diff {
  border-top: 1px solid #ddd;
  background: #fff;
}

.rshell-replay-diff summary {
  cursor: pointer;
  padding: 7px 10px;
  color: #555;
  font-size: 10.5px;
  font-weight: 700;
}

.rshell-replay-diff pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 9px;
  background: #111820;
  color: #dce7ef;
  font: 10px/1.45 ui-monospace, monospace;
  white-space: pre-wrap;
}

.rshell-replay-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.rshell-replay-footer .danger { color: #a33; border-color: #d9b3b3; }

.rshell-replay-entry {
  margin-left: 4px;
  border: 0;
  background: transparent;
  color: #6f42c1;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.rshell-workspace-modal h3,
.rshell-workspace-panel h3 {
  margin: 0;
  font-size: 17px;
}

.rshell-workspace-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.rshell-workspace-modal > .rshell-modal-actions {
  padding: 0 12px 10px;
}

.rshell-workspace-modal .rshell-button.primary {
  width: auto;
  background: #6f42c1;
}

.rshell-segments {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rshell-segments button {
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
  cursor: pointer;
  font: 11px system-ui, sans-serif;
  padding: 6px;
}

.rshell-segments button + button { border-left: 0; }
.rshell-segments button.active { background: #f1eaf6; color: #6f42c1; font-weight: 700; }

.rshell-workspace-list {
  min-height: 80px;
  overflow: auto;
}

.rshell-workspace-item {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
}

.rshell-workspace-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.rshell-workspace-item .state {
  border-radius: 3px;
  background: #777;
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
}

.rshell-workspace-meta {
  margin-top: 2px;
  color: #777;
  font: 10px/1.4 ui-monospace, monospace;
  overflow-wrap: anywhere;
}

.rshell-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.rshell-workspace-actions button,
.rshell-workspace-actions a {
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #444;
  cursor: pointer;
  font: 10.5px system-ui, sans-serif;
  padding: 4px 7px;
  text-decoration: none;
}

.rshell-workspace-actions .danger { color: #a33; border-color: #d9b3b3; }

.rshell-workspace-diff {
  min-height: 120px;
  max-height: 34vh;
  margin: 0;
  overflow: auto;
  border-top: 1px solid #ddd;
  background: #111820;
  color: #dce7ef;
  font: 10.5px/1.45 ui-monospace, monospace;
  padding: 10px;
  white-space: pre-wrap;
}

.rshell-empty { padding: 16px 12px; color: #777; font-size: 12px; }

.rshell-workspace-banner {
  min-height: 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid #c9d8cd;
  background: #eef6f0;
  color: #2f5138;
  font-size: 11px;
}

.rshell-workspace-banner span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.rshell-workspace-banner a { color: #6f42c1; font-weight: 700; text-decoration: none; }

.rshell-msg {
  min-height: 16px;
  font-size: 11px;
  color: #1f9d55;
  margin: 5px 0 8px;
}

.rshell-proposal-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin: 4px 0 8px;
  padding: 6px 7px;
  border-left: 3px solid #8e44ad;
  background: #f7f1fa;
  color: #5f2d73;
  font-size: 10px;
}

.rshell-proposal-banner code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rshell-thread {
  margin-bottom: 6px;
}

.rshell-entry {
  padding: 5px 8px;
  margin-bottom: 6px;
  border-radius: 3px;
}

.rshell-entry.system {
  border-left: 3px solid #2980b9;
  background: #eef5fb;
}

.rshell-entry.user {
  background: #fafafa;
}

.rshell-entry-head {
  font-size: 10px;
  color: #777;
}

.rshell-entry-body {
  margin-top: 2px;
  font-size: 12px;
  white-space: pre-wrap;
}

.rshell-status {
  color: #fff;
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 9.5px;
  text-decoration: none;
}

.rshell-reply {
  border: none;
  background: transparent;
  color: #2980b9;
  font-weight: 700;
  font-size: 10px;
  padding: 0 0 0 6px;
  cursor: pointer;
}

.rshell-reply-context {
  border-left: 3px solid #2980b9;
  background: #eef5fb;
  padding: 5px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.rshell-preview {
  max-width: 100%;
  margin: 4px 0 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.rshell-annotator {
  margin: 6px 0 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.rshell-annotation-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-bottom: 1px solid #e5e5e5;
  background: #f7f7f7;
}

.rshell-tool {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff;
  color: #444;
  cursor: pointer;
  font: 700 13px/1 system-ui, sans-serif;
  padding: 0;
}

.rshell-tool.active {
  border-color: #8e44ad;
  background: #f3f0fb;
  color: #8e44ad;
}

.rshell-tool:disabled {
  opacity: .35;
  cursor: default;
}

.rshell-annotation-stage {
  max-height: 280px;
  overflow: auto;
  background: #f0f0f0;
}

.rshell-annotation-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
}

.rshell-annotation-notes {
  display: grid;
  gap: 4px;
  padding: 5px;
  border-top: 1px solid #e5e5e5;
}

.rshell-annotation-properties {
  display: grid;
  gap: 6px;
  padding: 7px;
  border-top: 1px solid #e5e5e5;
  background: #fcfcfc;
}

.rshell-annotation-property-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rshell-annotation-order {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rshell-annotation-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 26px;
  font-size: 11px;
  color: #555;
}

.rshell-annotation-note span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f7f7f7;
  font-weight: 700;
}

.rshell-annotation-note input {
  min-width: 0;
  height: 24px;
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 3px 6px;
  font: 12px system-ui, sans-serif;
}

.rshell-shot-thumb {
  display: grid;
  width: 100%;
  margin: 6px 0 8px;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  background: #fff;
  color: #444;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.rshell-shot-thumb:hover {
  border-color: #b99bd0;
  box-shadow: 0 0 0 2px rgba(142, 68, 173, .10);
}

.rshell-shot-thumb-frame {
  position: relative;
  display: block;
  max-height: 150px;
  overflow: hidden;
  background: #f0f0f0;
}

.rshell-shot-thumb-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.rshell-shot-thumb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border-top: 1px solid #e5e5e5;
  font: 700 11px system-ui, sans-serif;
}

.rshell-shot-thumb-action {
  color: #8e44ad;
  white-space: nowrap;
}

.rshell-annotation-summary {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 6px 7px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  color: #444;
  font-size: 11px;
}

.rshell-annotation-summary-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  color: #555;
}

.rshell-annotation-preview-btn {
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  color: #555;
  cursor: pointer;
  font: 700 10px system-ui, sans-serif;
  padding: 2px 6px;
}

.rshell-annotation-preview-btn:hover {
  background: #f3f0fb;
  color: #333;
}

.rshell-annotation-summary-count {
  color: #666;
}

.rshell-design-attach,
.rshell-design-drafts,
.rshell-design-summary {
  display: grid;
  gap: 6px;
  margin: 6px 0;
}

.rshell-design-attach {
  padding: 8px;
  border: 1px solid #d8c8e1;
  border-radius: 5px;
  background: #fbf8fc;
}

.rshell-design-attach-head,
.rshell-design-actions,
.rshell-design-draft,
.rshell-design-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rshell-design-attach-head {
  justify-content: space-between;
  font-size: 11px;
}

.rshell-design-state,
.rshell-design-count,
.rshell-design-provider,
.rshell-design-node {
  font-size: 9px;
  font-weight: 700;
  color: #666;
}

.rshell-design-state.available {
  color: #177755;
}

.rshell-design-state.auth-required,
.rshell-design-state.unavailable {
  color: #a65b00;
}

.rshell-design-note {
  color: #765300;
  font-size: 10px;
  line-height: 1.35;
}

.rshell-design-actions {
  justify-content: flex-end;
}

.rshell-design-draft,
.rshell-design-link {
  min-width: 0;
  justify-content: space-between;
  padding: 5px 6px;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  background: #fff;
  color: #5b2a74;
  font-size: 10px;
  text-decoration: none;
}

.rshell-design-draft a,
.rshell-design-link span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rshell-design-draft a {
  flex: 1;
  color: #5b2a74;
  text-decoration: none;
}

.rshell-design-draft button {
  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 14px;
}

.rshell-design-summary {
  padding: 6px 7px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
}

.rshell-design-link:hover {
  border-color: #c9a8d8;
  background: #faf6fc;
}

.rshell-annotation-summary-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.rshell-annotation-summary-row[role="button"] {
  cursor: pointer;
}

.rshell-annotation-summary-row[role="button"]:hover,
.rshell-annotation-summary-row.selected {
  border-color: #d6bee2;
  background: #faf6fc;
}

.rshell-annotation-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f7f7f7;
  font-weight: 700;
}

.rshell-annotation-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rshell-voice-summary {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 6px 7px;
  border: 1px solid #e0e8ef;
  border-radius: 4px;
  background: #fbfdff;
  color: #3c4a55;
  font-size: 11px;
}

.rshell-voice-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

.rshell-voice-time {
  color: #597083;
  font-weight: 700;
  white-space: nowrap;
}

.rshell-voice-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rshell-voice-text {
  display: block;
  margin-top: 1px;
  color: #243746;
}

.rshell-voice-note {
  display: block;
  margin-top: 1px;
  color: #526371;
}

.rshell-voice-text.muted {
  color: #777;
  font-style: italic;
}

.rshell-voice-more {
  color: #777;
  font-size: 10px;
}

.rshell-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(20, 20, 24, .42);
}

.rshell-annotation-modal {
  width: min(960px, 100%);
  height: min(760px, 92vh);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.rshell-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
  background: #fcfcfc;
}

.rshell-modal-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
}

.rshell-modal-close {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #555;
  cursor: pointer;
  font: 700 16px/1 system-ui, sans-serif;
  padding: 0;
}

.rshell-modal-close:hover {
  background: #f3f0fb;
}

.rshell-annotation-modal-body {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  overflow: hidden;
}

.rshell-annotation-modal-body.drawer-collapsed {
  grid-template-columns: minmax(0, 1fr) 44px;
}

.rshell-annotation-replay-shot {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f1f1f1;
  border-right: 1px solid #e5e5e5;
}

.rshell-annotation-replay-shot .rshell-annotator {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.rshell-annotation-replay-shot .rshell-annotation-stage {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: none;
  overflow: hidden;
}

.rshell-annotation-replay-shot .rshell-annotation-canvas {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

.rshell-annotation-replay-shot img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.rshell-annotation-replay-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

.rshell-annotation-replay-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rshell-annotation-replay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rshell-annotation-replay-box {
  fill: transparent;
  stroke: #8e44ad;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.rshell-annotation-replay-box.active,
.rshell-annotation-replay-arrow.active {
  stroke: #1f9d55;
  stroke-width: 6;
}

.rshell-annotation-replay-box.inactive,
.rshell-annotation-replay-arrow.inactive,
.rshell-annotation-replay-redact.inactive {
  opacity: .22;
}

.rshell-annotation-replay-arrow {
  stroke: #2980b9;
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.rshell-annotation-replay-redact {
  fill: #111;
  opacity: .78;
}

.rshell-annotation-replay-redact.active {
  fill: #1f9d55;
  opacity: .9;
}

.rshell-annotation-replay-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #cc7a00;
  color: #fff;
  font: 700 12px/1 system-ui, sans-serif;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .28);
}

.rshell-annotation-replay-pin.active {
  background: #1f9d55;
  transform: translate(-50%, -50%) scale(1.18);
}

.rshell-annotation-replay-pin.inactive {
  opacity: .35;
}

.rshell-annotation-replay-list {
  min-height: 0;
  max-height: 72vh;
  overflow: auto;
  padding: 10px;
}

.rshell-annotation-drawer {
  background: #fbfbfb;
}

.rshell-annotation-drawer.collapsed {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.rshell-annotation-drawer.open {
  display: grid;
  align-content: start;
  gap: 8px;
}

.rshell-annotation-drawer-tab {
  display: inline-grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  justify-items: center;
  gap: 2px;
  width: 30px;
  min-height: 34px;
  margin: 8px auto;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  background: #fff;
  color: #555;
  cursor: pointer;
  font: 700 13px/1 system-ui, sans-serif;
  padding: 4px;
}

.rshell-annotation-drawer.open .rshell-annotation-drawer-tab {
  justify-self: end;
  width: auto;
  min-width: 42px;
  margin: 0;
}

.rshell-annotation-drawer-tab:hover {
  border-color: #caa9d8;
  background: #f8f2fb;
}

.rshell-annotation-drawer-icon {
  font-size: 16px;
}

.rshell-annotation-drawer-count {
  min-width: 16px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #555;
  font-size: 11px;
  line-height: 16px;
}

.rshell-annotation-drawer-panel {
  min-width: 0;
}

.rshell-annotation-empty {
  padding: 8px;
  border: 1px dashed #d8d8d8;
  border-radius: 4px;
  color: #777;
  font-size: 12px;
}

.rshell-narrative-replay {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 7px;
  border: 1px solid #dbe8df;
  border-radius: 4px;
  background: #fbfffc;
  color: #2f4436;
  font-size: 11px;
}

.rshell-narrative-audio {
  width: 100%;
  margin-bottom: 8px;
}

.rshell-narrative-replay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rshell-narrative-replay-actions {
  display: inline-flex;
  gap: 5px;
}

.rshell-narrative-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 4px;
}

.rshell-narrative-step:hover,
.rshell-narrative-step.active {
  border-color: #b9dbc3;
  background: #eef9f1;
}

.rshell-shot {
  max-width: 100%;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.rshell-mobilebar {
  display: none;
}

@media (max-width: 860px) {
  .rshell-edge-tab {
    display: none;
  }

  .rshell-collapse-btn {
    display: none;
  }

  .rshell-mobilebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
  }

  .rshell-main {
    position: relative;
  }

  .rshell-home-inner {
    width: calc(100% - 32px);
    padding: 26px 0 48px;
  }

  .rshell-home-head h1 {
    font-size: 29px;
  }

  .rshell-featured {
    grid-template-columns: 1fr;
  }

  .rshell-home-section-head,
  .rshell-home-section-head.activity {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .rshell-featured-body {
    min-height: 0;
  }

  .rshell-activity-list > button {
    grid-template-columns: 4px minmax(0, 1fr);
  }

  .rshell-activity-detail {
    grid-column: 2;
    align-items: center;
    flex-flow: row wrap;
    justify-content: flex-start;
    text-align: left;
  }

  .rshell-catalog,
  .rshell-feedback {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 70;
    width: 86%;
    max-width: 360px;
    height: 100vh;
    box-shadow: 0 0 24px rgba(0, 0, 0, .30);
    transition: transform .25s ease;
  }

  .rshell-catalog.collapsed,
  .rshell-feedback.collapsed {
    width: 86%;
    max-width: 360px;
    height: 100vh;
    flex-basis: auto;
    border: none;
    overflow: auto;
  }

  .rshell-catalog.collapsed {
    padding: 0;
    border-right: 1px solid #ddd;
  }

  .rshell-feedback.collapsed {
    padding: 12px;
    border-left: 1px solid #ddd;
  }

  .rshell-catalog {
    left: 0;
    transform: translateX(-106%);
  }

  .rshell-catalog.open {
    transform: translateX(0);
  }

  .rshell-feedback {
    right: 0;
    transform: translateX(106%);
  }

  .rshell-feedback.open {
    transform: translateX(0);
  }

  .rshell-modal-backdrop {
    padding: 12px;
  }

  .rshell-annotation-modal-body {
    grid-template-columns: 1fr;
  }

  .rshell-annotation-modal-body.drawer-collapsed {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 42px;
  }

  .rshell-annotation-replay-shot {
    max-height: 52vh;
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .rshell-annotation-drawer {
    border-left: 0;
    border-top: 1px solid #e5e5e5;
  }

  .rshell-annotation-drawer.collapsed {
    justify-content: flex-start;
  }

  .rshell-annotation-drawer.collapsed .rshell-annotation-drawer-tab {
    margin: 4px 8px;
  }

  .rshell-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 65;
  }

  .rshell-scrim.open {
    display: block;
  }
}
