/* Asnani feature family: pearl, light and quiet motion. */
:root { --asnani-blue: #335b9e; --asnani-iris: #7874a3; }
.asnani-suite { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 20px 0 8px; }
.asnani-feature { position: relative; display: flex; gap: 15px; align-items: flex-start; padding: 22px; border: 1px solid #fff; border-radius: 23px; background: linear-gradient(130deg,#ffffffda,#f3f7fb99); box-shadow: var(--glass-shadow); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: background .2s,box-shadow .2s; min-width: 0; }
.asnani-feature:hover { text-decoration: none; background: #fff; box-shadow: 0 14px 28px -18px #60749266; }
.asnani-feature > span:last-child { min-width: 0; }
.asnani-feature .feature-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; font-weight: 650; letter-spacing: -.025em; margin-bottom: 7px; }
.asnani-feature .feature-benefit { display: block; font-size: 12px; color: #52617a; line-height: 1.55; }
.asnani-feature .feature-action { display: block; margin-top: 13px; font-size: 10px; font-weight: 650; color: #496998; }
.asnani-feature-voice { background: linear-gradient(130deg,#ffffffd9,#eeeaf6ba 60%,#dfedf2a6); }
.asnani-feature-voice .feature-action { color: #756a94; }
.feature-icon { width: 39px; height: 43px; display: grid; place-items: center; flex: none; border: 1px solid #fff; border-radius: 14px; background: linear-gradient(135deg,#fff,#e1eef2); color: #528295; box-shadow: inset 0 2px 2px #fff,0 5px 12px #7e92a817; }
.feature-icon-ai { background: linear-gradient(135deg,#fff,#e5e2f7); color: #7771a7; }
.feature-icon-voice { background: linear-gradient(135deg,#fff,#e8e9fa 45%,#e8f3ef); color: #7c87a0; }
.feature-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature-soon { border: 1px solid #ded8eb; background: #f4f0f9; border-radius: 5px; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 4px; color: #6d6185; white-space: nowrap; }
.capability-banner { display: flex; align-items: center; gap: 20px; padding: 23px 28px; border: 1px solid #fff; border-radius: 23px; background: linear-gradient(110deg,#fffffff0,#e3f2f2b0); box-shadow: var(--glass-shadow); margin: 0 0 20px; }
.capability-banner-ai { background: linear-gradient(110deg,#fffffff0,#ebe7f5c9); }
.capability-banner .feature-icon { width: 51px; height: 55px; border-radius: 17px; }
.capability-banner .feature-icon svg { width: 26px; height: 26px; }
.capability-banner h2 { font-size: 25px; letter-spacing: -.045em; line-height: 1.2; font-weight: 650; margin: 4px 0 5px; }
.capability-banner p { margin: 0; font-size: 12px; color: #5c6b83; line-height: 1.6; }
.capability-banner .capability-note { margin-left: auto; font-size: 10px; color: #66768c; max-width: 155px; text-align: right; line-height: 1.6; }
/* Reserve space so the last action can always scroll clear of the fixed control. */
body:has(.asnani-voice) main.content { padding-bottom: 154px; }
body:has(.asnani-voice) { scroll-padding-bottom: 154px; }
html { scroll-padding-bottom: 154px; }
.asnani-voice { position: fixed; left: 50%; bottom: max(14px,env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; width: 302px; max-width: calc(100vw - 28px); color: #28334c; font-family: var(--font); }
.voice-dock { position: relative; display: flex; flex-direction: column; align-items: center; }
.voice-trigger { display: flex; align-items: center; gap: 8px; width: 100%; height: 72px; border: 1px solid #fffffff0; border-radius: 45px; background: linear-gradient(120deg,#f8fbf9e8,#f2f2f8e8 50%,#ecf2f7e8); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 12px 35px -12px #3e506f45,inset 0 2px 2px #fff,0 0 0 5px #ffffff40; padding: 3px 17px 3px 4px; cursor: pointer; color: inherit; font: inherit; text-align: left; transition: box-shadow .25s,background .25s; }
.voice-trigger:hover,.voice-trigger[aria-expanded=true] { background: linear-gradient(120deg,#fff,#f0f0faee,#e9f4f5ee); box-shadow: 0 12px 38px -10px #56618c55,inset 0 2px 2px #fff,0 0 0 5px #ffffff66; }
.voice-trigger-text { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.voice-trigger-text strong { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.voice-trigger-text > span { font-size: 9px; color: #63728a; white-space: nowrap; }
.voice-dock-symbol { color: #7585a5; display: grid; place-items: center; }
.voice-dock-symbol svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.voice-dock-caption { font-size: 7px; letter-spacing: .12em; font-weight: 650; color: #68758b; margin-top: 9px; border: 1px solid #ffffffbd; background: #f5f6fbe8; backdrop-filter: blur(14px); padding: 4px 10px; border-radius: 12px; }
.voice-dock-caption > span { margin: 0 4px; }
.pearl-orb { position: relative; display: block; isolation: isolate; flex: none; }
.pearl-orb::before { content: ''; position: absolute; inset: 9%; border-radius: 49% 51% 48% 52%; background: radial-gradient(circle at 30% 22%,#fff 1%,#e7e9f7 28%,transparent 64%),conic-gradient(from 40deg,#d4e6f7,#dfd9ee,#f6e1da,#c9e9e8,#c3d6f0,#d4e6f7); box-shadow: inset -5px -8px 12px #6d81b43b,inset 3px 4px 7px #fff,0 9px 12px -8px #66799f66; }
.pearl-orb canvas { position: relative; z-index: 1; width: 100%; height: 100%; display: block; }
.pearl-orb.has-webgl::before { opacity: 0; }
.pearl-orb-dock { width: 74px; height: 74px; margin-left: -5px; margin-top: -9px; filter: drop-shadow(0 6px 5px #5b6c8c20); }
.voice-panel { position: absolute; bottom: 115px; left: 50%; transform: translateX(-50%); width: 386px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 155px); overflow-y: auto; border: 1px solid #fff; border-radius: 30px; padding: 20px 25px 23px; background: radial-gradient(ellipse at 20% 30%,#f7eeea,transparent 54%),radial-gradient(ellipse at 90% 24%,#e5eaf6,transparent 54%),linear-gradient(150deg,#fcfcfa,#f5f7fb); box-shadow: 0 22px 70px -20px #38496977,inset 0 1px 0 #fff; text-align: center; }
.voice-panel[hidden] { display: none; }
.voice-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voice-preview-label { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #7a748b; background: #ece8f299; border: 1px solid #fff; padding: 5px 8px; border-radius: 12px; }
.voice-preview-label i { width: 4px; height: 4px; border-radius: 50%; background: #a89cb9; }
.voice-close { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #fff; border-radius: 50%; background: #ffffffb3; color: #6b7890; cursor: pointer; font-size: 21px; font-weight: 300; }
.voice-panel-art { position: relative; height: 174px; display: grid; place-items: center; margin: 5px 0 7px; }
.pearl-orb-large { width: 190px; height: 190px; margin-top: -14px; filter: drop-shadow(0 14px 12px #7987ab18); }
.voice-art-halo { position: absolute; width: 178px; height: 178px; border-radius: 50%; border: 1px solid #ffffffa3; box-shadow: 0 0 0 19px #ffffff28,0 0 0 38px #ffffff1f; }
.voice-art-shadow { position: absolute; bottom: 0; width: 95px; height: 14px; background: #8592b52b; border-radius: 50%; filter: blur(8px); }
.voice-wordmark { color: #777f98; font-size: 10px; font-weight: 650; letter-spacing: .07em; }
.voice-panel h2 { font-size: 34px; font-weight: 550; line-height: 1.06; letter-spacing: -.06em; margin: 12px 0; }
.voice-panel h2 em { font-style: normal; color: #8288a2; }
.voice-panel-copy { font-size: 12px; color: #66738b; line-height: 1.7; margin: 0; }
.voice-motion-meter { height: 28px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 17px auto 14px; }
.voice-motion-meter i { display: block; width: 3px; height: 4px; border-radius: 4px; background: linear-gradient(#bccedb,#aaa3c8); transition: height .3s; }
.voice-preview-button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; border: 1px solid #fff; border-radius: 22px; padding: 11px 19px; min-height: 43px; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; color: #4e6388; background: linear-gradient(140deg,#fff,#e9eef8); box-shadow: inset 0 1px 1px #fff,0 4px 11px #697a9914; }
.voice-preview-button svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.voice-privacy { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; color: #6d7990; margin: 17px 0 0; }
.voice-privacy svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; }
.asnani-voice.is-previewing .voice-motion-meter i { animation: voice-wave 1.1s ease-in-out infinite alternate; }
.voice-motion-meter i:nth-child(3n) { animation-delay: -.4s; }.voice-motion-meter i:nth-child(3n+1) { animation-delay: -.7s; }.voice-motion-meter i:nth-child(5n) { animation-delay: -.2s; }
@keyframes voice-wave { from { height: 4px; } to { height: 24px; } }
@media (max-width: 1200px) { .asnani-feature { padding: 18px 16px; gap: 11px; } .asnani-feature .feature-brand { font-size: 13px; } .asnani-feature .feature-benefit { font-size: 11px; } .feature-icon { width: 33px; height: 38px; } }
@media (max-width: 700px) { .asnani-suite { grid-template-columns: 1fr; gap: 10px; } .asnani-feature { padding: 17px 20px; } .asnani-feature .feature-brand { font-size: 15px; margin-bottom: 4px; } .asnani-feature .feature-action { margin-top: 7px; } .asnani-voice { width: 280px; bottom: max(10px,env(safe-area-inset-bottom)); } .voice-trigger { height: 66px; padding-right: 15px; } .pearl-orb-dock { width: 67px; height: 67px; } .voice-trigger-text strong { font-size: 13px; } .voice-trigger-text > span { font-size: 8.5px; } .voice-panel { bottom: 108px; max-height: calc(100dvh - 138px); padding: 16px 22px 19px; } .voice-panel-art { height: 140px; } .pearl-orb-large { width: 160px; height: 160px; } .voice-art-halo { width: 139px; height: 139px; } .voice-panel h2 { font-size: 31px; } .voice-panel-copy { font-size: 11px; } .voice-motion-meter { margin: 12px auto; } .capability-banner { padding: 20px; gap: 14px; } .capability-banner .capability-note { display: none; } .capability-banner h2 { font-size: 23px; } .capability-banner p { font-size: 11px; } }
@media (max-height: 620px) { .voice-panel-art { height: 74px; } .pearl-orb-large { width: 98px; height: 98px; } .voice-art-halo { width: 76px; height: 76px; } .voice-panel h2 { font-size: 25px; margin: 7px 0; } .voice-panel-copy { font-size: 10px; } .voice-motion-meter { margin: 7px auto; height: 18px; } .voice-privacy { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { .asnani-voice.is-previewing .voice-motion-meter i { animation: none; height: 11px; } .asnani-voice.is-previewing .voice-motion-meter i:nth-child(3n) { height: 20px; } }
@media print { .asnani-voice,.asnani-suite { display: none !important; } body:has(.asnani-voice) main.content { padding-bottom: 0; } }

.voice-ambient { display: block; margin: 10px auto 0; border: 0; border-bottom: 1px solid #c8ced9; padding: 2px 0; color: #71809a; font: inherit; font-size: 10px; background: transparent; cursor: pointer; } .voice-ambient:disabled { cursor: default; border-color: transparent; }

/* Asnani-Vision reading card */
.vision-read{display:grid;gap:6px;margin:4px 0 10px;padding:12px 14px;border-radius:14px;background:linear-gradient(135deg,rgba(100,93,190,.07),rgba(255,255,255,.6));border:1px solid rgba(100,93,190,.18)}
.vision-read.is-rendered{background:rgba(148,163,184,.08);border-color:rgba(148,163,184,.25)}
.vision-read.is-reading{grid-template-columns:auto 1fr;align-items:center;gap:12px}
.vision-read.is-reading strong{display:block;font-size:13.5px}.vision-read.is-reading span{font-size:12px;color:#686a7a}
.vision-type{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.vision-type .eyebrow{flex-basis:100%;margin:0}
.vision-type strong{font-size:15px;margin-right:4px}
.vision-impression{margin:2px 0 0;font-size:13px;line-height:1.55;color:#3b3e52}
.vision-spinner{width:22px;height:22px;border-radius:50%;border:2.5px solid rgba(100,93,190,.2);border-top-color:#645dbe;animation:vspin .9s linear infinite}
@keyframes vspin{to{transform:rotate(360deg)}}

/* Asnani-AI plan */
.ai-plan-card{border:1px solid rgba(100,93,190,.22);background:linear-gradient(160deg,rgba(236,235,248,.65),rgba(255,255,255,.78))}
.ai-plan-summary{font-size:14px;line-height:1.6;color:#2b2e40;margin:4px 0 10px}
.ai-plan-priorities{display:grid;gap:6px;margin-bottom:6px}
.tight-list{margin:4px 0 0;padding-left:18px}.tight-list li{margin:2px 0}

/* Asnani-AI: patients to look at */
.ai-select{margin:18px 0 6px;border:1px solid rgba(100,93,190,.2);background:linear-gradient(150deg,rgba(236,235,248,.7),rgba(255,255,255,.82) 55%)}
.ai-select-brief{font-size:14.5px;line-height:1.6;color:#2b2e40;margin:2px 0 12px;max-width:980px}
.dot-coral,.dot-amber{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px;vertical-align:1px}
.dot-coral{background:#e0675c}.dot-amber{background:#e0a33a}
.fact-ai strong{font-size:14px}
.pill-filter{display:inline-flex;gap:4px;padding:3px;border-radius:12px;background:rgba(100,93,190,.08)}
.pill-filter a{padding:6px 11px;border-radius:9px;font-size:12.5px;font-weight:600;color:#686a7a;text-decoration:none}
.pill-filter a.on{background:#fff;color:#222535;box-shadow:0 1px 4px rgba(34,37,53,.12)}

/* Asnani-Voice, live: the conversation inside Hamza's panel */
.voice-panel-art { border: 0; background: transparent; width: 100%; cursor: pointer; padding: 0; font: inherit; color: inherit; border-radius: 24px; transition: height .3s ease; }
.voice-panel-art:focus-visible { outline: 2px solid #8c84c8; outline-offset: 2px; }
.voice-state[data-s=listening] { color: #2f7d74; background: #e3f4f0cc; } .voice-state[data-s=listening] i { background: #3fae9d; animation: voice-dot 1s ease-in-out infinite; }
.voice-state[data-s=thinking], .voice-state[data-s=acting] { color: #6656a8; background: #ebe7f8cc; } .voice-state[data-s=thinking] i, .voice-state[data-s=acting] i { background: #8270d0; animation: voice-dot .7s ease-in-out infinite; }
.voice-state[data-s=speaking] { color: #3f5f99; background: #e5edf9cc; } .voice-state[data-s=speaking] i { background: #6b8fd6; }
@keyframes voice-dot { 50% { transform: scale(1.8); opacity: .55; } }
.asnani-voice[data-state=listening] .voice-art-halo { animation: voice-halo 1.6s ease-in-out infinite; }
@keyframes voice-halo { 50% { box-shadow: 0 0 0 24px #ffffff30, 0 0 0 48px #dff3ef33; } }
.asnani-voice.is-active .voice-intro { display: none; }
.asnani-voice.is-active .voice-panel-art { height: 104px; margin: 2px 0 4px; }
.asnani-voice.is-active .pearl-orb-large { width: 96px; height: 96px; }
.asnani-voice.is-active .voice-art-halo { width: 98px; height: 98px; box-shadow: 0 0 0 10px #ffffff28, 0 0 0 20px #ffffff1f; }
.asnani-voice.is-active .voice-art-shadow { width: 56px; height: 9px; }
.voice-log { text-align: left; display: flex; flex-direction: column; gap: 8px; max-height: min(40vh, 330px); overflow-y: auto; margin: 4px -4px 8px; padding: 0 4px; scroll-behavior: smooth; }
.voice-log:empty { display: none; }
.voice-msg { font-size: 12.5px; line-height: 1.55; color: #33405a; }
.voice-msg p { margin: 0; }
.voice-bot { background: #ffffffb8; border: 1px solid #fff; border-radius: 16px 16px 16px 5px; padding: 9px 12px; box-shadow: 0 3px 10px -6px #3e506f40; }
.voice-bot.voice-hello { background: transparent; border: 0; box-shadow: none; padding: 0; }
.voice-user { align-self: flex-end; display: flex; align-items: flex-start; gap: 4px; max-width: 88%; }
.voice-user q { quotes: none; background: linear-gradient(135deg,#6f66c4,#8a7fd6); color: #fff; border-radius: 16px 16px 5px 16px; padding: 8px 12px; }
.voice-edit { opacity: 0; border: 0; background: transparent; cursor: pointer; color: #8b93aa; padding: 4px; } .voice-user:hover .voice-edit, .voice-edit:focus-visible { opacity: 1; }
.voice-edit svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.voice-follow { color: #6656a8; margin-top: 5px !important; font-weight: 550; }
.voice-ok { margin-top: 6px; font-size: 11px; font-weight: 600; color: #2f7d74; }
.voice-fail { margin-top: 6px; font-size: 11px; font-weight: 600; color: #b5523f; }
.voice-try { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.voice-hello .voice-try { justify-content: center; margin-top: 2px; }
.voice-try button, .voice-confirm button { border: 1px solid #fff; background: linear-gradient(140deg,#fff,#eef0f8); color: #4e5f88; border-radius: 14px; padding: 6px 11px; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 6px #697a9914; }
.voice-try button:hover, .voice-confirm button:hover { background: #fff; color: #3d4a70; }
.voice-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 8px; border-radius: 12px; background: #f6efe9; }
.voice-confirm span { flex: 1 1 100%; font-size: 11.5px; font-weight: 600; color: #6e4f3c; }
.voice-confirm button[data-v=yes] { background: linear-gradient(135deg,#6f66c4,#8a7fd6); color: #fff; }
.voice-live { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 0 8px; }
.voice-live[hidden] { display: none; }
.voice-live .voice-motion-meter { margin: 2px auto 0; }
.voice-live-t { font-size: 11px; color: #66738b; }
.voice-type { display: flex; gap: 6px; margin: 10px 0 0; }
.voice-type[hidden] { display: none; }
.voice-type input { flex: 1; min-width: 0; border: 1px solid #fff; border-radius: 16px; padding: 9px 13px; font: inherit; font-size: 12.5px; background: #ffffffd9; color: #28334c; box-shadow: inset 0 1px 3px #3e506f1a; }
.voice-type input:focus { outline: 2px solid #b3abe6; }
.voice-type button { width: 38px; border: 0; border-radius: 50%; background: linear-gradient(135deg,#6f66c4,#8a7fd6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.voice-type button svg { width: 15px; height: 15px; fill: currentColor; }
.voice-ctl { display: flex; justify-content: center; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.voice-ctl button { border: 1px solid #ffffffd9; background: #ffffff8c; color: #63708a; border-radius: 12px; padding: 5px 10px; font: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer; }
.voice-ctl button:hover { background: #fff; } .voice-ctl button[aria-pressed=true] { background: #e6e3f6; color: #574a9a; }
.voice-ctl .voice-end { color: #a65a48; }
.voice-preview-button { margin-top: 2px; }
.asnani-voice[data-state=listening] .voice-preview-button { background: linear-gradient(140deg,#e9f7f3,#d5efe9); color: #2f7d74; }
.asnani-voice .voice-panel { overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) { .voice-state i, .voice-art-halo { animation: none !important; } }
.voice-preview-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
