.rb-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--rb-surface);
  border: 1px solid var(--rb-border);
  box-shadow: var(--rb-shadow-sm);
}

.rb-summary-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rb-text-sub);
}

.rb-summary-chip {
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--rb-bg);
  border: 1px solid var(--rb-border);
  font-size: 11.5px;
  font-weight: 650;
  color: var(--rb-text);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.rb-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 2px;
  margin-bottom: 14px;
  background: var(--rb-surface);
  border: 1px solid var(--rb-border);
  border-radius: 18px;
  box-shadow: var(--rb-shadow-sm);
}

.rb-profile-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--rb-text);
  color: var(--rb-bg);
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.rb-profile-meta {
  flex: 1 1 0%;
  min-width: 0;
  text-align: left;
}

.rb-profile-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--rb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-profile-mail {
  font-size: 12.5px;
  color: var(--rb-text-sub);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-row-mark {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 9px;
  background: var(--rb-surface-2);
  border: 1px solid var(--rb-border);
  color: var(--rb-text);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.rb-segmented {
  display: flex;
  background: var(--rb-surface-2);
  padding: 3px;
  border-radius: 12px;
  gap: 2px;
  border: 1px solid var(--rb-border);
  width: 100%;
}

.rb-seg-btn {
  flex: 1;
  height: 32px;
  border: 0;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rb-text-sub);
  background: transparent;
  cursor: pointer;
}

.rb-seg-btn.is-active {
  background: var(--rb-text);
  color: var(--rb-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.rb-hub-group {
  background: var(--rb-surface);
  border: 1px solid var(--rb-border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--rb-shadow-sm);
}

.rb-clean-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  min-height: 54px;
  border-bottom: 1px solid var(--rb-border);
}

.rb-clean-row:last-child {
  border-bottom: 0;
}

.rb-clean-row-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.rb-row-lead-icon {
  width: 22px;
  height: 22px;
  color: var(--rb-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rb-clean-row-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.32;
  color: var(--rb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-clean-row.is-stack .rb-clean-row-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.rb-clean-row-sub {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--rb-text-sub);
  margin-top: 3px;
  line-height: 1.44;
}

.rb-clean-row-right {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rb-text-sub);
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rb-ios-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: #D1D5DB;
  cursor: pointer;
  padding: 2px;
  transition: background 0.18s ease;
  flex-shrink: 0;
}

.rb-ios-switch.is-on {
  background: #0F141C;
}

[data-theme="dark"] .rb-ios-switch.is-on {
  background: #F3F5F8;
}

.rb-ios-switch-knob {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}

[data-theme="dark"] .rb-ios-switch.is-on .rb-ios-switch-knob {
  background: #0B0D11;
}

.rb-ios-switch.is-on .rb-ios-switch-knob {
  transform: translateX(20px);
}

.rb-hub-kicker {
  margin: 14px 0 8px 6px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--rb-text-sub);
}

.rb-hub-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.rb-hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid var(--rb-border);
  background: var(--rb-surface);
  color: var(--rb-text);
  cursor: pointer;
  box-shadow: var(--rb-shadow-sm);
  transition: background-color 0.14s ease;
}

.rb-hub-card:active {
  background: var(--rb-surface-muted);
}

.rb-hub-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: var(--rb-bg);
  border: 1px solid var(--rb-border);
  display: inline-grid;
  place-items: center;
}

.rb-hub-mark svg {
  width: 20px;
  height: 20px;
  display: block;
}

.rb-hub-card-body {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.rb-hub-card-name {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--rb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-hub-action-btn {
  width: auto;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rb-border);
  background: var(--rb-bg);
  color: var(--rb-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rb-hub-action-btn.is-connected {
  background: var(--rb-text);
  border-color: var(--rb-text);
  color: var(--rb-bg);
}

.rb-hub-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 0 28px;
}

.rb-hub-detail-card {
  background: var(--rb-surface);
  border: 1px solid var(--rb-border);
  border-radius: 20px;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rb-hub-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.rb-hub-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--rb-border);
  background: var(--rb-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
}

.rb-hub-detail-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.rb-hub-detail-meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.rb-hub-detail-title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-hub-detail-status {
  font-size: 12.5px;
  color: var(--rb-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-hub-detail-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--rb-text-sub);
}

.rb-hub-detail-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--rb-border);
  background: #0F141C;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
}

.rb-hub-detail-btn.is-disconnect {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: var(--rb-danger);
}

.rb-hub-detail-policy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rb-border);
  font-size: 13px;
}

.rb-hub-policy-label {
  font-weight: 600;
  color: var(--rb-text);
  white-space: nowrap;
}

.rb-hub-policy-val {
  color: var(--rb-text-muted);
  font-size: 12.5px;
  white-space: nowrap;
  text-align: right;
}

.rb-hub-detail-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.rb-hub-detail-section-title {
  margin: 0 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rb-text-muted);
}

.rb-hub-detail-tools {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid var(--rb-border);
  background: var(--rb-surface);
  overflow: hidden;
}

.rb-hub-tool-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  text-align: left;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--rb-border);
  border-radius: 0;
  background: var(--rb-surface);
  color: var(--rb-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.rb-hub-tool-pill:last-child {
  border-bottom: 0;
}

.rb-hub-tool-pill:active {
  background: var(--rb-surface-muted);
}

.rb-hub-tool-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-hub-tool-perm {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rb-text-muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

.rb-hub-tool-perm.is-auto {
  color: var(--rb-blue);
}

.rb-hub-tool-perm.is-confirm {
  color: var(--rb-text-muted);
}

.rb-hub-log {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--rb-border);
  background: var(--rb-surface);
  color: var(--rb-text);
  max-height: 260px;
  overflow: auto;
  font-family: var(--rb-mono);
  font-size: 12px;
  white-space: pre-wrap;
}

.rb-screen[hidden],
.rb-sheet[hidden],
.rb-floating-popover[hidden],
.rb-plus-sheet[hidden],
.rb-bot-action-sheet[hidden],
.rb-action-backdrop[hidden],
.rb-comp-kbd-bar[hidden],
.rb-top-search-bar[hidden],
.rb-thinking-bar[hidden],
.rb-attach-row[hidden],
.rb-toast[hidden],
.rb-hub-log[hidden],
.rb-footer-acc-dot[hidden],
:is(#_rb_a, [hidden]):is(#_rb_b, [hidden]):is(#_rb_c, [hidden])[hidden] {
  display: none;
}

.rb-settings-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 20px 16px 28px;
  margin-top: 6px;
  color: var(--rb-text-sub);
}
.rb-settings-footer-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rb-settings-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.rb-settings-footer-brand {
  font-family: var(--rb-font-display);
  font-size: 15.5px;
  font-weight: 650;
  color: var(--rb-text);
  letter-spacing: -0.01em;
}
.rb-settings-footer-copy {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--rb-text-sub);
}
