:root {
  color-scheme: light;
  --scroll-progress: 0;
  --petrol-980: #042329;
  --petrol-930: #063942;
  --petrol-860: #0a5862;
  --petrol-780: #0f7381;
  --petrol-640: #17a1b1;
  --petrol-540: #2dc3d3;
  --petrol-120: #dff4f6;
  --petrol-080: #eef9fa;
  --white: #ffffff;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-strong: rgba(255, 255, 255, 0.88);
  --paper-soft: rgba(239, 249, 250, 0.58);
  --line: rgba(10, 81, 89, 0.1);
  --line-strong: rgba(10, 81, 89, 0.18);
  --text: #06272d;
  --muted: #50747a;
  --success: #0b7b66;
  --error: #b23b3b;

  /* Apple-inspired layered depth shadows */
  --shadow-sm: 0 1px 2px rgba(5, 45, 52, 0.06), 0 2px 6px rgba(5, 45, 52, 0.05);
  --shadow-md:
    0 1px 2px rgba(5, 45, 52, 0.05),
    0 8px 20px rgba(5, 45, 52, 0.07),
    0 20px 42px rgba(5, 45, 52, 0.09);
  --shadow-lg:
    0 1px 2px rgba(5, 45, 52, 0.06),
    0 12px 28px rgba(5, 45, 52, 0.08),
    0 34px 74px rgba(5, 45, 52, 0.14);
  --shadow-xl:
    0 2px 4px rgba(5, 45, 52, 0.06),
    0 18px 36px rgba(5, 45, 52, 0.12),
    0 44px 96px rgba(5, 45, 52, 0.2);
  --shadow-dark:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(5, 45, 52, 0.26),
    0 48px 96px rgba(5, 45, 52, 0.32);

  /* Glossy rim (inner top highlight + subtle inner bottom darken) */
  --gloss-rim:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(5, 45, 52, 0.05);
  --gloss-rim-dark:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);

  /* Specular highlight overlays (used as ::before backgrounds) */
  --gloss-sheen:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 48%),
    radial-gradient(ellipse at 18% -8%, rgba(255, 255, 255, 0.46), transparent 52%);
  --gloss-sheen-dark:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 42%),
    radial-gradient(ellipse at 82% -12%, rgba(255, 255, 255, 0.22), transparent 46%);

  /* Focus ring — iOS / macOS inspired */
  --focus-ring:
    0 0 0 4px rgba(23, 161, 177, 0.22),
    0 0 0 1px rgba(15, 115, 129, 0.6);

  /* Glass blur stack (backdrop-filter) */
  --glass-blur: saturate(1.6) blur(18px);
  --glass-blur-strong: saturate(1.8) blur(28px);

  /* Corner radii — continuous, iOS-inspired */
  --radius-2xl: 36px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* Apple easing curves */
  --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-apple-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.5, 1.6, 0.4, 1);

  /* Font stack — SF Pro first, Aptos / Segoe UI as Windows fallback */
  --font-display:
    "SF Pro Display", "-apple-system", BlinkMacSystemFont, "Aptos Display",
    "Segoe UI Variable Display", "Segoe UI", "Inter", system-ui, sans-serif;
  --font-body:
    "SF Pro Text", "-apple-system", BlinkMacSystemFont, "Aptos",
    "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.01em;
  background:
    radial-gradient(ellipse at 12% -4%, rgba(45, 195, 211, 0.22), transparent 44%),
    radial-gradient(ellipse at 96% 2%, rgba(10, 81, 89, 0.16), transparent 48%),
    radial-gradient(ellipse at 80% 120%, rgba(23, 161, 177, 0.18), transparent 58%),
    linear-gradient(180deg, #fbfeff 0%, #edf6f8 55%, #e2f0f3 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  opacity: 0.9;
  filter: blur(4px);
}

body::before {
  top: 72px;
  right: min(6vw, 120px);
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle,
      rgba(45, 195, 211, 0.32),
      rgba(23, 161, 177, 0.08) 52%,
      transparent 72%
    );
}

body::after {
  left: -120px;
  bottom: 32px;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle,
      rgba(10, 81, 89, 0.2),
      rgba(10, 81, 89, 0.04) 58%,
      transparent 76%
    );
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 45, 52, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 30;
}

.sidebar-overlay[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1460px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 40px);
  padding: 22px;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(ellipse at 20% -10%, rgba(255, 255, 255, 0.18), transparent 48%),
    linear-gradient(
      180deg,
      rgba(4, 28, 33, 0.98) 0%,
      rgba(6, 57, 66, 0.96) 38%,
      rgba(12, 112, 124, 0.94) 78%,
      rgba(15, 134, 149, 0.92) 100%
    );
  box-shadow: var(--shadow-dark), var(--gloss-rim-dark);
  overflow: hidden;
  isolation: isolate;
  transition: transform 320ms var(--ease-apple), box-shadow 320ms var(--ease-apple);
}

.dashboard-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 28%, transparent 66%, rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 82% 10%, rgba(45, 195, 211, 0.22), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sidebar-brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.36), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 14px 26px rgba(0, 0, 0, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sidebar-brand-text {
  display: grid;
  gap: 3px;
  color: var(--white);
}

.sidebar-brand-text strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

.sidebar-brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(235, 248, 249, 0.72);
}

.sidebar-close,
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 6px 14px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.sidebar-intro {
  padding: 16px 18px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.sidebar-intro strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1rem;
}

.sidebar-intro p {
  margin: 0;
  color: rgba(233, 249, 251, 0.8);
  line-height: 1.55;
}

.sidebar-nav {
  display: grid;
  gap: 16px;
}

.sidebar-nav-group {
  display: grid;
  gap: 10px;
}

.sidebar-nav-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233, 249, 251, 0.56);
}

.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid transparent;
  color: rgba(243, 251, 252, 0.92);
  text-decoration: none;
  transition:
    transform 220ms var(--ease-apple),
    border-color 220ms var(--ease-apple),
    background 220ms var(--ease-apple),
    box-shadow 220ms var(--ease-apple);
}

.sidebar-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.14);
}

.sidebar-link.is-active {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 52%, rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.nav-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.3), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  color: rgba(248, 252, 252, 0.98);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-text {
  display: grid;
  gap: 2px;
}

.nav-text strong {
  font-size: 0.96rem;
}

.nav-text small {
  color: rgba(233, 249, 251, 0.66);
}

.sidebar-service-card {
  margin-top: auto;
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(255, 255, 255, 0.2), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(5, 45, 52, 0.4), rgba(5, 45, 52, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 16px 32px rgba(0, 0, 0, 0.2);
}

.sidebar-service-card strong {
  display: block;
  color: var(--white);
  margin-bottom: 6px;
}

.sidebar-service-card p {
  margin: 0 0 14px;
  color: rgba(233, 249, 251, 0.76);
  line-height: 1.55;
}

.sidebar-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 6px 14px rgba(0, 0, 0, 0.18);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition:
    transform 200ms var(--ease-apple),
    background 200ms var(--ease-apple);
}

.sidebar-service-link:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
}

.app-content-shell {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(240, 249, 250, 0.62));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md), var(--gloss-rim);
  transition:
    box-shadow 280ms var(--ease-apple),
    border-color 280ms var(--ease-apple),
    background 280ms var(--ease-apple);
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.4) 40%, rgba(232, 245, 247, 0.72)),
    linear-gradient(180deg, #ffffff, #e8f5f7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 6px rgba(10, 81, 89, 0.12),
    0 2px 4px rgba(7, 58, 66, 0.06),
    0 10px 22px rgba(7, 58, 66, 0.12);
}

.topbar-copy {
  display: grid;
  gap: 2px;
}

.topbar-copy strong {
  font-size: 1rem;
  color: var(--petrol-930);
}

.topbar-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(236, 246, 248, 0.92));
  color: var(--petrol-930);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.08),
    0 1px 2px rgba(7, 58, 66, 0.04),
    0 10px 22px rgba(7, 58, 66, 0.1);
  transition:
    transform 220ms var(--ease-apple),
    box-shadow 220ms var(--ease-apple),
    border-color 220ms var(--ease-apple),
    background 220ms var(--ease-apple);
}

.topbar-link:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(242, 250, 251, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.1),
    0 2px 4px rgba(7, 58, 66, 0.06),
    0 16px 30px rgba(7, 58, 66, 0.14);
}

.page {
  width: auto;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.hero {
  scroll-margin-top: 24px;
  position: relative;
  overflow: hidden;
  padding: 36px 40px 44px;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(
      135deg,
      #031c20 0%,
      #073f48 32%,
      #0d7481 62%,
      #17a1b1 88%,
      #2dc3d3 100%
    );
  box-shadow: var(--shadow-dark), var(--gloss-rim-dark);
  transform: translate3d(0, calc(var(--hero-shift, 0px) * -0.25), 0) scale(var(--hero-scale, 1));
  transform-origin: top center;
  transition:
    transform 260ms var(--ease-apple-out),
    box-shadow 260ms var(--ease-apple-out),
    border-color 260ms var(--ease-apple-out);
  will-change: transform;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -15%;
  width: 520px;
  height: 520px;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.48),
      rgba(255, 255, 255, 0.08) 48%,
      transparent 72%
    );
  pointer-events: none;
  filter: blur(2px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      102deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.24) 18%,
      rgba(255, 255, 255, 0) 36%,
      rgba(255, 255, 255, 0.12) 62%,
      rgba(255, 255, 255, 0) 82%
    ),
    radial-gradient(ellipse at 88% 14%, rgba(255, 255, 255, 0.3), transparent 32%),
    radial-gradient(ellipse at 50% 100%, rgba(45, 195, 211, 0.28), transparent 52%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-eyebrow {
  margin: 0 0 14px;
  color: rgba(235, 249, 251, 0.74);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-subline {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(239, 251, 252, 0.78);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-signal {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 58%, rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  color: rgba(247, 252, 253, 0.96);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 22px 26px;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.4) 38%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(238, 246, 247, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -18px 32px rgba(5, 45, 52, 0.06),
    0 2px 4px rgba(5, 45, 52, 0.06),
    0 26px 54px rgba(5, 45, 52, 0.22);
  transform: translate3d(0, calc(var(--hero-brand-shift, 0px) * -0.32), 0);
  transition:
    transform 260ms var(--ease-apple-out),
    box-shadow 260ms var(--ease-apple-out);
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}

.hero-brand::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 40%;
  border-radius: 30px 30px 40% 40% / 30px 30px 100% 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-brand > * {
  position: relative;
  z-index: 1;
}

.hero-brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.44), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 8px 16px rgba(0, 0, 0, 0.18);
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-lockup-image {
  display: block;
  width: min(340px, 32vw);
  min-width: 220px;
  height: auto;
}

.hero-brand-text {
  display: grid;
  gap: 4px;
  color: var(--white);
}

.hero-brand-text strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 0.92;
  letter-spacing: 0.04em;
}

.hero-brand-text span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(233, 249, 251, 0.76);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.96;
  color: var(--white);
  letter-spacing: -0.035em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: 1.44rem;
  margin-bottom: 6px;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1rem;
  letter-spacing: -0.012em;
}

.panel {
  scroll-margin-top: 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 249, 250, 0.76));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg), var(--gloss-rim);
  transition:
    transform 320ms var(--ease-apple),
    box-shadow 320ms var(--ease-apple),
    border-color 320ms var(--ease-apple);
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 34%),
    radial-gradient(ellipse at 18% -8%, rgba(255, 255, 255, 0.36), transparent 48%);
  pointer-events: none;
  z-index: 0;
}

/* Dark-themed panels get a subtle dark/light sheen, not a heavy white wash */
.panel.overview-panel::before,
.panel[data-surface="dark"]::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 32%);
}

:root[data-theme="dark"] .panel::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 32%);
}

.panel > * {
  position: relative;
  z-index: 1;
}

body.js-ready .panel[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.986);
}

body.js-ready .panel[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 560ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.panel:hover {
  box-shadow: var(--shadow-xl), var(--gloss-rim);
  border-color: rgba(255, 255, 255, 0.85);
}

.panel-header p,
.feedback,
.status-card p,
.calendar-item small,
.test-output,
label span,
.meta,
.section-head p {
  color: var(--muted);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 220ms var(--ease-apple),
    opacity 220ms var(--ease-apple),
    box-shadow 220ms var(--ease-apple),
    border-color 220ms var(--ease-apple),
    background 220ms var(--ease-apple);
}

.button-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 220ms var(--ease-apple),
    opacity 220ms var(--ease-apple),
    box-shadow 220ms var(--ease-apple),
    border-color 220ms var(--ease-apple),
    background 220ms var(--ease-apple);
}

body.is-scrolled .topbar {
  border-color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 250, 251, 0.76));
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  box-shadow: var(--shadow-lg), var(--gloss-rim);
}

body.is-scrolled .hero {
  box-shadow:
    0 2px 4px rgba(5, 45, 52, 0.08),
    0 24px 58px rgba(5, 45, 52, 0.22),
    0 48px 96px rgba(5, 45, 52, 0.28);
}

button:hover {
  transform: translateY(-1px);
}

.button-link:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.primary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, #1ca9ba 0%, #0e7d8c 42%, #063942 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(5, 45, 52, 0.14),
    0 10px 22px rgba(5, 45, 52, 0.24),
    0 22px 44px rgba(5, 45, 52, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.primary::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 52%;
  border-radius: 999px 999px 100% 100% / 999px 999px 140% 140%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.primary > * {
  position: relative;
  z-index: 1;
}

.primary:hover {
  background:
    linear-gradient(180deg, #22b8c9 0%, #13899a 42%, #08424c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 2px 4px rgba(5, 45, 52, 0.16),
    0 14px 28px rgba(5, 45, 52, 0.28),
    0 28px 56px rgba(5, 45, 52, 0.26);
}

.primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(5, 45, 52, 0.18),
    0 6px 12px rgba(5, 45, 52, 0.2);
}

.secondary {
  color: var(--petrol-930);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(232, 245, 247, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.08),
    0 1px 2px rgba(7, 58, 66, 0.04),
    0 10px 22px rgba(7, 58, 66, 0.1);
}

.secondary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(240, 250, 251, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.1),
    0 2px 4px rgba(7, 58, 66, 0.06),
    0 14px 28px rgba(7, 58, 66, 0.14);
}

.secondary-link {
  color: var(--petrol-930);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(232, 245, 247, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.08),
    0 1px 2px rgba(7, 58, 66, 0.04),
    0 10px 22px rgba(7, 58, 66, 0.1);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.settings-grid-inline {
  margin-top: 14px;
}

.settings-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 244, 246, 0.78));
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.05),
    0 1px 2px rgba(9, 62, 70, 0.04),
    0 12px 26px rgba(9, 62, 70, 0.08);
}

.settings-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
  z-index: 0;
}

.settings-card > * {
  position: relative;
  z-index: 1;
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.settings-weekday-fieldset {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid rgba(10, 81, 89, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.settings-weekday-fieldset legend {
  padding: 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--petrol-860);
}

.settings-weekday-fieldset small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.weekday-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weekday-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 248, 249, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.06),
    0 1px 2px rgba(7, 58, 66, 0.04),
    0 6px 14px rgba(7, 58, 66, 0.08);
  cursor: pointer;
  transition:
    transform 180ms var(--ease-apple),
    box-shadow 180ms var(--ease-apple),
    border-color 180ms var(--ease-apple);
}

.weekday-chip:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.08),
    0 2px 4px rgba(7, 58, 66, 0.06),
    0 10px 20px rgba(7, 58, 66, 0.12);
}

.weekday-chip input[type="checkbox"] {
  width: auto;
  margin: 0;
  box-shadow: none;
}

.weekday-chip span {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}

.weekday-chip.is-disabled {
  opacity: 0.56;
  cursor: default;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--petrol-860);
  letter-spacing: 0.02em;
}

label small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

input {
  width: 100%;
  border: 1px solid rgba(10, 81, 89, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 252, 0.88));
  padding: 13px 15px;
  font: inherit;
  color: var(--text);
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 1px 2px rgba(10, 81, 89, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(8, 58, 66, 0.03);
  transition:
    border-color 200ms var(--ease-apple),
    box-shadow 200ms var(--ease-apple),
    background 200ms var(--ease-apple);
}

input:focus {
  outline: none;
  border-color: rgba(15, 115, 129, 0.6);
  background:
    linear-gradient(180deg, #ffffff, rgba(249, 253, 254, 0.94));
  box-shadow:
    var(--focus-ring),
    inset 0 1px 2px rgba(10, 81, 89, 0.06);
}

input[readonly] {
  background: linear-gradient(180deg, rgba(239, 247, 248, 0.96), rgba(228, 242, 244, 0.92));
}

input[type="checkbox"] {
  accent-color: var(--petrol-780);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.status-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 20px 18px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 247, 248, 0.82));
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.04),
    0 1px 2px rgba(5, 45, 52, 0.04),
    0 14px 30px rgba(5, 45, 52, 0.08);
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 44%);
  pointer-events: none;
  z-index: 0;
}

.status-card > * {
  position: relative;
  z-index: 1;
}

.status-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(14, 107, 117, 0) 0%,
    rgba(15, 115, 129, 0.55) 30%,
    rgba(45, 195, 211, 0.8) 50%,
    rgba(15, 115, 129, 0.55) 70%,
    rgba(14, 107, 117, 0) 100%
  );
  z-index: 2;
}

.status-card strong {
  display: block;
  margin-bottom: 6px;
}

.status-card.status-attention::after {
  background: linear-gradient(
    90deg,
    rgba(178, 59, 59, 0) 0%,
    rgba(178, 59, 59, 0.6) 30%,
    rgba(220, 80, 80, 0.85) 50%,
    rgba(178, 59, 59, 0.6) 70%,
    rgba(178, 59, 59, 0) 100%
  );
}

.ok {
  color: var(--success);
}

.error {
  color: var(--error);
}

.calendar-list,
.test-output,
.profile-list {
  display: grid;
  gap: 12px;
}

.calendar-list.empty,
.test-output.empty,
.profile-list.empty {
  padding: 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(233, 244, 246, 0.62));
  border: 1px dashed rgba(10, 81, 89, 0.22);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  color: var(--muted);
}

.calendar-item,
.suggestion {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 247, 249, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.04),
    0 1px 2px rgba(5, 45, 52, 0.04),
    0 10px 22px rgba(5, 45, 52, 0.07);
  transition:
    transform 220ms var(--ease-apple),
    box-shadow 220ms var(--ease-apple),
    border-color 220ms var(--ease-apple);
}

.calendar-item:hover,
.suggestion:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.06),
    0 2px 4px rgba(5, 45, 52, 0.06),
    0 16px 30px rgba(5, 45, 52, 0.12);
}

.subpanel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 81, 89, 0.1);
}

.profile-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 246, 247, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.05),
    0 1px 2px rgba(5, 45, 52, 0.04),
    0 14px 30px rgba(5, 45, 52, 0.08);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 46%),
    radial-gradient(ellipse at 88% -6%, rgba(45, 195, 211, 0.1), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.profile-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.profile-header strong {
  font-size: 1rem;
}

.profile-header small {
  color: var(--muted);
  line-height: 1.45;
}

.profile-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(150px, 0.8fr);
  gap: 14px;
}

.profile-grid-secondary {
  margin-top: 14px;
}

.profile-toggle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(10, 81, 89, 0.04);
  border: 1px solid rgba(10, 81, 89, 0.08);
}

.profile-toggle input[type="checkbox"] {
  width: auto;
  margin: 0;
  box-shadow: none;
}

.profile-toggle span {
  font-weight: 700;
  color: var(--text);
}

.feature-toggle {
  margin-top: 8px;
}

.section-head-compact {
  margin-bottom: 0;
}

.profile-card[data-day-end-enabled="false"] .profile-grid-secondary {
  opacity: 0.58;
}

.calendar-item::before,
.suggestion::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 46%),
    radial-gradient(ellipse at 88% -6%, rgba(45, 195, 211, 0.1), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.calendar-item > *,
.suggestion > * {
  position: relative;
  z-index: 1;
}

.calendar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.calendar-item input {
  width: auto;
  margin-top: 3px;
  box-shadow: none;
}

.calendar-item strong,
.suggestion strong {
  display: block;
  margin-bottom: 6px;
}

.test-row {
  margin-bottom: 16px;
}

.suggestion-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head {
  margin-bottom: 10px;
}

.section-head p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.result-section {
  display: grid;
  gap: 12px;
}

.summary-card {
  margin-bottom: 4px;
}

.slot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, #1ca9ba 0%, #0e7d8c 42%, #063942 100%);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 2px 3px rgba(5, 45, 52, 0.14),
    0 8px 18px rgba(7, 58, 66, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 250, 0.86));
  color: var(--petrol-930);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.06),
    0 1px 2px rgba(7, 58, 66, 0.04);
}

.suggestion-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.mini-action {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, #1ca9ba 0%, #0e7d8c 42%, #063942 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 2px 3px rgba(5, 45, 52, 0.14),
    0 10px 22px rgba(7, 58, 66, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  padding: 10px 16px;
}

.mini-action::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 52%;
  border-radius: 999px 999px 100% 100% / 999px 999px 140% 140%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.mini-action > * {
  position: relative;
  z-index: 1;
}

.suggestion.is-success strong {
  color: var(--success);
}

.suggestion.is-error strong {
  color: var(--error);
}

.meta {
  font-size: 0.95rem;
  line-height: 1.5;
}

.feedback {
  min-height: 1.4em;
  margin-top: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-page {
  padding-top: 28px;
  padding-bottom: 80px;
}

.overview-panel {
  padding: 18px 20px;
  border-radius: 28px;
}

.overview-panel .panel-header {
  margin-bottom: 10px;
}

.overview-panel .panel-header p {
  max-width: 760px;
  margin-top: 6px;
}

.overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.overview-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.overview-panel h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.overview-panel .hero-eyebrow {
  margin-bottom: 6px;
}

.overview-panel .hero-signal {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(23, 161, 177, 0.2), transparent 42%),
    radial-gradient(ellipse at 80% 90%, rgba(5, 33, 38, 0.36), transparent 48%),
    rgba(5, 33, 38, 0.42);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.auth-gate[hidden] {
  display: none !important;
}

.auth-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(520px, calc(100vw - 32px));
  padding: 32px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 249, 250, 0.84));
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  box-shadow: var(--shadow-xl), var(--gloss-rim);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 42%),
    radial-gradient(ellipse at 18% -8%, rgba(255, 255, 255, 0.48), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label span {
  font: 700 12px/1.2 "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  color: var(--petrol-780);
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(10, 81, 89, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 252, 0.88));
  color: var(--text);
  font: 500 15px/1.2 var(--font-body);
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 1px 2px rgba(10, 81, 89, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.9);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(15, 115, 129, 0.6);
  box-shadow:
    var(--focus-ring),
    inset 0 1px 2px rgba(10, 81, 89, 0.06);
}

.admin-locked .app-shell,
.work-locked .app-shell {
  pointer-events: none;
  user-select: none;
}

.overview-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 88% 12%, rgba(45, 195, 211, 0.34), transparent 38%),
    linear-gradient(
      135deg,
      #041f24 0%,
      #073f48 38%,
      #0d7481 68%,
      #17a1b1 92%,
      #24b8c9 100%
    );
  box-shadow: var(--shadow-dark), var(--gloss-rim-dark);
}

.overview-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      102deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.22) 18%,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 0.12) 62%,
      rgba(255, 255, 255, 0) 82%
    ),
    radial-gradient(ellipse at 20% -8%, rgba(255, 255, 255, 0.34), transparent 42%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.overview-panel::before {
  content: "";
  position: absolute;
  top: -24px;
  right: 10px;
  width: min(300px, 28vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 68%),
    url("/assets/logo-mark.png") center / contain no-repeat;
  opacity: 0.2;
  pointer-events: none;
  filter: saturate(1.04) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.16));
}

.overview-panel > * {
  position: relative;
  z-index: 1;
}

.overview-panel .panel-header h2,
.overview-panel .panel-header p,
.overview-panel .hero-eyebrow {
  color: rgba(248, 252, 252, 0.96);
}

.overview-panel .hero-eyebrow {
  color: rgba(198, 236, 241, 0.88);
}

.overview-panel .hero-signal {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
  color: rgba(247, 252, 252, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.workspace-shell.is-unlocked {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-auth-card,
.workspace-map-card {
  width: 100%;
  min-height: 100%;
}

.workspace-map-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 249, 250, 0.78));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg), var(--gloss-rim);
}

.workspace-map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 40%),
    radial-gradient(ellipse at 88% -4%, rgba(45, 195, 211, 0.1), transparent 48%);
  pointer-events: none;
  z-index: 0;
}

.workspace-map-card > * {
  position: relative;
  z-index: 1;
}

.workspace-shell.is-unlocked .workspace-map-card {
  grid-column: 1 / -1;
}

.workspace-map-head h3 {
  margin: 8px 0 6px;
}

.workspace-map-head p {
  margin: 0;
  color: var(--muted);
}

.map-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px)) auto;
  gap: 12px;
  margin-top: 18px;
  align-items: end;
}

.map-controls label {
  display: grid;
  gap: 8px;
}

.map-controls span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--petrol-930);
}

.map-controls input {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(10, 81, 89, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 252, 0.88));
  color: var(--text);
  font: inherit;
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 1px 2px rgba(10, 81, 89, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.92);
  transition:
    border-color 200ms var(--ease-apple),
    box-shadow 200ms var(--ease-apple);
}

.map-controls input:focus {
  outline: none;
  border-color: rgba(15, 115, 129, 0.6);
  box-shadow:
    var(--focus-ring),
    inset 0 1px 2px rgba(10, 81, 89, 0.06);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.map-legend:empty {
  display: none;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--legend-color, var(--petrol-780)) 22%, rgba(255, 255, 255, 0.7));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 250, 0.84)),
    var(--legend-chip, rgba(14, 107, 117, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.06),
    0 1px 2px rgba(5, 45, 52, 0.04),
    0 10px 22px rgba(5, 45, 52, 0.08);
}

.map-legend-item i {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--legend-color, var(--petrol-780));
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--legend-color, var(--petrol-780)) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.map-legend-item strong {
  font-size: 0.94rem;
  color: var(--petrol-930);
}

.map-legend-item small {
  color: var(--muted);
  font-size: 0.82rem;
}

.workspace-planner-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.workspace-planner-grid--map-only {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-calendar-sidebar,
.workspace-sidebar-card {
  min-height: 100%;
}

.workspace-sidebar-card,
.workspace-match-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 249, 250, 0.82));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.04),
    0 1px 2px rgba(5, 45, 52, 0.04),
    0 20px 44px rgba(5, 45, 52, 0.1);
}

.workspace-sidebar-card::before,
.workspace-match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
  z-index: 0;
}

.workspace-sidebar-card > *,
.workspace-match-card > * {
  position: relative;
  z-index: 1;
}

.workspace-sidebar-head h4,
.workspace-match-head h4 {
  margin: 6px 0 4px;
  color: var(--petrol-930);
}

.workspace-sidebar-head p,
.workspace-match-head p {
  margin: 0;
  color: var(--muted);
}

.workspace-event-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  max-height: 920px;
  overflow-y: auto;
  padding-right: 4px;
}

.workspace-empty-state {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(10, 81, 89, 0.18);
  color: var(--muted);
  background: rgba(247, 252, 252, 0.88);
}

.workspace-event-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 249, 0.84));
  color: var(--text);
  text-align: left;
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.04),
    0 1px 2px rgba(5, 45, 52, 0.04),
    0 10px 22px rgba(5, 45, 52, 0.07);
  transition:
    transform 220ms var(--ease-apple),
    border-color 220ms var(--ease-apple),
    box-shadow 220ms var(--ease-apple),
    background 220ms var(--ease-apple);
}

.workspace-event-item:hover,
.workspace-event-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 115, 129, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.06),
    0 2px 4px rgba(5, 45, 52, 0.06),
    0 16px 30px rgba(5, 45, 52, 0.12);
  outline: none;
}

.workspace-event-item.is-active {
  border-color: color-mix(in srgb, var(--event-accent, var(--petrol-780)) 38%, rgba(10, 81, 89, 0.16));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(226, 244, 246, 0.96)),
    color-mix(in srgb, var(--event-accent, var(--petrol-780)) 12%, transparent);
  box-shadow:
    0 22px 38px rgba(5, 45, 52, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.workspace-event-item strong {
  font-size: 1rem;
  color: var(--petrol-930);
}

.workspace-event-item span,
.workspace-event-item small {
  color: var(--muted);
  line-height: 1.45;
}

.workspace-event-agent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--event-accent, var(--petrol-780)) 14%, rgba(255, 255, 255, 0.92));
  color: var(--petrol-930);
  font: 700 12px/1 "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

.workspace-match-card {
  margin-top: 18px;
}

.workspace-match-head,
.workspace-organization-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.workspace-organization-results {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.workspace-organization-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 249, 0.84));
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.04),
    0 1px 2px rgba(5, 45, 52, 0.04),
    0 12px 28px rgba(5, 45, 52, 0.08);
}

.workspace-organization-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 44%);
  pointer-events: none;
  z-index: 0;
}

.workspace-organization-card > * {
  position: relative;
  z-index: 1;
}

.workspace-organization-head strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--petrol-930);
}

.workspace-organization-head p,
.workspace-organization-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.workspace-organization-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(236, 246, 248, 0.92));
  color: var(--petrol-930);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.08),
    0 1px 2px rgba(5, 45, 52, 0.04),
    0 10px 22px rgba(5, 45, 52, 0.1);
  transition:
    transform 200ms var(--ease-apple),
    box-shadow 200ms var(--ease-apple);
}

.workspace-organization-link:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.1),
    0 2px 4px rgba(5, 45, 52, 0.06),
    0 14px 28px rgba(5, 45, 52, 0.14);
}

.workspace-organization-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.workspace-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 248, 0.86));
  color: var(--petrol-930);
  font: 600 12px/1 var(--font-body);
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.06),
    0 1px 2px rgba(7, 58, 66, 0.04);
}

.germany-map-shell {
  position: relative;
  min-height: 920px;
  padding: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 88% 12%, rgba(45, 195, 211, 0.16), transparent 38%),
    radial-gradient(circle at 12% 88%, rgba(10, 81, 89, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(250, 253, 253, 0.98), rgba(232, 244, 246, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.06),
    0 1px 2px rgba(5, 45, 52, 0.04),
    0 22px 48px rgba(5, 45, 52, 0.1);
}

.workspace-map-canvas {
  position: relative;
  width: 100%;
  min-height: 920px;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 10%, rgba(14, 107, 117, 0.08), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(201, 161, 38, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(250, 253, 253, 0.98), rgba(231, 244, 246, 0.94));
}

.workspace-map-canvas.leaflet-container {
  width: 100% !important;
  height: 100% !important;
}

.workspace-map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 18%, transparent 72%, rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 64%);
  z-index: 400;
}

.workspace-map-canvas.is-loading::after {
  content: "Deutschlandkarte wird geladen …";
  position: absolute;
  inset: 24px auto auto 24px;
  z-index: 900;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--petrol-930);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 34px rgba(5, 45, 52, 0.12);
}

.workspace-map-canvas .leaflet-pane,
.workspace-map-canvas .leaflet-control {
  z-index: 450;
}

.workspace-map-canvas .leaflet-top,
.workspace-map-canvas .leaflet-bottom {
  z-index: 500;
}

.workspace-map-canvas .leaflet-control-zoom {
  margin: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 2px 4px rgba(5, 45, 52, 0.08),
    0 18px 38px rgba(5, 45, 52, 0.18);
}

.workspace-map-canvas .leaflet-control-zoom a {
  width: 42px;
  height: 42px;
  line-height: 42px;
  border: 0;
  color: var(--petrol-930);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 248, 0.86));
  transition: background 180ms var(--ease-apple);
}

.workspace-map-canvas .leaflet-control-zoom a:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(230, 244, 246, 0.96));
}

.workspace-map-canvas .leaflet-control-attribution {
  margin: 0 12px 12px 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 250, 0.82));
  color: var(--muted);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 12px 24px rgba(5, 45, 52, 0.12);
}

.workspace-map-canvas .leaflet-control-attribution a {
  color: var(--petrol-780);
}

.workspace-map-canvas .leaflet-interactive {
  transition: fill-opacity 140ms ease, stroke-width 140ms ease, stroke-opacity 140ms ease;
}

.workspace-map-canvas .leaflet-container {
  background:
    radial-gradient(circle at 18% 16%, rgba(14, 107, 117, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(241, 248, 249, 0.98), rgba(229, 241, 243, 0.96));
}

.leaflet-agent-icon {
  background: none;
  border: 0;
}

.agent-pin {
  position: relative;
  display: block;
  width: 40px;
  height: 54px;
}

.agent-pin::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--pin-glow, rgba(14, 107, 117, 0.22));
  transform: scale(1.18);
  filter: blur(5px);
  opacity: 1;
}

.agent-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 27px;
  width: 18px;
  height: 22px;
  background: var(--pin-color, var(--petrol-780));
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 14px rgba(5, 45, 52, 0.2));
}

.agent-pin-core {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 1);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2) 32%, transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--pin-color, var(--petrol-780)) 90%, white), var(--pin-color, var(--petrol-780))),
    var(--pin-color, var(--petrol-780));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18),
    0 2px 4px rgba(5, 45, 52, 0.2),
    0 12px 22px rgba(5, 45, 52, 0.24),
    0 0 0 4px color-mix(in srgb, var(--pin-color, var(--petrol-780)) 22%, transparent);
}

.leaflet-agent-icon.is-selected .agent-pin::before {
  transform: scale(1.34);
  opacity: 1;
  filter: blur(7px);
}

.leaflet-agent-icon.is-selected .agent-pin-core {
  transform: scale(1.08);
  box-shadow:
    0 18px 28px rgba(5, 45, 52, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 0 7px color-mix(in srgb, var(--pin-color, var(--petrol-780)) 26%, rgba(255, 255, 255, 0.44));
}

.workspace-event-tooltip,
.state-inline-label {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 250, 0.88));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.06),
    0 2px 4px rgba(5, 45, 52, 0.06),
    0 22px 40px rgba(5, 45, 52, 0.18);
  color: var(--text);
  padding: 0;
}

.workspace-event-tooltip::before,
.state-inline-label::before {
  display: none;
}

.workspace-event-tooltip > div,
.state-inline-label > div {
  margin: 0;
}

.workspace-event-tooltip {
  padding: 12px 14px;
}

.workspace-event-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
  color: var(--petrol-930);
}

.workspace-event-tooltip span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.workspace-event-popup .leaflet-popup-content-wrapper,
.workspace-event-popup .leaflet-popup-tip {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 250, 0.88));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 2px 4px rgba(5, 45, 52, 0.06),
    0 22px 40px rgba(5, 45, 52, 0.18);
  color: var(--text);
}

.workspace-event-popup .leaflet-popup-content-wrapper {
  border-radius: 18px;
}

.workspace-event-popup .leaflet-popup-content {
  margin: 0;
  min-width: 220px;
  padding: 12px 14px;
}

.workspace-event-popup .leaflet-popup-tip-container {
  margin-top: -1px;
}

.workspace-event-popup .leaflet-popup-close-button {
  display: none;
}

.workspace-event-popup .leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
  color: var(--petrol-930);
}

.workspace-event-popup .leaflet-popup-content span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.state-inline-label {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(8, 58, 66, 0.5);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 10px rgba(255, 255, 255, 0.45);
}

a {
  color: var(--petrol-780);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 180ms var(--ease-apple);
}

a:hover {
  color: var(--petrol-640);
}

@media (max-width: 960px) {
  .app-shell {
    width: min(100vw - 20px, 1460px);
    grid-template-columns: 1fr;
    padding-top: 16px;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 14px;
    left: 14px;
    bottom: 14px;
    width: min(88vw, 340px);
    min-height: auto;
    transform: translateX(calc(-100% - 24px));
    transition: transform 180ms ease;
    z-index: 40;
  }

  body.sidebar-open .dashboard-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-close,
  .sidebar-toggle {
    display: inline-flex;
  }

  .topbar {
    padding: 14px 16px;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .map-controls {
    grid-template-columns: 1fr;
  }

  .workspace-planner-grid {
    grid-template-columns: 1fr;
  }

  .workspace-event-list {
    max-height: none;
  }

  .workspace-match-head,
  .workspace-organization-head {
    flex-direction: column;
  }

  .germany-map-shell,
  .workspace-map-canvas {
    min-height: 720px;
  }

  .topbar,
  .topbar-main {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page {
    gap: 16px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar-card,
  .workspace-match-card {
    padding: 18px;
    border-radius: 24px;
  }

  .germany-map-shell,
  .workspace-map-canvas {
    min-height: 560px;
  }

  .hero {
    padding: 28px 24px 32px;
  }

  .hero-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-subline {
    font-size: 0.95rem;
  }

  .hero-signal-row {
    gap: 8px;
  }

  .hero-signal {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .hero-brand {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-lockup-image {
    width: min(100%, 320px);
    min-width: 0;
  }

  .panel {
    padding: 18px;
    border-radius: 26px;
  }

  .panel-header,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .suggestion-action-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body.js-ready .panel[data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================================
   AURUM · Apple-inspired clean design system (v2)
   - SF-Pro system font stack, solid high-contrast typography (no tinted
     gradient text overlays), generous section rhythm, crisp contrast.
   - Sits atop the base stylesheet. All existing selectors preserved.
   ========================================================================= */

/* --- Dark theme tokens -------------------------------------------------- */

:root[data-theme="dark"] {
  color-scheme: dark;
  --petrol-980: #021519;
  --petrol-930: #062a31;
  --petrol-860: #0a4149;
  --petrol-780: #0e5d68;
  --petrol-640: #149bab;
  --petrol-540: #2dc3d3;
  --petrol-120: #12343a;
  --petrol-080: #0a2529;
  --white: #f2fafc;
  --paper: rgba(18, 38, 44, 0.64);
  --paper-strong: rgba(22, 46, 52, 0.82);
  --paper-soft: rgba(14, 32, 38, 0.58);
  --line: rgba(148, 210, 220, 0.1);
  --line-strong: rgba(148, 210, 220, 0.2);
  --text: #eaf5f7;
  --muted: #9fb9bf;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 10px 26px rgba(0, 0, 0, 0.4),
    0 24px 54px rgba(0, 0, 0, 0.36);
  --shadow-lg:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 14px 32px rgba(0, 0, 0, 0.42),
    0 38px 84px rgba(0, 0, 0, 0.46);
  --shadow-xl:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 22px 44px rgba(0, 0, 0, 0.5),
    0 50px 110px rgba(0, 0, 0, 0.58);
  --shadow-dark:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 28px 54px rgba(0, 0, 0, 0.6),
    0 60px 120px rgba(0, 0, 0, 0.64);
  --gloss-rim:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  --gloss-rim-dark:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 12% -4%, rgba(45, 195, 211, 0.24), transparent 44%),
    radial-gradient(ellipse at 96% 2%, rgba(20, 155, 171, 0.14), transparent 48%),
    radial-gradient(ellipse at 80% 120%, rgba(14, 93, 104, 0.24), transparent 58%),
    linear-gradient(180deg, #061418 0%, #081c22 50%, #0a262d 100%);
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .settings-card,
:root[data-theme="dark"] .status-card,
:root[data-theme="dark"] .profile-card,
:root[data-theme="dark"] .calendar-item,
:root[data-theme="dark"] .suggestion,
:root[data-theme="dark"] .workspace-map-card,
:root[data-theme="dark"] .workspace-sidebar-card,
:root[data-theme="dark"] .workspace-match-card,
:root[data-theme="dark"] .workspace-event-item,
:root[data-theme="dark"] .workspace-organization-card,
:root[data-theme="dark"] .auth-card {
  border-color: rgba(148, 210, 220, 0.16);
  background:
    linear-gradient(180deg, rgba(24, 48, 54, 0.74), rgba(16, 36, 42, 0.62));
  color: var(--text);
}

:root[data-theme="dark"] .topbar-link,
:root[data-theme="dark"] .secondary,
:root[data-theme="dark"] .secondary-link,
:root[data-theme="dark"] .workspace-organization-link,
:root[data-theme="dark"] .weekday-chip,
:root[data-theme="dark"] .metric-pill,
:root[data-theme="dark"] .workspace-chip {
  color: #eaf5f7;
  border-color: rgba(148, 210, 220, 0.22);
  background:
    linear-gradient(180deg, rgba(30, 58, 66, 0.92), rgba(18, 40, 46, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 10px 22px rgba(0, 0, 0, 0.44);
  text-shadow: none;
}

:root[data-theme="dark"] input {
  background:
    linear-gradient(180deg, rgba(14, 30, 34, 0.9), rgba(10, 22, 26, 0.82));
  border-color: rgba(148, 210, 220, 0.18);
  color: #eaf5f7;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(148, 210, 220, 0.12);
}

:root[data-theme="dark"] input:focus {
  background:
    linear-gradient(180deg, rgba(18, 38, 44, 0.96), rgba(12, 26, 30, 0.88));
  border-color: rgba(45, 195, 211, 0.55);
}

:root[data-theme="dark"] input[readonly] {
  background: linear-gradient(180deg, rgba(10, 22, 26, 0.8), rgba(8, 18, 22, 0.72));
  color: #9fb9bf;
}

:root[data-theme="dark"] .topbar-copy strong,
:root[data-theme="dark"] .status-card strong,
:root[data-theme="dark"] .workspace-event-item strong,
:root[data-theme="dark"] .workspace-organization-head strong,
:root[data-theme="dark"] .map-legend-item strong,
:root[data-theme="dark"] .workspace-sidebar-head h4,
:root[data-theme="dark"] .workspace-match-head h4,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] label span {
  color: #eaf5f7;
}

:root[data-theme="dark"] .hero-eyebrow,
:root[data-theme="dark"] .overview-panel .hero-eyebrow {
  color: rgba(180, 220, 226, 0.72);
}

:root[data-theme="dark"] a {
  color: var(--petrol-540);
}

:root[data-theme="dark"] .sidebar-overlay {
  background: rgba(0, 0, 0, 0.56);
}

/* --- Missing .is-muted rule (review finding) ---------------------------- */

.workspace-auth-card.is-muted,
.is-muted {
  opacity: 0.5;
  filter: saturate(0.7);
  pointer-events: none;
  transition: opacity 320ms var(--ease-apple), filter 320ms var(--ease-apple);
}

/* --- Theme toggle (iOS-style segmented switch) -------------------------- */

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(240, 249, 250, 0.56));
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.06),
    0 1px 2px rgba(5, 45, 52, 0.04),
    0 6px 14px rgba(5, 45, 52, 0.06);
}

.theme-toggle button {
  appearance: none;
  position: relative;
  overflow: visible;
  width: 36px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--petrol-930);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 220ms var(--ease-apple);
  box-shadow: none;
  isolation: auto;
}

.theme-toggle button::before {
  content: none;
}

.theme-toggle button:hover {
  transform: none;
  color: var(--petrol-780);
}

.theme-toggle button[aria-pressed="true"] {
  color: #ffffff;
  background:
    linear-gradient(180deg, #1ca9ba 0%, #0e7d8c 52%, #063942 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(5, 45, 52, 0.16),
    0 4px 10px rgba(5, 45, 52, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .theme-toggle {
  border-color: rgba(148, 210, 220, 0.2);
  background:
    linear-gradient(180deg, rgba(28, 54, 60, 0.92), rgba(16, 36, 42, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .theme-toggle button {
  color: #c8dfe3;
}

:root[data-theme="dark"] .theme-toggle button[aria-pressed="true"] {
  background:
    linear-gradient(180deg, #2dc3d3 0%, #149bab 52%, #0a4149 100%);
}

/* --- Scroll progress bar (fixed, thin petrol ribbon at the top) --------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 3px;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(45, 195, 211, 0) 0%,
    rgba(23, 161, 177, 0.9) 30%,
    rgba(45, 195, 211, 1) 50%,
    rgba(23, 161, 177, 0.9) 70%,
    rgba(45, 195, 211, 0) 100%
  );
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
  filter: drop-shadow(0 0 6px rgba(45, 195, 211, 0.6));
}

/* --- APPLE-STYLE STAGES ------------------------------------------------- *
 * Each section (.panel) on the admin/public pages gets one of several
 * "stage" treatments, selected by :nth-of-type / ID. No HTML changes.
 * ----------------------------------------------------------------------- */

@supports (selector(:has(*))) {
  /* Give sections more breathing room — Apple-level vertical rhythm */
  .page {
    gap: 32px;
  }
}

.page > .panel {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

html {
  scroll-snap-type: y proximity;
  scroll-padding-top: 28px;
}

/* ---------- Apple-style stage paddings (SOLID colors only — no gradient text) */

.page > .panel#overview,
.overview-panel {
  padding: clamp(48px, 7vw, 92px) clamp(32px, 5vw, 72px);
  border-radius: clamp(28px, 3vw, 44px);
}

.page > .panel#overview .panel-header h2,
.overview-panel .panel-header h2 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.page > .panel#overview .panel-header > div > p:last-child,
.overview-panel .panel-header > div > p:last-child {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  max-width: 68ch;
  color: rgba(239, 251, 252, 0.9);
  margin-top: 10px;
}

.page > .panel#overview .hero-eyebrow,
.overview-panel .hero-eyebrow {
  color: rgba(220, 240, 244, 0.82);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
}

/* Dark sections get NO white sheen overlay (fixes washed-out hero) */
.overview-panel::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

/* ---------- Feature sections (settings, calendars) ---------------------- */

.page > .panel#settings,
.page > .panel#calendars {
  padding: clamp(36px, 4.8vw, 60px) clamp(28px, 3.8vw, 52px);
}

.page > .panel#settings .panel-header h2,
.page > .panel#calendars .panel-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1.06;
  color: var(--petrol-930);
}

.page > .panel#settings .panel-header > div > p:last-child,
.page > .panel#calendars .panel-header > div > p:last-child {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 64ch;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Quiet tiles (status, extension, deploy, google, quicktest) -- */

.page > .panel#status,
.page > .panel#extension,
.page > .panel#deploy,
.page > .panel#google,
.page > .panel#quicktest {
  padding: clamp(28px, 3vw, 40px) clamp(26px, 3vw, 44px);
}

.page > .panel#status .panel-header h2,
.page > .panel#extension .panel-header h2,
.page > .panel#deploy .panel-header h2,
.page > .panel#google .panel-header h2,
.page > .panel#quicktest .panel-header h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--petrol-930);
}

/* Dark theme: solid light heading on all content panels */
:root[data-theme="dark"] .page > .panel .panel-header h2,
:root[data-theme="dark"] .panel .panel-header h2 {
  color: #eaf5f7;
}

:root[data-theme="dark"] .page > .panel .panel-header p,
:root[data-theme="dark"] .panel .panel-header p {
  color: rgba(200, 220, 225, 0.82);
}

/* ---------- Section divider (subtle horizontal rule between stages) ---- */

.page > .panel + .panel {
  position: relative;
}

.page > .panel + .panel::after {
  content: "";
  position: absolute;
  top: -18px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(10, 81, 89, 0.14) 50%,
    transparent 100%
  );
  pointer-events: none;
}

:root[data-theme="dark"] .page > .panel + .panel::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(148, 210, 220, 0.16) 50%,
    transparent 100%
  );
}

/* ---------- Scroll-driven reveal (gentler than before, no blur) -------- */

body.js-ready .panel[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.994);
}

body.js-ready .panel[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 520ms var(--ease-apple-out),
    transform 520ms var(--ease-apple-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ---------- Apple-style hero H1: solid, dramatic, readable ------------- */

.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* ---------- Apple.com-style big-feature button hover glint -------------- */

@keyframes aurumGlint {
  0% {
    transform: translateX(-120%) skewX(-20deg);
  }
  100% {
    transform: translateX(240%) skewX(-20deg);
  }
}

.primary::after,
.mini-action::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
  z-index: 1;
}

.primary:hover::after,
.mini-action:hover::after {
  animation: aurumGlint 900ms var(--ease-apple-out) 1;
}

/* ---------- Topbar layout for theme-toggle + more Apple nav feel -------- */

.topbar-actions {
  gap: 10px;
}

/* Pill-style nav with thicker rim on scroll */
body.is-scrolled .topbar {
  border-color: rgba(255, 255, 255, 0.85);
}

:root[data-theme="dark"] body.is-scrolled .topbar {
  border-color: rgba(148, 210, 220, 0.18);
  background:
    linear-gradient(180deg, rgba(24, 48, 54, 0.86), rgba(16, 36, 42, 0.72));
}

/* ---------- Sidebar in dark theme: richer petrol -> indigo depth ------- */

:root[data-theme="dark"] .dashboard-sidebar {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(45, 195, 211, 0.22), transparent 48%),
    linear-gradient(
      180deg,
      #021216 0%,
      #03262d 40%,
      #064550 80%,
      #075c68 100%
    );
}

/* ---------- Enable smooth scrolling for .page anchor jumps ------------- */

html {
  scroll-padding-top: 88px;
}

/* ---------- Print safety ------------------------------------------------ */

@media print {
  .scroll-progress,
  .theme-toggle,
  .dashboard-sidebar,
  .sidebar-overlay {
    display: none !important;
  }
  .page > .panel::before,
  .page > .panel::after {
    display: none !important;
  }
}

/* =========================================================================
   APPLE ADOPTION LAYER — adopted from AIDesigner run d108e629…
   Inspired stylistically by apple.com/de product-landing layouts.
   ========================================================================= */

/* --- 1. Desktop: drop the fixed sidebar, use a floating top nav-pill ---- */

@media (min-width: 961px) {
  .app-shell {
    display: block;
    width: min(100vw, 1920px);
    padding: 0;
  }

  .app-content-shell {
    width: 100%;
    display: block;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 14px;
    left: 14px;
    bottom: 14px;
    width: min(88vw, 340px);
    min-height: auto;
    transform: translateX(calc(-100% - 32px));
    transition: transform 260ms var(--ease-apple);
    z-index: 50;
  }

  body.sidebar-open .dashboard-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-close,
  .sidebar-toggle {
    display: inline-flex;
  }

  .topbar {
    position: fixed;
    top: 22px;
    right: 22px;
    left: auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    z-index: 49;
    gap: 6px;
  }

  /* Brand moves OUT of the topbar row and becomes a floating pill top-left */
  .topbar .topbar-main {
    display: inline-flex;
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 49;
    padding: 6px 16px 6px 6px;
    gap: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(180deg, #ffffff 0%, #f3fafb 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 1),
      0 1px 2px rgba(5, 45, 52, 0.04),
      0 8px 22px rgba(5, 45, 52, 0.08);
    align-items: center;
  }

  .topbar .topbar-main .sidebar-toggle {
    display: none;
  }

  .topbar-brand-mark {
    width: 36px;
    height: 36px;
    padding: 3px;
  }

  .topbar-copy strong {
    font-size: 0.88rem;
    letter-spacing: -0.012em;
  }

  .topbar-copy span {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  :root[data-theme="dark"] .topbar .topbar-main {
    border-color: rgba(148, 210, 220, 0.2);
    background: linear-gradient(180deg, #11343b 0%, #0b262c 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 8px 22px rgba(0, 0, 0, 0.4);
  }

  /* Section anchor links are handled by the floating nav-pill in the center */
  .topbar .topbar-actions .topbar-link[href^="#"],
  .topbar .topbar-actions .topbar-link[href^="/#"] {
    display: none;
  }

  /* Keep only theme-toggle + admin-logout in the top-right pill */
  .topbar .topbar-actions {
    gap: 8px;
  }

  .page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  /* Full-bleed stage rails — each panel stretches edge-to-edge with inner content capped */
  .page > .panel {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: clamp(72px, 10vw, 140px) clamp(24px, 6vw, 80px);
    scroll-margin-top: 96px;
  }

  .page > .panel::after {
    display: none; /* no divider lines between stages */
  }

  .page > .panel > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Alternating light / off-white rhythm for content stages */
  .page > .panel:not(.overview-panel):not([data-surface]):nth-of-type(odd) {
    background:
      linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    border-top: 0;
  }

  .page > .panel:not(.overview-panel):not([data-surface]):nth-of-type(even) {
    background:
      linear-gradient(180deg, #f6fbfc 0%, #f6fbfc 100%);
  }

  /* Pull the side-sheen overlay off the full-bleed panels (was the wash-out) */
  .page > .panel:not(.overview-panel):not([data-surface="dark"])::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 18%);
  }

  :root[data-theme="dark"] .page > .panel:not(.overview-panel):not([data-surface]):nth-of-type(odd) {
    background: linear-gradient(180deg, #08242a 0%, #08242a 100%);
  }

  :root[data-theme="dark"] .page > .panel:not(.overview-panel):not([data-surface]):nth-of-type(even) {
    background: linear-gradient(180deg, #0a2c33 0%, #0a2c33 100%);
  }
}

/* --- 2. Dark "accent" stages (opt-in via data-surface="dark") ----------- */

.page > .panel[data-surface="dark"] {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(45, 195, 211, 0.24), transparent 42%),
    linear-gradient(180deg, #042329 0%, #063942 60%, #0a4149 100%);
  color: #eaf5f7;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Override old per-ID heading rules with Apple-stage typography scale */
.page > .panel#status .panel-header h2,
.page > .panel#extension .panel-header h2,
.page > .panel#deploy .panel-header h2,
.page > .panel#google .panel-header h2,
.page > .panel#quicktest .panel-header h2,
.page > .panel#settings .panel-header h2,
.page > .panel#calendars .panel-header h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.04;
  color: var(--petrol-930);
}

/* Text color on dark accent stages (extension/google + data-surface=dark) */
.page > .panel#extension .panel-header h2,
.page > .panel#google .panel-header h2,
.page > .panel[data-surface="dark"] .panel-header h2,
.page > .panel[data-surface="dark"] h3 {
  color: #ffffff;
}

.page > .panel#extension .panel-header p,
.page > .panel#google .panel-header p,
.page > .panel[data-surface="dark"] .panel-header p,
.page > .panel[data-surface="dark"] .hero-eyebrow,
.page > .panel#extension p,
.page > .panel#google p,
.page > .panel[data-surface="dark"] p {
  color: rgba(239, 251, 252, 0.78);
}

.page > .panel#extension,
.page > .panel#google {
  color: #eaf5f7;
}

/* Secondary buttons on dark stages: translucent glass */
.page > .panel[data-surface="dark"] .secondary,
.page > .panel#extension .secondary,
.page > .panel#google .secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.28);
}

/* --- 3. Apple-style section heading (".Heading." signature) ------------ */

.page > .panel:not(.overview-panel) .panel-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.page > .panel:not(.overview-panel) .panel-header > div {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page > .panel:not(.overview-panel) .panel-header h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.04;
}

.page > .panel:not(.overview-panel) .panel-header h2::after {
  content: ".";
  color: var(--petrol-540);
  margin-left: 0.04em;
}

.page > .panel:not(.overview-panel) .panel-header p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  margin-top: 6px;
}

/* --- 4. Apple glass nav-pill (centered sticky — ergänzt die Topbar) ---- */

.aurum-nav-pill {
  display: none;
}

@media (min-width: 961px) {
  .aurum-nav-pill {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 48;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(246, 251, 252, 0.6));
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 1),
      0 1px 2px rgba(5, 45, 52, 0.04),
      0 8px 22px rgba(5, 45, 52, 0.08);
  }

  .aurum-nav-pill a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--petrol-930);
    text-decoration: none;
    transition:
      background 200ms var(--ease-apple),
      color 200ms var(--ease-apple);
  }

  .aurum-nav-pill a:hover {
    color: var(--petrol-780);
    background: rgba(255, 255, 255, 0.55);
  }

  .aurum-nav-pill a.is-active {
    color: #ffffff;
    background:
      linear-gradient(180deg, #1ca9ba 0%, #0e7d8c 52%, #063942 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.16),
      0 4px 10px rgba(5, 45, 52, 0.2);
  }

  :root[data-theme="dark"] .aurum-nav-pill {
    border-color: rgba(148, 210, 220, 0.2);
    background:
      linear-gradient(180deg, rgba(28, 54, 60, 0.8), rgba(16, 36, 42, 0.64));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 8px 22px rgba(0, 0, 0, 0.4);
  }

  :root[data-theme="dark"] .aurum-nav-pill a {
    color: #c8dfe3;
  }

  /* Hide the redundant topbar section-links on desktop (pill takes over) */
  .topbar .topbar-actions .topbar-link[href^="#"] {
    display: none;
  }
}

/* --- 5. Overview / hero stage on adopted layout ------------------------ */

@media (min-width: 961px) {
  .page > .panel#overview,
  .overview-panel {
    padding: clamp(120px, 18vw, 220px) clamp(24px, 6vw, 80px) clamp(80px, 10vw, 140px);
    border-radius: 0;
    text-align: center;
  }

  .page > .panel#overview .panel-header,
  .overview-panel .panel-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: clamp(28px, 4vw, 44px);
  }

  .page > .panel#overview .panel-header > div,
  .overview-panel .panel-header > div {
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
  }

  .page > .panel#overview .panel-header h2,
  .overview-panel .panel-header h2 {
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .page > .panel#overview .overview-grid,
  .overview-panel .overview-grid {
    justify-content: center;
  }

  .page > .panel#overview .overview-points,
  .overview-panel .overview-points {
    justify-content: center;
  }
}

/* --- 6. Status-grid: square glossy tiles (Apple product grid) ----------- */

@media (min-width: 961px) {
  .status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .status-card {
    aspect-ratio: 1 / 1.02;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
  }
}

/* --- 7. Settings form: glass panel with 3-column inner grid ------------ */

@media (min-width: 961px) {
  .settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 28px;
  }

  .settings-card-wide {
    grid-column: 1 / -1;
  }
}

/* --- 8. Footer style (minimal) ----------------------------------------- */

.aurum-footer {
  background: #031c20;
  color: rgba(255, 255, 255, 0.56);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 6vw, 80px);
  font-size: 13px;
}

.aurum-footer .aurum-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aurum-footer a {
  color: rgba(255, 255, 255, 0.56);
  text-decoration: none;
  margin-right: 18px;
  transition: color 200ms var(--ease-apple);
}

.aurum-footer a:hover {
  color: #ffffff;
}

@media (min-width: 961px) {
  .aurum-footer {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
  }
}

/* =========================================================================
   PERFORMANCE PASS · 60fps scroll budget
   Removes GPU-heavy backdrop-filter from every element that is NOT visible
   as floating chrome (only the top nav-pill, the top-right action-pill and
   the auth-gate modal keep the real glass effect). All other "glass" panels
   get an opaque gradient that reproduces the same look visually without
   costing a blur pass per frame. Also disables scroll-snap (known jank
   source on long documents) and trims body::before/::after blur filters.
   ========================================================================= */

html {
  scroll-snap-type: none;
}

.page > .panel {
  scroll-snap-align: none;
}

/* Drop blur on big ambient body blobs — they were repainting every scroll */
body::before,
body::after {
  filter: none;
}

/* Kill backdrop-filter on content surfaces (keep chrome-only glass) */
.panel,
.topbar,
.settings-card,
.status-card,
.profile-card,
.calendar-item,
.suggestion,
.workspace-map-card,
.workspace-sidebar-card,
.workspace-match-card,
.workspace-event-item,
.workspace-organization-card,
.germany-map-shell,
.workspace-map-canvas,
.workspace-event-tooltip,
.state-inline-label,
.workspace-event-popup .leaflet-popup-content-wrapper,
.workspace-event-popup .leaflet-popup-tip,
.workspace-map-canvas .leaflet-control-zoom,
.workspace-map-canvas .leaflet-control-attribution,
.calendar-list.empty,
.test-output.empty,
.profile-list.empty,
.metric-pill,
.weekday-chip,
.workspace-chip,
.map-legend-item {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Convert semi-transparent panel backgrounds to opaque equivalents.
   Visual result: identical (the petrol tint was an illusion — the body
   background behind the panel is almost the same petrol palette). */
.panel {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5fafb 100%);
}

.overview-panel {
  /* keep the dramatic dark gradient — already opaque, no change needed */
}

/* Remove backdrop-filter from page-wide topbar; it becomes a solid pill */
.topbar {
  background: linear-gradient(180deg, #ffffff 0%, #f3fafb 100%);
}

body.is-scrolled .topbar {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9fa 100%);
}

/* Only these three keep the real glass — they're tiny, fixed, single-instance */
.aurum-nav-pill,
.auth-gate {
  /* already set above; reaffirmed here in case overrides */
}

/* Simplify the repaint-heavy ::before sheens on panels */
.panel::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 28%);
}

.panel.overview-panel::before,
.panel[data-surface="dark"]::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 28%);
}

/* Transitions: only animate transform/opacity (composite-only, no paint) */
.sidebar-link,
.panel,
.topbar-link,
.primary,
.secondary,
.mini-action,
.calendar-item,
.suggestion,
.weekday-chip,
.workspace-event-item,
.workspace-organization-link {
  transition:
    transform 220ms var(--ease-apple),
    opacity 220ms var(--ease-apple),
    border-color 220ms var(--ease-apple),
    box-shadow 220ms var(--ease-apple);
}

/* Hover-only glint animation — keep, but ensure it's opt-in only */
.primary::after,
.mini-action::after {
  will-change: transform;
}

/* Scroll-linked properties: let the browser batch updates */
.scroll-progress {
  will-change: transform;
}

/* DISABLE content-visibility on .page > .panel — it caused 100-200ms lag
   spikes during scroll when each panel first became visible. Render cost
   is paid once at page load, scroll stays at 60fps. */
.page > .panel {
  content-visibility: visible !important;
  contain: layout paint;
}

/* Remove the ambient fixed body blobs — they repainted every scroll frame */
body::before,
body::after {
  display: none !important;
}

/* Disable CSS smooth scroll — interferes with wheel-scroll, causes jank */
html {
  scroll-behavior: auto !important;
}

/* Kill transitions on elements that change during scroll (topbar class toggles) */
.topbar,
body.is-scrolled .topbar,
.dashboard-sidebar {
  transition: none !important;
}

/* Reveal animation: opacity-only (compositor-only, paint-free).
   Also use smaller offset to reduce work per transition. */
body.js-ready .panel[data-reveal] {
  opacity: 0;
  transform: none;
}

body.js-ready .panel[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 380ms linear;
  transition-delay: var(--reveal-delay, 0ms);
}

/* Promote ONLY the standalone floating elements — NOT .topbar, because it
   contains .topbar-main which uses position:fixed; a transform on .topbar
   would make it the containing block for its fixed children, breaking layout. */
.aurum-nav-pill,
.scroll-progress {
  will-change: transform;
}

/* Remove the hover glint animation from primary buttons during scroll —
   cheap static sheen only, no moving keyframes. */
.primary::after,
.mini-action::after {
  display: none;
}

/* Simplify hero ::after (was a mix-blend screen overlay — expensive on scroll) */
.hero::after,
.overview-panel::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0) 45%
  ) !important;
  mix-blend-mode: normal !important;
}

/* Trim the body radial background to one layer only (was 4 layered blobs) */
body {
  background:
    linear-gradient(180deg, #fbfeff 0%, #edf6f8 55%, #e2f0f3 100%) !important;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(180deg, #061418 0%, #081c22 50%, #0a262d 100%) !important;
}

/* =========================================================================
   NUCLEAR FLATTEN · kill every gradient on big scrollable surfaces.
   Panels become solid-color stages (Apple rhythm preserved via alternation).
   Repaint during scroll drops from multi-layer gradient compositing to a
   single solid fill per panel — ~10x cheaper on the GPU/CPU.
   ========================================================================= */

/* Base panel: solid white */
.page > .panel,
.panel {
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.page > .panel::before,
.page > .panel::after,
.panel::before,
.panel::after {
  display: none !important;
}

/* Alternating off-white between panels for Apple rhythm */
.page > .panel:nth-of-type(even):not(.overview-panel):not([data-surface="dark"]) {
  background: #f6fbfc !important;
}

/* Dark accent stages: one solid dark petrol, no gradient */
.page > .panel[data-surface="dark"],
.page > .panel#extension,
.page > .panel#google {
  background: #063942 !important;
  background-image: none !important;
  color: #eaf5f7 !important;
}

/* Hero: keep one dramatic gradient (it's single-instance, not scrolled repeatedly) */
.page > .panel.overview-panel,
.page > .panel#overview {
  background: linear-gradient(
    135deg,
    #031c20 0%,
    #073f48 38%,
    #0d7481 68%,
    #17a1b1 100%
  ) !important;
  background-image: linear-gradient(
    135deg,
    #031c20 0%,
    #073f48 38%,
    #0d7481 68%,
    #17a1b1 100%
  ) !important;
}

/* Dark theme: panels become solid dark petrol */
:root[data-theme="dark"] .page > .panel,
:root[data-theme="dark"] .panel {
  background: #082026 !important;
  background-image: none !important;
  color: var(--text) !important;
}

:root[data-theme="dark"] .page > .panel:nth-of-type(even):not(.overview-panel):not([data-surface="dark"]) {
  background: #0b262c !important;
}

/* Inner cards (status tiles etc.): flat white with a light 1px border instead
   of layered gradient + blur. Visually very similar, infinitely cheaper. */
.status-card,
.settings-card,
.profile-card,
.calendar-item,
.suggestion,
.workspace-event-item,
.workspace-organization-card,
.workspace-sidebar-card,
.workspace-match-card,
.workspace-map-card {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(10, 81, 89, 0.08) !important;
  box-shadow: 0 1px 2px rgba(5, 45, 52, 0.04), 0 8px 20px rgba(5, 45, 52, 0.06) !important;
}

.status-card::before,
.status-card::after,
.settings-card::before,
.profile-card::before,
.calendar-item::before,
.suggestion::before,
.workspace-organization-card::before,
.workspace-sidebar-card::before,
.workspace-match-card::before,
.workspace-map-card::before {
  display: none !important;
}

/* Status-card top-accent stripe: keep (1px tall, cheap) */
.status-card::after {
  display: block !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, var(--petrol-540) 50%, transparent) !important;
}

/* Dark theme cards */
:root[data-theme="dark"] .status-card,
:root[data-theme="dark"] .settings-card,
:root[data-theme="dark"] .profile-card,
:root[data-theme="dark"] .calendar-item,
:root[data-theme="dark"] .suggestion,
:root[data-theme="dark"] .workspace-event-item,
:root[data-theme="dark"] .workspace-organization-card,
:root[data-theme="dark"] .workspace-sidebar-card,
:root[data-theme="dark"] .workspace-match-card,
:root[data-theme="dark"] .workspace-map-card {
  background: #0c2a30 !important;
  border-color: rgba(148, 210, 220, 0.12) !important;
}

/* Keep the primary button gradient — single instance, composited once */
.primary,
.mini-action,
.slot-kicker {
  background-image: linear-gradient(180deg, #1ca9ba 0%, #0e7d8c 42%, #063942 100%) !important;
}

/* Keep the floating chrome pill gradients — single instances on top layer */
.aurum-nav-pill,
.topbar,
.topbar .topbar-main {
  /* their gradients are already light & small, leave them */
}

/* =========================================================================
   STATUS CARDS · Apple product-grid aesthetic with real icons
   ========================================================================= */

.status-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  padding: 24px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 24px !important;
  overflow: hidden;
  transition:
    transform 220ms var(--ease-apple),
    box-shadow 220ms var(--ease-apple),
    border-color 220ms var(--ease-apple) !important;
}

.status-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 115, 129, 0.28) !important;
  box-shadow:
    0 2px 4px rgba(5, 45, 52, 0.06),
    0 18px 36px rgba(5, 45, 52, 0.1) !important;
}

.status-card .status-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(15, 115, 129, 0.18);
  background:
    linear-gradient(180deg, #eaf6f8 0%, #dff1f3 100%);
  color: var(--petrol-780);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(10, 81, 89, 0.05),
    0 1px 2px rgba(7, 58, 66, 0.04);
}

.status-card .status-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.status-card .status-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  width: 100%;
}

.status-card .status-card-body strong {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.014em;
  color: var(--petrol-930);
  line-height: 1.15;
}

.status-card .status-card-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.status-card.status-ok .status-icon {
  color: var(--petrol-780);
  border-color: rgba(11, 123, 102, 0.2);
  background: linear-gradient(180deg, #e7f5f1 0%, #d8eee7 100%);
}

.status-card.status-attention .status-icon {
  color: var(--error);
  border-color: rgba(178, 59, 59, 0.2);
  background: linear-gradient(180deg, #fbe8e8 0%, #f7d8d8 100%);
}

.status-card.status-attention {
  border-color: rgba(178, 59, 59, 0.16) !important;
}

.status-card.status-attention::after {
  background: linear-gradient(90deg, transparent, var(--error) 50%, transparent) !important;
}

/* Dark theme icons */
:root[data-theme="dark"] .status-card .status-icon {
  border-color: rgba(148, 210, 220, 0.22);
  background: linear-gradient(180deg, #0f2c33 0%, #0a2329 100%);
  color: var(--petrol-540);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .status-card.status-ok .status-icon {
  color: #64d1be;
  background: linear-gradient(180deg, #0c2a28 0%, #081f1d 100%);
}

:root[data-theme="dark"] .status-card.status-attention .status-icon {
  color: #ff8b8b;
  background: linear-gradient(180deg, #301414 0%, #220d0d 100%);
}

:root[data-theme="dark"] .status-card .status-card-body strong {
  color: #eaf5f7;
}

/* Responsive: smaller icons on narrow viewports */
@media (max-width: 960px) {
  .status-card {
    aspect-ratio: auto !important;
    padding: 20px !important;
  }
  .status-card .status-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .status-card .status-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Dark theme: opaque replacements too */
:root[data-theme="dark"] .panel {
  background: linear-gradient(180deg, #0b262c 0%, #072026 100%);
}

:root[data-theme="dark"] .topbar {
  background: linear-gradient(180deg, #11343b 0%, #0b262c 100%);
}

/* When user prefers reduced motion, kill reveal + pin animations too */
@media (prefers-reduced-motion: reduce) {
  body.js-ready .panel[data-reveal],
  body.js-ready .panel[data-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .primary::after,
  .mini-action::after {
    display: none !important;
  }
}

/* --- Schulferien & Feiertage ------------------------------------------- */

.holiday-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.holiday-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--petrol-930);
}

.holiday-controls select {
  min-width: 120px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--petrol-930);
  font: inherit;
}

.holiday-bulk {
  display: flex;
  gap: 8px;
}

.holiday-state-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.state-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--petrol-930);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s var(--ease-apple),
    border-color 0.15s var(--ease-apple),
    color 0.15s var(--ease-apple),
    transform 0.1s var(--ease-apple);
}

.state-chip:hover {
  border-color: var(--petrol-640);
}

.state-chip:active {
  transform: scale(0.97);
}

.state-chip.is-selected {
  background: var(--petrol-780);
  border-color: var(--petrol-780);
  color: #ffffff;
}

.holiday-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.holiday-state-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 16px 18px;
}

.holiday-state-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.holiday-state-head strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--petrol-980);
}

.holiday-state-head span {
  color: var(--muted);
  font-weight: 600;
}

.holiday-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.holiday-column h4 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--petrol-780);
}

.holiday-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.holiday-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.holiday-list li:last-child {
  border-bottom: none;
}

.holiday-name {
  color: var(--petrol-930);
  font-weight: 600;
}

.holiday-dates {
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.holiday-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--petrol-640);
  border: 1px solid var(--petrol-120);
  border-radius: 6px;
  padding: 1px 5px;
  margin-left: 4px;
}

.holiday-empty {
  color: var(--muted);
  font-style: italic;
  border-bottom: none !important;
}

@media (min-width: 560px) {
  .holiday-columns {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================================================================== */
/* Lean / Performance Mode (maximal schlank) — dekorative GPU-Effekte    */
/* raus für schnelleres Zeichnen, flüssigeres Scrollen, keine Hänger.    */
/* Theme-sicher: keine festen Farben, nur Effekte entfernt.              */
/* ===================================================================== */

/* 1) Teuerste GPU-Last: alle Backdrop-Blurs global aus. */
*,
*::before,
*::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 2) Inhalt sofort sichtbar – keine gestaffelte Einblend-Animation.
      Behebt zugleich Panels, die unsichtbar/„nicht klickbar" bleiben,
      wenn der Reveal-Observer nicht greift. */
body.js-ready .panel[data-reveal],
body.js-ready .panel[data-reveal].is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* 3) Dekorative Glanz-/Schimmer-/Verlauf-Overlays entfernen
      (alle pointer-events:none, z-index:0 – rein optisch). */
.app-shell::before,
.app-shell::after,
.panel::before,
.panel::after,
.overview-panel::before,
.overview-panel::after,
.topbar::before,
.topbar::after,
.dashboard-sidebar::before,
.dashboard-sidebar::after,
.auth-card::before,
.auth-card::after,
.status-card::before,
.status-card::after,
.suggestion::before,
.suggestion::after,
.workspace-map-card::before,
.workspace-map-card::after,
.aurum-nav-pill::before,
.aurum-nav-pill::after,
.primary::before,
.primary::after,
.secondary::before,
.secondary::after,
.mini-action::after,
.action-btn::after {
  display: none !important;
}

/* 4) Mehrlagige Schatten verschlanken (billiger zu rendern). */
.panel,
.auth-card,
.status-card,
.suggestion,
.workspace-map-card,
.holiday-state-card,
.sidebar-service-card,
.aurum-nav-pill,
.primary,
.secondary,
.mini-action {
  box-shadow:
    0 1px 2px rgba(7, 58, 66, 0.06),
    0 6px 16px rgba(7, 58, 66, 0.08) !important;
}

/* 5) Reine Deko-Elemente/Animationen aus. */
.scroll-progress {
  display: none !important;
}

/* ===================================================================== */
/* Ferien – einspaltige, chronologische Liste (übersichtlich)            */
/* ===================================================================== */
.holiday-state-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px 12px;
}
.holiday-state-code {
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.holiday-state-counts {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
}
.holiday-list--unified {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.holiday-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.holiday-row:last-child {
  border-bottom: none;
}
.holiday-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.holiday-badge--ferien {
  background: var(--petrol-120);
  color: var(--petrol-860);
}
.holiday-badge--feiertag {
  background: rgba(176, 122, 20, 0.16);
  color: #9a6b10;
}
:root[data-theme="dark"] .holiday-badge--ferien {
  background: rgba(23, 161, 177, 0.22);
  color: var(--petrol-540);
}
:root[data-theme="dark"] .holiday-badge--feiertag {
  background: rgba(224, 177, 90, 0.18);
  color: #e0b15a;
}

/* ===================================================================== */
/* Startseite-Button — klar sichtbare, gefüllte Pille in der Kopfleiste,  */
/* auch auf dem Desktop (die Anker-Ausblendregel trifft nur href="#…").   */
/* ===================================================================== */
.topbar-home {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(180deg, var(--petrol-640), var(--petrol-860)) !important;
  border: 1px solid transparent !important;
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
}
.topbar-home:hover {
  background: linear-gradient(180deg, var(--petrol-540), var(--petrol-780)) !important;
}
.topbar-home::before {
  content: "⌂";
  font-size: 1.05em;
  line-height: 1;
}
