:root { --bg: #f6f7f9; --card: #fff; --text: #1c2430; --muted: #5b6675; --line: #dfe3e8; --accent: #1a5fb4; --button: #1a5fb4; --estate: #7a3e9d; --garage: #1f7a4d; }
/* Dark theme colors match nathangawith.com; assets/theme.js sets data-theme. */
:root[data-theme="dark"] { color-scheme: dark; --bg: #1a1a1f; --card: #2a2a33; --text: #e8e8e8; --muted: #9d9dab; --line: #3d3d47; --accent: #4da3ff; }
.theme-toggle { position: fixed; top: 1rem; right: 1rem; z-index: 2; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; border: none; border-radius: 50%; background-color: #23232e; font-size: 1.2rem; cursor: pointer; }
.theme-toggle:hover { background-color: #141418; }
* { box-sizing: border-box; }
body { margin: 0; padding: 24px 16px; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, "Segoe UI", sans-serif; }
main { max-width: 1160px; margin: 0 auto; }
.crumbs { margin: 0 0 12px; color: var(--muted); }
.crumbs a { display: inline-block; padding: 6px 0; color: var(--accent); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
h1 { margin: 0 0 4px; font-size: 1.6rem; }
.sub { margin: 0 0 20px; color: var(--muted); }
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; max-width: 480px; }
.field label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.field.narrow { flex: 0 1 180px; }
.field input, .field select { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: inherit; background: var(--card); }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; background: var(--button); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.link { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.btn[aria-disabled="true"] { background: var(--muted); cursor: not-allowed; }
td.check input { width: 20px; height: 20px; margin: 0; vertical-align: middle; accent-color: var(--accent); cursor: pointer; }
tr.visited td:not(.check) { opacity: 0.45; }
tr.visited td.addr { text-decoration: line-through; }
.wrap { margin-top: 20px; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.addr { white-space: normal; min-width: 220px; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num { color: var(--muted); font-variant-numeric: tabular-nums; }
.handle { margin: 0 8px 0 -6px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: grab; touch-action: none; }
.handle:hover, .handle:focus-visible { background: var(--bg); color: var(--text); }
.handle:active { cursor: grabbing; }
tr.dragging { background: var(--bg); box-shadow: inset 3px 0 0 var(--accent); }
td a:not(.btn) { color: var(--accent); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #fff; }
.estate { background: var(--estate); }
.garage { background: var(--garage); }
.none { color: var(--muted); font-style: italic; }
.date { margin-top: 20px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.date h2 { margin: 0 0 8px; font-size: 1.1rem; }
.date ul { margin: 0; padding-left: 20px; }
.date a { color: var(--accent); }
.note { margin-top: 16px; color: var(--muted); font-size: 0.9rem; }
