/* BioMaxx Premium — visual language from public/premium-prototype.html:
 * navy/cyan clinical-luxury, Space Grotesk headings, Inter body,
 * solid restrained surfaces, one primary action per screen. */

.pm-lock { overflow: hidden; }

.pm-root {
  position: fixed; inset: 0; z-index: 10000;
  background:
    radial-gradient(circle at 50% -20%, rgba(0,85,255,.11), transparent 35%),
    #020c14;
  color: #dff4ff;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px; line-height: 1.5;
  overflow-y: auto; overflow-x: hidden;
}
.pm-root[hidden] { display: none; }
.pm-root, .pm-root * { box-sizing: border-box; }
html:not(.has-orb) .pm-root button, html:not(.has-orb) .pm-root select, html:not(.has-orb) .pm-root label,
html:not(.has-orb) .pm-root input[type="checkbox"], html:not(.has-orb) .pm-root input[type="radio"] { cursor: pointer; }
.pm-root input:not([type="checkbox"]):not([type="radio"]), .pm-root textarea { cursor: text !important; }
.pm-root button { font: inherit; color: inherit; }
.pm-root :focus-visible { outline: 2px solid #00c8ff; outline-offset: 3px; border-radius: 4px; }

.pm-shell { min-height: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px 40px; display: flex; flex-direction: column; }

/* Header */
.pm-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; margin: 0 -24px; padding: 0 24px;
  background: rgba(2,12,20,.96); border-bottom: 1px solid rgba(107,181,204,.17);
}
.pm-brand { font: 700 20px "Space Grotesk", sans-serif; letter-spacing: -.5px; }
.pm-brand span { color: #00c8ff; }
.pm-brand em {
  font: 600 9px "Space Grotesk", sans-serif; font-style: normal;
  letter-spacing: 1.4px; text-transform: uppercase; color: #00c8ff;
  border: 1px solid rgba(0,200,255,.28); border-radius: 4px;
  padding: 4px 7px; margin-inline-start: 9px; vertical-align: 3px;
}
.pm-close {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(107,181,204,.25); border-radius: 10px;
  background: transparent; color: #7fb4c8; font-size: 15px;
  transition: color .18s, border-color .18s;
}
.pm-close:hover { color: #dff4ff; border-color: rgba(0,200,255,.4); }

/* Nav */
.pm-nav {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 0; border-bottom: 1px solid rgba(107,181,204,.12);
  /* Edge fade: the 5-tab strip doesn't fit under ~380px and scrolls, but a hard-cropped
     last tab ("Progress" -> "P...") gives no hint there's more — this hints it. */
  mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
[dir="rtl"] .pm-nav {
  mask-image: linear-gradient(to left, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.pm-nav::-webkit-scrollbar { display: none; }
.pm-nav button {
  white-space: nowrap; border: 1px solid transparent; background: transparent;
  color: #507d90; padding: 9px 14px; border-radius: 8px;
  font: 600 12px "Space Grotesk", sans-serif;
  transition: color .18s, border-color .18s, background .18s;
}
.pm-nav button:hover { color: #7fb4c8; }
.pm-nav button[aria-current="true"] { color: #00c8ff; border-color: rgba(0,200,255,.28); background: rgba(0,200,255,.05); }

.pm-screen { flex: 1; padding-top: 34px; }
.pm-foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(107,181,204,.12); color: #507d90; font-size: 11px; }

/* Hero */
.pm-hero { margin-bottom: 26px; }
.pm-kicker { font: 600 10px "Space Grotesk", sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: #00c8ff; margin-bottom: 9px; }
.pm-title { font: 700 clamp(28px, 5vw, 44px)/1.05 "Space Grotesk", sans-serif; letter-spacing: -1.5px; margin: 0; max-width: 720px; }
.pm-sub { color: #7fb4c8; font-size: 14px; max-width: 640px; margin: 10px 0 0; }

/* Cards + grid */
.pm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.pm-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-stack { display: grid; gap: 14px; align-content: start; }
.pm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.pm-card { background: #061522; border: 1px solid rgba(107,181,204,.17); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.pm-grid .pm-card, .pm-stats .pm-card, .pm-stack .pm-card { margin-bottom: 0; }
.pm-card.accent { border-color: rgba(0,200,255,.28); }
.pm-card.clinical { border-top: 2px solid #00c8ff; }
.pm-card.next { border-inline-start: 2px solid #00c8ff; background: linear-gradient(90deg, rgba(0,200,255,.06), transparent 55%), #061522; }
[dir="rtl"] .pm-card.next { background: linear-gradient(270deg, rgba(0,200,255,.06), transparent 55%), #061522; }
.pm-card h2 { font: 600 17px "Space Grotesk", sans-serif; margin: 0 0 10px; }
.pm-card h3 { font: 600 14px "Space Grotesk", sans-serif; margin: 0 0 3px; }
.pm-label { font: 600 10px "Space Grotesk", sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #507d90; margin-bottom: 6px; }
.pm-muted { color: #7fb4c8; font-size: 12.5px; margin: 4px 0; }
.pm-metric { font: 700 30px "Space Grotesk", sans-serif; letter-spacing: -1px; }
.pm-metric small { font: 500 12px Inter, sans-serif; color: #507d90; letter-spacing: 0; }
.pm-metric.warn { color: #ffbd4a; }
.pm-metric.ok { color: #00ffb2; }
.pm-count { font: 600 12px "Space Grotesk", sans-serif; color: #00c8ff; border: 1px solid rgba(0,200,255,.28); border-radius: 999px; padding: 2px 9px; margin-inline-start: 7px; vertical-align: 2px; }
.pm-row { display: flex; gap: 12px; align-items: center; }
.pm-row.between { justify-content: space-between; align-items: flex-start; }

/* Status rows (overview plan/evidence cards) */
.pm-status {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid rgba(107,181,204,.1);
}
.pm-status:last-child { border-bottom: none; padding-bottom: 0; }
.pm-status:first-child { padding-top: 0; }
.pm-stat-icon { font-size: 15px; line-height: 1; flex: none; }
.pm-status-label { color: #7fb4c8; font-size: 13px; flex: 1; }
.pm-status-value { font: 600 13px "Space Grotesk", sans-serif; color: #e8f6fb; text-align: end; }

/* Lists */
.pm-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 9px; }
.pm-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 14px; border: 1px solid rgba(107,181,204,.14);
  border-radius: 11px; background: #03101a;
}
.pm-item > div:first-of-type, .pm-item > div:nth-child(2) { flex: 1; min-width: 0; }
.pm-item.slim { padding: 11px 13px; align-items: center; }
.pm-item.change { align-items: center; }
.pm-changekind { font: 600 9.5px "Space Grotesk", sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #00c8ff; margin-bottom: 4px; }
.pm-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #00ffb2; margin-top: 6px; }
.pm-dot.high { background: #ff6b78; }
.pm-dot.moderate { background: #ffbd4a; }
.pm-pill {
  flex: none; font: 500 10px "Space Grotesk", sans-serif; letter-spacing: .4px;
  padding: 4px 8px; border-radius: 5px;
  color: #ffbd4a; background: rgba(255,189,74,.08); border: 1px solid rgba(255,189,74,.18);
}
.pm-pill.high { color: #ff6b78; background: rgba(255,107,120,.08); border-color: rgba(255,107,120,.2); }
.pm-pill.safe, .pm-pill.low { color: #00ffb2; background: rgba(0,255,178,.06); border-color: rgba(0,255,178,.18); }

/* Buttons */
.pm-btn {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 44px; padding: 0 18px; border-radius: 9px;
  border: 1px solid rgba(0,200,255,.28); background: transparent; color: #00c8ff;
  font: 600 13px "Space Grotesk", sans-serif;
  transition: filter .18s, background .18s, border-color .18s, color .18s;
}
.pm-btn:hover { background: rgba(0,200,255,.07); }
.pm-btn.primary { border: 0; background: linear-gradient(135deg, #00c8ff, #0055ff); color: #020c14; }
.pm-btn.primary:hover { filter: brightness(1.1); }
.pm-btn.ghost { border-color: rgba(107,181,204,.25); color: #7fb4c8; }
.pm-btn.danger { border-color: rgba(255,90,90,.35); color: #ff8080; }
.pm-btn.danger:hover { background: rgba(255,90,90,.08); }
.pm-btn.small { min-height: 38px; padding: 0 14px; font-size: 12px; flex: none; }
.pm-btn.wide { width: 100%; margin-top: 12px; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pm-actions.center { justify-content: center; }

/* Forms */
.pm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 6px 0 4px; }
.pm-field { display: grid; gap: 6px; }
.pm-field.wide { grid-column: 1 / -1; }
.pm-field label { font: 600 11.5px "Space Grotesk", sans-serif; color: #a9cbd8; }
.pm-input, .pm-select {
  width: 100%; min-height: 44px; padding: 0 13px;
  border: 1px solid rgba(107,181,204,.2); border-radius: 9px;
  background: #03101a; color: #dff4ff; font: 400 13px Inter, sans-serif;
}
.pm-input:focus, .pm-select:focus { border-color: #00c8ff; outline: none; }
/* Item 7 — 16px floor on phone/tablet so iOS Safari doesn't auto-zoom on focus. */
@media (max-width:1024px) {
  .pm-input, .pm-select { font-size: 16px; }
}
/* Item 7 — email/password are inherently Latin/ASCII content; force LTR so
   they render correctly even inside a Hebrew/Arabic RTL page layout. */
.pm-root input[type="email"], .pm-root input[type="password"] { direction: ltr; text-align: left; }
.pm-checkrow { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 13px 0; }
.pm-check { display: inline-flex; align-items: center; gap: 8px; color: #a9cbd8; font-size: 12.5px; }
.pm-check input { accent-color: #00c8ff; width: 15px; height: 15px; }

/* Steps */
.pm-steps { display: flex; gap: 4px; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: pm-step; overflow-x: auto; scrollbar-width: none; }
.pm-steps li {
  counter-increment: pm-step; white-space: nowrap;
  font: 500 10.5px "Space Grotesk", sans-serif; letter-spacing: .6px; text-transform: uppercase;
  color: #507d90; padding: 8px 13px; border: 1px solid rgba(107,181,204,.14); border-radius: 999px;
}
.pm-steps li::before { content: counter(pm-step) " · "; color: inherit; }
.pm-steps li.done { color: #00c8ff; border-color: rgba(0,200,255,.28); background: rgba(0,200,255,.04); }
.pm-steps li.active { color: #020c14; border-color: #00c8ff; background: #00c8ff; font-weight: 700; }

/* Notices + empty states */
.pm-notice {
  margin: 13px 0 0; padding: 12px 14px; border-radius: 9px; font-size: 12px; line-height: 1.55;
  border: 1px solid rgba(107,181,204,.2); background: #03101a; color: #a9cbd8;
}
.pm-notice.warn { border-color: rgba(255,189,74,.22); background: rgba(255,189,74,.05); color: #ffd78d; }
.pm-notice.ok { border-color: rgba(0,255,178,.2); background: rgba(0,255,178,.04); color: #8df5d2; }
.pm-empty { padding: 26px 20px; border: 1px dashed rgba(107,181,204,.25); border-radius: 12px; text-align: center; }
.pm-empty h3 { font: 600 15px "Space Grotesk", sans-serif; margin: 0 0 6px; color: #a9cbd8; }
.pm-empty p { color: #7fb4c8; font-size: 12.5px; max-width: 460px; margin: 0 auto; }
.pm-empty.big { padding: 44px 24px; }
.pm-pulse { animation: pm-pulse 1.4s ease-in-out infinite; }
@keyframes pm-pulse { 50% { opacity: .45; } }

/* Dose report */
.pm-range { font: 700 42px "Space Grotesk", sans-serif; letter-spacing: -2px; color: #00c8ff; margin: 4px 0 8px; }
.pm-range small { font: 500 15px "Space Grotesk", sans-serif; letter-spacing: 0; }
.pm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 16px; font-size: 12.5px; }
.pm-facts > div { border: 1px solid rgba(107,181,204,.14); border-radius: 10px; padding: 12px; background: #03101a; }

/* Adherence meter */
.pm-meter { height: 6px; border-radius: 6px; background: #0a2333; overflow: hidden; margin-top: 10px; }
.pm-meter span { display: block; height: 100%; background: linear-gradient(90deg, #00c8ff, #00ffb2); }

/* Experiment chart — real data only */
.pm-chart {
  height: 130px; display: flex; align-items: flex-end; gap: 4px;
  border-inline-start: 1px solid rgba(107,181,204,.2); border-bottom: 1px solid rgba(107,181,204,.2);
  padding: 10px 8px 0; margin: 16px 0 6px;
}
.pm-chart i { flex: 1; min-width: 5px; max-width: 26px; border-radius: 2px 2px 0 0; background: rgba(127,180,200,.3); border-top: 2px solid #7fb4c8; }
.pm-chart i.test { background: rgba(0,200,255,.25); border-top-color: #00c8ff; }
.pm-chartkey { display: flex; gap: 16px; font-size: 10.5px; color: #507d90; margin-bottom: 4px; }
.pm-chartkey span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: 5px; vertical-align: -1px; }
.pm-chartkey .baseline::before { background: #7fb4c8; }
.pm-chartkey .test::before { background: #00c8ff; }
.pm-scale { display: flex; gap: 8px; }
.pm-scale label { flex: 1; }
.pm-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-scale span {
  display: grid; place-items: center; min-height: 44px;
  border: 1px solid rgba(107,181,204,.2); border-radius: 8px;
  background: #03101a; color: #7fb4c8; font: 600 14px "Space Grotesk", sans-serif;
  transition: color .15s, border-color .15s, background .15s;
}
.pm-scale input:checked + span { color: #00c8ff; border-color: #00c8ff; background: rgba(0,200,255,.07); }
.pm-scale input:focus-visible + span { outline: 2px solid #00c8ff; outline-offset: 2px; }
.pm-checkin { display: grid; gap: 13px; margin: 14px 0; }

.pm-check { font-size: 13px; }

/* Confirm modal */
.pm-modal-backdrop {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center;
  background: rgba(2,12,20,.8); padding: 20px;
}
.pm-modal {
  width: 100%; max-width: 520px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(9,31,46,.98), rgba(4,18,29,.99));
  border: 1px solid rgba(0,200,255,.28); border-radius: 20px; padding: 28px;
  box-shadow: 0 32px 100px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.025) inset;
}
.pm-modal::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, #00c8ff, #0055ff, transparent); opacity: .75; }
.pm-modal h3 { font: 700 22px "Space Grotesk", sans-serif; letter-spacing: -.45px; margin: 0 0 6px; }
.acct-identity { margin: 18px 0 4px; padding: 16px; border: 1px solid rgba(107,181,204,.16); border-radius: 13px; background: rgba(2,12,20,.56); }
.acct-identity-email { font: 600 14px "Space Grotesk",sans-serif; color: #dff4ff; overflow-wrap: anywhere; }
.acct-session-note { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; padding: 12px 14px; border: 1px solid rgba(0,255,178,.18); border-radius: 11px; background: rgba(0,255,178,.045); color: #a9e9d5; font-size: 12.5px; line-height: 1.55; }
.acct-session-note::before { content: "✓"; display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; background: rgba(0,255,178,.1); color: #00ffb2; font-weight: 800; }
.acct-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.acct-action-grid .pm-btn { width: 100%; margin: 0; }
.acct-secondary-actions { display: grid; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(107,181,204,.12); }

/* Contextual entry buttons in the free app */
.pm-entry {
  display: flex; align-items: center; gap: 13px; width: 100%;
  margin-top: 14px; padding: 15px 17px; text-align: start;
  border: 1px solid rgba(0,200,255,.28); border-radius: 13px;
  background: linear-gradient(110deg, rgba(0,200,255,.1), rgba(0,85,255,.04));
  color: #dff4ff; cursor: pointer; transition: border-color .18s, background .18s;
}
.pm-entry:hover { border-color: rgba(0,200,255,.5); background: linear-gradient(110deg, rgba(0,200,255,.16), rgba(0,85,255,.07)); }
.pm-entry-mark { color: #00c8ff; font-size: 17px; }
.pm-entry b { display: block; font: 600 13.5px "Space Grotesk", sans-serif; }
.pm-entry small { display: block; margin-top: 2px; color: #7fb4c8; font: 400 11.5px Inter, sans-serif; }

/* One quiet insight line in My Daily Routine — not a permanent ad, so it stays
 * understated: no card chrome, no bold claim, just a single sentence + accent. */
.pm-insight {
  display: flex; align-items: center; gap: 9px; width: 100%;
  margin: 12px 0; padding: 11px 15px; text-align: start;
  border: 1px solid rgba(107,181,204,.16); border-radius: 10px;
  background: #061522; color: #a9cbd8; font: 400 12.5px Inter, sans-serif; line-height: 1.5;
  cursor: pointer; transition: border-color .18s, color .18s;
}
.pm-insight:hover { border-color: rgba(0,200,255,.35); color: #dff4ff; }
.pm-insight-mark { flex: none; color: #00c8ff; font-size: 13px; }

/* Ask BioSync Premium — full-page AI advisor, see public/premium/ask-ui.js */
.ask-shell { max-width: 760px; height: 100%; }
.ask-screen { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ask-kicker { font: 600 10px "Space Grotesk", sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: #00c8ff; margin-bottom: 9px; }
.ask-greeting { font: 700 clamp(24px, 4.5vw, 36px)/1.1 "Space Grotesk", sans-serif; letter-spacing: -1px; margin: 0 0 6px; }
.ask-clear { align-self: flex-start; margin-top: 10px; border: 0; background: none; color: #507d90; font: 600 11.5px "Space Grotesk", sans-serif; text-decoration: underline; cursor: pointer; }
.ask-clear:hover { color: #7fb4c8; }
.ask-transcript { flex: 1; min-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; padding-right: 2px; }
.ask-msg { max-width: 84%; padding: 12px 15px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }
.ask-msg.user { align-self: flex-end; background: linear-gradient(135deg, rgba(0,200,255,.16), rgba(0,85,255,.09)); color: #dff4ff; border: 1px solid rgba(0,200,255,.28); border-bottom-right-radius: 4px; }
[dir="rtl"] .ask-msg.user { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
.ask-msg.assistant { align-self: flex-start; background: #061522; color: #a9cbd8; border: 1px solid rgba(107,181,204,.17); border-bottom-left-radius: 4px; }
[dir="rtl"] .ask-msg.assistant { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.ask-msg.thinking { color: #7fb4c8; }
.ask-thinking { display: flex; align-items: center; gap: 12px; }
.ask-thinking-label { color: #7fb4c8; }

/* "Always thinking" orb — a rotating cyan/blue ring with a pulsing glowing
 * core, in two sizes: full (the loading bubble) and .mini (a persistent
 * ambient heartbeat next to the kicker, so the advisor reads as alive even
 * at rest, not just while a request is in flight). */
.ask-orb { position: relative; display: inline-block; width: 26px; height: 26px; flex: none; vertical-align: -8px; }
.ask-orb.mini { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 8px; }
.ask-orb i:first-child {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, #00c8ff 35%, transparent 60%, #0055ff 85%, transparent 100%);
  animation: ask-orb-spin 1.7s linear infinite;
}
.ask-orb i:last-child {
  position: absolute; inset: 4px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #8ef1ff, #00c8ff 45%, #0055ff 100%);
  box-shadow: 0 0 10px rgba(0,200,255,.7), 0 0 2px rgba(0,200,255,.9);
  animation: ask-orb-pulse 1.7s ease-in-out infinite;
}
.ask-orb.mini i:first-child { inset: -2px; animation-duration: 2.6s; }
.ask-orb.mini i:last-child { inset: 2px; animation-duration: 2.6s; box-shadow: 0 0 6px rgba(0,200,255,.6); }
@keyframes ask-orb-spin { to { transform: rotate(360deg); } }
@keyframes ask-orb-pulse { 0%, 100% { transform: scale(.82); opacity: .92; } 50% { transform: scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ask-orb i { animation: none !important; }
}
.ask-starters { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 6px 0; }
.ask-starter { text-align: start; padding: 10px 14px; border-radius: 11px; border: 1px solid rgba(107,181,204,.2); background: #03101a; color: #a9cbd8; font: 400 13px Inter, sans-serif; cursor: pointer; transition: border-color .18s, color .18s; }
.ask-starter:hover { border-color: rgba(0,200,255,.4); color: #dff4ff; }
.ask-composer { display: flex; gap: 10px; align-items: flex-end; position: sticky; bottom: 0; background: #020c14; padding-top: 8px; }
.ask-input { flex: 1; min-height: 44px; max-height: 140px; padding: 12px 14px; border: 1px solid rgba(107,181,204,.2); border-radius: 12px; background: #03101a; color: #dff4ff; font: 400 13.5px Inter, sans-serif; resize: none; }
.ask-input:focus { border-color: #00c8ff; outline: none; }
.ask-composer .pm-btn { flex: none; }

/* Motion + responsive + RTL */
.pm-screen { animation: pm-in .16s ease-out; }
@keyframes pm-in { from { opacity: .5; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .pm-screen, .pm-pulse { animation: none; }
  .pm-root * { transition: none !important; }
}
@media (max-width: 760px) {
  .pm-shell { padding: 0 14px 32px; }
  .pm-top { margin: 0 -14px; padding: 0 14px; height: 60px; }
  .pm-screen { padding-top: 24px; }
  .pm-grid, .pm-grid.three, .pm-form, .pm-facts { grid-template-columns: 1fr; }
  .pm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pm-card { padding: 16px; }
  .pm-card.stat { padding: 12px; }
  .pm-metric { font-size: 24px; }
  .pm-title { letter-spacing: -1px; }
  .pm-item.change { flex-wrap: wrap; }
  .pm-item.change .pm-btn { width: 100%; }
  .ask-msg { max-width: 92%; }
  .pm-modal { padding: 22px 18px; border-radius: 16px; }
  .acct-action-grid { grid-template-columns: 1fr; }
}
