@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --bg: #f5efe6;
  --bg-soft: #fcfaf7;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-dark: #12202e;
  --text: #14212f;
  --text-soft: #596777;
  --text-muted: #7b8794;
  --line: rgba(20, 33, 47, 0.1);
  --brand: #0f766e;
  --brand-strong: #0b5b55;
  --accent: #d7a168;
  --accent-soft: rgba(215, 161, 104, 0.15);
  --success: #13765a;
  --warning: #a36718;
  --shadow: 0 22px 52px rgba(20, 33, 47, 0.08);
  --shadow-soft: 0 14px 34px rgba(20, 33, 47, 0.06);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(215, 161, 104, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #f1ebe0 0%, #f5efe6 18%, #fcfaf7 100%);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  border-radius: 999px;
  background: #fff;
  padding: 12px 16px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 251, 247, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 12px 14px 12px 16px;
}

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

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}

.site-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 10px);
  display: none;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--text-soft);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current='page'] {
  background: rgba(15, 118, 110, 0.08);
  color: var(--text);
  outline: none;
}

.site-nav .nav-cta {
  background: var(--text);
  color: #fff;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 13px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

p {
  color: var(--text-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 0.98rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 16px 32px rgba(20, 33, 47, 0.16);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.tools-hero {
  padding: 44px 0 24px;
}

.tools-hero-grid {
  display: grid;
  gap: 24px;
  align-items: end;
}

.tools-hero-copy {
  max-width: 42rem;
}

.tools-hero-copy p {
  max-width: 34rem;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tools-hero-surface {
  display: grid;
  gap: 14px;
}

.hero-panel,
.search-shell,
.category-card,
.tool-card,
.support-shell,
.preview-shell,
.preview-panel,
.empty-state,
.quick-tool {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-panel-grid div {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  padding: 14px;
}

.hero-panel-grid div:nth-child(1) {
  background: rgba(255, 255, 255, 0.9);
}

.hero-panel-grid div:nth-child(2) {
  background: rgba(255, 248, 240, 0.9);
}

.hero-panel-grid div:nth-child(3) {
  background: rgba(245, 245, 245, 0.9);
}

.hero-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-panel span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.search-section,
.quick-access-section,
.category-section,
.directory-shell,
.support-section,
.preview-section {
  padding: 20px 0;
}

.search-shell {
  border-radius: var(--radius-xl);
  padding: 20px;
}

.search-row {
  display: grid;
  gap: 12px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap::before {
  content: '⌕';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.05rem;
}

.search-input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(20, 33, 47, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 18px 0 46px;
  color: var(--text);
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.16);
  border-color: rgba(15, 118, 110, 0.24);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 15;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(20, 33, 47, 0.08);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 24px 48px rgba(20, 33, 47, 0.12);
  padding: 10px;
  backdrop-filter: blur(20px);
}

.search-suggestion {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  padding: 12px 14px;
  transition: background 180ms ease;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  background: rgba(15, 118, 110, 0.08);
  outline: none;
}

.search-suggestion-title {
  color: var(--text);
  font-weight: 800;
}

.search-suggestion-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.search-suggestion-empty {
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  padding: 10px 14px;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-pill.is-active,
.filter-pill:hover,
.filter-pill:focus-visible {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.08);
  color: var(--text);
  outline: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head p,
.section-head h2 {
  margin-bottom: 0;
}

.quick-access-grid,
.category-grid,
.tool-grid,
.preview-grid {
  display: grid;
  gap: 16px;
}

.quick-tool {
  display: grid;
  gap: 8px;
  border-radius: 22px;
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quick-tool-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-tool-link {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.quick-tool:has(.quick-tool-link:hover),
.quick-tool:focus-within,
.category-card:hover,
.category-card:focus-visible,
.tool-card:has(.tool-card-link:hover),
.tool-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(20, 33, 47, 0.11);
  outline: none;
}

.quick-tool-title {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
}

.quick-tool-copy {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.category-card {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border-radius: 24px;
  padding: 18px;
  width: 100%;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.quick-tool-link:focus-visible,
.tool-card-link:focus-visible,
.category-card:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  outline-offset: 4px;
}

.category-icon,
.category-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(215, 161, 104, 0.22));
  color: var(--brand-strong);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.category-icon-svg svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.category-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.category-count,
.directory-count,
.tool-status,
.preview-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(20, 33, 47, 0.07);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.category-count {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
  padding: 7px 10px;
}

.directory-shell {
  border-radius: var(--radius-xl);
  padding: 22px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

.directory-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.directory-toolbar h2,
.directory-toolbar p {
  margin-bottom: 0;
}

.directory-section + .directory-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(20, 33, 47, 0.08);
}

.directory-disclosure {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(20, 33, 47, 0.08);
}

.directory-disclosure-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.directory-disclosure-summary::-webkit-details-marker {
  display: none;
}

.directory-disclosure-summary h2,
.directory-disclosure-summary p {
  margin-bottom: 0;
}

.directory-disclosure-hint {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.directory-disclosure-summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 12px;
  border-radius: 999px;
  background: rgba(20, 33, 47, 0.06);
  color: var(--text-soft);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 180ms ease, transform 180ms ease;
}

.directory-disclosure[open] .directory-disclosure-summary::after {
  content: '−';
}

.directory-disclosure-summary:hover::after,
.directory-disclosure-summary:focus-visible::after {
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-strong);
}

.directory-disclosure-panel {
  margin-top: 16px;
}

.directory-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.directory-count,
.tool-status,
.preview-status {
  padding: 7px 12px;
}

.tool-status-live {
  background: rgba(19, 118, 90, 0.18);
  box-shadow: inset 0 0 0 1px rgba(19, 118, 90, 0.18);
  color: #0f6c52;
}

.tool-status-preview,
.preview-status {
  background: rgba(20, 33, 47, 0.08);
  box-shadow: inset 0 0 0 1px rgba(20, 33, 47, 0.08);
  color: rgba(20, 33, 47, 0.68);
}

.tool-status-soon {
  background: rgba(163, 103, 24, 0.13);
  color: var(--warning);
}

.tool-card {
  display: grid;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tool-card-link {
  display: grid;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.tool-card-live {
  border-color: rgba(19, 118, 90, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(17, 32, 51, 0.08);
}

.tool-card-preview {
  border-color: rgba(20, 33, 47, 0.08);
  background: rgba(248, 246, 242, 0.7);
  box-shadow: none;
  opacity: 0.62;
  filter: grayscale(0.28) saturate(0.68);
}

.tool-card-live:hover,
.tool-card-live:has(.tool-card-link:hover),
.tool-card-live:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(17, 32, 51, 0.12);
}

.tool-card-preview:hover,
.tool-card-preview:has(.tool-card-link:hover),
.tool-card-preview:focus-within {
  transform: none;
  box-shadow: none;
}

.tool-card-topline,
.preview-head-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-card h3 {
  margin-bottom: 0;
}

.tool-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.directory-note {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.tool-arrow,
.tool-card-footer {
  color: var(--brand-strong);
  font-weight: 700;
}

.tool-card-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tool-card-footer::after {
  content: '→';
}

.tool-favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid rgba(20, 33, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 12px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.tool-favorite-toggle:hover,
.tool-favorite-toggle:focus-visible {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.08);
  color: var(--text);
  outline: none;
}

.tool-favorite-toggle.is-favorited {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-strong);
}

.tool-favorite-toggle__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.empty-state {
  border-radius: 24px;
  padding: 22px;
}

.support-shell {
  display: grid;
  gap: 16px;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.support-points {
  display: grid;
  gap: 12px;
}

.support-points div {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
}

.support-points strong {
  display: block;
  margin-bottom: 6px;
}

.support-note {
  margin: 0;
  border-top: 1px solid rgba(18, 38, 32, 0.08);
  padding-top: 18px;
  color: var(--text-soft);
}

.preview-section {
  padding-top: 44px;
  padding-bottom: 96px;
}

.preview-shell {
  display: grid;
  gap: 24px;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.preview-breadcrumb {
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.preview-note {
  border-top: 1px solid rgba(20, 33, 47, 0.08);
  padding-top: 18px;
}

.tool-meta-row {
  display: grid;
  gap: 14px;
}

.tool-meta-group,
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-meta-chip,
.tool-tag,
.panel-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(20, 33, 47, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.tool-tag,
.panel-chip-soft {
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-strong);
}

.preview-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.preview-panel {
  border-radius: 24px;
  padding: 20px;
}

.panel-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-section-head h2,
.panel-section-head p {
  margin-bottom: 0;
}

.tool-form,
.mock-interface,
.reference-section,
.related-section {
  display: grid;
  gap: 18px;
}

.form-group-grid,
.advanced-grid {
  display: grid;
  gap: 16px;
}

.form-section {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.form-section-head {
  margin-bottom: 14px;
}

.form-section-head h3 {
  margin-bottom: 0;
}

.form-section-grid {
  display: grid;
  gap: 12px;
}

.form-field,
.toggle-field {
  display: grid;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.field-label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.field-help {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
}

.field-control input,
.field-control select,
.field-control textarea {
  width: 100%;
  border: 1px solid rgba(20, 33, 47, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 14px 16px;
}

.field-control textarea {
  min-height: 120px;
  resize: vertical;
}

.field-control input:focus,
.field-control select:focus,
.field-control textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.14);
  border-color: rgba(15, 118, 110, 0.22);
}

.field-suffix {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.segmented-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-pill {
  position: relative;
}

.segmented-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.segmented-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(20, 33, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 14px;
  color: var(--text-soft);
  font-weight: 700;
}

.segmented-pill input:checked + span {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.08);
  color: var(--text);
}

.toggle-field {
  grid-template-columns: 1fr auto;
  align-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  padding: 14px;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 30px;
}

.toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.toggle-switch span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(20, 33, 47, 0.14);
  transition: background 180ms ease;
}

.toggle-switch span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(20, 33, 47, 0.18);
  transition: transform 180ms ease;
}

.toggle-switch input:checked + span {
  background: rgba(15, 118, 110, 0.65);
}

.toggle-switch input:checked + span::after {
  transform: translateX(18px);
}

.advanced-toggle {
  border: 1px solid rgba(20, 33, 47, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  padding: 16px;
}

.advanced-toggle summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.advanced-toggle[open] summary {
  margin-bottom: 14px;
}

.tool-actions-row,
.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-card-grid,
.guidance-grid,
.related-grid {
  display: grid;
  gap: 12px;
}

.result-card,
.guidance-card,
.related-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  padding: 16px;
}

.result-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.result-card p,
.guidance-card p,
.related-card p {
  margin-bottom: 0;
}

.guidance-card {
  border: 1px solid rgba(20, 33, 47, 0.06);
}

.guidance-card-warning {
  background: rgba(215, 161, 104, 0.12);
}

.guidance-card-info {
  background: rgba(15, 118, 110, 0.08);
}

.reference-item {
  border-top: 1px solid rgba(20, 33, 47, 0.08);
  padding: 14px 0;
}

.reference-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.reference-item summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.reference-body {
  padding-top: 10px;
}

.utility-button,
.utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(20, 33, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0 14px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.utility-button:hover,
.utility-button:focus-visible,
.utility-link:hover,
.utility-link:focus-visible {
  border-color: rgba(15, 118, 110, 0.24);
  outline: none;
}

.mock-interface {
  display: grid;
  gap: 16px;
}

.mock-label {
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mock-field-grid {
  display: grid;
  gap: 12px;
}

.mock-field {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.mock-field span,
.mock-result small {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mock-input {
  min-height: 46px;
  border-radius: 14px;
  background: rgba(20, 33, 47, 0.04);
}

.mock-stack {
  display: grid;
  gap: 12px;
}

.related-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.related-card:hover,
.related-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(20, 33, 47, 0.1);
  outline: none;
}

.mobile-sticky-actions {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  display: flex;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 251, 247, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 10px;
}

.mobile-sticky-actions .button {
  flex: 1;
  min-height: 48px;
}

.mock-result {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(215, 161, 104, 0.12));
  padding: 16px;
}

.mock-result strong {
  display: block;
  font-size: 1.05rem;
}

.site-footer {
  padding: 30px 0 48px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  border-top: 1px solid rgba(20, 33, 47, 0.08);
  padding-top: 24px;
}

.footer-brand p {
  max-width: 30rem;
  margin-bottom: 0;
}

.brand-footer {
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

@media (min-width: 720px) {
  .search-input {
    min-height: 60px;
  }

  .quick-access-grid,
  .tool-grid,
  .preview-grid,
  .result-card-grid,
  .guidance-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }

  .footer-links {
    justify-self: end;
  }

  .tool-favorite-toggle__label {
    display: inline;
  }
}

@media (max-width: 719px) {
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: start;
  }

  .directory-disclosure-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tool-favorite-toggle__label {
    display: none;
  }
}

@media (min-width: 960px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
  }

  .tools-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 38px;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .search-row .filter-pills {
    justify-content: flex-end;
    max-width: 30rem;
  }

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

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

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

  .preview-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

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

  .tool-meta-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .mobile-sticky-actions {
    display: none;
  }
}

/* Live dose calculator */
.dose-page {
  --dose-bg: #f7faf9;
  --dose-surface: #ffffff;
  --dose-surface-soft: #edf7f5;
  --dose-ink: #172426;
  --dose-muted: #526263;
  --dose-line: rgba(23, 36, 38, 0.12);
  --dose-accent: #0f766e;
  --dose-accent-dark: #115e59;
  background: linear-gradient(180deg, #f7faf9 0%, #eef6f4 100%);
  color: var(--dose-ink);
}

.dose-page h1,
.dose-page h2,
.dose-page h3 {
  letter-spacing: 0;
}

.dose-page h1 {
  font-size: 3.4rem;
  line-height: 1.02;
}

.dose-page h2 {
  font-size: 1.65rem;
  line-height: 1.15;
}

.dose-page h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.dose-page p {
  color: var(--dose-muted);
}

.dose-page [hidden] {
  display: none !important;
}

.dose-page .nav-shell,
.dose-page .site-nav,
.dose-page .menu-toggle,
.dose-page .site-nav a,
.dose-page .button,
.dose-page .dose-panel,
.dose-page input,
.dose-page select,
.dose-page .dose-result-card,
.dose-page .dose-copy-button,
.dose-page .dose-status-panel,
.dose-page .dose-error-summary,
.dose-page .dose-empty-panel,
.dose-page .dose-formula-output,
.dose-page .dose-result-notice,
.dose-page .dose-related-links a {
  border-radius: 8px;
}

.dose-page .site-header {
  padding-top: 16px;
}

.dose-page .nav-shell {
  border-color: var(--dose-line);
  background: rgba(255, 255, 255, 0.92);
}

.dose-page .site-nav a:hover,
.dose-page .site-nav a:focus-visible,
.dose-page .site-nav a[aria-current='page'] {
  background: var(--dose-surface-soft);
}

.dose-page .site-nav .nav-cta,
.dose-page .button-primary {
  background: var(--dose-ink);
  color: #ffffff;
}

.dose-page .button-secondary {
  background: #ffffff;
  border-color: var(--dose-line);
  color: var(--dose-ink);
}

.dose-hero {
  padding: 52px 0 28px;
}

.dose-hero-grid {
  display: grid;
  gap: 24px;
  align-items: end;
}

.dose-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
}

.dose-hero-copy {
  max-width: 760px;
  font-size: 1.05rem;
}

.dose-hero-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.dose-hero-point {
  border: 1px solid var(--dose-line);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 15px;
}

.dose-hero-point span {
  display: block;
  margin-bottom: 6px;
  color: var(--dose-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dose-hero-point p {
  margin-bottom: 0;
  color: var(--dose-ink);
  font-size: 0.95rem;
}

.dose-status-panel {
  border: 1px solid var(--dose-line);
  background: var(--dose-surface);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(23, 36, 38, 0.06);
}

.dose-status-panel strong {
  display: block;
  margin-bottom: 8px;
}

.dose-status-panel p {
  margin-bottom: 0;
}

.dose-status-panel .tool-favorite-toggle {
  margin-top: 14px;
}

.dose-status-panel .tool-favorite-toggle__label {
  display: inline;
}

.dose-workspace-section,
.dose-detail-section {
  padding: 22px 0;
}

.dose-workspace {
  display: grid;
  gap: 18px;
}

.dose-detail-grid {
  display: grid;
  gap: 18px;
}

.dose-panel {
  border: 1px solid var(--dose-line);
  background: var(--dose-surface);
  padding: 22px;
  box-shadow: 0 14px 34px rgba(23, 36, 38, 0.06);
}

.dose-result-panel {
  align-self: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dose-result-panel.is-calculated {
  border-color: rgba(15, 118, 110, 0.38);
  background: #fcfffe;
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.15);
}

.dose-result-panel.has-errors {
  border-color: rgba(180, 35, 24, 0.32);
}

.dose-section-head {
  margin-bottom: 18px;
}

.dose-section-head h2,
.dose-section-head p {
  margin-bottom: 0;
}

.dose-section-head h2 + p {
  margin-top: 10px;
}

.dose-form {
  display: grid;
  gap: 16px;
}

.dose-field-row {
  display: grid;
  gap: 14px;
}

.dose-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dose-field span {
  color: var(--dose-ink);
  font-weight: 800;
}

.dose-field small {
  color: var(--dose-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.dose-field-hint {
  margin-top: -2px;
  color: var(--dose-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.dose-field input,
.dose-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--dose-line);
  background: #ffffff;
  color: var(--dose-ink);
  padding: 0 13px;
}

.dose-field input:focus,
.dose-field select:focus {
  border-color: rgba(15, 118, 110, 0.42);
  outline: 3px solid rgba(15, 118, 110, 0.18);
}

.dose-field.is-mcg-dose select {
  border-color: rgba(180, 83, 9, 0.32);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.12);
}

.dose-field input[aria-invalid='true'] {
  border-color: #b42318;
}

.dose-field-error {
  min-height: 1rem;
  color: #b42318;
}

.dose-field-helper {
  display: block;
  min-height: 1rem;
  color: var(--dose-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 4px;
}

.dose-error-summary {
  border: 1px solid rgba(180, 35, 24, 0.28);
  background: #fff4f2;
  color: #7a271a;
  padding: 14px;
}

.dose-error-summary strong {
  color: #7a271a;
}

.dose-error-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.dose-empty-panel {
  border: 1px dashed rgba(23, 36, 38, 0.2);
  background: #fbfdfc;
  padding: 18px;
}

.dose-empty-panel h3 {
  margin-bottom: 10px;
  color: var(--dose-ink);
}

.dose-empty-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--dose-muted);
}

.dose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.dose-inline-note {
  margin: -4px 0 0;
  color: var(--dose-muted);
  font-size: 0.9rem;
}

.dose-results {
  display: grid;
  gap: 16px;
}

.dose-result-notice {
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-left: 4px solid var(--dose-accent);
  background: var(--dose-surface-soft);
  color: var(--dose-accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 11px 14px;
}

.dose-result-warnings {
  display: grid;
  gap: 8px;
}

.dose-result-warnings .dose-warning-item {
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 10px 12px;
}

.dose-result-grid {
  display: grid;
  gap: 12px;
}

.dose-result-card {
  border: 1px solid var(--dose-line);
  background: #fbfdfc;
  padding: 16px;
}

.dose-result-panel.is-calculated .dose-result-card {
  border-color: rgba(15, 118, 110, 0.18);
}

.dose-result-primary {
  background: #f0faf7;
}

.dose-result-action {
  border-color: rgba(15, 118, 110, 0.24);
  background: #eef8f5;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.1);
}

.dose-result-card span {
  display: block;
  color: var(--dose-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dose-result-card strong {
  display: block;
  margin: 8px 0;
  color: var(--dose-accent-dark);
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.dose-result-primary strong {
  font-size: 2.2rem;
}

.dose-result-action strong {
  font-size: 2.6rem;
  color: var(--dose-accent-dark);
}

.dose-result-panel.is-mcg-dose .dose-result-action span,
.dose-result-panel.is-mcg-dose .dose-result-card:last-child span {
  color: #9a3412;
}

.dose-result-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.dose-copy-block {
  border-top: 1px solid var(--dose-line);
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.dose-copy-block h3 {
  margin-bottom: 0;
}

.dose-copy-block p {
  color: var(--dose-ink);
  display: grid;
  gap: 4px;
  margin-bottom: 0;
}

.dose-copy-block p span {
  display: block;
}

.dose-copy-button {
  min-height: 42px;
  border: 1px solid var(--dose-line);
  background: var(--dose-surface-soft);
  color: var(--dose-accent-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0 14px;
}

.dose-copy-status {
  display: inline-block;
  margin-left: 10px;
  color: var(--dose-accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.dose-postcalc-block {
  border-top: 1px solid var(--dose-line);
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.dose-postcalc-block h3 {
  margin-bottom: 0;
}

.dose-postcalc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--dose-ink);
}

.dose-postcalc-list li {
  line-height: 1.5;
}

.dose-formula-list {
  display: grid;
  gap: 10px;
}

.dose-formula-list p {
  margin-bottom: 0;
}

.dose-rounding-note {
  margin: 14px 0 0;
  font-size: 0.94rem;
}

.dose-formula-output {
  margin-top: 16px;
  border: 1px solid var(--dose-line);
  background: #fbfdfc;
  color: var(--dose-ink);
  padding: 14px;
}

.dose-empty-note {
  margin-bottom: 0;
}

.dose-formula-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dose-formula-steps li {
  display: grid;
  gap: 7px;
  min-width: 0;
  border-bottom: 1px solid var(--dose-line);
  padding-bottom: 12px;
}

.dose-formula-steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dose-formula-steps span {
  color: var(--dose-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dose-formula-steps code {
  color: var(--dose-ink);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.dose-check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 0;
  color: var(--dose-muted);
  list-style: none;
}

.dose-warning-item {
  border: 1px solid var(--dose-line);
  background: #fbfdfc;
  color: var(--dose-muted);
  line-height: 1.45;
  padding: 10px 12px;
}

.dose-warning-caution {
  border-color: rgba(180, 83, 9, 0.32);
  background: #fff7ed;
  color: #7c2d12;
}

.dose-reference-copy p:last-child {
  margin-bottom: 0;
}

.dose-trust-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--dose-muted);
}

.dose-trust-list li {
  line-height: 1.55;
}

.dose-trust-list strong {
  color: var(--dose-ink);
}

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

.dose-learning-card {
  border: 1px solid var(--dose-line);
  background: #fbfdfc;
  padding: 16px;
}

.dose-learning-card h3,
.dose-learning-card p:last-child {
  margin-bottom: 0;
}

.dose-learning-card p + p,
.dose-learning-card p + ul,
.dose-learning-card p + details,
.dose-learning-card ul + p,
.dose-learning-card ul + details {
  margin-top: 10px;
}

.dose-learning-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--dose-muted);
}

.dose-learning-math {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.dose-learning-math code {
  display: block;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(15, 118, 110, 0.06);
  color: var(--dose-ink);
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 12px;
  white-space: normal;
  word-break: break-word;
}

.dose-learning-card details {
  border: 1px solid var(--dose-line);
  background: #ffffff;
  padding: 12px;
}

.dose-learning-card summary {
  cursor: pointer;
  color: var(--dose-accent-dark);
  font-weight: 800;
}

.dose-learning-card summary:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  outline-offset: 3px;
}

.dose-related-links {
  display: grid;
  gap: 10px;
}

.dose-related-links a {
  border: 1px solid var(--dose-line);
  background: #fbfdfc;
  color: var(--dose-ink);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.dose-related-links a strong {
  color: var(--dose-accent-dark);
  font-weight: 800;
}

.dose-related-links a span {
  color: var(--dose-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.dose-related-links a:hover,
.dose-related-links a:focus-visible,
.dose-copy-button:hover,
.dose-copy-button:focus-visible {
  border-color: rgba(15, 118, 110, 0.35);
  outline: none;
}

@media (min-width: 720px) {
  .dose-field-row,
  .dose-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dose-hero-points,
  .dose-learning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dose-result-card:first-child {
    grid-column: 1 / -1;
  }

  .dose-formula-steps li {
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .dose-hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

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

  .dose-workspace {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    align-items: start;
  }

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

@media (max-width: 620px) {
  .dose-page h1 {
    font-size: 2.3rem;
  }

  .dose-panel {
    padding: 18px;
  }

  .dose-hero {
    padding: 36px 0 18px;
  }

  .dose-workspace-section,
  .dose-detail-section {
    padding: 16px 0;
  }

  .dose-result-card strong,
  .dose-result-primary strong {
    font-size: 1.85rem;
  }

  .dose-actions .button {
    width: 100%;
  }

  .dose-copy-button {
    width: 100%;
  }

  .dose-copy-status {
    display: block;
    margin: 8px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.crash-emergency-section {
  padding: 14px 0 26px;
}

.crash-emergency-shell {
  display: grid;
  gap: 12px;
}

.crash-emergency-form {
  display: grid;
  gap: 6px;
}

.crash-input-strip {
  display: grid;
  gap: 10px;
  align-items: end;
}

.crash-weight-field input {
  min-height: 54px;
  font-size: 1.15rem;
  font-weight: 800;
}

.crash-inline-error {
  min-height: 1rem;
}

.crash-warning-bar {
  border: 1px solid rgba(180, 83, 9, 0.26);
  background: #fff7ed;
  color: #7c2d12;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 10px 12px;
}

.crash-page-intro {
  display: grid;
  gap: 6px;
}

.crash-page-intro .eyebrow,
.crash-page-intro h1,
.crash-page-intro p {
  margin-bottom: 0;
}

.crash-page-intro p:last-child {
  max-width: 820px;
  color: var(--dose-muted);
  font-size: 0.96rem;
}

.crash-table-panel {
  padding: 14px;
  box-shadow: none;
}

.crash-table-head {
  margin-bottom: 10px;
}

.crash-table-head h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.crash-empty-state {
  border: 1px dashed rgba(23, 36, 38, 0.18);
  background: #fbfdfc;
  color: var(--dose-muted);
  font-weight: 700;
  padding: 14px 12px;
  text-align: center;
}

.crash-table-wrap {
  border: 1px solid var(--dose-line);
  background: #ffffff;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.crash-dose-table {
  width: 100%;
  border-collapse: collapse;
}

.crash-dose-table th,
.crash-dose-table td {
  border-bottom: 1px solid var(--dose-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.crash-dose-table thead th {
  background: #f6fbfa;
  color: var(--dose-muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crash-dose-table tbody tr:last-child td {
  border-bottom: 0;
}

.crash-drug-cell strong,
.crash-dose-cell,
.crash-volume-cell {
  display: block;
}

.crash-drug-cell strong {
  color: var(--dose-ink);
  font-size: 0.98rem;
}

.crash-drug-ref {
  display: block;
  margin-top: 4px;
  color: var(--dose-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.crash-route-cell {
  color: var(--dose-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.crash-dose-cell {
  color: var(--dose-ink);
  font-feature-settings: 'tnum' 1;
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}

.crash-volume-cell {
  color: var(--dose-accent-dark);
  font-feature-settings: 'tnum' 1;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.crash-volume-value {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 6px;
  padding: 3px 8px;
}

.crash-drug-note {
  display: block;
  margin-top: 5px;
  color: #92400e;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.crash-row-contraindicated {
  background: #f9fafb;
}

.crash-row-contraindicated .crash-drug-cell strong,
.crash-row-contraindicated .crash-route-cell,
.crash-row-contraindicated .crash-dose-cell,
.crash-row-contraindicated .crash-volume-cell {
  color: #9ca3af;
}

.crash-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding-top: 10px;
}

.crash-secondary-button,
.crash-secondary-link {
  border: 0;
  background: transparent;
  color: var(--dose-accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.crash-secondary-button:hover,
.crash-secondary-button:focus-visible,
.crash-secondary-link:hover,
.crash-secondary-link:focus-visible {
  text-decoration: underline;
}

.crash-method-details {
  padding: 0;
  box-shadow: none;
}

.crash-method-details summary {
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 800;
  list-style: none;
  padding: 14px;
}

.crash-method-details summary::-webkit-details-marker {
  display: none;
}

.crash-method-details summary::after {
  content: '+';
  float: right;
  color: var(--dose-muted);
}

.crash-method-details[open] summary::after {
  content: '−';
}

.crash-method-content {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.crash-method-copy {
  margin-bottom: 0;
  color: var(--dose-muted);
  font-size: 0.92rem;
}

.reference-grid {
  display: grid;
  gap: 18px;
}

.reference-section {
  display: grid;
  gap: 14px;
}

.reference-table-wrap {
  border: 1px solid var(--dose-line);
  background: #fbfdfc;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
}

.reference-table caption {
  border-bottom: 1px solid var(--dose-line);
  background: #f0faf7;
  color: var(--dose-accent-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  text-align: left;
  text-transform: uppercase;
}

.reference-table th,
.reference-table td {
  border-bottom: 1px solid var(--dose-line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.reference-table thead th {
  color: var(--dose-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-table tbody th {
  color: var(--dose-ink);
  font-size: 0.94rem;
  font-weight: 800;
  width: 44%;
}

.reference-table tbody td {
  color: var(--dose-accent-dark);
  font-feature-settings: 'tnum' 1;
  font-size: 0.96rem;
  font-weight: 700;
}

.reference-table tbody tr:last-child th,
.reference-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (min-width: 720px) {
  .crash-input-strip {
    grid-template-columns: minmax(0, 1.4fr) 100px 120px;
  }

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

@media (max-width: 620px) {
  .crash-emergency-section {
    padding-top: 10px;
  }

  .crash-input-strip {
    grid-template-columns: minmax(0, 1fr) 88px 108px;
    gap: 8px;
  }

  .crash-table-panel {
    padding: 12px;
  }

  .crash-dose-table th,
  .crash-dose-table td {
    padding: 9px 8px;
  }

  .crash-dose-table thead th {
    font-size: 0.68rem;
  }

  .crash-drug-cell strong,
  .crash-dose-cell {
    font-size: 0.9rem;
  }

  .crash-route-cell,
  .crash-drug-ref {
    font-size: 0.72rem;
  }

  .crash-volume-cell {
    font-size: 1.05rem;
  }

  .crash-volume-value {
    padding: 2px 6px;
  }

  .crash-warning-bar {
    padding: 9px 10px;
  }

  .crash-method-details summary,
  .crash-method-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .reference-table th,
  .reference-table td,
  .reference-table caption {
    padding: 11px 12px;
  }

  .reference-table tbody th,
  .reference-table tbody td {
    font-size: 0.9rem;
  }
}

@media (max-width: 460px) {
  .crash-input-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crash-weight-field {
    grid-column: 1 / -1;
  }
}
