/* Wai Sense - Design System
   Deep Navy / Sense Orange / Soft Violet / Sky Blue / Mint Green.
   Mobile-first (this backbone round targets a phone-width viewport rendered
   in a normal browser - a Capacitor wrap, like WAI's own, is a later step).
   CHANGED (logo/renk çalışması, 2026-09-14): --sky aligned from #2D9CFF to
   #0EA5E9 per Wai_Sense_Logo_ve_ekran_renkleri_base_ref.docx's "Elektrik/
   Dijital Mavi" recommendation - was a noticeably more saturated azure
   before. Everything using var(--sky) (orb states, buttons, links, focus
   rings) picks this up automatically. */

:root {
    --navy: #0B1D3A;
    --orange: #FF7A00;
    --violet: #8B5CF6;
    --sky: #0EA5E9;
    --mint: #22C55E;
    --white: #FFFFFF;
    --soft-gray: #F6F8FB;
    --light-gray: #E6E8F2;
    --mid-gray: #A3A9B6;
    --dark-gray: #21262F;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: var(--font);
    background: var(--soft-gray);
    color: var(--dark-gray);
    -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* ---------------- Orb (Wai Sense's signature) ---------------- */
.sense-orb {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: radial-gradient(circle at 35% 30%, var(--sky), var(--violet) 55%, var(--navy) 100%);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.45);
}
.sense-orb-small { width: 48px; height: 48px; margin-bottom: 6px; }
/* NEW (direct user request: "bu koca yuvarlagin yerine hala logo gelmedi") -
   #home-orb only, shows the actual Wai Sense brand mark instead of the
   generic gradient. Higher specificity than .sense-orb-idle's background so
   it wins without needing !important. */
.sense-orb-logo {
    background: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sense-orb-logo img { width: 100%; height: 100%; object-fit: cover; }
.sense-orb-idle { animation: sense-breathe 4s ease-in-out infinite; }
@keyframes sense-breathe {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.06); opacity: 1; }
}
.sense-orb-listening {
    animation: sense-listen-pulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5);
}
@keyframes sense-listen-pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.55); }
    70% { box-shadow: 0 0 0 22px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}
.sense-orb-thinking {
    background: conic-gradient(from 0deg, var(--violet), var(--sky), var(--violet));
    animation: sense-spin 1.4s linear infinite;
}
@keyframes sense-spin { to { transform: rotate(360deg); } }
.sense-orb-speaking {
    background: radial-gradient(circle at 35% 30%, var(--orange), var(--sky) 60%, var(--navy) 100%);
    animation: sense-breathe 0.6s ease-in-out infinite;
}
/* NEW (Phase 1 round, 2026-08-10 - direct user request, from Wai Sense.docx's
   "WAI Orb's bütün durumları" table): the remaining 5 of the orb's 9 states.
   Each gets a distinct color/motion language so a member can read the orb
   without reading any text, per the doc's own framing. */
.sense-orb-insight {
    background: radial-gradient(circle at 35% 30%, #FFD199, var(--orange) 55%, var(--navy) 100%);
    animation: sense-insight-pulse 0.9s ease-out 1;
}
@keyframes sense-insight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.55); transform: scale(1); }
    60% { box-shadow: 0 0 0 26px rgba(255, 122, 0, 0); transform: scale(1.08); }
    100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); transform: scale(1); }
}
.sense-orb-memory {
    background: radial-gradient(circle at 35% 30%, var(--violet), var(--sky) 65%, var(--navy) 100%);
    animation: sense-memory-shift 2.2s ease-in-out infinite alternate;
}
@keyframes sense-memory-shift {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(-25deg); }
}
.sense-orb-warning {
    background: radial-gradient(circle at 35% 30%, #FFB199, var(--orange) 60%, #7A2E0B 100%);
    animation: sense-warning-pulse 1s ease-in-out infinite;
}
@keyframes sense-warning-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.sense-orb-privacy_paused {
    background: radial-gradient(circle at 35% 30%, #C7CBD6, #9AA0AE 60%, #5C6270 100%);
    box-shadow: none;
    animation: none;
    opacity: 0.7;
}
.sense-orb-offline {
    background: radial-gradient(circle at 35% 30%, #DADFEA, #AEB4C2 70%, #7A818F 100%);
    box-shadow: none;
    animation: sense-breathe 5s ease-in-out infinite;
    position: relative;
}
.sense-orb-offline::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #9AA0AE;
    border: 2px solid var(--white);
}

/* ---------------- Login screen ---------------- */
.sense-login-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    padding: 32px 24px;
    text-align: center;
}
.sense-wordmark { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.sense-wordmark span { color: var(--orange); }
/* NEW (direct user request, 2026-08-28: "LOGO OLARAK BUNU SEC" - real brand
   mark replaces the old plain-text wordmark + CSS orb on the login screen).
   Kept round like the source artwork rather than forcing it into a square,
   with a soft shadow so it reads clearly against the dark navy background. */
.sense-logo-badge {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 0 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.sense-tagline { color: #B9C2D9; margin: 0 0 28px; font-size: 14px; }
.sense-login-form { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.sense-login-form input {
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--white);
    font-size: 15px;
}
.sense-login-form input::placeholder { color: #8892A8; }
.sense-login-form button {
    margin-top: 4px;
    padding: 13px 16px;
    border: none;
    border-radius: 12px;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}
.sense-login-hint { color: #8892A8; font-size: 12px; margin: 6px 0 0; line-height: 1.5; }
.sense-login-error { color: #FF8A8A; font-size: 13px; margin: 4px 0 0; }
.sense-beta-badge {
    margin-top: 22px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.25);
    color: #C9BBFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
/* NEW (task #933, direct user request: "Sense: Google/Microsoft OAuth
   login ekle") - one-click sign-in row on the members-only screen, styled
   to match the dark-navy login card (same width/spacing rhythm as
   .sense-login-form above). */
.sense-oauth-row {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 4px;
}
.sense-oauth-btn {
    display: block;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    background: rgba(255,255,255,0.06);
    transition: background 0.15s ease;
}
.sense-oauth-btn:hover { background: rgba(255,255,255,0.12); }
.sense-oauth-btn-google { border-color: rgba(255,255,255,0.22); }
.sense-oauth-btn-microsoft { border-color: rgba(255,255,255,0.22); }

/* ---------------- App shell ---------------- */
.sense-app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    padding-bottom: 76px; /* leave room for bottom nav */
}
.sense-screen { display: none; flex: 1; padding: 28px 22px 16px; position: relative; }
.sense-screen-active { display: flex; flex-direction: column; }
.sense-screen-header { text-align: center; margin-bottom: 18px; }
.sense-screen-header-compact { margin-bottom: 10px; }
.sense-screen-header h2 { margin: 0 0 4px; font-size: 22px; color: var(--navy); }
.sense-sub { margin: 0; color: var(--mid-gray); font-size: 13px; }

.sense-card {
    background: var(--soft-gray);
    border: 1px solid var(--light-gray);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.sense-card-label { margin: 0 0 4px; font-size: 11px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: 0.04em; }
.sense-empty-state { text-align: center; color: var(--mid-gray); font-size: 14px; margin-top: 40px; line-height: 1.6; }

/* ---------------- Notification bell (Phase 1 round) ---------------- */
.sense-notif-bell {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
}
.sense-notif-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.sense-notif-panel {
    position: absolute;
    top: 50px;
    right: 14px;
    left: 14px;
    z-index: 20;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(11, 30, 61, 0.22);
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
}
.sense-notif-panel-title { margin: 0 0 10px; font-weight: 700; color: var(--navy); font-size: 14px; }
.sense-notif-item {
    padding: 10px 0;
    border-top: 1px solid var(--light-gray);
}
.sense-notif-item:first-child { border-top: none; padding-top: 0; }
.sense-notif-item-title { margin: 0; font-weight: 700; font-size: 13px; color: var(--navy); }
.sense-notif-item-body { margin: 3px 0 0; font-size: 12.5px; color: var(--dark-gray); line-height: 1.5; }
.sense-notif-item-time { margin: 4px 0 0; font-size: 11px; color: var(--mid-gray); }

/* ---------------- Talk voice controls (Phase 1 round) ---------------- */
.sense-talk-voice-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 4px 0 10px;
}
.sense-mic-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--navy);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.sense-mic-btn.listening {
    background: var(--orange);
    box-shadow: 0 0 0 0 rgba(255,122,0,0.55);
    animation: sense-listen-pulse 1.2s ease-in-out infinite;
    transform: scale(1.05);
}
.sense-speaker-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--light-gray);
    background: var(--white);
    font-size: 16px;
    cursor: pointer;
    color: var(--mid-gray);
}
.sense-speaker-toggle[data-on="1"] {
    background: var(--sky);
    color: var(--white);
    border-color: var(--sky);
}

/* ---------------- Create for me (Phase 1 round) ---------------- */
.sense-create-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 6px;
}
.sense-create-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 12px;
    border-radius: 14px;
    border: 1px solid var(--light-gray);
    background: var(--soft-gray);
    text-align: left;
    cursor: pointer;
    transition: all .15s ease;
}
.sense-create-btn:hover { border-color: var(--orange); background: var(--white); }
.sense-create-btn-icon { font-size: 22px; }
.sense-create-btn-label { font-size: 12.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.sense-create-result { text-align: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--light-gray); }

/* ---------------- Talk ---------------- */
.sense-talk-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.sense-talk-bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.sense-talk-bubble-user { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.sense-talk-bubble-wai { align-self: flex-start; background: var(--soft-gray); border: 1px solid var(--light-gray); border-bottom-left-radius: 4px; }
.sense-talk-composer { display: flex; gap: 8px; margin-top: 12px; }
.sense-talk-composer input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--light-gray);
    font-size: 14px;
    background: var(--soft-gray);
}
.sense-talk-composer button {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--orange);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
}

/* ---------------- Spectrum ---------------- */
.sense-spectrum-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.sense-spectrum-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px; font-size: 13px; color: var(--mid-gray);
}
.sense-spectrum-row.active { background: rgba(255,122,0,0.08); color: var(--navy); font-weight: 700; }
.sense-spectrum-row .sense-spectrum-emoji { font-size: 16px; }
.sense-spectrum-slider {
    width: 100%;
    accent-color: var(--orange);
    margin: 8px 0 18px;
}
.sense-spectrum-current { text-align: center; }
.sense-spectrum-current p:first-child { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }

/* ---------------- Me (redesign round, "Sense yine benzer" per WAI's Mode A
   pick) ---------------- */
.sense-me-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sense-me-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-radius: 14px; background: var(--soft-gray); border: 1px solid var(--light-gray);
    font-size: 15px; font-weight: 600; color: var(--navy);
}
.sense-me-row span.sense-me-row-sub { display: block; font-size: 11.5px; color: var(--mid-gray); font-weight: 400; margin-top: 3px; }
/* NEW: the 2 static cards below the dynamic list (Spectrum summary, Privacy
   note) reuse .sense-card but need a touch more breathing room + a small
   link-style action button distinct from the big primary "Reveal more". */
.sense-me-static-card p:not(.sense-card-label) { font-size: 13.5px; line-height: 1.5; color: var(--dark-gray); margin: 0; }
#me-spectrum-summary { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px !important; }
.sense-me-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--violet);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.sense-me-link-btn:hover { text-decoration: underline; }
.sense-btn-primary {
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

/* ---------------- Memory (Faz 2 round, task #628) ---------------- */
.sense-memory-item {
    padding: 10px 0;
    border-top: 1px solid var(--light-gray);
}
.sense-memory-item:first-child { border-top: none; padding-top: 0; }
.sense-memory-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sense-memory-item-label { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.sense-memory-state {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.sense-memory-state-confirmed { background: rgba(34, 197, 94, 0.14); color: #17914f; }
.sense-memory-state-inferred { background: rgba(14, 165, 233, 0.14); color: #1a6fb0; }
.sense-memory-state-observed { background: var(--light-gray); color: var(--mid-gray); }
.sense-memory-state-corrected { background: rgba(163, 169, 182, 0.18); color: var(--mid-gray); }
.sense-memory-why-btn { margin-top: 4px; font-size: 12px; }
.sense-memory-why { font-size: 12.5px; color: var(--dark-gray); line-height: 1.5; margin: 6px 0 0; }
.sense-memory-actions { display: flex; gap: 8px; margin-top: 8px; }
.sense-memory-confirm-btn, .sense-memory-correct-btn {
    flex: 1;
    padding: 7px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--light-gray);
    background: var(--white);
    color: var(--dark-gray);
}
.sense-memory-confirm-btn:hover { border-color: var(--mint); color: #17914f; }
.sense-memory-correct-btn:hover { border-color: var(--mid-gray); color: var(--navy); }

/* ---------------- Permission Journey (Faz 2 round, task #629) ---------------- */
.sense-privacy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--light-gray);
}
.sense-privacy-row:first-child { border-top: none; padding-top: 0; }
.sense-privacy-row-label { font-size: 12.5px; color: var(--dark-gray); line-height: 1.4; flex: 1; }
.sense-privacy-switch {
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: var(--light-gray);
    position: relative;
    cursor: pointer;
    transition: background .15s ease;
}
.sense-privacy-switch::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--white);
    transition: transform .15s ease;
    box-shadow: 0 1px 3px rgba(11,30,61,0.25);
}
.sense-privacy-switch.on { background: var(--mint); }
.sense-privacy-switch.on::after { transform: translateX(18px); }

/* ---------------- Bottom nav ---------------- */
.sense-bottom-nav {
    position: fixed;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    display: flex;
    background: var(--navy);
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around;
}
.sense-nav-btn {
    background: none; border: none; color: #8892A8; font-size: 11px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 4px 8px; cursor: pointer;
}
/* CHANGED ("Theme Engine" round, same fix applied to WAI: routine nav-tab
   selection shouldn't be the brand action color - "normal navigation...
   turuncu olmayacak". Orange stays reserved for real actions (login/send
   buttons, mic-listening, notif badge) - the active bottom-nav tab now uses
   --sky ("Intelligence" in WAI's orange=action/blue=intelligence color
   language), which also reads clearly against the dark navy nav bar. */
.sense-nav-btn.active { color: var(--sky); }
.sense-nav-orb { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.sense-nav-logout { margin-left: auto; color: #55607A; }

@media (max-width: 380px) {
    .sense-screen { padding: 22px 16px 14px; }
}

/* ---------------- Live Conversation toggle (voice round, task #927) ---------------- */
.sense-live-toggle {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    color: var(--mid-gray);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.sense-live-toggle[data-on="1"] {
    background: var(--violet);
    color: var(--white);
    border-color: var(--violet);
}

/* ---------------- Premium Live Voice (tiered voice round, task #931) ----------------
   Direct user request: "WAI de yaptigimiz gibi bedava olan konusma uye
   olmayanlara uyelere parasini verenlere ise parali konusma parayi veren
   dudugu calar" - a visually distinct, slightly more premium-feeling block
   than the free Live Conversation toggle above, so the upgrade path reads
   as a deliberate step up rather than just another button in the row. */
.sense-premium-voice {
    margin-top: 10px;
    text-align: center;
}
.sense-premium-voice-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--violet), var(--sky));
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.sense-premium-voice-btn[data-state="locked"] {
    background: var(--white);
    color: var(--mid-gray);
    border-color: var(--light-gray);
}
.sense-premium-voice-btn[data-state="connecting"] { opacity: 0.7; cursor: default; }
.sense-premium-voice-btn[data-state="live"] {
    background: #E5484D;
}
.sense-premium-voice-sub {
    margin: 6px 0 0;
    font-size: 11.5px;
    color: var(--mid-gray);
}

/* ---------------- SOS (task #922) ---------------- */
.sense-sos-card { border-color: rgba(255,90,90,0.25); }
/* NEW (haritalama + mobil sensör round, 2026-09-14) - Leaflet needs an
   explicit height on its container or it renders blank. */
.sense-sos-map { height: 160px; border-radius: 14px; overflow: hidden; margin: 0 0 12px; border: 1px solid var(--light-gray); }
.sense-sos-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sense-sos-trigger-btn {
    background: #E5484D;
    flex: 0 0 auto;
    padding: 12px 20px;
}
.sense-sos-trigger-btn:hover { background: #cf3d42; }
.sense-sos-status-ok { color: #17914f; }
.sense-sos-status-err { color: #cf3d42; }

/* ---------------- Alarm/Calm Mode (task #923) ---------------- */
.sense-calm-trigger-btn {
    position: fixed;
    right: 16px;
    bottom: 92px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    box-shadow: 0 6px 18px rgba(11,30,61,0.18);
    font-size: 20px;
    cursor: pointer;
    z-index: 40;
}
.sense-calm-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(11,30,61,0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    text-align: center;
}
.sense-calm-breathe {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122,162,255,0.55), rgba(122,162,255,0.05));
    animation: sense-calm-breathe 5s ease-in-out infinite;
}
@keyframes sense-calm-breathe {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}
.sense-calm-title { color: var(--white); font-size: 22px; font-weight: 700; margin: 0; }
.sense-calm-sub { color: rgba(255,255,255,0.75); font-size: 14px; max-width: 320px; margin: 0; }
.sense-calm-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; margin-top: 8px; }
.sense-calm-actions .sense-me-link-btn { color: rgba(255,255,255,0.8); }

/* ---------------- Vitals & Devices (tasks #924/#925/#926) ---------------- */
.sense-vitals-row { padding: 10px 0; border-top: 1px solid var(--light-gray); }
.sense-vitals-row:first-of-type { border-top: none; padding-top: 0; }
.sense-vitals-btn {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}
.sense-vitals-btn:hover { border-color: var(--sky); }
.sense-vitals-btn:disabled { opacity: 0.6; cursor: default; }
.sense-vitals-hint { margin: 6px 2px 0 !important; }
.sense-vitals-readings { margin-top: 10px; }
.sense-vitals-reading {
    font-size: 12.5px;
    color: var(--dark-gray);
    padding: 6px 0;
    border-top: 1px solid var(--light-gray);
}
