:root {
  --accent: #f05a28;
  --accent-2: #ff7a45;
  --accent-soft: rgba(240, 90, 40, 0.12);
  --bg: #f6f7f9;
  --bg-2: #ffffff;
  --card: #ffffff;
  --border: #e4e7ec;
  --text: #1c2230;
  --muted: #667085;
  --input: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 14px rgba(16, 24, 40, 0.05);
  --radius: 12px;
  --blue: #2563eb; --purple: #7c3aed; --teal: #0d9488; --orange: #ea580c; --green: #16a34a; --red: #dc2626; --gray: #6b7280;
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #0f1218;
  --bg-2: #151a22;
  --card: #181e28;
  --border: #283040;
  --text: #e6e9ef;
  --muted: #98a2b3;
  --input: #10141b;
  --accent-soft: rgba(255, 122, 69, 0.15);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 18px rgba(0, 0, 0, 0.25);
  --blue: #60a5fa; --purple: #a78bfa; --teal: #2dd4bf; --orange: #fb923c; --green: #4ade80; --red: #f87171; --gray: #9ca3af;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.2rem 0; }
code { background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; padding: 28px 0 60px; }

/* ---------- Navigation ---------- */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar .container { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #ffb347); display: grid; place-items: center; color: #fff; font-size: 17px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a, .nav-right a.navlink { color: var(--muted); padding: 7px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--accent-soft); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; background: none; border: 1px solid var(--border); color: var(--text); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; font-size: 17px; }
.icon-btn:hover { background: var(--accent-soft); text-decoration: none; }
.badge-dot { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.dropdown { position: relative; }
.dropdown > button { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border); color: var(--text); padding: 5px 10px 5px 5px; border-radius: 10px; cursor: pointer; font: inherit; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); min-width: 220px; padding: 6px; z-index: 60; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 7px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--accent-soft); text-decoration: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
.menu-toggle { display: none; }

.banner { padding: 10px 0; font-size: 14px; text-align: center; }
.banner.info { background: var(--accent-soft); color: var(--text); }
.banner.warning { background: #fff4d6; color: #7a5300; }
.banner.danger { background: #fde2e1; color: #8a1c13; }
.banner.success { background: #dcfce7; color: #14532d; }
[data-theme='dark'] .banner.warning { background: #3a2c08; color: #fcd679; }
[data-theme='dark'] .banner.danger { background: #3b1414; color: #fca5a5; }
[data-theme='dark'] .banner.success { background: #0f2e1b; color: #86efac; }
.impersonate { background: #7c3aed; color: #fff; }
.impersonate button { background: #fff; color: #7c3aed; border: 0; border-radius: 6px; padding: 3px 10px; margin-left: 10px; cursor: pointer; font-weight: 600; }

/* ---------- Komponenten ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #fff; border: 1px solid transparent; padding: 9px 16px; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: filter 0.15s, transform 0.05s; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: var(--accent-soft); }
.btn.danger { background: var(--red); }
.btn.success { background: var(--green); }
.btn.ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn.sm { padding: 5px 11px; font-size: 13.5px; border-radius: 7px; }
.btn.lg { padding: 13px 24px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: color-mix(in srgb, var(--c, var(--gray)) 15%, transparent); color: var(--c, var(--gray)); white-space: nowrap; }
.badge.blue { --c: var(--blue); } .badge.purple { --c: var(--purple); } .badge.teal { --c: var(--teal); } .badge.orange { --c: var(--orange); }
.badge.green { --c: var(--green); } .badge.red { --c: var(--red); } .badge.gray { --c: var(--gray); } .badge.accent { --c: var(--accent); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border); vertical-align: -2px; }
.stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; }
.alert.success { background: #ecfdf3; border-color: #a6f4c5; color: #05603a; }
.alert.error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.alert.info { background: var(--accent-soft); border-color: transparent; color: var(--text); }
[data-theme='dark'] .alert.success { background: #0f2e1b; border-color: #166534; color: #86efac; }
[data-theme='dark'] .alert.error { background: #3b1414; border-color: #7f1d1d; color: #fca5a5; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.field { margin-bottom: 15px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 400; }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='date'], input[type='datetime-local'], input[type='search'], input[type='url'], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--input); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 100px; resize: vertical; }
input[type='color'] { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--input); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; margin-bottom: 8px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.split.wide-side { grid-template-columns: minmax(0, 1fr) 400px; }
.stack > * + * { margin-top: 12px; }

.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.radio-cards label { border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 13px; cursor: pointer; font-weight: 500; margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.radio-cards label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-cards input { accent-color: var(--accent); margin-top: 3px; }
.radio-cards small { display: block; }

.pick-list { display: grid; gap: 8px; }
.pick { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 14px; cursor: pointer; font-weight: 400; margin: 0; }
.pick:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.pick.selected { border-color: var(--accent); background: var(--accent-soft); }
.pick input { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
.pick .avatar { width: 40px; height: 40px; font-size: 17px; }
.pick-body { flex: 1; min-width: 0; }
.pick-price { text-align: right; white-space: nowrap; }
#nearby { display: grid; gap: 8px; }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; transition: 0.15s; background: var(--bg); }
.dropzone.drag, .dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .big { font-size: 34px; }
.file-list { margin-top: 12px; display: grid; gap: 8px; }
.file-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.file-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-item .meta { font-size: 12.5px; color: var(--muted); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Startseite ---------- */
.hero { padding: 54px 0 34px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.7rem; letter-spacing: -0.02em; margin-bottom: 0.4em; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.6em; }
.hero-art { aspect-ratio: 1.1; border-radius: 22px; background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 70%), var(--card); border: 1px solid var(--border); display: grid; place-items: center; font-size: 120px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-art canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stats-row { display: flex; gap: 34px; margin-top: 28px; }
.stats-row b { display: block; font-size: 1.6rem; color: var(--text); }
.stats-row span { color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 20px; }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
.section-title { margin: 40px 0 16px; display: flex; justify-content: space-between; align-items: end; }

/* ---------- Drucker-Karten ---------- */
.printer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.printer-card { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.printer-card .head { display: flex; gap: 12px; align-items: center; }
.printer-card .head .avatar { width: 46px; height: 46px; font-size: 19px; flex-shrink: 0; }
.printer-card .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 12.5px; padding: 2px 9px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.printer-card .foot { margin-top: auto; display: flex; gap: 8px; }
.filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr) auto; gap: 10px; align-items: end; }
.filters label { font-size: 12.5px; color: var(--muted); }

/* ---------- Auftrag ---------- */
.req-list { display: grid; gap: 10px; }
.req-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); align-items: center; }
.req-row:hover { border-color: var(--accent); text-decoration: none; }
.req-row .title { font-weight: 600; }
.req-row .meta { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 3px; }
.req-row .right { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

.viewer { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(180deg, var(--bg), var(--card)); border: 1px solid var(--border); position: relative; overflow: hidden; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer .viewer-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }
.viewer .viewer-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; }
.viewer .viewer-tools button { background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 7px; padding: 4px 8px; cursor: pointer; font-size: 12px; }
.file-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.file-tabs button { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 5px 11px; cursor: pointer; font: inherit; font-size: 13px; }
.file-tabs button.active { border-color: var(--accent); background: var(--accent-soft); }
.gallery { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); display: block; }
.photo-grid figcaption { font-size: 12px; margin-top: 4px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.portfolio-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); }
.portfolio-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; cursor: zoom-in; }
.portfolio-item .cap { padding: 8px 10px; font-size: 13.5px; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); display: none; place-items: center; z-index: 200; cursor: zoom-out; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
dl.props { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin: 0; }
dl.props dt { color: var(--muted); font-size: 14px; }
dl.props dd { margin: 0; font-weight: 500; }

.timeline { display: flex; gap: 0; margin: 4px 0 6px; overflow-x: auto; }
.timeline .tstep { flex: 1; min-width: 92px; text-align: center; font-size: 12.5px; color: var(--muted); position: relative; padding-top: 22px; }
.timeline .tstep::before { content: ''; position: absolute; top: 6px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--border); z-index: 1; }
.timeline .tstep::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--border); }
.timeline .tstep:first-child::after { display: none; }
.timeline .tstep.done { color: var(--text); }
.timeline .tstep.done::before, .timeline .tstep.done::after { background: var(--accent); }
.timeline .tstep.current { font-weight: 700; color: var(--accent); }

.offer { border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: grid; gap: 8px; }
.offer.accepted { border-color: var(--green); }
.offer .price { font-size: 1.35rem; font-weight: 800; }

.chat { display: flex; flex-direction: column; height: 460px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { max-width: 78%; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--accent); color: #fff; border-color: transparent; }
.msg.staff { align-self: center; background: #7c3aed; color: #fff; border: 0; }
.msg .who { font-size: 11.5px; opacity: 0.75; margin-bottom: 2px; }
.msg .who a { color: inherit; }
.chat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--card); }
.chat textarea { min-height: 42px; height: 42px; flex: 1; }

.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.star-input input { display: none; }
.star-input label { font-size: 30px; color: var(--border); cursor: pointer; margin: 0; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }

details.box { border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; margin-bottom: 12px; }
details.box summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
details.box[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 14px; }
details.box > *:last-child { margin-bottom: 14px; }

.estimate { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; }
.estimate b { font-size: 1.4rem; }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 6px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; white-space: nowrap; }
.tabs a.active { color: var(--accent); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }

.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 5px 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); }
.pagination span { background: var(--accent); color: #fff; border-color: var(--accent); }

.auth-wrap { max-width: 460px; margin: 20px auto; }
.auth-wrap .card { padding: 30px; }

.notif { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); align-items: center; }
.notif:last-child { border: 0; }
.notif.unread { background: var(--accent-soft); }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.notif:hover { text-decoration: none; filter: brightness(0.98); }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; position: sticky; top: 80px; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 500; }
.admin-nav a:hover { background: var(--accent-soft); text-decoration: none; }
.admin-nav a.active { background: var(--accent); color: #fff; }
.admin-nav .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; color: var(--text); display: block; }
a.kpi:hover { border-color: var(--accent); text-decoration: none; }
.kpi .label { font-size: 13px; color: var(--muted); }
.kpi .value { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.kpi.alert-kpi .value { color: var(--red); }
.chart { width: 100%; }
.chart .bar { fill: var(--accent); }
.chart .bar2 { fill: var(--blue); }
.chart .bar:hover, .chart .bar2:hover { filter: brightness(1.15); }
.chart text { fill: var(--muted); font-size: 10.5px; }
.chart line { stroke: var(--border); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 7px; font-size: 13.5px; }
.hbar .track { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--accent); border-radius: 5px; }

footer.site { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 14px; background: var(--bg-2); }
footer.site .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-left: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .split.wide-side, .hero, .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; }
  .admin-nav .sep { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .grid.c3, .grid.c4 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 10px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .dropdown > button .uname { display: none; }
  .grid.c2, .grid.c3, .grid.c4, .steps { grid-template-columns: 1fr; }
  .req-row { grid-template-columns: 1fr; }
  .req-row .right { align-items: flex-start; text-align: left; }
  .stats-row { gap: 20px; }
}
