:root {
  /* RESTORED 2026-07-15 (dropped when the ee11e5f content update overwrote styles.css):
     text-on-accent + per-category icon colors. DEEP light values here; the dark theme
     (style-klinik-beyaz-dark.css) overrides them with brighter values. */
  --on-deep: #f4ecd6;
  --c-acil:#cf392b; --c-ust:#2563eb; --c-alt:#15803d; --c-hep:#b45309; --c-pankreo:#0f766e;
  --c-fonk:#7c3aed; --c-genel:#4338ca; --c-enf:#4d7c0f; --c-onk:#a21caf; --c-lab:#0e7490;
  --c-img:#475569; --c-drug:#be185d; --c-screen:#047857; --c-score:#92710a; --c-symptom:#0369a1;
  --bg: #f6f9fc;
  --panel: #ffffff;
  --text: #152033;
  --muted: #5b6b82;
  --line: #d8e3f2;
  --blue: #1f5ea8;
  --blue-dark: #123a68;
  --blue-soft: #eaf3ff;
  --amber-soft: #fff7e6;
  --amber-line: #f2c56b;
  --danger: #9b2c2c;
  --radius: 8px;
  --entry-panel-height: 44px;
  --reader-toolbar-height: 48px;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 100%;
  overflow-x: hidden;
}

.app-header {
  min-height: 56px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #123a68, #1f5ea8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 4px solid #9cc7ff;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-brand > div {
  min-width: 0;
}

.app-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(5, 23, 46, .2);
}

.app-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.app-header p {
  margin: 2px 0 0;
  color: #e7f1ff;
  font-size: 12px;
}

.version-badge {
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #eff7ff;
  white-space: nowrap;
}

.app-shell,
.shell {
  width: min(1260px, calc(100% - 28px));
  margin: 8px auto 20px;
}

.notice,
.notice-panel {
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  border-left: 5px solid var(--amber-line);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: #3d2b10;
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.entry-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
  position: static;
  padding: 5px 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(216, 227, 242, .72);
}

.entry-card {
  --module-accent: #58708d;
  --module-soft: #f7f9fc;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 7px 10px;
  text-align: left;
  background: linear-gradient(180deg, #fff, var(--module-soft));
  border: 1px solid #d5e1ee;
  border-left: 4px solid var(--module-accent);
  border-radius: var(--radius);
  color: var(--blue-dark);
  overflow: hidden;
}

.entry-card span {
  display: block;
  max-width: 100%;
  font-size: 11.8px;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.entry-card small {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.entry-card.active {
  min-height: 48px;
  padding: 7px 10px;
  background: var(--module-accent);
  border-color: var(--module-accent);
  border-left-color: #d9e8fb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(31, 94, 168, .12);
}

.entry-card.active span {
  font-size: 11.8px;
}

.entry-card.active small {
  color: #e7f1ff;
}

.entry-card[data-mode="symptom"] { order: 1; --module-accent: #2f8a63; --module-soft: #f2faf6; }
.entry-card[data-mode="lab"] { order: 2; --module-accent: #2f7d8c; --module-soft: #f1f9fb; }
.entry-card[data-mode="emergency"] { order: 3; --module-accent: #a86621; --module-soft: #fff7ed; }
.entry-card[data-mode="disease"] { order: 4; --module-accent: #1f5ea8; --module-soft: #f1f6fd; }
.entry-card[data-mode="score"] { order: 5; --module-accent: #6657a8; --module-soft: #f6f4ff; }
.entry-card[data-mode="screening"] { order: 6; --module-accent: #477a6d; --module-soft: #f3faf7; }
.entry-card[data-mode="procedure"] { order: 7; --module-accent: #49749a; --module-soft: #f2f7fb; }
.entry-card[data-mode="drug"] { order: 8; --module-accent: #965766; --module-soft: #fff5f7; }
.entry-card[data-mode="route"] { order: 9; --module-accent: #7b5b9d; --module-soft: #fbf7ff; }

.workspace {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 8px;
}

.workspace.simple-entry {
  grid-template-columns: 1fr;
}

.workspace.simple-entry .sidebar {
  display: none;
}

.workspace.simple-entry .tabs {
  display: none;
}

.workspace.disease-entry .tabs,
.workspace.disease-entry .toolbar-actions {
  display: none;
}

.workspace.disease-entry {
  grid-template-columns: 1fr;
  gap: 0;
}

.workspace.disease-entry .reader {
  border-color: var(--line);
  box-shadow: none;
}

.workspace.disease-entry .sidebar {
  display: none;
}

.workspace.disease-entry .reader {
  border-radius: var(--radius);
}

.sidebar,
.reader,
.emergency-panel,
.roadmap,
.roadmap-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar {
  padding: 8px;
  align-self: start;
  position: sticky;
  top: 12px;
}

.field {
  display: grid;
  gap: 3px;
  margin-bottom: 7px;
}

label {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--blue-dark);
}

input,
select {
  width: 100%;
  min-height: 32px;
  border: 1px solid #bfd4ee;
  border-radius: var(--radius);
  padding: 5px 8px;
  font: inherit;
  font-size: 12.5px;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus {
  outline: 3px solid rgba(31, 94, 168, .14);
  border-color: var(--blue);
}

.diagnosis-list {
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 4px;
}

.diagnosis-item {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 5px 7px;
  text-align: left;
  cursor: pointer;
  font-size: 12.2px;
  font-weight: 650;
  line-height: 1.16;
}

.diagnosis-item small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  margin-top: 2px;
}

.diagnosis-item-title {
  display: inline;
}

.completion-list-badge {
  display: none;
}

.section-completion-badge {
  display: none;
}

.diagnosis-item.active,
.diagnosis-item:hover {
  border-color: #8dbbf0;
  background: var(--blue-soft);
}

.reader {
  min-width: 0;
  padding: 9px;
}

.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  position: static;
  background: rgba(246, 249, 252, .98);
  padding: 2px 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.reader h2,
.emergency-panel h2,
.roadmap h2,
.roadmap-panel h2 {
  margin: 1px 0 0;
  font-size: 16px;
  line-height: 1.18;
  color: var(--blue-dark);
}

.toolbar-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.toolbar-actions button {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 11.8px;
  font-weight: 700;
  border-radius: 7px;
}

.workspace.card-actions-entry .reader-toolbar,
.workspace.disease-entry .reader-toolbar {
  display: block;
  margin: 0 0 7px;
  padding: 7px 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 253, 255, .97);
  box-shadow: 0 5px 14px rgba(21, 32, 51, .05);
}

.workspace.card-actions-entry .reader-toolbar .toolbar-actions,
.workspace.disease-entry .reader-toolbar .toolbar-actions,
.workspace.card-actions-entry .reader-toolbar .eyebrow,
.workspace.disease-entry .reader-toolbar .eyebrow {
  display: none;
}

.workspace.card-actions-entry .reader-toolbar h2,
.workspace.disease-entry .reader-toolbar h2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 430px);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  line-height: 1.18;
}

.module-title-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.module-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.module-inline-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #bfd4ee;
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-inline-select option.completed-option {
  background: #fff;
  color: inherit;
  font-weight: inherit;
}

.searchable-module-picker {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.searchable-picker-control {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 30px 6px 10px;
  border: 1px solid #bfd4ee;
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.searchable-picker-control::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-dark);
  font-size: 12px;
}

.searchable-module-picker.open .searchable-picker-control::after {
  content: "▴";
}

.searchable-picker-current {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-picker-panel {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: min(60vh, 460px);
  padding: 6px;
  border: 1px solid #bfd4ee;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 28px rgba(21, 32, 51, .18);
}

.searchable-picker-input {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #c9daf0;
  border-radius: 7px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 650;
  outline: none;
}

.searchable-picker-input:focus {
  border-color: #8dbbf0;
  box-shadow: 0 0 0 2px rgba(31, 94, 168, .12);
}

.searchable-picker-list {
  max-height: min(48vh, 370px);
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 6px;
  border: 1px solid #edf3fb;
  border-radius: 7px;
}

.searchable-picker-option {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  display: block;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e6eef9;
  background: #fff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.searchable-picker-option:last-child {
  border-bottom: 0;
}

.searchable-picker-option:hover,
.searchable-picker-option:focus {
  background: var(--blue-soft);
}

.searchable-picker-option.active {
  background: var(--blue);
  color: #fff;
}

.searchable-picker-empty {
  padding: 12px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.mobile-module-picker {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.mobile-module-picker summary {
  min-height: 34px;
  padding: 7px 28px 7px 10px;
  border: 1px solid #bfd4ee;
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  position: relative;
  overflow: hidden;
}

.mobile-module-picker summary::-webkit-details-marker {
  display: none;
}

.mobile-module-picker summary::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-dark);
  font-size: 12px;
}

.mobile-module-picker[open] summary::after {
  content: "▴";
}

.mobile-module-picker summary span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-module-picker-list {
  width: 100%;
  max-width: 100%;
  max-height: min(58vh, 430px);
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 4px;
  border: 1px solid #bfd4ee;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 32, 51, .14);
}

.mobile-module-picker-option {
  width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  display: block;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e6eef9;
  background: #fff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mobile-module-picker-option:last-child {
  border-bottom: 0;
}

.mobile-module-picker-option.active {
  background: var(--blue);
  color: #fff;
}

.workspace.emergency-entry.card-actions-entry .reader-toolbar {
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--line);
}

.workspace.emergency-entry.card-actions-entry .reader-toolbar .toolbar-actions,
.workspace.emergency-entry.card-actions-entry .reader-toolbar .eyebrow {
  display: none;
}

.workspace.emergency-entry.card-actions-entry .reader-toolbar h2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 360px);
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
}

.emergency-inline-select {
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #bfd4ee;
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-button {
  display: none;
}

.workspace.simple-entry .source-button {
  display: inline-flex;
  align-items: center;
}

.workspace.emergency-entry .source-button {
  display: inline-flex;
  align-items: center;
}

.source-button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

button {
  border: 1px solid #bfd4ee;
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-dark);
  min-height: 30px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--blue-soft);
}

.annotation-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  min-height: 34px;
  padding: 6px 10px;
  border-color: #9cc2eb;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(13, 43, 79, 0.18);
  font-size: 12px;
}

.annotation-toggle.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.annotation-layer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  pointer-events: none;
}

.annotation-layer.active {
  display: block;
  pointer-events: auto;
}

.annotation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.annotation-layer.note-tool .annotation-canvas {
  cursor: copy;
}

.annotation-layer.eraser-tool .annotation-canvas {
  cursor: cell;
}

.annotation-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.annotation-note {
  position: fixed;
  z-index: 1110;
  width: min(238px, calc(100vw - 20px));
  min-height: 118px;
  border: 1px solid #dfbd57;
  border-radius: 8px;
  background: #fff5b8;
  box-shadow: 0 10px 24px rgba(77, 62, 10, 0.2);
  overflow: hidden;
  pointer-events: auto;
}

.annotation-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 4px 8px;
  background: #ffe27a;
  color: #463600;
  font-size: 12px;
  font-weight: 800;
  cursor: move;
  user-select: none;
}

.annotation-note-head button {
  min-height: 22px;
  width: 24px;
  padding: 0;
  border-color: #c89922;
  border-radius: 999px;
  background: #fff9dc;
  color: #5b4100;
  line-height: 1;
}

.annotation-note textarea {
  display: block;
  width: 100%;
  height: 90px;
  border: 0;
  resize: vertical;
  padding: 8px;
  background: transparent;
  color: #2e270a;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.annotation-note textarea:focus {
  outline: 2px solid rgba(179, 54, 54, 0.35);
  outline-offset: -2px;
}

.annotation-toolbar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 1210;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 124px);
  padding: 6px;
  border: 1px solid #bfd4ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(13, 43, 79, 0.18);
  transform: translateX(-50%);
}

.annotation-toolbar[hidden] {
  display: none;
}

.annotation-toolbar button {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
}

.annotation-toolbar button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.annotation-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.annotation-toolbar input[type="color"] {
  width: 26px;
  height: 22px;
  padding: 0;
  border: 1px solid #bfd4ee;
  border-radius: 5px;
  background: #fff;
}

.annotation-toolbar input[type="range"] {
  width: 76px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: 5px 0 8px;
}

.tab {
  min-height: 30px;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 700;
}

.tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  min-height: 480px;
}

.empty-state {
  color: var(--muted);
  padding: 14px;
}

.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 4px;
  overflow: visible;
}

.section-card summary {
  cursor: pointer;
  list-style: none;
  padding: 6px 8px;
  background: linear-gradient(90deg, var(--blue-soft), #fff);
  color: var(--blue-dark);
  font-size: 12.2px;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.section-card summary::-webkit-details-marker { display: none; }

.section-summary-title {
  flex: 1 1 160px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #e1ecfa;
}

.section-action {
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1;
  background: #fff;
}

.section-action-close {
  color: #475569;
  border-color: #d5e2f1;
  background: #f8fbff;
}

.section-card summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #c7ddf7;
}

.section-card[open] > summary::after { content: "-"; }

.disease-parent-card {
  background: #fbfdff;
}

.disease-parent-card > summary {
  background: linear-gradient(90deg, #dbeafe, #fff);
  border-left: 3px solid var(--blue);
  font-size: 12.8px;
  font-weight: 850;
}

.disease-parent-body {
  display: grid;
  gap: 5px;
  padding: 7px !important;
  background: #f8fbff;
}

.disease-subcard {
  margin-bottom: 0;
  background: #fff;
}

.disease-subcard > summary {
  padding: 5px 8px;
  background: #eef6ff;
  border-left: 3px solid #8dbbf0;
  font-size: 12px;
  font-weight: 800;
}

.disease-subcard > .section-body {
  background: #fff;
}

.disease-topic-card {
  margin-bottom: 0;
  background: #f8fbff;
}

.disease-topic-card > summary {
  background: linear-gradient(90deg, #dbeafe, #f8fbff);
  border-left: 3px solid var(--blue);
  font-size: 12.8px;
  font-weight: 850;
}

.disease-topic-card > .disease-topic-body {
  gap: 4px;
  padding: 6px !important;
}

.disease-topic-subcard > summary {
  padding-left: 10px;
  background: #fff;
  border-left-color: #9bc5f5;
  font-size: 11.8px;
}

.disease-topic-subcard > .section-body {
  border-top: 1px solid #dceafd;
}

.section-body {
  padding: 7px 10px 8px;
  font-size: 12.8px;
}

.section-body ul {
  margin: 0;
  padding-left: 17px;
}

.section-body li {
  margin-bottom: 4px;
  line-height: 1.38;
}

.direction-line {
  list-style: disc;
}

.direction-line-lead {
  margin-right: 5px;
}

.direction-chip-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
  vertical-align: middle;
}

.direction-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid #bdd4ef;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--blue-dark);
  font-size: 11.2px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.direction-chip:hover,
.direction-chip:focus {
  background: var(--blue-soft);
  border-color: #8dbbf0;
  outline: none;
}

.direction-chip:active {
  transform: translateY(1px);
}

.direction-chip-muted {
  border-color: #d7e2ef;
  background: #fff;
  color: #475569;
  cursor: default;
}

.direction-back-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 6px 8px;
  border: 1px solid #cfe0f5;
  border-radius: var(--radius);
  background: #f8fbff;
}

.direction-back-button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #bdd4ef;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 11.4px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.direction-back-button:hover,
.direction-back-button:focus {
  background: var(--blue-soft);
  border-color: #8dbbf0;
  outline: none;
}

.direction-back-label {
  min-width: 0;
  color: #475569;
  font-size: 11.4px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction-focus-target {
  border-left: 4px solid #f59e0b !important;
  border-radius: 7px;
  background: #fff7dc !important;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.22);
  padding: 5px 7px;
}

tr.direction-focus-target {
  display: table-row;
  border-left: 0 !important;
  box-shadow: none;
}

tr.direction-focus-target > td,
tr.direction-focus-target > th {
  background: #fff7dc !important;
  box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.22), inset 0 -1px 0 rgba(245, 158, 11, 0.22);
}

.section-body li.section-subheading-line {
  list-style: none;
  margin: 10px 0 3px -17px;
  padding: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.section-body li.section-subheading-line.lab-template-heading {
  border-left-color: transparent;
  background: transparent;
  color: var(--blue-dark);
}

.section-body li strong {
  color: var(--blue-dark);
  font-weight: 850;
}

.section-body li.section-table-line {
  list-style: none;
  margin: 9px 0 8px -17px;
}

.section-table-title {
  margin: 0 0 5px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.section-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.section-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 12px;
}

.section-table th,
.section-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #d7e6f8;
  vertical-align: top;
  text-align: left;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.section-table th {
  background: #eaf4ff;
  color: var(--blue-dark);
  font-weight: 850;
}

.section-table tr:last-child td {
  border-bottom: 0;
}

.section-body li.decision-flow-line {
  list-style: none;
  margin: 10px 0 10px -17px;
}

.decision-flow {
  padding: 8px;
  border: 1px solid #bfd8f6;
  border-radius: 8px;
  background: #f8fbff;
}

.decision-flow-title {
  margin: 0 0 7px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.decision-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.decision-step {
  border: 1px solid #c9ddf4;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  max-width: 100%;
}

.decision-step[open] {
  border-color: #9fc6ef;
  box-shadow: 0 4px 14px rgba(31, 99, 173, 0.08);
}

.decision-step summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 8px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.decision-step summary::-webkit-details-marker {
  display: none;
}

.decision-step summary::after {
  content: "+";
  margin-left: auto;
  width: 18px;
  height: 18px;
  border: 1px solid #b9d2f0;
  border-radius: 999px;
  color: #1f63ad;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  background: #f8fbff;
}

.decision-step[open] summary::after {
  content: "-";
}

.decision-step-number {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #1f63ad;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 850;
}

.decision-step-label {
  min-width: 0;
}

.decision-step-body {
  padding: 0 10px 9px 35px;
  color: #17324f;
  font-size: 12px;
  line-height: 1.38;
}

.decision-step-body p {
  margin: 5px 0;
}

.decision-step-next {
  margin-top: 7px;
  padding: 6px 7px;
  border-left: 3px solid #2d9b57;
  border-radius: 6px;
  background: #eef7ef;
  color: #123922;
  font-weight: 750;
}

.decision-step-alert .decision-step-number {
  background: #b42318;
}

.decision-step-alert .decision-step-next {
  border-left-color: #b42318;
  background: #fff1f1;
  color: #8a130c;
}

.decision-step-caution .decision-step-number {
  background: #b65f00;
}

.decision-step-caution .decision-step-next {
  border-left-color: #b65f00;
  background: #fff7e8;
  color: #6d3900;
}

.score-calculator-panel {
  position: fixed;
  right: max(18px, calc((100vw - 1260px) / 2 + 18px));
  bottom: 78px;
  z-index: 45;
  width: min(520px, calc(100vw - 32px));
  max-height: min(72vh, 640px);
  overflow: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid #bfd8f6;
  border-radius: var(--radius);
  background: #f8fbff;
  box-shadow: 0 16px 42px rgba(15, 61, 110, .18);
}

.score-calculator-inline {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 100%;
  max-height: none;
  overflow: visible;
  margin: 10px 0 8px;
  box-shadow: none;
  background: #f8fbff;
}

.score-calculator-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 12.2px;
  font-weight: 850;
}

.score-calculator-close {
  border: 1px solid #bfd5f0;
  border-radius: 6px;
  background: #fff;
  color: var(--blue-dark);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  cursor: pointer;
}

.score-calculator-close:hover {
  background: #eef6ff;
}

.score-calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 6px;
}

.score-calculator-field {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #334155;
  font-size: 10.8px;
  font-weight: 760;
}

.score-calculator-field input,
.score-calculator-field select {
  width: 100%;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid #bfd5f0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.score-calculator-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}

.score-calculator-submit {
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid #1f63ad;
  border-radius: 6px;
  background: #1f63ad;
  color: #fff;
  font: inherit;
  font-size: 11.4px;
  font-weight: 850;
  cursor: pointer;
}

.score-calculator-submit:hover {
  background: #184f8c;
}

.score-calculator-result {
  margin-top: 7px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d8e8f8;
  color: #26364a;
  font-size: 11.8px;
  line-height: 1.32;
}

.score-calculator-result strong {
  display: block;
  margin-bottom: 2px;
  color: #0f4d8f;
  font-size: 12.6px;
}

.score-calculator-result p {
  margin: 2px 0 0;
}

.clinical-route-panel {
  margin: 0;
  padding: 10px;
  border: 1px solid #cfe0f5;
  border-radius: var(--radius);
  background: #fbfdff;
}

.clinical-route-intro {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  color: #334155;
  font-size: 12.4px;
  line-height: 1.35;
}

.clinical-route-intro strong {
  color: var(--blue-dark);
  font-size: 13px;
}

.clinical-route-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
}

.clinical-route-field {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #334155;
  font-size: 11.2px;
  font-weight: 780;
}

.clinical-route-field input,
.clinical-route-field select,
.clinical-route-field textarea {
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #bfd5f0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 720;
}

.clinical-route-free-form {
  grid-template-columns: 1fr;
}

.clinical-route-text-field {
  grid-column: 1 / -1;
}

.clinical-route-drug-field {
  grid-column: 1 / -1;
}

.clinical-route-drug-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px;
  border: 1px solid #cfe1f5;
  border-radius: 8px;
  background: #f8fbff;
}

.clinical-route-drug-suggestions[hidden] {
  display: none;
}

.clinical-route-drug-suggestions button {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #b9d4f4;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font: inherit;
  font-size: 11.3px;
  font-weight: 780;
  cursor: pointer;
}

.clinical-route-drug-suggestions button:hover,
.clinical-route-drug-suggestions button.is-active {
  background: #e8f2ff;
  border-color: #75a7df;
}

.clinical-route-field textarea {
  min-height: 132px;
  line-height: 1.42;
  resize: vertical;
}

.clinical-route-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}

.clinical-route-result {
  margin-top: 10px;
}

.clinical-route-empty,
.clinical-route-result-card {
  padding: 9px 10px;
  border: 1px solid #d8e8f8;
  border-radius: 7px;
  background: #fff;
  color: #26364a;
  font-size: 12.2px;
  line-height: 1.38;
}

.clinical-route-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.clinical-route-title {
  display: block;
  color: #0f4d8f;
  font-size: 13.4px;
}

.clinical-route-type-badge {
  flex: 0 0 auto;
  max-width: 48%;
  padding: 3px 7px;
  border: 1px solid #b8d5f3;
  border-radius: 999px;
  background: #f4f9ff;
  color: #0f4d8f;
  font-size: 10.8px;
  font-weight: 820;
  line-height: 1.15;
  text-align: center;
}

.clinical-route-result-card.clinical-route-critical {
  border-color: #f2b8b5;
  background: #fffafa;
}

.clinical-route-result-card.clinical-route-critical .clinical-route-title {
  color: #9f1d1d;
}

.clinical-route-result-card.clinical-route-alarm .clinical-route-type-badge {
  border-color: #f1b4ae;
  background: #fff0ef;
  color: #9f1d1d;
}

.clinical-route-result-card.clinical-route-warning {
  border-color: #f3d58b;
  background: #fffdf6;
}

.clinical-route-result-card.clinical-route-warning .clinical-route-title {
  color: #8a4b0b;
}

.clinical-route-result-card.clinical-route-calculation .clinical-route-type-badge {
  border-color: #a7d8db;
  background: #f0fbfb;
  color: #0f766e;
}

.clinical-route-result-card.clinical-route-decision .clinical-route-type-badge {
  border-color: #c8b6ed;
  background: #f7f3ff;
  color: #5b3aa0;
}

.clinical-route-result-card.clinical-route-drug .clinical-route-type-badge {
  border-color: #b9d4f4;
  background: #f1f7ff;
  color: #1f5f9f;
}

.clinical-route-result-card.clinical-route-guide .clinical-route-type-badge {
  border-color: #d4dde9;
  background: #f8fafc;
  color: #475569;
}

.clinical-route-result-card p {
  margin: 3px 0 0;
}

.clinical-route-alert {
  margin-top: 7px !important;
  padding: 7px 9px;
  border-left: 3px solid #b42318;
  border-radius: 6px;
  background: #fff1f1;
  color: #8f1f1f;
  font-weight: 820;
}

.clinical-route-block {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #e0ecf8;
}

.clinical-route-block h4 {
  margin: 0 0 5px;
  color: var(--blue-dark);
  font-size: 12.4px;
}

.clinical-route-block ul {
  margin: 0;
  padding-left: 18px;
}

.clinical-route-block li {
  margin-bottom: 4px;
}

.clinical-route-compact ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-left: 0;
  list-style: none;
}

.clinical-route-compact li {
  margin: 0;
  padding: 2px 7px;
  border: 1px solid #d7e7f8;
  border-radius: 999px;
  background: #f8fbff;
  color: #334155;
  font-size: 11.2px;
}

.clinical-route-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.clinical-route-button {
  min-height: 24px;
}

.clinical-route-footnote {
  margin-top: 8px !important;
  color: #64748b;
  font-size: 11.4px;
}

.clinical-route-followup {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #e0ecf8;
}

.clinical-route-followup .clinical-route-field textarea {
  min-height: 58px;
}

.clinical-route-followup .clinical-route-actions {
  margin-top: 0;
}

.emergency-consult-card {
  margin-top: 8px;
  border-color: #c8dff7;
  background: #fbfdff;
}

.emergency-consult-card > summary {
  background: #edf6ff;
}

.emergency-consult-body {
  display: grid;
  gap: 9px;
}

.emergency-consult-form {
  grid-template-columns: 1fr;
}

.emergency-consult-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
}

.emergency-consult-grid .clinical-route-field textarea {
  min-height: 72px;
}

.emergency-consult-grid .clinical-route-field:first-child,
.emergency-consult-grid .clinical-route-field:nth-child(2),
.emergency-consult-grid .clinical-route-field:last-child {
  grid-column: 1 / -1;
}

.emergency-consult-result {
  background: #fff;
}

.emergency-consult-output {
  width: 100%;
  min-height: 270px;
  padding: 8px 9px;
  border: 1px solid #c5dcf6;
  border-radius: 7px;
  background: #fbfdff;
  color: #10243d;
  font: 720 12.2px/1.45 Inter, "Segoe UI", Arial, sans-serif;
  resize: vertical;
  white-space: pre-wrap;
}

.emergency-consult-actions {
  margin-top: 7px;
}

.score-visual {
  margin: 9px 0 4px;
  padding: 8px;
  border: 1px solid #cfe0f5;
  border-radius: var(--radius);
  background: #f8fbff;
}

.score-visual-title {
  margin-bottom: 7px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.prague-stage {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  gap: 10px;
  align-items: center;
}

.prague-tube {
  position: relative;
  height: 160px;
  border: 2px solid #9cc7ff;
  border-radius: 32px 32px 16px 16px;
  background: linear-gradient(180deg, #ffffff 0 20%, #f7fbff 20% 100%);
  overflow: hidden;
}

.prague-tube::before {
  content: "Özofagus";
  position: absolute;
  top: 6px;
  left: 10px;
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
}

.prague-column {
  position: absolute;
  bottom: 16px;
  background: rgba(245, 158, 11, .68);
  border: 1px solid rgba(180, 83, 9, .4);
}

.prague-c {
  left: 16%;
  width: 68%;
  height: 42px;
  border-radius: 18px 18px 5px 5px;
}

.prague-m {
  left: 58%;
  width: 17%;
  height: 95px;
  border-radius: 999px 999px 4px 4px;
}

.prague-line {
  position: absolute;
  left: 8px;
  right: 8px;
  border-top: 1px dashed #1f5ea8;
}

.prague-line span {
  position: absolute;
  right: 0;
  top: -10px;
  padding: 1px 4px;
  border-radius: 5px;
  background: #fff;
  color: #123a68;
  font-size: 9.5px;
  font-weight: 750;
}

.prague-m-line { bottom: 111px; }
.prague-c-line { bottom: 58px; }
.prague-gej-line {
  bottom: 16px;
  border-top-color: #9b2c2c;
}

.prague-gej-line span {
  color: #9b2c2c;
}

.prague-note {
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.hill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.hill-panel {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 7px 5px;
  border: 1px solid #d8e3f2;
  border-radius: 7px;
  background: #fff;
  text-align: center;
  color: #334155;
  font-size: 10.5px;
  line-height: 1.2;
}

.hill-panel strong {
  color: var(--blue-dark);
  font-size: 11px;
}

.hill-shape {
  position: relative;
  width: 56px;
  height: 48px;
  border: 2px solid #9cc7ff;
  border-radius: 52% 52% 38% 38%;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
}

.hill-lumen {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #123a68;
}

.hill-fold {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 12px;
  height: 7px;
  border-radius: 999px;
  background: #f59e0b;
}

.hill-grade-2 .hill-fold {
  left: 12px;
  right: 12px;
  height: 5px;
}

.hill-grade-3 .hill-fold {
  left: 9px;
  right: 9px;
  height: 3px;
  opacity: .78;
}

.hill-grade-3 .hill-lumen {
  width: 16px;
  height: 13px;
}

.hill-grade-4 .hill-fold {
  left: 20px;
  right: 20px;
  height: 3px;
  opacity: .45;
}

.hill-grade-4 .hill-lumen {
  width: 24px;
  height: 16px;
}

.section-line-lead {
  display: inline;
  max-width: 100%;
  margin: 0 4px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--blue-dark);
  font-size: 1em;
  font-weight: 650;
  line-height: inherit;
  vertical-align: baseline;
}

.warning-line .section-line-lead {
  background: transparent;
  border-color: transparent;
  color: var(--danger);
}

.warning-line {
  list-style: none;
  margin: 7px 0 7px -17px;
  padding: 5px 8px;
  border-left: 3px solid var(--danger);
  border-radius: 6px;
  background: #fff5f5;
  color: var(--danger);
  font-weight: 650;
}

.guidance-line {
  list-style: none;
  margin: 7px 0 7px -17px;
  padding: 5px 8px;
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  background: #f2f7ff;
  color: var(--blue-dark);
  font-weight: 650;
}

button.abbr-term {
  display: inline;
  position: relative;
  min-height: 0;
  margin: 0 1px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px dotted currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  vertical-align: baseline;
  cursor: pointer;
}

button.abbr-term:hover,
button.abbr-term:focus-visible {
  background: #eef6ff;
  color: var(--blue-dark);
  border-bottom-color: transparent;
}

.abbr-popover {
  display: none;
}

.abbr-floating-popover {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(340px, 72vw);
  padding: 5px 7px;
  border: 1px solid #cfe0f5;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .14);
  color: #334155;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: opacity .08s ease;
}

.abbr-floating-popover.visible,
.abbr-floating-popover.measuring {
  opacity: 1;
  visibility: visible;
}

.abbr-floating-popover.measuring {
  pointer-events: none;
}

.med-term {
  display: inline;
  margin: 0 1px;
  padding: 0 3px;
  border-bottom: 1px solid #abd8c8;
  border-radius: 5px;
  background: #f7fcfa;
  color: #087263;
  font-weight: 700;
  vertical-align: baseline;
}

.section-source,
.section-abbreviations {
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #cfe0f5;
  border-radius: var(--radius);
  background: #f8fbff;
}

.section-abbreviations {
  background: #f8fbff;
  border-color: #d7e7fb;
}

.section-abbreviations-focus {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.section-source h4,
.section-abbreviations h4 {
  margin: 0 0 5px;
  color: var(--blue-dark);
  font-size: 12px;
}

.section-source-scope {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 5px;
  padding: 3px 7px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
}

.section-source-lead {
  margin: 0 0 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.section-source-list-title {
  margin: 0 0 3px;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0;
}

.section-source ul,
.section-abbreviations ul {
  margin-top: 0;
  padding-left: 16px;
}

.section-abbreviations ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.section-source li,
.section-abbreviations li {
  font-size: 12px;
}

.section-source li {
  color: #0f172a;
  line-height: 1.38;
}

.section-source-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px solid #dbeafe;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.35;
}

.section-source-library-button {
  min-height: 26px;
  padding: 3px 8px;
  border-color: #b9d4f4;
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 11.3px;
  font-weight: 800;
}

.section-source-library-button:hover {
  background: #e8f2ff;
}

.standard-card-source {
  padding: 0;
  overflow: hidden;
}

.standard-card-source > summary {
  cursor: pointer;
  list-style: none;
  padding: 7px 9px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.standard-card-source > summary::-webkit-details-marker {
  display: none;
}

.standard-card-source > summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-weight: 900;
}

.standard-card-source[open] > summary {
  border-bottom: 1px solid #dbeafe;
  background: #eff6ff;
}

.standard-card-source[open] > summary::after {
  content: "-";
}

.section-source-inner {
  padding: 7px 9px;
}

.source-library-return {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #cfe0f5;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #f8fbff;
}

.source-library-return-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.source-library-return-text small {
  color: #5b6b82;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.source-library-return-text strong {
  overflow: hidden;
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-library-return-button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 10px;
  border-color: #b9d4f4;
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 11.5px;
  font-weight: 850;
}

.source-library-return-button:hover {
  background: #e8f2ff;
}

@media (max-width: 640px) {
  .source-library-return {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-library-return-text strong {
    white-space: normal;
  }
}

.section-abbreviations li {
  flex: 1 1 240px;
  max-width: 100%;
  line-height: 1.35;
}

.section-abbreviations strong {
  color: var(--blue-dark);
}

.print-section-target {
  display: none;
}

.emergency-panel,
.roadmap,
.roadmap-panel {
  margin-top: 8px;
  padding: 9px;
}

.roadmap,
.roadmap-panel {
  display: none;
}

.compact-field {
  width: min(300px, 100%);
  margin-bottom: 0;
}

.compact-content {
  min-height: 190px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.roadmap article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px;
  background: #fbfdff;
}

.roadmap h3,
.roadmap-panel h3 {
  margin: 0 0 4px;
  font-size: 12.5px;
  color: var(--blue-dark);
}

.roadmap p,
.roadmap-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 920px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace.disease-entry {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .workspace.disease-entry .sidebar,
  .workspace.disease-entry .reader {
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .sidebar {
    position: static;
  }

  .diagnosis-list {
    max-height: 230px;
  }

  .tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .entry-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: static;
    max-height: none;
    overflow: visible;
  }

  .reader-toolbar {
    position: static;
    top: auto;
    z-index: auto;
  }

  .score-calculator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emergency-consult-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 10px;
    gap: 8px;
  }

  .app-brand {
    align-items: center;
    gap: 9px;
  }

  .app-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .app-header h1 {
    font-size: 20px;
  }

  .app-header p {
    font-size: 12px;
  }

  .app-shell,
  .shell {
    width: min(100% - 16px, 1260px);
    margin-top: 8px;
  }

  .reader-toolbar {
    flex-direction: column;
    gap: 5px;
  }

  .workspace.card-actions-entry .reader-toolbar h2,
  .workspace.disease-entry .reader-toolbar h2 {
    grid-template-columns: 1fr;
    font-size: 16px;
  }

  .workspace.emergency-entry.card-actions-entry .reader-toolbar h2 {
    grid-template-columns: 1fr;
    font-size: 17px;
  }

  .emergency-inline-select {
    width: 100%;
  }

  .searchable-picker-control,
  .searchable-picker-input,
  .searchable-picker-option {
    min-height: 44px;
  }

  .searchable-picker-panel {
    max-height: min(64vh, 520px);
  }

  .searchable-picker-list {
    max-height: min(52vh, 420px);
  }

  .toolbar-actions,
  .toolbar-actions button {
    width: auto;
  }

  .toolbar-actions {
    align-self: stretch;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content {
    min-height: 320px;
    padding: 7px;
  }

  .entry-card {
    min-height: 48px;
    padding: 7px 10px;
  }

  .entry-card span {
    font-size: 11.8px;
  }

  .entry-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .diagnosis-item,
  .section-card summary,
  button {
    font-size: 11.8px;
  }

  .section-actions {
    gap: 2px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .section-action {
    min-height: 21px;
    padding: 2px 5px;
    font-size: 10px;
  }

  .score-calculator-grid {
    grid-template-columns: 1fr;
  }

  .clinical-route-form {
    grid-template-columns: 1fr;
  }

  .clinical-route-actions {
    justify-content: stretch;
  }

  .clinical-route-actions button {
    flex: 1;
  }

  .section-body {
    font-size: 12.4px;
  }

  .section-body li.section-table-line {
    margin-left: -14px;
    margin-right: 0;
  }

  .section-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .section-table {
    display: block;
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }

  .section-table thead {
    display: none;
  }

  .section-table tbody,
  .section-table tr,
  .section-table td {
    display: block;
    width: 100%;
  }

  .section-table tr {
    margin: 0 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
  }

  .section-table td {
    padding: 6px 8px 7px;
    border-bottom: 1px solid #e3eefb;
    font-size: 12.1px;
  }

  .section-table td:last-child {
    border-bottom: 0;
  }

  .section-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--blue-dark);
    font-size: 10.4px;
    font-weight: 850;
    line-height: 1.2;
  }

  .prague-stage,
  .hill-grid {
    grid-template-columns: 1fr;
  }

  .prague-tube {
    max-width: 210px;
    margin: 0 auto;
  }

  .hill-panel {
    grid-template-columns: 64px 1fr;
    justify-items: start;
    text-align: left;
  }

  .hill-panel span {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .annotation-toggle {
    right: 12px;
    bottom: 12px;
  }

  .annotation-toolbar {
    left: 8px;
    right: 8px;
    bottom: 52px;
    max-width: none;
    flex-wrap: wrap;
    justify-content: center;
    transform: none;
  }
}

@media print {
  .app-header,
  .notice,
  .notice-panel,
  .entry-panel,
  .sidebar,
  .tabs,
  .toolbar-actions,
  .emergency-panel,
  .roadmap,
  .roadmap-panel,
  .annotation-toggle,
  .annotation-layer,
  .annotation-toolbar {
    display: none !important;
  }

  .app-shell,
  .shell {
    width: 100%;
    margin: 0;
  }

  .workspace {
    display: block;
  }

  .reader,
  .content,
  .section-card {
    border: 0;
    padding: 0;
  }

  body.section-print-mode .shell {
    display: none !important;
  }

  body.section-print-mode .print-section-target {
    display: block !important;
    padding: 0;
    color: #000;
    font-family: Arial, sans-serif;
  }

  body.section-print-mode .print-section-target h1 {
    margin: 0 0 8px;
    font-size: 18px;
  }

  body.section-print-mode .print-section-target h2 {
    margin: 0 0 10px;
    font-size: 15px;
  }

  body.section-print-mode .print-section-target li {
    margin-bottom: 6px;
    line-height: 1.4;
  }
}


/* ===================================================================
   RESTORED 2026-07-15 — Topluluk (.cm-*) + profil avatar (.prof-*) +
   per-disease/category icons (.dx-ic/.ritem-ic/.cat-ic) + Pro badge.
   These lived in styles.css and were dropped when the ee11e5f content
   update overwrote it with the raw upstream stylesheet, which is why
   Rehber icons ballooned and Topluluk/Profil looked broken. Re-appended
   verbatim from commit d17fec0. Tokens used resolve in all 3 themes
   (--brick/--mustard-lt/--panel2/--ink/--teal in theme files; --c-* now
   restored to :root above; --accent-tx is only a var() fallback).
   =================================================================== */
/* Pro plan badge (profile status card) — premium gradient sparkle, theme-independent. */
.pro-badge{
  width:48px; height:48px; flex:0 0 auto;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  background:linear-gradient(140deg,#5b9bf3 0%,#6366f1 52%,#8b5cf6 100%);
  box-shadow:0 8px 20px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.32);
  animation:proGlow 3.2s ease-in-out infinite;
}
.pro-badge svg{ width:28px; height:28px; filter:drop-shadow(0 1px 1px rgba(0,0,0,.22)); }
@keyframes proGlow{
  0%,100%{ box-shadow:0 8px 20px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.32); }
  50%{ box-shadow:0 10px 26px rgba(124,92,246,.62), inset 0 1px 0 rgba(255,255,255,.4); }
}
@media (prefers-reduced-motion:reduce){ .pro-badge{ animation:none; } }

/* ============ TOPLULUK (community feed) ============ */
.cm-wrap{ max-width:620px; margin:0 auto; padding:14px 0 40px; }
.cm-av{ width:40px;height:40px;border-radius:50%;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;background:var(--mustard-lt,var(--panel));color:var(--brick);font-weight:800;font-size:14px;overflow:hidden;border:1.5px solid var(--line); }
.cm-av img{ width:100%;height:100%;object-fit:cover;display:block; }
.cm-av-sm{ width:34px;height:34px;font-size:12.5px; }
.cm-av-xs{ width:28px;height:28px;font-size:11px; }
.cm-av-lg{ width:66px;height:66px;font-size:22px; }
/* composer */
.cm-composer{ background:var(--panel);border:1.5px solid var(--line);border-radius:14px;padding:13px 14px;margin:0 0 16px;box-shadow:0 1px 3px rgba(0,0,0,.05); }
.cm-comp-row{ display:flex;gap:11px;align-items:flex-start; }
.cm-comp-row textarea{ flex:1;border:none;background:transparent;resize:none;font-family:inherit;font-size:14.5px;color:var(--ink);line-height:1.5;padding:6px 0;min-height:42px;outline:none; }
.cm-comp-preview{ position:relative;margin:8px 0 0;display:inline-block; }
.cm-comp-preview img{ max-width:100%;max-height:280px;border-radius:10px;border:1px solid var(--line);display:block; }
.cm-prev-x{ position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:50%;border:none;background:rgba(0,0,0,.62);color:#fff;font-size:17px;cursor:pointer;line-height:1; }
.cm-warn{ display:flex;align-items:flex-start;gap:7px;font-size:11.5px;color:var(--muted);margin:9px 0 0;line-height:1.4; }
.cm-warn svg{ width:15px;height:15px;flex:0 0 auto;color:var(--brick);margin-top:1px; }
.cm-comp-actions{ display:flex;align-items:center;justify-content:space-between;margin-top:11px;border-top:1px solid var(--line);padding-top:11px; }
.cm-img-btn{ display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--teal,var(--accent-tx));cursor:pointer; }
.cm-img-btn svg{ width:18px;height:18px; }
/* post */
.cm-post{ background:var(--panel);border:1.5px solid var(--line);border-radius:14px;padding:13px 14px;margin:0 0 13px;box-shadow:0 1px 3px rgba(0,0,0,.05); }
.cm-post-head{ display:flex;align-items:center;justify-content:space-between;gap:8px; }
.cm-author{ display:flex;align-items:center;gap:10px;background:none;border:none;cursor:pointer;text-align:left;padding:0;font-family:inherit; }
.cm-author-meta{ display:flex;flex-direction:column;line-height:1.25; }
.cm-author-meta b{ font-size:14px;color:var(--ink); }
.cm-author-meta small{ font-size:11.5px;color:var(--muted); }
.cm-icon-btn{ background:none;border:none;cursor:pointer;color:var(--muted);display:inline-flex;align-items:center;gap:5px;padding:6px;border-radius:8px;font-family:inherit;font-size:13px; }
.cm-icon-btn:hover{ background:var(--panel2,rgba(127,127,127,.08)); }
.cm-icon-btn svg{ width:20px;height:20px; }
.cm-menu-wrap{ position:relative; }
.cm-menu{ position:absolute;right:0;top:34px;z-index:5;background:var(--panel);border:1.5px solid var(--line);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.16);overflow:hidden;min-width:130px; }
.cm-menu button{ display:block;width:100%;text-align:left;background:none;border:none;padding:9px 14px;font-family:inherit;font-size:13px;color:var(--ink);cursor:pointer; }
.cm-menu button:hover{ background:var(--panel2,rgba(127,127,127,.08)); }
.cm-menu button.danger{ color:var(--brick); }
.cm-body{ font-size:14.5px;line-height:1.55;color:var(--ink);margin:10px 0 0;white-space:pre-wrap;word-break:break-word; }
.cm-img{ margin:11px 0 0; }
.cm-img img{ width:100%;border-radius:11px;border:1px solid var(--line);display:block;background:var(--panel2,rgba(127,127,127,.06));min-height:40px; }
.cm-actions{ display:flex;align-items:center;gap:6px;margin:11px 0 0;border-top:1px solid var(--line);padding-top:9px; }
.cm-like{ background:none;border:none;cursor:pointer;color:var(--muted);display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:8px;font-family:inherit;font-size:13px;font-weight:600; }
.cm-like svg{ width:19px;height:19px; }
.cm-like.on{ color:var(--brick); }
.cm-like.on svg{ fill:var(--brick);stroke:var(--brick); }
.cm-like:hover,.cm-cbtn:hover{ background:var(--panel2,rgba(127,127,127,.08)); }
.cm-n{ font-size:12.5px; }
/* comments */
.cm-comments{ margin:10px 0 0;border-top:1px solid var(--line);padding-top:11px; }
.cm-cmt{ display:flex;gap:9px;margin:0 0 11px; }
.cm-cmt-main{ flex:1; }
.cm-cmt-meta{ margin:0;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px;flex-wrap:wrap; }
.cm-cmt-meta .cm-author b{ font-size:12.5px; }
.cm-cmt-body{ margin:2px 0 0;font-size:13.5px;line-height:1.45;color:var(--ink);white-space:pre-wrap;word-break:break-word; }
.cm-cmt-del{ background:none;border:none;color:var(--brick);font-size:11px;cursor:pointer;font-family:inherit;padding:0; }
.cm-cmt-form{ display:flex;gap:9px;align-items:center; }
.cm-cmt-input{ flex:1;border:1.5px solid var(--line);border-radius:20px;padding:8px 14px;font-family:inherit;font-size:13.5px;background:var(--panel2,var(--panel));color:var(--ink);outline:none; }
.cm-edit textarea{ width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px;font-family:inherit;font-size:14px;background:var(--panel2,var(--panel));color:var(--ink);box-sizing:border-box;resize:vertical; }
.cm-edit-actions{ display:flex;gap:8px;justify-content:flex-end;margin-top:8px; }
/* gates / empty / loading */
.cm-gate{ text-align:center;background:var(--panel);border:1.5px solid var(--line);border-radius:16px;padding:34px 22px;margin:18px 0; }
.cm-gate-ic{ display:inline-flex;width:60px;height:60px;border-radius:50%;align-items:center;justify-content:center;background:var(--mustard-lt,var(--panel2));color:var(--brick);margin:0 0 14px; }
.cm-gate-ic svg{ width:30px;height:30px; }
.cm-gate h2{ margin:0 0 8px;font-size:20px; }
.cm-gate p{ margin:0 auto 16px;font-size:14px;color:var(--muted);max-width:380px;line-height:1.5; }
.cm-gate-ban .cm-gate-ic{ background:rgba(168,67,47,.12); }
.cm-ban-note{ font-size:12.5px !important;color:var(--muted) !important; }
.cm-empty{ text-align:center;color:var(--muted);padding:34px 16px;font-size:14px;line-height:1.5; }
.cm-empty span{ display:inline-flex;color:var(--line);margin:0 0 6px; }
.cm-empty span svg{ width:40px;height:40px; }
.cm-loading{ text-align:center;color:var(--muted);padding:24px;font-size:13.5px; }
/* user profile */
.cm-back{ display:inline-flex;align-items:center;gap:5px;background:none;border:none;color:var(--muted);font-family:inherit;font-size:13.5px;font-weight:700;cursor:pointer;padding:6px 0;margin:0 0 8px; }
.cm-back svg{ width:18px;height:18px; }
.cm-prof-head{ display:flex;align-items:center;gap:15px;background:var(--panel);border:1.5px solid var(--line);border-radius:14px;padding:18px;margin:0 0 16px; }
.cm-prof-head h2{ margin:0;font-size:19px; }
.cm-prof-head p{ margin:2px 0 0;color:var(--muted);font-size:13.5px; }
.cm-prof-head small{ color:var(--muted);font-size:12px; }
/* profile editor / onboarding */
.cm-editor .cns-modal-body{ text-align:center; }
.cm-ed-sub{ font-size:13px;color:var(--muted);margin:0 0 16px;line-height:1.5; }
.cm-ed-avatar{ display:inline-block;position:relative;cursor:pointer;margin:0 0 16px; }
.cm-ed-cam{ position:absolute;right:-2px;bottom:-2px;width:28px;height:28px;border-radius:50%;background:var(--brick);color:#fff;display:flex;align-items:center;justify-content:center;border:2.5px solid var(--panel); }
.cm-ed-cam svg{ width:15px;height:15px; }
.cm-editor .cns-field-row{ text-align:left; }
.cm-ed-consent{ display:flex;gap:10px;align-items:flex-start;text-align:left;font-size:12px;line-height:1.5;color:var(--muted);background:var(--panel2,rgba(127,127,127,.06));border:1px solid var(--line);border-radius:10px;padding:11px 12px;margin:4px 0 6px;cursor:pointer;text-transform:none;letter-spacing:normal;font-weight:400; }
.cm-ed-consent span{ text-transform:none; }
.cm-ed-consent input{ margin-top:2px;flex:0 0 auto;width:17px;height:17px;accent-color:var(--brick); }
.cm-ed-skip{ display:block;width:100%;background:none;border:none;color:var(--muted);font-family:inherit;font-size:13px;cursor:pointer;margin-top:10px;text-decoration:underline; }
/* profile card avatar (photo) + edit */
.prof-avatar.has-img{ padding:0;overflow:hidden; }
.prof-avatar.has-img img{ width:100%;height:100%;object-fit:cover;display:block; }
.prof-card{ position:relative; }
.prof-edit{ position:absolute;top:12px;right:12px;background:var(--panel2,rgba(127,127,127,.1));border:1px solid var(--line);border-radius:8px;color:var(--ink);font-family:inherit;font-size:12px;font-weight:700;padding:5px 11px;cursor:pointer; }

/* PDF attachment: composer chip + post card + in-app viewer */
.cm-comp-attach{ display:flex; gap:14px; align-items:center; }
.cm-pdf-chip{ display:flex; align-items:center; gap:8px; background:var(--panel2,rgba(127,127,127,.06)); border:1px solid var(--line); border-radius:10px; padding:8px 10px; margin:8px 0 0; font-size:13px; color:var(--ink); }
.cm-pdf-chip svg{ width:18px; height:18px; color:var(--brick); flex:0 0 auto; }
.cm-pdf-chip-name{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cm-pdf{ display:flex; align-items:center; gap:11px; width:100%; text-align:left; margin:11px 0 0; padding:11px 13px; background:var(--panel2,rgba(127,127,127,.05)); border:1px solid var(--line); border-radius:11px; cursor:pointer; font-family:inherit; color:var(--ink); }
.cm-pdf:hover{ border-color:var(--brick); }
.cm-pdf > svg:first-child{ width:30px; height:30px; color:var(--brick); flex:0 0 auto; }
.cm-pdf-meta{ flex:1; display:flex; flex-direction:column; line-height:1.3; overflow:hidden; }
.cm-pdf-meta b{ font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cm-pdf-meta small{ font-size:11.5px; color:var(--muted); }
.cm-pdf > svg:last-child{ width:20px; height:20px; color:var(--muted); flex:0 0 auto; }
.cm-pdf-overlay{ position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.7); display:flex; align-items:center; justify-content:center; padding:16px; }
.cm-pdf-modal{ background:var(--panel); border:1px solid var(--line); border-radius:14px; width:min(820px,100%); max-height:92vh; display:flex; flex-direction:column; overflow:hidden; }
.cm-pdf-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 15px; border-bottom:1px solid var(--line); }
.cm-pdf-title{ display:flex; align-items:center; gap:9px; font-size:14px; overflow:hidden; }
.cm-pdf-title svg{ width:20px; height:20px; color:var(--brick); flex:0 0 auto; }
.cm-pdf-title b{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cm-pdf-close{ background:none; border:none; font-size:26px; line-height:1; color:var(--muted); cursor:pointer; padding:0 4px; flex:0 0 auto; }
.cm-pdf-body{ overflow:auto; padding:12px; background:var(--bg,var(--panel2)); display:flex; flex-direction:column; align-items:center; gap:12px; }
.cm-pdf-page{ max-width:100%; box-shadow:0 2px 10px rgba(0,0,0,.18); border-radius:3px; background:#fff; }

/* free-user teaser (3 read-only posts) + lock card */
.cm-teaser-head{ margin:4px 0 14px; }
.cm-teaser-head h2{ margin:0 0 3px; font-size:20px; }
.cm-teaser-head p{ margin:0; font-size:13.5px; color:var(--muted); }
.cm-author-ro{ cursor:default; }
.cm-actions-ro .cm-like, .cm-actions-ro .cm-icon-btn{ cursor:default; }
.cm-actions-ro .cm-like svg{ fill:none; }
.cm-teaser-atts{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:10px 0 0; font-size:12px; color:var(--muted); }
.cm-teaser-att{ display:inline-flex; align-items:center; gap:5px; background:var(--panel2,rgba(127,127,127,.06)); border:1px solid var(--line); border-radius:8px; padding:4px 8px; }
.cm-teaser-att svg{ width:14px; height:14px; color:var(--brick); }
.cm-teaser-atts i{ font-style:normal; }
.cm-lockcard{ text-align:center; background:var(--panel); border:1.5px solid var(--line); border-radius:16px; padding:30px 22px; margin:6px 0 0; }
.cm-lock-ic{ display:inline-flex; width:54px; height:54px; border-radius:50%; align-items:center; justify-content:center; background:var(--mustard-lt,var(--panel2)); color:var(--brick); margin:0 0 12px; }
.cm-lock-ic svg{ width:26px; height:26px; }
.cm-lockcard h3{ margin:0 0 7px; font-size:18px; }
.cm-lockcard p{ margin:0 auto 16px; font-size:13.5px; color:var(--muted); max-width:330px; line-height:1.5; }

/* per-disease + per-category markers (cns-icons.js) — SVG (theme-aware accent) or emoji */
.ritem-ic{ display:inline-flex; align-items:center; justify-content:center; width:1.5em; margin-right:3px; font-size:13.5px; line-height:1; vertical-align:-3px; }
.cat-ic{ display:inline-flex; align-items:center; margin-right:4px; font-size:12px; vertical-align:-2px; }
.dx-ic{ width:16px; height:16px; flex:0 0 auto; color:var(--blue); }
.cat-ic .dx-ic{ width:13px; height:13px; }
#rehberTitle .dx-ic{ width:20px; height:20px; }
/* per-category icon colors (override the default --blue; placed after .dx-ic so they win) */
.dx-ic.c-acil{color:var(--c-acil)} .dx-ic.c-ust{color:var(--c-ust)} .dx-ic.c-alt{color:var(--c-alt)}
.dx-ic.c-hep{color:var(--c-hep)} .dx-ic.c-pankreo{color:var(--c-pankreo)} .dx-ic.c-fonk{color:var(--c-fonk)}
.dx-ic.c-genel{color:var(--c-genel)} .dx-ic.c-enf{color:var(--c-enf)} .dx-ic.c-onk{color:var(--c-onk)}
.dx-ic.c-lab{color:var(--c-lab)} .dx-ic.c-img{color:var(--c-img)} .dx-ic.c-drug{color:var(--c-drug)}
.dx-ic.c-screen{color:var(--c-screen)} .dx-ic.c-score{color:var(--c-score)} .dx-ic.c-symptom{color:var(--c-symptom)}

/* ===== RESTORED 2026-07-15 (also dropped by ee11e5f) — reader-head module
   picker layout + dynamic-symptom density tuning + locked paid-module CTA.
   All token-based (correct in all 3 themes). ===== */
/* Reader head with a module picker: override the 2-column actions grid and stack the
   short label above the full-width picker, so labels like "Laboratuvar başlığı" stay on
   one line (not squeezed into a tiny grid column / character-wrapped) in narrow readers. */
#diagnosisTitle:has(.searchable-module-picker) {
  display: block;
}
#diagnosisTitle:has(.searchable-module-picker) .module-title-text {
  display: block;
  width: auto;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
  margin-bottom: 6px;
}
#diagnosisTitle:has(.searchable-module-picker) .searchable-module-picker {
  width: 100%;
}

/* Dynamic data-entry cards — density tuning (theme-agnostic).
   Tightens vertical rhythm so a fully-triggered card scrolls less, without shrinking
   text or hiding any clinical content. Beats the engine's injected inline <style>. */
.dynamic-symptom-grid,
.dynamic-symptom-findings,
.dynamic-symptom-chips,
.dynamic-symptom-principles { margin: 6px 0 !important; }
.dynamic-symptom-findings,
.dynamic-symptom-chips { gap: 5px !important; }
.dynamic-symptom-program,
.dynamic-symptom-alert { margin: 7px 0 !important; }
.dynamic-symptom-scenarios { gap: 6px !important; }
.dynamic-symptom-section-title { margin: 10px 0 5px !important; }

/* Locked paid dynamic module (non-entitled): hide the residual recommendation banner,
   show an upgrade CTA. Token-based → correct in all three themes automatically. */
.cns-dyn-locked .dynamic-symptom-program { display: none !important; }
.cns-dyn-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--blue-soft);
}
.cns-dyn-lock-ic { color: var(--blue); flex: 0 0 auto; display: flex; }
.cns-dyn-lock-tx { flex: 1 1 220px; min-width: 0; }
.cns-dyn-lock-tx b { display: block; color: var(--blue-dark); font-size: 13px; }
.cns-dyn-lock-tx p { margin: 3px 0 0; color: var(--text); font-size: 12px; line-height: 1.45; opacity: .82; }
.cns-dyn-lock .cns-btn { flex: 0 0 auto; }
