/* Carriers tab — list of carrier cards + per-carrier detail workspace. */

.carriers-page { padding: 32px 28px; overflow-y: auto; }

.carriers-shell {
  max-width: 980px;
  margin: 0 auto;
}

/* ── Header (list + detail share parts) ── */

.carriers-header { margin-bottom: 28px; }

.carriers-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.carriers-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ── List view ── */

.carriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.carrier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: var(--text);
  transition: border-color var(--speed), box-shadow var(--speed), transform var(--speed);
}

.carrier-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(var(--shadow-rgb),0.08);
  transform: translateY(-1px);
}

.carrier-card-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.carrier-card-stub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-warm);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Logo / initials tile ── */
/* .carrier-tile-wrap holds both the initials fallback and the optional <img>.
   The img is invisible until JS adds .is-loaded (only when the file exists). */

.carrier-tile-wrap {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
}

/* sm is the in-list size — the E-Apps launcher on the live-call form, where the
   logo sits inline in a row rather than heading a card.
   Wider than it is tall, unlike lg/xl. Most carrier logos are wordmarks with a
   3:1 or 4:1 aspect, and `object-fit: contain` inside a 34px SQUARE scaled them
   down to about eight pixels of height — present, but unreadable, which defeats
   the point of showing a logo instead of the name. */
.carrier-tile-wrap.carrier-tile-sm {
  width: 62px; height: 34px; border-radius: 6px; flex-shrink: 0;
}
.carrier-tile-wrap.carrier-tile-lg { width: 64px; height: 64px; }
.carrier-tile-wrap.carrier-tile-xl { width: 72px; height: 72px; border-radius: 14px; }

.carrier-tile {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  user-select: none;
  font-size: 22px;
}

.carrier-tile-wrap.carrier-tile-xl .carrier-tile { font-size: 26px; }
.carrier-tile-wrap.carrier-tile-sm .carrier-tile { font-size: 12px; }
.carrier-tile-wrap.carrier-tile-sm .carrier-logo { padding: 3px; }

.carrier-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed);
}

.carrier-logo.is-loaded { opacity: 1; }

/* In the Windows 2000 theme, flatten the colored initials tiles to the gray GUI
   palette so they read as plain beveled chips, not multicolored logos. */
:root[data-theme="win2000"] .carrier-tile {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
}

/* ── Detail view header ── */

.carrier-detail-header { margin-bottom: 24px; }

.carrier-back-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background var(--speed), color var(--speed), border-color var(--speed);
}

.carrier-back-btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--text);
}

/* Title + Agent info button share a row so the button sits on the right
   margin, vertically centered with the carrier title. */
.carrier-detail-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.carrier-detail-id {
  display: flex;
  align-items: center;
  gap: 18px;
}

.carrier-agent-info-btn {
  flex: none;
  padding: 9px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--surface);
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--speed);
}

.carrier-agent-info-btn:hover { background: var(--gold-hover); }

.carrier-detail-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.15;
}

.carrier-detail-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
}

/* ── Sections ── */

.carrier-section { margin-bottom: 36px; }

.carrier-section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.carrier-section-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.carrier-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 8px 0 0;
}

/* Empty-state placeholder shown in any section a carrier hasn't filled in yet.
   Reads as a quiet "fill me in" slot so the detail page stays a consistent
   template across carriers with and without data. */
.carrier-section-empty {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  background: var(--bg-warm);
  border: 1px dashed var(--border-light);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 0 0;
}

/* ── Quick links ── */

.carrier-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.carrier-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background var(--speed), border-color var(--speed), color var(--speed);
}

.carrier-quick-link:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-hover);
}

.carrier-quick-icon { font-size: 14px; }

/* ── Products by category ── */

.carrier-cat {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin: 12px 0 0;
  background: var(--surface);
}

.carrier-cat-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.carrier-cat-summary::-webkit-details-marker { display: none; }

.carrier-cat-summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  color: var(--text-dim);
  font-size: 11px;
  transition: transform var(--speed);
}

.carrier-cat[open] > .carrier-cat-summary::before { transform: rotate(90deg); }

.carrier-cat-label { flex: 1; }

.carrier-cat-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-warm);
  border-radius: 10px;
  padding: 2px 10px;
}

.carrier-product-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.carrier-product-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  border-top: 1px solid var(--border-light);
}

.carrier-product-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.carrier-product-name {
  color: var(--text);
  font-weight: 600;
}

/* The synopsis sits on its own full-width line below the title. Collapsed, it
   truncates to a single line with an ellipsis; the toggle (revealed by JS only
   when it overflows) expands it to wrap freely. */
.carrier-product-synopsis {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.carrier-product-synopsis-text {
  min-width: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carrier-product-synopsis.is-expanded .carrier-product-synopsis-text {
  overflow: visible;
  white-space: normal;
}

.carrier-product-synopsis-toggle {
  flex: none;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  line-height: 0;
  color: var(--text-muted);
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.carrier-product-synopsis-toggle:hover {
  color: var(--text);
  background: var(--border-light);
}

.carrier-product-synopsis.is-expanded .carrier-product-synopsis-toggle {
  transform: rotate(180deg);
}

/* Base rule sets display:inline-flex, which would override the hidden
   attribute's UA display:none — restore it so the toggle can stay hidden. */
.carrier-product-synopsis-toggle[hidden] {
  display: none;
}

.carrier-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.carrier-product-chip {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* Feature pills — distilled from the product synopsis, sit alongside the
   neutral Advance/Ages chips but carry a colored accent so they read as
   product attributes rather than facts. */
.carrier-product-tag {
  font-weight: 500;
}

.carrier-product-tag-feature {
  color: var(--green);
  background: var(--green-soft);
  border-color: transparent;
}

.carrier-product-tag-caution {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: transparent;
}

/* "No build chart" — an absence, not a feature: muted with a dashed border
   so it reads as "nothing to check here" rather than a positive attribute. */
.carrier-product-tag-nobuild {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border);
  border-style: dashed;
}

.carrier-product-faces {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
}

.carrier-product-faces-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.carrier-product-faces-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 2px;
}

.carrier-product-faces-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.carrier-product-faces-age {
  color: var(--text-muted);
}

.carrier-product-faces-band {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.carrier-product-row-tbd {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  opacity: 0.7;
}

.carrier-product-name-tbd {
  font-style: italic;
  font-weight: 500;
  color: var(--text-muted);
}

.carrier-product-tbd-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Legacy: kept for any older render path still emitting these classes. */
.carrier-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.carrier-product-advance {
  font-size: 11px;
  color: var(--text-muted);
}

.carrier-product-comp {
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
}

/* ── Comp grid heatmap ── */

.comp-grid-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--surface);
  margin-top: 12px;
}

.comp-grid {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 12px;
}

.comp-grid th, .comp-grid td {
  border: 1px solid var(--border-light);
  padding: 0;
  text-align: center;
}

.comp-pct-corner {
  background: var(--bg-warm);
  width: 56px;
  min-width: 56px;
  padding: 6px 8px;
  /* Pin the FFL-comp column to the left so it stays visible while the agent
     scrolls the product columns horizontally. Higher z-index than the row
     headers so the corner wins where they'd overlap. */
  position: sticky;
  left: 0;
  z-index: 3;
  box-shadow: 1px 0 0 var(--border-light);
}

.comp-cat-hdr {
  background: var(--bg-warm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
}

.comp-prod-hdr {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  padding: 8px 10px;
  min-width: 110px;
  vertical-align: middle;
}

.comp-pct-hdr {
  background: var(--bg-warm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  padding: 6px 8px;
  width: 56px;
  min-width: 56px;
  /* Pinned left alongside the corner (see .comp-pct-corner). */
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 var(--border-light);
}

.comp-cell {
  height: 30px;
  min-width: 64px;
  background: var(--surface);
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  padding: 0 6px;
  transition: background var(--speed), color var(--speed);
}

.comp-cell:hover {
  background: var(--gold);
  color: var(--surface);
}

/* The cell whose popover is currently open. Stays highlighted until the
   popover is dismissed (click outside / Esc / click another cell). */
.comp-cell.is-active,
.comp-cell.is-active:hover {
  background: var(--gold);
  color: var(--surface);
  font-weight: 700;
}

.comp-cell-blank {
  cursor: default;
  background: var(--surface);
  color: transparent;
}

.comp-cell-blank:hover {
  background: var(--surface);
  color: transparent;
}

/* Wider, wrapping cell for fixed-row products whose cell text is longer
   than a bare percentage (e.g. "Ages 60-80 yrs: 72.5%"). */
.comp-cell-text {
  white-space: normal;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.3;
  min-width: 140px;
}

/* ── Build charts ── */

/* Build charts are a 2×3 grid of cards; clicking one opens the modal below. */
.build-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 640px) { .build-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .build-cards { grid-template-columns: 1fr; } }

.build-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--speed), background var(--speed);
}

.build-card:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.build-card-label { font-weight: 600; font-size: 13px; }
.build-card-hint { font-size: 11px; color: var(--text-muted); }

/* Placeholder build-chart cards (product exists, chart not entered yet). */
.build-card-tbd { border-style: dashed; }
.build-card-tbd .build-card-label { color: var(--text-muted); }

/* Bulleted note shown in place of the card grid for carriers with no build
   chart (Ethos / Aetna). */
.carrier-buildchart-note {
  margin: 12px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.carrier-buildchart-note li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: pre-line;
}

/* Generic carrier modal — shared by the build-chart cards and Agent info. */
.carrier-modal-root {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrier-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--shadow-rgb),0.4);
  backdrop-filter: blur(2px);
}

.carrier-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(480px, 92vw);
  max-height: 86vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(var(--shadow-rgb),0.28);
}

.carrier-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.carrier-modal-title { font-weight: 600; font-size: 15px; color: var(--text); }

.carrier-modal-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
}

.carrier-modal-close:hover { background: var(--bg-warm); color: var(--text); }

.carrier-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 20px;
}

.carrier-modal-sub { margin: 0 0 10px; font-size: 12px; color: var(--text-muted); }

/* Grouped build-chart modal tabs (e.g. Immediate / Graded / ROP). */
.build-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.build-tabs-intro { margin-bottom: 12px; white-space: pre-line; }

.build-tab {
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--speed), background var(--speed), color var(--speed);
}

.build-tab:hover { border-color: var(--gold); color: var(--text); }

.build-tab.is-active {
  color: var(--text);
  background: var(--gold-soft);
  border-color: var(--gold);
}

.build-tab-panel.is-hidden { display: none; }

/* Agent info modal body */
.agent-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-info-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.agent-info-label {
  min-width: 76px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.agent-info-empty { color: var(--text-muted); font-style: italic; }

.build-chart-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--surface);
}

.build-grid {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

.build-grid th, .build-grid td {
  border: 1px solid var(--border-light);
  padding: 5px 10px;
  text-align: center;
}

.build-corner, .build-weight-hdr {
  background: var(--bg-warm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.build-height-hdr {
  background: var(--bg-warm);
  color: var(--text-muted);
  font-weight: 600;
  width: 60px;
  white-space: nowrap;
}

.build-cell {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.build-grid tbody tr:nth-child(even) .build-cell {
  background: var(--bg-warm);
}

/* ── Comp popover ── */

.comp-popover {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(var(--shadow-rgb),0.18);
  padding: 12px 14px;
  min-width: 220px;
  z-index: 200;
  font-size: 12px;
  color: var(--text);
}

.pop-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
}

.pop-sub {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.pop-sub strong {
  color: var(--text);
}

/* A band the carrier sells but whose rate is not on file at this contract row.
   Muted and italic so it cannot be mistaken for a figure. */
.pop-unknown {
  color: var(--text-dim);
  font-style: italic;
  font-size: 10px;
  white-space: nowrap;
}

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

.pop-table th, .pop-table td {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border-light);
}

.pop-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pop-age { color: var(--text); }

.pop-pct {
  font-weight: 700;
  color: var(--gold);
  text-align: right !important;
}

.pop-empty {
  color: var(--text-dim);
  font-style: italic;
  text-align: center !important;
}

/* ── Contacts ── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 16px;
}

.contact-role {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-line a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--border); }
.contact-line a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.contact-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  min-width: 44px;
}

/* Assistants list under an "Assist" label — stacks name + email per person. */
.contact-line-assist { align-items: flex-start; }

.contact-assist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-assist {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-size: 12px;
}

.contact-assist-title {
  color: var(--text-muted);
  font-weight: 400;
}

/* ── How-tos accordion ── */

.howto {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-top: 10px;
  background: var(--surface);
}

.howto-summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
}

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

.howto-summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 10px;
  color: var(--text-dim);
  font-size: 11px;
  transition: transform var(--speed);
}

.howto[open] > .howto-summary::before { transform: rotate(90deg); }

.howto-body {
  padding: 0 18px 14px 38px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
}

/* ── Notes ── */

.carrier-notes-section { margin-bottom: 60px; }

.carrier-notes-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.carrier-notes-saved {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 10px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity var(--speed);
}

.carrier-notes-saved.is-visible { opacity: 1; }

.carrier-notes {
  width: 100%;
  min-height: 140px;
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  resize: vertical;
  transition: border-color var(--speed);
}

.carrier-notes:focus {
  outline: none;
  border-color: var(--gold);
}
