/* Renewed — styles unique to this app (shared look lives in ../app-core/core.css) */

/* Big Craving SOS button */
.sos-big { display: flex; align-items: center; gap: 16px; padding: 20px 22px; margin-bottom: 14px; border-radius: 22px; text-decoration: none;
  color: #fff; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); box-shadow: 0 10px 30px rgba(0,0,0,.18); position: relative; overflow: hidden; }
.sos-big::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 90%; background: radial-gradient(ellipse at center, rgba(255,255,255,.18), transparent 70%); }
.sos-big .wave-ico { font-size: 2.4rem; }
.sos-big strong { display: block; font-size: 1.35rem; font-family: var(--serif); }
.sos-big small { opacity: .85; }
.tabs a.tab-sos .ico { background: var(--gold); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; margin-top: -14px; box-shadow: 0 4px 12px rgba(0,0,0,.2); filter: none; }
.tabs a.tab-sos { color: var(--ink); }
.side nav a.sos-link { font-weight: 700; color: var(--purple-2); }

/* SOS page */
.sos-page { max-width: 560px; margin: 0 auto; }
.sos-page h1 { text-align: center; margin-top: 8px; }
.sos-page > p { text-align: center; }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.scale button, .scale label span { display: grid; place-items: center; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; color: var(--ink); }
.scale label { position: relative; }
.scale label input { position: absolute; opacity: 0; pointer-events: none; }
.scale button.on, .scale label input:checked + span { background: var(--purple); color: var(--on-accent); border-color: var(--purple); }
.scale label input:focus-visible + span { outline: 3px solid var(--gold); }

.wave-stage { height: 90px; margin: 0 -16px 8px; overflow: hidden; }
.wave-stage svg { width: 200%; height: 100%; display: block; }
.wave-stage .w1 { fill: var(--primary-soft); animation: drift 7s ease-in-out infinite alternate; }
.wave-stage .w2 { fill: var(--purple-2); opacity: .35; animation: drift 5s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-25%); } }

.breath { position: relative; display: grid; place-items: center; height: 230px; margin-bottom: 6px; }
.breath-ring { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), var(--primary-soft)); box-shadow: 0 0 0 10px var(--primary-soft);
  transition: transform 4s ease-in-out; transform: scale(.8); }
.breath-ring.in { transform: scale(1.35); transition-duration: 4s; }
.breath-ring.out { transform: scale(.8); transition-duration: 6s; }
.breath-text { position: relative; text-align: center; max-width: 220px; }
.breath-line { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.timer { text-align: center; font: 600 2.6rem/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--purple); margin: 4px 0 6px; }
.sos-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.sos-actions .tile { align-items: center; text-align: center; padding: 12px 6px; }
.sos-actions .tile .ico { font-size: 1.4rem; }

/* Trigger chips (checkbox) */
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: .86rem; cursor: pointer; }
.chip-check input:checked + span { background: var(--purple); color: var(--on-accent); border-color: var(--purple); }
.chip-check input:focus-visible + span { outline: 3px solid var(--gold); }

/* Today rhythm chips */
.rhythm { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rhythm span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.rhythm span.done { background: var(--sage-soft); color: var(--sage); }

/* Timeline */
.tl { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); position: relative; }
.tl:last-child { border-bottom: 0; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--on-accent); }
.tl.reached .tl-dot { background: var(--sage); border-color: var(--sage); }

/* Insight bars */
.bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 30px; gap: 10px; align-items: center; margin: 8px 0; font-size: .9rem; }
.bar i { display: block; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--purple-2), var(--gold)); min-width: 4px; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }

.lesson-body { font-size: 1.08rem; line-height: 1.75; margin: 0; }
.track:hover { border-color: var(--purple-2); }

@media (prefers-reduced-motion: reduce) { .wave-stage path { animation: none; } .breath-ring { transition: none; } }
:root[data-motion="reduce"] .breath-ring { transition: none !important; }
