/* Besucherspiegel – harmonisiertes Informationsdesign */
:root {
  --background: 216 38% 98%;
  --foreground: 197 28% 13%;
  --card: 0 0% 100%;
  --primary: 194 71% 31%;
  --primary-foreground: 0 0% 100%;
  --accent: 176 50% 60%;
  --accent-foreground: 197 28% 13%;
  --muted: 210 25% 95%;
  --muted-foreground: 203 11% 43%;
  --border: 205 25% 89%;
  --success: 155 55% 38%;
  --warning: 38 85% 48%;
  --destructive: 3 65% 50%;
  --sidebar-bg: 197 28% 13%;
  --sidebar-fg: 196 12% 74%;
  --sidebar-accent: 195 27% 19%;
  --sidebar-border: 195 22% 22%;
  --shadow-card: 0 1px 2px hsl(197 28% 13% / .04), 0 12px 32px -24px hsl(197 28% 13% / .25);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground));
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: hsl(var(--primary)); }
h1, h2, h3 { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: 0; }
h1 { font-size: 28px; line-height: 1.15; margin: 0 0 5px; }
h2 { font-size: 17px; line-height: 1.25; margin: 0 0 13px; font-weight: 650; }
h3 { font-size: 14px; }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 12px; }
.mono, code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }

/* Geschützter Arbeitsbereich */
.shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 224px; flex: 0 0 224px; min-height: 100vh; height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
  padding: 20px 12px 14px; background: hsl(var(--sidebar-bg)); color: hsl(var(--sidebar-fg));
  border-right: 1px solid hsl(var(--sidebar-border));
}
.brand, .public-brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.brand { padding: 0 8px 8px; color: hsl(var(--card)); font-size: 15px; }
.logo {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  border-radius: 8px; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); font-size: 18px;
}
.brand .sub { display: block; margin-top: 1px; color: hsl(var(--sidebar-fg)); font: 500 10px/1.2 'DM Sans', sans-serif; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .sep { margin: 11px 10px 4px; color: hsl(var(--sidebar-fg) / .58); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nav .sep:first-child { margin-top: 0; }
.nav a { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 7px 10px; border-radius: 6px; color: hsl(var(--sidebar-fg)); font-size: 12.5px; font-weight: 500; transition: background .16s ease, color .16s ease; }
.nav a:hover { background: hsl(var(--sidebar-accent)); color: hsl(var(--card)); }
.nav a.active { background: hsl(var(--card) / .08); color: hsl(var(--accent)); box-shadow: inset 2px 0 hsl(var(--accent)); }
.nav-icon { width: 18px; text-align: center; font-size: 14px; }
.sidebar-foot { margin-top: auto; padding: 8px; font-size: 10px; color: hsl(var(--sidebar-fg) / .65); }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 24px;
  border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card) / .96);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
}
.topbar .spacer { flex: 1; }
.topbar .title-sm { font-family: 'Space Grotesk', sans-serif; font-weight: 650; }
.protected-state { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid hsl(var(--border)); border-radius: 6px; color: hsl(var(--muted-foreground)); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.protected-state i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--success)); }
.iconbtn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--card)); color: hsl(var(--foreground)); cursor: pointer; }
.iconbtn:hover { background: hsl(var(--muted)); }
.burger { display: none; }
.wrap { width: 100%; max-width: 1460px; margin: 0 auto; padding: 24px; }
.page-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.page-head p { margin: 0; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px 30px; color: hsl(var(--muted-foreground)); font-size: 11px; }

/* Datenflächen */
.card, .data-section { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card { padding: 16px; margin-bottom: 14px; }
.data-section { margin-bottom: 16px; overflow: hidden; }
.data-section > .table-scroll { padding: 0 16px 8px; }
.section-head { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid hsl(var(--border)); }
.section-head h2, .section-head p { margin: 0; }
.section-head p { color: hsl(var(--muted-foreground)); font-size: 11px; }
.section-head > a { color: hsl(var(--primary)); font-size: 12px; font-weight: 600; }
.grid { display: grid; gap: 12px; }
.grid.kpi { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); margin-bottom: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid.kpi .card { min-height: 104px; margin: 0; position: relative; overflow: hidden; }
.grid.kpi .card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: hsl(var(--accent)); }
.kpi-label { color: hsl(var(--muted-foreground)); font-size: 11.5px; font-weight: 600; }
.kpi-value { margin-top: 6px; font: 700 27px/1.1 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.kpi-sub { margin-top: 8px; font-size: 11px; }
.dashboard-status, .live-strip { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-bottom: 14px; padding: 7px 11px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 6px; font-size: 12px; }
.dashboard-status a, .live-strip a { margin-left: auto; color: hsl(var(--primary)); font-weight: 600; }
.live-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: hsl(var(--success)); box-shadow: 0 0 0 3px hsl(var(--success) / .13); }
.insight-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; margin-bottom: 16px; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--border)); }
.insight { min-height: 54px; padding: 11px 13px; background: hsl(var(--card)); border-left: 3px solid hsl(var(--muted-foreground) / .35); font-size: 12px; }
.insight.up { border-left-color: hsl(var(--success)); }
.insight.down { border-left-color: hsl(var(--destructive)); }

table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 8px 9px; border-bottom: 1px solid hsl(var(--border)); text-align: left; }
th { color: hsl(var(--muted-foreground)); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: hsl(var(--muted) / .55); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); font-size: 10px; font-weight: 700; }
.badge.up { background: hsl(var(--success) / .1); color: hsl(var(--success)); }
.badge.down { background: hsl(var(--destructive) / .1); color: hsl(var(--destructive)); }
.badge.stable { background: hsl(var(--muted)); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 46px 20px; color: hsl(var(--muted-foreground)); }
.empty-state strong { color: hsl(var(--foreground)); font-family: 'Space Grotesk', sans-serif; }

table.compact { font-size: 11.5px; }
table.compact.visits { table-layout: fixed; }
table.compact th, table.compact td { padding: 5px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.compact.visits td:first-child, table.compact.visits th:first-child { width: 78px; }
table.compact.visits td:nth-child(3), table.compact.visits th:nth-child(3) { width: 62px; }
table.compact.visits td:last-child, table.compact.visits th:last-child { width: 76px; }
.cell-page { display: flex; gap: 7px; min-width: 0; }
.cell-page .host { flex: 0 0 auto; font-weight: 650; }
.cell-page .path { overflow: hidden; text-overflow: ellipsis; color: hsl(var(--muted-foreground)); }
.nowrap { white-space: nowrap; }

/* Diagramme und Verteilungen */
.chart { width: 100%; height: 230px; min-height: 170px; display: block; }
.chart .grid { stroke: hsl(var(--border)); stroke-width: 1; }
.chart .line { fill: none; stroke-width: 2.25; vector-effect: non-scaling-stroke; }
.chart .line-1 { stroke: hsl(var(--primary)); }
.chart .line-2 { stroke: hsl(var(--accent)); }
.chart .bar { fill: hsl(var(--primary)); opacity: .9; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 7px; font-size: 11px; }
.chart-legend .k1 { color: hsl(var(--primary)); font-weight: 700; }
.chart-legend .k2 { color: hsl(var(--success)); font-weight: 700; }
.chart-axis, .bar-labels { display: flex; justify-content: space-between; margin-top: 5px; color: hsl(var(--muted-foreground)); font-size: 10px; }
.bar-labels span { flex: 1; text-align: center; }
.hbars { display: flex; flex-direction: column; gap: 7px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 1.4fr) 2fr auto; gap: 9px; align-items: center; font-size: 11.5px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 6px; overflow: hidden; border-radius: 99px; background: hsl(var(--muted)); }
.hbar-track i { display: block; height: 100%; border-radius: inherit; background: hsl(var(--primary)); }
.hbar-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.heat { overflow-x: auto; }
.heat-hours, .heat-row { display: grid; grid-template-columns: 32px repeat(24, minmax(11px, 1fr)); gap: 3px; align-items: center; }
.heat-hours { margin-bottom: 4px; color: hsl(var(--muted-foreground)); font-size: 9px; }
.heat-row { margin-bottom: 3px; }
.heat-day { color: hsl(var(--muted-foreground)); font-size: 10px; }
.heat-row i { display: block; height: 15px; border-radius: 2px; background: hsl(var(--primary) / var(--i, 0)); }

/* Filter, Formulare und Hinweise */
form.stack { display: grid; gap: 14px; max-width: 420px; }
label { display: block; margin-bottom: 4px; color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 600; }
input[type=text], input[type=password], input[type=file], select, textarea { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--card)); color: hsl(var(--foreground)); font: inherit; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 2px; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 13px; border: 0; border-radius: 6px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font: inherit; font-weight: 650; cursor: pointer; transition: background .16s ease, transform .16s ease; }
button:hover, .btn:hover { background: hsl(var(--foreground)); color: hsl(var(--card)); }
button.secondary, .btn.secondary { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); }
.small-btn { min-height: 30px; padding: 4px 8px; font-size: 11px; }
.card.slim { padding: 10px 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.filters.compact-filters { margin: 0; align-items: center; }
.filters select, .filters input { width: auto; min-width: 148px; min-height: 34px; padding: 5px 8px; font-size: 12px; }
.notice { padding: 10px 12px; margin-bottom: 14px; border: 1px solid hsl(var(--primary) / .25); border-radius: 6px; background: hsl(var(--primary) / .06); font-size: 12.5px; }
.notice.error { border-color: hsl(var(--destructive) / .25); background: hsl(var(--destructive) / .07); }
.notice.ok { border-color: hsl(var(--success) / .25); background: hsl(var(--success) / .07); }
pre.code { padding: 13px; overflow-x: auto; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--muted)); font: 11px/1.55 'JetBrains Mono', monospace; }
.log { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.log li { padding: 5px 0; border-bottom: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.filter-search { min-width: 190px; }
.inline-check { display: inline-flex; align-items: center; gap: 5px; color: hsl(var(--muted-foreground)); font-size: 11px; }
.inline-check input { width: auto; margin: 0; }
tr.detail-row td { padding-top: 0; }
tr.detail-row summary { color: hsl(var(--primary)); cursor: pointer; font-size: 11px; font-weight: 600; }
.seq { margin: 8px 0 5px; padding-left: 16px; font-size: 11px; }
.seq li { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0; }

/* Login */
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: hsl(var(--background)); }
.login-card { width: 100%; max-width: 410px; padding: 28px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); box-shadow: 0 18px 60px -35px hsl(var(--foreground) / .5); }
.login-card .brand { padding: 0; margin-bottom: 28px; color: hsl(var(--foreground)); }
.login-card h1 { margin-bottom: 7px; font-size: 23px; }
.login-card > .muted { margin: 0 0 22px; }
.login-back { margin: 18px 0 0; color: hsl(var(--muted-foreground)); font-size: 12px; }

/* Öffentliche Präsenz */
.public-page { min-height: 100vh; background: hsl(var(--background)); }
.public-nav { width: min(1120px, calc(100% - 40px)); height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; border-bottom: 1px solid hsl(var(--border)); }
.public-brand { font-size: 17px; }
.public-nav nav { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 600; }
.public-nav .btn { min-height: 36px; }
.public-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.public-hero { min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border-bottom: 1px solid hsl(var(--border)); }
.public-eyebrow { display: flex; align-items: center; gap: 8px; color: hsl(var(--primary)); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.public-eyebrow span { width: 18px; height: 2px; background: hsl(var(--accent)); }
.public-hero h1 { max-width: 800px; margin: 18px 0 12px; font-size: clamp(46px, 8vw, 88px); line-height: .95; }
.public-hero > p { max-width: 670px; margin: 0; color: hsl(var(--muted-foreground)); font-size: 19px; line-height: 1.55; }
.public-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; font-weight: 650; }
.public-actions > a:not(.btn) { color: hsl(var(--primary)); }
.public-principles { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid hsl(var(--border)); }
.public-principles > div { min-height: 122px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 20px 28px; border-right: 1px solid hsl(var(--border)); }
.public-principles > div:first-child { padding-left: 0; }
.public-principles > div:last-child { border-right: 0; }
.public-principles strong { font-family: 'Space Grotesk', sans-serif; font-size: 16px; }
.public-principles span { color: hsl(var(--muted-foreground)); font-size: 12px; }
.public-sites { padding: 76px 0 90px; }
.public-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.public-section-head h2 { margin: 6px 0 0; font-size: 32px; }
.site-count { font: 700 32px 'Space Grotesk', sans-serif; color: hsl(var(--primary)); }
.public-sites ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid hsl(var(--border)); }
.public-sites li { padding: 0 !important; display: block !important; min-height: 0 !important; }
.public-sites li a { color: inherit; text-decoration: none; min-height: 52px; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid hsl(var(--border)); font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.public-sites li a:hover { color: hsl(var(--primary)); background: hsl(var(--primary) / .04); }
.site-arrow { opacity: .45; font-size: .85em; }
.public-sites li a:hover .site-arrow { opacity: 1; }
.site-mark { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--accent)); }
.site-state { color: hsl(var(--success)); font: 700 9px 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: .07em; }
.public-empty { padding: 30px 0; color: hsl(var(--muted-foreground)); border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.public-footer { width: min(1120px, calc(100% - 40px)); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 26px 0 38px; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: 11px; }
.public-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.legal { max-width: 760px; padding: 70px 0 90px; }
.legal h1 { margin-bottom: 30px; font-size: 44px; }
.legal h2 { margin-top: 34px; font-size: 20px; }
.legal p, .legal address, .legal li { color: hsl(var(--muted-foreground)); }
.legal address { font-style: normal; }
.legal a { color: hsl(var(--primary)); }

/* Besucher-pro-Tag-Matrix */
.view-toggle { display: inline-flex; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 6px; }
.view-toggle a { padding: 5px 9px; font-size: 11px; }
.view-toggle a.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.daily-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.daily-matrix { width: auto; min-width: 100%; border-collapse: separate; border-spacing: 0; }
table.daily-matrix th, table.daily-matrix td { display: table-cell !important; white-space: nowrap; }
table.daily-matrix td::before { content: none !important; }
table.daily-matrix tr { display: table-row !important; }
table.daily-matrix thead, table.daily-matrix tfoot { display: table-header-group; }
table.daily-matrix tfoot { display: table-footer-group; }
table.daily-matrix tbody { display: table-row-group !important; }
table.daily-matrix .sticky-col { position: sticky; left: 0; z-index: 1; max-width: 46vw; overflow: hidden; background: hsl(var(--card)); text-overflow: ellipsis; }
.daily-chart { width: 100%; height: auto; }
.daily-chart .axis { fill: hsl(var(--muted-foreground)); font-size: 10px; }
.daily-chart .grid { stroke: hsl(var(--border)); }
.daily-legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 7px; font-size: 11px; }
.daily-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 2px; vertical-align: middle; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-head h2 { margin: 0; }
.chart-picker-actions { display: flex; gap: 6px; }
.chart-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chart-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--card)); font-size: 11px; cursor: pointer; user-select: none; }
.chart-chip input { width: auto; margin: 0; }
.chart-chip i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.chart-chip.off { opacity: .48; }
.user-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.user-item { padding: 10px 12px; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--background)); }
.user-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.user-actions { display: flex; gap: 6px; }
.inline-form { display: inline; margin: 0; }
.user-edit { margin-top: 8px; }
.user-edit-form { margin-top: 10px; }
.user-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.domain-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 0; }

@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 244px; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax hsl(var(--foreground) / .48); }
  .burger { display: grid; }
  .wrap { padding: 16px; }
  .topbar { padding: 10px 14px; }
  .foot { padding-inline: 16px; }
}

@media (max-width: 720px) {
  h1 { font-size: 23px; }
  .page-head { align-items: start; }
  .grid.kpi { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid.kpi .card { min-height: 92px; padding: 13px; }
  .kpi-value { font-size: 22px; }
  .card { padding: 13px; }
  .filters select, .filters input { width: 100%; min-width: 0; }
  .dashboard-status { flex-wrap: wrap; }
  .dashboard-status a { margin-left: 0; }
  .table-scroll { overflow-x: auto; }
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { margin-bottom: 8px; padding: 5px 8px; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--card)); }
  table.responsive td { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border: 0; text-align: right; }
  table.responsive td::before { content: attr(data-label); color: hsl(var(--muted-foreground)); font-size: 9px; font-weight: 700; text-align: left; text-transform: uppercase; }
  table.responsive td:empty { display: none; }
  table.compact.visits td:first-child, table.compact.visits th:first-child { width: 58px; }
  table.compact.visits td:nth-child(3), table.compact.visits th:nth-child(3) { width: 43px; }
  table.compact.visits td:last-child, table.compact.visits th:last-child { width: 54px; }
  .cell-page { gap: 4px; }
  .cell-page .host { max-width: 54%; overflow: hidden; text-overflow: ellipsis; }
  .chart { height: 190px; }
  .hbar { grid-template-columns: 1fr auto; }
  .hbar-track { grid-column: 1 / -1; }
  .foot, .public-footer { flex-direction: column; }
  .public-nav { width: calc(100% - 28px); height: 66px; }
  .public-nav nav > a:not(.btn) { display: none; }
  .public-nav .btn { min-height: 34px; padding-inline: 10px; font-size: 11px; }
  .public-main, .public-footer { width: calc(100% - 28px); }
  .public-hero { min-height: 390px; }
  .public-hero h1 { width: 100%; font-size: clamp(34px, 11vw, 54px); }
  .public-hero > p { font-size: 16px; }
  .public-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .public-principles { grid-template-columns: 1fr; }
  .public-principles > div { min-height: 96px; padding: 18px 0; border-right: 0; border-bottom: 1px solid hsl(var(--border)); }
  .public-principles > div:last-child { border-bottom: 0; }
  .public-sites { padding: 54px 0 65px; }
  .public-section-head h2 { font-size: 26px; }
  .legal { padding-top: 46px; }
  .legal h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}