/* AEGIS OPTICS 2029 — Drills, Fake Call, Siren, Ask Chat, Field Manual, Medical Card, Overwatch Pins & Companion Call. */

/* ---------- Tactical Drills ---------- */
.drill-list { display: grid; }
.drill-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hair); color: var(--text); text-decoration: none; }
.drill-row:first-child { border-top: 0; padding-top: 4px; }
.drill-row > svg { width: 44px; height: 44px; padding: 11px; border-radius: 13px; background: var(--gold-tint); border: 1px solid rgba(255, 198, 41, 0.35); color: var(--signal); box-sizing: border-box; }
.drill-row b { display: block; font-size: 17.5px; font-weight: 750; line-height: 1.25; color: var(--text); }
.drill-row small { display: block; font-size: 14.5px; color: var(--text-2); margin-top: 2px; }
.drill-row i svg { width: 18px; height: 18px; color: var(--text-3); }
.drill-row:active { transform: scale(0.99); }
.drill-title { font-size: clamp(34px, 9vw, 54px) !important; }
.drill-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.drill-big li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 18px 18px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hair); font-size: 18.5px; font-weight: 600; line-height: 1.38; color: var(--text); }
.drill-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--signal); color: var(--obsidian); font: 900 19px var(--display); }
.drill-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drill-actions .btn { width: 100%; }
.drill-actions .sos-red, .drill-actions .gold { grid-column: 1 / -1; }
.btn.sos-red { background: linear-gradient(180deg, #ff3859, #c4122d); border-color: #ff5c74; color: #fff; }
.drill-card { border-color: rgba(255, 92, 116, 0.55); box-shadow: 0 0 0 1px rgba(255, 92, 116, 0.22), var(--shadow); }
.drill-card[hidden] { display: none; }
.drill-card-title { display: block; font-size: 20px; font-weight: 800; margin: 0 0 8px; color: var(--text); }
.drill-steps { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 8px; font-size: 16px; line-height: 1.42; font-weight: 550; color: var(--text-2); }
.drill-steps li::marker { font-weight: 900; color: var(--signal); }

/* ---------- Fake Call, Companion Call & Siren Overlays ---------- */
.tools-card { display: grid; gap: 14px; }
.tool-row { display: grid; gap: 10px; }
.tool-row b { display: block; font-size: 17.5px; font-weight: 750; color: var(--text); }
.tool-row small { display: block; font-size: 14.5px; color: var(--text-2); margin-top: 2px; }
.tool-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btns .btn { flex: 1 1 0; min-width: 92px; }
.tool-name { display: grid; gap: 6px; font-size: 14px; color: var(--text-3); }

.call-card, .siren-card { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 28px; }
.call-card {
  background:
    radial-gradient(520px 520px at 50% 24%, rgba(20, 219, 203, 0.16), transparent 68%),
    linear-gradient(180deg, #10192b 0%, #06080d 100%);
  color: #fff;
}
.call-inner { display: grid; justify-items: center; gap: 8px; width: 100%; max-width: 440px; text-align: center; }
.call-inner > small { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: 0.14em; text-transform: uppercase; }
.call-who { font: 900 42px/1.06 var(--display); font-stretch: 78%; text-transform: uppercase; margin-top: 6px; word-break: break-word; color: var(--text); }
.call-sub { font-family: var(--mono); font-size: 16px; color: var(--signal); font-variant-numeric: tabular-nums; }
.call-btns { display: flex; justify-content: space-around; width: 100%; margin-top: min(20vh, 140px); }
.call-btns button { width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; }
.call-btns svg { width: 32px; height: 32px; }
.call-yes { background: linear-gradient(180deg, #22c55e, #15803d); animation: call-pulse 1.4s ease-in-out infinite; }
.call-no { background: linear-gradient(180deg, #ff3859, #c4122d); box-shadow: 0 10px 28px rgba(212, 23, 52, 0.55); }
.call-no svg { transform: rotate(135deg); }
@keyframes call-pulse { 50% { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0.22); } }
.call-say { display: grid; gap: 8px; margin-top: 24px; padding: 16px 18px; border-radius: 18px; background: rgba(18, 26, 42, 0.78); border: 1px solid rgba(255, 255, 255, 0.12); text-align: left; }
.call-say span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); font-weight: 750; }
.call-say p { margin: 0; font-size: 17.5px; line-height: 1.38; color: var(--text); }

.siren-card { background: var(--sos); color: #fff; animation: siren-flash 0.76s steps(1) infinite; }
@keyframes siren-flash { 50% { background: #fff; color: var(--sos); } }
.siren-inner { display: grid; justify-items: center; gap: 14px; text-align: center; }
.siren-inner b { font: 900 clamp(60px, 22vw, 130px)/1 var(--display); text-transform: uppercase; }
.siren-inner p { margin: 0; font-size: 18px; font-weight: 600; }
.siren-inner .btn { min-width: 220px; min-height: 64px; font-size: 19px; background: #07090e; color: #fff; border-color: #07090e; }
@media (prefers-reduced-motion: reduce) { .siren-card, .call-yes { animation: none; } }

/* ---------- SOS Alert My People ---------- */
.sos-people { border-color: rgba(255, 92, 116, 0.55); }
.sos-people .btn { width: 100%; min-height: 64px; font-size: 18.5px; }
.sos-people-state { margin: 10px 0 0; font-weight: 650; }

/* ---------- Ask Your Bodyguard Comms Console ---------- */
.ask-page { display: grid; gap: 14px; min-height: calc(100vh - 220px); align-content: start; }
.ask-head .q { margin-bottom: 6px; }
.ask-log { display: grid; gap: 12px; }
.ask-msg { max-width: 88%; padding: 14px 17px; border-radius: 20px; font-size: 16.5px; line-height: 1.48; }
.ask-msg p { margin: 0; }
.ask-msg.is-me {
  justify-self: end;
  background: linear-gradient(135deg, #ffd863, #ffc629);
  color: var(--obsidian); font-weight: 650;
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 26px -10px rgba(255, 198, 41, 0.4);
}
.ask-msg.is-guard {
  justify-self: start;
  background: linear-gradient(180deg, rgba(20, 29, 46, 0.9), rgba(12, 18, 30, 0.95));
  border: 1px solid rgba(20, 219, 203, 0.28);
  color: var(--text);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow);
}
.ask-had-photo { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: 0.82; margin-bottom: 4px; }
.ask-had-photo svg { width: 15px; height: 15px; }
.ask-say { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; color: var(--cyan); }
.ask-say svg { width: 16px; height: 16px; }
.ask-msg.is-wait p { display: flex; gap: 6px; padding: 4px 2px; }
.ask-msg.is-wait i { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); animation: ask-dot 1.1s ease-in-out infinite; }
.ask-msg.is-wait i:nth-child(2) { animation-delay: 0.15s; }
.ask-msg.is-wait i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ask-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.ask-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-starters .chip { text-align: left; white-space: normal; height: auto; padding: 12px 16px; line-height: 1.32; }
.ask-form {
  position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); display: grid; gap: 8px;
  padding: 12px; border-radius: 22px;
  background: rgba(12, 18, 30, 0.92); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.88);
}
.ask-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.ask-tools { display: flex; gap: 8px; }
.ask-row textarea { min-height: 52px; max-height: 140px; resize: none; }
.ask-tool { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; height: 44px; font: inherit; font-size: 14.5px; font-weight: 650; border-radius: 13px; border: 1px solid var(--hair); background: var(--fill); color: var(--text); cursor: pointer; }
.ask-tool:hover { border-color: var(--cyan); }
.ask-tool svg { width: 20px; height: 20px; color: var(--cyan); }
.ask-tool.on { background: var(--sos); border-color: #ff5c74; color: #fff; }
.ask-tool.on svg { color: #fff; }
.ask-tool[hidden], .ask-photo[hidden] { display: none; }
.ask-send { width: 56px; min-height: 52px; padding: 0; }
.ask-photo { display: flex; align-items: center; gap: 12px; }
.ask-photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--hair); }
.ask-fine, .ask-price { margin: 0; text-align: left; }
.ask-fine.is-note { color: var(--text); font-weight: 600; }
.btn.ask-open { background: var(--signal); border-color: var(--signal); color: var(--obsidian); }

/* ---------- Field Manual & Medical Card ---------- */
.manual { display: grid; gap: 12px; }
.man-title { margin: 14px 0 0; font: 900 clamp(26px, 6vw, 34px)/1.1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; color: var(--text); }
.man-card .label { display: flex; align-items: center; gap: 8px; }
.man-card .label svg { width: 17px; height: 17px; color: var(--cyan); }
.man-lead { margin: 0 0 10px; font-size: 17px; line-height: 1.48; color: var(--text); }
.man-line { margin: 10px 0 0; font-size: 15.5px; line-height: 1.48; color: var(--text-2); }
.man-line b, .man-sub { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.man-prices { margin: 4px 0 6px; }
.man-prices div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 15.5px; }
.man-prices div b { text-align: right; font-weight: 750; color: var(--signal); }
.man-embassy { display: grid; gap: 3px; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--fill); border: 1px solid var(--hair); }
.man-embassy b { font-size: 16.5px; color: var(--text); }
.man-embassy a { font-weight: 750; color: var(--cyan); }
.man-private { border-style: dashed; }
.man-card .btn.wide, .man-card .link { margin-top: 12px; }

.sure { display: flex; align-items: center; gap: 5px; margin: 14px 0 0 !important; font-size: 14px; font-weight: 650; opacity: 0.92; }
.sure i { width: 14px; height: 5px; border-radius: 3px; background: currentColor; opacity: 0.25; }
.sure span { margin-left: 5px; }
.sure.is-high i, .sure.is-medium i:nth-child(-n+2), .sure.is-low i:first-child { opacity: 1; }
.fb-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-btns[hidden], .fb-form[hidden] { display: none; }
.fb-form { display: grid; gap: 10px; }
.row-q-wide { grid-template-columns: minmax(0, 1fr) !important; }
.row-q-wide .profile-input { width: 100%; margin-top: 8px; }

.med-band { color: #fff; }
.med-name { margin: 8px 0 0; font: 900 clamp(30px, 8vw, 46px)/1.05 var(--display); }
.med-rows { display: grid; gap: 8px; }
.med-row { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); }
.med-row small { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.med-row small i { font-style: normal; font-weight: 600; color: var(--text-3); }
.med-row b, .med-row a { font-size: 18.5px; font-weight: 750; line-height: 1.3; color: var(--text); }
.med-form { display: grid; gap: 12px; }
.med-form label { display: grid; gap: 5px; font-size: 14px; color: var(--text-2); font-weight: 650; }

/* ---------- Official Alerts, Daily Brief & Family ---------- */
.alerts-card { border-color: rgba(255, 110, 36, 0.55); background: linear-gradient(180deg, rgba(255, 110, 36, 0.14), rgba(14, 20, 32, 0.92)); }
.alerts-card[hidden] { display: none; }
.alerts-card .label { display: flex; align-items: center; gap: 8px; color: #ff8b4d; }
.alerts-card .label::before { background: var(--unsafe); box-shadow: 0 0 8px var(--unsafe); }
.alerts-card .label svg { width: 17px; height: 17px; }
.alerts-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; font-weight: 600; line-height: 1.42; color: var(--text); }

.daily-card .label, .family-card .label { display: flex; align-items: center; gap: 8px; }
.daily-card .label svg, .family-card .label svg { width: 17px; height: 17px; color: var(--cyan); }
.daily-brief { padding: 14px 16px; border-radius: 16px; background: var(--fill); border: 1px solid var(--hair); margin-bottom: 12px; }
.daily-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.daily-level { display: inline-flex; align-items: center; gap: 6px; }
.daily-head { display: block; margin: 6px 0 4px; font-size: 20px; font-weight: 750; line-height: 1.25; color: var(--text); }
.daily-brief .man-sub { margin-top: 12px; }
.daily-weather { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 15px; color: var(--text-2); }
.daily-weather svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--signal); }
.daily-older summary { cursor: pointer; font-weight: 650; margin-bottom: 10px; color: var(--signal); }
.daily-what { margin: 0 0 12px; font-size: 15.5px; color: var(--text-2); }
.daily-switch { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; cursor: pointer; }
.daily-switch input { width: 24px; height: 24px; accent-color: var(--signal); }
.family-page { display: grid; gap: 14px; }
.g-walk .field { margin-top: 8px; }
.g-walk .field[hidden], .g-walk .sit-chips[hidden], .g-tell[hidden], #gWalkEnd[hidden] { display: none; }
.g-tell { margin-top: 10px; }

/* ---------- Discreet Overwatch Pins, Escort, Watch My Ride, Companion Call & Witness Vault ---------- */
.mk.ow {
  background: #09111f; color: var(--cyan); width: 34px; height: 34px;
  border: 2px solid var(--cyan); cursor: pointer;
  box-shadow: 0 0 0 4px rgba(20, 219, 203, 0.20), 0 8px 20px rgba(0, 0, 0, 0.75);
}
.mk.ow.is-safe { border-color: var(--cyan); color: var(--cyan); }
.mk.ow.is-alert { border-color: var(--signal); color: var(--signal); box-shadow: 0 0 0 4px rgba(255, 198, 41, 0.22), 0 8px 20px rgba(0, 0, 0, 0.75); }
.mk.ow.is-unsafe { background: var(--unsafe); color: var(--obsidian); border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 110, 36, 0.30), 0 8px 20px rgba(0, 0, 0, 0.75); }
.mk.ow.is-dangerous { background: var(--dangerous); color: #fff; border-color: #ff5c74; box-shadow: 0 0 0 4px rgba(255, 56, 89, 0.35), 0 8px 20px rgba(0, 0, 0, 0.75); }
.map-legend .ow-dot { color: #09111f; box-shadow: 0 0 0 2px var(--cyan); border-radius: 50%; }

.g-escort-opts { display: grid; gap: 8px; margin-top: 10px; }
.ear-grid { display: grid; gap: 10px; }
.ride-advice { margin: 0 0 10px; padding: 13px 15px; border-radius: 14px; background: var(--cyan-tint); border: 1px solid rgba(20, 219, 203, 0.32); color: var(--text); font-size: 15.5px; line-height: 1.44; }
.ride-advice[hidden], #gRideActive[hidden], #gRideForm[hidden] { display: none; }

.comp-inner { max-width: 460px; gap: 10px; }
.comp-transcript {
  width: 100%; min-height: 82px; margin-top: 12px; padding: 16px 18px; border-radius: 20px;
  background: rgba(14, 22, 36, 0.85); border: 1px solid rgba(20, 219, 203, 0.28);
  box-shadow: var(--rim), 0 16px 36px -14px rgba(0, 0, 0, 0.7);
  font-size: 17.5px; line-height: 1.45; text-align: left; color: var(--text);
}
.comp-chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 6px; }
.comp-chip {
  background: rgba(20, 29, 46, 0.85) !important; color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.16) !important; font-size: 13.5px !important;
  height: auto !important; padding: 8px 13px !important; white-space: normal !important; text-align: left !important;
}
.comp-chip:hover { border-color: var(--cyan) !important; }
.comp-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; margin-top: 6px; }
.comp-input { background: rgba(14, 20, 32, 0.9) !important; color: var(--text) !important; border-color: rgba(255, 255, 255, 0.18) !important; }
.comp-input::placeholder { color: var(--text-3); }
.comp-send { width: 52px; min-height: 46px; padding: 0; }
.comp-bar { display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%; margin-top: 16px; }
.comp-mic {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 26px;
  border: 1.5px solid rgba(20, 219, 203, 0.42); background: rgba(20, 219, 203, 0.12);
  color: var(--cyan); font: inherit; font-weight: 700; cursor: pointer;
}
.comp-mic svg { width: 20px; height: 20px; }
.comp-mic.on { background: #16a34a; border-color: #4ade80; color: #fff; box-shadow: 0 0 20px rgba(34, 197, 94, 0.45); }
.comp-mic[hidden] { display: none; }
.vault-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
