/* MIA hero phone (t157) — shared coded phone screen for the hero iPhone frame (.mk-phone > .mk-pscreen).
   Same look and loop as the Ceny phone (t140): dark glass app UI, brand colours, Lucide icons; a typed query, its chip
   lights up, the matching cards rise in. Content per page = that page's own real items (_build/phone_mock.py).
   Sized for the 200px frame; the frame scales with the hero (--ps), so it fits wherever the hero visual is shown.
   Markup: .mph[data-mph] > .mph-sb, .mph-h, .mph-q, .mph-chips, .mph-list > .mph-res[data-q][data-cat] > li, .mph-tab */
.mk-pscreen.mph-host{background:#0B1A24}
.mph{--acc:#13B8EE;--acc-soft:rgba(19,184,238,.14);--acc-bd:rgba(19,184,238,.42);position:absolute;inset:0;display:flex;flex-direction:column;gap:7px;
  padding:0 9px;color:#F3F7F9;font-size:10.5px;line-height:1.3;text-align:left;
  background:radial-gradient(120% 50% at 100% 0%,rgba(19,184,238,.16),transparent 60%),radial-gradient(100% 40% at 0% 100%,rgba(255,160,79,.10),transparent 60%),#0B1A24}
.mph svg{display:block}
/* status bar */
.mph-sb{flex:none;height:30px;display:flex;align-items:center;justify-content:space-between;padding:4px 9px 0 13px;font-size:10.5px}
.mph-sb b{font-weight:750;letter-spacing:-.01em}
.mph-sig{margin-left:auto;display:flex;align-items:flex-end;gap:1.5px;height:8px}
.mph-sig i{display:block;width:2.5px;border-radius:1px;background:#F3F7F9}
.mph-sig i:nth-child(1){height:3px}.mph-sig i:nth-child(2){height:4.5px}.mph-sig i:nth-child(3){height:6px}.mph-sig i:nth-child(4){height:8px;opacity:.4}
.mph-bat{margin-left:5px;width:17px;height:8.5px;border-radius:2.5px;border:1px solid rgba(243,247,249,.55);padding:1px;position:relative}
.mph-bat::after{content:"";position:absolute;right:-2.5px;top:2.2px;width:1.5px;height:3px;border-radius:0 1px 1px 0;background:rgba(243,247,249,.55)}
.mph-bat i{display:block;height:100%;width:72%;border-radius:1px;background:#68E2B4}
/* app header */
.mph-h{flex:none;display:flex;align-items:center;gap:7px;padding:2px 2px 0}
.mph-ava{flex:none;width:24px;height:24px;border-radius:8px;display:grid;place-items:center;color:#04202C;background:linear-gradient(135deg,#8EE3FE,#13B8EE)}
.mph-ava svg{width:13px;height:13px}
.mph-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.mph-who b{font-size:13px;font-weight:750;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mph-who small{font-size:9px;color:#9FB2BC;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mph-pill{flex:none;max-width:74px;overflow:hidden;text-overflow:ellipsis;font-size:8.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;padding:3px 7px;border-radius:999px;white-space:nowrap;
  color:#68E2B4;background:rgba(104,226,180,.12);border:1px solid rgba(104,226,180,.4)}
/* typed query */
.mph-q{flex:none;display:flex;align-items:center;gap:6px;height:28px;padding:0 9px;border-radius:10px;background:rgba(255,255,255,.05);border:1px solid rgba(19,184,238,.5);box-shadow:0 0 0 3px rgba(19,184,238,.1)}
.mph-q svg{width:12px;height:12px;color:#8EE3FE;flex:none}
.mph-typed{font-size:11px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden}
.mph-caret{flex:none;width:1.5px;height:12px;background:#8EE3FE;animation:mph-blink 1s steps(2,start) infinite}
@keyframes mph-blink{to{visibility:hidden}}
/* chips: icon pills open with their label when active; text chips always show the label */
.mph-chips{flex:none;margin:0;padding:0;list-style:none;display:flex;gap:4px;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
.mph-chips li{flex:none;display:flex;align-items:center;padding:5px 6px;border-radius:999px;font-size:9.5px;font-weight:650;color:#8FA3AE;white-space:nowrap;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);transition:color .3s,background .3s,border-color .3s}
.mph-chips li svg{width:12px;height:12px;color:var(--acc)}
.mph-chips li.mph-ic span{max-width:0;opacity:0;overflow:hidden;transition:max-width .4s ease,opacity .3s ease,margin .4s ease}
.mph-chips li.mph-tx{padding:5px 8px}
.mph-chips li.is-on{color:#fff;background:var(--acc-soft);border-color:var(--acc-bd)}
.mph-chips li.mph-ic.is-on{padding-right:8px}
.mph-chips li.mph-ic.is-on span{max-width:96px;opacity:1;margin-left:5px}
/* result cards */
.mph-list{position:relative;flex:1;min-height:0;display:grid;overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,#000 78%,transparent);mask-image:linear-gradient(180deg,#000 78%,transparent)}
.mph-res{grid-area:1/1;margin:0;padding:0;list-style:none;display:none;flex-direction:column;gap:6px}
.mph-res.is-on{display:flex}
.mph-res li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px 7px;padding:7px 9px 7px 10px;border-radius:11px;
  background:linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.12);box-shadow:inset 3px 0 0 var(--acc),0 8px 20px rgba(0,0,0,.22);
  opacity:0;transform:translateY(8px);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.7,.2,1)}
.mph-res.is-in li{opacity:1;transform:none}
.mph-res.is-in li:nth-child(2){transition-delay:.12s}.mph-res.is-in li:nth-child(3){transition-delay:.24s}.mph-res.is-in li:nth-child(4){transition-delay:.36s}
.mph-dot{flex:none;width:6px;height:6px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 2.5px var(--acc-soft)}
.mph-n{min-width:0;font-size:10px;font-weight:650;color:#C9D6DE;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mph-p{grid-column:1/-1;font-size:9px;color:#9FB2BC;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mph-p b{font-size:15px;font-weight:800;color:#fff;letter-spacing:-.01em}
.mph-res li.mph-row .mph-n{font-size:10.5px;color:#F3F7F9;white-space:normal;line-height:1.25}
/* tab bar */
.mph-tab{flex:none;margin:0 -9px;height:44px;padding:0 14px 8px;display:flex;align-items:center;justify-content:space-between;
  border-top:1px solid rgba(255,255,255,.08);background:rgba(7,20,28,.85)}
.mph-tab i{display:grid;place-items:center;width:30px;height:24px;border-radius:9px;color:#6F8591}
.mph-tab i svg{width:15px;height:15px}
.mph-tab i.is-on{color:#8EE3FE;background:rgba(19,184,238,.14)}
@media (prefers-reduced-motion:reduce){.mph-res li{transition:none}.mph-caret{animation:none}.mph-chips li.mph-ic span{transition:none}}
