/* ── RPE-Abfrage über „Heute“ (partials/screens/rpe.php) ───────────────────
   rpe_reminder_widget.dart (RpeDialog): 16 pt Rand, Radius 28, Fläche bg, Innenabstand 24, mittig. */

/* AppColors.rpe(1–10): Grün → Gelb (4) → Orange (7) → Rot (10), je Modus aus der Palette gemischt */
.vf-phone {
  --a-rpe1: #1DCD83; --a-rpe2: #63CF6D; --a-rpe3: #AAD257; --a-rpe4: #F0D441; --a-rpe5: #F5C149;
  --a-rpe6: #FAAE52; --a-rpe7: #FF9B5A; --a-rpe8: #FD8A5E; --a-rpe9: #FC7961; --a-rpe10: #FA6865;
}
[data-theme="light"] .vf-phone {
  --a-rpe1: #07A366; --a-rpe2: #54B251; --a-rpe3: #A2C23C; --a-rpe4: #EFD127; --a-rpe5: #E4AD1C;
  --a-rpe6: #D88910; --a-rpe7: #CD6505; --a-rpe8: #D5591B; --a-rpe9: #DE4E30; --a-rpe10: #E64246;
}

.vf-screen--rpe .vf-status { position: relative; z-index: 7; }   /* Statusleiste bleibt über dem Schleier */
.vf-screen--rpe .vf-rpe-scrim { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.54); transition: opacity .32s; }
.vf-screen--rpe .vf-rpe-dlg { position: absolute; z-index: 6; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; padding: 24px; border-radius: 28px; background: var(--a-bg); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .32s cubic-bezier(.215,.61,.355,1); }
.vf-screen--rpe .vf-rpe-title { font-size: 18px; font-weight: 700; line-height: 23px; }
.vf-screen--rpe .vf-rpe-name { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--a-dim); }
.vf-screen--rpe .vf-rpe-date { margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--a-muted); }

/* Skala 1–10 (gefülltes Messband) */
.vf-screen--rpe .vf-rpe-meter { align-self: stretch; display: flex; height: 44px; margin-top: 24px; padding: 4px; border-radius: 14px; background: var(--a-card); }
.vf-screen--rpe .vf-rpe-c { flex: 1; margin: 0 1.5px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 500; color: color-mix(in srgb, var(--c) 50%, transparent); transition: background-color .2s ease-out, color .2s, box-shadow .2s, transform .15s; }
.vf-screen--rpe .vf-rpe-desc { position: relative; align-self: stretch; height: 16px; margin: 12px 0 0; font-size: 12px; line-height: 16px; }
.vf-screen--rpe .vf-rpe-desc span { transition: opacity .2s; }
.vf-screen--rpe .vf-rpe-desc .is-now { font-weight: 500; color: var(--a-dim); }
.vf-screen--rpe .vf-rpe-desc .is-then { position: absolute; left: 0; right: 0; top: 0; font-weight: 600; color: var(--a-rpe7); opacity: 0; }
/* Speichern: gesperrt Kartenfläche + gedämpfte Schrift, sonst Farbe der gewählten Stufe */
.vf-screen--rpe .vf-rpe-save { align-self: stretch; display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 24px; border-radius: 14px; background: var(--a-card); color: var(--a-muted); font-size: 16px; font-weight: 600; transition: background-color .2s, color .2s, transform .15s; }
.vf-screen--rpe .vf-rpe-off { margin-top: 4px; padding: 6px 12px; font-size: 14px; font-weight: 700; color: var(--a-muted); }

/* Ablauf „rpe“: s1 = 7 gewählt, s2 = gespeichert (Dialog fährt hinunter) */
.s1 .vf-screen--rpe .vf-rpe-c:nth-child(-n+6) { background: color-mix(in srgb, var(--c) 30%, transparent); color: var(--c); font-weight: 600; }
.s1 .vf-screen--rpe .vf-rpe-c:nth-child(7) { background: var(--c); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 2px 8px color-mix(in srgb, var(--c) 40%, transparent); }
.s1 .vf-screen--rpe .vf-rpe-desc .is-now { opacity: 0; }
.s1 .vf-screen--rpe .vf-rpe-desc .is-then { opacity: 1; }
.s1 .vf-screen--rpe .vf-rpe-save { background: var(--a-rpe7); color: #fff; }
.s2 .vf-screen--rpe .vf-rpe-scrim { opacity: 0; }
.s2 .vf-screen--rpe .vf-rpe-dlg { transform: translateY(calc(-50% + 852px)); transition-timing-function: cubic-bezier(.55,.055,.675,.19); }
