/* الشريط العائم (مايك، أقسام، داشبورد) + لوحة المساعد الصوتي + بطاقة التحليل عند المرور */
.dock { position: fixed; z-index: 30; left: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dock-b { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; color: var(--rose-d); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 12px 26px -12px rgba(122, 72, 108, 0.8); transition: scale 0.2s cubic-bezier(0.2, 0.8, 0.2, 1.4); }
.dock-b:hover { scale: 1.12; } .dock-b .ic { width: 22px; height: 22px; }
.dock-b.mic { width: 58px; height: 58px; color: #fff; background: linear-gradient(135deg, #e07bb0, #a83f78); border-color: rgba(255, 255, 255, 0.7); animation: mic-ring 2.6s ease-out infinite; }
.dock-b.mic .ic { width: 27px; height: 27px; }
@keyframes mic-ring { 0% { box-shadow: 0 12px 26px -12px rgba(122, 72, 108, 0.8), 0 0 0 0 rgba(216, 106, 160, 0.55); } 70%, 100% { box-shadow: 0 12px 26px -12px rgba(122, 72, 108, 0.8), 0 0 0 16px rgba(216, 106, 160, 0); } }
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) { .dock { bottom: 66px; } }
@media (max-height: 480px) { .dock { flex-direction: row; } }

.voice { position: fixed; z-index: 50; left: 50%; translate: -50% 0; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(460px, calc(100vw - 20px)); max-height: 88dvh; overflow-y: auto; padding: 14px 16px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border-radius: 26px; border: 1px solid #fff; color: var(--ink);
  background: linear-gradient(160deg, #fff, #fbecf5); box-shadow: 0 34px 80px -24px rgba(80, 40, 70, 0.75); animation: voice-in 0.3s cubic-bezier(0.2, 0.9, 0.2, 1.1); }
.voice[hidden] { display: none; }
@keyframes voice-in { from { opacity: 0; translate: -50% 24px; } }
.voice > header { align-self: stretch; display: flex; align-items: center; justify-content: space-between; } .voice > header b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; } .voice > header b .ic { width: 20px; height: 20px; color: var(--rose-d); }
.mic-big { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; cursor: pointer; color: #fff; background: linear-gradient(135deg, #e07bb0, #a83f78); border: 3px solid #fff; box-shadow: 0 16px 34px -14px rgba(160, 60, 110, 0.9); transition: scale 0.2s; }
.mic-big .ic { width: 38px; height: 38px; } .mic-big:hover { scale: 1.06; }
.mic-big::before, .mic-big::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(216, 106, 160, 0.7); opacity: 0; pointer-events: none; }
.listening .mic-big { background: linear-gradient(135deg, #f0567f, #c22f66); } .listening .mic-big::before { animation: listen-ring 1.4s ease-out infinite; } .listening .mic-big::after { animation: listen-ring 1.4s ease-out 0.7s infinite; }
@keyframes listen-ring { from { opacity: 0.9; scale: 1; } to { opacity: 0; scale: 1.9; } }
.v-status { font-size: 13.5px; color: var(--ink-2); min-height: 1.5em; } .v-status.ok { color: var(--teal); font-weight: 600; } .v-status.bad { color: var(--coral); font-weight: 600; }
.v-text { font-size: 17px; font-weight: 700; color: var(--rose-d); min-height: 1.5em; overflow-wrap: anywhere; }
.v-confirm { align-self: stretch; padding: 12px; border-radius: 16px; background: #fff; border: 2px solid var(--rose); } .v-confirm[hidden] { display: none; }
.v-confirm p { font-size: 15px; margin-block-end: 10px; } .v-confirm > div { display: flex; gap: 8px; } .v-confirm .btn { flex: 1; }
.v-form { align-self: stretch; display: flex; gap: 8px; }
.v-form input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 16px var(--font); }
.v-form .btn { width: auto; min-width: 48px; padding: 0 12px; }
.v-ex { align-self: stretch; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; } .v-ex small { color: var(--ink-3); font-size: 12px; }
.v-ex button { padding: 6px 11px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font: 500 12.5px var(--font); color: var(--ink); cursor: pointer; } .v-ex button:hover { border-color: var(--rose); color: var(--rose-d); }
.v-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

.lens { position: fixed; z-index: 40; left: 0; top: 0; width: clamp(250px, calc(var(--u) * 300), 360px); padding: 12px; border-radius: 20px; pointer-events: none;
  background: linear-gradient(160deg, #fff, #fdf0f7); border: 1px solid #fff; box-shadow: 0 26px 60px -22px rgba(110, 50, 90, 0.75), 0 0 0 1px rgba(216, 106, 160, 0.25); opacity: 0; scale: 0.9; transition: opacity 0.2s ease, scale 0.25s cubic-bezier(0.2, 0.9, 0.2, 1.2); }
.lens.show { opacity: 1; scale: 1; } .lens[hidden] { display: none; }
.lens header { display: flex; flex-direction: column; margin-block-end: 8px; padding-inline: 4px; }
.lens header b { font-size: 13px; font-weight: 600; color: var(--ink-2); } .lens header span { font-size: 24px; font-weight: 700; color: var(--rose-d); line-height: 1.25; unicode-bidi: plaintext; font-variant-numeric: tabular-nums; }
.lens footer { margin-block-start: 8px; padding-inline: 4px; font-size: 11.5px; color: var(--ink-3); }
.ins { display: grid; gap: 4px; }
.ins li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px; row-gap: 4px; padding: 5px 9px; border-radius: 12px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); font-size: 12.5px; }
.ins .grow { min-width: 0; color: var(--ink-2); overflow-wrap: anywhere; } .ins b { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
.ins .ok b { color: var(--teal); } .ins .bad b { color: var(--coral); } .ins .warn b { color: #a9791f; }
.in-bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: rgba(170, 130, 160, 0.2); overflow: hidden; }
.in-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, #d86aa0, #f0a8cb); }
.ok .in-bar i { background: linear-gradient(90deg, #12998f, #56c7bb); } .bad .in-bar i { background: linear-gradient(90deg, #e2507c, #f08ba6); } .warn .in-bar i { background: linear-gradient(90deg, #cba86d, #e9d27c); }
