.anc-lab { max-width: 960px; padding-bottom: 64px; }
.anc-lab p, .anc-lab li { line-height: 1.9; }
.anc-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 24px; }
.anc-links a, .anc-reference a { text-decoration: underline; text-underline-offset: .24em; }
.anc-links a { display: flex; align-items: center; min-height: 44px; }
.anc-panel { margin: 28px 0; padding: clamp(16px, 4vw, 30px); border: 1px solid #b9c9b9; background: #e7eee3; }
.anc-panel h2, .anc-results h2 { margin: 0 0 16px; font-size: clamp(23px, 3vw, 30px); }
.anc-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.anc-controls label { display: grid; gap: 6px; min-width: 0; font-weight: 650; }
.anc-controls select {
  width: 100%; min-height: 48px; padding: 10px 30px 10px 12px;
  color: #1b3830; background: #fffdf4; border: 1px solid #8b9f8c;
  font: 1rem var(--sans); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #385d4b 50%), linear-gradient(135deg, #385d4b 50%, transparent 50%);
  background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat;
}
.anc-controls select:disabled { background-color: #dbe4d8; color: #536354; opacity: 1; }
.anc-lab .anc-note { font-size: .875rem; margin: 14px 0; }
.anc-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.anc-presets button { min-height: 44px; border: 1px solid #789483; background: #fffdf4; color: #214638; padding: 8px 12px; font: .875rem var(--sans); cursor: pointer; }
.anc-flow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; list-style: none; padding: 0; margin: 0 0 14px; }
.anc-flow li { background: #26463e; color: #fffdf4; text-align: center; font-weight: 650; padding: 10px 4px; }
.anc-flow small { display: block; font-size: .8rem; color: #d4e5d7; font-weight: 400; }
.anc-summary { padding: 12px 16px; background: #e7eee3; border-inline-start: 4px solid #47715c; font-weight: 650; }
.anc-row { padding: 16px; border: 1px solid #ccd5c6; background: #fffdf5; margin-top: 12px; }
.anc-row h3 { font-size: 1.15rem; margin: 0 0 10px; }
.anc-row h3 small { display: inline-block; font-size: .78rem; color: #546654; margin-inline-start: 6px; }
.anc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.anc-pair > div { display: flex; flex-direction: column; align-items: start; gap: 8px; min-width: 0; background: #edf0e6; padding: 12px; }
.anc-label { font-size: .875rem; color: #455e51; }
.anc-pair strong { line-height: 1.7; overflow-wrap: anywhere; }
.anc-row p { margin: 10px 0 0; font-size: .875rem; }
.anc-state { background: #cfe4d3; color: #214c36; padding: 3px 8px; font-size: .875rem; line-height: 1.65; }
.anc-state[data-tone=change] { background: #f1dfb5; color: #583e1e; }
.anc-state[data-tone=remove] { background: #f2d8cf; color: #702f27; }
.anc-picture { position: relative; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(#36596a 0 60%, #2a5645 60%); overflow: hidden; }
.anc-picture::before { content: ''; position: absolute; inset: 12% 16%; border: 2px solid #f2ebcf; border-radius: 50%; transform: scaleX(.72); }
.anc-picture::after { content: ''; position: absolute; top: 50%; width: 100%; border-top: 2px solid #f2ebcf; }
.anc-picture span { position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; top: 47%; left: 32%; background: #fbd175; z-index: 1; }
.anc-lab :is(a,button,select):focus-visible { outline: 3px solid #a34f2a; outline-offset: 3px; }
@media (max-width: 600px) {
  .anc-controls { grid-template-columns: 1fr; }
  .anc-row { padding: 12px; }
  .anc-pair > div { padding: 8px; }
  .anc-row h3 small { display: block; margin: 2px 0 0; }
}
.anc-note a { text-decoration: underline; text-underline-offset: .24em; }
#anc-results-title { scroll-margin-top: 104px; }
