/* Welcome-screen info hovers */
.rb-intro-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 8px; }
.rb-intro-mode-card { border: 1px solid #d4d4d4; border-radius: 8px; padding: 12px; background: #fafafa; }
.rb-intro-mode-card h4 { margin: 0 0 4px 0; font-size: 14px; }
.rb-intro-mode-card p { margin: 0; font-size: 12px; color: #555; }

/* Handoff screen */
.rb-handoff { text-align: center; padding: 40px 20px; max-width: 640px; margin: 0 auto; }
.rb-handoff h2 { font-size: 28px; margin-bottom: 8px; }
.rb-handoff__sub { color: #555; margin-bottom: 24px; }
.rb-handoff__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rb-handoff__btn { padding: 20px; border: 1px solid #3a3a3a; border-radius: 8px; background: #fff; cursor: pointer; text-align: left; }
.rb-handoff__btn:hover { background: #f4f4f4; }
.rb-handoff__btn strong { display: block; margin-bottom: 4px; font-size: 16px; }
.rb-handoff__btn span { display: block; font-size: 12px; color: #555; }
.rb-handoff__btn--primary { background: #3a3a3a; color: #fff; }
.rb-handoff__btn--primary span { color: #ccc; }

/* Mode 2 (will be used in later tasks) */
.rb-mode2__banner { padding: 12px 16px; background: #f0f0f0; border-left: 4px solid #3a3a3a; margin-bottom: 16px; font-size: 14px; }
.rb-mode2__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.rb-card-builder { border: 1px solid #d4d4d4; border-radius: 8px; padding: 16px; background: #fff; }
.rb-card-builder h3 { margin: 0 0 4px 0; }
.rb-card-builder__headline { font-size: 15px; font-weight: 600; margin: 8px 0; }
.rb-card-builder__alts { font-size: 12px; color: #666; margin-top: 6px; }
.rb-card-builder__alt-chip { display: inline-block; padding: 2px 8px; margin: 2px 4px 2px 0; border: 1px solid #ccc; border-radius: 12px; cursor: pointer; background: #fff; }
.rb-card-builder__alt-chip:hover { background: #eee; }
.rb-card-builder__alt-chip--active { background: #3a3a3a; color: #fff; border-color: #3a3a3a; }
.rb-card-builder__actions { margin-top: 12px; display: flex; gap: 8px; }
.rb-eliminated { margin-top: 24px; }
.rb-eliminated summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.rb-elim-row { display: grid; grid-template-columns: 200px 1fr; gap: 8px; padding: 4px 0; font-size: 13px; border-bottom: 1px solid #eee; }

/* Animation layer */
.rb-filter-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; min-height: 32px; }
.rb-filter-chip { padding: 4px 10px; background: #eee; border-radius: 4px; font-size: 12px; transition: opacity 400ms ease, text-decoration 400ms ease; }
.rb-filter-chip--out { opacity: 0.25; text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) {
  .rb-filter-chip { transition: none; }
}

/* Modal */
.rb-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; }
.rb-modal__panel { background: #fff; width: min(720px, 92vw); max-height: 88vh; overflow-y: auto; border-radius: 8px; padding: 24px; }
.rb-modal__close { float: right; font-size: 20px; background: none; border: none; cursor: pointer; }
.rb-modal__bucket { margin-top: 16px; }
.rb-modal__bucket h4 { margin: 0 0 4px 0; font-size: 14px; }
.rb-modal__bucket--match { color: #0a7a3b; }
.rb-modal__bucket--mismatch { color: #9a2919; }
.rb-modal__bucket--inquire { color: #1f3a8f; }
