/* ============================================================
   Webapp /rodada — mobile-first
   Paleta índigo/roxo, container central, navbar fixa no rodapé.
   ============================================================ */
:root {
  --rd-bg: #f1f5f9;
  --rd-surface: #ffffff;
  --rd-text: #0f172a;
  --rd-text-soft: #475569;
  --rd-muted: #94a3b8;
  --rd-border: #e2e8f0;
  --rd-border-strong: #cbd5e1;
  --rd-primary: #6366f1;
  --rd-primary-dark: #4f46e5;
  --rd-accent: #8b5cf6;
  --rd-pink: #ec4899;
  --rd-success: #10b981;
  --rd-warn: #f59e0b;
  --rd-danger: #ef4444;
  --rd-shadow: 0 4px 20px rgba(15, 23, 42, .08);
  --rd-shadow-strong: 0 12px 32px rgba(15, 23, 42, .14);
  --rd-radius: 14px;
  --rd-radius-lg: 22px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--rd-bg); color: var(--rd-text);
             font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
             min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* Container central — limita largura no desktop e mantém mobile fluido */
.rd-header, .rd-main, .rd-bottom-nav { max-width: 480px; margin: 0 auto; }

/* -----------------------------------------------------------
   Header
   ----------------------------------------------------------- */
.rd-header { position: sticky; top: 0; z-index: 30; background: var(--rd-surface);
             display: flex; align-items: center; gap: 12px; padding: 14px 16px;
             padding-top: calc(14px + env(safe-area-inset-top));
             border-bottom: 1px solid var(--rd-border); }
.rd-header-back { display: none; width: 36px; height: 36px; border-radius: 50%;
                  background: #f1f5f9; align-items: center; justify-content: center;
                  color: var(--rd-text); flex-shrink: 0; }
.rd-header-back .material-icons-round { font-size: 18px; }
body[data-rd-show-back="1"] .rd-header-back { display: flex; }

.rd-header-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rd-header-eyebrow { font-size: 11px; font-weight: 600; color: var(--rd-muted);
                     text-transform: uppercase; letter-spacing: .06em; }
.rd-header-name { font-size: 16px; font-weight: 700; color: var(--rd-text);
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-header-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
                    background: linear-gradient(135deg, var(--rd-primary), var(--rd-accent));
                    color: #fff; display: flex; align-items: center; justify-content: center;
                    font-weight: 700; font-size: 14px; box-shadow: var(--rd-shadow); }

/* -----------------------------------------------------------
   Main
   ----------------------------------------------------------- */
.rd-main { padding: 16px 16px 120px; min-height: calc(100vh - 60px); }

/* -----------------------------------------------------------
   Bottom navbar
   ----------------------------------------------------------- */
.rd-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
                 background: var(--rd-surface); border-top: 1px solid var(--rd-border);
                 display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
                 padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
                 box-shadow: 0 -2px 14px rgba(15, 23, 42, .06); }
.rd-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center;
               gap: 2px; padding: 6px 0; color: var(--rd-muted); font-size: 10px; font-weight: 500;
               position: relative; }
.rd-nav-item .material-icons-round { font-size: 22px; transition: transform .15s; }
.rd-nav-item.is-active { color: var(--rd-primary); }
.rd-nav-item.is-active .material-icons-round { transform: scale(1.1); }
.rd-nav-item.is-active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
                                  width: 32px; height: 3px; background: var(--rd-primary); border-radius: 0 0 4px 4px; }
.rd-nav-label { font-size: 10px; }

/* -----------------------------------------------------------
   Page hero
   ----------------------------------------------------------- */
.rd-page-hero { padding: 4px 0 16px; }
.rd-page-eyebrow { font-size: 11px; font-weight: 700; color: var(--rd-primary);
                   text-transform: uppercase; letter-spacing: .08em; }
.rd-page-title { font-size: 26px; font-weight: 800; line-height: 1.15; margin: 4px 0 6px;
                 color: var(--rd-text); }
.rd-page-sub { color: var(--rd-text-soft); font-size: 14px; line-height: 1.45; }

/* -----------------------------------------------------------
   Cards genéricos
   ----------------------------------------------------------- */
.rd-card { background: var(--rd-surface); border-radius: var(--rd-radius); padding: 16px;
           box-shadow: var(--rd-shadow); border: 1px solid var(--rd-border); }
.rd-card + .rd-card { margin-top: 12px; }

/* Metric cards (dashboard) */
.rd-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.rd-metric { background: var(--rd-surface); border-radius: var(--rd-radius); padding: 16px 14px;
             box-shadow: var(--rd-shadow); position: relative; overflow: hidden; }
.rd-metric.is-wide { grid-column: 1 / -1; }
.rd-metric-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center;
                  justify-content: center; color: #fff; margin-bottom: 10px; }
.rd-metric-icon.is-primary { background: linear-gradient(135deg, var(--rd-primary), var(--rd-accent)); }
.rd-metric-icon.is-success { background: linear-gradient(135deg, #10b981, #059669); }
.rd-metric-icon.is-warn    { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.rd-metric-num   { font-size: 28px; font-weight: 800; color: var(--rd-text); line-height: 1; }
.rd-metric-label { font-size: 12px; color: var(--rd-text-soft); margin-top: 4px; }

/* Carrossel horizontal de próximas reuniões */
.rd-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
               padding: 4px 4px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
               -webkit-overflow-scrolling: touch; }
.rd-carousel::-webkit-scrollbar { display: none; }
.rd-next-card { flex: 0 0 80%; max-width: 320px; scroll-snap-align: start;
                background: linear-gradient(135deg, var(--rd-primary) 0%, var(--rd-accent) 100%);
                color: #fff; border-radius: var(--rd-radius); padding: 16px;
                box-shadow: var(--rd-shadow-strong); position: relative; overflow: hidden; }
.rd-next-card::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px;
                       background: rgba(255,255,255,.08); border-radius: 50%; }
.rd-next-date { font-size: 12px; opacity: .9; font-weight: 600; }
.rd-next-time { font-size: 22px; font-weight: 800; margin-top: 2px; }
.rd-next-with { display: flex; align-items: center; gap: 10px; margin-top: 14px; position: relative; z-index: 1; }
.rd-next-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2);
                  display: flex; align-items: center; justify-content: center;
                  font-weight: 700; font-size: 14px; overflow: hidden; }
.rd-next-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rd-next-info { flex: 1; min-width: 0; }
.rd-next-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-next-env  { font-size: 11px; opacity: .85; }

/* -----------------------------------------------------------
   Section heading
   ----------------------------------------------------------- */
.rd-section { margin-top: 20px; }
.rd-section-title { font-size: 14px; font-weight: 700; text-transform: uppercase;
                    letter-spacing: .06em; color: var(--rd-text-soft); margin: 0 0 10px; }

/* -----------------------------------------------------------
   Tabs
   ----------------------------------------------------------- */
.rd-tabs { display: flex; background: var(--rd-surface); border-radius: 999px; padding: 4px;
           margin-bottom: 16px; border: 1px solid var(--rd-border); }
.rd-tab { flex: 1; padding: 9px 8px; border-radius: 999px; text-align: center; font-size: 13px;
          font-weight: 600; color: var(--rd-text-soft); cursor: pointer; transition: all .15s;
          border: none; background: transparent; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rd-tab.is-active { background: linear-gradient(135deg, var(--rd-primary), var(--rd-accent));
                    color: #fff; box-shadow: 0 4px 10px rgba(99, 102, 241, .35); }
.rd-tab-badge { background: rgba(255,255,255,.25); color: inherit; font-size: 11px; padding: 1px 7px;
                border-radius: 999px; font-weight: 700; min-width: 18px; text-align: center; }
.rd-tab:not(.is-active) .rd-tab-badge { background: #f1f5f9; color: var(--rd-text-soft); }

/* -----------------------------------------------------------
   Meeting card (Confirmadas / Pendentes)
   ----------------------------------------------------------- */
.rd-meet-card { background: var(--rd-surface); border-radius: var(--rd-radius); padding: 14px;
                box-shadow: var(--rd-shadow); border: 1px solid var(--rd-border); margin-bottom: 12px; }
.rd-meet-head { display: flex; align-items: center; gap: 12px; }
.rd-meet-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--rd-primary), var(--rd-accent));
                  color: #fff; display: flex; align-items: center; justify-content: center;
                  font-weight: 700; flex-shrink: 0; overflow: hidden; }
.rd-meet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rd-meet-info { flex: 1; min-width: 0; }
.rd-meet-name { font-weight: 700; color: var(--rd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-meet-company { font-size: 12px; color: var(--rd-primary); font-weight: 600; margin-top: 2px;
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
                   display: flex; align-items: center; gap: 4px; }
.rd-meet-company .material-icons-round { font-size: 13px; opacity: .8; }
.rd-meet-sub  { font-size: 12px; color: var(--rd-text-soft); margin-top: 2px; }
.rd-meet-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
.rd-meet-status.is-confirmed { background: #d1fae5; color: #047857; }
.rd-meet-status.is-pending   { background: #fef3c7; color: #92400e; }
.rd-meet-status.is-rejected  { background: #fee2e2; color: #991b1b; }
.rd-meet-meta { display: flex; gap: 14px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--rd-border);
                color: var(--rd-text-soft); font-size: 13px; }
.rd-meet-meta-item { display: flex; align-items: center; gap: 6px; }
.rd-meet-meta-item .material-icons-round { font-size: 16px; color: var(--rd-primary); }
.rd-meet-actions { display: flex; gap: 10px; margin-top: 14px; }

/* When-chip: destaque visual de data + horário no topo do card.
   Variantes: padrão (índigo) para confirmadas, .is-pending (amarelo)
   para pendentes-com-horário, .is-tba (cinza) para "aguardando agendamento". */
.rd-meet-when { display: flex; align-items: stretch; gap: 10px; margin-bottom: 12px;
                background: linear-gradient(135deg, #eef2ff, #ede9fe);
                border: 1px solid #c7d2fe; border-radius: 12px; padding: 10px 12px; }
.rd-meet-when-icon { width: 38px; height: 38px; border-radius: 10px;
                     background: linear-gradient(135deg, var(--rd-primary), var(--rd-accent));
                     color: #fff; display: flex; align-items: center; justify-content: center;
                     flex-shrink: 0; }
.rd-meet-when-icon .material-icons-round { font-size: 20px; }
.rd-meet-when-info { flex: 1; min-width: 0; line-height: 1.2; }
.rd-meet-when-day { font-size: 14px; font-weight: 700; color: var(--rd-primary-dark);
                    text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-meet-when-time { font-size: 13px; font-weight: 600; color: var(--rd-text); margin-top: 2px;
                     display: flex; align-items: center; gap: 4px; }
.rd-meet-when-time .material-icons-round { font-size: 14px; color: var(--rd-text-soft); }
.rd-meet-when.is-pending { background: linear-gradient(135deg, #fef9c3, #fef3c7); border-color: #fde68a; }
.rd-meet-when.is-pending .rd-meet-when-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.rd-meet-when.is-pending .rd-meet-when-day  { color: #92400e; }
.rd-meet-when.is-tba { background: #f8fafc; border-color: var(--rd-border);
                       border-style: dashed; }
.rd-meet-when.is-tba .rd-meet-when-icon { background: #e2e8f0; color: var(--rd-text-soft); }
.rd-meet-when.is-tba .rd-meet-when-day  { color: var(--rd-text-soft); font-weight: 600; }

.rd-checkin-done { margin-top: 10px; padding: 8px 12px; background: #d1fae5; color: #065f46;
                   border-radius: 10px; font-size: 12px; display: flex; align-items: center; gap: 6px; font-weight: 600; }

/* -----------------------------------------------------------
   Botões
   ----------------------------------------------------------- */
.rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
          border: none; padding: 12px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
          cursor: pointer; transition: all .15s; min-height: 44px; font-family: inherit;
          text-decoration: none; }
a.rd-btn:hover, a.rd-btn:visited, a.rd-btn:active { text-decoration: none; }
.rd-btn .material-icons-round { font-size: 18px; }
.rd-btn:disabled { opacity: .55; cursor: not-allowed; }
.rd-btn-block { width: 100%; }
.rd-btn-primary   { background: linear-gradient(135deg, var(--rd-primary), var(--rd-accent)); color: #fff;
                    box-shadow: 0 4px 14px rgba(99, 102, 241, .3); }
.rd-btn-primary:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(99, 102, 241, .45); }
.rd-btn-success   { background: linear-gradient(135deg, #10b981, #059669); color: #fff;
                    box-shadow: 0 4px 14px rgba(16, 185, 129, .3); }
.rd-btn-warn      { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
                    box-shadow: 0 4px 14px rgba(245, 158, 11, .3); }
.rd-btn-warn:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(245, 158, 11, .45); }
.rd-btn-ghost     { background: #f1f5f9; color: var(--rd-text); }
.rd-btn-danger    { background: #fee2e2; color: var(--rd-danger); }
.rd-btn-danger-outline { background: transparent; color: var(--rd-danger); border: 1.5px solid var(--rd-danger); }
.rd-btn-magic { background: linear-gradient(135deg, var(--rd-accent), var(--rd-pink)); color: #fff;
                box-shadow: 0 6px 20px rgba(139, 92, 246, .35); }
.rd-btn-sm { padding: 8px 12px; font-size: 12px; min-height: 36px; }

/* -----------------------------------------------------------
   Empty state
   ----------------------------------------------------------- */
.rd-empty { text-align: center; padding: 32px 18px; color: var(--rd-text-soft); }
.rd-empty-icon { width: 64px; height: 64px; border-radius: 50%; background: #f1f5f9;
                 display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
                 color: var(--rd-muted); }
.rd-empty-icon .material-icons-round { font-size: 32px; }
.rd-empty-title { font-size: 16px; font-weight: 700; color: var(--rd-text); margin-bottom: 4px; }
.rd-empty-sub { font-size: 13px; }

.rd-loading { text-align: center; padding: 40px 16px; color: var(--rd-muted); }
.rd-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #e2e8f0;
              border-top-color: var(--rd-primary); animation: rdspin .8s linear infinite;
              margin: 0 auto 8px; }
@keyframes rdspin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------
   Slots (Meus Horários)
   ----------------------------------------------------------- */
.rd-day-card { background: var(--rd-surface); border-radius: var(--rd-radius); padding: 14px;
               box-shadow: var(--rd-shadow); border: 1px solid var(--rd-border); margin-bottom: 14px; }
.rd-day-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px;
               border-bottom: 1px solid var(--rd-border); margin-bottom: 10px; }
.rd-day-head .material-icons-round { color: var(--rd-primary); }
.rd-day-name { font-weight: 700; flex: 1; }
.rd-day-stat { font-size: 12px; color: var(--rd-text-soft); }
.rd-slot-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f1f5f9; }
.rd-slot-row:last-child { border-bottom: none; }
.rd-slot-time { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 90px; }
.rd-slot-status { flex: 1; font-size: 12px; color: var(--rd-text-soft); }
.rd-toggle { position: relative; width: 44px; height: 26px; border-radius: 999px;
             background: #e2e8f0; cursor: pointer; transition: background .15s; flex-shrink: 0;
             border: none; padding: 0; }
.rd-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
                    border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
                    transition: transform .15s; }
.rd-toggle.is-on { background: var(--rd-primary); }
.rd-toggle.is-on::after { transform: translateX(18px); }

/* -----------------------------------------------------------
   Tags (Matchmaking)
   ----------------------------------------------------------- */
.rd-tags-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rd-tag { padding: 8px 14px; border-radius: 999px; background: var(--rd-surface);
          border: 1.5px solid var(--rd-border); font-size: 13px; font-weight: 500;
          color: var(--rd-text); cursor: pointer; transition: all .15s;
          user-select: none; }
.rd-tag.is-on { background: linear-gradient(135deg, var(--rd-primary), var(--rd-accent));
                color: #fff; border-color: transparent; }
.rd-tags-count { font-size: 12px; color: var(--rd-text-soft); margin-bottom: 12px; }

/* Matchmaking suggestions (cards) */
.rd-sugg-card { background: var(--rd-surface); border-radius: var(--rd-radius); padding: 14px;
                box-shadow: var(--rd-shadow); border: 1px solid var(--rd-border); margin-bottom: 12px;
                position: relative; }
.rd-sugg-remove { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
                  border-radius: 50%; background: #f1f5f9; color: var(--rd-text-soft); border: none;
                  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rd-sugg-remove:hover { background: var(--rd-danger); color: #fff; }
.rd-sugg-common { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.rd-sugg-tag { padding: 3px 8px; background: linear-gradient(135deg, #ede9fe, #fce7f3);
               color: #6d28d9; font-size: 11px; font-weight: 600; border-radius: 999px; }

/* -----------------------------------------------------------
   Environments (cards)
   ----------------------------------------------------------- */
.rd-env-card { background: var(--rd-surface); border-radius: var(--rd-radius); padding: 14px;
               box-shadow: var(--rd-shadow); border: 1px solid var(--rd-border); margin-bottom: 12px;
               display: flex; align-items: center; gap: 12px; cursor: pointer; transition: transform .1s; }
.rd-env-card:active { transform: scale(.99); }
.rd-env-logo { width: 56px; height: 56px; border-radius: 12px; background: #f1f5f9;
               display: flex; align-items: center; justify-content: center; overflow: hidden;
               color: var(--rd-primary); font-weight: 700; flex-shrink: 0; }
.rd-env-logo img { width: 100%; height: 100%; object-fit: contain; }
.rd-env-info { flex: 1; min-width: 0; }
.rd-env-name { font-weight: 700; color: var(--rd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-env-sub  { font-size: 12px; color: var(--rd-text-soft); margin-top: 2px;
               display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-env-chev { color: var(--rd-muted); flex-shrink: 0; }

/* -----------------------------------------------------------
   Attendee row
   ----------------------------------------------------------- */
.rd-attendee-row { background: var(--rd-surface); border-radius: var(--rd-radius); padding: 12px;
                   box-shadow: var(--rd-shadow); border: 1px solid var(--rd-border); margin-bottom: 10px;
                   display: flex; align-items: center; gap: 12px; }
.rd-attendee-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--rd-primary), var(--rd-accent));
                      color: #fff; display: flex; align-items: center; justify-content: center;
                      font-weight: 700; font-size: 14px; overflow: hidden; flex-shrink: 0; }
.rd-attendee-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rd-attendee-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-attendee-name { font-weight: 600; color: var(--rd-text);
                    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-attendee-meta { font-size: 12px; color: var(--rd-text-soft);
                    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
                    display: flex; align-items: center; gap: 4px; }
.rd-attendee-meta .material-icons-round { font-size: 13px; opacity: .75; }
.rd-attendee-sponsor { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
                       margin-top: 4px; padding: 3px 8px; border-radius: 999px;
                       background: linear-gradient(135deg, #eef2ff, #ede9fe);
                       border: 1px solid #c7d2fe; color: var(--rd-primary-dark);
                       font-size: 11px; font-weight: 600;
                       max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-attendee-sponsor .material-icons-round { font-size: 12px; }

/* Search bar */
.rd-search { display: flex; align-items: center; gap: 8px; background: var(--rd-surface);
             border-radius: 999px; padding: 10px 14px; border: 1px solid var(--rd-border); margin-bottom: 14px; }
.rd-search input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent;
                   font-family: inherit; }
.rd-search .material-icons-round { color: var(--rd-muted); font-size: 20px; }

/* -----------------------------------------------------------
   Bottom sheet (genérico)
   ----------------------------------------------------------- */
.rd-sheet-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 200;
                    display: none; align-items: flex-end; justify-content: center; }
.rd-sheet-overlay.is-open { display: flex; animation: rdFadeIn .15s; }
.rd-sheet { background: var(--rd-surface); width: 100%; max-width: 480px; border-radius: 22px 22px 0 0;
            padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 86vh; overflow-y: auto;
            animation: rdSlideUp .25s cubic-bezier(.16,.84,.32,1); }
.rd-sheet-handle { width: 40px; height: 4px; background: #cbd5e1; border-radius: 2px; margin: 0 auto 14px; }
.rd-sheet-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.rd-sheet-sub   { color: var(--rd-text-soft); font-size: 13px; margin-bottom: 14px; }
@keyframes rdFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rdSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.rd-slot-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rd-slot-opt { padding: 10px 8px; border: 1.5px solid var(--rd-border); border-radius: 12px;
               background: var(--rd-surface); font-weight: 600; color: var(--rd-text);
               cursor: pointer; font-size: 13px; text-align: center; transition: all .15s; }
.rd-slot-opt small { display: block; font-size: 11px; color: var(--rd-text-soft); font-weight: 400; }
.rd-slot-opt.is-on { border-color: var(--rd-primary); background: #eef2ff; color: var(--rd-primary); }

/* -----------------------------------------------------------
   Toast
   ----------------------------------------------------------- */
#rd-toast-container { position: fixed; top: calc(16px + env(safe-area-inset-top)); left: 16px; right: 16px;
                      z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: 480px; margin: 0 auto; }
.rd-toast { background: var(--rd-text); color: #fff; padding: 12px 16px; border-radius: 12px;
            font-size: 14px; box-shadow: var(--rd-shadow-strong); animation: rdToastIn .2s;
            display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.rd-toast.is-success { background: var(--rd-success); }
.rd-toast.is-danger  { background: var(--rd-danger); }
.rd-toast.is-warn    { background: var(--rd-warn); }
@keyframes rdToastIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* -----------------------------------------------------------
   QR Scanner overlay
   ----------------------------------------------------------- */
.rd-qr-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 9000;
                 display: none; flex-direction: column; }
.rd-qr-overlay.is-open { display: flex; }
.rd-qr-head { display: flex; align-items: center; padding: 14px 16px; gap: 12px;
              padding-top: calc(14px + env(safe-area-inset-top)); color: #fff; }
.rd-qr-head-title { flex: 1; font-weight: 700; }
.rd-qr-close { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15);
               color: #fff; border: none; display: flex; align-items: center; justify-content: center; }
.rd-qr-stage { flex: 1; position: relative; overflow: hidden; }
.rd-qr-reader { width: 100%; height: 100%; }
.rd-qr-reader video { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.rd-qr-viewfinder { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.rd-qr-box { width: 250px; height: 250px; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); position: relative; }
.rd-qr-box::before, .rd-qr-box::after { content: ''; position: absolute; width: 30px; height: 30px;
                                         border: 4px solid var(--rd-primary); }
.rd-qr-box::before { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 12px 0 0 0; }
.rd-qr-box::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 12px 0; }
.rd-qr-foot { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); color: #fff; text-align: center; }
.rd-qr-hint { font-size: 14px; opacity: .85; margin-bottom: 14px; }
.rd-qr-err  { color: #fecaca; font-size: 13px; margin: 8px 0; min-height: 18px; }

/* Pequenos */
.rd-mt-12 { margin-top: 12px; } .rd-mt-16 { margin-top: 16px; } .rd-mt-20 { margin-top: 20px; }
.rd-mb-12 { margin-bottom: 12px; } .rd-mb-16 { margin-bottom: 16px; }
.rd-text-soft { color: var(--rd-text-soft); }
.rd-text-center { text-align: center; }
