/* Hozak site — aligned with BIMfabrik/ui-system */
:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: .5rem;
  --background: oklch(.985 .002 247.8);
  --foreground: oklch(.205 .012 255.7);
  --card: oklch(1 0 0);
  --card-foreground: oklch(.205 .012 255.7);
  --primary: oklch(.47 .13 253.2);
  --primary-foreground: oklch(.985 .002 247.8);
  --secondary: oklch(.95 .004 247.9);
  --secondary-foreground: oklch(.27 .012 255.7);
  --muted: oklch(.95 .004 247.9);
  --muted-foreground: oklch(.51 .015 255.5);
  --accent: oklch(.93 .02 252.9);
  --accent-foreground: oklch(.31 .08 253.5);
  --destructive: oklch(.58 .22 27.3);
  --border: oklch(.89 .008 247.9);
  --input: oklch(.89 .008 247.9);
  --ring: oklch(.56 .12 253.1);
  --surface: oklch(1 0 0);
  --surface-subtle: oklch(.965 .003 247.9);
  --surface-elevated: oklch(1 0 0);
  --success: oklch(.55 .14 151.2);
  --warning: oklch(.7 .15 74.5);
  --info: oklch(.57 .12 244.8);
  --shell: 1180px;
  --header-height: 56px;
}

[data-theme="dark"] {
  --background: oklch(.17 .01 255.8);
  --foreground: oklch(.94 .006 247.9);
  --card: oklch(.205 .012 255.7);
  --card-foreground: oklch(.94 .006 247.9);
  --primary: oklch(.7 .12 252.4);
  --primary-foreground: oklch(.18 .02 254.3);
  --secondary: oklch(.25 .012 255.7);
  --secondary-foreground: oklch(.92 .006 247.9);
  --muted: oklch(.25 .012 255.7);
  --muted-foreground: oklch(.68 .012 247.9);
  --accent: oklch(.28 .035 253.2);
  --accent-foreground: oklch(.88 .045 251.6);
  --destructive: oklch(.7 .19 22.2);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(.66 .11 252.7);
  --surface: oklch(.205 .012 255.7);
  --surface-subtle: oklch(.19 .01 255.8);
  --surface-elevated: oklch(.235 .012 255.7);
  --success: oklch(.7 .13 151.2);
  --warning: oklch(.79 .14 78.4);
  --info: oklch(.72 .1 244.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
::selection { color: var(--primary-foreground); background: var(--primary); }

.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;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: var(--primary-foreground);
  background: var(--primary);
  border-radius: var(--radius);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.section-rule { border-bottom: 1px solid var(--border); }
.section { padding: 92px 0; }
.compact-section { padding: 64px 0; }

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: 240px;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--background);
  overflow-y: auto;
  transition: transform 160ms ease;
}
.dashboard-sidebar__collapse {
  position: absolute;
  top: 14px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  color: var(--muted-foreground);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.dashboard-sidebar__collapse:hover { color: var(--foreground); background: var(--surface-subtle); }
.dashboard-sidebar__collapse svg { width: 17px; height: 17px; }
.dashboard-sidebar__nav { display: grid; grid-auto-rows: min-content; align-content: start; gap: 1px; padding: 48px 8px 10px; }
.dashboard-sidebar__nav a {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted-foreground);
  white-space: nowrap;
}
.dashboard-sidebar__nav a:hover { background: var(--surface-subtle); color: var(--foreground); }
.dashboard-sidebar__nav a[aria-current] { background: var(--surface-subtle); color: var(--foreground); font-weight: 650; }
.dashboard-sidebar svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-sidebar__submenu { display: grid; gap: 2px; margin: -1px 0 5px 18px; padding-left: 10px; border-left: 1px solid var(--border); }
.dashboard-sidebar__submenu a { min-height: 32px; padding-block: 6px; font-size: 13px; }
.dashboard-sidebar__submenu svg { width: 16px; height: 16px; }
.dashboard-sidebar__section-label { margin: 8px 10px 3px; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-sidebar__prototype-group { display: grid; gap: 1px; }
.dashboard-sidebar__status { margin-left: auto; }
.dashboard-sidebar__lock { display: inline-flex; color: var(--muted-foreground); }
.dashboard-sidebar__lock svg { width: 14px; height: 14px; }
.dashboard-sidebar__badge { padding: 2px 6px; border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-sidebar__backdrop { display: none; }
body.has-dashboard-sidebar > .site-header,
body.has-dashboard-sidebar > main,
body.has-dashboard-sidebar > .site-footer { margin-left: 240px; }
body.has-dashboard-sidebar .primary-nav { display: none; }
body.dashboard-sidebar-collapsed .dashboard-sidebar { width: 64px; }
body.dashboard-sidebar-collapsed > .site-header,
body.dashboard-sidebar-collapsed > main,
body.dashboard-sidebar-collapsed > .site-footer { margin-left: 64px; }
body.dashboard-sidebar-collapsed .dashboard-sidebar__collapse { right: 18px; }
body.dashboard-sidebar-collapsed .dashboard-sidebar__collapse svg { transform: rotate(180deg); }
body.dashboard-sidebar-collapsed .dashboard-sidebar__label,
body.dashboard-sidebar-collapsed .dashboard-sidebar__status,
body.dashboard-sidebar-collapsed .dashboard-sidebar__section-label,
body.dashboard-sidebar-collapsed .dashboard-sidebar__submenu { display: none; }
body.dashboard-sidebar-collapsed .dashboard-sidebar__nav a { justify-content: center; padding-inline: 8px; }
body.dashboard-sidebar-collapsed .dashboard-sidebar__nav { padding-inline: 8px; }
body.dashboard-sidebar-collapsed .dashboard-sidebar__prototype-group { gap: 1px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  background: color-mix(in oklab, var(--background) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: var(--primary-foreground);
  background: var(--primary);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 14px; font-weight: 700; }
.brand-copy span { margin-top: 4px; color: var(--muted-foreground); font-size: 11px; letter-spacing: .025em; }
.primary-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.primary-nav > a { padding: 9px 11px; color: var(--muted-foreground); border-radius: 6px; font-size: 13px; font-weight: 600; }
.primary-nav > a:hover, .primary-nav > a:focus-visible { color: var(--foreground); background: var(--secondary); outline: none; }
.primary-nav > a[aria-current="page"] { color: var(--foreground); background: var(--secondary); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.topbar-link { display: inline-flex; height: 36px; align-items: center; gap: 7px; padding: 0 12px; color: var(--foreground); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 600; }
.topbar-link:hover { background: var(--surface-subtle); }
.topbar-link svg { width: 15px; height: 15px; }
.control-button {
  height: 36px;
  padding: 0 10px;
  color: var(--secondary-foreground);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.control-button:hover { background: var(--secondary); }
.control-button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.theme-toggle-group { display: inline-flex; height: 36px; align-items: center; gap: 2px; padding: 2px; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 6px; }
.theme-option { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; padding: 0; color: var(--muted-foreground); background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.theme-option:hover { color: var(--foreground); background: var(--background); }
.theme-option[data-selected="true"] { color: var(--foreground); background: var(--background); box-shadow: 0 1px 2px color-mix(in oklab, var(--foreground) 12%, transparent); }
.theme-option:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.theme-option svg { width: 15px; height: 15px; stroke-width: 1.8; }
.mobile-menu { display: none; width: 40px; height: 40px; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.mobile-menu span:not(.sr-only) { display: block; width: 17px; height: 1px; margin: 5px auto; background: var(--foreground); transition: transform .15s ease; }

.hero { position: relative; isolation: isolate; padding: 88px 0 84px; overflow: hidden; }
.hero-visual > .shell { position: relative; z-index: 2; }
.hero-3d-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .66; pointer-events: none; }
.hero-visual::after { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, color-mix(in oklab, var(--background) 98%, transparent) 0%, color-mix(in oklab, var(--background) 91%, transparent) 46%, color-mix(in oklab, var(--background) 64%, transparent) 100%); content: ''; pointer-events: none; }
[data-theme="light"] .hero-3d-canvas { opacity: .96; filter: none; }
[data-theme="light"] .hero-visual::after { background: linear-gradient(90deg, color-mix(in oklab, var(--background) 97%, transparent) 0%, color-mix(in oklab, var(--background) 74%, transparent) 44%, color-mix(in oklab, var(--background) 22%, transparent) 100%); }
[data-theme="dark"] .hero-3d-canvas { opacity: .48; }
[data-theme="dark"] .hero-visual::after { background: linear-gradient(90deg, color-mix(in oklab, var(--background) 98%, transparent) 0%, color-mix(in oklab, var(--background) 92%, transparent) 46%, color-mix(in oklab, var(--background) 70%, transparent) 100%); }
.hero-3d-controls { position: absolute; right: clamp(18px, 3vw, 42px); bottom: 18px; z-index: 3; }
.hero-3d-toggle { padding: 7px 10px; color: var(--muted-foreground); background: color-mix(in oklab, var(--background) 78%, transparent); border: 1px solid color-mix(in oklab, var(--border) 82%, transparent); border-radius: 5px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; cursor: pointer; backdrop-filter: blur(8px); }
.hero-3d-toggle:hover { color: var(--foreground); background: color-mix(in oklab, var(--background) 92%, transparent); }
.hero-3d-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 10vw; align-items: end; }
.eyebrow, .section-index, .work-kicker {
  margin: 0 0 18px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 4.5rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.048em;
}
.lede { max-width: 720px; margin: 32px 0 0; color: var(--muted-foreground); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.55; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: background .15s ease, border-color .15s ease;
}
.button-primary { color: var(--primary-foreground); background: var(--primary); }
.button-primary:hover { background: color-mix(in oklab, var(--primary) 88%, var(--foreground)); }
.button-secondary { color: var(--secondary-foreground); background: var(--surface); border-color: var(--border); }
.button-secondary:hover { background: var(--secondary); }
.hero-aside { border-top: 1px solid var(--foreground); }
.signal-line { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.signal-line span { color: var(--muted-foreground); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.signal-line strong { font-size: 12px; font-weight: 650; }

.split-layout { display: grid; grid-template-columns: .75fr 1.65fr; gap: 9vw; }
.section-intro h2, .section-heading-row h2, .contact-row h2 { max-width: 780px; margin: 0; font-size: clamp(1.75rem, 3.2vw, 3.2rem); font-weight: 620; line-height: 1.08; letter-spacing: -.035em; }
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: start; }
.large-copy { margin: 0; font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 540; line-height: 1.3; letter-spacing: -.02em; }
.body-copy { color: var(--muted-foreground); }
.body-copy p { margin: 0; }
.body-copy p + p { margin-top: 18px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-note { max-width: 370px; margin: 0 0 5px; color: var(--muted-foreground); font-size: 14px; }

.work-list { border-top: 1px solid var(--foreground); }
.work-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) 260px; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--border); }
.work-item-compact { padding-block: 22px; }
.work-item-compact .work-main h3 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.work-item-compact .work-main p:last-child { margin-top: 8px; font-size: 13px; }
.work-number { padding-top: 4px; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 11px; }
.work-kicker { margin-bottom: 8px; }
.work-main h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 650; letter-spacing: -.025em; }
.work-main p:last-child { max-width: 700px; margin: 12px 0 0; color: var(--muted-foreground); font-size: 14px; }
.work-meta { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; padding-top: 3px; }
.work-meta span { color: var(--muted-foreground); font-family: var(--font-mono); font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: .07em; }
.work-meta a { color: var(--primary); font-size: 12px; font-weight: 700; }
.work-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--foreground); list-style: none; }
.process-grid li { min-height: 250px; padding: 24px 24px 24px 0; border-right: 1px solid var(--border); }
.process-grid li + li { padding-left: 24px; }
.process-grid li:last-child { border-right: 0; }
.process-grid span { color: var(--primary); font-family: var(--font-mono); font-size: 11px; }
.process-grid h3 { margin: 50px 0 12px; font-size: 17px; letter-spacing: -.015em; }
.process-grid p { margin: 0; color: var(--muted-foreground); font-size: 13px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); gap: 8vw; align-items: start; }
.contact-copy h2 { max-width: 560px; margin: 0; font-size: clamp(1.75rem, 3.2vw, 3.2rem); font-weight: 620; line-height: 1.08; letter-spacing: -.035em; }
.contact-copy > p:not(.eyebrow) { max-width: 520px; margin: 22px 0 0; color: var(--muted-foreground); font-size: 14px; }
.contact-email { display: inline-block; margin-top: 20px; padding: 0; color: var(--primary); background: transparent; border: 0; cursor: pointer; font-size: 13px; font-weight: 700; user-select: none; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-email:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
.contact-form { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-form .form-actions { margin-top: 18px; }

.placeholder-main { min-height: calc(100vh - var(--header-height) - 70px); display: grid; align-items: center; }
.placeholder-section { padding: 96px 0; }
.placeholder-copy { max-width: 700px; }
.placeholder-copy h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 650; line-height: 1; letter-spacing: -.05em; }
.placeholder-copy .lede { margin-top: 24px; }
.placeholder-copy .button-row { margin-top: 32px; }

.site-footer { padding: 26px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-foreground); font-size: 11px; }
.footer-inner p { margin: 0; }
.footer-inner div { display: flex; gap: 9px; }
.footer-inner a:hover { color: var(--foreground); }

/* Shared application primitives */
.tool-main { padding: 52px 0 88px; }
.tool-header { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .55fr); gap: 8vw; align-items: end; padding-bottom: 42px; }
.breadcrumb { display: inline-flex; gap: 7px; margin-bottom: 22px; color: var(--muted-foreground); font-size: 12px; }
.breadcrumb a:hover { color: var(--foreground); }
.tool-header h1 { max-width: 760px; margin: 0; font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 650; line-height: 1; letter-spacing: -.05em; }
.tool-header .lede { margin-top: 24px; font-size: 17px; }
.status-note { padding: 16px; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: var(--radius); }
.status-note strong { display: block; margin-bottom: 5px; font-size: 12px; }
.status-note p { margin: 0; color: var(--muted-foreground); font-size: 11px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 14px; font-weight: 700; }
.panel-header p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 11px; }
.panel-body { padding: 20px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 650; }
.field small { color: var(--muted-foreground); font-size: 10px; line-height: 1.4; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 62px; }
.input-unit { position: absolute; top: 50%; right: 12px; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 10px; transform: translateY(-50%); pointer-events: none; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: 6px;
}
textarea { min-height: 88px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.results-stack { display: grid; gap: 16px; position: sticky; top: calc(var(--header-height) + 20px); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; }
.metric { padding: 18px; border-bottom: 1px solid var(--border); }
.metric:nth-child(odd) { border-right: 1px solid var(--border); }
.metric:nth-last-child(-n+2) { border-bottom: 0; }
.metric span { display: block; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 9px; line-height: 1.4; text-transform: uppercase; letter-spacing: .07em; }
.metric strong { display: block; margin-top: 9px; font-size: 20px; font-weight: 680; letter-spacing: -.025em; }
.decision-block { padding: 18px; border-left: 3px solid var(--info); }
.decision-block[data-state="positive"] { border-left-color: var(--success); }
.decision-block[data-state="warning"] { border-left-color: var(--warning); }
.decision-block[data-state="error"] { border-left-color: var(--destructive); }
.decision-label { color: var(--muted-foreground); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.decision-block h3 { margin: 8px 0 8px; font-size: 16px; }
.decision-block p { margin: 0; color: var(--muted-foreground); font-size: 12px; }
.summary-output { width: 100%; min-height: 176px; padding: 14px; color: var(--foreground); background: var(--surface-subtle); border: 0; border-radius: 0; font-family: var(--font-mono); font-size: 10px; line-height: 1.6; }
.reference-list { margin: 0; padding: 0; list-style: none; }
.reference-list li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.reference-list li:last-child { border-bottom: 0; }
.reference-list span { color: var(--primary); font-family: var(--font-mono); font-size: 10px; }
.reference-list strong { display: block; margin-bottom: 3px; font-size: 12px; }
.reference-list p { margin: 0; color: var(--muted-foreground); font-size: 11px; }
.disclaimer { margin-top: 22px; padding: 16px 0 0; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 10px; }

@media (max-width: 900px) {
  .hero-3d-canvas { opacity: .38; }
  .hero-visual::after { background: linear-gradient(180deg, color-mix(in oklab, var(--background) 88%, transparent) 0%, color-mix(in oklab, var(--background) 72%, transparent) 52%, color-mix(in oklab, var(--background) 91%, transparent) 100%); }
  [data-theme="light"] .hero-3d-canvas { opacity: .78; filter: none; }
  [data-theme="light"] .hero-visual::after { background: linear-gradient(180deg, color-mix(in oklab, var(--background) 76%, transparent) 0%, color-mix(in oklab, var(--background) 42%, transparent) 52%, color-mix(in oklab, var(--background) 68%, transparent) 100%); }
  [data-theme="dark"] .hero-3d-canvas { opacity: .32; }
  .dashboard-sidebar { width: min(280px, calc(100vw - 48px)); transform: translateX(-100%); }
  .dashboard-sidebar__collapse { display: none; }
  body.dashboard-sidebar-collapsed .dashboard-sidebar { width: min(280px, calc(100vw - 48px)); }
  body.dashboard-sidebar-collapsed > .site-header,
  body.dashboard-sidebar-collapsed > main,
  body.dashboard-sidebar-collapsed > .site-footer { margin-left: 0; }
  .dashboard-sidebar__backdrop { position: fixed; inset: 0; z-index: 45; width: 100%; border: 0; background: oklch(0 0 0 / 45%); }
  body.dashboard-sidebar-mobile-open { overflow: hidden; }
  body.dashboard-sidebar-mobile-open .dashboard-sidebar { transform: translateX(0); }
  body.dashboard-sidebar-mobile-open .dashboard-sidebar__backdrop { display: block; }
  body.has-dashboard-sidebar > .site-header,
  body.has-dashboard-sidebar > main,
  body.has-dashboard-sidebar > .site-footer { margin-left: 0; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .mobile-menu { display: block; }
  .brand { order: 1; }
  .mobile-menu { order: 0; }
  .header-actions { order: 2; margin-left: auto; }
  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    align-items: stretch;
    padding: 14px 16px 20px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
  }
  .primary-nav[data-open="true"] { display: grid; }
  .primary-nav > a { padding: 13px 10px; border-bottom: 1px solid var(--border); }
  .control-button { height: 36px; }
  .hero { padding: 72px 0; }
  .hero-grid, .split-layout, .tool-header, .tool-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-aside { max-width: 560px; }
  .section { padding: 72px 0; }
  .prose-grid { gap: 40px; }
  .work-item { grid-template-columns: 42px minmax(0, 1fr); }
  .work-meta { grid-column: 2; flex-direction: row; align-items: center; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid li:nth-child(2) { border-right: 0; }
  .process-grid li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .process-grid li:nth-child(3) { padding-left: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .results-stack { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .brand-copy span { display: none; }
  .topbar-link { display: none; }
  .language-toggle { width: 36px; padding: 0; }
  .hero h1 { font-size: clamp(2.25rem, 10.5vw, 3.35rem); }
  .hero { padding: 58px 0 62px; }
  .lede { margin-top: 24px; }
  .section, .compact-section { padding: 56px 0; }
  .split-layout { gap: 36px; }
  .prose-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
  .work-item { grid-template-columns: 30px minmax(0, 1fr); gap: 13px; padding: 24px 0; }
  .work-meta { flex-direction: column; align-items: flex-start; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li, .process-grid li + li { min-height: 0; padding: 22px 0 28px; border-right: 0; border-top: 1px solid var(--border); }
  .process-grid li:first-child { border-top: 0; }
  .process-grid h3 { margin: 28px 0 9px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .tool-main { padding-top: 36px; }
  .tool-header { gap: 28px; }
  .tool-grid { gap: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric, .metric:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--border); }
  .metric:last-child { border-bottom: 0; }
  .button { width: 100%; }
  .button-row { width: 100%; }
  .contact-form { padding: 18px; }
  .placeholder-section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .dashboard-sidebar, .dashboard-sidebar__backdrop, .form-actions, .tool-header .status-note { display: none !important; }
  body.has-dashboard-sidebar > main { margin-left: 0; }
  body { color: #000; background: #fff; }
  .tool-main { padding: 0; }
  .tool-grid { grid-template-columns: 1.2fr .8fr; }
  .panel { break-inside: avoid; border-color: #bbb; }
  .results-stack { position: static; }
}


/* 2026-09-21 homepage interaction and layout revision */
.dashboard-sidebar { overflow: hidden; }
.dashboard-sidebar__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 14px;
}
.dashboard-sidebar__footer {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 12px 10px 14px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 96%, transparent);
}
.dashboard-sidebar__footer .sidebar-copyright {
  margin: 0;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
}
.dashboard-sidebar__footer .footer-preferences {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-left: 0;
}
.site-footer { display: none !important; }

body.dashboard-sidebar-collapsed .dashboard-sidebar__footer {
  align-items: center;
  padding-inline: 8px;
}
body.dashboard-sidebar-collapsed .sidebar-copyright { display: none; }
body.dashboard-sidebar-collapsed .dashboard-sidebar__footer .footer-preferences {
  flex-direction: column;
}
body.dashboard-sidebar-collapsed .dashboard-sidebar__footer .footer-theme-toggle {
  width: 34px;
  height: auto !important;
  flex-direction: column;
}
body.dashboard-sidebar-collapsed .dashboard-sidebar__footer .footer-theme-toggle .theme-option {
  width: 28px !important;
}

/* Full-screen hero: copy at lower left, profile at lower right. */
.hero {
  display: flex;
  min-height: calc(100svh - var(--header-height));
  align-items: stretch;
  padding: 0;
}
.hero-visual > .shell {
  z-index: 2;
}
.hero-grid {
  min-height: calc(100svh - var(--header-height));
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .58fr);
  align-items: end;
  gap: clamp(36px, 8vw, 120px);
  padding-top: clamp(72px, 10vh, 120px);
  padding-bottom: clamp(28px, 5vh, 58px);
}
.hero-copy {
  align-self: end;
  max-width: 660px;
}
.hero h1 {
  max-width: 650px;
  font-size: clamp(2rem, 3.8vw, 3.75rem);
  line-height: 1.01;
}
.hero .lede {
  max-width: 610px;
  margin-top: 24px;
  font-size: clamp(.98rem, 1.35vw, 1.15rem);
}
.hero .button-row { margin-top: 26px; }
.hero-aside {
  width: 100%;
  max-width: 350px;
  align-self: end;
  justify-self: end;
  background: color-mix(in oklab, var(--background) 54%, transparent);
  backdrop-filter: blur(6px);
}
.hero-3d-canvas {
  opacity: .9;
  pointer-events: none;
}
.hero-visual::after {
  background:
    linear-gradient(90deg,
      color-mix(in oklab, var(--background) 94%, transparent) 0%,
      color-mix(in oklab, var(--background) 66%, transparent) 34%,
      color-mix(in oklab, var(--background) 16%, transparent) 72%,
      transparent 100%);
}
[data-theme="light"] .hero-3d-canvas { opacity: 1; }
[data-theme="dark"] .hero-3d-canvas { opacity: .66; }
[data-theme="dark"] .hero-visual::after {
  background: linear-gradient(90deg,
    color-mix(in oklab, var(--background) 96%, transparent) 0%,
    color-mix(in oklab, var(--background) 78%, transparent) 40%,
    color-mix(in oklab, var(--background) 30%, transparent) 78%,
    transparent 100%);
}
.hero-3d-controls { right: clamp(14px, 2vw, 28px); bottom: 14px; }

/* Interactive infrastructure callout. */
.hero-data-hover {
  position: absolute;
  z-index: 5;
  width: max-content;
  max-width: 230px;
  padding: 8px 10px;
  border: 1px solid color-mix(in oklab, var(--primary) 38%, var(--border));
  border-radius: 8px;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  box-shadow: 0 8px 24px color-mix(in oklab, var(--foreground) 12%, transparent);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
  pointer-events: none;
  transform: translate(14px, calc(-100% - 10px));
  backdrop-filter: blur(10px);
}
.hero-data-hover::after {
  position: absolute;
  left: 10px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid color-mix(in oklab, var(--primary) 38%, var(--border));
  border-bottom: 1px solid color-mix(in oklab, var(--primary) 38%, var(--border));
  background: inherit;
  content: "";
  transform: rotate(45deg);
}
.hero-data-hover strong { display: block; font-size: 10px; letter-spacing: .03em; }
.hero-data-hover span { color: var(--muted-foreground); }

.hero-data-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  color: var(--foreground);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 80px color-mix(in oklab, #000 32%, transparent);
}
.hero-data-dialog::backdrop {
  background: color-mix(in oklab, #07111d 54%, transparent);
  backdrop-filter: blur(4px);
}
.hero-data-dialog__inner { padding: 22px; }
.hero-data-dialog__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.hero-data-dialog__eyebrow {
  margin: 0 0 5px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-data-dialog h2 { margin: 0; font-size: 22px; line-height: 1.1; }
.hero-data-dialog__close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-subtle);
  color: var(--foreground);
  cursor: pointer;
}
.hero-data-dialog dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  margin: 16px 0 0;
}
.hero-data-dialog dt,
.hero-data-dialog dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.hero-data-dialog dt {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-data-dialog dd { font-weight: 620; }
.hero-data-dialog__note {
  margin: 16px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.55;
}

/* Homepage topic accordions, collapsed by default. */
.collapsible-section.section,
.collapsible-section.compact-section { padding: 0; }
.section-collapse-trigger {
  display: flex;
  width: min(calc(100% - 40px), var(--shell));
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
}
.section-collapse-title {
  max-width: 850px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -.025em;
}
.section-collapse-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
}
.section-collapse-trigger:hover .section-collapse-icon { background: var(--surface-subtle); }
.collapsible-section.is-expanded > .shell { padding-bottom: 72px; }

/* Card-based topics. */
.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 0;
}
.work-item,
.work-item-compact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 12px 14px;
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in oklab, var(--surface) 94%, var(--background));
}
.work-item:hover {
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
  background: var(--surface);
}
.work-icon,
.process-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in oklab, var(--primary) 28%, var(--border));
  border-radius: 10px;
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 7%, var(--surface));
}
.work-icon svg,
.process-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.work-main { min-width: 0; }
.work-kicker { margin: 2px 0 8px; }
.work-main h3,
.work-item-compact .work-main h3 { font-size: clamp(1.1rem, 1.55vw, 1.35rem); }
.work-main p:last-child,
.work-item-compact .work-main p:last-child { font-size: 13px; line-height: 1.55; }
.work-meta {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: end;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  border-top: 0;
}
.process-grid li,
.process-grid li + li {
  min-height: 245px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in oklab, var(--surface) 94%, var(--background));
}
.process-grid li:hover {
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
  background: var(--surface);
}
.process-grid h3 { margin: 34px 0 10px; font-size: 16px; }
.process-grid p { line-height: 1.55; }

@media (max-width: 1000px) {
  .work-list { grid-template-columns: 1fr 1fr; }
  .work-item:last-child { grid-column: 1 / -1; min-height: 220px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
  }
  .hero-grid {
    min-height: calc(100svh - var(--header-height));
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 86px;
    padding-bottom: 28px;
  }
  .hero-copy { align-self: end; }
  .hero-aside { display: none; }
  .hero-visual::after,
  [data-theme="light"] .hero-visual::after,
  [data-theme="dark"] .hero-visual::after {
    background: linear-gradient(180deg,
      color-mix(in oklab, var(--background) 30%, transparent) 0%,
      color-mix(in oklab, var(--background) 54%, transparent) 46%,
      color-mix(in oklab, var(--background) 94%, transparent) 100%);
  }
  .dashboard-sidebar__footer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(2rem, 9.6vw, 2.9rem); }
  .hero .lede { font-size: .96rem; }
  .hero-grid { padding-top: 68px; }
  .section-collapse-trigger {
    width: min(calc(100% - 24px), var(--shell));
    min-height: 74px;
  }
  .section-collapse-title { font-size: 1.05rem; }
  .collapsible-section.is-expanded > .shell { padding-bottom: 52px; }
  .work-list,
  .process-grid { grid-template-columns: 1fr; }
  .work-item,
  .work-item-compact,
  .work-item:last-child { grid-column: auto; min-height: 0; }
  .work-meta { flex-direction: column; align-items: flex-start; }
  .process-grid li,
  .process-grid li + li { min-height: 0; padding: 20px; border: 1px solid var(--border); }
  .process-grid h3 { margin-top: 24px; }
  .hero-data-hover { display: none !important; }
}


/* 2026-09-21: BIMfabrik /construction hero baseline */
.hero.hero-visual {
  display: block;
  min-height: calc(100svh - var(--header-height));
  padding: 0;
  overflow: hidden;
  background: #11110f;
}
.hero-webgl-stage {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--header-height));
  min-height: 460px;
  overflow: hidden;
  background: #11110f;
}
.hero-3d-canvas,
[data-theme="light"] .hero-3d-canvas,
[data-theme="dark"] .hero-3d-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1 !important;
  filter: none !important;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
}
.hero-3d-canvas:active { cursor: grabbing; }
.hero-visual::before,
.hero-visual::after { display: none !important; }

.hero-viewer-copy {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 28px;
  display: grid;
  gap: 5px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .1em;
  pointer-events: none;
}
.hero-viewer-copy strong {
  color: #ffcf00;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.hero-viewer-copy span:last-child {
  color: #ffffff92;
  font-size: 8px;
}
.hero-reset-view {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 27px;
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #fff;
  background: #10100eed;
  border: 1px solid #ffffff4a;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
}
.hero-reset-view:hover,
.hero-reset-view:focus-visible {
  color: #ffcf00;
  background: #10100eed;
  border-color: #ffcf00;
  outline: none;
}
.hero-reset-view span {
  color: #ffcf00;
  font-size: 16px;
  line-height: 0;
}
.hero-viewer-hint {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 25px;
  margin: 0;
  color: #ffffffa8;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .07em;
  pointer-events: none;
}
.hero-viewer-hint span {
  padding: 0 4px;
  color: #ffcf00;
}
.hero-webgl-fallback {
  position: absolute;
  inset: 0;
  z-index: 5;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 30px;
  color: #fff;
  background: repeating-linear-gradient(0deg, #141412, #141412 31px, #1c1c18 32px);
  text-align: center;
}
.hero-webgl-fallback[hidden] { display: none; }
.hero-webgl-fallback strong {
  color: #ffcf00;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.hero-webgl-fallback span {
  max-width: 300px;
  color: #ffffffae;
  font-size: 13px;
}
.hero-actions {
  position: absolute;
  left: 28px;
  bottom: 48px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hero-actions .button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
}
.hero-action-primary {
  color: #101010;
  background: #ffcf00;
  border-color: #c89f00;
}
.hero-action-primary:hover {
  color: #101010;
  background: #fff;
}
.hero-action-secondary {
  color: #fff;
  background: #10100eed;
  border-color: #ffffff4a;
}
.hero-action-secondary:hover {
  color: #ffcf00;
  background: #10100eed;
  border-color: #ffcf00;
}

@media (max-width: 720px) {
  .hero-webgl-stage {
    min-height: calc(100svh - var(--header-height));
    height: calc(100svh - var(--header-height));
  }
  .hero-viewer-copy {
    top: 21px;
    left: 21px;
  }
  .hero-viewer-copy strong { font-size: 14px; }
  .hero-reset-view {
    top: 18px;
    right: 20px;
  }
  .hero-viewer-hint { display: none; }
  .hero-actions {
    left: 21px;
    bottom: 34px;
  }
}

/* Homepage statement in the site header. */
.header-statement {
  max-width: min(58vw, 660px);
  margin: 0 0 0 auto;
  color: var(--foreground);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.012em;
  text-align: right;
}
body.has-dashboard-sidebar .site-header .header-statement { display: block; }
@media (max-width: 900px) {
  .header-statement { max-width: 56vw; font-size: 10px; line-height: 1.15; }
}
@media (max-width: 620px) {
  .header-inner { gap: 8px; }
  .header-statement {
    display: -webkit-box !important;
    max-width: 49vw;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.12;
    text-align: right;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}


/* 2026-09-21 city digital-twin visual refinement */
.hero.hero-visual,
.hero-webgl-stage {
  background: #f4f7f6;
}
.hero-viewer-copy {
  color: #182126;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.hero-viewer-copy strong {
  color: #1769d2;
}
.hero-viewer-copy span:last-child {
  color: #647178;
}
.hero-reset-view {
  color: #1a252b;
  background: rgba(255,255,255,.92);
  border-color: #c8d2d5;
  box-shadow: 0 8px 24px rgba(31,49,58,.08);
  backdrop-filter: blur(10px);
}
.hero-reset-view:hover,
.hero-reset-view:focus-visible {
  color: #1769d2;
  background: #fff;
  border-color: #1769d2;
}
.hero-reset-view span {
  color: #1769d2;
}
.hero-viewer-hint {
  color: #647178;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(197,208,211,.82);
  border-radius: 6px;
  padding: 7px 9px;
  backdrop-filter: blur(8px);
}
.hero-actions .button {
  box-shadow: 0 8px 24px rgba(31,49,58,.08);
}
.hero-action-primary {
  color: #fff;
  background: #1769d2;
  border-color: #1769d2;
}
.hero-action-primary:hover {
  color: #fff;
  background: #0f5dbf;
}
.hero-action-secondary {
  color: #1a252b;
  background: rgba(255,255,255,.94);
  border-color: #c8d2d5;
}
.hero-action-secondary:hover {
  color: #1769d2;
  background: #fff;
  border-color: #1769d2;
}

.hero-status-board {
  position: absolute;
  z-index: 3;
  top: 68px;
  right: 27px;
  width: min(270px, calc(100% - 54px));
  padding: 12px;
  border: 1px solid rgba(195,206,210,.92);
  border-radius: 10px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(34,51,59,.1);
  color: #1b272c;
  backdrop-filter: blur(12px);
}
.hero-status-board__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}
.hero-status-board__top > span {
  color: #59676d;
}
.hero-status-board__top strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #177b4d;
  font-size: 9px;
}
.hero-status-board__top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18,183,106,.12);
}
.hero-status-board__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 11px;
}
.hero-status-board__metrics > span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid #e1e7e8;
  border-radius: 7px;
  background: #f8faf9;
}
.hero-status-board__metrics b {
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.04em;
}
.hero-status-board__metrics span:nth-child(1) b { color: #d92d20; }
.hero-status-board__metrics span:nth-child(2) b { color: #f79009; }
.hero-status-board__metrics span:nth-child(3) b { color: #12b76a; }
.hero-status-board__metrics small {
  color: #65737a;
  font-family: var(--font-mono);
  font-size: 8px;
}
.hero-status-board p {
  margin: 10px 0 0;
  color: #66747a;
  font-size: 10px;
  line-height: 1.45;
}

.hero-signal-card {
  position: absolute;
  z-index: 8;
  right: 27px;
  bottom: 56px;
  width: min(360px, calc(100% - 54px));
  padding: 16px;
  border: 1px solid #c8d2d5;
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 50px rgba(24,42,50,.18);
  color: #172126;
  backdrop-filter: blur(14px);
}
.hero-signal-card[hidden] { display: none; }
.hero-signal-card__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  min-height: 0;
  place-items: center;
  padding: 0;
  border: 1px solid #d7dfe1;
  border-radius: 7px;
  background: #fff;
  color: #59676d;
  font-size: 18px;
  line-height: 1;
}
.hero-signal-card__close:hover {
  background: #f3f6f6;
  color: #172126;
}
.hero-signal-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 30px;
}
.hero-signal-card__level {
  display: inline-grid;
  min-width: 34px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: #2d6cdf;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}
.hero-signal-card__level[data-level="alarm"] { background: #d92d20; }
.hero-signal-card__level[data-level="warning"] { background: #f79009; color: #271700; }
.hero-signal-card__level[data-level="normal"] { background: #12b76a; }
.hero-signal-card__id {
  margin: 0 0 3px;
  color: #66747a;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .05em;
}
.hero-signal-card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.hero-signal-card dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0;
  margin: 14px 0 0;
  border-top: 1px solid #e0e6e7;
}
.hero-signal-card dt,
.hero-signal-card dd {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #e7ecec;
}
.hero-signal-card dt {
  color: #6a777d;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-signal-card dd {
  color: #26353b;
  font-size: 11px;
  font-weight: 620;
}
.hero-signal-card__detail {
  margin: 12px 0 0;
  color: #536168;
  font-size: 11px;
  line-height: 1.5;
}
.hero-signal-card > small {
  display: block;
  margin-top: 10px;
  color: #849095;
  font-family: var(--font-mono);
  font-size: 8px;
}

@media (max-width: 900px) {
  .hero-status-board {
    top: 62px;
    right: 20px;
    width: 230px;
  }
  .hero-status-board p { display: none; }
  .hero-status-board__metrics { gap: 5px; }
  .hero-status-board__metrics > span { padding: 6px; }
  .hero-signal-card {
    right: 20px;
    bottom: 78px;
  }
}

@media (max-width: 620px) {
  .hero-status-board {
    top: 112px;
    right: 12px;
    width: 190px;
    padding: 9px;
  }
  .hero-status-board__top > span { display: none; }
  .hero-status-board__top { justify-content: flex-end; }
  .hero-status-board__metrics b { font-size: 15px; }
  .hero-status-board__metrics small { font-size: 7px; }
  .hero-signal-card {
    left: 12px;
    right: 12px;
    bottom: 74px;
    width: auto;
    max-height: 46vh;
    overflow-y: auto;
  }
  .hero-signal-card dl {
    grid-template-columns: 80px 1fr;
  }
}
