/* dancing profiles – ein Stylesheet, kein Build-Schritt */
:root {
  --bg: #f7f6f3; --surface: #ffffff; --text: #1f1d1a; --muted: #6b665e; --line: #e4e0d8;
  --accent: #7a2e8e; --accent-ink: #ffffff; --ok: #1d7a46; --warn: #a15c00; --err: #b3261e;
  --radius: 10px; --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161513; --surface: #1f1e1b; --text: #ece9e3; --muted: #a39d93; --line: #34312c; --accent: #c58ad6; --accent-ink: #161513; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; font-size: 16px; }
a { color: var(--accent); }
header.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .brand { font-weight: 700; text-decoration: none; color: var(--text); letter-spacing: .01em; }
header.top nav { display: flex; gap: var(--s4); flex-wrap: wrap; font-size: 15px; }
header.top nav a { text-decoration: none; color: var(--muted); }
header.top nav a.active, header.top nav a:hover { color: var(--text); }
main { max-width: 1100px; margin: 0 auto; padding: var(--s6) var(--s4); }
main.narrow { max-width: 480px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 var(--s5); }
h2 { font-size: 20px; margin: var(--s6) 0 var(--s3); }
p.lead { color: var(--muted); margin-top: calc(-1 * var(--s3)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat .value { font-size: 28px; font-weight: 700; }
.stat .label { color: var(--muted); font-size: 14px; }
form .field { display: grid; gap: var(--s1); margin-bottom: var(--s4); }
label { font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], select { font: inherit; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; }
.check { display: flex; gap: var(--s2); align-items: flex-start; font-weight: 400; }
button, .button { font: inherit; font-weight: 600; padding: var(--s2) var(--s4); border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary { background: transparent; color: var(--accent); }
button.danger { background: transparent; border-color: var(--err); color: var(--err); }
.flash { padding: var(--s3) var(--s4); border-radius: 8px; margin-bottom: var(--s4); border: 1px solid var(--line); background: var(--surface); }
.flash.success { border-color: var(--ok); } .flash.error { border-color: var(--err); } .flash.warning { border-color: var(--warn); }
.muted { color: var(--muted); } .small { font-size: 14px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
th, td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: color-mix(in srgb, var(--surface) 92%, var(--text)); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.badge { display: inline-block; padding: 0 var(--s2); border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); }
.badge.ok { color: var(--ok); border-color: var(--ok); } .badge.warn { color: var(--warn); border-color: var(--warn); } .badge.err { color: var(--err); border-color: var(--err); }
.token { word-break: break-all; padding: var(--s3); border: 2px dashed var(--accent); border-radius: 8px; background: var(--surface); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; margin-bottom: var(--s4); }
.filters .field { margin: 0; min-width: 140px; }
.consent { max-height: 320px; overflow-y: auto; font-size: 14px; }
pre.log { white-space: pre-wrap; word-break: break-word; margin: 0; }

/* Verlauf einer Sitzung (App\Recording\SessionChart) */
.chart-wrap { padding: var(--s3); }
svg.chart { display: block; width: 100%; height: auto; font-size: 12px; }
svg.chart .frame { fill: none; stroke: var(--line); }
svg.chart .grid, svg.chart .tick { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
svg.chart .lbl { fill: var(--muted); }
svg.chart .ttl { fill: var(--text); font-weight: 600; font-size: 13px; }
svg.chart .note { fill: var(--muted); font-weight: 400; }
svg.chart .line { fill: none; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
svg.chart .line.motion { stroke: var(--accent); }
svg.chart .area { fill: var(--accent); opacity: .15; }
svg.chart .line.audio { stroke: var(--ok); }
svg.chart .line.peak { stroke: var(--ok); opacity: .35; }
svg.chart .line.steps { stroke: var(--warn); }
svg.chart .line.battery { stroke: var(--text); opacity: .7; }
svg.chart .band.active { fill: var(--accent); }
svg.chart .band.idle { fill: var(--line); }
svg.chart .band.heat0 { fill: var(--ok); opacity: .25; }
svg.chart .band.heat1 { fill: var(--warn); opacity: .45; }
svg.chart .band.heat2 { fill: var(--warn); opacity: .85; }
svg.chart .band.heat3 { fill: var(--err); }

/* Ganze Tabellenzeile klickbar: der Link in der ersten Spalte spannt sich über die Zeile (ohne JavaScript) */
tr.rowlink { position: relative; cursor: pointer; }
tr.rowlink:hover td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
tr.rowlink a.stretch::after { content: ""; position: absolute; inset: 0; }
