/* waple_practices.css — short guided practices (1–10 min) + SIMBIOZ intro/mirror. 28 Nov 2026. All selectors are prefixed .wpr- / #wpr */
#wprOverlay { position: fixed; inset: 0; z-index: 100010; display: none; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box;
  background: rgba(15, 10, 40, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#wprOverlay.open { display: flex; }
body.wpr-open { overflow: hidden; }
.wpr-card { position: relative; width: min(540px, 100%); max-height: min(92vh, 860px); max-height: min(92dvh, 860px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; color: #1f2937; border-radius: 22px; padding: 22px 22px 20px; box-sizing: border-box; box-shadow: 0 28px 70px rgba(15, 23, 42, .45);
  font-family: inherit; text-align: left; }
body.dark-mode .wpr-card { background: #151a2e; color: #e5e7eb; }
.wpr-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #6b7280; font-size: 28px; line-height: 1; cursor: pointer; }
.wpr-x:hover { background: rgba(124, 58, 237, .10); }
.wpr-kicker { margin: 0 44px 4px 0; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #6d28d9; }
body.dark-mode .wpr-kicker { color: #c4b5fd; }
.wpr-title { margin: 0 44px 6px 0; font-size: 24px; line-height: 1.2; font-weight: 800; color: #111827; }
body.dark-mode .wpr-title { color: #f9fafb; }
.wpr-sub { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: #4b5563; }
body.dark-mode .wpr-sub { color: #cbd5e1; }
.wpr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.wpr-pick { display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; cursor: pointer; padding: 12px 13px; min-height: 92px; border-radius: 14px;
  border: 2px solid #ddd6fe; background: #faf5ff; color: inherit; }
.wpr-pick:hover, .wpr-pick:focus-visible { border-color: #7c3aed; outline: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
body.dark-mode .wpr-pick { background: #1e1b3a; border-color: #3b3470; }
.wpr-pick .wpr-ic { font-size: 24px; line-height: 1; }
.wpr-pick .wpr-pt { font-weight: 800; font-size: 15px; }
.wpr-pick .wpr-pd { font-size: 12.5px; line-height: 1.3; color: #6b7280; }
body.dark-mode .wpr-pick .wpr-pd { color: #a5b4fc; }
.wpr-pick .wpr-pm { margin-top: auto; font-size: 12px; font-weight: 700; color: #7c3aed; }
.wpr-resume { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #ecfeff; border: 2px solid #67e8f9; color: #0e4a56; }
.wpr-resume span { flex: 1 1 160px; font-size: 14px; font-weight: 600; }
body.dark-mode .wpr-resume { background: #0b2a33; color: #a5f3fc; border-color: #155e75; }
.wpr-btn { font: inherit; font-weight: 700; font-size: 16px; min-height: 46px; padding: 11px 18px; border-radius: 12px; cursor: pointer; border: 2px solid #7c3aed; background: #fff; color: #6d28d9; }
.wpr-btn.primary { background: linear-gradient(135deg, #7c3aed, #06b6d4); border-color: transparent; color: #fff; }
.wpr-btn:disabled { opacity: .55; cursor: default; }
.wpr-btn:focus-visible, .wpr-chip:focus-visible, .wpr-link:focus-visible, .wpr-x:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
body.dark-mode .wpr-btn:not(.primary) { background: #1e1b3a; color: #ddd6fe; }
.wpr-link { font: inherit; font-size: 14px; background: none; border: 0; color: #6b7280; text-decoration: underline; cursor: pointer; padding: 10px 6px; min-height: 44px; }
body.dark-mode .wpr-link { color: #a5b4fc; }
.wpr-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wpr-row.center { justify-content: center; }
.wpr-grow { flex: 1 1 auto; }
.wpr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.wpr-chip { font: inherit; font-size: 15px; font-weight: 700; min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 2px solid #c4b5fd; background: #fff; color: #5b21b6; }
.wpr-chip[aria-pressed="true"], .wpr-chip[aria-checked="true"] { background: #7c3aed; border-color: #7c3aed; color: #fff; }
body.dark-mode .wpr-chip { background: #1e1b3a; color: #ddd6fe; border-color: #4c3f9a; }
body.dark-mode .wpr-chip[aria-pressed="true"], body.dark-mode .wpr-chip[aria-checked="true"] { background: #7c3aed; color: #fff; }
.wpr-label { margin: 12px 0 6px; font-size: 13px; font-weight: 800; color: #374151; }
body.dark-mode .wpr-label { color: #e5e7eb; }
.wpr-sim { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(124, 58, 237, .10), rgba(14, 165, 233, .10)); border: 1px solid rgba(124, 58, 237, .25); }
.wpr-sim-ic { flex: 0 0 auto; font-size: 22px; line-height: 1.2; }
.wpr-sim-name { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #6d28d9; margin: 0 0 2px; }
body.dark-mode .wpr-sim-name { color: #c4b5fd; }
.wpr-sim-text { margin: 0; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 24px; }
.wpr-dots span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #7c3aed; animation: wprDot 1s infinite ease-in-out; }
.wpr-dots span:nth-child(2) { animation-delay: .15s; } .wpr-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes wprDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.wpr-stage { position: relative; width: min(260px, 70vw); aspect-ratio: 1 / 1; margin: 6px auto 8px; }
.wpr-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.wpr-ring-bg { fill: none; stroke: #ede9fe; stroke-width: 8; }
body.dark-mode .wpr-ring-bg { stroke: #2e2a5a; }
.wpr-ring { fill: none; stroke: url(#wprGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 565.48; stroke-dashoffset: 0; transition: stroke-dashoffset .3s linear; }
.wpr-orb { position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; margin: -31% 0 0 -31%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a78bfa, #7c3aed 60%, #4c1d95); opacity: .9; transform: scale(.7); transition-property: transform; transition-timing-function: ease-in-out; transition-duration: 1s; }
.wpr-orb.inhale { transform: scale(1); transition-duration: 4s; }
.wpr-orb.exhale { transform: scale(.62); transition-duration: 6s; }
.wpr-timer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); pointer-events: none; }
.wpr-time { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wpr-phase { font-size: 17px; font-weight: 700; min-height: 22px; }
.wpr-guide { min-height: 56px; margin: 4px 0 0; text-align: center; font-size: 18px; line-height: 1.45; color: #1f2937; }
body.dark-mode .wpr-guide { color: #f1f5f9; }
.wpr-hint { text-align: center; font-size: 13px; color: #6b7280; margin: 2px 0 0; min-height: 18px; }
.wpr-note { width: 100%; box-sizing: border-box; min-height: 74px; resize: vertical; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 2px solid #ddd6fe; background: #faf5ff; color: inherit; }
body.dark-mode .wpr-note { background: #1e1b3a; border-color: #3b3470; }
.wpr-note:focus { border-color: #7c3aed; outline: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.wpr-status { min-height: 20px; margin: 8px 0 0; font-size: 14px; color: #b91c1c; }
.wpr-status.ok { color: #047857; }
body.dark-mode .wpr-status { color: #fca5a5; } body.dark-mode .wpr-status.ok { color: #6ee7b7; }
.wpr-pomo { margin-top: 4px; }
.wpr-sound { font-size: 13px; }
@media (max-width: 600px) {
  #wprOverlay { padding: 0; align-items: flex-end; }
  .wpr-card { width: 100%; max-height: 96vh; max-height: 96dvh; border-radius: 22px 22px 0 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .wpr-list { grid-template-columns: 1fr; }
  .wpr-pick { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .wpr-pick .wpr-pd { flex: 1 0 100%; padding-left: 34px; }
  .wpr-pick .wpr-pm { margin-top: 0; padding-left: 34px; flex: 1 0 100%; }
  .wpr-title { font-size: 21px; }
  .wpr-btn { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) { .wpr-orb, .wpr-orb.inhale, .wpr-orb.exhale { transition: none; } .wpr-dots span { animation: none; opacity: .7; } .wpr-ring { transition: none; } }
