:root{color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f7f6;color:#16302f}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
.patient-shell{width:min(100%,680px);margin:0 auto;padding:18px 16px 42px}
.brand{display:flex;align-items:center;gap:10px;margin:4px 2px 18px}.brand img{flex:none;width:42px;height:42px;object-fit:contain}.brand h1{font-size:1.13rem;line-height:1.2;margin:0;letter-spacing:-.015em}.eyebrow{margin:0 0 2px;color:#39716d;font-size:.68rem;font-weight:760;letter-spacing:.1em;text-transform:uppercase}
.card{background:#fff;border:1px solid #dce8e6;border-radius:20px;padding:20px;box-shadow:0 10px 30px rgba(15,74,70,.07)}
h2{margin:0 0 8px;font-size:1.35rem;letter-spacing:-.025em}p{line-height:1.5}.muted{color:#55716e}.notice{padding:10px 12px;border-radius:10px;background:#e8f5f3;color:#155b56}.error{padding:10px 12px;border-radius:10px;background:#fcebea;color:#963d37}
form{display:grid;gap:14px;margin-top:20px}label{display:grid;gap:6px;font-weight:650}input{width:100%;border:1px solid #aac3c0;border-radius:10px;padding:12px;font:inherit}button{appearance:none;border:0;border-radius:11px;background:#0b6e69;color:#fff;min-height:44px;padding:11px 16px;font:inherit;font-weight:720;cursor:pointer}button:hover{background:#075954}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #9ad4ce;outline-offset:2px}button:disabled{cursor:not-allowed;background:#a4b8b5}
.secondary{background:#e5efed;color:#154b47}.secondary:hover{background:#d3e3e0}.placeholders{display:grid;gap:10px;margin-top:24px}.placeholder{border:1px solid #dce8e6;border-radius:14px;padding:15px;background:#fff}.placeholder h3{margin:0 0 5px;font-size:1rem}.dev-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.dashboard-welcome{padding:2px 2px 18px}.dashboard-kicker{margin:0 0 5px;color:#39716d;font-size:.72rem;font-weight:760;letter-spacing:.09em;text-transform:uppercase}.dashboard-welcome h2{font-size:1.55rem}.dashboard-patient-code{margin:4px 0 0;color:#6c8481;font-size:.87rem;font-weight:600}.dashboard-sections{display:grid;gap:14px}.dashboard-card{border:1px solid #dbe9e6;border-radius:16px;padding:17px;background:#fff;box-shadow:0 5px 16px rgba(15,74,70,.035)}.dashboard-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dashboard-card-heading h3{margin:0;font-size:1.02rem;letter-spacing:-.01em}.dashboard-copy{margin:9px 0 14px;color:#55716e;font-size:.93rem}.queue-hero{border-color:#b8ded9;background:#fbfefd;box-shadow:0 9px 22px rgba(11,110,105,.09)}.queue-hero--active{border-color:#075954;background:#0b6e69;color:#fff;box-shadow:0 10px 24px rgba(7,89,84,.23)}.queue-hero--active .dashboard-card-heading h3,.queue-hero--active .queue-value{color:#fff}.queue-hero--active .queue-label{color:rgba(255,255,255,.8)}.queue-hero--active .queue-row{border-color:rgba(255,255,255,.2)}.queue-hero--active .notice{background:rgba(255,255,255,.14);color:#fff}.queue-hero--active .queue-last-updated{color:rgba(255,255,255,.75)}.queue-status{display:inline-flex;align-items:center;justify-content:center;max-width:56%;border-radius:999px;padding:5px 9px;background:#edf3f2;color:#3e6460;font-size:.69rem;font-weight:780;letter-spacing:.04em;text-transform:uppercase;text-align:center}.queue-status--waiting{background:#eaf4fb;color:#176480}.queue-status--called{background:#fff0d8;color:#925b00}.queue-status--in_consultation{background:#e8f5f3;color:#0b6e69}.queue-status--completed{background:#edf2ef;color:#416258}.queue-status--cancelled,.queue-status--no_show{background:#fcebea;color:#963d37}.queue-status--scheduled{background:#f0ecfb;color:#604a96}.queue-status--not.joined{background:#edf3f2;color:#3e6460}.queue-facts{display:grid;gap:0;margin-top:12px}.queue-row{display:grid;grid-template-columns:minmax(104px,.76fr) minmax(0,1.24fr);gap:10px;align-items:baseline;padding:9px 0;border-bottom:1px solid #e0ece9}.queue-row:last-of-type{border-bottom:0}.queue-label{color:#5d7975;font-size:.76rem;font-weight:760;letter-spacing:.03em}.queue-value{color:#173b38;font-size:.94rem;font-weight:720;overflow-wrap:anywhere}.queue-facts .notice{margin:10px 0 0}.queue-last-updated{margin:12px 0 0;font-size:.78rem}.queue-join-button{width:100%;margin-top:4px}.appointment-card{min-height:120px}.appointment-details{display:grid;gap:5px;margin-top:13px}.appointment-details strong{font-size:1.08rem}.appointment-details>span:not(.queue-status){color:#55716e;font-size:.91rem}.appointment-details .queue-status{width:max-content;max-width:100%;margin-top:3px}.quick-actions{display:grid;gap:10px}.quick-action{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;padding:13px;border:1px solid #dbe9e6;background:#fff;color:#173b38;text-align:left;box-shadow:0 4px 12px rgba(15,74,70,.025)}.quick-action:hover{background:#f8fcfb;border-color:#acd4ce}.quick-action-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:11px;background:#e8f5f3;color:#0b6e69}.quick-action-icon svg{width:21px;height:21px}.quick-action-copy{display:grid;gap:2px;min-width:0}.quick-action-copy strong{font-size:.94rem}.quick-action-copy small{color:#55716e;font-size:.78rem;font-weight:560}.dashboard-signout{display:block;min-height:38px;margin:18px auto 0;padding:8px 13px;background:transparent;color:#55716e;font-size:.83rem;font-weight:650}.dashboard-signout:hover{background:#edf4f2;color:#154b47}
.install-controls{display:grid;gap:10px;margin-top:12px}.install-app-button{width:100%;min-height:46px;border:1px solid #0b6e69;background:#fff;color:#0b6e69}.install-app-button:hover{background:#e8f5f3}.install-app-button:focus-visible{outline:3px solid #9ad4ce;outline-offset:2px}.install-controls .notice{margin:0}.install-ios-hint{margin:0;padding:10px 12px;border-radius:10px;background:#f1f6f5;color:#55716e;font-size:.9rem;line-height:1.45}
.patient-developer-footer{margin:28px 0 0;text-align:center;color:#6b827f;font-size:.76rem;line-height:1.45}.patient-developer-footer p{margin:2px 0}
.prescription-history{margin-top:16px}.prescription-history-card{border-style:solid}.prescription-history-card p{margin:4px 0;color:#55716e}.prescription-history-card button{display:inline-block;margin-top:10px}.prescription-detail{display:grid;gap:10px}.prescription-medicine{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid #dce8e6}.prescription-medicine:last-child{border-bottom:0}.prescription-medicine span{color:#55716e;font-size:.94rem}.patient-prescription-actions{display:grid;gap:10px;margin-top:18px}.patient-action{display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:10px;background:#0b6e69;color:#fff;padding:12px 16px;font:inherit;font-weight:700;text-align:center;text-decoration:none}.patient-action:hover{background:#075954}.patient-action:focus-visible{outline:3px solid #9ad4ce;outline-offset:2px}.patient-prescription-actions .secondary{min-height:46px}
.patient-billing{display:grid;gap:12px;margin-top:0}.patient-bill-card{display:grid;gap:14px;border:1px solid #dbe9e6;border-radius:16px;padding:16px;background:#fff;box-shadow:0 5px 16px rgba(15,74,70,.035);overflow-wrap:anywhere}.patient-bill-heading{display:flex;align-items:flex-start;gap:11px}.patient-bill-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:11px;background:#e8f5f3;color:#0b6e69}.patient-bill-icon svg{width:21px;height:21px}.patient-bill-heading h3{margin:1px 0 2px;font-size:1rem}.patient-bill-reference{margin:0;color:#55716e;font-size:.86rem;font-weight:680;overflow-wrap:anywhere}.patient-bill-facts{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:6px 12px;margin:0;padding:11px 0;border-top:1px solid #e5efed;border-bottom:1px solid #e5efed}.patient-bill-facts dt,.patient-bill-totals dt{color:#66817d;font-size:.68rem;font-weight:760;letter-spacing:.07em;text-transform:uppercase}.patient-bill-facts dd{margin:0;color:#1a3a37;font-size:.9rem;font-weight:640;overflow-wrap:anywhere}.patient-bill-totals{display:grid;gap:0;margin:0}.patient-bill-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px solid #e5efed}.patient-bill-totals>div:last-child{border-bottom:0}.patient-bill-totals dd{margin:0;color:#1a3a37;font-size:.98rem;font-weight:720;white-space:nowrap}.patient-bill-totals .patient-bill-balance--due{color:#945400;font-size:1.05rem}.patient-bill-total--grand{font-size:1.06rem!important}.patient-bill-status{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin:0;padding:5px 9px;border-radius:99px;background:#edf3f2;color:#3e6460;font-size:.72rem;font-weight:780;letter-spacing:.04em;text-transform:uppercase}.patient-bill-status--paid{background:#e8f5f3;color:#155b56}.patient-bill-status--partial{background:#fff0d8;color:#925b00}.patient-bill-status--unpaid{background:#edf3f2;color:#3e6460}.patient-bill-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;width:100%;border:1px solid #b9d8d3;background:#f4faf9;color:#0b6e69}.patient-bill-action:hover{background:#e8f5f3}.patient-bill-action svg{width:17px;height:17px}.patient-billing-empty-state{display:grid;justify-items:center;gap:8px;margin-top:4px;padding:26px 18px;border:1px solid #dbe9e6;border-radius:16px;background:#fbfefd;text-align:center}.patient-billing-empty-state h3{margin:2px 0 0;font-size:1.03rem}.patient-billing-empty-state p{max-width:290px;margin:0;color:#55716e;font-size:.9rem}.patient-bill-detail-header{display:grid;gap:4px}.patient-bill-detail-header .patient-bill-reference{font-size:.95rem}.patient-bill-detail-header .muted{margin:2px 0 0}.patient-bill-detail,.patient-bill-summary,.patient-payment-history{display:grid;gap:12px;margin-top:16px;padding:16px;border:1px solid #dbe9e6;border-radius:16px;background:#fff;box-shadow:0 5px 16px rgba(15,74,70,.035)}.patient-bill-detail h3,.patient-bill-summary h3,.patient-payment-history h3{margin:0;font-size:1rem}.patient-charge-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px;padding:11px 0;border-top:1px solid #e5efed}.patient-charge-item>div{display:grid;gap:3px;min-width:0}.patient-charge-item strong{overflow-wrap:anywhere}.patient-charge-item>div span{color:#55716e;font-size:.88rem}.patient-charge-amount{color:#1a3a37;font-weight:720;white-space:nowrap}.patient-bill-detail-totals{border-top:1px solid #e5efed}.patient-payment-history{margin-bottom:16px}.patient-payment-item{display:grid;gap:9px;padding:12px 0;border-top:1px solid #e5efed}.patient-payment-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px}.patient-payment-heading strong{font-size:.94rem}.patient-payment-amount{color:#1a3a37;font-size:1rem;font-weight:740;white-space:nowrap}.patient-payment-facts{margin:0;color:#55716e;font-size:.9rem;overflow-wrap:anywhere}.patient-receipt-link{display:inline-flex;justify-content:center;align-items:center;min-height:44px;width:100%;padding:9px 12px;border:1px solid #b9d8d3;background:#f4faf9;color:#0b6e69;border-radius:10px;text-decoration:none;font-weight:700}.patient-receipt-link:hover{background:#e8f5f3}.patient-receipt-unavailable,.patient-payments-empty{margin:0;color:#55716e;font-size:.9rem}.patient-payments-empty{padding:12px 0 2px}
@media (min-width:480px){.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-action{min-height:112px;align-items:flex-start}.quick-action-copy{padding-top:2px}}
@media (min-width:600px){.patient-shell{padding:40px 24px 54px}.brand{margin-bottom:22px}.brand img{width:46px;height:46px}.card{padding:28px}.dashboard-welcome{padding:3px 2px 21px}.dashboard-welcome h2{font-size:1.72rem}.dashboard-sections{gap:16px}.dashboard-card{padding:20px}.quick-action{min-height:106px}}
@media (max-width:359px){.patient-shell{padding-left:12px;padding-right:12px}.card{padding:17px}.queue-row{grid-template-columns:1fr;gap:3px}.queue-status{max-width:62%}}
.brand img{width:48px;height:48px}.appointment-card--empty{min-height:0;padding-top:14px;padding-bottom:14px}.appointment-card--empty .dashboard-copy{margin:7px 0 0}.dashboard-signout{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:14px auto 0}.dashboard-signout svg{width:15px;height:15px}.patient-developer-footer{margin-top:22px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.patient-shell{padding-bottom:calc(32px + env(safe-area-inset-bottom))}
.trip-card{border-color:#c9e3df;background:#fbfefd}.trip-details{display:grid;gap:5px;margin-top:12px}.trip-details .dashboard-copy,.trip-details p{margin:0}.trip-distance{color:#173b38;font-size:1rem;font-weight:730}.trip-duration{color:#0b6e69;font-size:1.03rem;font-weight:760}.trip-updated{font-size:.82rem}.trip-actions{display:grid;gap:10px;margin-top:14px}.trip-actions button,.trip-map-link{width:100%;min-height:44px}.trip-map-link{box-sizing:border-box}.trip-error{margin:8px 0 0}
@media (min-width:600px){.brand img{width:50px;height:50px}}
.records-page-header{margin:0 0 12px}.records-page-header h2{margin-bottom:4px}.records-page-header p{margin:0;font-size:.91rem}.records-back{display:inline-flex;align-items:center;gap:6px;min-height:38px;margin:0 0 16px;padding:7px 9px;background:transparent;color:#55716e;font-size:.84rem;font-weight:680}.records-back:hover{background:#edf4f2;color:#154b47}.records-back svg{width:16px;height:16px}.prescription-history{display:grid;gap:12px;margin-top:0}.prescription-record-card{display:grid;gap:14px;border:1px solid #dbe9e6;border-radius:16px;padding:16px;background:#fff;box-shadow:0 5px 16px rgba(15,74,70,.035);overflow-wrap:anywhere}.prescription-record-heading{display:flex;align-items:flex-start;gap:11px}.prescription-record-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:11px;background:#e8f5f3;color:#0b6e69}.prescription-record-icon svg{width:21px;height:21px}.prescription-record-heading h3{margin:1px 0 2px;font-size:1rem}.prescription-reference{margin:0;color:#55716e;font-size:.86rem;font-weight:680;overflow-wrap:anywhere}.prescription-record-facts{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:6px 12px;margin:0;padding:11px 0;border-top:1px solid #e5efed;border-bottom:1px solid #e5efed}.prescription-record-facts dt{color:#66817d;font-size:.68rem;font-weight:760;letter-spacing:.07em;text-transform:uppercase}.prescription-record-facts dd{margin:0;color:#1a3a37;font-size:.9rem;font-weight:640;overflow-wrap:anywhere}.prescription-record-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;width:100%;border:1px solid #b9d8d3;background:#f4faf9;color:#0b6e69}.prescription-record-action:hover{background:#e8f5f3}.prescription-record-action svg{width:17px;height:17px}.prescription-empty-state{display:grid;justify-items:center;gap:8px;margin-top:4px;padding:26px 18px;border:1px solid #dbe9e6;border-radius:16px;background:#fbfefd;text-align:center}.prescription-empty-state h3{margin:2px 0 0;font-size:1.03rem}.prescription-empty-state p{max-width:290px;margin:0;color:#55716e;font-size:.9rem;overflow-wrap:anywhere}.queue-status--cancelled,.queue-status--no_show{background:#edf2ef;color:#416258}
