.aigator-detector {
  --agc-ink: #10231b;
  --agc-ink-soft: #304139;
  --agc-muted: #637168;
  --agc-line: #dce5df;
  --agc-line-strong: #c8d5cd;
  --agc-surface: #ffffff;
  --agc-soft: #f5f8f5;
  --agc-green: #176b43;
  --agc-green-dark: #104f32;
  --agc-lime: #b8e66d;
  --agc-ai: #bd5547;
  --agc-human: #178052;
  --agc-uncertain: #b47a1d;
  width: 100%;
  margin: 0 auto;
  color: var(--agc-ink);
  font-family: inherit;
}

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

.aigator-detector .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.aigator-detector__shell {
  overflow: hidden;
  border: 1px solid var(--agc-line);
  border-radius: 19px;
  background: var(--agc-surface);
  box-shadow: 0 18px 58px rgba(25, 56, 39, 0.085);
}

.aigator-detector__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 19px;
  border-bottom: 1px solid #edf1ee;
}

.aigator-detector__heading-copy {
  min-width: 0;
}

.aigator-detector__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--agc-green-dark);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.aigator-detector__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--agc-lime);
  box-shadow: 0 0 0 1px rgba(16, 79, 50, 0.14);
}

.aigator-detector__title {
  margin: 0;
  color: var(--agc-ink);
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.aigator-detector__description {
  max-width: 670px;
  margin: 9px 0 0;
  color: var(--agc-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.aigator-detector__privacy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  border: 1px solid var(--agc-line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fbfdfb;
  color: #526159;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.aigator-detector__privacy span {
  color: var(--agc-green);
  font-size: 0.9rem;
}

.aigator-detector__form {
  padding: 20px 22px 18px;
}

.aigator-detector__workspace {
  position: relative;
  min-height: 410px;
  isolation: isolate;
}

.aigator-detector__textarea {
  display: block;
  width: 100%;
  min-height: 410px;
  max-height: var(--agc-editor-max-height, 520px);
  margin: 0;
  resize: none;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  border: 1px solid var(--agc-line-strong);
  border-radius: 14px;
  padding: 21px 23px;
  background:
    linear-gradient(#ffffff, #ffffff),
    repeating-linear-gradient(180deg, transparent 0 28px, #e9efeb 28px 29px);
  color: var(--agc-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.72;
  transition: height 160ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease, opacity 180ms ease;
}

.aigator-detector__textarea::placeholder {
  color: #89958e;
}

.aigator-detector__textarea[data-scrollable="true"] {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.aigator-detector__textarea:focus {
  outline: none;
  border-color: #6ea887;
  box-shadow: 0 0 0 4px rgba(23, 107, 67, 0.11);
}

.aigator-detector.is-loading .aigator-detector__textarea {
  opacity: 0.32;
  filter: saturate(0.55);
}

.aigator-detector.has-result .aigator-detector__textarea {
  visibility: hidden;
}

.aigator-detector__scan,
.aigator-detector__result {
  position: absolute;
  z-index: 4;
  inset: 0;
  border: 1px solid var(--agc-line-strong);
  border-radius: 14px;
  background: rgba(250, 253, 250, 0.97);
}

.aigator-detector__scan[hidden],
.aigator-detector__result[hidden] {
  display: none !important;
}

.aigator-detector__scan {
  overflow: hidden;
  background: rgba(250, 253, 250, 0.985);
  animation: agc-fade-in 180ms ease-out both;
}

.aigator-detector__scan-copy {
  position: absolute;
  inset: 0 0 82px;
  overflow: hidden;
  border-radius: 13px 13px 7px 7px;
  background:
    radial-gradient(circle at 12% 18%, rgba(184, 230, 109, 0.10), transparent 24%),
    linear-gradient(rgba(252, 254, 252, 0.96), rgba(247, 251, 248, 0.96));
}

.aigator-detector__scan-copy::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 253, 250, 0.18), transparent 12%, transparent 88%, rgba(250, 253, 250, 0.24));
  content: "";
}

.aigator-detector__scan-copy-text {
  position: absolute;
  z-index: 1;
  inset: 0;
  min-height: 100%;
  padding: 21px 23px 34px;
  color: #66756c;
  font: inherit;
  font-size: 1rem;
  line-height: 1.72;
  opacity: 0.78;
  overflow-wrap: anywhere;
  pointer-events: none;
  white-space: pre-wrap;
}

.aigator-detector__scan-trails {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aigator-detector__scan-trail-segment {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184, 230, 109, 0.18), rgba(69, 145, 71, 0.68), rgba(184, 230, 109, 0.16));
  box-shadow: 0 0 8px rgba(69, 145, 71, 0.20);
  opacity: 0;
  pointer-events: none;
}

.aigator-detector__gator {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 48px;
  height: 36px;
  background-image: url("../images/gator-scan-sprite.png");
  background-repeat: no-repeat;
  background-size: 192px 36px;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 5px rgba(16, 55, 32, 0.20));
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  animation: agc-gator-frame 720ms steps(4) infinite;
}

.aigator-detector__gator::after {
  position: absolute;
  right: 7px;
  bottom: -2px;
  width: 24px;
  height: 5px;
  border-radius: 50%;
  background: rgba(23, 107, 67, 0.14);
  filter: blur(2px);
  content: "";
}

.aigator-detector__scan-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(202, 216, 207, 0.9);
  border-radius: 12px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 35px rgba(27, 63, 42, 0.08);
  backdrop-filter: blur(10px);
}

.aigator-detector__scan-kicker {
  color: var(--agc-green);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.aigator-detector__scan-status strong {
  color: var(--agc-ink);
  font-size: 0.98rem;
  font-weight: 650;
}

.aigator-detector__scan-status > span:last-child {
  color: var(--agc-muted);
  font-size: 0.72rem;
}

.aigator-detector__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.aigator-detector__counts {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 15px;
  color: var(--agc-muted);
  font-size: 0.79rem;
}

.aigator-detector__counts strong {
  color: var(--agc-ink);
  font-weight: 650;
}

.aigator-detector__quality {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aigator-detector__quality::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b4beb8;
  content: "";
}

.aigator-detector__quality[data-state="good"]::before,
.aigator-detector__quality[data-state="strong"]::before { background: var(--agc-human); }
.aigator-detector__quality[data-state="error"] { color: #a33c33; }
.aigator-detector__quality[data-state="error"]::before { background: #c94d42; }

.aigator-detector__actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.aigator-detector button.aigator-detector__button {
  appearance: none;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 51px;
  align-items: center;
  gap: 10px;
  margin: 0;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-align: left;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.aigator-detector__button > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.aigator-detector__button strong {
  font-size: 0.87rem;
  font-weight: 680;
}

.aigator-detector__button small {
  font-size: 0.64rem;
  font-weight: 500;
  opacity: 0.7;
}

.aigator-detector__button-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 9px;
  font-size: 0.9rem;
}

.aigator-detector button.aigator-detector__button--free {
  border: 1px solid var(--agc-green);
  background: var(--agc-green);
  color: #fff;
  box-shadow: 0 9px 23px rgba(23, 107, 67, 0.18);
}

.aigator-detector__button--free .aigator-detector__button-icon {
  background: rgba(255, 255, 255, 0.13);
}

.aigator-detector button.aigator-detector__button--free:hover:not(:disabled) {
  background: var(--agc-green-dark);
  transform: translateY(-1px);
}

.aigator-detector button.aigator-detector__button--free:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.aigator-detector button.aigator-detector__button--deep {
  border: 1px solid #cbd7cf;
  background: #fff;
  color: var(--agc-ink);
}

.aigator-detector__button--deep .aigator-detector__button-icon {
  background: #eff4f0;
  color: var(--agc-green);
}

.aigator-detector button.aigator-detector__button--deep:hover {
  border-color: #9fb8a8;
  box-shadow: 0 8px 22px rgba(26, 62, 40, 0.08);
  transform: translateY(-1px);
}

.aigator-detector__button--deep em {
  margin-left: auto;
  border: 1px solid #d9e2dc;
  border-radius: 999px;
  padding: 4px 6px;
  color: #6e7a73;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aigator-detector__error {
  margin: 11px 0 0;
  border-radius: 9px;
  padding: 9px 12px;
  background: #fff1ef;
  color: #9f3d35;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Result: same workspace footprint, no page jump. */
.aigator-detector__result {
  --agc-result: var(--agc-uncertain);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  animation: agc-result-in 220ms ease-out both;
}

.aigator-detector__result[data-result-verdict="no_strong_ai_evidence"] { --agc-result: var(--agc-human); }
.aigator-detector__result[data-result-verdict="strong_ai_patterns"] { --agc-result: var(--agc-ai); }
.aigator-detector__result[data-result-verdict="insufficient_evidence"] { --agc-result: #7a837e; }

.aigator-detector__result-header {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e8eeea;
  padding: 10px 13px 10px 16px;
}

.aigator-detector__result-heading {
  min-width: 0;
}

.aigator-detector__mock {
  display: block;
  margin-bottom: 4px;
  color: #8b620f;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aigator-detector__result-line {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.aigator-detector__verdict-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--agc-result);
  box-shadow: 0 0 0 4px rgba(180, 122, 29, 0.1);
}

.aigator-detector__result-line h3 {
  min-width: 0;
  margin: 0 3px 0 0;
  color: var(--agc-ink);
  font-size: 1.08rem;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.aigator-detector__score-chip,
.aigator-detector__confidence-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe4de;
  border-radius: 999px;
  padding: 4px 7px;
  background: #f8faf8;
  color: #5f6d65;
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1;
}

.aigator-detector__score-chip strong {
  margin-right: 1px;
  color: var(--agc-result);
  font-size: 0.77rem;
}

.aigator-detector button.aigator-detector__edit {
  appearance: none !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 32px !important;
  margin: 0 !important;
  border: 1px solid #d2ddd6 !important;
  border-radius: 999px !important;
  padding: 0 11px !important;
  background: #fff !important;
  color: var(--agc-green-dark) !important;
  cursor: pointer !important;
  font: inherit !important;
  font-size: 0.7rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.aigator-detector__result-layout {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.aigator-detector__text-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid #e8eeea;
  background: #fcfdfc;
}

.aigator-detector__text-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  border-bottom: 1px solid #edf1ee;
  padding: 9px 14px;
  color: #67746d;
  font-size: 0.59rem;
  font-weight: 600;
}

.aigator-detector__text-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.aigator-detector__text-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.aigator-detector__text-legend i.is-ai { background: rgba(189, 85, 71, 0.58); }
.aigator-detector__text-legend i.is-human { background: rgba(23, 128, 82, 0.58); }
.aigator-detector__text-legend i.is-uncertain { background: rgba(180, 122, 29, 0.48); }

.aigator-detector__highlighted {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 17px 18px 26px;
  color: #26372f;
  font-size: 0.88rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.aigator-detector__evidence {
  border: 0;
  border-radius: 4px;
  padding: 1px 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background 120ms ease;
}

.aigator-detector__evidence.is-ai {
  background: rgba(189, 85, 71, 0.08);
  text-decoration-color: rgba(189, 85, 71, 0.72);
}

.aigator-detector__evidence.is-human {
  background: rgba(23, 128, 82, 0.075);
  text-decoration-color: rgba(23, 128, 82, 0.72);
}

.aigator-detector__evidence.is-uncertain {
  background: rgba(180, 122, 29, 0.07);
  text-decoration-color: rgba(180, 122, 29, 0.6);
}

.aigator-detector__evidence:hover,
.aigator-detector__evidence:focus-visible {
  outline: none;
  background-color: rgba(184, 230, 109, 0.28);
}

.aigator-detector__insights {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #fff;
}

.aigator-detector__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #e8eeea;
  padding: 7px;
  gap: 4px;
}

.aigator-detector__tabs button {
  appearance: none;
  min-height: 31px;
  border: 0;
  border-radius: 8px;
  padding: 5px 7px;
  background: transparent;
  color: #6a7770;
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 600;
}

.aigator-detector__tabs button[aria-selected="true"] {
  background: #eef4ef;
  color: var(--agc-green-dark);
}

.aigator-detector__tab-panel {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.aigator-detector__summary {
  margin: 0;
  color: var(--agc-ink-soft);
  font-size: 0.83rem;
  line-height: 1.55;
}

.aigator-detector__meter {
  --aigator-score: 0%;
  position: relative;
  height: 8px;
  margin: 16px 0 7px;
  overflow: visible;
  border-radius: 999px;
  background: linear-gradient(90deg, #4da174 0%, #d3aa53 52%, #c56558 100%);
}

.aigator-detector__meter::after {
  position: absolute;
  top: 50%;
  left: var(--aigator-score);
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--agc-result);
  box-shadow: 0 1px 5px rgba(22, 45, 31, 0.22);
  content: "";
  transform: translate(-50%, -50%);
  transition: left 500ms cubic-bezier(.2,.8,.2,1);
}

.aigator-detector__overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.aigator-detector__overview-grid > div {
  border: 1px solid #e1e8e3;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fafcfa;
}

.aigator-detector__overview-grid small,
.aigator-detector__overview-grid strong {
  display: block;
}

.aigator-detector__overview-grid small {
  color: #78837d;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aigator-detector__overview-grid strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--agc-ink);
  font-size: 0.72rem;
  font-weight: 650;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.aigator-detector__warnings {
  margin: 12px 0 0;
  border-left: 2px solid #d6a548;
  padding: 7px 0 7px 11px;
  color: #72591f;
  font-size: 0.66rem;
  line-height: 1.45;
}

.aigator-detector__trail-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 11px;
}

.aigator-detector__trail-heading strong,
.aigator-detector__share-title {
  font-size: 0.77rem;
  font-weight: 680;
}

.aigator-detector__trail-heading span,
.aigator-detector__tab-panel[data-aigator-panel="share"] p {
  margin: 0;
  color: var(--agc-muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.aigator-detector__signals {
  display: grid;
  gap: 7px;
}

.aigator-detector__signal {
  border: 1px solid #e1e8e3;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fbfcfb;
}

.aigator-detector__signal > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.aigator-detector__signal strong {
  font-size: 0.68rem;
  font-weight: 650;
}

.aigator-detector__signal > div span {
  color: #78837d;
  font-size: 0.54rem;
  font-weight: 650;
  text-transform: uppercase;
}

.aigator-detector__signal i {
  display: block;
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ee;
}

.aigator-detector__signal i::after {
  display: block;
  width: var(--signal-score, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--agc-ai);
  content: "";
}

.aigator-detector__signal.is-human i::after { background: var(--agc-human); }

.aigator-detector__signal p {
  margin: 6px 0 0;
  color: #69766e;
  font-size: 0.6rem;
  line-height: 1.42;
}

.aigator-detector__span-detail {
  margin-top: 10px;
  border-radius: 9px;
  padding: 9px 10px;
  background: #f1f5f2;
  color: #42534a;
  font-size: 0.65rem;
  line-height: 1.45;
}

.aigator-detector__share-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  color: var(--agc-ink-soft);
  font-size: 0.68rem;
}

.aigator-detector__share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.aigator-detector__share-actions button {
  appearance: none;
  min-height: 37px;
  border: 1px solid #d5dfd8;
  border-radius: 9px;
  padding: 6px;
  background: #fff;
  color: var(--agc-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.61rem;
  font-weight: 650;
}

.aigator-detector__share-actions button:hover { background: #f0f5f1; }

.aigator-detector__share-status {
  display: block;
  min-height: 18px;
  margin-top: 9px;
  color: var(--agc-green);
  font-size: 0.62rem;
  font-weight: 600;
}

/* Deep Check modal */
.aigator-detector__modal {
  width: min(calc(100% - 28px), 520px);
  border: 1px solid #d7e1da;
  border-radius: 18px;
  padding: 29px;
  background: #fff;
  color: var(--agc-ink);
  box-shadow: 0 30px 90px rgba(12, 38, 23, 0.25);
}

.aigator-detector__modal::backdrop {
  background: rgba(10, 28, 18, 0.48);
  backdrop-filter: blur(5px);
}

.aigator-detector__modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 33px;
  height: 33px;
  border: 1px solid #dbe4de;
  border-radius: 50%;
  background: #fff;
  color: #536159;
  cursor: pointer;
  font-size: 1.1rem;
}

.aigator-detector__modal-kicker {
  color: var(--agc-green);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.aigator-detector__modal h3 {
  margin: 7px 0 9px;
  font-size: 1.75rem;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.aigator-detector__modal p,
.aigator-detector__modal li {
  color: var(--agc-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.aigator-detector__modal ul {
  margin: 16px 0;
  padding-left: 20px;
}

.aigator-detector__modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.aigator-detector__modal-actions button,
.aigator-detector__modal-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4dfd8;
  border-radius: 10px;
  padding: 7px 12px;
  background: #fff;
  color: var(--agc-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 650;
  text-decoration: none;
}

.aigator-detector__modal-actions a {
  border-color: var(--agc-green);
  background: var(--agc-green);
  color: #fff;
}

@keyframes agc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes agc-result-in { from { opacity: 0; transform: scale(0.995); } to { opacity: 1; transform: scale(1); } }
@keyframes agc-gator-frame { from { background-position-x: 0; } to { background-position-x: -192px; } }

@media (max-width: 820px) {
  .aigator-detector__header { padding: 21px 20px 17px; }
  .aigator-detector__privacy { display: none; }
  .aigator-detector__form { padding: 16px; }
  .aigator-detector__workspace,
  .aigator-detector__textarea { min-height: 460px; }
  .aigator-detector.has-result .aigator-detector__workspace { min-height: 610px; }
  .aigator-detector__result-layout { grid-template-columns: 1fr; grid-template-rows: minmax(250px, 1.05fr) minmax(250px, 0.95fr); }
  .aigator-detector__text-panel { border-right: 0; border-bottom: 1px solid #e8eeea; }
  .aigator-detector__footer { gap: 11px; }
  .aigator-detector__actions { width: 100%; }
}

@media (max-width: 560px) {
  .aigator-detector__title { font-size: 1.85rem; }
  .aigator-detector__description { font-size: 0.89rem; }
  .aigator-detector__workspace,
  .aigator-detector__textarea { min-height: 420px; }
  .aigator-detector.has-result .aigator-detector__workspace { min-height: 640px; }
  .aigator-detector__actions { display: grid; grid-template-columns: 1fr; }
  .aigator-detector__share-actions { grid-template-columns: 1fr; }
  .aigator-detector__result-header { align-items: flex-start; }
  .aigator-detector__confidence-chip { display: none; }
  .aigator-detector__overview-grid { grid-template-columns: 1fr 1fr; }
}

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

.aigator-detector__modal-pending {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d4dfd8;
  border-radius: 10px;
  padding: 7px 12px;
  background: #f7f9f7;
  color: #6f7b74;
  font-size: 0.69rem;
  font-weight: 600;
}


/* Scan chew refinements */
.aigator-detector__scan-copy-text {
}

.aigator-detector__scan-trail-segment {
  height: 4px;
  background: linear-gradient(90deg, rgba(184, 230, 109, 0.12), rgba(69, 145, 71, 0.82), rgba(184, 230, 109, 0.10));
  box-shadow: 0 0 10px rgba(69, 145, 71, 0.24);
}

.aigator-detector__gator {
  filter: drop-shadow(0 6px 6px rgba(16, 55, 32, 0.24));
}

/* Result warning list spacing */
.aigator-detector__warnings {
  margin: 12px 0 0;
  padding: 7px 0 7px 20px;
  list-style-position: outside;
}

.aigator-detector__warnings li {
  margin: 0 0 6px;
  padding-left: 4px;
}

.aigator-detector__warnings li:last-child {
  margin-bottom: 0;
}

.aigator-detector__warnings li::marker {
  color: #9a7426;
}


/* Long-document layout stability */
.aigator-detector {
  scroll-margin-top: 84px;
}

.aigator-detector__workspace {
  width: 100%;
  transition: height 160ms ease;
}

.aigator-detector__textarea {
  position: relative;
  z-index: 2;
  background-color: #fff;
}

.aigator-detector__footer {
  position: relative;
  z-index: 8;
  border: 1px solid #e2e9e4;
  border-radius: 14px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(22, 53, 35, 0.055);
}

.aigator-detector__actions,
.aigator-detector__button,
.aigator-detector__button > span {
  position: relative;
  z-index: 1;
}

.aigator-detector button.aigator-detector__button {
  overflow: hidden;
}

/* v0.2.8 editor toolbar, larger workspace, and readable result views */
.aigator-detector__workspace {
  min-height: 430px;
}

.aigator-detector__editor-toolbar {
  position: absolute;
  top: 12px;
  left: 13px;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.aigator-detector__paste {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid #d7e1da;
  border-radius: 9px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--agc-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(22, 53, 35, 0.07);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.aigator-detector__paste svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.aigator-detector__paste:hover {
  border-color: #9fb8a8;
  box-shadow: 0 7px 18px rgba(22, 53, 35, 0.10);
  transform: translateY(-1px);
}

.aigator-detector__paste:focus-visible {
  outline: 3px solid rgba(23, 107, 67, 0.16);
  outline-offset: 2px;
}

.aigator-detector__paste:disabled,
.aigator-detector__paste.is-working {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.aigator-detector.is-loading .aigator-detector__editor-toolbar,
.aigator-detector.has-result .aigator-detector__editor-toolbar {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.aigator-detector__textarea {
  min-height: 430px;
  max-height: var(--agc-editor-max-height, 680px);
  padding: 62px 23px 24px;
}

.aigator-detector__scan-copy-text {
  padding: 62px 23px 38px;
}

.aigator-detector__result:focus {
  outline: none;
}

.aigator-detector__result:focus-visible {
  outline: 2px solid rgba(23, 107, 67, 0.16);
  outline-offset: -2px;
}

.aigator-detector__result-header {
  min-height: 66px;
  padding: 11px 16px 11px 18px;
}

.aigator-detector__result-line h3 {
  font-size: 1.16rem;
}

.aigator-detector__tabs {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  border-bottom: 1px solid #e8eeea;
  padding: 8px 10px;
  background: #fbfcfb;
}

.aigator-detector__tabs button {
  appearance: none;
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 7px 10px;
  background: transparent;
  color: #65736b;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  transition: background 140ms ease, color 140ms ease;
}

.aigator-detector__tabs button[aria-selected="true"] {
  background: #eaf3ed;
  color: var(--agc-green-dark);
}

.aigator-detector__result-panels {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.aigator-detector__tab-panel {
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 0;
  background: #fff;
}

.aigator-detector__tab-panel[hidden] {
  display: none !important;
}

.aigator-detector__tab-panel--overview {
  padding: clamp(22px, 3vw, 36px);
}

.aigator-detector__overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  align-items: start;
  gap: clamp(26px, 4vw, 54px);
}

.aigator-detector__section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--agc-green-dark);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.aigator-detector__summary {
  max-width: 850px;
  margin: 0;
  color: #26372f;
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.aigator-detector__meter {
  height: 10px;
  margin: 24px 0 0;
}

.aigator-detector__overview-meta {
  min-width: 0;
}

.aigator-detector__overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 0;
}

.aigator-detector__overview-grid > div {
  min-height: 78px;
  border: 1px solid #dde6e0;
  border-radius: 12px;
  padding: 13px 14px;
  background: #fbfcfb;
}

.aigator-detector__overview-grid small {
  font-size: 0.61rem;
}

.aigator-detector__overview-grid strong {
  margin-top: 6px;
  font-size: 0.82rem;
  white-space: normal;
}

.aigator-detector__warnings {
  max-width: 980px;
  margin-top: 24px;
  border: 1px solid #eadbb8;
  border-left: 3px solid #d6a548;
  border-radius: 10px;
  padding: 12px 18px 12px 34px;
  background: #fffaf0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.aigator-detector__trail-layout {
  display: grid;
  min-height: 100%;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.72fr);
}

.aigator-detector__text-panel {
  border-right: 1px solid #e8eeea;
  background: #fcfdfc;
}

.aigator-detector__highlighted {
  padding: 22px 24px 34px;
  font-size: 0.96rem;
  line-height: 1.78;
}

.aigator-detector__text-legend {
  padding: 10px 18px;
  font-size: 0.66rem;
}

.aigator-detector__trail-insights {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background: #fff;
}

.aigator-detector__trail-heading {
  margin-bottom: 16px;
}

.aigator-detector__trail-heading strong {
  font-size: 0.82rem;
}

.aigator-detector__trail-heading span {
  color: var(--agc-muted);
  font-size: 0.76rem;
}

.aigator-detector__tab-panel--share {
  padding: clamp(26px, 4vw, 48px);
}

.aigator-detector__share-panel {
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .aigator-detector__overview-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .aigator-detector__trail-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  }

  .aigator-detector__text-panel {
    border-right: 0;
    border-bottom: 1px solid #e8eeea;
  }

  .aigator-detector__trail-insights {
    padding: 18px;
  }
}

@media (max-width: 600px) {
  .aigator-detector__form {
    padding-right: 12px;
    padding-left: 12px;
  }

  .aigator-detector__editor-toolbar {
    top: 10px;
    left: 10px;
  }

  .aigator-detector__textarea,
  .aigator-detector__scan-copy-text {
    padding-right: 16px;
    padding-left: 16px;
  }

  .aigator-detector__tab-panel--overview,
  .aigator-detector__tab-panel--share {
    padding: 18px;
  }

  .aigator-detector__overview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.aigator-detector__confidence-chip {
  gap: 3px;
  text-transform: capitalize;
}


/* v0.2.9 editor utility toolbar */
.aigator-detector__editor-toolbar {
  right: 13px;
  justify-content: space-between;
  gap: 12px;
}

.aigator-detector__editor-toolbar-left,
.aigator-detector__editor-toolbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
}

.aigator-detector__toolbar-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid #d7e1da;
  border-radius: 9px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--agc-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(22, 53, 35, 0.07);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, opacity 140ms ease, color 140ms ease;
}

.aigator-detector__toolbar-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.aigator-detector__toolbar-button:hover:not(:disabled) {
  border-color: #9fb8a8;
  box-shadow: 0 7px 18px rgba(22, 53, 35, 0.10);
  transform: translateY(-1px);
}

.aigator-detector__toolbar-button:focus-visible {
  outline: 3px solid rgba(23, 107, 67, 0.16);
  outline-offset: 2px;
}

.aigator-detector__toolbar-button:disabled,
.aigator-detector__toolbar-button.is-working {
  cursor: default;
  opacity: 0.46;
  transform: none;
}

.aigator-detector__toolbar-button--clear {
  color: #8b433b;
}

.aigator-detector__toolbar-button--clear:hover:not(:disabled) {
  border-color: #d9aaa4;
  color: #73332d;
}

@media (max-width: 560px) {
  .aigator-detector__editor-toolbar {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .aigator-detector__editor-toolbar-left,
  .aigator-detector__editor-toolbar-right {
    gap: 5px;
  }

  .aigator-detector__toolbar-button {
    min-height: 32px;
    gap: 5px;
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .aigator-detector__toolbar-button svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}


/* v0.2.9 clear confirmation */
.aigator-detector__modal--confirm {
  width: min(calc(100% - 28px), 430px);
}

.aigator-detector__modal-danger {
  border-color: #a84337 !important;
  background: #a84337 !important;
  color: #fff !important;
}

.aigator-detector__modal-danger:hover,
.aigator-detector__modal-danger:focus-visible {
  border-color: #8e342b !important;
  background: #8e342b !important;
  color: #fff !important;
}

/* v0.3.0 unified report and transparent seven-check checklist */
.aigator-detector__scan.is-preparing .aigator-detector__gator,
.aigator-detector__scan.is-preparing .aigator-detector__scan-trails {
  display: none;
}

.aigator-detector__scan.is-preparing .aigator-detector__scan-copy-text {
  opacity: 0.48;
}

.aigator-detector__result {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
}

.aigator-detector__result:focus,
.aigator-detector__result:focus-visible {
  outline: none;
}

.aigator-detector__report {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: clamp(20px, 2.5vw, 32px);
  background: #fff;
}

.aigator-detector__report-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 28px;
  align-items: start;
}

.aigator-detector__report-summary-copy {
  min-width: 0;
}

.aigator-detector__section-label {
  display: block;
  margin-bottom: 9px;
  color: var(--agc-green-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aigator-detector__report .aigator-detector__summary {
  margin: 0;
  color: var(--agc-ink-soft);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.68;
}

.aigator-detector__report .aigator-detector__meter {
  margin: 22px 0 12px;
}

.aigator-detector__report-explainer {
  margin: 0;
  max-width: 820px;
  color: var(--agc-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.aigator-detector__quality-card {
  border: 1px solid #dfe7e2;
  border-radius: 14px;
  padding: 16px 17px;
  background: #f8fbf8;
}

.aigator-detector__quality-card small,
.aigator-detector__quality-card strong {
  display: block;
}

.aigator-detector__quality-card small {
  color: #78847d;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aigator-detector__quality-card strong {
  margin-top: 5px;
  color: var(--agc-ink);
  font-size: 1rem;
  text-transform: capitalize;
}

.aigator-detector__quality-card p {
  margin: 8px 0 0;
  color: #66736c;
  font-size: 0.72rem;
  line-height: 1.5;
}

.aigator-detector__check-section {
  margin-top: 28px;
  border-top: 1px solid #e8eeea;
  padding-top: 24px;
}

.aigator-detector__check-heading h4 {
  margin: 0;
  color: var(--agc-ink);
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.aigator-detector__check-heading p {
  margin: 6px 0 0;
  color: var(--agc-muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.aigator-detector__checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.aigator-detector__check {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #e1e8e3;
  border-radius: 12px;
  padding: 12px;
  background: #fbfcfb;
}

.aigator-detector__check-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d9e2dc;
  border-radius: 50%;
  background: #fff;
  color: #7b8780;
  font-size: 0.82rem;
  font-weight: 800;
}

.aigator-detector__check.is-ai.is-detected .aigator-detector__check-icon {
  border-color: rgba(189, 85, 71, 0.28);
  background: rgba(189, 85, 71, 0.09);
  color: var(--agc-ai);
}

.aigator-detector__check.is-human.is-detected .aigator-detector__check-icon {
  border-color: rgba(23, 128, 82, 0.28);
  background: rgba(23, 128, 82, 0.09);
  color: var(--agc-human);
}

.aigator-detector__check > div > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.aigator-detector__check strong {
  color: var(--agc-ink);
  font-size: 0.75rem;
  font-weight: 680;
}

.aigator-detector__check > div > div span {
  flex: 0 0 auto;
  color: #738078;
  font-size: 0.58rem;
  font-weight: 650;
  text-align: right;
}

.aigator-detector__check.is-ai.is-detected > div > div span {
  color: #9c493f;
}

.aigator-detector__check.is-human.is-detected > div > div span {
  color: #176b43;
}

.aigator-detector__check p {
  margin: 5px 0 0;
  color: #6b7770;
  font-size: 0.65rem;
  line-height: 1.45;
}

.aigator-detector__check-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--agc-muted);
  font-size: 0.75rem;
}

.aigator-detector__limits {
  margin-top: 22px;
  border: 1px solid #ead7a7;
  border-left: 3px solid #d6a548;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fffaf0;
}

.aigator-detector__limits-heading {
  display: grid;
  gap: 3px;
}

.aigator-detector__limits-heading strong {
  color: #6f5218;
  font-size: 0.78rem;
}

.aigator-detector__limits-heading span {
  color: #816a39;
  font-size: 0.66rem;
  line-height: 1.45;
}

.aigator-detector__limits .aigator-detector__warnings {
  margin-top: 10px;
  border: 0;
  padding: 0 0 0 20px;
  background: transparent;
  font-size: 0.7rem;
}

.aigator-detector__evidence-report {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #dfe7e2;
  border-radius: 13px;
  background: #fcfdfc;
}

.aigator-detector__evidence-report > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  color: var(--agc-green-dark);
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 680;
}

.aigator-detector__evidence-report > summary::-webkit-details-marker {
  display: none;
}

.aigator-detector__evidence-report > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 500;
}

.aigator-detector__evidence-report[open] > summary::after {
  content: "−";
}

.aigator-detector__evidence-report > summary small {
  margin-left: auto;
  color: var(--agc-muted);
  font-size: 0.64rem;
  font-weight: 500;
  text-align: right;
}

.aigator-detector__evidence-body {
  border-top: 1px solid #e8eeea;
}

.aigator-detector__evidence-body .aigator-detector__highlighted {
  max-height: 360px;
  overflow: auto;
  padding: 18px 20px 24px;
  font-size: 0.88rem;
  line-height: 1.75;
}

.aigator-detector__evidence-body .aigator-detector__span-detail {
  margin: 0 18px 18px;
}

.aigator-detector__share-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  border-top: 1px solid #edf1ee;
  padding-top: 15px;
}

.aigator-detector__share-inline .aigator-detector__share-option {
  margin: 0 auto 0 0;
}

.aigator-detector__share-inline .aigator-detector__share-actions {
  display: flex;
  gap: 6px;
}

.aigator-detector__share-inline .aigator-detector__share-actions button {
  min-height: 32px;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.62rem;
}

.aigator-detector__share-inline .aigator-detector__share-status {
  width: 100%;
  min-height: 0;
  margin: 0;
  text-align: right;
}

@media (max-width: 820px) {
  .aigator-detector__report-summary {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .aigator-detector__checklist {
    grid-template-columns: 1fr;
  }

  .aigator-detector__quality-card {
    padding: 13px 14px;
  }
}

@media (max-width: 560px) {
  .aigator-detector__report {
    padding: 17px 14px 22px;
  }

  .aigator-detector__check > div > div {
    display: grid;
    gap: 3px;
  }

  .aigator-detector__check > div > div span {
    text-align: left;
  }

  .aigator-detector__evidence-report > summary {
    align-items: flex-start;
  }

  .aigator-detector__evidence-report > summary small {
    display: none;
  }

  .aigator-detector__share-inline .aigator-detector__share-option {
    width: 100%;
  }
}

/* v0.3.0 unified report and delayed scan motion */
.aigator-detector__scan.is-preparing .aigator-detector__gator,
.aigator-detector__scan.is-preparing .aigator-detector__scan-trails {
  visibility: hidden;
  opacity: 0;
}

.aigator-detector__scan.is-preparing .aigator-detector__scan-copy-text {
  opacity: 0.58;
}

.aigator-detector__result {
  overflow: hidden;
}

.aigator-detector__result-report {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 18px;
  background: #fff;
  scrollbar-gutter: stable;
}

.aigator-detector__report-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
}

.aigator-detector__report-summary-copy h4,
.aigator-detector__report-section-heading h4 {
  margin: 3px 0 0;
  color: var(--agc-ink);
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.aigator-detector__report-summary .aigator-detector__summary {
  max-width: 920px;
  margin: 12px 0 0;
  color: var(--agc-ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.62;
}

.aigator-detector__report-score {
  min-width: 114px;
  border: 1px solid var(--agc-line);
  border-radius: 14px;
  padding: 13px 15px 11px;
  background: var(--agc-soft);
  text-align: right;
}

.aigator-detector__report-score > span {
  display: block;
  color: var(--agc-muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.aigator-detector__report-score strong {
  display: block;
  margin-top: 3px;
  color: var(--agc-result);
  font-size: 1.65rem;
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1;
}

.aigator-detector__report-score small {
  margin-left: 2px;
  color: var(--agc-muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.aigator-detector__result-report > .aigator-detector__meter {
  margin: 18px 0 0;
}

.aigator-detector__report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}

.aigator-detector__checks-panel,
.aigator-detector__reliability-panel,
.aigator-detector__evidence-report {
  border: 1px solid var(--agc-line);
  border-radius: 15px;
  background: #fbfdfb;
}

.aigator-detector__checks-panel,
.aigator-detector__reliability-panel {
  padding: 18px;
}

.aigator-detector__report-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.aigator-detector__checks-summary {
  flex: 0 0 auto;
  border: 1px solid #d5e1d9;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--agc-green-dark);
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.aigator-detector__checks-explanation,
.aigator-detector__reliability-explanation,
.aigator-detector__evidence-help {
  margin: 9px 0 0;
  color: var(--agc-muted);
  font-size: 0.75rem;
  line-height: 1.48;
}

.aigator-detector__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.aigator-detector__check {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  border: 1px solid #e0e8e2;
  border-radius: 11px;
  padding: 10px;
  background: #fff;
}

.aigator-detector__check:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.aigator-detector__check-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #edf2ef;
  color: #718078;
  font-size: 0.75rem;
  font-weight: 800;
}

.aigator-detector__check.is-support .aigator-detector__check-icon {
  background: rgba(23, 128, 82, 0.12);
  color: var(--agc-human);
}

.aigator-detector__check.is-counter .aigator-detector__check-icon {
  background: rgba(180, 122, 29, 0.12);
  color: var(--agc-uncertain);
}

.aigator-detector__check > div > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.aigator-detector__check strong {
  min-width: 0;
  color: var(--agc-ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.aigator-detector__check > div > div span {
  flex: 0 0 auto;
  color: var(--agc-muted);
  font-size: 0.58rem;
  font-weight: 650;
  white-space: nowrap;
}

.aigator-detector__check.is-support > div > div span {
  color: var(--agc-human);
}

.aigator-detector__check.is-counter > div > div span {
  color: #95661a;
}

.aigator-detector__check p {
  margin: 4px 0 0;
  color: var(--agc-muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.aigator-detector__reliability-value {
  display: block;
  margin-top: 6px;
  color: var(--agc-ink);
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.aigator-detector__warnings-wrap {
  margin-top: 16px;
  border-top: 1px solid var(--agc-line);
  padding-top: 14px;
}

.aigator-detector__warnings-wrap > strong {
  color: var(--agc-ink);
  font-size: 0.75rem;
  font-weight: 720;
}

.aigator-detector__warnings-wrap > p {
  margin: 4px 0 0;
  color: var(--agc-muted);
  font-size: 0.65rem;
  line-height: 1.4;
}

.aigator-detector__warnings-wrap .aigator-detector__warnings {
  margin: 10px 0 0;
  border: 0;
  padding: 0 0 0 18px;
  background: transparent;
  color: #72591f;
  font-size: 0.68rem;
}

.aigator-detector__evidence-report {
  margin-top: 18px;
  padding: 18px;
}

.aigator-detector__evidence-report .aigator-detector__text-legend {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
}

.aigator-detector__evidence-report .aigator-detector__highlighted {
  max-height: 290px;
  margin-top: 13px;
  overflow: auto;
  border: 1px solid #e0e8e2;
  border-radius: 11px;
  padding: 16px 17px;
  background: #fff;
  color: var(--agc-ink-soft);
  font-size: 0.91rem;
  line-height: 1.7;
  scrollbar-gutter: stable;
}

.aigator-detector__evidence-report .aigator-detector__span-detail {
  margin-top: 10px;
}

.aigator-detector__report-share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  border-top: 1px solid #edf1ee;
  padding-top: 13px;
}

.aigator-detector__report-share .aigator-detector__share-option {
  margin-right: auto;
  font-size: 0.68rem;
}

.aigator-detector__report-share .aigator-detector__share-actions {
  gap: 6px;
}

.aigator-detector__report-share .aigator-detector__share-actions button {
  min-height: 32px;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.67rem;
}

.aigator-detector__report-share .aigator-detector__share-status {
  flex: 0 0 100%;
  min-height: 0;
  text-align: right;
}

@media (max-width: 900px) {
  .aigator-detector__report-grid {
    grid-template-columns: 1fr;
  }

  .aigator-detector__checks {
    grid-template-columns: 1fr;
  }

  .aigator-detector__check:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .aigator-detector__result-report {
    padding: 16px;
  }

  .aigator-detector__report-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .aigator-detector__report-score {
    width: 100%;
    text-align: left;
  }

  .aigator-detector__report-section-heading {
    display: grid;
  }

  .aigator-detector__checks-summary {
    width: fit-content;
  }

  .aigator-detector__report-share {
    justify-content: flex-start;
  }

  .aigator-detector__report-share .aigator-detector__share-option {
    flex: 0 0 100%;
  }
}


/* v0.3.2 guided tabbed report */
.aigator-detector__result-tabs {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-bottom: 1px solid #e7ede9;
  padding: 8px 12px;
  background: #fafcfa;
}

.aigator-detector__result-tabs button {
  appearance: none;
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 10px;
  background: transparent;
  color: #65736b;
  cursor: pointer;
  font: inherit;
}

.aigator-detector__result-tabs button > span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid #d7e1da;
  border-radius: 50%;
  background: #fff;
  color: #718078;
  font-size: 0.62rem;
  font-weight: 750;
}

.aigator-detector__result-tabs button strong {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aigator-detector__result-tabs button[aria-selected="true"] {
  border-color: #d8e4dc;
  background: #eef5f0;
  color: var(--agc-green-dark);
}

.aigator-detector__result-tabs button[aria-selected="true"] > span {
  border-color: var(--agc-green);
  background: var(--agc-green);
  color: #fff;
}

.aigator-detector__result-tabs button:focus-visible {
  outline: 2px solid rgba(23, 107, 67, 0.28);
  outline-offset: 2px;
}

.aigator-detector__result-panels {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: #fff;
}

.aigator-detector__result-panel {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: clamp(18px, 2.2vw, 28px);
  scrollbar-gutter: stable;
}

.aigator-detector__result-panel[hidden] {
  display: none !important;
}

.aigator-detector__panel-intro {
  margin-bottom: 18px;
}

.aigator-detector__panel-intro h4 {
  margin: 0;
  color: var(--agc-ink);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.aigator-detector__panel-intro p {
  max-width: 820px;
  margin: 5px 0 0;
  color: var(--agc-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.aigator-detector__result-panel .aigator-detector__report-summary {
  gap: 22px;
}

.aigator-detector__result-panel .aigator-detector__report-summary-copy .aigator-detector__summary {
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.62;
}

.aigator-detector__result-panel .aigator-detector__limits {
  margin-top: 18px;
}

.aigator-detector__share-inline--compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 17px;
  border-top: 1px solid #edf1ee;
  padding-top: 13px;
}

.aigator-detector__share-heading {
  display: flex;
  min-width: 0;
  flex: 1 1 330px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 15px;
}

.aigator-detector__share-heading > strong {
  color: var(--agc-ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.aigator-detector__share-inline--compact .aigator-detector__share-option {
  margin: 0;
  font-size: 0.64rem;
}

.aigator-detector__share-inline--compact .aigator-detector__share-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.aigator-detector__share-inline--compact .aigator-detector__share-actions button {
  min-height: 31px;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.62rem;
}

.aigator-detector__share-inline--compact .aigator-detector__share-status {
  flex: 0 0 100%;
  min-height: 0;
  margin: 0;
  text-align: right;
}

.aigator-detector__result-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid #edf1ee;
  padding-top: 15px;
}

.aigator-detector__result-guide > span {
  color: var(--agc-muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.aigator-detector__result-guide button {
  appearance: none;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--agc-green);
  border-radius: 9px;
  padding: 7px 12px;
  background: var(--agc-green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 680;
  white-space: nowrap;
}

.aigator-detector__result-guide button:hover,
.aigator-detector__result-guide button:focus-visible {
  background: var(--agc-green-dark);
}

.aigator-detector__result-guide button.is-secondary {
  border-color: #d4dfd8;
  background: #fff;
  color: var(--agc-green-dark);
}

.aigator-detector__result-guide button.is-secondary:hover,
.aigator-detector__result-guide button.is-secondary:focus-visible {
  border-color: #a9c0b1;
  background: #f5f8f6;
}

.aigator-detector__result-guide--split {
  justify-content: space-between;
}

.aigator-detector__result-panel--checks .aigator-detector__checklist {
  margin-top: 0;
}

.aigator-detector__result-panel--evidence {
  display: flex;
  flex-direction: column;
}

.aigator-detector__result-panel--evidence[hidden] {
  display: none !important;
}

.aigator-detector__result-panel--evidence .aigator-detector__text-legend {
  flex: 0 0 auto;
  border: 1px solid #e1e8e3;
  border-radius: 10px 10px 0 0;
  padding: 9px 13px;
  background: #fafcfa;
}

.aigator-detector__result-panel--evidence .aigator-detector__highlighted {
  min-height: 240px;
  flex: 1;
  overflow: auto;
  border: 1px solid #e1e8e3;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 17px 18px 24px;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.72;
  scrollbar-gutter: stable;
}

.aigator-detector__result-panel--evidence .aigator-detector__span-detail {
  flex: 0 0 auto;
  margin: 10px 0 0;
}

.aigator-detector__result-panel--evidence .aigator-detector__result-guide {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .aigator-detector__result-tabs {
    padding: 7px;
  }

  .aigator-detector__result-tabs button {
    gap: 5px;
    padding: 6px;
  }

  .aigator-detector__result-tabs button > span {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    font-size: 0.56rem;
  }

  .aigator-detector__result-tabs button strong {
    font-size: 0.63rem;
  }

  .aigator-detector__result-panel .aigator-detector__report-summary {
    grid-template-columns: 1fr;
  }

  .aigator-detector__result-guide,
  .aigator-detector__result-guide--split {
    align-items: stretch;
    flex-direction: column;
  }

  .aigator-detector__result-guide > span {
    text-align: center;
  }

  .aigator-detector__result-guide button {
    width: 100%;
  }

  .aigator-detector__share-heading {
    flex-basis: 100%;
  }

  .aigator-detector__share-inline--compact .aigator-detector__share-actions {
    width: 100%;
  }

  .aigator-detector__share-inline--compact .aigator-detector__share-actions button {
    flex: 1 1 0;
  }
}

/* v0.3.3 split evidence and report workspace */
.aigator-detector__result-split {
  display: grid;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1.55fr) minmax(410px, 0.9fr);
  overflow: hidden;
  background: #fff;
}

.aigator-detector__result-text-pane,
.aigator-detector__result-report-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.aigator-detector__result-text-pane {
  border-right: 1px solid #e5ece7;
}

.aigator-detector__result-report-pane {
  background: #fbfcfb;
}

.aigator-detector__pane-header {
  display: flex;
  min-height: 68px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e8eeea;
  padding: 12px 16px;
  background: #fafcfa;
}

.aigator-detector__pane-header > div:first-child {
  min-width: 0;
}

.aigator-detector__pane-header p {
  margin: 3px 0 0;
  color: var(--agc-muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.aigator-detector__pane-header--text .aigator-detector__text-legend {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0.61rem;
}

.aigator-detector__result-text-scroll,
.aigator-detector__result-report-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.aigator-detector__result-text-scroll {
  background:
    linear-gradient(rgba(255,255,255,0.98), rgba(255,255,255,0.98)),
    repeating-linear-gradient(180deg, transparent 0 29px, #edf2ee 29px 30px);
}

.aigator-detector__result-text-scroll .aigator-detector__highlighted {
  min-height: 100%;
  overflow: visible;
  padding: 21px 24px 32px;
  background: transparent;
  color: #25362e;
  font-size: clamp(0.9rem, 0.9vw, 1rem);
  line-height: 1.78;
}

.aigator-detector__result-text-pane > .aigator-detector__span-detail {
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-top: 1px solid #e5ece7;
  border-radius: 0;
  padding: 11px 16px;
  background: #f8fbf8;
  font-size: 0.69rem;
}

.aigator-detector__result-report-scroll {
  padding: 18px;
}

.aigator-detector__report-expand {
  appearance: none;
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border: 1px solid #d3ded7;
  border-radius: 8px;
  padding: 5px 9px;
  background: #fff;
  color: var(--agc-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 680;
  white-space: nowrap;
}

.aigator-detector__report-expand svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.aigator-detector__report-expand:hover,
.aigator-detector__report-expand:focus-visible {
  border-color: #9db5a6;
  background: #f2f7f3;
  outline: none;
}

.aigator-detector__report-summary--side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.aigator-detector__report-summary--side .aigator-detector__summary {
  margin: 0;
  color: #2b3c34;
  font-size: 0.84rem;
  line-height: 1.58;
}

.aigator-detector__report-summary--side .aigator-detector__meter {
  margin-top: 13px;
}

.aigator-detector__report-summary--side .aigator-detector__quality-card {
  width: 100%;
  max-width: none;
  border-radius: 11px;
  padding: 12px 13px;
}

.aigator-detector__checks-panel--side {
  margin-top: 18px;
  border-top: 1px solid #e7ede9;
  padding-top: 16px;
}

.aigator-detector__checks-heading h4 {
  margin: 4px 0 0;
  color: var(--agc-ink);
  font-size: 0.88rem;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.aigator-detector__checks-heading p {
  margin: 5px 0 0;
  color: var(--agc-muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.aigator-detector__checks-panel--side .aigator-detector__checklist {
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 12px;
}

.aigator-detector__checks-panel--side .aigator-detector__check {
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
  border-radius: 10px;
  padding: 9px;
}

.aigator-detector__checks-panel--side .aigator-detector__check-icon {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
}

.aigator-detector__checks-panel--side .aigator-detector__check strong {
  font-size: 0.69rem;
}

.aigator-detector__checks-panel--side .aigator-detector__check > div > div span {
  font-size: 0.54rem;
}

.aigator-detector__checks-panel--side .aigator-detector__check p {
  margin-top: 3px;
  font-size: 0.6rem;
}

.aigator-detector__share-inline--side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 12px;
  margin-top: 18px;
  border-top: 1px solid #e7ede9;
  padding-top: 15px;
}

.aigator-detector__share-inline--side .aigator-detector__share-heading {
  display: grid;
  gap: 7px;
}

.aigator-detector__share-text-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--agc-muted);
  font-size: 0.61rem;
  font-weight: 620;
}

.aigator-detector__share-text-choice select {
  min-width: 142px;
  border: 1px solid #d4dfd8;
  border-radius: 7px;
  padding: 5px 25px 5px 8px;
  background: #fff;
  color: var(--agc-ink-soft);
  font: inherit;
  font-size: 0.61rem;
}

.aigator-detector__share-inline--side .aigator-detector__share-actions {
  display: flex;
  gap: 5px;
}

.aigator-detector__share-inline--side .aigator-detector__share-actions button {
  min-height: 30px;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 0.59rem;
}

.aigator-detector__share-inline--side .aigator-detector__share-status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  text-align: right;
}

.aigator-detector__result.is-report-expanded .aigator-detector__result-split {
  grid-template-columns: minmax(0, 1fr);
}

.aigator-detector__result.is-report-expanded .aigator-detector__result-text-pane {
  display: none;
}

.aigator-detector__result.is-report-expanded .aigator-detector__result-report-pane {
  border-left: 0;
}

.aigator-detector__result.is-report-expanded .aigator-detector__result-report-scroll {
  padding: clamp(20px, 3vw, 34px);
}

.aigator-detector__result.is-report-expanded .aigator-detector__report-summary--side {
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.65fr);
  align-items: start;
  gap: 24px;
}

.aigator-detector__result.is-report-expanded .aigator-detector__report-summary--side .aigator-detector__summary {
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.64;
}

.aigator-detector__result.is-report-expanded .aigator-detector__checks-panel--side .aigator-detector__checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.aigator-detector__result.is-report-expanded .aigator-detector__share-inline--side {
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 980px) {
  .aigator-detector__result-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(280px, 1.05fr) minmax(300px, 0.95fr);
  }

  .aigator-detector__result-text-pane {
    border-right: 0;
    border-bottom: 1px solid #e5ece7;
  }

  .aigator-detector__result.is-report-expanded .aigator-detector__result-split {
    grid-template-rows: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .aigator-detector__pane-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }

  .aigator-detector__pane-header--text .aigator-detector__text-legend {
    justify-content: flex-start;
  }

  .aigator-detector__result-text-scroll .aigator-detector__highlighted {
    padding: 16px 15px 24px;
    font-size: 0.86rem;
  }

  .aigator-detector__result-report-scroll {
    padding: 14px;
  }

  .aigator-detector__share-inline--side {
    grid-template-columns: 1fr;
  }

  .aigator-detector__share-inline--side .aigator-detector__share-actions {
    width: 100%;
  }

  .aigator-detector__share-inline--side .aigator-detector__share-actions button {
    flex: 1 1 0;
  }

  .aigator-detector__result.is-report-expanded .aigator-detector__report-summary--side,
  .aigator-detector__result.is-report-expanded .aigator-detector__checks-panel--side .aigator-detector__checklist {
    grid-template-columns: 1fr;
  }
}


/* v0.3.4 scan layout: dedicated status row and clipped text viewport */
.aigator-detector__scan {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #f8fbf8;
}

.aigator-detector__scan-status {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(135px, auto) minmax(0, 1fr);
  grid-template-areas:
    "kicker stage"
    "kicker description";
  align-items: center;
  gap: 2px 18px;
  min-height: 76px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #dfe7e1;
  border-radius: 0;
  padding: 13px 18px;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.aigator-detector__scan-kicker {
  grid-area: kicker;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid #d4e2d8;
  border-radius: 999px;
  padding: 7px 11px;
  background: #f3f8f4;
  color: var(--agc-green-dark);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.aigator-detector__scan-status strong {
  grid-area: stage;
  min-width: 0;
  color: var(--agc-ink);
  font-size: 0.96rem;
  font-weight: 680;
  line-height: 1.3;
}

.aigator-detector__scan-status > span:last-child {
  grid-area: description;
  min-width: 0;
  color: var(--agc-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.aigator-detector__scan-copy {
  position: relative;
  inset: auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 0 0 13px 13px;
  background:
    radial-gradient(circle at 12% 18%, rgba(184, 230, 109, 0.08), transparent 24%),
    linear-gradient(#fbfdfb, #f7faf8);
}

.aigator-detector__scan-copy-text {
  inset: 0;
  padding: 22px 23px 30px;
}

.aigator-detector__scan-copy::after {
  border-radius: 0 0 13px 13px;
}

.aigator-detector__scan.is-preparing .aigator-detector__scan-copy-text {
  opacity: 0.48;
}

@media (max-width: 680px) {
  .aigator-detector__scan-status {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "stage"
      "description";
    gap: 4px;
    min-height: 92px;
    padding: 11px 14px;
  }

  .aigator-detector__scan-kicker {
    justify-self: start;
    min-height: 28px;
    padding: 5px 9px;
  }

  .aigator-detector__scan-copy-text {
    padding: 18px 16px 26px;
  }
}


/* v0.3.5 scan status near the action controls */
.aigator-detector__scan {
  grid-template-rows: minmax(0, 1fr) auto;
}

.aigator-detector__scan-copy {
  grid-row: 1;
  border-radius: 13px 13px 0 0;
}

.aigator-detector__scan-copy::after {
  border-radius: 13px 13px 0 0;
}

.aigator-detector__scan-status {
  grid-row: 2;
  min-height: 70px;
  border-top: 1px solid #dfe7e1;
  border-bottom: 0;
  background: #ffffff;
}

.aigator-detector__scan.is-preparing .aigator-detector__gator,
.aigator-detector__scan.is-preparing .aigator-detector__scan-trails {
  opacity: 0;
  visibility: hidden;
}

/* v0.3.5 compact tabs inside the report pane */
.aigator-detector__pane-header--report {
  min-height: 60px;
  padding: 8px 10px;
}

.aigator-detector__result-tabs--side {
  display: grid;
  min-width: 0;
  max-width: 360px;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
}

.aigator-detector__result-tabs--side button {
  min-height: 38px;
  gap: 6px;
  border-radius: 8px;
  padding: 6px 9px;
}

.aigator-detector__result-tabs--side button > span {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  font-size: 0.58rem;
}

.aigator-detector__result-tabs--side button strong {
  font-size: 0.68rem;
}

.aigator-detector__result-report-scroll {
  padding: 0;
}

.aigator-detector__result-panel--side {
  height: auto;
  min-height: 100%;
  overflow: visible;
  padding: 18px;
}

.aigator-detector__result-panel--side[hidden] {
  display: none !important;
}

.aigator-detector__checks-panel--tab {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.aigator-detector__result.is-report-expanded .aigator-detector__result-panel--side {
  padding: clamp(20px, 3vw, 34px);
}

@media (max-width: 680px) {
  .aigator-detector__scan-status {
    min-height: 88px;
    border-top: 1px solid #dfe7e1;
  }

  .aigator-detector__pane-header--report {
    align-items: stretch;
  }

  .aigator-detector__result-tabs--side {
    width: 100%;
    max-width: none;
  }

  .aigator-detector__report-expand {
    align-self: flex-end;
  }

  .aigator-detector__result-panel--side {
    padding: 14px;
  }
}

/* v0.3.6 clearer split report with Result, Checks, and Share tabs */
.aigator-detector__result-header--minimal {
  min-height: 48px;
  padding: 8px 14px 8px 16px;
  background: #fbfcfb;
}

.aigator-detector__result-ready {
  color: var(--agc-green-dark);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aigator-detector__result-split {
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
}

.aigator-detector__pane-header--report {
  min-height: 56px;
  padding: 8px 10px;
}

.aigator-detector__result-tabs--side {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aigator-detector__result-tabs--side button {
  min-height: 38px;
  justify-content: center;
  padding: 7px 10px;
}

.aigator-detector__result-tabs--side button strong {
  font-size: 0.72rem;
}

.aigator-detector__result-panel--side {
  padding: 18px 20px 22px;
}

.aigator-detector__report-verdict-card {
  border: 1px solid #dce5df;
  border-radius: 13px;
  padding: 15px 16px 16px;
  background: #fff;
}

.aigator-detector__report-verdict-line {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.aigator-detector__report-verdict-line h3 {
  min-width: 0;
  margin: 0 3px 0 0;
  color: var(--agc-ink);
  font-size: 1.22rem;
  font-weight: 730;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.aigator-detector__report-verdict-card .aigator-detector__mock {
  margin-bottom: 7px;
}

.aigator-detector__report-verdict-card .aigator-detector__summary {
  margin: 13px 0 0;
  color: #304139;
  font-size: 0.88rem;
  line-height: 1.62;
}

.aigator-detector__report-verdict-card .aigator-detector__meter {
  margin-top: 14px;
}

.aigator-detector__assessment-context {
  margin-top: 13px;
  border: 1px solid #dce5df;
  border-radius: 13px;
  padding: 13px 15px;
  background: #f8fbf8;
}

.aigator-detector__assessment-context-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.aigator-detector__assessment-context-heading small {
  color: #718078;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.aigator-detector__assessment-context-heading strong {
  color: var(--agc-ink);
  font-size: 0.79rem;
  font-weight: 720;
  text-transform: capitalize;
}

.aigator-detector__assessment-context > p {
  margin: 6px 0 0;
  color: var(--agc-muted);
  font-size: 0.7rem;
  line-height: 1.48;
}

.aigator-detector__assessment-warnings {
  margin-top: 8px;
  border-top: 1px solid #e2e9e4;
  padding-top: 7px;
}

.aigator-detector__assessment-warnings .aigator-detector__warnings {
  margin: 0;
  border: 0;
  padding: 0 0 0 17px;
  background: transparent;
  color: #71581f;
  font-size: 0.66rem;
  line-height: 1.42;
}

.aigator-detector__assessment-warnings .aigator-detector__warnings li {
  margin-bottom: 3px;
}

.aigator-detector__checks-panel--tab .aigator-detector__checks-heading {
  margin-bottom: 12px;
}

.aigator-detector__share-panel {
  max-width: 560px;
}

.aigator-detector__share-panel h4 {
  margin: 6px 0 0;
  color: var(--agc-ink);
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.aigator-detector__share-panel > p {
  margin: 7px 0 0;
  color: var(--agc-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.aigator-detector__share-text-choice--panel {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.aigator-detector__share-text-choice--panel > span {
  color: #526159;
  font-size: 0.67rem;
  font-weight: 680;
}

.aigator-detector__share-text-choice--panel select {
  width: 100%;
  min-height: 39px;
  border-radius: 9px;
  padding: 8px 34px 8px 10px;
  font-size: 0.73rem;
}

.aigator-detector__share-actions--panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.aigator-detector__share-actions--panel button {
  min-height: 38px;
  border: 1px solid #d2ddd6;
  border-radius: 9px;
  padding: 7px 10px;
  background: #fff;
  color: var(--agc-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 680;
}

.aigator-detector__share-actions--panel button:hover,
.aigator-detector__share-actions--panel button:focus-visible {
  border-color: #9fb8a8;
  background: #f2f7f3;
  outline: none;
}

.aigator-detector__share-panel .aigator-detector__share-status {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: var(--agc-muted);
  font-size: 0.66rem;
}

@media (max-width: 1100px) {
  .aigator-detector__result-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(290px, 1fr) minmax(320px, 1fr);
  }

  .aigator-detector__result-text-pane {
    border-right: 0;
    border-bottom: 1px solid #e5ece7;
  }
}

@media (max-width: 680px) {
  .aigator-detector__result-tabs--side button strong {
    font-size: 0.66rem;
  }

  .aigator-detector__result-panel--side {
    padding: 14px;
  }

  .aigator-detector__report-verdict-line h3 {
    font-size: 1.08rem;
  }

  .aigator-detector__share-actions--panel {
    grid-template-columns: 1fr;
  }
}


/* v0.3.7 balanced split view, independent scrolling, and compact close control */
.aigator-detector__result {
  min-height: 0;
}

.aigator-detector__result-split {
  height: 100%;
  max-height: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.aigator-detector__result-text-pane,
.aigator-detector__result-report-pane {
  height: 100%;
  max-height: 100%;
}

.aigator-detector__result-text-scroll,
.aigator-detector__result-report-scroll {
  height: 0;
  min-height: 0;
  flex: 1 1 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.aigator-detector__result-text-scroll .aigator-detector__highlighted {
  height: auto;
  min-height: 100%;
}

.aigator-detector__pane-header--report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.aigator-detector__result-tabs--side {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aigator-detector button.aigator-detector__result-close {
  appearance: none;
  display: inline-grid;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid #d3ded7;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  color: #526159;
  cursor: pointer;
  font: inherit;
  box-shadow: none;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.aigator-detector button.aigator-detector__result-close span {
  display: block;
  font-size: 1.35rem;
  font-weight: 420;
  line-height: 1;
  transform: translateY(-1px);
}

.aigator-detector button.aigator-detector__result-close:hover,
.aigator-detector button.aigator-detector__result-close:focus-visible {
  border-color: #9fb8a8;
  background: #f2f7f3;
  color: var(--agc-green-dark);
  outline: none;
}

.aigator-detector button.aigator-detector__result-close:active {
  transform: scale(0.96);
}

/* Development state remains internal and is never shown to visitors. */
.aigator-detector__mock,
.aigator-detector__result-header--minimal,
.aigator-detector__result-ready {
  display: none !important;
}

@media (max-width: 1100px) {
  .aigator-detector__result-split {
    height: 100%;
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(290px, 1fr) minmax(320px, 1fr);
  }

  .aigator-detector__result-text-pane,
  .aigator-detector__result-report-pane {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .aigator-detector__pane-header--report {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .aigator-detector button.aigator-detector__result-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
}


/* v0.3.8 readability, contrast, and concise document header */
.aigator-detector {
  --agc-ink: #10271d;
  --agc-ink-soft: #263a31;
  --agc-muted: #4f6056;
}

.aigator-detector__pane-header p {
  color: #4f6056;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
}

.aigator-detector__section-label {
  color: #0f5a36;
  font-size: 0.72rem;
  font-weight: 750;
}

.aigator-detector__pane-header--text .aigator-detector__text-legend {
  color: #43544a;
  font-size: 0.69rem;
  font-weight: 650;
}

.aigator-detector__result-text-scroll .aigator-detector__highlighted {
  color: #20352a;
  font-size: clamp(1rem, 1vw, 1.08rem);
  line-height: 1.76;
}

.aigator-detector__result-text-pane > .aigator-detector__span-detail {
  color: #34483d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.aigator-detector__result-tabs--side button {
  color: #46574d;
}

.aigator-detector__result-tabs--side button strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.aigator-detector__result-tabs--side button[aria-selected="true"] {
  color: #0f5634;
}

.aigator-detector__report-verdict-card .aigator-detector__summary {
  color: #293d33;
  font-size: 0.95rem;
  line-height: 1.62;
}

.aigator-detector__assessment-context-heading small {
  color: #526259;
  font-size: 0.68rem;
}

.aigator-detector__assessment-context-heading strong {
  font-size: 0.86rem;
}

.aigator-detector__assessment-context > p {
  color: #4f6056;
  font-size: 0.79rem;
  line-height: 1.5;
}

.aigator-detector__assessment-warnings .aigator-detector__warnings {
  color: #6b5219;
  font-size: 0.75rem;
  line-height: 1.5;
}

.aigator-detector__assessment-warnings .aigator-detector__warnings li {
  margin-bottom: 5px;
}

.aigator-detector__checks-heading h4 {
  font-size: 0.96rem;
}

.aigator-detector__checks-heading p {
  color: #4f6056;
  font-size: 0.76rem;
  line-height: 1.5;
}

.aigator-detector__checks-panel--side .aigator-detector__check strong {
  color: #20352a;
  font-size: 0.78rem;
}

.aigator-detector__checks-panel--side .aigator-detector__check > div > div span {
  color: #4d5d54;
  font-size: 0.64rem;
  font-weight: 650;
}

.aigator-detector__checks-panel--side .aigator-detector__check p {
  color: #4f6056;
  font-size: 0.7rem;
  line-height: 1.45;
}

.aigator-detector__share-panel > p {
  color: #4f6056;
  font-size: 0.82rem;
}

.aigator-detector__share-text-choice--panel > span,
.aigator-detector__share-text-choice--panel select,
.aigator-detector__share-actions--panel button {
  font-size: 0.78rem;
}

.aigator-detector__share-panel .aigator-detector__share-status {
  color: #4f6056;
  font-size: 0.73rem;
}

.aigator-detector__counts {
  color: #4f6056;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .aigator-detector__pane-header p {
    white-space: normal;
  }
}


/* v0.3.9 robust independent scrolling and larger assessment text */
.aigator-detector__result-text-pane {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.aigator-detector__result-report-pane {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.aigator-detector__result-text-scroll,
.aigator-detector__result-report-scroll {
  position: relative;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #91a59a #eef3ef;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.aigator-detector__result-text-scroll:focus-visible,
.aigator-detector__result-report-scroll:focus-visible {
  outline: 2px solid rgba(23, 107, 67, 0.35);
  outline-offset: -2px;
}

.aigator-detector__result-text-scroll::-webkit-scrollbar,
.aigator-detector__result-report-scroll::-webkit-scrollbar {
  width: 10px;
}

.aigator-detector__result-text-scroll::-webkit-scrollbar-track,
.aigator-detector__result-report-scroll::-webkit-scrollbar-track {
  background: #eef3ef;
}

.aigator-detector__result-text-scroll::-webkit-scrollbar-thumb,
.aigator-detector__result-report-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #eef3ef;
  border-radius: 999px;
  background: #91a59a;
}

.aigator-detector__result-text-scroll::-webkit-scrollbar-thumb:hover,
.aigator-detector__result-report-scroll::-webkit-scrollbar-thumb:hover {
  background: #6f897a;
}

.aigator-detector__result-text-scroll .aigator-detector__highlighted {
  height: auto !important;
  min-height: max-content !important;
  padding-bottom: 40px;
}

.aigator-detector__assessment-context {
  padding: 16px 17px;
}

.aigator-detector__assessment-context-heading small {
  color: #405248;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.075em;
}

.aigator-detector__assessment-context-heading strong {
  color: #10271d;
  font-size: 0.96rem;
  font-weight: 750;
}

.aigator-detector__assessment-context > p {
  margin-top: 8px;
  color: #34483d;
  font-size: 0.89rem;
  line-height: 1.58;
}

.aigator-detector__assessment-warnings {
  margin-top: 11px;
  padding-top: 10px;
}

.aigator-detector__assessment-warnings .aigator-detector__warnings {
  padding-left: 20px;
  color: #654b12;
  font-size: 0.84rem;
  line-height: 1.58;
}

.aigator-detector__assessment-warnings .aigator-detector__warnings li {
  margin-bottom: 7px;
  padding-left: 3px;
}

@media (max-width: 1100px) {
  .aigator-detector__result-text-pane,
  .aigator-detector__result-report-pane {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
  }
}

/* AIGator 0.4 dynamic origin report */
.aigator-detector__result[data-result-verdict="likely_human_written"] {
  --agc-result: var(--agc-human);
}

.aigator-detector__result[data-result-verdict="likely_ai_generated"],
.aigator-detector__result[data-result-verdict="likely_ai_generated_and_paraphrased"] {
  --agc-result: var(--agc-ai);
}

.aigator-detector__result[data-result-verdict="likely_human_with_ai_polishing"],
.aigator-detector__result[data-result-verdict="mixed_or_ai_assisted"],
.aigator-detector__result[data-result-verdict="uncertain"] {
  --agc-result: var(--agc-uncertain);
}

.aigator-detector__origin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 0;
}

.aigator-detector__origin-meta[hidden] {
  display: none !important;
}

.aigator-detector__origin-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid #d8e3dc;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f8faf8;
  color: #31483b;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
}

.aigator-detector__origin-meta span:first-child {
  border-color: color-mix(in srgb, var(--agc-result) 28%, #d8e3dc);
  background: color-mix(in srgb, var(--agc-result) 7%, #ffffff);
  color: color-mix(in srgb, var(--agc-result) 82%, #10271d);
}

.aigator-detector__score-caption {
  display: block;
  margin-top: 7px;
  color: #53665b;
  font-size: 0.72rem;
  font-weight: 620;
}

.aigator-detector__dynamic-reasons,
.aigator-detector__counter-evidence {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.aigator-detector__dynamic-reasons[hidden],
.aigator-detector__counter-evidence[hidden] {
  display: none !important;
}

.aigator-detector__dynamic-heading {
  display: grid;
  gap: 4px;
}

.aigator-detector__dynamic-heading p {
  margin: 0;
  color: #53665b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.aigator-detector__reason-list {
  display: grid;
  gap: 9px;
}

.aigator-detector__reason-card {
  position: relative;
  display: grid;
  gap: 7px;
  border: 1px solid #dce5df;
  border-left: 3px solid #88968d;
  border-radius: 11px;
  padding: 11px 12px 10px;
  background: #ffffff;
  color: #20352a;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.aigator-detector__reason-card.is-ai {
  border-left-color: var(--agc-ai);
  background: color-mix(in srgb, var(--agc-ai) 3.5%, #ffffff);
}

.aigator-detector__reason-card.is-human {
  border-left-color: var(--agc-human);
  background: color-mix(in srgb, var(--agc-human) 3.5%, #ffffff);
}

.aigator-detector__reason-card.is-uncertain {
  border-left-color: var(--agc-uncertain);
}

.aigator-detector__reason-card[role="button"] {
  cursor: pointer;
}

.aigator-detector__reason-card[role="button"]:hover,
.aigator-detector__reason-card[role="button"]:focus-visible {
  border-color: #b9c9bf;
  box-shadow: 0 8px 24px rgba(16, 55, 32, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.aigator-detector__reason-card > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.aigator-detector__reason-card strong {
  color: #132a1e;
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.3;
}

.aigator-detector__reason-card > div > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  background: #eef3ef;
  color: #4f6257;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.aigator-detector__reason-card.is-ai > div > span {
  background: rgba(189, 85, 71, 0.10);
  color: #8f3f35;
}

.aigator-detector__reason-card.is-human > div > span {
  background: rgba(23, 128, 82, 0.10);
  color: #126b43;
}

.aigator-detector__reason-card p {
  margin: 0;
  color: #42564a;
  font-size: 0.8rem;
  line-height: 1.52;
}

.aigator-detector__reason-card small {
  color: var(--agc-green);
  font-size: 0.68rem;
  font-weight: 680;
}

.aigator-detector__counter-evidence {
  border-top: 1px solid #e6ece8;
  padding-top: 15px;
}

.aigator-detector__evidence.is-pulsing {
  animation: agc-evidence-pulse 850ms ease both;
}

@keyframes agc-evidence-pulse {
  0%, 100% { box-shadow: none; }
  45% { box-shadow: 0 0 0 5px rgba(184, 230, 109, 0.34); }
}

@media (max-width: 720px) {
  .aigator-detector__reason-card > div {
    display: grid;
  }

  .aigator-detector__reason-card > div > span {
    justify-self: start;
  }
}


/* Live analysis input guard states */
.aigator-detector__score-chip.is-unavailable {
  color: var(--agc-muted);
  background: #f2f5f3;
  border-color: #d8e0db;
  font-size: 0.72rem;
  white-space: nowrap;
}

.aigator-detector__score-chip.is-unavailable strong {
  font-size: inherit;
  font-weight: 700;
}

/* AIGator 0.5 hierarchical classification */
.aigator-detector__result[data-result-classification="human"] {
  --agc-result: var(--agc-human);
}

.aigator-detector__result[data-result-classification="mixed"] {
  --agc-result: var(--agc-uncertain);
}

.aigator-detector__result[data-result-classification="ai"] {
  --agc-result: var(--agc-ai);
}

.aigator-detector__result[data-result-classification="uncertain"],
.aigator-detector__result[data-result-classification="insufficient_evidence"] {
  --agc-result: #7a837e;
}

.aigator-detector__composition-summary {
  margin: 10px 0 0;
  color: #1f382b;
  font-size: 0.88rem;
  font-weight: 680;
  line-height: 1.45;
}

.aigator-detector__composition-summary[hidden],
.aigator-detector__class-evidence[hidden],
.aigator-detector__legacy-score[hidden] {
  display: none !important;
}

.aigator-detector__class-evidence {
  margin-top: 13px;
  border-top: 1px solid #e7ede9;
  padding-top: 12px;
}

.aigator-detector__class-evidence-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 7px;
  color: #42564a;
  font-size: 0.72rem;
  font-weight: 650;
}

.aigator-detector__class-evidence-labels span:nth-child(2) {
  text-align: center;
}

.aigator-detector__class-evidence-labels span:last-child {
  text-align: right;
}

.aigator-detector__class-evidence-labels strong {
  color: #152c20;
  font-size: 0.78rem;
}

.aigator-detector__class-evidence-bar {
  display: flex;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ee;
}

.aigator-detector__class-evidence-bar i {
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 260ms ease;
}

.aigator-detector__class-evidence-bar .is-human {
  background: #43a36f;
}

.aigator-detector__class-evidence-bar .is-mixed {
  background: #d9ae45;
}

.aigator-detector__class-evidence-bar .is-ai {
  background: #ca6458;
}

.aigator-detector__class-evidence > small {
  display: block;
  margin-top: 7px;
  color: #56685e;
  font-size: 0.7rem;
  font-weight: 590;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .aigator-detector__composition-summary {
    font-size: 0.82rem;
  }

  .aigator-detector__class-evidence-labels {
    font-size: 0.67rem;
  }
}


/* Hierarchical classification label */
.aigator-detector__classification-label {
  display: block;
  margin-bottom: 8px;
  color: #53665b;
}


/* Guest verification and allowance */
.aigator-detector__verification {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  color: #40564a;
  font-size: 0.82rem;
}

.aigator-detector__turnstile {
  min-width: 1px;
  min-height: 1px;
  flex: 0 1 300px;
}

.aigator-detector__verification-copy {
  margin-left: auto;
  text-align: right;
}

.aigator-detector__gator {
  width: 54px;
  height: 40.5px;
  background-size: 216px 40.5px;
  animation-duration: 560ms;
}

@media (max-width: 700px) {
  .aigator-detector__verification {
    align-items: flex-start;
    flex-direction: column;
  }
  .aigator-detector__verification-copy {
    margin-left: 0;
    text-align: left;
  }
}


/* v0.5.2 clean bite frames and guest access conversion overlay */
.aigator-detector__gator {
  width: 54px;
  height: 40.5px;
  background-image: url("../images/gator-closed.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  animation: none !important;
}

.aigator-detector__gator.is-mouth-open {
  background-image: url("../images/gator-open.png") !important;
}

.aigator-detector__access-gate {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: grid;
  overflow: auto;
  place-items: center;
  border: 1px solid var(--agc-line-strong);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 42px);
  background:
    radial-gradient(circle at 16% 14%, rgba(184, 230, 109, 0.20), transparent 29%),
    linear-gradient(145deg, rgba(247, 251, 248, 0.985), rgba(255, 255, 255, 0.99));
  color: var(--agc-ink);
  overscroll-behavior: contain;
}

.aigator-detector__access-gate[hidden] {
  display: none !important;
}

.aigator-detector__access-gate-card {
  position: relative;
  width: min(100%, 660px);
  border: 1px solid #d6e1da;
  border-radius: 20px;
  padding: clamp(25px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(16, 55, 32, 0.14);
  text-align: center;
}

.aigator-detector__access-gate-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d6e1da;
  border-radius: 12px;
  background: #fff;
  color: #365046;
  cursor: pointer;
  font: 500 1.45rem/1 system-ui, sans-serif;
}

.aigator-detector__access-gate-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  border: 1px solid #cfe0d5;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3f8f4;
  color: var(--agc-green-dark);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aigator-detector__access-gate h3 {
  margin: 0;
  color: var(--agc-ink);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.aigator-detector__access-gate-card > p {
  max-width: 550px;
  margin: 14px auto 0;
  color: #40554a;
  font-size: 1rem;
  line-height: 1.58;
}

.aigator-detector__access-gate-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
}

.aigator-detector__access-gate-benefits span {
  border: 1px solid #dae4dd;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fbfdfb;
  color: #365046;
  font-size: 0.78rem;
  font-weight: 650;
}

.aigator-detector__access-gate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.aigator-detector__access-gate-actions a,
.aigator-detector__access-gate-actions button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}

.aigator-detector__access-gate-primary {
  border: 1px solid var(--agc-green-dark);
  background: var(--agc-green-dark);
  color: #fff;
}

.aigator-detector__access-gate-secondary {
  border: 1px solid #b9cbc0;
  background: #fff;
  color: var(--agc-green-dark);
}

.aigator-detector__access-gate-signin {
  grid-column: 1 / -1;
  min-height: auto !important;
  border: 0;
  background: transparent;
  color: var(--agc-green-dark);
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.aigator-detector__access-gate-signin:hover,
.aigator-detector__access-gate-signin:focus-visible {
  color: #0b4027;
}

.aigator-detector__access-gate-edit {
  grid-column: 1 / -1;
  min-height: auto !important;
  border: 0;
  background: transparent;
  color: #5c6c63;
}

.aigator-detector__access-gate small {
  display: block;
  margin-top: 12px;
  color: #67776e;
  font-size: 0.76rem;
}

.aigator-detector.has-access-gate .aigator-detector__editor-toolbar,
.aigator-detector.has-access-gate .aigator-detector__textarea {
  pointer-events: none;
}

@media (max-width: 560px) {
  .aigator-detector__access-gate-actions {
    grid-template-columns: 1fr;
  }
  .aigator-detector__access-gate-edit {
    grid-column: auto;
  }
}


/* v0.5.4 compact empty editor on phones */
@media (max-width: 700px) {
  .aigator-detector:not(.is-loading):not(.has-result):not(.has-access-gate) .aigator-detector__workspace,
  .aigator-detector:not(.is-loading):not(.has-result):not(.has-access-gate) .aigator-detector__textarea {
    min-height: clamp(280px, 44vh, 340px) !important;
  }

  .aigator-detector:not(.is-loading):not(.has-result):not(.has-access-gate) .aigator-detector__form {
    padding-bottom: 14px;
  }

  .aigator-detector__verification {
    min-height: 0;
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  .aigator-detector:not(.is-loading):not(.has-result):not(.has-access-gate) .aigator-detector__workspace,
  .aigator-detector:not(.is-loading):not(.has-result):not(.has-access-gate) .aigator-detector__textarea {
    min-height: clamp(260px, 41vh, 310px) !important;
  }
}


/* v0.5.5 mobile spacing, compact guest gate, and editor typography */
.aigator-detector__textarea,
.aigator-detector__scan-copy-text {
  font-size: 0.94rem;
  line-height: 1.62;
}

/* The 300px flex basis is horizontal on desktop, but became vertical space
   when the verification row switched to a column on mobile. */
.aigator-detector__turnstile {
  flex: 0 0 auto;
  width: min(100%, 300px);
  min-width: 0;
  min-height: 0;
}

.aigator-detector__turnstile:empty {
  display: none;
}

.aigator-detector__access-gate {
  overflow: hidden;
  padding: clamp(10px, 2.6vw, 22px);
}

.aigator-detector__access-gate-card {
  width: min(100%, 560px);
  border-radius: 17px;
  padding: clamp(18px, 2.8vw, 26px);
}

.aigator-detector__access-gate-close {
  top: 9px;
  right: 9px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.25rem;
}

.aigator-detector__access-gate-kicker {
  margin-bottom: 7px;
  padding: 5px 8px;
  font-size: 0.66rem;
}

.aigator-detector__access-gate h3 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.05;
}

.aigator-detector__access-gate-card > p {
  max-width: 490px;
  margin-top: 9px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.aigator-detector__access-gate-benefits {
  gap: 6px;
  margin-top: 14px;
}

.aigator-detector__access-gate-benefits span {
  padding: 5px 9px;
  font-size: 0.7rem;
}

.aigator-detector__access-gate-actions {
  gap: 8px;
  margin-top: 17px;
}

.aigator-detector__access-gate-actions a,
.aigator-detector__access-gate-actions button {
  min-height: 42px;
  padding: 9px 12px;
  font-size: 0.82rem;
}

.aigator-detector__access-gate-signin {
  min-height: 20px !important;
  padding-top: 4px !important;
  padding-bottom: 2px !important;
  font-size: 0.78rem !important;
}

.aigator-detector__access-gate-edit {
  display: none !important;
}

.aigator-detector__access-gate small {
  margin-top: 7px;
  font-size: 0.68rem;
}

@media (max-width: 700px) {
  .aigator-detector__verification {
    display: block;
    min-height: 0;
    margin-top: 8px;
  }

  .aigator-detector__turnstile {
    width: 100%;
    max-width: 300px;
    margin-bottom: 7px;
  }

  .aigator-detector__verification-copy {
    display: block;
    margin-left: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: left;
  }

  .aigator-detector:not(.is-loading):not(.has-result):not(.has-access-gate) .aigator-detector__workspace,
  .aigator-detector:not(.is-loading):not(.has-result):not(.has-access-gate) .aigator-detector__textarea {
    min-height: clamp(260px, 38vh, 300px) !important;
  }

  .aigator-detector.has-access-gate .aigator-detector__workspace,
  .aigator-detector.has-access-gate .aigator-detector__textarea {
    height: clamp(315px, 45vh, 360px) !important;
    min-height: clamp(315px, 45vh, 360px) !important;
  }

  .aigator-detector__textarea,
  .aigator-detector__scan-copy-text {
    font-size: 0.9rem;
    line-height: 1.56;
  }

  .aigator-detector__access-gate {
    padding: 9px;
  }

  .aigator-detector__access-gate-card {
    width: 100%;
    padding: 15px 14px;
  }

  .aigator-detector__access-gate-benefits {
    display: none;
  }

  .aigator-detector__access-gate-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 13px;
  }

  .aigator-detector__access-gate-signin {
    grid-column: 1 / -1;
  }

  .aigator-detector__access-gate h3 {
    padding-inline: 26px;
    font-size: 1.38rem;
  }

  .aigator-detector__access-gate-card > p {
    margin-top: 7px;
    font-size: 0.8rem;
    line-height: 1.38;
  }
}

@media (max-width: 420px) {
  .aigator-detector:not(.is-loading):not(.has-result):not(.has-access-gate) .aigator-detector__workspace,
  .aigator-detector:not(.is-loading):not(.has-result):not(.has-access-gate) .aigator-detector__textarea {
    min-height: clamp(240px, 36vh, 280px) !important;
  }

  .aigator-detector.has-access-gate .aigator-detector__workspace,
  .aigator-detector.has-access-gate .aigator-detector__textarea {
    height: 320px !important;
    min-height: 320px !important;
  }

  .aigator-detector__access-gate-actions a,
  .aigator-detector__access-gate-actions button {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 0.76rem;
  }

  .aigator-detector__access-gate-kicker {
    font-size: 0.61rem;
  }
}


/* v0.5.6 vertically balanced guest access panel */
.aigator-detector__access-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.aigator-detector__access-gate-card {
  width: min(100%, 560px);
  max-height: calc(100% - 2px);
  margin-block: auto;
  padding: 21px 24px;
}

/* The benefits repeat the account and plan actions and made the panel
   unnecessarily tall. Removing them keeps equal visual space above and below. */
.aigator-detector__access-gate-benefits {
  display: none !important;
}

.aigator-detector__access-gate-actions {
  margin-top: 16px;
}

.aigator-detector__access-gate small {
  margin-top: 6px;
}

@media (max-width: 700px) {
  .aigator-detector__access-gate {
    padding: 12px;
  }

  .aigator-detector__access-gate-card {
    max-height: calc(100% - 2px);
    padding: 14px 14px 13px;
  }

  .aigator-detector__access-gate-actions {
    margin-top: 12px;
  }
}

@media (max-width: 420px) {
  .aigator-detector__access-gate {
    padding: 10px;
  }

  .aigator-detector__access-gate-card {
    padding: 13px 11px 12px;
  }
}

/* v0.6.0 account-aware full-editor result drawer */
.aigator-detector.has-result .aigator-detector__shell,
.aigator-detector.has-result .aigator-detector__form,
.aigator-detector.has-result .aigator-detector__workspace {
  overflow: visible;
}

.aigator-detector__result {
  display: block !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.aigator-detector__result-split {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  overflow: hidden !important;
  border: 1px solid var(--agc-line-strong) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(16, 55, 32, 0.08);
}

.aigator-detector__result-text-pane,
.aigator-detector__result-report-pane {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  border: 0 !important;
  background: #fff !important;
}

.aigator-detector__result-text-pane {
  display: none !important;
}

.aigator-detector__result-report-pane {
  display: grid !important;
}

.aigator-detector__result.is-text-view .aigator-detector__result-text-pane {
  display: grid !important;
}

.aigator-detector__result.is-text-view .aigator-detector__result-report-pane {
  display: none !important;
}

.aigator-detector__result-view-switch {
  position: absolute;
  z-index: 12;
  top: 50%;
  right: -43px;
  display: inline-flex;
  width: 43px;
  min-width: 43px;
  height: 118px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9d8cf;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  padding: 10px 8px;
  background: #f7faf7;
  color: #164f34;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.aigator-detector__result-view-switch:hover,
.aigator-detector__result-view-switch:focus-visible {
  border-color: #8fb29c;
  background: #eaf4ed;
  color: #0c442a;
  outline: none;
}

.aigator-detector__result-view-switch span {
  display: block;
}

/* Keep primary actions legible in themes that recolor links/buttons on hover. */
.aigator-detector button.aigator-detector__button--free,
.aigator-detector button.aigator-detector__button--free:hover,
.aigator-detector button.aigator-detector__button--free:focus-visible,
.aigator-detector__access-gate-primary,
.aigator-detector__access-gate-primary:hover,
.aigator-detector__access-gate-primary:focus-visible {
  color: #fff !important;
}

.aigator-detector button.aigator-detector__button--free:hover,
.aigator-detector button.aigator-detector__button--free:focus-visible,
.aigator-detector__access-gate-primary:hover,
.aigator-detector__access-gate-primary:focus-visible {
  background: #0b4a2d !important;
}

@media (max-width: 1180px) {
  .aigator-detector__result-view-switch {
    top: auto;
    right: 8px;
    bottom: 8px;
    width: auto;
    min-width: 86px;
    height: 38px;
    border-left: 1px solid #c9d8cf;
    border-radius: 10px;
    padding: 8px 12px;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .aigator-detector__result-text-scroll,
  .aigator-detector__result-report-scroll {
    padding-bottom: 48px;
  }
}


/* v0.6.1 contained 50/50 result workspace */
.aigator-detector.has-result .aigator-detector__shell,
.aigator-detector.has-result .aigator-detector__form {
  overflow: hidden;
}

.aigator-detector.has-result .aigator-detector__workspace {
  overflow: hidden !important;
}

.aigator-detector__result {
  display: block !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.aigator-detector__result-split {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border: 1px solid var(--agc-line-strong) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(16, 55, 32, 0.08);
}

.aigator-detector__result-text-pane,
.aigator-detector__result-report-pane,
.aigator-detector__result.is-text-view .aigator-detector__result-text-pane,
.aigator-detector__result.is-text-view .aigator-detector__result-report-pane {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  width: auto !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: #fff !important;
}

.aigator-detector__result-text-pane,
.aigator-detector__result.is-text-view .aigator-detector__result-text-pane {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  border-right: 1px solid #e5ece7 !important;
}

.aigator-detector__result-report-pane,
.aigator-detector__result.is-text-view .aigator-detector__result-report-pane {
  grid-template-rows: auto minmax(0, 1fr) !important;
  background: #fbfcfb !important;
}

.aigator-detector__result-view-switch {
  display: none !important;
}

.aigator-detector__pane-header--text {
  padding-right: 16px;
}

.aigator-detector__pane-header--report {
  grid-template-columns: minmax(0, 1fr) auto;
}

.aigator-detector__result-text-scroll,
.aigator-detector__result-report-scroll {
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 0;
}

@media (max-width: 900px) {
  .aigator-detector__result-split {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(260px, 0.95fr) minmax(320px, 1.05fr) !important;
  }

  .aigator-detector__result-text-pane,
  .aigator-detector__result.is-text-view .aigator-detector__result-text-pane {
    border-right: 0 !important;
    border-bottom: 1px solid #e5ece7 !important;
  }
}


/* v0.6.2 simplified user-facing classification */
.aigator-detector__origin-meta span[hidden],
.aigator-detector__class-evidence {
  display: none !important;
}

.aigator-detector__classification-label {
  letter-spacing: 0.11em;
}


/* v0.7.4: normalize primary CTA height with availability notice */
.aigator-detector__footer {
  align-items: center;
}

.aigator-detector__verification-copy {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.74rem;
}

.aigator-detector__actions {
  align-self: center;
}

.aigator-detector button.aigator-detector__button {
  min-height: 42px;
  height: 42px;
  padding: 8px 12px 8px 16px;
}

.aigator-detector__button-label strong {
  line-height: 1.15;
}

.aigator-detector__button-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

@media (max-width: 600px) {
  .aigator-detector button.aigator-detector__button {
    width: 100%;
    min-height: 42px;
    height: 42px;
  }
}


/* v0.7.5: improve CTA contrast and mobile readability */
.aigator-detector button.aigator-detector__button--free,
.aigator-detector button.aigator-detector__button--free:visited {
  background: #126a43;
  border-color: #126a43;
  color: #ffffff !important;
}

.aigator-detector button.aigator-detector__button--free .aigator-detector__button-label strong,
.aigator-detector button.aigator-detector__button--free .aigator-detector__button-label small,
.aigator-detector button.aigator-detector__button--free .aigator-detector__button-icon {
  color: #ffffff !important;
}

.aigator-detector button.aigator-detector__button--free .aigator-detector__button-icon {
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.aigator-detector button.aigator-detector__button--free:hover:not(:disabled),
.aigator-detector button.aigator-detector__button--free:focus-visible {
  background: #0f5a3a !important;
  border-color: #0f5a3a;
  color: #ffffff !important;
}

.aigator-detector button.aigator-detector__button--free:disabled {
  background: #6f9481;
  border-color: #6f9481;
  color: #ffffff !important;
  opacity: 1;
}

.aigator-detector button.aigator-detector__button--free:disabled .aigator-detector__button-label strong,
.aigator-detector button.aigator-detector__button--free:disabled .aigator-detector__button-label small,
.aigator-detector button.aigator-detector__button--free:disabled .aigator-detector__button-icon {
  color: #ffffff !important;
}

.aigator-detector button.aigator-detector__button--free:disabled .aigator-detector__button-icon {
  background: rgba(16, 60, 39, 0.16);
}

@media (max-width: 600px) {
  .aigator-detector button.aigator-detector__button--free {
    box-shadow: 0 2px 8px rgba(18, 106, 67, 0.10);
  }
}


/* v0.7.7: aligned split headers and persistent interactive scrollbars */
@media (min-width: 901px) {
  .aigator-detector__result-split {
    --aigator-result-header-height: 78px;
  }

  .aigator-detector__result-text-pane,
  .aigator-detector__result.is-text-view .aigator-detector__result-text-pane {
    grid-template-rows: var(--aigator-result-header-height) minmax(0, 1fr) auto !important;
  }

  .aigator-detector__result-report-pane,
  .aigator-detector__result.is-text-view .aigator-detector__result-report-pane {
    grid-template-rows: var(--aigator-result-header-height) minmax(0, 1fr) !important;
  }

  .aigator-detector__pane-header,
  .aigator-detector__pane-header--text,
  .aigator-detector__pane-header--report {
    box-sizing: border-box;
    width: 100%;
    height: var(--aigator-result-header-height) !important;
    min-height: var(--aigator-result-header-height) !important;
    max-height: var(--aigator-result-header-height) !important;
    border-bottom: 1px solid #e5ece7 !important;
  }
}

.aigator-detector__scroll-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.aigator-detector__scroll-shell > .aigator-detector__result-text-scroll,
.aigator-detector__scroll-shell > .aigator-detector__result-report-scroll {
  box-sizing: border-box;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}

.aigator-detector__scroll-shell > .aigator-detector__result-text-scroll::-webkit-scrollbar,
.aigator-detector__scroll-shell > .aigator-detector__result-report-scroll::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none;
}

.aigator-detector__persistent-scrollbar {
  position: absolute;
  z-index: 12;
  top: 9px;
  right: 5px;
  bottom: 9px;
  width: 9px;
  border-radius: 999px;
  background: #edf2ee;
  box-shadow: inset 0 0 0 1px rgba(91, 112, 100, 0.07);
  cursor: pointer;
  opacity: 1;
  touch-action: none;
  user-select: none;
}

.aigator-detector__persistent-scrollbar[hidden] {
  display: none !important;
}

.aigator-detector__persistent-scrollbar-thumb {
  position: absolute;
  top: 0;
  right: 2px;
  left: 2px;
  min-height: 38px;
  border-radius: 999px;
  background: #8da296;
  box-shadow: 0 1px 3px rgba(25, 52, 37, 0.15);
  transition: background-color 140ms ease, box-shadow 140ms ease;
  will-change: transform, height;
}

.aigator-detector__persistent-scrollbar:hover .aigator-detector__persistent-scrollbar-thumb,
.aigator-detector__scroll-shell.is-scrollbar-dragging .aigator-detector__persistent-scrollbar-thumb {
  background: #667f71;
  box-shadow: 0 1px 4px rgba(25, 52, 37, 0.22);
}

.aigator-detector__scroll-shell.is-scrollable > .aigator-detector__result-text-scroll,
.aigator-detector__scroll-shell.is-scrollable > .aigator-detector__result-report-scroll {
  padding-right: max(18px, calc(1rem + 8px));
}

@media (max-width: 900px) {
  .aigator-detector__pane-header,
  .aigator-detector__pane-header--text,
  .aigator-detector__pane-header--report {
    height: auto !important;
    max-height: none !important;
  }

  .aigator-detector__persistent-scrollbar {
    right: 4px;
    width: 8px;
  }
}


/* v0.7.10: concise user-facing scan status */
.aigator-detector__scan-status {
  grid-template-columns: auto minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  gap: 0 12px !important;
  align-items: center !important;
}

.aigator-detector__scan-kicker {
  grid-row: auto !important;
  align-self: center !important;
}

.aigator-detector__scan-status strong {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
}

.aigator-detector__scan-status > [data-aigator-scan-description] {
  display: none !important;
}


/* v0.7.11: account status badge states */
.aigator-detector__privacy.is-signed-in {
  border-color: #bfdbc9;
  background: #f4faf6;
  color: #155f3d;
}
.aigator-detector__privacy.is-verification-required {
  border-color: #e4d5a8;
  background: #fffaf0;
  color: #775b16;
}

/* v0.8.0 paid-credit confirmation */
.aigator-detector__modal-primary {
  border-color: #0f5a36 !important;
  background: #0f5a36 !important;
  color: #fff !important;
}
.aigator-detector__modal-primary:hover,
.aigator-detector__modal-primary:focus-visible {
  border-color: #0a4428 !important;
  background: #0a4428 !important;
  color: #fff !important;
}
