:root { color-scheme: light; font: 15px/1.55 system-ui, "PingFang SC", sans-serif; color: #232824; background: #f6f4ef; --ink: #232824; --muted: #596058; --accent: #205747; --line: #dbded3; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(100% - 42px, 1510px); margin-inline: auto; }
.hero { padding: 46px 0 38px; background: #18392f; color: #f9f6ed; border-bottom: 5px solid #c3ad78; }
.eyebrow { font-size: 13px; color: #e4d9b6; letter-spacing: .14em; }
h1 { margin: 8px 0 10px; font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.1; letter-spacing: -.055em; }
.hero p { margin: 13px 0 17px; color: #e0e7d9; }
.resources { display: flex; flex-wrap: wrap; gap: 15px 22px; }
.resources a { color: #f6eed7; text-underline-offset: 5px; }
.controls { display: grid; grid-template-columns: minmax(218px,1.55fr) repeat(7,minmax(92px,1fr)); gap: 10px; padding: 21px 0 18px; }
.controls label { display: grid; gap: 4px; font-size: 12px; font-weight: 650; color: var(--muted); }
select, input, button, textarea, .import { font: inherit; color: var(--ink); }
select, input:not([type=file]), textarea { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #c8cec2; background: white; border-radius: 7px; font-size: 14px; }
button, .import { border: 1px solid #c8cec2; background: #fff; padding: 7px 11px; border-radius: 7px; cursor: pointer; }
button:hover, .import:hover { background: #e7efe7; }
:focus-visible { outline: 2px solid #137660; outline-offset: 3px; }
.resultsbar { display: flex; gap: 12px 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.resultsbar p, .status { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.actions { display: flex; gap: 7px; flex-wrap: wrap; font-size: 13px; }
#export { background: #245a4b; color: white; border-color: #245a4b; }
.import { position: relative; overflow: hidden; }
.import input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.status:not(:empty) { padding: 0 0 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,220px),1fr)); gap: 15px; padding-bottom: 20px; }
.card { min-width: 0; overflow: hidden; border-radius: 11px; background: #fff; border: 1px solid #dfe3d8; }
.picture { display: block; position: relative; width: 100%; aspect-ratio: 1.12; border: 0; border-radius: 0; padding: 0; background: #e8e8df; }
.picture img { width: 100%; height: 100%; object-fit: contain; display: block; }
.missing { display: grid; place-items: center; height: 100%; font-size: 13px; color: var(--muted); }
.corner { background: #fffffff0; color: var(--accent); position: absolute; top: 8px; left: 8px; border-radius: 5px; padding: 2px 6px; font-size: 12px; font-weight: 700; }
.cardbody { padding: 10px 11px 12px; }
.metadata { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.thick { color: #26624c; font-weight: 650; }
.card h2 { font-size: 14px; line-height: 1.42; margin: 7px 0; min-height: 2.85em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.measures { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: 13px; font-weight: 700; }
.source-note { min-height: 1.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 4px 0 6px; color: var(--muted); font-size: 12px; }
.card-links { display: flex; gap: 12px; font-size: 12px; }
.card-links a, .evidence a { color: var(--accent); text-underline-offset: 3px; }
#more { display: block; margin: 0 auto 28px; }
dialog { width: min(920px,calc(100% - 24px)); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fdfcf8; }
dialog::backdrop { background: #10261dc4; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; border-bottom: 1px solid var(--line); font-weight: 700; }
#detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 15px; }
.preview { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.preview img { max-width: 100%; max-height: 62vh; object-fit: contain; background: #ecebe2; border-radius: 7px; }
.evidence h2 { font-size: 18px; margin: 0 0 8px; }
.evidence p { margin: 6px 0; }
.evidence details { margin-block: 9px; }
.evidence summary { cursor: pointer; color: var(--accent); }
.evidence ul { max-height: 12em; overflow: auto; padding-left: 22px; font-size: 13px; }
.review { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 9px; display: grid; gap: 7px; }
.review label { display: grid; gap: 3px; font-size: 13px; }
.review textarea { resize: vertical; }
.review button { justify-self: start; }
@media (max-width: 1150px) { .controls { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 610px) { .shell { width: calc(100% - 26px); } .hero { padding: 30px 0 28px; } .controls { grid-template-columns: repeat(2,1fr); } .search { grid-column: 1 / -1; } .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; } .cardbody { padding: 8px; } #detail-body { grid-template-columns: 1fr; } }
