@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

#regroup-app {
  --rg-ink: #1a1a2e;
  --rg-teal: #4ecdc4;
  --rg-teal-dark: #38b2aa;
  --rg-soft: rgba(255,255,255,0.07);
  font-family: 'IBM Plex Mono', monospace;
  background: var(--rg-ink);
  border-radius: 16px;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  max-width: 480px;
  color: white;
}
#regroup-app::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(78,205,196,0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.rg-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 2rem; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.rg-screen.rg-active { opacity: 1; pointer-events: all; }
.rg-eyebrow { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--rg-teal); margin-bottom: 1.25rem; }
.rg-title { font-family: 'IBM Plex Mono', monospace; font-size: 2.6rem; line-height: 1.1; text-align: center; color: white; margin-bottom: 0.75rem; }
.rg-title em { font-style: italic; color: var(--rg-teal); }
.rg-heading { font-family: 'IBM Plex Mono', monospace; font-size: 1.7rem; color: white; text-align: center; margin-bottom: 0.5rem; }
.rg-sub { font-size: 0.9rem; color: rgba(255,255,255,0.45); text-align: center; line-height: 1.6; margin-bottom: 1.75rem; }
.rg-note { font-size: 0.72rem; color: rgba(255,255,255,0.25); text-align: center; margin-bottom: 1.5rem; }
.rg-btn { padding: 0.85rem 2.5rem; border-radius: 100px; border: none; cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: 1rem; font-weight: 500; transition: all 0.2s; }
.rg-btn-primary { background: var(--rg-teal); color: var(--rg-ink); }
.rg-btn-primary:hover { background: var(--rg-teal-dark); transform: translateY(-1px); }
.rg-btn-primary:disabled { opacity: 0.28; cursor: not-allowed; transform: none; }
.rg-options { display: flex; flex-direction: column; gap: 0.65rem; width: 100%; max-width: 340px; margin-bottom: 1.25rem; }
.rg-option { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.1rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; cursor: pointer; transition: all 0.2s; background: var(--rg-soft); color: white; user-select: none; }
.rg-option:hover { border-color: var(--rg-teal); background: rgba(78,205,196,0.08); }
.rg-option.rg-selected { border-color: var(--rg-teal); background: rgba(78,205,196,0.14); }
.rg-opt-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rg-label { font-size: 0.9rem; font-weight: 500; }
.rg-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; transition: all 0.2s; }
.rg-option.rg-selected .rg-check { background: var(--rg-teal); border-color: var(--rg-teal); }
.rg-option.rg-selected .rg-check::after { content: '✓'; color: var(--rg-ink); font-weight: 700; }
.rg-breath-label { font-family: 'IBM Plex Mono', monospace; font-size: 1.9rem; color: white; margin-bottom: 2rem; min-height: 2.4rem; }
.rg-breath-wrap { position: relative; width: 200px; height: 200px; margin-bottom: 2rem; }
.rg-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(78,205,196,0.2); transform: scale(0.4); }
.rg-circle { position: absolute; inset: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(78,205,196,0.9), rgba(56,178,170,0.55)); transform: scale(0.35); box-shadow: 0 0 50px rgba(78,205,196,0.25); }
.rg-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; font-weight: 300; color: white; z-index: 2; }
.rg-phase { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.75rem; min-height: 1rem; }
.rg-progress { width: 180px; height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.rg-bar { height: 100%; background: var(--rg-teal); border-radius: 2px; transition: width 1s linear; width: 0%; }
.rg-cycles { font-size: 0.7rem; color: rgba(255,255,255,0.2); margin-top: 0.6rem; }
.rg-done-mark { width: 48px; height: 48px; border-radius: 50%; background: rgba(78,205,196,0.12); border: 1.5px solid var(--rg-teal); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; animation: rgPop 0.5s cubic-bezier(0.34,1.56,0.64,1); }
.rg-done-mark svg { width: 20px; height: 20px; stroke: var(--rg-teal); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rgPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rg-cal-buttons { display: flex; flex-direction: column; gap: 0.65rem; width: 100%; max-width: 300px; margin-top: 1.5rem; }
.rg-cal-btn { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.2rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); background: var(--rg-soft); color: white; text-decoration: none; font-family: 'IBM Plex Mono', monospace; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.rg-cal-btn:hover { border-color: var(--rg-teal); background: rgba(78,205,196,0.1); transform: translateX(3px); color: white; text-decoration: none; }
.rg-cal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rg-arr { margin-left: auto; opacity: 0.3; }
.rg-reset { margin-top: 1.75rem; font-size: 0.72rem; color: rgba(255,255,255,0.2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-block; }
.rg-reset:hover { color: rgba(255,255,255,0.45); }
.rg-saved-notice { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: rgba(78,205,196,0.1); border: 1px solid rgba(78,205,196,0.3); border-radius: 100px; padding: 0.5rem 1.2rem; font-size: 0.78rem; color: var(--rg-teal); white-space: nowrap; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.rg-saved-notice.rg-show { opacity: 1; }
