
:root {
  --s3-navy: #01132b;
  --s3-teal: #23a2aa;
  --s3-teal-dark: #1b8b92;
  --s3-teal-soft: #e8f5f6;
  --s3-orange: #ff8e5b;
  --s3-lime: #e5f200;
  --s3-bg: #f5f7f8;
  --s3-card: #ffffff;
  --s3-border: #d8e2e7;
  --s3-text: #1f3047;
  --s3-text-soft: #5e7287;
  --s3-ring: rgba(112, 129, 142, 0.28);
  --shadow-soft: 0 14px 34px rgba(1, 19, 43, 0.08);
  --shadow-card: 0 8px 24px rgba(1, 19, 43, 0.05);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container-width: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--s3-bg);
  color: var(--s3-text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 34px 24px 72px;
}

.page-home .container {
  max-width: none;
  padding: 0;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--s3-navy);
}

p { margin-top: 0; }

/* =========================
   Topbar / Navigation
   ========================= */

.topbar {
  background: linear-gradient(90deg, #01132b 0%, #05224d 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.14);
}

.topbar-inner,
.subnav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.brand-sub {
  font-size: 0.86rem;
  opacity: 0.82;
  line-height: 1.1;
}

.main-nav,
.subnav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a,
.subnav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.subnav-links a:hover {
  transform: translateY(-1px);
}

.main-nav a { color: rgba(255, 255, 255, 0.9); }

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.subnav-wrap {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(1, 19, 43, 0.08);
}

.subnav-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.subnav-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--s3-text-soft);
}

.subnav-links a {
  color: var(--s3-text-soft);
}

.subnav-links a:hover,
.subnav-links a.active {
  background: var(--s3-teal-soft);
  color: var(--s3-teal-dark);
}

.subnav-info {
  color: var(--s3-text-soft);
  font-size: 0.94rem;
}

/* =========================
   Messages
   ========================= */

.error-box,
.success-box,
.status {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 20px;
  font-weight: 600;
}

.error-box {
  background: #fff0ef;
  border: 1px solid #ffc7c1;
  color: #a53d31;
}

.success-box {
  background: #edf9f1;
  border: 1px solid #bde8ca;
  color: #247447;
}

.status {
  background: #eef3f8;
  border: 1px solid #dbe5f0;
  color: var(--s3-navy);
  display: block;
  font-weight: 700;
}

/* =========================
   Forms / Login / Buttons
   ========================= */

.login-screen {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 0 10px;
}

.login-panel {
  width: min(100%, 640px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--s3-border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 38px 38px 32px;
}

.login-panel h1 {
  margin-bottom: 10px;
  color: #01132b;
  font-size: clamp(2rem, 5vw, 3rem);
}

.login-intro {
  margin-bottom: 24px;
  color: var(--s3-text);
  font-size: 1.05rem;
}

.login-form,
.app-form {
  display: grid;
  gap: 12px;
}

.login-form label,
.app-form label {
  font-weight: 700;
  color: var(--s3-navy);
}

.login-form input,
.login-form select,
.login-form textarea,
.app-form input,
.app-form select,
.app-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #c8d3e1;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--s3-text);
  background: #f8fbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-form textarea,
.app-form textarea {
  min-height: 110px;
  resize: vertical;
}

.login-form input:focus,
.login-form select:focus,
.login-form textarea:focus,
.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
  outline: none;
  border-color: #7f93b3;
  box-shadow: 0 0 0 4px rgba(1, 19, 43, 0.08);
  background: #fff;
}

.login-form button,
.app-form button,
.button-primary,
.button-secondary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.login-form button,
.app-form button,
.button-primary,
.btn-primary {
  background: #01132b;
  color: #fff;
  box-shadow: 0 12px 24px rgba(35, 162, 170, 0.18);
  border: 1px solid #01132b;
}

.login-form button:hover,
.app-form button:hover,
.button-primary:hover,
.btn-primary:hover,
.button-secondary:hover,
.btn-secondary:hover,
.btn:hover {
  transform: translateY(-1px);
}

.button-secondary,
.btn-secondary {
  background: #edf4f6;
  color: var(--s3-teal-dark);
  border-color: #cfdee4;
}

.login-backlink-wrap { margin-top: 18px; }
.login-backlink { color: var(--s3-teal-dark); font-weight: 700; }

/* =========================
   Landing / Home
   ========================= */

.landing-shell {
  padding: 28px 24px 56px;
}

.wosi-hero {
  max-width: 1420px;
  margin: 0 auto;
  padding: 42px 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,250,251,0.96) 100%);
  border: 1px solid rgba(1, 19, 43, 0.08);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.wosi-hero-inner {
  display: grid;
  grid-template-columns: minmax(620px, 1.2fr) minmax(420px, 0.8fr);
  gap: 52px;
  align-items: start;
}

.wosi-copy {
  min-width: 0;
  max-width: 760px;
}

.wosi-eyebrow {
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #01132b;
}

.wosi-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #01132b;
  white-space: nowrap;
}

.wosi-copy > p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.55;
  color: var(--s3-text);
}

.wosi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.wosi-info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 34px;
  max-width: 980px;
}

.info-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--s3-border);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  min-height: 180px;
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  color: #01132b;
}

.info-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--s3-text);
}

.wosi-visual-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 670px;
  padding-top: 48px;
}

.wosi-orbit-system {
  position: relative;
  width: 600px;
  height: 600px;
  aspect-ratio: 1 / 1;
}

.orbit-ring {
  position: absolute;
  inset: 80px;
  border: 2px dashed rgba(1, 19, 43, 0.1);
  border-radius: 50%;
  animation: orbitRotate 90s linear infinite;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 102px;
  height: 102px;
  margin-top: -51px;
  margin-left: -51px;
  border-radius: 50%;
  border: 1px solid rgba(1, 19, 43, 0.07);
  background: rgba(255,255,255,0.94);
  color: var(--s3-navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(1, 19, 43, 0.08);
  z-index: 3;
}

.orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 124px;
  height: 1px;
  background: rgba(1, 19, 43, 0.14);
  transform-origin: 0 50%;
  z-index: 1;
}

.orbit-line-top { transform: rotate(-90deg); }
.orbit-line-left { transform: rotate(150deg); }
.orbit-line-right { transform: rotate(30deg); }

.orbit-node {
  position: absolute;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
  color: var(--s3-navy);
  border: 2px solid rgba(1, 19, 43, 0.08);
  box-shadow: 0 16px 28px rgba(1, 19, 43, 0.10);
  animation: none;
  will-change: transform, box-shadow, filter;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
  z-index: 3;
}

.orbit-node span {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  color: #01132b;
}

.node-top {
  top: 24px;
  left: 50%;
  margin-left: 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #41c7da 0%, #21afc9 100%);
}

.node-left {
  left: 66px;
  bottom: 92px;
  transform: none;
  background: linear-gradient(180deg, #ffb17f 0%, #ff9960 100%);
}

.node-right {
  right: 66px;
  bottom: 92px;
  transform: none;
  background: linear-gradient(180deg, #FEC10D 0%, #FEC10D 100%);
}

.node-top:hover {
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 24px 40px rgba(1, 19, 43, 0.18);
  filter: saturate(1.05) brightness(1.02);
  z-index: 5;
}

.node-left:hover,
.node-right:hover {
  transform: scale(1.08);
  box-shadow: 0 24px 40px rgba(1, 19, 43, 0.18);
  filter: saturate(1.05) brightness(1.02);
  z-index: 5;
}

.standby-logo-top {
  position: absolute;
  top: 54px;
  right: 62px;
  z-index: 3;
}

.standby-logo-top img {
  height: 55px;
  width: auto;
  display: block;
}

/* =========================
   Cards / Tables / Dashboard
   ========================= */

.dashboard-section { margin-bottom: 40px; }

.section-kicker {
  margin-top: 0px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--s3-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-intro {
  color: var(--s3-text-soft);
  max-width: 860px;
}

.dashboard-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-grid-project {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-card,
.module-card {
  display: block;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--s3-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.dashboard-card h3,
.module-card h2,
.app-table th {
  color: #01132b;
}

.dashboard-card,
.info-card {
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.dashboard-card:hover,
.info-card:hover {
  background: #edf4f6;
  border-color: #cfdee4;
  transform: translateY(-2px);
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--s3-border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.app-table {
  width: 100%;
  border-collapse: collapse;
}

.app-table th,
.app-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8eef1;
  text-align: left;
  vertical-align: top;
}

.app-table th {
  background: #eef3f8;
  font-size: 0.95rem;
}

.app-table tr:last-child td {
  border-bottom: 0;
}

.module-grid-2col {
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.5fr);
  align-items: start;
}

.module-card--wide .table-wrap { overflow-x: auto; }
.module-card--wide .app-table { min-width: 760px; }

.page-variant h1,
.page-variant h2 {
  color: #01132b;
}

/* legacy classes kept hidden for safety */
.hero,
.home-grid,
.home-card,
.orbit-stage,
.orbit-center,
.standby-hero,
.standby-grid,
.standby-copy,
.standby-visual,
.orbit-node-top,
.orbit-node-left,
.orbit-node-right {
  display: none;
}

/* =========================
   Animations
   ========================= */

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1220px) {
  .dashboard-grid,
  .dashboard-grid-project,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 821px) and (max-width: 1366px) {
  .wosi-hero-inner {
    grid-template-columns: minmax(460px, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: start;
  }

  .wosi-copy {
    max-width: none;
  }

  .wosi-copy h1 {
    font-size: clamp(2.6rem, 5vw, 3.9rem);
    white-space: normal;
  }

  .wosi-copy > p {
    font-size: 1.02rem;
    line-height: 1.45;
  }

  .wosi-actions {
    margin-top: 22px;
    margin-bottom: 22px;
  }

  .wosi-info-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 16px;
    margin-top: 24px;
  }

  .info-card {
    min-height: auto;
    padding: 20px 18px;
  }

  .wosi-visual-wrap {
    min-height: auto;
    padding-top: 70px;
    align-items: start;
  }

  .wosi-orbit-system {
    width: 420px;
    height: 420px;
  }

  .orbit-ring {
    inset: 48px;
  }

  .orbit-core {
    width: 84px;
    height: 84px;
    margin-left: -42px;
    margin-top: -42px;
  }

  .orbit-line {
    width: 92px;
  }

  .orbit-node {
    width: 118px;
    height: 118px;
  }

  .orbit-node span {
    font-size: 0.94rem;
  }

  .node-top {
    top: 6px;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
  }

  .node-left {
    left: 24px;
    bottom: 48px;
  }

  .node-right {
    right: 24px;
    bottom: 48px;
  }

  .standby-logo-top {
    top: 26px;
    right: 28px;
  }

  .standby-logo-top img {
    height: 56px;
    width: auto;
  }
	.wosi-visual-wrap {
  padding-top: 120px; /* vorher ~70px */
}
	.wosi-copy h1 {
  white-space: nowrap;
}
}

@media (max-width: 860px) {
  .topbar-inner,
  .subnav-inner,
  .container,
  .landing-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar-inner,
  .subnav-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 820px) {
  .wosi-hero {
    padding: 26px 18px 30px;
  }

  .wosi-hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .wosi-copy { max-width: none; }

  .wosi-copy h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.02;
    white-space: normal;
    max-width: 100%;
  }

  .wosi-copy > p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
  }

  .wosi-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 24px;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .wosi-info-cards,
  .dashboard-grid,
  .dashboard-grid-project,
  .module-grid,
  .module-grid-2col {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .info-card {
    min-height: auto;
    padding: 18px 16px;
  }

  .wosi-visual-wrap {
    min-height: auto;
    padding-top: 6px;
    justify-content: center;
  }

  .wosi-orbit-system {
    width: 320px;
    height: 320px;
  }

  .orbit-ring { inset: 38px; }

  .orbit-core {
    width: 74px;
    height: 74px;
    margin-left: -37px;
    margin-top: -37px;
    font-size: 0.95rem;
  }

  .orbit-line { width: 74px; }

  .orbit-node {
    width: 98px;
    height: 98px;
  }

  .orbit-node span {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .node-top {
    top: -2px;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
  }

  .node-left { left: 2px; bottom: 34px; }
  .node-right { right: 2px; bottom: 34px; }

  .standby-logo-top {
    top: 20px;
    right: 20px;
  }

  .standby-logo-top img { height: 48px; }
}

@media (max-width: 620px) {
  .container {
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .login-panel {
    padding: 26px 20px 24px;
    border-radius: 18px;
  }
}

/* =========================================
   WoSI – Projekte / Detailansicht responsive
   Safe CSS step for Desktop, iPad, Mobile
   ========================================= */

.project-link {
  color: var(--s3-teal);
  font-weight: 700;
  text-decoration: none;
}

.project-link:hover {
  color: var(--s3-teal-dark);
  text-decoration: underline;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.module-card .table-wrap {
  border-radius: var(--radius-md);
}

/* Detailansicht unter Projekte */
.dashboard-section .module-card p strong {
  color: var(--s3-navy);
}

.dashboard-grid-project {
  gap: 18px;
}

.dashboard-grid-project .dashboard-card {
  min-height: 0;
}

/* iPad / kleinere Laptops */
@media (max-width: 1180px) {
  .module-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .app-table th,
  .app-table td {
    padding: 12px 12px;
    font-size: 0.92rem;
  }
}

/* Handy */
@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .module-card {
    padding: 18px 16px;
  }

  .app-form button,
  .btn,
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  /* Tabellen auf Mobil bewusst scrollbar statt abgeschnitten */
  .module-card .table-wrap {
    overflow-x: auto;
  }

  .module-card .app-table {
    min-width: 620px;
  }
}
/* WoSI – mobile/tablet fix for projects + customers pages */

/* safer card sizing on narrow screens */
.module-card,
.dashboard-card,
.table-wrap,
.app-form,
.app-form input,
.app-form select,
.app-form textarea,
.app-form button {
  box-sizing: border-box;
}

.project-link {
  color: #23A2AA;
  font-weight: 700;
  text-decoration: none;
}
.project-link:hover { text-decoration: underline; }

/* keep forms inside the viewport */
@media (max-width: 820px) {
  .container,
  .topbar-inner,
  .subnav-inner,
  .landing-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .module-grid,
  .module-grid-2col,
  .dashboard-grid,
  .dashboard-grid-project {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .module-card,
  .dashboard-card {
    min-width: 0;
    padding: 18px 14px;
    overflow: hidden;
  }

  .app-form,
  form {
    min-width: 0;
  }

  .app-form input,
  .app-form select,
  .app-form textarea,
  .app-form button,
  .btn,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 100%;
  }
}

/* project/customer/scenario tables: controlled mobile scrolling instead of clipping */
@media (max-width: 820px) {
  .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap .app-table {
    width: max-content;
    min-width: 620px;
  }

  .table-wrap .app-table th,
  .table-wrap .app-table td {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding: 12px 12px;
    font-size: 0.95rem;
  }
}

/* phone: reduce table footprint and button clipping */
@media (max-width: 640px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .module-card,
  .dashboard-card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .app-form button,
  .btn,
  .btn-primary,
  .btn-secondary {
    display: block;
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.98rem;
  }

  .table-wrap {
    margin-top: 18px;
  }

  .table-wrap .app-table {
    min-width: 560px;
  }

  .table-wrap .app-table th,
  .table-wrap .app-table td {
    padding: 10px 10px;
    font-size: 0.88rem;
  }
}

/* very small phones */
@media (max-width: 420px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .module-card,
  .dashboard-card {
    padding: 14px 10px;
  }

  .table-wrap .app-table {
    min-width: 520px;
  }

  .table-wrap .app-table th,
  .table-wrap .app-table td {
    padding: 9px 8px;
    font-size: 0.84rem;
  }
}
/* =========================================
   WoSI – Projekt-Detailblock Feinschliff
   ========================================= */

.project-detail-section {
  margin-top: 32px;
}

.project-detail-section .project-detail-card,
.project-detail-section .project-snapshot-card,
.project-detail-section .module-card {
  margin-bottom: 0;
}

.project-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.project-detail-title {
  margin: 6px 0 14px;
}

.project-detail-description {
  max-width: 780px;
  margin-bottom: 0;
}

.project-detail-meta {
  align-self: stretch;
}

.project-meta-list {
  display: grid;
  gap: 10px;
}

.project-meta-item {
  display: grid;
  gap: 2px;
}

.project-meta-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--s3-teal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-meta-value {
  color: var(--s3-text);
}

.project-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.project-snapshot-card {
  min-height: 132px;
}

.project-detail-grid {
  gap: 20px;
  margin-top: 20px;
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.project-detail-note {
  margin-top: 16px;
}

.project-detail-section .module-card,
.project-detail-section .dashboard-card {
  box-shadow: 0 1px 0 rgba(1, 19, 43, 0.03);
}

/* etwas mehr Luft zwischen den unteren Reihen */
.project-detail-section .module-grid + .module-grid {
  margin-top: 22px;
}

/* iPad */
@media (max-width: 1180px) {
  .project-detail-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .project-detail-grid {
    gap: 18px;
  }
}

/* Handy */
@media (max-width: 640px) {
  .project-detail-section {
    margin-top: 24px;
  }

  .project-snapshot-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .project-detail-grid {
    gap: 16px;
    margin-top: 16px;
  }

  .project-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-detail-actions .btn,
  .project-detail-actions .btn-primary,
  .project-detail-actions .btn-secondary {
    width: 100%;
  }

  .project-meta-list {
    gap: 12px;
  }
}
/* =========================================
   WoSI – 3.23b Block 2
   Projekt-Hub Feinschliff
   ========================================= */

.project-detail-section {
  margin-top: 34px;
}

.project-detail-card {
  padding: 24px 24px;
}

.project-detail-card--header {
  padding: 26px 24px;
}

.project-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.project-detail-main {
  max-width: 760px;
}

.project-detail-title {
  margin: 6px 0 14px;
  line-height: 1.15;
}

.project-detail-description {
  margin-bottom: 0;
  max-width: 720px;
}

.project-detail-meta {
  align-self: start;
}

.project-meta-list {
  display: grid;
  gap: 12px;
}

.project-meta-item {
  display: grid;
  gap: 2px;
}

.project-meta-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--s3-teal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-meta-value {
  color: var(--s3-text);
  line-height: 1.35;
}

.project-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 20px;
}

.project-snapshot-card {
  min-height: 132px;
  padding: 20px 22px;
}

.project-snapshot-card h3 {
  margin-bottom: 18px;
}

.project-next-step-card {
  border-color: rgba(35, 162, 170, 0.35);
  box-shadow: 0 0 0 1px rgba(35, 162, 170, 0.08);
}

.project-next-step-card h2 {
  margin-bottom: 16px;
}

.project-next-step-card p + p {
  margin-top: 10px;
}

.project-detail-grid {
  gap: 20px;
  margin-top: 20px;
}

.project-detail-grid .module-card {
  min-height: 100%;
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.project-detail-actions .btn,
.project-detail-actions .btn-primary,
.project-detail-actions .btn-secondary {
  min-width: 220px;
}

.project-detail-note {
  margin-top: 16px;
}

.project-detail-section .module-grid + .module-grid {
  margin-top: 22px;
}

.project-detail-section .status {
  margin-top: 14px;
}

.project-detail-section .table-wrap {
  margin-top: 12px;
}

/* Tablet / iPad */
@media (max-width: 1180px) {
  .project-detail-header {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .project-detail-grid {
    gap: 18px;
  }
}

/* Handy */
@media (max-width: 640px) {
  .project-detail-section {
    margin-top: 26px;
  }

  .project-detail-card,
  .project-detail-card--header {
    padding: 20px 16px;
  }

  .project-snapshot-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 18px;
  }

  .project-snapshot-card {
    min-height: auto;
    padding: 18px 16px;
  }

  .project-detail-grid {
    gap: 16px;
    margin-top: 16px;
  }

  .project-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-detail-actions .btn,
  .project-detail-actions .btn-primary,
  .project-detail-actions .btn-secondary {
    width: 100%;
    min-width: 0;
  }

  .project-meta-list {
    gap: 12px;
  }
}
/* =========================================
   WoSI – 3.23c Block 3 Micro Polish
   ========================================= */

.project-next-step-card {
  background: linear-gradient(180deg, rgba(35, 162, 170, 0.04) 0%, rgba(35, 162, 170, 0.02) 100%);
}

.project-snapshot-card p {
  font-weight: 500;
}

.project-meta-value {
  font-weight: 500;
}
/* =========================================
   WoSI – Demo Workspace Journey
   ========================================= */

.page-usecase .topbar,
.page-impact .topbar,
.page-journey .topbar {
  background: linear-gradient(90deg, #1cc9c8 0%, #18bbb9 100%);
  color: #01132b;
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.08);
}

.page-usecase .main-nav a,
.page-impact .main-nav a,
.page-journey .main-nav a {
  color: rgba(1, 19, 43, 0.92);
}

.page-usecase .main-nav a:hover,
.page-usecase .main-nav a.active,
.page-impact .main-nav a:hover,
.page-impact .main-nav a.active,
.page-journey .main-nav a:hover,
.page-journey .main-nav a.active {
  background: rgba(255, 255, 255, 0.28);
  color: #01132b;
}

.journey-page {
  display: grid;
  gap: 28px;
}

.journey-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.journey-eyebrow {
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1b8b92;
}

.journey-lead {
  max-width: 920px;
  color: var(--s3-text);
  font-size: 1.05rem;
}

.journey-intro-note {
  max-width: 800px;
  color: var(--s3-text-soft);
}

.journey-step-nav {
  min-width: 220px;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.journey-step-nav__meta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--s3-text-soft);
}

.journey-step-nav__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.journey-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38c9c8 0%, #28b7b5 100%);
  color: #01132b;
  border: 1px solid rgba(1, 19, 43, 0.18);
  box-shadow: 0 10px 20px rgba(1, 19, 43, 0.08);
  font-weight: 700;
}

.journey-step-btn--ghost {
  background: rgba(255, 255, 255, 0.9);
}

.journey-step-btn--disabled {
  background: #edf2f4;
  color: #94a2b4;
  border-color: #dbe4e8;
  box-shadow: none;
  pointer-events: none;
}

.card-surface,
.journey-hero-card,
.journey-side-nav,
.journey-story-badge {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(1, 19, 43, 0.08);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(1, 19, 43, 0.06);
}

.journey-landing-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.journey-landing-grid--full {
  grid-template-columns: 1fr;
}

.journey-side-nav {
  padding: 24px;
}

.journey-side-nav__title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--s3-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.journey-side-nav__list {
  display: grid;
  gap: 14px;
}

.journey-side-link {
  display: block;
  padding: 18px 20px;
  border-radius: 18px;
  background: #eff4f7;
  border: 1px solid #dde6ec;
  font-size: 1.1rem;
  font-weight: 700;
  color: #01132b;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.journey-side-link:hover {
  transform: translateY(-1px);
  background: #e6fbfb;
  box-shadow: 0 8px 18px rgba(1, 19, 43, 0.08);
}

.journey-hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 520px;
}

.journey-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(28,201,200,0.16), transparent 36%);
  pointer-events: none;
}

.journey-landing-grid--full .journey-hero-card {
  min-height: 500px;
}

.journey-landing-grid--full .journey-hero-placeholder__inner p {
  max-width: 860px;
}

.journey-hero-card__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.journey-hero-card__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6fbfb;
  color: #1b8b92;
  font-size: 0.9rem;
  font-weight: 700;
}

.journey-hero-placeholder__inner {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
}

.journey-hero-placeholder__inner h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.journey-hero-placeholder__inner p {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--s3-text);
}

.journey-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  color: #4c6076;
  background: transparent;
  border: none;
  border-radius: 28px;
  padding: 0px;
}

.journey-image-placeholder--hero {
    width: 100%;
    height: 300px; /* kannst du anpassen */
    border-radius: 16px;
    overflow: hidden;
}

.journey-image-placeholder--hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.journey-hero-image {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
}

.journey-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.journey-basics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.journey-basics-copy,
.journey-basics-visual,
.journey-layout-card,
.journey-metrics-card,
.journey-data-panel {
  padding: 26px;
}

.journey-basics-copy h2 {
  margin-bottom: 20px;
}

.journey-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.journey-mini-card {
  background: #f7f9fb;
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.journey-mini-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* optional: leichter Hover Effekt */
.journey-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.journey-image-placeholder--small {
  min-height: 140px;
  border-radius: 20px;
  font-size: 0.98rem;
}

.journey-panel-title {
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--s3-text-soft);
}

.journey-image-placeholder--big {
  min-height: 520px;
  font-size: 1.35rem;
}

.journey-big-visual-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.journey-story-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.journey-story-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6fbfb;
  color: #1b8b92;
  font-weight: 800;
}

.journey-story-badge strong {
  color: #01132b;
  font-size: 1rem;
}

.journey-story-badge strong .journey-highlight-line {
  display: inline;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-weight: inherit;
}

@media (min-width: 1024px) {
  .journey-story-badge strong .journey-highlight-line {
    display: block;
  }
}

.journey-stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 340px;
  gap: 24px;
  align-items: start;
}

.journey-image-placeholder--layout {
  min-height: 420px;
  font-size: clamp(1.7rem, 2.8vw, 2.9rem);
  color: rgba(185, 36, 36, 0.92);
  font-weight: 700;
}

.journey-layout-note {
  margin-top: 14px;
  color: var(--s3-text-soft);
  font-size: 0.95rem;
}

.journey-chart-wrap {
  margin-bottom: 20px;
}

.journey-image-placeholder--chart {
  min-height: 180px;
  border-radius: 22px;
  color: rgba(185, 36, 36, 0.92);
  font-weight: 700;
}

.journey-metric-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.journey-metric-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7fafb;
  border: 1px solid #e4ecef;
}

.journey-metric-value {
  display: block;
  font-size: 1.38rem;
  font-weight: 800;
  color: #01132b;
}

.journey-metric-label {
  display: block;
  margin-top: 4px;
  color: var(--s3-text-soft);
  font-size: 0.92rem;
}

.journey-legend {
  display: grid;
  gap: 10px;
}

.journey-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f4;
}

.journey-legend-item:last-child {
  border-bottom: 0;
}

.journey-legend-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.journey-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
}

.journey-color-dot--focus { background: #CCCFDB; } /* Arbeitsplätze */
.journey-color-dot--communication { background: #FFECB6; } /* Kommunikation */
.journey-color-dot--collaboration { background: #FFDDCD; } /* Zusammenarbeit */
.journey-color-dot--retreat { background: #B2D7E6; } /* Rückzug */

.journey-stage-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.journey-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.journey-panel-header h2 {
  margin-bottom: 0;
}

.journey-panel-header p {
  margin-bottom: 0;
  color: var(--s3-text-soft);
  font-size: 0.92rem;
}

.journey-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.journey-kv-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.journey-kv-item.is-highlight {
  background: linear-gradient(180deg, rgba(28,201,200,0.12) 0%, rgba(28,201,200,0.06) 100%);
  border-color: rgba(28,201,200,0.24);
}

.journey-kv-label,
.journey-kpi-label {
  color: var(--s3-text-soft);
  font-size: 0.9rem;
}

.journey-kv-value,
.journey-kpi-value {
  color: #01132b;
  font-size: 1.04rem;
}

.journey-kpi-disclaimer,
.journey-modeled-capacity-note {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(1, 19, 43, 0.62);
  font-weight: 500;
}

.journey-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.journey-kpi-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28,201,200,0.14) 0%, rgba(28,201,200,0.07) 100%);
  border: 1px solid rgba(28,201,200,0.22);
}

.journey-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
}

.journey-table-wrap {
  margin-top: 4px;
}

.journey-table th {
  background: #f0f6f8;
}

@media (max-width: 1180px) {
  .journey-landing-grid,
  .journey-basics-grid,
  .journey-stage-top,
  .journey-stage-bottom {
    grid-template-columns: 1fr;
  }

  .journey-step-nav {
    justify-items: start;
  }

  .journey-step-nav__buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .journey-header-row,
  .journey-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .journey-kv-grid,
  .journey-kpi-row,
  .journey-mini-grid {
    grid-template-columns: 1fr;
  }

  .journey-image-placeholder--hero,
  .journey-image-placeholder--big,
  .journey-image-placeholder--layout {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .journey-page {
    gap: 20px;
  }

  .journey-side-nav,
  .journey-hero-card,
  .journey-basics-copy,
  .journey-basics-visual,
  .journey-layout-card,
  .journey-metrics-card,
  .journey-data-panel {
    padding: 18px;
  }

  .journey-side-link {
    padding: 15px 16px;
    font-size: 1rem;
  }

  .journey-story-badge {
    flex-direction: column;
    align-items: flex-start;
  }

  .journey-image-placeholder--chart {
    min-height: 140px;
  }
}
.main-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 36px;
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.1;
}

/* =========================================
   WoSI – Subnav Design Upgrade
   ========================================= */

.subnav-wrap {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(1, 19, 43, 0.08);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.35);
}

.subnav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  min-height: 62px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.subnav-label {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #63788d;
  white-space: nowrap;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subnav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #6b7f93;
  background: transparent;
  border: 1px solid transparent;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.subnav-links a:hover {
  color: var(--s3-navy);
  background: #eef5f7;
  border-color: #d9e6eb;
  transform: translateY(-1px);
}

.subnav-links a.active {
  color: var(--s3-teal-dark);
  background: linear-gradient(180deg, #edf8f9 0%, #e3f4f6 100%);
  border-color: #d1e8eb;
  box-shadow: 0 6px 14px rgba(35, 162, 170, 0.08);
}

.subnav-links a.active:hover {
  color: var(--s3-teal-dark);
  background: linear-gradient(180deg, #edf8f9 0%, #e3f4f6 100%);
  border-color: #c8e1e5;
}

.subnav-info {
  font-size: 0.96rem;
  color: var(--s3-text-soft);
}

/* Desktop etwas luftiger */
@media (min-width: 1024px) {
  .subnav-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .subnav-links a {
    min-height: 42px;
    padding: 0 20px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .subnav-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .subnav-links {
    width: 100%;
    gap: 8px;
  }

  .subnav-links a {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.94rem;
  }
}

/* Handy */
@media (max-width: 640px) {
  .subnav-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .subnav-label {
    font-size: 0.84rem;
  }

  .subnav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subnav-links::-webkit-scrollbar {
    display: none;
  }

  .subnav-links a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}
/* =========================================
   WoSI – Journey Header
   ========================================= */

.journey-header {
  margin-bottom: 28px;
  padding: 22px 24px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border: 1px solid rgba(1, 19, 43, 0.06);
  box-shadow: 0 10px 30px rgba(1, 19, 43, 0.04);
}

/* Top Bereich */
.journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.journey-title h2 {
  margin: 4px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--s3-navy);
}

.journey-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--s3-teal-dark);
  background: rgba(35, 162, 170, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Fortschritt Text */
.journey-progress-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--s3-navy);
}

.step-divider {
  opacity: 0.5;
  margin: 0 4px;
}

/* Progress Bar */
.journey-progress-bar {
  height: 8px;
  width: 100%;
  background: #e8f0f3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.journey-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #23A2AA 0%, #5ec6cc 100%);
  box-shadow: 0 4px 10px rgba(35, 162, 170, 0.2);
  transition: width 0.4s ease;
}

/* Navigation Buttons */
.journey-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.journey-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Secondary */
.journey-btn.secondary {
  color: #6b7f93;
  background: #f2f6f8;
}

.journey-btn.secondary:hover {
  background: #e6eff3;
  color: var(--s3-navy);
}

/* Primary */
.journey-btn.primary {
  color: white;
  background: linear-gradient(90deg, #01132B 0%, #23A2AA 100%);
  box-shadow: 0 8px 18px rgba(1, 19, 43, 0.18);
}

.journey-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(1, 19, 43, 0.22);
}

/* Mobile */
@media (max-width: 640px) {
  .journey-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .journey-nav {
    flex-direction: column;
  }
}
/* =========================================
   WoSI – Journey Step Slider
   ========================================= */

.journey-slider-card {
  margin-bottom: 22px;
  padding: 22px 24px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border: 1px solid rgba(1, 19, 43, 0.06);
  box-shadow: 0 12px 30px rgba(1, 19, 43, 0.05);
}

.journey-slider-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.journey-slider-card__title h1 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.08;
  color: var(--s3-navy);
}

.journey-slider-card__progress {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s3-navy);
  white-space: nowrap;
  padding-top: 8px;
}

.step-divider {
  opacity: 0.45;
}

.journey-step-slider {
  position: relative;
  height: 48px;
  margin: 4px 4px 16px;
  user-select: none;
  touch-action: none;
}

.journey-step-slider__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #e6eef2;
  box-shadow: inset 0 1px 2px rgba(1, 19, 43, 0.05);
}

.journey-step-slider__fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #23a2aa 0%, #53c7cc 100%);
  box-shadow: 0 6px 14px rgba(35, 162, 170, 0.18);
  pointer-events: none;
}

.journey-step-slider__point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.journey-step-slider__dot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  border-radius: 50%;
  background: #b7c7d2;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(1, 19, 43, 0.14);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.journey-step-slider__point:hover .journey-step-slider__dot {
  transform: scale(1.12);
  background: #7fcfd3;
}

.journey-step-slider__point.is-active .journey-step-slider__dot {
  background: var(--s3-teal);
  box-shadow: 0 4px 12px rgba(35, 162, 170, 0.28);
}

.journey-step-slider__handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border: 1px solid rgba(1, 19, 43, 0.08);
  box-shadow: 0 10px 20px rgba(1, 19, 43, 0.14);
  z-index: 4;
  pointer-events: none;
}

.journey-step-slider__handle-inner {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #23a2aa 0%, #15919b 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
}

.journey-step-slider__labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.journey-step-slider__label {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #768a9b;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  transition: color 0.2s ease, transform 0.2s ease;
}

.journey-step-slider__label:hover {
  color: var(--s3-navy);
  transform: translateY(-1px);
}

.journey-step-slider__label.is-active {
  color: var(--s3-teal-dark);
}

@media (max-width: 980px) {
  .journey-slider-card__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .journey-slider-card__progress {
    padding-top: 0;
    font-size: 1.35rem;
  }

  .journey-step-slider__labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 8px;
  }
}

@media (max-width: 640px) {
  .journey-slider-card {
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .journey-slider-card__title h1 {
    font-size: 1.75rem;
  }

  .journey-step-slider {
    height: 44px;
    margin-left: 0;
    margin-right: 0;
  }

  .journey-step-slider__track,
  .journey-step-slider__fill {
    height: 10px;
  }

  .journey-step-slider__handle {
    width: 36px;
    height: 36px;
  }

  .journey-step-slider__handle-inner {
    inset: 8px;
  }

  .journey-step-slider__label {
    font-size: 0.8rem;
  }
}

/* =========================================
   WoSI – Journey Slider Compact Tuning
   ========================================= */

.journey-slider-card {
  margin-bottom: 18px;
  padding: 18px 20px 12px;
  border-radius: 22px;
}

.journey-slider-card__top {
  margin-bottom: 14px;
}

.journey-slider-card__title h1 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  line-height: 1.08;
}

.journey-slider-card__progress {
  font-size: 1.05rem;
  padding-top: 2px;
}

.journey-step-slider {
  height: 34px;
  margin: 2px 2px 8px;
}

.journey-step-slider__track,
.journey-step-slider__fill {
  height: 8px;
}

.journey-step-slider__point {
  width: 24px;
  height: 24px;
}

.journey-step-slider__dot {
  width: 10px;
  height: 10px;
}

.journey-step-slider__handle {
  width: 30px;
  height: 30px;
}

.journey-step-slider__handle-inner {
  inset: 7px;
}

.journey-step-slider__labels {
  margin-top: 2px;
  gap: 8px;
}

.journey-step-slider__label {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.15;
  color: #8193a3;
}

.journey-step-slider__label.is-active {
  color: var(--s3-teal-dark);
  font-weight: 700;
}

.journey-badge {
  font-size: 0.68rem;
  padding: 4px 9px;
}

@media (max-width: 980px) {
  .journey-slider-card {
    padding: 16px 16px 10px;
  }

  .journey-slider-card__title h1 {
    font-size: 1.9rem;
  }

  .journey-step-slider__labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 6px;
  }

  .journey-step-slider__label {
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  .journey-slider-card__title h1 {
    font-size: 1.55rem;
  }

  .journey-slider-card__progress {
    font-size: 1rem;
  }

  .journey-step-slider {
    height: 30px;
  }

  .journey-step-slider__track,
  .journey-step-slider__fill {
    height: 7px;
  }

  .journey-step-slider__handle {
    width: 26px;
    height: 26px;
  }

  .journey-step-slider__handle-inner {
    inset: 6px;
  }

  .journey-step-slider__label {
    font-size: 0.68rem;
  }
}

/* =========================================
   WoSI – Mobile Fix
   Subnav + Journey Slider Labels
   Ganz unten einfügen
   ========================================= */

@media (max-width: 640px) {

  /* ---------- Subnavigation sauber scrollbar ---------- */

  .subnav-wrap {
    overflow: hidden;
  }

  .subnav-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .subnav-label {
    flex: 0 0 auto;
    font-size: 0.8rem;
    line-height: 1.1;
  }

  .subnav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subnav-links::-webkit-scrollbar {
    display: none;
  }

  .subnav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  /* ---------- Journey Slider kompakter ---------- */

  .journey-slider-card {
    padding: 14px 14px 10px;
    border-radius: 18px;
  }

  .journey-slider-card__top {
    gap: 8px;
    margin-bottom: 10px;
  }

  .journey-slider-card__title h1 {
    font-size: 1.2rem;
    line-height: 1.08;
    margin-top: 3px;
  }

  .journey-slider-card__progress {
    font-size: 0.95rem;
    padding-top: 0;
  }

  .journey-step-slider {
    height: 28px;
    margin: 0 0 6px;
  }

  .journey-step-slider__track,
  .journey-step-slider__fill {
    height: 6px;
  }

  .journey-step-slider__point {
    width: 18px;
    height: 18px;
  }

  .journey-step-slider__dot {
    width: 8px;
    height: 8px;
  }

  .journey-step-slider__handle {
    width: 22px;
    height: 22px;
  }

  .journey-step-slider__handle-inner {
    inset: 5px;
  }

  /* ---------- Labels: eine einzige Zeile statt 2 Reihen ---------- */

  .journey-step-slider__labels {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .journey-step-slider__labels::-webkit-scrollbar {
    display: none;
  }

  .journey-step-slider__label {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.66rem;
    line-height: 1;
    padding: 0 2px;
  }

  /* aktive Station etwas klarer */
  .journey-step-slider__label.is-active {
    font-weight: 700;
  }

  /* optional etwas weniger Abstand zum Content */
  .journey-lead {
    font-size: 0.98rem;
    margin-top: 2px;
  }

  .journey-intro-note {
    font-size: 0.95rem;
  }
}

/* =========================================
   WoSI – Mobile Final Tuning
   Topbar + Subnav
   Ganz unten einfügen
   ========================================= */

@media (max-width: 640px) {

  /* ---------- Topbar kompakter und sauberer ---------- */

  .topbar-inner {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .brand-link {
    gap: 10px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-mark {
    font-size: 0.92rem;
  }

  .brand-sub {
    font-size: 0.66rem;
    line-height: 1.05;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    width: 100%;
  }

  .main-nav a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  /* Logout soll optisch nicht so abfallen */
  .main-nav a:last-child {
    margin-left: 0;
  }

  /* ---------- Subnav noch etwas sauberer ---------- */

  .subnav-wrap {
    overflow: hidden;
  }

  .subnav-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 6px;
  }

  .subnav-label {
    font-size: 0.74rem;
    line-height: 1;
  }

  .subnav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding-bottom: 2px;
    padding-right: 12px; /* kleiner Sicherheitspuffer gegen rechtes Abschneiden */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subnav-links::-webkit-scrollbar {
    display: none;
  }

  .subnav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  /* ---------- Journey oben minimal kompakter ---------- */

  .journey-slider-card {
    padding: 12px 12px 8px;
    margin-bottom: 14px;
  }

  .journey-slider-card__top {
    margin-bottom: 8px;
  }

  .journey-slider-card__title h1 {
    font-size: 1.08rem;
    margin-top: 2px;
  }

  .journey-slider-card__progress {
    font-size: 0.88rem;
  }

  .journey-badge {
    font-size: 0.58rem;
    padding: 3px 7px;
  }

  .journey-step-slider {
    height: 24px;
    margin-bottom: 4px;
  }

  .journey-step-slider__labels {
    gap: 8px;
  }

  .journey-step-slider__label {
    font-size: 0.62rem;
  }

  .journey-lead,
  .journey-intro-note {
    font-size: 0.9rem;
  }
}
/* =========================================
   WoSI – Mobile Final Fix
   Hauptnav Pills + Subnav rechts nicht abschneiden
   Ganz unten einfügen
   ========================================= */

@media (max-width: 640px) {

  /* ---------- Hauptnavigation optisch sauber zentrieren ---------- */

  .topbar-inner {
    align-items: flex-start;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    line-height: 1;
    border-radius: 999px;
    vertical-align: middle;
  }

  .main-nav a.active,
  .main-nav a:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ---------- Subnav: rechter Rand mit Sicherheitspuffer ---------- */

  .subnav-wrap {
    overflow: visible;
  }

  .subnav-inner {
    overflow: hidden;
    padding-left: 12px;
    padding-right: 12px;
  }

  .subnav-links {
    width: 100%;
    max-width: 100%;
    padding-right: 22px; /* mehr Luft rechts */
    margin-right: -6px;  /* optischer Ausgleich */
    box-sizing: border-box;
  }

  .subnav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}
/* =========================================
   WoSI – Journey Stage Layout Upgrade
   Effekte über volle Breite, Rahmenbedingungen darunter
   Ganz unten einfügen
   ========================================= */

.journey-stage-stack {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.journey-effects-panel,
.journey-conditions-panel {
  width: 100%;
}

.journey-kv-grid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journey-effects-matrix {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.journey-effects-matrix__head,
.journey-effects-matrix__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.75fr 1fr;
  gap: 12px;
  align-items: center;
}

.journey-effects-matrix__head {
  padding: 0 4px 6px;
  border-bottom: 1px solid #e5edef;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--s3-text-soft);
  text-transform: none;
}

.journey-effects-matrix__row {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.journey-effects-matrix__model {
  font-weight: 800;
  color: #01132b;
}

.journey-effects-matrix__row > div {
  font-size: 0.94rem;
  color: var(--s3-text);
}

.journey-effects-panel .journey-kpi-row {
  margin-bottom: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.journey-conditions-panel .journey-kv-item {
  min-height: 86px;
  align-content: start;
}

@media (max-width: 1180px) {
  .journey-kv-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-effects-matrix__head,
  .journey-effects-matrix__row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .journey-effects-matrix__head div:nth-child(4),
  .journey-effects-matrix__head div:nth-child(5),
  .journey-effects-matrix__row div:nth-child(4),
  .journey-effects-matrix__row div:nth-child(5) {
    display: none;
  }
}

@media (max-width: 900px) {
  .journey-kv-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-effects-matrix__head,
  .journey-effects-matrix__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .journey-effects-matrix__head {
    display: none;
  }

  .journey-effects-matrix__row {
    gap: 8px;
  }

  .journey-effects-matrix__row > div {
    display: grid;
    gap: 2px;
  }

  .journey-effects-matrix__row > div::before {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--s3-text-soft);
  }

  .journey-effects-matrix__row > div:nth-child(1)::before { content: "Modell"; }
  .journey-effects-matrix__row > div:nth-child(2)::before { content: "Kosten / Nutzungseinheit / Monat"; }
  .journey-effects-matrix__row > div:nth-child(3)::before { content: "Mieteinsparung / Jahr"; }
  .journey-effects-matrix__row > div:nth-child(4)::before { content: "Fläche (m²)"; }
  .journey-effects-matrix__row > div:nth-child(5)::before { content: "Modellierter Kapazitäts-/Produktivitätswert / Jahr"; }

  .journey-effects-matrix__head div:nth-child(4),
  .journey-effects-matrix__head div:nth-child(5),
  .journey-effects-matrix__row div:nth-child(4),
  .journey-effects-matrix__row div:nth-child(5) {
    display: block;
  }
}

@media (max-width: 640px) {
  .journey-stage-stack {
    gap: 18px;
    margin-top: 18px;
  }

  .journey-kv-grid--wide {
    grid-template-columns: 1fr;
  }

  .journey-effects-matrix__row {
    padding: 12px 14px;
    border-radius: 16px;
  }
}

/* =========================================
   WoSI – Journey Stage Top Height Balancing
   Flächenkennung an Layouthöhe annähern
   Ganz unten einfügen
   ========================================= */

.journey-stage-top {
  align-items: stretch;
}

.journey-layout-card,
.journey-metrics-card {
  height: 100%;
}

.journey-metrics-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  padding: 20px 20px 18px;
}

.journey-metrics-card .journey-panel-title {
  margin-bottom: 10px;
}

.journey-chart-wrap {
  margin-bottom: 14px;
}

.journey-image-placeholder--chart {
  min-height: 128px;
  border-radius: 18px;
  font-size: 0.92rem;
}

.journey-metric-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.journey-metric-item {
  padding: 12px 14px;
  border-radius: 14px;
}

.journey-metric-value {
  font-size: 1.12rem;
  line-height: 1.05;
}

.journey-metric-label {
  margin-top: 3px;
  font-size: 0.8rem;
  line-height: 1.2;
}

.journey-legend {
  margin-top: auto;
  gap: 8px;
}

.journey-legend-item {
  padding: 8px 0;
}

.journey-legend-item strong {
  font-size: 0.88rem;
}

.journey-legend-left {
  gap: 8px;
  font-size: 0.88rem;
}

.journey-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Layoutblock optisch etwas geschlossener */
.journey-layout-card {
  display: flex;
  flex-direction: column;
}

.journey-image-placeholder--layout {
  min-height: 360px;
}

.journey-layout-note {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.25;
}

/* Tablet / kleiner Desktop */
@media (max-width: 1180px) {
  .journey-metrics-card {
    padding: 18px 18px 16px;
  }

  .journey-image-placeholder--chart {
    min-height: 120px;
  }

  .journey-image-placeholder--layout {
    min-height: 320px;
  }
}

/* Mobile bleibt gestapelt */
@media (max-width: 900px) {
  .journey-metrics-card {
    min-height: auto;
  }

  .journey-legend {
    margin-top: 10px;
  }

  .journey-image-placeholder--layout {
    min-height: 280px;
  }
}

/* =========================================
   WoSI – Journey Effects Matrix Feinschliff
   Ganz unten einfügen
   ========================================= */

.journey-effects-matrix--comparison {
  margin-top: 6px;
}

.journey-effects-matrix__head {
  font-size: 0.8rem;
  line-height: 1.22;
}

.journey-effects-matrix__head div:first-child {
  color: var(--s3-navy);
}

.journey-effects-matrix__row > div {
  line-height: 1.25;
}

@media (max-width: 1180px) {
  .journey-effects-matrix__head {
    font-size: 0.76rem;
  }
}

/* =========================================
   WoSI – iPhone Real Device Overflow Fix
   Ganz unten einfügen
   ========================================= */

@media (max-width: 640px) {

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    width: 100%;
  }

  .container,
  .journey-page,
  .journey-stage-top,
  .journey-stage-stack,
  .journey-layout-card,
  .journey-metrics-card,
  .journey-effects-panel,
  .journey-conditions-panel,
  .journey-slider-card,
  .journey-hero-card,
  .card-surface {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* wichtigste Korrektur: Subnav nicht künstlich breiter machen */
  .subnav-inner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-left: 12px;
    padding-right: 12px;
  }

  .subnav-links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
    padding-right: 8px;
    box-sizing: border-box;
  }

  /* Hauptnavigation ebenfalls hart begrenzen */
  .topbar-inner,
  .main-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Journey Slider und Labels dürfen nicht die Seite verbreitern */
  .journey-step-slider,
  .journey-step-slider__labels {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .journey-step-slider__labels {
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 4px;
  }

  /* Stage-Top auf Mobile wirklich sauber einspaltig */
  .journey-stage-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .journey-layout-card,
  .journey-metrics-card {
    overflow: hidden;
  }

  /* Placeholder nicht breiter als Card */
  .journey-image-placeholder,
  .journey-image-placeholder--layout,
  .journey-image-placeholder--chart {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Effekte-Matrix und KV-Grid dürfen Mobile nicht aufblasen */
  .journey-effects-matrix,
  .journey-kv-grid,
  .journey-kv-grid--wide,
  .journey-kpi-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
/* =========================================
   WoSI – Journey Stage Layout Images
   vollständig sichtbar statt beschnitten
   ========================================= */

.journey-layout-image-wrap {
  width: 100%;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: #f5f7f9;
  border: 1px solid rgba(1, 19, 43, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.journey-layout-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .journey-layout-image-wrap {
    min-height: 320px;
  }

  .journey-layout-image {
    max-height: 420px;
  }
}

@media (max-width: 900px) {
  .journey-layout-image-wrap {
    min-height: 280px;
    padding: 10px;
  }

  .journey-layout-image {
    max-height: 340px;
  }
}
/* =========================================
   WoSI – Journey Stage Top Rebalance
   Layout links + Arbeitsmodi unten
   Flächenkennung rechts kompakter
   Ganz unten einfügen
   ========================================= */

.journey-stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 320px;
  gap: 24px;
  align-items: stretch;
}

.journey-stage-left {
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  min-width: 0;
}

.journey-layout-card {
  display: flex;
  flex-direction: column;
}

.journey-layout-image-wrap {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
}

.journey-layout-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid rgba(1, 19, 43, 0.10);
}

.journey-layout-note {
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.25;
}

.journey-distribution-card {
  padding: 18px 22px;
}

.journey-distribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
}

.journey-distribution-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f4;
}

.journey-distribution-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.journey-metrics-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 20px 18px;
  height: 100%;
}

.journey-chart-wrap {
  margin-bottom: 14px;
}

.journey-image-placeholder--chart {
  min-height: 142px;
  border-radius: 20px;
}

.journey-metric-stack--balanced {
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: space-between;
}

.journey-metric-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7fafb;
  border: 1px solid #e4ecef;
}

.journey-metric-item--highlight {
  background: linear-gradient(180deg, rgba(28,201,200,0.12) 0%, rgba(28,201,200,0.06) 100%);
  border-color: rgba(28,201,200,0.24);
}

.journey-metric-value {
  display: block;
  font-size: 1.16rem;
  line-height: 1.05;
  font-weight: 800;
}

.journey-metric-label {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.journey-legend-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.journey-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Tablet */
@media (max-width: 1180px) {
  .journey-stage-top {
    grid-template-columns: 1fr;
  }

  .journey-distribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-metric-stack--balanced {
    align-content: start;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .journey-stage-left {
    gap: 14px;
  }

  .journey-distribution-card {
    padding: 16px 16px;
  }

  .journey-distribution-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .journey-distribution-item {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f4;
  }

  .journey-distribution-item:last-child {
    border-bottom: 0;
  }
}
/* =========================================
   WoSI – Journey Dynamic Pie Chart
   Ganz unten einfügen
   ========================================= */

.journey-chart-svg-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  padding: 12px;
  border-radius: 16px;

  background: #f7fafb;
  border: 1px dashed rgba(1, 19, 43, 0.16);
}

.journey-chart-svg {
  display: block;
  width: 140px;
  height: 140px;
  overflow: visible;
}

@media (max-width: 1180px) {
  .journey-chart-svg-card {
    max-width: 200px;
  }
}

@media (max-width: 640px) {
  .journey-chart-svg-card {
    max-width: 190px;
    padding: 8px;
    border-radius: 18px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .journey-chart-svg path,
  .journey-chart-svg circle {
    cursor: pointer;
  }
}

/* =========================================
   WoSI – FINAL Journey Layout Fade
   ganz unten lassen
   ========================================= */

.journey-layout-image-wrap {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  border: 0;
  padding: 0;
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-layout-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(1, 19, 43, 0.10);

  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s ease;
}

/* Startzustand */
.journey-layout-image-wrap.is-preload {
  opacity: 0;
}

.journey-layout-image-wrap.is-preload .journey-layout-image {
  opacity: 0.01;
  transform: scale(1.012);
  filter: blur(5px);
}

/* weiches Einblenden */
.journey-layout-image-wrap.is-visible {
  opacity: 1;
}

.journey-layout-image-wrap.is-visible .journey-layout-image {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Ausblendung vor Seitenwechsel */
.journey-layout-image-wrap.is-fading-out {
  opacity: 0;
  transition: opacity 0.38s ease-in-out;
}

.journey-layout-image-wrap.is-fading-out .journey-layout-image {
  opacity: 0.15;
  transform: scale(0.995);
  filter: blur(2px);
}
/* =========================================
   WoSI – Basics Swap Layout
   Großes Bild links, 4 Moduskarten rechts
   Ganz unten einfügen
   ========================================= */

.journey-basics-grid--swapped {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.journey-basics-visual--left,
.journey-basics-copy--right {
  height: 100%;
}

.journey-basics-visual--left {
  display: flex;
  flex-direction: column;
}

.journey-big-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f9fb;
  border-radius: 20px;
  padding: 14px;
  overflow: hidden;
}

.journey-big-visual-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.journey-basics-copy--right {
  display: flex;
  flex-direction: column;
}

.journey-basics-copy--right > p:last-of-type {
  margin-bottom: 0;
}

.journey-mini-grid--with-copy {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-content: end;
}

.journey-mini-card--descriptive {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  padding: 16px;
  background: #f7f9fb;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.06);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
}

.journey-mini-card__copy {
  margin-bottom: 14px;
}

.journey-mini-card__copy h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.15;
}

.journey-mini-card__copy p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.38;
  color: var(--s3-text-soft);
}

.journey-mini-card--descriptive:nth-child(1) .journey-mini-card__copy h3 {
  color: #68aeca;
}

.journey-mini-card--descriptive:nth-child(2) .journey-mini-card__copy h3 {
  color: #a6b94f;
}

.journey-mini-card--descriptive:nth-child(3) .journey-mini-card__copy h3 {
  color: #e79b45;
}

.journey-mini-card--descriptive:nth-child(4) .journey-mini-card__copy h3 {
  color: #d38f9b;
}

.journey-mini-card--descriptive .journey-mini-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-top: auto;
}

@media (max-width: 1180px) {
  .journey-basics-grid--swapped {
    grid-template-columns: 1fr;
  }

  .journey-mini-card--descriptive {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .journey-mini-grid--with-copy {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .journey-mini-card--descriptive {
    padding: 14px;
  }

  .journey-mini-card__copy h3 {
    font-size: 0.96rem;
  }

  .journey-mini-card__copy p {
    font-size: 0.82rem;
  }
}
/* =========================================
   WoSI – Basics FINAL Fix
   - gleiche Höhe der Cards
   - saubere Proportionen
   - keine doppelten Bilder
   ========================================= */

.journey-basics-grid--swapped {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

/* Beide Cards gleich hoch */
.journey-basics-copy--left,
.journey-basics-visual--right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* LINKS: Text + großes Bild */
.journey-big-visual--embedded {
  margin-top: 20px;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.journey-big-visual-image {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* RECHTS: 4 Karten sauber ausrichten */
.journey-mini-grid--with-copy {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  height: 100%;
  align-content: space-between;
}

/* einzelne Karten */
.journey-mini-card--descriptive {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: #f7f9fb;
  border-radius: 18px;
  border: 1px solid rgba(1,19,43,0.06);
  min-height: 260px;
}

/* Textbereich */
.journey-mini-card__copy {
  margin-bottom: 12px;
}

.journey-mini-card__copy h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.2;
}

.journey-mini-card__copy p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #5f6b7a;
}

/* Bilder */
.journey-mini-card--descriptive .journey-mini-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-top: auto;
}

/* WICHTIG: alte Placeholder komplett killen */
.journey-image-placeholder,
.journey-image-placeholder--small {
  display: none !important;
}

/* Mobile */
@media (max-width: 1100px) {
  .journey-basics-grid--swapped {
    grid-template-columns: 1fr;
  }

  .journey-mini-grid--with-copy {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI – Standby Mobile Orbit Reorder
   Orbit direkt unter Headline nur auf Handy
   ========================================= */

.wosi-visual-wrap-mobile {
  display: none;
}

@media (max-width: 640px) {
  .wosi-copy {
    display: flex;
    flex-direction: column;
  }

  .wosi-copy .wosi-eyebrow {
    order: 1;
  }

  .wosi-copy h1 {
    order: 2;
    margin-bottom: 0;
  }

  .wosi-visual-wrap-mobile {
    display: flex;
    order: 3;
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 8px;
    justify-content: center;
  }

  .wosi-copy > p {
    order: 4;
    margin-top: 4px;
  }

  .wosi-actions {
    order: 5;
  }

  .wosi-info-cards {
    order: 6;
  }

  .wosi-visual-wrap-desktop {
    display: none;
  }

  .wosi-visual-wrap-mobile .wosi-orbit-system {
    width: 320px;
    height: 320px;
  }
}


/* =========================================
   WoSI – Standby Mobile Orbit Final Polish
   Headline mittig + Modulname korrigiert
   ganz unten lassen
   ========================================= */

@media (max-width: 640px) {
  .wosi-copy .wosi-eyebrow {
    text-align: left;
  }

  .wosi-copy h1 {
    text-align: center;
    margin-bottom: 0;
  }

  .wosi-visual-wrap-mobile {
    padding-top: 28px;
    padding-bottom: 10px;
  }

  .wosi-visual-wrap-mobile .orbit-node span {
    font-size: 0.72rem;
    line-height: 1.08;
  }

  .wosi-visual-wrap-mobile .node-top span {
    letter-spacing: -0.01em;
  }
}
/* =========================================
   WoSI – Journey Panel Toggles
   Kennzahleneffekte / Rahmenbedingungen
   Ganz unten einfügen
   ========================================= */

.journey-panel-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.journey-panel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.journey-panel-toggle__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(1, 19, 43, 0.08);
  box-shadow: 0 10px 24px rgba(1, 19, 43, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: #01132b;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.journey-panel-toggle__label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eaf5f4;
  color: #23364a;
  font-size: 0.98rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.journey-panel-toggle:hover .journey-panel-toggle__icon {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(1, 19, 43, 0.08);
}

.journey-panel-toggle:hover .journey-panel-toggle__label {
  background: #e2f1ef;
}

.journey-panel-toggle.is-open .journey-panel-toggle__icon {
  background: #ffffff;
  color: #01132b;
}

.journey-panel-toggle.is-open .journey-panel-toggle__label {
  background: #dff1ef;
  color: #01132b;
}

.journey-panel-collapse {
  display: none;
}

.journey-panel-collapse.is-open {
  display: block;
}

.journey-stage-stack {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .journey-panel-toggles {
    gap: 14px;
  }

  .journey-panel-toggle__icon {
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
  }

  .journey-panel-toggle__label {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.9rem;
  }
}

/* =========================================
   WoSI – Grundlagen Zusatzkacheln FINAL
   Bild-Platzhalter statt SVG
   bisherigen Block komplett ersetzen
   ========================================= */

.journey-basics-extra {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.journey-basics-info-card {
  padding: 22px 24px;
}

.journey-basics-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.journey-basics-info-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.journey-basics-info-item--full {
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.journey-basics-info-media {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  background: #f7f9fb;
  border: 1px solid rgba(1, 19, 43, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 10px;
}

.journey-basics-info-media--desksharing {
  width: 400px;
  height: 330px;
  border-radius: 20px;
  padding: 12px;
}

.journey-basics-info-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.journey-basics-info-copy {
  margin-bottom: 10px;
}

.journey-basics-info-copy strong {
  display: block;
  margin-top: 10px;
  color: var(--s3-navy);
}

.desksharing-example {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f7fafb;
  border: 1px solid #e4ecef;
}

.journey-basics-info-media--desksharing {
  box-shadow: 0 12px 30px rgba(1, 19, 43, 0.12);
  background: white;
}

.journey-basics-info-copy h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--s3-navy);
}

.journey-basics-info-copy p {
  margin: 0 0 8px;
  font-size: 0.91rem;
  line-height: 1.5;
  color: var(--s3-text);
}

.journey-basics-info-copy p:last-child {
  margin-bottom: 0;
}

.journey-basics-info-card--desksharing .journey-basics-info-copy h3 {
  margin-bottom: 10px;
}

/* Tablet */
@media (max-width: 1180px) {
  .journey-basics-info-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .journey-basics-info-card {
    padding: 20px 20px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .journey-basics-extra {
    gap: 16px;
    margin-top: 18px;
  }

  .journey-basics-info-card {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .journey-basics-info-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .journey-basics-info-item--full {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
  }

  .journey-basics-info-media {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    padding: 8px;
  }

  .journey-basics-info-media--desksharing {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    padding: 9px;
  }

  .journey-basics-info-copy h3 {
    font-size: 0.94rem;
    margin-bottom: 6px;
  }

  .journey-basics-info-copy p {
    font-size: 0.84rem;
    line-height: 1.4;
  }
}
/* =========================================
   WoSI – Premium Hover Effekt (Desksharing Card)
   Bild + gesamte Kachel hebt sich an
   ========================================= */

/* Container vorbereiten */
.journey-basics-info-media--desksharing {
  overflow: hidden;
  border-radius: 16px;
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

/* Bild Basiszustand */
.journey-basics-info-media--desksharing .journey-basics-info-image {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 0.5s ease;
  transform-origin: center center;
  will-change: transform;
}

/* Hover nur auf Desktop / mit Maus */
@media (hover: hover) and (pointer: fine) {

  .journey-basics-info-media--desksharing:hover {
    transform: translateY(-4px);
    box-shadow: 
      0 18px 40px rgba(1, 19, 43, 0.12),
      0 6px 14px rgba(1, 19, 43, 0.08);
    background: rgba(255,255,255,0.65);
  }

  .journey-basics-info-media--desksharing:hover .journey-basics-info-image {
    transform: scale(1.18);
  }

}
/* =========================================
   WoSI – Grundlagen Toggle Panels
   Definitionen + Desksharing
   ganz unten einfügen
   ========================================= */

.journey-basics-toggles {
  margin-top: 24px;
  margin-bottom: 6px;
}

.journey-basics-extra {
  margin-top: 6px;
}

.journey-basics-extra .journey-panel-collapse.is-open {
  display: block;
}

.journey-basics-extra .journey-panel-collapse + .journey-panel-collapse {
  margin-top: 0;
}

@media (max-width: 640px) {
  .journey-basics-toggles {
    margin-top: 18px;
    margin-bottom: 4px;
  }

  .journey-basics-extra {
    margin-top: 4px;
  }
}
/* =========================================
   WoSI – Kosten-/Nutzen-Simulation
   Schritt A2 – Frontend Styling
   Ganz unten einfügen
   ========================================= */

.page-impact .topbar {
  background: linear-gradient(90deg, #1cc9c8 0%, #18bbb9 100%);
  color: #01132b;
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.08);
}

.page-impact .main-nav a {
  color: rgba(1, 19, 43, 0.92);
}

.page-impact .main-nav a:hover,
.page-impact .main-nav a.active {
  background: rgba(255, 255, 255, 0.28);
  color: #01132b;
}

.impact-page {
  display: grid;
  gap: 24px;
}

.impact-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.impact-header-row h1 {
  margin-bottom: 10px;
}

.impact-lead {
  max-width: 980px;
  color: var(--s3-text);
  font-size: 1.04rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.impact-header-actions {
  flex: 0 0 auto;
}

.impact-calc-btn {
  min-width: 170px;
  min-height: 54px;
  border-radius: 18px;
  background: #edf7f7;
  color: #01132b;
  border: 1px solid #d8ecec;
  box-shadow: none;
}

.impact-calc-btn:hover {
  background: #e3f3f3;
  border-color: #cfe6e6;
}

.impact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 300px;
  gap: 22px;
  align-items: start;
}

.impact-main,
.impact-sidebar {
  display: grid;
  gap: 22px;
}

.impact-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(1, 19, 43, 0.07);
  border-radius: 26px;
  box-shadow: 0 10px 26px rgba(1, 19, 43, 0.05);
}

.impact-panel {
  padding: 22px 20px;
}

.impact-panel-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #22b8bd;
}

.impact-metric-grid {
  display: grid;
  gap: 14px;
}

.impact-metric-grid--inputs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-metric-grid--results {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-metric-grid--conditions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-field-card,
.impact-value-card {
  min-height: 92px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: #f7fafb;
  border: 1px solid #edf2f4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.impact-field-label {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
  color: #4d6278;
}

.impact-value-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 800;
  color: #01132b;
  letter-spacing: -0.02em;
}

.impact-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d6e1e6;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--s3-text);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.impact-input:focus {
  outline: none;
  border-color: #87cfd2;
  box-shadow: 0 0 0 4px rgba(35, 162, 170, 0.10);
  background: #fff;
}

.impact-sidebar .impact-panel {
  padding: 20px 18px;
}

.impact-slider-group + .impact-slider-group {
  margin-top: 18px;
}

.impact-slider-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #23364a;
}

.impact-range,
.impact-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  margin: 0;
}

.impact-range:focus,
.impact-slider:focus {
  outline: none;
}

.impact-range::-webkit-slider-runnable-track,
.impact-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: #dff1f2;
}

.impact-range::-webkit-slider-thumb,
.impact-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #20b7bd;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.16);
  margin-top: -6px;
  cursor: pointer;
}

.impact-range::-moz-range-track,
.impact-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #dff1f2;
}

.impact-range::-moz-range-thumb,
.impact-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #20b7bd;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.16);
  cursor: pointer;
}

.impact-slider-scale {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #7a8ea0;
}

.impact-slider-scale span:nth-child(2) {
  font-size: 0.86rem;
  font-weight: 700;
  color: #20aeb4;
  background: #eef8f8;
  border: 1px solid #dceeee;
  border-radius: 999px;
  padding: 4px 10px;
  min-width: 68px;
  text-align: center;
}

.impact-slider-scale span:first-child {
  justify-self: start;
}

.impact-slider-scale span:last-child {
  justify-self: end;
}

.impact-check-option,
.impact-radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  color: #2d4055;
}

.impact-check-option + .impact-check-option,
.impact-radio-option + .impact-radio-option {
  margin-top: 12px;
}

.impact-check-option input,
.impact-radio-option input {
  width: 19px;
  height: 19px;
  accent-color: #22b8bd;
  flex: 0 0 auto;
}

.impact-summary-btn {
  min-height: 58px;
  border-radius: 18px;
  background: #edf7f7;
  color: #01132b;
  border: 1px solid #d8ecec;
  box-shadow: none;
  font-size: 1.02rem;
}

.impact-summary-btn:hover {
  background: #e3f3f3;
  border-color: #cfe6e6;
}

.impact-bottom-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: -2px;
}

.impact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.impact-toggle-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(1, 19, 43, 0.08);
  box-shadow: 0 10px 20px rgba(1, 19, 43, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
  color: #01132b;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.impact-toggle-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eaf5f4;
  color: #23364a;
  font-size: 0.96rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.impact-toggle:hover .impact-toggle-icon {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(1, 19, 43, 0.08);
}

.impact-toggle:hover .impact-toggle-label {
  background: #e2f1ef;
}

.impact-toggle.is-open .impact-toggle-label {
  background: #dff1ef;
  color: #01132b;
}

.impact-collapse {
  display: none;
  padding: 22px 20px;
}

.impact-collapse.is-open {
  display: block;
}

.impact-options-note {
  margin: 0;
  color: var(--s3-text-soft);
  line-height: 1.5;
}

.impact-investment-result.is-hidden {
  display: none;
}

/* bessere Optik im Projektkopf */
.page-impact .project-detail-card--header {
  padding: 22px 22px;
}

.page-impact .project-detail-header {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 26px;
}

.page-impact .project-detail-title {
  margin-bottom: 14px;
}

.page-impact .project-detail-description {
  max-width: 820px;
}

.page-impact .project-meta-label {
  color: #20aeb4;
}

/* Hover-Feeling ähnlich Journey */
.impact-card,
.impact-field-card,
.impact-value-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.impact-card:hover {
  border-color: rgba(35, 162, 170, 0.12);
  box-shadow: 0 14px 32px rgba(1, 19, 43, 0.06);
}

.impact-field-card:hover,
.impact-value-card:hover {
  background: #f4fbfb;
  border-color: #dcedef;
}

/* große Desktop-Bildschirme */
@media (min-width: 1400px) {
  .impact-layout {
    grid-template-columns: minmax(0, 1.62fr) 320px;
  }
}

/* Tablet / iPad */
@media (max-width: 1180px) {
  .impact-layout {
    grid-template-columns: 1fr;
  }

  .impact-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .impact-summary-btn {
    grid-column: 1 / -1;
  }

  .impact-metric-grid--inputs,
  .impact-metric-grid--results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-metric-grid--conditions {
    grid-template-columns: 1fr;
  }

  .page-impact .project-detail-header {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .impact-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .impact-header-actions,
  .impact-calc-btn {
    width: 100%;
  }

  .impact-main,
  .impact-sidebar {
    gap: 18px;
  }

  .impact-sidebar {
    grid-template-columns: 1fr;
  }

  .impact-metric-grid--inputs,
  .impact-metric-grid--results,
  .impact-metric-grid--conditions {
    grid-template-columns: 1fr;
  }

  .impact-panel,
  .impact-collapse {
    padding: 18px 16px;
  }

  .impact-field-card,
  .impact-value-card {
    min-height: 84px;
    padding: 13px 13px 11px;
  }

  .impact-value-card strong {
    font-size: 1.45rem;
  }

  .impact-bottom-toggles {
    gap: 14px;
  }

  .impact-toggle-icon {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }

  .impact-toggle-label {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .impact-slider-scale {
    font-size: 0.76rem;
  }

  .impact-slider-scale span:nth-child(2) {
    min-width: 60px;
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

/* kleine Handys */
@media (max-width: 480px) {
  .impact-header-row h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .impact-lead {
    font-size: 0.96rem;
  }

  .impact-panel-title {
    font-size: 1rem;
  }

  .impact-value-card strong {
    font-size: 1.3rem;
  }
}

/* =========================================
   WoSI – Kosten-/Nutzen-Simulation
   Schritt A2b – UX / Layout Feinschliff
   ganz unten einfügen
   ========================================= */

.impact-project-context-section {
  margin-bottom: 18px;
}

.impact-project-context {
  display: grid;
  gap: 14px;
  padding: 14px 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(35, 162, 170, 0.10);
}

.impact-project-context__title {
  margin: 2px 0 0;
  font-size: 1.75rem;
  line-height: 1.12;
  color: var(--s3-navy);
}

.impact-project-context__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f7f8;
  border: 1px solid #dde8ec;
  color: #23364a;
  font-size: 0.94rem;
  font-weight: 500;
}

.impact-chip strong {
  color: #20aeb4;
  font-weight: 800;
}

.impact-project-context__details {
  border-top: 1px solid rgba(1, 19, 43, 0.07);
  padding-top: 12px;
}

.impact-project-context__details summary {
  list-style: none;
  cursor: pointer;
  color: #20aeb4;
  font-size: 0.94rem;
  font-weight: 700;
}

.impact-project-context__details summary::-webkit-details-marker {
  display: none;
}

.impact-project-context__details summary::after {
  content: " +";
}

.impact-project-context__details[open] summary::after {
  content: " –";
}

.impact-project-context__details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.impact-project-context__detail-item {
  display: grid;
  gap: 4px;
}

.impact-project-context__detail-item--full {
  grid-column: 1 / -1;
}

.impact-project-context__detail-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #20aeb4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.impact-project-context__detail-value {
  color: var(--s3-text);
  line-height: 1.45;
}

.impact-header-row {
  align-items: end;
}

.impact-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.impact-calc-btn {
  min-width: 190px;
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #eef8f8 100%);
  border: 1px solid #d6ecec;
  box-shadow: 0 10px 24px rgba(35, 162, 170, 0.10);
  font-size: 1.02rem;
  font-weight: 800;
}

.impact-calc-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff 0%, #e7f5f5 100%);
}

.impact-results-panel {
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.impact-results-panel.is-locked {
  opacity: 0.42;
  filter: grayscale(0.12);
}

.impact-results-panel.is-locked .impact-value-card strong {
  opacity: 0.72;
}

.impact-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -2px;
}

.impact-bottom-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.impact-summary-btn {
  min-width: 240px;
  min-height: 56px;
  border-radius: 18px;
  background: #edf7f7;
  color: #01132b;
  border: 1px solid #d8ecec;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 800;
}

.impact-summary-btn.is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .impact-project-context__details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .impact-project-context {
    padding: 14px 14px 15px;
  }

  .impact-project-context__title {
    font-size: 1.45rem;
  }

  .impact-project-context__chips {
    gap: 8px;
  }

  .impact-chip {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .impact-project-context__details-grid {
    grid-template-columns: 1fr;
  }

  .impact-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .impact-bottom-actions,
  .impact-summary-btn {
    width: 100%;
  }
}

/* =========================================
   WoSI – Impact Fine Tuning
   Sicherer Feinschliff auf gutem Arbeitsstand
   Ganz unten einfügen
   ========================================= */

.impact-project-context-section {
  margin-bottom: 30px;
}

.impact-project-context {
  padding: 12px 16px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(35, 162, 170, 0.08);
  box-shadow: none;
}

.impact-project-context__title {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.impact-project-context__chips {
  gap: 8px;
  margin-top: 10px;
}

.impact-chip {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.88rem;
  background: #f4f8f9;
}

.impact-project-context__details {
  padding-top: 10px;
}

.impact-project-context__details summary {
  font-size: 0.9rem;
}

.impact-page {
  gap: 28px;
}

.impact-header-row {
  align-items: center;
  margin-top: 4px;
}

.impact-header-row h1 {
  margin-bottom: 12px;
}

.impact-lead {
  max-width: 860px;
}

.impact-header-actions {
  align-self: center;
}

.impact-calc-btn {
  min-width: 180px;
  min-height: 60px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #eff9f9 100%);
  border: 1px solid #d6ecec;
  box-shadow: 0 10px 24px rgba(35, 162, 170, 0.12);
}

.impact-calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(35, 162, 170, 0.16);
}

.impact-layout {
  align-items: start;
}

.impact-main {
  gap: 24px;
}

.impact-sidebar {
  gap: 18px;
}

.impact-panel-title {
  margin-bottom: 18px;
}

.impact-results-panel {
  min-height: 334px;
}

.impact-results-panel.is-locked {
  opacity: 0.38;
  filter: grayscale(0.10);
}

.impact-bottom-row {
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: -6px;
}

.impact-bottom-toggles {
  gap: 16px;
  flex: 1 1 auto;
}

.impact-bottom-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.impact-summary-btn {
  min-width: 250px;
  min-height: 58px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 800;
}

.impact-summary-btn.is-hidden {
  display: none !important;
}

.impact-toggle {
  align-items: center;
}

.impact-toggle-label {
  min-height: 40px;
  padding: 0 18px;
}

.impact-collapse {
  margin-top: -8px;
}

@media (max-width: 1180px) {
  .impact-project-context-section {
    margin-bottom: 24px;
  }

  .impact-header-row {
    align-items: flex-start;
  }

  .impact-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .impact-bottom-actions {
    margin-left: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .impact-project-context {
    padding: 12px 14px 14px;
  }

  .impact-project-context__title {
    font-size: 1.26rem;
  }

  .impact-header-row {
    gap: 14px;
  }

  .impact-calc-btn,
  .impact-summary-btn {
    width: 100%;
  }

  .impact-bottom-actions {
    width: 100%;
  }
}
/* =========================================
   WoSI – Impact Fine Tuning
   Projektkontext schlanker + Summary unten rechts
   Ganz unten anhängen
   ========================================= */

.impact-project-context__chips {
  gap: 10px;
}

.impact-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -4px;
}

.impact-bottom-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex: 1 1 auto;
}

.impact-bottom-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.impact-summary-btn {
  min-width: 270px;
  min-height: 56px;
}

@media (max-width: 1180px) {
  .impact-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .impact-bottom-actions {
    margin-left: 0;
    width: 100%;
  }

  .impact-summary-btn {
    width: 100%;
  }
}

/* =========================================
   WoSI – Impact Projektkopf kompakt mit Toggle
   Ganz unten anhängen
   ========================================= */

.page-impact .project-detail-card--header {
  padding: 18px 20px;
}

.page-impact .project-detail-header {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.page-impact .project-detail-title {
  margin-bottom: 10px;
}

.page-impact .project-detail-description {
  max-width: 760px;
  margin-bottom: 0;
}

.project-detail-meta--compact {
  display: grid;
  gap: 12px;
  align-self: start;
}

.project-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f8f9;
  border: 1px solid #dce8ec;
  color: #23364a;
  font-size: 0.94rem;
  font-weight: 500;
}

.project-meta-pill strong {
  color: #20aeb4;
  font-weight: 800;
}

.project-meta-toggle {
  border-top: 1px solid rgba(1, 19, 43, 0.08);
  padding-top: 10px;
}

.project-meta-toggle summary {
  list-style: none;
  cursor: pointer;
  color: #20aeb4;
  font-size: 0.92rem;
  font-weight: 700;
}

.project-meta-toggle summary::-webkit-details-marker {
  display: none;
}

.project-meta-toggle summary::after {
  content: " +";
}

.project-meta-toggle[open] summary::after {
  content: " –";
}

.project-meta-toggle-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.project-meta-toggle-grid .project-meta-item {
  display: grid;
  gap: 3px;
}

@media (max-width: 1180px) {
  .page-impact .project-detail-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .page-impact .project-detail-card--header {
    padding: 16px 16px;
  }

  .project-meta-pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .project-meta-toggle summary {
    font-size: 0.88rem;
  }
}
/* =========================================
   WoSI – Impact ONLY
   kompakter Projektkopf + Summary unten rechts
   minimalinvasiv / nur Kosten-Nutzen-Simulation
   ========================================= */

.page-impact .impact-project-context-section {
  margin-top: 8px;
  margin-bottom: 16px;
}

.page-impact .impact-project-context-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(1, 19, 43, 0.07);
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(1, 19, 43, 0.05);
  padding: 18px 20px;
}

.page-impact .impact-project-context {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.page-impact .impact-project-context__title {
  margin: 4px 0 10px;
  font-size: 1.35rem;
  line-height: 1.12;
  color: var(--s3-navy);
}

.page-impact .impact-project-context__lead {
  margin: 0;
  max-width: 700px;
  color: var(--s3-text);
  line-height: 1.45;
}

.page-impact .impact-project-context__meta {
  display: grid;
  gap: 12px;
}

.page-impact .impact-project-context__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-impact .impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f8f9;
  border: 1px solid #dce8ec;
  color: #23364a;
  font-size: 0.9rem;
  font-weight: 500;
}

.page-impact .impact-chip strong {
  color: #20aeb4;
  font-weight: 800;
}

.page-impact .impact-project-context__details {
  border-top: 1px solid rgba(1, 19, 43, 0.08);
  padding-top: 10px;
}

.page-impact .impact-project-context__details summary {
  list-style: none;
  cursor: pointer;
  color: #20aeb4;
  font-size: 0.92rem;
  font-weight: 700;
}

.page-impact .impact-project-context__details summary::-webkit-details-marker {
  display: none;
}

.page-impact .impact-project-context__details summary::after {
  content: " +";
}

.page-impact .impact-project-context__details[open] summary::after {
  content: " –";
}

.page-impact .impact-project-context__details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.page-impact .impact-project-context__detail-item {
  display: grid;
  gap: 4px;
}

.page-impact .impact-project-context__detail-item--full {
  grid-column: 1 / -1;
}

.page-impact .impact-project-context__detail-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #20aeb4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-impact .impact-project-context__detail-value {
  color: var(--s3-text);
  line-height: 1.4;
}

.page-impact .impact-header-row {
  margin-top: 6px;
}

.page-impact .impact-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -4px;
}

.page-impact .impact-bottom-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex: 1 1 auto;
}

.page-impact .impact-bottom-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.page-impact .impact-summary-btn {
  min-width: 250px;
  min-height: 56px;
  border-radius: 18px;
}

@media (max-width: 1180px) {
  .page-impact .impact-project-context {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-impact .impact-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-impact .impact-bottom-actions {
    width: 100%;
    margin-left: 0;
  }

  .page-impact .impact-summary-btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .page-impact .impact-project-context-card {
    padding: 16px 16px;
  }

  .page-impact .impact-project-context__title {
    font-size: 1.18rem;
  }

  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr;
  }

  .page-impact .impact-chip {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.86rem;
  }
}
/* =========================================
   WoSI – Impact Header Fine Tuning
   kompakter, flacher, Toggle oben rechts
   nur Kosten-/Nutzen-Simulation
   ========================================= */

.page-impact .impact-project-context-card {
  padding: 14px 16px;
}

.page-impact .impact-project-context {
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.page-impact .impact-project-context__title {
  margin: 2px 0 0;
  font-size: 1.18rem;
  line-height: 1.1;
}

.page-impact .impact-project-context__main .section-kicker {
  margin-bottom: 4px;
}

.page-impact .impact-project-context__meta {
  gap: 0;
}

.page-impact .impact-project-context__topline {
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-impact .impact-project-context__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.page-impact .impact-chip {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.page-impact .impact-project-context__details--inline {
  border-top: 0;
  padding-top: 0;
}

.page-impact .impact-project-context__details--inline summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  min-height: 34px;
  font-size: 0.9rem;
}

.page-impact .impact-project-context__details--inline summary::after {
  content: " +";
  margin-left: 4px;
}

.page-impact .impact-project-context__details--inline[open] summary::after {
  content: " –";
}

.page-impact .impact-project-context__details-body {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.page-impact .impact-project-context__lead {
  margin: 0 0 12px;
  color: var(--s3-text);
  line-height: 1.42;
}

.page-impact .impact-project-context__details-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-impact .impact-project-context__detail-label {
  font-size: 0.78rem;
}

.page-impact .impact-project-context__detail-value {
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .page-impact .impact-project-context {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-impact .impact-project-context__chips {
    justify-content: flex-start;
  }

  .page-impact .impact-project-context__details--inline summary {
    justify-content: flex-start;
    text-align: left;
  }

  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .page-impact .impact-project-context-card {
    padding: 14px 14px;
  }

  .page-impact .impact-project-context__title {
    font-size: 1.08rem;
  }

  .page-impact .impact-project-context__chips {
    gap: 8px;
  }

  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI Impact Header FINAL CLEAN
   Chips + Toggle sauber in einer Linie
   ========================================= */

.page-impact .impact-project-context {
  grid-template-columns: minmax(0, 1.15fr) minmax(560px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.page-impact .impact-project-context__meta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.page-impact .impact-project-context__topline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
  width: 100%;
}

.page-impact .impact-project-context__chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.page-impact .impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.page-impact .impact-chip strong {
  white-space: nowrap;
}

.page-impact .impact-project-context__details--inline {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.page-impact .impact-project-context__details--inline summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  padding: 0;
  margin: 0;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 700;
  color: #23A2AA;
}

.page-impact .impact-project-context__details--inline summary::-webkit-details-marker {
  display: none;
}

.page-impact .impact-project-context__details--inline summary::after {
  content: " +";
  margin-left: 4px;
}

.page-impact .impact-project-context__details--inline[open] summary::after {
  content: " –";
}

/* Dropdown sauber unter der rechten Kopfzeile */
.page-impact .impact-project-context__details-body {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 760px;
  max-width: calc(100vw - 180px);
  background: #fff;
  border: 1px solid rgba(1, 19, 43, 0.06);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 16px 34px rgba(1, 19, 43, 0.08);
  z-index: 30;
}

.page-impact .impact-project-context__details--inline:not([open]) .impact-project-context__details-body {
  display: none;
}

.page-impact .impact-project-context__lead {
  margin: 0 0 14px;
  line-height: 1.4;
}

.page-impact .impact-project-context__details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-impact .impact-project-context__detail-item--full {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .page-impact .impact-project-context {
    grid-template-columns: 1fr;
  }

  .page-impact .impact-project-context__meta {
    align-items: flex-start;
  }

  .page-impact .impact-project-context__topline {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .page-impact .impact-project-context__chips {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .page-impact .impact-project-context__details--inline summary {
    justify-content: flex-start;
    text-align: left;
  }

  .page-impact .impact-project-context__details-body {
    position: relative;
    top: 12px;
    right: auto;
    width: 100%;
    max-width: 100%;
  }

  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .page-impact .impact-project-context__details-grid {
    grid-template-columns: 1fr;
  }

  .page-impact .impact-chip {
    padding: 0 12px;
    font-size: 0.86rem;
  }
}
/* Nur Kosten-/Nutzen-Simulation */
.page-impact .section-kicker {
  margin-top: 22px;
}
/* =========================================
   WoSI – Projekt-Detail Statuskachel
   nur Projektdetailseite
   ========================================= */

.project-detail-status-card {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 2px solid rgba(1, 19, 43, 0.9);
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
}

.project-detail-status-card__title {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--s3-navy);
}

.project-detail-status-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  grid-template-areas:
    "dot label"
    "dot value";
  column-gap: 10px;
  row-gap: 2px;
}

.project-detail-status-row + .project-detail-status-row {
  margin-top: 10px;
}

.project-detail-status-dot {
  grid-area: dot;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  display: inline-block;
}

.project-detail-status-dot.is-beauftragt {
  background: #18b84f;
}

.project-detail-status-dot.is-offen {
  background: #f2e600;
}

.project-detail-status-dot.is-verloren {
  background: #ff2020;
}

.project-detail-status-label {
  grid-area: label;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--s3-text);
  line-height: 1.25;
}

.project-detail-status-value {
  grid-area: value;
  font-size: 0.9rem;
  color: var(--s3-text-soft);
  line-height: 1.2;
}

/* mobil etwas kompakter */
@media (max-width: 640px) {
  .project-detail-status-card {
    padding: 14px 14px;
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .project-detail-status-card__title {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .project-detail-status-label,
  .project-detail-status-value {
    font-size: 0.86rem;
  }
}
/* =========================================
   WoSI – Projekte Header + Modulstatuspanel
   nur Projektdetailseite / Projekte
   ========================================= */

.projects-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.projects-page-head__main {
  min-width: 0;
}

.projects-page-head__main p {
  max-width: 860px;
  margin-bottom: 0;
}

.project-module-status-panel {
  flex: 0 0 390px;
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid rgba(1, 19, 43, 0.9);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
}

.project-module-status-panel__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--s3-navy);
  margin-bottom: 2px;
}

.project-module-status-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 10px;
}

.project-module-status-item__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--s3-text);
  line-height: 1.2;
}

.project-module-status-select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cdd9df;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: var(--s3-text);
  background: #fff;
}

.project-module-status-select:focus {
  outline: none;
  border-color: #87cfd2;
  box-shadow: 0 0 0 4px rgba(35, 162, 170, 0.10);
}

.project-module-status-save {
  min-height: 40px;
  justify-self: end;
  padding-left: 16px;
  padding-right: 16px;
}

/* vorhandene Dots weiterverwenden + neue Farben */
.project-detail-status-dot.is-angeboten {
  background: #f5dd00;
}

.project-detail-status-dot.is-offen {
  background: #ff9f1a;
}

.project-detail-status-dot.is-in-bearbeitung {
  background: #18b84f;
}

.project-detail-status-dot.is-verloren {
  background: #ff2020;
}

/* alte Kachel im Projektkopf bewusst neutralisieren */
.project-detail-status-card {
  display: none;
}

@media (max-width: 1180px) {
  .projects-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .project-module-status-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .project-module-status-panel {
    padding: 14px 14px;
    border-radius: 16px;
  }

  .project-module-status-item {
    grid-template-columns: 14px 1fr;
    align-items: start;
  }

  .project-module-status-select {
    grid-column: 2 / 3;
    margin-top: 4px;
  }

  .project-module-status-save {
    width: 100%;
    justify-self: stretch;
  }
}
/* =========================================
   WoSI – Projekte Detail oben links/rechts
   Projektkarte + Modulstatus als eigene Kachel
   ========================================= */

.project-detail-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 340px;
  gap: 20px;
  align-items: stretch;
  margin-top: 22px;
  margin-bottom: 20px;
}

.project-detail-card--main {
  min-height: 100%;
}

.project-detail-card--main .project-detail-header {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.project-detail-card--main .project-detail-description {
  max-width: 640px;
}

.project-module-status-card {
  display: grid;
  gap: 18px;
  padding: 22px 20px;
  border-radius: 18px;
  min-height: 100%;
  height: 100%;
  align-content: start;
}

.project-module-status-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--s3-navy);
  margin-bottom: 2px;
}

.project-module-status-card__item {
  display: grid;
  gap: 7px;
  padding-bottom: 10px;
}

.project-module-status-card__item:not(:last-of-type) {
  border-bottom: 1px solid rgba(1, 19, 43, 0.04);
  margin-bottom: 6px;
}

.project-module-status-card__line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 2px;
}

.project-module-status-card__label {
  font-size: 0.98rem;
  font-weight: 700;
  color: #647182;
  line-height: 1.2;
}

.project-module-status-card__control {
  padding-left: 26px;
}

.project-module-status-select {
  width: 100%;
  min-height: 32px;
  height: 32px;
  border: 1px solid #d9e2e7;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #405062;
  background: #fbfcfd;
}

.project-module-status-select:focus {
  outline: none;
  border-color: #9ccfd3;
  box-shadow: 0 0 0 3px rgba(35,162,170,0.08);
}

.project-module-status-save {
  margin-top: 14px;
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
}

/* Ampellogik zurück auf 3 Zustände */
.project-detail-status-dot.is-offen {
  background: #f0e400;
}

.project-detail-status-dot.is-beauftragt {
  background: #23a2aa;
}

.project-detail-status-dot.is-verloren {
  background: #f47a33;
}

/* alte Headline-Panel-Variante stilllegen */
.projects-page-head,
.project-module-status-panel {
  display: block;
}

@media (max-width: 1180px) {
  .project-detail-top-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-detail-card--main .project-detail-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .project-module-status-card {
    padding: 18px 16px;
  }

.project-module-status-card__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #5f6f80;
  line-height: 1.15;
}
    
.project-module-status-select:hover {
  border-color: #23a2aa;
}

  .project-module-status-card__control {
    padding-left: 0;
  }

  .project-module-status-save {
    width: 100%;
    justify-self: stretch;
  }
}
/* =========================================
   WoSI – Projekte Einstiegsseite
   operativer Einstieg, Gedächtnis, Listen
   ========================================= */

.project-entry-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}

.project-entry-operative {
  border: 2px solid rgba(35, 162, 170, 0.28);
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.06);
  padding: 28px 28px 32px;
}

.project-entry-operative h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.project-entry-operative > p {
  max-width: 720px;
  margin-bottom: 8px;
}

.project-entry-results {
  padding: 24px 22px;
  align-self: stretch;
}

.project-entry-module-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.project-entry-module-actions .project-module-entry-btn {
  width: 100%;
  min-width: 0;
}

.project-module-entry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
  box-shadow: 0 4px 14px rgba(1, 19, 43, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.project-module-entry-btn:hover,
.project-module-entry-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.97);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.12);
}

.project-module-entry-btn--impact {
  background: #21afc9;
  color: #fff;
}

.project-module-entry-btn--activity {
  background: var(--s3-orange);
  color: #fff;
}

.project-module-entry-btn--layout {
  background: #fec10d;
  color: var(--s3-navy);
}

.project-entry-folder-card {
  margin-top: 44px;
}

.project-detail-section .project-entry-focus-grid + .project-entry-folder-card {
  margin-top: 44px;
}

.project-memory-grid {
  margin-top: 28px;
}

.project-detail-section .project-entry-focus-grid + .project-memory-grid {
  margin-top: 32px;
}

.project-detail-section .project-entry-folder-card + .project-memory-grid {
  margin-top: 28px;
}

.project-memory-layout-actions {
  margin-top: 18px;
}

.project-memory-layout-actions .project-module-entry-btn {
  max-width: 340px;
}

.projects-list-section {
  align-items: stretch;
}

.projects-list-section > .module-card {
  height: 100%;
}

@media (max-width: 1180px) {
  .project-entry-focus-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-entry-module-actions {
    grid-template-columns: 1fr;
  }

  .project-memory-layout-actions .project-module-entry-btn {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .project-entry-operative {
    padding: 22px 18px 26px;
  }

  .project-entry-folder-card {
    margin-top: 32px;
  }

  .project-entry-module-actions {
    margin-top: 22px;
    gap: 12px;
  }

  .project-module-entry-btn {
    min-height: 48px;
    font-size: 0.95rem;
  }
}
/* =========================================
   WoSI – Auto dismiss success box
   nur sanftes Ausblenden
   ========================================= */

.success-box--auto-dismiss {
  overflow: hidden;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    max-height 0.45s ease,
    margin 0.45s ease,
    padding 0.45s ease,
    border-width 0.45s ease;
  max-height: 120px;
}

.success-box--auto-dismiss.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}
/* =========================================
   WoSI Impact – Zielmodus Switch
   nur Kosten-/Nutzen-Simulation
   ========================================= */

.page-impact .impact-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.page-impact .impact-target-mode {
  width: 320px;
  padding: 14px 16px 12px;
  border: 1px solid #dce8ec;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
}

.page-impact .impact-target-mode__label {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #23A2AA;
}

.page-impact .impact-target-mode__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.page-impact .impact-target-mode__option {
  position: relative;
  display: block;
  cursor: pointer;
}

.page-impact .impact-target-mode__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-impact .impact-target-mode__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #dce8ec;
  background: #f6fbfb;
  color: #23364a;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}

.page-impact .impact-target-mode__option input:checked + span {
  background: #e8f7f7;
  border-color: #bfe5e6;
  color: #01132B;
  box-shadow: 0 6px 16px rgba(35, 162, 170, 0.08);
}

.page-impact .impact-target-mode__note {
  margin: 10px 2px 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #5e7287;
}

@media (max-width: 1180px) {
  .page-impact .impact-target-mode {
    width: 100%;
  }
}
/* =========================================
   WoSI Impact – Defizitdarstellung
   ========================================= */

.page-impact .impact-value-card.is-deficit {
  border-color: rgba(200, 94, 54, 0.28);
  background: rgba(255, 245, 241, 0.92);
}

.page-impact .impact-value-card.is-deficit .impact-field-label {
  color: #9a4e2f;
}

.page-impact .impact-value-card.is-deficit strong {
  color: #9a2f2f;
}

/* =========================================
   WoSI Impact – Hilfe-Kachel
   ========================================= */

.page-impact .impact-help-box {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-impact .impact-help-item {
  padding: 12px 0;
  border-top: 1px solid #eef4f6;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #01132B;
}

.page-impact .impact-help-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-impact .impact-help-item strong {
  color: #23A2AA;
}

/* =========================================
   WoSI Kosten-Nutzen SImulation. Header Bereich einrücken
   ========================================= */
.impact-header-content {
    padding-left: 28px;
}

/* =========================================
   WoSI Kosten-Nutzen SImulation. Header Bereich optmiert nach tausch!
   ========================================= */
/* ===== Impact Modul Feintuning ===== */

.page-impact .impact-lead{
    margin-top:14px;
}

.page-impact .impact-project-context-card{
    margin-top:6px;
}

.page-impact .impact-header-content{
    max-width:760px;
}
/* =========================================
   WoSI Impact – Ergebniskontext
   laufender Betrieb / inkl. Transformation und Investition
   ========================================= */

.impact-panel-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 18px;
}

.impact-panel-title-wrap .impact-panel-title {
  margin-bottom: 0;
}

.impact-panel-context {
  font-size: 0.88rem;
  font-weight: 700;
  color: #7aa5a8;
  line-height: 1.2;
}

@media (max-width: 760px) {
  .impact-panel-context {
    font-size: 0.82rem;
  }
}
/* =========================================
   WoSI Impact – Feinschliff
   1) Switch kompakter in 2 Spalten
   2) Ergebniszahlen unten bündig
   ganz unten einfügen
   ========================================= */

/* ---------- 1) Switch-Kachel kompakter ---------- */

.page-impact .impact-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  align-items: start;
}

.page-impact .impact-switch-grid .impact-radio-option {
  margin-top: 0 !important;
}

.page-impact .impact-switch-grid .impact-radio-option--full {
  grid-column: 1 / 2;
}

/* Mobile: lieber wieder untereinander */
@media (max-width: 760px) {
  .page-impact .impact-switch-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-impact .impact-switch-grid .impact-radio-option--full {
    grid-column: auto;
  }
}

/* ---------- 2) Ergebniszahlen unten bündig ---------- */

.page-impact .impact-metric-grid--results .impact-value-card {
  min-height: 122px;
  padding-top: 14px;
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.page-impact .impact-metric-grid--results .impact-field-label {
  display: block;
  line-height: 1.12;
  margin-bottom: 4px;
  min-height: 48px;
}

.page-impact .impact-metric-grid--results .impact-value-card strong {
  margin-top: 0;
  line-height: 1;
}

/* etwas kompakter auf Tablet / Mobile */
@media (max-width: 760px) {
  .page-impact .impact-metric-grid--results .impact-value-card {
    min-height: 148px;
  }
}
/* ---------- Nicht relevant Ergebniskacheln außerhalb One Off Invest verstecken ---------- */
.page-impact .impact-investment-result.is-hidden {
  display: none !important;
}

/* =========================================
   WoSI Impact – Hilfe Download Links
   ========================================= */

.page-impact .impact-help-item--downloads {
  padding-top: 12px;
}

.page-impact .impact-help-downloads {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.page-impact .impact-help-download-entry {
  display: grid;
  gap: 4px;
}

.impact-help-download-formula {
  display: grid;
  gap: 4px;
}

.page-impact .impact-help-download-title {
  color: #01132B;
  font-size: 0.96rem;
  line-height: 1.35;
}

.page-impact .impact-help-download-entry a {
  color: #23A2AA;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.impact-help-download-formula a {
  color: #23A2AA;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.page-impact .impact-help-download-entry a:hover {
  text-decoration: underline;
}

.impact-help-download-formula a:hover {
  text-decoration: underline;
}

.impact-scenario-link {
  color: #01132B;
  font-weight: 600;
  text-decoration: none;
}

.impact-scenario-link:hover {
  color: #23A2AA;
  text-decoration: underline;
}

.impact-scenario-link {
  color: #01132B;
  font-weight: 600;
  text-decoration: none;
}

.impact-scenario-link:hover {
  color: #23A2AA;
  text-decoration: underline;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #dfe8ec;
  vertical-align: top;
}

.data-table th {
  width: 35%;
  color: #01132B;
  font-weight: 700;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #cfdde3;
  background: #eef5f7;
  color: #01132B;
  font-weight: 700;
  text-decoration: none;
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #cfdde3;
  background: #eef5f7;
  color: #01132B;
  font-weight: 700;
  text-decoration: none;
}

.btn-secondary-link:hover {
  background: #e3eef2;
  color: #23A2AA;
}

/* =====================================
   Scenario Detail – saubere vertikale Abstände
===================================== */

.scenario-detail-columns {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  column-gap: 24px;
  align-items: start;
}

.scenario-detail-column {
  display: block;
}

.scenario-detail-column > .module-card {
  margin: 0 0 24px 0;
}

.scenario-detail-column > .module-card:last-child {
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .scenario-detail-columns {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .scenario-detail-column > .module-card {
    margin-bottom: 22px;
  }

  .scenario-detail-column > .module-card:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .scenario-detail-column > .module-card {
    margin-bottom: 18px;
  }

  .scenario-detail-column > .module-card:last-child {
    margin-bottom: 0;
  }
}
/* =====================================
   Scenario List – Projektfilter
===================================== */

.scenario-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.scenario-list-head h2 {
  margin-bottom: 0;
}

.scenario-filter-form {
  flex: 0 0 320px;
}

.scenario-filter-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfdde3;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: #01132B;
  background: #f8fbfc;
}

.scenario-filter-form select:focus {
  outline: none;
  border-color: #87cfd2;
  box-shadow: 0 0 0 4px rgba(35, 162, 170, 0.10);
  background: #fff;
}

@media (max-width: 760px) {
  .scenario-list-head {
    flex-direction: column;
    align-items: stretch;
  }

  .scenario-filter-form {
    flex: 1 1 auto;
  }
}
/* =====================================
   WoSI – Optionen / Mehrere Einheiten
===================================== */

.impact-option-block {
  margin-top: 12px;
}

.impact-option-head {
  margin-bottom: 12px;
}

.impact-checkline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #01132B;
  cursor: pointer;
}

.impact-checkline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #23A2AA;
}

.impact-option-panel {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #d9e8ea;
  border-radius: 16px;
  background: #f8fbfc;
}

.impact-option-hint {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #5f7387;
}

.impact-units-toolbar {
  margin-bottom: 14px;
}

.impact-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cfdde3;
  border-radius: 12px;
  background: #eef5f7;
  color: #01132B;
  font-weight: 700;
  cursor: pointer;
}

.impact-mini-btn:hover {
  background: #e3eef2;
  color: #23A2AA;
}

.impact-units-list {
  display: grid;
  gap: 14px;
}

.impact-unit-card {
  border: 1px solid #d9e8ea;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.impact-unit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.impact-unit-title {
  font-size: 16px;
  font-weight: 700;
  color: #01132B;
}

.impact-unit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.impact-unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.impact-unit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.impact-unit-field label {
  font-size: 13px;
  font-weight: 700;
  color: #4f6478;
}

.impact-unit-field input,
.impact-unit-field select {
  min-height: 42px;
  border: 1px solid #cfdde3;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: #01132B;
  background: #fff;
}

.impact-unit-field input:focus,
.impact-unit-field select:focus {
  outline: none;
  border-color: #87cfd2;
  box-shadow: 0 0 0 4px rgba(35, 162, 170, 0.10);
}

@media (max-width: 980px) {
  .impact-unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .impact-unit-grid {
    grid-template-columns: 1fr;
  }

  .impact-unit-head {
    flex-direction: column;
    align-items: stretch;
  }
}
.scenario-unit-card {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #dce8ec;
  border-radius: 14px;
  background: #ffffff;
}

/* =========================================
   WoSI – Dashboard 2.0
   Demo-Modus vs. Projektmodus
   ========================================= */

.dashboard-section-demo,
.dashboard-section-project {
  position: relative;
}

.dashboard-grid-demo {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-card-demo,
.dashboard-card-project {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

.dashboard-card-demo {
  background: linear-gradient(180deg, rgba(235, 250, 251, 0.98) 0%, rgba(255,255,255,0.96) 100%);
  border-color: rgba(35, 162, 170, 0.22);
  box-shadow: 0 12px 30px rgba(35, 162, 170, 0.08);
}

.dashboard-card-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(35, 162, 170, 0.16), transparent 42%);
  pointer-events: none;
}

.dashboard-card-demo-main {
  border-color: rgba(35, 162, 170, 0.34);
}

.dashboard-card-project {
  background: rgba(255,255,255,0.96);
  border-color: var(--s3-border);
}

.dashboard-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(35, 162, 170, 0.12);
  color: var(--s3-teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-card-label-project {
  background: #eef3f8;
  color: var(--s3-navy);
}

.dashboard-card-demo h3,
.dashboard-card-project h3 {
  margin-bottom: 14px;
}

.dashboard-card-demo p,
.dashboard-card-project p {
  margin-bottom: 0;
}

.dashboard-card-demo:hover {
  background: linear-gradient(180deg, rgba(225, 247, 248, 1) 0%, rgba(255,255,255,0.98) 100%);
  border-color: rgba(35, 162, 170, 0.38);
  box-shadow: 0 16px 34px rgba(35, 162, 170, 0.12);
}

.dashboard-card-project:hover {
  background: #edf4f6;
  border-color: #cfdee4;
}

/* Tablet */
@media (max-width: 1220px) {
  .dashboard-grid-demo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 820px) {
  .dashboard-grid-demo {
    grid-template-columns: 1fr;
  }

  .dashboard-card-demo,
  .dashboard-card-project {
    min-height: auto;
  }
}

/* =========================================
   WoSI – Tabellen-Suche Kunden / Projekte
   ========================================= */

.wosi-table-search {
  margin: 14px 0 16px;
}

.wosi-table-search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfdde3;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.96rem;
  color: var(--s3-text);
  background: #f8fbfc;
  box-shadow: 0 6px 16px rgba(1, 19, 43, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wosi-table-search-input::placeholder {
  color: #7a8ea0;
}

.wosi-table-search-input:focus {
  outline: none;
  border-color: #87cfd2;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(35, 162, 170, 0.10);
}

/* =========================================
   WoSI – Demo Hinweisbox Modul-Einzelseiten
   ========================================= */

.wosi-demo-notice {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(235, 250, 251, 0.98) 0%, rgba(255,255,255,0.96) 100%);
  border: 1px solid rgba(35, 162, 170, 0.24);
  box-shadow: 0 12px 30px rgba(35, 162, 170, 0.08);
}

.wosi-demo-notice__label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(35, 162, 170, 0.12);
  color: var(--s3-teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wosi-demo-notice h2 {
  margin: 0 0 8px;
  color: var(--s3-navy);
}

.wosi-demo-notice p {
  margin: 0;
  max-width: 920px;
  color: var(--s3-text);
}

.wosi-demo-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .wosi-demo-notice {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .wosi-demo-notice__actions .btn,
  .wosi-demo-notice__actions .btn-secondary {
    width: 100%;
  }
}

/* =====================================
   WoSI Impact – Zusatz-Einheiten
   individuelle Optimierungsfelder ausblenden
===================================== */

.impact-unit-grid--optimization.is-hidden {
  display: none !important;
}

/* =========================================
   WoSI – Tätigkeitsanalyse Modul
   Schritt 1: Premium Landing / Konzeptseite
   ========================================= */

.page-activity .topbar {
  background: linear-gradient(90deg, #ff8e5b 0%, #ffad7f 100%);
  color: #01132b;
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.08);
}

.page-activity .main-nav a {
  color: rgba(1, 19, 43, 0.92);
}

.page-activity .main-nav a:hover,
.page-activity .main-nav a.active {
  background: rgba(255, 255, 255, 0.28);
  color: #01132b;
}

.activity-page {
  display: grid;
  gap: 24px;
  padding-top: 4px;
}

.activity-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(1, 19, 43, 0.07);
  border-radius: 26px;
  box-shadow: 0 10px 26px rgba(1, 19, 43, 0.05);
  padding: 24px 22px;
}

.activity-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 330px;
  gap: 28px;
  align-items: start;
}

.activity-hero h1 {
  margin-bottom: 12px;
}

.activity-lead {
  max-width: 920px;
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.activity-mode-switch {
  padding: 16px;
  border-radius: 20px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.24);
}

.activity-mode-switch__label {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c45d2e;
}

.activity-mode-switch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.activity-mode-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #f1d5c7;
  color: #23364a;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.activity-mode-pill.is-active {
  background: #ffe9df;
  border-color: #ffc5aa;
  color: #01132b;
}

.activity-mode-switch p {
  margin: 10px 2px 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #5e7287;
}

.activity-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.activity-kpi-card {
  display: grid;
  gap: 6px;
  padding: 18px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 142, 91, 0.14) 0%, rgba(255, 142, 91, 0.06) 100%);
  border: 1px solid rgba(255, 142, 91, 0.22);
}

.activity-kpi-value {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
  color: #01132b;
}

.activity-kpi-label {
  color: #01132b;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}

.activity-kpi-desc {
  color: #5e7287;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.activity-journey-flow {
  display: block;
}

.activity-nav-shell--adaptive {
  padding: 12px 16px 10px;
  background: rgba(255, 255, 255, 0.98);
}

.activity-nav-shell--adaptive.is-journey-collapsed {
  padding-bottom: 10px;
}

.activity-journey-compact {
  min-height: 0;
}

.activity-journey-compact__shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 142, 91, 0.11) 0%, rgba(255, 248, 244, 0.92) 52%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(255, 142, 91, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.activity-journey-compact__intro {
  flex: 1 1 14rem;
  min-width: 0;
}

.activity-journey-compact__intro .section-kicker {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9a6f58;
  text-transform: uppercase;
}

.activity-journey-compact__intro .activity-nav-shell__title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.25;
  color: #01132b;
}

.activity-journey-compact__intro .activity-nav-shell__subtitle {
  margin: 4px 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #7a8ea1;
}

.activity-journey-current {
  display: grid;
  gap: 4px;
  flex: 1 1 15rem;
  min-width: 0;
  padding: 0 4px;
}

.activity-journey-current__kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a6f58;
  line-height: 1.2;
}

.activity-journey-current__module {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 800;
  line-height: 1.25;
  color: #01132b;
}

.activity-journey-current__phase {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #5e7287;
}
.activity-journey-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--s3-navy);
  background: var(--s3-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(1, 19, 43, 0.18);
  transition: box-shadow 0.2s ease;
}

.activity-journey-toggle:hover {
  background: var(--s3-navy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(1, 19, 43, 0.18), inset 0 0 0 999px rgba(255, 255, 255, 0.1);
}

.activity-journey-toggle:active {
  background: var(--s3-navy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(1, 19, 43, 0.18), inset 0 0 0 999px rgba(0, 0, 0, 0.18);
}

.activity-journey-toggle:focus-visible {
  outline: 2px solid var(--s3-teal);
  outline-offset: 2px;
  color: #fff;
}

.activity-journey-toggle__icon,
.activity-journey-toggle__label {
  color: inherit;
}

.activity-journey-toggle__icon {
  font-size: 0.72rem;
  line-height: 1;
}

.activity-journey-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms ease, opacity 350ms ease, margin-top 350ms ease;
  opacity: 0;
  margin-top: 0;
}

.activity-nav-shell--adaptive.is-journey-collapsed .activity-journey-panel {
  display: none;
}

.activity-nav-shell--adaptive:not(.is-journey-collapsed) .activity-journey-panel {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}

.activity-journey-panel__inner {
  overflow: hidden;
  min-height: 0;
}

.activity-nav-shell--adaptive.activity-nav-shell--with-sub:not(.is-journey-collapsed) .activity-journey-panel {
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(1, 19, 43, 0.06);
}

.activity-nav-shell--adaptive.activity-nav-shell--with-sub.is-journey-collapsed .activity-subtabs {
  width: 100%;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(1, 19, 43, 0.06);
}

.activity-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.activity-journey-card {
  display: grid;
  grid-template-rows: 140px 1fr;
  gap: 0;
  min-height: 19.5rem;
  padding: 20px 18px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 142, 91, 0.1) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(255, 142, 91, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.activity-journey-card.is-active {
  background: linear-gradient(180deg, rgba(255, 142, 91, 0.16) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: #ffc5aa;
  box-shadow: 0 10px 24px rgba(255, 142, 91, 0.1);
}

.activity-journey-card__head {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  padding-bottom: 14px;
  box-sizing: border-box;
}

.activity-journey-card__title {
  display: grid;
  gap: 6px;
}

.activity-journey-card__step {
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7a8ea1;
}

.activity-journey-card.is-active .activity-journey-card__step {
  color: #9a6f58;
}

.activity-journey-card__label {
  margin: 0;
  color: #01132b;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.3;
}

.activity-journey-card__desc {
  margin: 0;
  color: #5e7287;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.activity-journey-card__modules {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 10px;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.activity-journey-card__modules-label {
  display: block;
  min-height: 1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a8ea1;
  line-height: 1;
}

.activity-journey-modules {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.activity-journey-module {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 2.375rem;
  padding: 0 14px;
  border-radius: 999px;
  color: #5e7287;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(1, 19, 43, 0.09);
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.activity-journey-module__status {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.activity-journey-module__status--complete {
  background: #1fa86a;
}

.activity-journey-module__status--partial {
  background: #e6a23c;
}

.activity-journey-module__status--none {
  background: #fff;
  border: 1.5px solid #b8c5d1;
  box-sizing: border-box;
}

.activity-journey-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7a8ea1;
}

.activity-journey-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.2;
}

.activity-journey-module__text {
  flex: 1 1 auto;
  min-width: 0;
}

.activity-journey-module:not(.is-active):hover {
  color: #01132b;
  background: #fff;
  border-color: rgba(1, 19, 43, 0.14);
}

.activity-journey-module:focus-visible {
  outline: 2px solid rgba(255, 142, 91, 0.45);
  outline-offset: 2px;
}

.activity-journey-module.is-active {
  color: #01132b;
  background: linear-gradient(180deg, #ffe9df 0%, #fff4ee 100%);
  border-color: #ffc5aa;
  box-shadow: 0 4px 10px rgba(255, 142, 91, 0.1);
}

.activity-journey-module__optional {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a8ea1;
  background: rgba(1, 19, 43, 0.05);
}

.activity-journey-module.is-active .activity-journey-module__optional {
  color: #9a6f58;
  background: rgba(255, 142, 91, 0.14);
}

.activity-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.activity-mini-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.activity-mini-flow div {
  min-height: 54px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  color: #01132b;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.activity-detail-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.activity-detail-list div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-detail-list strong {
  color: #01132b;
}

.activity-detail-list span {
  color: #5e7287;
  font-size: 0.92rem;
}

.activity-engine-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.activity-engine-step {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-engine-step strong {
  color: #01132b;
  line-height: 1.2;
}

.activity-engine-step span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

.activity-card--highlight {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,244,238,0.96) 100%);
  border-color: rgba(255, 142, 91, 0.24);
}

.activity-card--vision {
  margin-top: 18px;
  background: #fff;
  border: 1.5px solid rgba(1, 19, 43, 0.16);
  border-left: 4px solid var(--s3-orange);
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.06);
}

.activity-card--vision h2 {
  margin-top: 0;
  color: #01132b;
}

.activity-card--vision p {
  margin: 0;
  max-width: 72ch;
  color: #5e7287;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .activity-hero,
  .activity-main-grid {
    grid-template-columns: 1fr;
  }

  .activity-kpi-grid,
  .activity-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-engine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .activity-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .activity-kpi-grid,
  .activity-journey-grid,
  .activity-mini-flow,
  .activity-engine-grid {
    grid-template-columns: 1fr;
  }

  .activity-actions .btn,
  .activity-actions .btn-primary,
  .activity-actions .btn-secondary {
    width: 100%;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Tabs
   ========================================= */

.activity-nav-shell {
  margin-bottom: 0;
  padding: 24px 22px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(1, 19, 43, 0.07);
  box-shadow: 0 10px 26px rgba(1, 19, 43, 0.05);
}

.activity-nav-shell__head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(1, 19, 43, 0.07);
}

.activity-nav-shell__head .section-kicker {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--s3-teal-dark);
  text-transform: uppercase;
}

.activity-nav-shell__title {
  margin: 0;
  font-size: clamp(1.18rem, 1.5vw, 1.34rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--s3-navy);
}

.activity-nav-shell__subtitle {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: #7a8ea1;
  letter-spacing: 0.01em;
}

.activity-nav-shell--with-sub {
  padding-bottom: 0;
}

.activity-nav-shell--with-sub .activity-journey-flow {
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(1, 19, 43, 0.06);
}

.activity-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 4px 0 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.activity-nav-shell--with-sub .activity-tabs {
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(1, 19, 43, 0.06);
}

.activity-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #5e7287;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  background: #f4f7fa;
  border: 1px solid rgba(1, 19, 43, 0.10);
  box-shadow: 0 1px 2px rgba(1, 19, 43, 0.04);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.activity-tab:not(.is-active):hover {
  color: #01132b;
  background: #e8eef4;
  border-color: rgba(1, 19, 43, 0.18);
}

.activity-tab:focus-visible {
  outline: 2px solid rgba(255, 142, 91, 0.45);
  outline-offset: 2px;
}

.activity-tab.is-active {
  color: #01132b;
  background: linear-gradient(180deg, #ffe9df 0%, #fff4ee 100%);
  border-color: #ffc5aa;
  box-shadow: 0 8px 18px rgba(255, 142, 91, 0.10);
  transform: none;
}

.activity-tab.is-active:hover {
  color: #01132b;
  background: linear-gradient(180deg, #ffe9df 0%, #fff4ee 100%);
  border-color: #ffc5aa;
  box-shadow: 0 8px 18px rgba(255, 142, 91, 0.14);
  transform: none;
}

.activity-tab__optional {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5e7287;
  background: rgba(1, 19, 43, 0.06);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.activity-tab.is-active .activity-tab__optional {
  color: #01132b;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 142, 91, 0.22);
}

.activity-subtabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 8px 6px;
  align-items: stretch;
  padding: 14px 0 16px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #f8fafb 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: none;
}

.activity-subtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #7a8ea1;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(1, 19, 43, 0.07);
  transition: all 0.2s ease;
}

.activity-subtab:hover {
  color: #01132b;
  background: #fff8f4;
  border-color: #ead9cf;
  transform: translateY(-1px);
}

.activity-subtab.is-active {
  color: #01132b;
  background: linear-gradient(180deg, #ffe9df 0%, #fff4ee 100%);
  border-color: #ffc5aa;
  box-shadow: 0 4px 12px rgba(255, 142, 91, 0.14);
  font-weight: 800;
}

@media (max-width: 1023px) {
  .activity-tabs,
  .activity-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .activity-nav-shell {
    padding: 18px 16px 16px;
    border-radius: 20px;
    margin-bottom: 0;
  }

  .activity-nav-shell__head {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .activity-nav-shell__head .section-kicker {
    margin-bottom: 6px;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
  }

  .activity-nav-shell__title {
    font-size: 1.12rem;
    line-height: 1.3;
  }

  .activity-nav-shell__subtitle {
    margin-top: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .activity-journey-flow {
    gap: 0;
  }

  .activity-nav-shell--adaptive {
    padding: 10px 12px 8px;
  }

  .activity-journey-compact,
  .activity-journey-compact__shell,
  .activity-journey-compact__intro,
  .activity-journey-current {
    min-height: 0;
    height: auto;
    flex: 0 0 auto;
  }

  .activity-journey-compact__shell {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  .activity-journey-compact__intro {
    flex: 0 0 auto;
    min-width: 0;
  }

  .activity-journey-current {
    padding: 0;
    flex: 0 0 auto;
    gap: 2px;
  }

  .activity-journey-toggle {
    width: 100%;
    justify-content: center;
    margin-top: 2px;
    flex: 0 0 auto;
  }

  .activity-journey-grid {
    gap: 12px;
  }

  .activity-journey-card {
    grid-template-rows: auto 1fr;
    min-height: 0;
    padding: 18px 16px 16px;
  }

  .activity-journey-card__head {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 12px;
  }

  .activity-journey-module {
    min-height: 2.375rem;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .activity-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 2px;
  }

  .activity-nav-shell--with-sub .activity-tabs {
    padding-bottom: 12px;
  }

  .activity-tab {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .activity-tab__optional {
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }

  .activity-subtabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 6px;
    padding: 12px 0 14px;
  }

  .activity-subtab {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .activity-subtabs--insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-subtabs--insights .activity-subtab {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 0.76rem;
  }
}
/* WoSI – Tätigkeitsanalyse Zonenbedarf */

.activity-zone-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.activity-zone-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-zone-card strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-zone-card span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .activity-zone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .activity-zone-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Zonenbedarf erweitert
   Schritt 3
   ========================================= */

.activity-translation-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 24px;
}

.activity-translation-step {
  min-height: 150px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  display: grid;
  align-content: start;
  gap: 8px;
}

.activity-translation-step span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #01132b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.activity-translation-step strong {
  color: #01132b;
  font-size: 1.05rem;
}

.activity-translation-step p {
  margin: 0;
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.35;
}

.activity-translation-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8e5b;
  font-size: 1.6rem;
  font-weight: 800;
}

.activity-zone-grid--detailed .activity-zone-card {
  min-height: 190px;
  position: relative;
  overflow: hidden;
}

.activity-zone-card em {
  display: block;
  margin-top: 10px;
  color: #7a8ea0;
  font-style: normal;
  font-size: 0.84rem;
  line-height: 1.35;
}

.activity-zone-card::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 999px;
  margin-bottom: 8px;
  display: block;
}

.activity-zone-card--work::before {
  background: #01132b;
}

.activity-zone-card--retreat::before {
  background: #007aab;
}

.activity-zone-card--meeting::before {
  background: #ff8e5b;
}

.activity-zone-card--community::before {
  background: #fec10d;
}

.activity-zone-card--infrastructure::before {
  background: #818995;
}

.activity-demand-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.activity-demand-preview div {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255, 142, 91, 0.20);
}

.activity-demand-preview strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-demand-preview span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

.activity-card--muted-example {
  opacity: 0.92;
}

.activity-zone-demand-filter {
  margin-bottom: 18px;
}

.activity-zone-demand-section {
  margin-top: 8px;
}

.activity-zone-demand-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.activity-zone-demand-section__head h2 {
  margin: 0 0 6px;
}

.activity-zone-demand-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(35, 162, 170, 0.12);
  border: 1px solid rgba(35, 162, 170, 0.24);
  color: var(--s3-teal-dark, #1a8a91);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.activity-zone-demand-note {
  margin: 0 0 16px;
  color: #5e7287;
  font-size: 0.92rem;
  line-height: 1.5;
}

.activity-zone-demand-limits {
  margin: 0 0 18px;
  padding-left: 1.2em;
  color: #5e7287;
  font-size: 0.86rem;
  line-height: 1.45;
}

.activity-zone-demand-card__spatial {
  margin: 10px 0 0;
  color: #5e7287;
  font-size: 0.82rem;
  line-height: 1.4;
}

.activity-zone-demand-bridge,
.activity-zone-demand-bridge-link {
  margin: 16px 0 0;
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.5;
}

.activity-imported-profile-note {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 122, 171, 0.07);
  border: 1px solid rgba(0, 122, 171, 0.12);
}

.activity-imported-profile-note p {
  margin: 0;
  color: #01132b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.activity-light-page[data-light-scan-view="profile"] .activity-day-range[data-readonly="1"],
.activity-light-page[data-light-scan-view="profile"] .activity-place-range[data-readonly="1"],
.activity-light-page[data-light-scan-view="profile"] .activity-day-range[disabled],
.activity-light-page[data-light-scan-view="profile"] .activity-place-range[disabled] {
  pointer-events: none;
  cursor: default;
  opacity: 1;
}

.activity-light-page [data-day-total].is-approx,
.activity-light-page [data-place-day-total].is-approx {
  color: #5e7287;
  font-weight: 700;
}

.activity-light-result-grid[hidden],
.activity-delta-grid[hidden] {
  display: none !important;
}

.activity-zone-demand-office-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(1, 19, 43, 0.06);
  font-size: 0.88rem;
  color: #5e7287;
}

.activity-zone-demand-office-ref strong {
  color: var(--s3-navy, #01132b);
}

.activity-zone-demand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.activity-zone-demand-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-zone-demand-card.activity-zone-card::before {
  display: none;
}

.zone-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  min-width: 0;
}

.zone-card-header__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.activity-zone-card--work .zone-card-header__icon {
  background: #01132b;
}

.activity-zone-card--retreat .zone-card-header__icon {
  background: #007aab;
}

.activity-zone-card--meeting .zone-card-header__icon {
  background: #ff8e5b;
}

.activity-zone-card--community .zone-card-header__icon {
  background: #fec10d;
}

.activity-zone-card--infrastructure .zone-card-header__icon {
  background: #818995;
}

.zone-card-header h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--s3-navy, #01132b);
}

.activity-zone-demand-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 14px;
}

.activity-zone-demand-metrics div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-zone-demand-metrics span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e7287;
}

.activity-zone-demand-metrics strong {
  font-size: 1.1rem;
  color: var(--s3-navy, #01132b);
  line-height: 1.2;
}

.activity-zone-demand-bars {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

.activity-zone-demand-bar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

.activity-zone-demand-bar > span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #5e7287;
}

.activity-zone-demand-bar__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(1, 19, 43, 0.06);
  overflow: hidden;
  width: 100%;
}

.activity-zone-demand-bar__fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
  opacity: 0.88;
}

.activity-zone-demand-bar__fill--ideal {
  opacity: 1;
}

.activity-zone-demand-card__interpretation,
.activity-zone-demand-card__static {
  margin: 0;
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 52ch;
}

.activity-zone-demand-dept {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.activity-zone-demand-dept h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.lightscan-results-zones-link {
  margin-top: 8px;
}

.lightscan-results-zones-link a {
  font-weight: 700;
  color: var(--s3-teal-dark, #1a8a91);
}

.project-detail-path code,
.collab-import-path code {
  word-break: break-all;
}

.project-detail-memory-sync {
  margin-top: 16px;
}

.pwa-memory-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.pwa-memory-module-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.pwa-memory-module-card.is-ready {
  border-color: rgba(35, 162, 170, 0.28);
  background: rgba(35, 162, 170, 0.06);
}

.pwa-memory-module-card strong {
  color: var(--s3-navy, #01132b);
  font-size: 0.95rem;
}

.pwa-memory-module-card span {
  color: #5e7287;
  font-size: 0.84rem;
  line-height: 1.4;
}

.collab-import-form {
  max-width: 560px;
  margin-top: 16px;
}

.collab-import-expected {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.collab-import-expected__item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.collab-import-expected__item strong {
  color: var(--s3-navy, #01132b);
  font-size: 0.9rem;
}

.collab-import-expected__item span {
  color: #5e7287;
  font-size: 0.84rem;
  line-height: 1.35;
}

.collab-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.collab-summary-grid div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(1, 19, 43, 0.06);
}

.collab-summary-grid strong {
  color: var(--s3-navy, #01132b);
  font-size: 1.2rem;
}

.collab-summary-grid span {
  color: #5e7287;
  font-size: 0.82rem;
}

.collab-summary-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pwa-import-log {
  margin-top: 22px;
}

.pwa-import-log h3 {
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.95rem;
  color: var(--s3-navy, #01132b);
}

.pwa-import-log .table-wrap {
  margin: 0;
}

.collab-import-reset-form {
  margin-top: 12px;
}

.pwa-file-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.pwa-file-status-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.pwa-file-status-card--complete,
.pwa-file-status-card--reconciled {
  border-color: rgba(46, 125, 50, 0.24);
  background: rgba(46, 125, 50, 0.05);
}

.pwa-file-status-card--error {
  border-color: rgba(198, 40, 40, 0.22);
  background: rgba(198, 40, 40, 0.05);
}

.pwa-file-status-card--partial {
  border-color: rgba(245, 166, 35, 0.28);
  background: rgba(245, 166, 35, 0.06);
}

.pwa-file-status-card--missing {
  border-color: rgba(198, 40, 40, 0.18);
  background: rgba(198, 40, 40, 0.04);
}

.pwa-file-status-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-file-status-card__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.pwa-file-status-card strong {
  color: var(--s3-navy, #01132b);
  font-size: 0.92rem;
}

.pwa-file-status-card__label {
  color: #5e7287;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pwa-file-status-card p {
  margin: 0;
  color: #5e7287;
  font-size: 0.84rem;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .activity-translation-flow {
    grid-template-columns: 1fr;
  }

  .activity-translation-arrow {
    transform: rotate(90deg);
    min-height: 20px;
  }

  .activity-demand-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .activity-demand-preview {
    grid-template-columns: 1fr;
  }

  .activity-zone-demand-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .activity-zone-demand-card {
    padding: 20px 18px;
    min-height: 0;
  }

  .zone-card-header {
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .zone-card-header__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }

  .zone-card-header h3 {
    flex: 1 1 auto;
    min-width: 0;
  }

  .activity-zone-demand-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    margin-bottom: 16px;
  }

  .pwa-memory-module-grid,
  .collab-import-expected,
  .collab-summary-grid,
  .collab-summary-grid--wide,
  .pwa-file-status-grid {
    grid-template-columns: 1fr;
  }

  .activity-zone-demand-metrics span {
    font-size: 0.68rem;
  }

  .activity-zone-demand-metrics strong {
    font-size: 1rem;
  }

  .activity-zone-demand-bar {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }

  .activity-zone-demand-card__interpretation,
  .activity-zone-demand-card__static {
    max-width: none;
    font-size: 0.88rem;
    line-height: 1.55;
  }
}

@media (max-width: 400px) {
  .zone-card-header {
    align-items: flex-start;
  }

  .zone-card-header h3 {
    padding-top: 8px;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Detail Analyse
   Schritt 4: Rollenprofile + Stundenplan
   ========================================= */

.activity-detail-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.activity-detail-stage-card {
  min-height: 150px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  display: grid;
  align-content: start;
  gap: 8px;
}

.activity-detail-stage-card span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #01132b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.activity-detail-stage-card strong {
  color: #01132b;
  font-size: 1.05rem;
}

.activity-detail-stage-card p {
  margin: 0;
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.35;
}

.activity-role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.activity-role-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  min-height: 150px;
}

.activity-role-card strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-role-card span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

.activity-schedule-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 300px;
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.activity-schedule-table {
  display: grid;
  grid-template-columns: 90px repeat(5, minmax(60px, 1fr));
  border: 1px solid #e3ecef;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

.activity-schedule-table > div {
  min-height: 44px;
  padding: 10px;
  border-right: 1px solid #e3ecef;
  border-bottom: 1px solid #e3ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #01132b;
}

.activity-schedule-table > div:nth-child(6n) {
  border-right: 0;
}

.activity-schedule-head {
  background: #f0f6f8;
  color: #5e7287 !important;
  font-weight: 800 !important;
}

.mode-work {
  background: rgba(1, 19, 43, 0.10);
}

.mode-retreat {
  background: rgba(0, 122, 171, 0.16);
}

.mode-collab {
  background: rgba(255, 142, 91, 0.18);
}

.mode-communication {
  background: rgba(254, 193, 13, 0.24);
}

.mode-remote {
  background: rgba(129, 137, 149, 0.16);
}

.activity-schedule-legend {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-schedule-legend div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.3;
}

.mode-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dot-work {
  background: #01132B; /* Arbeitsplätze */
}

.dot-collab {
  background: #ff8e5b; /* Zusammenarbeit */
}

.dot-comm {
  background: #FEC10D; /* Kommunikation */
}

.dot-retreat {
  background: #007AAB; /* Rückzug */
}

.mode-dot-remote {
  background: #818995;
}

@media (max-width: 1180px) {
  .activity-detail-stage-grid,
  .activity-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-schedule-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .activity-detail-stage-grid,
  .activity-role-grid {
    grid-template-columns: 1fr;
  }

  .activity-schedule-table {
    grid-template-columns: 76px repeat(5, minmax(48px, 1fr));
    overflow-x: auto;
  }

  .activity-schedule-table > div {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 0.78rem;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Detail Mini-Fix
   Rollenprofile + Wochenmuster hinzufügen
   ========================================= */

.activity-role-card--add {
  border-style: dashed;
  border-color: rgba(255, 142, 91, 0.42);
  background: linear-gradient(180deg, rgba(255, 244, 238, 0.92) 0%, rgba(255,255,255,0.92) 100%);
}

.activity-role-card--add strong {
  color: #01132b;
}

.activity-schedule-note {
  max-width: 980px;
  margin: 0 0 14px;
  color: #5e7287;
  font-size: 0.98rem;
  line-height: 1.45;
}

.activity-schedule-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}

.activity-add-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 142, 91, 0.55);
  background: #fff4ee;
  color: #01132b;
  font: inherit;
  font-weight: 800;
  cursor: not-allowed;
  opacity: 0.82;
}

.activity-add-btn:not(:disabled) {
  cursor: pointer;
  opacity: 1;
}

.activity-schedule-actions span {
  color: #7a8ea0;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .activity-schedule-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-add-btn {
    width: 100%;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5A
   ========================================= */

.activity-light-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.activity-light-step {
  min-height: 150px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  display: grid;
  align-content: start;
  gap: 8px;
}

.activity-light-step span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #01132b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.activity-light-step strong {
  color: #01132b;
  font-size: 1.05rem;
}

.activity-light-step p {
  margin: 0;
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.35;
}

.activity-light-scan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.activity-light-input-card {
  padding: 18px 18px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-light-input-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.activity-light-input-head strong {
  color: #01132b;
  font-size: 1.08rem;
}

.activity-light-input-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #c45d2e;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-slider-preview {
  display: grid;
  gap: 14px;
}

.activity-slider-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1.4fr) 48px;
  gap: 12px;
  align-items: center;
}

.activity-slider-row label {
  color: #01132b;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.activity-slider-row strong {
  color: #01132b;
  font-size: 0.92rem;
  text-align: right;
}

.activity-fake-slider {
  height: 10px;
  border-radius: 999px;
  background: #e6eef2;
  overflow: hidden;
}

.activity-fake-slider span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #01132b 0%, #23a2aa 100%);
}

.activity-place-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.activity-place-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  min-height: 150px;
}

.activity-place-card strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-place-card span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

.activity-place-card em {
  margin-top: auto;
  color: #23a2aa;
  font-style: normal;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
}

.activity-light-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.activity-light-result-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255, 142, 91, 0.20);
}

.activity-light-result-card strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-light-result-card span {
  color: #5e7287;
  font-size: 0.88rem;
  line-height: 1.35;
}

.activity-light-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.activity-light-actions span {
  color: #7a8ea0;
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .activity-light-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-light-scan-grid,
  .activity-place-grid,
  .activity-light-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-slider-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .activity-slider-row strong {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .activity-light-flow,
  .activity-light-scan-grid,
  .activity-place-grid,
  .activity-light-result-grid {
    grid-template-columns: 1fr;
  }

  .activity-light-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-light-actions .activity-add-btn {
    width: 100%;
  }
}
/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5B: Mo–Fr Wochenkarten
   ========================================= */

.activity-week-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.activity-day-card {
  display: grid;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  min-height: 280px;
}

.activity-day-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-day-card__head strong {
  color: #01132b;
  font-size: 1.25rem;
}

.activity-day-card__head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #c45d2e;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-day-bars {
  display: grid;
  gap: 13px;
}

.activity-day-bar {
  display: grid;
  gap: 6px;
}

.activity-day-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.activity-day-bar__top span {
  color: #01132b;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.activity-day-bar__top strong {
  color: #5e7287;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-day-bar__track {
  height: 9px;
  border-radius: 999px;
  background: #e6eef2;
  overflow: hidden;
}

.activity-day-bar__track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.activity-week-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.22);
  color: #5e7287;
  font-size: 0.92rem;
  line-height: 1.45;
}

.activity-week-note strong {
  color: #01132b;
}

@media (max-width: 1280px) {
  .activity-week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .activity-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .activity-week-grid {
    grid-template-columns: 1fr;
  }

  .activity-day-card {
    min-height: auto;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5B: Mo–Fr Wochenkarten
   ========================================= */

.activity-week-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.activity-day-card {
  display: grid;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
  min-height: 280px;
}

.activity-day-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-day-card__head strong {
  color: #01132b;
  font-size: 1.25rem;
}

.activity-day-card__head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #c45d2e;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-day-bars {
  display: grid;
  gap: 13px;
}

.activity-day-bar {
  display: grid;
  gap: 6px;
}

.activity-day-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.activity-day-bar__top span {
  color: #01132b;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.activity-day-bar__top strong {
  color: #5e7287;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-day-bar__track {
  height: 9px;
  border-radius: 999px;
  background: #e6eef2;
  overflow: hidden;
}

.activity-day-bar__track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.activity-week-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.22);
  color: #5e7287;
  font-size: 0.92rem;
  line-height: 1.45;
}

.activity-week-note strong {
  color: #01132b;
}

@media (max-width: 1280px) {
  .activity-week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .activity-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .activity-week-grid {
    grid-template-columns: 1fr;
  }

  .activity-day-card {
    min-height: auto;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5C: echte Slider
   ========================================= */

.activity-day-card--interactive {
  min-height: 330px;
}

.activity-day-sliders {
  display: grid;
  gap: 13px;
}

.activity-day-slider-row {
  display: grid;
  gap: 6px;
}

.activity-day-slider-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.activity-day-slider-row__top label {
  color: #01132b;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.activity-day-slider-row__top strong {
  color: #5e7287;
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-day-range {
  --fill-percent: 0%;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  margin: 0;
}

.activity-day-range:focus {
  outline: none;
}

.activity-day-range::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      #7bcf9d 0%,
      #7bcf9d var(--fill-percent),
      #e6eef2 var(--fill-percent),
      #e6eef2 100%
    );
}

.activity-day-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #23a2aa;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.18);
  cursor: pointer;
}

.activity-day-range::-moz-range-track {
  height: 9px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      #7bcf9d 0%,
      #7bcf9d var(--fill-percent),
      #e6eef2 var(--fill-percent),
      #e6eef2 100%
    );
}

.activity-day-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #23a2aa;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.18);
  cursor: pointer;
}

.activity-day-reset {
  margin-top: auto;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid #dce8ec;
  background: #ffffff;
  color: #5e7287;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.activity-day-reset:hover {
  color: #01132b;
  border-color: #ffc5aa;
  background: #fff4ee;
}

.activity-day-card__head span.is-warning {
  background: #fff0ef;
  border-color: #ffc7c1;
  color: #a53d31;
}

/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5D: IST / IDEAL Toggle
   ========================================= */

.activity-week-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin: 4px 0 20px;
  border-radius: 999px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-week-toggle__btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #5e7287;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.activity-week-toggle__btn:hover {
  color: #01132b;
  background: #fff7f3;
}

.activity-week-toggle__btn.is-active {
  color: #01132b;
  background: #ffe9df;
  border-color: #ffc5aa;
  box-shadow: 0 8px 18px rgba(255, 142, 91, 0.10);
}

@media (max-width: 640px) {
  .activity-week-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .activity-week-toggle__btn {
    padding: 0 12px;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Light Scan
   Schritt 5E.1: Team-DNA Ergebnis-Kachel
   ========================================= */

.activity-dna-card {
  margin-top: 22px;
  padding: 22px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,251,252,0.98) 100%);
  border: 1px solid rgba(1, 19, 43, 0.07);
  box-shadow: 0 10px 24px rgba(1, 19, 43, 0.04);
}

.activity-dna-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.activity-dna-card__head h2 {
  margin-bottom: 8px;
}

.activity-dna-card__head p {
  max-width: 840px;
  margin-bottom: 0;
  color: #5e7287;
  line-height: 1.45;
}

.activity-dna-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff4ee;
  border: 1px solid #ffc5aa;
  color: #c45d2e;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.activity-dna-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.activity-dna-metric {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-dna-metric strong {
  color: #01132b;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
}

.activity-dna-metric span {
  color: #5e7287;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.activity-dna-insight {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.22);
  display: grid;
  gap: 4px;
}

.activity-dna-insight strong {
  color: #01132b;
}

.activity-dna-insight span {
  color: #5e7287;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .activity-dna-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-dna-card__head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .activity-dna-grid {
    grid-template-columns: 1fr;
  }

  .activity-dna-card {
    padding: 18px 16px;
    border-radius: 20px;
  }
}

/* WoSI – Tätigkeitsanalyse Arbeitsorte interaktiv */

.activity-place-sliders {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-place-slider-row {
  display: grid;
  gap: 8px;
}

.activity-place-slider-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-place-slider-row__top label {
  color: #01132b;
  font-size: 0.95rem;
  font-weight: 800;
}

.activity-place-slider-row__top strong {
  color: #5e7287;
  font-size: 0.92rem;
  font-weight: 800;
}

.activity-place-range {
  --fill-percent: 0%;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  margin: 0;
}

.activity-place-range:focus {
  outline: none;
}

.activity-place-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #7bcf9d 0%,
    #7bcf9d var(--fill-percent),
    #e6eef2 var(--fill-percent),
    #e6eef2 100%
  );
}

.activity-place-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #23a2aa;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.18);
  cursor: pointer;
}

.activity-place-range::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #7bcf9d 0%,
    #7bcf9d var(--fill-percent),
    #e6eef2 var(--fill-percent),
    #e6eef2 100%
  );
}

.activity-place-range::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #23a2aa;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(1, 19, 43, 0.18);
  cursor: pointer;
}

.activity-place-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.22);
}

.activity-place-total strong {
  color: #01132b;
  font-size: 1.25rem;
}

.activity-place-total span {
  color: #5e7287;
  font-size: 0.9rem;
  font-weight: 700;
}

.activity-place-total.is-warning {
  background: #fff0ef;
  border-color: #ffc7c1;
}

.activity-place-total.is-warning strong {
  color: #a53d31;
}

@media (max-width: 640px) {
  .activity-place-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* WoSI – Tätigkeitsanalyse 5I: IST/IDEAL Delta */

.activity-delta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.activity-delta-metric {
  display: grid;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 18px;
  background: #fff7f3;
  border: 1px solid rgba(255, 142, 91, 0.22);
}

.activity-delta-metric strong {
  color: #01132b;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
}

.activity-delta-metric strong.is-positive {
  color: #0b8f66;
}

.activity-delta-metric strong.is-negative {
  color: #c45d2e;
}

.activity-delta-metric span {
  color: #5e7287;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .activity-delta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .activity-delta-grid {
    grid-template-columns: 1fr;
  }
}

.activity-delta-metric strong.is-neutral {
  color: #5e7287;
}

.activity-delta-metric strong.is-positive::before,
.activity-delta-metric strong.is-negative::before {
  display: none;
}

/* WoSI – Tätigkeitsanalyse Arbeitsorte-Auswertung live */

.activity-place-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.activity-place-insight-card {
  display: grid;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 18px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-place-insight-card strong {
  color: #01132b;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
}

.activity-place-insight-card span {
  color: #5e7287;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .activity-place-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .activity-place-insights {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Smart Analytics Data Layer
   ========================================= */

.activity-data-switch {
  background: linear-gradient(180deg, #fff7f3 0%, #ffffff 100%);
}

.activity-mode-pill--recommended {
  background: #e8f7f7;
  border-color: #bfe5e6;
  color: #01132b;
}

.activity-data-layer-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(235,250,251,0.92) 100%);
  border-color: rgba(35, 162, 170, 0.22);
}

.activity-data-layer-card p {
  max-width: 980px;
}

.activity-data-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.activity-data-layer-item {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-data-layer-item strong {
  color: #01132b;
  font-size: 1rem;
}

.activity-data-layer-item span {
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.4;
}

.activity-data-layer-item--highlight {
  background: linear-gradient(180deg, rgba(35,162,170,0.12) 0%, rgba(35,162,170,0.05) 100%);
  border-color: rgba(35,162,170,0.26);
}

@media (max-width: 900px) {
  .activity-data-layer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI – Tätigkeitsanalyse Delta / Kosten-Nutzen Bridge
   ========================================= */

.activity-delta-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border-color: rgba(35, 162, 170, 0.18);
}

.activity-delta-card p {
  max-width: 980px;
}

.activity-delta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.activity-delta-metric {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.activity-delta-metric span {
  color: #5e7287;
  font-size: 0.9rem;
  font-weight: 700;
}

.activity-delta-metric strong {
  color: #01132b;
  font-size: 1.35rem;
  line-height: 1;
}

.activity-delta-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e7eff2;
  overflow: hidden;
}

.activity-delta-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #ff8e5b;
}

.activity-delta-metric--measured .activity-delta-bar i {
  background: #23a2aa;
}

.activity-delta-metric--delta {
  background: linear-gradient(180deg, rgba(35,162,170,0.10) 0%, rgba(255,142,91,0.06) 100%);
  border-color: rgba(35,162,170,0.22);
}

.activity-delta-metric--delta .activity-delta-bar i {
  background: linear-gradient(90deg, #23a2aa 0%, #ff8e5b 100%);
}

.activity-impact-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 18px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #dce8ec;
}

.activity-impact-bridge div:first-child {
  display: grid;
  gap: 4px;
}

.activity-impact-bridge strong {
  color: #01132b;
}

.activity-impact-bridge span {
  color: #5e7287;
  font-size: 0.92rem;
  line-height: 1.4;
}

.activity-impact-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #e8f7f7;
  border: 1px solid #bfe5e6;
  color: #01132b;
  font-weight: 800;
}

@media (max-width: 900px) {
  .activity-delta-grid {
    grid-template-columns: 1fr;
  }

  .activity-impact-bridge {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-impact-badge {
    width: 100%;
  }
}

.activity-impact-badge--validated {
  background: linear-gradient(180deg, #e8f7f7 0%, #f0fbfb 100%);
  border-color: #bfe5e6;
  color: #01132b;
}

/* =========================================
   WoSI – Data Layer: Subjektive Nutzung orange hervorheben
   ganz unten einfügen
   ========================================= */

.page-activity .activity-data-layer-item.activity-data-layer-item--subjective {
  background: linear-gradient(
    180deg,
    rgba(255, 142, 91, 0.16) 0%,
    rgba(255, 142, 91, 0.07) 100%
  ) !important;
  border-color: rgba(255, 142, 91, 0.42) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 142, 91, 0.08);
}

.page-activity .activity-data-layer-item.activity-data-layer-item--subjective strong {
  color: #01132b;
}

.page-activity .activity-data-layer-item.activity-data-layer-item--subjective span {
  color: #5e7287;
}

/* =========================================
   WoSI – Ergebnisdialog Data Layer
   ========================================= */

.activity-results-data-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 28px 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(235, 250, 251, 0.7) 0%,
    rgba(255, 245, 240, 0.6) 100%
  );
  border: 1px solid rgba(35, 162, 170, 0.18);
}

.activity-results-data-layer__content {
  display: grid;
  gap: 4px;
}

.activity-results-data-layer__content strong {
  color: #01132b;
}

.activity-results-data-layer__content span {
  color: #5e7287;
  font-size: 0.92rem;
}

.activity-results-data-layer__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #e8f7f7;
  border: 1px solid #bfe5e6;
  color: #01132b;
  font-weight: 800;
}

/* =========================================
   WoSI – Journey Grundlagen Update 2
   Eine breite Kachel + 4 Zonen-Karten
   ========================================= */

.journey-basics-single {
  padding: 28px;
}

.journey-basics-single__intro h2 {
  margin-bottom: 16px;
}

.journey-basics-single__textgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
}

.journey-basics-single__textgrid p {
  margin-bottom: 0;
}

.journey-zone-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.journey-zone-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f9fb;
  border: 1px solid rgba(1, 19, 43, 0.07);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.journey-zone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(1, 19, 43, 0.08);
  border-color: rgba(35, 162, 170, 0.20);
}

.journey-zone-card__copy {
  margin-bottom: 14px;
}

.journey-zone-card__copy h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.2;
}

.journey-zone-card__copy p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.38;
  color: var(--s3-text-soft);
}

.journey-zone-card--work h3 {
  color: #01132b;
}

.journey-zone-card--collab h3 {
  color: #e79b45;
}

.journey-zone-card--communication h3 {
  color: #c6a800;
}

.journey-zone-card--retreat h3 {
  color: #007aab;
}

.journey-zone-card__image-wrap {
  margin-top: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.journey-zone-card__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

@media (max-width: 1180px) {
  .journey-zone-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-zone-card {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .journey-basics-single {
    padding: 20px 16px;
  }

  .journey-basics-single__textgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .journey-zone-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
  }

  .journey-zone-card {
    min-height: 0;
    padding: 14px;
  }
}

/* =========================================
   WoSI – Journey Grundlagen Text zweispaltig
   Desktop: zweiter Absatz rechts
   Mobile: sauber untereinander
   ========================================= */

.journey-basics-single__textgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  max-width: 100%;
  align-items: start;
}

.journey-basics-single__textgrid p {
  max-width: 560px;
}

@media (max-width: 760px) {
  .journey-basics-single__textgrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .journey-basics-single__textgrid p {
    max-width: none;
  }
}

/* =========================================
   WoSI – Hinweis Referenzwert
   ========================================= */

.journey-conditions-note {
  margin-top: 14px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(1, 19, 43, 0.55);
  text-align: left;
  padding-left: 4px;
}

/* =========================================
   WoSI – Dashboard Projektmodus Karten Verlauf
   dezenter S3-Blau-Verlauf von Nordost nach Südwest
   ========================================= */

.dashboard-card-project {
  background:
    linear-gradient(
      225deg,
      #dce8f4 0%,
      #eef4fa 38%,
      #ffffff 78%,
      #ffffff 100%
    );
  border-color: rgba(1, 19, 43, 0.14);
  box-shadow: 0 12px 28px rgba(1, 19, 43, 0.06);
}

.dashboard-card-project:hover {
  background:
    linear-gradient(
      225deg,
      #cfddeb 0%,
      #e8f0f8 40%,
      #ffffff 80%,
      #ffffff 100%
    );
  border-color: rgba(1, 19, 43, 0.20);
  box-shadow: 0 16px 34px rgba(1, 19, 43, 0.09);
}

/* =========================================
   WoSI – Tätigkeitsanalyse 5J.4
   Teilnehmer-/Abteilungs-Kontext Light Scan
   ========================================= */

.activity-context-page {
  display: flex;
  flex-direction: column;
}

.activity-context-page .activity-org-structure {
  order: 3;
}

.activity-context-page .activity-participant-context {
  order: 4;
}

.activity-context-page .activity-surveymonkey-integration {
  order: 5;
}

.activity-context-page .activity-survey-import {
  order: 6;
}

.activity-context-page .activity-import-status {
  order: 7;
}

.activity-context-page .activity-smart-office-layer {
  order: 8;
}

.activity-context-page .activity-context-continue {
  order: 9;
}

.activity-context-layer {
  margin-top: 28px;
  padding: 22px 20px;
  border: 1px solid rgba(1, 19, 43, 0.07);
  border-radius: 22px;
  background: rgba(248, 251, 252, 0.72);
}

.activity-context-layer:first-of-type {
  margin-top: 22px;
}

.activity-context-layer h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--s3-navy);
}

.activity-context-readonly-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 16px;
}

.activity-context-readonly-item {
  display: grid;
  gap: 4px;
}

.activity-context-readonly-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e7287;
}

.activity-context-readonly-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: #01132b;
  line-height: 1.35;
}

.activity-context-empty-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(1, 19, 43, 0.12);
  color: #5e7287;
  font-size: 0.92rem;
  line-height: 1.5;
}

.activity-context-empty-note a {
  color: var(--s3-teal-dark);
  font-weight: 700;
}

.activity-context-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.activity-context-source-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(1, 19, 43, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: #5e7287;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.activity-context-source-pill-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.activity-context-source-pill-main {
  line-height: 1.1;
}

.activity-context-source-pill.is-active {
  color: #01132b;
  border-color: rgba(35, 162, 170, 0.28);
  background: rgba(35, 162, 170, 0.08);
}

.activity-context-source-pill.is-legacy {
  opacity: 0.82;
}

.activity-context-source-pill.has-status {
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.activity-context-source-pill-status {
  display: block;
  margin-top: 3px;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.1;
  color: #5e7287;
  text-transform: none;
  letter-spacing: 0;
}

.activity-smart-office-layer {
  border-color: rgba(0, 122, 171, 0.16);
  background: rgba(232, 245, 246, 0.28);
}

.activity-smart-office-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.activity-smart-office-status-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.activity-smart-office-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #006a62;
  background: rgba(0, 211, 196, 0.14);
  border: 1px solid rgba(0, 211, 196, 0.22);
}

.activity-smart-office-dashboard-action {
  margin-top: 12px;
}

.activity-smart-office-dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-inline: 18px;
}

.activity-smart-office-dashboard-hint,
.activity-smart-office-url-warning {
  margin-top: 8px;
  margin-bottom: 0;
}

.activity-smart-office-form {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  max-width: 720px;
}

.activity-smart-office-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.activity-smart-office-hint code {
  font-size: 0.82em;
}

.activity-smart-office-page .smart-office-module-section {
  margin-top: 22px;
}

.activity-smart-office-page .smart-office-module-section h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.smart-office-kpi-grid {
  margin-bottom: 18px;
}

.smart-office-data-quality--high strong {
  color: var(--s3-teal-dark);
}

.smart-office-data-quality--medium strong {
  color: #9a6b00;
}

.smart-office-data-quality--low strong {
  color: #8a4b12;
}

.smart-office-table-wrap {
  margin-top: 12px;
}

.smart-office-env-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.smart-office-env-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.smart-office-env-card strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.smart-office-env-card__status {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.smart-office-env-card--good {
  border-color: rgba(35, 162, 170, 0.28);
  background: rgba(232, 245, 246, 0.7);
}

.smart-office-env-card--good .smart-office-env-card__status {
  color: var(--s3-teal-dark);
}

.smart-office-env-card--medium {
  border-color: rgba(154, 107, 0, 0.24);
  background: rgba(154, 107, 0, 0.06);
}

.smart-office-env-card--medium .smart-office-env-card__status {
  color: #9a6b00;
}

.smart-office-env-card--bad {
  border-color: rgba(255, 142, 91, 0.36);
  background: rgba(255, 142, 91, 0.08);
}

.smart-office-env-card--bad .smart-office-env-card__status {
  color: #c45c26;
}

.smart-office-env-card--unknown {
  opacity: 0.88;
}

.smart-office-kpi-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(1, 19, 43, 0.62);
}

.smart-office-overview-meta {
  margin-top: 8px;
}

.smart-office-coverage-glance {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(35, 162, 170, 0.18);
  background: rgba(232, 245, 246, 0.28);
}

.smart-office-coverage-glance h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.smart-office-layout-preview {
  margin: 0 0 12px;
}

.smart-office-layout-preview img,
.activity-smart-office-scope-layout-thumb {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(280px, 46vh);
  border-radius: 10px;
  border: 1px solid rgba(1, 19, 43, 0.12);
  object-fit: contain;
  background: #fff;
}

@media (max-width: 720px) {
  .smart-office-layout-preview img {
    max-height: 200px;
  }
}

.activity-smart-office-scope {
  margin: 18px 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.18);
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.activity-smart-office-scope > summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #01132B;
  padding: 12px 16px;
}

.activity-smart-office-scope > summary::-webkit-details-marker,
.activity-smart-office-scope > summary::marker {
  display: none;
  content: '';
}

.activity-smart-office-scope > summary:hover,
.activity-smart-office-scope > summary:focus-visible {
  background: #0a2748;
  outline: 2px solid #23A2AA;
  outline-offset: 2px;
}

.activity-smart-office-scope__summary-text {
  color: #fff;
}

.activity-smart-office-scope__chevron {
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: auto;
  flex-shrink: 0;
}

.activity-smart-office-scope[open] > summary .activity-smart-office-scope__chevron {
  transform: rotate(-135deg);
  margin-top: 6px;
}

.activity-smart-office-scope__body {
  padding: 14px 16px 16px;
  background: #fff;
}

.activity-smart-office-scope__badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #01132B;
  background: #FEC10D;
  border-radius: 999px;
  padding: 4px 10px;
}

.activity-smart-office-scope__count {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.activity-smart-office-scope__draft {
  margin: 8px 0;
  font-size: 0.88rem;
  color: rgba(1, 19, 43, 0.72);
}

.activity-smart-office-scope-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.activity-smart-office-scope__hint {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(154, 107, 0, 0.1);
  color: #7a5600;
}

.activity-smart-office-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.activity-smart-office-scope-object,
.activity-smart-office-scope-layout,
.activity-smart-office-scope-types {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.activity-smart-office-scope-object legend,
.activity-smart-office-scope-layout legend {
  font-weight: 700;
}

.smart-office-coverage-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.smart-office-coverage-strip__item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.smart-office-coverage-strip__item span {
  display: block;
  font-size: 0.72rem;
  color: #5e7287;
  font-weight: 700;
}

.smart-office-coverage-strip__item strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: #01132b;
}

.smart-office-coverage-strip__item em {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-style: normal;
  color: #5e7287;
  line-height: 1.35;
}

.smart-office-insights {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(35, 162, 170, 0.18);
  background: rgba(232, 245, 246, 0.42);
}

.smart-office-insights h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.smart-office-insights-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
}

.smart-office-ranking {
  display: grid;
  gap: 10px;
  margin: 14px 0 22px;
}

.smart-office-ranking-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.smart-office-ranking-rank {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(1, 19, 43, 0.55);
  padding-top: 2px;
}

.smart-office-ranking-body {
  display: grid;
  gap: 6px;
}

.smart-office-ranking-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.smart-office-ranking-label {
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-word;
}

.smart-office-ranking-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(1, 19, 43, 0.08);
  overflow: hidden;
}

.smart-office-ranking-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.smart-office-ranking-bar-fill--high {
  background: var(--s3-teal-dark);
}

.smart-office-ranking-bar-fill--medium {
  background: #9a6b00;
}

.smart-office-ranking-bar-fill--low {
  background: #6b7a86;
}

.smart-office-ranking-value {
  font-size: 0.78rem;
  color: rgba(1, 19, 43, 0.62);
}

.smart-office-utilization {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}

.smart-office-utilization--high {
  color: var(--s3-teal-dark);
  background: rgba(35, 162, 170, 0.14);
}

.smart-office-utilization--medium {
  color: #9a6b00;
  background: rgba(154, 107, 0, 0.12);
}

.smart-office-utilization--low {
  color: #6b7a86;
  background: rgba(107, 122, 134, 0.14);
}

.smart-office-usage-relevance-tile-wrap {
  margin: 0 0 18px;
}

.smart-office-usage-relevance-tile-wrap--usage {
  margin-top: 4px;
}

.smart-office-usage-relevance-tile {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(35, 162, 170, 0.18);
  background: linear-gradient(135deg, rgba(232, 245, 246, 0.72), rgba(255, 255, 255, 0.96));
}

.smart-office-usage-relevance-tile--high {
  border-color: rgba(35, 162, 170, 0.28);
  background: linear-gradient(135deg, rgba(232, 245, 246, 0.9), rgba(255, 255, 255, 0.96));
}

.smart-office-usage-relevance-tile--medium {
  border-color: rgba(154, 107, 0, 0.22);
  background: linear-gradient(135deg, rgba(154, 107, 0, 0.06), rgba(255, 255, 255, 0.96));
}

.smart-office-usage-relevance-tile--low,
.smart-office-usage-relevance-tile--unknown {
  border-color: rgba(107, 122, 134, 0.22);
  background: linear-gradient(135deg, rgba(107, 122, 134, 0.06), rgba(255, 255, 255, 0.96));
}

.smart-office-usage-relevance-tile__kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(1, 19, 43, 0.58);
}

.smart-office-usage-relevance-tile__title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #01132b;
}

.smart-office-usage-relevance-tile__hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 18px;
  align-items: center;
}

.smart-office-usage-relevance-tile__ratio {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #01132b;
}

.smart-office-usage-relevance-tile__percent {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.smart-office-usage-relevance-tile__percent strong {
  font-size: 1.35rem;
  line-height: 1.1;
  color: #01132b;
}

.smart-office-usage-relevance-tile__percent span {
  font-size: 0.82rem;
  color: rgba(1, 19, 43, 0.62);
}

.smart-office-usage-relevance-tile__status {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.smart-office-usage-relevance-tile--high .smart-office-usage-relevance-tile__status {
  color: var(--s3-teal-dark);
  background: rgba(35, 162, 170, 0.14);
}

.smart-office-usage-relevance-tile--medium .smart-office-usage-relevance-tile__status {
  color: #9a6b00;
  background: rgba(154, 107, 0, 0.12);
}

.smart-office-usage-relevance-tile--low .smart-office-usage-relevance-tile__status,
.smart-office-usage-relevance-tile--unknown .smart-office-usage-relevance-tile__status {
  color: #6b7a86;
  background: rgba(107, 122, 134, 0.14);
}

.smart-office-usage-relevance-tile__bar {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: rgba(1, 19, 43, 0.08);
  overflow: hidden;
}

.smart-office-usage-relevance-tile__bar-fill {
  height: 100%;
  border-radius: inherit;
  background: #23a2aa;
}

.smart-office-usage-relevance-tile--high .smart-office-usage-relevance-tile__bar-fill {
  background: #1f8f97;
}

.smart-office-usage-relevance-tile--medium .smart-office-usage-relevance-tile__bar-fill {
  background: #c9a227;
}

.smart-office-usage-relevance-tile--low .smart-office-usage-relevance-tile__bar-fill,
.smart-office-usage-relevance-tile--unknown .smart-office-usage-relevance-tile__bar-fill {
  background: #8a97a3;
}

.smart-office-usage-relevance-tile__explanation,
.smart-office-usage-relevance-tile__distribution {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(1, 19, 43, 0.72);
}

.smart-office-usage-relevance-tile__distribution {
  margin-top: 8px;
  font-weight: 600;
}

.smart-office-triangulation__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smart-office-triangulation__card--relevance {
  border-top-color: #1f8f97;
}

.smart-office-triangulation__finding {
  padding: 13px 15px;
  border-left: 4px solid #1f8f97;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.smart-office-triangulation__finding p {
  margin: 0 0 8px;
  color: rgba(1, 19, 43, 0.72);
  font-size: 0.86rem;
  line-height: 1.5;
}

.smart-office-triangulation__finding p:last-child {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .smart-office-usage-relevance-tile__hero {
    grid-template-columns: 1fr;
  }

  .smart-office-triangulation__grid--four {
    grid-template-columns: 1fr;
  }
}

.smart-office-performance-score {
  display: inline-flex;
  min-width: 2.2rem;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
  background: rgba(35, 162, 170, 0.12);
  color: #0d6f75;
}

.smart-office-env-score {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(35, 162, 170, 0.16);
  background: rgba(232, 245, 246, 0.5);
}

.smart-office-env-legend {
  margin-top: 18px;
  font-size: 0.86rem;
  color: rgba(1, 19, 43, 0.72);
}

.smart-office-env-legend h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.smart-office-env-legend ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 4px;
}

.smart-office-iframe-placeholder {
  margin-top: 22px;
  border: 2px dashed rgba(1, 19, 43, 0.16);
  border-radius: 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 19, 43, 0.02);
}

.smart-office-iframe-placeholder__inner {
  text-align: center;
  padding: 24px;
  color: rgba(1, 19, 43, 0.55);
}

.smart-office-iframe-placeholder__label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(1, 19, 43, 0.72);
}

.smart-office-iframe-placeholder--muted {
  min-height: 120px;
  margin-top: 14px;
  border-style: dotted;
  background: rgba(1, 19, 43, 0.015);
}

.smart-office-mgmt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
  align-items: stretch;
}

.smart-office-mgmt-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smart-office-mgmt-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-office-mgmt-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.smart-office-mgmt-card strong {
  font-size: 1.38rem;
  line-height: 1.2;
  color: var(--s3-navy);
  overflow-wrap: anywhere;
}

.smart-office-mgmt-card .smart-office-kpi-sub {
  margin-top: auto;
}

.smart-office-mgmt-card__kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--s3-text-soft);
}

.smart-office-mgmt-card--primary {
  border-color: rgba(35, 162, 170, 0.28);
  background: linear-gradient(180deg, rgba(232, 245, 246, 0.92), #fff 62%);
}

.smart-office-mgmt-card--accent {
  border-color: rgba(255, 142, 91, 0.32);
  background: linear-gradient(180deg, rgba(255, 244, 236, 0.92), #fff 62%);
}

.smart-office-disclose {
  margin: 8px 0 22px;
  border: 1px solid rgba(35, 162, 170, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.smart-office-disclose > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--s3-navy);
}

.smart-office-disclose > summary::-webkit-details-marker,
.smart-office-disclose > summary::marker {
  display: none;
  content: '';
}

.smart-office-disclose > summary::before {
  content: '';
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-right: 10px;
  border-right: 2px solid var(--s3-teal-dark);
  border-bottom: 2px solid var(--s3-teal-dark);
  transform: rotate(45deg);
  vertical-align: 0.12em;
}

.smart-office-disclose[open] > summary::before {
  transform: rotate(-135deg);
  vertical-align: -0.05em;
}

.smart-office-disclose > summary:hover,
.smart-office-disclose > summary:focus-visible {
  background: rgba(232, 245, 246, 0.55);
  outline: 2px solid var(--s3-teal);
  outline-offset: -2px;
  border-radius: 14px;
}

.smart-office-disclose[open] > summary {
  border-bottom: 1px solid rgba(35, 162, 170, 0.14);
  border-radius: 14px 14px 0 0;
}

.smart-office-disclose > *:not(summary) {
  margin: 0 16px 14px;
}

.smart-office-disclose > *:not(summary):last-child {
  margin-bottom: 16px;
}

.smart-office-disclose > *:not(summary):first-of-type {
  margin-top: 14px;
}

.smart-office-env-overall {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(35, 162, 170, 0.2);
  background: rgba(232, 245, 246, 0.55);
  font-weight: 600;
  color: var(--s3-navy);
}

.smart-office-ai-scale-block {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(232, 245, 246, 0.35);
}

.smart-office-ai-scale-block h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.smart-office-ai-scale-list {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
}

.smart-office-ai-scale-list .is-active {
  font-weight: 800;
  color: var(--s3-teal-dark);
}

@media (max-width: 1100px) {
  .smart-office-mgmt-grid,
  .smart-office-mgmt-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .smart-office-mgmt-grid,
  .smart-office-mgmt-grid--two,
  .smart-office-mgmt-grid--three {
    grid-template-columns: 1fr;
  }

  .smart-office-mgmt-card strong {
    font-size: 1.22rem;
  }
}

.smart-office-evidence-section .smart-office-evidence-sources {
  margin-bottom: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-office-evidence-source--on strong {
  color: var(--s3-teal-dark);
}

.smart-office-evidence-source--off strong {
  color: rgba(1, 19, 43, 0.45);
}

.smart-office-evidence-kpis {
  margin-bottom: 18px;
}

.smart-office-evidence-quality--good strong {
  color: var(--s3-teal-dark);
}

.smart-office-evidence-quality--medium strong {
  color: #9a6b00;
}

.smart-office-evidence-quality--bad strong {
  color: #c45c26;
}

.smart-office-management-insights {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.smart-office-management-insights h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.smart-office-management-hint {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: rgba(1, 19, 43, 0.72);
}

.smart-office-management-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.smart-office-management-col--empty {
  min-height: 0;
}

.smart-office-management-col {
  border-radius: 12px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  padding: 12px 12px;
  background: rgba(1, 19, 43, 0.02);
}

.smart-office-management-col__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(1, 19, 43, 0.62);
}

.smart-office-management-empty {
  color: rgba(1, 19, 43, 0.62);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
}

.smart-office-management-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
}

.smart-office-management-topic {
  display: inline-block;
  font-weight: 800;
  margin-right: 6px;
}

.smart-office-management-text {
  color: rgba(1, 19, 43, 0.78);
}

.smart-office-executive-storyline {
  margin-top: 18px;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.12);
  background: rgba(232, 245, 246, 0.42);
}

.smart-office-executive-storyline__kicker {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(1, 19, 43, 0.62);
  margin-bottom: 14px;
}

.smart-office-executive-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.smart-office-executive-kpi {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.1);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.smart-office-executive-kpi strong {
  font-size: 1rem;
}

.smart-office-executive-kpi--good {
  border-color: rgba(11, 122, 83, 0.22);
}

.smart-office-executive-kpi--medium {
  border-color: rgba(154, 107, 0, 0.22);
}

.smart-office-executive-kpi--bad {
  border-color: rgba(176, 52, 42, 0.22);
}

.smart-office-executive-summary {
  margin-top: 4px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.smart-office-executive-summary__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
  color: rgba(1, 19, 43, 0.88);
  max-width: 72ch;
}

.smart-office-ai-section {
  margin-top: 8px;
}

.smart-office-ai-lead {
  max-width: 72ch;
}

.smart-office-ai-empty-state {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(0, 122, 171, 0.22);
  background: rgba(0, 122, 171, 0.04);
  line-height: 1.6;
  color: #01132b;
}

.smart-office-ai-empty-state p {
  margin: 0 0 8px;
}

.smart-office-ai-empty-state p:last-child {
  margin-bottom: 0;
  color: #5e7287;
}

.smart-office-ai-cockpit {
  display: grid;
  gap: 18px;
  margin: 18px 0 22px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(0, 122, 171, 0.03) 100%);
  box-shadow: 0 12px 28px rgba(1, 19, 43, 0.04);
}

.smart-office-ai-hero-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.smart-office-ai-hero-section {
  margin-top: 0;
  display: flex;
  min-height: 100%;
}

.smart-office-ai-hero-section .readiness-hero-card {
  flex: 1;
  width: 100%;
  min-height: 100%;
}

.smart-office-ai-hero-section .readiness-hero-card__content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.smart-office-ai-hero-section .readiness-score-scale {
  margin-top: auto;
}

.smart-office-ai-hero-card--weak {
  border-color: rgba(180, 35, 24, 0.2);
  background: linear-gradient(135deg, rgba(180, 35, 24, 0.06) 0%, rgba(255, 142, 91, 0.08) 100%);
}

.smart-office-ai-hero-card--first {
  border-color: rgba(255, 142, 91, 0.22);
  background: linear-gradient(135deg, rgba(255, 142, 91, 0.08) 0%, rgba(1, 19, 43, 0.04) 100%);
}

.smart-office-ai-hero-card--good {
  border-color: rgba(0, 122, 171, 0.22);
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.08) 0%, rgba(0, 211, 196, 0.06) 100%);
}

.smart-office-ai-hero-card--high {
  border-color: rgba(0, 211, 196, 0.24);
  background: linear-gradient(135deg, rgba(0, 211, 196, 0.1) 0%, rgba(0, 122, 171, 0.08) 100%);
}

.smart-office-ai-confidence-hero--low {
  border-color: rgba(180, 35, 24, 0.2);
  background: linear-gradient(135deg, rgba(180, 35, 24, 0.06) 0%, rgba(255, 142, 91, 0.08) 100%);
}

.smart-office-ai-confidence-hero--medium {
  border-color: rgba(255, 142, 91, 0.22);
  background: linear-gradient(135deg, rgba(255, 142, 91, 0.08) 0%, rgba(1, 19, 43, 0.04) 100%);
}

.smart-office-ai-confidence-hero--high {
  border-color: rgba(0, 122, 171, 0.22);
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.08) 0%, rgba(0, 211, 196, 0.06) 100%);
}

.smart-office-ai-confidence-hero--very-high {
  border-color: rgba(0, 211, 196, 0.24);
  background: linear-gradient(135deg, rgba(0, 211, 196, 0.1) 0%, rgba(0, 122, 171, 0.08) 100%);
}

.smart-office-ai-stage-badge--weak,
.smart-office-ai-confidence-badge--low {
  color: #8f1f16;
  background: rgba(180, 35, 24, 0.12);
}

.smart-office-ai-stage-badge--first,
.smart-office-ai-confidence-badge--medium {
  color: #9a4d1d;
  background: rgba(255, 142, 91, 0.14);
}

.smart-office-ai-stage-badge--good,
.smart-office-ai-confidence-badge--high {
  color: #005f86;
  background: rgba(0, 122, 171, 0.12);
}

.smart-office-ai-stage-badge--high,
.smart-office-ai-confidence-badge--very-high {
  color: #006a62;
  background: rgba(0, 211, 196, 0.16);
}

.smart-office-ai-score-scale__labels--evidence,
.smart-office-ai-score-scale__labels--confidence {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smart-office-ai-confidence-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.smart-office-ai-confidence-card__facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #01132b;
  background: rgba(1, 19, 43, 0.05);
}

.smart-office-ai-confidence-scale__marker {
  background: #0a4f73;
}

.smart-office-ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.smart-office-ai-actions--cockpit {
  margin: 0;
}

.smart-office-ai-actions__form {
  display: inline-flex;
  margin: 0;
}

.smart-office-ai-actions__meta {
  font-size: 0.88rem;
  color: rgba(1, 19, 43, 0.62);
}

.smart-office-ai-executive-spotlight {
  margin: 0 0 14px;
  box-shadow: 0 10px 24px rgba(1, 19, 43, 0.05);
}

.smart-office-ai-unavailable-note {
  margin-top: 4px;
}

.smart-office-ai-briefing {
  display: grid;
  gap: 14px;
}

.smart-office-ai-briefing-card {
  margin: 0;
}

.smart-office-ai-briefing-card--priority {
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.04);
}

.smart-office-ai-briefing-card--secondary {
  opacity: 0.96;
}

.smart-office-ai-briefing-card__summary {
  margin: 0;
  line-height: 1.68;
  color: #01132b;
}

.smart-office-ai-briefing-card__panel {
  display: none;
  margin-top: 10px;
}

.smart-office-ai-briefing-card__panel.is-open {
  display: block;
}

.smart-office-ai-briefing-card__body:has(.smart-office-ai-briefing-card__panel.is-open) [data-smart-office-ai-summary-preview] {
  display: none;
}

.smart-office-ai-briefing-card__panel p {
  margin: 0;
  line-height: 1.65;
}

.smart-office-ai-briefing-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.58;
}

.smart-office-ai-briefing-list li + li {
  margin-top: 8px;
}

.smart-office-ai-recommendation-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.smart-office-ai-recommendation-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 211, 196, 0.14);
}

.smart-office-ai-recommendation-list__type {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #006a62;
}

.smart-office-ai-recommendation-list__text {
  line-height: 1.55;
  color: #01132b;
}

.smart-office-ai-meta-details {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(1, 19, 43, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.smart-office-ai-meta-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #01132b;
}

.smart-office-ai-meta-grid {
  margin-top: 12px;
}

.insights-module-lead {
  max-width: 72ch;
}

.insights-executive-cockpit {
  display: grid;
  gap: 18px;
  margin: 18px 0 22px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(0, 122, 171, 0.03) 100%);
  box-shadow: 0 12px 28px rgba(1, 19, 43, 0.04);
}

.insights-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.insights-kpi-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(1, 19, 43, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.insights-kpi-card__label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5e7287;
  margin-bottom: 8px;
}

.insights-kpi-card__value {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.1;
  color: #01132b;
}

.insights-kpi-card__suffix {
  font-size: 0.95rem;
  font-weight: 600;
  color: #5e7287;
  margin-left: 4px;
}

.insights-kpi-card__status {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5e7287;
}

.insights-module-sources {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(1, 19, 43, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.insights-module-sources__title {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5e7287;
}

.insights-module-sources__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insights-module-sources__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #01132b;
}

.insights-module-sources__item.is-excluded {
  color: #5e7287;
}

.insights-module-sources__marker {
  flex: 0 0 auto;
  width: 1.1rem;
  font-weight: 800;
  text-align: center;
}

.insights-module-sources__item.is-included .insights-module-sources__marker {
  color: #0a7a4b;
}

.insights-module-sources__note {
  color: #7a8ea1;
  font-size: 0.84rem;
}

.activity-subtabs--insights {
  grid-template-columns: repeat(auto-fill, minmax(11.75rem, 1fr));
}

.activity-subtabs--insights .activity-subtab {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 6px 10px;
  min-height: 38px;
}

.insights-structured-list {
  display: grid;
  gap: 12px;
}

.insights-structured-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(1, 19, 43, 0.08);
  line-height: 1.55;
}

.insights-structured-item__title {
  font-weight: 800;
  color: #01132b;
  margin-bottom: 6px;
}

.insights-storyline-grid {
  display: grid;
  gap: 12px;
}

.insights-storyline-block {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 122, 171, 0.12);
}

.insights-storyline-block__title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #005f86;
  margin-bottom: 8px;
}

.insights-storyline-block p {
  margin: 0;
  line-height: 1.6;
}

.insights-story-steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.insights-story-steps__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 122, 171, 0.12);
}

.insights-story-steps__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #005f86;
  color: #fff;
  font-weight: 800;
}

.insights-story-link {
  display: block;
  margin: 4px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #005f86;
}

.insights-finding-item--methodological_contradiction {
  border-color: rgba(176, 80, 32, 0.28);
}

.insights-overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.smart-office-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  align-items: stretch;
}

.smart-office-evidence-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.smart-office-evidence-card__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.smart-office-evidence-card__head h3 {
  margin: 0;
  font-size: 1rem;
}

.smart-office-evidence-card__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smart-office-evidence-grade {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(1, 19, 43, 0.62);
}

.smart-office-evidence-card__body {
  margin: 0;
  display: grid;
  gap: 10px;
}

.smart-office-evidence-card__body dt {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(1, 19, 43, 0.55);
}

.smart-office-evidence-card__body dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.smart-office-evidence-source-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(1, 19, 43, 0.06);
  color: rgba(1, 19, 43, 0.62);
}

.smart-office-evidence-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.smart-office-evidence-status--good {
  color: #0b7a53;
  background: rgba(11, 122, 83, 0.12);
}

.smart-office-evidence-status--plausible {
  color: #9a6b00;
  background: rgba(154, 107, 0, 0.12);
}

.smart-office-evidence-status--bad {
  color: #b0342a;
  background: rgba(176, 52, 42, 0.12);
}

.smart-office-evidence-status--unknown {
  color: rgba(1, 19, 43, 0.55);
  background: rgba(1, 19, 43, 0.06);
}

.smart-office-evidence-card--good {
  border-color: rgba(11, 122, 83, 0.24);
  background: rgba(11, 122, 83, 0.06);
}

.smart-office-evidence-card--plausible {
  border-color: rgba(154, 107, 0, 0.24);
  background: rgba(154, 107, 0, 0.06);
}

.smart-office-evidence-card--bad {
  border-color: rgba(176, 52, 42, 0.24);
  background: rgba(176, 52, 42, 0.06);
}

.smart-office-evidence-card--unknown {
  border-color: rgba(1, 19, 43, 0.12);
  background: rgba(1, 19, 43, 0.03);
  opacity: 0.95;
}

.activity-card.activity-smart-office-page {
  min-width: 0;
  max-width: 100%;
}

.activity-smart-office-page .smart-office-evidence-section,
.smart-office-evidence-section,
.smart-office-evidence-section .smart-office-disclose,
.smart-office-evidence-section .smart-office-evidence-explain {
  max-width: 100%;
  min-width: 0;
}

.smart-office-evidence-section .smart-office-evidence-grid,
.smart-office-evidence-section .smart-office-evidence-card,
.smart-office-evidence-section .smart-office-evidence-card__head,
.smart-office-evidence-section .smart-office-evidence-card__title,
.smart-office-evidence-section .smart-office-evidence-card__body {
  max-width: 100%;
  min-width: 0;
}

.smart-office-evidence-section .smart-office-evidence-card__head {
  flex-wrap: wrap;
}

.smart-office-evidence-section .smart-office-evidence-status {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* width:auto: the wrap is a details child with 16px side margins.
   width:100% plus those margins overflows the card by 32px. */
.smart-office-evidence-table-wrap,
.smart-office-evidence-section .smart-office-evidence-table-wrap,
.smart-office-evidence-section .smart-office-evidence-table-wrap.table-wrap,
.activity-smart-office-page .smart-office-evidence-section .smart-office-evidence-table-wrap,
.activity-smart-office-page .smart-office-evidence-section .smart-office-evidence-table-wrap.table-wrap {
  margin-top: 4px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.smart-office-evidence-section .smart-office-evidence-table-wrap .app-table,
.smart-office-evidence-section .smart-office-evidence-table-wrap .lightscan-results-table,
.smart-office-evidence-section .smart-office-evidence-table-wrap .lightscan-results-table--compact,
.activity-smart-office-page .smart-office-evidence-section .smart-office-evidence-table-wrap .app-table,
.activity-smart-office-page .smart-office-evidence-section .smart-office-evidence-table-wrap .lightscan-results-table,
.activity-smart-office-page .smart-office-evidence-section .smart-office-evidence-table-wrap .lightscan-results-table--compact {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  box-sizing: border-box;
}

.smart-office-evidence-section .smart-office-evidence-table-wrap th,
.smart-office-evidence-section .smart-office-evidence-table-wrap td,
.activity-smart-office-page .smart-office-evidence-section .smart-office-evidence-table-wrap th,
.activity-smart-office-page .smart-office-evidence-section .smart-office-evidence-table-wrap td {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  vertical-align: top;
}

.smart-office-evidence-section .smart-office-evidence-table-wrap th:nth-child(1),
.smart-office-evidence-section .smart-office-evidence-table-wrap td:nth-child(1) {
  width: 18%;
}

.smart-office-evidence-section .smart-office-evidence-table-wrap th:nth-child(2),
.smart-office-evidence-section .smart-office-evidence-table-wrap td:nth-child(2) {
  width: 22%;
}

.smart-office-evidence-section .smart-office-evidence-table-wrap th:nth-child(3),
.smart-office-evidence-section .smart-office-evidence-table-wrap td:nth-child(3) {
  width: 42%;
}

.smart-office-evidence-section .smart-office-evidence-table-wrap th:nth-child(4),
.smart-office-evidence-section .smart-office-evidence-table-wrap td:nth-child(4) {
  width: 18%;
}

@media (max-width: 1100px) {
  .smart-office-evidence-section .smart-office-evidence-table-wrap th:nth-child(1),
  .smart-office-evidence-section .smart-office-evidence-table-wrap td:nth-child(1) {
    width: 20%;
  }

  .smart-office-evidence-section .smart-office-evidence-table-wrap th:nth-child(4),
  .smart-office-evidence-section .smart-office-evidence-table-wrap td:nth-child(4) {
    width: 22%;
  }
}

.activity-org-structure {
  border-color: rgba(35, 162, 170, 0.16);
  background: rgba(232, 245, 246, 0.42);
}

.activity-org-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.activity-org-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.activity-org-table th,
.activity-org-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(1, 19, 43, 0.08);
  vertical-align: top;
}

.activity-org-table th {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e7287;
  background: rgba(255, 255, 255, 0.72);
}

.activity-org-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.55);
}

.activity-org-table__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.activity-org-table__actions a {
  color: var(--s3-teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.activity-org-table__actions a:hover {
  text-decoration: underline;
}

.activity-org-delete-form {
  display: inline;
  margin: 0;
}

.activity-org-delete-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #9a4b3f;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.activity-org-delete-btn:hover {
  text-decoration: underline;
}

.activity-org-form {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.activity-org-form h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--s3-navy);
}

.activity-org-form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.activity-org-custom-input {
  margin-top: 10px;
}

.activity-org-custom-input[hidden] {
  display: none !important;
}

.activity-participant-context {
  border-color: rgba(255, 142, 91, 0.18);
  background: rgba(255, 248, 244, 0.55);
}

.activity-context-grid--compact {
  margin-top: 16px;
  grid-template-columns: minmax(0, 1.2fr);
}

.activity-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.activity-context-field {
  display: grid;
  gap: 7px;
}

.activity-context-field label {
  color: #01132b;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.activity-context-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6e1e6;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: #1f3047;
  background: #f8fbfc;
}

.activity-context-field input:focus {
  outline: none;
  border-color: #ffc5aa;
  box-shadow: 0 0 0 4px rgba(255, 142, 91, 0.10);
  background: #ffffff;
}

@media (max-width: 1180px) {
  .activity-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-context-readonly-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .activity-context-grid {
    grid-template-columns: 1fr;
  }

  .activity-context-readonly-grid {
    grid-template-columns: 1fr;
  }

  .activity-context-layer {
    padding: 18px 16px;
  }
}

.activity-context-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6e1e6;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: #1f3047;
  background: #f8fbfc;
}

.activity-context-continue {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.activity-context-continue-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #607187;
}

.activity-light-save-next {
  flex: 1 1 100%;
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 251, 252, 0.95);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.activity-light-save-next__label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  color: #334155;
}

.activity-light-save-next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.activity-light-save-next__links a {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1b8b92;
  text-decoration: none;
}

.activity-light-save-next__links a:hover {
  color: #01132b;
  text-decoration: underline;
}

.activity-scan-switcher {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 18px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(35, 162, 170, 0.18);
  border-radius: 18px;
  background: rgba(35, 162, 170, 0.045);
}

.activity-scan-switcher strong {
  display: block;
  color: #01132b;
  font-weight: 900;
}

.activity-scan-switcher span {
  display: block;
  margin-top: 4px;
  color: #607187;
  font-size: 0.92rem;
}

.activity-scan-switcher--with-hint {
  align-items: start;
}

.activity-scan-mode-hint {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.activity-scan-mode-hint.is-update {
  border-color: rgba(35, 162, 170, 0.22);
  background: rgba(35, 162, 170, 0.06);
}

.activity-scan-mode-hint.is-create {
  border-color: rgba(255, 142, 91, 0.28);
  background: rgba(255, 244, 238, 0.9);
}

.activity-save-mode-note {
  display: block;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  color: #334155;
  background: rgba(248, 251, 252, 0.95);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.activity-light-actions .activity-save-mode-note {
  flex: 1 1 100%;
  margin: 0;
}

/* =========================================
   WoSI – Multi-Light-Scans
   ========================================= */

.activity-scan-switcher select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6e1e6;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: #1f3047;
  background: #ffffff;
}

@media (max-width: 760px) {
  .activity-scan-switcher {
    grid-template-columns: 1fr;
  }
}

/* Abstand zwischen Arbeitsorte und Arbeitsmodi */
.activity-card + .activity-card {
  margin-top: 28px;
}

.activity-active-scan {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7a86;
}

.activity-active-context-card {
  border: 1px solid rgba(35, 162, 170, 0.18);
  background: rgba(35, 162, 170, 0.045);
}

.activity-active-context-card h2 {
  margin-bottom: 8px;
}

.activity-active-context-card p {
  color: #607187;
}

.activity-active-scan {
  margin-top: 8px;
  color: #607187;
  font-size: 0.95rem;
}

.activity-active-context-card {
    border: 2px solid #d9ecec;
    background: #f4fbfb;
}

.activity-active-context-card {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.activity-active-context-card.is-missing {
  border-color: rgba(255, 142, 91, 0.35);
  background: rgba(255, 142, 91, 0.055);
}

.activity-active-context-card.is-set {
  border-color: rgba(35, 162, 170, 0.28);
  background: rgba(35, 162, 170, 0.07);
}

.activity-active-context-card.is-set h2::before {
  content: "✓ ";
  color: #238f8f;
}

.activity-profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 16px;
  margin: 20px 0;
}

.activity-profile-summary__item {
  padding: 18px;
  border: 1px solid #dfe9ee;
  border-radius: 18px;
  background: #f7fafb;
}

.activity-profile-summary__item strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #01132b;
  line-height: 1;
}

.activity-profile-summary__item span {
  display: block;
  margin-top: 6px;
  color: #607187;
  font-weight: 700;
}

.activity-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.activity-profile-card {
  padding: 18px;
  border: 1px solid rgba(255, 142, 91, 0.28);
  border-radius: 20px;
  background: rgba(255, 142, 91, 0.045);
}

.activity-profile-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #607187;
  font-size: 0.86rem;
  font-weight: 800;
}

.activity-profile-card h3 {
  margin: 0 0 8px;
  color: #01132b;
}

.activity-profile-card p {
  margin: 0 0 10px;
  color: #607187;
}

.activity-profile-card small {
  color: #7a8a9a;
}

.activity-profile-empty {
  padding: 18px;
  border: 1px dashed #d9e4ea;
  border-radius: 18px;
  color: #607187;
}

.activity-dna-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.activity-dna-item {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #dfe9ee;
  background: #f7fafb;
  text-align: center;
}

.activity-dna-item strong {
  font-size: 2rem;
  display: block;
  color: #01132b;
}

.activity-dna-item span {
  margin-top: 6px;
  display: block;
  color: #607187;
}

.activity-entry-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.activity-entry-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #dfe9ee;
  border-radius: 18px;
  background: #f7fafb;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.activity-entry-choice:hover {
  transform: translateY(-1px);
}

.activity-entry-choice.is-active {
  border-color: rgba(35, 162, 170, .35);
  background: rgba(35, 162, 170, .07);
}

.activity-entry-choice input {
  margin-top: 4px;
}

.activity-entry-choice strong {
  display: block;
  color: #01132b;
  margin-bottom: 6px;
}

.activity-entry-choice small {
  display: block;
  color: #607187;
  line-height: 1.35;
}

.activity-entry-hint {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 142, 91, .06);
  border: 1px solid rgba(255, 142, 91, .22);
  color: #607187;
  font-weight: 700;
}

@media (max-width: 760px) {
  .activity-entry-choice-grid {
    grid-template-columns: 1fr;
  }
}

.activity-delta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.activity-delta-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dfe9ee;
  background: #f7fafb;
}

.activity-delta-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #01132b;
}

.activity-delta-item span {
  display: block;
  margin-top: 6px;
  font-weight: 800;
  color: #607187;
}

.activity-delta-item small {
  display: block;
  margin-top: 8px;
  color: #7a8a9a;
}

.activity-delta-item.is-positive strong {
  color: #238f8f;
}

.activity-delta-item.is-negative strong {
  color: #b85f36;
}

.activity-delta-impulse {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 142, 91, .24);
  background: rgba(255, 142, 91, .055);
  color: #607187;
  font-weight: 800;
}

@media (max-width: 900px) {
  .activity-delta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .activity-delta-grid {
    grid-template-columns: 1fr;
  }
}

.activity-delta-item__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.activity-delta-item__head span {
  font-weight: 900;
  color: #01132b;
}

.activity-delta-item__head strong {
  font-size: 1.7rem;
  line-height: 1;
}

.activity-delta-bars {
  display: grid;
  gap: 10px;
}

.activity-delta-bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.activity-delta-bar-row small,
.activity-delta-bar-row em {
  color: #607187;
  font-weight: 800;
  font-style: normal;
  font-size: 0.82rem;
}

.activity-delta-bar {
  height: 9px;
  border-radius: 999px;
  background: #e8eff3;
  overflow: hidden;
}

.activity-delta-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #8fcda3;
}

.activity-delta-item.is-positive {
  border-color: rgba(35, 143, 143, .32);
  background: rgba(35, 162, 170, .055);
}

.activity-delta-item.is-negative {
  border-color: rgba(255, 142, 91, .34);
  background: rgba(255, 142, 91, .055);
}

.activity-delta-item.is-neutral {
  border-color: #dfe9ee;
  background: #f7fafb;
}

.activity-delta-item.is-positive .activity-delta-item__head strong {
  color: #238f8f;
}

.activity-delta-item.is-negative .activity-delta-item__head strong {
  color: #b85f36;
}

.activity-delta-item.is-neutral .activity-delta-item__head strong {
  color: #607187;
}

.js-lightbox-trigger {
    cursor: zoom-in;
}

.wosi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(1, 19, 43, 0.82);
}

.wosi-lightbox.is-active {
    display: flex;
}

.wosi-lightbox img {
    max-width: min(94vw, 1100px);
    max-height: 88vh;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.wosi-lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #01132b;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

/* =========================================
   WoSI Impact – Reset exakt wie Zielmodus
   ========================================= */

.page-impact .impact-header-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.page-impact .impact-reset-panel {
  width: 100%;
}

.page-impact .impact-target-mode__reset-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #dce8ec;
  background: #f6fbfb;
  color: #23364a;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-impact .impact-target-mode__reset-btn:hover {
  background: #e8f7f7;
  border-color: #bfe5e6;
  color: #01132B;
}

@media (max-width: 640px) {
  .page-impact .impact-header-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI Impact – Rahmenbedingungen 6 Kacheln
   ========================================= */

.page-impact .impact-metric-grid--conditions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .page-impact .impact-metric-grid--conditions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-impact .impact-metric-grid--conditions {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   WoSI Impact – One Off Investments Aktivator
   ========================================= */

.page-impact .impact-invest-options.is-hidden,
.page-impact .impact-field-card.is-hidden,
.page-impact .impact-reduction-assumption.is-hidden,
.page-impact .impact-reduction-assumption[hidden],
.page-impact .impact-reduction-pending-hint.is-hidden {
  display: none !important;
}

.page-impact .impact-reduction-assumption.is-hidden,
.page-impact .impact-reduction-assumption[hidden] {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.page-impact .impact-reduction-assumption {
  margin-top: 16px;
  padding: 22px 20px;
  border-radius: 18px;
  background: #f7fafb;
  border: 1px solid #edf2f4;
  min-height: 0;
  box-sizing: border-box;
}

.page-impact .impact-reduction-assumption__title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #22b8bd;
}

.page-impact .impact-reduction-assumption__row {
  display: grid;
  grid-template-columns: minmax(168px, max-content) 260px minmax(0, 1fr);
  gap: 12px 24px;
  align-items: start;
}

.page-impact .impact-reduction-assumption__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-top: 10px;
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 600;
  color: #4d6278;
}

.page-impact .impact-reduction-assumption__optional {
  font-size: 0.75rem;
  font-weight: 500;
  color: #7a8b9c;
}

.page-impact .impact-reduction-assumption__input {
  width: 260px;
  max-width: 100%;
  min-height: 42px;
}

.page-impact .impact-reduction-assumption__hint {
  margin: 0;
  padding-top: 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 500;
  color: #5e7287;
}

.page-impact .impact-reduction-assumption__error {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 600;
  color: #b42318;
}

.page-impact .impact-reduction-pending-hint {
  margin: 0 0 14px;
  padding: 8px 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #4d6278;
  background: #eef8f8;
  border-left: 4px solid #23a2aa;
  border-radius: 8px;
}

@media (max-width: 1180px) {
  .page-impact .impact-reduction-assumption__row {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  }

  .page-impact .impact-reduction-assumption__label {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .page-impact .impact-reduction-assumption {
    padding: 18px 16px;
  }

  .page-impact .impact-reduction-assumption__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-impact .impact-reduction-assumption__input {
    width: 100%;
  }

  .page-impact .impact-reduction-assumption__hint {
    padding-top: 0;
  }
}

.page-impact .impact-oneoff-activator {
  padding: 12px 14px;
  border-radius: 16px;
  background: #eef8f8;
  border: 1px solid #d6ecec;
  font-weight: 800;
}

.page-impact .impact-oneoff-activator span {
  color: #01132B;
}

.page-impact .impact-invest-options {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf2f4;
}

/* =========================================
   WoSI Impact – Unit One-Off Optionen nur bei Aktivierung
   ========================================= */

.page-impact .impact-unit-oneoff-option.is-hidden {
  display: none !important;
}

/* =========================================
   WoSI – People & Work Analytics
   Startstruktur / Platzhalter-Layer
   ========================================= */

.pwa-hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border-color: rgba(35, 162, 170, 0.18);
}

.pwa-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.pwa-mini-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.pwa-mini-card strong {
  color: #01132b;
  font-size: 1.02rem;
  line-height: 1.2;
}

.pwa-mini-card span {
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.4;
}

.pwa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pwa-insight-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pwa-insight-flow div {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.pwa-insight-flow strong {
  color: #01132b;
  font-size: 1rem;
}

.pwa-insight-flow span {
  color: #5e7287;
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .pwa-card-grid,
  .pwa-insight-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pwa-card-grid,
  .pwa-insight-flow {
    grid-template-columns: 1fr;
  }

  .pwa-mini-card {
    min-height: auto;
  }

  .pwa-actions .btn,
  .pwa-actions .btn-secondary {
    width: 100%;
  }
}

.pwa-card-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .pwa-card-grid-compact {
    grid-template-columns: 1fr;
  }
}

.page-lightscan-external {
  background: linear-gradient(180deg, #f4f8fa 0%, #eef4f7 100%);
  min-height: 100vh;
}

.lightscan-external-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.lightscan-external-card {
  background: #fff;
  border: 1px solid rgba(1, 19, 43, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(1, 19, 43, 0.08);
  padding: 32px 28px;
}

.lightscan-external-card--complete,
.lightscan-external-card--error {
  text-align: left;
}

.lightscan-external-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e7287;
  margin-bottom: 10px;
}

.lightscan-external-card h1 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--s3-navy, #01132b);
}

.lightscan-external-lead {
  margin: 0 0 22px;
  line-height: 1.55;
  color: #4d6278;
}

.lightscan-external-form {
  display: grid;
  gap: 18px;
}

.lightscan-external-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #24364d;
}

.lightscan-external-field select,
.lightscan-external-field textarea {
  width: 100%;
  border: 1px solid #d6e1e6;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: #1f3047;
  background: #f8fbfc;
}

.lightscan-external-field textarea {
  resize: vertical;
  min-height: 140px;
}

.lightscan-external-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #607187;
}

.lightscan-external-required {
  color: #9a4b3f;
}

.lightscan-external-card--capture {
  max-width: none;
}

.lightscan-external-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.lightscan-external-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--s3-navy, #01132b);
}

.page-lightscan-external .activity-week-grid {
  margin-top: 0;
}

.page-lightscan-external .activity-schedule-note {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .lightscan-external-shell {
    padding: 28px 16px 56px;
  }
}

.activity-surveymonkey-integration {
  border-color: rgba(35, 162, 170, 0.16);
  background: rgba(232, 245, 246, 0.28);
}

.activity-surveymonkey-link-output {
  margin-top: 16px;
}

.activity-surveymonkey-link-output label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5e7287;
}

.activity-surveymonkey-link-output input {
  width: 100%;
}

.activity-surveymonkey-link-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.activity-surveymonkey-copy-hint {
  font-size: 0.88rem;
  color: var(--s3-teal-dark, #1f8f97);
  font-weight: 700;
}

.lightscan-results-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0 22px;
}

.lightscan-results-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.lightscan-results-summary-item {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.activity-smart-office-page .lightscan-results-summary-grid {
  align-items: stretch;
}

.activity-smart-office-page .lightscan-results-summary-item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.lightscan-results-summary-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e7287;
  margin-bottom: 6px;
}

.lightscan-results-summary-item strong {
  display: block;
  font-size: 1.15rem;
  color: var(--s3-navy, #01132b);
}

.lightscan-results-summary-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: #5e7287;
}

.lightscan-results-executive {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(35, 162, 170, 0.2);
  background: linear-gradient(180deg, rgba(232, 245, 246, 0.65) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.lightscan-results-executive h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color: var(--s3-navy, #01132b);
}

.lightscan-results-insights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.lightscan-results-insights li {
  position: relative;
  padding: 12px 14px 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(1, 19, 43, 0.06);
  color: #2a3d52;
  font-size: 0.96rem;
  line-height: 1.5;
}

.lightscan-results-insights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  background: var(--s3-teal, #23a2aa);
}

.lightscan-results-kpi-section {
  margin-top: 32px;
}

.lightscan-results-kpi-section h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.lightscan-results-place-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.lightscan-results-place-kpi-card {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.04);
}

.lightscan-results-place-kpi-card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--s3-navy, #01132b);
}

.lightscan-results-place-kpi-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lightscan-results-place-kpi-metric {
  display: grid;
  gap: 6px;
}

.lightscan-results-place-kpi-metric__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5e7287;
}

.lightscan-results-place-kpi-metric__value {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--s3-navy, #01132b);
}

.lightscan-results-place-kpi-metric--delta .lightscan-results-place-kpi-metric__value {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.lightscan-results-delta--up {
  color: var(--s3-teal-dark, #1a8a91);
}

.lightscan-results-delta--down {
  color: #c45a2c;
}

.lightscan-results-delta--neutral {
  color: #5e7287;
}

.lightscan-results-pattern-week {
  margin-top: 36px;
  padding-top: 8px;
}

.lightscan-results-pattern-week > h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.lightscan-heatmap-section {
  margin-top: 24px;
}

.lightscan-heatmap-section__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #5e7287;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lightscan-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lightscan-heatmap-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(1, 19, 43, 0.05);
}

.lightscan-heatmap-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--s3-navy, #01132b);
}

.lightscan-heatmap-wrap {
  overflow-x: auto;
}

.lightscan-heatmap {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  min-width: 420px;
}

.lightscan-heatmap th,
.lightscan-heatmap td {
  text-align: center;
  vertical-align: middle;
}

.lightscan-heatmap thead th {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e7287;
  padding: 4px 6px;
}

.lightscan-heatmap tbody th[scope="row"] {
  text-align: left;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--s3-navy, #01132b);
  padding: 0 8px 0 2px;
  white-space: nowrap;
}

.lightscan-heatmap__corner {
  width: 108px;
}

.lightscan-heatmap-cell {
  min-width: 58px;
  padding: 12px 8px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--s3-navy, #01132b);
  border: 1px solid rgba(1, 19, 43, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lightscan-heatmap--places .lightscan-heatmap-cell:not(.lightscan-heatmap-cell--empty) {
  background: rgba(35, 162, 170, calc(0.06 + var(--heat, 0) * 0.78));
  box-shadow: inset 0 0 0 1px rgba(35, 162, 170, calc(0.08 + var(--heat, 0) * 0.22));
}

.lightscan-heatmap--modes .lightscan-heatmap-cell:not(.lightscan-heatmap-cell--empty) {
  background: rgba(1, 19, 43, calc(0.04 + var(--heat, 0) * 0.5));
  box-shadow: inset 0 0 0 1px rgba(1, 19, 43, calc(0.06 + var(--heat, 0) * 0.16));
}

.lightscan-heatmap-cell--empty {
  background: rgba(245, 248, 251, 0.95);
  color: #9aa8b8;
  font-weight: 600;
}

.lightscan-results-pattern-week-note {
  margin-top: 16px;
  margin-bottom: 0;
}

.lightscan-results-zone-section {
  margin-top: 36px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(35, 162, 170, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 245, 246, 0.42) 100%);
}

.lightscan-results-zone-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.lightscan-results-zone-section__head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.lightscan-results-zone-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(35, 162, 170, 0.12);
  border: 1px solid rgba(35, 162, 170, 0.24);
  color: var(--s3-teal-dark, #1a8a91);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lightscan-results-zone-intro {
  margin: 0 0 16px;
  color: #5e7287;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 920px;
}

.lightscan-results-zone-office-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(1, 19, 43, 0.06);
  font-size: 0.88rem;
  color: #5e7287;
}

.lightscan-results-zone-office-ref strong {
  color: var(--s3-navy, #01132b);
  font-size: 0.95rem;
}

.lightscan-results-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lightscan-results-zone-card {
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(1, 19, 43, 0.04);
}

.lightscan-results-zone-card h3 {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--s3-navy, #01132b);
}

.lightscan-results-zone-bars {
  display: grid;
  gap: 10px;
}

.lightscan-results-zone-bar {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}

.lightscan-results-zone-bar__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e7287;
}

.lightscan-results-zone-bar__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(1, 19, 43, 0.06);
  overflow: hidden;
}

.lightscan-results-zone-bar__fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}

.lightscan-results-zone-bar__fill--ist {
  background: linear-gradient(90deg, rgba(1, 19, 43, 0.45) 0%, rgba(1, 19, 43, 0.72) 100%);
}

.lightscan-results-zone-bar__fill--ideal {
  background: linear-gradient(90deg, rgba(35, 162, 170, 0.55) 0%, rgba(35, 162, 170, 0.92) 100%);
}

.lightscan-results-zone-bar strong {
  min-width: 42px;
  text-align: right;
  font-size: 0.92rem;
  color: var(--s3-navy, #01132b);
}

.lightscan-results-zone-card__delta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(1, 19, 43, 0.06);
  font-size: 0.84rem;
  color: #5e7287;
}

.lightscan-results-section {
  margin-top: 28px;
}

.lightscan-results-section h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.lightscan-results-snapshot-note {
  margin-bottom: 18px;
}

.lightscan-data-source-overview {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(1, 19, 43, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.lightscan-data-source-overview p {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.lightscan-data-source-overview p:last-of-type {
  margin-bottom: 0;
}

.lightscan-data-source-overview__hint {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(1, 19, 43, 0.12);
  font-size: 0.92rem;
  line-height: 1.45;
}

.workplace-experience-card {
  margin-bottom: 24px;
}

.workplace-experience-kpi-section {
  margin-top: 28px;
}

.workplace-experience-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workplace-experience-kpi-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.workplace-experience-kpi-card--highlight {
  border-color: rgba(0, 211, 196, 0.35);
  background: linear-gradient(180deg, rgba(0, 211, 196, 0.08), rgba(255, 255, 255, 0.92));
}

.workplace-experience-kpi-card__label {
  display: block;
  font-size: 0.82rem;
  color: rgba(1, 19, 43, 0.62);
  margin-bottom: 8px;
}

.workplace-experience-kpi-card strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
  color: #01132b;
}

.workplace-experience-kpi-card__meta {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(1, 19, 43, 0.55);
}

.workplace-experience-kpi-card__interpretation {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(1, 19, 43, 0.1);
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(1, 19, 43, 0.72);
}

.workplace-experience-kpi-card--balance {
  border-color: rgba(0, 122, 171, 0.22);
  background: linear-gradient(180deg, rgba(0, 122, 171, 0.06), rgba(255, 255, 255, 0.92));
}

.workplace-experience-gap--support-higher {
  color: #007aab;
}

.workplace-experience-gap--wellbeing-higher {
  color: #ff8e5b;
}

.workplace-experience-gap--balanced {
  color: #01132b;
}

.workplace-experience-matrix-scroll {
  max-width: 100%;
}

.workplace-experience-matrix-mobile-list {
  display: none;
}

.workplace-experience-matrix {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: 1fr auto;
  gap: 12px;
  margin-top: 16px;
}

.workplace-experience-matrix__y-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: center;
  color: rgba(1, 19, 43, 0.72);
  font-weight: 600;
}

.workplace-experience-matrix__x-label {
  grid-column: 2;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(1, 19, 43, 0.72);
  font-weight: 600;
  padding: 0 8px;
}

.workplace-experience-matrix__plot {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.workplace-experience-matrix__gridline {
  position: absolute;
  background: rgba(1, 19, 43, 0.12);
  pointer-events: none;
  z-index: 1;
}

.workplace-experience-matrix__gridline--x {
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  transform: translateX(-50%);
}

.workplace-experience-matrix__gridline--y {
  top: 50%;
  left: 8px;
  right: 8px;
  height: 1px;
  transform: translateY(-50%);
}

.workplace-experience-matrix__quadrant {
  position: relative;
  z-index: 0;
  padding: 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 150px;
}

.workplace-experience-matrix__quadrant strong {
  font-size: 0.92rem;
  color: #01132b;
}

.workplace-experience-matrix__quadrant-desc {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(1, 19, 43, 0.62);
}

.workplace-experience-matrix__quadrant span {
  font-size: 0.78rem;
  color: rgba(1, 19, 43, 0.58);
}

.workplace-experience-matrix__quadrant--comfort {
  background: rgba(0, 211, 196, 0.08);
}

.workplace-experience-matrix__quadrant--successful {
  background: rgba(0, 122, 171, 0.08);
}

.workplace-experience-matrix__quadrant--critical {
  background: rgba(255, 142, 91, 0.1);
}

.workplace-experience-matrix__quadrant--functional {
  background: rgba(254, 193, 13, 0.12);
}

.workplace-experience-matrix__bubble {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-left: 0;
  margin-top: 0;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.16);
  cursor: default;
  text-align: center;
  padding: 4px;
}

.workplace-experience-matrix__bubble:focus {
  outline: 2px solid rgba(0, 122, 171, 0.45);
  outline-offset: 2px;
}

.workplace-experience-matrix__bubble-label {
  display: block;
  max-width: 92%;
  font-size: 0.62rem;
  line-height: 1.1;
  font-weight: 700;
  color: #01132b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workplace-experience-matrix__bubble-count {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(1, 19, 43, 0.72);
}

.workplace-experience-matrix__bubble--successful {
  background: rgba(0, 122, 171, 0.28);
}

.workplace-experience-matrix__bubble--comfort {
  background: rgba(0, 211, 196, 0.3);
}

.workplace-experience-matrix__bubble--functional {
  background: rgba(254, 193, 13, 0.34);
}

.workplace-experience-matrix__bubble--critical {
  background: rgba(255, 142, 91, 0.34);
}

.workplace-experience-insights {
  margin-top: 32px;
}

.workplace-experience-departments {
  margin-top: 32px;
}

/* =========================================
   Veränderungsbereitschaft (Readiness)
   ========================================= */

.activity-readiness-page {
  margin-bottom: 24px;
}

.readiness-score-scale {
  margin-top: 18px;
  padding-top: 14px; /* Platz für Marker-Knob */
}

.readiness-score-scale__bar {
  position: relative;
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: visible; /* Marker nicht abschneiden */
  background:
    /* Subtile Segmentgrenzen (25/40/60/80) */
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.0) 0%,
      rgba(255, 255, 255, 0.0) 24.5%,
      rgba(255, 255, 255, 0.35) 24.5%,
      rgba(255, 255, 255, 0.0) 25%,
      rgba(255, 255, 255, 0.0) 39.5%,
      rgba(255, 255, 255, 0.32) 39.5%,
      rgba(255, 255, 255, 0.0) 40%,
      rgba(255, 255, 255, 0.0) 59.5%,
      rgba(255, 255, 255, 0.28) 59.5%,
      rgba(255, 255, 255, 0.0) 60%,
      rgba(255, 255, 255, 0.0) 79.5%,
      rgba(255, 255, 255, 0.26) 79.5%,
      rgba(255, 255, 255, 0.0) 80%,
      rgba(255, 255, 255, 0.0) 100%
    ),
    /* Harmonischer Verlauf (S³-Farbwelt, ruhig) */
    linear-gradient(
      90deg,
      rgba(180, 35, 24, 0.28) 0%,
      rgba(255, 142, 91, 0.22) 24%,
      rgba(1, 19, 43, 0.12) 45%,
      rgba(0, 122, 171, 0.16) 72%,
      rgba(0, 211, 196, 0.18) 100%
    );
}

.readiness-score-scale__segment {
  /* Segmente bleiben im DOM (Tooltips), aber optisch übernimmt der Verlauf */
  display: none;
}

.readiness-score-scale__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #01132b;
  box-shadow:
    0 10px 24px rgba(1, 19, 43, 0.18),
    0 0 0 4px rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.readiness-score-scale__marker-value {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 0.78rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.readiness-score-scale__labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.readiness-score-scale__label span {
  display: block;
  font-size: 0.72rem;
  color: #5e7287;
}

.readiness-score-scale__label strong {
  display: block;
  font-size: 0.85rem;
  color: #01132b;
}

.readiness-score-scale__hint {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #5e7287;
}

.readiness-hero-section {
  margin-top: 22px;
}

.readiness-hero-card {
  padding: 28px 30px;
  border-radius: 22px;
  border: 1px solid rgba(0, 122, 171, 0.18);
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.08) 0%, rgba(0, 211, 196, 0.08) 100%);
  box-shadow: 0 14px 34px rgba(1, 19, 43, 0.06);
}

.readiness-hero-card__kicker {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: #01132b;
  margin-bottom: 10px;
}

.readiness-hero-card__score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.readiness-hero-card__score {
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
  color: #01132b;
}

.readiness-hero-card__max {
  font-size: 1.2rem;
  color: #5e7287;
}

.readiness-hero-card__meta {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: #5e7287;
}

.readiness-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.readiness-status-badge--compact {
  min-height: 28px;
  font-size: 0.74rem;
  margin-top: 8px;
}

.readiness-status--high-open {
  background: rgba(0, 211, 196, 0.16);
  color: #007aab;
  border: 1px solid rgba(0, 211, 196, 0.28);
}

.readiness-status--open {
  background: rgba(0, 122, 171, 0.12);
  color: #007aab;
  border: 1px solid rgba(0, 122, 171, 0.22);
}

.readiness-status--neutral {
  background: rgba(1, 19, 43, 0.07);
  color: #334155;
  border: 1px solid rgba(1, 19, 43, 0.12);
}

.readiness-status--critical {
  background: rgba(255, 142, 91, 0.14);
  color: #c45d2e;
  border: 1px solid rgba(255, 142, 91, 0.24);
}

.readiness-status--blocking {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.22);
}

.readiness-status--pending {
  background: rgba(1, 19, 43, 0.05);
  color: #5e7287;
  border: 1px dashed rgba(1, 19, 43, 0.16);
}

.readiness-kpi-section,
.readiness-sources-section,
.readiness-components-section {
  margin-top: 28px;
}

.readiness-driver-matrix {
  margin-top: 28px;
}

.readiness-driver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.readiness-driver-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(1, 19, 43, 0.04);
}

.readiness-driver-card--positive {
  border-color: rgba(0, 211, 196, 0.22);
  background: rgba(0, 211, 196, 0.05);
}

.readiness-driver-card--negative {
  border-color: rgba(255, 142, 91, 0.22);
  background: rgba(255, 142, 91, 0.05);
}

.readiness-driver-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #01132b;
}

.readiness-driver-list {
  margin: 0;
  padding-left: 18px;
}

.readiness-driver-list li {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(1, 19, 43, 0.06);
  box-shadow: 0 6px 16px rgba(1, 19, 43, 0.03);
}

.readiness-driver-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}

.readiness-driver-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.readiness-driver-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(1, 19, 43, 0.72);
  background: rgba(1, 19, 43, 0.06);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.readiness-driver-badge--level {
  color: #007aab;
  background: rgba(0, 122, 171, 0.07);
  border-color: rgba(0, 122, 171, 0.12);
}

.readiness-driver-detail {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: #334155;
}

.readiness-weighting {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 122, 171, 0.14);
  background: rgba(255, 255, 255, 0.96);
  --readiness-accent: #007aab;
}

.readiness-weighting__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.readiness-weighting__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #01132b;
}

.readiness-weighting__toggle.is-disabled {
  opacity: 0.75;
}

.readiness-weighting__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #5e7287;
  background: rgba(1, 19, 43, 0.05);
  border: 1px dashed rgba(1, 19, 43, 0.14);
}

.readiness-weighting__hint {
  font-size: 0.86rem;
  color: #5e7287;
}

.readiness-weighting__sum {
  font-size: 0.86rem;
  color: #5e7287;
}

.readiness-weighting__mode {
  font-size: 0.86rem;
  color: #5e7287;
}

.readiness-weighting__sliders {
  display: grid;
  gap: 12px;
}

.readiness-weighting__slider.is-hidden {
  display: none;
}

.readiness-weighting__slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.readiness-weighting__slider-head strong {
  font-size: 0.92rem;
  color: #01132b;
}

.readiness-weighting__slider-head span {
  font-weight: 800;
  color: #007aab;
}

.readiness-weighting__slider input[type="range"] {
  width: 100%;
}

.readiness-weighting__slider-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #5e7287;
}

.readiness-weighting__muted {
  color: #5e7287;
}

.readiness-weighting__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  margin-top: 14px;
}

.readiness-weighting__live-hint {
  font-size: 0.82rem;
  color: #5e7287;
  flex: 1 1 220px;
  min-width: 0;
  line-height: 1.45;
}

/* Slider S³ Farben (ohne Browser-Standardblau) */
.readiness-weighting input[type="range"] {
  accent-color: var(--readiness-accent);
  --range-pct: 0%;
}

.readiness-weighting input[type="range"]:focus-visible {
  outline: 2px solid rgba(0, 122, 171, 0.35);
  outline-offset: 3px;
  border-radius: 12px;
}

@supports selector(input[type="range"]::-webkit-slider-thumb) {
  .readiness-weighting input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      var(--readiness-accent) 0%,
      var(--readiness-accent) var(--range-pct),
      rgba(1, 19, 43, 0.10) var(--range-pct),
      rgba(1, 19, 43, 0.10) 100%
    );
  }
  .readiness-weighting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--readiness-accent);
    box-shadow: 0 8px 18px rgba(1, 19, 43, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.9);
    margin-top: -6px;
  }
  .readiness-weighting input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
  }
}

@supports selector(input[type="range"]::-moz-range-thumb) {
  .readiness-weighting input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--readiness-accent);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(1, 19, 43, 0.18);
  }
  .readiness-weighting input[type="range"]::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--readiness-accent);
  }
  .readiness-weighting input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(1, 19, 43, 0.10);
  }
}

.readiness-breakdown {
  margin-top: 18px;
}

.readiness-breakdown h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #01132b;
}

.readiness-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.readiness-breakdown-row {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 211, 196, 0.22);
  background: rgba(0, 211, 196, 0.05);
  box-shadow: 0 6px 16px rgba(1, 19, 43, 0.03);
}

.readiness-breakdown-row__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.readiness-breakdown-row__active {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5e7287;
}

.readiness-breakdown-row__math {
  font-size: 0.86rem;
  color: #334155;
}

.readiness-breakdown-row__math [data-breakdown-contribution] {
  display: inline-block;
  min-width: 3.6ch;
  text-align: right;
  font-weight: 800;
  font-size: 1.08em;
  color: var(--readiness-accent, #007aab);
}

.readiness-ai-section {
  margin-top: 28px;
}

.readiness-calculation-mode__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.readiness-calculation-mode__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #006a62;
  background: rgba(0, 211, 196, 0.16);
  border: 1px solid rgba(0, 211, 196, 0.24);
  white-space: nowrap;
}

.readiness-calculation-mode__meta {
  line-height: 1.45;
}

.readiness-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.readiness-ai-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(1, 19, 43, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(1, 19, 43, 0.03);
}

.readiness-ai-card--positive {
  border-color: rgba(0, 211, 196, 0.22);
  background: rgba(0, 211, 196, 0.05);
}

.readiness-ai-card--neutral {
  border-color: rgba(0, 122, 171, 0.22);
  background: rgba(0, 122, 171, 0.05);
}

.readiness-ai-card--negative {
  border-color: rgba(255, 142, 91, 0.22);
  background: rgba(255, 142, 91, 0.05);
}

.readiness-ai-card strong {
  display: block;
  margin-bottom: 10px;
  color: #01132b;
}

.readiness-ai-card__executive {
  margin: 4px 0 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.readiness-ai-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.ai-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
}

.ai-meta-badge.impact-high,
.ai-meta-badge.confidence-high {
  color: #006a62;
  background: rgba(0, 211, 196, 0.14);
  border-color: rgba(0, 211, 196, 0.22);
}

.ai-meta-badge.impact-medium,
.ai-meta-badge.confidence-medium {
  color: #005f86;
  background: rgba(0, 122, 171, 0.12);
  border-color: rgba(0, 122, 171, 0.2);
}

.ai-meta-badge.impact-low,
.ai-meta-badge.confidence-low {
  color: #5e7287;
  background: rgba(94, 114, 135, 0.12);
  border-color: rgba(94, 114, 135, 0.18);
}

.ai-meta-badge.priority-now {
  color: #9a4a24;
  background: rgba(255, 142, 91, 0.16);
  border-color: rgba(255, 142, 91, 0.24);
}

.ai-meta-badge.priority-soon {
  color: #005f86;
  background: rgba(0, 122, 171, 0.12);
  border-color: rgba(0, 122, 171, 0.2);
}

.ai-meta-badge.priority-watch {
  color: #5e7287;
  background: rgba(94, 114, 135, 0.1);
  border-color: rgba(94, 114, 135, 0.16);
}

.readiness-ai-card__toggle {
  display: inline-flex;
  align-items: center;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #007aab;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.readiness-ai-card__toggle:hover,
.readiness-ai-card__toggle:focus-visible {
  color: #005f86;
  text-decoration: underline;
  outline: none;
}

.readiness-ai-card__details-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 280ms ease, opacity 240ms ease, margin-top 240ms ease;
}

.readiness-ai-card__details-panel.is-open {
  max-height: 2400px;
  opacity: 1;
  margin-top: 10px;
}

.readiness-ai-card__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.readiness-ai-card__badge--positive {
  color: #006a62;
  background: rgba(0, 211, 196, 0.16);
}

.readiness-ai-card__badge--negative {
  color: #9a4a24;
  background: rgba(255, 142, 91, 0.18);
}

.readiness-ai-card__badge--neutral {
  color: #005f86;
  background: rgba(0, 122, 171, 0.14);
}

.readiness-ai-card__headline {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 800;
  color: #01132b;
}

.readiness-ai-card__summary {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  font-weight: 600;
  color: #1e293b;
}

.readiness-ai-card__details-label {
  margin: 18px 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e7287;
}

.readiness-ai-card__details {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: rgba(51, 65, 85, 0.92);
}

.readiness-ai-card__details-inline {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #5e7287;
}

.readiness-ai-card span {
  font-size: 0.84rem;
  color: #5e7287;
}

.readiness-ai-card__content {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}

.readiness-ai-card__list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.readiness-ai-card__list li {
  margin: 12px 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: #334155;
}

.readiness-ai-card__sources {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5e7287;
}

.readiness-ai-card__empty {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  color: #5e7287;
}

.readiness-ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 12px 0 16px;
}

.readiness-ai-actions__meta {
  font-size: 0.82rem;
  color: #5e7287;
}

.readiness-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.readiness-kpi-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(1, 19, 43, 0.04);
}

.readiness-kpi-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: rgba(0, 122, 171, 0.08);
  color: #007aab;
}

.readiness-kpi-card__body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #01132b;
}

.readiness-kpi-card__value {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  color: #01132b;
}

.readiness-kpi-card__note,
.readiness-kpi-card__drivers {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #5e7287;
}

.readiness-kpi-card__drivers {
  padding-left: 18px;
}

.readiness-kpi-card--barrier .readiness-kpi-card__icon {
  background: rgba(255, 142, 91, 0.12);
  color: #c45d2e;
}

.readiness-kpi-card--leverage .readiness-kpi-card__icon {
  background: rgba(0, 211, 196, 0.12);
  color: #007aab;
}

.readiness-sources-grid,
.readiness-components-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.readiness-source-card,
.readiness-component-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.readiness-source-card.is-available {
  border-color: rgba(0, 122, 171, 0.18);
}

.readiness-source-card.is-missing {
  opacity: 0.82;
}

.readiness-source-card h3,
.readiness-component-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #01132b;
}

.readiness-source-card__status {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #007aab;
}

.readiness-source-card.is-missing .readiness-source-card__status {
  color: #5e7287;
}

.readiness-source-card p,
.readiness-component-card span {
  margin: 0;
  font-size: 0.84rem;
  color: #5e7287;
}

.readiness-component-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: #01132b;
}

@media (max-width: 768px) {
  .activity-page:has(.activity-readiness-page) {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-readiness-page .readiness-kpi-grid,
  .activity-readiness-page .readiness-driver-grid,
  .activity-readiness-page .readiness-sources-grid,
  .activity-readiness-page .readiness-components-grid,
  .activity-readiness-page .readiness-breakdown-grid,
  .activity-readiness-page .readiness-ai-grid,
  .activity-readiness-page .lightscan-results-summary-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-readiness-page .readiness-kpi-card,
  .activity-readiness-page .readiness-hero-card,
  .activity-readiness-page .readiness-weighting,
  .activity-readiness-page .readiness-driver-card,
  .activity-readiness-page .readiness-breakdown-row,
  .activity-readiness-page .readiness-ai-card,
  .activity-readiness-page .readiness-source-card,
  .activity-readiness-page .readiness-component-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .activity-smart-office-page .lightscan-results-summary-grid,
  .activity-smart-office-page .smart-office-env-grid,
  .activity-smart-office-page .smart-office-evidence-grid,
  .activity-smart-office-page .smart-office-ai-hero-row,
  .activity-smart-office-page .smart-office-ai-score-scale__labels--evidence,
  .activity-smart-office-page .smart-office-ai-score-scale__labels--confidence,
  .activity-insights-page .insights-kpi-grid,
  .activity-insights-page .insights-storyline-grid,
  .activity-smart-office-page .smart-office-management-columns,
  .activity-smart-office-page .smart-office-executive-kpis {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-smart-office-page .smart-office-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .activity-readiness-page .readiness-ai-card {
    padding: 14px 14px;
  }

  .activity-readiness-page .readiness-ai-card__executive {
    margin-bottom: 8px;
    padding: 12px 12px;
  }

  .activity-readiness-page .readiness-ai-card__headline {
    font-size: 0.96rem;
  }

  .activity-readiness-page .readiness-ai-card__summary {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .activity-readiness-page .readiness-ai-card__meta-row {
    gap: 5px;
    margin-bottom: 10px;
  }

  .activity-readiness-page .ai-meta-badge {
    font-size: 0.64rem;
    padding: 3px 7px;
  }

  .activity-readiness-page .readiness-calculation-mode__label {
    font-size: 1rem;
    gap: 6px;
  }

  .activity-readiness-page .readiness-calculation-mode__badge {
    font-size: 0.58rem;
    padding: 2px 7px;
  }

  .activity-readiness-page .readiness-calculation-mode__meta {
    font-size: 0.8rem;
  }

  .activity-readiness-page .lightscan-results-filter {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .activity-readiness-page .lightscan-results-filter .activity-context-field,
  .activity-readiness-page .lightscan-results-filter select,
  .activity-readiness-page .lightscan-results-filter .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .activity-readiness-page .readiness-score-scale__labels {
    grid-template-columns: 1fr;
  }

  .activity-readiness-page .readiness-weighting__buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .activity-readiness-page .readiness-weighting__buttons .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .activity-readiness-page .readiness-weighting__live-hint {
    flex: 1 1 auto;
    width: 100%;
  }

  .activity-readiness-page .readiness-score-scale__marker {
    width: 30px;
    height: 30px;
    top: 50%;
  }
}

/* =========================================
   Feedback & Intelligence
   ========================================= */

.feedback-intelligence-page {
  margin-bottom: 24px;
}

.feedback-intel-admin-panel {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.1);
  background: rgba(248, 250, 252, 0.95);
}

.feedback-intel-admin-panel__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feedback-intel-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 18px 0 0;
}

.feedback-intel-status-grid div {
  margin: 0;
}

.feedback-intel-status-grid dt {
  margin: 0 0 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(1, 19, 43, 0.58);
}

.feedback-intel-status-grid dd {
  margin: 0;
}

.feedback-intel-status-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(1, 19, 43, 0.62);
}

.feedback-intel-status-note {
  margin-top: 14px;
}

.feedback-intel-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.feedback-intel-admin-actions form {
  margin: 0;
}

.feedback-intel-analysis-progress {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 122, 171, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.feedback-intel-analysis-progress__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.feedback-intel-analysis-progress__header strong {
  color: #01132b;
}

.feedback-intel-analysis-progress__header span {
  font-size: 0.88rem;
  color: #5e7287;
}

.feedback-intel-analysis-progress__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feedback-intel-analysis-progress__steps li {
  display: grid;
  gap: 6px;
}

.feedback-intel-analysis-progress__steps li.is-active .feedback-intel-analysis-progress__step-label {
  color: #007aab;
  font-weight: 700;
}

.feedback-intel-analysis-progress__steps li.is-done .feedback-intel-analysis-progress__step-label::before {
  content: '✓ ';
  color: #007aab;
}

.feedback-intel-analysis-progress__step-label {
  font-size: 0.88rem;
  color: #01132b;
}

.feedback-intel-analysis-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(1, 19, 43, 0.08);
  overflow: hidden;
}

.feedback-intel-analysis-progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #007aab 0%, #00d3c4 100%);
  transition: width 0.2s ease;
}

.feedback-intel-success-summary__list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.feedback-intel-success-summary__list li {
  margin: 4px 0;
}

.btn-danger-outline {
  border-color: rgba(180, 35, 24, 0.35);
  color: #b42318;
}

.btn-danger-outline:hover {
  background: rgba(180, 35, 24, 0.06);
}

.feedback-intel-snapshot,
.feedback-intel-questions,
.feedback-intel-future-work,
.feedback-intel-section {
  margin-top: 28px;
}

.feedback-intel-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.feedback-intel-kpi-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(1, 19, 43, 0.04);
}

.feedback-intel-kpi-card--accent {
  border-color: rgba(0, 211, 196, 0.32);
  background: linear-gradient(180deg, rgba(0, 211, 196, 0.08), rgba(255, 255, 255, 0.94));
}

.feedback-intel-kpi-card--priority {
  border-color: rgba(255, 142, 91, 0.28);
  background: linear-gradient(180deg, rgba(255, 244, 238, 0.92), rgba(255, 255, 255, 0.96));
}

.feedback-intel-kpi-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e7287;
  margin-bottom: 8px;
}

.feedback-intel-kpi-card strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
  color: #01132b;
}

.feedback-intel-kpi-card__meta {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(1, 19, 43, 0.58);
}

.feedback-intel-question-context,
.feedback-intel-management-story__lead,
.readiness-feedback-activation-note {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
}

.feedback-intel-management-story,
.feedback-intel-tensions {
  margin: 0 0 28px;
}

.feedback-intel-dist {
  display: flex;
  overflow: hidden;
  width: 100%;
  margin: 12px 0 10px;
  border-radius: 999px;
  min-height: 14px;
  background: rgba(1, 19, 43, 0.06);
}

.feedback-intel-dist__segment {
  display: block;
  min-width: 0;
  height: 14px;
}

.feedback-intel-dist__segment--preserve {
  background: linear-gradient(90deg, rgba(0, 211, 196, 0.95), rgba(0, 122, 171, 0.85));
}

.feedback-intel-dist__segment--barrier {
  background: linear-gradient(90deg, rgba(255, 142, 91, 0.95), rgba(196, 93, 46, 0.9));
}

.feedback-intel-dist__segment--improvement {
  background: linear-gradient(90deg, rgba(0, 122, 171, 0.92), rgba(245, 200, 66, 0.92));
}

.feedback-intel-dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 8px;
}

.feedback-intel-dist-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #01132b;
}

.feedback-intel-dist-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.feedback-intel-dist-legend__dot.feedback-intel-dist__segment--preserve,
.feedback-intel-tone-bar-legend__dot.feedback-intel-tone-bar__segment--positiv {
  background: #00d3c4;
}

.feedback-intel-dist-legend__dot.feedback-intel-dist__segment--barrier,
.feedback-intel-tone-bar-legend__dot.feedback-intel-tone-bar__segment--kritisch {
  background: #c45d2e;
}

.feedback-intel-dist-legend__dot.feedback-intel-dist__segment--improvement,
.feedback-intel-tone-bar-legend__dot.feedback-intel-tone-bar__segment--improvement {
  background: #007aab;
}

.feedback-intel-tensions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feedback-intel-tensions__list li {
  border: 1px solid rgba(1, 19, 43, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.feedback-intel-tensions__list strong {
  color: #01132b;
}

.feedback-intel-tensions__list span {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.45;
}

.insights-feedback-preflight {
  width: 100%;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}

.insights-feedback-preflight h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.insights-feedback-preflight__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 12px 0 0;
}

.insights-feedback-preflight__grid dt {
  font-size: 0.78rem;
  color: #64748b;
}

.insights-feedback-preflight__grid dd {
  margin: 2px 0 0;
  font-weight: 700;
  color: #01132b;
}

.readiness-feedback-activation-note {
  margin-top: 12px;
}

.feedback-intel-question-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 6px;
  border-radius: 16px;
  background: #f8fbfc;
  border: 1px solid #e3ecef;
}

.feedback-intel-question-tab {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #5e7287;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.feedback-intel-question-tab:hover {
  color: #01132b;
  background: rgba(255, 255, 255, 0.72);
}

.feedback-intel-question-tab.is-active {
  color: #01132b;
  background: #ffffff;
  border-color: rgba(0, 122, 171, 0.22);
  box-shadow: 0 8px 18px rgba(0, 122, 171, 0.08);
}

.feedback-intel-question-panel {
  display: none;
}

.feedback-intel-question-panel.is-active {
  display: block;
}

.feedback-intel-question-lead {
  margin-bottom: 8px;
}

.feedback-intel-section h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: #01132b;
}

.feedback-intel-cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feedback-intel-cluster-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(1, 19, 43, 0.04);
}

.feedback-intel-cluster-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.feedback-intel-cluster-card__id {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #007aab;
  margin-bottom: 4px;
}

.feedback-intel-cluster-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: #01132b;
}

.feedback-intel-cluster-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.feedback-intel-cluster-card__metrics div {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f8fa;
}

.feedback-intel-cluster-card__metrics span {
  display: block;
  font-size: 0.76rem;
  color: #5e7287;
  margin-bottom: 4px;
}

.feedback-intel-cluster-card__metrics strong {
  font-size: 1.15rem;
  color: #01132b;
}

.feedback-intel-cluster-card__meta p {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5e7287;
}

.feedback-intel-tone-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.feedback-intel-tone--positiv {
  background: rgba(0, 211, 196, 0.14);
  color: #007aab;
  border: 1px solid rgba(0, 211, 196, 0.28);
}

.feedback-intel-tone--neutral {
  background: rgba(1, 19, 43, 0.06);
  color: #01132b;
  border: 1px solid rgba(1, 19, 43, 0.1);
}

.feedback-intel-tone--kritik {
  background: rgba(255, 142, 91, 0.12);
  color: #c45d2e;
  border: 1px solid rgba(255, 142, 91, 0.24);
}

.feedback-intel-tone--hemmnis {
  background: rgba(255, 142, 91, 0.12);
  color: #c45d2e;
  border: 1px solid rgba(255, 142, 91, 0.24);
}

.feedback-intel-tone--wunsch {
  background: rgba(245, 200, 66, 0.16);
  color: #0f4c81;
  border: 1px solid rgba(0, 122, 171, 0.28);
}

.feedback-intel-priority-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.feedback-intel-priority--strength {
  background: rgba(0, 211, 196, 0.12);
  color: #007aab;
}

.feedback-intel-priority--action {
  background: rgba(255, 142, 91, 0.14);
  color: #c45d2e;
}

.feedback-intel-priority--watch {
  background: rgba(1, 19, 43, 0.07);
  color: #334155;
}

.feedback-intel-priority--potential {
  background: rgba(0, 122, 171, 0.1);
  color: #007aab;
}

.feedback-intel-priority--neutral {
  background: rgba(1, 19, 43, 0.05);
  color: #5e7287;
}

.feedback-intel-tone-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feedback-intel-tone-group {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.feedback-intel-tone-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.feedback-intel-tone-group header strong {
  font-size: 0.82rem;
  color: #5e7287;
}

.feedback-intel-tone-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feedback-intel-tone-group li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #e7eef2;
  font-size: 0.86rem;
  color: #01132b;
}

.feedback-intel-tone-group li span {
  color: #5e7287;
  font-weight: 700;
  white-space: nowrap;
}

.feedback-intel-tone-bar {
  display: flex;
  width: 100%;
  min-height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(1, 19, 43, 0.06);
  margin-bottom: 12px;
}

.feedback-intel-tone-bar__segment {
  display: block;
  min-width: 0;
  height: 14px;
}

.feedback-intel-tone-bar__segment--positiv {
  background: linear-gradient(90deg, rgba(0, 211, 196, 0.95), rgba(0, 122, 171, 0.85));
}

.feedback-intel-tone-bar__segment--neutral {
  background: rgba(1, 19, 43, 0.18);
}

.feedback-intel-tone-bar__segment--kritisch {
  background: linear-gradient(90deg, rgba(255, 142, 91, 0.95), rgba(196, 93, 46, 0.9));
}

.feedback-intel-tone-bar__segment--improvement {
  background: linear-gradient(90deg, rgba(0, 122, 171, 0.92), rgba(245, 200, 66, 0.92));
}

.feedback-intel-tone-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
}

.feedback-intel-tone-bar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #01132b;
}

.feedback-intel-tone-bar-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.feedback-intel-tone-groups--compact {
  margin-top: 4px;
}

.feedback-intel-priority-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.feedback-intel-priority-tier {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.feedback-intel-priority-tier h4 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #01132b;
}

.feedback-intel-priority-tier ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: #334155;
}

.feedback-intel-priority-tier--high {
  border-color: rgba(255, 142, 91, 0.28);
  background: rgba(255, 142, 91, 0.06);
}

.feedback-intel-priority-tier--medium {
  border-color: rgba(0, 122, 171, 0.2);
  background: rgba(0, 122, 171, 0.05);
}

.feedback-intel-priority-tier--low {
  border-color: rgba(1, 19, 43, 0.1);
  background: rgba(1, 19, 43, 0.03);
}

.feedback-intel-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feedback-intel-quote-card {
  margin: 0;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(0, 122, 171, 0.12);
  background: linear-gradient(180deg, rgba(248, 251, 252, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(1, 19, 43, 0.05);
}

.feedback-intel-quote-card p {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #01132b;
}

.feedback-intel-quote-card footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.feedback-intel-quote-card__cluster {
  font-size: 0.78rem;
  font-weight: 800;
  color: #007aab;
}

.feedback-intel-insight-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-intel-insight-bubble {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 122, 171, 0.08);
  border: 1px solid rgba(0, 122, 171, 0.16);
  color: #01132b;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.feedback-intel-essence-card {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(0, 211, 196, 0.28);
  background: linear-gradient(180deg, rgba(0, 211, 196, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 28px rgba(0, 122, 171, 0.06);
}

.feedback-intel-essence-card h3 {
  margin-bottom: 10px;
}

.feedback-intel-essence-card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #01132b;
}

.feedback-intel-priority-grid {
  display: grid;
  gap: 10px;
}

.feedback-intel-priority-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.feedback-intel-priority-row__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.feedback-intel-priority-row__main strong {
  color: #01132b;
  font-size: 0.95rem;
}

.feedback-intel-priority-row__main span {
  font-size: 0.82rem;
  font-weight: 800;
  color: #5e7287;
}

.feedback-intel-priority-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.feedback-intel-future-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.feedback-intel-future-card {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(1, 19, 43, 0.04);
}

.feedback-intel-future-card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: #01132b;
}

.feedback-intel-future-card__block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(1, 19, 43, 0.1);
}

.feedback-intel-future-card__block span {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e7287;
  margin-bottom: 6px;
}

.feedback-intel-future-card__block p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #01132b;
}

.feedback-intel-future-card__block--tension p {
  color: #334155;
}

@media (max-width: 1100px) {
  .feedback-intel-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-intel-future-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .feedback-intel-cluster-grid,
  .feedback-intel-tone-groups,
  .feedback-intel-quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .feedback-intel-kpi-grid {
    grid-template-columns: 1fr;
  }

  .feedback-intel-question-tab {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (max-width: 960px) {
  .workplace-experience-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .workplace-experience-kpi-grid {
    grid-template-columns: 1fr;
  }

  .workplace-experience-matrix__plot {
    min-height: 300px;
  }
}

.lightscan-results-dept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.lightscan-results-dept-card {
  border: 1px solid rgba(1, 19, 43, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px 16px;
}

.lightscan-results-dept-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.lightscan-results-dept-card__head h3 {
  margin: 0;
  font-size: 1rem;
}

.collab-import-debug > summary {
  cursor: pointer;
  font-weight: 700;
  color: #01132B;
}

.collab-import-batch-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #5e7287;
}

.collab-import-batch-meta--error {
  color: #b42318;
}

.pwa-file-status-card__note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #5e7287;
}

.pwa-file-status-card__debug {
  margin-top: 0.45rem;
  font-size: 0.78rem;
}

.pwa-file-status-card__debug > summary {
  cursor: pointer;
  color: #01132B;
  font-weight: 600;
}

.lightscan-results-dept-card__missing-data {
  margin: 0;
  font-size: 0.82rem;
}

.lightscan-results-dept-card__missing-data-detail {
  display: block;
  margin-top: 0.35rem;
  color: #5e7287;
}

.lightscan-results-dept-card__head span {
  font-size: 0.82rem;
  color: #5e7287;
  white-space: nowrap;
}

.lightscan-results-dept-card__tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.lightscan-results-dept-card__tables h4 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #5e7287;
}

.lightscan-results-table--compact th,
.lightscan-results-table--compact td {
  padding: 7px 8px;
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .lightscan-results-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightscan-results-place-kpi-grid {
    grid-template-columns: 1fr;
  }

  .lightscan-heatmap-grid {
    grid-template-columns: 1fr;
  }

  .lightscan-results-zone-grid {
    grid-template-columns: 1fr;
  }

  .lightscan-results-dept-grid {
    grid-template-columns: 1fr;
  }

  .collab-results-kpi-grid {
    grid-template-columns: 1fr;
  }

  .collab-workplace-grid {
    grid-template-columns: 1fr;
  }

  .collab-network-tabs {
    padding: 12px 12px 0;
  }

  .collab-network-tab {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    padding: 10px 12px;
  }

  .collab-network-view {
    padding: 0 12px 12px;
  }

  .collab-network-graph {
    min-height: 420px;
  }

  .collab-network-legend {
    flex-direction: column;
    gap: 6px;
  }

  .collab-matrix-layout {
    grid-template-columns: 1fr;
  }

  .collab-adjacency-ranking {
    grid-template-columns: 1fr;
  }

  .collab-adjacency-map__row {
    justify-content: flex-start;
  }

  .collab-adjacency-map__team-card {
    min-width: 128px;
  }

  .collab-network-legend-card {
    max-width: 46%;
    font-size: 0.68rem;
    padding: 10px 12px;
  }
}

@media (max-width: 720px) {
  .lightscan-results-place-kpi-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .lightscan-results-summary-grid {
    grid-template-columns: 1fr;
  }
}

.lightscan-results-debug {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed rgba(1, 19, 43, 0.16);
}

.lightscan-results-debug h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.lightscan-results-debug__item {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.lightscan-results-debug__item h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.lightscan-results-debug__sql,
.lightscan-results-debug__rows {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f1c2d;
  color: #e8f1ff;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.lightscan-results-debug__meta {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #5e7287;
}

.lightscan-results-debug__error {
  margin: 8px 0 0;
  color: #9a4b3f;
  font-size: 0.86rem;
}

.collab-results-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.collab-kpi-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px 22px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.04);
  overflow: hidden;
}

.collab-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--collab-kpi-accent, #007AAB);
}

.collab-kpi-card--relations {
  --collab-kpi-accent: #007AAB;
}

.collab-kpi-card--strongest {
  --collab-kpi-accent: #23A2AA;
}

.collab-kpi-card--density {
  --collab-kpi-accent: #FEC10D;
}

.collab-kpi-card--hotspot {
  --collab-kpi-accent: #ff8e5b;
}

.collab-kpi-card--silos {
  --collab-kpi-accent: #818995;
}

.collab-kpi-card--dependencies {
  --collab-kpi-accent: #c45a2c;
}

.collab-kpi-card--centrality {
  --collab-kpi-accent: #007AAB;
}

.collab-kpi-card--balance {
  --collab-kpi-accent: #23A2AA;
}

.collab-kpi-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--collab-kpi-accent, #007AAB);
  background: color-mix(in srgb, var(--collab-kpi-accent, #007AAB) 14%, white);
  flex-shrink: 0;
}

.collab-kpi-card__body {
  display: grid;
  gap: 0;
  min-width: 0;
}

.collab-kpi-card__body h3 {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--s3-navy, #01132b);
}

.collab-kpi-card__label {
  display: block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5e7287;
}

.collab-kpi-card__label--secondary {
  margin-top: 14px;
}

.collab-kpi-card__value {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--s3-navy, #01132b);
}

.collab-kpi-card__value--compact {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.collab-kpi-card__value--hotspot {
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.2;
  word-break: break-word;
}

.collab-kpi-card__relation {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 800;
  color: var(--s3-navy, #01132b);
  word-break: break-word;
}

.collab-kpi-card__relation span {
  display: inline-block;
  margin: 0 0.25em;
  color: #5e7287;
  font-weight: 700;
}

.collab-kpi-card__desc {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5e7287;
}

.collab-kpi-card__value--management {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.25;
}

.collab-results-kpi-subsection {
  margin-top: 28px;
}

.collab-results-kpi-subsection > h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--s3-navy, #01132b);
}

.collab-results-kpi-grid--management {
  margin-top: 0;
}

.collab-interpretation-section {
  margin-top: 8px;
}

.collab-workplace-section {
  margin-top: 8px;
}

.collab-workplace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.collab-workplace-card {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(1, 19, 43, 0.04);
}

.collab-workplace-card h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--s3-navy, #01132b);
}

.collab-workplace-card p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5e7287;
}

.collab-workplace-card__list {
  margin: 0;
  padding-left: 18px;
  color: #01132B;
  font-size: 0.88rem;
  line-height: 1.5;
}

.collab-results-network-section {
  margin-top: 8px;
}

.collab-network-intro {
  margin-top: 4px;
}

.pwa-project-context {
  margin: 0.35rem 0 0.85rem;
}

.pwa-project-context__line,
.activity-project-context-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5e7287;
}

.pwa-project-context__line span,
.activity-project-context-line span {
  font-weight: 600;
}

.pwa-project-context__line strong,
.activity-project-context-line strong {
  color: #01132B;
  font-weight: 800;
}

.pwa-project-context__line em,
.activity-project-context-line em {
  font-style: normal;
  color: #5e7287;
}

.collab-network-widget {
  margin-top: 16px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.05);
  overflow: hidden;
}

.collab-network-widget--dashboard {
  overflow: visible;
}

.collab-network-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
}

.collab-network-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.collab-network-panel__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #01132B;
  letter-spacing: 0.01em;
}

.collab-network-panel--network .collab-network-graph {
  margin-top: 0;
}

.collab-network-panel--matrix .collab-network-graph {
  margin-top: 0;
  min-height: 0;
  border: 1px solid #e8eef2;
  background: #ffffff;
}

.collab-network-widget--dashboard .collab-network-graph {
  min-height: 0;
}

.collab-network-panel--matrix .collab-network-legend {
  margin-top: 0.35rem;
}

@media (min-width: 1200px) {
  .collab-network-dashboard {
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.15rem 1.25rem 1.25rem;
  }

  .collab-network-panel--network {
    flex: 0 0 38%;
    max-width: 38%;
  }

  .collab-network-panel--matrix {
    flex: 1 1 62%;
    min-width: 0;
  }

  .collab-network-panel--network .collab-network-graph--force,
  .collab-network-panel--network .collab-executive-network {
    min-height: 0;
    max-height: min(52vh, 475px);
    aspect-ratio: auto;
  }

  .collab-network-panel--network .collab-network-panel__title {
    margin-bottom: 0.15rem;
  }

  .collab-network-panel--matrix .collab-network-graph--management {
    overflow: visible;
    padding: 0.35rem 0.5rem 0.5rem;
  }

  .collab-network-panel--matrix .collab-matrix-layout--full {
    padding: 0;
  }

  .collab-network-panel--matrix .collab-matrix-table {
    font-size: 0.78rem;
  }

  .collab-network-panel--matrix .collab-matrix-table th,
  .collab-network-panel--matrix .collab-matrix-table td {
    padding: 7px 8px;
  }

  .collab-network-panel--matrix .collab-matrix-heatmap-legend {
    padding: 10px 12px;
    margin-top: 0;
  }

  .collab-network-panel--matrix .collab-adjacency-card {
    min-width: 0;
  }
}

.collab-network-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 0;
  border-bottom: 1px solid #e7eef2;
}

.collab-network-tab {
  appearance: none;
  border: 1px solid #dce8ec;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: #f4f8fa;
  color: #5e7287;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.collab-network-tab:hover {
  color: #01132B;
  background: #eef5f8;
}

.collab-network-tab.is-active {
  background: #ffffff;
  color: #007AAB;
  border-color: #c8d9e2;
  box-shadow: inset 0 2px 0 #007AAB;
}

.collab-network-view {
  display: none;
  padding: 0 16px 16px;
}

.collab-network-view.is-active {
  display: block;
}

.collab-network-graph {
  position: relative;
  min-height: 520px;
  margin-top: 12px;
  border: 1px solid #dce8ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdfd 0%, #f4f8fa 100%);
  overflow: hidden;
}

.collab-network-graph--force,
.collab-executive-network {
  min-height: 28rem;
  aspect-ratio: 800 / 720;
  background: #ffffff;
  border-color: #e8eef2;
}

.collab-network-graph--force.collab-executive-network {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
}

.collab-executive-network__shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.collab-executive-network__graph {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.collab-network-expand {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(1, 19, 43, 0.1);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  color: #5e7287;
  box-shadow: 0 4px 14px rgba(1, 19, 43, 0.08);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.collab-network-expand:hover {
  color: #007AAB;
  border-color: rgba(0, 122, 171, 0.28);
  background: #ffffff;
}

.collab-network-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(1, 19, 43, 0.48);
  backdrop-filter: blur(3px);
}

.collab-network-overlay__dialog {
  display: flex;
  flex-direction: column;
  width: min(1180px, 96vw);
  height: min(88vh, 900px);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(1, 19, 43, 0.22);
  overflow: hidden;
}

.collab-network-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e8eef2;
  background: #fafcfd;
}

.collab-network-overlay__header strong {
  font-size: 0.95rem;
  color: #01132B;
}

.collab-network-overlay__close {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #5e7287;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.collab-network-overlay__close:hover {
  background: #eef5f8;
  color: #01132B;
}

.collab-network-overlay__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.collab-executive-network--modal {
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
}

.collab-executive-network--modal .collab-executive-network__shell {
  height: 100%;
}

.collab-executive-network--modal .collab-executive-network__graph {
  flex: 1 1 auto;
  min-height: 0;
}

.collab-network-zoom-controls {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.collab-network-zoom-btn {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(1, 19, 43, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: #5e7287;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(1, 19, 43, 0.08);
}

.collab-network-zoom-btn:hover {
  color: #007AAB;
  border-color: rgba(0, 122, 171, 0.28);
}

body.has-collab-network-overlay {
  overflow: hidden;
}

.collab-network-widget:not(.collab-network-widget--dashboard) .collab-network-graph--force,
.collab-network-widget:not(.collab-network-widget--dashboard) .collab-executive-network {
  min-height: 36rem;
}

.collab-executive-network__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.collab-network-legend-card {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: min(17rem, 46%);
  padding: 1.05rem 1.2rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(1, 19, 43, 0.07);
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.07);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5e7287;
  pointer-events: none;
}

.collab-network-legend-card--below {
  position: static;
  z-index: auto;
  flex-shrink: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 0;
  border: none;
  border-top: 1px solid #e8eef2;
  box-shadow: none;
  background: #fafcfd;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.18rem 0.55rem;
  font-size: 0.68rem;
  line-height: 1.35;
}

.collab-network-legend-card--below strong {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 0.72rem;
}

.collab-network-legend-card--below span {
  gap: 0.35rem;
}

.collab-network-legend-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: #01132B;
}

.collab-network-legend-card span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.collab-legend-icon {
  flex-shrink: 0;
  width: 1rem;
  font-style: normal;
  font-weight: 800;
  color: #007AAB;
  text-align: center;
}

.collab-legend-icon--node {
  font-size: 0.72rem;
}

.collab-legend-icon--line {
  font-size: 0.9rem;
  line-height: 1;
}

.collab-legend-icon--arrow,
.collab-legend-icon--focus {
  font-size: 0.78rem;
}

.collab-network-graph--chord,
.collab-network-graph--management {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.collab-network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f8fa;
  border: 1px solid #e7eef2;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #5e7287;
}

.collab-network-legend strong {
  color: #01132B;
  font-weight: 800;
}

.collab-chord-label {
  font-size: 0.88rem;
  font-weight: 800;
  fill: #01132B;
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.collab-network-graph svg {
  display: block;
}

.collab-network-link-label {
  pointer-events: none;
}

.collab-network-link-label text {
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}

.collab-network-link-label--outer .collab-network-link-label__value {
  font-size: 19px;
  font-weight: 800;
  fill: #01132B;
  letter-spacing: -0.02em;
}

.collab-network-link-label--inner .collab-network-link-label__value {
  font-size: 12px;
  font-weight: 700;
  fill: #5a7388;
  stroke-width: 4px;
}

.collab-network-link-label__mentions,
.collab-network-link-label__intensity {
  font-size: 11px;
  font-weight: 600;
  fill: #5e7287;
  stroke-width: 3px;
}

.collab-network-node__title {
  font-size: 14px;
  font-weight: 800;
  fill: #01132B;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.collab-network-node__stat {
  font-size: 11px;
  font-weight: 700;
  fill: #01132B;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 2.5px;
  stroke-linejoin: round;
}

.collab-network-node__stat--muted {
  font-size: 10.5px;
  font-weight: 600;
  fill: #5e7287;
}

.collab-exec-link--outer {
  filter: none;
}

.collab-network-node__icon {
  pointer-events: none;
}

.collab-network-node {
  cursor: grab;
}

.collab-network-node:active {
  cursor: grabbing;
}

.collab-network-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(1, 19, 43, 0.94);
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 260px;
  box-shadow: 0 10px 24px rgba(1, 19, 43, 0.18);
}

.collab-network-tooltip--floating {
  position: fixed;
  z-index: 10050;
  max-width: min(320px, calc(100vw - 24px));
  overflow-wrap: anywhere;
}

/* Relationship matrix */
.collab-matrix-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 20px;
  padding: 8px 0;
}

.collab-matrix-layout--full {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.35rem 0.25rem 0;
}

.collab-matrix-layout--full .collab-matrix-main,
.collab-matrix-layout--scroll .collab-matrix-main,
.collab-matrix-layout--heatmap .collab-matrix-main {
  width: 100%;
  min-width: 0;
}

.collab-matrix-layout--full .collab-matrix-wrap {
  overflow-x: visible;
}

.collab-matrix-layout--full .collab-matrix-table {
  table-layout: fixed;
  width: 100%;
}

.collab-matrix-layout--full .collab-matrix-heatmap-legend {
  grid-column: auto;
  margin-top: 0;
  padding: 10px 12px;
}

.collab-matrix-layout--full .collab-matrix-cards-section {
  width: 100%;
}

.collab-matrix-layout--full .collab-matrix-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.collab-adjacency-card--matrix {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  height: 100%;
  min-height: 7.75rem;
  padding: 1rem 1.15rem;
}

.collab-adjacency-card--matrix .collab-adjacency-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.collab-adjacency-card--matrix .collab-adjacency-card__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #01132B;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.collab-adjacency-card--matrix .collab-adjacency-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
}

.collab-adjacency-card--matrix .collab-adjacency-card__summary {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #01132B;
  line-height: 1.45;
}

.collab-adjacency-card--matrix .collab-adjacency-card__detail {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #5e7287;
}

.collab-adjacency-card--matrix .collab-adjacency-card__meta {
  margin-top: 0.15rem;
}

.collab-matrix-layout--scroll {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.35rem 0;
}

.collab-matrix-layout--scroll .collab-matrix-wrap {
  overflow-x: auto;
}

.collab-matrix-layout--scroll .collab-matrix-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.65rem;
}

.collab-matrix-layout--heatmap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.35rem 0;
}

.collab-matrix-layout--heatmap .collab-matrix-wrap {
  overflow: auto;
  max-height: 28rem;
}

.collab-matrix-layout--heatmap .collab-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.collab-matrix-cards-section {
  width: 100%;
}

@media (max-width: 1100px) {
  .collab-matrix-layout--full .collab-matrix-cards,
  .collab-matrix-layout--scroll .collab-matrix-cards {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }
}

@media (max-width: 700px) {
  .collab-matrix-layout--full .collab-matrix-cards,
  .collab-matrix-layout--scroll .collab-matrix-cards {
    grid-template-columns: 1fr;
  }
}

.collab-executive-network--layout-radial,
.collab-executive-network--layout-circle,
.collab-executive-network--layout-force {
  min-height: 0;
}

.collab-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.collab-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}

.collab-matrix-table th,
.collab-matrix-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #e7eef2;
}

.collab-matrix-table thead th {
  font-weight: 800;
  color: #01132B;
  background: #f4f8fa;
}

.collab-matrix-corner {
  text-align: left !important;
  font-size: 0.78rem;
  color: #5e7287;
}

.collab-matrix-table tbody th {
  text-align: left;
  font-weight: 700;
  color: #01132B;
  background: #fafcfd;
}

.collab-matrix-cell {
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.collab-matrix-cell--self {
  color: #b0bec5;
  background: transparent;
}

.collab-matrix-cell--high {
  background: rgba(0, 122, 171, 0.28);
  color: #01132B;
}

.collab-matrix-cell--medium-high {
  background: rgba(0, 211, 196, 0.22);
  color: #01132B;
}

.collab-matrix-cell--medium {
  background: rgba(254, 193, 13, 0.18);
  color: #01132B;
}

.collab-matrix-cell--low {
  background: rgba(1, 19, 43, 0.04);
  color: #5e7287;
}

.collab-matrix-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.collab-matrix-heatmap-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f4f8fa;
  border: 1px solid #e7eef2;
}

.collab-matrix-heatmap-legend__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #01132B;
}

.collab-matrix-heatmap-legend__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: #5e7287;
}

.collab-matrix-heatmap-legend__gradient {
  width: min(280px, 50vw);
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef5f8 0%, #c8e8ef 25%, #7ec9db 55%, #007AAB 100%);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.collab-matrix-heatmap-legend__hint {
  font-size: 0.82rem;
  color: #5e7287;
}

.collab-matrix-cell--interactive {
  cursor: help;
}

.collab-matrix-cell--interactive:hover {
  outline: 2px solid rgba(0, 122, 171, 0.35);
  outline-offset: -1px;
}

/* Workplace Insights */
.collab-workplace-insights-section {
  margin-top: 8px;
}

.collab-workplace-widget {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

.collab-workplace-block {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(1, 19, 43, 0.04);
}

.collab-workplace-block h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #01132B;
}

.collab-workplace-block__lead {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5e7287;
}

.collab-adjacency-ranking {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.collab-adjacency-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e7eef2;
  background: linear-gradient(180deg, #fcfeff 0%, #f4f8fa 100%);
}

.collab-adjacency-card__rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #007AAB;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.collab-adjacency-card__body strong {
  display: block;
  font-size: 0.95rem;
  color: #01132B;
  margin-bottom: 6px;
}

.collab-adjacency-card__body p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5e7287;
}

.collab-adjacency-card__meta {
  font-size: 0.78rem;
  color: #007AAB;
  font-weight: 700;
}

.collab-adjacency-map {
  --collab-link-gap-card: 24px;
  --collab-link-gap-label: 12px;
  padding: 2.75rem 2.25rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fa 100%);
  border: 1px solid #dce8ec;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.collab-adjacency-map--compact {
  overflow-x: visible;
}

.collab-adjacency-map__canvas {
  min-width: min-content;
  width: 100%;
}

.collab-adjacency-map__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--collab-link-gap-card);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.collab-adjacency-map__cluster {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--collab-link-gap-card);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.collab-adjacency-map:not(.collab-adjacency-map--segmented) .collab-adjacency-map__cluster {
  justify-content: space-evenly;
}

.collab-adjacency-map__cluster--primary {
  padding: 1.1rem 1.35rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e3edf2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.collab-adjacency-map__cluster--annex {
  padding: 0.85rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 252, 0.98) 0%, rgba(244, 248, 250, 0.92) 100%);
  border: 1px dashed #c5d3dc;
  max-width: min(100%, 22rem);
  margin: 0 auto;
}

.collab-adjacency-map__row-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--collab-link-gap-label);
  width: 100%;
  max-width: 13rem;
  margin: 0 auto;
  padding: 2px 0;
  box-sizing: border-box;
}

.collab-adjacency-map__row-bridge-track {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
}

.collab-adjacency-map__row-bridge-line {
  display: block;
  width: 3px;
  height: 2rem;
  border-radius: 999px;
  background: #dce8ec;
}

.collab-adjacency-map__row-bridge--high .collab-adjacency-map__row-bridge-line {
  width: 4px;
  height: 2.25rem;
  background: linear-gradient(180deg, #007AAB, #00D3C4);
}

.collab-adjacency-map__row-bridge--medium-high .collab-adjacency-map__row-bridge-line {
  width: 4px;
  height: 2.1rem;
  background: linear-gradient(180deg, #00D3C4, #007AAB);
}

.collab-adjacency-map__row-bridge--medium .collab-adjacency-map__row-bridge-line {
  background: #FEC10D;
}

.collab-adjacency-map__row-bridge--low .collab-adjacency-map__row-bridge-line {
  background: repeating-linear-gradient(180deg, #b7c7d2 0 6px, transparent 6px 10px);
}

.collab-adjacency-map__row-bridge-label {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
  color: #5e7287;
  background: rgba(244, 248, 250, 0.95);
  border: 1px solid #e7eef2;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.collab-adjacency-map__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--collab-link-gap-card);
  width: 100%;
  padding: 10px 6px 22px;
  min-width: min-content;
  box-sizing: border-box;
}

.collab-adjacency-map__team-card {
  flex: 0 1 14rem;
  flex-shrink: 0;
  min-width: 13rem;
  max-width: 17rem;
  padding: 1.5rem 1.65rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f7fbfc 100%);
  border: 2px solid color-mix(in srgb, var(--team-color, #007AAB) 28%, #ffffff);
  box-shadow: 0 12px 28px rgba(1, 19, 43, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.collab-adjacency-map__team-card strong {
  font-size: 1rem;
  color: #01132B;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.collab-adjacency-map__team-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--team-color, #007AAB);
}

.collab-adjacency-map__team-meta {
  font-size: 0.78rem;
  color: #5e7287;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e7eef2;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.collab-adjacency-map__bridge {
  flex: 1 1 6.5rem;
  flex-shrink: 0;
  min-width: 6.5rem;
  max-width: 14rem;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--collab-link-gap-label);
  margin-top: 0;
  padding: 0 4px;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
  align-self: center;
}

.collab-adjacency-map__cluster .collab-adjacency-map__bridge {
  flex: 1 1 7rem;
  max-width: 16rem;
}

.collab-adjacency-map[data-adjacency-count="3"] .collab-adjacency-map__bridge {
  flex: 1 1 8.5rem;
  max-width: 16rem;
}

.collab-adjacency-map[data-adjacency-count="4"] .collab-adjacency-map__bridge,
.collab-adjacency-map[data-adjacency-count="5"] .collab-adjacency-map__bridge {
  flex: 1 1 7rem;
  max-width: 13rem;
}

.collab-adjacency-map[data-adjacency-count="6"] .collab-adjacency-map__bridge,
.collab-adjacency-map[data-adjacency-count="7"] .collab-adjacency-map__bridge,
.collab-adjacency-map[data-adjacency-count="8"] .collab-adjacency-map__bridge,
.collab-adjacency-map[data-adjacency-count="9"] .collab-adjacency-map__bridge,
.collab-adjacency-map[data-adjacency-count="10"] .collab-adjacency-map__bridge {
  flex: 1 1 6rem;
  max-width: 11rem;
}

.collab-adjacency-map__bridge-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
}

.collab-adjacency-map__bridge-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.collab-adjacency-map__bridge-segment {
  display: block;
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: #dce8ec;
}

.collab-adjacency-map__bridge--high .collab-adjacency-map__bridge-segment {
  height: 9px;
  background: linear-gradient(90deg, #007AAB, #00D3C4);
}

.collab-adjacency-map__bridge--medium-high .collab-adjacency-map__bridge-segment {
  height: 8px;
  background: linear-gradient(90deg, #00D3C4, #007AAB);
}

.collab-adjacency-map__bridge--medium .collab-adjacency-map__bridge-segment {
  height: 6px;
  background: #FEC10D;
}

.collab-adjacency-map__bridge--low .collab-adjacency-map__bridge-segment {
  height: 3px;
  background: repeating-linear-gradient(90deg, #b7c7d2 0 8px, transparent 8px 14px);
  opacity: 0.9;
}

.collab-adjacency-map__bridge--low .collab-adjacency-map__bridge-label {
  color: #6d8294;
  border-style: dashed;
}

.collab-adjacency-map__bridge small,
.collab-adjacency-map__bridge-label {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
  color: #5e7287;
  background: rgba(244, 248, 250, 0.95);
  border: 1px solid #e7eef2;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex-shrink: 0;
}

.collab-adjacency-map__crosslinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: var(--collab-link-gap-card);
  padding-top: 12px;
  border-top: 1px dashed #dce8ec;
}

.collab-adjacency-map__crosslink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fbfc;
  border: 1px solid #e7eef2;
  font-size: 0.78rem;
  color: #5e7287;
}

.collab-adjacency-map__crosslink em {
  font-style: normal;
  font-weight: 800;
  color: #007AAB;
  letter-spacing: 0.08em;
}

.collab-adjacency-map__crosslink--low em {
  color: #94a8b8;
}

.collab-adjacency-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  padding-top: 4px;
  font-size: 0.78rem;
  color: #5e7287;
}

.collab-adjacency-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.collab-adjacency-legend__item::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 999px;
}

.collab-adjacency-legend__item--high::before {
  background: linear-gradient(90deg, #007AAB, #00D3C4);
}

.collab-adjacency-legend__item--medium-high::before {
  background: #00D3C4;
}

.collab-adjacency-legend__item--medium::before {
  background: #FEC10D;
}

.collab-adjacency-legend__item--low::before {
  background: #dce8ec;
}

.collab-ideal-neighborhoods {
  --collab-link-gap-card: 24px;
  --collab-link-gap-label: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  border: 1px solid #dce8ec;
  background: linear-gradient(180deg, #fbfdfd 0%, #f4f8fa 100%);
}

.collab-ideal-neighborhoods--horizontal {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-evenly;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.5rem 1.25rem;
  border-style: solid;
  background: linear-gradient(180deg, #fbfdfd 0%, #f4f8fa 100%);
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  gap: var(--collab-link-gap-card);
  box-sizing: border-box;
}

.collab-ideal-neighborhoods__layout {
  flex-direction: column;
  align-items: center;
  overflow-x: visible;
}

.collab-ideal-neighborhoods__cluster {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--collab-link-gap-card);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.collab-ideal-neighborhoods:not(.collab-ideal-neighborhoods--segmented) .collab-ideal-neighborhoods__cluster {
  justify-content: space-evenly;
}

.collab-ideal-neighborhoods__cluster--primary {
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e3edf2;
}

.collab-ideal-neighborhoods__cluster--annex {
  padding: 0.85rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 252, 0.98) 0%, rgba(244, 248, 250, 0.92) 100%);
  border: 1px dashed #c5d3dc;
  max-width: min(100%, 22rem);
  margin: 0 auto;
}

.collab-ideal-neighborhoods__row-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--collab-link-gap-label);
  width: 100%;
  max-width: 13rem;
  margin: 0 auto;
  padding: 2px 0;
  box-sizing: border-box;
}

.collab-ideal-neighborhoods__row-bridge-track {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
}

.collab-ideal-neighborhoods__row-bridge-line {
  display: block;
  width: 3px;
  height: 2rem;
  border-radius: 999px;
  background: #dce8ec;
}

.collab-ideal-neighborhoods__row-bridge--high .collab-ideal-neighborhoods__row-bridge-line {
  width: 4px;
  height: 2.25rem;
  background: linear-gradient(180deg, #007AAB, #00D3C4);
}

.collab-ideal-neighborhoods__row-bridge--medium-high .collab-ideal-neighborhoods__row-bridge-line {
  width: 4px;
  height: 2.1rem;
  background: linear-gradient(180deg, #00D3C4, #007AAB);
}

.collab-ideal-neighborhoods__row-bridge--medium .collab-ideal-neighborhoods__row-bridge-line {
  background: #FEC10D;
}

.collab-ideal-neighborhoods__row-bridge--low .collab-ideal-neighborhoods__row-bridge-line {
  background: repeating-linear-gradient(180deg, #b7c7d2 0 6px, transparent 6px 10px);
}

.collab-ideal-neighborhoods__row-bridge-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}

.collab-ideal-neighborhoods__row-bridge-label {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
  color: #5e7287;
  background: rgba(244, 248, 250, 0.95);
  border: 1px solid #e7eef2;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.collab-ideal-neighborhoods--wrap {
  flex-wrap: wrap;
  overflow-x: visible;
  justify-content: center;
  align-items: flex-start;
  gap: var(--collab-link-gap-card);
  padding: 1.5rem 1rem 1.75rem;
}

.collab-ideal-neighborhoods--wrap .collab-ideal-card {
  min-width: 13rem;
  max-width: 17rem;
  flex: 1 1 13rem;
}

.collab-ideal-neighborhoods--wrap .collab-ideal-connector {
  min-width: 7rem;
  max-width: 13rem;
  flex: 1 1 7rem;
  margin-top: 2.75rem;
  padding: 0 4px;
}

.collab-ideal-neighborhoods--wrap .collab-ideal-connector__label {
  max-width: 100%;
}

.collab-ideal-neighborhoods--wrap .collab-ideal-intensity-dot {
  width: 0.52rem;
  height: 0.52rem;
}

.collab-ideal-neighborhoods--horizontal .collab-ideal-card {
  flex: 0 1 14rem;
  min-width: 13rem;
  max-width: 17rem;
  flex-shrink: 0;
}

.collab-ideal-neighborhoods--cluster {
  max-width: 22rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  border-radius: 1rem;
  border: 1px dashed #d7e3ea;
  background: linear-gradient(180deg, #fcfeff 0%, #f7fbfc 100%);
}

.collab-ideal-card {
  flex-shrink: 0;
  min-width: min(100%, 13rem);
  max-width: 17rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 2px solid color-mix(in srgb, var(--ideal-color, #007AAB) 30%, #ffffff);
  box-shadow: 0 10px 24px rgba(1, 19, 43, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.collab-ideal-card__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ideal-color, #007AAB);
}

.collab-ideal-card strong {
  font-size: 1.05rem;
  color: #01132B;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.collab-ideal-card__meta {
  font-size: 0.8rem;
  color: #5e7287;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e7eef2;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.collab-ideal-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--collab-link-gap-label);
  margin-top: 0;
  padding: 0 4px;
  flex: 1 1 6.5rem;
  min-width: 6.5rem;
  max-width: 14rem;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
  align-self: center;
}

.collab-ideal-neighborhoods__cluster .collab-ideal-connector {
  flex: 1 1 7rem;
  max-width: 16rem;
}

.collab-ideal-neighborhoods--horizontal .collab-ideal-connector {
  flex-direction: column;
  padding: 0 4px;
}

.collab-ideal-neighborhoods[data-ideal-count="3"] .collab-ideal-connector {
  flex: 1 1 8.5rem;
  max-width: 16rem;
}

.collab-ideal-neighborhoods[data-ideal-count="4"] .collab-ideal-connector,
.collab-ideal-neighborhoods[data-ideal-count="5"] .collab-ideal-connector {
  flex: 1 1 7rem;
  max-width: 13rem;
}

.collab-ideal-connector__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.collab-ideal-neighborhoods--horizontal .collab-ideal-connector__bar {
  flex-direction: row;
  gap: 0.3rem;
}

.collab-ideal-connector__bar span {
  display: block;
  width: 0.35rem;
  border-radius: 999px;
  background: #dce8ec;
}

.collab-ideal-neighborhoods:not(.collab-ideal-neighborhoods--horizontal) .collab-ideal-connector__bar span {
  width: 0.42rem;
  height: 1rem;
}

.collab-ideal-neighborhoods:not(.collab-ideal-neighborhoods--horizontal) .collab-ideal-connector--high .collab-ideal-connector__bar span {
  height: 1.45rem;
}

.collab-ideal-neighborhoods:not(.collab-ideal-neighborhoods--horizontal) .collab-ideal-connector--medium-high .collab-ideal-connector__bar span {
  height: 1.15rem;
}

.collab-ideal-connector--high .collab-ideal-connector__bar span {
  background: linear-gradient(180deg, #007AAB, #00D3C4);
}

.collab-ideal-neighborhoods--horizontal .collab-ideal-connector--high .collab-ideal-connector__bar span {
  width: 1.4rem;
  height: 0.45rem;
  background: linear-gradient(90deg, #007AAB, #00D3C4);
}

.collab-ideal-connector--medium-high .collab-ideal-connector__bar span {
  background: linear-gradient(180deg, #00D3C4, #007AAB);
}

.collab-ideal-neighborhoods--horizontal .collab-ideal-connector--medium-high .collab-ideal-connector__bar span {
  width: 1.1rem;
  height: 0.4rem;
  background: linear-gradient(90deg, #00D3C4, #007AAB);
}

.collab-ideal-connector--medium .collab-ideal-connector__bar span {
  background: #FEC10D;
}

.collab-ideal-neighborhoods--horizontal .collab-ideal-connector--medium .collab-ideal-connector__bar span {
  width: 0.85rem;
  height: 0.32rem;
}

.collab-ideal-connector--low .collab-ideal-connector__bar span {
  background: #c5d3dc;
  opacity: 0.88;
}

.collab-ideal-connector--low .collab-ideal-connector__label {
  color: #6d8294;
  border-style: dashed;
}

.collab-ideal-connector__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  flex-shrink: 0;
}

.collab-ideal-connector__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px 0;
}

.collab-ideal-connector__label {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
  color: #5e7287;
  background: rgba(244, 248, 250, 0.95);
  border: 1px solid #e7eef2;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex-shrink: 0;
}

.collab-ideal-intensity-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  flex-shrink: 0;
  padding: 2px 0;
}

.collab-ideal-intensity-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #d7e3ea;
  border: 1px solid #c5d3dc;
  box-sizing: border-box;
}

.collab-ideal-intensity-dot.is-filled {
  background: #007AAB;
  border-color: transparent;
}

.collab-adjacency-recommendations {
  margin: 0;
  padding-left: 20px;
  color: #01132B;
  font-size: 0.9rem;
  line-height: 1.55;
}

.collab-adjacency-recommendations li {
  margin-bottom: 10px;
}

.collab-adjacency-recommendations li:last-child {
  margin-bottom: 0;
}

.collab-workplace-block--recommendations {
  background: linear-gradient(180deg, #fcfeff 0%, #f0f7fa 100%);
  border-color: rgba(0, 122, 171, 0.12);
}

.collab-dept-profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.collab-dept-profile-metrics div {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f8fa;
}

.collab-dept-profile-metrics span {
  display: block;
  font-size: 0.78rem;
  color: #5e7287;
  margin-bottom: 4px;
}

.collab-dept-profile-metrics strong {
  font-size: 1.05rem;
  color: #01132B;
}

.lightscan-results-dept-card--accent {
  border-color: rgba(0, 122, 171, 0.18);
  box-shadow: 0 12px 28px rgba(0, 122, 171, 0.08);
}

.collab-dept-card-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collab-dept-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.collab-dept-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 122, 171, 0.1);
  color: #007AAB;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.collab-dept-profile-role {
  margin: 0 0 12px;
  color: #007AAB;
  font-size: 0.9rem;
  line-height: 1.45;
}

.collab-dept-partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.collab-dept-partner-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid #e7eef2;
  font-size: 0.86rem;
}

.collab-dept-partner-list li span {
  color: #5e7287;
}

.collab-dept-partner-list__item--primary {
  padding: 8px 0 8px 18px;
  border-left: 3px solid #007AAB;
}

.collab-dept-partner-list__item--primary strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #01132B;
}

.collab-dept-partner-list__item--primary strong::after {
  content: "Top-Partner";
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 122, 171, 0.1);
  color: #007AAB;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
}

.lightscan-results-table th[data-sort-direction="asc"]::after {
  content: " ↑";
}

.lightscan-results-table th[data-sort-direction="desc"]::after {
  content: " ↓";
}

/* =========================================
   Erhebungskontext – Mobile / Responsive
   (activity_tab=context)
   ========================================= */

@media (max-width: 768px) {
  .activity-page:has(.activity-context-page) {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-page:has(.activity-context-page) .activity-nav-shell {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-page:has(.activity-context-page) .activity-journey-grid,
  .activity-page:has(.activity-context-page) .activity-tabs,
  .activity-page:has(.activity-context-page) .activity-subtabs {
    min-width: 0;
    max-width: 100%;
  }

  .activity-page:has(.activity-context-page) .activity-journey-module,
  .activity-page:has(.activity-context-page) .activity-tab,
  .activity-page:has(.activity-context-page) .activity-subtab {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-context-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    overflow-x: clip;
  }

  .activity-context-page h1 {
    max-width: 100%;
    font-size: clamp(1.28rem, 5.8vw, 1.75rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-context-page h2,
  .activity-context-page h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-context-page .activity-lead,
  .activity-context-page .activity-schedule-note,
  .activity-context-page .activity-context-continue-note,
  .activity-context-page .collab-import-reset-hint,
  .activity-context-page .activity-save-mode-note {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-context-page .activity-context-layer,
  .activity-context-page .activity-context-empty-note,
  .activity-context-page .activity-org-form,
  .activity-context-page .success-box,
  .activity-context-page .error-box {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  .activity-context-page .activity-context-layer {
    padding: 16px;
  }

  .activity-context-page .activity-context-grid,
  .activity-context-page .activity-context-readonly-grid,
  .activity-context-page .activity-context-grid--compact {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .activity-context-page .activity-context-field {
    min-width: 0;
    max-width: 100%;
  }

  .activity-context-page .activity-context-field input,
  .activity-context-page .activity-context-field select,
  .activity-context-page .collab-import-form,
  .activity-context-page .collab-import-form input,
  .activity-context-page .collab-import-form select,
  .activity-context-page .collab-import-form textarea,
  .activity-context-page .activity-surveymonkey-link-output,
  .activity-context-page .activity-surveymonkey-link-output input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .activity-context-page .collab-import-form {
    max-width: 100%;
  }

  .activity-context-page .collab-import-expected,
  .activity-context-page .collab-summary-grid,
  .activity-context-page .collab-summary-grid--wide,
  .activity-context-page .pwa-file-status-grid {
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: 100%;
  }

  .activity-context-page .activity-context-source-list {
    min-width: 0;
    max-width: 100%;
  }

  .activity-context-page .activity-context-source-pill {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    height: auto;
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .activity-context-page .activity-context-source-pill-content {
    width: 100%;
  }

  .activity-context-page .activity-smart-office-status-grid {
    grid-template-columns: 1fr;
  }

  .activity-context-page .activity-smart-office-form,
  .activity-context-page .activity-smart-office-form .activity-context-field,
  .activity-context-page .activity-smart-office-form .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .activity-context-page .activity-org-table-wrap,
  .activity-context-page .pwa-import-log .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .activity-context-page .activity-org-table {
    min-width: 640px;
  }

  .activity-context-page .pwa-import-log .app-table,
  .activity-context-page .lightscan-results-table {
    min-width: 560px;
  }

  .activity-context-page .activity-surveymonkey-link-actions,
  .activity-context-page .activity-org-form__actions,
  .activity-context-page .activity-context-continue {
    width: 100%;
    max-width: 100%;
  }

  .activity-context-page .activity-surveymonkey-link-actions .btn,
  .activity-context-page .activity-org-form__actions .btn,
  .activity-context-page .activity-context-continue .btn {
    width: 100%;
    max-width: 100%;
  }

  .activity-context-page .activity-surveymonkey-copy-hint {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .activity-context-page code,
  .activity-context-page .collab-import-path code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-context-page .pwa-file-status-card,
  .activity-context-page .pwa-file-status-card__head,
  .activity-context-page .collab-import-expected__item,
  .activity-context-page .collab-summary-grid > div {
    min-width: 0;
    max-width: 100%;
  }

  .activity-context-page .pwa-file-status-card strong,
  .activity-context-page .pwa-file-status-card p,
  .activity-context-page .pwa-file-status-card__note {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Light Scan mobile responsive fixes (activity_tab=light) */
  .activity-page:has(.activity-light-page) {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-page:has(.activity-light-page) .activity-nav-shell {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-page:has(.activity-light-page) .activity-journey-grid,
  .activity-page:has(.activity-light-page) .activity-tabs,
  .activity-page:has(.activity-light-page) .activity-subtabs {
    min-width: 0;
    max-width: 100%;
  }

  .activity-page:has(.activity-light-page) .activity-journey-module,
  .activity-page:has(.activity-light-page) .activity-tab,
  .activity-page:has(.activity-light-page) .activity-subtab {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    height: auto;
  }

  .activity-light-page {
    display: grid;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .activity-light-page .activity-card,
  .activity-light-page .activity-dna-card,
  .activity-light-page .activity-scan-switcher,
  .activity-light-page .activity-active-scan,
  .activity-light-page .activity-scan-mode-hint,
  .activity-light-page .activity-save-mode-note,
  .activity-light-page .activity-place-sliders,
  .activity-light-page .activity-week-note {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-light-page .activity-card {
    padding: 16px;
    border-radius: 20px;
  }

  .activity-light-page > .activity-card > .activity-card {
    margin-top: 20px;
    padding: 16px;
  }

  .activity-light-page h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-light-page h2,
  .activity-light-page h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-light-page .activity-lead,
  .activity-light-page .activity-schedule-note,
  .activity-light-page .activity-week-note,
  .activity-light-page .activity-scan-switcher span,
  .activity-light-page .activity-active-scan,
  .activity-light-page .activity-dna-card__head p,
  .activity-light-page .activity-dna-insight span {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-light-page .activity-scan-switcher {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }

  .activity-light-page .activity-scan-switcher select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .activity-light-page .activity-light-flow,
  .activity-light-page .activity-light-scan-grid,
  .activity-light-page .activity-light-result-grid,
  .activity-light-page .activity-week-grid,
  .activity-light-page .activity-dna-grid,
  .activity-light-page .activity-delta-grid,
  .activity-light-page .activity-place-insights {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .activity-light-page .activity-light-step,
  .activity-light-page .activity-day-card,
  .activity-light-page .activity-light-input-card,
  .activity-light-page .activity-light-result-card,
  .activity-light-page .activity-dna-metric,
  .activity-light-page .activity-delta-metric,
  .activity-light-page .activity-place-insight-card {
    min-width: 0;
    max-width: 100%;
  }

  .activity-light-page .activity-dna-card__head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .activity-light-page .activity-dna-badge {
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    height: auto;
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .activity-light-page .activity-light-input-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .activity-light-page .activity-light-input-head span {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    height: auto;
    min-height: 30px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .activity-light-page .activity-day-slider-row__top,
  .activity-light-page .activity-place-slider-row__top,
  .activity-light-page .activity-day-card__head {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }

  .activity-light-page .activity-day-slider-row__top label,
  .activity-light-page .activity-place-slider-row__top label {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-light-page .activity-day-range,
  .activity-light-page .activity-place-range {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-light-page .activity-week-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 100%;
  }

  .activity-light-page .activity-week-toggle__btn {
    min-width: 0;
    padding: 0 10px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }

  .activity-light-page .activity-actions,
  .activity-light-page .activity-light-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-light-page .activity-actions .btn,
  .activity-light-page .activity-light-actions .activity-add-btn {
    width: 100%;
    max-width: 100%;
  }

  .activity-light-page .activity-light-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .activity-light-page .activity-light-save-next,
  .activity-light-page .activity-light-save-next__links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-light-page .activity-light-save-next__links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .activity-light-page .activity-light-save-next__links a {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Zusammenarbeit & Kommunikation mobile responsive fixes (activity_tab=collaboration) */
  .activity-page:has(.activity-collaboration-page) {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-page:has(.activity-collaboration-page) .activity-nav-shell {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-page:has(.activity-collaboration-page) .activity-journey-grid,
  .activity-page:has(.activity-collaboration-page) .activity-tabs,
  .activity-page:has(.activity-collaboration-page) .activity-subtabs {
    min-width: 0;
    max-width: 100%;
  }

  .activity-page:has(.activity-collaboration-page) .activity-journey-module,
  .activity-page:has(.activity-collaboration-page) .activity-tab,
  .activity-page:has(.activity-collaboration-page) .activity-subtab {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    height: auto;
  }

  .activity-collaboration-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
  }

  .activity-collaboration-page h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page h2,
  .activity-collaboration-page h3,
  .activity-collaboration-page h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page .activity-lead,
  .activity-collaboration-page .activity-schedule-note,
  .activity-collaboration-page .activity-context-empty-note,
  .activity-collaboration-page .collab-network-intro,
  .activity-collaboration-page .collab-workplace-block__lead,
  .activity-collaboration-page .collab-kpi-card__desc,
  .activity-collaboration-page .collab-dept-profile-role,
  .activity-collaboration-page .lightscan-results-insights li,
  .activity-collaboration-page .collab-adjacency-recommendations li {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page .pwa-project-context,
  .activity-collaboration-page .pwa-project-context__line {
    max-width: 100%;
    min-width: 0;
  }

  .activity-collaboration-page .lightscan-results-filter {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-collaboration-page .lightscan-results-filter .activity-context-field,
  .activity-collaboration-page .lightscan-results-filter select,
  .activity-collaboration-page .lightscan-results-filter .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .activity-collaboration-page .lightscan-results-summary-grid,
  .activity-collaboration-page .collab-results-kpi-grid,
  .activity-collaboration-page .collab-results-kpi-grid--management,
  .activity-collaboration-page .collab-workplace-grid,
  .activity-collaboration-page .lightscan-results-dept-grid,
  .activity-collaboration-page .collab-adjacency-ranking,
  .activity-collaboration-page .collab-dept-profile-metrics {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .activity-collaboration-page .lightscan-results-summary-item,
  .activity-collaboration-page .collab-kpi-card,
  .activity-collaboration-page .collab-workplace-card,
  .activity-collaboration-page .lightscan-results-dept-card,
  .activity-collaboration-page .collab-adjacency-card,
  .activity-collaboration-page .collab-workplace-block,
  .activity-collaboration-page .lightscan-results-executive,
  .activity-collaboration-page .lightscan-results-kpi-section,
  .activity-collaboration-page .lightscan-results-section,
  .activity-collaboration-page .success-box,
  .activity-collaboration-page .error-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-collaboration-page .collab-kpi-card,
  .activity-collaboration-page .collab-workplace-block,
  .activity-collaboration-page .lightscan-results-dept-card {
    padding: 16px;
  }

  .activity-collaboration-page .collab-kpi-card__relation,
  .activity-collaboration-page .collab-kpi-card__value,
  .activity-collaboration-page .collab-kpi-card__value--hotspot {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page .collab-network-widget,
  .activity-collaboration-page .collab-network-widget--dashboard,
  .activity-collaboration-page .collab-network-dashboard,
  .activity-collaboration-page .collab-network-panel,
  .activity-collaboration-page .collab-workplace-widget {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .activity-collaboration-page .collab-network-widget--dashboard {
    overflow: hidden;
  }

  .activity-collaboration-page .collab-network-dashboard {
    padding: 12px;
    gap: 16px;
  }

  .activity-collaboration-page .collab-network-graph,
  .activity-collaboration-page .collab-network-graph--force,
  .activity-collaboration-page .collab-network-graph--management,
  .activity-collaboration-page .collab-executive-network {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: auto;
    min-height: 300px;
    max-height: none;
  }

  .activity-collaboration-page .collab-network-graph svg,
  .activity-collaboration-page .collab-executive-network__svg,
  .activity-collaboration-page .collab-adjacency-map__canvas svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .activity-collaboration-page .collab-network-legend-card {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    pointer-events: auto;
  }

  .activity-collaboration-page .collab-network-legend-card--below {
    grid-template-columns: 1fr;
    padding: 0.5rem 0.65rem;
  }

  .activity-collaboration-page .collab-network-legend,
  .activity-collaboration-page .collab-matrix-heatmap-legend,
  .activity-collaboration-page .collab-adjacency-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-collaboration-page .collab-network-legend span,
  .activity-collaboration-page .collab-adjacency-legend__item {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page .collab-matrix-layout,
  .activity-collaboration-page .collab-matrix-layout--full,
  .activity-collaboration-page .collab-matrix-layout--scroll,
  .activity-collaboration-page .collab-matrix-layout--heatmap {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-collaboration-page .collab-matrix-layout--full .collab-matrix-cards,
  .activity-collaboration-page .collab-matrix-layout--scroll .collab-matrix-cards {
    grid-template-columns: 1fr;
  }

  .activity-collaboration-page .collab-matrix-wrap,
  .activity-collaboration-page .collab-network-graph--chord,
  .activity-collaboration-page .collab-network-graph--management {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Adjacency Map + Ideale Nachbarschaften: vertikal gestapelt statt horizontal scrollbar */
  .activity-collaboration-page [data-collab-adjacency-map],
  .activity-collaboration-page [data-collab-cluster-view] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .activity-collaboration-page [data-collab-cluster-view].collab-ideal-neighborhoods:not(.collab-ideal-neighborhoods--horizontal) {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .activity-collaboration-page .collab-adjacency-map {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px 12px;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .activity-collaboration-page .collab-adjacency-map__canvas {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-collaboration-page .collab-adjacency-map__layout {
    gap: var(--collab-link-gap-card, 24px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-collaboration-page .collab-adjacency-map__cluster {
    flex-direction: column;
    align-items: stretch;
    gap: var(--collab-link-gap-card, 24px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }

  .activity-collaboration-page .collab-adjacency-map__cluster--primary,
  .activity-collaboration-page .collab-adjacency-map__cluster--annex {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    max-width: 100%;
  }

  .activity-collaboration-page .collab-adjacency-map__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--collab-link-gap-card, 24px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }

  .activity-collaboration-page .collab-adjacency-map__team-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    padding: 1rem 1.1rem;
  }

  .activity-collaboration-page .collab-adjacency-map__bridge {
    box-sizing: border-box;
    width: 100%;
    max-width: 280px;
    min-width: 0;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    gap: var(--collab-link-gap-label, 12px);
    margin: 0 auto;
    margin-top: 0;
    padding: 0;
  }

  .activity-collaboration-page .collab-adjacency-map__row-bridge {
    max-width: 280px;
    margin: 0 auto;
  }

  .activity-collaboration-page .collab-adjacency-map__bridge::before {
    content: "↓";
    display: block;
    font-size: 1rem;
    line-height: 1;
    font-weight: 800;
    color: #94a8b8;
  }

  .activity-collaboration-page .collab-adjacency-map__bridge-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: auto;
    height: auto;
  }

  .activity-collaboration-page .collab-adjacency-map__bridge-segment {
    width: 6px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #dce8ec;
  }

  .activity-collaboration-page .collab-adjacency-map__bridge--high .collab-adjacency-map__bridge-segment {
    width: 8px;
    height: 18px;
    background: linear-gradient(180deg, #007AAB, #00D3C4);
  }

  .activity-collaboration-page .collab-adjacency-map__bridge--medium-high .collab-adjacency-map__bridge-segment {
    width: 7px;
    height: 16px;
    background: linear-gradient(180deg, #00D3C4, #007AAB);
  }

  .activity-collaboration-page .collab-adjacency-map__bridge--medium .collab-adjacency-map__bridge-segment {
    width: 6px;
    height: 14px;
    background: #FEC10D;
  }

  .activity-collaboration-page .collab-adjacency-map__bridge--low .collab-adjacency-map__bridge-segment {
    width: 5px;
    height: 10px;
    background: repeating-linear-gradient(180deg, #b7c7d2 0 6px, transparent 6px 10px);
  }

  .activity-collaboration-page .collab-adjacency-map__bridge small,
  .activity-collaboration-page .collab-adjacency-map__bridge-label {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f4f8fa;
    border: 1px solid #e7eef2;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page .collab-adjacency-map__crosslinks {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 12px;
    padding-top: 12px;
  }

  .activity-collaboration-page .collab-adjacency-map__crosslink {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods,
  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal,
  .activity-collaboration-page .collab-ideal-neighborhoods__layout {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: var(--collab-link-gap-card, 24px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 16px 12px;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods__cluster {
    flex-direction: column;
    align-items: stretch;
    gap: var(--collab-link-gap-card, 24px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods__cluster--primary,
  .activity-collaboration-page .collab-ideal-neighborhoods__cluster--annex {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 100%;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods__row-bridge {
    max-width: 280px;
    margin: 0 auto;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
    padding: 1rem 1.1rem;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-connector {
    box-sizing: border-box;
    width: 100%;
    max-width: 280px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: var(--collab-link-gap-label, 12px);
    margin: 0 auto;
    margin-top: 0;
    padding: 0;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-connector::before {
    content: "↓";
    display: block;
    font-size: 1rem;
    line-height: 1;
    font-weight: 800;
    color: #94a8b8;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-connector__bar {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-connector__bar span {
    width: 0.42rem;
    height: 1rem;
    border-radius: 999px;
    background: #dce8ec;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-connector--high .collab-ideal-connector__bar span {
    width: 0.48rem;
    height: 1.45rem;
    background: linear-gradient(180deg, #007AAB, #00D3C4);
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-connector--medium-high .collab-ideal-connector__bar span {
    width: 0.45rem;
    height: 1.15rem;
    background: linear-gradient(180deg, #00D3C4, #007AAB);
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-connector--medium .collab-ideal-connector__bar span {
    width: 0.42rem;
    height: 0.9rem;
    background: #FEC10D;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-connector--low .collab-ideal-connector__bar span {
    width: 0.38rem;
    height: 0.75rem;
    background: #c5d3dc;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-connector__label {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f4f8fa;
    border: 1px solid #e7eef2;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page .collab-ideal-neighborhoods--horizontal .collab-ideal-connector__dots {
    justify-content: center;
    width: 100%;
  }

  .activity-collaboration-page .lightscan-results-summary-item strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .activity-collaboration-page .lightscan-results-table {
    min-width: 560px;
  }

  .activity-collaboration-page .lightscan-results-dept-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .activity-collaboration-page .lightscan-results-dept-card__head span {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page .collab-dept-card-title,
  .activity-collaboration-page .collab-dept-partner-list li,
  .activity-collaboration-page .collab-adjacency-card__body strong {
    min-width: 0;
    max-width: 100%;
  }

  .activity-collaboration-page .collab-dept-partner-list__item--primary strong {
    flex-wrap: wrap;
  }

  .activity-collaboration-page .collab-dept-partner-list li span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-collaboration-page .lightscan-results-debug__rows {
    max-width: 100%;
    overflow-x: auto;
  }

  /* Arbeitsumfeld / Experience mobile responsive fixes (activity_tab=experience) */
  .activity-page:has(.activity-experience-page) {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-page:has(.activity-experience-page) .activity-nav-shell {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-page:has(.activity-experience-page) .activity-journey-grid,
  .activity-page:has(.activity-experience-page) .activity-tabs,
  .activity-page:has(.activity-experience-page) .activity-subtabs {
    min-width: 0;
    max-width: 100%;
  }

  .activity-page:has(.activity-experience-page) .activity-journey-module,
  .activity-page:has(.activity-experience-page) .activity-tab,
  .activity-page:has(.activity-experience-page) .activity-subtab {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    height: auto;
  }

  .activity-experience-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
  }

  .activity-experience-page h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-experience-page h2,
  .activity-experience-page h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-experience-page .activity-lead,
  .activity-experience-page .activity-schedule-note,
  .activity-experience-page .activity-context-empty-note,
  .activity-experience-page .lightscan-results-insights li,
  .activity-experience-page .workplace-experience-kpi-card__meta,
  .activity-experience-page .workplace-experience-kpi-card__interpretation,
  .activity-experience-page .workplace-experience-matrix__quadrant-desc,
  .activity-experience-page .lightscan-results-summary-meta {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-experience-page .pwa-project-context,
  .activity-experience-page .pwa-project-context__line {
    max-width: 100%;
    min-width: 0;
  }

  .activity-experience-page .lightscan-results-filter {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-experience-page .lightscan-results-filter .activity-context-field,
  .activity-experience-page .lightscan-results-filter select,
  .activity-experience-page .lightscan-results-filter .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .activity-experience-page .lightscan-results-summary-grid,
  .activity-experience-page .workplace-experience-kpi-grid {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .activity-experience-page .lightscan-results-summary-item,
  .activity-experience-page .workplace-experience-kpi-card,
  .activity-experience-page .workplace-experience-kpi-section,
  .activity-experience-page .workplace-experience-matrix-section,
  .activity-experience-page .workplace-experience-insights,
  .activity-experience-page .workplace-experience-departments,
  .activity-experience-page .lightscan-results-executive,
  .activity-experience-page .lightscan-results-debug,
  .activity-experience-page .success-box,
  .activity-experience-page .error-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-experience-page .workplace-experience-kpi-card {
    padding: 16px;
  }

  .activity-experience-page .lightscan-results-summary-item strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-experience-page .workplace-experience-matrix-scroll {
    overflow-x: visible;
    max-width: 100%;
  }

  .activity-experience-page .workplace-experience-matrix {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 12px;
  }

  .activity-experience-page .workplace-experience-matrix__y-label {
    writing-mode: horizontal-tb;
    transform: none;
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    text-align: center;
    padding: 0 4px 4px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-experience-page .workplace-experience-matrix__plot {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 220px;
    padding: 6px;
    gap: 6px;
  }

  .activity-experience-page .workplace-experience-matrix__x-label {
    grid-column: 1;
    grid-row: 3;
    max-width: 100%;
    padding: 4px 4px 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-experience-page .workplace-experience-matrix__quadrant {
    min-height: 0;
    padding: 10px;
    min-width: 0;
    justify-content: flex-start;
    gap: 4px;
  }

  .activity-experience-page .workplace-experience-matrix__quadrant strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-experience-page .workplace-experience-matrix__bubble {
    display: none;
  }

  .activity-experience-page .workplace-experience-matrix-mobile-list {
    display: block;
    margin-top: 16px;
  }

  .workplace-experience-matrix-mobile-list h3 {
    margin: 0 0 6px;
    font-size: 1rem;
  }

  .workplace-experience-matrix-mobile-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
  }

  .workplace-experience-matrix-mobile-list__item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(1, 19, 43, 0.08);
  }

  .workplace-experience-matrix-mobile-list__item strong {
    color: #01132b;
  }

  .workplace-experience-matrix-mobile-list__item span,
  .workplace-experience-matrix-mobile-list__item em {
    font-size: 0.82rem;
    line-height: 1.4;
    font-style: normal;
    color: #5e7287;
  }

  .activity-experience-page .activity-org-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .activity-experience-page .lightscan-results-table {
    min-width: 640px;
  }

  .activity-experience-page code,
  .activity-experience-page .lightscan-results-debug__rows {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .activity-experience-page .lightscan-results-debug__rows {
    overflow-x: auto;
  }

  /* Feedback & Intelligence mobile responsive fixes (activity_tab=feedback) */
  .activity-page:has(.activity-feedback-page) {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-page:has(.activity-feedback-page) .activity-nav-shell {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .activity-page:has(.activity-feedback-page) .activity-journey-grid,
  .activity-page:has(.activity-feedback-page) .activity-tabs,
  .activity-page:has(.activity-feedback-page) .activity-subtabs {
    min-width: 0;
    max-width: 100%;
  }

  .activity-page:has(.activity-feedback-page) .activity-journey-module,
  .activity-page:has(.activity-feedback-page) .activity-tab,
  .activity-page:has(.activity-feedback-page) .activity-subtab {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    height: auto;
  }

  .activity-feedback-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
  }

  .activity-feedback-page h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-feedback-page h2,
  .activity-feedback-page h3,
  .activity-feedback-page h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-feedback-page .activity-lead,
  .activity-feedback-page .activity-schedule-note,
  .activity-feedback-page .activity-context-empty-note,
  .activity-feedback-page .feedback-intel-question-lead,
  .activity-feedback-page .feedback-intel-kpi-card__meta,
  .activity-feedback-page .feedback-intel-cluster-card__meta p,
  .activity-feedback-page .feedback-intel-quote-card p,
  .activity-feedback-page .feedback-intel-essence-card p,
  .activity-feedback-page .feedback-intel-future-card__block p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .activity-feedback-page .lightscan-results-filter {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-feedback-page .lightscan-results-filter .activity-context-field,
  .activity-feedback-page .lightscan-results-filter select,
  .activity-feedback-page .lightscan-results-filter .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .activity-feedback-page .feedback-intel-kpi-grid,
  .activity-feedback-page .feedback-intel-cluster-grid,
  .activity-feedback-page .feedback-intel-tone-groups,
  .activity-feedback-page .feedback-intel-priority-tier-grid,
  .activity-feedback-page .feedback-intel-quote-grid,
  .activity-feedback-page .feedback-intel-future-grid,
  .insights-feedback-preflight__grid {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .activity-feedback-page .feedback-intel-kpi-card,
  .activity-feedback-page .feedback-intel-cluster-card,
  .activity-feedback-page .feedback-intel-tone-group,
  .activity-feedback-page .feedback-intel-quote-card,
  .activity-feedback-page .feedback-intel-essence-card,
  .activity-feedback-page .feedback-intel-future-card,
  .activity-feedback-page .feedback-intel-priority-row {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .activity-feedback-page .feedback-intel-kpi-card,
  .activity-feedback-page .feedback-intel-cluster-card,
  .activity-feedback-page .feedback-intel-quote-card,
  .activity-feedback-page .feedback-intel-future-card {
    padding: 16px;
  }

  .activity-feedback-page .feedback-intel-question-tabs {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .activity-feedback-page .feedback-intel-question-tab {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }

  .activity-feedback-page .feedback-intel-cluster-card__head,
  .activity-feedback-page .feedback-intel-priority-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-feedback-page .feedback-intel-priority-badge {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    height: auto;
    min-height: 30px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .activity-feedback-page .feedback-intel-priority-row__meta {
    width: 100%;
    flex-shrink: 1;
  }

  .activity-feedback-page .feedback-intel-insight-bubbles {
    width: 100%;
    max-width: 100%;
  }

  .activity-feedback-page .feedback-intel-insight-bubble {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    height: auto;
    min-height: 38px;
  }

  .activity-feedback-page .feedback-intel-tone-group li {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .activity-feedback-page .feedback-intel-tone-group li span {
    white-space: normal;
  }

  .activity-feedback-page .feedback-intel-status-grid {
    grid-template-columns: 1fr;
  }

  .activity-feedback-page .feedback-intel-admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .activity-feedback-page .feedback-intel-admin-actions form,
  .activity-feedback-page .feedback-intel-admin-actions .btn {
    width: 100%;
    max-width: 100%;
  }
}

/* Layout Simulation (Modul C4/C5) */
.layout-simulation-page {
  --layout-sim-accent: #FEC10D;
  --layout-sim-accent-soft: rgba(254, 193, 13, 0.18);
  --layout-sim-accent-fade: rgba(254, 193, 13, 0.05);
  --layout-sim-gradient: linear-gradient(135deg, var(--layout-sim-accent-soft) 0%, var(--layout-sim-accent-fade) 100%);
  --layout-sim-reject-text: #c8643d;
  --layout-sim-reject-border: rgba(255, 142, 91, 0.25);
  --layout-sim-reject-gradient: linear-gradient(135deg, rgba(255, 142, 91, 0.18) 0%, rgba(255, 142, 91, 0.08) 100%);
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}

.layout-simulation-hero {
  padding: 24px 26px;
  border: 1px solid var(--s3-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(254, 193, 13, 0.06) 100%);
}

.layout-simulation-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #007AAB;
  margin-bottom: 8px;
}

.layout-simulation-hero h1 {
  margin: 0 0 8px;
  color: var(--s3-navy);
}

.layout-simulation-hero__lead {
  margin: 0;
  color: var(--s3-text-soft);
  font-size: 1.02rem;
  max-width: 52rem;
}

.layout-simulation-hero__context {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.layout-simulation-hero__project {
  font-weight: 700;
  color: var(--s3-navy);
}

.layout-simulation-hero__meta {
  color: var(--s3-text-soft);
  font-size: 0.92rem;
}

.layout-simulation-experiments {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.layout-simulation-experiments__lead {
  margin: 0;
  color: var(--s3-text-soft);
  font-size: 0.92rem;
}

.layout-simulation-areas {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.layout-simulation-area-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px 14px 38px;
  border-radius: 16px;
  border: 1px solid rgba(1, 19, 43, 0.10);
  background: #f7fafb;
  min-height: 132px;
}

.layout-simulation-area-card.is-active {
  border-color: rgba(254, 193, 13, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, rgba(254, 193, 13, 0.10) 100%);
  box-shadow: 0 8px 24px rgba(254, 193, 13, 0.12);
}

.layout-simulation-area-card.is-planned {
  opacity: 0.88;
}

.layout-simulation-area-card__number {
  font-size: 0.78rem;
  font-weight: 800;
  color: #b88900;
  letter-spacing: 0.06em;
}

.layout-simulation-area-card__body h2 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--s3-navy);
}

.layout-simulation-area-card__body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--s3-text-soft);
}

.layout-simulation-area-card__badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #e8eef4;
  color: #5e7287;
}

.layout-simulation-area-card__badge.is-active {
  background: var(--layout-sim-accent, #FEC10D);
  color: #01132B;
}

.layout-simulation-panel {
  padding: 22px 24px;
  border: 1px solid var(--s3-border);
  border-radius: 18px;
}

.layout-simulation-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.layout-simulation-panel__kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-simulation-panel__header h2 {
  margin: 0 0 6px;
  color: var(--s3-navy);
}

.layout-simulation-panel__header p {
  margin: 0;
  color: var(--s3-text-soft);
}

.layout-simulation-upload {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.layout-simulation-upload__field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--s3-navy);
}

.layout-simulation-upload__field input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed rgba(254, 193, 13, 0.45);
  border-radius: 12px;
  background: #fffdf8;
}

.layout-simulation-upload__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--s3-text-soft);
}

.layout-simulation-jobs-wrap {
  overflow-x: auto;
}

.layout-simulation-jobs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.layout-simulation-jobs th,
.layout-simulation-jobs td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(1, 19, 43, 0.08);
  text-align: left;
  vertical-align: top;
}

.layout-simulation-jobs th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--s3-text-soft);
}

.layout-simulation-job-uuid {
  font-size: 0.82rem;
  word-break: break-all;
}

.layout-simulation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layout-simulation-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eef4f7;
  color: var(--s3-navy);
}

.layout-simulation-status--normalized,
.layout-simulation-status--classified {
  background: var(--layout-sim-gradient, linear-gradient(135deg, rgba(254, 193, 13, 0.18) 0%, rgba(254, 193, 13, 0.05) 100%));
  color: #8a6900;
}

.layout-simulation-inline-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: #007AAB;
}

.layout-simulation-empty {
  margin: 0;
  color: var(--s3-text-soft);
}

.layout-simulation-alert {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.layout-simulation-alert--error {
  background: #fff1f0;
  border-color: #f3c1bc;
  color: #8a2f28;
}

.layout-simulation-alert--success {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.14) 0%, rgba(254, 193, 13, 0.05) 100%);
  border-color: rgba(254, 193, 13, 0.35);
  color: #7a5e00;
}

.layout-simulation-alert--info {
  background: #f4f8fb;
  border-color: #d5e2ea;
  color: var(--s3-text);
}

.layout-simulation-artifact-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--s3-text-soft);
}

.layout-simulation-demo-notice {
  margin-top: 0;
}

.layout-simulation-page .btn-primary {
  background: linear-gradient(135deg, #fec10d 0%, #e5ad00 100%);
  border-color: rgba(254, 193, 13, 0.55);
  color: #01132B;
}

.layout-simulation-page .btn-primary:hover,
.layout-simulation-page .btn-primary:focus {
  background: linear-gradient(135deg, #ffd23f 0%, #fec10d 100%);
  color: #01132B;
}

.layout-simulation-review-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.layout-simulation-jobs tbody tr[data-job-uuid] {
  cursor: pointer;
}

.layout-simulation-jobs tbody tr[data-job-uuid].is-selected {
  outline: 2px solid rgba(254, 193, 13, 0.75);
  outline-offset: -2px;
  background: rgba(254, 193, 13, 0.08);
}

.layout-review-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}

.layout-review-badge--pending {
  background: #f2f5f8;
  color: #5e7287;
  border-color: rgba(1, 19, 43, 0.08);
}

.layout-review-badge--in-review {
  background: var(--layout-sim-gradient, linear-gradient(135deg, rgba(254, 193, 13, 0.18) 0%, rgba(254, 193, 13, 0.05) 100%));
  color: #8a6900;
  border-color: rgba(254, 193, 13, 0.28);
}

.layout-review-badge--approved {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.28) 0%, rgba(254, 193, 13, 0.12) 100%);
  color: #6f5600;
  border-color: rgba(254, 193, 13, 0.42);
}

.layout-review-badge--rejected {
  background: var(--layout-sim-reject-gradient);
  color: var(--layout-sim-reject-text);
  border-color: var(--layout-sim-reject-border);
}

.layout-review-badge--official {
  background: #01132B;
  color: #FEC10D;
  border-color: rgba(254, 193, 13, 0.35);
}

.layout-simulation-review-panel {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-simulation-review-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.layout-simulation-review-panel__header h3 {
  margin: 0 0 6px;
  color: #01132B;
  font-size: 1.1rem;
}

.layout-simulation-review-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0 0 16px;
}

.layout-simulation-review-meta dt {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-simulation-review-meta dd {
  margin: 0;
  color: #01132B;
  font-weight: 600;
}

.layout-simulation-review-comment label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #01132B;
}

.layout-simulation-review-comment textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid rgba(1, 19, 43, 0.12);
  border-radius: 12px;
  resize: vertical;
  font: inherit;
  background: #fffdf8;
}

.layout-simulation-review-hint {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: #007AAB;
}

.layout-simulation-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.layout-review-btn--approve {
  background: linear-gradient(135deg, #fec10d 0%, #e5ad00 100%);
  border-color: rgba(254, 193, 13, 0.55);
  color: #01132B;
}

.layout-review-btn--approve:hover,
.layout-review-btn--approve:focus {
  background: linear-gradient(135deg, #ffd23f 0%, #fec10d 100%);
  color: #01132B;
}

.layout-review-btn--reject {
  background: var(--layout-sim-reject-gradient);
  border: 1px solid var(--layout-sim-reject-border);
  color: var(--layout-sim-reject-text);
}

.layout-review-btn--reject:hover,
.layout-review-btn--reject:focus {
  background: linear-gradient(135deg, rgba(255, 142, 91, 0.24) 0%, rgba(255, 142, 91, 0.12) 100%);
  color: var(--layout-sim-reject-text);
}

.layout-review-btn--blocked,
.layout-review-btn--blocked:hover,
.layout-review-btn--blocked:focus {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.layout-simulation-review-reviewer-field {
  margin-bottom: 16px;
}

.layout-simulation-review-reviewer-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #01132B;
}

.layout-simulation-review-select {
  width: 100%;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid rgba(254, 193, 13, 0.28);
  border-radius: 12px;
  background: #fffdf8;
  font: inherit;
  color: #01132B;
}

.layout-job-delete-btn {
  background: transparent;
  border: 1px solid var(--layout-sim-reject-border);
  color: var(--layout-sim-reject-text);
}

.layout-job-delete-btn:hover,
.layout-job-delete-btn:focus {
  background: var(--layout-sim-reject-gradient);
  color: var(--layout-sim-reject-text);
  border-color: var(--layout-sim-reject-border);
}

.layout-phase-reset-btn {
  flex-shrink: 0;
  margin: 0 16px 0 0;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--layout-sim-reject-border);
  background: transparent;
  color: var(--layout-sim-reject-text);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}

.layout-phase-reset-btn:hover,
.layout-phase-reset-btn:focus {
  background: var(--layout-sim-reject-gradient);
  color: var(--layout-sim-reject-text);
  border-color: var(--layout-sim-reject-border);
}

.layout-phase-reset-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.layout-workflow-phase__header-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 0;
}

.layout-workflow-phase__header-row .layout-workflow-phase__header {
  flex: 1 1 auto;
  min-width: 0;
}

.layout-workflow-phase.is-expanded .layout-workflow-phase__header-row {
  border-bottom: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-workflow-phase.is-expanded .layout-workflow-phase__header-row .layout-workflow-phase__header {
  border-bottom: 0;
}

.layout-activate-btn {
  background: linear-gradient(135deg, #fec10d 0%, #e5ad00 100%);
  border-color: rgba(254, 193, 13, 0.55);
  color: #01132B;
}

.layout-activate-btn:hover,
.layout-activate-btn:focus {
  background: linear-gradient(135deg, #ffd23f 0%, #fec10d 100%);
  color: #01132B;
}

.layout-activate-btn--current {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.22) 0%, rgba(254, 193, 13, 0.10) 100%);
  border-color: rgba(254, 193, 13, 0.35);
  color: #6f5600;
  cursor: default;
}

.layout-simulation-hero__active-layout {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.14) 0%, rgba(254, 193, 13, 0.05) 100%);
  border: 1px solid rgba(254, 193, 13, 0.22);
  font-size: 0.9rem;
}

.layout-simulation-hero__active-layout-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-simulation-hero__active-layout-value {
  color: #01132B;
  font-weight: 600;
}

.layout-simulation-import-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.08) 0%, rgba(0, 122, 171, 0.03) 100%);
  border: 1px solid rgba(0, 122, 171, 0.16);
}

.layout-simulation-import-status__header {
  margin-bottom: 10px;
}

.layout-simulation-import-status__kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-simulation-import-status__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #01132B;
}

.layout-simulation-import-status__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.layout-simulation-import-status__grid dt {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6b7c;
}

.layout-simulation-import-status__grid dd {
  margin: 0;
  font-size: 0.9rem;
  color: #01132B;
  font-weight: 600;
}

.layout-simulation-import-status__status-cell {
  grid-column: 1 / -1;
}

.layout-simulation-import-status__hint {
  margin: 0;
  font-size: 0.88rem;
  color: #5b6b7c;
  line-height: 1.45;
}

.layout-import-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.layout-import-status-badge[data-status="vector-usable"] {
  background: rgba(40, 160, 80, 0.14);
  color: #1f6b3f;
  border: 1px solid rgba(40, 160, 80, 0.28);
}

.layout-import-status-badge[data-status="review"] {
  background: rgba(220, 180, 40, 0.16);
  color: #6f5600;
  border: 1px solid rgba(220, 180, 40, 0.32);
}

.layout-import-status-badge[data-status="raster-assist"] {
  background: rgba(220, 80, 60, 0.12);
  color: #8f2f1f;
  border: 1px solid rgba(220, 80, 60, 0.28);
}

.layout-import-status-badge[data-status="cad-pending"] {
  background: rgba(120, 120, 120, 0.12);
  color: #444;
  border: 1px solid rgba(120, 120, 120, 0.24);
}

.layout-import-status-badge[data-status="manual"],
.layout-import-status-badge[data-status="unsupported"] {
  background: rgba(160, 120, 200, 0.12);
  color: #4f3a6b;
  border: 1px solid rgba(160, 120, 200, 0.28);
}

.layout-import-status-badge[data-status="pending"] {
  background: rgba(1, 19, 43, 0.06);
  color: #5b6b7c;
  border: 1px solid rgba(1, 19, 43, 0.1);
}

@media (max-width: 720px) {
  .layout-simulation-import-status__grid {
    grid-template-columns: 1fr;
  }
}

.layout-clean-plan-viewer {
  margin: 16px 0 0;
  padding: 14px 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 122, 171, 0.18);
  background: linear-gradient(180deg, rgba(0, 122, 171, 0.04) 0%, rgba(1, 19, 43, 0.02) 100%);
}

.layout-clean-plan-viewer__header {
  margin-bottom: 12px;
}

.layout-clean-plan-viewer__kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-clean-plan-viewer__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #01132B;
}

.layout-clean-plan-viewer__lead {
  margin: 0;
  font-size: 0.88rem;
  color: #5b6b7c;
  line-height: 1.45;
}

.layout-clean-plan-viewer__timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.layout-clean-plan-viewer__timeline-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5b6b7c;
  background: rgba(1, 19, 43, 0.05);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-clean-plan-viewer__timeline-step[data-status="active"] {
  color: #01132B;
  background: rgba(0, 122, 171, 0.12);
  border-color: rgba(0, 122, 171, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 122, 171, 0.08);
}

.layout-clean-plan-viewer__timeline-step[data-status="done"] {
  color: #1f6b42;
  background: rgba(40, 160, 80, 0.1);
  border-color: rgba(40, 160, 80, 0.22);
}

.layout-clean-plan-viewer__timeline-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.layout-clean-plan-viewer__timeline-step[data-status="active"] .layout-clean-plan-viewer__timeline-marker,
.layout-clean-plan-viewer__timeline-step[data-status="done"] .layout-clean-plan-viewer__timeline-marker {
  opacity: 1;
}

.layout-clean-plan-viewer__timeline-arrow {
  font-size: 0.75rem;
  color: #8a97a5;
  padding: 0 2px;
}

.layout-clean-plan-viewer__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.layout-clean-plan-viewer__tab {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(1, 19, 43, 0.12);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5b6b7c;
  cursor: pointer;
}

.layout-clean-plan-viewer__tab.is-active {
  color: #01132B;
  border-color: rgba(0, 122, 171, 0.35);
  background: rgba(0, 122, 171, 0.08);
}

.layout-clean-plan-viewer__panel {
  margin-bottom: 14px;
}

.layout-clean-plan-viewer__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0 0 12px;
}

.layout-clean-plan-viewer__meta--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-clean-plan-viewer__meta dt {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8794;
}

.layout-clean-plan-viewer__meta dd {
  margin: 0;
  font-size: 0.88rem;
  color: #01132B;
}

.layout-clean-plan-viewer__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.layout-clean-plan-viewer__figure {
  margin: 0;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(1, 19, 43, 0.1);
  background: #fff;
}

.layout-clean-plan-viewer__figure figcaption {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b6b7c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.layout-clean-plan-viewer__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 6px;
  background: #f7f9fb;
}

.layout-clean-plan-viewer__placeholder {
  margin: 0;
  padding: 28px 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #8a97a5;
  background: #f7f9fb;
  border-radius: 6px;
}

.layout-clean-plan-viewer__compare-note {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: #5b6b7c;
  line-height: 1.45;
}

.layout-clean-plan-viewer__handoff {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-clean-plan-viewer__handoff-title,
.layout-clean-plan-viewer__gallery-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #01132B;
}

.layout-clean-plan-viewer__handoff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layout-clean-plan-viewer__handoff-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.layout-clean-plan-viewer__handoff-status[data-ready="true"] {
  color: #1f6b42;
  font-weight: 700;
}

.layout-clean-plan-viewer__handoff-status[data-ready="false"] {
  color: #8a97a5;
}

.layout-clean-plan-viewer__handoff-overall {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.layout-clean-plan-viewer__handoff-overall[data-ready="true"] {
  color: #1f6b42;
}

.layout-clean-plan-viewer__handoff-overall[data-ready="false"] {
  color: #8a97a5;
}

.layout-clean-plan-viewer__gallery {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-clean-plan-viewer__gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.layout-clean-plan-viewer__gallery-item {
  margin: 0;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: #fff;
}

.layout-clean-plan-viewer__gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: 4px;
  background: #f7f9fb;
}

.layout-clean-plan-viewer__gallery-item figcaption {
  margin-top: 6px;
  font-size: 0.72rem;
  color: #5b6b7c;
  line-height: 1.3;
}

.layout-clean-plan-viewer__hint {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #5b6b7c;
}

@media (max-width: 900px) {
  .layout-clean-plan-viewer__meta,
  .layout-clean-plan-viewer__meta--compact,
  .layout-clean-plan-viewer__compare,
  .layout-clean-plan-viewer__gallery-grid {
    grid-template-columns: 1fr;
  }
}

.layout-import-priority {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(1, 19, 43, 0.03);
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-import-priority__heading {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5b6b7c;
}

.layout-import-priority__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layout-import-priority__item {
  font-size: 0.85rem;
  font-weight: 600;
}

.layout-import-priority__item--recommended {
  color: #1f6b42;
}

.layout-import-priority__item--restricted {
  color: #9a6b20;
}

.layout-import-classification-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 122, 171, 0.06);
  border: 1px solid rgba(0, 122, 171, 0.15);
}

.layout-import-classification-result__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b6b7c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.layout-import-classification-result__meta {
  font-size: 0.82rem;
  color: #5b6b7c;
}

.layout-import-classification-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.layout-import-classification-badge[data-status="vector-usable"] {
  background: rgba(40, 160, 80, 0.12);
  color: #1f6b42;
  border: 1px solid rgba(40, 160, 80, 0.25);
}

.layout-import-classification-badge[data-status="cad-structural"] {
  background: rgba(0, 122, 171, 0.1);
  color: #007AAB;
  border: 1px solid rgba(0, 122, 171, 0.25);
}

.layout-import-classification-badge[data-status="raster-assist"] {
  background: rgba(220, 170, 40, 0.12);
  color: #9a6b20;
  border: 1px solid rgba(220, 170, 40, 0.28);
}

.layout-import-classification-badge[data-status="pending"] {
  background: rgba(1, 19, 43, 0.06);
  color: #5b6b7c;
}

.layout-import-classification-badge--table {
  font-size: 0.75rem;
}

.layout-structure-reconstruction {
  margin: 16px 0 0;
  padding: 14px 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(40, 160, 80, 0.2);
  background: linear-gradient(180deg, rgba(40, 160, 80, 0.05) 0%, rgba(1, 19, 43, 0.02) 100%);
}

.layout-structure-reconstruction__kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f6b42;
}

.layout-structure-reconstruction__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #01132B;
}

.layout-structure-reconstruction__lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #5b6b7c;
}

.layout-structure-reconstruction__scores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0 0 12px;
}

.layout-structure-reconstruction__scores dt {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #7a8794;
}

.layout-structure-reconstruction__scores dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #01132B;
}

.layout-structure-reconstruction__compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.layout-structure-reconstruction__figure {
  margin: 0;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(1, 19, 43, 0.1);
  background: #fff;
}

.layout-structure-reconstruction__figure figcaption {
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5b6b7c;
  text-transform: uppercase;
}

.layout-structure-reconstruction__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  background: #f7f9fb;
  border-radius: 6px;
}

.layout-structure-reconstruction__review {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: #01132B;
}

.layout-structure-reconstruction__completeness {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f6b42;
}

.layout-structure-reconstruction__hint {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #5b6b7c;
}

.layout-reconstruction-quality {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-reconstruction-quality__title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.layout-reconstruction-quality__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0 0 8px;
}

.layout-reconstruction-quality__grid dt {
  margin: 0 0 2px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #7a8794;
}

.layout-reconstruction-quality__grid dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.layout-reconstruction-quality__story {
  margin: 0;
  font-size: 0.84rem;
  color: #5b6b7c;
  line-height: 1.45;
}

.layout-structure-reconstruction__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.layout-structure-reconstruction__tab {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(1, 19, 43, 0.12);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.layout-structure-reconstruction__tab.is-active {
  border-color: rgba(40, 160, 80, 0.35);
  background: rgba(40, 160, 80, 0.1);
}

.layout-structure-reconstruction__panel {
  margin-bottom: 8px;
}

.layout-structure-reconstruction__compare--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-structure-reconstruction__figure--wide img {
  max-height: 360px;
}

.layout-structure-reconstruction__compare-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.layout-structure-reconstruction__compare-tab {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(1, 19, 43, 0.1);
  background: #fff;
  font-size: 0.78rem;
  cursor: pointer;
}

.layout-structure-reconstruction__compare-tab.is-active {
  background: rgba(0, 122, 171, 0.1);
  border-color: rgba(0, 122, 171, 0.3);
}

@media (max-width: 900px) {
  .layout-structure-reconstruction__scores,
  .layout-structure-reconstruction__compare,
  .layout-structure-reconstruction__compare--triple,
  .layout-reconstruction-quality__grid {
    grid-template-columns: 1fr;
  }
}

.layout-simulation-active-layout-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-simulation-active-layout-hint {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #007AAB;
  line-height: 1.5;
}

.layout-artifact-preview {
  margin-bottom: 22px;
}

.layout-artifact-preview__title {
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: #01132B;
}

.layout-artifact-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.layout-artifact-preview-card {
  padding: 14px 16px;
  border: 1px solid rgba(254, 193, 13, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.12) 0%, rgba(254, 193, 13, 0.04) 100%);
}

.layout-artifact-preview-card h4 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #007AAB;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.layout-artifact-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--s3-text-soft);
}

.layout-artifact-preview__meta code {
  font-size: 0.8rem;
}

.layout-artifact-preview__frame {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: #f8f9fb;
  padding: 8px;
}

.layout-artifact-preview__frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.layout-artifact-preview__notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f6f8;
  border: 1px dashed rgba(1, 19, 43, 0.12);
  color: var(--s3-text-soft);
  font-size: 0.9rem;
}

.layout-artifact-table-wrap {
  margin-top: 4px;
}

.layout-simulation-preprocessing-panel {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-simulation-preprocessing-panel__header h3 {
  margin: 0 0 8px;
  color: #01132B;
}

.layout-simulation-preprocessing-lead {
  margin: 0 0 8px;
  color: #007AAB;
  line-height: 1.5;
  max-width: 72ch;
}

.layout-simulation-preprocessing-job-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--s3-text-soft);
}

.layout-simulation-preprocessing-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f8fb;
  border: 1px solid #d5e2ea;
  color: var(--s3-text);
  font-size: 0.88rem;
}

.layout-simulation-preprocessing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.layout-preprocess-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    color 0.18s ease;
}

.layout-preprocess-btn:not(:disabled):hover {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.28) 0%, rgba(254, 193, 13, 0.12) 100%);
  border-color: #FEC10D;
  box-shadow: 0 2px 8px rgba(254, 193, 13, 0.22);
  color: #01132B;
}

.layout-preprocess-btn:not(:disabled):active {
  transform: translateY(1px);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.35) 0%, rgba(254, 193, 13, 0.18) 100%);
  border-color: #e5ad00;
  box-shadow: 0 1px 3px rgba(254, 193, 13, 0.18);
}

.layout-preprocess-btn--processing {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.32) 0%, rgba(254, 193, 13, 0.14) 100%) !important;
  border-color: #FEC10D !important;
  color: #6f5600 !important;
  cursor: wait;
  box-shadow: 0 0 0 1px rgba(254, 193, 13, 0.18);
}

.layout-preprocess-btn--success {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.26) 0%, rgba(254, 193, 13, 0.10) 100%) !important;
  border-color: rgba(254, 193, 13, 0.55) !important;
  color: #4a7200 !important;
}

.layout-preprocess-btn__check {
  font-weight: 800;
  color: #6f5600;
}

.layout-preprocess-btn__spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(111, 86, 0, 0.22);
  border-top-color: #6f5600;
  border-radius: 50%;
  animation: layout-preprocess-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes layout-preprocess-spin {
  to {
    transform: rotate(360deg);
  }
}

.layout-preprocess-btn--pipeline {
  border-style: dashed;
}

.layout-simulation-preprocessing-hint--success {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.14) 0%, rgba(254, 193, 13, 0.05) 100%);
  border-color: rgba(254, 193, 13, 0.35);
  color: #6f5600;
}

.layout-simulation-preprocessing-hint--error {
  background: var(--layout-sim-reject-gradient);
  border-color: var(--layout-sim-reject-border);
  color: var(--layout-sim-reject-text);
}

.layout-simulation-preprocessing-hint--info {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.10) 0%, rgba(254, 193, 13, 0.03) 100%);
  border-color: rgba(254, 193, 13, 0.22);
  color: #6f5600;
}

#layout-preprocessing-section {
  scroll-margin-top: 18px;
}

#layoutPipelineArtifacts {
  scroll-margin-top: 18px;
}

/* Layout Simulation – Workflow Phasen A/B/C */
.layout-workflow-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.layout-workflow-nav__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(1, 19, 43, 0.10);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: 0 2px 10px rgba(1, 19, 43, 0.04);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.layout-workflow-nav__item:hover {
  border-color: rgba(254, 193, 13, 0.45);
  box-shadow: 0 4px 14px rgba(254, 193, 13, 0.12);
}

.layout-workflow-nav__item.is-active {
  border-color: rgba(254, 193, 13, 0.65);
  background: var(--layout-sim-gradient, linear-gradient(135deg, rgba(254, 193, 13, 0.18) 0%, rgba(254, 193, 13, 0.05) 100%));
  box-shadow: 0 4px 16px rgba(254, 193, 13, 0.16);
}

.layout-workflow-nav__phase {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-workflow-nav__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #01132B;
  line-height: 1.3;
}

.layout-workflow-nav__status {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5a6b7d;
}

.layout-workflow-nav__status[data-status="in_progress"] {
  color: #8a6a00;
}

.layout-workflow-nav__status[data-status="complete"] {
  color: #3d7a1c;
}

.layout-workflow-phase {
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(1, 19, 43, 0.10);
  scroll-margin-top: 18px;
}

.layout-workflow-phase.is-complete {
  border-color: rgba(61, 122, 28, 0.22);
}

.layout-workflow-phase.is-in-progress {
  border-color: rgba(254, 193, 13, 0.35);
}

.layout-workflow-phase__header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: linear-gradient(135deg, rgba(1, 19, 43, 0.03) 0%, rgba(1, 19, 43, 0.01) 100%);
  cursor: pointer;
  text-align: left;
}

.layout-workflow-phase.is-expanded .layout-workflow-phase__header {
  border-bottom: 1px solid rgba(1, 19, 43, 0.08);
  background: var(--layout-sim-gradient, linear-gradient(135deg, rgba(254, 193, 13, 0.14) 0%, rgba(254, 193, 13, 0.04) 100%));
}

.layout-workflow-phase__chevron {
  flex-shrink: 0;
  width: 1.25rem;
  font-size: 0.85rem;
  color: #007AAB;
}

.layout-workflow-phase__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.layout-workflow-phase__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-workflow-phase__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #01132B;
}

.layout-workflow-phase__status {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5a6b7d;
  white-space: nowrap;
}

.layout-workflow-phase__status[data-status="in_progress"] {
  color: #8a6a00;
}

.layout-workflow-phase__status[data-status="complete"] {
  color: #3d7a1c;
}

.layout-workflow-phase__body {
  padding: 20px;
}

.layout-workflow-phase__intro {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 122, 171, 0.18);
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.08) 0%, rgba(0, 122, 171, 0.02) 100%);
  color: #01132B;
  font-size: 0.9rem;
  line-height: 1.5;
}

.layout-workflow-step + .layout-workflow-step,
.layout-workflow-connector + .layout-workflow-step {
  margin-top: 0;
}

.layout-workflow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
  padding: 0 12px;
}

.layout-workflow-connector__line {
  display: block;
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(254, 193, 13, 0.55) 0%, rgba(0, 122, 171, 0.35) 100%);
  border-radius: 2px;
}

.layout-workflow-connector__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-workflow-phase--architecture .layout-workflow-phase__header {
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.08) 0%, rgba(0, 122, 171, 0.02) 100%);
}

.layout-architecture-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 122, 171, 0.28);
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.12) 0%, rgba(0, 122, 171, 0.04) 100%);
  color: #007AAB;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.layout-architecture-badge--dev {
  border-color: rgba(254, 193, 13, 0.45);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.18) 0%, rgba(254, 193, 13, 0.06) 100%);
  color: #8a6a00;
}

.layout-segmentation-e2,
.layout-geometry-f1,
.layout-structure-f2 {
  margin-top: 0;
}

.layout-structure-f2__kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.layout-structure-f2__kpis--extended {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-segmentation-e2__header h4,
.layout-geometry-f1__header h4 {
  margin: 0 0 8px;
  color: #01132B;
  font-size: 1.05rem;
}

.layout-segmentation-e2__lead,
.layout-segmentation-e2__job-hint,
.layout-geometry-f1__lead,
.layout-geometry-f1__job-hint {
  margin: 0 0 12px;
  color: #5a6b7d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.layout-segmentation-e2__notice,
.layout-geometry-f1__notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(254, 193, 13, 0.28);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.10) 0%, rgba(254, 193, 13, 0.03) 100%);
  font-size: 0.88rem;
  color: #01132B;
  line-height: 1.5;
}

.layout-segmentation-e2__actions,
.layout-geometry-f1__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.layout-segmentation-e2__hint,
.layout-geometry-f1__hint {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.layout-segmentation-e2__hint--success,
.layout-geometry-f1__hint--success {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.14) 0%, rgba(254, 193, 13, 0.05) 100%);
  border: 1px solid rgba(254, 193, 13, 0.35);
  color: #6f5600;
}

.layout-segmentation-e2__hint--error,
.layout-geometry-f1__hint--error {
  background: var(--layout-sim-reject-gradient);
  border: 1px solid var(--layout-sim-reject-border);
  color: var(--layout-sim-reject-text);
}

.layout-segmentation-e2__hint--info,
.layout-geometry-f1__hint--info {
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.10) 0%, rgba(0, 122, 171, 0.03) 100%);
  border: 1px solid rgba(0, 122, 171, 0.22);
  color: #007AAB;
}

.layout-segmentation-e2__kpis,
.layout-geometry-f1__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.layout-segmentation-e2__kpi,
.layout-geometry-f1__kpi {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
}

.layout-segmentation-e2__kpi-label,
.layout-geometry-f1__kpi-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-segmentation-e2__kpi-value,
.layout-geometry-f1__kpi-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #01132B;
  line-height: 1.35;
  word-break: break-word;
}

.layout-segmentation-e2__artifacts-title,
.layout-geometry-f1__artifacts-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #01132B;
}

.layout-segmentation-e2__artifact-grid,
.layout-geometry-f1__artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.layout-segment-artifact-card__json {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.08) 0%, rgba(0, 122, 171, 0.02) 100%);
  color: #007AAB;
  font-size: 2rem;
  font-weight: 700;
}

.layout-geometry-artifact-card__download {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #007AAB;
  text-decoration: none;
}

.layout-geometry-artifact-card__download:hover {
  text-decoration: underline;
}

.layout-geometry-review {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 122, 171, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
}

.layout-geometry-review__header h5 {
  margin: 0 0 8px;
  color: #01132B;
  font-size: 1rem;
}

.layout-geometry-review__lead {
  margin: 0 0 16px;
  color: #5a6b7d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.layout-geometry-review__score {
  margin-bottom: 16px;
}

.layout-geometry-review__score-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.10) 0%, rgba(254, 193, 13, 0.03) 100%);
}

.layout-geometry-review__score-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #01132B;
}

.layout-geometry-review__score-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #01132B;
}

.layout-geometry-review__score-ampel {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.layout-geometry-review__score-ampel[data-level="green"] {
  background: linear-gradient(135deg, rgba(61, 122, 28, 0.16) 0%, rgba(61, 122, 28, 0.06) 100%);
  border: 1px solid rgba(61, 122, 28, 0.28);
  color: #3d7a1c;
}

.layout-geometry-review__score-ampel[data-level="yellow"] {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.18) 0%, rgba(254, 193, 13, 0.06) 100%);
  border: 1px solid rgba(254, 193, 13, 0.35);
  color: #8a6a00;
}

.layout-geometry-review__score-ampel[data-level="red"] {
  background: var(--layout-sim-reject-gradient);
  border: 1px solid var(--layout-sim-reject-border);
  color: var(--layout-sim-reject-text);
}

.layout-geometry-review__subsection-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-geometry-review__diagnosis,
.layout-geometry-review__hints {
  margin-bottom: 18px;
}

.layout-geometry-review__diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.layout-geometry-review__diagnosis-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 122, 171, 0.18);
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.08) 0%, rgba(0, 122, 171, 0.02) 100%);
  color: #01132B;
  font-size: 0.88rem;
  line-height: 1.45;
}

.layout-geometry-review__hints-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #01132B;
  font-size: 0.9rem;
  line-height: 1.5;
}

.layout-geometry-review__hints-list li + li {
  margin-top: 6px;
}

.layout-geometry-review__hints-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #5a6b7d;
}

.layout-geometry-review__dimensions {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.layout-geometry-review__dimension-label {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #01132B;
}

.layout-geometry-review__ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layout-geometry-review__comment-label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #01132B;
}

.layout-geometry-review__comment {
  width: 100%;
  margin-top: 6px;
}

.layout-geometry-review__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.layout-geometry-review__meta {
  margin: 0;
  font-size: 0.82rem;
  color: #5a6b7d;
}

.layout-segment-btn--processing,
.layout-geometry-btn--processing {
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.18) 0%, rgba(0, 122, 171, 0.08) 100%) !important;
  border-color: rgba(0, 122, 171, 0.45) !important;
  color: #005f87 !important;
  cursor: wait;
}

.layout-segment-btn--success,
.layout-geometry-btn--success {
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.16) 0%, rgba(0, 122, 171, 0.06) 100%) !important;
  border-color: rgba(0, 122, 171, 0.35) !important;
  color: #005f87 !important;
}

.layout-segment-btn__spinner,
.layout-geometry-btn__spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(0, 95, 135, 0.22);
  border-top-color: #005f87;
  border-radius: 50%;
  animation: layout-preprocess-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .layout-segmentation-e2__kpis,
  .layout-geometry-f1__kpis,
  .layout-structure-f2__kpis,
  .layout-structure-f2__kpis--extended {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-geometry-review__diagnosis-grid {
    grid-template-columns: 1fr;
  }
}

.layout-segmentation-architecture__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.layout-workflow-phase .layout-simulation-panel,
.layout-workflow-phase .layout-simulation-preprocessing-panel,
.layout-workflow-phase .layout-quality-assessment,
.layout-workflow-phase .layout-clean-floorplan,
.layout-workflow-phase .layout-segmentation-architecture {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.layout-workflow-phase .layout-quality-assessment,
.layout-workflow-phase .layout-clean-floorplan,
.layout-workflow-phase .layout-segmentation-architecture {
  margin-top: 0;
}

@media (max-width: 900px) {
  .layout-workflow-nav {
    grid-template-columns: 1fr;
  }

  .layout-workflow-phase__header {
    flex-wrap: wrap;
  }

  .layout-workflow-phase__header-row {
    flex-wrap: wrap;
  }

  .layout-phase-reset-btn {
    width: calc(100% - 32px);
    margin: 0 16px 12px;
    text-align: center;
  }

  .layout-workflow-phase__status {
    width: 100%;
    padding-left: calc(1.25rem + 12px);
  }
}

.layout-quality-assessment {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-quality-assessment__header h4,
.layout-clean-floorplan__header h4 {
  margin: 0 0 8px;
  color: #01132B;
  font-size: 1rem;
}

.layout-quality-assessment__lead,
.layout-clean-floorplan__lead {
  margin: 0 0 14px;
  color: #007AAB;
  line-height: 1.5;
  max-width: 72ch;
  font-size: 0.9rem;
}

.layout-quality-best-hero {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 122, 171, 0.32);
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.16) 0%, rgba(0, 122, 171, 0.05) 100%);
  box-shadow: 0 2px 10px rgba(0, 122, 171, 0.08);
}

.layout-quality-best-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
}

.layout-quality-best-hero__icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.layout-quality-best-hero__body {
  flex: 1 1 220px;
  min-width: 0;
}

.layout-quality-best-hero__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-quality-best-hero__value {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #01132B;
}

.layout-quality-best-hero__value code {
  font-size: 1rem;
}

.layout-quality-best-hero__hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--s3-text-soft);
  line-height: 1.45;
}

.layout-quality-best-hero__badge {
  align-self: center;
  flex-shrink: 0;
}

.layout-quality-summary {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(254, 193, 13, 0.22);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.10) 0%, rgba(254, 193, 13, 0.03) 100%);
}

.layout-quality-summary__stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.layout-quality-summary__stats div {
  margin: 0;
}

.layout-quality-summary__stats dt {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #007AAB;
}

.layout-quality-summary__stats dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #01132B;
}

.layout-quality-reviewer-field {
  margin-bottom: 14px;
}

.layout-quality-reviewer-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #01132B;
  font-size: 0.88rem;
}

.layout-quality-feedback {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.layout-quality-feedback--success {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.14) 0%, rgba(254, 193, 13, 0.05) 100%);
  border: 1px solid rgba(254, 193, 13, 0.35);
  color: #6f5600;
}

.layout-quality-feedback--error {
  background: var(--layout-sim-reject-gradient);
  border: 1px solid var(--layout-sim-reject-border);
  color: var(--layout-sim-reject-text);
}

.layout-quality-feedback--info {
  background: #f4f8fb;
  border: 1px solid #d5e2ea;
  color: var(--s3-text);
}

.layout-quality-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.layout-quality-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(254, 193, 13, 0.20);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.08) 0%, rgba(254, 193, 13, 0.02) 100%);
}

.layout-quality-card--best {
  border-color: rgba(0, 122, 171, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 122, 171, 0.10);
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.08) 0%, rgba(254, 193, 13, 0.04) 100%);
}

.layout-quality-card__reference-badge {
  margin-top: 4px;
  gap: 4px;
}

.layout-quality-card__reference-badge span[aria-hidden="true"] {
  margin-right: 2px;
}

.layout-quality-card__head {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.layout-quality-card__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: #f8f9fb;
}

.layout-quality-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.layout-quality-card__key {
  margin: 0 0 4px;
  font-weight: 700;
  color: #01132B;
}

.layout-quality-card__step {
  margin: 0 0 6px;
  font-size: 0.76rem;
  color: #007AAB;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.layout-quality-card__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--s3-text-soft);
}

.layout-quality-best-btn--selected {
  background: linear-gradient(135deg, #fec10d 0%, #e5ad00 100%) !important;
  border-color: rgba(254, 193, 13, 0.55) !important;
  color: #01132B !important;
  font-weight: 800;
  cursor: default;
  opacity: 1;
}

.layout-quality-best-btn__check {
  display: inline-block;
  margin-right: 4px;
  font-weight: 900;
}

.layout-quality-card__ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.layout-quality-rating {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(1, 19, 43, 0.10);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.layout-quality-rating:hover {
  transform: translateY(-1px);
}

.layout-quality-rating.is-active {
  box-shadow: 0 1px 4px rgba(1, 19, 43, 0.08);
}

.layout-quality-rating--usable.is-active {
  background: rgba(0, 122, 171, 0.12);
  border-color: rgba(0, 122, 171, 0.35);
  color: #005a82;
}

.layout-quality-rating--partly.is-active {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.24) 0%, rgba(254, 193, 13, 0.10) 100%);
  border-color: rgba(254, 193, 13, 0.45);
  color: #6f5600;
}

.layout-quality-rating--not-usable.is-active {
  background: var(--layout-sim-reject-gradient);
  border-color: var(--layout-sim-reject-border);
  color: var(--layout-sim-reject-text);
}

.layout-quality-rating--diagnostic.is-active {
  background: #f2f5f8;
  border-color: rgba(0, 122, 171, 0.28);
  color: #5e7287;
}

.layout-quality-card__comment-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #01132B;
}

.layout-quality-comment {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(254, 193, 13, 0.22);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
  min-height: 52px;
  background: #fffdf8;
}

.layout-quality-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layout-clean-floorplan {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-clean-floorplan__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.layout-clean-floorplan__card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(254, 193, 13, 0.18);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.06) 0%, rgba(254, 193, 13, 0.02) 100%);
}

.layout-clean-floorplan__card--muted {
  background: #f8f9fb;
  border-color: rgba(1, 19, 43, 0.08);
}

.layout-clean-floorplan__card h5 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #01132B;
}

.layout-clean-floorplan__card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--s3-text);
  line-height: 1.45;
}

.layout-target-layers {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(254, 193, 13, 0.28);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.05) 0%, transparent 100%);
}

.layout-target-layers h5 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #01132B;
}

.layout-target-layers__note {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--s3-text-soft);
}

.layout-target-layers__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layout-target-layers__list li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2f5f8;
  border: 1px solid rgba(1, 19, 43, 0.08);
  font-size: 0.78rem;
}

.layout-pipeline-artifact-card__reference {
  align-self: flex-start;
  max-width: 100%;
  white-space: normal;
  font-size: 0.68rem;
  line-height: 1.25;
  padding: 4px 8px;
  box-sizing: border-box;
}

.layout-pipeline-artifact-card__reference span[aria-hidden="true"] {
  margin-right: 2px;
}

#layoutQualityAssessment,
#layoutCleanFloorplanTarget {
  scroll-margin-top: 18px;
}

@media (max-width: 900px) {
  .layout-clean-floorplan__grid {
    grid-template-columns: 1fr;
  }
}

.layout-pipeline-artifacts {
  margin-top: 8px;
}

.layout-pipeline-artifacts__title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #01132B;
}

.layout-pipeline-artifacts__lead {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--s3-text-soft);
}

.layout-pipeline-artifacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.layout-pipeline-artifact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(254, 193, 13, 0.22);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.08) 0%, rgba(254, 193, 13, 0.02) 100%);
}

.layout-artifact-card--viewable {
  cursor: zoom-in;
}

.layout-artifact-card--viewable:focus-visible {
  outline: 2px solid rgba(0, 122, 171, 0.55);
  outline-offset: 2px;
}

.layout-artifact-card--viewable:hover {
  border-color: rgba(0, 122, 171, 0.35);
  box-shadow: 0 8px 20px rgba(1, 19, 43, 0.08);
}

.layout-pipeline-artifact-card__thumb {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: #f8f9fb;
  aspect-ratio: 4 / 3;
}

.layout-pipeline-artifact-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.layout-pipeline-artifact-card__name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #01132B;
  word-break: break-word;
}

.layout-pipeline-artifact-card__name code {
  font-size: 0.78rem;
}

.layout-pipeline-artifact-card__step {
  margin: 0;
  font-size: 0.76rem;
  color: #007AAB;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.layout-pipeline-artifact-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f2f5f8;
  color: #5e7287;
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-simulation-status--preprocessed,
.layout-simulation-status--denoised,
.layout-simulation-status--shape-filtered,
.layout-simulation-status--structure-refined,
.layout-simulation-status--wall-preserved {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.18) 0%, rgba(254, 193, 13, 0.06) 100%);
  color: #6f5600;
  border-color: rgba(254, 193, 13, 0.28);
}

.layout-cad-workflow {
  margin-top: 0;
  padding: 18px 0 8px;
}

.layout-cad-workflow__header h3 {
  margin: 0 0 8px;
  color: #01132B;
  font-size: 1.05rem;
}

.layout-cad-workflow__lead,
.layout-cad-workflow__job-hint {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--s3-text-soft);
}

.layout-cad-workflow__hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.layout-cad-workflow__hint--success {
  background: rgba(46, 125, 50, 0.1);
  color: #1b5e20;
}

.layout-cad-workflow__hint--error {
  background: rgba(198, 40, 40, 0.1);
  color: #b71c1c;
}

.layout-cad-workflow__hint--info {
  background: rgba(0, 122, 171, 0.08);
  color: #01579b;
}

.layout-cad-workflow__hint--loading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.layout-cad-workflow__hint--loading::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(1, 87, 155, 0.25);
  border-top-color: #01579b;
  border-radius: 50%;
  animation: layout-clean-canvas-spin 0.8s linear infinite;
  flex-shrink: 0;
}

.layout-cad-workflow__checklist {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.layout-cad-workflow__check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: #fafbfd;
  font-size: 0.88rem;
}

.layout-cad-workflow__check--complete {
  border-color: rgba(46, 125, 50, 0.25);
  background: rgba(46, 125, 50, 0.06);
}

.layout-cad-workflow__check-icon {
  width: 1.25rem;
  text-align: center;
  font-weight: 700;
}

.layout-cad-workflow__check-note {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--s3-text-soft);
}

.layout-cad-workflow__profile-card {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 2px solid rgba(1, 19, 43, 0.12);
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.35) 0%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow: 0 2px 10px rgba(1, 19, 43, 0.06);
}

.layout-cad-workflow__profile-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #01132B;
}

.layout-cad-workflow__profile-lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--s3-text-soft);
  line-height: 1.45;
}

.layout-cad-workflow__profile-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 14px;
}

.layout-cad-workflow__profile-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #01132B;
  min-width: 4.5rem;
}

.layout-cad-workflow__profile-select {
  flex: 1 1 280px;
  min-width: min(100%, 320px);
  min-height: 44px;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #01132B;
  border: 2px solid rgba(1, 19, 43, 0.18);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.layout-cad-workflow__profile-select:focus {
  outline: 2px solid rgba(254, 193, 13, 0.65);
  outline-offset: 2px;
  border-color: rgba(254, 193, 13, 0.85);
}

.layout-cad-workflow__profile-active {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1b5e20;
  background: rgba(46, 125, 50, 0.1);
}

.layout-cad-workflow__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.layout-cad-workflow__artifacts {
  margin-top: 8px;
}

.layout-cad-workflow__thumb {
  aspect-ratio: 1 / 1;
}

.layout-cad-workflow__thumb img {
  object-fit: contain;
  background: #fff;
}

.layout-cad-workflow__status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 122, 171, 0.06);
  color: #014d6d;
  font-size: 0.9rem;
}

.layout-cad-workflow__status--ready {
  background: rgba(46, 125, 50, 0.08);
  color: #1b5e20;
}

.layout-cad-workflow--phase-c .layout-cad-workflow__handoff-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.layout-cad-workflow__structure-d9 {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.9);
}

.layout-cad-workflow__structure-status {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #334155;
}

.layout-cad-workflow__structure-preview {
  margin-top: 12px;
}

.layout-cad-workflow__structure-figure {
  margin: 0;
  max-width: 520px;
  cursor: zoom-in;
}

.layout-cad-workflow__structure-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(1, 19, 43, 0.1);
  border-radius: 8px;
  background: #fff;
}

.layout-cad-workflow__structure-figure figcaption {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #64748b;
}

.layout-cad-layer-analysis {
  margin: 16px 0;
}

.layout-cad-layer-analysis__title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #01132B;
}

.layout-cad-quality-summary {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.layout-cad-quality-summary--ready {
  background: rgba(46, 125, 50, 0.08);
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.layout-cad-quality-summary--review {
  background: rgba(198, 40, 40, 0.06);
  color: #8b1c1c;
  border: 1px solid rgba(198, 40, 40, 0.18);
}

.layout-cad-quality-summary__reason {
  margin: 6px 0 0;
  font-size: 0.85rem;
}

.layout-cad-quality-summary__warning {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #7a5a00;
}

.layout-cad-policy {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.layout-cad-policy--keep { background: rgba(30, 90, 200, 0.12); color: #1a4f9c; }
.layout-cad-policy--remove { background: rgba(198, 40, 40, 0.12); color: #9b1c1c; }
.layout-cad-policy--optional { background: rgba(220, 170, 40, 0.15); color: #7a5a00; }
.layout-cad-policy--review { background: rgba(160, 80, 200, 0.12); color: #5e2f78; }
.layout-cad-policy--unknown { background: #eef1f4; color: #5e7287; }

.layout-segmentation-architecture {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.layout-segmentation-architecture__header h4 {
  margin: 0 0 6px;
  color: #01132B;
  font-size: 1.05rem;
}

.layout-segmentation-architecture__subtitle {
  margin: 0 0 14px;
  color: #007AAB;
  font-size: 0.92rem;
  line-height: 1.45;
}

.layout-segmentation-architecture__notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 122, 171, 0.28);
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.10) 0%, rgba(0, 122, 171, 0.03) 100%);
  font-size: 0.88rem;
  color: #01132B;
  line-height: 1.5;
}

.layout-segmentation-block {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(254, 193, 13, 0.18);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.06) 0%, rgba(254, 193, 13, 0.02) 100%);
}

.layout-segmentation-block h5 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #01132B;
}

.layout-segmentation-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.layout-segmentation-block__head h5 {
  margin: 0;
}

.layout-segmentation-block__lead {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--s3-text-soft);
}

.layout-segmentation-status-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #f2f5f8;
  color: #5e7287;
  border: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-object-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.layout-object-class-tile {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: #fff;
}

.layout-object-class-tile h6 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #007AAB;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.layout-object-class-tile ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8rem;
  color: var(--s3-text);
  line-height: 1.4;
}

.layout-arch-layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.layout-arch-layer-card {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: #fffdf8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.layout-arch-layer-card code {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: #01132B;
  font-weight: 700;
}

.layout-arch-layer-card p {
  margin: 0 0 4px;
  color: var(--s3-text);
}

.layout-segmentation-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}

.layout-segmentation-pipeline__step {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(254, 193, 13, 0.28);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.14) 0%, rgba(254, 193, 13, 0.05) 100%);
  font-size: 0.78rem;
  font-weight: 700;
  color: #01132B;
  white-space: nowrap;
}

.layout-segmentation-pipeline__step--target {
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.14) 0%, rgba(0, 122, 171, 0.05) 100%);
  border-color: rgba(0, 122, 171, 0.28);
  color: #005a82;
}

.layout-segmentation-pipeline__arrow {
  color: #007AAB;
  font-weight: 700;
  font-size: 0.9rem;
}

.layout-tech-matrix-table th,
.layout-tech-matrix-table td {
  font-size: 0.84rem;
}

.layout-tech-status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.layout-tech-status--planned {
  background: #f2f5f8;
  color: #5e7287;
  border-color: rgba(1, 19, 43, 0.08);
}

.layout-tech-status--evaluation {
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.18) 0%, rgba(254, 193, 13, 0.06) 100%);
  color: #6f5600;
  border-color: rgba(254, 193, 13, 0.28);
}

.layout-tech-status--target {
  background: linear-gradient(135deg, rgba(0, 122, 171, 0.14) 0%, rgba(0, 122, 171, 0.05) 100%);
  color: #005a82;
  border-color: rgba(0, 122, 171, 0.28);
}

.layout-workspace-entity {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 122, 171, 0.22);
  background: #f8fbfd;
}

.layout-workspace-entity__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.layout-workspace-entity__header code {
  font-size: 0.9rem;
  font-weight: 700;
  color: #01132B;
}

.layout-workspace-entity__type {
  font-size: 0.78rem;
  font-weight: 700;
  color: #007AAB;
}

.layout-workspace-entity__props {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.layout-workspace-entity__props div {
  margin: 0;
}

.layout-workspace-entity__props dt {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s3-text-soft);
}

.layout-workspace-entity__props dd {
  margin: 0;
  font-size: 0.82rem;
  color: #01132B;
}

.layout-workspace-entity__props dd code {
  font-size: 0.78rem;
  word-break: break-all;
}

#layoutSegmentationArchitecture {
  scroll-margin-top: 18px;
}

@media (max-width: 900px) {
  .layout-segmentation-pipeline__step {
    white-space: normal;
  }

  .layout-object-class-grid,
  .layout-arch-layer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .layout-artifact-preview__grid {
    grid-template-columns: 1fr;
  }
}

.layout-artifact-viewer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.layout-artifact-viewer[hidden] {
  display: none !important;
}

.layout-artifact-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 19, 43, 0.52);
  backdrop-filter: blur(3px);
}

.layout-artifact-viewer__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(92vw, 1480px);
  height: min(92vh, 940px);
  max-height: min(92vh, 940px);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(1, 19, 43, 0.24);
  overflow: hidden;
}

.layout-artifact-viewer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(1, 19, 43, 0.08);
  background: linear-gradient(135deg, rgba(254, 193, 13, 0.10) 0%, rgba(254, 193, 13, 0.03) 100%);
}

.layout-artifact-viewer__header-text strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  color: #01132B;
  word-break: break-word;
}

.layout-artifact-viewer__header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.layout-artifact-viewer__compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #01132B;
  white-space: nowrap;
}

.layout-artifact-viewer__close {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #5a6b7d;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.layout-artifact-viewer__close:hover,
.layout-artifact-viewer__close:focus {
  background: rgba(1, 19, 43, 0.06);
  color: #01132B;
}

.layout-artifact-viewer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(1, 19, 43, 0.06);
  background: #fafcfd;
}

.layout-artifact-viewer__position {
  font-size: 0.84rem;
  font-weight: 700;
  color: #007AAB;
  min-width: 4.5rem;
  text-align: center;
}

.layout-artifact-viewer__body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.layout-artifact-viewer__stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(1, 19, 43, 0.08);
  background: #f4f7fa;
}

.layout-artifact-viewer__zoom-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(1, 19, 43, 0.06);
  background: #ffffff;
}

.layout-artifact-viewer__zoom-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a6b7d;
  margin-left: 4px;
}

.layout-artifact-viewer__canvas-wrap {
  flex: 1 1 auto;
  min-height: 280px;
  overflow: auto;
  padding: 14px;
}

.layout-artifact-viewer__single {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
}

.layout-artifact-viewer__image {
  display: block;
  max-width: none;
  transform-origin: top center;
  box-shadow: 0 8px 24px rgba(1, 19, 43, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.layout-artifact-viewer__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 100%;
}

.layout-artifact-viewer__pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.layout-artifact-viewer__pane-label,
.layout-artifact-viewer__compare-select-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-artifact-viewer__compare-select-label {
  margin-top: 4px;
}

.layout-artifact-viewer__pane-frame {
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 220px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(1, 19, 43, 0.08);
  background: #ffffff;
}

.layout-artifact-viewer__pane-frame img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.layout-artifact-viewer__meta {
  overflow: auto;
  padding: 16px 18px;
  background: #ffffff;
}

.layout-artifact-viewer__meta dl {
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.layout-artifact-viewer__meta-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px;
  align-items: start;
}

.layout-artifact-viewer__meta-row dt {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5a6b7d;
}

.layout-artifact-viewer__meta-row dd {
  margin: 0;
  font-size: 0.9rem;
  color: #01132B;
  word-break: break-word;
}

.layout-artifact-viewer__review {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(1, 19, 43, 0.08);
}

.layout-artifact-viewer__review h6 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #007AAB;
}

.layout-artifact-viewer__feedback {
  margin: 10px 0 0;
  font-size: 0.84rem;
}

body.has-layout-artifact-viewer {
  overflow: hidden;
}

@media (max-width: 900px) {
  .layout-artifact-viewer {
    padding: 0;
  }

  .layout-artifact-viewer__dialog {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .layout-artifact-viewer__body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .layout-artifact-viewer__stage {
    border-right: 0;
    border-bottom: 1px solid rgba(1, 19, 43, 0.08);
    min-height: 42vh;
  }

  .layout-artifact-viewer__compare {
    grid-template-columns: 1fr;
  }

  .layout-artifact-viewer__header {
    flex-wrap: wrap;
  }

  .layout-artifact-viewer__header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.84rem;
}

@media (max-width: 1200px) {
  .layout-simulation-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .layout-simulation-areas {
    grid-template-columns: 1fr;
  }

  .layout-simulation-panel {
    padding: 18px 16px;
  }

  .layout-simulation-jobs thead {
    display: none;
  }

  .layout-simulation-jobs tr {
    display: block;
    margin-bottom: 14px;
    border: 1px solid rgba(1, 19, 43, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
  }

  .layout-simulation-jobs td {
    display: grid;
    grid-template-columns: minmax(88px, 34%) 1fr;
    gap: 8px;
    border: 0;
    padding: 6px 0;
  }

  .layout-simulation-jobs td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--s3-text-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .layout-simulation-actions {
    grid-column: 1 / -1;
  }

  .layout-simulation-review-meta {
    grid-template-columns: 1fr;
  }
}

/* F5.21 – Clean Plan Canvas Editor */
.layout-clean-canvas-editor {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.layout-clean-canvas-editor[hidden] {
  display: none !important;
}

.layout-clean-canvas-editor__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 22, 0.62);
}

.layout-clean-canvas-editor__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(96vw, 1400px);
  height: min(94vh, 960px);
  min-width: 720px;
  min-height: 520px;
  max-width: 98vw;
  max-height: 98vh;
  margin: auto;
  resize: both;
  background: var(--s3-surface, #fff);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.layout-clean-canvas-editor__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.6rem;
  border-bottom: 1px solid var(--s3-border, #e4e8ee);
}

.layout-clean-canvas-editor__kicker {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--s3-text-soft, #6b7280);
}

.layout-clean-canvas-editor__title {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
}

.layout-clean-canvas-editor__lead {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--s3-text-soft, #6b7280);
}

.layout-clean-canvas-editor__close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--s3-text-soft, #6b7280);
  padding: 0.2rem 0.45rem;
}

.layout-clean-canvas-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--s3-border, #e4e8ee);
  background: var(--s3-surface-muted, #f7f9fc);
}

.layout-clean-canvas-editor__tool.is-active {
  background: var(--s3-primary, #1f4fd6);
  color: #fff;
  border-color: transparent;
}

.layout-clean-canvas-editor__toggle[aria-pressed="true"] {
  background: #fef3c7;
  border-color: #f59e0b;
}

.layout-clean-canvas-editor__spacer {
  flex: 1 1 auto;
}

.layout-clean-canvas-editor__toolbar #layoutCleanCanvasGridAssistApply:not(:disabled) {
  border-color: #c2410c;
  color: #9a3412;
}

.layout-clean-canvas-editor__stage--dark .layout-clean-canvas-editor__toolbar #layoutCleanCanvasGridAssistApply:not(:disabled) {
  border-color: #fb923c;
  color: #fdba74;
}

.layout-clean-canvas-editor__stage {
  flex: 1 1 auto;
  min-height: 0;
  background: #fafafa;
  touch-action: none;
  overflow: hidden;
  position: relative;
}

.layout-clean-canvas-editor__stage--dark {
  background: #0f1116;
}

.layout-clean-canvas-editor__stage--dark .layout-clean-canvas-editor__loading {
  background: rgba(15, 17, 22, 0.92);
  color: #d1d5db;
}

.layout-clean-canvas-editor__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(250, 250, 250, 0.92);
  font-size: 0.95rem;
  color: var(--s3-text-soft, #6b7280);
}

.layout-clean-canvas-editor__loading[hidden] {
  display: none !important;
}

.layout-clean-canvas-editor__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #d1d5db;
  border-top-color: var(--s3-primary, #1f4fd6);
  border-radius: 50%;
  animation: layout-clean-canvas-spin 0.8s linear infinite;
}

@keyframes layout-clean-canvas-spin {
  to { transform: rotate(360deg); }
}

.layout-clean-canvas-editor__overlay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--s3-border, #e4e8ee);
}

/* P01-POLISH.4: Technische Hilfen nur bei Bedarf hervorheben */
.layout-clean-canvas-editor__overlay-toggle:has(#layoutCleanCanvasTechnicalHelpers:checked) {
  background: #fff7ed;
  border-color: #fdba74;
}

.layout-clean-canvas-editor__opacity {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--s3-text-soft, #6b7280);
}

.layout-clean-canvas-editor__opacity input[type="range"] {
  width: 88px;
}

.layout-clean-canvas-editor__eraser-size[hidden],
.layout-clean-canvas-editor__line-width[hidden],
.layout-clean-canvas-editor__freehand[hidden] {
  display: none;
}

.layout-clean-canvas-editor__snap select {
  font-size: 0.82rem;
  padding: 0.15rem 0.35rem;
  max-width: 6.5rem;
}

.layout-clean-canvas-editor__svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.layout-clean-canvas-editor__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--s3-border, #e4e8ee);
  font-size: 0.85rem;
}

.layout-clean-canvas-editor__status {
  margin: 0;
}

.layout-clean-canvas-editor__meta {
  margin: 0;
  color: var(--s3-text-soft, #6b7280);
}

@media (max-width: 720px) {
  .layout-clean-canvas-editor__dialog {
    width: 100vw;
    height: 100vh;
    min-width: 0;
    min-height: 0;
    resize: none;
    border-radius: 0;
  }

  .layout-clean-canvas-editor__toolbar .btn {
    min-height: 40px;
    min-width: 44px;
  }
}

/* =========================================
   WoSI – Dashboard Kosmetik
   Hauptkarten + Modulfarben Demo
   ========================================= */

.page-dashboard .dashboard-section-demo,
.page-dashboard .dashboard-section-project {
  padding: 28px 28px 30px;
  border-radius: 26px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(1, 19, 43, 0.07);
  box-shadow: 0 12px 30px rgba(1, 19, 43, 0.05);
}

.page-dashboard .dashboard-section-demo {
  margin-top: 26px;
}

.page-dashboard .dashboard-section-project {
  margin-top: 34px;
}

.page-dashboard .dashboard-section-demo .section-intro,
.page-dashboard .dashboard-section-project .section-intro {
  margin-bottom: 22px;
}

/* Demo-Karten etwas hochwertiger */
.page-dashboard .dashboard-card-demo {
  border-radius: 20px;
  min-height: 205px;
}

/* Workspace Journey bleibt türkis */
.page-dashboard .dashboard-card-demo:nth-child(1) {
  background: linear-gradient(180deg, rgba(235,250,251,0.98) 0%, rgba(255,255,255,0.96) 100%);
  border-color: rgba(35,162,170,0.24);
}

/* Kosten-/Nutzen-Simulation: S3 Türkis */
.page-dashboard .dashboard-card-demo:nth-child(2) {
  background: linear-gradient(180deg, rgba(35,162,170,0.18) 0%, rgba(255,255,255,0.96) 100%);
  border-color: rgba(35,162,170,0.30);
}

/* People & Work Analytics: S3 Orange */
.page-dashboard .dashboard-card-demo:nth-child(3) {
  background: linear-gradient(180deg, rgba(255,142,91,0.22) 0%, rgba(255,255,255,0.96) 100%);
  border-color: rgba(255,142,91,0.32);
}

/* Layout-Simulation: S3 Gelb */
.page-dashboard .dashboard-card-demo:nth-child(4) {
  background: linear-gradient(180deg, rgba(254,193,13,0.24) 0%, rgba(255,255,255,0.96) 100%);
  border-color: rgba(254,193,13,0.36);
}

/* Modulfarbige Lichtpunkte oben rechts */
.page-dashboard .dashboard-card-demo:nth-child(2)::before {
  background: radial-gradient(circle at top right, rgba(35,162,170,0.22), transparent 44%);
}

.page-dashboard .dashboard-card-demo:nth-child(3)::before {
  background: radial-gradient(circle at top right, rgba(255,142,91,0.24), transparent 44%);
}

.page-dashboard .dashboard-card-demo:nth-child(4)::before {
  background: radial-gradient(circle at top right, rgba(254,193,13,0.26), transparent 44%);
}

/* Hover passend zur neuen Kartenlogik */
.page-dashboard .dashboard-card-demo:hover,
.page-dashboard .dashboard-card-project:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(1, 19, 43, 0.09);
}

/* Projektarbeit bleibt ruhiger */
.page-dashboard .dashboard-card-project {
  background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
}

/* Responsive */
@media (max-width: 820px) {
  .page-dashboard .dashboard-section-demo,
  .page-dashboard .dashboard-section-project {
    padding: 22px 18px 24px;
    border-radius: 22px;
  }

  .page-dashboard .dashboard-section-project {
    margin-top: 26px;
  }
}

@media (max-width: 520px) {
  .page-dashboard .dashboard-section-demo,
  .page-dashboard .dashboard-section-project {
    padding: 18px 14px 20px;
    border-radius: 18px;
  }
}

/* =========================================
   WoSI – Dashboard Farbfeinschliff
   Demo-Nuancen + Projektkarten zurück Hellblau
   ========================================= */

/* Workspace Journey: etwas heller/leichter */
.page-dashboard .dashboard-card-demo:nth-child(1) {
  background: linear-gradient(180deg, rgba(235,250,251,0.92) 0%, rgba(255,255,255,0.98) 100%);
  border-color: rgba(35,162,170,0.18);
}

.page-dashboard .dashboard-card-demo:nth-child(1)::before {
  background: radial-gradient(circle at top right, rgba(35,162,170,0.11), transparent 44%);
}

/* Kosten-/Nutzen-Simulation: etwas stärker/satter */
.page-dashboard .dashboard-card-demo:nth-child(2) {
  background: linear-gradient(180deg, rgba(35,162,170,0.24) 0%, rgba(255,255,255,0.96) 100%);
  border-color: rgba(35,162,170,0.36);
}

.page-dashboard .dashboard-card-demo:nth-child(2)::before {
  background: radial-gradient(circle at top right, rgba(35,162,170,0.28), transparent 44%);
}

/* Projektarbeit: klassische ruhige S3-Hellblau-Karten */
.page-dashboard .dashboard-card-project {
  background: linear-gradient(180deg, #eef6fb 0%, #ffffff 100%);
  border-color: #d7e4ec;
  box-shadow: 0 8px 22px rgba(1, 19, 43, 0.045);
}

.page-dashboard .dashboard-card-project:hover {
  background: linear-gradient(180deg, #e6f2f8 0%, #ffffff 100%);
  border-color: #c9dce7;
  box-shadow: 0 14px 30px rgba(1, 19, 43, 0.075);
}

/* =========================================
   WoSI – Dashboard ohne Subnav/Produktstatus
   nur Dashboard-Seite
   ========================================= */

.page-dashboard .subnav-wrap {
  display: none;
}

.page-dashboard .container {
  padding-top: 42px;
}
/* =========================================
   WoSI – Projekt-Hauptseite kompakter Projektkopf
   Sprint: kosmetische Verdichtung Aktives Projekt + Modulstatus
   Nur gezielte Ergänzungen; bestehende Responsive-Architektur bleibt.
   ========================================= */

.project-detail-section .project-detail-top-row {
  grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
  gap: 22px;
  margin-top: 16px;
  margin-bottom: 14px;
  align-items: stretch;
}

.project-detail-section .project-detail-card--main.project-detail-card--header {
  padding: 18px 20px 16px;
  min-height: 0;
}

.project-detail-summary {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.project-detail-summary__intro {
  min-width: 0;
  max-width: 780px;
}

.project-detail-section .project-detail-card--main .project-detail-title {
  margin: 4px 0 8px;
  line-height: 1.2;
}

.project-detail-section .project-detail-card--main .project-detail-description {
  margin-bottom: 0;
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.project-detail-summary__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  min-width: 0;
}

.project-detail-summary__column {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}

.project-detail-summary__column .project-meta-item {
  gap: 1px;
  min-width: 0;
}

.project-detail-summary__column .project-meta-label {
  font-size: 0.78rem;
  line-height: 1.2;
}

.project-detail-summary__column .project-meta-value {
  font-size: 0.92rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Modulstatus – flacher, gleiche natürliche Höhe wie linke Karte */
.project-detail-section .project-module-status-card {
  gap: 10px;
  padding: 16px 16px 14px;
  min-height: 0;
  height: auto;
  align-content: start;
}

.project-detail-section .project-module-status-card__title {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.2;
}

.project-detail-section .project-module-status-card__item {
  gap: 5px;
  padding-bottom: 8px;
}

.project-detail-section .project-module-status-card__item:not(:last-of-type) {
  border-bottom: 1px solid rgba(1, 19, 43, 0.035);
  margin-bottom: 2px;
}

.project-detail-section .project-module-status-card__line {
  gap: 10px;
  margin-bottom: 0;
}

.project-detail-section .project-module-status-card__label {
  font-size: 0.9rem;
  line-height: 1.15;
}

.project-detail-section .project-module-status-card__control {
  padding-left: 22px;
}

.project-detail-section .project-module-status-select {
  min-height: 30px;
  height: 30px;
  font-size: 0.84rem;
  padding: 2px 8px;
}

.project-detail-section .project-module-status-save {
  margin-top: 4px;
  min-height: 34px;
  padding: 0 14px;
  justify-self: end;
}

/* Modulzugänge etwas näher an den Kopf heranziehen */
.project-detail-section .project-entry-focus-grid {
  margin-top: 14px;
}

/* Tablet: Karten untereinander, Metadaten zweispaltig */
@media (max-width: 1180px) {
  .project-detail-section .project-detail-top-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 12px;
  }

  .project-detail-summary__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
  }
}

/* Mobile: einspaltige Meta, volle Breite Modulstatus-Controls */
@media (max-width: 760px) {
  .project-detail-section .project-detail-card--main.project-detail-card--header {
    padding: 16px 14px 14px;
  }

  .project-detail-summary {
    gap: 12px;
  }

  .project-detail-summary__meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-detail-section .project-module-status-card {
    padding: 14px 14px 12px;
    width: 100%;
  }

  .project-detail-section .project-module-status-card__control {
    padding-left: 0;
  }

  .project-detail-section .project-module-status-select {
    width: 100%;
  }

  .project-detail-section .project-module-status-save {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .project-detail-summary__column .project-meta-label {
    font-size: 0.8rem;
  }

  .project-detail-section .project-entry-focus-grid {
    margin-top: 12px;
  }
}

/* P11 dramaturgy: quieter heatmaps, continuous collab matrix, wrapping */
.lightscan-heatmap--places .lightscan-heatmap-cell:not(.lightscan-heatmap-cell--empty) {
  background: rgba(0, 122, 171, calc(0.05 + var(--heat, 0) * 0.42));
  box-shadow: inset 0 0 0 1px rgba(0, 122, 171, calc(0.06 + var(--heat, 0) * 0.16));
}
.lightscan-heatmap--modes .lightscan-heatmap-cell:not(.lightscan-heatmap-cell--empty) {
  background: rgba(1, 19, 43, calc(0.03 + var(--heat, 0) * 0.28));
  box-shadow: inset 0 0 0 1px rgba(1, 19, 43, calc(0.05 + var(--heat, 0) * 0.12));
}

.collab-matrix-cell--heat {
  background: rgba(0, 122, 171, calc(0.06 + var(--heat, 0) * 0.52));
  color: #01132B;
  padding: 12px 14px;
}
.collab-matrix-cell--heat-strong {
  color: #01132B;
  font-weight: 800;
}
.collab-matrix-cell--zero {
  background: #f6f8fa;
  color: #8a9aab;
  font-weight: 600;
}
.collab-matrix-cell--self {
  background: repeating-linear-gradient(
    135deg,
    #e8eef2 0 6px,
    #f4f7f9 6px 12px
  );
  color: #90a0ad;
}

.collab-matrix-dept,
.collab-matrix-table thead th,
.collab-matrix-table tbody th,
.collab-adjacency-card--matrix .collab-adjacency-card__title,
.collab-adjacency-map__team-card strong {
  overflow-wrap: break-word;
  word-break: keep-all;
  hyphens: manual;
  white-space: normal;
}

.collab-matrix-layout--full .collab-matrix-wrap,
.collab-matrix-layout--scroll .collab-matrix-wrap {
  overflow-x: auto;
}

@media (max-width: 1100px) {
  .collab-network-panel--matrix {
    display: flex;
    flex-direction: column;
  }
  .collab-matrix-layout--full .collab-matrix-cards,
  .collab-matrix-layout--scroll .collab-matrix-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .collab-matrix-layout--full .collab-matrix-cards,
  .collab-matrix-layout--scroll .collab-matrix-cards {
    grid-template-columns: 1fr;
  }
  .collab-matrix-table {
    font-size: clamp(0.68rem, 1.8vw, 0.84rem);
    min-width: 36rem;
  }
}

.collab-adjacency-map__cluster--primary {
  background: rgba(0, 122, 171, 0.05);
}
.collab-adjacency-map__cluster--annex {
  background: rgba(1, 19, 43, 0.03);
}
.collab-adjacency-map__bridge--low,
.collab-adjacency-map__crosslink--low {
  opacity: 0.42;
}
.collab-adjacency-map__bridge--high .collab-adjacency-map__bridge-segment {
  background: #007aab;
}

.readiness-driver-card--negative .readiness-driver-item__head strong,
.lightscan-results-delta.is-negative,
.lightscan-results-delta--negative {
  color: #c45c26;
}

.pwa-source-banner {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 122, 171, 0.08);
  border: 1px solid rgba(0, 122, 171, 0.16);
}
.pwa-source-banner strong {
  color: #01132b;
  font-size: 0.92rem;
}
.pwa-source-banner span {
  color: #3d5163;
  font-size: 0.88rem;
  line-height: 1.45;
}
.pwa-method-details {
  margin-top: 12px;
  color: #3d5163;
  font-size: 0.88rem;
  line-height: 1.5;
}
.pwa-method-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #01132b;
}
.insights-kpi-card__note {
  display: block;
  margin-top: 6px;
  color: #5e7287;
  font-size: 0.78rem;
  line-height: 1.4;
}
.journey-metric-label small {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  color: #5e7287;
}

.collab-matrix-layout--full .collab-matrix-wrap,
.collab-matrix-layout--scroll .collab-matrix-wrap,
.collab-matrix-layout--heatmap .collab-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.collab-matrix-dept,
.collab-matrix-table thead th,
.collab-matrix-table tbody th {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

@media (max-width: 720px) {
  .activity-journey-card,
  .activity-journey-card__head,
  .activity-journey-card__modules {
    min-height: 0;
  }
  .activity-journey-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .journey-image-placeholder--hero,
  .journey-image-placeholder--big,
  .journey-image-placeholder--layout {
    min-height: 140px;
  }
  .collab-matrix-table {
    table-layout: auto !important;
    width: max-content !important;
    min-width: 40rem;
  }
}

/* Collaboration matrix, Top-3 cards, Adjacency Map — local layout only */
.collab-network-panel--matrix .collab-matrix-layout--readable,
.collab-network-panel--matrix .collab-matrix-main,
.collab-workplace-widget .collab-adjacency-map,
.collab-workplace-widget .collab-adjacency-ranking {
  min-width: 0;
  max-width: 100%;
}

.collab-network-panel--matrix,
.collab-network-panel--matrix .collab-matrix-layout--readable {
  overflow-x: hidden;
}

.collab-network-panel--matrix .collab-network-graph--management {
  overflow: hidden;
  max-width: 100%;
}

.collab-network-panel--matrix .collab-matrix-layout--full .collab-matrix-wrap,
.collab-network-panel--matrix .collab-matrix-layout--scroll .collab-matrix-wrap,
.collab-network-panel--matrix .collab-matrix-layout--heatmap .collab-matrix-wrap,
.collab-network-panel--matrix .collab-matrix-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
}

.collab-network-panel--matrix .collab-matrix-layout--full .collab-matrix-table,
.collab-network-panel--matrix .collab-matrix-layout--readable .collab-matrix-table {
  table-layout: auto;
  width: max-content;
  min-width: calc(12.75rem + (var(--collab-matrix-cols, 6) * 7.25rem));
  border-collapse: separate;
  border-spacing: 0;
}

.collab-network-panel--matrix .collab-matrix-table thead th,
.collab-network-panel--matrix .collab-matrix-table tbody th,
.collab-network-panel--matrix .collab-matrix-table td {
  position: static;
  box-sizing: border-box;
  vertical-align: middle;
}

.collab-network-panel--matrix .collab-matrix-table thead th {
  height: 4.5rem;
  min-height: 4.5rem;
  padding: 10px 8px;
  vertical-align: bottom;
  line-height: 1.25;
  font-size: 0.78rem;
  white-space: normal;
}

.collab-network-panel--matrix .collab-matrix-table thead th.collab-matrix-dept--col {
  min-width: 7.25rem;
  width: auto;
  max-width: none;
}

.collab-network-panel--matrix .collab-matrix-table td.collab-matrix-cell {
  min-width: 7.25rem;
  width: auto;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.collab-network-panel--matrix .collab-matrix-table thead th.collab-matrix-corner,
.collab-network-panel--matrix .collab-matrix-table tbody th.collab-matrix-dept--row {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 12.75rem;
  width: 12.75rem;
  max-width: 14.5rem;
  text-align: left;
  white-space: normal;
  background: #f4f8fa;
  box-shadow: 1px 0 0 #e7eef2;
}

.collab-network-panel--matrix .collab-matrix-table thead th.collab-matrix-corner {
  z-index: 4;
  vertical-align: bottom;
}

.collab-network-panel--matrix .collab-matrix-table tbody th.collab-matrix-dept--row {
  background: #fafcfd;
}

.collab-network-panel--matrix .collab-matrix-dept,
.collab-network-panel--matrix .collab-safe-name,
.collab-workplace-widget .collab-safe-name,
.collab-adjacency-card__name,
.collab-adjacency-map__team-name,
.collab-ideal-card__name,
.collab-adjacency-map__crosslink-name {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  white-space: normal;
}

.collab-network-panel--matrix .collab-matrix-heatmap-legend {
  margin-top: 12px;
}

.collab-network-panel--matrix .collab-matrix-cards,
.collab-workplace-widget .collab-adjacency-ranking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.collab-adjacency-card--ranked,
.collab-workplace-widget .collab-adjacency-card,
.collab-network-panel--matrix .collab-adjacency-card--matrix {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px 14px;
  height: auto;
  min-height: 0;
  min-width: 0;
  overflow: visible;
  align-content: start;
}

.collab-adjacency-card--ranked .collab-adjacency-card__rank,
.collab-workplace-widget .collab-adjacency-card__rank {
  grid-column: 1;
  grid-row: 1;
}

.collab-adjacency-card--ranked .collab-adjacency-card__body,
.collab-network-panel--matrix .collab-adjacency-card--matrix .collab-adjacency-card__body {
  grid-column: 2;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.collab-adjacency-card__pair {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.collab-adjacency-card__name,
.collab-adjacency-card__name .collab-safe-name {
  display: block;
  min-width: 0;
  font-size: clamp(0.82rem, 1.35vw, 0.95rem);
  font-weight: 800;
  line-height: 1.3;
  color: #01132b;
}

.collab-adjacency-card__swap {
  display: block;
  width: fit-content;
  color: #5e7287;
  font-weight: 700;
  line-height: 1;
}

.collab-adjacency-card__summary,
.collab-adjacency-card__detail,
.collab-adjacency-card__meta {
  min-width: 0;
}

.collab-adjacency-card__summary {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #e7eef2;
  font-weight: 700;
  color: #01132b;
}

.collab-adjacency-card__detail {
  margin: 0;
  color: #5e7287;
}

.collab-adjacency-card__meta {
  display: block;
  padding-top: 8px;
  border-top: 1px solid #e7eef2;
}

.collab-workplace-widget .collab-adjacency-map,
.collab-workplace-widget .collab-adjacency-map--compact {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  padding: 1.5rem 1.25rem;
}

.collab-workplace-widget .collab-adjacency-map__canvas {
  min-width: 54rem;
  width: max-content;
  max-width: none;
}

.collab-workplace-widget .collab-adjacency-map__layout {
  gap: 1.5rem;
}

.collab-workplace-widget .collab-adjacency-map__team-card {
  flex: 0 0 14.5rem;
  min-width: 14.5rem;
  max-width: 16.5rem;
  height: auto;
}

.collab-workplace-widget .collab-adjacency-map__team-card strong,
.collab-workplace-widget .collab-adjacency-map__team-name,
.collab-workplace-widget .collab-adjacency-map__team-name .collab-safe-name,
.activity-collaboration-page .collab-adjacency-map__team-card strong {
  display: block;
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.3;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.activity-collaboration-page .collab-safe-name,
.activity-collaboration-page .collab-matrix-dept,
.activity-collaboration-page .collab-adjacency-card__name,
.activity-collaboration-page .collab-adjacency-map__team-name,
.activity-collaboration-page .collab-ideal-card__name,
.activity-collaboration-page .collab-adjacency-map__crosslink-name {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.collab-workplace-widget .collab-adjacency-map__team-meta {
  word-break: normal;
  overflow-wrap: normal;
}

.collab-workplace-widget .collab-adjacency-map__bridge {
  flex: 0 0 8.5rem;
  min-width: 8.5rem;
  max-width: 11rem;
  gap: 10px;
}

.collab-workplace-widget .collab-adjacency-map__bridge-label,
.collab-workplace-widget .collab-adjacency-map__row-bridge-label {
  position: static;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.collab-workplace-widget .collab-adjacency-map__crosslink {
  flex-wrap: wrap;
  max-width: 100%;
}

.collab-workplace-widget .collab-adjacency-map__crosslink-name {
  display: inline-block;
  max-width: 12rem;
  word-break: normal;
  overflow-wrap: normal;
}

@media (max-width: 1100px) {
  .collab-network-panel--matrix .collab-matrix-cards,
  .collab-workplace-widget .collab-adjacency-ranking {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .collab-workplace-widget .collab-adjacency-map,
  .collab-workplace-widget .collab-adjacency-map--compact,
  .activity-collaboration-page .collab-adjacency-map,
  .activity-collaboration-page .collab-adjacency-map--compact,
  .activity-collaboration-page [data-collab-adjacency-map] {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .collab-workplace-widget .collab-adjacency-map__canvas,
  .activity-collaboration-page .collab-adjacency-map__canvas {
    min-width: 54rem;
    width: max-content;
    max-width: none;
  }

  .activity-collaboration-page .collab-adjacency-map__cluster,
  .activity-collaboration-page .collab-adjacency-map__row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .activity-collaboration-page .collab-adjacency-map__team-card {
    width: auto;
    min-width: 14.5rem;
    max-width: 16.5rem;
    flex: 0 0 14.5rem;
  }

  .activity-collaboration-page .collab-adjacency-map__bridge {
    width: auto;
    min-width: 8.5rem;
    max-width: 11rem;
    flex: 0 0 8.5rem;
    flex-direction: column;
  }

  .activity-collaboration-page .collab-adjacency-map__bridge::before {
    content: none;
  }
}

@media (max-width: 720px) {
  .collab-network-panel--matrix .collab-matrix-cards,
  .collab-workplace-widget .collab-adjacency-ranking {
    grid-template-columns: minmax(0, 1fr);
  }

  .collab-network-panel--matrix .collab-matrix-table thead th.collab-matrix-corner,
  .collab-network-panel--matrix .collab-matrix-table tbody th.collab-matrix-dept--row {
    min-width: 11.5rem;
    width: 11.5rem;
  }
}

@media (max-width: 640px) {
  .activity-collaboration-page .collab-matrix-dept,
  .activity-collaboration-page .collab-safe-name,
  .activity-collaboration-page .collab-adjacency-card__name,
  .activity-collaboration-page .collab-adjacency-map__team-name,
  .activity-collaboration-page .collab-ideal-card__name,
  .activity-collaboration-page .collab-adjacency-map__crosslink-name,
  .activity-collaboration-page h3.collab-network-panel__title {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .activity-collaboration-page .collab-adjacency-map,
  .activity-collaboration-page .collab-adjacency-map--compact,
  .activity-collaboration-page [data-collab-adjacency-map] {
    overflow-x: hidden;
    padding: 12px 8px;
  }

  .activity-collaboration-page .collab-adjacency-map__canvas {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .activity-collaboration-page .collab-adjacency-map__layout,
  .activity-collaboration-page .collab-adjacency-map__cluster,
  .activity-collaboration-page .collab-adjacency-map__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .activity-collaboration-page .collab-adjacency-map__team-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }

  .activity-collaboration-page .collab-adjacency-map__bridge,
  .activity-collaboration-page .collab-adjacency-map__row-bridge {
    min-width: 0;
    max-width: 16rem;
    flex: 0 0 auto;
    margin: 0 auto;
  }

  .activity-collaboration-page .collab-adjacency-map__bridge::before {
    content: "↓";
  }
}

