:root {
  --brand: #1e6fd9;
  --brand-700: #1453b8;
  --brand-900: #0f1d8b;
  --brand-soft: #e3efff;
  --brand-ink: #1453b8;
  --bg: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f5f8fd;
  --line: #e0e8f4;
  --text: #0d1a33;
  --muted: #5b6b85;
  --danger: #e11d48;
  --danger-soft: #ffe8ec;
  --ok: #059669;
  --warn-bg: #fff7e6;
  --warn-ink: #92400e;
  --wa: #1fb855;
  --shadow: 0 1px 2px rgba(13, 26, 51, .04), 0 10px 30px rgba(13, 26, 51, .07);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1020;
    --surface: #111a2e;
    --surface-2: #17223a;
    --line: #24324f;
    --text: #e6ecf7;
    --muted: #97a6c2;
    --brand-soft: #14284f;
    --brand-ink: #8ab8ff;
    --danger-soft: #3a1520;
    --warn-bg: #33270c;
    --warn-ink: #fcd34d;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
button { font: inherit; }

/* ---------- Header ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, #2b8be6 0%, #1559c0 48%, #0b1f78 100%);
  padding: calc(22px + env(safe-area-inset-top)) 16px 68px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}
.hero::before { width: 280px; height: 280px; top: -110px; left: -80px; }
.hero::after { width: 190px; height: 190px; bottom: -90px; right: -50px; }
.hero-inner { position: relative; max-width: 560px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand > div { flex: 1; min-width: 0; }
.logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); flex: none; }
.brand h1 { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.2px; }
.brand p { margin: 2px 0 0; opacity: .88; font-size: .95rem; }
.hero-addr { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .92rem; font-weight: 500; opacity: .95; }
.hero-addr svg { width: 18px; height: 18px; flex: none; }

/* Contact card */
.phones { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.phone-btn {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: border-color .15s, transform .12s;
}
.phone-btn:active { transform: scale(.98); }
.phone-btn:hover { border-color: var(--brand); }
.phone-btn .ic {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand), var(--brand-900)); color: #fff;
}
.phone-btn .ic svg { width: 19px; height: 19px; }
.phone-btn .num { flex: 1; font-size: 1.12rem; font-weight: 700; letter-spacing: .5px; text-align: right; }
.phone-btn .go { font-size: .85rem; font-weight: 700; color: var(--brand-ink); }
.addr-box { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--brand-soft); }
.addr-box svg { width: 26px; height: 26px; flex: none; color: var(--brand-ink); }
.addr-box b { display: block; font-size: .95rem; }
.addr-box span { font-size: .9rem; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 500;
}
.pill svg { width: 16px; height: 16px; }
.hero-btn {
  background: rgba(255, 255, 255, .16); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px; padding: 8px 12px; cursor: pointer; font-size: .85rem; flex: none;
}

/* ---------- Layout ---------- */
main.wrap {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: -44px auto 0;
  padding: 0 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
}
.step { transition: opacity .3s, filter .3s; }
.step.locked { opacity: .5; filter: grayscale(.4); pointer-events: none; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-head .grow { flex: 1; min-width: 0; }
.step-no {
  width: 36px; height: 36px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 800;
}
.step-head h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.step-head p { margin: 1px 0 0; color: var(--muted); font-size: .85rem; }
.icon-btn {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.spin svg { animation: spin .8s linear infinite; }

.demo-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warn-bg); color: var(--warn-ink);
  border-radius: 16px; padding: 12px 14px; font-size: .85rem; line-height: 1.6;
  border: 1px solid rgba(146, 64, 14, .15);
}
.demo-note b { display: block; }

/* ---------- Day strip ---------- */
.days {
  display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 4px 16px 10px;
  scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 92px; scroll-snap-align: start;
  border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text);
  border-radius: 18px; padding: 10px 4px 12px; text-align: center; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.day:hover:not(:disabled) { border-color: var(--brand); }
.day .dn { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.day .dd { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.day .dm { display: block; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.day .badge {
  display: inline-block; margin-top: 6px; font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink);
}
.day.low .badge { background: #fdecc8; color: #92400e; }
.day.full .badge, .day.closed .badge { background: var(--danger-soft); color: var(--danger); }
.day:disabled { opacity: .55; cursor: not-allowed; }
.day.selected {
  background: linear-gradient(160deg, var(--brand), var(--brand-900));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 22px rgba(30, 111, 217, .35);
  transform: translateY(-2px);
}
.day.selected .dn, .day.selected .dm { color: rgba(255, 255, 255, .85); }
.day.selected .badge { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- Slots ---------- */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-left: 5px; border: 1px solid var(--line); }
.legend .l-free { background: var(--surface-2); }
.legend .l-taken { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--line) 3px 6px); }
.legend .l-sel { background: var(--brand); border-color: var(--brand); }

.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (min-width: 480px) { .slots { grid-template-columns: repeat(5, 1fr); } }
.slot {
  border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text);
  border-radius: 16px; padding: 10px 2px 9px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.slot b { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.slot small { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.slot:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-2px); }
.slot.selected {
  background: linear-gradient(160deg, var(--brand), var(--brand-900));
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 22px rgba(30, 111, 217, .38);
  transform: scale(1.05);
  animation: pop .3s;
}
.slot.selected small { color: rgba(255, 255, 255, .9); }
.slot.taken {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--line) 6px 12px);
  color: var(--muted); cursor: not-allowed;
}
.slot.taken b { text-decoration: line-through; opacity: .55; }
.slot.past { opacity: .4; cursor: not-allowed; }

/* ---------- Skeleton ---------- */
.sk {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.2s infinite;
  border-color: transparent !important;
  color: transparent !important;
}
.day.sk { height: 108px; }
.slot.sk { height: 62px; }

/* ---------- Summary + form ---------- */
.summary {
  display: flex; align-items: center; gap: 12px;
  background: var(--brand-soft); border-radius: 18px; padding: 12px; margin-bottom: 16px;
}
.summary .num {
  width: 54px; height: 54px; flex: none; border-radius: 15px;
  background: linear-gradient(160deg, var(--brand), var(--brand-900)); color: #fff;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800;
}
.summary .info { flex: 1; min-width: 0; }
.summary b { display: block; font-size: .98rem; }
.summary span { color: var(--muted); font-size: .85rem; }
.link-btn { background: none; border: 0; color: var(--brand-ink); font-weight: 700; cursor: pointer; padding: 6px; }

.field { display: block; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > span { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; }
input {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 12px 14px; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder { color: var(--muted); opacity: .7; }
input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(30, 111, 217, .14); }
.row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
@media (max-width: 360px) { .row { grid-template-columns: 1fr; gap: 0; } }
.err { display: none; color: var(--danger); font-size: .82rem; margin-top: 4px; }
.invalid .err { display: block; }
.invalid input { border-color: var(--danger); }

/* ---------- Buttons ---------- */
.btn {
  width: 100%; font-weight: 700; font-size: 1.05rem;
  padding: 14px; min-height: 52px; border: 0; border-radius: 16px;
  background: linear-gradient(160deg, var(--brand), var(--brand-900)); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 20px rgba(30, 111, 217, .28);
  transition: transform .12s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .7; cursor: wait; }
.btn svg { width: 22px; height: 22px; }
.btn.wa { background: var(--wa); box-shadow: 0 8px 20px rgba(31, 184, 85, .28); }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: var(--danger); box-shadow: 0 8px 20px rgba(225, 29, 72, .25); }
.btn.sm { white-space: nowrap; flex: none; width: auto; min-height: 42px; padding: 9px 16px; font-size: .92rem; border-radius: 13px; }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.note { color: var(--muted); font-size: .82rem; text-align: center; margin: 12px 0 0; line-height: 1.7; }

/* ---------- My bookings ---------- */
.my-list { display: flex; flex-direction: column; gap: 8px; }
.my-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: right;
  padding: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); cursor: pointer;
}
.my-item .n {
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  background: linear-gradient(160deg, var(--brand), var(--brand-900)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.my-item b { display: block; font-size: .95rem; }
.my-item span { font-size: .8rem; color: var(--muted); }

/* ---------- Overlay / ticket ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 12, 30, .55); backdrop-filter: blur(5px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px; animation: fade .2s;
}
@media (min-width: 560px) { .overlay { align-items: center; } }
.sheet {
  position: relative;
  background: var(--surface); width: 100%; max-width: 440px;
  border-radius: 26px; padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 92vh; overflow: auto;
  animation: up .38s cubic-bezier(.2, .9, .3, 1.15);
}
.sheet h3 { margin: 0; text-align: center; font-size: 1.25rem; }
.sheet .sub { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.close-x { position: absolute; top: 14px; left: 14px; }
.check { width: 76px; height: 76px; display: block; margin: 4px auto 10px; }
.check circle { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 170; stroke-dashoffset: 170; animation: draw .6s ease forwards; }
.check path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .4s .5s ease forwards; }

.tk { margin: 16px 0 14px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.tk-top {
  position: relative; text-align: center; color: #fff; padding: 16px 14px 20px;
  background: linear-gradient(140deg, #2b8be6, var(--brand-700) 55%, var(--brand-900));
}
.tk-top small { display: block; opacity: .85; font-size: .82rem; }
.tk-num { font-size: 3.6rem; font-weight: 800; line-height: 1.05; }
.tk-top .tk-clinic { font-size: .82rem; opacity: .9; }
.tk-cut { position: relative; height: 0; border-top: 2px dashed var(--line); }
.tk-cut::before, .tk-cut::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface);
}
.tk-cut::before { right: -11px; } .tk-cut::after { left: -11px; }
.tk-rows { padding: 8px 16px 10px; }
.tk-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.tk-row:last-child { border-bottom: 0; }
.tk-row span { color: var(--muted); flex: none; }
.tk-row b { text-align: left; }
.tip {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--warn-bg); color: var(--warn-ink);
  border-radius: 14px; padding: 10px 12px; font-size: .84rem; line-height: 1.7; margin-bottom: 14px;
}
.tip svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 150%); opacity: 0;
  background: #0d1a33; color: #fff; padding: 12px 18px; border-radius: 14px;
  font-size: .92rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  width: max-content; max-width: calc(100% - 32px); text-align: center;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }

footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); }
footer a { color: var(--muted); }

/* ---------- Admin ---------- */
.login { text-align: center; padding: 30px 20px; }
.login .lock {
  width: 68px; height: 68px; border-radius: 22px; margin: 0 auto 14px;
  background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center;
}
.login .lock svg { width: 32px; height: 32px; }
.login h2 { margin: 0 0 4px; }
.login p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.pin-input { text-align: center; letter-spacing: .5em; font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }

.day-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.day-title h2 { margin: 0; font-size: 1.15rem; }
.day-title p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 10px 6px; text-align: center; }
.stat b { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.stat span { font-size: .75rem; color: var(--muted); }
.stat.st-open b { color: var(--ok); } .stat.st-closed b { color: var(--danger); }

.close-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border-radius: 18px; margin-bottom: 16px;
  background: var(--surface-2); border: 1px dashed var(--line);
}
.close-box b { display: block; font-size: .95rem; }
.close-box small { color: var(--muted); font-size: .8rem; line-height: 1.5; display: block; }
.closed-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border-radius: 18px; margin-bottom: 16px; color: #fff;
  background: linear-gradient(140deg, #f43f5e, #be123c);
}
.closed-banner b { display: block; }
.closed-banner small { opacity: .9; }
.closed-banner .btn { background: #fff; color: #be123c; box-shadow: none; }

.mini-map { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-bottom: 18px; }
.mini-map i {
  aspect-ratio: 1; border-radius: 7px; font-style: normal; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.mini-map i.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.mini-map.closed i { opacity: .45; }

h3.list-h { margin: 0 0 10px; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.bk-list { display: flex; flex-direction: column; gap: 8px; }
.bk { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.bk-num {
  width: 46px; flex: none; border-radius: 13px; padding: 5px 0;
  background: var(--brand-soft); color: var(--brand-ink); text-align: center;
}
.bk-num b { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.bk-num small { font-size: .62rem; white-space: nowrap; }
.bk-info { flex: 1; min-width: 0; }
.bk-info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-info span { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-actions { display: flex; gap: 6px; }
.bk-actions a, .bk-actions button {
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.bk-actions svg { width: 18px; height: 18px; }
.bk-actions .wa { color: var(--wa); }
.bk-actions .del { color: var(--danger); }
.empty { text-align: center; color: var(--muted); padding: 22px 8px; font-size: .92rem; }
.empty svg { width: 40px; height: 40px; opacity: .5; display: block; margin: 0 auto 6px; }

.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; justify-content: center; }
.rchip { border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .88rem; }
.rchip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
#mText { text-align: center; color: var(--muted); margin: 8px 0 0; font-size: .92rem; line-height: 1.7; }

/* ---------- Install app ---------- */
.install-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 12px 12px 8px; animation: up .45s cubic-bezier(.2, .9, .3, 1.15);
}
.install-card .ic-app { width: 48px; height: 48px; border-radius: 13px; flex: none; box-shadow: 0 4px 12px rgba(13, 26, 51, .15); }
.install-card .grow { flex: 1; min-width: 0; }
.install-card b, .install-card .grow span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-card b { font-size: .98rem; }
.install-card .grow span { font-size: .8rem; color: var(--muted); white-space: normal; line-height: 1.4; }
.install-card .ic-app { width: 44px; height: 44px; }
.install-card .btn.sm { gap: 5px; padding: 9px 14px; }
.install-card .btn svg { width: 18px; height: 18px; }
.install-x { background: none; border: 0; color: var(--muted); padding: 4px; cursor: pointer; display: grid; place-items: center; flex: none; }
.install-x svg { width: 18px; height: 18px; }

.ig-icon { display: block; width: 72px; height: 72px; border-radius: 18px; margin: 4px auto 12px; box-shadow: 0 8px 22px rgba(13, 26, 51, .18); }
.ig-steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.ig-steps li {
  counter-increment: s; display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  font-size: .95rem; line-height: 1.6;
}
.ig-steps li::before {
  content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand), var(--brand-900)); color: #fff; font-weight: 800;
}
.ig-steps li .grow { flex: 1; }
.ig-steps .kbd {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 30px; height: 30px; margin: 0 3px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line); color: #0a7aff;
}
.ig-steps .kbd svg { width: 19px; height: 19px; }
.ig-steps .tag { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.1); } 100% { transform: scale(1.05); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Print (doctor's daily list) ---------- */
@media print {
  body { background: #fff; color: #000; }
  .hero, .no-print, .close-box, .closed-banner, .bk-actions, .toast, .demo-note, footer, .mini-map { display: none !important; }
  main.wrap { margin: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .bk { break-inside: avoid; background: #fff; }
}
