@font-face {
  font-family: "Source Sans 3";
  src: url("/professional/assets/fonts/SourceSans3VF-Upright.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --paper: #F7F8F5;
  --panel: #FFFFFF;
  --ink: #223638;
  --muted: #56696A;
  --line: #D7E0DB;
  --field-border: #7C908D;
  --teal: #214E50;
  --teal-dark: #173D3F;
  --mint: #E8F0ED;
  --amber: #805B24;
  --amber-bg: #F8F0DF;
  --error: #A13F37;
  --error-bg: #F9ECE9;
  --info: #355F7C;
  --info-bg: #EAF0F5;
  --radius: 8px;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--teal);
  text-decoration: none;
}
button {
  color: inherit;
}
:root:not([data-input-method="touch"])
  :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
/* Also cover native focus rings on disclosures and document scroll regions. */
:root[data-input-method="touch"] :focus,
:focus:not(:focus-visible) {
  outline: none;
}
::selection {
  background: var(--line);
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 600;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.02em;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: -60px;
  left: 16px;
  padding: 12px;
  background: var(--teal);
  color: white;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.side-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 29px 12px 9px;
}
.side-recent {
  overflow-y: auto;
  flex: 1;
  min-height: 70px;
}
.recent-link {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(:root:not([data-input-method="touch"])) .recent-link:hover,
.recent-link.active {
  background: var(--mint);
  color: var(--ink);
}
.recent-link .tiny-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  background: var(--field-border);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.search-box {
  background: white;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.search-box:has(.search-text:focus) {
  border-color: var(--field-border);
}
:root:not([data-input-method="touch"])
  .search-box:has(.search-text:focus-visible) {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
.search-input-wrap {
  display: flex;
  align-items: flex-start;
  padding: 24px 24px 14px;
  gap: 15px;
}
.search-input-wrap > svg {
  margin-top: 5px;
  color: var(--muted);
  width: 22px;
  height: 22px;
}
.search-text {
  border: 0;
  resize: none;
  width: 100%;
  min-height: 68px;
  background: transparent;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  padding: 0;
  outline: none !important;
  box-shadow: none !important;
}
.search-text::placeholder {
  color: var(--muted);
}
.search-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 16px;
}
.search-tools-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.search-tools .icon-button {
  color: var(--muted);
}
.tool-divider {
  height: 18px;
  width: 1px;
  background: var(--line);
  margin: 0 6px;
}
.region-select {
  border: 0;
  background: transparent;
  max-width: 135px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 3px;
}
.search-submit {
  min-height: 39px;
  gap: 14px !important;
  font-size: 12px !important;
  padding: 9px 15px !important;
}
.search-submit svg {
  width: 16px;
  height: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--field-border);
  background: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
:where(:root:not([data-input-method="touch"])) .btn:hover {
  background: var(--paper);
  border-color: var(--field-border);
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
:where(:root:not([data-input-method="touch"])) .btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn-primary svg {
  width: 16px;
  height: 16px;
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
}
:where(:root:not([data-input-method="touch"])) .btn-ghost:hover {
  background: var(--mint);
  border-color: transparent;
}
.btn-small {
  padding: 7px 10px;
  font-size: 11px;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  flex-shrink: 0;
}
:where(:root:not([data-input-method="touch"])) .icon-button:hover {
  background: var(--mint);
  color: var(--teal);
}
.icon-button svg {
  width: 19px;
  height: 19px;
}
.focus-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}
.focus-label {
  font-size: 11px;
  color: var(--muted);
  margin-right: 2px;
}
.focus-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.focus-chip svg {
  width: 13px;
  height: 13px;
}
.focus-chip.active {
  color: var(--teal);
  border-color: var(--line);
  background: var(--mint);
}
:where(:root:not([data-input-method="touch"])) .focus-chip:hover {
  border-color: var(--field-border);
}
.search-footnote {
  font-size: 10px;
  color: var(--muted);
  margin: 13px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-footnote svg {
  width: 12px;
  height: 12px;
}
.photo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 22px 10px;
  padding: 8px 12px;
  background: var(--mint);
  border-radius: 8px;
  font-size: 12px;
}
.photo-preview img {
  width: 42px;
  height: 42px;
  border-radius: 5px;
  object-fit: cover;
}
.photo-preview button {
  margin-left: auto;
}
.hidden {
  display: none !important;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.section-top h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.section-top > a {
  font-size: 11px;
  color: var(--muted);
}
.section-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.example-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    border-color 0.15s,
    transform 0.15s;
  min-height: 149px;
}
:where(:root:not([data-input-method="touch"])) .example-card:hover {
  border-color: var(--field-border);
  transform: translateY(-2px);
}
.example-icon {
  height: 29px;
  width: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--muted);
  margin-bottom: 13px;
}
.example-icon svg {
  height: 16px;
  width: 16px;
}
.example-card:nth-child(2) .example-icon {
  background: var(--mint);
  color: var(--info);
}
.example-card:nth-child(3) .example-icon {
  background: var(--amber-bg);
  color: var(--amber);
}
.example-card strong {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.example-card strong svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.example-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.empty-recent {
  padding: 24px 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 12px;
}
.empty-recent svg {
  width: 24px;
  height: 24px;
  color: var(--muted);
}
.empty-recent p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.lookup-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.lookup-row:first-child {
  padding-top: 0;
}
.lookup-row .row-icon {
  width: 35px;
  height: 39px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}
.lookup-row .row-icon svg {
  width: 17px;
  height: 17px;
}
.lookup-row .row-main {
  flex: 1;
  min-width: 0;
}
.lookup-row h3 {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lookup-row p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.lookup-row > .icon {
  color: var(--muted);
}
:where(:root:not([data-input-method="touch"])) .lookup-row:hover h3 {
  color: var(--teal);
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.page-heading .eyebrow {
  margin-bottom: 11px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.research-heading {
  margin-bottom: 20px;
}
.research-query {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 760px;
}
.research-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
}
.research-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.research-meta svg {
  width: 12px;
  height: 12px;
}
.research-body {
  min-width: 0;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 10px 6px;
}
.tab.active {
  color: var(--teal);
  border-color: var(--line);
  background: #fff;
  font-weight: 600;
}
:where(:root:not([data-input-method="touch"])) .tab:not(.active):hover {
  color: var(--teal);
  background: #ffffff80;
}
:root:not([data-input-method="touch"]) .tabs .tab:focus-visible {
  outline-offset: -3px;
}
@media (max-width: 700px) {
  .tabs {
    gap: 3px;
    margin-bottom: 14px;
  }
  .tab {
    padding: 10px 3px;
  }
}
@media (max-width: 360px) {
  .tabs {
    gap: 2px;
    padding: 3px;
  }
  .tab {
    font-size: 11px;
    padding-inline: 1px;
  }
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  margin-bottom: 18px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.card-title h2 {
  font-size: 14px;
  font-weight: 620;
}
.card-title > svg {
  color: var(--muted);
  width: 17px;
  height: 17px;
}
.answer-summary {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  white-space: pre-line;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 5px;
  padding: 4px 7px;
  line-height: 1.5;
  color: var(--teal);
  background: var(--mint);
  white-space: nowrap;
}
.badge svg {
  width: 12px;
  height: 12px;
}
.badge-amber {
  color: var(--amber);
  background: var(--amber-bg);
}
.badge-neutral {
  background: var(--mint);
  color: var(--muted);
}
.identity-card {
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px 19px;
  margin-bottom: 19px;
}
.identity-card.ambiguous,
.identity-card.unresolved {
  background: var(--mint);
  border-color: var(--amber-bg);
}
.identity-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 630;
  color: var(--teal);
  margin-bottom: 7px;
}
.identity-card.ambiguous .identity-heading,
.identity-card.unresolved .identity-heading {
  color: var(--amber);
}
.identity-heading svg {
  width: 16px;
  height: 16px;
}
.identity-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.identity-card.ambiguous p,
.identity-card.unresolved p {
  color: var(--amber);
}
.citation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 19px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--mint);
  color: var(--teal);
  font-size: 10px;
  font-weight: 600;
  margin: 0 2px;
  vertical-align: baseline;
  padding: 0 4px;
}
:where(:root:not([data-input-method="touch"])) .citation:hover {
  background: var(--line);
  border-color: var(--field-border);
}
.evidence-refs {
  display: inline;
  margin-left: 4px;
  white-space: normal;
}
.fact-list {
  margin: 0;
}
.fact-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--mint);
}
.fact-item:first-child {
  padding-top: 0;
}
.fact-item:last-child {
  padding-bottom: 0;
  border: 0;
}
.fact-item dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.fact-item dd {
  font-size: 12px;
  margin: 0;
  line-height: 1.8;
  color: var(--teal);
}
.ingredient-wrap {
  overflow-x: auto;
}
.ingredient-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  min-width: 380px;
  text-align: left;
}
.ingredient-table th {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--line);
}
.ingredient-table th:first-child,
.ingredient-table td:first-child {
  padding-left: 0;
}
.ingredient-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--mint);
  vertical-align: top;
  line-height: 1.7;
  color: var(--muted);
}
.ingredient-table tr:last-child td {
  border: 0;
}
.ingredient-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.ingredient-note {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  max-width: 220px;
  margin-top: 3px;
}
.cas {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  color: var(--muted);
}
.table-note {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.gaps-list {
  padding-left: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.gaps-list li + li {
  margin-top: 7px;
}
.gaps-card {
  background: var(--paper);
  border-color: var(--mint);
}
.gaps-card .card-title h2 {
  color: var(--amber);
}
.gaps-card .card-title svg {
  color: var(--amber);
}
.question-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.question-chip {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  color: var(--teal);
  line-height: 1.6;
}
.question-chip svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
:where(:root:not([data-input-method="touch"])) .question-chip:hover {
  background: var(--mint);
  border-color: var(--field-border);
}
.followup-section {
  margin-top: 28px;
}
.followup-section > h2 {
  font-size: 13px;
  margin-bottom: 12px;
}
.followup-form {
  margin-top: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.followup-form textarea {
  resize: none;
  min-height: 38px;
  max-height: 130px;
  flex: 1;
  border: 0;
  outline: none !important;
  background: transparent;
  padding: 8px 6px;
  font-size: 12px;
  min-width: 0;
}
:root:not([data-input-method="touch"])
  .followup-form:has(textarea:focus-visible) {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
.followup-form .btn {
  height: 36px;
  width: 36px;
  padding: 0;
}
.scope-note {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 22px 0 0;
}
.source-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--mint);
}
.source-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.source-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 9px;
  color: var(--muted);
}
.source-number {
  font-size: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--mint);
  flex-shrink: 0;
}
.source-domain {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.source-top .file-tag {
  font-size: 8px;
  background: var(--mint);
  color: var(--amber);
  border-radius: 3px;
  padding: 1px 4px;
}
.source-title {
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 0;
  line-height: 1.6;
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
}
:where(:root:not([data-input-method="touch"])) .source-title:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source-bottom {
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: space-between;
}
.source-bottom span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.source-bottom svg {
  width: 10px;
  height: 10px;
}
.source-bottom a {
  color: var(--muted);
}
.source-excerpt {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.source-list-full .source-card {
  padding: 18px 0;
}
.source-list-full .source-title {
  font-size: 13px;
}
.source-list-full .source-top {
  font-size: 10px;
}
.source-list-full .source-bottom {
  font-size: 10px;
}
.research-notes textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  padding: 13px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 12px;
}
.notes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}
.spinner {
  width: 15px;
  height: 15px;
  border: 1.7px solid var(--line);
  border-top-color: var(--muted);
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
.live-hint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 15px;
}
.error-box {
  padding: 25px;
  border: 1px solid var(--amber-bg);
  border-radius: 8px;
  background: var(--mint);
  margin-bottom: 20px;
}
.error-box h2 {
  font-size: 15px;
  color: var(--amber);
}
.error-box p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--amber);
  margin: 10px 0 18px;
}
.empty-state {
  text-align: center;
  padding: 55px 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.empty-state > .icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--muted);
  margin-bottom: 18px;
}
.empty-state h2 {
  font-size: 17px;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  max-width: 365px;
  margin: 10px auto 22px;
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 360px;
  flex: 1;
  color: var(--muted);
}
.library-search svg {
  width: 16px;
  height: 16px;
}
.library-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 12px;
  min-width: 0;
}
.library-filter {
  display: flex;
  background: var(--mint);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.library-filter button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 11px;
}
.library-filter button.active {
  background: white;
  color: var(--teal);
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.library-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
:where(:root:not([data-input-method="touch"])) .library-card:hover {
  border-color: var(--field-border);
}
.library-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.library-card .icon-box {
  width: 32px;
  height: 35px;
  border: 1px solid var(--mint);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.library-card .icon-box svg {
  width: 16px;
  height: 16px;
}
.library-card h2 {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.library-card h2 a {
  color: var(--ink);
}
.library-card > p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.library-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 21px;
  gap: 12px;
}
.library-card-footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.library-card-footer svg {
  width: 12px;
  height: 12px;
}
.form-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.7;
}
.note-saved {
  color: var(--muted);
}
dialog {
  border: 0;
  padding: 0;
  box-shadow: 0 20px 100px #22363833;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #22363859;
}
#source-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 530px;
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
}
.dialog-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 25px;
  border-bottom: 1px solid var(--line);
}
.dialog-header .eyebrow {
  font-size: 9px;
  margin-bottom: 9px;
}
.dialog-header h2 {
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.dialog-header .icon-button {
  margin-top: -5px;
  margin-right: -8px;
}
.dialog-scroll {
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  flex: 1;
}
.source-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 19px;
}
.source-detail-url {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
  line-height: 1.8;
  margin-bottom: 20px;
}
.source-quote {
  background: var(--mint);
  border-left: 3px solid var(--field-border);
  padding: 15px;
  margin: 0 0 20px;
  border-radius: 0 7px 7px 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--teal);
  white-space: pre-wrap;
}
.source-text-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 20px 0 12px;
}
.source-full-text {
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: inherit;
}
.source-full-text mark {
  background: var(--line);
  color: var(--teal);
  padding: 2px 0;
}
.dialog-footer {
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}
.dialog-footer .btn {
  font-size: 11px;
}
#help-dialog {
  border-radius: 10px;
  max-width: 540px;
  width: calc(100% - 30px);
  max-height: 85dvh;
}
.help-body {
  padding: 24px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.help-body h3 {
  font-size: 13px;
  color: var(--teal);
  margin: 17px 0 6px;
}
.help-body h3:first-child {
  margin-top: 0;
}
.help-body p + p {
  margin-top: 10px;
}
.keyboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
}
.keyboard-row kbd {
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: inherit;
  color: var(--muted);
  font-size: 10px;
}
.help-links {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
  font-size: 10px;
}
.help-links a {
  display: block;
  margin-top: 7px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 116px);
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 8px;
  box-shadow: 0 5px 20px #22363822;
  font-size: 12px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100% - 30px);
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.loading-page {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 50px 0;
  font-size: 13px;
}
.connection-error {
  background: var(--amber-bg);
  padding: 10px 15px;
  color: var(--amber);
  font-size: 11px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.print-only {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1150px) {
  .card {
    padding: 20px;
  }
  .heading-actions .btn-label {
    display: none;
  }
  .heading-actions .btn {
    padding: 9px;
  }
  .example-card {
    padding: 16px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
}
@media (max-width: 950px) {
  .research-heading .heading-actions {
    max-width: 85px;
  }
  .example-grid {
    gap: 9px;
  }
  .example-card {
    padding: 14px;
    min-height: 162px;
  }
  .example-card strong {
    font-size: 11px;
  }
  .example-card p {
    font-size: 10px;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  :root {
    font-size: 14px;
  }
  .search-input-wrap {
    padding: 20px 17px 9px;
    gap: 10px;
  }
  .search-input-wrap > svg {
    width: 18px;
    height: 18px;
    margin-top: 4px;
  }
  .search-text {
    font-size: 16px;
    min-height: 91px;
    line-height: 1.65;
  }
  .search-tools {
    padding: 7px 12px 12px;
    gap: 7px;
  }
  .search-tools-left {
    gap: 0;
  }
  .search-submit {
    font-size: 11px !important;
    padding: 9px 12px !important;
    gap: 8px !important;
  }
  .region-select {
    font-size: 10px;
    max-width: 91px;
  }
  .tool-divider {
    margin: 0 4px;
  }
  .focus-row {
    gap: 6px;
    margin-top: 14px;
  }
  .focus-label {
    display: none;
  }
  .focus-chip {
    font-size: 10px;
    padding: 7px 9px;
    gap: 5px;
  }
  .focus-chip svg {
    width: 12px;
    height: 12px;
  }
  .search-footnote {
    font-size: 9px;
    gap: 5px;
    margin-top: 12px;
    align-items: flex-start;
  }
  .search-footnote svg {
    margin-top: 2px;
    flex-shrink: 0;
  }
  .section-top {
    margin-bottom: 13px;
  }
  .section-top h2 {
    font-size: 13px;
  }
  .example-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .example-card {
    padding: 14px 15px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 11px;
    min-height: 0;
    align-items: center;
  }
  .example-icon {
    grid-row: 1/3;
    width: 32px;
    height: 35px;
    margin: 0;
  }
  .example-card strong {
    font-size: 12px;
    margin: 0;
  }
  .example-card p {
    font-size: 10px;
    margin-top: 3px;
  }
  :where(:root:not([data-input-method="touch"])) .example-card:hover {
    transform: none;
  }
  .empty-recent {
    padding: 18px 14px;
    font-size: 11px;
  }
  .empty-recent p {
    font-size: 10px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 24px;
    letter-spacing: -.02em;
  }
  .page-heading .eyebrow {
    font-size: 9px;
    margin-bottom: 9px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .research-heading {
    margin-bottom: 15px;
  }
  .research-query {
    font-size: 11px;
    margin-top: 10px;
    line-height: 1.8;
  }
  .research-meta {
    font-size: 9px;
    gap: 11px;
    margin-top: 12px;
  }
  .heading-actions {
    gap: 5px;
  }
  .heading-actions .btn {
    height: 34px;
    width: 34px;
    padding: 7px;
  }
  .heading-actions .btn svg {
    width: 16px;
    height: 16px;
  }
  .research-heading .heading-actions {
    max-width: 74px;
  }
  .card {
    padding: 19px 17px;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  .card-title h2 {
    font-size: 13px;
  }
  .card-title {
    margin-bottom: 13px;
  }
  .answer-summary {
    font-size: 14px;
    line-height: 1.85;
  }
  .identity-card {
    padding: 15px 16px;
    margin-bottom: 17px;
  }
  .identity-card p {
    font-size: 11px;
    line-height: 1.9;
  }
  .identity-heading {
    font-size: 11px;
  }
  .fact-item dd {
    font-size: 12px;
  }
  .fact-item dt {
    font-size: 10px;
  }
  .ingredient-table {
    font-size: 11px;
    min-width: 350px;
  }
  .ingredient-table th {
    font-size: 8px;
  }
  .ingredient-table td {
    padding: 12px 8px;
  }
  .table-note {
    font-size: 9px;
  }
  .gaps-list {
    font-size: 11px;
  }
  .source-title {
    font-size: 12px;
  }
  .source-top {
    font-size: 10px;
  }
  .source-bottom {
    font-size: 10px;
  }
  .source-card {
    padding: 16px 0;
  }
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .library-search {
    max-width: none;
    padding: 11px 12px;
  }
  .library-search input {
    font-size: 16px;
  }
  .library-filter {
    align-self: flex-start;
  }
  .library-filter button {
    padding: 7px 13px;
  }
  .library-card {
    padding: 19px;
  }
  .library-card h2 {
    font-size: 14px;
  }
  .library-grid {
    gap: 13px;
  }
  .research-notes textarea {
    font-size: 16px;
    line-height: 1.8;
  }
  .notes-footer {
    font-size: 9px;
  }
  .question-chip {
    font-size: 10px;
    padding: 9px 10px;
  }
  .followup-form textarea {
    font-size: 16px;
  }
  .scope-note {
    font-size: 9px;
  }
  .lookup-row {
    padding: 14px 0;
  }
  .lookup-row h3 {
    font-size: 12px;
  }
  .lookup-row p {
    font-size: 9px;
  }
  #source-dialog {
    width: 100%;
    border-radius: 10px 10px 0 0;
    height: 94dvh;
    inset: auto 0 0 0;
  }
  #toast {
    bottom: 85px;
    left: 50%;
    font-size: 11px;
  }
  .dialog-header {
    padding: 22px 20px;
  }
  .dialog-scroll {
    padding: 20px;
  }
  .dialog-footer {
    padding: 15px 20px;
  }
  .source-full-text {
    font-size: 12px;
  }
  .source-quote {
    font-size: 13px;
  }
  .photo-preview {
    margin: 0 15px 10px;
  }
  .error-box {
    padding: 21px 18px;
  }
  .empty-state {
    padding: 36px 22px;
  }
  .connection-error {
    font-size: 10px;
  }
}
@media (max-width: 370px) {
  .focus-chip {
    font-size: 9px;
    padding: 7px 8px;
  }
  .focus-row {
    gap: 5px;
  }
  .search-submit {
    padding: 9px 10px !important;
  }
  .region-select {
    max-width: 81px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.side-empty {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 12px;
  line-height: 1.8;
}
.clipboard-helper {
  position: fixed;
  top: -9999px;
}
/* Reading contrast takes priority over visual quiet in source and result text. */
.source-title {
  color: var(--teal);
  font-size: 12px;
}
.source-domain,
.source-bottom {
  color: var(--muted);
}
.fact-item dt {
  color: var(--muted);
  font-size: 11px;
}
.fact-item dd {
  font-size: 13px;
  color: var(--ink);
}
.ingredient-table {
  font-size: 13px;
}
.ingredient-note {
  color: var(--muted);
  font-size: 11px;
}
.ingredient-table th {
  color: var(--muted);
  font-size: 10px;
}
.table-note {
  color: var(--muted);
  font-size: 11px;
}
.gaps-list {
  color: var(--amber);
  font-size: 13px;
}
.source-excerpt {
  color: var(--muted);
}
.source-full-text {
  color: var(--teal);
  font-size: 12px;
}
.identity-card p {
  color: var(--teal);
  font-size: 13px;
}
.identity-card.ambiguous p,
.identity-card.unresolved p {
  color: var(--amber);
}
.identity-heading {
  font-size: 13px;
}
.scope-note {
  color: var(--muted);
  font-size: 11px;
}
.library-card > p {
  color: var(--muted);
  font-size: 12px;
}
.source-detail-meta {
  color: var(--muted);
}
.source-detail-url {
  font-size: 12px;
}
.example-card p {
  color: var(--muted);
  font-size: 12px;
}
.source-top {
  font-size: 10px;
}
.search-footnote {
  color: var(--muted);
}
.research-meta {
  color: var(--muted);
}
.search-text::placeholder {
  color: var(--muted);
}
.recent-link {
  font-size: 12px;
}
.notes-footer {
  color: var(--muted);
}
.help-body {
  color: var(--teal);
}
.citation {
  min-width: 24px;
  height: 22px;
  font-size: 11px;
}
.source-card {
  padding: 15px 0;
}
@media (max-width: 700px) {
  .source-title {
    font-size: 13px;
  }
  .source-bottom {
    font-size: 11px;
  }
  .source-domain {
    font-size: 11px;
  }
  .identity-card p {
    font-size: 12px;
  }
  .identity-heading {
    font-size: 12px;
  }
  .fact-item dd {
    font-size: 13px;
  }
  .gaps-list {
    font-size: 12px;
  }
  .ingredient-table {
    font-size: 12px;
  }
  .ingredient-note {
    font-size: 11px;
  }
  .table-note {
    font-size: 11px;
  }
  .scope-note {
    font-size: 10px;
  }
  .example-card p {
    font-size: 11px;
  }
  .source-full-text {
    font-size: 13px;
  }
  .source-quote {
    font-size: 13px;
  }
  .citation {
    min-width: 28px;
    min-height: 27px;
    font-size: 11px;
  }
  .source-title {
    min-height: 28px;
  }
  .question-chip {
    font-size: 11px;
    min-height: 40px;
  }
  .focus-chip {
    min-height: 35px;
  }
  .icon-button {
    min-width: 40px;
    min-height: 40px;
  }
}
.search-text {
  min-height: 56px;
}
.search-input-wrap {
  padding-top: 21px;
  padding-bottom: 9px;
}
.search-tools {
  padding-bottom: 13px;
}
.search-footnote {
  font-size: 10px;
  margin-top: 10px;
}
.product-choices {
  margin: 24px 0 25px;
}
.product-choices .section-top {
  margin-bottom: 12px;
}
.product-choices .section-top h2 {
  font-size: 14px;
}
.product-choices .section-top > span {
  font-size: 11px;
}
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.product-choice {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  min-width: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
:where(:root:not([data-input-method="touch"])) .product-choice:hover,
:where(:root:not([data-input-method="touch"])) .product-choice:focus-visible {
  border-color: var(--field-border);
}
.product-choice.choosing {
  border-color: var(--teal);
  background: var(--mint);
}
.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  min-width: 76px;
  height: 102px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-image-fallback {
  width: 100%;
  height: 100%;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 8px;
}
.product-image-fallback svg {
  width: 27px;
  height: 27px;
}
.product-choice-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}
.product-brand {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.product-choice strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.product-variant {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.product-drill {
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}
.product-drill svg {
  width: 13px;
  height: 13px;
}
.single-product {
  max-width: 600px;
}
.single-product .product-image {
  height: 85px;
  width: 70px;
  min-width: 70px;
}
.single-product .product-choice {
  padding: 13px 17px;
  gap: 18px;
}
.single-product .product-choice strong {
  font-size: 15px;
}
.single-product .product-brand {
  font-size: 11px;
}
.single-product .product-drill {
  margin-top: 3px;
}
.match-details {
  font-size: 11px;
  margin-top: 10px;
  color: var(--amber);
}
.match-details summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  min-height: 28px;
  width: fit-content;
}
.match-details summary svg {
  width: 13px;
  height: 13px;
}
.match-details summary::after {
  content: "+";
  margin-left: 3px;
}
.match-details[open] summary::after {
  content: "−";
}
.match-details p {
  background: var(--mint);
  border: 1px solid var(--amber-bg);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 7px;
}
.back-to-results {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  min-height: 25px;
}
.back-to-results svg {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}
.research-heading h1 {
  font-size: 27px;
}
.research-meta {
  margin-top: 10px;
  font-size: 10px;
}
.selected-product-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 20px 0;
  font-size: 12px;
  background: var(--mint);
  color: var(--teal);
}
.selected-product-line > .badge {
  margin-left: auto;
}
.selected-product-line > svg {
  width: 17px;
  height: 17px;
}
.brief-card .answer-summary {
  font-size: 14px;
  line-height: 1.85;
}
.compact-gaps {
  padding: 15px 18px;
}
.compact-gaps > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  color: var(--amber);
}
.compact-gaps > summary > svg {
  width: 15px;
  height: 15px;
}
.compact-gaps > summary > span {
  margin-left: auto;
  font-size: 10px;
}
.compact-gaps .gaps-list {
  margin-top: 15px;
  font-size: 12px;
}
.compact-gaps > summary::after {
  content: "+";
  margin-left: 6px;
}
.compact-gaps[open] > summary::after {
  content: "−";
}
.followup-section {
  margin-top: 19px;
}
.question-chips {
  margin-top: 11px;
}
.question-chip {
  font-size: 10px;
  padding: 7px 10px;
  max-width: 100%;
}
.ingredient-document + .ingredient-document {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.document-heading {
  margin-bottom: 15px;
}
.document-name {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  line-height: 1.7;
}
.document-name > svg {
  height: 15px;
  width: 15px;
  margin-top: 3px;
  flex-shrink: 0;
}
.document-name > svg:last-child {
  color: var(--muted);
  width: 12px;
}
.document-heading > p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin: 5px 0 7px;
  font-variant-numeric: tabular-nums;
}
.document-note {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
}
.document-note summary {
  cursor: pointer;
}
.document-note p {
  margin-top: 7px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 11px;
}
.disclosure-empty {
  font-size: 12px;
  color: var(--muted);
}
.ingredient-card .ingredient-table td {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ingredient-table {
  table-layout: fixed;
  min-width: 340px;
}
.ingredient-table th:first-child {
  width: 53%;
}
.ingredient-table th:nth-child(2) {
  width: 32%;
}
.ingredient-table th:last-child {
  width: 15%;
}
.source-card .source-excerpt {
  display: none;
}
.library-card > p {
  -webkit-line-clamp: 2;
}
.library-card {
  min-height: 190px;
}
.focus-label {
  display: none;
}
@media (max-width: 1150px) {
  .product-choice {
    gap: 11px;
    padding: 13px;
  }
  .product-image {
    width: 65px;
    min-width: 65px;
    height: 94px;
  }
  .research-heading h1 {
    font-size: 25px;
  }
}
@media (max-width: 700px) {
  .search-text {
    min-height: 62px;
    font-size: 16px;
  }
  .search-input-wrap {
    padding: 18px 15px 7px;
  }
  .search-tools {
    padding: 4px 11px 10px;
  }
  .search-submit {
    min-width: 96px !important;
  }
  .search-footnote {
    font-size: 9px;
    margin-top: 9px;
  }
  .focus-row {
    gap: 7px;
    margin-top: 12px;
  }
  .focus-chip {
    font-size: 11px;
    padding: 6px 10px;
  }
  .focus-chip svg {
    height: 13px;
    width: 13px;
  }
  .product-choices {
    margin: 21px 0 20px;
  }
  .product-grid {
    gap: 10px;
  }
  .product-choice {
    padding: 13px;
    gap: 14px;
    align-items: center;
  }
  .product-image {
    width: 73px;
    min-width: 73px;
    height: 105px;
  }
  .product-choice strong {
    font-size: 14px;
    line-height: 1.5;
  }
  .product-variant {
    font-size: 11px;
  }
  .product-brand {
    font-size: 10px;
  }
  .product-drill {
    font-size: 11px;
    margin-top: 5px;
  }
  .single-product .product-choice {
    padding: 12px 14px;
  }
  .single-product .product-image {
    width: 62px;
    min-width: 62px;
    height: 85px;
  }
  .single-product .product-choice strong {
    font-size: 14px;
  }
  .product-choices .section-top {
    margin-bottom: 10px;
  }
  .product-choices .section-top h2 {
    font-size: 13px;
  }
  .product-choices .section-top > span {
    font-size: 10px;
  }
  .match-details {
    margin-top: 1px;
    font-size: 11px;
  }
  .match-details p {
    font-size: 11px;
    padding: 11px 13px;
  }
  .research-heading h1 {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: -.02em;
  }
  .research-heading {
    align-items: flex-start;
    margin-bottom: 17px;
  }
  .research-heading .heading-actions {
    max-width: 72px;
  }
  .research-meta {
    gap: 8px;
    font-size: 9px;
    line-height: 1.5;
  }
  .research-meta > span > svg {
    width: 11px;
    height: 11px;
  }
  .back-to-results {
    font-size: 11px;
    margin-bottom: 13px;
    min-height: 30px;
  }
  .brief-card {
    padding: 17px;
  }
  .brief-card .answer-summary {
    font-size: 13px;
    line-height: 1.85;
  }
  .card {
    padding: 18px 16px;
  }
  .fact-item {
    padding: 10px 0;
  }
  .fact-item dd {
    font-size: 12px;
  }
  .card-title h2 {
    font-size: 13px;
  }
  .ingredient-document + .ingredient-document {
    margin-top: 20px;
    padding-top: 18px;
  }
  .document-name {
    font-size: 12px;
  }
  .document-heading > p {
    font-size: 10px;
  }
  .ingredient-card .ingredient-table td {
    font-size: 11px;
    padding: 10px 6px;
  }
  .ingredient-table {
    min-width: 310px;
  }
  .ingredient-table th {
    font-size: 9px;
    padding-right: 6px;
    padding-left: 6px;
  }
  .ingredient-note {
    font-size: 10px;
  }
  .ingredient-card .citation {
    min-width: 25px;
    min-height: 26px;
    margin: 0;
  }
  .compact-gaps {
    padding: 14px 15px;
  }
  .compact-gaps > summary {
    font-size: 12px;
  }
  .followup-form {
    margin-top: 0;
  }
  .followup-form textarea {
    font-size: 16px;
  }
  .question-chips {
    display: none;
  }
  .selected-product-line {
    font-size: 11px;
    padding: 13px 14px;
    align-items: flex-start;
  }
  .selected-product-line > .badge {
    display: none;
  }
  .source-title {
    font-size: 12px;
  }
  .source-bottom {
    font-size: 10px;
  }
  .source-domain {
    font-size: 10px;
  }
  .source-card {
    padding: 13px 0;
  }
}
@media (max-width: 700px) {
  .research-heading .heading-actions {
    display: flex;
    max-width: none;
    width: auto;
    min-width: 34px;
  }
  .research-heading .heading-actions .btn {
    width: 34px;
    height: 34px;
  }
  .product-choices {
    margin-top: 18px;
  }
  .product-choice {
    padding: 12px;
  }
  .product-image {
    height: 91px;
  }
  .research-meta {
    font-size: 10px;
  }
  .research-heading h1 {
    font-size: 22px;
  }
  .document-note summary {
    min-height: 26px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .document-note summary::before {
    content: "›";
    font-size: 15px;
  }
  .document-note[open] summary::before {
    content: "⌄";
  }
}
.product-choice.is-selected {
  border-color: var(--field-border);
  background: var(--paper);
  cursor: default;
}
:where(:root:not([data-input-method="touch"])) .product-choice.is-selected:hover {
  box-shadow: none;
}
@media (max-width: 700px) {
  .ingredient-card.preview .ingredient-document:nth-of-type(n + 2) {
    display: none;
  }
  .ingredient-card.preview > .btn {
    margin-top: 13px;
    padding: 9px 0;
    white-space: normal;
    text-align: left;
    min-height: 40px;
    font-size: 11px;
  }
  .product-image {
    height: 93px;
  }
}
.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.search-input-wrap {
  min-height: 70px;
  padding: 0 10px 0 22px;
  align-items: center;
}
.search-input-wrap > svg {
  margin-top: 0;
}
.search-text {
  height: 68px;
  min-height: 0;
  line-height: 1.4;
}
.search-tools {
  padding: 10px 13px 10px 0;
}
.photo-preview {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 14px 14px;
}
@media (max-width: 700px) {
  .search-box {
    display: block;
  }
  .search-input-wrap {
    min-height: 58px;
    padding: 0 15px;
  }
  .search-input-wrap > svg {
    margin-top: 0;
  }
  .search-text {
    height: 58px;
    min-height: 0;
    line-height: 1.35;
  }
  .search-tools {
    border-top: 1px solid var(--line);
    padding: 7px 10px;
  }
  .photo-preview {
    margin: 0 10px 8px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.result-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  margin-bottom: 17px;
  border: 1px solid var(--line);
  background: var(--mint);
  border-radius: 8px;
}
.result-scope.ambiguous {
  background: var(--amber-bg);
  border-color: var(--amber-bg);
}
.result-scope > div {
  min-width: 0;
}
.result-scope strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.result-scope span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.ingredient-card .card-title {
  margin-bottom: 16px;
}
.document-scope {
  font-size: 10px;
  color: var(--muted);
}
.ingredient-card .document-name {
  font-size: 11px;
  font-weight: 400;
  gap: 6px;
  margin-bottom: 8px;
}
.ingredient-document > .document-heading {
  display: flow-root;
}
.ingredient-role {
  display: block;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
  font-weight: 600;
}
.active-ingredient td {
  background: var(--mint);
}
.ingredient-card .active-ingredient td:nth-child(2) {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.ingredient-card .ingredient-table {
  min-width: 0;
  width: 100%;
}
.ingredient-card .ingredient-table th:first-child {
  width: 50%;
}
.ingredient-card .ingredient-table th:nth-child(2) {
  width: 37%;
}
.ingredient-card .ingredient-table th:last-child {
  width: 13%;
}
.ingredient-card .ingredient-table td {
  vertical-align: top;
}
.ingredient-card .ingredient-table th {
  white-space: normal;
}
.inactive-ingredients,
.other-source-documents {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}
.inactive-ingredients > summary,
.other-source-documents > summary {
  cursor: pointer;
  padding: 7px 0;
  font-size: 12px;
  color: var(--teal);
}
.inactive-ingredients > summary span,
.other-source-documents > summary span {
  margin-left: 8px;
  color: var(--muted);
}
.ingredient-document + .ingredient-document {
  margin-top: 22px;
  padding-top: 20px;
}
@media (max-width: 700px) {
  .research-heading {
    margin-bottom: 12px;
  }
  .research-heading h1 {
    font-size: 20px;
  }
  .result-scope {
    padding: 10px 12px;
    margin-bottom: 10px;
  }
  .result-scope strong {
    font-size: 11px;
  }
  .result-scope span {
    font-size: 10px;
  }
  .ingredient-card {
    padding: 15px 13px;
  }
  .ingredient-card .ingredient-table td {
    font-size: 12px;
    padding: 10px 5px;
  }
  .ingredient-card .active-ingredient td:nth-child(2) {
    font-size: 14px;
  }
  .ingredient-card .ingredient-table th {
    font-size: 9px;
  }
  .ingredient-card .ingredient-note {
    font-size: 9px;
  }
  .ingredient-card .ingredient-table th:first-child {
    width: 50%;
  }
  .ingredient-card .ingredient-table th:nth-child(2) {
    width: 36%;
  }
  .ingredient-card .ingredient-table th:last-child {
    width: 14%;
  }
}
@media print {
  .heading-actions,
.tabs,
.followup-section,
.question-chips,
#toast,
dialog,
.research-notes,
.product-drill {
    display: none !important;
  }
  .card,
  .identity-card {
    break-inside: avoid;
    box-shadow: none;
  }
  .source-card {
    break-inside: avoid;
  }
  .print-only {
    display: block;
  }
  body {
    background: white;
    font-size: 11px;
  }
}

/* Nomenkey reading and control conventions. */
h1, h2, h3, h4 { font-weight: 600; }
table, time, .pro-row-phone, .pro-contact-head h1, .pro-submitted-at,
.browse-result-count, .research-session-meta, .pro-row-meta, .pro-row-foot,
.family-amount, .family-count, .collection-amount, .union-amount {
  font-variant-numeric: tabular-nums;
}
::placeholder { color: var(--muted); opacity: 1; }
:root:not([data-input-method="touch"]) .btn-primary:focus-visible {
  outline-color: var(--teal);
  box-shadow: 0 0 0 3px white;
}
