/* admin area – same fonts and colours as the website (fonts are the site's own files) */
@font-face { font-family: Manrope; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-variable.woff2') format('woff2'); }
@font-face { font-family: Comfortaa; font-weight: 500; font-display: swap; src: url('../fonts/comfortaa-500.woff2') format('woff2'); }
@font-face { font-family: Comfortaa; font-weight: 700; font-display: swap; src: url('../fonts/comfortaa-700.woff2') format('woff2'); }

:root { --taupe: #6d6957; --navy: #2a395d; --ink: #25231b; --sand: #f5efe8; --line: #d9d1c3; --ok: #1f7a4a; --err: #b3261e; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 Manrope, system-ui, sans-serif; color: var(--ink); background: #fbf8f4; }
h1, h2 { font-family: Comfortaa, system-ui, sans-serif; font-weight: 700; line-height: 1.15; margin: 0; }
h1 { font-size: 1.8rem; color: var(--navy); margin: 1.4rem 0 .4rem; }
h2 { font-size: 1.2rem; color: var(--taupe); }
:focus-visible { outline: 3px solid #1b57d1; outline-offset: 2px; }

.top { background: var(--navy); color: #fff; }
.top-in { max-width: 920px; margin: 0 auto; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font: 500 1.1rem Comfortaa, sans-serif; letter-spacing: .02em; }
.brand strong { font-weight: 700; }
.brand small { font: 500 .8rem Comfortaa, sans-serif; opacity: .75; margin-left: .4rem; }
.logout { display: flex; align-items: center; gap: .8rem; margin: 0; }
.who { font-size: .9rem; opacity: .9; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 1rem 3rem; }
/* only the page Wächter (tables, charts, map) uses the full width */
html[data-tab='watch'] .top-in, html[data-tab='watch'] .wrap { max-width: none; }
.lead { color: #4a463a; max-width: 62ch; margin: 0 0 1.4rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.3rem 1.3rem; margin: 0 0 1.3rem; box-shadow: 0 8px 26px -18px rgba(60, 50, 30, .4); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.login { position: relative; max-width: 420px; margin: 8.5rem auto 3rem; padding-top: 7.6rem; }
.login h1 { margin-top: 0; text-align: center; }
/* avatar: a white circle that sits half on the card's upper edge */
.avatar { position: absolute; top: -100px; left: 50%; width: 200px; height: 200px; margin-left: -100px; border-radius: 50%; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 6px #fff, 0 10px 30px rgb(0 0 0 / .25); isolation: isolate; }
/* Faces are stacked (cut-out faces with the eyeballs at the bottom, complete pictures on top). A face that goes away stays until the
   new one is fully there (delay), so two pictures never blend into each other; the two cut-out pictures swap at once. */
.avatar .avatar-face { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0s .25s; }
/* complete pictures fade in on top of whatever is there */
.avatar[data-state='neutral'] [data-face='neutral'], .avatar[data-state='peek'] [data-face='peek'], .avatar[data-state='smile'] [data-face='smile'],
.avatar[data-state='sad'] [data-face='sad'], .avatar[data-state='weep'] [data-face='weep'],
.avatar:not([data-eyes])[data-state='looking'] [data-face='neutral'], .avatar:not([data-eyes])[data-state='down'] [data-face='downph'] { opacity: 1; transition: opacity .25s ease; }
/* eye tracking ready: the cut-out picture of the state shows at once, the complete pictures fade away above it */
.avatar[data-eyes][data-state='looking'] [data-face='looking'], .avatar[data-eyes][data-state='down'] [data-face='down'] { opacity: 1; transition: none; }
.avatar[data-eyes][data-state='looking'] .avatar-face:not([data-face='looking']):not([data-face='down']),
.avatar[data-eyes][data-state='down'] .avatar-face:not([data-face='looking']):not([data-face='down']) { transition: opacity .25s ease; }
/* going from a cut-out picture to a complete one: it stays below until the complete one is fully there */
.avatar[data-state='looking'] [data-face='down'], .avatar[data-state='down'] [data-face='looking'] { transition: none; }
/* the eyeballs are drawn on a canvas (admin.js) behind the cut-outs, clipped to the eye openings of the current picture */
.avatar .avatar-eyes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0s .25s; }
.avatar[data-eyes][data-state='looking'] .avatar-eyes, .avatar[data-eyes][data-state='down'] .avatar-eyes { opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) { .avatar .avatar-face { transition: none; } }
.tag { font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 99px; background: #ece7de; color: var(--taupe); }
.tag.on { background: #dff1e6; color: var(--ok); }
.muted, .hint { color: #6a6557; font-size: .88rem; }
.hint.lead-in { margin: -.4rem 0 1rem; }
.foot { color: #6a6557; font-size: .85rem; margin-top: 2rem; }

label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 .9rem; }
label .opt { font-weight: 400; color: #7a7566; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .62rem .75rem; font: 400 1rem/1.3 Manrope, sans-serif; color: var(--ink); background: var(--sand); border: 1px solid transparent; border-bottom: 2px solid var(--taupe); border-radius: 10px 10px 0 0; }
textarea { resize: vertical; min-height: 7rem; }
input:hover, select:hover, textarea:hover { background: #f0e8de; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; flex: none; accent-color: var(--taupe); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.btn { font: 700 .95rem Comfortaa, sans-serif; cursor: pointer; border: 0; border-radius: 99px; padding: .7rem 1.4rem; background: var(--taupe); color: #fff; transition: filter .2s; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--taupe); box-shadow: inset 0 0 0 1.5px var(--taupe); }
.top .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); padding: .45rem 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.login .btn { width: 100%; margin-top: .4rem; }

.notice { border-radius: 12px; padding: .75rem 1rem; margin: 1rem 0; font-weight: 600; }
.notice p { margin: .1rem 0; }
.notice.ok { background: #dff1e6; color: #14502f; }
.notice.err { background: #fbe4e1; color: #7c1b14; }

table.hours { width: 100%; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 700; padding: .45rem .5rem .45rem 0; width: 8.5rem; white-space: nowrap; }
.hours td { padding: .3rem .4rem .3rem 0; }
.hours select { margin: 0; min-width: 11rem; }
.hours .times { display: flex; align-items: center; gap: .5rem; }
.hours .times input { margin: 0; width: 7.5rem; }
.hours .times[hidden] { display: none; }

.prices-head, .price-row { display: grid; grid-template-columns: 1fr 12rem 6.6rem; gap: .5rem; align-items: center; }
.prices-head { font-size: .8rem; font-weight: 700; color: var(--taupe); margin-bottom: .3rem; }
.price-row { margin-bottom: .45rem; }
.price-row input { margin: 0; }
.row-tools { display: flex; gap: .25rem; justify-content: flex-end; }
.review-row { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .6rem; }
.btn.small { padding: .4rem 1rem; font-size: .8rem; margin-bottom: .8rem; }
.icon { width: 2rem; height: 2rem; border-radius: 50%; border: 0; cursor: pointer; background: #ece7de; color: var(--taupe); font: 700 1rem/1 Manrope, sans-serif; }
.icon:hover { background: #e2dacb; }
.icon.danger { color: var(--err); }

@media (max-width: 640px) {
  .two { grid-template-columns: 1fr; }
  .hours tr { display: grid; grid-template-columns: 1fr; padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .hours th { width: auto; }
  .prices-head { display: none; }
  .price-row { grid-template-columns: 1fr 7rem; }
  .row-tools { grid-column: 1 / -1; justify-content: flex-start; margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* two-step login: username → password → authenticator code, each step fades in */
.fade { transition: opacity 0.35s ease, transform 0.35s ease; }
.fade:not(.is-in) { opacity: 0; transform: translateY(8px); }
.is-hidden { display: none; }
.login .code-intro { margin: 0 0 1rem; }
.login .btn.back { margin-top: .6rem; }
[data-login-error][hidden] { display: none; }

/* tabs: one area at a time (without JavaScript all areas stay visible) */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: .35rem; background: #ece7de; border-radius: 99px; width: fit-content; max-width: 100%; }
.tabs a { padding: .55rem 1.1rem; border-radius: 99px; color: var(--taupe); font: 700 .92rem Comfortaa, sans-serif; text-decoration: none; transition: background-color .2s, color .2s; }
.tabs a:hover { background: rgba(109, 105, 87, .14); }
.tabs a[aria-selected='true'] { background: var(--taupe); color: #fff; }
.tabs .tab-minor { font-weight: 500; opacity: .85; }
[data-panel][hidden] { display: none; }
/* phones: the pill row becomes a dropdown (only with JavaScript; without it the links stay) */
.tab-select { display: none; margin: 0 0 1.2rem; }
.tab-select select { margin: 0; padding: .8rem 2.6rem .8rem 1.1rem; border: 0; border-radius: 99px; background: var(--taupe) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 18px; color: #fff; font: 700 1rem Comfortaa, sans-serif; appearance: none; -webkit-appearance: none; cursor: pointer; }
.tab-select select:hover { background-color: #5a5646; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .js .tabs { display: none; } .js .tab-select { display: block; } .tabs { border-radius: 22px; width: 100%; } .tabs a { flex: 1 1 auto; text-align: center; } }

/* Wächter (security log) */
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; }
.subnav > a { padding: .45rem 1rem; border-radius: 99px; background: #ece7de; color: var(--taupe); font: 700 .88rem Comfortaa, sans-serif; text-decoration: none; }
.subnav > a:hover { background: #e2dacb; }
.subnav > a[aria-current='page'] { background: var(--taupe); color: #fff; }
.subnav-day { display: flex; align-items: center; gap: .4rem; margin: 0 0 0 .4rem; }
.subnav-day input { width: auto; margin: 0; padding: .4rem .6rem; border-radius: 10px; }
.subnav-day input[aria-current='page'] { border-bottom-color: var(--ok); }
.subnav-day .btn { margin: 0; }
.watch-title { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 .8rem; }
.watch-title h3 { margin: 0; font: 700 1.15rem Comfortaa, sans-serif; color: var(--taupe); }
.watch-title .step { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #ece7de; color: var(--taupe); text-decoration: none; font-weight: 700; }
.watch-title .step:hover { background: #e2dacb; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0 0 1.2rem; }
.kpi { background: var(--sand); border-radius: 14px; padding: .8rem 1rem; font-size: .85rem; font-weight: 600; color: #5d5849; }
.kpi span { display: block; font: 700 1.9rem/1.1 Comfortaa, sans-serif; color: var(--taupe); }
.kpi.ok span { color: var(--ok); }
.kpi.bad span { color: var(--err); }
.card h4 { margin: 1.4rem 0 .5rem; font: 700 1rem Comfortaa, sans-serif; color: var(--taupe); }
.table-wrap { overflow-x: auto; margin: 0 0 .4rem; }
table.stat { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.stat th, table.stat td { padding: .5rem .6rem .5rem 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.stat thead th { font-size: .78rem; color: var(--taupe); border-bottom: 2px solid var(--line); white-space: nowrap; }
table.stat tbody th { font-weight: 600; }
table.stat tfoot th, table.stat tfoot td { border-top: 2px solid var(--line); border-bottom: 0; font-weight: 700; }
table.stat .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: .8rem; }
table.stat .bad { color: var(--err); font-weight: 700; }
table.stat.compact th { font-weight: 500; }
table.stat .hint { font-weight: 400; }
table.stat tr.off { opacity: .55; }
table.stat code { font: 600 .85rem ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
table.stat .kinds { font-size: .82rem; color: #5d5849; max-width: 22rem; }
table.stat .act form { display: flex; gap: .4rem; align-items: center; }
table.stat .act select { margin: 0; width: auto; padding: .3rem .5rem; font-size: .82rem; }
table.stat .act .btn { margin: 0; }
.bar-col { width: 22%; min-width: 6rem; }
.bar { display: block; height: .7rem; border-radius: 99px; background: #b9d9c5; overflow: hidden; min-width: 3px; }
.bar .ba { display: block; height: 100%; float: right; background: #e2a49b; }
.bw-0 { width: 0%; } .bw-1 { width: 5%; } .bw-2 { width: 10%; } .bw-3 { width: 15%; } .bw-4 { width: 20%; } .bw-5 { width: 25%; } .bw-6 { width: 30%; } .bw-7 { width: 35%; } .bw-8 { width: 40%; } .bw-9 { width: 45%; } .bw-10 { width: 50%; } .bw-11 { width: 55%; } .bw-12 { width: 60%; } .bw-13 { width: 65%; } .bw-14 { width: 70%; } .bw-15 { width: 75%; } .bw-16 { width: 80%; } .bw-17 { width: 85%; } .bw-18 { width: 90%; } .bw-19 { width: 95%; } .bw-20 { width: 100%; } 
.ba-0 { width: 0%; } .ba-1 { width: 10%; } .ba-2 { width: 20%; } .ba-3 { width: 30%; } .ba-4 { width: 40%; } .ba-5 { width: 50%; } .ba-6 { width: 60%; } .ba-7 { width: 70%; } .ba-8 { width: 80%; } .ba-9 { width: 90%; } .ba-10 { width: 100%; } 
.tag.bad { background: #fbe4e1; color: var(--err); }
.btn.danger { background: #a13a2f; }
.watch-two { align-items: start; }
.three { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 0 1rem; }
.addblock { margin-top: 1.4rem; padding-top: .2rem; border-top: 1px solid var(--line); }
.watch-note { margin-top: 1.4rem; line-height: 1.55; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; }
  .subnav-day { margin: .3rem 0 0; width: 100%; }
  table.stat .kinds { max-width: none; }
}

/* date and time rulers (picker.js), desktop only */
.dp-field { cursor: pointer; caret-color: transparent; }
.dp-card { --accent: #ef4444; position: absolute; z-index: 50; width: 360px; padding: 22px 0 18px; background: #222; color: #f5f5f5; border: 1px solid #ffffff12; border-radius: 24px; box-shadow: 0 20px 60px #0008; overflow: hidden; font: 400 16px/1.2 Manrope, system-ui, sans-serif; }
.dp-head { display: flex; justify-content: space-between; padding: 0 24px; color: #9a9a9a; font-size: 15px; }
.dp-big { padding: 8px 24px 16px; font-size: 44px; font-weight: 300; letter-spacing: -.02em; white-space: nowrap; }
.dp-ruler { position: relative; height: 56px; margin-top: 6px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.dp-ruler:active { cursor: grabbing; }
.dp-ruler:focus-visible { outline: 2px solid #ffffff55; outline-offset: -2px; border-radius: 8px; }
.dp-strip { position: absolute; left: 50%; top: 0; display: flex; transition: transform .35s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.dp-ruler.dragging .dp-strip { transition: none; }
.dp-item { position: relative; flex: none; width: 68px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #bbb; font-size: 15px; font-variant-numeric: tabular-nums; transition: color .2s, opacity .2s; }
.dp-item::before { content: ""; width: 2px; height: 22px; background: #ffffffa0; border-radius: 1px; margin-top: 2px; }
.dp-item::after { content: ""; position: absolute; top: 8px; left: calc(100% - 1px); width: 2px; height: 12px; background: #ffffff44; border-radius: 1px; }
.dp-item.off { opacity: .25; pointer-events: none; }
.dp-item.sel { color: #f5f5f5; }
.dp-item.sel::before { background: var(--accent); height: 26px; margin-top: 0; }
.dp-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: 18px 20px 0; }
.dp-foot button { padding: .5rem 1rem; border-radius: 99px; border: 1px solid #ffffff30; background: transparent; color: #ddd; font: 700 .85rem Comfortaa, sans-serif; cursor: pointer; }
.dp-foot button:hover { background: #ffffff14; }
.dp-foot .dp-ok { background: #f5f5f5; border-color: #f5f5f5; color: #222; }
.dp-foot .dp-ok:hover { background: #fff; }
.dp-foot button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dp-strip, .dp-item { transition: none; } }

/* phones: the address tables become one card per row */
@media (max-width: 640px) {
  table.ips, table.ips tbody, table.ips tr, table.ips th, table.ips td { display: block; width: 100%; }
  table.ips thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  table.ips tr { margin: 0 0 .8rem; padding: .7rem .8rem; background: var(--sand); border-radius: 14px; }
  table.ips th[scope='row'] { padding: 0 0 .4rem; border: 0; font-size: 1rem; }
  table.ips td { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border: 0; text-align: right; }
  table.ips td::before { content: attr(data-label); flex: none; font-size: .78rem; font-weight: 700; color: var(--taupe); text-align: left; }
  table.ips td.num { padding-right: 0; }
  table.ips td.kinds { max-width: none; }
  table.ips td.act { display: block; padding-top: .5rem; text-align: left; }
  table.ips td.act::before { content: none; }
  table.ips td.act form { flex-wrap: wrap; }
}

/* push notification box (push.js) */
.push-box { margin: 0 0 1.2rem; padding: .9rem 1rem 1rem; background: var(--sand); border-radius: 14px; }
.push-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.push-head h4 { margin: 0 0 .3rem; }
.push-box .hint { margin: 0 0 .7rem; }
.push-switch { display: inline-block; margin: 0 .6rem .4rem 0; }
.push-switch .btn, .push-device .btn { margin: 0; }
.push-device { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .9rem; }
.push-device [hidden] { display: none; }

/* pages of the block list */
.pager { display: flex; flex-wrap: wrap; gap: .3rem; margin: .7rem 0 1rem; }
.pager a { min-width: 2.1rem; padding: .35rem .6rem; text-align: center; border-radius: 99px; background: #ece7de; color: var(--taupe); font: 700 .85rem Comfortaa, sans-serif; text-decoration: none; }
.pager a:hover { background: #e2dacb; }
.pager a[aria-current='page'] { background: var(--taupe); color: #fff; }
/* world map in an accordion */
.map-box { margin: 1.2rem 0 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 1rem; background: #fff; }
.map-box summary { cursor: pointer; padding: .8rem 0; font: 700 1rem Comfortaa, sans-serif; color: var(--taupe); list-style-position: inside; }
.map-box[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.worldmap { display: block; width: 100%; height: auto; margin: 0 0 .6rem; }
.worldmap .land { color: #d9d1c3; }
.worldmap .pin { fill: #b3261e; fill-opacity: .5; stroke: #b3261e; stroke-width: .5; }
.worldmap .pin:hover { fill-opacity: .8; }
.map-box .hint { margin: .6rem 0 .9rem; }
.map-box .hint a { color: var(--navy); }

/* charts on the page Wächter */
:root { --c-scan: #b3261e; --c-login-fail: #e07b39; --c-csrf: #8e5ea2; --c-contact-attack: #c2185b; --c-contact-origin: #9e9e9e; --c-contact-rate: #d6a21f; --c-contact-captcha: #3b82a6;
  --c-contact-honeypot: #8d6e63; --c-contact-big: #607d8b; --c-blocked: #2b2b2b; --c-views: #1f7a4a; --c-contact: #2a395d; --c-login: #c79a2a; }
.f-scan { fill: var(--c-scan); background: var(--c-scan); } .f-login-fail { fill: var(--c-login-fail); background: var(--c-login-fail); } .f-csrf { fill: var(--c-csrf); background: var(--c-csrf); }
.f-contact-attack { fill: var(--c-contact-attack); background: var(--c-contact-attack); } .f-contact-origin { fill: var(--c-contact-origin); background: var(--c-contact-origin); }
.f-contact-rate { fill: var(--c-contact-rate); background: var(--c-contact-rate); } .f-contact-captcha { fill: var(--c-contact-captcha); background: var(--c-contact-captcha); }
.f-contact-honeypot { fill: var(--c-contact-honeypot); background: var(--c-contact-honeypot); } .f-contact-big { fill: var(--c-contact-big); background: var(--c-contact-big); }
.f-blocked { fill: var(--c-blocked); background: var(--c-blocked); } .f-views { fill: var(--c-views); background: var(--c-views); }
.f-contact { fill: var(--c-contact); background: var(--c-contact); } .f-login { fill: var(--c-login); background: var(--c-login); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 1rem; margin: 0 0 1rem; }
.chart-card { border: 1px solid var(--line); border-radius: 14px; padding: .2rem 1rem .9rem; background: #fff; min-width: 0; }
.chart-card h4 { margin: .8rem 0 .4rem; }
svg.chart { display: block; width: 100%; height: auto; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
svg.chart .axis { fill: #6b6755; font: 500 10px Manrope, system-ui, sans-serif; }
svg.chart .empty { fill: #6b6755; font: 500 13px Manrope, system-ui, sans-serif; }
svg.chart .hit { fill: transparent; }
svg.chart a:hover .hit, svg.chart g:hover > .hit { fill: rgb(42 57 93 / .08); }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; margin: .6rem 0 0; padding: 0; font-size: .82rem; color: #4a463a; }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }
.sw { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; flex: none; margin-right: .4rem; vertical-align: -1px; }
.legend .sw { margin-right: 0; }
.legit-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; }
.lcard { background: var(--sand); border-radius: 14px; padding: .8rem 1rem; }
.lcard-top { font-weight: 700; font-size: .88rem; color: var(--taupe); }
.lcard-num { font: 700 2rem/1.15 Comfortaa, sans-serif; color: var(--ink); }
.lcard .hint { margin: .1rem 0; }
svg.spark { display: block; width: 100%; height: 34px; margin: .4rem 0 .2rem; }
@media (max-width: 640px) { .chart-card { padding: .1rem .7rem .7rem; } }
@media (max-width: 640px) { svg.chart .axis { font-size: 19px; } svg.chart .empty { font-size: 22px; } }

.card h4.group { margin: 1.3rem 0 .2rem; }
