.rh-demo {
  --rh-navy: #193d5c;
  max-width: 440px;
  margin: 6px auto 0;
  border: 1px solid #e0e4e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #17202f;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  overflow: hidden;
}
.rh-demo [hidden] { display: none !important; }
.rh-demo button, .rh-demo input { font: inherit; }
.rh-demo button, .rh-demo summary { cursor: pointer; }
.rh-demo button:focus-visible, .rh-demo input:focus-visible, .rh-demo summary:focus-visible { outline: 2px solid var(--rh-navy); outline-offset: 3px; }
.rh-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #e5e7eb; }
.rh-org { display: block; color: #8a95a5; font-size: 11px; font-weight: 500; }
.rh-header h3 { margin: 1px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.rh-example { padding: 4px 8px; border-radius: 5px; background: #f1f5f8; color: var(--rh-navy); font-size: 10px; font-weight: 600; }
.rh-body { min-height: 240px; padding: 18px; background: #f8f9fb; }
.rh-section-title { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #dfe3e8; color: var(--rh-navy); font-size: 14px; font-weight: 600; position: relative; }
.rh-section-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 78px; height: 2px; background: var(--rh-navy); }
.rh-filters { display: flex; gap: 6px; margin-bottom: 18px; }
.rh-filters button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 8px; border: 1px solid #d1d6de; border-radius: 8px; background: #fff; color: #4b5565; font-size: 11px; font-weight: 500; }
.rh-filters button[aria-pressed="true"] { background: var(--rh-navy); border-color: var(--rh-navy); color: #fff; }
.rh-filters button span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 4px; background: #f1f3f5; color: #4b5565; font-size: 10px; }
.rh-filters button[aria-pressed="true"] span { color: #fff; background: #ffffff20; }
.rh-queue { display: grid; gap: 14px; }
.rh-request { padding: 17px; border: 1px solid #dfe3e8; border-radius: 12px; background: #fff; box-shadow: 0 2px 4px #17202f12; }
.rh-request-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rh-request h4 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.rh-status { padding: 2px 8px; border-radius: 20px; background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 500; }
.rh-status.is-approved { background: #dcfce7; color: #00863c; }
.rh-status.is-denied { background: #fee2e2; color: #b42318; }
.rh-request-date { margin: 6px 0 7px; color: #4b586b; font-size: 13px; }
.rh-dot { color: #c4ccd6; margin: 0 2px; }
.rh-source { margin: 0 0 12px; }
.rh-source summary { display: flex; align-items: center; gap: 6px; min-height: 32px; color: var(--rh-navy); list-style: none; font-size: 11px; }
.rh-source summary::-webkit-details-marker { display: none; }
.rh-source summary svg { flex: none; }
.rh-source summary span:first-of-type { text-decoration: underline; text-underline-offset: 3px; }
.rh-source-arrow { font-size: 19px; line-height: 1; transition: transform 0.15s; }
.rh-source[open] .rh-source-arrow { transform: rotate(90deg); }
.rh-email { margin-top: 7px; padding: 12px; border: 1px solid #e1e7ed; border-radius: 7px; background: #f8fafc; }
.rh-email p { margin: 0; color: #344154; font-size: 12px; line-height: 1.65; }
.rh-email .rh-email-meta { margin-bottom: 10px; color: #667385; font-size: 10px; }
.rh-email-meta strong { font-weight: 500; }
.rh-actions { display: flex; align-items: center; gap: 9px; padding-top: 13px; border-top: 1px solid #eef0f3; }
.rh-primary, .rh-secondary { min-height: 42px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; font-size: 13px !important; font-weight: 500 !important; }
.rh-primary { color: #fff; background: var(--rh-navy); }
.rh-primary:hover { background: #102f49; }
.rh-secondary { color: #3c485c; background: #fff; border-color: #cfd5dd; }
.rh-secondary:hover { background: #f8fafc; border-color: #98a6b7; }
.rh-deny { color: #b42318; border-color: #e6b7b4; }
.rh-deny:hover { background: #fff5f4; border-color: #b42318; }
.rh-approve, .rh-save { flex: 1; }
.rh-edit { padding-top: 12px; border-top: 1px solid #eef0f3; }
.rh-edit label { display: block; margin-bottom: 6px; font-size: 12px; color: #4b586b; }
.rh-edit input { display: block; width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #9ca7b7; border-radius: 6px; background: #fff; color: #17202f; font-size: 16px; }
.rh-edit p { margin: 6px 0 12px; color: #667385; font-size: 10px; }
.rh-edit .rh-actions { padding-top: 0; border-top: 0; }
.rh-empty { padding: 26px 14px; border: 1px solid #dfe3e8; border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 2px 4px #17202f0a; }
.rh-check { display: block; margin: 0 auto 12px; color: #00ba59; }
.rh-empty h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.rh-empty p { margin: 0; color: #6b7280; font-size: 12px; }
.rh-text-button { min-height: 40px; margin-top: 8px; padding: 5px 0; border: 0; background: none; color: var(--rh-navy); font-size: 12px !important; text-decoration: underline; text-underline-offset: 3px; }
.rh-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 18px; border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 10px; }
.rh-footer button { min-height: 30px; padding: 4px 0; border: 0; background: none; color: #4b586b; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.rh-figure .rh-hint { margin: 14px auto 0; max-width: 34em; color: var(--accent-2); font-family: var(--sans); font-size: 13px; text-align: center; }
@media (max-width: 360px) {
  .rh-body, .rh-request { padding: 14px; }
  .rh-filters { gap: 4px; }
  .rh-filters button { gap: 4px; padding: 7px 5px; font-size: 10.5px; }
  .rh-filters button span { min-width: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-source-arrow { transition: none; }
}
