.ct-page {
  max-width: 1200px;
}

.ct-title-art {
  width: 326px;
  max-width: 100%;
  justify-self: end;
  pointer-events: none;
}

.ct-title-art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ct-review-tag {
  padding: 3px 10px;
  border: 1px solid var(--warn-line);
  border-radius:12px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size:12px;
  font-weight: 600;
  white-space: nowrap;
}

.ct-tool-form {
  margin-bottom: 24px;
}

.ct-field-wrap {
  position: relative;
  min-width: 0;
}

.ct-source-badge {
  display: block;
  min-height: 15px;
  margin-top: 2px;
  color: var(--blue);
  font-size:12px;
  line-height: 1.5;
}

.ct-source-badge:empty {
  min-height: 0;
}

.ct-advanced {
  padding-top: 17px;
  margin-top: 18px;
}

.ct-advanced .bg-group {
  padding-top: 17px;
}

.ct-advanced .bg-confirm {
  margin: 10px 4px;
}

.ct-memory-note {
  align-self: center;
  color: var(--muted);
  font-size:13px;
}

.ct-critical {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  border-left-color: var(--danger);
}

.ct-critical .bg-diagnosis-label {
  color: var(--danger);
}

.bg-diagnosis.is-review {
  border-left-color: var(--warn);
}

.bg-diagnosis.is-review .bg-diagnosis-label {
  color: var(--warn);
}

.ct-result-block,
.ct-monitor,
.ct-notes {
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

.ct-result-block h3,
.ct-monitor h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size:15px;
  font-weight: 650;
}

.ct-recipe {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ct-recipe;
}

.ct-recipe li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius:8px;
  background: var(--surface);
  counter-increment: ct-recipe;
}

.ct-recipe li::before {
  content: counter(ct-recipe);
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius:6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--num);
  font-size:14px;
  font-weight: 700;
}

.ct-recipe > li:only-child::before{content:none}

.ct-recipe > li:only-child {
  display: block;
}

.ct-recipe strong {
  color: var(--ink);
  font-size:13px;
  line-height: 1.6;
}

.ct-recipe p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-family: var(--num);
  font-size:13px;
  line-height: 1.75;
}

.ct-linked {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--warn-line);
  border-left: 3px solid var(--warn);
  border-radius:8px;
  background: var(--warn-bg);
}

.ct-linked h3 {
  color: var(--warn);
}

.ct-linked ul {
  margin: 0;
  padding-left: 19px;
}

.ct-linked li {
  margin: 6px 0;
  color: var(--warn);
  font-size:13px;
  line-height: 1.75;
}

.ct-linked a {
  color: var(--blue);
  text-decoration: underline;
}

.ct-monitor p,
.ct-notes p {
  margin: 5px 0;
  color: var(--ink-2);
  font-size:13px;
  line-height: 1.8;
}

.ct-step-note {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size:13px;
  line-height: 1.65;
}

.ct-calculation {
  margin-bottom: 16px;
}

.ct-calculation h5 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size:13px;
}

.ct-calculation .bg-process-line {
  margin: 2px 0;
}

.ct-calculation .bg-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  margin: 8px 0 0;
  padding: 9px 12px;
  border-left-color: var(--blue);
  color: var(--ink);
  font-size:18px;
  font-weight: 650;
  line-height: 1.45;
}

.ct-calculation .bg-formula strong {
  display: inline;
  margin: 0;
}

.ct-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.ct-copy-row [role="status"] {
  color: var(--muted);
  font-size:12px;
  line-height: 1.6;
}

.ct-learning {
  display: grid;
  gap: 12px;
}

.ct-disclosure {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius:12px;
  background: var(--surface);
}

.ct-disclosure > summary {
  color: var(--ink-2);
  font-size:13px;
  font-weight: 650;
  cursor: pointer;
}

.ct-disclosure > p,
.ct-lesson p {
  color: var(--muted);
  font-size:12px;
  line-height: 1.85;
}

.ct-disclosure ul {
  padding-left: 19px;
}

.ct-disclosure li {
  margin: 7px 0;
  font-size:12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ct-disclosure a {
  color: var(--blue);
}

.ct-lesson {
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

.ct-lesson > summary {
  color: var(--ink-2);
  font-size:12px;
  font-weight: 600;
  cursor: pointer;
}

.ct-blood-entry {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 150ms;
}

.ct-blood-entry:hover {
  border-color: var(--blue);
}

.ct-blood-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius:var(--r-md);
  background: var(--blue-soft);
  color: var(--blue);
}

.ct-blood-icon svg {
  width: 42px;
  height: 42px;
}

.ct-blood-entry strong {
  display: block;
  font-size:20px;
  line-height: 1.4;
}

.ct-blood-entry p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size:14px;
  line-height: 1.7;
}

.ct-blood-entry .button {
  display: inline-flex;
}

.ct-hub-group {
  margin: 32px 0;
}

.ct-hub-group .section-heading {
  margin: 0 0 14px;
}

.ct-hub-group .tool-grid {
  gap: 12px;
}

.ct-tool-card {
  align-items: flex-start;
  padding: 18px 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius:12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 150ms;
}

.ct-tool-card:hover {
  border-color: var(--blue);
}

.ct-tool-card .tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--num);
  font-size:15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.ct-tool-card .tool-icon-arrow {
  font-family: var(--sans);
  font-weight: 700;
}

.ct-tool-card h3 {
  line-height: 1.45;
}

.ct-tool-card p {
  line-height: 1.6;
}

.ct-tool-card small {
  display: inline-block;
  margin-top: 10px;
  padding: 1px 8px;
  border: 1px solid var(--line-soft);
  border-radius:var(--r-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--num);
  font-size:12px;
  line-height: 1.7;
}

.ct-drug-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius:12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 150ms;
}

.ct-drug-entry:hover {
  border-color: var(--blue);
}

.ct-drug-entry strong,
.ct-drug-entry small {
  display: block;
}

.ct-drug-entry strong {
  font-size:15px;
}

.ct-drug-entry small {
  margin-top: 4px;
  color: var(--muted);
  font-size:13px;
}

.ct-embedded {
  width: 100%;
}

.ct-embedded-head {
  margin-bottom: 15px;
}

.ct-embedded-head h2 {
  color: var(--ink);
  font-size:20px;
}

.ct-embedded .bg-layout {
  grid-template-columns: 1fr;
}

.ct-embedded .bg-output-card {
  min-height: 0;
}

@media (max-width: 680px) {
  .ct-title-art {
    width: 155px;
    margin-right: -8px;
  }

  .ct-blood-entry {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }

  .ct-blood-icon {
    width: 44px;
    height: 44px;
  }

  .ct-blood-icon svg {
    width: 34px;
    height: 34px;
  }

  .ct-blood-entry strong {
    font-size:18px;
  }

  .ct-blood-entry .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .ct-disclosure {
    padding: 14px;
  }

  .ct-copy-row .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .ct-tool-form .bg-field-grid {
    grid-template-columns: 1fr;
  }

  .ct-title-art {
    width: 112px;
    margin-right: -4px;
  }

  .ct-review-tag {
    padding: 3px 7px;
    font-size:12px;
  }

  .ct-blood-entry .button {
    justify-self: stretch;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .ct-title-art {
    width: 104px;
    margin-right: -8px;
  }
}

.ct-point {
  padding: 11px 13px;
  margin: 8px 0;
  border-left: 3px solid var(--line-strong);
  border-radius:6px;
  background: var(--surface-2);
}

.ct-point h5 {
  margin: 0 0 5px;
}

.ct-point p {
  margin: 4px 0;
  color: var(--ink-2);
  font-family: var(--num);
  font-size:13px;
  line-height: 1.75;
}

.ct-point small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size:12px;
  line-height: 1.65;
}