/* iPhone-messaging-inspired look (own colours and shapes; no third-party logos or assets). Loaded after style.css. */
:root{--b:#00a884;--b2:#25d366;--bl:#e7f8f1;--bg:#f2f2f7;--t:#111b21;--m:#667781;--ln:#e5e5ea;--ok:#1fa855;--bad:#e5484d;--warn:#f5a524}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Tahoma,"Segoe UI",Cairo,Arial,sans-serif;background:var(--bg)}
#frame{background:var(--bg)}
a{color:#008069}
/* top bar: translucent, hairline */
.top{background:rgba(249,249,249,.94);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);border-bottom:.5px solid #d1d1d6;padding:8px 14px}
.top .brand{color:var(--t);font-size:17px;font-weight:700}
.top .ic{background:transparent;color:#008069;border-radius:50%;width:36px;height:36px}
.badge{background:var(--b2);color:#fff}
h1{font-size:28px;font-weight:800;letter-spacing:-.3px;margin:6px 2px 12px}
/* bottom tab bar: flat, full width, iOS style */
.bottom{bottom:0;left:0;right:0;transform:none;width:100%;max-width:none;border-radius:0;background:rgba(249,249,249,.94);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);border-top:.5px solid #d1d1d6;padding:6px 4px calc(6px + env(safe-area-inset-bottom));gap:0}
body.v-mobile .bottom{max-width:430px;left:50%;right:auto;transform:translateX(-50%)}
body.v-tablet .bottom{max-width:820px;left:50%;right:auto;transform:translateX(-50%)}
.bottom a{color:#8e8e93;border-radius:0;background:none!important;font-size:10.5px;padding:4px 2px}.bottom a.on{color:#008069}
.bottom a svg{stroke-width:2}
/* grouped inset cards, no borders */
.card,.kpi,.quad{border:0;border-radius:12px;box-shadow:none}
.kpi b{color:var(--t)}
.btn{background:var(--b);border-radius:22px;padding:10px 18px}.btn.sec{background:var(--bl);color:#008069}.btn.red{background:#ffecec;color:var(--bad)}
.chip{background:var(--bl);color:#008069}
input,select,textarea{border:0;background:#fff;border-radius:10px;box-shadow:inset 0 0 0 1px var(--ln)}
input:focus,select:focus,textarea:focus{outline:0;box-shadow:inset 0 0 0 2px var(--b2)}
/* segmented tabs */
.tabs button{border:0;background:#e3e3e8;color:var(--t);border-radius:16px}.tabs button.on{background:var(--b);color:#fff}
/* sheets */
.modal{background:rgba(0,0,0,.4)}.modal>div{border-radius:14px 14px 0 0;background:#f2f2f7}
.toast{background:#111b21;border-radius:20px}
.side{background:#fff}.side a.on,.side a:hover{background:var(--bl);color:#008069}
.logo{background:linear-gradient(135deg,#25d366,#00a884)}
.big{color:var(--t)}
.pwa-bar{bottom:calc(66px + env(safe-area-inset-bottom));border:0}
/* chat-style list (patients) */
.clist{background:#fff;border-radius:12px;overflow:hidden;margin-bottom:12px}
.crow{display:flex;align-items:center;gap:12px;padding:10px 14px;color:var(--t);position:relative}
.crow+.crow:before{content:"";position:absolute;top:0;inset-inline-start:70px;inset-inline-end:0;border-top:.5px solid var(--ln)}
.crow:active{background:#efeff4}
.av{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700;font-size:18px;flex:none}
.cmain{flex:1;min-width:0}.cmain b{display:block;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmain span{display:block;color:var(--m);font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmeta{color:var(--m);font-size:12px;text-align:end;flex:none}
/* settings: grouped list with coloured icon squares */
.sgroup{background:#fff;border-radius:12px;overflow:hidden;margin-bottom:18px}
.srow{display:flex;align-items:center;gap:12px;padding:10px 14px;color:var(--t);position:relative}
.srow+.srow:before{content:"";position:absolute;top:0;inset-inline-start:58px;inset-inline-end:0;border-top:.5px solid var(--ln)}
.srow:active{background:#efeff4}
.sico{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#fff;flex:none}
.srow .st{flex:1;font-size:16px}.srow .chev{color:#c7c7cc;font-size:22px;line-height:1}
.sback{display:inline-flex;align-items:center;gap:4px;color:#008069;font-size:16px;margin:2px 0 6px}
.sprofile{display:flex;align-items:center;gap:14px;background:#fff;border-radius:12px;padding:14px;margin-bottom:18px}
.sprofile .av{width:62px;height:62px;font-size:26px}
@media print{.top,.bottom{display:none!important}}
/* desktop: install banner sits bottom-left (away from the right-hand menu), menu keeps room to scroll fully */
body.v-desktop .pwa-bar{inset-inline:auto;left:16px;right:auto;bottom:16px;max-width:460px}
body.v-desktop .side{padding-bottom:90px}
