/* ===== الموجه الصحي — التنسيق ===== */
:root {
    --ink: #0e5e6f;          /* الحبر الأساسي (من ألوان الخطة الرسمية) */
    --ink-deep: #083f4b;
    --ink-soft: #3d8594;
    --paper: #fbfdfd;
    --surface: #ffffff;
    --mint: #e4f2ef;
    --mint-strong: #c9e6e0;
    --line: #d7e6e4;
    --text: #1d2b2f;
    --muted: #5d7277;
    --amber: #c9831c;
    --amber-bg: #fdf3e2;
    --red: #c93b33;
    --red-bg: #fbe9e7;
    --green: #2f7d4f;
    --green-bg: #e5f3ea;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(8, 63, 75, .06), 0 6px 18px rgba(8, 63, 75, .06);
    --font: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif;
    --nav-h: 64px;
}

body.dark-mode {
    --ink: #6cc3d3;
    --ink-deep: #a9e2ec;
    --ink-soft: #4aa4b6;
    --paper: #0f1a1d;
    --surface: #152328;
    --mint: #1a2f34;
    --mint-strong: #22404a;
    --line: #28414a;
    --text: #e3eef0;
    --muted: #9ab2b8;
    --amber: #f0b050;
    --amber-bg: #3a2e18;
    --red: #f07a70;
    --red-bg: #3d1f1d;
    --green: #6fcf97;
    --green-bg: #173326;
    --shadow: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--text);
    direction: rtl;
    line-height: 1.6;
    font-size: 16px;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 84px);
}
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 2px; }
.hidden { display: none !important; }

/* ===== الترويسة ===== */
.app-header {
    background: var(--ink);
    color: #fff;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
body.dark-mode .app-header { background: #0b2a31; }
.app-header h1 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.app-header .sub { font-size: .8rem; opacity: .85; }
.header-actions { display: flex; gap: 6px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; font-size: 1.1rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:active { transform: scale(.94); }

/* ===== الحاوية والأقسام ===== */
.container { max-width: 860px; margin: 0 auto; padding: 16px; }
.view { display: none; }
.view.active { display: block; }
.section-title { font-size: 1.05rem; font-weight: 700; margin: 22px 0 10px; color: var(--ink-deep); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-title small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 22px 12px; font-size: .92rem; }

/* ===== الخط الزمني للخطة (العنصر المميز) ===== */
.timeline-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 16px 14px 12px; box-shadow: var(--shadow);
}
.timeline-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.timeline-head strong { font-size: 1.02rem; color: var(--ink-deep); }
.timeline-head span { font-size: .8rem; color: var(--muted); }
.timeline-scroll { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.timeline { position: relative; height: 140px; width: 1150px; }
.tl-axis { position: absolute; top: 64px; left: 0; right: 0; height: 2px; background: var(--line); }
.tl-sem { position: absolute; top: 56px; height: 18px; border-radius: 9px; background: var(--mint); }
.tl-month { position: absolute; top: 78px; font-size: .68rem; color: var(--muted); transform: translateX(50%); white-space: nowrap; }
.tl-dot {
    position: absolute; top: 57px; width: 16px; height: 16px; border-radius: 50%;
    transform: translateX(50%); border: 3px solid var(--surface); cursor: pointer; padding: 0;
    background: var(--ink-soft);
}
.tl-dot.done { background: var(--green); }
.tl-dot.late { background: var(--red); }
.tl-dot.soon { background: var(--amber); }
.tl-label {
    position: absolute; font-size: .7rem; white-space: nowrap; color: var(--text);
    transform: translateX(50%); max-width: 120px; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.tl-today { position: absolute; top: 8px; bottom: 4px; width: 2px; background: var(--red); transform: translateX(50%); }
.tl-today::before {
    content: "اليوم"; position: absolute; top: 34px; right: 4px; font-size: .68rem; font-weight: 700;
    color: #fff; background: var(--red); padding: 0 6px; border-radius: 6px;
}
.tl-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.tl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 5px; vertical-align: middle; }

/* ===== مؤشرات الرئيسية ===== */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.kpi { background: var(--mint); border-radius: var(--radius-md); padding: 10px 8px; text-align: center; }
.kpi b { display: block; font-size: 1.35rem; color: var(--ink-deep); line-height: 1.3; }
.kpi span { font-size: .72rem; color: var(--muted); }
.kpi.alert { background: var(--red-bg); }
.kpi.alert b { color: var(--red); }
@media (max-width: 480px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.quick-actions { display: flex; gap: 10px; margin-top: 14px; }
.quick-actions .btn { flex: 1; }

/* ===== الصفوف (بدل البطاقات المتطابقة) ===== */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border-bottom: 1px solid var(--line); cursor: pointer; position: relative;
    border-right: 4px solid transparent;
}
.row:last-child { border-bottom: 0; }
.row:active { background: var(--mint); }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 600; font-size: .98rem; }
.row .meta { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.row .side { text-align: left; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.row.s-done { border-right-color: var(--green); }
.row.s-late { border-right-color: var(--red); }
.row.s-soon, .row.s-active { border-right-color: var(--amber); }
.row.s-upcoming { border-right-color: var(--line); }
.row.s-na { opacity: .55; }

.chip {
    display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600;
    padding: 2px 10px; border-radius: 20px; background: var(--mint); color: var(--ink-deep); white-space: nowrap;
}
.chip.done { background: var(--green-bg); color: var(--green); }
.chip.late { background: var(--red-bg); color: var(--red); }
.chip.soon, .chip.active { background: var(--amber-bg); color: var(--amber); }
.chip.na { background: var(--line); color: var(--muted); }
.chip.crit { background: var(--red-bg); color: var(--red); }

.seg { display: flex; background: var(--mint); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg button {
    flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; cursor: pointer;
    font-size: .88rem; font-weight: 600; color: var(--muted);
}
.seg button.on { background: var(--surface); color: var(--ink-deep); box-shadow: var(--shadow); }

/* ===== النماذج ===== */
label.lbl { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-deep); margin: 12px 0 6px; }
input[type=text], input[type=number], input[type=tel], input[type=date], input[type=time], input[type=search], input[type=password], select, textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md);
    background: var(--surface); color: var(--text); font-size: 16px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink-soft); box-shadow: 0 0 0 3px rgba(14, 94, 111, .12); }
textarea { resize: vertical; min-height: 70px; }
.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; min-width: 0; }
.hint { font-size: .76rem; color: var(--muted); margin-top: 4px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid transparent;
    font-size: .95rem; font-weight: 700; cursor: pointer; background: var(--ink); color: #fff;
}
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
a.btn { text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.soft { background: var(--mint); color: var(--ink-deep); }
.btn.danger { background: var(--red); }
.btn.danger-ghost { background: transparent; color: var(--red); border-color: var(--red-bg); }
.btn.whatsapp { background: #1f9e55; }
.btn.sm { padding: 8px 12px; font-size: .85rem; }
.btn-group { display: flex; gap: 8px; margin-top: 16px; }
.btn-group .btn { flex: 1; }

/* اختيارات متعددة كشرائح */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
    display: inline-block; padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line);
    background: var(--surface); font-size: .85rem; cursor: pointer; user-select: none;
}
.pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick.crit input:checked + span { background: var(--red); border-color: var(--red); }
.pick input:focus-visible + span { outline: 3px solid var(--ink-soft); outline-offset: 2px; }

/* ===== النوافذ ===== */
.modal {
    display: none; position: fixed; inset: 0; z-index: 50; background: rgba(8, 30, 36, .55);
    align-items: flex-end; justify-content: center;
}
.modal.open { display: flex; }
.sheet {
    background: var(--paper); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
    border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    animation: sheetUp .22s ease-out;
}
@media (min-width: 700px) { .modal { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sheet-head h2 { margin: 0; font-size: 1.12rem; color: var(--ink-deep); }
.close-x { border: 0; background: var(--mint); color: var(--ink-deep); width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; cursor: pointer; flex-shrink: 0; }

.info-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .88rem; background: var(--mint); border-radius: var(--radius-md); padding: 12px; margin: 10px 0; }
.info-grid dt { color: var(--muted); }
.info-grid dd { margin: 0; font-weight: 600; }

.tasks { list-style: none; padding: 0; margin: 0; }
.tasks li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tasks input { width: 22px; height: 22px; accent-color: var(--ink); flex-shrink: 0; }
.tasks li.checked span { text-decoration: line-through; color: var(--muted); }

.exec-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 8px; }
.exec-item .top { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
.exec-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.exec-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.coverage { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.coverage i { display: block; height: 100%; background: var(--ink-soft); border-radius: 8px; }

/* الحالات الحرجة */
.cond-icons { font-size: .95rem; letter-spacing: 2px; }
.crit-mark { color: var(--red); font-weight: 700; }
.guide-box { background: var(--red-bg); border-radius: var(--radius-md); padding: 10px 12px; margin: 8px 0; font-size: .86rem; line-height: 1.7; }
.guide-box b { color: var(--red); }
.freq-badge { background: var(--amber-bg); color: var(--amber); font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 12px; margin-right: 6px; }

.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.toolbar input { flex: 1; }
.toolbar select { width: auto; min-width: 110px; }

/* ===== شريط التنقل السفلي ===== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line);
    display: flex; padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav button {
    flex: 1; height: var(--nav-h); border: 0; background: transparent; cursor: pointer; color: var(--muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .72rem; font-weight: 600;
}
.bottom-nav button svg { width: 22px; height: 22px; }
.bottom-nav button.on { color: var(--ink); }
.bottom-nav button.on::before { content: ''; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ink); }
.bottom-nav button { position: relative; }

.fab {
    position: fixed; left: 16px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 41;
    background: var(--red); color: #fff; border: 0; border-radius: 30px; padding: 14px 18px;
    font-size: .95rem; font-weight: 700; box-shadow: 0 6px 18px rgba(201, 59, 51, .35); cursor: pointer;
    display: flex; align-items: center; gap: 8px;
}

/* ===== التنبيهات ===== */
.toast {
    position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%) translateY(-20px);
    background: var(--ink-deep); color: #fff; padding: 12px 18px; border-radius: 14px; z-index: 100;
    font-size: .9rem; font-weight: 600; opacity: 0; transition: all .25s; pointer-events: none; max-width: 90vw; text-align: center;
}
body.dark-mode .toast { background: #25444c; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.warn { background: var(--amber); }
.toast.err { background: var(--red); }

/* ===== شاشة القفل ===== */
.lock {
    position: fixed; inset: 0; z-index: 200; background: var(--ink-deep); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px;
}
.lock h2 { margin: 0; font-size: 1.2rem; }
.pin-dots { display: flex; gap: 14px; direction: ltr; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.pin-dots i.on { background: #fff; }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; direction: ltr; }
.keypad button { height: 72px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; cursor: pointer; }
.keypad button:active { background: rgba(255,255,255,.28); }
.lock .forgot { background: none; border: 0; color: rgba(255,255,255,.7); font-size: .82rem; cursor: pointer; text-decoration: underline; }

/* شريط التثبيت */
.install-bar {
    display: none; margin-bottom: 14px; background: var(--amber-bg); border-radius: var(--radius-md);
    padding: 10px 12px; font-size: .84rem; align-items: center; gap: 10px;
}
.install-bar.show { display: flex; }
.install-bar p { margin: 0; flex: 1; }

.footer-credit { text-align: center; font-size: .78rem; color: var(--muted); margin: 26px 0 6px; }

/* اقتراحات الأسماء والإضافة السريعة في نموذج الزيارة */
.suggest { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.suggest:empty { display: none; }
.suggest-item {
    display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: right;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md);
    background: var(--surface); color: var(--text); font-size: .95rem; font-weight: 600; cursor: pointer;
}
.suggest-item small { color: var(--muted); font-weight: 400; font-size: .78rem; white-space: nowrap; }
.suggest-item:active { background: var(--mint); }
.new-student { background: var(--mint); border-radius: var(--radius-md); padding: 10px 12px 12px; margin-top: 8px; }
.new-student-head { font-size: .85rem; font-weight: 700; color: var(--ink-deep); }
.new-student .lbl { margin-top: 8px; }

.exec-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.kept-photo { position: relative; display: inline-block; }
.kept-photo button { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: .7rem; cursor: pointer; }
input[type=url] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-size: 16px; }
input:disabled { opacity: .7; background: var(--mint); }

/* ===== بوابة المراحل ===== */
.stage-btn {
    border: 0; background: rgba(255,255,255,.18); color: #fff; font: inherit; font-size: .78rem; font-weight: 700;
    padding: 2px 10px; border-radius: 20px; cursor: pointer; margin-left: 6px;
}
.portal { position: fixed; inset: 0; z-index: 150; background: var(--paper); overflow-y: auto; padding: calc(20px + env(safe-area-inset-top, 0px)) 16px 30px; }
.portal-inner { max-width: 640px; margin: 0 auto; }
.portal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.portal-head h2 { margin: 0 0 4px; color: var(--ink-deep); font-size: 1.3rem; }
.portal-head p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.portal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stage-card {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: right;
    background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 16px 14px;
    cursor: pointer; color: var(--text); font: inherit; box-shadow: var(--shadow);
}
.stage-card:active { transform: scale(.98); }
.stage-card.on { border-color: var(--ink); background: var(--mint); }
.stage-icon { font-size: 1.9rem; line-height: 1; }
.stage-name { font-weight: 700; font-size: 1.02rem; color: var(--ink-deep); }
.stage-meta { font-size: .76rem; color: var(--muted); }
.stage-current { position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 700; background: var(--ink); color: #fff; padding: 1px 8px; border-radius: 10px; }
@media (max-width: 380px) { .portal-cards { grid-template-columns: 1fr; } }
.app-header > div:first-child { flex: 1; min-width: 0; }
.app-header h1, .app-header .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-header .header-actions { flex-shrink: 0; }

.combo-box { margin-top: 18px; background: var(--mint); border-radius: var(--radius-lg); padding: 14px; }
.combo-box h3 { margin: 0 0 4px; font-size: 1rem; color: var(--ink-deep); }
.combo-box p { margin: 0 0 10px; font-size: .84rem; color: var(--muted); }
#view-students .toolbar input[type=search] { flex: 1.6; min-width: 0; }
#view-students .toolbar #st-filter { flex: 1; min-width: 0; max-width: 45%; }

/* ===== الأدلة (V1.13) ===== */
.guide-quick { display: flex; gap: 10px; margin-top: 14px; }
.guide-quick .btn { flex: 1; }
.call-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.call-bar .btn { flex: 1 1 auto; text-decoration: none; }
.call-997 { font-size: 1.02rem; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .case-grid { grid-template-columns: repeat(4, 1fr); } }
.case-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; text-align: center; }
.case-card:active { background: var(--mint); }
.case-card.serious { border-color: var(--red); color: var(--red); }
.case-icon { font-size: 1.7rem; line-height: 1.2; }
.guide-intro { font-size: .9rem; line-height: 1.85; margin: 6px 0; }
.guide-h { font-size: 1rem; color: var(--ink-deep); margin: 16px 0 6px; }
.guide-steps { margin: 0; padding-right: 22px; line-height: 1.85; font-size: .95rem; }
.guide-steps li { margin-bottom: 6px; padding-right: 2px; }
.guide-steps li::marker { color: var(--ink); font-weight: 700; }
.guide-list { margin: 4px 0; padding-right: 20px; line-height: 1.8; font-size: .9rem; }
.guide-urgent { background: var(--red-bg); border-radius: var(--radius-md); padding: 10px 12px; margin: 12px 0; font-size: .9rem; }
.guide-urgent > b { color: var(--red); display: block; margin-bottom: 4px; }
.guide-urgent.soft { background: var(--amber-bg); }
.guide-urgent.soft > b { color: var(--amber); }
.guide-block { background: var(--mint); border-radius: var(--radius-md); padding: 8px 12px; margin: 10px 0; }
.guide-block summary { cursor: pointer; font-weight: 700; color: var(--ink-deep); padding: 4px 0; }
.guide-source { font-size: .74rem; color: var(--muted); margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 8px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 20px; padding: 6px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.chip-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.vac-wrap { overflow: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.vac-wrap img { display: block; width: 100%; height: auto; }
.vac-wrap img.zoomed { width: 2000px; max-width: none; }

.back-link { border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; padding: 0 0 6px; }
.guide-steps bdi, .guide-list bdi, .guide-intro bdi, .info-grid bdi { white-space: nowrap; }

/* ===== الحقائب التوعوية (V1.14) ===== */
.ready-text { white-space: pre-wrap; background: var(--mint); border-radius: var(--radius-md); padding: 12px 14px; line-height: 1.9; font-size: .92rem; max-height: 50vh; overflow-y: auto; }
.qa { border-bottom: 1px dashed var(--line); padding: 8px 0; }
.qa-q { font-weight: 700; font-size: .93rem; line-height: 1.7; }
.qa-a { color: var(--green, #1b7a4a); font-size: .9rem; line-height: 1.7; margin-top: 2px; }
.axis { background: var(--mint); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; font-size: .9rem; }
.axis b { color: var(--ink-deep); }
.axis em { color: var(--ink); font-style: normal; font-weight: 700; }
.picks.col { flex-direction: column; align-items: stretch; }
.picks.col .pick span { width: 100%; text-align: right; }
.table-wrap { overflow-x: auto; }
.kit-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.kit-table th, .kit-table td { border: 1px solid var(--line); padding: 6px; text-align: center; }
.kit-table thead th { background: var(--surface); }
.qa-note { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* نتائج البحث في تسجيل الزيارة (V1.16) */
#vs-suggest { max-height: 300px; overflow-y: auto; }
.suggest-count { font-size: .78rem; color: var(--muted); padding: 4px 2px; }
.suggest-new { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px dashed var(--ink); border-radius: var(--radius-md); background: transparent; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
