* { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI', Tahoma, Arial, sans-serif; }
html { -webkit-text-size-adjust:100%; }
body { background:#f0f7fb; color:#173e57; }
.app { max-width:480px; margin:0 auto; padding:14px 14px 24px; }
@media (min-width:768px){ .app { max-width:560px; } }

.topbar { background:linear-gradient(135deg,#126d93,#159aa2); border-radius:18px; padding:18px 16px; color:#fff; }
.topbar h1 { font-size:20px; font-weight:800; display:flex; align-items:center; gap:8px; }
.topbar h1::before { content:""; width:22px; height:22px; background:#fff; border-radius:6px;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10 3h4v7h7v4h-7v7h-4v-7H3v-4h7z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10 3h4v7h7v4h-7v7h-4v-7H3v-4h7z'/%3E%3C/svg%3E") center/contain no-repeat; }
.topbar p { font-size:12px; opacity:.92; margin-top:4px; }

.search-card { background:#fff; border-radius:16px; padding:14px; margin-top:12px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.field-row { display:flex; gap:8px; }
.field { flex:1; }
.field select { width:100%; background:#f4f9fc; border:1px solid #d7e6ef; border-radius:10px; padding:10px; font-size:13px; color:#173e57; font-weight:600; }
.search-input { margin-top:8px; width:100%; background:#f4f9fc; border:1px solid #d7e6ef; border-radius:10px; padding:11px 12px; font-size:13px; color:#173e57; }
.hint { margin-top:9px; font-size:11px; color:#126d93; background:#e9f7f8; border-radius:8px; padding:7px 10px; }
.install-btn { margin-top:10px; width:100%; background:#173e57; color:#fff; border:none; border-radius:12px; padding:11px; font-size:13px; font-weight:700; cursor:pointer; }
.install-btn[hidden] { display:none; }

.chips { display:flex; gap:6px; margin-top:12px; overflow-x:auto; scrollbar-width:none; }
.chips::-webkit-scrollbar { display:none; }
.chip { font-size:11px; padding:6px 11px; border-radius:999px; background:#fff; border:1px solid #d7e6ef; color:#486679; white-space:nowrap; cursor:pointer; }
.chip.active { background:#126d93; color:#fff; border-color:#126d93; }

.count { font-size:12px; color:#486679; margin:12px 2px 8px; }
.count b { color:#173e57; }

.card { background:#fff; border-radius:16px; padding:14px; margin-bottom:10px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.nurse-name { font-size:15px; font-weight:800; color:#173e57; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.badge { font-size:10px; background:#e9f7f8; color:#126d93; border-radius:999px; padding:3px 8px; font-weight:700; }
.license { font-size:11px; color:#486679; margin-top:5px; }
.license b { color:#173e57; font-weight:600; }
.meta { font-size:12px; color:#486679; margin-top:6px; display:flex; gap:10px; flex-wrap:wrap; }
.tags { display:flex; gap:5px; margin-top:8px; flex-wrap:wrap; }
.tag { font-size:10px; background:#f4f9fc; border:1px solid #d7e6ef; color:#486679; border-radius:6px; padding:3px 7px; }
.actions { display:flex; gap:8px; margin-top:11px; }
.btn { flex:1; border:none; border-radius:10px; padding:10px; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:6px; text-decoration:none; cursor:pointer; }
.btn.call { background:#126d93; color:#fff; }
.btn.wa { background:#087f72; color:#fff; }

.empty { background:#fff; border-radius:16px; padding:22px 16px; text-align:center; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.empty h2 { font-size:15px; margin-bottom:8px; }
.empty p { font-size:12px; color:#486679; line-height:1.8; }
.empty a { color:#126d93; font-weight:700; }

.site-footer { display:flex; justify-content:center; gap:16px; margin-top:18px; }
.site-footer a { font-size:11px; color:#126d93; text-decoration:none; font-weight:600; }
.footer-note { text-align:center; font-size:10px; color:#607e90; margin-top:10px; line-height:1.7; }

.install-dialog { border:none; border-radius:16px; padding:18px; max-width:340px; width:90%; }
.install-dialog::backdrop { background:rgba(0,0,0,.4); }
.install-dialog h2 { font-size:16px; margin-bottom:10px; }
.install-dialog p, .install-dialog li { font-size:13px; color:#486679; line-height:1.9; }
.install-dialog ol { padding-inline-start:18px; margin-bottom:12px; }
.install-dialog .btn { margin-top:8px; }

/* صفحات ثابتة: الشروط والخصوصية وإضافة ممرض */
.page { background:#fff; border-radius:16px; padding:18px 16px; margin-top:12px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.page h1 { font-size:17px; margin-bottom:10px; }
.page h2 { font-size:14px; margin:14px 0 6px; }
.page p, .page li { font-size:13px; color:#486679; line-height:1.9; }
.page ul, .page ol { padding-inline-start:18px; }
.page a { color:#126d93; font-weight:600; }
.form-field { margin-top:10px; }
.form-field label { display:block; font-size:12px; font-weight:700; margin-bottom:4px; }
.form-field input, .form-field select, .form-field textarea { width:100%; background:#f4f9fc; border:1px solid #d7e6ef; border-radius:10px; padding:10px; font-size:13px; color:#173e57; }
.checks { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.checks label { font-size:11px; background:#f4f9fc; border:1px solid #d7e6ef; border-radius:999px; padding:6px 10px; display:flex; align-items:center; gap:5px; }
.consent { display:flex; gap:8px; align-items:flex-start; margin-top:12px; background:#eef8fb; border:1px solid #c5e7ef; border-radius:10px; padding:10px; }
.consent input { margin-top:3px; }
.consent span { font-size:12px; line-height:1.8; color:#486679; }
.submit-btn { margin-top:14px; width:100%; background:#087f72; color:#fff; border:none; border-radius:12px; padding:12px; font-size:14px; font-weight:800; cursor:pointer; }
.table-wrap { overflow-x:auto; margin-top:12px; }
table.counts { width:100%; border-collapse:collapse; font-size:12px; }
table.counts th, table.counts td { text-align:right; padding:8px 6px; border-bottom:1px solid #d7e6ef; }
table.counts th { color:#486679; font-weight:600; }

#adminLogin{display:grid;gap:10px;margin:14px 0}#adminKey{box-sizing:border-box;width:100%;min-height:44px;border:1px solid #ddd;border-radius:10px;padding:10px;font:inherit}

:focus-visible{outline:3px solid #157fa8;outline-offset:3px}.search-card,.card,.empty,.page{border:1px solid #dbeaf1;box-shadow:0 3px 14px rgba(22,83,113,.04)}.install-btn{background:#166b9a}.topbar{box-shadow:0 6px 20px rgba(18,109,147,.10)}

@font-face{font-family:Cairo;src:url('../fonts/cairo-400.woff') format('woff');font-weight:400;font-display:swap}
@font-face{font-family:Cairo;src:url('../fonts/cairo-600.woff') format('woff');font-weight:600;font-display:swap}
@font-face{font-family:Cairo;src:url('../fonts/cairo-700.woff') format('woff');font-weight:700 900;font-display:swap}
*{font-family:Cairo,Tahoma,Arial,sans-serif}
body{line-height:1.85}
.app{padding:20px 18px 32px;max-width:520px}
.topbar{padding:22px 20px;border-radius:22px}
.topbar h1{font-size:25px;line-height:1.6;gap:10px}
.topbar p{font-size:13px;line-height:1.9;margin-top:7px;opacity:1}
.search-card{padding:18px;margin-top:18px;border-radius:20px}
.field-row{gap:10px}.field{min-width:0}
.field select,.search-input,.form-field input,.form-field select,.form-field textarea{font-size:14px;line-height:1.7;min-height:48px;padding:11px 12px;border-radius:12px;font-weight:600}
.search-input{margin-top:12px}
.hint{font-size:12px;line-height:1.9;padding:10px 12px;margin-top:12px;border-radius:11px}
.install-btn{font-size:14px;line-height:1.7;min-height:48px;margin-top:14px;border-radius:12px}
.count{font-size:13px;margin:16px 2px 12px}
.empty{padding:26px 20px;border-radius:20px}
.empty h2{font-size:18px;line-height:1.7;margin-bottom:12px}
.empty p{font-size:14px;line-height:2.1}
.empty a{display:inline-block;padding:6px 0;font-size:14px}
.site-footer{gap:24px;flex-wrap:wrap;margin-top:24px}.site-footer a{font-size:13px;min-height:40px;display:flex;align-items:center}
.footer-note{font-size:12px;line-height:1.9;margin-top:8px;color:#526f82}
.page{padding:24px 20px;border-radius:20px;margin-top:18px}
.page h1{font-size:22px;line-height:1.6}.page h2{font-size:18px;line-height:1.8;margin:20px 0 10px}
.page p,.page li{font-size:14px;line-height:2.15}.form-field{margin-top:18px}.form-field label{font-size:14px;line-height:1.9;margin-bottom:8px}
.consent span{font-size:13px;line-height:2}.consent{padding:14px;gap:10px}.checks label{font-size:12px;padding:8px 12px}.submit-btn{font-size:15px;min-height:50px}
.card{padding:20px;border-radius:20px;margin-bottom:16px}.nurse-name{font-size:18px}.license,.meta{font-size:13px;line-height:1.9}.btn{font-size:14px;min-height:48px}.tag{font-size:12px}.badge{font-size:11px}
@media(max-width:350px){.app{padding:16px 12px 28px}.search-card{padding:14px}.topbar{padding:20px 16px}.topbar h1{font-size:23px}.field select{font-size:13px;padding:10px 7px}.empty{padding:22px 16px}}
