/* Jarvish One: app shell (from M07Home: top row, talk bar, tab bar). Screen CSS is in screens.css, app tweaks in app.css. */
html,body{margin:0;padding:0;height:100%;background:#e9eef5}
body{overscroll-behavior-y:none}
#app{height:100%}
.app,.app *{box-sizing:border-box}
.app{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#0b1430;background:#f4f7fb;position:relative;-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.4;
  width:100%;max-width:430px;margin:0 auto;height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.app a{color:inherit;text-decoration:none}
.app p{margin:0}
.app button{-webkit-tap-highlight-color:transparent}
.app a,.app button,.app input,.app label{-webkit-tap-highlight-color:transparent}
.ic{width:18px;height:18px;flex:0 0 18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* top bar */
.top{height:calc(56px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);flex:none;background:#fff;border-bottom:1px solid #e3e8f0;display:flex;align-items:center;gap:10px;padding-left:16px;padding-right:16px}
.top .mark{width:34px;height:34px;border-radius:50%;background:var(--brand,#d98a00);color:#fff;display:flex;align-items:center;justify-content:center;flex:none;font-weight:700;font-size:15px}
.top .mark .ic{width:17px;height:17px;flex-basis:17px}
.top .ttl{flex:1;min-width:0;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app .me{width:34px;height:34px;border-radius:50%;background:#eef4ff;border:1px solid #cfdcff;color:#0d4fd1;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex:none}

/* talk bar */
.talk{flex:none;height:72px;padding:0 16px;display:flex;align-items:center;gap:10px;background:#f4f7fb}
.talk .field{flex:1;min-width:0;height:50px;border-radius:25px;border:1px solid #dfe5ee;background:#fff;padding:0 18px;font:inherit;font-size:15px;color:#0b1430}
.talk .field::placeholder{color:#5f6b7e}
.mic{width:50px;height:50px;flex:none;border-radius:50%;border:0;background:#1565ff;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;box-shadow:0 0 0 5px #e3ecff}
.mic .ic{width:22px;height:22px;flex-basis:22px}

/* tab bar */
.tabs{flex:none;height:calc(70px + env(safe-area-inset-bottom,0px));padding:6px 6px env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid #e3e8f0;display:flex;align-items:stretch}
.app .tab{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:600;color:#5f6b7e;position:relative;border-radius:10px}
.tab .ic{width:24px;height:24px;flex-basis:24px;stroke-width:1.6}
.app .tab.on{color:#1565ff}
.tab .dot{position:absolute;top:8px;right:calc(50% - 17px);width:9px;height:9px;border-radius:50%;background:#d98a00;border:2px solid #fff}
.tab .badge{position:absolute;top:5px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0;border-radius:9px;background:#d98a00;color:#0b1430;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #fff;box-sizing:content-box}
.tab .face{width:22px;height:22px;border-radius:50%;object-fit:cover;display:block;background:#0b1430;margin:1px 0}
.tab.on .face{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #1565ff}

/* hidden for sight, kept for screen readers */
.vh,.sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.app :focus-visible{outline:2px solid #1565ff;outline-offset:2px}
.app [hidden]{display:none!important}
