:root {
  --bg: #f4f7f9; --card: #fff; --text: #1e293b; --muted: #64748b; --line: #e2e8f0;
  --primary: #0f766e; --primary-d: #115e59; --primary-l: #ccfbf1; --danger: #dc2626; --warn: #d97706;
  --radius: 10px; --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 12px; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
[hidden] { display: none !important; }

/* düzülüş */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 230px; background: #0b3b3a; color: #e2f3f1; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; font-weight: 700; font-size: 16px; }
.logo { width: 32px; height: 32px; border-radius: 8px; display: block; }
.sidebar nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.sidebar nav a { color: #cde7e4; padding: 9px 12px; border-radius: 8px; display: flex; gap: 10px; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.sidebar nav a.active { background: var(--primary); color: #fff; }
.me { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.me-name { font-weight: 600; }
.me-role { font-size: 12px; color: #9cc9c4; }
.me-actions { display: flex; gap: 12px; margin-top: 6px; font-size: 12px; align-items: center; }
.me-actions a, .linklike { color: #9cc9c4; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.content { flex: 1; padding: 24px 28px 48px; min-width: 0; }
.menu-toggle { display: none; }

/* elementlər */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; border: 1px solid var(--line); }
.card.narrow { max-width: 460px; }
.center { text-align: center; }
.mt { margin-top: 20px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 12px; }
.neg { color: var(--danger); }
.pos { color: #16a34a; }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
.pre { white-space: pre-wrap; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; font: inherit; font-weight: 500; white-space: nowrap; }
.btn:hover { background: #f8fafc; text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-d); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--danger); border-color: #fecaca; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.icon-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { background: #fee2e2; color: var(--danger); }

input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-l); border-color: var(--primary); }
input[type=checkbox], input[type=radio] { width: auto; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: #334155; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.stack { display: flex; flex-direction: column; gap: 12px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.inline input { width: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; min-width: 0; }
.form-grid legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.narrow-form { grid-template-columns: 1fr; max-width: 640px; }
.span2 { grid-column: span 2; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.inline-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-grid label { flex: 0 0 auto; }
.inline-grid label.grow { flex: 1 1 200px; }
.inline-grid input[size] { width: auto; }
.searchbar { display: flex; gap: 8px; margin-bottom: 14px; align-items: flex-end; flex-wrap: wrap; }
.searchbar > input { max-width: 420px; }
.searchbar label { flex-direction: column; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.info-box { background: #f0f9ff; border: 1px solid #bae6fd; color: #075985; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.medical-alert { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid var(--danger); color: #7f1d1d; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table th.r { text-align: right; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f8fafc; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); white-space: nowrap; }
.status-select { width: auto; padding: 3px 8px; font-size: 12px; font-weight: 600; border-radius: 999px; color: var(--c); border-color: color-mix(in srgb, var(--c) 35%, white); background: color-mix(in srgb, var(--c) 8%, white); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.alert-dot { color: var(--danger); margin-left: 6px; cursor: help; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-v { font-size: 22px; font-weight: 700; }
.stat-l { color: var(--muted); font-size: 12px; }
.stat.warn .stat-v { color: var(--danger); }
.list { list-style: none; margin: 0; padding: 0; }
.list li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f1f5f9; color: var(--text); }
.list li a:hover { background: #f8fafc; text-decoration: none; }
.list-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.balance-row { display: flex; gap: 28px; margin-bottom: 16px; flex-wrap: wrap; }
.balance-row div { display: flex; flex-direction: column; }
.balance-row b { font-size: 20px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* diş xəritəsi */
.tooth-chart { display: inline-flex; flex-direction: column; gap: 6px; padding: 14px; background: #f8fafc; border-radius: var(--radius); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
.jaw { display: flex; gap: 4px; }
.jaw-label { font-size: 11px; color: var(--muted); text-align: center; }
.tooth { width: 38px; height: 44px; border: 1.5px solid #cbd5e1; background: #fff; border-radius: 10px 10px 14px 14px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: #475569; flex-shrink: 0; }
.jaw + .jaw .tooth { border-radius: 14px 14px 10px 10px; }
.tooth.mid { margin-left: 14px; }
.tooth:hover { border-color: var(--primary); }
.tooth.selected { outline: 3px solid var(--primary); outline-offset: 1px; }
.tooth.t-planned, .legend.t-planned { background: #dbeafe; border-color: #3b82f6; color: #1e40af; }
.tooth.t-in_progress, .legend.t-in_progress { background: #fef3c7; border-color: #d97706; color: #92400e; }
.tooth.t-done, .legend.t-done { background: #dcfce7; border-color: #16a34a; color: #166534; }
.legend { padding: 1px 8px; border-radius: 999px; border: 1px solid; font-size: 11px; }

/* təqvim */
.cal-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.cal-toolbar select { width: auto; }
.cal-nav { display: flex; gap: 6px; align-items: center; }
.cal-range { margin-left: 8px; }
.doctor-legend { display: flex; gap: 16px; margin-bottom: 10px; font-size: 13px; flex-wrap: wrap; }
.calendar { padding: 0; overflow: auto; }
.cal-head { display: grid; grid-template-columns: 56px repeat(var(--ncol, 7), minmax(110px, 1fr)); position: sticky; top: 0; background: #fff; z-index: 3; border-bottom: 1px solid var(--line); }
.cal-day-head { padding: 8px; text-align: center; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.cal-day-head b { font-size: 18px; color: var(--text); }
.cal-day-head.today b { background: var(--primary); color: #fff; border-radius: 50%; width: 32px; height: 32px; line-height: 32px; margin: 0 auto; }
.cal-body { display: grid; grid-template-columns: 56px repeat(var(--ncol, 7), minmax(110px, 1fr)); }
.calendar.view-day .cal-head, .calendar.view-day .cal-body { grid-template-columns: 56px repeat(var(--ncol, 1), minmax(160px, 1fr)); }
.cal-day-head a { color: inherit; display: flex; flex-direction: column; text-decoration: none; }
.cal-day-head.doc-head { border-top: 3px solid var(--dc); }
.cal-day-head.doc-head b { font-size: 14px; }
.view-seg a { padding: 6px 16px; border-radius: 8px; font-weight: 600; color: var(--muted); text-decoration: none; }
.view-seg a.active { background: #fff; box-shadow: var(--shadow); color: var(--primary); }
.cal-date { width: auto; }
.appt.movable { cursor: grab; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.appt.dragging { cursor: grabbing; z-index: 10; opacity: .9; box-shadow: 0 8px 20px rgba(0,0,0,.25); outline: 2px dashed var(--dc); transition: none; }
.appt.saving { opacity: .5; pointer-events: none; }
body.cal-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
body.cal-dragging .cal-slot, body.cal-dragging .appt:not(.dragging), body.cal-dragging .cal-busy { pointer-events: none; }
/* ay görünüşü */
.month { padding: 0; overflow: hidden; }
.month-head, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-head div { padding: 8px; text-align: center; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.month-cell { min-height: 110px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.month-cell:nth-child(7n) { border-right: 0; }
.month-cell.other { background: #f8fafc; }
.month-cell.other .month-day { color: #94a3b8; }
.month-cell.today { background: #f0fdfa; }
.month-day { font-weight: 700; font-size: 13px; color: var(--text); padding: 2px 6px; border-radius: 6px; width: fit-content; text-decoration: none; }
.month-cell.today .month-day { background: var(--primary); color: #fff; }
.month-day:hover { background: var(--primary-l); }
.month-appt { font-size: 11px; padding: 1px 5px; border-left: 3px solid var(--dc); background: color-mix(in srgb, var(--dc) 12%, white); border-radius: 4px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.month-appt.status-cancelled { opacity: .45; text-decoration: line-through; }
.month-more { font-size: 11px; color: var(--muted); padding-left: 4px; }
@media (max-width: 700px) { .month-cell { min-height: 74px; } .month-appt b { display: none; } }
/* sual pəncərəsi */
/* sual pəncərəsi həmişə ən üstdədir (diş paneli, şəkil baxışı və menyudan da yuxarı) */
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 5000; padding: 16px; }
.modal { position: relative; background: #fff; border-radius: 14px; padding: 22px; max-width: 440px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal h3 { margin: 0 0 8px; }
.modal p { margin: 0 0 16px; color: var(--text); white-space: pre-line; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cal-time { height: var(--hour); font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; transform: translateY(-7px); }
.cal-time:first-child { transform: none; }
.cal-col { position: relative; border-left: 1px solid var(--line); }
.cal-col.today { background: #f0fdfa; }
.cal-slot { display: block; border-top: 1px dashed #f1f5f9; }
.cal-slot.hour-start { border-top: 1px solid var(--line); }
.cal-slot:hover { background: var(--primary-l); }
.appt { position: absolute; left: 3px; right: 3px; background: color-mix(in srgb, var(--dc) 14%, white); border-left: 4px solid var(--dc); border-radius: 6px; padding: 2px 6px; font-size: 12px; color: var(--text); overflow: hidden; z-index: 2; line-height: 1.3; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.appt:hover { text-decoration: none; z-index: 4; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.appt-sub { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt.status-cancelled { opacity: .45; text-decoration: line-through; }
.appt.status-no_show { background: #fee2e2; border-left-color: var(--danger); }
.appt.status-arrived, .appt.status-done { box-shadow: inset 0 0 0 1px #16a34a; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 3; pointer-events: none; }
.color-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.color-pick label { flex-direction: row; }
.color-pick input { display: none; }
.color-pick span { width: 26px; height: 26px; border-radius: 50%; display: inline-block; cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.color-pick input:checked + span { box-shadow: 0 0 0 2px var(--text); }
.provider-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #f8fafc; padding: 12px; border-radius: 8px; }
.provider-box p, .provider-box .span2 { grid-column: span 2; }

/* giriş */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #0b3b3a, #0f766e); }
.auth-card { background: #fff; padding: 32px; border-radius: 16px; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth-card h1 { text-align: center; }
.auth-card > .muted { text-align: center; margin-bottom: 18px; }
.auth-logo { text-align: center; margin-bottom: 6px; }
.auth-logo img { width: 72px; height: 72px; display: inline-block; filter: drop-shadow(0 4px 10px rgba(11, 79, 74, .25)); }
.auth-wrap .flash { max-width: 400px; width: 100%; }

/* mobil */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .sidebar nav, .sidebar .me { display: none; }
  .sidebar.open nav, .sidebar.open .me { display: flex; }
  .sidebar.open .me { display: block; }
  .menu-toggle { display: inline-block; margin-bottom: 12px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: inherit; }
  .content { padding: 16px; }
  .grid2, .form-grid, .form-grid fieldset { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .table { display: block; overflow-x: auto; }
  .dl { grid-template-columns: 120px 1fr; }
}

.tpl-card textarea { margin-bottom: 10px; }
.tpl-preview { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px 12px 12px 2px; padding: 10px 14px; max-width: 560px; }
.tpl-preview > div { margin: 4px 0; white-space: pre-wrap; }

.wa-sample { margin: 10px 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.wa-sample pre { white-space: pre-wrap; margin: 6px 0; font: inherit; background: #f0fdf4; padding: 8px; border-radius: 6px; }
details summary { cursor: pointer; font-weight: 600; }

.seg { display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; width: fit-content; }
.seg label { flex-direction: row; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.seg label:has(input:checked) { background: #fff; box-shadow: var(--shadow); color: var(--primary); }
.seg input { width: auto; }

/* qeyri-iş vaxtı və rezerv */
.cal-off { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(100,116,139,.10) 0 6px, rgba(100,116,139,.04) 6px 12px); }
.cal-off span { position: absolute; top: 4px; left: 6px; font-size: 11px; color: #64748b; font-weight: 600; }
.cal-block { position: absolute; left: 3px; right: 3px; z-index: 2; border-radius: 6px; padding: 2px 6px; font-size: 12px; overflow: hidden;
  color: #334155; text-decoration: none; line-height: 1.3; border: 1px dashed color-mix(in srgb, var(--dc) 60%, #64748b);
  background: repeating-linear-gradient(135deg, #e2e8f0 0 8px, #f1f5f9 8px 16px); }
a.cal-block:hover { text-decoration: none; box-shadow: 0 3px 8px rgba(0,0,0,.12); z-index: 4; }
.month-block { font-size: 11px; padding: 1px 5px; border-radius: 4px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none; border: 1px dashed #94a3b8; background: #f1f5f9; }
.schedule-table td { vertical-align: middle; }
.schedule-table input[type=time] { width: auto; }
.schedule-table tr.off td { color: #94a3b8; }
.schedule-table tr.off input[type=time] { opacity: .45; }
.switch { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.switch input { width: auto; }
.break-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 14px 0; padding: 12px; background: #f8fafc; border-radius: 8px; }
.break-row input[type=time] { width: auto; }
.schedule-card h2 { margin-top: 0; }
.force-box { background: #fff7ed; border: 1px solid #fed7aa; padding: 8px 10px; border-radius: 8px; }

/* məxfilik */
.nav-badge { background: #dc2626; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
.lock-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #f8fafc; border: 1px solid var(--line); border-left: 4px solid #64748b; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.cal-locked { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding-top: 40px;
  background: repeating-linear-gradient(135deg, rgba(100,116,139,.12) 0 8px, rgba(100,116,139,.05) 8px 16px); color: #475569; font-weight: 600; }
.access-req { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px; border: 1px solid #fed7aa; background: #fff7ed; border-radius: 10px; margin-bottom: 10px; }
.access-reason { margin-top: 6px; }
.access-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.access-actions select { width: auto; }
.access-ask { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.access-ask input { min-width: 240px; }
tr.highlight td { background: #fefce8; }
.locked-card { max-width: 560px; margin: 40px auto; text-align: center; }
.locked-card .locked-icon { font-size: 48px; }
.locked-card .btn { margin: 6px; }

/* rezerv ikonu (təqvim + kilid), rəngi mətnin rəngindən götürür */
.ico-reserve { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: 6px; background: currentColor;
  -webkit-mask: url("brand/icon-reserve.svg") center / contain no-repeat; mask: url("brand/icon-reserve.svg") center / contain no-repeat; }
.btn-reserve { color: #0b4f4a; border-color: #99d5cc; background: #f0fdfa; }
.btn-reserve:hover { background: #ccfbf1; }
.cal-block .ico-reserve, .month-block .ico-reserve { width: 1em; height: 1em; margin-right: 3px; }

/* qəbul formu: başlama / bitmə saatı addımla */
.time-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.time-pair .time-info { grid-column: span 2; margin-top: -4px; }
.stepper { display: flex; align-items: stretch; gap: 0; }
.stepper input[type=time] { border-radius: 0; text-align: center; font-size: 17px; font-weight: 600; min-width: 0; }
.step-btn { width: 44px; border: 1px solid var(--line); background: #f0fdfa; color: #0b4f4a; font-size: 14px; cursor: pointer; }
.step-btn:first-child { border-radius: 8px 0 0 8px; border-right: 0; }
.step-btn:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.step-btn:hover { background: #ccfbf1; }
.step-btn:active { background: #99f6e4; }
@media (max-width: 600px) { .time-pair { grid-template-columns: 1fr; } .time-pair .time-info { grid-column: auto; } }

@media (max-width: 600px) {
  .cal-nav { flex-wrap: wrap; }
  .cal-range { flex-basis: 100%; margin-left: 0; order: 10; }
}

/* loyallıq reytinqi (ulduz) */
.stars { display: inline-flex; align-items: center; gap: 1px; font-size: .8em; vertical-align: middle; letter-spacing: 0; }
h1 .stars { font-size: 20px; margin-left: 6px; }
.stars .on { color: #f59e0b; }
.stars .off { color: #d1d5db; }
.stars small { font-size: 10px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.stars.none { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.rating-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 14px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; margin-bottom: 16px; }
.star-pick { display: flex; align-items: center; gap: 2px; }
.star-pick button[name=rating]:not(.auto-btn) { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #d1d5db; padding: 0 2px; transition: transform .1s; }
.star-pick button[name=rating].on:not(.auto-btn) { color: #f59e0b; }
.star-pick:hover button[name=rating]:not(.auto-btn) { color: #f59e0b; }
.star-pick button[name=rating]:not(.auto-btn):hover ~ button:not(.auto-btn) { color: #d1d5db; }
.star-pick button[name=rating]:not(.auto-btn):hover { transform: scale(1.15); }
.star-pick .auto-btn { margin-left: 10px; }

/* resepşn səlahiyyətləri */
.table-wrap { overflow-x: auto; }
.perm-table th.c, .perm-table td.c { text-align: center; width: 120px; }
.perm-table input[type=checkbox] { width: 20px; height: 20px; cursor: pointer; }
.perm-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.perm-row ul { margin: 6px 0 0 18px; padding: 0; list-style: none; }
.perm-row li { color: #166534; margin: 2px 0; }

/* profil və avatarlar */
.me-card { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-bottom: 6px; }
.me-card:hover { text-decoration: none; opacity: .9; }
.me-card .me-name, .me-card .me-role { display: block; }
.me-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.doc-avatar { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 4px; display: block; }
.profile-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, #f0fdfa, #ffffff); }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 8px 24px rgba(11, 79, 74, .25); flex: none; }
.profile-info { flex: 1; min-width: 240px; }
.profile-info h1 { margin: 0 0 4px; }
.profile-bio { margin: 8px 0; white-space: pre-line; }
.profile-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; }
.unlock-next { margin-top: 12px; max-width: 420px; }
.progress { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #14a091, #0b4f4a); border-radius: 999px; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.avatar-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 2px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; font: inherit; text-align: center; transition: transform .12s, border-color .12s; }
.avatar-tile:hover:not(:disabled) { transform: translateY(-2px); border-color: #14a091; }
.avatar-tile.current { border-color: #0b4f4a; background: #f0fdfa; }
.avatar-tile.locked { cursor: not-allowed; background: #f8fafc; }
.avatar-tile.locked img { filter: grayscale(1); opacity: .4; }
.avatar-img { position: relative; display: inline-block; }
.avatar-img img { width: 84px; height: 84px; border-radius: 50%; display: block; }
.avatar-img .lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: rgba(15, 23, 42, .75); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.avatar-img .tick { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: #0b4f4a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; border: 2px solid #fff; }

/* platforma və klinika qaydaları */
.nav-platform { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px !important; }
.rules-table td.rule-label { max-width: 520px; }
.rules-table th.c, .rules-table td.c { text-align: center; width: 160px; }
.rules-table select { width: auto; }
.rules-table tr.rule-locked td { color: #64748b; }
.pw-form input { width: 140px; display: inline-block; }

.req-create input, .req-create select { width: auto; max-width: 150px; display: inline-block; }

.assist-box { grid-column: 1 / -1; background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 10px; padding: 10px 12px; }
.assist-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.assist-list label { flex-direction: row; }

/* həmkarlarla paylaşılan təqvim */
.cal-slot.ro:hover { background: transparent; }
.appt.shared, .month-appt.shared { cursor: default; opacity: .85; }
.share-banner { background: #eff6ff; border-color: #bfdbfe; }
.share-state { padding: 10px 12px; border-radius: 10px; margin: 8px 0 12px; }
.share-state.on { background: #ecfdf5; color: #065f46; }
.share-state.off { background: #f8fafc; color: #475569; }
.share-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; margin: 2px 3px; border: 1px solid var(--line); border-radius: 999px; }

/* qəbulu silmək düyməsi (təqvimdə) */
.appt-x { position: absolute; top: 1px; right: 2px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--danger); font-size: 15px; line-height: 20px; cursor: pointer; opacity: 0; z-index: 3; }
.appt:hover .appt-x, .appt-x:focus { opacity: 1; }
@media (hover: none) { .appt-x { opacity: .85; } }
.appt-x:hover { background: var(--danger); color: #fff; }

/* paneldə kliklənən göstəricilər */
.stat-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.stat-link:hover { text-decoration: none; border-color: var(--primary); box-shadow: 0 4px 14px rgba(15,118,110,.15); transform: translateY(-1px); }
.stat-go { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--primary); opacity: .75; }
.stat-link:hover .stat-go { opacity: 1; }

/* paneldə motivasiya cümləsi */
.motto { margin: 8px 0 0; padding: 8px 14px; border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--primary) 7%, white); color: var(--text); font-style: italic; max-width: 640px; }

/* hesabat */
.report-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.report-bar label { font-size: 12px; }
.report-bar select { width: auto; }
.status-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #f1f5f9; }
.status-bar span { min-width: 4px; }
.status-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; }
.status-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.chart-cols { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-bottom: 16px; position: relative; }
.chart-cols .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.chart-cols .bar { width: 100%; max-width: 26px; min-height: 2px; background: var(--primary); border-radius: 4px 4px 0 0; opacity: .8; }
.chart-cols .col.today .bar { opacity: 1; background: #0891b2; }
.chart-cols small { position: absolute; bottom: -16px; font-size: 10px; color: var(--muted); }
.hbars { width: 100%; border-collapse: collapse; font-size: 13px; }
.hbars caption { text-align: left; font-weight: 700; margin-bottom: 6px; }
.hbars td { padding: 3px 4px; white-space: nowrap; }
.hbars td.hb { width: 100%; }
.hbars td.hb span { display: block; height: 12px; min-width: 2px; border-radius: 4px; background: color-mix(in srgb, var(--primary) 70%, white); }
@media print {
  .sidebar, .no-print, .topbar, .flash { display: none !important; }
  .layout, main { display: block !important; margin: 0 !important; padding: 0 !important; }
  .card, .stat { box-shadow: none !important; break-inside: avoid; }
}

/* profil şəkli + rozet */
.me-avatar, .doc-avatar, .profile-avatar { object-fit: cover; background: #fff; }
.pic-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.pic-wrap .pic-badge { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.25); }
.pic-wrap.big .pic-badge { width: 40px; height: 40px; right: -2px; bottom: -2px; box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0,0,0,.25); }
.profile-pic { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.profile-pic form { margin: 0; }
.photo-form label.btn { cursor: pointer; }

/* qiymət qaydası seçimi */
.price-mode { display: grid; gap: 10px; margin-bottom: 8px; }
.price-mode .choice { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.price-mode .choice input { grid-row: span 2; margin-top: 3px; width: auto; }
.price-mode .choice.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, white); }
.price-mode button { justify-self: start; }
.price-input { width: 110px; }

/* kontrol (recall) */
.recall-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.recall-box h2 { margin-top: 0; }
.recall-form { margin-top: 10px; }
tr.neg td:first-child { color: var(--danger); font-weight: 600; }
.recall-group h2 .count { color: var(--muted); font-weight: 400; }
.recall-group.overdue h2 { color: var(--danger); }

/* 2FA */
.tfa-steps { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.tfa-qr svg { display: block; border-radius: 10px; background: #fff; padding: 4px; box-shadow: var(--shadow); }
.tfa-key { font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: 1px; background: #f1f5f9; padding: 6px 10px; border-radius: 8px; display: inline-block; word-break: break-all; }
.code-input { font-size: 22px; letter-spacing: 6px; text-align: center; max-width: 220px; font-family: ui-monospace, Consolas, monospace; }
.backup-codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 24px; font-family: ui-monospace, Consolas, monospace; font-size: 16px;
  background: #fffbeb; border: 1px dashed #f59e0b; padding: 12px 16px; border-radius: 10px; margin: 10px 0; }
@media (max-width: 640px) { .tfa-steps { grid-template-columns: 1fr; } }

/* sol menyu öz-özünə sürüşür (uzun menyu) */
.sidebar nav::-webkit-scrollbar { width: 6px; }
.sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 3px; }
.sidebar nav a { flex: none; }
@media (max-width: 900px) { .sidebar nav { overflow: visible; } }

/* maliyyə paneli */
.stat-go.pos { color: #15803d; opacity: 1; }
.stat-go.neg { color: var(--danger); opacity: 1; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.hbars td .dot { margin-right: 6px; }

/* media qalereyası */
.media-upload { margin-bottom: 4px; }
.media-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.media-filter button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 13px; }
.media-filter button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.media-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.media-item img { width: 100%; height: 140px; object-fit: cover; display: block; background: #0f172a; cursor: zoom-in; }
.media-pdf { height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 40px; background: #f1f5f9; text-decoration: none; }
.media-pdf span { font-size: 12px; font-weight: 700; color: var(--muted); }
.media-item figcaption { padding: 8px 10px; font-size: 13px; display: grid; gap: 2px; }
.media-acts { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(2,6,23,.92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #000; }
.lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #e2e8f0; font-size: 14px; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; border-radius: 50%; }
.lb-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 26px; }
.lb-nav { top: 50%; width: 48px; height: 48px; font-size: 30px; transform: translateY(-50%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }

.date-edit input[type=date] { width: auto; padding: 3px 6px; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0 0 0 4px; color: var(--primary); cursor: pointer; text-decoration: underline; }

/* anamnez */
.medical-alert.risk { border-color: #fca5a5; background: #fef2f2; }
.risk-chip { display: inline-block; margin: 2px 4px; padding: 1px 8px; border-radius: 999px; background: #fee2e2; color: #991b1b; font-size: 13px; }
.anam-table td:first-child { width: 45%; }
.risk-row td { background: #fff1f2; }
.ans { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #475569; }
.ans-yes { background: #fee2e2; color: #b91c1c; } .ans-no { background: #dcfce7; color: #166534; }
.anam-form .q { display: grid; grid-template-columns: 1.3fr auto 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.anam-form .q.risky .ql::after { content: " ⚠"; color: #dc2626; font-size: 12px; }
.anam-form .opts { display: flex; gap: 4px; }
.anam-form .opts label { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13px; }
.anam-form .opts input { width: auto; margin: 0; }
.anam-form .opts label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, white); font-weight: 600; }
.anam-form .opts label.yes:has(input:checked) { border-color: #dc2626; background: #fee2e2; color: #991b1b; }
@media (max-width: 760px) { .anam-form .q { grid-template-columns: 1fr; } }
.sig-pad { width: 100%; max-width: 560px; height: 180px; border: 2px dashed var(--line); border-radius: 12px; background: #fff; touch-action: none; }
.confirm-sheet { max-width: 760px; margin: 0 auto; }

/* telefonda aşağı çəkib yeniləmə */
@media (hover: none) { html, body { overscroll-behavior-y: contain; } }
.ptr { position: fixed; top: 0; left: 50%; z-index: 2000; width: 40px; height: 40px; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; opacity: 0;
  transform: translate(-50%, -40px); transition: opacity .15s; pointer-events: none; color: var(--muted); font-size: 22px; }
.ptr.ready { color: var(--primary); }
.ptr.spin span { animation: ptr-spin .7s linear infinite; display: inline-block; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* pasiyentin maliyyə hesabı */
.pay-form h3, .refund-box summary { margin: 0 0 6px; }
.refund-box { border: 1px dashed #fca5a5; border-radius: 12px; padding: 10px 14px; align-self: start; }
.refund-box summary { cursor: pointer; font-weight: 600; color: #b91c1c; }
.pay-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pay-chip.full { background: #dcfce7; color: #166534; } .pay-chip.part { background: #fef3c7; color: #92400e; } .pay-chip.none { background: #fee2e2; color: #991b1b; }
.ledger tr.led-payment td:nth-child(2) { color: #166534; }
tr.led-refund td { color: #b91c1c; }

/* interaktiv odontoqram */
.odo-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; margin-bottom: 8px; }
.odo-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.odontogram .odo-tooth { width: 46px; height: 66px; padding: 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; border-radius: 10px; position: relative; }
.odontogram .tooth.mid { margin-left: 14px; }
.odo-tooth svg { width: 38px; height: 38px; display: block; }
.odo-tooth .odo-num { font-size: 11px; line-height: 1; }
.odo-tooth .odo-tag { position: absolute; top: -6px; right: -4px; font-size: 9px; font-weight: 700; color: #fff; border-radius: 999px; padding: 1px 4px; line-height: 1.2; }
.odo-tooth .odo-dot { position: absolute; top: 2px; left: 3px; width: 7px; height: 7px; border-radius: 50%; }
.odo-tooth.cond-missing { opacity: .45; border-style: dashed; }
.odo-tooth.cond-crown svg .outer { stroke: #d97706; stroke-width: 4; }
.odo-tooth.cond-extraction svg .x, .odo-tooth.cond-missing svg .x { display: block; }
.odo-tooth svg .x { display: none; }
.odo-tooth.active { outline: 3px solid var(--primary); outline-offset: 1px; }
.odo-panel-back { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 900; }
.odo-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 901; box-shadow: -10px 0 40px rgba(0,0,0,.2);
  overflow-y: auto; padding: 18px 20px 30px; display: grid; gap: 12px; align-content: start; }
.odo-panel h3 { margin: 0; } .odo-panel .muted { margin: 0; }
.odo-panel .close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.odo-states { display: flex; flex-wrap: wrap; gap: 6px; }
.odo-states button { border: 2px solid var(--c); background: #fff; color: var(--c); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.odo-states button.on { background: var(--c); color: #fff; }
.odo-surf-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; }
.odo-surf svg { width: 170px; height: 170px; }
.odo-surf svg .s { cursor: pointer; stroke: #475569; stroke-width: 1.2; transition: filter .1s; }
.odo-surf svg .s:hover { filter: brightness(.9); }
.odo-surf svg text { font-size: 9px; font-weight: 700; fill: #0f172a; pointer-events: none; }
.odo-brush { display: grid; gap: 4px; }
.odo-brush label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.odo-brush input { width: auto; margin: 0; }
.odo-brush i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.odo-list { margin: 0; padding-left: 16px; font-size: 13px; }
.odo-list li { margin: 2px 0; }
.odo-panel .readonly-note { background: #f1f5f9; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
@media (max-width: 640px) {
  .odo-panel { top: auto; height: 86vh; width: 100vw; border-radius: 18px 18px 0 0; }
  .odo-surf-wrap { grid-template-columns: 1fr; justify-items: center; }
}

/* sadələşdirilmiş menyu: qruplar */
.nav-quick { margin: 4px 12px 6px; justify-content: center; text-align: center; display: block; }
.nav-group { margin-top: 6px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 4px; }
.nav-group > summary { list-style: none; cursor: pointer; color: #9fcfca; padding: 8px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center;
  font-size: 13px; font-weight: 600; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: "▸"; margin-left: auto; transition: transform .15s; opacity: .7; }
.nav-group[open] > summary::after { transform: rotate(90deg); }
.nav-group > summary:hover { background: rgba(255,255,255,.07); }
.nav-group > a { padding-left: 24px; }
.sidebar nav { gap: 2px; }
.nav-badge.warn { background: #f59e0b; }

/* məlumatların silinməsi */
.del-box summary { cursor: pointer; color: #b91c1c; font-weight: 600; }
.data-ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.inline-details { display: inline-block; } .inline-details summary { list-style: none; } .inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] { display: block; width: 100%; }
.ret-ok { color: #166534; } .ret-blocked { color: #b45309; }
.audit-row td { font-size: 13px; }

/* insidentlər */
.incident.sev-high { border-left: 4px solid #dc2626; } .incident.sev-medium { border-left: 4px solid #d97706; } .incident.sev-low { border-left: 4px solid #64748b; }

/* hüquqi sənədlər */
.legal-text { white-space: pre-wrap; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.accept-box details { margin: 6px 0; }
.legal-print { max-width: 760px; margin: 0 auto; background: #fff; padding: 30px; white-space: pre-wrap; font-size: 14px; }
.sign-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; white-space: normal; }
.sign-lines div { border-top: 1px solid #000; padding-top: 4px; font-size: 12px; }

.room-tag { display: inline-block; font-size: 11px; font-weight: 600; color: #0b4f4a; background: #e6f4f1; border-radius: 10px; padding: 1px 8px; margin-top: 2px; white-space: nowrap; }
.cal-toolbar .room-tag, .cal-range + .room-tag { margin-left: 6px; font-size: 12px; }

.cal-busy { position: absolute; left: 3px; right: 3px; z-index: 2; border-radius: 6px; padding: 2px 6px; font-size: 12px; overflow: hidden;
  color: #475569; border: 1px dashed #94a3b8; border-left: 3px solid var(--dc, #94a3b8);
  background: repeating-linear-gradient(135deg, #f1f5f9 0 6px, #e2e8f0 6px 12px); cursor: not-allowed; }
.cal-busy .appt-sub { color: #64748b; }

.clinic-switch { padding: 0 14px 10px; }
.clinic-switch label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #94a3b8; }
.clinic-switch select { width: 100%; font-size: 13px; padding: 4px 6px; border-radius: 6px; }

.mc-tabs { display: flex; gap: 8px; margin: 4px 0 10px; flex-wrap: wrap; }
.mc-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-bottom: 10px; }
.mc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.mc-hours td { vertical-align: top; min-width: 170px; }
.mc-times { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.mc-times input { width: 92px; }
.mc-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mc-week-wrap { overflow-x: auto; padding: 8px; }
.mc-week { display: grid; grid-template-columns: 52px repeat(7, minmax(110px, 1fr)); min-width: 820px; }
.mc-head { text-align: center; font-weight: 600; font-size: 13px; padding: 4px 0 8px; border-bottom: 1px solid #e2e8f0; }
.mc-head.today { color: #0f766e; }
.mc-hours-col div { font-size: 11px; color: #94a3b8; text-align: right; padding-right: 6px; box-sizing: border-box; }
.mc-day { position: relative; border-left: 1px solid #e2e8f0;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--px) - 1px), #f1f5f9 calc(var(--px) - 1px) var(--px)); }
.mc-band { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--cc) 12%, transparent); border-left: 3px solid var(--cc); }
.mc-appt { position: absolute; left: 6px; right: 3px; margin: 0; z-index: 2; }
.mc-appt button { width: 100%; height: 100%; text-align: left; border: 0; border-left: 3px solid var(--cc); border-radius: 6px; cursor: pointer;
  background: color-mix(in srgb, var(--cc) 22%, white); color: #0f172a; font-size: 12px; padding: 2px 5px; overflow: hidden; line-height: 1.25;
  white-space: nowrap; text-overflow: ellipsis; }
.mc-appt button span { display: block; font-size: 11px; color: #475569; }
.mc-appt button:hover { filter: brightness(0.95); }

.clinic-ctx { display: inline-block; font-size: 12px; font-weight: 600; color: #0b4f4a; background: #e6f4f1; border-radius: 10px; padding: 2px 10px; margin-bottom: 8px; }
.clinic-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; }
.clinic-pick label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
a.mc-band { display: block; cursor: copy; }
a.mc-band:hover { background: color-mix(in srgb, var(--cc) 20%, transparent); }

a.brand { color: inherit; text-decoration: none; cursor: pointer; }
a.brand:hover .brand-name { text-decoration: underline; }
.clinic-pick label { flex-direction: row !important; margin: 0; }
.clinic-pick select { width: auto; min-width: 180px; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stats-row .stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; margin: 0; }
.stats-row .stat b { font-size: 26px; }
.stats-row .stat span { color: #64748b; font-size: 13px; }

.mc-appt-link, .mc-busy { display: block; box-sizing: border-box; border-left: 3px solid var(--cc); border-radius: 6px; font-size: 12px; padding: 2px 5px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.25; color: #0f172a; text-decoration: none; }
.mc-appt-link { background: color-mix(in srgb, var(--cc) 22%, white); }
.mc-busy { background: repeating-linear-gradient(135deg, #f1f5f9 0 6px, #e2e8f0 6px 12px); color: #475569; cursor: default; }
.mc-appt-link span, .mc-busy span { display: block; font-size: 11px; color: #475569; }

/* ---- ilk səhifə (satış) ---- */
.lp { background: #fff; color: #0f172a; min-height: 100vh; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1120px; margin: 0 auto; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #0b4f4a; text-decoration: none; }
.lp-nav { display: flex; align-items: center; gap: 18px; }
.lp-nav a:not(.btn) { color: #334155; text-decoration: none; font-weight: 500; }
.lp-nav a:not(.btn):hover { color: #0b4f4a; }
.lp-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.lp-hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; color: #0b2f2c; }
.lp-lead { font-size: 18px; color: #475569; line-height: 1.6; margin: 0 0 24px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-big { padding: 12px 22px; font-size: 16px; }
.lp-note { color: #64748b; font-size: 13px; margin-top: 12px; }
.lp-mock { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 79, 74, .12); overflow: hidden; }
.lp-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0b4f4a; color: #e6f4f1; font-size: 13px; }
.lp-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.lp-mock-bar span { margin-left: 8px; }
.lp-mock-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 14px; min-height: 240px; }
.lp-mock-day { background: #fff; border-radius: 8px; padding: 8px 6px; display: flex; flex-direction: column; }
.lp-mock-day b { font-size: 12px; color: #64748b; text-align: center; }
.lp-mock-appt { display: block; height: 28px; border-radius: 6px; border-left: 3px solid; }
.lp-mock-appt.c0 { background: #ccfbf1; border-color: #0f766e; }
.lp-mock-appt.c1 { background: #ede9fe; border-color: #7c3aed; }
.lp-mock-appt.c2 { background: #ffedd5; border-color: #ea580c; }
.lp-h2 { font-size: 28px; margin: 0 0 20px; color: #0b2f2c; }
section.lp-wrap, .lp-band { padding-top: 48px; padding-bottom: 48px; }
.lp-band { background: #f1f7f6; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; background: #fff; }
.lp-card h3, .lp-who h3 { margin: 6px 0 8px; font-size: 17px; }
.lp-card p, .lp-who p { margin: 0; color: #475569; line-height: 1.55; font-size: 15px; }
.lp-ico { font-size: 28px; }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.lp-checks li { position: relative; padding-left: 30px; color: #334155; line-height: 1.5; }
.lp-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #0f766e; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
/* bir pasiyentin müalicə prosesi: 6 addım */
.lp-flow-video { margin: 0 auto 26px; max-width: 1000px; border-radius: 18px; overflow: hidden; background: #061a1e;
  box-shadow: 0 30px 60px -28px rgba(6, 26, 30, .55), 0 0 0 1px rgba(15, 118, 110, .18); aspect-ratio: 16 / 9; }
.lp-flow-video video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.lp-flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; counter-reset: none; }
.lp-flow-step { position: relative; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px 20px 20px; background: #fff; box-shadow: var(--shadow); }
.lp-flow-step::after { content: ""; position: absolute; top: 34px; right: -19px; width: 18px; height: 2px; background: linear-gradient(90deg, #5fd4c4, #0f766e); }
.lp-flow-step:nth-child(3n)::after, .lp-flow-step:last-child::after { display: none; }
.lp-flow-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lp-flow-n { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; background: linear-gradient(135deg, #5fd4c4, #0f766e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-flow-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #e6f6f3; color: #0f766e; }
.lp-flow-ico svg { width: 22px; height: 22px; }
.lp-flow-step h3 { margin: 4px 0 6px; font-size: 17px; }
.lp-flow-step p { margin: 0; color: #475569; line-height: 1.55; font-size: 15px; }
html[data-theme="dark"] .lp-flow-step { background: #122127; border-color: var(--line); }
html[data-theme="dark"] .lp-flow-step p { color: #b3c4cd; }
html[data-theme="dark"] .lp-flow-ico { background: rgba(95, 212, 196, .12); color: #5fd4c4; }
@media (max-width: 860px) {
  .lp-flow-steps { grid-template-columns: 1fr; gap: 14px; padding-left: 18px; border-left: 2px solid #5fd4c4; }
  .lp-flow-step::after { display: block !important; top: 30px; right: auto; left: -27px; width: 14px; height: 14px; border-radius: 50%; background: #0f766e; border: 3px solid #e6f6f3; }
  .lp-flow-n { font-size: 28px; }
}
.lp-price { text-align: center; }
.lp-price p { color: #475569; font-size: 17px; max-width: 620px; margin: 0 auto 20px; }
.lp-demo { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.lp-demo p { color: #475569; line-height: 1.6; }
.lp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.lp-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: 14px; }
.lp-form label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; color: #475569; }
.lp-full { grid-column: 1 / -1; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-foot { border-top: 1px solid #e2e8f0; padding: 22px 0; color: #64748b; font-size: 14px; }
.lp-foot a { color: #0b4f4a; }
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 16px; gap: 28px; }
  .lp-hero h1 { font-size: 30px; }
  .lp-grid, .lp-checks, .lp-demo { grid-template-columns: 1fr; }
  .lp-nav a:not(.btn) { display: none; }
  .lp-h2 { font-size: 23px; }
}
@media (max-width: 520px) { .lp-form { grid-template-columns: 1fr; } .lp-mock-grid { min-height: 180px; } }

/* =====================================================================
   PREMIUM DİZAYN QATI — dərinlik (kölgə, qatlar) və güclü kontrast.
   Yuxarıdakı əsas stillərin üzərinə yazılır; silinərsə köhnə görünüş qayıdır.
   ===================================================================== */
:root {
  --bg: #eef2f5; --card: #ffffff; --text: #0f1c2b; --muted: #5a6b7f; --line: #dde4ea;
  --primary: #0c6b63; --primary-d: #084f49; --primary-l: #c9f0e9; --ink: #062b29; --gold: #c9a24d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 30, 40, .06), 0 4px 12px rgba(6, 30, 40, .06), 0 12px 32px -12px rgba(6, 30, 40, .14);
  --shadow-hi: 0 2px 4px rgba(6, 30, 40, .08), 0 10px 24px rgba(6, 30, 40, .10), 0 24px 48px -16px rgba(6, 30, 40, .22);
  --ring: 0 0 0 4px rgba(12, 107, 99, .16);
}
body { background: radial-gradient(1200px 600px at 100% -10%, #e3eef0 0%, transparent 60%), var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1 { font-size: 24px; letter-spacing: -.01em; color: #0a2232; }
h2 { color: #0a2232; letter-spacing: -.005em; }

/* menyu */
.sidebar { background: linear-gradient(180deg, #0a3a38 0%, #062b29 55%, #04211f 100%); box-shadow: 6px 0 24px rgba(4, 33, 31, .18); }
.brand { letter-spacing: .01em; }
.brand .logo { box-shadow: 0 4px 12px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .08); }
.sidebar nav a { color: #c4e1dd; transition: background .15s, color .15s, transform .15s; position: relative; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar nav a.active { background: linear-gradient(135deg, #12857b, #0c6b63); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .14); }
.sidebar nav a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.me { background: rgba(0, 0, 0, .14); }

/* kartlar */
.card, .stat { border: 1px solid rgba(221, 228, 234, .9); box-shadow: var(--shadow); border-radius: var(--radius); }
.card { padding: 20px 22px; }
.stat { transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--primary), #12857b); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.stat-v { color: #0a2232; letter-spacing: -.02em; }

/* düymələr */
.btn { border-radius: 10px; border-color: #d3dbe3; background: linear-gradient(180deg, #ffffff, #f4f7f9); color: #13293a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(6, 30, 40, .08), 0 2px 6px rgba(6, 30, 40, .05);
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; }
.btn:hover { background: linear-gradient(180deg, #ffffff, #eef3f6); border-color: #c3cdd7; transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 4px 10px rgba(6, 30, 40, .10); }
.btn:active { transform: translateY(0); box-shadow: inset 0 2px 4px rgba(6, 30, 40, .12); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { background: linear-gradient(180deg, #13867c 0%, #0c6b63 55%, #095a53 100%); border-color: #08524c; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 4px rgba(8, 82, 76, .25), 0 8px 18px -6px rgba(8, 82, 76, .55); text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.btn.primary:hover { background: linear-gradient(180deg, #169184 0%, #0d746b 55%, #0a5f58 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 8px rgba(8, 82, 76, .28), 0 12px 24px -8px rgba(8, 82, 76, .6); }
.btn.danger { color: #b91c1c; border-color: #f3c4c4; background: linear-gradient(180deg, #fff, #fff6f6); }
.btn.ghost { box-shadow: none; background: transparent; }
.btn.ghost:hover { background: rgba(12, 107, 99, .07); transform: none; }

/* sahələr */
input, select, textarea { border-color: #c9d3dc; border-radius: 10px; background: #fff; box-shadow: inset 0 1px 2px rgba(6, 30, 40, .06); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #aebbc7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 1px 2px rgba(6, 30, 40, .05), var(--ring); }
label { color: #24394c; }

/* cədvəllər */
.card > .table, .card .table { border-collapse: separate; border-spacing: 0; }
.table th { background: linear-gradient(180deg, #f6f9fb, #eef3f6); color: #3f5367; font-size: 11.5px; letter-spacing: .06em; border-bottom: 1px solid #d6dee6; padding: 10px 12px; }
.table th:first-child { border-top-left-radius: 10px; }
.table th:last-child { border-top-right-radius: 10px; }
.table td { padding: 11px 12px; border-bottom: 1px solid #edf1f4; }
.table tbody tr:nth-child(even) td, .table tr:nth-child(even) > td { background: #fbfcfd; }
tr.clickable td { transition: background .12s; }
tr.clickable:hover td { background: #eef7f5 !important; }
tr.clickable:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

/* nişanlar, xəbərdarlıqlar */
.badge { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); }
.flash { border-radius: 12px; box-shadow: 0 2px 8px rgba(6, 30, 40, .06); }
.info-box { border-radius: 12px; }
.tabs button.active { color: var(--primary-d); border-bottom-width: 3px; }

/* təqvim blokları — bir az qabarıq */
.appt, .cal-appt, .mc-appt button, .mc-appt-link { box-shadow: 0 1px 2px rgba(6, 30, 40, .10), 0 3px 8px -2px rgba(6, 30, 40, .12); }

/* ilk səhifə üçün uyğunlaşdırma */
.lp-card { box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.lp-hero h1 { background: linear-gradient(120deg, #062b29 20%, #0c6b63 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-form { box-shadow: var(--shadow-hi); }

@media (prefers-reduced-motion: reduce) { .btn, .stat, .lp-card, .sidebar nav a { transition: none; } .btn:hover, .stat:hover, .lp-card:hover { transform: none; } }

.lp-big { justify-content: center; }
.lp-form label.check input { margin-top: 3px; }

/* ---- telefon ---- */
.side-top { display: flex; align-items: center; justify-content: space-between; }
.menu-btn { display: none; }
.menu-toggle { display: none !important; }
@media (max-width: 900px) {
  .sidebar { position: sticky; top: 0; z-index: 60; }
  .side-top { padding-right: 12px; }
  .brand { padding: 12px 16px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; font-size: 20px;
    color: #e6f4f1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); cursor: pointer; }
  .sidebar.open nav { max-height: calc(100vh - 140px); overflow-y: auto; }
  .content { padding: 14px 14px 40px; }
  .page-head h1 { font-size: 21px; }
  .card { padding: 14px; }
  .btn { min-height: 40px; }
  .btn.small { min-height: 32px; }
  input, select, textarea { font-size: 16px; } /* iPhone-da fokusda böyütmə olmasın */
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .table td, .table th { padding: 10px 8px; }
  .mc-week { grid-template-columns: 46px repeat(7, minmax(96px, 1fr)); min-width: 720px; }
  .mc-week-wrap { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .mc-hours-col, .mc-week > .mc-head:first-child { position: sticky; left: 0; z-index: 4; background: #fff; }
  .mc-nav { gap: 6px; }
}

/* =====================================================================
   QARANLIQ REJİM — html[data-theme="dark"]. Seçim brauzerdə saxlanılır.
   ===================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1317; --card: #111c22; --card2: #16242b; --text: #e4edf1; --muted: #93a8b4; --line: #24363f;
  --primary: #19a394; --primary-d: #13867c; --primary-l: rgba(25, 163, 148, .18); --danger: #f87171; --warn: #fbbf24;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .28);
  --shadow-hi: 0 2px 6px rgba(0, 0, 0, .5), 0 14px 32px rgba(0, 0, 0, .4);
  --ring: 0 0 0 4px rgba(25, 163, 148, .28);
}
html[data-theme="dark"] body { background: radial-gradient(1200px 600px at 100% -10%, #0f2329 0%, transparent 60%), var(--bg); color: var(--text); }
html[data-theme="dark"] a { color: #5fd4c4; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] .stat-v { color: #f1f7f9; }
html[data-theme="dark"] label { color: #c7d6dd; }
html[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #08201f 0%, #051716 60%, #031110 100%); }
html[data-theme="dark"] .sidebar nav a { color: #c4e1dd; }
/* səthlər */
html[data-theme="dark"] .card, html[data-theme="dark"] .stat, html[data-theme="dark"] .modal, html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .cal-head, html[data-theme="dark"] .odo-panel, html[data-theme="dark"] .wa-sample, html[data-theme="dark"] .media-item,
html[data-theme="dark"] .legal-print, html[data-theme="dark"] .lp-card, html[data-theme="dark"] .lp-form, html[data-theme="dark"] .lp-mock-day {
  background: var(--card); border-color: var(--line); color: var(--text); }
html[data-theme="dark"] .view-seg a.active, html[data-theme="dark"] .seg label:has(input:checked), html[data-theme="dark"] .media-filter button,
html[data-theme="dark"] .odo-states button, html[data-theme="dark"] .tooth { background: var(--card2); }
html[data-theme="dark"] .seg, html[data-theme="dark"] .provider-box, html[data-theme="dark"] .tooth-chart, html[data-theme="dark"] .legal-text,
html[data-theme="dark"] code, html[data-theme="dark"] .month-cell.other, html[data-theme="dark"] .odo-panel .readonly-note { background: #0d181d; }
/* sahələr */
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
  background: #0d181d; border-color: #2c414b; color: var(--text); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #6f8591; }
/* düymələr */
html[data-theme="dark"] .btn { background: linear-gradient(180deg, #1a2b33, #14232a); border-color: #2c414b; color: #e4edf1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .btn:hover { background: linear-gradient(180deg, #20343d, #182a32); border-color: #3a525e; }
html[data-theme="dark"] .btn.primary { background: linear-gradient(180deg, #1bb0a0 0%, #13867c 60%, #0f6f67 100%); border-color: #0f6f67; color: #fff; }
html[data-theme="dark"] .btn.danger { color: #fca5a5; border-color: #5b2a2a; background: linear-gradient(180deg, #2a1a1c, #221416); }
html[data-theme="dark"] .btn.ghost { background: transparent; box-shadow: none; }
/* cədvəllər */
html[data-theme="dark"] .table th { background: linear-gradient(180deg, #16252c, #122027); color: #a9bcc6; border-bottom-color: #2c414b; }
html[data-theme="dark"] .table td { border-bottom-color: #1c2c34; }
html[data-theme="dark"] .table tbody tr:nth-child(even) td, html[data-theme="dark"] .table tr:nth-child(even) > td { background: #0f1a20; }
html[data-theme="dark"] tr.clickable:hover td { background: #15302f !important; }
html[data-theme="dark"] .list li a { color: var(--text); border-bottom-color: #1c2c34; }
html[data-theme="dark"] .list li a:hover { background: #15232a; }
/* bildirişlər */
html[data-theme="dark"] .flash { background: #0f2a22; color: #a7f3d0; border-color: #1c5a46; }
html[data-theme="dark"] .flash.error { background: #2a1416; color: #fecaca; border-color: #6b2a2e; }
html[data-theme="dark"] .flash.warn { background: #2a2210; color: #fde68a; border-color: #6b5420; }
html[data-theme="dark"] .info-box { background: #0e2230; color: #bae6fd; border-color: #1e4a63; }
html[data-theme="dark"] .medical-alert { background: #2a1416; color: #fecaca; border-color: #6b2a2e; }
html[data-theme="dark"] .badge { background: color-mix(in srgb, var(--c) 22%, #111c22); color: color-mix(in srgb, var(--c) 55%, white); }
html[data-theme="dark"] .status-select { background: color-mix(in srgb, var(--c) 18%, #111c22); color: color-mix(in srgb, var(--c) 55%, white); }
html[data-theme="dark"] .room-tag, html[data-theme="dark"] .clinic-ctx { background: #13302d; color: #8fe0d4; }
/* təqvim */
html[data-theme="dark"] .cal-col.today, html[data-theme="dark"] .month-cell.today { background: rgba(25, 163, 148, .08); }
html[data-theme="dark"] .cal-slot { border-top-color: #17252c; }
html[data-theme="dark"] .appt { background: color-mix(in srgb, var(--dc) 26%, #111c22); color: #eef5f7; }
html[data-theme="dark"] .month-appt { background: color-mix(in srgb, var(--dc) 24%, #111c22); color: #eef5f7; }
html[data-theme="dark"] .appt.status-no_show { background: #3a1a1d; }
html[data-theme="dark"] .cal-busy, html[data-theme="dark"] .mc-busy { background: repeating-linear-gradient(135deg, #16242b 0 6px, #1c2d35 6px 12px); color: #a9bcc6; border-color: #3a525e; }
html[data-theme="dark"] .cal-off { background: rgba(255, 255, 255, .03); }
html[data-theme="dark"] .mc-day { background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--px) - 1px), #1a2930 calc(var(--px) - 1px) var(--px)); border-left-color: var(--line); }
html[data-theme="dark"] .mc-head { border-bottom-color: var(--line); }
html[data-theme="dark"] .mc-hours-col, html[data-theme="dark"] .mc-week > .mc-head:first-child { background: var(--card); }
html[data-theme="dark"] .mc-appt button, html[data-theme="dark"] .mc-appt-link { background: color-mix(in srgb, var(--cc) 30%, #111c22); color: #eef5f7; }
html[data-theme="dark"] .mc-appt button span, html[data-theme="dark"] .mc-appt-link span { color: #b6c8d1; }
/* ilk səhifə */
html[data-theme="dark"] .lp { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .lp-band { background: #0d1b20; }
html[data-theme="dark"] .lp-brand { color: #5fd4c4; }
html[data-theme="dark"] .lp-nav a:not(.btn) { color: #c7d6dd; }
html[data-theme="dark"] .lp-hero h1 { background: linear-gradient(120deg, #e8f6f3 10%, #5fd4c4 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .lp-lead, html[data-theme="dark"] .lp-card p, html[data-theme="dark"] .lp-who p, html[data-theme="dark"] .lp-checks li,
html[data-theme="dark"] .lp-price p, html[data-theme="dark"] .lp-demo p { color: #b3c4cd; }
html[data-theme="dark"] .lp-h2 { color: #f1f7f9; }
html[data-theme="dark"] .lp-mock { background: #0d181d; border-color: var(--line); }
html[data-theme="dark"] .lp-foot { border-top-color: var(--line); }
html[data-theme="dark"] .lp-mock-appt.c0 { background: #134a44; }
html[data-theme="dark"] .lp-mock-appt.c1 { background: #2e2452; }
html[data-theme="dark"] .lp-mock-appt.c2 { background: #4a2e16; }
html[data-theme="dark"] .tfa-qr svg { background: #fff; } /* QR kod oxunsun deyə ağ fonda qalır */

/* rejim düyməsi */
.theme-btn { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #e6f4f1; border-radius: 10px;
  width: 34px; height: 30px; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.theme-btn:hover { background: rgba(255, 255, 255, .14); }
.lp-top .theme-btn { border-color: var(--line); background: transparent; color: var(--text); }

html[data-theme="dark"] .rating-box { background: #2a2410; border-color: #5c4a1c; color: #fde68a; }
html[data-theme="dark"] .rating-box b, html[data-theme="dark"] .rating-box h3, html[data-theme="dark"] .rating-box strong { color: #fde68a; }
html[data-theme="dark"] .ans { background: #1c2c34; color: #c7d6dd; }
html[data-theme="dark"] .step-btn { background: #12302c; color: #8fe0d4; border-color: var(--line); }
html[data-theme="dark"] .step-btn:hover { background: #164039; }
html[data-theme="dark"] .appt-x { background: rgba(0, 0, 0, .35); color: #e4edf1; }
html[data-theme="dark"] .break-row, html[data-theme="dark"] .tfa-key { background: #0d181d; }
html[data-theme="dark"] .tpl-preview { background: #0f2a22; border-color: #1c5a46; color: #d1fae5; }
html[data-theme="dark"] .share-state.on { background: #0f2a22; color: #a7f3d0; }
html[data-theme="dark"] .share-state.off { background: #0d181d; color: #b3c4cd; }
html[data-theme="dark"] .avatar-tile { background: var(--card2); }
html[data-theme="dark"] .avatar-tile.current { background: #12302c; border-color: #19a394; }
html[data-theme="dark"] .avatar-tile.locked { background: #0d181d; }
html[data-theme="dark"] .month-cell.today .month-day, html[data-theme="dark"] .cal-day-head.today b { background: #0f7a70; color: #fff; }
html[data-theme="dark"] .del-box summary, html[data-theme="dark"] .danger-zone summary { color: #fca5a5; }

.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(12, 107, 99, .08); }
.lang-switch a { padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #3f5367; text-decoration: none; }
.lang-switch a.on { background: #fff; color: var(--primary-d); box-shadow: 0 1px 3px rgba(6, 30, 40, .15); }
.auth-card .lang-switch { display: flex; width: fit-content; margin: 0 auto 14px; }
html[data-theme="dark"] .lang-switch { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .lang-switch a { color: #b3c4cd; }
html[data-theme="dark"] .lang-switch a.on { background: #1c2d35; color: #5fd4c4; }
@media (max-width: 860px) { .lp-nav .lang-switch a { display: inline-block; } .lp-nav { gap: 8px; } }

.trial-bar { background: linear-gradient(90deg, #fff7e6, #fffbeb); border: 1px solid #fde68a; color: #7c4a03; border-radius: 12px; padding: 9px 14px; margin-bottom: 14px; font-size: 14px; }
html[data-theme="dark"] .trial-bar { background: #2a2210; border-color: #6b5420; color: #fde68a; }
.signup-card { max-width: 460px; }
.auth-wrap .signup-card ~ * { max-width: 460px; }

/* ---- ilk giriş köməkçisi ---- */
.wiz { max-width: 640px; margin: 10px auto; }
.wiz-head h1 { margin-bottom: 4px; }
.wiz-steps { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.wiz-steps span { flex: 1; min-width: 140px; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.wiz-steps span b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--line); color: var(--text); margin-right: 6px; font-size: 12px; }
.wiz-steps span.on { border-color: var(--primary); color: var(--primary-d); box-shadow: var(--ring); }
.wiz-steps span.on b { background: var(--primary); color: #fff; }
.wiz-steps span.done b { background: #16a34a; color: #fff; }
.wiz-card h2 { font-size: 18px; }
.wiz-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.wiz-day { flex-direction: row !important; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; }
.wiz-day:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.wiz-times { display: flex; gap: 12px; flex-wrap: wrap; }
.wiz-times label { flex: 1; min-width: 140px; }
.wiz-opt { padding: 12px; border: 1px solid var(--line); border-radius: 12px; align-items: flex-start !important; }
.wiz-opt:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.wiz-later { margin-left: auto; }

/* ---- sadə menyu: alt başlıq ---- */
.nav-sub { margin: 8px 12px 2px 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7fb3ad; }
/* ---- yeni panel ---- */
.motto-inline { font-style: italic; }
.today-card { padding: 16px 18px; }
.today-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.today-head h2 { margin: 0; font-size: 18px; }
.today-list { display: flex; flex-direction: column; }
.today-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); }
.today-row:first-child { border-top: 0; }
.today-row.is-cancelled { opacity: .5; }
.today-row.is-cancelled .today-name { text-decoration: line-through; }
.today-time { display: flex; flex-direction: column; line-height: 1.15; }
.today-time b { font-size: 17px; color: var(--text); }
.today-time span { font-size: 12px; color: var(--muted); }
.today-name { font-weight: 700; font-size: 15px; color: var(--text); margin-right: 6px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 4px; vertical-align: 1px; }
.pill-red { background: #fee2e2; color: #b91c1c; }
.pill-amber { background: #fef3c7; color: #92400e; }
html[data-theme="dark"] .pill-red { background: #3a1a1d; color: #fca5a5; }
html[data-theme="dark"] .pill-amber { background: #2a2210; color: #fde68a; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.kpi { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; }
.kpi b { font-size: 19px; letter-spacing: -.01em; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi.warn b { color: var(--danger); }
.kpi:hover { box-shadow: var(--shadow-hi); }
@media (max-width: 640px) {
  .today-row { grid-template-columns: 52px 1fr; }
  .today-act { grid-column: 1 / -1; }
  .motto-inline { display: block; margin-top: 2px; }
}

/* ---- telefon: alt menyu zolağı ---- */
.bottom-bar, .install-chip { display: none; }
@media (max-width: 900px) {
  .bottom-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(6, 30, 40, .08);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: center; }
  html[data-theme="dark"] .bottom-bar { background: rgba(17, 28, 34, .96); }
  .bottom-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; padding: 4px 0; border-radius: 10px; }
  .bottom-bar a i { font-style: normal; font-size: 20px; line-height: 1.1; filter: grayscale(.4); }
  .bottom-bar a.on { color: var(--primary-d); }
  html[data-theme="dark"] .bottom-bar a.on { color: #5fd4c4; }
  .bottom-bar a.on i { filter: none; }
  .bottom-bar .bb-plus { flex: 0 0 auto; width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; justify-content: center;
    background: linear-gradient(180deg, #169184, #0c6b63); color: #fff !important; box-shadow: 0 8px 20px rgba(8, 82, 76, .45); }
  .bottom-bar .bb-plus i { font-size: 28px; filter: none; }
  .content { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .menu-btn { display: none !important; }
  .install-chip:not([hidden]) { display: flex; align-items: center; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 71; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow-hi); font-size: 13px; }
  .install-chip .linklike { margin-left: auto; color: var(--muted); font-size: 16px; }
}
@media print { .bottom-bar, .install-chip { display: none !important; } }

.import-table select { min-width: 130px; font-size: 13px; padding: 5px 8px; }
.import-table td { font-size: 13px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* ---- onlayn yazılma ---- */
.bk { min-height: 100vh; padding: 24px 14px; background: radial-gradient(900px 500px at 100% -10%, #dff1ee 0%, transparent 60%), var(--bg); }
.bk-card { max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-hi); padding: 22px; }
.bk-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.bk-head h1 { font-size: 22px; margin: 0; }
.bk-photo { border-radius: 50%; object-fit: cover; background: #e6f4f1; }
.bk-card h2 { font-size: 15px; margin: 18px 0 8px; }
.bk-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.bk-day { flex: 0 0 auto; width: 58px; display: flex; flex-direction: column; align-items: center; padding: 6px 0; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none !important; }
.bk-day b { font-size: 18px; }
.bk-day small { font-size: 11px; color: var(--muted); }
.bk-day.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); box-shadow: var(--ring); }
.bk-day.off { opacity: .4; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bk-slot { flex-direction: row !important; }
.bk-slot input { position: absolute; opacity: 0; pointer-events: none; }
.bk-slot span { display: block; width: 100%; text-align: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; }
.bk-slot input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.bk-foot { text-align: center; margin-top: 14px; }
.bk-done { text-align: center; }
.bk-ok { width: 64px; height: 64px; margin: 6px auto 10px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; }
.bk-when { font-size: 20px; }
.booking-link-card { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.booking-link { font-size: 16px; word-break: break-all; }
.booking-qr svg { width: 150px; height: 150px; background: #fff; border-radius: 10px; }
.slug-field { display: flex; align-items: center; gap: 4px; }
html[data-theme="dark"] .bk { background: var(--bg); }

/* ---- canlı demo, qiymət kartları, WhatsApp ---- */
.demo-bar { background: linear-gradient(90deg, #fff7e6, #fef3c7); border-color: #f5d68a; }
html[data-theme="dark"] .demo-bar { background: #3a2f12; border-color: #6b5520; color: #fde68a; }
.demo-bar .btn { margin-left: 8px; }
.lp-plans { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; }
.lp-plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; min-width: 220px; box-shadow: var(--shadow); text-align: center; }
.lp-plan h3 { margin: 0 0 6px; }
.lp-plan-main { border-color: var(--primary); box-shadow: var(--ring), var(--shadow-hi); }
.lp-plan-price b { font-size: 34px; color: var(--primary-d); }
.lp-live { text-align: center; }
.lp-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 6px; background: #16a34a; color: #fff !important;
  padding: 11px 16px; border-radius: 999px; font-weight: 700; text-decoration: none !important; box-shadow: 0 10px 24px rgba(22, 163, 74, .4); }
@media (max-width: 600px) { .lp-wa span { display: none; } .lp-wa { padding: 13px 15px; font-size: 20px; } }

/* ---- qəbul formu: müddət və boş saat düymələri; pasiyent kartı xülasəsi ---- */
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.dur-chips, [data-free-list] { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.free-slots { display: flex; flex-direction: column; gap: 2px; }
.pat-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.ps-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.ps-item span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ps-item b { font-size: 16px; }
.ps-item small { color: var(--muted); }
.ps-debt { border-color: #f3b4b4; background: color-mix(in srgb, #dc2626 6%, var(--card)); }
.ps-debt b { color: #b91c1c; }
.ps-alert { border-color: #f3b4b4; background: color-mix(in srgb, #dc2626 8%, var(--card)); }
.ps-alert b { color: #b91c1c; font-size: 14px; }
html[data-theme="dark"] .ps-debt b, html[data-theme="dark"] .ps-alert b { color: #fca5a5; }
.rating-compact { font-size: 13px; padding: 8px 12px; }
.rating-compact .star-pick button { font-size: 18px; }

/* ---- demo: bələdçi tur ---- */
.tour-hl { position: relative; z-index: 80; border-radius: 14px; box-shadow: 0 0 0 4px var(--primary), 0 0 0 9999px rgba(4, 20, 26, .45) !important; transition: box-shadow .3s; }
.tour-bubble { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: 22px; width: min(440px, calc(100vw - 24px));
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 18px 50px rgba(4, 20, 26, .35); }
.tour-bubble h3 { margin: 4px 0 6px; font-size: 17px; }
.tour-bubble p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.tour-top { display: flex; justify-content: space-between; align-items: center; }
.tour-count { font-size: 12px; color: var(--muted); font-weight: 700; }
.tour-x { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; }
.tour-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.tour-bar i { display: block; height: 100%; background: var(--primary); }
.tour-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tour-mini { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tour-mini .tour-x { margin-left: auto; }
@media (max-width: 900px) { .tour-bubble { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media print { .tour-bubble { display: none !important; } .tour-hl { box-shadow: none !important; } }

/* ---- siyahıdan seçmə (pasiyent axtarışı) ---- */
.ac-wrap { position: relative; display: block; width: 100%; }
.ac-wrap > input { width: 100%; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; max-height: min(50vh, 340px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-hi); padding: 4px; }
.ac-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0;
  border-radius: 9px; padding: 9px 11px; cursor: pointer; color: var(--text); font: inherit; }
.ac-item b { font-weight: 650; }
.ac-item small { color: var(--muted); font-size: 12.5px; }
.ac-item:hover, .ac-item.on { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.ac-empty { padding: 10px 12px; color: var(--muted); font-size: 13.5px; }

/* ---- telefon: alt menyu daha böyük və rahat ---- */
@media (max-width: 900px) {
  .bottom-bar { padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
  .bottom-bar a { font-size: 12.5px; gap: 3px; padding: 6px 0; min-height: 56px; justify-content: center; }
  .bottom-bar a i { font-size: 27px; line-height: 1; filter: grayscale(.15); }
  .bottom-bar a.on:not(.bb-plus) { background: color-mix(in srgb, var(--primary) 10%, transparent); }
  .bottom-bar .bb-plus { width: 64px; height: 64px; min-height: 0; margin-top: -30px; }
  .bottom-bar .bb-plus i { font-size: 34px; }
  .content { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .install-chip:not([hidden]) { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tour-bubble { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---- təqvim: səliqəli alətlər paneli, telefonda bir günlük görünüş ---- */
.cal-filters { display: contents; }
.cal-filter-btn { display: none; }
.day-strip { display: flex; gap: 4px; margin: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
.day-strip[hidden] { display: none; }
.day-strip::-webkit-scrollbar { display: none; }
.ds-day { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); color: var(--muted); font: inherit; cursor: pointer; }
.ds-day small { font-size: 11px; font-weight: 600; }
.ds-day b { font-size: 17px; color: var(--text); }
.ds-day.today b { color: var(--primary-d); }
.ds-day.on { background: var(--primary); border-color: var(--primary); color: #e6fffb; box-shadow: var(--shadow); }
.ds-day.on b { color: #fff; }
.dm-hide { display: none !important; }
.calendar.one-day .cal-head, .calendar.one-day .cal-body { grid-template-columns: 48px minmax(0, 1fr) !important; }
.calendar.one-day .cal-col.today { background: transparent; }
.mc-week.one-day { grid-template-columns: 46px minmax(0, 1fr) !important; min-width: 0 !important; }
.mc-day { position: relative; }
.appt { border-radius: 8px; padding: 3px 7px; }
.appt-time { font-variant-numeric: tabular-nums; }
@media (hover: none) { .appt-x { display: none; } }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
@media (max-width: 700px) {
  .page-head .actions .btn-reserve span { display: none; }
  .page-head .actions .btn-reserve { padding: 8px 11px; }
  .cal-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .cal-toolbar .view-seg { grid-column: 1 / -1; display: flex; }
  .cal-toolbar .view-seg a { flex: 1; text-align: center; padding: 8px 0; }
  .cal-nav { grid-column: 1; flex-wrap: nowrap; }
  .cal-nav .cal-date { display: none; }
  .cal-range { flex-basis: auto !important; order: 0 !important; margin-left: 4px !important; font-size: 13.5px; white-space: nowrap; }
  .cal-filter-btn { display: inline-flex; grid-column: 2; grid-row: 2; }
  .cal-filters { display: none; grid-column: 1 / -1; }
  .cal-toolbar.filters-open .cal-filters { display: grid; gap: 8px; }
  .cal-toolbar.filters-open .cal-filters select { width: 100%; }
  .doctor-legend { gap: 10px; font-size: 12px; margin-bottom: 6px; }
  .calendar { border-radius: 14px; }
  .appt { font-size: 13px; padding: 4px 8px; }
  .mc-tabs .btn { flex: 1; justify-content: center; }
}
@media (max-width: 700px) {
  .cal-toolbar .view-seg { width: 100%; grid-row: 1; }
  .cal-nav { grid-row: 2; min-width: 0; }
  .cal-filter-btn { grid-row: 2; }
  .cal-range { grid-column: 1 / -1; grid-row: 3; font-size: 13px; color: var(--muted); margin: -2px 0 0 2px !important; }
  .cal-toolbar > .cal-nav .cal-range { display: none; }
  .calendar.one-day .cal-head { display: none; }
}
.cal-range-sm { display: none; }
@media (max-width: 700px) { .cal-range-sm { display: block; } }

/* ---- təqvim: qəbul kartları (səliqəli) ---- */
.appt { display: flex; flex-direction: column; gap: 1px; padding: 4px 8px 4px 9px; line-height: 1.25;
  background: color-mix(in srgb, var(--dc) 11%, var(--card)); border: 1px solid color-mix(in srgb, var(--dc) 26%, transparent);
  border-left: 4px solid var(--dc); border-radius: 9px; box-shadow: 0 1px 2px rgba(6, 30, 40, .06); }
.appt:hover { box-shadow: 0 6px 16px -4px rgba(6, 30, 40, .22); transform: translateY(-1px); }
.appt.dragging { transform: none; }
.appt-l1 { display: flex; align-items: center; gap: 4px; font-size: 11.5px; min-width: 0; }
.appt-time { font-weight: 700; color: color-mix(in srgb, var(--dc) 65%, var(--text)); font-variant-numeric: tabular-nums; }
.appt-end { color: var(--muted); font-variant-numeric: tabular-nums; }
.appt-st { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; flex: none; background: #3b82f6; box-shadow: 0 0 0 2px var(--card); }
.status-confirmed .appt-st { background: #0891b2; }
.status-arrived .appt-st { background: #16a34a; }
.status-done .appt-st { background: #166534; }
.status-no_show .appt-st { background: #dc2626; }
.status-cancelled .appt-st { background: #9ca3af; }
.appt-alert { color: #dc2626; font-size: 12px; line-height: 1; }
.appt-name { font-weight: 650; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt .appt-sub { font-size: 11px; }
.appt.appt-short { flex-direction: row; align-items: center; gap: 6px; padding-top: 2px; padding-bottom: 2px; }
.appt.appt-short .appt-l1 { display: contents; }
.appt.appt-short .appt-time { order: 0; }
.appt.appt-short .appt-name { order: 1; flex: 1; min-width: 0; }
.appt.appt-short .appt-alert { order: 2; }
.appt.appt-short .appt-st { order: 3; margin-left: 0; }
.appt.status-done { background: color-mix(in srgb, var(--dc) 5%, var(--card)); box-shadow: none; }
.appt.status-done .appt-name { color: var(--muted); font-weight: 600; }
.appt.status-arrived { box-shadow: inset 0 0 0 1px #16a34a; }
.appt.status-no_show { background: color-mix(in srgb, #dc2626 10%, var(--card)); border-left-color: #dc2626; }
.appt.status-cancelled { opacity: .5; }
.appt.status-cancelled .appt-name { text-decoration: line-through; }
.appt .appt-x { top: 2px; right: 3px; }
.appt:hover .appt-st { visibility: hidden; }
@media (hover: none) { .appt:hover .appt-st { visibility: visible; } }
html[data-theme="dark"] .appt { background: color-mix(in srgb, var(--dc) 24%, #111c22); border-color: color-mix(in srgb, var(--dc) 40%, transparent); }
html[data-theme="dark"] .appt-time { color: color-mix(in srgb, var(--dc) 45%, #ffffff); }
html[data-theme="dark"] .appt-name { color: #eef5f7; }
html[data-theme="dark"] .appt.status-done { background: color-mix(in srgb, var(--dc) 10%, #111c22); }
html[data-theme="dark"] .appt.status-done .appt-name { color: #a9bcc6; }
html[data-theme="dark"] .appt.status-no_show { background: #3a1a1d; }
.mc-appt .appt-st { display: inline-block; width: 7px; height: 7px; margin: 0 4px 1px 0; vertical-align: middle; box-shadow: none; }
.mc-appt.status-cancelled { opacity: .5; }
.mc-appt.status-cancelled button { text-decoration: line-through; }
.mc-appt.status-done button { filter: saturate(.6); }

/* ---- ilk səhifə: yuxarı zolaq sürüşdürəndə sabit qalır ---- */
.lp-topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.lp-topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 18px -10px rgba(6, 30, 40, .25); }
.lp-topbar .lp-top { padding-top: 10px; padding-bottom: 10px; }
html { scroll-padding-top: 76px; }
@media (max-width: 700px) { html { scroll-padding-top: 110px; } }
.lp-topbar { background: rgba(255, 255, 255, .88); }
html[data-theme="dark"] .lp-topbar { background: color-mix(in srgb, var(--bg) 86%, transparent); }

/* ---- qəbulu köçürmək: basıb saxla -> yeni vaxta toxun ---- */
.appt.picking, .mc-appt.picking button { outline: 3px solid var(--primary); outline-offset: 1px; z-index: 6;
  animation: pick-pulse 1.1s ease-in-out infinite; }
@keyframes pick-pulse { 50% { outline-color: color-mix(in srgb, var(--primary) 35%, transparent); } }
body.cal-picking .cal-slot { cursor: copy; }
body.cal-picking .cal-slot:hover, body.cal-picking .cal-slot:active { background: color-mix(in srgb, var(--primary) 22%, transparent); }
body.cal-picking .mc-day { cursor: copy; background-color: color-mix(in srgb, var(--primary) 4%, transparent); }
.pick-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 95; width: min(440px, calc(100vw - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--primary); box-shadow: 0 18px 40px rgba(4, 20, 26, .3); font-size: 14px; }
.pick-bar small { color: var(--muted); }
@media (max-width: 900px) { .pick-bar { bottom: calc(96px + env(safe-area-inset-bottom)); } }
.appt.movable, .mc-appt[data-aid] button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.ds-day.drop { outline: 3px dashed var(--primary); outline-offset: 2px; background: color-mix(in srgb, var(--primary) 18%, var(--card)); }
.mc-appt[data-aid] button { cursor: grab; touch-action: manipulation; }
.mc-appt.dragging { z-index: 10; opacity: .92; }
.mc-appt.dragging button { box-shadow: 0 8px 20px rgba(0, 0, 0, .25); outline: 2px dashed var(--cc); cursor: grabbing; }
body.cal-dragging .mc-band, body.cal-dragging .mc-appt:not(.dragging) { pointer-events: none; }

/* ---- əlçatanlıq: barmaq üçün kifayət qədər böyük toxunma sahələri (≥ 40 px) ---- */
@media (max-width: 900px) {
  a[href^="tel:"] { display: inline-block; padding: 10px 2px; margin: -10px -2px; }
  .today-head a { display: inline-block; padding: 10px 4px; margin: -10px -4px; }
  select.status-select { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
  .btn.small { min-height: 38px; }
  .tabs [data-tab], .tabs button { min-height: 42px; }
}

/* ---- təqvim: minimum 12 px yazı; status — rəng + simvol (rəng korluğu üçün) ---- */
.cal-time, .appt .appt-sub, .appt-l1, .mc-hours-col div, .mc-appt button span, .ds-day small, .cal-day-head, .mc-head small { font-size: 12px !important; }
.appt-st { width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1;
  font-weight: 800; color: #fff; font-style: normal; border-radius: 50%; }
.appt-st::after { content: ""; }
.status-planned .appt-st { background: transparent; border: 2px solid #3b82f6; box-shadow: none; }
.status-confirmed .appt-st::after { content: "✓"; }
.status-arrived .appt-st::after { content: "➜"; font-size: 9px; }
.status-done .appt-st::after { content: "✔"; }
.status-no_show .appt-st::after { content: "✕"; }
.status-cancelled .appt-st::after { content: "–"; }
.mc-appt .appt-st { width: 13px; height: 13px; font-size: 9px; vertical-align: -2px; }

/* ---- maliyyə qrafikləri: məbləğlər və toxunanda dəyər ---- */
.chart-sum { margin: -4px 0 10px; font-size: 13px; color: var(--muted); }
.chart-sum b { color: var(--text); }
.chart-cols .col { cursor: default; outline: none; }
.chart-cols .col:hover .bar, .chart-cols .col:focus .bar { opacity: 1; filter: brightness(1.1); }
.chart-cols .col[data-tip]:hover::after, .chart-cols .col[data-tip]:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--text); color: var(--card); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; z-index: 5; pointer-events: none; }
.chart-cols .col:first-child[data-tip]:hover::after, .chart-cols .col:first-child[data-tip]:focus::after { left: 0; transform: none; }
.chart-cols .col:last-child[data-tip]:hover::after, .chart-cols .col:last-child[data-tip]:focus::after { left: auto; right: 0; transform: none; }
.chart-labeled { height: 160px; padding-top: 18px; }
.bar-v { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; white-space: nowrap; }
.chart-cols small { font-size: 11px; }

/* ---- pasiyent kartı: əsas 4 bölmə + "Daha çox" ---- */
.tabs { overflow: visible; }
.tab-more { position: relative; }
.tab-more > summary { list-style: none; cursor: pointer; padding: 10px 14px; color: var(--muted); font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent; min-height: 42px; display: flex; align-items: center; gap: 4px; }
.tab-more > summary::-webkit-details-marker { display: none; }
.tab-more > summary::after { content: " ▾"; }
.tab-more > summary.active { color: var(--primary-d); border-bottom: 3px solid var(--primary); }
.tab-more > summary.active::after { content: ""; }
.tab-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 210px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-hi); padding: 6px; display: flex; flex-direction: column; }
.tab-more-menu button { text-align: left; border-bottom: 0 !important; border-radius: 8px; padding: 11px 12px !important; }
.tab-more-menu button.active { background: color-mix(in srgb, var(--primary) 10%, transparent); }
@media (min-width: 901px) {
  .tab-more, .tab-more-menu { display: contents; }
  .tab-more > summary { display: none; }
  .tab-more-menu button { text-align: center; border-radius: 0; padding: 10px 14px !important; border-bottom: 2px solid transparent !important; }
  .tab-more-menu button.active { background: none; border-bottom: 3px solid var(--primary) !important; }
}
@media (max-width: 900px) { .tabs { overflow-x: visible; flex-wrap: nowrap; } .tabs > button { padding-left: 10px; padding-right: 10px; } }

/* ---- telefon: "Daha çox" menyusu səhifəni itələmir — tam ekran panel kimi açılır ---- */
@media (max-width: 900px) {
  .sidebar.open { position: fixed; inset: 0; z-index: 65; overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: calc(96px + env(safe-area-inset-bottom)); animation: menu-in .18s ease-out; }
  .sidebar.open nav { max-height: none !important; overflow: visible !important; padding-top: 10px; flex: 1 0 auto; }
  .sidebar.open .me { flex: none; }  /* qısa ekranda menyu profilin üstünə minməsin — panel sürüşsün */
  .sidebar.open .me-card > span:last-child { min-width: 0; }
  .sidebar.open .me-name, .sidebar.open .me-role { overflow-wrap: anywhere; }
  .sidebar.open nav a { padding: 12px 14px; font-size: 15.5px; }
  body.menu-open .content { visibility: hidden; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  /* demo zolağı — yığcam */
  .demo-bar { font-size: 12.5px; padding: 8px 10px; line-height: 1.45; }
  .demo-bar .btn { padding: 5px 10px; min-height: 32px; font-size: 12.5px; margin: 4px 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .sidebar.open { animation: none; } }
.show-sm { display: none; }
@media (max-width: 900px) {
  .show-sm { display: inline; }
  .tabs { gap: 0; justify-content: space-between; }
  .tabs > button, .tab-more > summary { padding: 9px 7px; font-size: 14.5px; }
  .tab-more-menu { right: 0; max-width: calc(100vw - 24px); }
}

/* ---- vahid SVG ikonlar ---- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.sidebar nav a .ic, .nav-group > summary .ic { opacity: .9; }
.sidebar nav a.active .ic { opacity: 1; }
.bottom-bar a i .ic { width: 25px; height: 25px; stroke-width: 1.9; }
.bottom-bar .bb-plus i .ic { width: 30px; height: 30px; stroke-width: 2.4; }
@media (max-width: 900px) { .bottom-bar a i { filter: none !important; } }

/* ---- ödəniş qəbzi ---- */
.receipt-body { background: #fff; color: #0f1c2b; }
.receipt { max-width: 620px; margin: 24px auto; padding: 28px; border: 1px solid #dbe3ea; border-radius: 14px; background: #fff; font-size: 14.5px; }
.receipt-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #0c6b63; padding-bottom: 12px; margin-bottom: 14px; }
.receipt-head h1 { font-size: 20px; margin: 0 0 4px; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th { text-align: left; font-weight: 600; color: #5a6b7f; padding: 7px 0; width: 42%; vertical-align: top; }
.receipt-table td { padding: 7px 0; border-bottom: 1px dashed #e2e8f0; }
.receipt-sum th, .receipt-sum td { font-size: 17px; color: #0f1c2b; font-weight: 800; border-bottom: 2px solid #0f1c2b; }
.receipt .sign-lines { margin-top: 36px; }
.receipt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
@media print { .receipt { border: 0; margin: 0; padding: 0; } }

/* ---- müalicə planı / smeta ---- */
.plan-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--primary) 4%, var(--card)); }
.plan-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-box-head h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 6px; }
.plan-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 14px; }
.plan-table th { text-align: left; font-size: 12.5px; color: #5a6b7f; border-bottom: 2px solid #0c6b63; padding: 6px 4px; }
.plan-table td { padding: 7px 4px; border-bottom: 1px dashed #e2e8f0; vertical-align: top; }
.plan-table tfoot td { border-top: 2px solid #0f1c2b; border-bottom: 0; font-size: 16px; }
.plan-table .r, .plan-table th.r { text-align: right; }

/* ---- vahid təqvim: klinika seçimi (Hamısı / klinika) ---- */
.clinic-switch { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; scrollbar-width: none; }
.clinic-switch::-webkit-scrollbar { display: none; }
.clinic-switch a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none !important; min-height: 40px; }
.clinic-switch a.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow); }
.clinic-switch .ic { width: 17px; height: 17px; }

/* ---- pasiyent siyahısı: yapışqan axtarış, süzgəc, səhifələmə, SMS nişanı ---- */
.sticky-search { position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 8px 0; flex-wrap: wrap; }
@media (max-width: 900px) { .sticky-search { top: 56px; } }
.list-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; width: 100%; }
.list-controls .lc { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.list-controls select { width: auto; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.sms-off { display: inline-block; font-size: 11px; font-weight: 700; color: #9a3412; background: #ffedd5; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
html[data-theme="dark"] .sms-off { background: #4a2a12; color: #fdba74; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 0 4px; }

/* ---- telefon: razılıq forması, cədvəllər, diş paneli (TD-08, TD-10, TD-12) ---- */
.consent-form .inline-grid > label { min-width: 0; max-width: 100%; }
.consent-form select, .consent-form input { min-width: 0; max-width: 100%; }
@media (max-width: 700px) { .consent-form .inline-grid > label { flex: 1 1 100%; } }
@media (max-width: 700px) {
  .card table.table, .tab-panel table.table, section table.table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .card table.table thead, .card table.table tbody, .tab-panel table.table thead, .tab-panel table.table tbody { width: max-content; min-width: 100%; }
  .schedule-table input[type=time] { width: 92px; }
}
.odo-brush label { flex-direction: row !important; }
@media (max-width: 700px) { .odo-brush { grid-template-columns: 1fr 1fr; } }
/* diş xəritəsi telefonda: hər çənə 2 sətir (kvadrantlar), üfüqi sürüşmə olmadan */
@media (max-width: 700px) {
  .tooth-chart { display: flex; width: 100%; padding: 10px; }
  .tooth-chart .jaw { display: grid !important; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
  .odontogram .odo-tooth { width: auto; min-width: 0; height: 58px; }
  .odontogram .tooth.mid { margin-left: 0; }
}
html[data-theme="dark"] .odontogram .odo-tooth { color: #e6eef2; }

/* ---- toxunma və əlçatanlıq (TD-23, TD-24) ---- */
@media (max-width: 900px) {
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-width: 20px; }
  label.check { min-height: 40px; align-items: center; }
  .month-day { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
  .star-pick button { min-width: 40px; min-height: 40px; }
  .dur-chips .chip, [data-free-list] .chip { min-height: 38px; padding: 8px 13px; }
  .motto-inline { display: block; }
}
html[data-theme="dark"] .odontogram .odo-tooth, html[data-theme="dark"] .tooth-chart button { color: #f1f5f9 !important; }
html[data-theme="dark"] .cal-busy .appt-sub { color: #d5e2e8; }
.btn.is-busy { opacity: .6; cursor: progress; }
.flash.info { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
html[data-theme="dark"] .flash.info { background: #0c2a3a; color: #bae6fd; border-color: #164e63; }
.unmarked-card { border-left: 4px solid #d97706; }
.unmarked-list { list-style: none; margin: 0; padding: 0; }
.unmarked-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }

/* ---- Panel: canlı salamlama bloku, rəngli göstəricilər, həftənin yükü ---- */
.dash-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: stretch;
  padding: 22px 24px; margin-bottom: 14px; border-radius: 18px; color: #fff;
  background: radial-gradient(420px 220px at 100% 0%, rgba(94, 234, 212, .35), transparent 70%),
              radial-gradient(300px 200px at 0% 110%, rgba(255, 255, 255, .12), transparent 70%),
              linear-gradient(135deg, #0f766e 0%, #0b4f4a 55%, #083b37 100%);
  box-shadow: 0 10px 30px rgba(11, 79, 74, .28); }
.dash-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .06); pointer-events: none; }
.dash-hero h1 { color: #fff !important; margin: 2px 0 6px; font-size: 28px; letter-spacing: -.02em; }
.hero-date { margin: 0; font-size: 13px; color: #b9ece4; text-transform: capitalize; }
.hero-motto { margin: 0 0 14px; font-size: 13.5px; font-style: italic; color: #dff7f3; max-width: 520px; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 1.8s ease-in-out 1; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-hero .btn { border-radius: 10px; font-weight: 600; }
.hero-btn-main { background: #fff !important; color: #0b4f4a !important; border-color: #fff !important; }
.hero-btn-main:hover { background: #ecfdf9 !important; }
.hero-btn { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border-color: rgba(255, 255, 255, .3) !important; }
.hero-btn:hover { background: rgba(255, 255, 255, .2) !important; }
.hero-side { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); }
.hero-next { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #a7e9df; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.hero-name { font-size: 19px; font-weight: 700; color: #fff !important; overflow-wrap: anywhere; }
a.hero-name:hover { text-decoration: underline; }
.hero-when { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hero-when b { font-size: 22px; letter-spacing: -.01em; }
.hero-in { font-size: 12.5px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); }
.hero-reason { font-size: 13px; color: #cdeee9; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero-progress span { font-size: 12px; color: #cdeee9; }
.hp-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-bottom: 5px; }
.hp-bar i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, #5eead4, #a7f3d0); transition: width .6s ease; }

.kpi-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { --kc: #0f766e; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px; position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--kc); }
.kpi:hover { transform: translateY(-2px); }
.kpi-ic { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: var(--kc); background: color-mix(in srgb, var(--kc) 13%, transparent); }
.kpi-ic .ic { width: 22px; height: 22px; }
.kpi b { font-size: 22px; line-height: 1.1; color: var(--text); }
.kpi span { line-height: 1.3; }
.kpi.k-blue { --kc: #2563eb; } .kpi.k-amber { --kc: #d97706; } .kpi.k-teal { --kc: #0d9488; }
.kpi.k-green { --kc: #16a34a; } .kpi.k-violet { --kc: #7c3aed; } .kpi.k-red { --kc: #dc2626; }
html[data-theme="dark"] .kpi.k-blue { --kc: #60a5fa; } html[data-theme="dark"] .kpi.k-amber { --kc: #fbbf24; }
html[data-theme="dark"] .kpi.k-teal { --kc: #2dd4bf; } html[data-theme="dark"] .kpi.k-green { --kc: #4ade80; }
html[data-theme="dark"] .kpi.k-violet { --kc: #a78bfa; } html[data-theme="dark"] .kpi.k-red { --kc: #f87171; }
.kpi.warn b { color: var(--kc); }

.dash-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.dash-main > .card { margin: 0; }
.today-row { position: relative; padding-left: 12px; border-radius: 10px; }
.today-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--dc, var(--primary)); }
.today-row.is-past { opacity: .62; }
.today-row.is-now { background: color-mix(in srgb, var(--primary) 9%, transparent); border-top-color: transparent; }
.today-row.is-now + .today-row { border-top-color: transparent; }
.pill-live { background: #16a34a; color: #fff; }
.empty-state { text-align: center; padding: 18px 8px 8px; color: var(--muted); }
.empty-state p { margin: 8px 0 12px; }
.empty-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent); }
.empty-ic .ic { width: 26px; height: 26px; }

.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 180px; padding-top: 6px; }
.wb { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 3px; color: var(--muted); text-decoration: none !important; border-radius: 10px; padding: 4px 0; }
.wb:hover { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.wb-n { font-size: 12.5px; font-weight: 700; color: var(--text); }
.wb-col { flex: 1; width: 100%; max-width: 30px; display: flex; align-items: flex-end; border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 7%, transparent); }
.wb-col i { display: block; width: 100%; min-height: 3px; border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 55%, white), var(--primary)); }
.wb-d { font-size: 11.5px; font-weight: 600; }
.wb-dd { font-size: 11px; opacity: .8; }
.wb.is-today .wb-d, .wb.is-today .wb-dd { color: var(--primary); }
.wb.is-today .wb-col i { background: linear-gradient(180deg, #5eead4, #0f766e); box-shadow: 0 0 12px rgba(20, 184, 166, .45); }

.up-list .up-day { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary);
  padding: 12px 4px 4px; }
.up-list .up-day:first-child { padding-top: 2px; }
.debt-list li a { position: relative; padding-bottom: 12px; }
.debt-bar { position: absolute; left: 4px; bottom: 4px; height: 4px; max-width: calc(100% - 8px); border-radius: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--danger) 35%, transparent), var(--danger)); }

@media (max-width: 900px) {
  .dash-hero { grid-template-columns: 1fr; padding: 18px 16px; border-radius: 16px; gap: 14px; }
  .dash-hero h1 { font-size: 24px; }
  .hero-actions .btn { flex: 1; justify-content: center; text-align: center; min-height: 44px; }
  .dash-main { grid-template-columns: 1fr; }
  .week-bars { height: 150px; }
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; column-gap: 10px; }
  .kpi-ic { width: 36px; height: 36px; border-radius: 10px; }
  .kpi b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .wave, .live-dot { animation: none; } .kpi:hover { transform: none; } }
.kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1560px) { .kpi-row:has(> :nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.up-list li a { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; }
.up-list .list-date { font-weight: 700; color: var(--text); font-size: 13px; }
@media (max-width: 900px) { .kpi-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  /* telefonda: salamlama → bugünkü qəbullar → göstəricilər */
  .dash { display: flex; flex-direction: column; }
  .dash > * { margin-top: 0; }
  .dash-hero { order: -2; margin-bottom: 12px; }
  .dash-main { order: -1; margin-bottom: 12px; }
  .dash .kpi-row { margin: 0 0 12px; }
  .dash-hero { padding: 16px 14px; gap: 12px; }
  .dash-hero h1 { font-size: 22px; margin: 0 0 4px; }
  .hero-motto { margin-bottom: 12px; font-size: 12.5px; }
  .hero-side { padding: 10px 12px; gap: 8px; }
  .hero-name { font-size: 17px; }
  .hero-when b { font-size: 18px; }
  .hero-reason { display: none; }
  .hero-actions .btn { min-height: 42px; }
}
.kpi b { white-space: nowrap; }

/* ---- təqvim: dar sütunlarda pasiyentin adı kəsilməsin ---- */
.appt { container-type: inline-size; }
.appt:not(.appt-short) .appt-name { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; line-height: 1.18; }
@container (max-width: 150px) {
  /* qısa qəbul: saat ızgaradan görünür — yer adın olsun, ad 2 sətrə keçir, status küncdə kiçik nöqtə */
  .appt-short .appt-time { display: none; }
  .appt-short .appt-name { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; line-clamp: 2; font-size: 11.5px !important; line-height: 1.1; padding-right: 8px; }
  .appt-short .appt-st { position: absolute; top: 3px; right: 3px; width: 9px !important; height: 9px !important; font-size: 0 !important; }
  .appt-short .appt-st::after { content: none; }
  .appt:not(.appt-short) .appt-end { display: none; }
  .appt:not(.appt-short) .appt-name { font-size: 12px; }
}
@container (max-width: 60px) {
  .appt-short .appt-st, .appt .appt-alert { display: none; }
  .appt-short .appt-name { padding-right: 0; font-size: 10.5px !important; }
}
.appt.appt-short { padding-top: 1px; padding-bottom: 1px; }
.appt:not(.appt-short) .appt-name { flex: none; }
.appt:not(.appt-short) .appt-sub { flex: 0 1 auto; min-height: 0; }
.appt { container-type: size; }
@container (max-width: 150px) and (max-height: 72px) { .appt:not(.appt-short) .appt-sub { display: none; } }

/* ---- məxfilik siyasəti: oxunaqlı format, vurğulanmış vacib məqamlar ---- */
.legal-print.is-rich { white-space: normal; max-width: 820px; padding: 34px 38px; border-radius: 16px; font-size: 15px; line-height: 1.65;
  box-shadow: var(--shadow); border: 1px solid var(--line); }
.legal-plain { white-space: pre-wrap; }
.legal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.legal-head h1 { margin: 0; font-size: 26px; }
.legal-head p { margin: 2px 0 0; }
.legal-badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #0f766e, #0b4f4a); box-shadow: 0 6px 16px rgba(15, 118, 110, .3); }
.legal-badge .ic { width: 26px; height: 26px; }
.legal-rich h2 { font-size: 18.5px; margin: 30px 0 8px; padding-top: 6px; scroll-margin-top: 80px; color: var(--text); }
.legal-rich p { margin: 0 0 10px; }
.legal-rich ul { margin: 0 0 12px; padding-left: 22px; }
.legal-rich li { margin: 4px 0; }
.legal-rich li::marker { color: var(--primary); }
.legal-rich strong { color: var(--text); font-weight: 700; }
.legal-note { margin: 14px 0 16px; padding: 14px 18px 12px 52px; border-radius: 12px; position: relative;
  background: color-mix(in srgb, var(--primary) 8%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent); }
.legal-note::before { content: "!"; position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--primary); }
.legal-note p:last-child, .legal-note ul:last-child { margin-bottom: 0; }
.legal-note ul { padding-left: 18px; }
.legal-rich > .legal-note:first-child { padding-left: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--primary) 4%, transparent)); }
.legal-rich > .legal-note:first-child::before { display: none; }
.legal-rich > .legal-note:first-child ul { list-style: none; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.legal-rich > .legal-note:first-child li { position: relative; padding-left: 26px; margin: 0; }
.legal-rich > .legal-note:first-child li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--primary); }
.legal-toc { margin: 18px 0 8px; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--line); }
.legal-toc b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; font-size: 14px; }
.legal-toc li { margin: 3px 0; break-inside: avoid; }
html[data-theme="dark"] .legal-rich strong { color: #f1f7f9; }
@media (max-width: 700px) {
  .legal-print.is-rich { padding: 20px 16px; border-radius: 12px; font-size: 14.5px; }
  .legal-head h1 { font-size: 21px; }
  .legal-rich > .legal-note:first-child ul { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
}
@media print { .legal-print.is-rich { box-shadow: none; border: 0; } .legal-toc { display: none; } }
.legal-rich .legal-sub { margin: 14px 0 4px; }
.legal-rich > .legal-note:first-child > p:first-child { font-size: 16.5px; margin-bottom: 12px; }

/* ===================== İlk səhifə: 3D səhnə və canlı keçidlər ===================== */
.lp { position: relative; overflow-x: clip; }
.lp-aurora { position: absolute; inset: 0 0 auto 0; height: 860px; z-index: 0; pointer-events: none; overflow: hidden;
  mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); }
.lp-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: lp-drift 22s ease-in-out infinite alternate; }
.lp-aurora i:nth-child(1) { width: 520px; height: 520px; left: -120px; top: -160px; background: #5eead4; }
.lp-aurora i:nth-child(2) { width: 460px; height: 460px; right: -80px; top: 40px; background: #a5b4fc; animation-duration: 26s; animation-delay: -6s; }
.lp-aurora i:nth-child(3) { width: 380px; height: 380px; left: 38%; top: 260px; background: #99f6e4; animation-duration: 30s; animation-delay: -12s; opacity: .4; }
html[data-theme="dark"] .lp-aurora i { opacity: .22; }
@keyframes lp-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.08); } 100% { transform: translate(-40px, 70px) scale(.95); } }
.lp-hero, .lp > section, .lp-foot { position: relative; z-index: 1; }

/* səhnə */
.lp-hero { grid-template-columns: 1fr 1.05fr; min-height: 560px; }
.lp-stage { perspective: 1400px; perspective-origin: 50% 40%; height: 470px; position: relative;
  transform: translate3d(0, var(--sy, 0px), var(--sz, 0px)); }
.lp-scene { --rx: 0deg; --ry: 0deg; position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(-16deg + var(--ry))); animation: lp-float 9s ease-in-out infinite; }
@keyframes lp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.lp-laptop { position: absolute; left: 2%; top: 30px; width: 88%; transform-style: preserve-3d; transform: translateZ(0); }
.lp-screen { border-radius: 14px 14px 4px 4px; overflow: hidden; background: #f8fafc; border: 8px solid #0f172a; border-bottom-width: 10px;
  box-shadow: 0 40px 80px -20px rgba(8, 47, 44, .45), 0 18px 30px -12px rgba(8, 47, 44, .3); }
.lp-base { height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  transform: rotateX(70deg); transform-origin: top; box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .35); }
.lp-app { display: grid; grid-template-columns: 40px 1fr; min-height: 250px; }
.lp-app-side { background: #0b4f4a; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; }
.lp-app-side span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #9fd9d1; }
.lp-app-side span.on { background: #12867c; color: #fff; }
.lp-app-side .ic { width: 15px; height: 15px; }
.lp-stage .lp-mock-grid { padding: 10px; gap: 6px; min-height: 0; }
.lp-stage .lp-mock-day { padding: 6px 5px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.lp-stage .lp-mock-day.is-today { outline: 2px solid #14b8a6; outline-offset: -2px; }
.lp-stage .lp-mock-appt { font-size: 8.5px; line-height: 1.15; padding: 3px 4px; color: #0f172a; overflow: hidden; }
.lp-stage .lp-mock-appt em { display: block; font-style: normal; font-weight: 700; font-size: 8px; opacity: .75; }
html[data-theme="dark"] .lp-stage .lp-mock-appt { color: #e2e8f0; }
html[data-theme="dark"] .lp-screen { background: #0d181d; }

.lp-phone { position: absolute; right: 0; top: 120px; width: 172px; padding: 14px 11px 12px; border-radius: 28px;
  background: #fff; border: 6px solid #0f172a; transform: translateZ(110px) rotateY(10deg);
  box-shadow: 0 40px 60px -18px rgba(8, 47, 44, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; font-size: 10px; color: #0f172a; }
html[data-theme="dark"] .lp-phone { background: #111c22; color: #e4edf1; }
.lp-notch { width: 56px; height: 12px; border-radius: 0 0 10px 10px; background: #0f172a; margin: -14px auto 8px; }
.lp-ph-head { font-weight: 800; font-size: 13px; margin-bottom: 7px; }
.lp-ph-next { border-radius: 12px; padding: 8px 9px; color: #fff; margin-bottom: 7px; display: flex; flex-direction: column; gap: 1px;
  background: linear-gradient(135deg, #0f766e, #0b4f4a); box-shadow: 0 8px 16px -6px rgba(15, 118, 110, .6); }
.lp-ph-next small { font-size: 7.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.lp-ph-next b { font-size: 10.5px; }
.lp-ph-next span { font-size: 8.5px; opacity: .85; }
.lp-ph-row { display: flex; align-items: center; gap: 6px; padding: 5px 2px; border-top: 1px solid rgba(148, 163, 184, .25); font-size: 9px; }
.lp-ph-row em { font-style: normal; font-weight: 700; width: 28px; }
.lp-ph-row i { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #3b82f6; }
.lp-ph-row i.ok { background: #16a34a; border-color: #16a34a; }
.lp-ph-row i.now { background: #22c55e; border-color: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: live 1.6s infinite; }
.lp-ph-prog { height: 5px; border-radius: 9px; background: rgba(148, 163, 184, .3); margin-top: 8px; overflow: hidden; }
.lp-ph-prog i { display: block; height: 100%; width: 43%; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #5eead4); }
.lp-ph-done { display: block; font-size: 8px; opacity: .7; margin-top: 3px; }

.lp-chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 13px 9px 9px; border-radius: 14px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; color: #0f172a; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 34px -14px rgba(8, 47, 44, .45); }
html[data-theme="dark"] .lp-chip { color: #e4edf1; background: rgba(17, 28, 34, .8); border-color: rgba(255, 255, 255, .1); }
.lp-chip-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.lp-chip-ic .ic { width: 15px; height: 15px; }
.lp-chip-ic.g { background: linear-gradient(135deg, #22c55e, #15803d); }
.lp-chip-ic.b { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.lp-chip-ic.t { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.lp-chip-a { left: -4%; top: 6px; transform: translateZ(150px); animation: lp-bob 6s ease-in-out infinite; }
.lp-chip-b { left: 8%; bottom: 40px; transform: translateZ(180px); animation: lp-bob 7s ease-in-out -2s infinite; }
.lp-chip-c { right: 18%; top: -8px; transform: translateZ(70px); animation: lp-bob 8s ease-in-out -4s infinite; }
@keyframes lp-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.lp-orb { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, #fff, #99f6e4 35%, #14b8a6 70%, #0f766e); box-shadow: 0 16px 30px -8px rgba(15, 118, 110, .5); }
.lp-orb-1 { width: 46px; height: 46px; right: 4%; bottom: 10px; transform: translateZ(60px); animation: lp-bob 5s ease-in-out infinite; }
.lp-orb-2 { width: 22px; height: 22px; left: 30%; top: 62%; transform: translateZ(200px); animation: lp-bob 6.5s ease-in-out -3s infinite; opacity: .9; }

/* giriş: hissələr dərinlikdən yığılır */
.lp-js:not(.lp-still) .lp-in { opacity: 0; }
.lp-js.lp-ready .lp-in { opacity: 1; transition: opacity .9s ease var(--d, 0s), filter .9s ease var(--d, 0s); }
.lp-js:not(.lp-still):not(.lp-ready) .lp-hero-text { transform: translateY(18px); }
.lp-js.lp-ready .lp-hero-text { transform: none; transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s; }
.lp-js:not(.lp-still):not(.lp-ready) .lp-laptop { translate: 0 40px -160px; }
.lp-js:not(.lp-still):not(.lp-ready) .lp-phone { translate: 60px 30px -80px; }
.lp-js:not(.lp-still):not(.lp-ready) .lp-chip { translate: 0 20px -120px; }
.lp-js.lp-ready .lp-laptop, .lp-js.lp-ready .lp-phone { transition: translate 1.2s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), opacity .9s ease var(--d, 0s); }

/* sürüşdürəndə üzə çıxma */
.lp-js:not(.lp-still) [data-reveal] { opacity: 0; transform: perspective(900px) translateY(34px) rotateX(14deg); transform-origin: 50% 100%; }
.lp-js:not(.lp-still) [data-reveal].in { opacity: 1; transform: none;
  transition: opacity .8s ease var(--rd, 0s), transform .9s cubic-bezier(.2, .8, .2, 1) var(--rd, 0s); }

/* 3D kartlar və ikon plitələri */
.lp-card { position: relative; transform-style: preserve-3d; overflow: hidden; }
.lp-js .lp-card[data-reveal].in.is-tilt { transform: perspective(800px) rotateX(var(--ty, 0)) rotateY(var(--tx, 0)) translateY(-4px);
  transition: transform .08s linear; box-shadow: var(--shadow-hi); }
.lp-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 60%); }
html[data-theme="dark"] .lp-card::after { background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(94, 234, 212, .12), transparent 60%); }
.lp-card.is-tilt::after { opacity: 1; }
.lp-ico3d { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 6px;
  background: linear-gradient(145deg, #2dd4bf 0%, #0f766e 55%, #0b4f4a 100%);
  box-shadow: 0 12px 20px -8px rgba(15, 118, 110, .6), inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.lp-ico3d .ic { width: 26px; height: 26px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.lp-grid > .lp-card:nth-child(2) .lp-ico3d { background: linear-gradient(145deg, #a5b4fc, #6366f1 55%, #4338ca); box-shadow: 0 12px 20px -8px rgba(79, 70, 229, .55), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.15); }
.lp-grid > .lp-card:nth-child(3) .lp-ico3d { background: linear-gradient(145deg, #7dd3fc, #0ea5e9 55%, #0369a1); box-shadow: 0 12px 20px -8px rgba(2, 132, 199, .55), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.15); }
.lp-grid > .lp-card:nth-child(4) .lp-ico3d { background: linear-gradient(145deg, #fcd34d, #f59e0b 55%, #b45309); box-shadow: 0 12px 20px -8px rgba(217, 119, 6, .55), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.15); }
.lp-grid > .lp-card:nth-child(5) .lp-ico3d { background: linear-gradient(145deg, #f9a8d4, #ec4899 55%, #be185d); box-shadow: 0 12px 20px -8px rgba(219, 39, 119, .5), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.15); }
.lp-grid > .lp-card:nth-child(6) .lp-ico3d { background: linear-gradient(145deg, #86efac, #22c55e 55%, #15803d); box-shadow: 0 12px 20px -8px rgba(22, 163, 74, .5), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.15); }
.lp-big.primary { box-shadow: 0 10px 22px -8px rgba(15, 118, 110, .65); transition: transform .15s, box-shadow .15s; }
.lp-big.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(15, 118, 110, .7); }

@media (max-width: 900px) {
  .lp-hero { min-height: 0; grid-template-columns: 1fr; }
  .lp-orb { display: none; }
  .lp-stage { height: 360px; margin: 0 -6px; perspective: 1000px; }
  .lp-scene { transform: rotateX(6deg) rotateY(-10deg) scale(.86); transform-origin: 50% 40%; }
  .lp-laptop { width: 92%; left: 0; top: 24px; }
  .lp-phone { width: 140px; top: 120px; right: -2%; transform: translateZ(90px) rotateY(8deg); }
  .lp-chip { font-size: 11px; padding: 7px 10px 7px 7px; }
  .lp-chip-ic { width: 24px; height: 24px; }
  .lp-chip-a { left: 3%; top: -6px; }
  .lp-chip-b { left: 4%; bottom: 10px; }
  .lp-chip-c { display: none; }
  .lp-aurora { height: 640px; }
  .lp-aurora i { filter: blur(50px); }
}
@media (max-width: 420px) {
  .lp-stage { height: 300px; }
  .lp-scene { scale: .78; transform-origin: 30% 30%; }
  .lp-stage .lp-mock-appt { font-size: 0; }
  .lp-stage .lp-mock-appt em { font-size: 7.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-scene, .lp-chip, .lp-orb, .lp-aurora i, .lp-ph-row i.now { animation: none !important; }
}

/* ---- çap üçün razılıq forması ---- */
.consent-sheet.is-rich { font-size: 13.5px; line-height: 1.5; max-width: 820px; }
.cs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid #0f766e; padding-bottom: 10px; margin-bottom: 12px; }
.cs-head h1 { font-size: 20px; margin: 0 0 2px; color: #0b2f2c; }
.cs-head p { margin: 0; }
.cs-clinic { font-weight: 700; color: #0b4f4a; text-align: right; max-width: 40%; }
.cs-fields { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-size: 13px; }
.cs-fields th, .cs-fields td { border: 1px solid #cbd5e1; padding: 6px 8px; text-align: left; }
.cs-fields th { background: #f1f5f9; width: 18%; font-weight: 600; color: #334155; }
.consent-sheet .legal-rich h2 { font-size: 14.5px; margin: 14px 0 4px; }
.consent-sheet .legal-rich ul { margin-bottom: 6px; }
.consent-sheet .legal-rich li { margin: 2px 0; }
.consent-sheet .legal-note { padding: 10px 14px 8px 44px; margin: 10px 0; }
.consent-sheet .legal-note::before { left: 12px; top: 10px; width: 22px; height: 22px; }
.cs-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.cs-box { border: 1px solid #94a3b8; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 14px; font-size: 12.5px; }
.cs-box b { font-size: 13px; }
.cs-box small { color: #64748b; margin-top: -12px; }
@media (max-width: 700px) { .cs-sign { grid-template-columns: 1fr; } .cs-head { flex-direction: column; } .cs-clinic { text-align: left; max-width: none; } }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  .consent-sheet.is-rich { padding: 0; max-width: none; font-size: 11.5px; }
  .consent-sheet .legal-note { background: #f0fdfa !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .consent-sheet .legal-note::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cs-sign { break-inside: avoid; }
  .no-print { display: none !important; }
}
.consent-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 14px 0 10px; padding: 14px 16px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.consent-cta > div { display: flex; flex-direction: column; gap: 2px; max-width: 560px; }
.consent-cta .btn { display: inline-flex; align-items: center; gap: 6px; }
.consent-cta .btn .ic { width: 16px; height: 16px; }
/* vahid razılıq: seçim cədvəli, imza sahəsi */
.consent-body { background: #f1f5f4; margin: 0; padding: 18px 10px 40px; color: #0f172a; }
.consent-sheet.is-rich { background: #fff; color: #0f172a; }
html[data-theme="dark"] .consent-body .legal-print { background: #fff !important; color: #0f172a !important; }
.cs-choices { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 13px; }
.cs-choices th, .cs-choices td { border: 1px solid #cbd5e1; padding: 7px 9px; vertical-align: middle; }
.cs-choices thead th { background: #0f766e; color: #fff; font-weight: 600; text-align: left; }
.cs-choices th.c, .cs-choices td.c { text-align: center; width: 92px; }
.cs-choices td b { display: block; font-size: 13.5px; }
.cs-choices td span { display: block; color: #475569; font-size: 12px; margin-top: 1px; }
.cs-choices tr.is-yes td:nth-child(2) { background: #ecfdf5; }
.cs-choices tr.is-no td:nth-child(3) { background: #fef2f2; }
.cs-box-empty { display: inline-block; width: 18px; height: 18px; border: 1.5px solid #334155; border-radius: 3px; }
.cs-mark { font-size: 18px; font-weight: 800; }
.cs-mark.yes { color: #15803d; } .cs-mark.no { color: #b91c1c; }
.cs-radio { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.cs-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cs-radio i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #94a3b8; background: #fff; transition: all .12s; display: grid; place-items: center; }
.cs-radio.yes input:checked + i { background: #16a34a; border-color: #16a34a; }
.cs-radio.yes input:checked + i::after { content: "✔"; color: #fff; font-weight: 800; }
.cs-radio.no input:checked + i { background: #dc2626; border-color: #dc2626; }
.cs-radio.no input:checked + i::after { content: "✘"; color: #fff; font-weight: 800; }
.cs-radio input:focus-visible + i { outline: 3px solid #5eead4; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cs-signer { margin-top: 18px; padding: 16px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 12px; }
.cs-signer label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.cs-signer input, .cs-signer select { font-size: 16px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; }
.cs-rep { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-rep[hidden] { display: none; }
.cs-signer label.cs-read { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.cs-read input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.cs-pad-wrap { display: flex; flex-direction: column; gap: 6px; }
.cs-pad-head { display: flex; justify-content: space-between; align-items: center; }
#cs-pad { width: 100%; height: auto; aspect-ratio: 900 / 260; background: #fff; border: 2px dashed #94a3b8; border-radius: 10px; touch-action: none; cursor: crosshair; }
.cs-submit { font-size: 17px; padding: 14px; justify-content: center; }
.cs-signed { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; break-inside: avoid; }
.cs-signed-sig { border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; }
.cs-signed-sig img { display: block; width: 100%; max-height: 120px; object-fit: contain; }
.cs-meta th { width: 38%; }
.cs-digest { font-family: ui-monospace, monospace; font-size: 10.5px; word-break: break-all; }
.cs-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.cs-actions p { flex-basis: 100%; margin: 0; }
@media (max-width: 700px) { .cs-rep, .cs-signed { grid-template-columns: 1fr; } .cs-choices th.c, .cs-choices td.c { width: 60px; } }
@media print { .consent-body { background: #fff; padding: 0; } .cs-choices thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cs-choices tr td { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.consent-cta-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.signed-list { list-style: none; padding: 0; margin: 0 0 12px; }
.signed-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
/* ilk səhifə: tez-tez verilən suallar */
.lp-faq-list { display: grid; gap: 10px; max-width: 860px; }
.lp-faq-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); padding: 0 18px; }
.lp-faq-list summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; font-size: 16px; position: relative; }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--primary); transition: transform .2s; }
.lp-faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq-list details p { margin: 0 0 16px; color: #475569; line-height: 1.6; }
html[data-theme="dark"] .lp-faq-list details p { color: #b3c4cd; }
.lp-foot-tag { margin: 0 0 6px; }
@media (max-width: 860px) { .lp-nav a[href="#suallar"] { display: none; } }
/* vahid razılıq — səliqəli başlıq və məlumat bloku (v2) */
.cs-toolbar { max-width: 820px; margin: 0 auto 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-toolbar .cs-tip { flex: 1 1 260px; font-size: 13px; color: #475569; }
.cs-toolbar .flash { flex-basis: 100%; margin: 4px 0 0; }
.consent-sheet .cs-head { display: block; text-align: center; border-bottom: 2px solid #0f766e; padding-bottom: 12px; margin-bottom: 14px; }
.consent-sheet .cs-clinic { max-width: none; text-align: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #0f766e; margin-bottom: 4px; }
.consent-sheet .cs-head h1 { font-size: 20px; margin: 0; color: #0b2f2c; }
.cs-ver { margin: 4px 0 0; font-size: 12px; color: #64748b; }
.cs-info { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 6px; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; }
.cs-info > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-bottom: 1px solid #e2e8f0; min-width: 0; }
.cs-info > div:nth-child(odd) { border-right: 1px solid #e2e8f0; }
.cs-info > div:nth-last-child(-n+2) { border-bottom: 0; }
.cs-info dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 600; }
.cs-info dd { margin: 0; font-size: 14px; color: #0f172a; min-height: 20px; }
.cs-info input, .cs-info select { width: 100%; box-sizing: border-box; font-size: 16px; padding: 8px 10px; border: 1px solid #94a3b8; border-radius: 8px; background: #fff; color: #0f172a; }
.cs-info input:focus, .cs-info select:focus { outline: 2px solid #5eead4; border-color: #0f766e; }
.cs-hint { margin: 0 0 10px; font-size: 12.5px; color: #0f766e; }
.cs-foot { margin: 8px 0 0; font-size: 11.5px; color: #64748b; }
@media (max-width: 600px) {
  .cs-info { grid-template-columns: 1fr; }
  .cs-info > div:nth-child(odd) { border-right: 0; }
  .cs-info > div:nth-last-child(2) { border-bottom: 1px solid #e2e8f0; }
}
@media print { .cs-info { break-inside: avoid; } .cs-toolbar { display: none !important; } }

/* ===================== Odontoqram v2 ===================== */
.odo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.odo-head h2 { margin: 0; }
.odo-dent button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; min-height: 34px; }
.odo-dent button.on { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
html[data-theme="dark"] .odo-dent button.on { background: #1d2f38; }
.odo2 { margin: 10px 0 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.odo-chart { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: max-content; padding: 8px 4px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 4%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--primary) 4%, transparent));
  border-radius: 14px; }
.odo-jaw-l { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.odo-row { display: flex; align-items: flex-end; }
.odo-row:has(.low) { align-items: flex-start; }
.odo-half { display: flex; }
.odo-mid { width: 2px; align-self: stretch; margin: 0 4px; background: repeating-linear-gradient(180deg, var(--line) 0 4px, transparent 4px 8px); }
.odo-occl { width: 100%; height: 1px; background: var(--line); margin: 6px 0; }
.odo-row.prim .odo-t { transform: scale(.9); }
.odo-t { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 44px; padding: 3px 1px; border: 1px solid transparent; border-radius: 10px;
  background: none; cursor: pointer; color: var(--text); position: relative; transition: background .12s, border-color .12s, transform .12s; }
.odo-t:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.odo-t.active { background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: var(--primary); }
.odo-t:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.odo-anat { width: 40px; height: 80px; display: block; overflow: visible; }
.odo-wheel { width: 26px; height: 26px; display: block; }
.odo-wheel.big { width: 150px; height: 150px; }
.odo-wl { font-size: 4.2px; font-weight: 700; fill: #0f172a; pointer-events: none; }
.odo-n { font-size: 12px; font-weight: 700; line-height: 1; }
.odo-row.prim .odo-n { color: #0e7490; }
.odo-badges { display: flex; gap: 2px; min-height: 12px; justify-content: center; }
.odo-badges i { font-style: normal; font-size: 8.5px; font-weight: 800; color: #fff; border-radius: 4px; padding: 1px 3px; line-height: 1.2; }
.cond-missing .odo-n, .cond-extraction .odo-n { opacity: .5; text-decoration: line-through; }
html[data-theme="dark"] .odo-chart { background: linear-gradient(180deg, #0f2027, transparent 40%, transparent 60%, #0f2027); }
html[data-theme="dark"] .odo-wl { fill: #0f172a; }

.odo-legend2 { margin: 4px 0 14px; font-size: 13px; }
.odo-legend2 summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.odo-legend2 .odo-legend { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.odo-legend2 .odo-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

.odo-tl-box { margin: 6px 0 18px; }
.odo-tl-box h3 { margin: 0 0 8px; font-size: 16px; }
.odo-timeline { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.odo-day { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.odo-day:last-child { border-bottom: 0; }
.odo-day-h { font-weight: 700; font-size: 13.5px; color: var(--primary); padding-top: 3px; }
.odo-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.odo-day li { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.odo-day li small { font-size: 11.5px; }
.odo-tn { border: 1px solid var(--line); background: var(--card); border-radius: 6px; font-weight: 800; font-size: 12px; padding: 1px 6px; cursor: pointer; color: var(--text); min-width: 32px; }
.odo-tn:hover { border-color: var(--primary); color: var(--primary); }
.odo-day li.k-treatment span { font-weight: 600; color: #15803d; }
html[data-theme="dark"] .odo-day li.k-treatment span { color: #4ade80; }
@media (max-width: 600px) { .odo-day { grid-template-columns: 1fr; gap: 4px; } }

/* panel */
.odo-panel { width: min(520px, 100vw); display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.odo-ph { display: flex; gap: 12px; align-items: center; padding-right: 30px; }
.odo-prev { flex: none; width: 64px; height: 110px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 6%, transparent); display: grid; place-items: center; }
.odo-prev .odo-anat { width: 56px; height: 104px; }
.odo-date { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.odo-date input { width: auto; }
.odo-sec { display: flex; flex-direction: column; gap: 6px; }
.odo-sec > b { font-size: 13px; }
.odo-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.odo-chips button { border: 1.5px solid var(--c); background: transparent; color: var(--text); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; min-height: 30px; }
.odo-chips button.on { background: var(--c); color: #fff; }
.odo-chips button:disabled { cursor: default; opacity: .8; }
.odo-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 4%, transparent); }
.odo-surf-wrap { grid-template-columns: 150px 1fr; }
.odo-surf svg { width: 150px; height: 150px; }
.odo-tx { padding: 10px; border: 1px dashed color-mix(in srgb, #16a34a 50%, transparent); border-radius: 12px; }
.odo-tx-row { display: flex; gap: 8px; flex-wrap: wrap; }
.odo-tx-row select { flex: 1 1 200px; }
.odo-hist summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.odo-hist li.k-treatment { color: #15803d; }
@media (max-width: 600px) { .odo-attrs { grid-template-columns: 1fr; } .odo-surf-wrap { grid-template-columns: 1fr; justify-items: center; } }
.odo-surf svg text, .odo-surf .odo-wl { font-size: 4.6px; }
.odo-panel .odo-date { flex-direction: row; justify-content: flex-start; text-align: left; }
.consent-state summary { cursor: pointer; font-weight: 600; color: var(--primary); padding: 6px 0; }

/* ===================== Müalicə planı (ekran + çap / PDF) ===================== */
.plan-body { background: #eef3f2; margin: 0; padding: 18px 12px 40px; color: #0f172a; font-size: 14px; }
.plan-toolbar { max-width: 900px; margin: 0 auto 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan-toolbar .plan-tip { flex: 1 1 220px; font-size: 12.5px; color: #475569; }
.plan-toolbar .flash { flex-basis: 100%; margin: 2px 0 0; }
.plan-sheet { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 28px 32px; box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .25); }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid #0f766e; }
.ph-clinic { display: flex; gap: 12px; align-items: center; }
.ph-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px;
  background: linear-gradient(135deg, #14b8a6, #0b4f4a); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ph-clinic b { font-size: 17px; display: block; color: #0b2f2c; }
.ph-clinic small, .ph-doc small { color: #64748b; font-size: 12px; }
.ph-doc { text-align: right; }
.ph-doc h1 { margin: 0 0 2px; font-size: 21px; color: #0b2f2c; }
.plan-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 14px 0; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.plan-info > div { padding: 9px 12px; border-right: 1px solid #e2e8f0; }
.plan-info > div:last-child { border-right: 0; }
.plan-info dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 700; }
.plan-info dd { margin: 2px 0 0; font-size: 13.5px; }
.plan-sheet h2 { font-size: 15px; margin: 16px 0 8px; color: #0b2f2c; text-transform: uppercase; letter-spacing: .05em; }
.plan-chart { break-inside: avoid; }
.plan-odo { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid #e2e8f0; border-radius: 12px; overflow-x: auto; }
.po-row { display: flex; align-items: flex-end; }
.po-row:has(.low) { align-items: flex-start; }
.po-t { width: 36px; display: flex; flex-direction: column; align-items: center; border-radius: 8px; padding: 2px 0; }
.po-t .odo-anat { width: 32px; height: 64px; }
.po-t:not(.is-plan):not(.is-done) .odo-anat { opacity: .55; }
.po-t.is-plan { background: #dbeafe; box-shadow: inset 0 0 0 1.5px #2563eb; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.po-t.is-done { background: #dcfce7; box-shadow: inset 0 0 0 1.5px #16a34a; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.po-n { font-size: 10.5px; font-weight: 700; color: #334155; }
.po-t.is-plan .po-n { color: #1d4ed8; } .po-t.is-done .po-n { color: #15803d; }
.po-mid { width: 1.5px; align-self: stretch; background: #cbd5e1; margin: 0 3px; }
.po-occl { width: 100%; height: 1px; background: #cbd5e1; margin: 4px 0; }
.plan-chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: #475569; margin-top: 6px; }
.plan-chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; }
.lg-plan { background: #dbeafe; box-shadow: inset 0 0 0 1.5px #2563eb; } .lg-done { background: #dcfce7; box-shadow: inset 0 0 0 1.5px #16a34a; }
.lg-cur { background: linear-gradient(90deg, #fde68a, #fecaca, #e9d5ff); }
.plan-stage { margin-bottom: 12px; break-inside: avoid; }
.plan-stage h3 { font-size: 14px; margin: 10px 0 4px; display: flex; align-items: center; gap: 8px; color: #0f766e; }
.st-n { width: 22px; height: 22px; border-radius: 50%; background: #0f766e; color: #fff; display: grid; place-items: center; font-size: 12px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.plan-body .plan-table { margin: 0; font-size: 13.5px; }
.plan-body .plan-table th { color: #475569; border-bottom: 2px solid #0f766e; }
.plan-body .plan-table tfoot td { border-top: 1px solid #94a3b8; font-size: 13.5px; color: #475569; padding-top: 6px; }
.plan-table tr.it-refused td, .plan-table tr.it-cancelled td { color: #94a3b8; text-decoration: line-through; }
.plan-table tr.it-refused td:nth-child(6), .plan-table tr.it-cancelled td:nth-child(6) { text-decoration: none; }
.it-surf { font-size: 11px; font-weight: 700; color: #7c3aed; letter-spacing: .04em; }
.it-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 11.5px; color: #64748b; margin-top: 2px; }
.it-code { font-family: ui-monospace, Consolas, monospace; color: #475569; }
.it-late-d { color: #b91c1c; font-weight: 700; }
.it-late-note { font-size: 11.5px; color: #b91c1c; font-weight: 600; }
.it-appt { font-size: 11.5px; color: #6d28d9; } .it-appt a { color: inherit; font-weight: 600; }
.it-clin { font-size: 11.5px; color: #334155; background: #f1f5f9; border-radius: 4px; padding: 2px 6px; margin-top: 3px; }
.it-book { display: block; width: max-content; margin-top: 4px; font-size: 11.5px; padding: 3px 8px; }
.pc-note { color: #b45309; font-weight: 700; cursor: help; }
.plan-table tr.it-done td:first-child b { color: #15803d; }
.st-badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); white-space: nowrap; }
.print-only { display: none; }
.st-sel { font-size: 12.5px; font-weight: 700; padding: 4px 8px; border-radius: 999px; border: 1.5px solid var(--c); color: var(--c); background: #fff; max-width: 175px; }
.it-more { position: relative; display: inline-block; }
.it-more summary { list-style: none; cursor: pointer; padding: 2px 8px; border-radius: 6px; font-weight: 800; color: #475569; }
.it-more summary::-webkit-details-marker { display: none; }
.it-pop { position: absolute; right: 0; top: 26px; z-index: 5; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.15); display: grid; gap: 8px; width: 240px; text-align: left; white-space: normal; max-height: 75vh; overflow: auto; }
.it-more .it-edit { display: grid; gap: 6px; }
.it-edit label { display: flex; flex-direction: column; font-size: 12px; gap: 2px; }
.it-edit input, .it-edit select { padding: 5px 7px; font-size: 13px; }
.plan-totals { margin: 14px 0 8px auto; max-width: 340px; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; break-inside: avoid; }
.plan-totals > div { display: flex; justify-content: space-between; padding: 7px 12px; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }
.plan-totals > div:last-child { border-bottom: 0; }
.plan-totals .pt-main { background: #0f766e; color: #fff; font-size: 16px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.plan-note { background: #f8fafc; border-left: 3px solid #0f766e; padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 13px; }
.plan-fine { font-size: 11.5px; color: #64748b; }
.plan-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 26px; break-inside: avoid; }
.plan-sign > div { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #475569; }
.plan-sign i { display: block; height: 34px; border-bottom: 1px solid #334155; }
.plan-sign small { color: #0f172a; font-weight: 600; }
.plan-edit { max-width: 900px; margin: 16px auto 0; display: grid; gap: 12px; }
.plan-edit .card { background: #fff; color: #0f172a; }
.plan-edit h2 { margin: 0 0 10px; font-size: 17px; }
.plan-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.plan-add label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 600; }
.plan-add label.grow { flex: 1 1 220px; } .plan-add label.full { flex-basis: 100%; }
.plan-add input, .plan-add select, .plan-add textarea { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; background: #fff; color: #0f172a; }
.it-cons { display: block; width: max-content; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: #15803d; text-decoration: none; }
.it-cons.is-no { color: #b91c1c; }
.pc-sec { margin: 12px 0; } .pc-sec h2 { font-size: 15px; margin: 0 0 4px; }
.pc-sec textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.pc-dec { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-weight: 600; }
.pc-decided { color: #15803d; } .pc-decided.is-no { color: #b91c1c; }
.pc-signed { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .pc-signed { grid-template-columns: 1fr; } }
.proc-cons { display: inline-block; margin-right: 6px; vertical-align: middle; }
.proc-cons > summary { cursor: pointer; list-style: none; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
.proc-cons > summary::-webkit-details-marker { display: none; }
.proc-cons[open] > form { position: absolute; right: 16px; z-index: 6; width: min(420px, 90vw); background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); }
.proc-cons textarea { width: 100%; box-sizing: border-box; }
.tr-bar { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin: 4px 0 10px; }
.tr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #0d9488, #16a34a); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tr-kpis small { font-size: 11px; color: #64748b; }
.tr-kpis small span { text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: 600; }
.tr-late { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: #b91c1c; }
.po-t.ph-1 { box-shadow: inset 0 0 0 2px #dc2626; background: #fee2e2; } .po-t.ph-1 .po-n { color: #b91c1c; }
.po-t.ph-2 { box-shadow: inset 0 0 0 2px #ea580c; background: #ffedd5; } .po-t.ph-2 .po-n { color: #c2410c; }
.po-t.ph-4 { box-shadow: inset 0 0 0 2px #db2777; background: #fce7f3; } .po-t.ph-4 .po-n { color: #be185d; }
.po-t.ph-5 { box-shadow: inset 0 0 0 2px #0d9488; background: #ccfbf1; } .po-t.ph-5 .po-n { color: #0f766e; }
.ph-legend i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pp-sheet .pp-lead { font-size: 15px; margin: 12px 0; }
.pp-phase { margin: 16px 0; break-inside: avoid; border-left: 4px solid var(--c); padding-left: 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pp-phase h2 { display: flex; align-items: center; gap: 8px; color: var(--c); text-transform: none; letter-spacing: 0; font-size: 17px; }
.pp-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-size: 14px; }
.pp-phase ul { list-style: none; margin: 0; padding: 0; }
.pp-phase li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #e2e8f0; font-size: 14.5px; }
.pp-phase li small { display: block; color: #475569; font-size: 12.5px; margin-top: 2px; }
.pp-phase li.is-done b { color: #15803d; } .pp-ok { color: #15803d !important; font-weight: 700; }
.pp-price { white-space: nowrap; font-weight: 700; }
.pcx-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pcx-head h2 { margin: 16px 0 8px; }
.plan-odo button.po-t { border: 0; background: transparent; cursor: pointer; font: inherit; }
.plan-odo button.po-t:hover { background: #f1f5f9; }
.po-t .odo-wheel { width: 22px; height: 22px; margin: 2px 0; }
.po-t.sel { outline: 2.5px solid #0f766e; outline-offset: 1px; }
.po-t.has-note .po-n::after { content: "•"; color: #b45309; margin-left: 1px; }
.pc-notes { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: #334155; }
.pc-panel { margin-top: 10px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; background: #f8fafc; }
.pc-panel h3 { margin: 0 0 8px; font-size: 15px; }
.pc-lab { font-size: 12px; font-weight: 700; color: #475569; margin: 8px 0 4px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chip { border: 1.5px solid var(--c); color: var(--c); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pc-chip.on { background: var(--c); color: #fff; }
.pc-surf { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pc-wheel .odo-wheel.big { width: 120px; height: 120px; }
.pc-surf .pc-chips { flex: 1 1 200px; }
.pc-note { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.pc-note input { padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.pc-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.pc-msg { font-size: 12.5px; color: #15803d; font-weight: 600; }
.pat-edit { margin: -6px 0 10px; } .pat-edit summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #0f766e; }
.pat-edit[open] summary { margin-bottom: 8px; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pm-item { margin: 0; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.pm-item img { display: block; width: 100%; height: 130px; object-fit: cover; background: #0f172a; }
.pm-pdf { display: grid; place-items: center; height: 130px; background: #f1f5f9; font-weight: 800; color: #b91c1c; text-decoration: none; }
.pm-item figcaption { padding: 6px 8px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.pm-act { display: flex; gap: 6px; align-items: center; }
.pm-pick { display: grid; gap: 4px; margin-top: 6px; font-size: 13px; }
.pm-modal { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .75); display: flex; align-items: center; justify-content: center; padding: 12px; }
.pm-modal[hidden] { display: none; }
.pm-box { background: #fff; border-radius: 14px; padding: 12px; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 6px; }
.pm-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.pm-tools label { display: flex; gap: 4px; align-items: center; } .pm-sp { flex: 1; }
.pm-canvas { overflow: auto; min-height: 0; }
.pm-canvas canvas { display: block; max-width: 100%; max-height: 72vh; touch-action: none; cursor: crosshair; margin: 0 auto; }
.pf-kpis { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.pf-kpis > div { padding: 8px 10px; border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 2px; }
.pf-kpis > div:last-child { border-right: 0; }
.pf-kpis span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; font-weight: 700; }
.pf-kpis b { font-size: 15px; } .pf-kpis .pf-main { background: #f0fdfa; } .pf-kpis .pf-main b { color: #0f766e; }
.pf-kpis .pos { color: #15803d; } .pf-kpis .neg, .plan-hist .neg { color: #b91c1c; }
.pf-note { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pf-pays tr.led-refund td { color: #b45309; }
@media (max-width: 700px) { .pf-kpis { grid-template-columns: 1fr 1fr; } .pf-kpis > div { border-bottom: 1px solid #e2e8f0; } }
.cl-link { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.cl-context { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cl-context h2, #problems h2, #exams h2 { margin: 0 0 8px; font-size: 17px; }
.cl-risks, .cl-marks { margin: 6px 0 10px; padding-left: 18px; font-size: 13.5px; }
.cl-marks { list-style: none; padding-left: 0; display: grid; gap: 4px; }
.cl-marks li span { margin-left: 8px; } .cl-marks li span > span { color: var(--muted); margin: 0; }
.cl-diag tr.dg-resolved td { opacity: .7; } .cl-diag tr.dg-error td { opacity: .5; text-decoration: line-through; }
.cl-diag tr.dg-error td:nth-child(6) { text-decoration: none; }
.cl-add { margin-top: 12px; } .cl-add > summary { list-style: none; display: inline-flex; cursor: pointer; }
.cl-add > summary::-webkit-details-marker { display: none; }
.cl-form { margin-top: 10px; }
.cl-form label.full textarea { width: 100%; }
.cl-media { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 4px; }
.cl-st { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-diag .it-pop { background: var(--card); color: var(--text); border-color: var(--line); width: 280px; }
@media (max-width: 700px) { .cl-table { overflow-x: auto; } .cl-diag .it-pop { position: static; width: 240px; box-shadow: none; max-height: none; } }
.cl-exam { border-top: 1px solid var(--line); padding: 12px 0; }
.cl-exam-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cl-dl { margin: 8px 0; display: grid; gap: 6px; } .cl-dl dt { font-size: 12px; color: var(--muted); font-weight: 700; } .cl-dl dd { margin: 0; white-space: pre-wrap; }
.cl-mlinks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.it-diag { font-size: 12.5px; color: #9f1239; } .it-diag > span { color: #64748b; }
@media (max-width: 700px) { .cl-context { grid-template-columns: 1fr; } }
.proc-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.proc-row select { flex: 1 1 150px; min-width: 0; max-width: 220px; }
.proc-row input[name=price] { width: 80px; } .proc-row input[name=duration] { width: 64px; }
.plan-meta-box summary { cursor: pointer; font-weight: 700; color: #0f766e; }
.plan-meta-box[open] summary { margin-bottom: 10px; }
/* plan: variant, kilid, yumşaq silmə, versiya tarixçəsi */
.ph-var { display: inline-block; font-weight: 700; color: #7c3aed; }
.pc-var-sm { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: #fff; background: #7c3aed; vertical-align: 1px; }
.plan-deleted { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 13.5px; }
.it-lock { font-size: 12px; margin-left: 4px; vertical-align: 1px; }
.it-lock-note { font-size: 12px; color: #475569; margin: 0; }
.it-corr { font-size: 11.5px; color: #92400e; background: #fffbeb; border-left: 2px solid #f59e0b; padding: 2px 6px; margin-top: 3px; border-radius: 0 4px 4px 0; }
.it-correct { border-top: 1px dashed #cbd5e1; padding-top: 8px; }
.it-correct b { font-size: 12.5px; color: #92400e; }
.plan-hist { max-width: 900px; margin: 16px auto 0; }
.plan-hist .card { background: #fff; color: #0f172a; }
.plan-hist h2 { margin: 0 0 10px; font-size: 17px; }
.pv-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.pv-pending { border-style: dashed; border-color: #f59e0b; background: #fffbeb; }
.pv-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pv-n { font-weight: 800; color: #fff; background: #0f766e; border-radius: 6px; padding: 1px 7px; font-size: 12.5px; }
.pv-tot { margin-left: auto; font-weight: 700; }
.pv-sum { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: #475569; margin-top: 4px; }
.pv-add { color: #15803d; } .pv-rem { color: #b91c1c; } .pv-chg { color: #b45309; }
.pv-list { margin: 6px 0 0; padding-left: 4px; list-style: none; font-size: 12.5px; display: grid; gap: 2px; }
.pv-f { display: inline-block; margin-left: 6px; color: #334155; } .pv-f > span { color: #64748b; }
.pv-stamp { font-size: 12px; font-weight: 700; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 10px; margin-bottom: 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* variantların müqayisəsi */
.pc-sheet { max-width: 1100px; }
.plan-toolbar:has(+ .pc-sheet) { max-width: 1100px; }
.pc-grid { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.pc-col { border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; break-inside: avoid; }
.pc-col > .st-badge { align-self: flex-start; }
.pc-col.is-chosen { border-color: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.pc-col.is-off { opacity: .65; }
.pc-head { display: flex; gap: 10px; align-items: center; }
.pc-head small { display: block; color: #64748b; font-size: 12px; }
.pc-var { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #7c3aed; color: #fff; font-weight: 800; font-size: 17px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pc-kv { margin: 0; display: grid; gap: 0; border: 1px solid #f1f5f9; border-radius: 10px; overflow: hidden; }
.pc-kv > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.pc-kv > div:last-child { border-bottom: 0; }
.pc-kv dt { color: #64748b; } .pc-kv dd { margin: 0; font-weight: 600; text-align: right; }
.pc-total { background: #f0fdfa; } .pc-total dd { font-size: 16px; color: #0f766e; }
.pc-low { display: inline-block; font-size: 10.5px; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 999px; padding: 1px 6px; vertical-align: 2px; }
.pc-stages h4 { margin: 6px 0 2px; font-size: 12.5px; color: #0f766e; }
.pc-stages ul { margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.pc-stages li { display: flex; gap: 6px; padding: 2px 0; border-bottom: 1px dashed #f1f5f9; }
.pc-stages li span { margin-left: auto; white-space: nowrap; color: #475569; }
.pc-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 700px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pv-tot { margin-left: 0; }
}
@media (max-width: 700px) {
  .plan-sheet { padding: 18px 14px; border-radius: 12px; }
  .plan-head { flex-direction: column; } .ph-doc { text-align: left; }
  .plan-info { grid-template-columns: 1fr 1fr; } .plan-info > div:nth-child(2) { border-right: 0; } .plan-info > div:nth-child(-n+2) { border-bottom: 1px solid #e2e8f0; }
  .plan-body .plan-table { display: block; overflow-x: auto; }
  .plan-sign { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  .plan-body { background: #fff; padding: 0; font-size: 12px; }
  .plan-sheet { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .no-print { display: none !important; }
  .print-only { display: inline-block; }
  .plan-odo { overflow: visible; }
  .po-t { width: 30px; } .po-t .odo-anat { width: 27px; height: 54px; }
}
@media (max-width: 700px) {
  .odo2 { overflow-x: visible; }
  .odo-chart { min-width: 0; padding: 6px 0 4px; }
  .odo-row { flex-direction: column; align-items: center; gap: 2px; }
  .odo-mid { width: 60%; height: 1px; margin: 2px 0; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }
  .odo-half { justify-content: center; }
  .odo-t { width: 38px; padding: 2px 0; }
  .odo-anat { width: 34px; height: 68px; }
  .odo-wheel { width: 22px; height: 22px; }
  .odo-n { font-size: 11px; }
  .odo-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) { .odo-row:has(.low) { align-items: center; } }

/* ---- bildirişlər (🔔) ---- */
.side-top { gap: 6px; }
.side-top .brand { flex: 1 1 auto; min-width: 0; }
.bell-btn { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; margin-right: 10px; border-radius: 12px;
  color: #e6f4f1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
.bell-btn .ic { width: 20px; height: 20px; }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #0b3b38; }
.bell-panel { position: fixed; z-index: 4000; width: min(380px, calc(100vw - 20px)); max-height: min(560px, calc(100vh - 90px)); overflow: auto;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-hi); }
.bell-panel header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px;
  background: var(--card); border-bottom: 1px solid var(--line); }
.bell-panel header b { font-size: 15px; }
.bell-panel h4 { margin: 10px 14px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bell-panel footer { position: sticky; bottom: 0; padding: 10px 14px; background: var(--card); border-top: 1px solid var(--line); text-align: center; }
.bell-panel .empty { padding: 14px; }
.nt-list { list-style: none; margin: 0; padding: 0 6px 6px; }
.nt-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-radius: 10px; color: inherit; text-decoration: none; }
.nt-item:hover { background: var(--bg, rgba(0, 0, 0, .04)); }
.nt-item.unread { background: rgba(19, 163, 148, .08); }
.nt-item.unread .nt-tx { font-weight: 600; }
.nt-ic { flex: 0 0 22px; text-align: center; font-size: 16px; line-height: 1.3; }
.nt-tx { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.35; }
.nt-tx small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; }
.nt-count { flex: 0 0 auto; min-width: 26px; padding: 2px 8px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 12px; text-align: center; }
.nt-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #13a394; }
section.card .nt-list { padding: 0; }
@media (max-width: 900px) { .bell-btn { margin-right: 4px; } }
.bell-panel header .linklike { color: var(--primary); font-weight: 600; }

/* ---- ana səhifə: süni intellekt köməkçisi ---- */
.ai-chat { position: fixed; right: 18px; bottom: 18px; z-index: 3000; font-size: 15px; }
.ai-fab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #169184, #0c6b63); color: #fff; font-weight: 700; box-shadow: 0 10px 28px rgba(8, 82, 76, .4); }
.ai-chat.on .ai-fab { display: none; }
.ai-box { display: flex; flex-direction: column; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 40px));
  background: #fff; color: #0f172a; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(2, 32, 30, .35); }
.ai-box[hidden] { display: none; }
.ai-box header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #0b3b38; color: #e6fffb; }
.ai-x { border: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.ai-log { flex: 1 1 auto; overflow-y: auto; padding: 12px; background: #f4f8f8; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { margin: 0; max-width: 86%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.ai-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #dbe7e6; }
.ai-msg.me { align-self: flex-end; background: #13a394; color: #fff; }
.ai-msg.wait { color: #64748b; font-style: italic; }
.ai-msg.err { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.ai-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e2e8f0; background: #fff; }
.ai-form textarea { flex: 1 1 auto; resize: none; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; font: inherit; }
.ai-note { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: #64748b; background: #fff; }
@media (max-width: 600px) { .ai-chat { right: 12px; bottom: 12px; } .ai-fab span { display: none; } }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; background: #fff; border-top: 1px solid #e2e8f0; }
.ai-chips button { border: 1px solid #b7e4de; background: #effaf8; color: #0c6b63; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; }
.ai-chips button:hover { background: #d9f3ef; }
.ai-chips + .ai-form { border-top: 0; }
.ai-link { display: inline-block; margin-top: 6px; font-weight: 600; color: #0c6b63; }
.ai-chat.ai-up { bottom: 84px; }

/* ---- proqramın içindəki köməkçi (💬) ---- */
.hb { position: fixed; right: 18px; bottom: 18px; z-index: 3500; }
.hb-fab { width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; font-size: 24px; color: #fff;
  background: linear-gradient(180deg, #169184, #0c6b63); box-shadow: 0 10px 26px rgba(8, 82, 76, .4); }
.hb.on .hb-fab { display: none; }
.hb-box { display: flex; flex-direction: column; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px));
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-hi); }
.hb-box[hidden] { display: none; }
.hb-box header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #0b3b38; color: #e6fffb; }
.hb-x { border: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.hb-log { flex: 1 1 auto; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.hb-msg { max-width: 90%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; font-size: 14px; word-wrap: break-word; }
.hb-msg.bot { align-self: flex-start; border: 1px solid var(--line); background: var(--bg, rgba(0, 0, 0, .02)); }
.hb-msg.me { align-self: flex-end; background: #13a394; color: #fff; }
.hb-msg.wait { color: var(--muted); font-style: italic; }
.hb-msg.err { color: #b91c1c; }
.hb-t { white-space: pre-wrap; font-weight: 500; }
.hb-rows { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 0; font-size: 13px; }
.hb-rows dt { color: var(--muted); } .hb-rows dd { margin: 0; font-weight: 600; }
.hb-items { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.hb-items small { display: block; color: var(--muted); font-size: 12px; }
.hb-link { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 13px; }
.hb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; border-top: 1px solid var(--line); }
.hb-chips.in { border: 0; padding: 8px 0 0; }
.hb-chips button { border: 1px solid #b7e4de; background: #effaf8; color: #0c6b63; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.hb-form { display: flex; gap: 8px; padding: 10px; }
.hb-form input { flex: 1 1 auto; }
.hb-note { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .hb { bottom: calc(86px + env(safe-area-inset-bottom)); right: 12px; } .hb-fab { width: 48px; height: 48px; font-size: 21px; } }
@media print { .hb { display: none !important; } }
.ai-form textarea { background: #fff; color: #0f172a; }
.ai-form textarea::placeholder { color: #64748b; }
.ai-chips.pulse button { animation: aiPulse 1.2s ease 1; }
@keyframes aiPulse { 30% { background: #b7e4de; transform: scale(1.04); } }

/* ---- ana səhifə: universal müalicə planı ---- */
.lp-tp { padding-top: 30px; }
.lp-tp-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 5px 12px; border-radius: 999px;
  background: #e6f7f5; color: #0c6b63; font-weight: 700; font-size: 13.5px; letter-spacing: .02em; }
.lp-tp-kicker .ic { width: 16px; height: 16px; }
.lp-tp-lead { max-width: 760px; font-size: 17.5px; line-height: 1.6; color: var(--muted, #475569); margin: 6px 0 22px; }
.lp-tp-shot { margin: 0 0 26px; border-radius: 18px; overflow: hidden; border: 1px solid #dbe7e6; box-shadow: 0 22px 50px rgba(8, 60, 56, .14); background: #fff; }
.lp-tp-shot img { display: block; width: 100%; height: auto; }
.lp-tp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.lp-tp-list li { position: relative; padding: 14px 16px 14px 44px; border-radius: 14px; background: #fff; border: 1px solid #e2ecea; line-height: 1.5; font-size: 15px; }
.lp-tp-list li::before { content: "✓"; position: absolute; left: 15px; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: #13a394; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.lp-tp-list b { color: #0b3b38; }
html[data-theme="dark"] .lp-tp-list li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .lp-tp-list b { color: #d9fffa; }
html[data-theme="dark"] .lp-tp-kicker { background: rgba(19, 163, 148, .18); color: #7fe3d6; }
@media (max-width: 760px) { .lp-tp-list { grid-template-columns: 1fr; } .lp-tp-lead { font-size: 16px; } }
