:root{--brand: #0f766e;--brand-ink: #ffffff;--ink: #16202a;--muted: #5b6875;--line: #d6dde4;--surface: #ffffff;--page: #f3f6f8;--danger: #b42318;--danger-bg: #fdecea;--warn-bg: #fff6df;--warn-ink: #7a4b00;--ok-bg: #e6f5ee;--ok-ink: #0b6b45;--radius: 12px}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{background:var(--page);color:var(--ink);font-family:Segoe UI,Tahoma,Noto Naskh Arabic,Noto Sans Arabic,Arial,sans-serif;font-size:17px;line-height:1.6}h1{font-size:1.45rem;line-height:1.4;margin:0 0 8px}h2{font-size:1.15rem;margin:0 0 8px}p{margin:0 0 12px}.muted{color:var(--muted);font-size:.93rem}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 16px;margin-bottom:16px}label{display:block;font-weight:600;margin:14px 0 6px}.help{color:var(--muted);font-size:.9rem;font-weight:400;margin-top:2px}input[type=text],input[type=tel],input[type=password],input[type=date],textarea,select{width:100%;min-height:48px;padding:10px 12px;border:1px solid #9aa7b3;border-radius:10px;background:#fff;color:var(--ink);font:inherit}textarea{min-height:96px;resize:vertical}input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}.field-error input,.field-error textarea{border-color:var(--danger)}.error-text{color:var(--danger);font-size:.92rem;margin-top:4px}button{min-height:48px;padding:10px 18px;border-radius:10px;border:1px solid var(--brand);background:var(--brand);color:var(--brand-ink);font:inherit;font-weight:700;cursor:pointer}button.secondary{background:#fff;color:var(--brand)}button.link{background:none;border:none;color:var(--brand);min-height:44px;padding:8px 4px;text-decoration:underline;font-weight:600}button:disabled{opacity:.55;cursor:not-allowed}.stack>*+*{margin-top:12px}.stack>button{width:100%}.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.notice{border-radius:10px;padding:12px 14px;margin-bottom:14px}.notice.error{background:var(--danger-bg);color:var(--danger)}.notice.warn{background:var(--warn-bg);color:var(--warn-ink)}.notice.ok{background:var(--ok-bg);color:var(--ok-ink)}.choice{display:flex;gap:10px;align-items:flex-start;font-weight:400;margin:8px 0}.choice input{width:24px;height:24px;margin-top:3px;flex:none}.badge{display:inline-block;border-radius:999px;padding:2px 10px;font-size:.85rem;font-weight:700}.badge.pending{background:var(--warn-bg);color:var(--warn-ink)}.badge.active{background:var(--ok-bg);color:var(--ok-ink)}.code{font-family:Consolas,Courier New,monospace;letter-spacing:.06em;direction:ltr;unicode-bidi:isolate;word-break:break-all}.ltr{direction:ltr;unicode-bidi:isolate;text-align:start}.backup-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.backup-codes span{background:#f3f6f8;border:1px solid var(--line);border-radius:8px;padding:8px;text-align:center}.chat{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto;padding:4px 0 12px}.bubble{max-width:85%;border-radius:12px;padding:8px 12px;border:1px solid var(--line)}.bubble.mine{align-self:flex-start;background:#e7f4f2;border-color:#b9dcd7}.bubble.theirs{align-self:flex-end;background:#fff}.bubble-meta{font-size:.8rem;color:var(--muted)}.bubble-body{white-space:pre-wrap;overflow-wrap:anywhere}.doc-pages figure{margin:12px 0}.doc-pages img{display:block;max-width:100%;height:auto;border:1px solid var(--line);border-radius:8px;background:#fff}.button-link{display:inline-block;min-height:44px;padding:10px 16px;border:1px solid var(--brand);border-radius:10px;color:var(--brand);font-weight:700;text-decoration:none;background:#fff}.dev-inbox{border:2px dashed #a15c00;background:#fffaf0;color:#5c3400;border-radius:10px;padding:10px 12px;margin-top:24px;font-size:.88rem}.dev-inbox ul{margin:6px 0 0;padding:0;list-style:none}.dev-inbox li{padding:4px 0;border-top:1px solid #ecd9b5}.profile h1{margin-bottom:4px}.profile h2{margin-top:20px;font-size:1.1rem}.profile h3{margin:14px 0 4px;font-size:1rem}.profile ul{margin:6px 0;padding-inline-start:20px}.profile-welcome{font-size:1.05rem;margin:12px 0}.profile-verified{background:var(--ok-bg);color:var(--ok-ink);border-radius:10px;padding:4px 14px 10px;margin-top:14px}.profile-verified h2{margin-top:10px}.profile-facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:10px 0}.profile-facts dt{font-weight:600}.profile-facts dd{margin:0}.reminder-switch .muted{margin-top:0}.shell{max-width:480px;margin:0 auto;padding:16px 16px 40px}.clinic-header{background:var(--brand);color:var(--brand-ink);border-radius:var(--radius);padding:28px 18px;text-align:center;margin-bottom:16px}.clinic-header .avatar{width:84px;height:84px;border-radius:50%;background:#ffffff2e;border:2px solid rgba(255,255,255,.6);display:grid;place-items:center;margin:0 auto 14px;font-size:2rem;font-weight:700}.clinic-header h1{font-size:1.3rem;margin:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.topbar strong{font-size:1rem}.consent-text{white-space:pre-wrap;background:#f7f9fb;border:1px solid var(--line);border-radius:10px;padding:14px;max-height:46vh;overflow-y:auto;font-size:.98rem}.pin-input{text-align:center;font-size:1.5rem;letter-spacing:.4em;direction:ltr}.appointment{border-top:1px solid var(--line);padding:12px 0}.appointment:first-of-type{border-top:none}fieldset.slots{border:none;padding:0;margin:0}fieldset.slots legend{font-weight:600;padding:0;margin-bottom:8px}.slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.slot-grid button{padding:8px 4px}.page-list{list-style:none;margin:8px 0;padding:0}.page-list li{display:flex;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}.page-list img,.pdf-chip{width:64px;height:84px;object-fit:cover;border:1px solid var(--line);border-radius:6px;flex:none;background:#f3f6f8}.pdf-chip{display:grid;place-items:center;font-weight:700;color:var(--muted)}.page-meta{display:flex;flex-direction:column;min-width:0}.page-meta .link{min-height:36px;padding:2px 4px}.patient-number{font-size:1.35rem;font-weight:700}.brand-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:inherit}.brand-link img{border-radius:9px}a.provider-card{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit}a.provider-card .badge{align-self:flex-start}a.button-link{display:block;text-align:center;padding:12px 16px;border-radius:10px;background:var(--brand);color:#fff;font-weight:700;text-decoration:none}a.link{display:inline-block;min-height:44px;padding:8px 4px;color:var(--brand);font-weight:600}.brand-link span{line-height:40px}
