.coin-tools {
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) 0 32px;
}

.tool-back a,
.tool-text-link,
.tool-source a {
  color: var(--accent-cyan);
  text-underline-offset: .24em;
}

.tool-back a { display: inline-flex; align-items: center; min-height: 44px; }
.tool-intro { max-width: 740px; }
.tool-intro h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  text-wrap: balance;
}
.tool-intro p { margin-top: 12px; color: var(--text-secondary); font-size: 1.1rem; }
.tool-directory,
.tool-workspace,
.tool-fields {
  display: grid;
  gap: 16px;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tool-directory {
  --tool-preview-height: 160px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.tool-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s ease;
}
.tool-card:hover { border-color: var(--accent-cyan); }
.tool-preview {
  display: flex;
  min-height: var(--tool-preview-height);
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #101f34;
  border-bottom: 1px solid var(--card-border);
}
.tool-preview img {
  width: min(32%, 90px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(79, 172, 254, .24);
  border-radius: 8px;
}
.tool-preview--coin-weight-checker img,
.tool-preview--silver-melt-calculator img,
.tool-preview--two-dollar-bill-value img {
  display: block;
  width: 100%;
  height: var(--tool-preview-height);
  aspect-ratio: auto;
  object-position: center 54%;
  border: 0;
  border-radius: 0;
}
.tool-preview--silver-melt-calculator {
  background: #031021;
}
.tool-preview--silver-melt-calculator img {
  object-fit: contain;
  object-position: center;
}
.tool-card-copy { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; height: 100%; padding: 24px; }
.tool-card h2,
.tool-panel h2,
.tool-followup h2 { font-size: 1.25rem; line-height: 1.3; }
.tool-card p,
.tool-followup p,
.tool-result p:not(.tool-result-value),
.tool-reference p { color: var(--text-secondary); }
.tool-card-action { align-self: end; color: var(--accent-cyan); font-weight: 700; }
.tool-followup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  padding: 24px;
}
.tool-followup a { max-width: 100%; }
.tool-panel {
  min-width: 0;
  padding: clamp(16px, 2.8vw, 28px);
  color-scheme: dark;
}
.tool-form,
.tool-result,
.tool-reference,
.tool-fields > div { display: grid; gap: 10px; }
.tool-result,
.tool-reference { gap: 16px; }
.tool-form label:not(:first-child) { margin-top: 4px; }
.tool-form label { font-weight: 650; color: var(--text-primary); }
.tool-form :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(150, 178, 210, .36);
  border-radius: 10px;
  background: #0b182c;
  color: var(--text-primary);
  font: inherit;
}
.tool-form .primary-btn { justify-self: start; max-width: 100%; min-height: 46px; }
.tool-hint, .tool-source { color: var(--text-secondary); font-size: .9rem; }
.tool-note { color: var(--text-secondary); }
.tool-result-value {
  color: var(--accent-cyan);
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tool-metrics > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid var(--card-border);
  padding: 10px 0;
}
.tool-metrics dt { color: var(--text-secondary); }
.tool-metrics dd {
  color: var(--text-primary);
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.tool-metrics dd small { display: block; color: var(--text-secondary); font-weight: 400; }
.coin-tools :is(a, button, select, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .tool-directory, .tool-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1200px) {
  .tool-directory { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .tool-fields { gap: 10px; }
  .tool-form .primary-btn, .tool-followup .primary-btn { justify-content: center; width: 100%; }
}

.coin-tools:has(.weight-calculator) {
  gap: 20px;
  padding-top: 4px;
}

.coin-tools.coin-tools--directory,
.coin-tools.coin-tools--weight {
  max-width: var(--site-panel-max-width);
}

.coin-tools.coin-tools--weight {
  gap: 16px;
}

.coin-tools--weight .tool-back a {
  font-size: .9rem;
}

.weight-calculator {
  overflow: hidden;
}

.weight-calculator-header {
  padding: clamp(16px, 2.8vw, 26px);
  border-bottom: 1px solid rgba(79, 172, 254, .24);
  background: #102640;
}

.weight-calculator-header h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.25;
}

.weight-calculator-header p {
  margin-top: 4px;
  color: #b7cde0;
}

.weight-calculator-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 2.8vw, 28px);
  padding: clamp(12px, 2.8vw, 26px);
}

.weight-form {
  gap: 14px;
  color-scheme: dark;
  min-width: 0;
}

.weight-form h3,
.weight-result h3 {
  font-size: 1.06rem;
  line-height: 1.4;
}

.weight-field,
.weight-options-grid {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.weight-options-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0;
}

.weight-options {
  padding: 0 12px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
}

.weight-options summary {
  min-height: 44px;
  padding: 10px 0;
  color: #c6d9eb;
  cursor: pointer;
  font-size: .9rem;
}

.weight-options .tool-hint {
  margin: 8px 0 12px;
}

.weight-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weight-buttons .secondary-btn {
  min-height: 46px;
}

.weight-example {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--accent-cyan);
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .24em;
}

.weight-result {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: clamp(14px, 2.5vw, 24px);
  color: var(--text-primary);
  background: #0b182c;
  border: 1px solid rgba(79, 172, 254, .28);
  border-radius: 14px;
}

.weight-reading {
  color: var(--accent-cyan);
  font-size: clamp(1.9rem, 5vw, 2.85rem);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.15;
  margin-bottom: 8px;
}

.weight-summary {
  color: #c6d9eb;
  line-height: 1.45;
}

.weight-result[data-match="none"] .weight-summary { color: #ffcd8b; }
.weight-result[data-match="one"] .weight-summary { color: #9deee3; }
.weight-candidates {
  display: grid;
  gap: 8px;
  list-style: none;
}
.weight-candidates:empty { display: none; }
.weight-candidates li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(150, 178, 210, .16);
  border-radius: 8px;
  background: #0c1527;
  font-size: .9rem;
}
.weight-candidates li strong,
.weight-table td:nth-last-child(-n+2) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.weight-candidates li small {
  grid-column: 1 / -1;
  color: #a9bfd5;
  font-size: .81rem;
}

.weight-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 10px;
}

.weight-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  text-align: left;
  font-size: .9rem;
}

.weight-table th,
.weight-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--card-border);
}
.weight-table thead th { background: #102640; }
.weight-table tbody th { color: var(--text-primary); font-weight: 650; }
.weight-table tbody td { color: #b7cde0; }
.weight-table tr:nth-child(even) { background: #0c172a; }
.weight-table tr:last-child > * { border-bottom: 0; }
.weight-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.weight-tip {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(106, 170, 212, .21);
  border-radius: 12px;
  background: #0b1528;
}

.weight-tip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.weight-tip-copy {
  padding: clamp(14px, 2vw, 20px);
}

.weight-tip h3 {
  color: var(--accent-cyan);
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .weight-calculator-body { grid-template-columns: minmax(0, 1fr); }
  .weight-tips { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .weight-options-grid { grid-template-columns: minmax(0, 1fr); }
  .weight-candidates li { grid-template-columns: minmax(0, 1fr); }
}

.coin-count-calculator {
  background: #0e192c;
  border-color: rgba(106, 170, 212, .24);
}

.coin-count-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 35%);
  align-items: center;
  min-height: 164px;
  position: relative;
  isolation: isolate;
  background: #0b1528;
  border-bottom: 1px solid rgba(106, 170, 212, .22);
}

.coin-count-hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 3vw, 36px);
}

.coin-count-hero h1 {
  font-size: clamp(2.05rem, 3.8vw, 3.3rem);
  line-height: 1.08;
}

.coin-count-hero p {
  max-width: 52ch;
  margin-top: 10px;
  color: #b7cde0;
  line-height: 1.5;
}

.coin-count-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 39%;
  overflow: hidden;
}

.coin-count-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b1528, transparent 47%);
  content: "";
}

.coin-count-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 52%;
}

.coin-count-calculator .weight-calculator-body {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 3vw, 36px);
  padding: clamp(14px, 3vw, 36px);
}

.coin-count-form {
  align-content: start;
  gap: 16px;
}

.coin-count-form h2,
.coin-count-result h2 {
  font-size: 1.04rem;
  line-height: 1.35;
}

.coin-count-form :is(input, select) {
  min-height: 48px;
  border-color: #52718d;
  background: #0a1628;
}

.coin-count-field {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: 8px 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.coin-count-result-body {
  display: grid;
  gap: 12px;
}

.coin-count-result {
  align-content: start;
  background: #0b192c;
  border-color: rgba(104, 202, 228, .36);
}

.coin-count-result .weight-reading {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.coin-count-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.coin-count-metrics > div {
  padding: 10px 12px;
  background: #0c1527;
  border: 1px solid rgba(150, 178, 210, .16);
  border-radius: 8px;
}

.coin-count-metrics dt {
  color: #b7cde0;
  font-size: .83rem;
}

.coin-count-metrics dd {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.coin-count-formula {
  color: #b7cde0;
  font-size: .9rem;
}

.coin-measurement-tool {
  padding: 0 clamp(12px, 2.8vw, 24px);
}

.coin-measurement-tool > summary {
  min-height: 48px;
  padding: 14px 0;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 650;
}

.coin-measurement-tool > .weight-calculator {
  margin-bottom: clamp(12px, 2.8vw, 24px);
}

@media (max-width: 540px) {
  .coin-count-field { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .coin-count-calculator .weight-calculator-body { grid-template-columns: minmax(0, 1fr); }
  .coin-count-hero { display: block; min-height: auto; }
  .coin-count-hero h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
  .coin-count-hero p { font-size: .94rem; }
  .coin-count-photo { width: 47%; opacity: .38; }
  .coin-count-photo::after { background: linear-gradient(90deg, #0b1528, transparent 85%); }
}
@media (prefers-reduced-motion: reduce) {
  .coin-tools *, .coin-tools *::before, .coin-tools *::after { transition: none; }
}

.coin-tools--silver { max-width: var(--site-panel-max-width); }
.coin-tools--silver .tool-back a { min-height: 40px; }

.silver-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 152px;
  padding: 20px clamp(24px, 3.2vw, 48px);
  background: #0c1728;
}

.silver-hero img {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 56%;
  height: 100%;
  object-fit: cover;
  object-position: center 51%;
  mask-image: linear-gradient(to right, transparent, #000 32%);
}

.silver-hero-copy { max-width: min(740px, 66%); }
.silver-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.35vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.silver-hero p { margin: 8px 0 0; max-width: 55ch; color: #b7c8dc; text-wrap: pretty; }

.silver-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .51fr);
  grid-template-areas: "coins market" "coins estimate";
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px 20px;
  align-items: start;
  color-scheme: dark;
}

.silver-workspace [hidden] { display: none; }
.silver-workspace > :is(.silver-coins, .silver-market, .silver-estimate) { margin: 0; }
.silver-coins { grid-area: coins; min-width: 0; overflow: hidden; }
.silver-market { grid-area: market; }
.silver-estimate, .silver-market { min-width: 0; padding: 20px; }
.silver-estimate {
  grid-area: estimate;
  border-color: #23536a;
  border-top: 2px solid #42d9eb;
  background: #0b1c2d;
  scroll-margin-top: 24px;
}

.silver-estimate h2, .silver-market h2, .silver-coins h2 { margin: 0; font-size: 1.25rem; line-height: 1.35; }
.silver-total {
  margin: 8px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  color: #81eff4;
  font-size: clamp(2rem, 3.15vw, 3.25rem);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.silver-total small { font-size: .875rem; color: #b7c8dc; letter-spacing: .06em; font-weight: 700; }
.silver-summary-note, .silver-quote-note, .silver-muted, .silver-error {
  margin: 0;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.5;
}
.silver-error { color: #ffafb2; }
.silver-quote-note, .silver-error { margin-top: 8px; }

.silver-metrics, .silver-range, .silver-unit-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #284151;
}
.silver-range { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.silver-metrics dt, .silver-range dt, .silver-unit-values dt { color: #acbfd1; font-size: .8125rem; }
.silver-metrics dd, .silver-range dd, .silver-unit-values dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.silver-coins-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.silver-coins-header { padding: 16px 24px; }
.silver-coins-header p { margin-top: 4px; }
.silver-coin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.silver-secondary {
  appearance: none;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #31465d;
  border-radius: 8px;
  background: #122335;
  color: #d7eff8;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.silver-secondary:hover:not(:disabled) { background: #1a3449; border-color: #6bcad8; }
.silver-secondary:disabled { opacity: .67; cursor: not-allowed; }
.silver-secondary[data-silver-quote]:disabled { cursor: wait; }

.silver-market-fields, .silver-custom-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, .55fr);
  gap: 12px;
  margin-top: 12px;
}
.silver-custom-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.silver-workspace label { min-width: 0; }
.silver-market-fields label, .silver-custom-fields label, .silver-price-control {
  display: grid;
  align-content: end;
  gap: 6px;
  color: #d8e6f4;
  font-size: .875rem;
  font-weight: 650;
}
.silver-price-fields {
  grid-template-columns: minmax(0, 1fr) minmax(64px, .47fr) auto;
  align-items: end;
  gap: 8px;
  margin: 0;
}
.silver-price-control { min-width: 0; }
.silver-price-control h2 { font-size: .875rem; line-height: 1.5; }
.silver-price-fields [data-silver-quote] { min-width: 88px; }

.silver-workspace :is(input[type="number"], select) {
  appearance: none;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #3c5269;
  border-radius: 8px;
  background: #0c1828;
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.silver-workspace select { appearance: auto; }
.silver-workspace input::placeholder { color: #a4b8cd; }
.silver-workspace :is(input, select, button, summary, a):focus-visible {
  outline: 2px solid #76edf2;
  outline-offset: 3px;
}
.silver-workspace input[aria-invalid="true"] { border-color: #ff8e99; }

.silver-workspace details summary {
  display: list-item;
  width: fit-content;
  max-width: 100%;
  padding: 10px 0;
  color: #a5eaf4;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.silver-adjustments, .silver-units { margin-top: 8px; }
.silver-adjustments[open] .silver-muted { margin-top: 8px; }
.silver-units[open] .silver-unit-values { margin-top: 4px; }

.silver-list-toolbar, .silver-coin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 156px) minmax(85px, 110px);
  align-items: center;
  gap: 12px;
  padding-inline: 24px;
}
.silver-list-toolbar {
  min-height: 44px;
  border-block: 1px solid #25394c;
  background: #101f30;
  color: #b9c9da;
  font-size: .8125rem;
  font-weight: 650;
}
.silver-list-toolbar label { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.silver-list-toolbar input { width: 16px; height: 16px; accent-color: #7ce9ef; }
.silver-col-quantity { text-align: center; }
.silver-col-value { text-align: right; }

.silver-coin-group h3 {
  margin: 0;
  padding: 12px 24px;
  color: #a9d8e7;
  background: #0d1929;
  border-bottom: 1px solid #223348;
  font-size: .875rem;
  font-weight: 700;
}
.silver-coin-row { min-height: 68px; padding-block: 8px; border-bottom: 1px solid #223348; }
.silver-coin-row:focus-within, .silver-coin-row[data-selected] { background: #102539; }
.silver-coin-row label { display: grid; gap: 4px; cursor: text; }
.silver-coin-row label span { color: #adbed1; font-size: .8125rem; line-height: 1.35; }
.silver-coin-row label strong { font-weight: 680; font-size: .9375rem; line-height: 1.35; }

.silver-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-width: 0;
  border: 1px solid #415873;
  border-radius: 10px;
  background: #0c1828;
}
.silver-stepper button {
  display: grid;
  place-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a5eaf4;
  font: inherit;
  font-size: 1.125rem;
  cursor: pointer;
}
.silver-stepper button:hover { background: #20394c; }
.silver-workspace :is(.silver-secondary, .silver-stepper button) { box-shadow: none; }
.silver-stepper input[type="number"] {
  appearance: textfield;
  padding-inline: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}
.silver-stepper input::-webkit-inner-spin-button, .silver-stepper input::-webkit-outer-spin-button { appearance: none; }
.silver-stepper:has(input[aria-invalid="true"]) { border-color: #ff8e99; }
.silver-row-value { text-align: right; color: #cde8f2; font-size: .875rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.silver-quantity-error { grid-column: 2 / -1; margin: 0; }

.silver-presets[data-added-only] .silver-coin-row:not([data-selected], :focus-within),
.silver-presets[data-added-only] .silver-coin-group:not(:has([data-selected], .silver-coin-row:focus-within)),
.silver-filter-empty { display: none; }
.silver-presets[data-added-only]:not(:has([data-selected], .silver-coin-row:focus-within)) .silver-filter-empty {
  display: block;
  padding: 16px 24px;
}

.silver-custom { padding: 10px 24px 16px; }
.silver-custom[open] { padding-bottom: 24px; }
.silver-mobile-total { display: none; }
.silver-worked-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 29%);
  align-items: center;
  overflow: hidden;
  border-left: 2px solid #42d9eb;
  border-radius: 0 8px 8px 0;
  background: #102539;
}
.silver-reference-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.silver-worked-copy, .silver-question-copy { display: grid; align-content: start; gap: 8px; padding: 16px; }
.silver-worked-copy { padding: clamp(16px, 2.4vw, 32px); }
.silver-worked-copy p { max-width: 62ch; }
.silver-worked-example h3, .silver-questions h3 { margin: 0; font-size: 1rem; line-height: 1.4; text-wrap: balance; }
.silver-worked-example p, .silver-questions p { margin: 0; }
.silver-questions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.silver-question {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #25394c;
  border-radius: 12px;
  background: #0d1929;
}
.silver-question .silver-reference-image { border-bottom: 1px solid #25394c; }

@media (max-width: 860px) {
  .silver-questions-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 601px) and (max-width: 860px) {
  .silver-question { display: grid; grid-template-columns: minmax(175px, 34%) minmax(0, 1fr); align-items: center; }
  .silver-question .silver-reference-image { border-bottom: 0; }
}

@media (max-width: 600px) {
  .silver-worked-example { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 881px) and (min-height: 640px) {
  .silver-estimate { position: sticky; top: 16px; }
}

@media (max-width: 880px) {
  .silver-workspace { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
  .silver-mobile-total {
    position: sticky;
    z-index: 3;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 56px;
    padding: 5px 8px 5px 12px;
    border: 1px solid #387a8d;
    border-radius: 12px;
    background: #102c3e;
    box-shadow: 0 6px 20px #0006;
    color: #d0eaf4;
    font-size: .8125rem;
    font-weight: 650;
  }
  .silver-mobile-total a { min-width: 0; min-height: 44px; align-content: center; color: inherit; text-decoration: none; }
  .silver-mobile-total button { flex-shrink: 0; }
  .silver-mobile-total button[aria-pressed="true"] { border-color: #76edf2; }
  .silver-mobile-total strong { display: block; color: #8df2f5; font-size: 1rem; overflow-wrap: anywhere; }
}

@media (max-width: 600px) {
  .coin-tools--silver { gap: 12px; }
  .silver-hero { padding: 16px; min-height: 124px; }
  .silver-hero img {
    width: 62%;
    opacity: .45;
    object-position: 80% 54%;
    mask-image: linear-gradient(to right, transparent, #000 65%);
  }
  .silver-hero-copy { max-width: 80%; }
  .silver-hero h1 { font-size: clamp(1.5rem, 6vw, 1.75rem); }
  .silver-hero p { font-size: .875rem; }
  .silver-estimate, .silver-market { padding: 12px; }
  .silver-coins-header { padding: 8px 12px 8px 16px; }
  .silver-coins-header p { display: none; }
  .silver-coins-header h2 { font-size: 1.125rem; }
  .silver-price-fields [data-silver-quote] { min-width: 76px; padding-inline: 8px; }
  .silver-market .silver-adjustments { margin-top: 0; }
  .silver-market .silver-adjustments summary { padding-block: 6px; }
  .silver-coin-group h3, .silver-custom, .silver-list-toolbar, .silver-coin-row { padding-inline: 16px; }
  .silver-list-toolbar, .silver-coin-row { grid-template-columns: minmax(0, 1fr) 130px; gap: 4px 8px; }
  .silver-list-toolbar .silver-col-value { display: none; }
  .silver-coin-row label { grid-row: span 2; }
  .silver-row-value { grid-column: 2; font-size: .8125rem; text-align: center; }
  .silver-quantity-error { grid-column: 2; font-size: .8125rem; }
  .silver-custom-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .silver-custom-fields label:first-child { grid-column: 1 / -1; }
}

.silver-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.coin-tools--compare { max-width: var(--site-panel-max-width); }

.compare-intro, .compare-toolbar, .compare-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.compare-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.compare-intro p { margin: 8px 0 0; max-width: 62ch; color: var(--text-secondary); }
.compare-intro a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

.compare-workbench {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(12px, 2vw, 24px);
  border-color: #24425a;
  background: #0c192b;
  color-scheme: dark;
}
.compare-toolbar { padding-bottom: 12px; border-bottom: 1px solid #263d52; }
.compare-privacy { margin: 0; color: #def1fa; font-size: .9375rem; font-weight: 700; }
.compare-format { margin: 2px 0 0; color: var(--text-secondary); font-size: .8125rem; }
.compare-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid #38516a;
  border-radius: 8px;
  color: #dbecf8;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.compare-sync:has(input:checked) { border-color: #64ddeb; background: #123142; }
.compare-sync:has(input:disabled) { color: #a4b8cc; cursor: default; }
.compare-sync input { width: 16px; height: 16px; margin: 0; accent-color: #5de3ed; }

.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.compare-grid > .compare-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #243b52;
  border-radius: 14px;
  background: #0c1525;
}
.compare-panel-heading { min-height: 44px; gap: 2px 8px; }
.compare-panel h2 { margin: 0; color: #e3f0fa; font-size: 1rem; line-height: 1.4; }
.compare-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.compare-preview {
  position: relative;
  height: clamp(196px, 24vw, 336px);
  overflow: auto;
  border: 1px solid #36516c;
  border-radius: 10px;
  background: #080f1d;
}
.compare-preview:has([data-photo-canvas][hidden]) { border-style: dashed; background: #0c1c30; }
.compare-preview[data-dragging] { outline: 2px solid #79ecf2; outline-offset: -3px; }
.compare-drop-target {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  color: #ddedf7;
  text-align: center;
  cursor: pointer;
}
.compare-drop-target:hover, .compare-panel:has(.compare-file:focus-visible) .compare-drop-target {
  background: #132d41;
}
.compare-add {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #347187;
  border-radius: 50%;
  background: #103449;
  color: #89f0f3;
  font-size: 1.5rem;
  line-height: 1;
}
.compare-choose { font-size: .9375rem; font-weight: 700; }
.compare-drop-hint { color: #a8bbce; font-size: .8125rem; }
@media (pointer: coarse) { .compare-drop-hint { display: none; } }

.compare-panel:has(.compare-file:focus-visible) :is(.compare-drop-target, .compare-replace) {
  outline: 2px solid #7aeef3;
  outline-offset: -3px;
  border-radius: 8px;
}
.compare-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  min-height: 100%;
  width: max-content;
}
.compare-canvas img { display: block; flex: none; max-width: none; height: auto; }
.compare-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.compare-zoom label { display: flex; justify-content: space-between; gap: 4px; color: #d7e8f4; font-size: .8125rem; font-weight: 650; }
.compare-zoom output { font-variant-numeric: tabular-nums; }
.compare-zoom input { display: block; width: 100%; min-width: 0; min-height: 32px; margin: 0; accent-color: #67dfea; }
.compare-workbench :is(.compare-replace, .compare-clear) {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid #38516a;
  border-radius: 8px;
  background: #122335;
  box-shadow: none;
  color: #d5edf7;
  font: inherit;
  font-size: .8125rem;
  font-weight: 650;
  cursor: pointer;
}
.compare-workbench :is(.compare-replace, .compare-clear):hover { border-color: #69d7e3; background: #18374a; }
.compare-workbench [hidden] { display: none; }
.compare-status { margin: 0; color: #adc1d4; font-size: .8125rem; overflow-wrap: anywhere; }
.compare-status:empty { display: none; }
.compare-status[data-error] { color: #ffafb2; }

.compare-guide { display: grid; gap: 16px; scroll-margin-top: 20px; }
.coin-tools--compare > .compare-guide { margin-top: 0; }
.compare-guide-heading h2 { margin: 0; font-size: 1.5rem; }
.compare-guide-heading p { margin: 4px 0 0; color: var(--text-secondary); }
.compare-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px; align-items: center; }
.compare-anatomy { min-width: 0; margin: 0; }
.compare-anatomy-image { position: relative; overflow: hidden; border: 1px solid #2a4359; border-radius: 12px; }
.compare-anatomy-image img { display: block; width: 100%; height: auto; }
.compare-anatomy figcaption { margin-top: 8px; color: var(--text-secondary); font-size: .8125rem; }
.compare-point, .compare-check-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #93f6f7;
  border-radius: 50%;
  background: #103549;
  color: #beffff;
  font-size: .875rem;
  font-weight: 700;
}
.compare-point {
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px #07111cbd;
}
.compare-point--date { left: 44%; top: 71%; }
.compare-point--lettering { left: 16%; top: 57%; }
.compare-point--wear { left: 74%; top: 52%; }
.compare-checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.compare-checks li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #243b52;
  border-radius: 10px;
  background: #0e1b2c;
}
.compare-checks h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.compare-checks p { margin: 4px 0 0; color: var(--text-secondary); font-size: .9375rem; line-height: 1.55; }
.compare-guide > a { justify-self: start; }

@media (max-width: 760px) {
  .compare-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .compare-intro { gap: 4px 12px; }
}

@media (max-width: 600px) {
  .coin-tools--compare { gap: 14px; }
  .compare-grid { gap: 8px; }
  .compare-grid > .compare-panel { padding: 6px; gap: 6px; border-radius: 10px; }
  .compare-panel-heading { flex-wrap: nowrap; gap: 4px; }
  .compare-panel h2 { font-size: .875rem; }
  .compare-workbench { padding: 8px; gap: 10px; }
  .compare-toolbar { padding-inline: 4px; }
  .compare-preview { height: clamp(124px, 41vw, 228px); border-radius: 8px; }
  .compare-add { width: 32px; height: 32px; font-size: 1.25rem; }
  .compare-choose { font-size: .875rem; }
  .compare-drop-hint { display: none; }
  .compare-controls { gap: 6px; }
  .compare-workbench :is(.compare-clear, .compare-replace) { padding-inline: 5px; }
  .compare-point { width: 22px; height: 22px; font-size: .75rem; }
}

.coin-tools.coin-tools--bill {
  --bill-line: #263b51;
  --bill-muted: #aab9ca;
  --bill-cyan: #7ef1ef;
  gap: clamp(16px, 2.3vw, 28px);
  max-width: var(--site-panel-max-width, 1480px);
  padding-top: 4px;
}

.coin-tools--bill [hidden] { display: none; }
.bill-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--bill-line);
  border-radius: 20px;
  background: #101c30;
}
.bill-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 67%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  mask-image: linear-gradient(90deg, transparent, #000 52%);
}
.bill-hero-copy { padding: clamp(20px, 4vw, 52px); max-width: 65%; }
.bill-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.bill-hero p { margin: 12px 0 0; max-width: 40ch; color: #c4d2e0; line-height: 1.55; }

.bill-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.bill-panel {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.6vw, 32px);
  border: 1px solid var(--bill-line);
  border-radius: 18px;
  background: #101a2b;
}
.bill-panel h2, .bill-read h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.bill-panel .bill-form-title { margin-bottom: 16px; }
.bill-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bill-field { display: grid; min-width: 0; align-content: start; gap: 7px; }
.bill-field label { font-weight: 700; }
.bill-field label span { display: inline; margin-inline-start: 4px; color: var(--bill-muted); font-size: .8rem; font-weight: 500; }
.bill-field small, .bill-star-option small {
  display: block;
  color: var(--bill-muted);
  font-size: .8125rem;
  line-height: 1.45;
}
.bill-field :is(input, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #405872;
  border-radius: 9px;
  background: #0a1424;
  color: #eff5fc;
  color-scheme: dark;
  font: inherit;
  font-size: 1rem;
}
.bill-field input::placeholder { color: #859bb0; }
.bill-field input[aria-invalid="true"] { border-color: #ff9a9a; }
.bill-error { margin: 0; color: #ffb0ad; font-size: .875rem; }
.bill-serial-field { margin-top: 16px; }
.bill-star-option {
  display: flex;
  align-items: start;
  gap: 10px;
  width: fit-content;
  margin: 12px 0 4px;
  padding: 8px 0;
  cursor: pointer;
}
.bill-star-option input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--bill-cyan); }
.bill-star-option strong { display: block; font-size: .9375rem; }
.bill-actions { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; margin-top: 10px; }
.bill-actions .primary-btn { min-height: 48px; }

.bill-result {
  background: linear-gradient(150deg, #0d2937, #101a2b 61%);
  border-color: #315367;
}
.bill-result .bill-result-label {
  margin: 0 0 6px;
  color: var(--bill-cyan);
  font-size: .8125rem;
  font-weight: 750;
  letter-spacing: .045em;
}
.bill-result h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); overflow-wrap: anywhere; }
.bill-result h2.bill-money { color: var(--bill-cyan); font-size: clamp(2.2rem, 5vw, 3.4rem); font-variant-numeric: tabular-nums; }
.bill-result-summary { margin: 8px 0 0; color: #c1d0df; line-height: 1.55; max-width: 56ch; }
.bill-facts { display: block; margin: 18px 0 0; }
.bill-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--bill-line);
}
.bill-facts :is(dt, dd) { font-size: .875rem; line-height: 1.45; }
.bill-facts dt { color: var(--bill-muted); font-weight: 500; text-shadow: none; }
.bill-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 650; }
.bill-reference { margin-top: 14px; padding: 12px 14px; border-left: 2px solid #65cfcb; border-radius: 0 8px 8px 0; background: #14283a; }
.bill-reference h3, .bill-sales h3 { margin: 0 0 4px; font-size: 1rem; }
.bill-reference p, .bill-sales p { margin: 0; color: #bbcbd9; font-size: .9rem; line-height: 1.5; }
.bill-sales { margin-top: 18px; }
.bill-sales ul { margin: 8px 0 6px; padding: 0; list-style: none; }
.bill-sales li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--bill-line);
}
.bill-sales li:last-child { border-bottom: 1px solid var(--bill-line); }
.bill-sales li strong { display: block; font-size: .9rem; }
.bill-sales li small { display: block; color: var(--bill-muted); line-height: 1.45; }
.bill-sales li b { color: var(--bill-cyan); white-space: nowrap; font-variant-numeric: tabular-nums; }

.bill-read { margin: 0; padding-top: 2px; }
.bill-read-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.bill-clue { min-width: 0; overflow: hidden; border: 1px solid var(--bill-line); border-radius: 14px; background: #101a2b; }
.bill-clue-photo { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; }
.bill-clue-copy { padding: clamp(14px, 2vw, 22px); }
.bill-clue h3 { margin: 0 0 6px; font-size: 1.05rem; }
.bill-clue p { margin: 0; color: var(--bill-muted); font-size: .9375rem; line-height: 1.55; }
.bill-table summary, .bill-faq summary { cursor: pointer; font-weight: 700; }
.bill-table summary { font-size: 1.15rem; }
.bill-table summary span { color: var(--bill-muted); font-size: .82rem; font-weight: 500; margin-left: 8px; }
.bill-table-inner p, .bill-faq p { color: var(--bill-muted); margin: 10px 0 0; line-height: 1.55; }
.bill-table table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.bill-table :is(th, td) { padding: 9px 5px; border-bottom: 1px solid var(--bill-line); }
.bill-table th[scope="col"] { color: #bed4e5; }
.bill-faq h2 { margin-bottom: 12px; }
.bill-faq details { padding: 12px 0; border-top: 1px solid var(--bill-line); }
.bill-faq details:last-child { padding-bottom: 0; }
.bill-table summary:focus-visible, .bill-faq summary:focus-visible { outline: 2px solid var(--bill-cyan); outline-offset: 3px; }

@media (max-width: 760px) {
  .bill-workbench, .bill-read-grid { grid-template-columns: minmax(0, 1fr); }
  .bill-hero { min-height: 172px; }
  .bill-hero-copy { max-width: 82%; }
  .bill-hero-art { width: 68%; opacity: .48; }
}
@media (max-width: 420px) {
  .bill-hero-copy { max-width: 100%; }
  .bill-hero p { max-width: 29ch; }
  .bill-fields { grid-template-columns: minmax(0, 1fr); }
  .bill-hero-art { opacity: .38; }
  .bill-table { padding-inline: 12px; }
  .bill-table summary span { display: block; margin-inline-start: 1rem; }
  .bill-table table { font-size: .8rem; }
  .bill-table :is(th, td) { padding-inline: 4px; overflow-wrap: anywhere; }
  .bill-table th { letter-spacing: normal; text-transform: none; }
  .bill-series-table { table-layout: fixed; }
  .bill-series-table th[scope="col"] { font-size: .72rem; white-space: nowrap; }
  .bill-series-table th:nth-child(1) { width: 24%; }
  .bill-series-table th:nth-child(2) { width: 18%; }
  .bill-series-table th:nth-child(3) { width: 26%; }
  .bill-series-table th:nth-child(4) { width: 32%; }
  .bill-series-table td { overflow-wrap: normal; white-space: normal; }
}

.bill-hero--photo {
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 16px;
  padding: clamp(16px, 3vw, 40px);
  align-items: stretch;
}
.bill-hero--photo .bill-hero-copy {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
  max-width: none;
  min-height: 260px;
  padding: clamp(12px, 2vw, 28px);
}
.bill-hero--photo .bill-hero-art {
  width: 100%;
  inset: 0;
  opacity: .38;
  border-radius: 12px;
  mask-image: linear-gradient(90deg, transparent 10%, #000 84%);
}
.bill-hero--photo h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
.bill-hero--photo p { text-wrap: pretty; }
.bill-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--bill-cyan);
  text-underline-offset: .24em;
}
.bill-hero-copy .bill-hero-link { margin-top: 8px; }
.bill-photo-form.scan-box {
  display: grid;
  align-content: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: clamp(12px, 2.4vw, 24px);
  border: 1px solid var(--bill-line);
  border-radius: 16px;
  background: #101a2b;
}
.bill-photo-form .bill-photo-zone {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 0;
  padding: 20px 12px;
  cursor: default;
}
.bill-upload-visual {
  display: grid;
  width: min(100%, 18rem);
  aspect-ratio: 12 / 5;
  min-width: 0;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: 1px solid var(--bill-line);
  border-radius: 10px;
  background: #0a1424;
  pointer-events: none;
}
.bill-upload-frame {
  display: grid;
  position: relative;
  place-items: center;
  overflow: hidden;
}
.bill-upload-frame::before,
.bill-upload-frame::after {
  position: absolute;
  inset: 3px auto auto 3px;
  width: 15px;
  height: 15px;
  border: solid var(--bill-cyan);
  border-width: 2px 0 0 2px;
  border-top-left-radius: 4px;
  content: "";
}
.bill-upload-frame::after {
  inset: auto 3px 3px auto;
  transform: rotate(180deg);
}
.bill-upload-note {
  position: relative;
  display: grid;
  place-items: center;
  width: min(75%, 10.75rem);
  aspect-ratio: 2.35;
  border: 3px double #6c907c;
  border-radius: 5px;
  color: #b9d1b6;
  background:
    repeating-linear-gradient(15deg, transparent 0 3px, rgba(167, 193, 150, .09) 3px 4px),
    #203932;
}
.bill-upload-note::before,
.bill-upload-note::after {
  position: absolute;
  inset: 2px auto auto 6px;
  font: 700 1rem/1.1 Georgia, serif;
  content: "2";
}
.bill-upload-note::after { inset: auto 6px 2px auto; }
.bill-upload-portrait {
  width: 24%;
  height: 73%;
  border: 3px double #86a48a;
  border-radius: 50%;
  background: repeating-linear-gradient(-32deg, #567562 0 1px, #2d4940 1px 3px);
}
.bill-upload-seal {
  position: absolute;
  right: 16%;
  width: 11%;
  aspect-ratio: 1;
  border: 3px double #85a286;
  border-radius: 50%;
}
.bill-upload-sweep {
  position: absolute;
  inset: 0;
  opacity: .44;
  animation: bill-upload-scan 2s cubic-bezier(.36, 0, .64, 1) 2;
}
.bill-upload-sweep::before {
  position: absolute;
  inset: 50% 7% auto;
  height: 2px;
  border-radius: 2px;
  background: var(--bill-cyan);
  box-shadow: 0 -3px 9px 3px rgba(49, 228, 223, .35);
  content: "";
}
@keyframes bill-upload-scan {
  from { transform: translateY(-37%); opacity: .12; }
  16%, 82% { opacity: .9; }
  to { transform: translateY(37%); opacity: .12; }
}
@media (prefers-reduced-motion: reduce) {
  .bill-upload-sweep { animation: none; }
}
.bill-photo-zone h2 { margin: 0; font-size: 1.5rem; line-height: 1.3; }
.bill-photo-zone p { margin: 0; }
.bill-photo-zone small { color: var(--bill-muted); font-weight: 400; line-height: 1.5; text-wrap: pretty; }
.bill-photo-picker {
  position: relative;
  justify-content: center;
  min-height: 48px;
  margin-block: 4px;
  cursor: pointer;
}
.bill-photo-picker b { margin-inline-start: 6px; }
.bill-photo-zone .bill-photo-picker input {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.bill-photo-picker:focus-within { outline: 2px solid var(--bill-cyan); outline-offset: 3px; }
.bill-photo-form .bill-photo-camera {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.bill-photo-form .camera-tools > button { min-height: 44px; margin: auto; }
.bill-photo-camera .camera-status:empty, .bill-photo-error:empty { display: none; }
.bill-photo-camera .camera-stage::after { width: 76%; aspect-ratio: 2.2; border-radius: 10px; }
.bill-photo-error { margin: 0; color: #ffb0ad; text-align: center; }
#bill-checker, #bill-photo { scroll-margin-top: 24px; }
.bill-workbench .bill-options {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.bill-options legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.bill-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bill-option {
  display: flex;
  align-items: start;
  gap: 8px;
  min-height: 60px;
  padding: 10px;
  border: 1px solid var(--bill-line);
  border-radius: 9px;
  background: #0a1424;
  cursor: pointer;
}
.bill-option:hover { border-color: #57778a; }
.bill-option:has(input:checked) { border-color: #68cbd0; background: #14283a; }
.bill-option input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--bill-cyan);
}
.bill-option strong, .bill-option small { display: block; }
.bill-option strong { color: var(--text-primary); font-size: .9375rem; line-height: 1.35; }
.bill-option small { margin-top: 2px; color: var(--bill-muted); font-weight: 400; line-height: 1.35; }
.bill-collectibles p { margin: 0 0 10px; color: var(--bill-muted); font-size: .875rem; }
.bill-collectible > span { min-width: 0; }
.bill-series-detail { margin-bottom: 16px; }
.bill-table :is(td, th) small { display: block; color: var(--bill-muted); font-weight: 400; }
.bill-photo-result--with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.bill-result-image { display: block; width: 100%; max-height: 440px; object-fit: contain; border-radius: 12px; }
.bill-photo-result h1 { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.15; }
.bill-photo-result .bill-actions { margin-top: 18px; }
@media (min-width: 900px) and (min-height: 760px) {
  .coin-tools--bill .bill-result { position: sticky; top: 24px; }
}
@media (max-width: 760px) {
  .bill-hero--photo, .bill-photo-result--with-image { grid-template-columns: minmax(0, 1fr); }
  .bill-hero--photo .bill-hero-copy { min-height: 0; }
  .bill-workbench > .bill-result { grid-row: 1; }
}
@media (max-width: 360px) {
  .bill-option { min-height: 54px; padding: 8px; }
  .bill-option strong { font-size: .875rem; }
  .bill-option small { font-size: .75rem; }
}
