:root { --c: #0f766e; --ink: #1b1f24; --sub: #5b6470; --line: #d8dde3; --bg: #f6f8fa; --warn: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
header, main, footer { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 22px; }
h1 { margin: 0 0 4px; font-size: 26px; }
h2 { margin: 0 0 10px; font-size: 19px; }
.sub, .hint, .fine { color: var(--sub); }
.fine { font-size: 13px; margin-top: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 16px 0; }
.sources { margin: 6px 0 12px; padding-left: 20px; }
.drop { display: inline-block; padding: 10px 16px; background: var(--c); color: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; }
.drop input { position: absolute; left: -9999px; }
.notes { margin: 10px 0 0; padding-left: 18px; color: var(--sub); }
.notes li.err { color: var(--warn); }
.scroll { overflow: auto; max-height: 340px; border: 1px solid var(--line); border-radius: 8px; }
.scroll.tall { max-height: 520px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 5px 8px; border-bottom: 1px solid #eef1f4; vertical-align: middle; }
th { position: sticky; top: 0; background: #f1f4f7; font-weight: 600; z-index: 1; }
td input[type=text], td select { width: 100%; min-width: 120px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; font: inherit; }
td input.tmiles { width: 76px; min-width: 0; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; font: inherit; text-align: right; }
td .res { color: var(--sub); font-size: 12px; }
tr.flag td { background: #fff6f5; }
.filters { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 10px; }
.filters input[type=text] { width: 280px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.filters input[type=number] { width: 70px; }
.totals { font-weight: 600; }
.warn { color: var(--warn); }
button { padding: 9px 14px; border: 0; border-radius: 7px; background: var(--c); color: #fff; font: inherit; font-weight: 600; cursor: pointer; margin-right: 6px; }
button.x { background: none; color: var(--sub); padding: 2px 6px; font-weight: 400; }
.unlock { border-top: 1px dashed var(--line); padding-top: 8px; }
.unlock input { width: 340px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
footer { color: var(--sub); font-size: 13px; padding-bottom: 30px; }
footer a { color: var(--sub); }
main.page { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin-top: 24px; }

.sample-row { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.muted { color: #64748b; }
