:root {
  color-scheme: light;
  --ink: #202e24; --muted: #58675b; --line: #dfe5dc; --canvas: #f5f6f1; --white: #fff;
  --green: #27563d; --deep: #183a2a; --pale: #eaf1e6; --warm: #f5e8d6; --amber: #775122;
  --shadow: 0 3px 14px #243d2810;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 1rem; line-height: 1.5; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 3px solid #997023; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand { line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
h3 { font-size: 1.12rem; }
small { font-size: .875rem; color: var(--muted); }
.skip { position: fixed; left: 12px; top: -80px; padding: 10px; z-index: 9; background: white; }
.skip:focus { top: 12px; }
.top { border-bottom: 1px solid var(--line); background: #fcfdf9; }
.top-inner, main, footer > div { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 77px; gap: 16px; }
.brand-row { display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-size: 1.35rem; font-weight: 750; flex-shrink: 0; }
.brand img { border-radius: 10px; }
.demo-signature { display: inline-flex; align-items: center; gap: 10px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.demo-signature span { font-size: .78rem; line-height: 1; }
.demo-signature img { display: block; width: 5rem; height: auto; }
.demo-signature:hover span { text-decoration: underline; text-underline-offset: 3px; }
nav { display: flex; align-items: center; gap: 6px; }
nav a { color: var(--muted); border-radius: 8px; padding: 9px 13px; text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--deep); background: var(--pale); }
main { padding-block: 32px 54px; min-height: calc(100vh - 147px); }
footer { padding-block: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: .84rem; }
footer > div { display: flex; justify-content: space-between; gap: 10px; }
footer span:first-child { font-weight: 700; }
.hero {
  min-height: 314px; display: flex; align-items: center; color: white; border-radius: 20px;
  background: linear-gradient(90deg, #142a1ffe 0%,#182b21eb 28%,#192d2285 58%,#192c2221 100%), url("./polter.webp?v=7") center 56% / cover, #294734;
  padding: 40px 44px; box-shadow: var(--shadow);
}
.hero h1 { max-width: 15ch; font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.7rem, 6vw, 4.5rem); line-height: .98; }
.hero p { max-width: 37ch; margin-block: 18px 23px; color: #f0f4e9; }
.actions, .stats, .tiles { display: grid; gap: 15px; }
.actions { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 20px; }
.tile, .panel, .stat, .record, .feature { border: 1px solid var(--line); background: white; border-radius: 14px; box-shadow: var(--shadow); }
.tile { display: flex; text-align: left; text-decoration: none; align-items: flex-start; gap: 14px; padding: 19px; color: var(--ink); }
.tile:hover, .record:hover { border-color: #a4b4a1; }
.tile strong { display: block; line-height: 1.2; margin: 2px 0 5px; font-size: 1.035rem; }
.tile small { display: block; line-height: 1.35; }
.tile-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--deep); background: var(--pale); font-weight: 650; font-size: 1.23rem; }
.tile:nth-child(2) .tile-icon { background: var(--warm); color: #775122; }
.log-mark { width: 18px; height: 18px; display: block; position: relative; border: 1.6px solid currentColor; border-radius: 48% 51% 50% 49%; }
.log-mark::before, .log-mark::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; inset: 3px; }
.log-mark::after { inset: 6px; }
.stats { grid-template-columns: repeat(3, minmax(0,1fr)); margin-block: 16px 21px; }
.stat { padding: 15px 18px; }
.stat b { display: block; font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.2; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.section { margin-top: 35px; }
.section-head, .heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.heading { margin: 9px 0 23px; align-items: flex-end; }
.heading p { margin-top: 7px; color: var(--muted); max-width: 65ch; }
.section-head { margin-bottom: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px;
  padding: 9px 15px; border-radius: 9px; border: 1px solid transparent;
  font-weight: 650; font-size: .94rem; line-height: 1.2; text-decoration: none; text-align: center;
}
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--deep); }
.secondary { background: white; color: var(--green); border-color: #b9c9b9; }
.secondary:hover { background: var(--pale); }
.hero .primary { background: #e4efd9; color: #173a26; border-color: #e4efd9; }
.hero .primary:hover { background: white; }
.quiet { background: transparent; color: var(--green); }
.quiet:hover { background: var(--pale); }
.danger { color: #963e2b; border-color: #eccfc7; background: #fffaf8; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 34px 20px; border: 1px dashed #c9d5c8; border-radius: 13px; background: #fbfcf8; color: var(--muted); }
.empty strong { color: var(--ink); }
.loading { padding: 28px 0; }
.archive-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 15px; }
.archive-toolbar .search { flex: 1 1 215px; }
.archive-toolbar .filter { flex: 0 1 180px; }
.archive-list { display: grid; gap: 8px; }
.record { display: flex; align-items: center; padding: 13px 16px; min-height: 70px; gap: 12px; text-decoration: none; color: var(--ink); }
.record .record-text { flex: 1 1 auto; min-width: 0; }
.record strong, .record small { display: block; overflow-wrap: anywhere; }
.record small { margin-top: 3px; }
.record .tag { flex-shrink: 0; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border-radius: 6px; background: var(--pale); color: var(--deep); font-size: .83rem; font-weight: 700; line-height: 1.15; }
.tag.neutral { background: #edf0eb; color: #49584e; }
.tag.attention { background: #faedd9; color: #7a4b12; }
.tag.bad { background: #f9e6e0; color: #883e2a; }
.panel { padding: 22px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 15px; }
.detail-grid > *, .part, .feature { min-width: 0; }
dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 9px 14px; margin: 14px 0 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.body-note { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 13px; }
.notice { background: var(--pale); color: #324937; border-radius: 9px; padding: 12px 14px; margin-block: 13px; font-size: .93rem; }
.help { font-size: .9rem; color: var(--muted); margin-top: 6px; }
form { margin: 0; }
label.field { display: flex; flex-direction: column; gap: 5px; font-weight: 650; font-size: .93rem; }
input:not([type=file]), select, textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #aebeb0; border-radius: 8px; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 400; }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg,transparent 50%,#44634d 50%),linear-gradient(135deg,#44634d 50%,transparent 50%); background-position: calc(100% - 15px) 52%,calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.form-grid .wide { grid-column: 1/-1; }
.editor { max-width: 880px; margin: auto; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
button[aria-pressed=true] { border-color: #9aaf9b; background: var(--pale); color: var(--deep); }
.feature summary { padding: 12px 14px; font-weight: 680; }
.feature .inside { padding: 0 14px 15px; }
.result-block { background: #edf3e9; border: 1px solid #d2dfcb; padding: 16px 18px; border-radius: 10px; }
.result-block p { margin-top: 7px; }
.result-grade { display: block; font-size: 1.65rem; font-weight: 750; line-height: 1.18; }
.compact-list { margin: 10px 0 0; padding-left: 22px; }
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; margin-top: 15px; }
.feature summary { min-height: 49px; }
.feature p { margin-top: 7px; }
.photos { display: grid; grid-template-columns: repeat(auto-fit,minmax(96px, 1fr)); gap: 8px; margin-top: 13px; }
.picture { min-width: 0; position: relative; }
.picture img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; background: #eee; }
.picture .btn { min-height: 30px; margin-top: 4px; padding: 4px 8px; }
.photo-zoom { padding: 0; border: 0; background: none; width: 100%; }
.upload { position: relative; cursor: pointer; }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 3px solid #997023; outline-offset: 3px; }
.table-frame { overflow: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: top; }
th:first-child { width: 31%; }
thead { background: var(--pale); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
dialog { border: 1px solid var(--line); padding: 20px; border-radius: 15px; color: var(--ink); max-width: min(620px,94vw); max-height: 90vh; box-shadow: 0 15px 70px #17291f55; }
dialog::backdrop { background: #14241cc0; }
dialog p { margin-block: 9px 15px; }
dialog img { display: block; margin-top: 10px; max-width: 100%; max-height: 70vh; object-fit: contain; }
.error { color: #903425; font-weight: 650; margin: 10px 0; }
#toast { position: fixed; right: 15px; bottom: 16px; max-width: min(390px,calc(100vw - 30px)); z-index: 2; pointer-events: none; }
#toast:not(:empty) { background: var(--deep); color: white; padding: 12px 16px; border-radius: 9px; box-shadow: 0 5px 25px #203b3740; }
.source { color: var(--muted); font-size: .88rem; margin-top: 14px; }
@media (min-width: 901px) {
  .brand-row { padding-block: 8px; }
}
@media (max-width: 900px) {
  .top-inner { align-items: stretch; flex-direction: column; gap: 9px; padding: 10px 0 7px; }
  .brand-row { justify-content: space-between; gap: 8px; }
  .demo-signature { gap: 8px; padding-inline: 0 4px; border: 0; }
  .demo-signature img { width: 4.5rem; }
  nav { justify-content: space-between; gap: 3px; }
}
@media (max-width: 710px) {
  .top-inner, main, footer > div { width: calc(100% - 28px); }
  .brand { width: fit-content; }
  nav a { padding: 7px 8px; font-size: .88rem; }
  main { padding-block: 17px 35px; }
  .hero { min-height: 277px; padding: 25px 22px; border-radius: 15px; background-position: center, 62% center; }
  .hero p { max-width: 29ch; font-size: .94rem; }
  .actions { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  .tile { padding: 12px; align-items: center; }
  .stats { gap: 7px; }
  .stat { padding: 10px 8px; }
  .stat small { font-size: .78rem; line-height: 1.12; display: block; }
  .panel { padding: 15px; }
  .heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 14px; }
  .section { margin-top: 24px; }
  .detail-grid, .glossary { grid-template-columns: 1fr; }
  .record { padding: 9px; gap: 8px; }
  .record .tile-icon { flex-basis: 30px; width: 30px; height: 30px; }
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero { background-image: linear-gradient(90deg,#142a1fed,#192d22c4 57%,#192c2244),url("./polter.webp?v=7"); }
  footer > div { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .demo-signature span { display: none; }
}
@media (max-width: 365px) {
  .top nav { gap: 1px; }
  .top nav a { padding-inline: 2px; }
}

.wizard { max-width: 760px; }
.wizard-strip, .wizard-identity, .question-top, .wizard-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizard-strip { margin-bottom: 14px; }
.wizard-identity { justify-content: start; min-width: 0; }
.wizard-identity strong, .wizard-identity small { display: block; overflow-wrap: anywhere; }
.wizard-logo, .mini-photo, .mini-photo img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.mini-photo { padding: 0; border: 0; background: var(--deep); }
.question-card { background: white; border: 1px solid #cdd9ce; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 26px #18332410; }
.question-top { background: #244333; color: #eef4e9; padding: 12px clamp(18px,4vw,36px); font-weight: 650; }
.help-button { background: #ffffff10; color: white; border-color: #a1b29d; min-height: 42px; }
.help-button:hover { background: #ffffff26; }
.help-sign { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: .8rem; }
.wizard progress { display: block; width: 100%; height: 5px; border: none; appearance: none; background: #dde6dd; color: #ba8c48; }
.wizard progress::-webkit-progress-bar { background: #dde6dd; }
.wizard progress::-webkit-progress-value { background: #ba8c48; }
.wizard progress::-moz-progress-bar { background: #ba8c48; }
.question-body { padding: clamp(20px,4vw,36px); }
.question-body h1 { font-family: Georgia,serif; font-weight: 500; font-size: clamp(1.95rem,5vw,3rem); color: #213d2e; overflow-wrap: anywhere; }
.question-body h1:focus { outline: none; }
.question-prompt { margin-top: 7px; color: var(--muted); font-size: 1.05rem; }
.answer-list { display: grid; gap: 9px; margin-top: 22px; }
.answer { text-align: left; display: flex; align-items: center; gap: 13px; padding: 13px 15px; min-height: 51px; border: 1px solid #ccd7cb; border-radius: 10px; background: #fafbf8; color: #28372d; font-weight: 580; }
.answer-dot { display: inline-block; flex: 0 0 18px; height: 18px; border: 1.5px solid #92a28e; border-radius: 50%; background: white; }
.answer[aria-pressed=true] { border-color: #416d46; color: #1d472c; background: #e8f1e4; box-shadow: inset 0 0 0 1px #416d46; }
.answer[aria-pressed=true] .answer-dot { border: 5px solid #396541; }
@media (hover:hover) { .answer:hover { border-color: #67876a; } }
.measurement-fields { display: grid; gap: 13px; padding: 17px; margin-top: 16px; border-radius: 10px; background: #f3f5ef; }
.measurement-fields fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.measurement-fields legend { font-weight: 650; font-size: .95rem; }
.field-choices { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.field-choices .answer { min-height: 44px; padding: 8px 12px; }
.wizard-controls { padding: 14px clamp(18px,4vw,36px); border-top: 1px solid var(--line); background: #fafbf7; }
.wizard-controls .btn { min-width: min(32vw,145px); min-height: 47px; }
.save-draft { margin-top: 7px; }
.help-sheet h2 { font-family: Georgia,serif; font-size: 2rem; }
.help-sheet .btn { margin-top: 5px; }
@media (prefers-reduced-motion:no-preference) { .wizard-controls .btn:active,.answer:active { transform: translateY(1px); } }

.capture-extras,.more-species { margin: 14px 0; }
.capture-extras summary,.more-species summary { cursor: pointer; color: var(--green); font-weight: 650; padding: 8px 0; }
.species-grid,.measure-grid,.illustrated { display: grid; gap: 9px; margin: 18px 0; grid-template-columns: repeat(3,minmax(0,1fr)); }
.species-grid .answer { justify-content: flex-start; }
.measure-grid .answer,.illustrated .answer { position: relative; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 7px; text-align: center; padding: 6px 6px 12px; }
.measure-grid .answer-dot,.illustrated .answer-dot { position: absolute; right: 7px; top: 7px; width: 15px; height: 15px; }
.measure-grid .answer > span:last-child,.illustrated .answer > span:last-child { padding: 0 5px; line-height: 1.28; }
wood-sketch { display: block; background: #f0efe2; border-radius: 6px; overflow: hidden; width: 100%; }
wood-sketch canvas { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
  .species-grid,.measure-grid,.illustrated { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .species-grid .answer { padding: 10px; gap: 7px; }
}

.measure-intro { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:9px 0 18px; }
.measure-intro wood-sketch { width:92px; flex:none; }
.measure-intro .question-prompt { margin:0; }
.measurement-fields { padding:0; background:transparent; gap:17px; }
.metric,.measurement-fields .metric { min-width:0; margin:0; padding:14px 18px 17px; border:1px solid #cbd9ce; border-radius:12px; background:#f7f9f4; }
.metric legend,.measurement-fields .metric legend { padding:0 6px; font-size:1rem; font-weight:700; color:#274635; line-height:1.35; }
.metric-line,.metric-exact,.metric-exact > div,.metric-scale { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.metric-line label,.metric-exact label,.metric-scale { font-size:.9rem; color:#40584b; }
.metric-value { font-size:1.25rem; font-weight:720; color:#234934; font-variant-numeric:tabular-nums; }
.metric input[type=range] { appearance:none; -webkit-appearance:none; display:block; width:100%; min-height:44px; margin:2px 0 0; padding:0; border:0; border-radius:0; background:transparent; cursor:pointer; touch-action:pan-y; }
.metric input[type=range]::-webkit-slider-runnable-track { height:7px; border-radius:8px; background:#a7ba9b; }
.metric input[type=range]::-moz-range-track { height:7px; border-radius:8px; background:#a7ba9b; }
.metric input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:28px; height:28px; margin-top:-10.5px; background:#31543b; border:3px solid white; border-radius:50%; box-shadow:0 0 0 1px #56745a; }
.metric input[type=range]::-moz-range-thumb { box-sizing:border-box; width:28px; height:28px; background:#31543b; border:3px solid white; border-radius:50%; box-shadow:0 0 0 1px #56745a; }
.metric-scale { border-top:5px solid transparent; border-image:repeating-linear-gradient(90deg,#9aad98 0 1px,transparent 1px 5%) 5; font-variant-numeric:tabular-nums; }
.metric-shortcuts { display:flex; flex-wrap:wrap; gap:6px; margin:13px 0; }
.metric-preset { min-height:44px; min-width:44px; padding:6px 10px; border-radius:8px; border:1px solid #b9cbb9; background:white; color:#294934; font-weight:650; }
.metric-preset[aria-pressed=true] { border-color:#426846; box-shadow:inset 0 0 0 1px #426846; }
.metric-exact { border-top:1px solid #d5dfd1; padding-top:11px; }
.metric-exact > div { justify-content:flex-start; font-size:.9rem; }
.metric-exact input { width:5.1rem; max-width:32vw; min-height:44px; text-align:center; font-variant-numeric:tabular-nums; }
.measurement-fields > fieldset:not(.metric) { padding:9px 2px; }
.final-result { margin-top:17px; }
.result-caption { display:block; margin-bottom:5px; font-size:.9rem; color:#40584b; font-weight:650; }
.sort-check { padding:12px 0 0; margin-top:15px; border-top:1px solid var(--line); }
.sort-check p { margin:5px 0 0; }
.help-sheet h2:focus { outline:none; }
.grade-breakdown { background:white; border:1px solid var(--line); padding:clamp(14px,2.4vw,25px); border-radius:12px; }
.final-result .grade-breakdown { margin-top:18px; }
.grade-breakdown > .help { margin:5px 0 15px; }
.grades-table { font-size:.93rem; }
.grades-table > thead th:first-child { width:35%; }
.grades-table > thead th:last-child { width:20%; }
.grades-table th,.grades-table td { padding:10px 7px; }
.previous-assessment summary { cursor:pointer; color:#274d35; }
.grades-table .grade-overview > th { padding-block:2px; vertical-align:middle; }
.grade-overview > td { vertical-align:middle; }
.disclose-limits { display:flex; align-items:center; gap:7px; width:100%; min-height:44px; margin:0; padding:6px 0; border:0; background:transparent; color:#254a34; text-align:left; font:inherit; font-weight:670; cursor:pointer; }
.disclose-limits::before { content:""; flex:none; width:7px; height:7px; border-right:2px solid #5b795c; border-bottom:2px solid #5b795c; transform:rotate(-45deg); }
.disclose-limits[aria-expanded=true]::before { transform:rotate(45deg); }
.grade-overview:has(.disclose-limits[aria-expanded=true]) { background:#edf2e8; }
.grades-table .grade-expanded > td { padding:0; }
.limit-sheet { padding:12px clamp(8px,2vw,18px) 16px; background:#f6f8f3; border-bottom:1px solid #cfdbcc; }
.limit-sheet table { background:white; table-layout:fixed; border:1px solid #d5dfd1; line-height:1.35; }
.limit-sheet caption { padding:0 0 6px; color:#36523d; font-weight:700; text-align:left; }
.limit-sheet thead { background:#e9eee5; }
.limit-sheet table th,.limit-sheet table td { padding:8px; border-bottom:1px solid #d5dfd1; }
.limit-sheet thead th:first-child { width:24%; }
.limit-sheet .finding-table thead th:first-child { width:63%; }
.limit-table .band-target { min-width:44px; min-height:40px; padding:4px 8px; border:1px solid #aebfb2; border-radius:6px; background:#fff; color:#204733; font:inherit; font-weight:700; cursor:pointer; }
.limit-table .band-target:hover, .limit-table .band-target:focus-visible { background:#e2ece4; }
.limit-sheet .limit-table td { white-space:pre-line; }
.matches-finding { background:#ecf4e7; }
.matches-finding th { box-shadow:inset 3px 0 #4e714c; }
.matched-label { display:block; font-size:.8rem; color:#36573b; font-weight:600; }
.limit-sheet .finding-table { margin-top:12px; }
.finding-table tbody th { font-weight:500; }
.limit-note { margin:8px 0; padding-left:9px; border-left:3px solid #b68b49; }
.grade-cell { display:inline-block; padding:2px 7px; border-radius:5px; background:#f1f0eb; color:#4e524b; font-weight:650; }
.grade-A,.grade-B { background:#e6efdf; color:#305133; }
.grade-C,.grade-CX,.grade-BR,.grade-review,.grade-excluded { background:#f4e8d1; color:#62481f; }
.previous-assessment { width:100%; font-size:.95rem; }
@media (max-width:540px) {
  .grade-breakdown { padding:12px 9px; }
  .final-result .grade-breakdown { margin-inline:-10px; }
  .grades-table > thead th:first-child { width:43%; }
  .grades-table th,.grades-table td { padding:9px 4px; }
  .grades-table > thead th:last-child { width:23%; white-space:nowrap; }
  .disclose-limits { gap:5px; hyphens:auto; }
  .metric,.measurement-fields .metric { padding:11px 12px 14px; }
  .metric-exact { flex-wrap:wrap; }
}

.field-atlas { margin:16px 0; min-width:0; }
.example-picker { display:flex; align-items:center; flex-wrap:wrap; gap:5px 10px; margin-bottom:8px; color:#36523d; font-size:.9rem; font-weight:650; }
.example-picker select { flex:1 1 190px; min-width:0; width:auto; min-height:40px; }
.atlas-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.atlas-pair > div { min-width:0; border-radius:9px; border:1px solid #d4dfd1; background:#f7f8f3; overflow:hidden; }
.visual-label { display:block; min-height:32px; padding:7px 8px; font-size:.85rem; font-weight:680; color:#3e5845; background:#edf1e8; }
.atlas-pair .help-visual { margin:0 !important; border:0 !important; padding:7px !important; border-radius:0 !important; background:transparent !important; }
.atlas-original figure { margin:0; }
.atlas-original figcaption { padding:7px 9px; font-size:.94rem; line-height:1.35; }
.atlas-original figcaption p { margin:5px 0; }
.view-reference { display:block; position:relative; width:100%; padding:0; border:0; background:#eaece5; cursor:zoom-in; }
.view-reference img { display:block; width:100%; height:clamp(115px,20vw,190px); margin:0; object-fit:contain; }
.view-reference > span { position:absolute; bottom:4px; right:4px; padding:2px 6px; border-radius:4px; background:#182b21df; color:white; font-size:.77rem; }
.atlas-compact .atlas-sketch figcaption,.atlas-compact .atlas-original figcaption p { display:none; }
.atlas-compact .atlas-sketch svg { min-height:94px; max-height:130px !important; }
.atlas-compact .view-reference img { height:clamp(100px,18vw,140px); }
.atlas-compact .atlas-original figcaption { font-size:.9rem; }
.illustrated .choice-photo { width:100%; aspect-ratio:1.85; object-fit:contain; background:#edece6; border-radius:6px; }
@media (max-width:480px) {
  .field-atlas:not(.atlas-compact) .atlas-pair { grid-template-columns:minmax(0,1fr); }
  .atlas-pair .visual-label { font-size:.8rem; }
}
.photo-credit { color:#536054; font-size:.84rem; overflow-wrap:anywhere; }
.reference-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
#reference-viewer { width:min(820px,94vw); max-width:94vw; }
#reference-viewer img { width:100%; height:auto; max-height:62vh; object-fit:contain; }

.hero { position:relative; }
.hero-credit { position:absolute; bottom:8px; right:10px; padding:2px 6px; border-radius:4px; font-size:.78rem; color:white; background:#182b21d9; }
.grade-switch { margin:14px 0; padding:0; border:0; min-width:0; }
.grade-switch legend { margin-bottom:6px; font-weight:650; color:#3c5745; }
.grade-switch button { min-width:43px; min-height:42px; margin:0 4px 4px 0; padding:6px 10px; color:#294934; background:white; border:1px solid #b9cbb9; border-radius:7px; font-weight:650; }
.grade-switch button[aria-pressed=true] { color:white; background:#31553e; border-color:#31553e; }
.band-value,.target-limit { white-space:pre-line; }
.grade-boundary { display:block; color:#714b23; line-height:1.2; margin-top:3px; }
.grade-causes,.correct-line { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.grade-causes { margin-top:8px; }
.grade-causes .btn { min-height:38px; }
.correct-line { padding:0 10px 12px; background:#f6f8f3; justify-content:space-between; }
.correct-line span { color:#40584b; }
.target-limit,.review-preview { background:#edf3e9; padding:10px 12px; border-radius:7px; margin-top:10px; }
