:root {
  --ink: #0b1b2b;
  --ink-soft: #203247;
  --paper: #f4f2ed;
  --paper-deep: #ebe8e0;
  --surface: #fffefa;
  --surface-blue: #f3f6f7;
  --line: #d8d7d1;
  --line-strong: #b9c0c3;
  --muted: #68727c;
  --muted-light: #8b9299;
  --teal: #346f69;
  --teal-dark: #285953;
  --gold: #b68a3e;
  --gold-light: #e9c477;
  --red: #a13e3e;
  --amber: #9a681d;
  --green: #34705d;
  --blue: #3a607d;
  --shadow: 0 26px 70px rgba(15, 31, 47, 0.11);
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Iowan Old Style", Baskerville, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 11%, rgba(52, 111, 105, 0.08), transparent 27rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.legal-term-label {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 100%;
  vertical-align: middle;
}

.legal-help-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -3px 0;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--teal-dark);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.legal-help-button > span {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.legal-help-button:hover,
.legal-help-button[aria-expanded="true"] {
  background: rgba(52, 111, 105, 0.1);
}

.legal-help-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.legal-term-tooltip {
  position: fixed;
  z-index: 1000;
  width: min(22rem, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow: auto;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(11, 27, 43, 0.16);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.legal-term-tooltip[hidden] {
  display: none;
}

.citation-source-checks {
  display: grid;
  gap: 0.35rem;
  margin: 0.4rem 0;
  padding-left: 1.1rem;
  font-size: 0.72rem;
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.25rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 3rem, 1380px);
  margin: 0 auto;
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(11, 27, 43, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  fill: none;
  color: var(--teal);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-wordmark {
  white-space: nowrap;
  line-height: 1;
}

.brand-wordmark > span {
  color: var(--teal-dark);
}

.brand-product {
  margin-left: 0.15rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line-strong);
  color: var(--teal-dark);
  letter-spacing: 0.11em;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions,
.legal-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legal-nav,
.footer-links {
  font-size: 0.76rem;
  font-weight: 650;
}

.legal-nav a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-underline-offset: 0.22rem;
}

.experimental-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(154, 104, 29, 0.26);
  border-radius: 999px;
  background: rgba(182, 138, 62, 0.07);
  color: #79521c;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.experimental-badge::before {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(52, 111, 105, 0.1);
}

main {
  overflow: hidden;
}

.hero {
  width: min(100% - 3rem, 1380px);
  margin: 0 auto;
  padding: clamp(4.25rem, 8vw, 7.5rem) 0 clamp(3.2rem, 6vw, 5.25rem);
}

.hero::before {
  position: absolute;
  right: max(1rem, calc((100vw - 1380px) / 2));
  top: 8rem;
  width: clamp(9rem, 18vw, 17rem);
  height: clamp(9rem, 18vw, 17rem);
  border: 1px solid rgba(11, 27, 43, 0.08);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2.1rem var(--paper),
    inset 0 0 0 calc(2.1rem + 1px) rgba(11, 27, 43, 0.06),
    inset 0 0 0 4.2rem var(--paper),
    inset 0 0 0 calc(4.2rem + 1px) rgba(11, 27, 43, 0.045);
  content: "";
  pointer-events: none;
}

.hero-eyebrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 50rem;
  margin-bottom: 1.8rem;
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.eyebrow-rule {
  width: 2.5rem;
  height: 1px;
  background: rgba(52, 111, 105, 0.45);
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 61rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.65rem, 6.2vw, 5.7rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.99;
}

.hero p {
  position: relative;
  z-index: 1;
  max-width: 47rem;
  margin: 1.7rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.55vw, 1.24rem);
  line-height: 1.65;
}

.experimental-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  width: min(100% - 3rem, 1380px);
  margin: 0 auto 1.1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(154, 104, 29, 0.2);
  border-radius: 0.4rem;
  background: rgba(255, 254, 250, 0.7);
}

.experimental-notice p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.7;
}

.experimental-notice a {
  color: var(--teal-dark);
  font-weight: 650;
  text-underline-offset: 0.2rem;
}

body.has-complete-results .experimental-notice {
  margin-top: 1.5rem;
}

.workbench {
  width: min(100% - 3rem, 1380px);
  margin: 0 auto;
  border: 1px solid rgba(11, 27, 43, 0.16);
  border-radius: 0.45rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
  background: #efede7;
}

.mode-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 4.6rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.28rem;
  background: transparent;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.mode-button:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.48);
}

.mode-button.is-active {
  border-color: rgba(11, 27, 43, 0.1);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(15, 31, 47, 0.05);
}

.mode-button svg {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.mode-button span {
  display: grid;
}

.mode-button strong {
  font-size: 0.94rem;
  font-weight: 700;
}

.mode-button small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(28rem, 0.92fr);
  min-height: 45rem;
}

.query-panel,
.analysis-panel {
  padding: clamp(1.5rem, 3vw, 3.15rem);
}

.query-panel {
  border-right: 1px solid var(--line);
}

.analysis-panel {
  background:
    linear-gradient(rgba(11, 27, 43, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 27, 43, 0.025) 1px, transparent 1px),
    var(--surface-blue);
  background-size: 24px 24px;
}

.panel-heading,
.analysis-topbar,
.results-header,
.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.section-kicker {
  margin: 0 0 0.45rem;
  color: var(--teal-dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.panel-heading h2,
.analysis-topbar h2,
.results-header h2,
.principles h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.sample-button {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  padding: 0.52rem 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(52, 111, 105, 0.5);
  background: transparent;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

.sample-button:hover {
  border-bottom-color: var(--teal-dark);
}

.field-label {
  display: block;
  margin: 2.1rem 0 0.62rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.textarea-wrap {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0.3rem;
  background: #fff;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.textarea-wrap:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(52, 111, 105, 0.12);
}

textarea {
  display: block;
  width: 100%;
  min-height: 22rem;
  resize: vertical;
  padding: 1.2rem 1.25rem;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.72;
}

textarea::placeholder {
  color: #92989c;
}

.textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid #e4e3dd;
  background: #faf9f5;
  color: var(--muted-light);
  font-size: 0.68rem;
}

.document-intake {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: rgba(243, 246, 247, 0.55);
}

.document-intake[hidden] {
  display: none;
}

.document-intake-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.document-intake-heading .field-label {
  margin: 0;
}

.document-intake-heading p,
.document-upload-notes p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

#document-intake-summary {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 0.67rem;
  font-weight: 700;
}

.document-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 5.4rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(52, 111, 105, 0.55);
  border-radius: 0.28rem;
  background: #fff;
  color: var(--teal-dark);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.document-dropzone:hover,
.document-dropzone.is-dragover {
  border-color: var(--teal-dark);
  background: rgba(52, 111, 105, 0.045);
}

.document-dropzone:focus-visible {
  outline: 0;
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(52, 111, 105, 0.13);
}

.document-dropzone[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
}

.document-dropzone svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.document-dropzone span {
  display: grid;
  text-align: left;
}

.document-dropzone strong {
  font-size: 0.78rem;
}

.document-dropzone small {
  color: var(--muted);
  font-size: 0.68rem;
}

.document-upload-notes {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.55rem;
}

.document-upload-notes p:last-child {
  color: var(--ink-soft);
}

.document-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.document-list:empty {
  display: none;
}

.document-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(11, 27, 43, 0.12);
  border-radius: 0.25rem;
  background: #fff;
}

.document-item.is-error {
  border-color: rgba(161, 62, 62, 0.3);
  background: rgba(161, 62, 62, 0.035);
}

.document-item-main {
  min-width: 0;
}

.document-item-name {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-item-status {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.65rem;
}

.document-item.is-error .document-item-status {
  color: var(--red);
}

.document-remove {
  align-self: start;
  padding: 0.1rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.document-remove:hover,
.document-remove:focus-visible {
  border-bottom-color: currentColor;
  color: var(--red);
}

.document-remove:disabled {
  opacity: 0.45;
  cursor: default;
}

.document-progress {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 0.2rem;
  border-radius: 999px;
  background: var(--paper-deep);
}

.document-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 120ms ease;
}

.document-item.is-ready .document-progress i {
  background: var(--green);
}

.document-item.is-error .document-progress i {
  background: var(--red);
}

.textarea-wrap.is-over-limit,
.document-intake.is-over-limit {
  border-color: rgba(161, 62, 62, 0.55);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
}

.form-row .field-label {
  margin-top: 1.35rem;
}

.select-wrap {
  position: relative;
}

select {
  width: 100%;
  min-height: 3.35rem;
  appearance: none;
  padding: 0 2.8rem 0 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.3rem;
  outline: 0;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 500;
}

select:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(52, 111, 105, 0.12);
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  pointer-events: none;
  transform: translateY(-50%);
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-width: 13rem;
  min-height: 3.35rem;
  padding: 0 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 0.3rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(11, 27, 43, 0.16);
  transition:
    background 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.primary-button:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 27, 43, 0.2);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button[data-action="cancel"] {
  border-color: var(--red);
  background: #fff;
  color: var(--red);
  box-shadow: none;
}

.primary-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.form-error {
  margin: 0.8rem 0 0;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
}

.privacy-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(154, 104, 29, 0.18);
  border-radius: 0.25rem;
  background: rgba(182, 138, 62, 0.06);
  color: #765a29;
}

.privacy-warning svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  margin-top: 0.08rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.privacy-warning p {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.5;
}

.privacy-warning strong {
  color: #60471e;
}

.legal-consent {
  display: grid;
  gap: 0.62rem;
  margin: 0.85rem 0 0;
  padding: 0.82rem 0.9rem 0.9rem;
  border: 1px solid rgba(11, 27, 43, 0.16);
  border-radius: 0.25rem;
  background: rgba(243, 246, 247, 0.68);
}

.legal-consent legend {
  padding: 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-consent label {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.48;
}

.legal-consent input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0.1rem 0 0;
  accent-color: var(--teal-dark);
}

.legal-consent a {
  color: var(--teal-dark);
  font-weight: 700;
  text-underline-offset: 0.16rem;
}

.analysis-topbar {
  align-items: center;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.timer {
  min-width: 8.2rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--line-strong);
  text-align: right;
}

.timer-label {
  display: block;
  margin-bottom: 0.05rem;
  color: var(--muted-light);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.timer output {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.32rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.timer.is-running output {
  color: var(--teal-dark);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 33rem;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-seal {
  display: grid;
  width: 5.5rem;
  height: 5.5rem;
  place-items: center;
  border: 1px solid rgba(52, 111, 105, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(15, 31, 47, 0.06);
}

.empty-seal svg {
  width: 3.35rem;
  height: 3.35rem;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.empty-state h3 {
  margin: 1.45rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.empty-state p {
  max-width: 26rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.empty-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  color: var(--muted-light);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty-flow i {
  width: 1.2rem;
  height: 1px;
  background: var(--line-strong);
}

.analysis-content {
  padding-top: 1.25rem;
}

.run-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(52, 111, 105, 0.22);
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.88);
}

.run-indicator {
  position: relative;
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
}

.run-status.is-running .run-indicator::before {
  position: absolute;
  inset: -0.32rem;
  border: 1px solid rgba(52, 111, 105, 0.38);
  border-radius: inherit;
  content: "";
  animation: status-pulse 1.7s ease-out infinite;
}

.run-status.is-complete .run-indicator {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 112, 93, 0.1);
}

.run-status.is-error {
  border-color: rgba(161, 62, 62, 0.23);
}

.run-status.is-error .run-indicator {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(161, 62, 62, 0.1);
}

.run-status div {
  display: grid;
  min-width: 0;
}

.run-status strong {
  font-size: 0.8rem;
}

.run-status span:last-child {
  overflow: hidden;
  margin-top: 0.06rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.metric-card {
  display: grid;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.76);
}

.metric-value {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.metric-card.has-value .metric-value {
  animation: metric-in 220ms ease;
}

.metric-label {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.corpus-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid var(--gold);
  background: rgba(182, 138, 62, 0.08);
  color: #6e5526;
  font-size: 0.67rem;
  font-weight: 600;
}

.corpus-note a {
  flex: 0 0 auto;
  margin-left: auto;
  color: inherit;
  font-size: 0.62rem;
  text-underline-offset: 0.16rem;
}

.corpus-note svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.service-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(161, 62, 62, 0.24);
  border-radius: 0.25rem;
  background: rgba(161, 62, 62, 0.065);
  color: var(--red);
}

.service-alert svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-top: 0.08rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.service-alert div {
  display: grid;
}

.service-alert strong {
  font-size: 0.7rem;
}

.service-alert span {
  margin-top: 0.08rem;
  color: #80504e;
  font-size: 0.66rem;
}

.timeline-section {
  margin-top: 1.35rem;
}

.section-heading-row {
  align-items: baseline;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.section-heading-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
}

.section-heading-row span {
  color: var(--muted-light);
  font-size: 0.62rem;
}

.stage-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-item {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.8rem 0 0.35rem;
}

.stage-item:not(:last-child)::after {
  position: absolute;
  top: 2.05rem;
  bottom: -0.3rem;
  left: 0.56rem;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.stage-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-blue);
}

.stage-check {
  display: none;
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.stage-item.is-running .stage-marker {
  border-color: var(--teal);
}

.stage-item.is-running .stage-marker::after {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--teal);
  content: "";
  animation: stage-pulse 1.2s ease-in-out infinite;
}

.stage-item.is-complete .stage-marker {
  border-color: var(--teal);
  background: var(--teal);
}

.stage-item.is-complete .stage-check {
  display: block;
}

.stage-item.is-error .stage-marker {
  border-color: var(--red);
  background: var(--red);
}

.stage-item.is-warning .stage-marker {
  border-color: var(--amber);
  background: rgba(154, 104, 29, 0.08);
}

.stage-item.is-warning .stage-marker::after {
  color: var(--amber);
  content: "!";
  font-size: 0.63rem;
  font-weight: 800;
  line-height: 1;
}

.stage-item.is-error .stage-marker::before,
.stage-item.is-error .stage-marker::after {
  position: absolute;
  width: 0.58rem;
  height: 1px;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.stage-item.is-error .stage-marker::after {
  transform: rotate(-45deg);
}

.stage-copy {
  min-width: 0;
}

.stage-copy > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.stage-label {
  font-size: 0.74rem;
  font-weight: 700;
}

.stage-time {
  flex: 0 0 auto;
  color: var(--muted-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.stage-detail {
  overflow: hidden;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-section {
  width: min(100% - 3rem, 1380px);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
}

.results-header {
  align-items: end;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(11, 27, 43, 0.2);
}

.results-header-actions {
  display: grid;
  justify-items: end;
  gap: 0.7rem;
}

.results-header-actions > p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: right;
}

.secondary-button {
  padding: 0.58rem 0.78rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 750;
}

.secondary-button:hover {
  border-color: var(--teal);
}

.audit-overview {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgba(255, 254, 250, 0.82);
}

.audit-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}

.audit-overview-card {
  display: grid;
  gap: 0.05rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(58, 96, 125, 0.16);
  border-radius: 0.28rem;
  background: rgba(58, 96, 125, 0.035);
}

.audit-overview-card strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.audit-overview-card span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audit-overview-card--problem {
  border-color: rgba(161, 62, 62, 0.22);
  background: rgba(161, 62, 62, 0.045);
}

.audit-overview-card--problem strong {
  color: var(--red);
}

.audit-overview-card--review {
  border-color: rgba(154, 104, 29, 0.23);
  background: rgba(154, 104, 29, 0.045);
}

.audit-overview-card--review strong {
  color: var(--amber);
}

.audit-overview-card--passed {
  border-color: rgba(52, 112, 93, 0.22);
  background: rgba(52, 112, 93, 0.045);
}

.audit-overview-card--passed strong {
  color: var(--green);
}

.audit-overview > p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.report-run-details {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: rgba(255, 254, 250, 0.58);
}

.report-run-details > summary {
  padding: 0.72rem 0.9rem;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}

#report-run-details-body {
  display: grid;
  gap: 0.8rem;
  padding: 0 0.9rem 0.9rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.report-run-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
}

.report-run-metrics dt,
.report-run-metrics dd {
  margin: 0;
  padding: 0.48rem 0.58rem;
}

.report-run-metrics dt {
  border-bottom: 1px solid var(--line);
  color: var(--muted-light);
}

.report-run-metrics dd {
  grid-row: 2;
  color: var(--ink);
  font-weight: 750;
}

.report-run-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0;
  padding-left: 1.1rem;
}

body.has-complete-results .hero,
body.has-complete-results .workbench {
  display: none;
}

body.has-complete-results .results-section {
  margin-top: 2.2rem;
}

.results-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.citation-inventory {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgba(255, 254, 250, 0.82);
}

.citation-inventory-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.citation-inventory-header h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.citation-inventory-header > p,
.citation-inventory-completeness {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.citation-inventory-header > p {
  text-align: right;
}

.citation-inventory-completeness {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(52, 111, 105, 0.045);
}

.citation-inventory-completeness.is-truncated {
  background: rgba(154, 104, 29, 0.08);
  color: #765a29;
  font-weight: 650;
}

.citation-inventory-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
}

.citation-inventory-controls button {
  padding: 0.43rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.22rem;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 0.64rem;
  font-weight: 700;
}

.citation-inventory-controls button:hover:not(:disabled) {
  border-color: var(--teal);
}

.citation-inventory-controls button:disabled {
  opacity: 0.45;
  cursor: default;
}

.citation-inventory-controls output {
  min-width: 4.4rem;
  color: var(--muted);
  font-size: 0.64rem;
  text-align: center;
}

.citation-inventory-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.34fr) minmax(0, 1fr);
  min-height: 18rem;
}

.citation-inventory-index {
  max-height: 36rem;
  overflow: auto;
  border-right: 1px solid var(--line);
}

.citation-index-item {
  display: grid;
  width: 100%;
  gap: 0.18rem;
  padding: 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.citation-index-item:hover,
.citation-index-item.is-active {
  background: rgba(52, 111, 105, 0.065);
}

.citation-index-item.is-active {
  box-shadow: inset 3px 0 var(--teal);
}

.citation-index-item strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.citation-index-item span {
  color: var(--muted);
  font-size: 0.61rem;
}

.citation-inventory-detail {
  min-width: 0;
  padding: 1.15rem;
}

.citation-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.citation-detail-heading h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
}

.citation-detail-heading p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.citation-statuses,
.citation-occurrence-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.case-outcome-badge,
.claim-outcome-badge {
  flex: 0 0 auto;
  padding: 0.32rem 0.52rem;
  border: 1px solid rgba(58, 96, 125, 0.22);
  border-radius: 999px;
  background: rgba(58, 96, 125, 0.06);
  color: var(--blue);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.case-outcome-badge[data-bucket="problem"],
.claim-outcome-badge[data-bucket="problem"] {
  border-color: rgba(161, 62, 62, 0.24);
  background: rgba(161, 62, 62, 0.065);
  color: var(--red);
}

.case-outcome-badge[data-bucket="review"],
.claim-outcome-badge[data-bucket="review"] {
  border-color: rgba(154, 104, 29, 0.25);
  background: rgba(154, 104, 29, 0.065);
  color: var(--amber);
}

.case-outcome-badge[data-bucket="passed"],
.claim-outcome-badge[data-bucket="passed"] {
  border-color: rgba(52, 112, 93, 0.25);
  background: rgba(52, 112, 93, 0.065);
  color: var(--green);
}

.citation-status {
  padding: 0.22rem 0.42rem;
  border: 1px solid rgba(58, 96, 125, 0.22);
  border-radius: 999px;
  background: rgba(58, 96, 125, 0.06);
  color: var(--blue);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.citation-status[data-status="audited"],
.citation-status[data-status="resolved"] {
  border-color: rgba(52, 112, 93, 0.25);
  background: rgba(52, 112, 93, 0.08);
  color: var(--green);
}

.citation-status[data-status="unavailable"],
.citation-status[data-status="not-found"] {
  border-color: rgba(161, 62, 62, 0.22);
  background: rgba(161, 62, 62, 0.06);
  color: var(--red);
}

.citation-status[data-status="not-yet-audited"],
.citation-status[data-status="partially-attempted"],
.citation-status[data-status="partially-audited"],
.citation-status[data-status="ambiguous"],
.citation-status[data-status="provider-limited"],
.citation-status[data-status="not-attempted"] {
  border-color: rgba(154, 104, 29, 0.25);
  background: rgba(154, 104, 29, 0.07);
  color: var(--amber);
}

.citation-occurrences {
  display: grid;
  gap: 0.72rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.citation-occurrence {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(11, 27, 43, 0.1);
  border-left: 3px solid var(--line-strong);
  border-radius: 0.25rem;
  background: #fff;
}

.citation-occurrence[data-bucket="problem"] {
  border-left-color: var(--red);
}

.citation-occurrence[data-bucket="review"] {
  border-left-color: var(--amber);
}

.citation-occurrence[data-bucket="passed"] {
  border-left-color: var(--green);
}

.citation-occurrence-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.citation-occurrence-location {
  display: grid;
  gap: 0.12rem;
  color: var(--teal-dark);
  font-size: 0.62rem;
  font-weight: 700;
}

.citation-occurrence-location span:last-child {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.citation-occurrence-eyebrow {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted-light);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.citation-occurrence .citation-occurrence-claim {
  margin: 0.28rem 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.55;
}

.citation-occurrence-summary {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.5;
}

.citation-finding-dimensions {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.28rem 0.72rem;
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(11, 27, 43, 0.08);
  border-radius: 0.22rem;
  background: rgba(11, 27, 43, 0.018);
  font-size: 0.66rem;
}

.citation-finding-dimensions dt,
.citation-finding-dimensions dd {
  margin: 0;
}

.citation-finding-dimensions dt {
  color: var(--muted-light);
  font-weight: 650;
}

.citation-finding-dimensions dd {
  color: var(--ink-soft);
  font-weight: 750;
}

.citation-finding-dimensions dd[data-bucket="problem"] {
  color: var(--red);
}

.citation-finding-dimensions dd[data-bucket="review"] {
  color: var(--amber);
}

.citation-finding-dimensions dd[data-bucket="passed"] {
  color: var(--green);
}

.citation-check-notice {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.58rem;
  border-left: 2px solid var(--amber);
  background: rgba(154, 104, 29, 0.055);
  color: #765a29;
  font-size: 0.66rem;
  line-height: 1.5;
}

.citation-check-notice[data-tone="problem"] {
  border-left-color: var(--red);
  background: rgba(161, 62, 62, 0.05);
  color: #7c3030;
}

.citation-finding-details {
  margin-top: 0.7rem;
  border-top: 1px solid rgba(11, 27, 43, 0.09);
}

.citation-finding-details > summary,
.citation-technical-details > summary {
  width: fit-content;
  padding-top: 0.58rem;
  color: var(--teal-dark);
  font-size: 0.63rem;
  font-weight: 750;
  cursor: pointer;
}

.citation-finding-detail-body {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.72rem;
}

.citation-finding-detail-body section h5 {
  margin: 0 0 0.22rem;
  color: var(--muted-light);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.citation-finding-detail-body section p,
.citation-technical-details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.58;
}

.citation-source-passage p {
  max-height: 18rem;
  overflow: auto;
  overscroll-behavior: contain;
  padding-left: 0.75rem;
  padding-right: 0.5rem;
  border-left: 2px solid rgba(52, 111, 105, 0.35);
  color: var(--ink-soft) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.citation-finding-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.citation-finding-sources a {
  color: var(--teal-dark);
  font-size: 0.67rem;
  font-weight: 750;
  text-underline-offset: 0.2rem;
}

.citation-technical-details {
  border-top: 1px solid rgba(11, 27, 43, 0.08);
}

.citation-technical-details p {
  padding-top: 0.38rem;
}

.citation-occurrence-identities {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.2rem 0.55rem;
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(11, 27, 43, 0.08);
  font-size: 0.64rem;
  line-height: 1.45;
}

.citation-occurrence-identities dt {
  color: var(--muted);
  font-weight: 750;
}

.citation-occurrence-identities dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.citation-occurrence-note {
  margin: 0.45rem 0 0;
  padding: 0.38rem 0.5rem;
  border-left: 2px solid rgba(52, 111, 105, 0.48);
  background: rgba(52, 111, 105, 0.045);
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.45;
}

.citation-occurrence-note--warning {
  border-left-color: rgba(154, 104, 29, 0.58);
  background: rgba(154, 104, 29, 0.055);
  color: #765a29;
}

.citation-occurrence-claim {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.5;
}

.citation-detail-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-top: 0.75rem;
}

.citation-detail-source {
  display: inline-flex;
  color: var(--teal-dark);
  font-size: 0.67rem;
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

.citation-occurrence-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.citation-occurrence-pager button {
  padding: 0.42rem 0.62rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.22rem;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 0.61rem;
  font-weight: 700;
}

.citation-occurrence-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.citation-occurrence-pager span,
.citation-inventory-empty {
  color: var(--muted);
  font-size: 0.65rem;
}

.citation-inventory-empty {
  margin: 0;
}

.authority-browser {
  margin-top: 1.2rem;
}

.authority-browser-bar,
.packet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.72);
}

.authority-browser-bar {
  border-radius: 0.35rem 0.35rem 0 0;
}

.authority-browser-bar p,
.packet-bar p {
  margin: 0;
}

.authority-browser-bar p {
  display: grid;
  gap: 0.08rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.authority-browser-bar p strong {
  color: var(--ink);
  font-size: 0.75rem;
}

.authority-browser-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.authority-browser-controls button,
.packet-bar button,
.evidence-toggle,
.packet-toggle {
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.22rem;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 0.65rem;
  font-weight: 700;
}

.authority-browser-controls button:hover:not(:disabled),
.packet-bar button:hover:not(:disabled),
.evidence-toggle:hover,
.packet-toggle:hover {
  border-color: var(--teal);
}

.authority-browser-controls button:disabled,
.packet-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.authority-browser-controls output {
  min-width: 4.3rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.64rem;
  text-align: center;
}

.authority-browser-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.36fr) minmax(0, 1fr);
  min-height: 30rem;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #efede7;
}

.authority-index {
  max-height: 52rem;
  overflow-y: auto;
  border-right: 1px solid var(--line);
}

.authority-index-item {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: 0.55rem;
  width: 100%;
  padding: 0.86rem 0.8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.authority-index-item:hover,
.authority-index-item.is-active {
  background: var(--surface);
}

.authority-index-item.is-active {
  box-shadow: inset 3px 0 var(--teal);
}

.authority-index-item > span:first-child {
  color: var(--muted-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
}

.authority-index-item > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.26rem;
}

.authority-index-item strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 0.76rem;
  line-height: 1.34;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authority-index-item small {
  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.4;
}

.authority-detail {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.9rem;
}

.authority-detail .result-card {
  scroll-margin-top: 1rem;
}

.packet-bar {
  border-radius: 0 0 0.35rem 0.35rem;
}

.packet-bar > div {
  display: grid;
  gap: 0.12rem;
  min-width: 12rem;
}

.packet-bar strong {
  font-size: 0.72rem;
}

.packet-bar span,
.packet-bar p {
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.45;
}

.packet-bar p {
  max-width: 31rem;
}

.result-card {
  display: grid;
  grid-template-columns: 0.32rem minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15, 31, 47, 0.055);
}

.result-rail {
  background: var(--blue);
}

.result-card[data-verdict="supported"] .result-rail,
.result-card[data-verdict="good-law"] .result-rail,
.result-card[data-verdict="relevant"] .result-rail {
  background: var(--green);
}

.result-card[data-verdict="unsupported"] .result-rail,
.result-card[data-verdict="contradicted"] .result-rail,
.result-card[data-verdict="overruled"] .result-rail {
  background: var(--red);
}

.result-card[data-verdict="qualified"] .result-rail,
.result-card[data-verdict="overstated"] .result-rail,
.result-card[data-verdict="uncertain"] .result-rail {
  background: var(--amber);
}

.result-body {
  padding: clamp(1.25rem, 2.6vw, 2rem);
}

.result-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.result-identity {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
}

.result-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.64rem;
}

.result-type,
.result-field-label {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.result-citation {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
}

.verdict-badge {
  flex: 0 0 auto;
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(58, 96, 125, 0.25);
  border-radius: 999px;
  background: rgba(58, 96, 125, 0.08);
  color: var(--blue);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.result-card[data-verdict="supported"] .verdict-badge,
.result-card[data-verdict="good-law"] .verdict-badge,
.result-card[data-verdict="relevant"] .verdict-badge {
  border-color: rgba(52, 112, 93, 0.26);
  background: rgba(52, 112, 93, 0.09);
  color: var(--green);
}

.result-card[data-verdict="unsupported"] .verdict-badge,
.result-card[data-verdict="contradicted"] .verdict-badge,
.result-card[data-verdict="overruled"] .verdict-badge {
  border-color: rgba(161, 62, 62, 0.25);
  background: rgba(161, 62, 62, 0.08);
  color: var(--red);
}

.result-card[data-verdict="qualified"] .verdict-badge,
.result-card[data-verdict="overstated"] .verdict-badge,
.result-card[data-verdict="uncertain"] .verdict-badge {
  border-color: rgba(154, 104, 29, 0.27);
  background: rgba(154, 104, 29, 0.08);
  color: var(--amber);
}

.result-claim-wrap,
.result-analysis-wrap,
.evidence-block {
  display: grid;
  grid-template-columns: 8.7rem minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e4e3dd;
}

.result-claim,
.result-evidence,
.result-analysis {
  margin: 0;
}

.result-claim {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.62;
}

.result-provenance {
  margin: 0.3rem 0 0;
  color: var(--teal-dark);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.result-analysis,
.result-evidence {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
}

.result-evidence.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
}

.evidence-toggle {
  margin-top: 0.75rem;
  padding: 0.34rem 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.result-evidence {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(52, 111, 105, 0.35);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #e4e3dd;
}

.confidence-meta,
.relevance-meta,
.model-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted-light);
  font-size: 0.64rem;
}

.confidence-meta strong,
.relevance-meta strong,
.model-meta strong {
  color: var(--ink-soft);
  font-size: 0.67rem;
}

.confidence-track {
  overflow: hidden;
  width: 3.3rem;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--paper-deep);
}

.confidence-fill,
.relevance-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.relevance-fill {
  background: var(--gold);
}

.authority-card-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e4e3dd;
}

.authority-card-actions span {
  color: var(--muted-light);
  font-size: 0.58rem;
}

.packet-toggle[aria-pressed="true"] {
  border-color: var(--teal);
  background: rgba(52, 111, 105, 0.08);
}

.source-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 700;
  text-underline-offset: 0.22rem;
}

.source-link svg {
  width: 0.82rem;
  height: 0.82rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.results-empty {
  margin-top: 1.2rem;
  padding: 3rem 1rem;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.results-empty h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
}

.results-empty p {
  margin: 0.4rem auto 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.principles {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  width: min(100% - 3rem, 1380px);
  margin: clamp(6rem, 11vw, 10rem) auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(11, 27, 43, 0.2);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.7rem);
}

.principles article > span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
}

.principles article h3 {
  margin: 0.8rem 0 0.5rem;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
}

.principles article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 7rem);
  width: min(100% - 3rem, 1380px);
  margin: 0 auto clamp(5rem, 9vw, 8rem);
  padding-top: 3rem;
  border-top: 1px solid rgba(11, 27, 43, 0.2);
  scroll-margin-top: 2rem;
}

.faq-intro h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.faq-intro > p:not(.section-kicker) {
  max-width: 23rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-policy-links {
  display: grid;
  justify-items: start;
  gap: 0.1rem;
  margin-top: 1.3rem;
}

.faq-policy-links a,
.faq-answer a {
  color: var(--teal-dark);
  font-weight: 650;
  text-underline-offset: 0.2rem;
}

.faq-policy-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.8rem;
}

.faq-list {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(15, 31, 47, 0.04);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.5rem;
  padding: 1.2rem 1.5rem;
  border-radius: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  margin: -0.3rem 0.15rem 0 0;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(45deg);
  content: "";
}

.faq-item[open] > summary::after {
  margin-top: 0.3rem;
  transform: rotate(225deg);
}

.faq-item > summary:hover,
.faq-item[open] > summary {
  color: var(--teal-dark);
  background: rgba(52, 111, 105, 0.04);
}

.faq-item > summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -4px;
}

.faq-answer {
  padding: 0.3rem 1.5rem 1.4rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.faq-answer p {
  margin: 0.7rem 0 0;
}

footer {
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 2fr) 1fr;
  align-items: start;
  gap: 2rem;
  padding: 2.4rem max(1.5rem, calc((100vw - 1380px) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.65rem;
  line-height: 1.6;
}

.footer-brand {
  color: #fff;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.25;
  text-decoration: none;
}

.footer-brand span {
  color: #9dc8bd;
}

footer p {
  max-width: 42rem;
  margin: 0;
  text-align: center;
}

footer > span {
  text-align: right;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}

.footer-credit {
  grid-column: 1 / -1;
  max-width: none;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
}

.footer-credit a {
  color: #9dc8bd;
  font-weight: 650;
  text-underline-offset: 0.2rem;
}

.legal-page {
  width: min(100% - 3rem, 980px);
  margin: 0 auto;
  overflow: visible;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 8rem);
}

.legal-hero {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(11, 27, 43, 0.2);
}

.legal-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 5.3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.legal-hero > p:last-child {
  max-width: 48rem;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-callout {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(154, 104, 29, 0.3);
  border-left: 0.32rem solid var(--amber);
  border-radius: 0.3rem;
  background: rgba(255, 254, 250, 0.76);
}

.legal-callout strong {
  color: #60471e;
  font-size: 0.86rem;
}

.legal-callout p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.68;
}

.legal-document {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(15, 31, 47, 0.07);
}

.legal-document section {
  padding: clamp(1.35rem, 3.5vw, 2.3rem);
  border-bottom: 1px solid var(--line);
}

.legal-document section:last-child {
  border-bottom: 0;
}

.legal-document h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.22rem;
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.72;
}

.legal-document p {
  margin: 0.72rem 0 0;
}

.legal-document p:first-of-type {
  margin-top: 0;
}

.legal-document ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.legal-document a,
.legal-back a {
  color: var(--teal-dark);
  font-weight: 650;
  text-underline-offset: 0.2rem;
}

.legal-document .legal-emphasis {
  background: #f5f0e7;
}

.legal-emphasis p {
  color: #263341;
  font-size: 0.74rem;
  font-weight: 620;
  letter-spacing: 0.012em;
}

.legal-back {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(52, 111, 105, 0.35);
  outline-offset: 3px;
}

@keyframes status-pulse {
  from {
    opacity: 0.8;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes stage-pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.65);
  }
}

@keyframes metric-in {
  from {
    opacity: 0.4;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .query-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .analysis-panel {
    min-height: 35rem;
  }

  .empty-state {
    min-height: 25rem;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 2.5rem;
  }

  .authority-browser-grid {
    grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .workbench,
  .results-section,
  .principles,
  .experimental-notice,
  .faq,
  .legal-page {
    width: min(100% - 2rem, 1380px);
  }

  .site-header {
    padding: 1.15rem 0;
  }

  .header-note {
    display: none;
  }

  .header-beta {
    display: none;
  }

  .legal-nav {
    gap: 0.8rem;
    font-size: 0.72rem;
  }

  .experimental-notice {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1rem;
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .faq-intro h2 br {
    display: none;
  }

  .faq-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
  }

  .faq-item > summary {
    padding: 1.1rem;
    font-size: 0.88rem;
  }

  .faq-answer {
    padding: 0.2rem 1.1rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 3.75rem;
  }

  .hero::before {
    display: none;
  }

  .hero-eyebrow span:last-child,
  .eyebrow-rule {
    display: none;
  }

  .hero h1 br {
    display: none;
  }

  .mode-button {
    justify-content: flex-start;
    min-height: 4.25rem;
    padding: 0.65rem 0.8rem;
  }

  .mode-button svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  .mode-button small {
    display: none;
  }

  .query-panel,
  .analysis-panel {
    padding: 1.35rem;
  }

  textarea {
    min-height: 18rem;
  }

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

  .document-intake-heading {
    display: grid;
  }

  .primary-button {
    width: 100%;
  }

  .results-header {
    display: block;
  }

  .results-header-actions {
    justify-items: start;
    margin-top: 0.8rem;
  }

  .results-header-actions > p {
    text-align: left;
  }

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

  .citation-inventory-header,
  .citation-detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .citation-occurrence-top {
    display: grid;
  }

  .claim-outcome-badge {
    width: fit-content;
  }

  .citation-inventory-header > p {
    text-align: left;
  }

  .citation-inventory-grid {
    grid-template-columns: 1fr;
  }

  .citation-inventory-index {
    display: flex;
    max-height: none;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .citation-index-item {
    min-width: 14rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .authority-browser-bar,
  .packet-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .authority-browser-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .authority-browser-grid {
    grid-template-columns: 1fr;
  }

  .authority-index {
    display: flex;
    max-height: none;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .authority-index-item {
    min-width: 14rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .packet-bar p {
    max-width: none;
  }

  .result-topline {
    display: grid;
  }

  .verdict-badge {
    width: max-content;
    margin-left: 2.8rem;
  }

  .result-claim-wrap,
  .result-analysis-wrap,
  .evidence-block {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .result-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .source-link {
    width: 100%;
    margin-left: 0;
  }

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

  .principles article {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1.25rem;
  }

  footer p,
  footer > span,
  .footer-links {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 460px) {
  .brand {
    gap: 0.35rem;
    font-size: 1.5rem;
  }

  .brand-mark {
    width: 1.6rem;
    height: 1.6rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .legal-nav {
    gap: 0.65rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .mode-switcher {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    display: block;
  }

  .sample-button {
    margin-top: 0.8rem;
    padding-left: 0;
  }

  .textarea-footer span:first-child {
    display: none;
  }

  .textarea-footer {
    justify-content: flex-end;
  }

  .analysis-topbar {
    align-items: flex-start;
  }

  .timer {
    min-width: 6.6rem;
    padding-left: 0.7rem;
  }

  .timer output {
    font-size: 1.08rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
