.r5-product-mode > :not(#r5-product-app) { display: none !important; }
.r5-product-mode [hidden] { display: none !important; }
.r5-product-mode, .r5-product-mode.page-shell, .r5-product-mode.layout--pad.page-shell { box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 0; background: #f4f7f5; color: #17231f; min-height: 100vh; overflow-x: hidden; }
.r5-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 56px; display: grid; gap: 18px; }
.r5-hero, .r5-card { background: #fff; border: 1px solid #d8e2dc; border-radius: 18px; padding: 20px; box-shadow: 0 8px 26px rgba(26, 55, 43, .06); }
.r5-hero { background: linear-gradient(135deg, #123f32, #1e6650); color: #fff; }
.r5-hero p { color: #dceee7; }
.r5-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.r5-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r5-stack { display: grid; gap: 12px; }
.r5-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.r5-field { display: grid; gap: 6px; min-width: 0; }
.r5-field input, .r5-field select, .r5-field textarea { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #aebdb5; border-radius: 10px; font: inherit; font-size: 16px; }
.r5-field textarea { min-height: 92px; resize: vertical; }
.r5-button { min-height: 44px; border: 0; border-radius: 10px; padding: 10px 16px; background: #155b46; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.r5-button--secondary { background: #e7efeb; color: #173d31; }
.r5-button--danger { background: #8a2e20; color: #fff; }
.r5-button:disabled { opacity: .48; cursor: not-allowed; }
.r5-code { font-size: clamp(28px, 6vw, 52px); letter-spacing: .16em; font-weight: 800; }
.r5-status { min-height: 24px; padding: 9px 12px; background: #edf5f1; border-radius: 9px; }
.r5-status[role="alert"] { background: #fff0ed; color: #8a2e20; }
.r5-team { border: 1px solid #dce6e0; border-radius: 12px; padding: 14px; }
.r5-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #e1eee8; color: #174938; font-size: 14px; }
.r5-private { border-left: 5px solid #c58a1e; background: #fffaf0; }
.r5-qr svg { width: min(260px, 100%); height: auto; background: #fff; padding: 10px; }
.r5-table { width: 100%; border-collapse: collapse; }
.r5-table th, .r5-table td { padding: 10px; text-align: left; border-bottom: 1px solid #e3e9e5; }
.r5-sticky-actions { position: sticky; bottom: 8px; padding: 10px; background: rgba(255,255,255,.94); border-radius: 12px; }
.r5-dev { margin-top: 22px; }
.r5-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.r5-section-heading > div { display: flex; align-items: center; gap: 10px; }
.r5-section-heading h2 { margin: 0; }
.r5-step { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #155b46; color: #fff; font-weight: 800; }
.r5-summary { display: grid; gap: 7px; padding: 12px 14px; border-radius: 10px; background: #f2f6f4; }
.r5-summary span, .r5-label { color: #52645c; font-size: 14px; }
.r5-invite-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 24px; align-items: center; }
.r5-qr-panel { min-height: 260px; display: grid; place-items: center; border-radius: 14px; background: #f5f8f6; text-align: center; color: #65756e; }
.r5-empty { padding: 18px; border: 1px dashed #bdcbc4; border-radius: 12px; color: #5a6b63; background: #fafcfb; }
.r5-guidance { margin: 0; color: #52645c; }
.r5-link-disabled { pointer-events: none; opacity: .48; }
.r5-observation-panel { display: grid; gap: 14px; }
.r5-observation-status { display: grid; grid-template-columns: 1fr 1.5fr .75fr; gap: 12px; }
.r5-observation-status article { padding: 14px; border-radius: 12px; background: #eef6f2; border: 1px solid #d6e4dd; }
.r5-observation-status span { display: block; color: #52645c; font-size: 14px; }
.r5-observation-status strong { display: block; margin-top: 6px; color: #0f3f32; font-size: 20px; line-height: 1.35; }
.r5-observation-tips,
.r5-trainer-debrief { padding: 14px; border-radius: 12px; border: 1px solid #d6e4dd; background: #fbfdfc; }
.r5-observation-tips h3,
.r5-trainer-debrief h3 { margin: 0 0 8px; color: #0f3f32; }
.r5-observation-tips p { margin: 0 0 8px; color: #65756e; }
.r5-observation-tips ul,
.r5-trainer-debrief ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.r5-demo-actions { display: grid; gap: 12px; }
.r5-demo-panel { display: grid; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid #cfe1d8; background: #f4faf7; }
.r5-demo-panel strong { display: block; margin-top: 8px; color: #0f3f32; font-size: 20px; }
.r5-demo-panel p { margin: 4px 0 0; color: #52645c; }
.r5-demo-badge { background: #d5eadf; color: #0f3f32; }
.r5-dev summary { cursor: pointer; font-weight: 700; }
.r5-dev-content { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e0e7e3; }
.r5-dev-content dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; }
.r5-dev-content dt { font-weight: 700; }
.r5-dev-content dd { margin: 0; overflow-wrap: anywhere; }
.r5-shell--stage { width: min(1500px, calc(100% - 48px)); padding-top: 28px; gap: 20px; }
.r5-projection-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; }
.r5-projection-hero h1 { margin: 8px 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; }
.r5-stage-label { font-size: clamp(24px, 2.4vw, 38px); font-weight: 800; }
.r5-sync { align-self: start; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.16); color: #eefaf5; font-weight: 700; white-space: nowrap; }
.r5-projection-join { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, 250px) minmax(180px, .55fr); align-items: center; gap: 24px; }
.r5-code--stage { font-size: clamp(48px, 8vw, 92px); line-height: 1; }
.r5-qr--stage { display: grid; place-items: center; min-height: 220px; border-radius: 12px; background: #f7faf8; }
.r5-projection-join__meta { display: grid; gap: 10px; font-size: clamp(20px, 2vw, 30px); }
.r5-progress-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.r5-progress-metrics article { padding: 16px; border-radius: 12px; background: #f1f7f4; border: 1px solid #d8e5df; }
.r5-progress-metrics span { display: block; color: #52645c; }
.r5-progress-metrics strong { display: block; margin-top: 6px; font-size: clamp(28px, 3vw, 42px); }
.r5-progress-bar { height: 16px; overflow: hidden; border-radius: 999px; background: #dfe9e4; }
.r5-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #155b46, #3f8b68); transition: width .25s ease; }
.r5-progress-bar--thin { height: 8px; }
.r5-stage-team-grid, .r5-stage-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.r5-stage-team, .r5-result-team { background: #fbfdfc; }
.r5-team__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.r5-team__head h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); }
.r5-team__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.r5-team__stats span { padding: 6px 9px; border-radius: 999px; background: #edf5f1; color: #243b33; font-weight: 700; }
.r5-result-score { margin: 8px 0 12px; font-size: clamp(40px, 5vw, 76px); line-height: 1; font-weight: 900; color: #155b46; }
.r5-result-team p { margin: 10px 0 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; }
.r5-participant-workbench { gap: 14px; }
.r5-participant-identity h1 { margin: 6px 0 10px; font-size: clamp(26px, 8vw, 42px); line-height: 1.12; }
.r5-identity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.r5-identity-grid strong { min-height: 44px; display: grid; align-content: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; overflow-wrap: anywhere; }
.r5-task-card { border-left: 5px solid #155b46; }
.r5-task-list { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: 18px; line-height: 1.45; }
.r5-private-badge { background: #fff3d6; color: #7a4b06; }
.r5-private-profile { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.65); }
.r5-private-profile h3 { margin: 0 0 10px; }
.r5-private-profile dl { display: grid; gap: 8px; margin: 0; }
.r5-private-profile dt { font-weight: 800; }
.r5-private-profile dd { margin: 0; color: #4d5d55; }
.r5-private-card { background: #fffdfa; }
.r5-decision-form { display: grid; grid-template-columns: 1fr; gap: 14px; }
.r5-radio-group { margin: 0; padding: 0; border: 0; }
.r5-radio-group legend { margin-bottom: 8px; font-weight: 800; }
.r5-radio-group label { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dce6e0; border-radius: 10px; background: #fbfdfc; }
.r5-radio-group input { width: 20px; height: 20px; }
.r5-help { color: #65756e; font-size: 14px; }
.r5-submit-panel { display: grid; gap: 12px; padding-top: 4px; }
.r5-submit-panel h3 { margin: 0; }
.r5-checklist { display: grid; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #edf5f1; list-style: none; }
.r5-debrief-body { display: grid; gap: 16px; }
.r5-debrief-block { display: grid; gap: 10px; padding: 14px; border: 1px solid #dce6e0; border-radius: 12px; background: #fbfdfc; }
.r5-debrief-block h3 { margin: 0; color: #0f3f32; }
.r5-debrief-block p { margin: 0; line-height: 1.55; }
.r5-debrief-decision-grid,
.r5-debrief-bsc-grid,
.r5-debrief-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.r5-debrief-decision-grid article,
.r5-debrief-bsc-card,
.r5-debrief-overview article { min-width: 0; padding: 12px; border-radius: 10px; background: #eef6f2; border: 1px solid #d6e4dd; }
.r5-debrief-decision-grid span,
.r5-debrief-bsc-card span,
.r5-debrief-overview span { display: block; color: #52645c; font-size: 14px; }
.r5-debrief-decision-grid strong,
.r5-debrief-overview strong { display: block; margin-top: 6px; color: #123f32; line-height: 1.45; overflow-wrap: anywhere; }
.r5-debrief-bsc-card strong { display: block; margin-top: 6px; color: #155b46; font-size: 20px; }
.r5-debrief-bsc-card p { margin-top: 8px; color: #33453d; line-height: 1.5; }
.r5-causal-chain { display: grid; gap: 12px; }
.r5-causal-chain article { position: relative; padding: 12px 14px; border-radius: 10px; border: 1px solid #cdded6; background: linear-gradient(180deg, #f8fbfa, #edf5f1); }
.r5-causal-chain article:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #155b46; color: #fff; font-weight: 800; }
.r5-causal-chain span { display: block; color: #52645c; font-size: 14px; }
.r5-causal-chain strong { display: block; margin-top: 5px; color: #123f32; line-height: 1.45; }
.r5-debrief-risk-list,
.r5-debrief-questions { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.r5-reflection-field textarea { min-height: 150px; }
.r5-expert-recommendations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.r5-expert-recommendations article { padding: 12px; border-radius: 10px; border: 1px solid #d6e4dd; background: #eef6f2; }
.r5-expert-recommendations strong { display: block; color: #123f32; }
.r5-expert-recommendations p { margin: 6px 0 0; color: #52645c; line-height: 1.45; }
@media (max-width: 760px) {
  .r5-shell { width: min(100% - 20px, 720px); padding-top: 10px; }
  .r5-grid, .r5-grid--3 { grid-template-columns: 1fr; }
  .r5-invite-layout { grid-template-columns: 1fr; }
  .r5-observation-status { grid-template-columns: 1fr; }
  .r5-debrief-decision-grid,
  .r5-debrief-bsc-grid,
  .r5-debrief-overview,
  .r5-expert-recommendations { grid-template-columns: 1fr; }
  .r5-projection-hero, .r5-projection-join, .r5-progress-metrics { grid-template-columns: 1fr; }
  .r5-identity-grid { grid-template-columns: 1fr; }
  .r5-sticky-actions { position: sticky; bottom: 8px; display: grid; grid-template-columns: 1fr; }
  .r5-button { width: 100%; }
  .r5-hero, .r5-card { padding: 16px; border-radius: 14px; }
  .r5-table, .r5-table tbody, .r5-table tr, .r5-table td { display: block; width: 100%; box-sizing: border-box; }
  .r5-table thead { display: none; }
  .r5-table tr { border: 1px solid #dce6e0; border-radius: 10px; margin-bottom: 10px; padding: 8px; }
  .r5-table td { border: 0; padding: 5px; }
}
@media (forced-colors: active) { .r5-button { border: 1px solid ButtonText; } }
