/* Pravah on a phone (js/phone.js): app-style top bar with the brand, bottom sheets, the phone Record step and the teleprompter. */
.bchip{display:none}
@media (max-width:760px){
 body{overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}
 .top{flex-wrap:wrap;padding:max(8px,env(safe-area-inset-top)) 14px 8px;row-gap:4px;position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--p0,var(--p1)) 94%,transparent);backdrop-filter:blur(10px)}
 .top h1{order:9;width:100%;font:600 24px/1.2 var(--serif);margin:2px 0 0}
 .top [data-act=picker],.top [data-act=notes]{display:none}
 .top .ib{width:40px;height:40px}
 .bchip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:4px 10px 4px 4px;border:1px solid var(--line);border-radius:999px;background:var(--p1);color:var(--ink);font:600 14px/1 var(--sans,inherit);max-width:62vw}
 .bchip .logo{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700;font-size:14px;flex:none}
 .bchip .bn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 /* every dialog is a bottom sheet, reachable with the thumb */
 .modal,.cmd.modal{left:0;right:0;top:auto!important;bottom:0;transform:none;width:100%;max-height:88dvh;border-radius:20px 20px 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom));border-left:0;border-right:0;border-bottom:0;animation:phsheet .22s ease-out}
 .modal::before{content:"";display:block;width:40px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 12px}
 .modal .opt{min-height:52px}
 .tabbar a,.tabbar button{min-height:48px;font-size:11px}
 .btn{min-height:44px}
 .btn.sm{min-height:36px}
}
@keyframes phsheet{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.phsteps{padding-left:20px;line-height:1.6}.phsteps li{margin:6px 0}
.phbrand{border:1px solid var(--line);border-radius:12px;margin:8px 0 4px}

/* ---------- Record on a phone ---------- */
.phrec{display:flex;flex-direction:column;gap:12px;max-width:560px;margin:0 auto}
.phrec .card{padding:16px;border-radius:16px}
.phk{font:700 11px/1.2 var(--sans,inherit);letter-spacing:.08em;text-transform:uppercase;color:var(--ink3);margin-bottom:6px}
.phrec .phmain h2{font:600 21px/1.25 var(--serif);margin:0 0 2px;text-transform:none;letter-spacing:0;color:var(--ink)}
.phbig{width:100%;justify-content:center;min-height:54px;font-size:16px;margin-top:10px;border-radius:14px}
.phrow{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.phrow .btn{justify-content:center;font-size:13.5px;white-space:normal;text-align:center;line-height:1.2;min-height:48px}
.phwhere{margin:12px 0 0;line-height:1.45}
.phup progress{width:100%;height:10px;margin:10px 0 4px;accent-color:var(--rec)}
.phup small{display:block}
.phup.bad{border-color:var(--warn)}
.phytr,.phtk{display:flex;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.phytr:first-of-type,.phtk:first-of-type{border-top:0}
.phtk img{width:64px;height:40px;object-fit:cover;border-radius:6px;background:#000;flex:none}
.phdot{width:10px;height:10px;border-radius:50%;background:var(--ink3);flex:none;align-self:flex-start;margin-top:5px}
.phdot.processing,.phdot.fetching,.phdot.sending{background:#e0a53b;animation:phpulse 1.4s infinite}
.phdot.failed{background:var(--warn)}
@keyframes phpulse{50%{opacity:.35}}
.phstar{color:var(--ok,#2e8b57);font-weight:600}
.phmore{align-self:center;margin:4px 0 8px}

/* ---------- the phone teleprompter ---------- */
.phtp{position:fixed;inset:0;z-index:200;background:#000;color:#fff;overflow:hidden;touch-action:none;user-select:none}
.phtp video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.phtp video.mirror{transform:scaleX(-1)}
.phband{position:absolute;background:linear-gradient(#000d,#000b 80%,#0000);z-index:2}
.phband>div{position:absolute;inset:0}
.phband .pv-stage{-webkit-mask-image:linear-gradient(#000 0,#000 80%,transparent);mask-image:linear-gradient(#000 0,#000 80%,transparent)}
.phband .pv-text{text-shadow:0 1px 3px #000}
.phband .pv-text p{margin:0 0 .35em}
.phband .pv-count{font-size:72px}
/* upright: the words fill the top, by the lens */
.phtp.port .phband{top:0;left:0;right:0;height:36%;padding-top:env(safe-area-inset-top)}
/* turned: the words sit on the lens side, the buttons on the other */
.phtp.land .phband{top:0;bottom:0;width:44%;background:linear-gradient(90deg,#000d,#000b 85%,#0000)}
.phtp.land.camL .phband{left:0;padding-left:env(safe-area-inset-left)}
.phtp.land.camR .phband{right:0;background:linear-gradient(270deg,#000d,#000b 85%,#0000);padding-right:env(safe-area-inset-right)}
.phctl{position:absolute;z-index:3;display:flex;align-items:center;gap:12px}
.phtp.port .phctl{left:0;right:0;bottom:0;padding:12px 16px calc(14px + env(safe-area-inset-bottom));flex-wrap:wrap;justify-content:center;background:linear-gradient(#0000,#0009)}
.phtp.land .phctl{top:0;bottom:0;width:176px;flex-direction:column;justify-content:center;gap:10px;padding:56px 8px 48px}
.phtp.land.camL .phctl{right:env(safe-area-inset-right)}
.phtp.land.camR .phctl{left:env(safe-area-inset-left)}
.phx{position:absolute;top:calc(8px + env(safe-area-inset-top));right:10px;width:44px;height:44px;border-radius:50%;border:0;background:#0008;color:#fff;display:grid;place-items:center;z-index:4}
.phtp.port .phx{top:auto;bottom:calc(22px + env(safe-area-inset-bottom));left:16px;right:auto}
.phtp.land .phx{position:absolute;top:calc(8px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);right:auto}
.phtp.land .phtime{position:absolute;bottom:12px;left:50%;transform:translateX(-50%)}
.phx svg{width:22px;height:22px}
.phtime{font:600 15px/1 ui-monospace,monospace;background:#0008;padding:6px 10px;border-radius:999px;min-width:56px;text-align:center}
.phtp.port .phtime{position:absolute;right:16px;bottom:calc(32px + env(safe-area-inset-bottom))}
.phtp.recording .phtime{background:var(--rec,#e0483b)}
.phrecb{width:76px;height:76px;border-radius:50%;border:4px solid #fff;background:transparent;display:grid;place-items:center;padding:0;flex:none}
.phrecb i{width:58px;height:58px;border-radius:50%;background:var(--rec,#e0483b);transition:all .2s}
.phtp.recording .phrecb i{width:30px;height:30px;border-radius:8px}
.phtools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:center;width:100%;order:9}
.phtp.land .phtools{display:grid;grid-template-columns:repeat(3,48px);gap:6px;width:auto}
.phtp.land .phtools #phvoice{grid-column:span 3}
.phtp.land .phtools button{min-width:0;padding:0}
.phtp.land .phrecb{width:64px;height:64px}.phtp.land .phrecb i{width:48px;height:48px}
.phtools button{min-width:44px;height:40px;border-radius:999px;border:1px solid #fff4;background:#0008;color:#fff;font:600 13px/1 var(--sans,inherit);padding:0 12px}
.phtools button.on{background:#fff;color:#000}
.phtools svg{width:18px;height:18px}
.phtools #phspd{min-width:28px;text-align:center;font:600 13px/1 ui-monospace,monospace}
.phtp.recording .phtools{opacity:.45}
.phtip{width:100%;text-align:center;font-size:12px;color:#ddd;margin:0;order:10}
.phtip:empty{display:none}
.phtp.land .phtip{font-size:11px}
