:root {
  font-size: 14px;
  scrollbar-gutter: stable;
  --type-name-detail-size: 25px;
  --type-name-detail-lh: 30px;
  --type-name-card-size: 18px;
  --type-name-card-lh: 23px;
  --type-sci-card-size: 13.5px;
  --type-sci-card-lh: 18px;
  --type-sci-size: 16px;
  --type-sci-lh: 21px;
  --type-secondary-size: 12.5px;
  --type-secondary-lh: 17px;
  --type-tag-size: 12.5px;
  --type-tag-lh: 15px;
  --type-caption-size: 13.5px;
  --type-caption-lh: 19px;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-screen) 60px;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--type-page-title-size);
  line-height: var(--type-page-title-lh);
  font-weight: var(--type-page-title-weight);
  color: var(--text-primary);
}

h2 {
  font-size: var(--type-heading-size);
  line-height: var(--type-heading-lh);
  margin: 22px 0 8px;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--theme-primary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--theme-neutral-soft);
  padding: 1px 5px;
  border-radius: var(--r-tag);
}

html {
  overflow-x: clip;
}

header {
  position: relative;
  z-index: 50;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 26px;
  padding: 18px 0;
  color: var(--text-on-inverse);
  font-size: 14px;
  line-height: 1;
}

header::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--theme-primary-shade);
}

header .brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-on-inverse);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: var(--type-brand-size);
  line-height: var(--type-brand-lh);
  font-weight: var(--type-brand-weight);
  letter-spacing: 0.01em;
}

header .brand img {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
  align-self: center;
}

header .brand .tagline {
  margin-left: 2px;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-on-inverse-muted);
}

header .domain-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  margin: 0 auto 0 0;
  padding: 0 12px 0 10px;
  border-radius: var(--r-button);
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-on-inverse);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition);
}

header .domain-switch svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  stroke-width: 36;
}

header .domain-switch:hover {
  background: rgba(255, 255, 255, 0.24);
}

header .nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

header .nav a, header .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  margin: 0;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: var(--r-button);
  cursor: pointer;
  background: none;
  color: var(--text-on-inverse-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}

header .nav a svg, header .nav-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  stroke-width: 36;
}

header .nav a span, header .nav-toggle span {
  display: block;
}

header .nav a:hover, header .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-inverse);
}

header .nav a[aria-current], header .nav-toggle[aria-current] {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-on-fill);
}

header .nav-toggle .chev {
  display: flex;
  margin-left: -2px;
}

header .nav-toggle .chev svg {
  display: block;
  width: 14px;
  height: 14px;
}

header .nav-toggle[aria-expanded=true] .chev {
  transform: rotate(180deg);
}

header .nav-group {
  position: relative;
}

header .menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-overlay);
}

header .menu[hidden] {
  display: none;
}

header .menu a {
  height: 38px;
  padding: 0 10px;
  color: var(--text-primary);
  font-weight: 500;
}

header .menu a svg {
  color: var(--theme-primary);
}

header .menu a:hover {
  background: var(--green-tint-hover);
  color: var(--text-primary);
}

header .menu a[aria-current] {
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
}

.page-title {
  margin: 0 0 6px;
}

.lede {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 62ch;
}

@media (max-width: 1250px) {
  header .brand .tagline {
    display: none;
  }
}

@media (max-width: 720px) {
  header {
    margin-bottom: 20px;
    padding: 12px 0;
  }
  header .nav a span, header .nav-toggle span {
    display: none;
  }
  header .nav a, header .nav-toggle {
    padding: 0 11px;
  }
  header .nav a svg, header .nav-toggle svg {
    width: 22px;
    height: 22px;
  }
  header .nav .menu a span {
    display: block;
  }
  header .nav-toggle .chev {
    display: none;
  }
}

.info-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  vertical-align: middle;
  padding: 3px 9px 3px 7px;
  border: 1px solid transparent;
  border-radius: var(--r-tag);
  font-family: var(--font-sans);
  font-size: var(--type-tag-size);
  line-height: var(--type-tag-lh);
  font-weight: var(--type-tag-weight);
  white-space: nowrap;
}

.info-label .icon {
  width: var(--i-tag);
  height: var(--i-tag);
  flex: none;
  fill: currentColor;
}

.info-label .text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-label .text.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

.info-label:not(:has(.icon)) {
  padding-left: 9px;
}

.info-label.icon-only {
  padding: 4px;
}

.info-label.look-green {
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  border-color: var(--theme-primary-soft);
}

.info-label.look-green-solid {
  background: var(--theme-primary);
  color: var(--theme-primary-contrast);
  border-color: var(--theme-primary);
}

.info-label.look-yellow {
  background: var(--theme-secondary-soft);
  color: var(--yellow-text);
  border-color: var(--theme-secondary-soft);
}

.info-label.look-red {
  background: var(--theme-danger-soft);
  color: var(--theme-danger);
  border-color: var(--theme-danger-soft);
}

.info-label.look-grey {
  background: var(--theme-neutral-soft);
  color: var(--theme-neutral);
  border-color: var(--theme-neutral-soft);
}

.info-label.look-lime {
  background: var(--lime-soft);
  color: var(--lime-text);
  border-color: var(--lime-soft);
}

.info-label.look-violet {
  background: var(--violet-soft);
  color: var(--violet-text);
  border-color: var(--violet-soft);
}

.info-label.look-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.info-label.look-orange {
  background: var(--orange);
  color: var(--text-on-fill);
  border-color: var(--orange);
}

.source-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--r-tag);
  vertical-align: middle;
  white-space: nowrap;
  background: var(--theme-neutral-soft);
  color: var(--theme-neutral);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
  text-decoration: none;
}

.source-tag.credit {
  text-transform: none;
  text-decoration: underline;
  color: var(--theme-neutral);
}

.edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: rgba(var(--overlay-rgb), 0.25);
}

.edge .fill {
  height: 100%;
  background: var(--confidence-high);
}

.edge .fill.ok {
  background: var(--confidence-mid);
}

.edge .fill.low {
  background: var(--confidence-low);
}

.conf-tab {
  position: absolute;
  right: 10px;
  bottom: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  padding: 0 9px;
  border-radius: var(--r-tag);
  background: var(--confidence-high);
  color: var(--text-on-fill);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.conf-tab.ok {
  background: var(--confidence-mid);
}

.conf-tab.low {
  background: var(--confidence-low);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: var(--r-button);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn.grow {
  flex: 1;
}

.btn.small {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.btn.primary {
  background: var(--theme-primary);
  color: var(--theme-primary-contrast);
}

.btn.primary:hover {
  background: var(--green-hover);
}

.btn.primary:active {
  background: var(--green-pressed);
}

.btn.accent {
  background: var(--orange);
  color: var(--on-accent);
}

.btn.accent:hover {
  background: var(--orange-hover);
}

.btn.accent:active {
  background: var(--orange-pressed);
}

.btn.secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
  font-weight: 600;
}

.btn.secondary:hover {
  background: var(--green-tint-hover);
}

.btn.secondary:active {
  background: var(--green-tint-pressed);
}

.btn.ghost {
  background: var(--bg-surface);
  color: var(--theme-primary);
  border-color: var(--theme-primary);
  font-weight: 600;
}

.btn.ghost:hover {
  background: var(--theme-primary-soft);
}

.btn.ghost:active {
  background: var(--green-tint-pressed);
}

.btn:disabled, .btn:disabled:hover, .btn:disabled:active {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  border-color: var(--disabled-border);
  cursor: not-allowed;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.field input, .field select, .field textarea {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-primary);
}

.field.narrow-field {
  max-width: 220px;
}

.place-search {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.place-search .field {
  flex: 1;
  min-width: 0;
}

.place-search .btn {
  margin-bottom: 14px;
}

.place-results {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  overflow: hidden;
}

.place-results li + li {
  border-top: 1px solid var(--border);
}

.place-results .place-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.place-results .place-result span {
  font-size: 12px;
  color: var(--text-muted);
}

.place-results .place-result:hover {
  background: var(--green-tint-hover);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
}

.check input {
  margin-top: 3px;
  flex: none;
}

.check .hint {
  display: block;
  margin: 2px 0 0;
}

.inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 400;
}

.inline-field select {
  min-height: 32px;
}

.hint.block {
  display: block;
  margin: 4px 0 0;
}

#useLocationBtn {
  margin-bottom: 14px;
}

.banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--r-input);
  font-size: 14px;
}

.banner.error {
  background: var(--theme-danger-soft);
  color: var(--theme-danger);
}

.banner.ok {
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
}

.banner.ok a {
  font-weight: 700;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-lh);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.steps li:last-child {
  flex: none;
}

.steps li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 4px;
  background: var(--border-strong);
}

.steps li .num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: var(--r-circle);
  background: var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.steps li .label {
  white-space: nowrap;
}

.steps li.done, .steps li.current {
  color: var(--text-primary);
}

.steps li.done .num, .steps li.current .num {
  background: var(--theme-primary);
  color: var(--theme-primary-contrast);
}

.step-card, .result-card {
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-raised);
}

.step-card {
  padding: 24px;
  margin: 0 0 16px;
}

.actions {
  display: flex;
  gap: 10px;
  margin: 20px 0 0;
}

#step-result > .actions {
  margin-top: 0;
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-card);
  background: var(--bg-page);
  color: var(--theme-primary-tint);
  transition: background-color var(--transition), border-color var(--transition);
}

.dropzone:hover, .dropzone.over {
  background: var(--theme-primary-soft);
  border-color: var(--theme-primary);
}

.dropzone.has-photo {
  border-style: solid;
}

.dropzone .drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dropzone svg {
  width: 36px;
  height: 36px;
}

.dropzone strong {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.dropzone .hint {
  margin: 0;
  font-size: 13px;
}

.dropzone .drop-preview {
  width: 100%;
  height: 100%;
  background: center / contain no-repeat;
}

.drop-name {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.advanced {
  margin-top: 18px;
}

.advanced summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
}

.advanced summary::-webkit-details-marker {
  display: none;
}

.advanced summary:hover {
  color: var(--text-primary);
}

.advanced summary svg {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform var(--transition);
}

.advanced[open] summary svg {
  transform: rotate(90deg);
}

.advanced .advanced-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 12px;
  background: var(--bg-page);
  border-radius: var(--r-input);
}

.advanced .sources-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.advanced .sources-list .check {
  margin: 0;
}

.advanced .advanced-body > .check {
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.result-card {
  overflow: hidden;
  margin: 0 0 16px;
}

.result-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-page) center/cover no-repeat;
}

.result-photo > span {
  position: absolute;
  top: 14px;
  left: 14px;
}

.result-text {
  padding: 20px 24px;
}

.result-text .eyebrow {
  margin: 0 0 6px;
}

.result-text h2 {
  margin: 0;
  font-size: 24px;
  line-height: 29px;
  font-weight: 600;
}

.result-text .sci {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--theme-primary-tint);
}

.result-text .conf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
}

.result-text .conf-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(var(--overlay-rgb), 0.12);
  overflow: hidden;
}

.result-text .fill {
  height: 100%;
  border-radius: 4px;
  background: var(--confidence-high);
}

.result-text .fill.ok {
  background: var(--confidence-mid);
}

.result-text .fill.low {
  background: var(--confidence-low);
}

.result-text .conf-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--confidence-high);
}

.result-text .conf-num.ok {
  color: var(--confidence-mid);
}

.result-text .conf-num.low {
  color: var(--confidence-low);
}

.result-text .via {
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.result-text .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.result-text .desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
}

.result-text .taxon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px dashed var(--border-strong);
  border-bottom: 1px dashed var(--border-strong);
}

.result-text .taxon-chips .chip {
  display: flex;
  flex-direction: column;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid var(--border);
}

.result-text .taxon-chips .chip:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.result-text .taxon-chips .value {
  font-family: var(--font-serif);
  font-size: 14px;
}

.result-text .photo-shows {
  font-size: 13px;
  color: var(--text-muted);
}

.alternates {
  margin: 0 0 20px;
}

.alternates h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.alternates .alt-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alternates .alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-input);
  color: var(--text-primary);
  font-weight: 400;
}

.alternates .alt:hover {
  background: var(--green-tint-hover);
  border-color: var(--border-strong);
}

.alternates .alt:disabled {
  color: var(--disabled-text);
  background: var(--disabled-bg);
  cursor: default;
}

.alternates .alt .sci {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
}

.alternates .alt .pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.how {
  margin: 0 0 20px;
}

.log-box {
  margin: 10px 0 0;
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  border-radius: var(--r-card);
  background: var(--bg-inverse);
  color: var(--text-on-inverse);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.more-links {
  margin: 24px 0 0;
  font-size: 14px;
}

@media (max-width: 640px) {
  .step-card {
    padding: 16px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .result-text {
    padding: 16px;
  }
  .steps li:not(.current) .label {
    display: none;
  }
  .steps li.current .label {
    display: block;
  }
}

.claude-box {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.claude-box h3 {
  margin: 0 0 2px;
}

.claude-box .hint {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.claude-box textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
}

.claude-box .chat-turn {
  margin: 10px 0;
}

.claude-box .chat-q {
  margin: 0 0 4px;
  font-weight: 600;
}

.claude-box .chat-photos {
  font-weight: 400;
  color: var(--text-muted);
}

.claude-box .chat-a {
  margin: 0;
  white-space: pre-wrap;
}

.claude-box .suggest-card {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: var(--r-card);
  background: var(--theme-primary-soft);
}

.claude-box .suggest-card p {
  margin: 0 0 6px;
}

.claude-box .chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.previous-card {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-card);
}

.alt .reason {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

[hidden] {
  display: none !important;
}

body.narrow > *:not(header):not(script) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

fieldset {
  position: relative;
  margin: 42px 0 var(--sp-section);
  padding: 4px var(--sp-screen) var(--sp-screen);
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-raised);
}

legend {
  position: absolute;
  top: -30px;
  left: 2px;
  padding: 0;
  font-family: var(--font-serif);
  font-size: var(--type-heading-size);
  line-height: var(--type-heading-lh);
  font-weight: var(--type-heading-weight);
}

label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 600;
}

.checkboxRow {
  font-weight: 400;
  margin: 8px 0;
}

.checkboxRow input {
  margin-right: 6px;
}

.hint {
  font-size: var(--type-secondary-size);
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

input[type=text], input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%;
  min-height: var(--t-input);
  padding: 0 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-input);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-surface);
}

input[type=text]:focus, input[type=password]:focus, input[type=search]:focus, input[type=date]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--theme-primary);
}

select {
  width: auto;
  padding: 0 10px;
}

textarea {
  padding: 8px 12px;
  resize: vertical;
}

input[type=file] {
  margin-top: 8px;
  font-family: inherit;
  font-size: 1rem;
}

input[type=checkbox] {
  accent-color: var(--theme-primary);
}

button, .local-backup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: var(--t-button);
  padding: 0 18px;
  border: none;
  border-radius: var(--r-button);
  background: var(--theme-primary);
  color: var(--theme-primary-contrast);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition);
}

button:hover, .local-backup-btn:hover {
  background: var(--green-hover);
}

button:active, .local-backup-btn:active {
  background: var(--green-pressed);
}

button:disabled, .local-backup-btn:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: default;
}

#useLocationBtn, #rejectBtn, .restore-btn {
  background: var(--bg-surface);
  color: var(--theme-primary);
  border: 1.5px solid var(--theme-primary);
}

#useLocationBtn:hover, #rejectBtn:hover, .restore-btn:hover {
  background: var(--theme-primary-soft);
}

#useLocationBtn:active, #rejectBtn:active, .restore-btn:active {
  background: var(--green-tint-pressed);
}

#rejectBtn {
  margin-left: 8px;
}

.restore-btn {
  min-height: 30px;
  margin-top: 0;
  font-size: 1rem;
  padding: 0 12px;
}

#searchRow {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

#searchRow input {
  flex: 1;
}

#searchRow button {
  margin-top: 0;
}

#preview {
  max-width: 260px;
  display: block;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-photo);
}

#log {
  background: var(--bg-inverse);
  color: var(--text-on-inverse);
  padding: 12px;
  border-radius: var(--r-card);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}

#answer {
  background: var(--theme-primary-soft);
  border: 1px solid var(--theme-primary);
  padding: 12px;
  border-radius: var(--r-card);
  margin: 0 0 var(--sp-section);
  white-space: pre-wrap;
}

#status {
  margin: 12px 0 0;
}

#status.error {
  color: var(--theme-danger);
}

#status.ok {
  color: var(--theme-primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom-color: var(--border-strong);
}

tbody tr:hover td {
  background: var(--green-tint-hover);
}

h2 + .source-card {
  margin-top: 8px;
}

.source-card {
  margin: 0 0 var(--sp-card);
  padding: var(--sp-card-pad) var(--sp-screen) 12px;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-raised);
}

.source-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.source-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--type-heading-size);
}

.source-card .used {
  margin: 6px 0 0;
}

.source-card .counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.source-card .count {
  display: flex;
  flex-direction: column;
  min-width: 64px;
  padding: 6px 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.source-card .count strong {
  font-size: 1.15rem;
}

.source-card .count span {
  font-size: var(--type-secondary-size);
  color: var(--text-muted);
}

.source-card .hint {
  margin: 8px 0 0;
}

.source-card .dataset {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.source-card .installed {
  margin: 0;
  font-weight: 600;
}

.source-card .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.source-card .details {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.source-card .details dt {
  margin-top: 8px;
  font-size: var(--type-secondary-size);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.source-card .details dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.pill {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: var(--type-secondary-size);
  color: var(--text-muted);
}

.pill.bad {
  border-color: var(--theme-danger);
  color: var(--theme-danger);
}

.bad {
  color: var(--theme-danger);
}

.warn {
  color: var(--yellow-text);
}

button.small {
  min-height: 30px;
  margin-top: 0;
  padding: 0 12px;
  font-size: 1rem;
}

button.secondary {
  background: var(--bg-surface);
  color: var(--theme-primary);
  border: 1.5px solid var(--theme-primary);
}

button.secondary:hover {
  background: var(--theme-primary-soft);
}

.small-link {
  font-weight: 600;
}

button.link-button {
  margin: 10px 0 0;
  min-height: 0;
  padding: 0;
  background: none;
  color: var(--theme-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
}

button.link-button:hover {
  background: none;
}

.job-dialog {
  width: 520px;
  max-width: calc(100vw - 32px);
  padding: 20px var(--sp-screen);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-surface);
  color: var(--text-primary);
  text-align: center;
}

.job-dialog::backdrop {
  background: rgba(var(--overlay-rgb), 0.45);
}

.job-dialog h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--type-heading-size);
}

.job-dialog .job-now {
  margin: 0 0 8px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.job-dialog .job-stages {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: var(--type-secondary-size);
  color: var(--text-muted);
}

.job-dialog .job-stages li {
  margin: 2px 0;
  overflow-wrap: anywhere;
}

.job-dialog .job-time {
  margin: 0;
}

.job-dialog .job-cancel {
  background: var(--bg-surface);
  color: var(--theme-danger);
  border: 1.5px solid var(--theme-danger);
}

.job-dialog .job-cancel:hover {
  background: var(--bg-surface);
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 8px;
}

.toolbar button {
  margin-top: 0;
}

.refresh-dialog {
  width: 620px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 32px);
  padding: 16px var(--sp-screen);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.refresh-dialog::backdrop {
  background: rgba(var(--overlay-rgb), 0.45);
}

.refresh-dialog .dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.refresh-dialog .dialog-head button {
  margin-top: 0;
}

.refresh-dialog h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--type-heading-size);
}

.refresh-dialog h4 {
  margin: 16px 0 6px;
  font-size: var(--type-secondary-size);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.refresh-dialog .hint {
  margin-left: 0;
}

.refresh-dialog .choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.refresh-dialog .choice input {
  margin-top: 3px;
}

.refresh-dialog .choice-text {
  display: flex;
  flex-direction: column;
}

.refresh-dialog .days {
  width: 70px;
  min-height: 28px;
  padding: 0 6px;
  margin: 0 4px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-input);
  font: inherit;
}

.refresh-dialog .summary {
  margin: 14px 0;
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.refresh-dialog .summary p {
  margin: 4px 0;
}

.refresh-dialog .summary ul {
  margin: 4px 0;
  padding-left: 18px;
}

.refresh-dialog .headline {
  font-weight: 600;
}

.refresh-dialog #rfStart {
  width: 100%;
  margin-top: 0;
}

.source-card.run {
  cursor: pointer;
}

.pill.good {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.run-details {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.run-details h4 {
  margin: 10px 0 4px;
  font-size: var(--type-secondary-size);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.run-details .change {
  margin-top: 8px;
}

.run-details .pair {
  margin: 2px 0 0 8px;
  overflow-wrap: anywhere;
}

.run-details .field {
  display: inline-block;
  min-width: 130px;
  color: var(--text-muted);
}

.run-details .old {
  text-decoration: line-through;
  color: var(--text-muted);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.buttons button {
  margin-top: 0;
}

.log-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.log-toolbar input[type=search] {
  flex: 1 1 260px;
}

.log-toolbar .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.log-toolbar button {
  margin-top: 0;
}

.hint.bad {
  color: var(--theme-danger);
}

.log-row {
  display: grid;
  grid-template-columns: 140px 80px minmax(0, 1fr) minmax(0, 200px);
  gap: 4px 12px;
  align-items: start;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
}

.log-head {
  font-size: var(--type-secondary-size);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-strong);
}

.log-entry {
  cursor: pointer;
  background: var(--bg-surface);
  border-left: 3px solid transparent;
}

.log-entry:hover {
  background: var(--green-tint-hover);
}

.log-entry.warning {
  border-left-color: var(--orange);
}

.log-entry.error {
  border-left-color: var(--theme-danger);
}

.log-entry .time {
  font-family: var(--font-mono);
  font-size: var(--type-secondary-size);
  white-space: nowrap;
}

.log-entry .tag {
  font-size: var(--type-secondary-size);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.log-entry .msg {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.log-entry .item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--type-secondary-size);
  color: var(--theme-primary);
}

.log-entry.open .msg {
  display: block;
}

.log-entry .details {
  grid-column: 1 / -1;
  margin: 4px 0 2px;
  padding: 8px 10px;
  overflow-x: auto;
  background: var(--bg-page);
  border-radius: var(--r-input);
  font-family: var(--font-mono);
  font-size: var(--type-secondary-size);
  cursor: text;
}

@media (max-width: 720px) {
  .log-row {
    grid-template-columns: 1fr 1fr;
  }
  .log-row .msg {
    grid-column: 1 / -1;
  }
  .log-head {
    display: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

input[type=file]::file-selector-button {
  margin-right: 10px;
  padding: 6px 14px;
  border: 1.5px solid var(--theme-primary);
  border-radius: var(--r-button);
  cursor: pointer;
  background: var(--bg-surface);
  color: var(--theme-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
}

input[type=file]::file-selector-button:hover {
  background: var(--theme-primary-soft);
}

.an-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-raised);
}

.an-bar .an-page {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
}

.an-bar .an-page select {
  min-width: 150px;
}

.an-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.an-filters .muted {
  font-size: var(--type-secondary-size);
  color: var(--text-muted);
}

.an-filters .hint {
  margin: 0;
}

.an-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  margin: 0;
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  font-family: inherit;
  font-size: var(--type-secondary-size);
  font-weight: 600;
}

.an-chip:hover {
  background: var(--green-tint-pressed);
}

.clear-all {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--type-secondary-size);
  color: var(--text-muted);
  text-decoration: underline;
}

.an-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.an-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  border-top: 4px solid var(--chart-1);
  box-shadow: var(--shadow-raised);
}

.an-tile:nth-child(2) {
  border-top-color: var(--chart-2);
}

.an-tile:nth-child(3) {
  border-top-color: var(--chart-3);
}

.an-tile:nth-child(4) {
  border-top-color: var(--chart-4);
}

.an-tile strong {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  line-height: 1.15;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.an-tile span {
  color: var(--text-muted);
}

.an-tile em {
  font-style: normal;
  font-size: var(--type-secondary-size);
  color: var(--text-muted);
}

.an-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
  margin: 0 0 14px;
}

.an-grid.one {
  grid-template-columns: minmax(0, 1fr);
}

.an-card {
  min-width: 0;
  padding: 12px 14px 14px;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-raised);
}

.an-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--type-heading-size);
}

.an-card .hint {
  margin: 0 0 6px;
}

.an-card.wide {
  grid-column: 1 / -1;
  margin-bottom: 14px;
}

.an-chart {
  position: relative;
  height: 240px;
}

.an-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.an-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.an-options button {
  margin-top: 0;
}

.an-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.an-list-head h3 {
  margin: 0;
}

.an-open {
  font-weight: 600;
  text-decoration: none;
}

.an-table {
  display: flex;
  flex-direction: column;
}

.an-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) 90px 90px minmax(0, 1.2fr) minmax(0, 1.2fr) 110px;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
}

.an-row:not(.an-head):hover {
  background: var(--green-tint-hover);
}

.an-row.an-head {
  font-size: var(--type-secondary-size);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 0;
}

.an-row .name {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  min-width: 0;
  align-items: baseline;
}

.an-row .name i {
  color: var(--text-muted);
}

.an-row .mono {
  font-family: var(--font-mono);
}

.an-row span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.an-map {
  height: 460px;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  z-index: 0;
}

.pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  box-shadow: var(--shadow-float);
  background: var(--chart-1);
  color: var(--theme-primary-contrast);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
}

.pin.approx {
  background: var(--green-tint-pressed);
  color: var(--theme-primary);
  border-style: dashed;
}

.pin-popup {
  font-family: var(--font-sans);
  line-height: 1.6;
}

.pin-popup small {
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .an-row {
    grid-template-columns: minmax(0, 1fr) 70px 70px;
  }
  .an-row .name ~ span:nth-of-type(n+4) {
    display: none;
  }
  .an-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.us-table {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}

.us-row {
  display: grid;
  gap: 8px;
  align-items: start;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}

.us-row .num {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.us-row .share {
  display: block;
  height: 4px;
  margin-top: 4px;
  border-radius: var(--r-pill);
  background: var(--theme-primary-soft);
  overflow: hidden;
}

.us-row .share b {
  display: block;
  height: 100%;
  background: var(--chart-1);
  border-radius: var(--r-pill);
}

.us-row .limit {
  display: block;
  margin-top: 2px;
  font-size: var(--type-secondary-size);
  color: var(--text-muted);
}

.us-row .limit.warn {
  color: var(--yellow-text);
}

.us-row .limit.bad {
  color: var(--theme-danger);
  font-weight: 700;
}

.us-row.us-head {
  border-top: 0;
  background: var(--bg-page);
  font-size: var(--type-secondary-size);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.us-row.us-head span:not(:first-child) {
  text-align: right;
}

.us-fold {
  margin-top: 12px;
}

.us-fold summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--theme-primary);
}

.us-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.us-edit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.us-edit-row > strong, .us-edit-row > label:first-child {
  flex: 1 1 200px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.us-edit-row label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: var(--type-secondary-size);
  font-weight: 600;
  color: var(--text-muted);
}

.us-edit-row label input {
  width: 130px;
  min-height: 34px;
  padding: 0 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-input);
  font: inherit;
  font-size: 1rem;
  color: var(--text-primary);
}

.us-edit-row > label:first-child input {
  width: 100%;
}

.us-edit-row button {
  margin-top: 0;
}

.us-filter {
  margin: 10px 0;
}

.us-call {
  padding: 6px 0 6px 8px;
  border-top: 1px solid var(--border);
  border-left: 3px solid transparent;
}

.us-call.failed {
  border-left-color: var(--theme-danger);
}

.us-call .head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: var(--type-secondary-size);
  color: var(--text-muted);
}

.us-call .head strong {
  color: var(--text-primary);
}

.us-call .mono {
  font-family: var(--font-mono);
}

.us-call .body {
  overflow-wrap: anywhere;
}

.us-call .hint {
  margin: 0;
}

.dup-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.dup-item-row + .dup-item-row {
  border-top: 1px solid var(--border);
}

.dup-thumb, .dup-no-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--r-card);
  object-fit: cover;
  flex: none;
}

.dup-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-neutral-soft);
  color: var(--theme-neutral);
}

.dup-item-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dup-item-info b {
  font-family: var(--font-serif);
  font-weight: 500;
}

.dup-item-info i {
  color: var(--text-muted);
}

.dup-item-info .meta {
  font-size: var(--type-secondary-size);
  color: var(--text-muted);
}

.dup-delete {
  all: unset;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--r-circle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.dup-delete:hover {
  background: var(--theme-danger-soft);
  color: var(--theme-danger);
}

.dup-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.dup-reason-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--theme-secondary-soft);
  color: var(--yellow-text);
  font-size: var(--type-secondary-size);
  font-weight: 600;
}
