:root { --pico-font-size: 100%; --pico-spacing: 0.8rem; --pico-form-element-spacing-vertical: 0.45rem; --pico-form-element-spacing-horizontal: 0.6rem; }
h1 { font-size: 1.6rem; margin-bottom: 0; }
h1 small, h2 small { font-weight: 400; color: var(--pico-muted-color); font-size: 0.6em; }
h2 { font-size: 1.2rem; margin-top: 2rem; }

.topnav { border-bottom: 1px solid var(--pico-muted-border-color); margin-bottom: 1rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
form.inline { margin: 0; }
form.inline button, button.small { margin: 0; padding: 0.25rem 0.7rem; font-size: 0.85rem; width: auto; }
.actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.actions button, .actions [role=button] { width: auto; margin: 0; }
fieldset { border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); padding: 0.8rem 1rem; }
fieldset legend { padding: 0 0.4rem; font-weight: 600; }
[hidden] { display: none !important; }

.login { max-width: 24rem; margin: 10vh auto; }
.error { color: #b3261e; }
div.error, p.error { background: #fdecea; border-radius: var(--pico-border-radius); padding: 0.6rem 0.9rem; }
div.error ul { margin: 0.3rem 0 0; }
.flash { background: #e6f4ea; color: #1e6b34; border-radius: var(--pico-border-radius); padding: 0.6rem 0.9rem; }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
table { font-size: 0.85rem; margin: 0; }
th.num, td.num { text-align: right; }
tr.inactive td { color: var(--pico-muted-color); }
.sample-table th, .sample-table td { white-space: nowrap; max-width: 28rem; overflow: hidden; text-overflow: ellipsis; padding: 0.3rem 0.6rem; }
.sample-table th { position: sticky; top: 0; }
.mapping-table select, .mapping-table input { margin: 0; min-width: 12rem; }
.mapping-table th[scope=row] { white-space: nowrap; }
.mapping-table th small { color: var(--pico-muted-color); font-weight: 400; }
td.issue { background: #fff4ce; color: #7a5b00; }
.sample-meta { color: var(--pico-muted-color); }

.upload-row { display: flex; gap: 0.5rem; align-items: center; margin: 0; }
.upload-row input[type=file] { margin: 0; font-size: 0.8rem; padding: 0.2rem; }
.upload-row button { width: auto; margin: 0; white-space: nowrap; }
.htmx-indicator { opacity: 0; transition: opacity 150ms; }
.htmx-request.htmx-indicator, .htmx-request .htmx-indicator { opacity: 1; }
