:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #536273;
  --soft: #eef4f6;
  --line: #d7e1e7;
  --panel: #ffffff;
  --brand: #123b5d;
  --brand-2: #0b6b78;
  --teal: #0a8d8f;
  --green: #20785a;
  --amber: #b66a00;
  --red: #b3261e;
  --violet: #5754a3;
  --steel: #6b7a89;
  --shadow: 0 18px 50px rgba(17, 32, 51, 0.12);
  --focus: #f6b640;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f7fafb;
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  border: 0;
}

select {
  min-width: 0;
  text-overflow: ellipsis;
}

p,
small,
strong,
span,
label,
button {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
li,
code,
.status-chip,
.mini-status,
.btn {
  overflow-wrap: anywhere;
}

td,
th {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  vertical-align: top;
}

td *,
th *,
.panel-head *,
.section-title *,
.nav button span,
.sidebar-card *,
.data-sheet *,
.mini-list * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#app,
.panel,
.card,
.module-panel,
.module-panel-body,
.content,
.main-area,
.modal,
.section-title,
.table-wrap,
.dense-table,
.data-sheet,
.mini-list,
.plan-card,
.route-proposal,
.process-card,
.workflow-step-card {
  min-width: 0;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  background: #0c2032;
}

.login-visual {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 26, 41, 0.86), rgba(9, 26, 41, 0.32)),
    url("claims-operations-hero.png") center / cover no-repeat;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(0deg, rgba(9, 26, 41, 0.9), rgba(9, 26, 41, 0));
}

.login-copy {
  position: relative;
  z-index: 1;
  max-width: min(720px, 94vw);
  color: #fff;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.brand-name {
  font-weight: 850;
  letter-spacing: 0.06em;
}

.brand-sub {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.login-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 5.1rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.login-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.login-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 32px;
  background: #f8fbfc;
}

.login-card {
  width: min(100%, 520px);
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.login-card h2,
.section-title h2,
.modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.2;
}

.muted,
.helper {
  color: var(--muted);
}

.helper {
  margin: 7px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.helper-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 4px 0 0;
  min-height: 28px;
}

.helper-tooltip.full {
  grid-column: 1 / -1;
}

.info-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #c9d6de;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-2);
  box-shadow: 0 1px 2px rgba(15, 39, 61, 0.08);
  cursor: help;
}

.info-button:hover,
.info-button:focus-visible {
  border-color: var(--brand-2);
  background: #eef7f8;
  outline: 3px solid rgba(0, 124, 132, 0.18);
  outline-offset: 2px;
}

.managed-video-provider-panel {
  min-width: 0;
}

.managed-video-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-block: 12px;
}

.managed-video-status-grid > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line, #d8e1e8);
  border-radius: 6px;
  background: var(--surface-soft, #f7fafb);
}

.managed-video-status-grid span,
.managed-video-status-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.managed-video-status-grid span {
  color: var(--muted, #526574);
  font-size: .82rem;
}

.managed-video-provider-form {
  padding-top: 12px;
  border-top: 1px solid var(--line, #d8e1e8);
}

@media (max-width: 680px) {
  .managed-video-status-grid {
    grid-template-columns: 1fr;
  }
}

.managed-video-stage {
  position: relative;
  min-height: min(76dvh, 760px);
  height: min(76dvh, 760px);
  overflow: hidden;
  background: #071d2b;
  isolation: isolate;
}

.managed-video-remote,
.managed-video-local {
  position: absolute;
  min-width: 0;
  overflow: hidden;
}

.managed-video-remote {
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: stretch;
}

.managed-video-remote video,
.managed-video-local video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #071d2b;
}

.managed-video-local {
  z-index: 4;
  right: 16px;
  bottom: 96px;
  width: clamp(120px, 20vw, 240px);
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 8px;
  background: #0c283b;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
}

.managed-video-stage .video-call-placeholder {
  z-index: 2;
  pointer-events: none;
}

.managed-video-stage:has(.managed-video-remote video) .video-call-placeholder {
  display: none;
}

@media (max-width: 680px) {
  .managed-video-stage {
    width: 100%;
    min-height: calc(100svh - 116px);
    height: calc(100dvh - 116px);
  }

  .managed-video-local {
    right: 10px;
    bottom: 86px;
    width: min(34vw, 150px);
  }
}

.helper-tooltip-text {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 80;
  width: min(360px, calc(100vw - 40px));
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid #c9d6de;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(15, 39, 61, 0.16);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translateY(-3px);
  visibility: hidden;
  pointer-events: none;
}

.helper-tooltip:hover .helper-tooltip-text,
.helper-tooltip:focus-within .helper-tooltip-text {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.compact {
  gap: 10px;
}

.panel[style*="margin-top"],
.split[style*="margin-top"],
.grid[style*="margin-top"],
.table-wrap[style*="margin-top"],
.empty[style*="margin-top"] {
  margin-top: 10px !important;
}

.panel > h3:first-child,
.card > h3:first-child,
.workflow > header:first-child {
  margin-top: 0;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #2c3b4a;
  font-size: 0.84rem;
  font-weight: 760;
}

.field input,
.field select,
.field textarea {
  min-width: 0;
  min-height: 42px;
  width: 100%;
  max-width: 100%;
  border: 1px solid #c9d6de;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
}

.field input[type="date"],
.field input[type="time"] {
  min-width: 0;
  inline-size: 100%;
  min-block-size: 42px;
  line-height: 1.2;
  appearance: auto;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.opdrachtgever-combobox {
  position: relative;
}

.opdrachtgever-combobox input[type="hidden"] {
  display: none;
}

.opdrachtgever-suggestions {
  display: grid;
  gap: 7px;
}

.opdrachtgever-suggestions button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d8e2e8;
  border-radius: 6px;
  background: #f8fbfc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.opdrachtgever-suggestions button:hover,
.opdrachtgever-suggestions button:focus-visible {
  border-color: var(--brand-2);
  background: #eef8fa;
}

.opdrachtgever-suggestions small {
  color: var(--muted);
  font-size: 0.78rem;
}

.intake-capture-panel {
  gap: 10px;
  padding: 14px;
  border: 1px solid #d5e2e8;
  border-radius: 8px;
  background: #f9fcfd;
}

.intake-capture-panel legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 820;
}

.intake-attachment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.intake-upload-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e2e8;
  border-radius: 8px;
  background: #fff;
}

.intake-upload-card > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.intake-upload-card small {
  color: var(--muted);
  line-height: 1.35;
}

.intake-upload-card input[type="file"] {
  min-height: 42px;
  padding: 8px;
  border: 1px dashed #b8c9d3;
  border-radius: 6px;
  background: #f7fafb;
}

.dictation-card textarea {
  min-height: 118px;
}

.compact-options {
  margin-top: 2px;
}

.intake-attachment-preview {
  display: grid;
  gap: 6px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid #d8e2e8;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
}

.intake-attachment-preview span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.intake-form-grid {
  gap: 12px;
  grid-template-columns: 1fr;
  align-items: start;
}

.intake-form-grid > *,
.intake-section .form-grid > * {
  min-width: 0;
}

.intake-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7e1e7;
  border-radius: 8px;
  background: #fff;
}

.intake-section-title {
  padding: 0 6px;
  color: var(--brand);
  font-weight: 850;
}

.intake-section .form-grid.compact {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  align-items: start;
  gap: 12px;
}

.intake-section .field {
  align-self: start;
}

.intake-section .field.full,
.intake-section .intake-capture-panel {
  grid-column: 1 / -1;
}

.intake-section .opdrachtgever-combobox {
  align-self: start;
}

.intake-section .field textarea {
  min-height: 110px;
}

.intake-settings-panel {
  overflow: hidden;
}

.intake-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.intake-settings-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7e1e7;
  border-radius: 8px;
  background: #f9fcfd;
}

.intake-settings-section legend {
  padding: 0 6px;
  color: var(--brand);
  font-weight: 850;
}

.intake-settings-section > div {
  display: grid;
  gap: 8px;
}

.intake-setting-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d9e4ea;
  border-radius: 8px;
  background: #fff;
}

.intake-setting-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.intake-setting-card small {
  color: var(--muted);
}

.intake-default-input {
  min-height: 38px;
  border: 1px solid #c9d6de;
  border-radius: 6px;
  padding: 8px 10px;
}

.login-actions,
.toolbar,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.login-actions {
  margin-top: 18px;
}

.live-login-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #c8d9e3;
  border-radius: 8px;
  background: #f7fbfc;
}

.live-login-box .btn {
  width: 100%;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.btn {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 13px;
  color: #fff;
  background: var(--brand);
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.btn:hover {
  filter: brightness(1.04);
}

.btn.secondary {
  color: var(--brand);
  border-color: #bdd0dc;
  background: #fff;
}

.btn.ghost {
  color: var(--ink);
  border-color: transparent;
  background: transparent;
}

.btn.danger {
  background: var(--red);
}

.btn.success {
  background: var(--green);
}

.btn.warning {
  background: var(--amber);
}

.btn.icon-only {
  width: 42px;
  padding: 0;
}

.btn.mini-button {
  min-height: 32px;
  padding: 6px 9px;
  gap: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.role-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfc;
  color: var(--ink);
  padding: 11px;
  text-align: left;
  cursor: pointer;
}

.role-button.super-login {
  width: 100%;
  margin-top: 12px;
}

.role-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.role-button strong {
  display: block;
  font-size: 0.92rem;
}

.role-button span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--line);
  background: #0e2c45;
  color: #fff;
  padding: 18px;
  overflow-y: auto;
}

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

.sidebar .brand-row {
  margin-bottom: 4px;
}

.sidebar .brand-mark {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-toggle {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.sidebar-toggle-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.sidebar-toggle-icons svg {
  width: 17px;
  height: 17px;
}

.sidebar-toggle:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
}

.sidebar.collapsed {
  align-items: center;
  padding: 16px 12px;
}

.sidebar.collapsed .brand-home {
  justify-content: center;
}

.sidebar.collapsed .brand-copy,
.sidebar.collapsed .nav span,
.sidebar.collapsed .sidebar-card,
.sidebar.collapsed .sidebar-toggle span {
  display: none;
}

.sidebar.collapsed .nav,
.sidebar.collapsed .sidebar-top {
  width: 100%;
}

.sidebar.collapsed .nav button {
  justify-content: center;
  padding: 10px;
}

.sidebar.collapsed .nav button.active {
  box-shadow: inset 0 -3px 0 #f6b640;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 6px;
  padding: 10px 11px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav button:hover,
.nav button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav button.active {
  box-shadow: inset 3px 0 0 #f6b640;
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  padding: 14px;
}

.sidebar-card strong {
  display: block;
}

.sidebar-card p {
  margin: 8px 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}

.main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 252, 0.94);
  backdrop-filter: blur(14px);
  padding: 12px 22px;
}

.mobile-menu {
  display: none;
}

.search {
  position: relative;
  flex: 1 1 320px;
  min-width: min(100%, 240px);
  max-width: 540px;
}

.search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--steel);
}

.search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px 10px 42px;
  background: #fff;
}

.user-chip,
.status-chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.8rem;
  font-weight: 760;
  white-space: nowrap;
}

.user-chip {
  max-width: min(100%, 260px);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-dots {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 4px 9px, currentColor 1.5px, transparent 1.8px),
    radial-gradient(circle at 9px 9px, currentColor 1.5px, transparent 1.8px),
    radial-gradient(circle at 14px 9px, currentColor 1.5px, transparent 1.8px);
  color: var(--steel);
}

.status-chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #123b5d;
  border: 1px solid #c8dce8;
  background: #edf7fb;
}

.status-chip.green {
  color: #14563f;
  border-color: #b8d8cc;
  background: #e9f6f0;
}

.status-chip.amber {
  color: #765100;
  border-color: #efd39e;
  background: #fff6df;
}

.status-chip.red {
  color: #8a1d17;
  border-color: #efc5c2;
  background: #fff0ee;
}

.status-chip.violet {
  color: #403c8c;
  border-color: #d2d0f2;
  background: #f0efff;
}

.content {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 16px 18px 18px;
}

.hero-band {
  min-height: 348px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: end;
  gap: 28px;
  margin: -16px -18px 14px;
  padding: clamp(24px, 5vw, 58px) 22px 26px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 30, 49, 0.91), rgba(10, 30, 49, 0.6), rgba(10, 30, 49, 0.18)),
    url("claims-operations-hero.png") center / cover no-repeat;
}

.dashboard-hero {
  min-height: clamp(310px, 36vw, 430px);
  grid-template-columns: minmax(0, 900px);
  align-items: end;
}

.hero-inner {
  max-width: 890px;
}

.hero-inner h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-inner p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 22px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.glass-stat {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  padding: 14px;
}

.glass-stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.glass-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.glass-stat p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.4;
}

.dashboard-metrics .glass-stat {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 32, 51, 0.06);
  backdrop-filter: none;
}

.dashboard-metrics .glass-stat span {
  color: var(--muted);
}

.dashboard-metrics .glass-stat p {
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 10px;
}

.section-title p {
  max-width: 830px;
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.grid {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.grid,
.split,
.kanban,
.report-workbench,
.planning-cockpit,
.planning-control-grid,
.route-proposal,
.calendar-grid,
.table-wrap,
.data-sheet,
.mini-list li {
  min-width: 0;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.card,
.table-wrap,
.workflow {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(17, 32, 51, 0.05);
}

.panel,
.card {
  padding: 14px;
}

.panel > :last-child,
.card > :last-child,
.workflow > :last-child,
.module-panel-body > :last-child {
  margin-bottom: 0 !important;
}

.card h3,
.panel h3,
.workflow h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.metric-card {
  height: 100%;
  min-height: 136px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.metric-value {
  align-self: end;
  font-size: 2.15rem;
  font-weight: 880;
  line-height: 1;
}

.metric-foot {
  color: var(--muted);
  font-size: 0.85rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: start;
  gap: 10px;
}

.workflow {
  overflow: hidden;
}

.workflow header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1px;
  background: var(--line);
  overflow: hidden;
}

.step {
  min-width: 0;
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: #fff;
  padding: 14px;
}

.step strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.step span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  min-width: 0;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-2);
}

.timeline-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.table-wrap {
  overflow: auto;
}

.table-wrap,
.employee-table-wrap,
.activity-table-wrap,
.activity-matrix-wrap,
.dispatch-timeline,
.plan-board,
.kanban,
.calendar-grid {
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #9fb8c7 #edf4f7;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #3c4b5a;
  background: #f3f7f9;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

td {
  color: #203143;
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 820;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.mini-list li > span {
  min-width: min(100%, 180px);
  flex: 1 1 220px;
}

.mini-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-list small {
  color: var(--muted);
}

.socotec-service-knowledge .data-card {
  min-width: 0;
}

.socotec-service-knowledge .data-card header {
  display: grid;
  gap: 4px;
}

.socotec-service-knowledge .data-card header span,
.socotec-service-knowledge .helper,
.socotec-service-knowledge li {
  overflow-wrap: anywhere;
}

.socotec-service-knowledge details {
  margin-top: 10px;
}

.socotec-service-knowledge summary {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  gap: 8px;
  font-weight: 800;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 7px 12px;
  font-weight: 760;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.filter-pill,
.mini-status.as-button,
.mini-status.as-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 820;
  cursor: pointer;
}

.mini-status.as-link {
  background: #f8fbfc;
  color: var(--brand);
}

.mini-status.as-link:focus-visible,
.clickable-section:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.filter-pill span {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #eef4f6;
  color: var(--brand);
  font-size: 0.76rem;
}

.filter-pill.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.filter-pill.active span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.filter-pill.ghost {
  margin-left: auto;
  background: #f8fbfc;
}

.compact-select-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 260px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px 6px 12px;
  box-shadow: 0 8px 22px rgba(17, 32, 51, 0.05);
}

.compact-select-control.inline-filter {
  margin: 0 0 12px;
}

.compact-select-control span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.compact-select-control select {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 820;
  outline: none;
}

.compact-select-control:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.drilldown-panel {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 28px rgba(17, 32, 51, 0.05);
}

.drilldown-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 8px;
  margin-top: 10px;
}

.drilldown-metrics button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.drilldown-metrics span,
.drilldown-row small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.drilldown-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 1.4rem;
}

.drilldown-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.drilldown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.drilldown-row > span {
  min-width: 0;
}

.process-command .panel-head {
  margin-bottom: 12px;
}

.quick-panel-actions {
  position: static;
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.quick-panel-head > :not(.quick-panel-actions),
.has-panel-actions > :not(.quick-panel-actions),
.module-panel-head > :not(.panel-tools),
.panel-head > :not(.panel-tools) {
  min-width: 0;
}

.quick-panel-head,
.has-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.quick-panel-head {
  margin-bottom: 10px;
}

.quick-panel-head h2,
.quick-panel-head h3,
.quick-panel-head h4 {
  margin: 0;
}

.quick-panel-head > :first-child,
.has-panel-actions > :first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.has-inline-panel-actions {
  display: grid;
}

.has-inline-panel-actions > .quick-panel-actions {
  justify-self: end;
  margin-bottom: 8px;
}

.quick-collapsed {
  min-height: 58px;
}

.quick-collapsed > :not(.quick-panel-actions):not(.quick-panel-head):not(h3):not(header):not(.panel-head) {
  display: none !important;
}

.quick-fullscreen {
  position: fixed !important;
  inset: 16px !important;
  z-index: 130 !important;
  height: auto !important;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 10px;
  box-shadow: 0 26px 90px rgba(17, 32, 51, 0.32);
}

.quick-fullscreen::before,
.module-panel.fullscreen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(13, 33, 51, 0.28);
}

.process-queue table {
  min-width: 1120px;
}

.compact-actions {
  gap: 6px;
}

.compact-actions .btn {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.78rem;
}

.completeness-meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef2;
}

.completeness-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-2);
}

.completeness-meter.green span {
  background: var(--green);
}

.completeness-meter.amber span {
  background: var(--amber);
}

.completeness-meter.red span {
  background: var(--red);
}

.process-flow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.process-flow-strip span {
  min-height: 74px;
  display: grid;
  gap: 7px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
  padding: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.process-flow-strip strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
}

.process-lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.process-lifecycle-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfc);
  padding: 12px;
}

.process-lifecycle-grid header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
}

.process-lifecycle-grid header span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #e8f4f5;
  color: var(--brand);
}

.process-lifecycle-grid strong,
.process-lifecycle-grid dd {
  overflow-wrap: anywhere;
}

.process-lifecycle-grid dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.process-lifecycle-grid dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.process-lifecycle-grid dd {
  margin: 2px 0 0;
  color: #314356;
  font-size: 0.82rem;
  line-height: 1.36;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  align-items: stretch;
  gap: 14px;
}

.process-card {
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 28px rgba(17, 32, 51, 0.05);
}

.process-card header span,
.kpi-definition-grid article span {
  color: var(--brand-2);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-card h3 {
  margin: 4px 0 0;
  font-size: 1.02rem;
}

.process-card p,
.process-card li,
.process-card footer small,
.field-catalog span,
.kpi-definition-grid p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.process-meta {
  display: grid;
  gap: 8px;
}

.process-meta div,
.field-catalog article,
.kpi-definition-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px;
}

.process-meta strong,
.field-catalog strong,
.kpi-definition-grid strong {
  display: block;
  margin-bottom: 4px;
}

.process-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.process-card details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.process-card summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 820;
  cursor: pointer;
}

.process-card ol,
.process-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.process-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.process-card .status-chip,
.workflow-automation .status-chip {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.process-step-workbench {
  overflow: hidden;
}

.process-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workflow-step-card {
  min-width: 0;
  border: 1px solid #d5e4eb;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfc);
  padding: 12px;
}

.workflow-step-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.workflow-step-card header span {
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workflow-step-card header strong {
  color: var(--ink);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.workflow-step-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-step-columns > div {
  min-width: 0;
}

.workflow-step-columns small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workflow-step-columns ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #314356;
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.workflow-automation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.workflow-step-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.field-catalog,
.kpi-definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.kpi-definition-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  align-items: start;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
}

.kanban-col {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafb;
  padding: 12px;
}

.kanban-col h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 0.94rem;
}

.kanban-subtitle {
  display: block;
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.dossier-process-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.dossier-process-strip div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.dossier-process-strip span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eef7f8;
  color: var(--brand-2);
}

.dossier-process-strip strong,
.dossier-process-strip small {
  display: block;
  margin-top: 6px;
}

.dossier-process-strip small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.dossier-field-workbench {
  overflow: hidden;
}

.dossier-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.dossier-field-grid.secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-parity-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.field-parity-card.wide-card {
  grid-column: span 1;
}

.field-parity-card header,
.template-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.field-parity-card header > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef7f8;
  color: var(--brand-2);
}

.field-parity-card header div {
  min-width: 0;
}

.field-parity-card strong,
.template-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.field-parity-card small,
.template-card p,
.offer-choice-grid span,
.planning-legend-modern small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.field-section-list,
.action-group-grid,
.handbook-group-list,
.offer-field-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.field-section-list details,
.action-group-grid details,
.handbook-group-list details,
.offer-field-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 8px;
}

.field-section-list summary,
.action-group-grid summary,
.handbook-group-list summary,
.offer-field-grid summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--ink);
}

.field-token-list,
.folder-chip-grid,
.template-target-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.field-token-list span,
.folder-chip-grid span,
.offer-choice-grid span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.folder-chip-grid span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
}

.action-group-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.action-group-grid li {
  margin: 4px 0;
}

.action-group-grid li button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
}

.action-group-grid li button:hover,
.action-group-grid li button:focus-visible {
  color: var(--brand-2);
  text-decoration: underline;
}

.template-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin-top: 12px;
}

.template-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px;
}

.template-card-head span {
  color: var(--brand-2);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.offer-choice-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.planning-legend-modern {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.planning-legend-modern span {
  display: grid;
  grid-template-columns: 18px minmax(0, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.planning-legend-modern i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #94a3b8;
}

.planning-legend-modern .legend-dossier i { background: #243c9b; }
.planning-legend-modern .legend-indirect i { background: #f1d0a2; }
.planning-legend-modern .legend-away i { background: #b89a35; }
.planning-legend-modern .legend-private i { background: #b94124; }
.planning-legend-modern .legend-unavailable i { background: #c9cdd2; }

.offer-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.8fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.offer-list-panel,
.offer-form-panel {
  min-width: 0;
}

.compact-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 8px;
  margin: 10px 0;
}

.offer-list {
  display: grid;
  gap: 8px;
  max-height: min(64vh, 720px);
  overflow: auto;
  padding-right: 2px;
}

.offer-list button {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  cursor: pointer;
  text-align: left;
}

.offer-list button.active,
.offer-list button:hover,
.offer-list button:focus-visible {
  border-color: rgba(10, 141, 143, 0.42);
  background: #eef7f8;
}

.offer-list span,
.offer-list strong,
.offer-list small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.offer-form-sections {
  display: grid;
  gap: 12px;
}

fieldset.form-section {
  padding: 0;
}

fieldset.form-section legend {
  width: 100%;
  padding: 12px 14px;
  background: #f2f7f9;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 850;
}

fieldset.form-section .form-grid {
  padding: 14px;
}

.form-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-top: 1px solid #edf3f6;
  padding-top: 6px;
}

.form-subhead:first-child {
  border-top: 0;
  padding-top: 0;
}

.form-subhead strong {
  color: var(--brand);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 11px;
  color: var(--ink);
  font-weight: 760;
}

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

.template-insert-row {
  gap: 6px;
}

.template-insert-row .mini-button {
  white-space: normal;
}

.offer-template-field {
  min-width: 0;
}

.offer-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.offer-field-header > span {
  min-width: 0;
  color: #2c3b4a;
  font-size: 0.84rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.template-picker {
  position: relative;
  flex: 0 0 auto;
}

.template-picker summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid #cfe0e7;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
}

.template-picker summary::-webkit-details-marker {
  display: none;
}

.template-picker summary:hover,
.template-picker summary:focus-visible {
  border-color: rgba(10, 141, 143, 0.42);
  background: #eef7f8;
  outline: none;
}

.template-picker-menu {
  position: absolute;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(420px, 70vh);
  overflow: auto;
  margin-top: 8px;
  border: 1px solid #d7e4ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 32, 44, 0.18);
  padding: 8px;
}

.template-picker-menu button {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f7fafb;
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.template-picker-menu button:hover,
.template-picker-menu button:focus-visible {
  border-color: rgba(10, 141, 143, 0.36);
  background: #eef7f8;
  outline: none;
}

.template-picker-menu strong,
.template-picker-menu span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.template-picker-menu span {
  color: var(--muted);
  font-size: 0.78rem;
}

.afas-operation-workbench {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.compact-head {
  align-items: flex-start;
}

.afas-operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.afas-domain-groups {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.afas-domain-group {
  min-width: 0;
  border: 1px solid #dce8ed;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.afas-domain-group > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.afas-domain-group h5 {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
}

.afas-domain-group p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.afas-operation-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
}

.afas-operation-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.afas-operation-card strong,
.afas-operation-card small,
.afas-operation-card p {
  overflow-wrap: anywhere;
}

.afas-operation-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.afas-operation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.afas-operation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.afas-operation-history {
  margin-top: 10px;
}

@media (max-width: 720px) {
  .offer-field-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-picker {
    width: 100%;
  }

  .template-picker summary {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .template-picker-menu {
    left: 0;
    right: auto;
    width: 100%;
  }

  .afas-domain-group > header {
    display: grid;
  }
}

.participant-stack {
  display: grid;
  gap: 6px;
}

.participant-stack span {
  display: block;
  min-width: 0;
}

.participant-stack strong,
.participant-grid strong {
  display: block;
  font-size: 0.82rem;
}

.participant-stack small,
.participant-grid small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.participant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.participant-grid article {
  min-width: 0;
  border: 1px solid #dce8ee;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 10px;
}

.participant-grid span {
  display: block;
  margin: 3px 0;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
}

.dossier-structure {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 32, 51, 0.08);
  padding: 14px;
}

.dossier-structure-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dossier-structure-head h3 {
  margin: 0;
}

.dossier-structure-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.dossier-structure-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 8px;
  min-width: min(100%, 360px);
}

.dossier-structure-kpis div {
  border: 1px solid #dce8ee;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px;
}

.dossier-structure-kpis span,
.dossier-node-meta small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.dossier-structure-kpis strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
}

.dossier-vakgroep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dossier-vakgroep {
  min-width: 0;
  border: 1px solid #dce8ee;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 12px;
}

.dossier-vakgroep > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dossier-vakgroep > header.clickable-section {
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.dossier-vakgroep > header.clickable-section:hover {
  background: #f3f8fa;
  box-shadow: inset 3px 0 0 var(--brand);
}

.dossier-vakgroep h4 {
  margin: 0;
  font-size: 0.98rem;
}

.dossier-vakgroep p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.dossier-org {
  border-top: 1px solid #e2ebef;
  padding-top: 8px;
  margin-top: 8px;
}

.dossier-org summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.dossier-org summary::-webkit-details-marker {
  display: none;
}

.dossier-org summary strong,
.dossier-node strong {
  display: block;
}

.dossier-org summary small,
.dossier-node small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.dossier-org-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.dossier-node {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border: 1px solid #dce8ee;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dossier-node:hover,
.dossier-node:focus-visible {
  border-color: #9fc0cd;
  box-shadow: 0 8px 20px rgba(17, 32, 51, 0.08);
}

.dossier-node > span {
  min-width: 0;
}

.dossier-node-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: 0 0 auto;
}

.case-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.case-card strong {
  line-height: 1.3;
  min-width: 0;
}

.case-card small {
  color: var(--muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: 170px repeat(var(--calendar-days, 5), minmax(150px, 1fr));
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.calendar-cell {
  min-height: 96px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.calendar-head {
  min-height: 48px;
  color: #3c4b5a;
  background: #f3f7f9;
  font-weight: 850;
}

.calendar-name {
  background: #f8fbfc;
  font-weight: 850;
}

.event-pill {
  display: block;
  margin-top: 7px;
  border-left: 4px solid var(--teal);
  border-radius: 5px;
  background: #edf7fb;
  padding: 8px;
  color: #16344a;
  font-size: 0.78rem;
  line-height: 1.35;
}

.event-pill.amber {
  border-left-color: var(--amber);
  background: #fff6df;
}

.event-pill.green {
  border-left-color: var(--green);
  background: #e9f6f0;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

.control-card {
  min-width: 0;
  min-height: 205px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
}

.score-ring {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 6px solid #d8ecee;
  border-top-color: var(--brand-2);
  border-radius: 50%;
  font-weight: 850;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.check-list svg {
  color: var(--green);
  margin-top: 1px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agent-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
}

.agent-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.integration-status {
  display: grid;
  gap: 10px;
}

.integration-panel {
  align-content: start;
  gap: 14px;
}

.endpoint-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(10, 141, 143, 0.22);
  background: rgba(10, 141, 143, 0.08);
  border-radius: 8px;
  padding: 10px;
}

.endpoint-box span {
  font-weight: 900;
  font-size: 0.72rem;
  color: var(--teal);
}

.endpoint-box code,
.agent-card code {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.compact-sheet {
  gap: 8px;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.status-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.outbox {
  display: grid;
  gap: 10px;
}

.email-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.email-item strong {
  display: block;
}

.email-item small {
  color: var(--muted);
}

.mail-log-panel {
  height: auto;
}

.mail-safety-banner {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
  border-color: #efd39e;
  background: #fffaf0;
}

.mail-safety-banner h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mail-log-table table {
  min-width: 1040px;
}

.mail-log-table td,
.mail-log-table th {
  max-width: 280px;
}

.mail-log-actions {
  justify-content: flex-start;
  gap: 6px;
}

.mail-list-actions {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: min(100%, 180px);
}

.mail-preview-meta {
  margin-bottom: 12px;
}

.mail-preview-panel {
  height: auto;
  margin: 12px 0;
}

.mail-preview-body {
  max-height: min(52vh, 520px);
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
  color: #203143;
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(9, 24, 38, 0.42);
}

.drawer-backdrop.open,
.modal-backdrop.open {
  display: block;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: min(90vw, 330px);
  transform: translateX(-105%);
  transition: transform 0.2s ease;
}

.drawer.open {
  transform: translateX(0);
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 70;
  width: min(92vw, 740px);
  max-height: 86vh;
  display: none;
  transform: translate(-50%, -50%);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.modal.open {
  display: block;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 36px));
  display: none;
  border-left: 5px solid var(--brand-2);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.toast.show {
  display: block;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 155px;
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
}

.bar {
  min-height: 22px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #0a8d8f, #123b5d);
}

.bar:nth-child(3n) {
  background: linear-gradient(180deg, #f6b640, #b66a00);
}

.bar:nth-child(4n) {
  background: linear-gradient(180deg, #39a378, #20785a);
}

.risk-map {
  min-height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.93)),
    repeating-linear-gradient(45deg, #e6edf1 0 1px, transparent 1px 18px);
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 7px 18px rgba(17, 32, 51, 0.23);
}

.map-pin.amber {
  background: var(--amber);
}

.map-pin.red {
  background: var(--red);
}

.map-label {
  position: absolute;
  max-width: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 32, 51, 0.1);
  padding: 9px;
  font-size: 0.78rem;
}

.empty {
  border: 1px dashed #b9c7d0;
  border-radius: var(--radius);
  background: #fbfdfe;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

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

.panel-head h3 {
  margin: 0;
}

.report-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  align-items: start;
}

.report-builder {
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.report-import-field small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.upload-dropzone {
  border: 1px dashed #9fb3bf;
  border-radius: var(--radius);
  background: #f8fbfc;
  padding: 12px;
}

.upload-dropzone input[type="file"] {
  width: 100%;
  min-width: 0;
}

.upload-dropzone small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.attachment-selector {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  min-width: 0;
}

.attachment-selector legend {
  padding: 0 6px;
  color: #2c3b4a;
  font-size: 0.84rem;
  font-weight: 850;
}

.attachment-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.attachment-summary span {
  color: var(--brand);
  font-weight: 850;
}

.attachment-summary small {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.4;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.attachment-option {
  display: grid;
  grid-template-columns: auto 28px minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  border: 1px solid #dce6eb;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 9px;
  cursor: pointer;
}

.attachment-option:has(input:checked) {
  border-color: #75bfc4;
  background: #eef9fa;
}

.attachment-option input {
  margin-top: 5px;
}

.attachment-option input:disabled + .attachment-option-icon,
.attachment-option input:disabled ~ span {
  opacity: 0.55;
}

.attachment-option-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #eef4f6;
  color: var(--brand);
}

.attachment-option strong,
.attachment-option small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.attachment-option strong {
  color: #142437;
  font-size: 0.88rem;
}

.attachment-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.report-field-visibility {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  min-width: 0;
}

.report-field-visibility legend {
  padding: 0 6px;
  color: #2c3b4a;
  font-size: 0.84rem;
  font-weight: 850;
}

.field-visibility-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.field-visibility-toolbar strong,
.field-visibility-toolbar small {
  display: block;
}

.field-visibility-toolbar strong {
  color: var(--brand);
}

.field-visibility-toolbar small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.field-visibility-grid {
  display: grid;
  gap: 8px;
}

.field-visibility-group {
  border: 1px solid #dce6eb;
  border-radius: 8px;
  background: #fbfdfe;
  overflow: hidden;
}

.field-visibility-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #142437;
  font-weight: 850;
  cursor: pointer;
}

.field-visibility-group summary span {
  color: var(--muted);
  font-size: 0.78rem;
}

.field-visibility-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.field-visibility-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  border: 1px solid #e3ebef;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.field-visibility-option input {
  margin-top: 4px;
}

.field-visibility-option strong,
.field-visibility-option small {
  display: block;
  overflow-wrap: anywhere;
}

.field-visibility-option strong {
  font-size: 0.84rem;
  color: #142437;
}

.field-visibility-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.report-section-builder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfc;
  padding: 12px;
}

.report-section-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.report-section-builder-head span {
  display: block;
  color: #2c3b4a;
  font-size: 0.84rem;
  font-weight: 850;
}

.report-section-builder-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.report-block-list {
  display: grid;
  gap: 9px;
}

.report-block {
  min-width: 0;
  border: 1px solid #dce6eb;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.report-block header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.report-block header strong {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.report-block header small {
  color: var(--muted);
  font-size: 0.76rem;
}

.drag-handle {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #eef4f6;
  color: var(--muted);
  cursor: grab;
}

.report-block textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.checklist-field {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.checklist-field legend {
  padding: 0 6px;
  color: #2c3b4a;
  font-size: 0.84rem;
  font-weight: 800;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #dce6eb;
  border-radius: 6px;
  background: #fbfdfe;
  padding: 9px;
  line-height: 1.35;
}

.report-preview-panel {
  min-width: 0;
}

.report-preview {
  max-height: calc(100vh - 220px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e8f0f3;
  padding: 12px;
}

.report-document {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.report-cover {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  background: var(--brand);
  color: #fff;
  padding: 24px;
}

.report-cover .eyebrow {
  color: #9bd7dc;
}

.report-cover h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.08;
}

.report-cover p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.report-stamp {
  min-width: 150px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  padding: 12px;
  text-align: right;
}

.report-stamp span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.report-meta-grid,
.report-financials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.report-meta-grid div,
.report-financials div {
  min-width: 0;
  background: #fff;
  padding: 12px;
}

.report-meta-grid span,
.report-financials span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.report-meta-grid strong,
.report-financials strong {
  overflow-wrap: anywhere;
}

.report-section {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.report-section h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.report-section p {
  margin: 0;
  color: #27394b;
  line-height: 1.62;
}

.report-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.report-checks li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.report-checks li.checked {
  border-color: rgba(32, 120, 90, 0.35);
  background: #eefaf5;
  color: #145f46;
  font-weight: 750;
}

.report-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #f8fbfc;
  color: var(--muted);
  padding: 12px 24px;
  font-size: 0.78rem;
}

.extended-report-cover {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  background: var(--brand);
  color: #fff;
  padding: 28px;
}

.extended-report-cover h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.extended-report-contact {
  min-width: 210px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  padding: 12px;
  text-align: right;
}

.extended-front-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.extended-front-grid div {
  min-width: 0;
  background: #fff;
  padding: 12px;
}

.extended-front-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.extended-front-grid strong,
.extended-section p {
  overflow-wrap: anywhere;
}

.report-layout-summary {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: #f8fbfc;
  padding: 18px 24px;
}

.report-layout-summary p {
  margin: 6px 0 0;
  color: var(--muted);
}

.report-layout-summary ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-layout-summary li {
  min-width: 0;
  display: flex;
  gap: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.report-layout-summary li span {
  flex: 0 0 24px;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #e7f2f4;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 850;
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.report-card.active {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(10, 141, 143, 0.12);
}

.report-card-main {
  min-width: 0;
  display: grid;
  gap: 4px;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.report-card-main strong,
.report-card-main small {
  overflow-wrap: anywhere;
}

.report-id,
.mini-status {
  color: var(--brand-2);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.report-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.relation-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items: start;
}

.vakgroep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.organization-admin-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.organization-admin-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.organization-admin-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.organization-admin-card header div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.organization-admin-card header strong,
.organization-admin-card header span,
.crm-dossier-strip span,
.crm-dossier-strip strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.organization-admin-card header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.organization-admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.organization-admin-metrics div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.organization-admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.organization-admin-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.crm-dossier-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.crm-dossier-strip button {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px;
  text-align: left;
  cursor: pointer;
}

.crm-dossier-strip button:hover,
.crm-dossier-strip button:focus-visible {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(10, 141, 143, 0.14);
  outline: 0;
}

.mini-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px;
}

.mini-card strong,
.mini-card span,
.mini-card small,
.process-note-list li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mini-card span {
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 850;
}

.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: center;
}

.search-hero h3 {
  margin: 0 0 6px;
}

.search-hero-metrics,
.journey-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.search-hero-metrics div,
.journey-kpis div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.search-hero-metrics span,
.journey-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-hero-metrics strong,
.journey-kpis strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.search-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.search-group {
  min-width: 0;
}

.search-result-list {
  display: grid;
  gap: 10px;
}

.search-result-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-result-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.search-result-card p,
.search-result-card small {
  display: block;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.journey-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.journey-select-block {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.journey-case-summary {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.journey-case-summary strong,
.journey-case-summary span,
.journey-case-summary small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.journey-case-summary span,
.journey-case-summary small {
  color: var(--muted);
}

.journey-toolbar {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.journey-toolbar button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}

.journey-toolbar button.active,
.journey-toolbar button:focus-visible,
.journey-toolbar button:hover {
  background: var(--brand);
  color: #fff;
  outline: 0;
}

.journey-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.journey-kpis small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.journey-map {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-left: 30px;
}

.journey-rail {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 14px;
  width: 2px;
  background: linear-gradient(var(--brand), var(--brand-2));
}

.journey-step {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.journey-step::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 22px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 1px var(--line);
}

.journey-step.attention::before {
  background: #c97d17;
}

.journey-step header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.journey-step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.journey-step h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--ink);
}

.journey-step p,
.journey-done-when {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.journey-event-list {
  display: grid;
  gap: 8px;
}

.journey-event {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.journey-event span {
  color: var(--brand-2);
}

.journey-event strong,
.journey-event small,
.journey-event p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.journey-event small {
  display: block;
  color: var(--muted);
}

.journey-map.zoom-compact .journey-done-when,
.journey-map.zoom-compact .journey-event p,
.journey-map.zoom-compact .journey-event-list .journey-event:nth-child(n+3) {
  display: none;
}

.journey-map.zoom-detail {
  gap: 18px;
}

.journey-map.zoom-detail .journey-step {
  padding: 18px;
}

.journey-raw-events {
  margin-top: 14px;
}

.context-menu {
  position: fixed;
  z-index: 120;
  width: 252px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 6px;
}

.context-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.context-menu button:hover,
.context-menu button:focus-visible {
  background: #eef4f6;
}

.context-menu hr {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 6px;
}

.print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
}

.studio-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(18, 59, 93, 0.96), rgba(10, 107, 120, 0.9)),
    #123b5d;
  color: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.studio-hero-panel h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.12;
}

.studio-hero-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.studio-metrics,
.mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.studio-metrics div,
.mini-kpis div {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  padding: 12px;
}

.studio-metrics span,
.mini-kpis span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.studio-metrics strong,
.mini-kpis strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
}

.expertise-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.record-switcher {
  position: sticky;
  top: 92px;
}

.record-button {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px;
  text-align: left;
  cursor: pointer;
}

.record-button.active {
  border-color: var(--brand-2);
  background: #edf8fa;
  box-shadow: inset 3px 0 0 var(--focus);
}

.record-button span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.record-switcher .mini-kpis {
  grid-template-columns: 1fr;
  margin: 14px 0;
}

.record-switcher .mini-kpis div {
  border-color: var(--line);
  background: #f8fbfc;
}

.record-switcher .mini-kpis span {
  color: var(--muted);
}

.studio-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.panel,
.card,
.form-grid > *,
.expertise-layout > *,
.studio-hero-panel > *,
.studio-metrics > *,
.mini-kpis > * {
  min-width: 0;
}

.expertise-form {
  display: grid;
  gap: 12px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.form-section summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  background: #f2f7f9;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.form-section summary::-webkit-details-marker {
  display: none;
}

.form-section[open] summary {
  border-bottom: 1px solid var(--line);
}

.form-section .form-grid {
  padding: 14px;
}

.dense-table {
  overflow-x: auto;
}

.dense-table table {
  min-width: 980px;
  font-size: 0.82rem;
}

.traffic {
  display: inline-flex;
  min-width: 74px;
  justify-content: center;
  border-radius: 4px;
  padding: 4px 7px;
  color: #123b5d;
  background: #eef4f6;
  font-weight: 820;
}

.traffic.green {
  color: #15583f;
  background: #dff3ea;
}

.traffic.amber {
  color: #765100;
  background: #ffefc2;
}

.traffic.red {
  color: #8a1d17;
  background: #ffe0dc;
}

.traffic.violet {
  color: #403c8c;
  background: #e9e8ff;
}

.legend-row,
.doc-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--steel);
}

.legend-dot.green {
  background: var(--green);
}

.legend-dot.amber {
  background: var(--amber);
}

.legend-dot.red {
  background: var(--red);
}

.legend-dot.violet {
  background: var(--violet);
}

.timeline-list {
  margin-top: 14px;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reference-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.reference-grid img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  background: #eef4f6;
}

.reference-grid figcaption {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px;
}

.customer-switch {
  flex: 0 1 250px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 10px;
  color: var(--ink);
}

.customer-switch select {
  width: 100%;
  min-width: 0;
  max-width: 190px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-wrap {
  flex: 0 1 260px;
  min-width: 0;
  position: relative;
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  width: min(310px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 8px;
}

.user-menu-head {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.user-menu-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.user-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.user-menu button:hover {
  background: #f2f7f9;
}

.user-menu hr,
.context-menu hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

.topbar-action {
  flex: 0 0 auto;
  min-height: 38px;
  padding-inline: 13px;
}

.support-command {
  overflow: visible;
}

.support-action-grid,
.support-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.support-action-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 13px;
}

.support-action-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f4f6;
  color: var(--brand-2);
}

.support-action-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.support-workbench .panel-head {
  align-items: flex-start;
}

.support-tabs {
  justify-content: flex-end;
  max-width: min(100%, 720px);
}

.support-ticket-list {
  display: grid;
  gap: 10px;
}

.support-ticket-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-2);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(17, 32, 51, 0.05);
}

.support-ticket-card.amber {
  border-left-color: var(--amber);
}

.support-ticket-card.red {
  border-left-color: var(--red);
}

.support-ticket-card.green {
  border-left-color: var(--green);
}

.support-ticket-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.support-ticket-card h3 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.support-ticket-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.support-card-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.support-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #c8dce8;
  border-radius: 8px;
  background: #edf7fb;
  color: #123b5d;
  padding: 12px;
  line-height: 1.45;
}

.support-modal-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 12px;
}

.support-response-form {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.checkbox-line.full {
  grid-column: 1 / -1;
}

.module-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.module-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 32, 51, 0.07);
  overflow: hidden;
}

.module-panel.wide {
  grid-column: 1 / -1;
}

.module-panel.fullscreen {
  position: fixed;
  inset: 16px;
  z-index: 120;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 32px);
  box-shadow: 0 26px 80px rgba(17, 32, 51, 0.28);
}

.module-panel.fullscreen .module-panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
}

.module-panel.fullscreen .module-panel-body {
  overflow: auto;
}

.module-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #f6fafb;
  padding: 8px 10px;
}

.panel-toggle {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  text-align: left;
}

.panel-toggle span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel-toggle svg {
  flex: 0 0 auto;
}

.panel-tools {
  margin-left: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.panel-actions-menu {
  position: relative;
  flex: 0 0 auto;
}

.panel-actions-menu summary {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid #c7d8e2;
  border-radius: 10px;
  background: #fff;
  color: #23435d;
  cursor: pointer;
  list-style: none;
}

.panel-actions-menu summary::-webkit-details-marker {
  display: none;
}

.panel-actions-menu summary:hover,
.panel-actions-menu[open] summary {
  border-color: #8fb7c8;
  background: #eaf6f7;
  color: var(--brand);
}

.panel-actions-menu summary svg {
  width: 17px;
  height: 17px;
}

.summary-chevron svg {
  width: 13px;
  height: 13px;
}

.panel-actions-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 95;
  width: 224px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 6px;
}

.panel-actions-popover button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.panel-actions-popover button:hover {
  background: #f2f7f9;
}

.panel-actions-popover hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

.quick-actions-menu .panel-actions-popover {
  right: 0;
}

.panel-grip {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--steel);
  background: #eef4f6;
}

.panel-grip svg {
  width: 16px;
  height: 16px;
}

.panel-order-btn {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #eef4f6;
  color: #23435d;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 820;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.panel-order-btn:hover {
  border-color: #a9c3d2;
  background: #e1eef2;
  color: var(--brand);
}

.panel-order-btn.emphasis {
  border-color: #b8d7de;
  background: #e8f6f7;
  color: #0b5f6a;
}

.panel-order-btn.icon-control {
  width: 34px;
  flex: 0 0 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.panel-order-btn.icon-control svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.module-panel-body {
  min-width: 0;
  overflow: hidden;
  padding: 12px;
}

.module-panel-body.collapsed {
  display: none;
}

.template-fieldset,
.checklist-field {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfc;
}

.template-fieldset legend,
.checklist-field legend {
  padding: 0 6px;
  color: var(--brand);
  font-weight: 850;
}

.checkbox-card {
  align-content: start;
  min-height: 42px;
}

.checkbox-card label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px 10px;
  font-weight: 720;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.access-table td {
  vertical-align: middle;
}

.menu-visibility-panel {
  margin-top: 10px;
}

.menu-visibility-grid,
.import-mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

.import-source-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin-top: 10px;
}

.import-source-card div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px;
}

.import-source-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.import-source-card strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.menu-visibility-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  font-weight: 760;
}

.menu-visibility-item span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.compact-table table {
  table-layout: fixed;
}

.compact-table td,
.compact-table th {
  max-width: 220px;
  white-space: normal;
}

.report-toc {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #f8fbfc;
}

.report-toc strong {
  display: block;
  margin-bottom: 8px;
}

.report-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-toc li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.report-toc li span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 999px;
  background: #e7f2f4;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 850;
}

.report-document.layout-compact-bulkclaim .report-section {
  padding-top: 14px;
  padding-bottom: 14px;
}

.report-document.layout-compact-bulkclaim .report-section p {
  line-height: 1.48;
}

.report-norm-control {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.norm-control-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.norm-control-head > div {
  min-width: min(100%, 280px);
  flex: 1 1 360px;
}

.norm-control-head strong,
.norm-control-head span {
  display: block;
  overflow-wrap: anywhere;
}

.norm-control-head > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.norm-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}

.norm-result-card,
.norm-summary-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 11px;
}

.norm-result-card.complete,
.norm-summary-grid article.complete {
  border-color: color-mix(in srgb, var(--success) 42%, var(--line));
  background: #eefaf5;
}

.norm-result-card.attention,
.norm-summary-grid article.attention {
  border-color: #f1c17b;
  background: #fff8e8;
}

.norm-result-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.norm-result-card header div {
  min-width: 0;
}

.norm-result-card strong,
.norm-result-card a,
.norm-summary-grid strong,
.norm-summary-grid span,
.norm-summary-grid small {
  display: block;
  overflow-wrap: anywhere;
}

.norm-result-card a {
  margin-top: 3px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 750;
}

.norm-action-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.norm-action-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px;
}

.norm-action-list li.ok {
  border-color: color-mix(in srgb, var(--success) 40%, var(--line));
}

.norm-action-list li.missing {
  border-color: #f1c17b;
  background: #fffaf0;
}

.norm-action-list svg {
  width: 18px;
  height: 18px;
}

.norm-action-list strong,
.norm-action-list small {
  display: block;
  overflow-wrap: anywhere;
}

.norm-action-list small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.norm-blocker-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #f1c17b;
  border-radius: 8px;
  background: #fff8e8;
  color: #6f4200;
  padding: 10px;
  font-weight: 780;
}

.norm-blocker-note span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.norm-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 8px;
  margin: 12px 0;
}

.integration-config-grid {
  align-items: start;
}

.integration-config-panel .check-list {
  margin-top: 10px;
}

.twilio-panel {
  min-width: 0;
}

.twilio-status-grid {
  margin: 10px 0;
}

.twilio-config-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.twilio-config-list .status-line {
  min-width: 0;
}

.secret-config-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.secret-config-form input[type="password"] {
  font-family: inherit;
}

.kpi-studio {
  align-items: start;
}

.kpi-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px;
}

.kpi-card {
  min-height: 124px;
  width: 100%;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.kpi-card:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.kpi-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.kpi-card .kpi-card-meta {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  word-break: break-word;
}

.kpi-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.9rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.kpi-card-name {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kpi-card-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.kpi-card.risk {
  border-color: #efc5c2;
  background: #fff8f7;
}

.kpi-detail-panel {
  grid-column: 1 / -1;
  margin-top: 0;
}

.link-button {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 850;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.link-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.dossier-table-link {
  font-size: 0.9rem;
}

.planning-template-field {
  margin-top: 10px;
}

.application-landscape {
  margin-top: 10px;
}

.landscape-layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 10px;
}

.landscape-layers article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
}

.landscape-layers strong,
.landscape-layers span {
  display: block;
}

.landscape-layers span {
  margin-top: 6px;
  color: var(--brand);
  font-weight: 780;
}

.landscape-layers p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.employee-toolbar,
.planning-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.employee-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
  padding: 10px;
}

.employee-filter-bar.compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.employee-filter-bar .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.employee-filter-bar.compact .employee-filter-search {
  grid-column: span 2;
}

.employee-filter-bar label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.employee-filter-bar label span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
}

.employee-filter-bar input,
.employee-filter-bar select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbdce4;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

.employee-directory {
  display: grid;
  gap: 10px;
}

.employee-directory-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.employee-directory-head > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.employee-directory-head strong {
  display: block;
  font-size: 1.25rem;
}

.employee-directory-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.employee-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.employee-table {
  min-width: 980px;
  border-collapse: collapse;
}

.employee-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #29455b;
  background: #eef6f8;
}

.employee-table th,
.employee-table td {
  padding: 10px 12px;
}

.employee-row {
  cursor: pointer;
}

.employee-row:hover td {
  background: #f8fbfc;
}

.employee-row.active td {
  background: #edf7fb;
  box-shadow: inset 3px 0 0 var(--brand-2);
}

.employee-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-person span,
.employee-table td > span,
.muted-line {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.capacity-stack {
  display: grid;
  min-width: 150px;
  gap: 5px;
}

.capacity-stack small {
  color: var(--muted);
}

.activity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.activity-table-wrap,
.activity-matrix-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.activity-table,
.activity-matrix {
  min-width: 1280px;
  border-collapse: collapse;
}

.activity-table th,
.activity-matrix th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #29455b;
  background: #eef6f8;
}

.activity-table th,
.activity-table td,
.activity-matrix th,
.activity-matrix td {
  padding: 10px 12px;
  max-width: 280px;
  overflow-wrap: anywhere;
}

.activity-row input:not([type="checkbox"]) {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbdce4;
  border-radius: 7px;
  padding: 8px 9px;
}

.activity-row small,
.activity-matrix td span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.duration-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(70px, 1fr));
  gap: 8px;
}

.duration-inputs label {
  display: grid;
  gap: 4px;
}

.duration-inputs label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.activity-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.activity-template-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.activity-template-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.activity-template-card h3 {
  margin: 0;
}

.activity-stack,
.activity-mini-list {
  display: grid;
  gap: 7px;
}

.activity-stack > div,
.activity-mini-list span {
  min-width: 0;
  border: 1px solid #dce8ee;
  border-radius: 7px;
  background: #f8fbfc;
  padding: 8px;
  overflow-wrap: anywhere;
}

.activity-mini-list small {
  color: var(--muted);
  font-weight: 760;
}

.planning-period-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 210px;
}

.planning-period-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.planning-period-fields label span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.planning-period-fields input,
.planning-expert-select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbdce4;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 7px 8px;
}

.planning-period-fields small {
  grid-column: 1 / -1;
}

.planning-expert-select {
  min-width: 230px;
  max-width: 100%;
  min-height: 86px;
  resize: vertical;
}

.activity-capacity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.activity-capacity-summary > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.activity-capacity-summary strong {
  display: block;
  font-size: 1.3rem;
}

.activity-capacity-summary span {
  color: var(--muted);
  font-size: 0.82rem;
}

.event-pill em {
  display: inline-block;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #29455b;
  padding: 1px 6px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 850;
}

.super-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.super-hero > div:first-child,
.architecture-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.super-hero h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.03;
  letter-spacing: 0;
  max-width: 760px;
}

.super-hero p {
  max-width: 780px;
  color: var(--muted);
}

.architecture-map {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(18, 59, 93, 0.08), rgba(10, 141, 143, 0.08)),
    #fff;
}

.map-node,
.map-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(18, 59, 93, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 11px 12px;
  font-weight: 850;
  color: #15344d;
}

.map-node.primary {
  background: #123b5d;
  color: #fff;
}

.map-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.spec-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(180px, 240px) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.spec-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #f8fbfc;
}

.spec-toolbar input,
.spec-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: 0;
}

.spec-toolbar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 0 10px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.spec-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
}

.spec-card header span {
  display: inline-flex;
  border-radius: 999px;
  background: #e8f4f5;
  color: #0b6b78;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 850;
}

.spec-card h3 {
  margin: 10px 0 0;
  font-size: 1.05rem;
}

.spec-card p,
.spec-card li {
  color: var(--muted);
  font-size: 0.92rem;
}

.spec-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.spec-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: #f8fbfc;
  color: #476173;
  font-size: 0.76rem;
  font-weight: 800;
}

.super-role-panel {
  margin-bottom: 14px;
}

.role-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 12px;
}

.role-admin-grid .role-button {
  min-height: 66px;
  background: #fff;
}

.role-admin-grid .status-chip {
  margin-left: auto;
}

.super-section {
  margin-top: 14px;
}

.compact-table {
  max-height: 480px;
  overflow: auto;
}

.compact-table table {
  min-width: 760px;
}

.afas-readiness {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.afas-readiness article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 13px;
}

.afas-readiness article > span {
  display: block;
  color: #0b6b78;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.afas-readiness h4 {
  min-height: 42px;
  margin: 7px 0 8px;
  font-size: 0.95rem;
}

.afas-readiness p {
  color: var(--muted);
  font-size: 0.86rem;
}

.numbered-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px;
}

.source-list a {
  display: inline-flex;
  color: #0b6b78;
  font-weight: 900;
  text-decoration: none;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.download-hero > div:first-child,
.download-device,
.download-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.download-hero > div:first-child {
  padding: 24px;
}

.download-hero h2 {
  max-width: 760px;
  margin: 4px 0 10px;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.04;
}

.download-hero p {
  max-width: 780px;
  color: var(--muted);
}

.download-device {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(18, 59, 93, 0.09), rgba(10, 141, 143, 0.08)),
    #fff;
}

.device-frame {
  width: min(100%, 360px);
  border: 12px solid #102033;
  border-radius: 22px;
  background: #102033;
  box-shadow: 0 24px 55px rgba(16, 32, 51, 0.2);
}

.device-bar {
  width: 60px;
  height: 5px;
  margin: 2px auto 10px;
  border-radius: 99px;
  background: #6f8494;
}

.device-screen {
  display: grid;
  min-height: 190px;
  place-items: center;
  gap: 8px;
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(234, 246, 248, 0.96)),
    #f7fafb;
  padding: 22px;
  text-align: center;
}

.device-screen svg {
  width: 42px;
  height: 42px;
  color: var(--brand);
}

.device-screen strong {
  font-size: 1.35rem;
}

.device-screen small {
  max-width: 250px;
  color: var(--muted);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.download-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.download-card h3 {
  margin: 8px 0 0;
  font-size: 1.08rem;
}

.download-card p {
  margin: 0;
  color: var(--muted);
}

.download-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #e8f4f5;
  color: var(--brand);
}

.download-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.download-meta div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.download-meta dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.download-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.download-card .btn {
  margin-top: auto;
  justify-content: center;
}

.download-section {
  margin-top: 14px;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.pwa-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pwa-steps span {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px;
  color: #24455c;
  font-weight: 850;
}

.source-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.tele-ops-hero,
.tele-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.tele-session-grid,
.project-batch-list,
.bluegen-list,
.invoice-recognition-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.tele-card,
.project-batch-card,
.bluegen-card,
.invoice-recognition-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbfc);
  padding: 14px;
}

.tele-card header,
.project-batch-card header,
.bluegen-card header,
.invoice-recognition-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.project-batch-card header,
.bluegen-card header,
.invoice-recognition-card header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.tele-card header span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #e8f4f5;
  color: var(--brand);
}

.tele-card strong,
.project-batch-card strong,
.bluegen-card strong,
.invoice-recognition-card strong {
  overflow-wrap: anywhere;
}

.tele-card small,
.project-batch-card small,
.bluegen-card small,
.invoice-recognition-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tele-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.tele-card dl div {
  min-width: 0;
  background: #fff;
  padding: 10px;
}

.tele-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tele-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 820;
  overflow-wrap: anywhere;
}

.tele-card p,
.bluegen-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.project-batch-card .capacity-bar,
.invoice-recognition-card .capacity-bar {
  margin: 0;
}

.finance-afas-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
}

.finance-afas-strip > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.finance-afas-strip strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
}

.finance-afas-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.finance-afas-strip .btn {
  align-self: stretch;
  justify-content: center;
}

.employee-grid,
.customer-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.employee-card,
.customer-card,
.media-card,
.route-proposal,
.plan-card,
.planner-lane,
.plan-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.employee-card,
.expert-pool-card,
.plan-card,
.route-proposal {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.employee-card:hover,
.expert-pool-card:hover,
.plan-card:hover,
.route-proposal:hover {
  border-color: #a9c3d2;
  box-shadow: 0 14px 34px rgba(17, 32, 51, 0.1);
  transform: translateY(-1px);
}

.employee-card.active,
.customer-card.active {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(10, 141, 143, 0.14);
}

.employee-card button,
.customer-card button,
.media-card button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: transparent;
  color: inherit;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.employee-card button > span,
.customer-card button > span,
.media-card button > span {
  min-width: 0;
}

.avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--avatar-bg, var(--brand));
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.avatar {
  width: 38px;
  height: 38px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  font-size: 1.5rem;
}

.employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-capacity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.profile-capacity div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px;
}

.profile-capacity strong {
  display: block;
  font-size: 1.15rem;
}

.profile-capacity span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}

.skill-row span {
  border-radius: 999px;
  background: #edf7fb;
  color: var(--brand);
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 760;
}

.capacity-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.capacity-bar {
  height: 7px;
  margin: 0 12px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eff3;
}

.capacity-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-2), #2f9f7e);
}

.capacity-bar.amber span {
  background: linear-gradient(90deg, #d88616, #f2b84b);
}

.capacity-bar.red span {
  background: linear-gradient(90deg, #b3261e, #e56a61);
}

.employee-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.data-sheet,
.availability-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.data-sheet div,
.availability-card div {
  min-width: 0;
  background: #fff;
  padding: 11px;
}

.data-sheet span,
.availability-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.data-sheet strong,
.availability-card strong {
  overflow-wrap: anywhere;
}

.employee-strip {
  display: grid;
  gap: 8px;
}

.employee-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px;
  cursor: grab;
}

.employee-chip span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.planning-cockpit {
  display: grid;
  gap: 14px;
}

.planner-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.planner-kpi {
  min-width: 0;
  border: 1px solid #cfe0e7;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbfc);
  padding: 13px;
}

.planner-kpi span,
.control-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.planner-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 1.65rem;
  line-height: 1;
}

.planner-kpi small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.planning-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
}

.planner-control-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.segmented-control button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c7d8e2;
  border-radius: 6px;
  background: #f7fbfc;
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
}

.segmented-control button.active {
  border-color: var(--brand-2);
  background: #e8f6f7;
  color: var(--brand);
  font-weight: 850;
}

.optimization-stack {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.optimization-stack span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2f4051;
  font-size: 0.9rem;
}

.expert-pool {
  display: grid;
  gap: 10px;
}

.expert-pool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: grab;
}

.expert-pool-card button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.expert-pool-card button span:last-child {
  min-width: 0;
}

.expert-pool-card button small,
.expert-next {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.expert-pool-card .capacity-bar {
  margin: 10px 0 8px;
}

.expert-pool-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.expert-pool-card .skill-row {
  padding: 0 0 8px;
}

.expert-next {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.route-list {
  display: grid;
  gap: 8px;
}

.route-proposal {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.8fr) 92px auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
}

.modern-route-list {
  gap: 10px;
}

.route-case,
.route-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-case div,
.route-person div {
  min-width: 0;
}

.route-case strong,
.route-person strong,
.plan-card strong {
  overflow-wrap: anywhere;
}

.route-case span,
.route-case small,
.route-person span,
.route-person small,
.route-metric span,
.route-reason {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.route-pin {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #eef7fa;
  color: var(--brand);
}

.route-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  gap: 5px;
}

.route-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #8fb6c7;
  box-shadow: 0 0 0 2px #c8dce8;
}

.route-node.start {
  background: var(--brand-2);
  box-shadow: 0 0 0 2px rgba(10, 141, 143, 0.22);
}

.route-node.end {
  background: #f6b640;
  box-shadow: 0 0 0 2px rgba(246, 182, 64, 0.28);
}

.route-track {
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #b9cdd8, #dbe7ec);
}

.route-metric {
  text-align: right;
}

.route-flags {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.route-reason {
  grid-column: 1 / -1;
  margin: -2px 0 0 46px;
}

.dispatch-workbench {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 12px;
}

.dispatch-backlog,
.dispatch-timeline {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
}

.dispatch-backlog {
  padding: 10px;
}

.dispatch-backlog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dispatch-backlog header h3 {
  margin: 0;
}

.dispatch-backlog header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.dispatch-backlog-list {
  display: grid;
  gap: 9px;
  max-height: 640px;
  overflow: auto;
}

.dispatch-timeline {
  overflow: auto;
}

.dispatch-grid {
  min-width: 920px;
  display: grid;
  grid-template-columns: 230px repeat(var(--dispatch-days), minmax(170px, 1fr));
}

.dispatch-corner,
.dispatch-day-head,
.dispatch-person-cell,
.dispatch-day-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.dispatch-corner,
.dispatch-day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 54px;
  background: #eef6f8;
  padding: 10px;
}

.dispatch-corner {
  left: 0;
  z-index: 3;
  font-weight: 850;
}

.dispatch-day-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.dispatch-person-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  min-height: 150px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
}

.dispatch-person-cell span:not(.avatar):not(.employee-avatar span) {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.dispatch-person-cell .capacity-bar {
  margin: 9px 0 0;
}

.dispatch-day-cell {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  background: #fbfdfe;
}

.drop-hint {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed #bdd0dc;
  border-radius: 8px;
  color: var(--muted);
  background: #f7fbfc;
  font-size: 0.82rem;
}

.plan-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
}

.status-plan-board {
  margin-top: 12px;
}

.plan-column {
  min-height: 300px;
  background: #f7fafb;
  padding: 10px;
}

.plan-column header,
.planner-lane header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.plan-column header span,
.planner-lane header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.plan-card {
  display: grid;
  gap: 7px;
  margin-bottom: 9px;
  padding: 10px;
  cursor: grab;
}

.dispatch-day-cell .plan-card,
.dispatch-backlog-list .plan-card {
  margin-bottom: 0;
}

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-card span,
.plan-card small {
  color: var(--muted);
  line-height: 1.35;
}

.plan-card small {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.planner-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.planner-lane {
  min-height: 150px;
  background: #fbfdfe;
  padding: 10px;
}

.modern-calendar {
  margin-top: 0;
}

.agenda-person {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
}

.media-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 44px;
  border: 1px solid #dce8ee;
  border-radius: 6px;
  background: #eef4f6;
  color: var(--brand);
  overflow: hidden;
}

.media-thumb.compact {
  width: 44px;
  height: 36px;
}

.media-thumb svg {
  width: 20px;
  height: 20px;
}

.media-card img.media-image,
.media-thumb img.media-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  background: #fff;
}

.media-thumb.compact img.media-image {
  width: 100%;
  height: 100%;
}

.media-preview img,
.damage-preview img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.media-fallback {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 92px;
  width: 100%;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--muted);
  padding: 10px;
  text-align: center;
}

.media-thumb .media-fallback {
  min-height: 44px;
}

.media-fallback.compact {
  min-height: 36px;
  padding: 6px;
}

.media-fallback svg {
  width: 22px;
  height: 22px;
}

.media-fallback small {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
}

.media-card-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.media-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 12px 12px;
}

.media-card-actions .btn,
.compact-btn {
  min-height: 32px;
  width: auto;
  padding: 7px 9px;
  font-size: 0.8rem;
}

.tablet-capture-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #d7e6ec;
  border-radius: 8px;
  background: #f7fbfc;
  padding: 10px;
}

.media-assessment-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 1px solid #d7e6ec;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 10px;
}

.media-assessment-choice legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.radio-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  border: 1px solid #dce8ee;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.radio-card strong,
.radio-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.radio-card small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.selected-row td {
  background: #f3fafb;
}

.damage-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
}

.damage-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid #d7e6ec;
  border-radius: 8px;
  background: #0c2032;
  overflow: hidden;
}

.damage-preview img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.damage-ai-summary {
  display: grid;
  gap: 10px;
  border: 1px solid #d7e6ec;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
}

.damage-ai-summary p {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.taxonomy-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.taxonomy-list details {
  border: 1px solid #dce8ee;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.taxonomy-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.tablet-capture-note,
.media-evidence-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid #d7e6ec;
  border-radius: 8px;
  background: #f7fbfc;
  padding: 12px;
}

.tablet-capture-note strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tablet-capture-note span {
  color: var(--muted);
  line-height: 1.45;
}

.media-preview {
  display: grid;
  place-items: center;
  min-height: min(58vh, 520px);
  overflow: auto;
  border-radius: 8px;
  background: #f7fafb;
  padding: 10px;
}

.media-preview video,
.media-preview audio {
  display: block;
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
  border-radius: 8px;
  background: #0c2032;
}

.media-preview img.media-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: #fff;
}

.media-preview-frame {
  display: block;
  width: 100%;
  min-height: min(72vh, 780px);
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.media-mini-list {
  display: grid;
  gap: 8px;
}

.media-mini-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.notification-integration-grid,
.video-inspection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.video-inspection-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin-top: 14px;
  margin-bottom: 14px;
}

.notification-integration-card,
.video-session-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.notification-integration-card legend {
  padding: 0 6px;
  color: var(--brand);
  font-weight: 850;
}

.notification-integration-card .field.full,
.notification-integration-grid > .full {
  grid-column: 1 / -1;
}

.integration-provider-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.video-session-list {
  display: grid;
  gap: 10px;
}

.video-session-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-mode-hidden {
  display: none !important;
}

.video-schedule-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(10, 141, 143, 0.26);
  border-radius: 8px;
  background: #f4fbfb;
}

.video-schedule-card legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 850;
}

.video-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  gap: 10px;
  align-items: start;
}

.video-schedule-grid .field,
.video-schedule-grid input {
  min-width: 0;
  width: 100%;
}

.phone-prefix-field {
  min-width: 0;
}

.phone-prefix-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  background: #eef6f8;
  color: var(--brand);
  font-weight: 900;
  user-select: none;
}

.phone-prefix-input input[type="tel"] {
  min-width: 0;
  min-height: 42px;
  border: 0;
  padding: 9px 11px;
  background: transparent;
}

.video-access-panel {
  margin-top: 14px;
}

.video-access-panel select[multiple] {
  min-height: 152px;
  padding: 8px;
}

.video-access-panel option {
  padding: 6px 8px;
}

.video-invite-panel textarea {
  min-height: 96px;
}

.public-video-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 53, 87, 0.08), rgba(10, 141, 143, 0.10)),
    #f6fafb;
}

.public-video-card {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 30px);
}

.public-video-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.public-video-brand img {
  width: 46px;
  height: 46px;
}

.public-video-brand h1 {
  margin: 2px 0 6px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.public-video-form {
  align-items: start;
}

.public-consent-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.public-consent-box legend {
  padding: 0 6px;
  color: var(--brand);
  font-weight: 850;
}

.checkbox-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #dfe8ed;
  border-radius: 8px;
  background: #f8fbfc;
  line-height: 1.45;
}

.checkbox-card input {
  margin-top: 3px;
}

.form-error {
  color: #8a1f2d;
  font-weight: 750;
}

.public-video-stage {
  min-height: min(58vh, 520px);
}

.video-call-workspace {
  width: min(100%, 1480px);
  max-width: 1480px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.video-call-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.video-call-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  height: min(62vh, 680px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #0c2032;
  touch-action: manipulation;
}

.video-call-stage video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #0c2032;
}

.video-call-stage:not(.remote-active) .video-remote {
  display: none;
}

.video-call-stage.remote-active .video-remote {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.video-remote-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c2032;
}

.video-call-stage.frame-fallback-active .video-remote {
  opacity: 0;
}

.video-call-stage.remote-active .video-local {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: min(28%, 180px);
  min-width: 104px;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.video-call-stage.screen-sharing {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.92), 0 22px 70px rgba(0, 0, 0, 0.28);
}

.video-call-stage.screen-sharing::before {
  content: "Scherm wordt gedeeld";
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 7;
  max-width: min(260px, calc(100% - 28px));
  border: 1px solid rgba(183, 243, 226, 0.82);
  border-radius: 999px;
  background: rgba(4, 47, 46, 0.88);
  color: #ecfdf5;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.video-call-stage.screen-sharing::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 6;
  border: 2px dashed rgba(183, 243, 226, 0.92);
  border-radius: 10px;
  pointer-events: none;
}

.video-call-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #d8e8ef;
  background: linear-gradient(135deg, rgba(12, 32, 50, 0.96), rgba(18, 59, 93, 0.92));
  text-align: center;
}

.video-stage-hitarea {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.video-action-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.video-annotation-toolbar {
  align-items: center;
}

.video-annotation-options {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px;
  background: rgba(8, 23, 35, 0.62);
  color: #fff;
  backdrop-filter: blur(10px);
}

.video-annotation-palette {
  display: inline-grid;
  grid-template-columns: repeat(6, 28px);
  gap: 5px;
  align-items: center;
}

.video-annotation-swatch {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 2px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background: var(--swatch-color, #ffcf33);
  box-shadow: 0 0 0 1px rgba(8, 23, 35, 0.42);
  cursor: pointer;
}

.video-annotation-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(10, 141, 143, 0.65);
}

.video-annotation-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.video-annotation-color input[type="color"] {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.video-annotation-size {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: min(150px, 34vw);
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
}

.video-annotation-size input[type="range"] {
  min-width: 72px;
  width: clamp(72px, 12vw, 126px);
  accent-color: var(--focus);
}

.video-call-stage.actions-open .video-action-overlay,
.video-call-stage:focus-within .video-action-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn.glass {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(8, 23, 35, 0.72);
  color: #fff;
  backdrop-filter: blur(10px);
}

.video-device-selector {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(16, 32, 51, .12);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--ink);
  overflow: hidden;
}

.video-device-selector > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.video-device-selector > summary::-webkit-details-marker {
  display: none;
}

.video-device-selector > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .72;
}

.video-device-selector[open] > summary::after {
  transform: rotate(225deg);
}

.video-device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.video-device-selector .field {
  min-width: 0;
}

.video-device-selector .field span {
  color: var(--muted);
}

.video-device-selector select {
  width: 100%;
  min-width: 0;
}

.video-device-selector .helper {
  margin: -2px 12px 12px;
  color: var(--muted);
}

.video-action-overlay .video-device-selector,
.video-actions-menu-list .video-device-selector {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(8, 23, 35, .82);
  color: #fff;
  box-shadow: none;
}

.video-action-overlay .video-device-selector .field span,
.video-action-overlay .video-device-selector .helper,
.video-actions-menu-list .video-device-selector .field span,
.video-actions-menu-list .video-device-selector .helper {
  color: rgba(255, 255, 255, .78);
}

.video-actions-menu-list .video-device-grid,
.video-action-overlay .video-device-grid {
  grid-template-columns: minmax(0, 1fr);
}

.public-video-lobby {
  width: min(980px, 100%);
  margin-inline: auto;
}

.public-video-lobby .public-video-waiting-preview {
  min-height: min(64svh, 560px);
  height: min(64svh, 560px);
}

.video-annotation-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.video-call-stage.annotation-active {
  cursor: crosshair;
}

.video-call-stage.camera-active .video-call-placeholder {
  display: none;
}

.video-stage-status {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.video-connection-quality,
.video-remote-tile-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: #f8fbfc;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.connection-good {
  border-color: rgba(32, 120, 90, .35);
  background: rgba(32, 120, 90, .10);
  color: #176245;
}

.connection-warning {
  border-color: rgba(182, 106, 0, .38);
  background: rgba(182, 106, 0, .10);
  color: #7a4b00;
}

.connection-bad {
  border-color: rgba(179, 38, 30, .38);
  background: rgba(179, 38, 30, .10);
  color: #8a1f18;
}

.video-network-advice {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  border: 1px solid rgba(96, 116, 136, .22);
  border-radius: 8px;
  padding: 6px 10px;
  background: #f8fbfc;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.video-stage-status.public-video-status {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
}

.public-video-quick-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 23, 35, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

.public-video-quick-controls .btn,
.public-video-quick-controls .video-file-control,
.public-video-quick-controls .video-file-button {
  width: 100%;
  min-width: 0;
}

.public-video-quick-controls .btn,
.public-video-quick-controls .video-file-button {
  min-height: 46px;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 999px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}

.public-video-quick-controls .btn svg,
.public-video-quick-controls .video-file-button svg {
  flex: 0 0 auto;
}

.video-mini-call-banner {
  position: fixed;
  left: max(14px, env(safe-area-inset-left, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 180;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(7, 20, 31, .92);
  color: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

.video-mini-call-banner strong,
.video-mini-call-banner span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.video-mini-call-banner strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-mini-call-banner span {
  color: rgba(255, 255, 255, .78);
  font-size: .84rem;
}

body.video-mini-active .video-call-stage {
  outline: 2px solid rgba(73, 219, 204, .55);
  outline-offset: 2px;
}

.video-remote-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.video-remote-tile {
  position: relative;
  width: min(220px, 32vw);
  min-width: 148px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 51, .16);
  border-radius: 8px;
  background: #0c2032;
  box-shadow: 0 14px 34px rgba(17, 32, 51, .14);
}

.video-remote-tile .video-remote-fallback {
  z-index: 1;
}

.video-remote-tile video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c2032;
}

.video-remote-tile-meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
  font-size: .78rem;
}

.video-remote-tile-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-remote-tile-meta span {
  min-height: 24px;
  padding: 3px 7px;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(8, 23, 35, .72);
  color: #fff;
  white-space: nowrap;
}

.video-call-side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.video-collaboration-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-height: min(78vh, 820px);
  overflow: auto;
}

.video-collaboration-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.video-collaboration-card h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
}

.video-chat-log,
.video-file-list,
.video-transcript-log {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  min-width: 0;
}

.video-chat-message,
.video-file-item,
.video-transcript-line {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  overflow-wrap: anywhere;
}

.video-chat-message.own-message {
  background: #eef8f8;
  border-color: rgba(10, 141, 143, 0.28);
}

.video-typing-preview {
  min-height: 20px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.video-typing-preview:not(:empty) {
  padding: 6px 8px;
  border-radius: 6px;
  background: #eef8fa;
}

.video-file-item a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.video-file-item a span {
  overflow-wrap: anywhere;
}

.video-file-drop {
  min-height: 84px;
}

.video-file-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.video-file-control {
  position: relative;
  display: block;
  min-width: 0;
}

.video-file-button {
  position: relative;
  width: 100%;
  min-width: 0;
}

.video-file-native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
}

.video-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.video-command-primary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  min-width: 0;
}

.video-command-bar .btn,
.video-workspace-dock .btn,
.video-actions-menu-list .btn {
  min-width: 0;
  width: 100%;
  justify-content: center;
  white-space: normal;
  line-height: 1.18;
  text-align: center;
}

.video-actions-menu {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.video-actions-menu > summary {
  list-style: none;
}

.video-actions-menu > summary::-webkit-details-marker {
  display: none;
}

.video-actions-menu-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px;
  width: min(560px, calc(100vw - 32px));
  max-height: min(56svh, 420px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(215, 225, 231, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(12, 32, 50, 0.22);
}

.video-command-menu {
  align-self: stretch;
}

.video-command-menu > summary {
  height: 100%;
}

.video-call-control-dock {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 8;
  width: min(680px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(7, 20, 31, 0.76);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.video-call-control-dock .video-command-bar,
.video-call-control-dock .video-command-primary {
  display: contents;
}

.video-control-button {
  min-height: 44px;
  aspect-ratio: 1;
  min-width: 0;
  display: inline-grid;
  grid-template-rows: auto auto;
  place-items: center;
  gap: 3px;
  border-radius: 999px;
  padding: 7px;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1.05;
}

.video-control-button svg {
  width: 18px;
  height: 18px;
}

.video-control-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-call-control-dock .video-actions-menu {
  display: block;
  width: 100%;
  min-width: 0;
}

.video-call-control-dock .video-command-menu > summary {
  height: auto;
}

.video-call-control-dock .video-actions-menu-list {
  bottom: calc(100% + 10px);
  right: 0;
  border-radius: 10px;
}

.video-call-control-dock .video-annotation-options {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
}

.video-workspace-dock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(215, 225, 231, 0.9);
  border-radius: 8px;
  background: #f8fbfc;
  min-width: 0;
}

.video-workspace-panel-popover {
  position: fixed;
  inset: clamp(10px, 2vw, 20px);
  z-index: 125;
  display: grid;
  justify-items: end;
  align-items: stretch;
  pointer-events: none;
}

.video-workspace-panel-card {
  width: min(540px, calc(100vw - 24px));
  max-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: clamp(12px, 1.6vw, 16px);
  border: 1px solid rgba(215, 225, 231, 0.96);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(12, 32, 50, 0.28);
  overflow: hidden;
  pointer-events: auto;
}

.video-workspace-panel-body {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.video-action-overlay .video-actions-menu {
  width: min(100%, 420px);
}

.video-action-overlay .video-actions-menu-list {
  left: 50%;
  right: auto;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgba(8, 23, 35, 0.9);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  backdrop-filter: blur(12px);
}

.video-session-details-popover {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(6, 18, 28, 0.42);
}

.video-session-details-card {
  width: min(680px, 100%);
  max-height: min(86svh, 760px);
  overflow: auto;
  border: 1px solid rgba(215, 225, 231, 0.96);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(12, 32, 50, 0.28);
  padding: clamp(14px, 2vw, 18px);
}

.video-call-workspace.video-stage-expanded {
  grid-template-columns: minmax(0, 1fr);
}

.video-call-workspace.video-stage-expanded .video-call-side {
  display: none;
}

.video-call-workspace.video-stage-expanded .video-call-stage {
  min-height: min(72svh, 820px);
}

.sr-only-input,
.sr-only-action {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
}

.video-participant-panel {
  border-color: rgba(15, 53, 87, 0.16);
  background: #fbfdfe;
}

.video-participant-panel .status-chip {
  white-space: nowrap;
  min-width: fit-content;
}

.video-participant-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.video-participant-form .participant-field,
.video-participant-form .phone-prefix-field {
  min-width: 0;
  width: 100%;
}

.video-participant-form .participant-field input,
.video-participant-form .phone-prefix-input {
  width: 100%;
}

.video-participant-form .phone-prefix-field {
  grid-column: 1 / -1;
}

.video-participant-form .phone-prefix-field small {
  line-height: 1.35;
}

.video-participant-channel-choice {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  align-items: stretch;
  padding: 10px;
}

.video-participant-channel-choice legend {
  grid-column: 1 / -1;
}

.video-participant-channel-choice .radio-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  height: 100%;
  margin: 0;
  align-items: start;
}

.video-participant-channel-choice .radio-card span {
  min-width: 0;
}

.video-participant-channel-choice .radio-card strong,
.video-participant-channel-choice .radio-card small {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.video-participant-submit {
  grid-column: 1 / -1;
  justify-content: stretch;
  width: 100%;
}

.video-participant-submit .btn {
  width: 100%;
  min-height: 44px;
}

.video-participant-list {
  display: grid;
  gap: 8px;
}

.video-participant-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.participant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.mini-button.icon-only {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.mini-button.danger {
  color: #8a1f2d;
  border-color: rgba(138, 31, 45, 0.28);
}

.video-admission-popover {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(10, 141, 143, 0.28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 32, 50, 0.24);
}

.video-admission-popover strong,
.video-admission-popover span {
  display: block;
  overflow-wrap: anywhere;
}

.video-participant-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.full-width {
  width: 100%;
  justify-content: center;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal.modal-wide {
  width: min(94vw, 1120px);
}

.modal.modal-standard {
  width: min(92vw, 740px);
}

.modal.video-call-fullscreen-modal {
  left: 0;
  top: 0;
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: 100svh;
  transform: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 0;
  padding: clamp(10px, 1.2vw, 16px);
  box-sizing: border-box;
}

.modal.video-call-fullscreen-modal .section-title {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.modal.video-call-fullscreen-modal .section-title p:not(.eyebrow) {
  display: none;
}

.video-call-fullscreen-modal .video-call-workspace {
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.video-call-fullscreen-modal .video-call-main,
.video-call-fullscreen-modal .video-call-side {
  min-height: 0;
}

.video-call-fullscreen-modal .video-call-main {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.video-call-fullscreen-modal .video-call-side {
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: auto;
  padding-right: 2px;
}

.video-call-fullscreen-modal .video-call-stage {
  height: 100%;
  min-height: 420px;
  aspect-ratio: auto;
}

.video-call-fullscreen-modal .button-row,
.video-call-fullscreen-modal .video-command-primary,
.video-call-fullscreen-modal .video-workspace-dock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  max-height: min(30svh, 180px);
  overflow: visible;
  overscroll-behavior: contain;
}

.video-call-fullscreen-modal .button-row .btn,
.video-call-fullscreen-modal .video-command-bar .btn,
.video-call-fullscreen-modal .video-workspace-dock .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.video-call-fullscreen-modal .video-call-control-dock .video-command-bar,
.video-call-fullscreen-modal .video-call-control-dock .video-command-primary {
  display: contents;
  max-height: none;
  overflow: visible;
}

.context-menu {
  position: fixed;
  z-index: 95;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 7px;
}

.context-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.context-menu button:hover {
  background: #f2f7f9;
}

.empty.compact {
  padding: 12px;
  font-size: 0.84rem;
}

/* Compacte werkinterface: minder blokmassa, meer scanbare bedrijfsapplicatie. */
.content {
  padding-top: 14px;
}

.section-title {
  align-items: flex-start;
  margin: 10px 0 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(215, 225, 231, 0.82);
}

.section-title h2 {
  font-size: 1.38rem;
}

.section-title p {
  max-width: 760px;
  font-size: 0.94rem;
}

.panel,
.card,
.table-wrap,
.workflow {
  border-color: #dbe6ec;
  box-shadow: 0 1px 2px rgba(17, 32, 51, 0.04), 0 8px 20px rgba(17, 32, 51, 0.035);
}

.panel,
.card {
  padding: 12px;
}

.panel-head {
  gap: 10px;
  margin-bottom: 10px;
}

.panel-head h3,
.card h3,
.panel h3 {
  margin-bottom: 5px;
}

.metric-card {
  min-height: 104px;
  gap: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
}

.metric-head {
  align-items: center;
}

.metric-head svg {
  color: #607488;
}

.metric-value {
  font-size: clamp(1.58rem, 2.2vw, 1.96rem);
}

.metric-foot {
  line-height: 1.32;
}

th,
td {
  padding: 9px 10px;
}

.table-wrap {
  box-shadow: 0 1px 2px rgba(17, 32, 51, 0.035);
}

.video-inspection-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.video-schedule-card {
  gap: 7px;
  padding: 10px;
  background: #f8fcfd;
}

.video-session-card,
.notification-integration-card {
  gap: 8px;
  padding: 10px;
  background: #fff;
}

.video-session-list {
  gap: 8px;
}

.media-assessment-choice {
  gap: 8px;
  padding: 8px;
  background: #fbfdfe;
}

.radio-card {
  padding: 8px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .drawer.sidebar.open {
    display: flex;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .hero-band,
  .split,
  .report-workbench,
  .studio-hero-panel,
  .expertise-layout,
  .damage-detail-grid,
  .module-board,
  .relation-summary-grid,
  .dispatch-workbench,
  .planning-control-grid,
  .planner-lanes,
  .super-hero,
  .download-hero,
  .login-page {
    grid-template-columns: 1fr;
  }

  .planner-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-filter-bar,
  .employee-filter-bar.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dossier-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-grid,
  .download-grid,
  .pwa-steps,
  .media-assessment-choice,
  .filter-toolbar,
  .tele-ops-hero,
  .video-inspection-grid,
  .video-call-workspace,
  .tele-section,
  .finance-afas-strip,
  .intake-attachment-grid,
  .intake-settings-grid,
  .notification-integration-grid,
  .afas-readiness,
  .afas-operation-grid,
  .process-lifecycle-grid,
  .process-grid,
  .process-step-grid,
  .kpi-definition-grid,
  .support-action-grid,
  .support-modal-grid,
  .role-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-filter-search {
    grid-column: 1 / -1;
  }

  .dispatch-grid {
    min-width: 860px;
  }

  .record-switcher {
    position: static;
  }

  .login-visual,
  .login-panel {
    min-height: auto;
  }

  .login-visual {
    min-height: 430px;
  }
}

@media (max-width: 860px) {
  .content,
  .topbar {
    padding: 16px;
  }

  .hero-band {
    grid-template-columns: 1fr;
    margin: -16px -16px 16px;
  }

  .dashboard-hero {
    min-height: auto;
    padding-bottom: 28px;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .process-grid,
  .process-lifecycle-grid,
  .process-step-grid,
  .workflow-step-columns,
  .process-flow-strip,
  .field-catalog,
  .kpi-definition-grid,
  .support-action-grid,
  .support-modal-grid,
  .dossier-field-grid,
  .dossier-field-grid.secondary,
  .afas-operation-grid,
  .offer-choice-grid,
  .template-library-grid,
  .agent-grid,
  .report-meta-grid,
  .report-financials,
  .extended-front-grid,
  .report-layout-summary ol,
  .report-checks,
  .attachment-grid,
  .intake-attachment-grid,
  .intake-settings-grid,
  .field-visibility-group > div,
  .studio-metrics,
  .reference-grid,
  .employee-grid,
  .customer-grid,
  .media-grid,
  .media-assessment-choice,
  .filter-toolbar,
  .damage-detail-grid,
  .data-sheet,
  .availability-card,
  .download-grid,
  .pwa-steps,
  .tele-ops-hero,
  .tele-section,
  .finance-afas-strip,
  .organization-admin-metrics,
  .crm-dossier-strip,
  .search-hero,
  .search-hero-metrics,
  .search-layout,
  .search-result-card,
  .journey-command,
  .journey-select-block,
  .journey-kpis,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .intake-section .form-grid.compact {
    grid-template-columns: 1fr;
  }

  .planning-legend-modern span {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .planning-legend-modern small {
    grid-column: 2;
  }

  .media-preview {
    min-height: auto;
    padding: 8px;
  }

  .organization-admin-card header {
    display: grid;
  }

  .journey-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-toolbar button {
    justify-content: center;
  }

  .journey-step header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .journey-step header .status-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .extended-report-cover,
  .report-footer {
    display: block;
  }

  .extended-report-contact {
    min-width: 0;
    margin-top: 12px;
    text-align: left;
  }

  .hero-metrics,
  .dashboard-metrics,
  .role-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }

  .search {
    flex-basis: 100%;
    order: 3;
  }

  .customer-switch,
  .user-menu-wrap,
  .topbar-action {
    flex: 1 1 min(100%, 260px);
  }

  .customer-switch {
    flex: 1 1 280px;
  }

  .user-menu-wrap,
  .topbar-action {
    flex: 0 1 auto;
  }

  .topbar-action {
    min-height: 40px;
    padding-inline: 12px;
  }

  .customer-switch select {
    max-width: none;
  }

  .user-chip {
    width: 100%;
    justify-content: center;
  }

  .topbar-action {
    justify-content: center;
  }

  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 92px;
    padding: 11px;
  }

  .metric-value {
    font-size: 1.68rem;
  }

  .video-inspection-grid {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .email-item {
    grid-template-columns: 1fr;
  }

  .check-grid,
  .report-card {
    grid-template-columns: 1fr;
  }

  .report-cover,
  .report-footer,
  .panel-head {
    display: block;
  }

  .report-card-actions {
    justify-content: flex-start;
  }

  .route-proposal {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .planner-kpis,
  .profile-capacity {
    grid-template-columns: 1fr;
  }

  .employee-filter-bar,
  .employee-filter-bar.compact,
  .employee-directory-head,
  .activity-capacity-summary,
  .activity-template-grid,
  .tele-card dl,
  .tablet-capture-options,
  .spec-toolbar,
  .spec-grid,
  .afas-readiness,
  .process-grid,
  .process-lifecycle-grid,
  .process-step-grid,
  .workflow-step-columns,
  .process-flow-strip,
  .field-catalog,
  .kpi-definition-grid,
  .support-action-grid,
  .support-modal-grid,
  .map-row,
  .role-admin-grid,
  .dossier-vakgroep-grid,
  .dossier-structure-kpis,
  .dossier-process-strip,
  .participant-grid {
    grid-template-columns: 1fr;
  }

  .dossier-structure-head,
  .dossier-node {
    display: block;
  }

  .dossier-node-meta {
    justify-items: start;
    margin-top: 8px;
  }

  .employee-filter-search {
    grid-column: auto;
  }

  .employee-table {
    min-width: 940px;
  }

  .activity-table,
  .activity-matrix {
    min-width: 980px;
  }

  .module-panel.fullscreen {
    inset: 8px;
    max-height: calc(100vh - 16px);
  }

  .module-panel-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .panel-tools {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .route-flags {
    justify-items: start;
  }

  .route-reason {
    margin-left: 0;
  }

  .dispatch-backlog-list {
    max-height: none;
  }

  .customer-switch {
    flex: 1 1 auto;
  }
}

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

@media (max-width: 1024px) {
  html,
  body,
  #app {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .video-inspection-grid,
  .video-call-workspace,
  .notification-integration-grid {
    grid-template-columns: 1fr;
  }

  .video-call-fullscreen-modal .video-call-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }

  .video-call-fullscreen-modal .video-call-stage {
    min-height: 0;
    height: 100%;
  }

  .video-session-card header,
  .compact-actions,
  .button-row {
    flex-wrap: wrap;
  }

  .video-session-card .btn,
  .video-invite-panel .btn,
  .public-video-card .btn {
    min-height: 44px;
  }
}

@media (min-width: 1440px) {
  .video-call-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-call-stage {
    height: min(64vh, 760px);
  }
}

@media (max-width: 640px) {
  .public-video-page {
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #06121c;
  }

  .public-video-room {
    position: relative;
    display: grid;
    grid-template-rows: minmax(320px, auto) auto auto auto;
    gap: 8px;
    height: auto;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: 8px;
    overflow: visible;
  }

  .public-video-card:not(.public-video-room),
  .panel,
  .module-panel,
  .modal {
    width: 100%;
    max-width: 100%;
  }

  .public-video-card:not(.public-video-room) {
    min-height: 100dvh;
    max-height: none;
    overflow-y: auto;
    border-radius: 0;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .public-video-form .button-row {
    position: sticky;
    bottom: 0;
    z-index: 8;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 24%);
  }

  .public-video-brand,
  .video-session-card header {
    align-items: flex-start;
  }

  .public-video-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .form-grid,
  .form-grid.compact,
  .notification-integration-grid,
  .video-inspection-grid,
  .video-call-workspace,
  .public-video-workspace,
  .video-schedule-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-command-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-command-primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-call-control-dock {
    width: calc(100% - 16px);
    grid-template-columns: repeat(3, minmax(44px, 1fr));
    gap: 6px;
    padding: 6px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .video-call-control-dock .video-command-bar,
  .video-call-control-dock .video-command-primary {
    display: contents;
  }

  .video-control-button {
    min-height: 44px;
    padding: 6px 4px;
    font-size: .62rem;
  }

  .video-workspace-dock {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
  }

  .video-workspace-panel-popover {
    inset: 8px;
    padding: 8px;
  }

  .video-workspace-panel-card {
    width: 100%;
    max-height: calc(100svh - 16px);
  }

  .video-participant-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-participant-channel-choice {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-participant-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .participant-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(38px, 1fr));
    justify-content: stretch;
  }

  .participant-actions .btn {
    width: 100%;
  }

  .grid.cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric-card {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
  }

  .metric-head {
    grid-column: 2;
    grid-row: 1;
  }

  .metric-value {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    min-width: 2ch;
    font-size: 1.5rem;
  }

  .metric-foot {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.78rem;
  }

  .topbar {
    gap: 8px;
    padding: 10px;
  }

  .search input {
    min-height: 40px;
  }

  .panel,
  .card {
    padding: 10px;
  }

  .video-call-stage {
    min-height: 320px;
    height: min(58dvh, 520px);
    aspect-ratio: auto;
  }

  .video-call-stage video {
    min-height: 0;
  }

  .video-stage-status {
    grid-template-columns: minmax(0, 1fr);
  }

.video-stage-status.public-video-status {
  grid-template-columns: minmax(0, 1fr);
}

.public-video-quick-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 23, 35, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

  .public-video-quick-controls .btn,
  .public-video-quick-controls .video-file-control,
  .public-video-quick-controls .video-file-button {
    width: 100%;
    min-width: 0;
  }

  .public-video-quick-controls .btn,
  .public-video-quick-controls .video-file-button {
    min-height: 52px;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 18px;
    font-size: clamp(0.72rem, 2.8vw, 0.88rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .public-video-quick-controls .btn svg,
  .public-video-quick-controls .video-file-button svg {
    flex: 0 0 auto;
  }

  .video-mini-call-banner {
    grid-template-columns: minmax(0, 1fr);
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .video-network-advice {
    width: 100%;
    font-size: .78rem;
  padding: 6px 8px;
}

  .video-remote-strip {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .video-remote-tile {
    width: 156px;
    min-width: 156px;
  }

  .video-device-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-actions-menu-list .video-device-selector,
  .video-action-overlay .video-device-selector {
    width: 100%;
  }

  .public-video-room .public-video-brand {
    position: absolute;
    left: 12px;
    top: 10px;
    z-index: 7;
    max-width: calc(100% - 24px);
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(6, 18, 28, 0.64);
    color: #fff;
    backdrop-filter: blur(10px);
  }

  .public-video-room .public-video-brand img {
    width: 34px;
    height: 34px;
  }

  .public-video-room .public-video-brand h1,
  .public-video-room .public-video-brand p {
    color: #fff;
  }

  .public-video-workspace {
    min-height: clamp(320px, 64dvh, 620px);
    height: auto;
    grid-template-rows: minmax(280px, 1fr) auto;
    align-content: start;
    gap: 8px;
    overflow: visible;
  }

  .public-video-workspace > div {
    min-height: clamp(280px, 56dvh, 560px);
  }

  .public-video-stage,
  .public-video-waiting-preview {
    min-height: clamp(280px, 56dvh, 560px);
    height: clamp(280px, 56dvh, 560px);
    border-radius: 8px;
  }

  .video-call-stage.remote-active .video-local {
    width: 112px;
    right: 10px;
    bottom: 10px;
  }

  .video-collaboration-panel {
    max-height: none;
  }

  .public-video-room .video-collaboration-panel {
    max-height: min(30dvh, 280px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .public-video-lobby {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .public-video-lobby .public-video-waiting-preview {
    min-height: clamp(280px, 56dvh, 560px);
    height: clamp(280px, 56dvh, 560px);
  }

  .video-file-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .button-row .btn,
  .video-invite-panel .btn,
  .public-video-card .btn {
    width: 100%;
    justify-content: center;
  }

  .video-action-overlay {
    display: flex;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .video-action-overlay .btn,
  .video-action-overlay .video-actions-menu,
  .video-annotation-options {
    width: 100%;
    min-width: 0;
  }

  .video-actions-menu {
    width: 100%;
  }

  .video-actions-menu-list {
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    transform: none;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-height: min(62svh, 440px);
  }

  .video-action-overlay .video-actions-menu-list {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
  }

  .video-annotation-options {
    grid-column: 1 / -1;
    justify-content: center;
    border-radius: 8px;
  }

  .modal.video-call-fullscreen-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    padding: 8px;
  }

  .video-call-fullscreen-modal .video-call-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(180px, 38svh);
    overflow: hidden;
  }

  .video-call-fullscreen-modal .video-call-stage {
    min-height: 0;
    height: 100%;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .offer-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .compact-toolbar,
  .offer-form-panel .panel-head,
  .offer-form-panel .button-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-list {
    max-height: none;
  }
}

.video-relay-panel {
  display: grid;
  gap: 14px;
}

.video-relay-panel .relay-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.video-relay-panel .relay-status-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.video-relay-panel .relay-status-grid span,
.video-relay-panel .relay-preflight-result small {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.video-relay-panel .relay-status-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.video-relay-panel .relay-preflight-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.video-relay-panel .relay-preflight-result p {
  margin: 2px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.video-relay-panel .relay-preflight-result.ok {
  border-color: rgba(21, 128, 61, .35);
  background: rgba(220, 252, 231, .55);
}

.video-relay-panel .relay-preflight-result.pending {
  border-color: rgba(180, 83, 9, .35);
  background: rgba(254, 243, 199, .55);
}

.video-relay-panel .relay-preflight-result.error {
  border-color: rgba(185, 28, 28, .35);
  background: rgba(254, 226, 226, .55);
}

@media (orientation: landscape) and (max-width: 920px) {
  .public-video-room {
    height: auto;
    min-height: 100dvh;
    padding: 8px;
    overflow: visible;
  }

  .public-video-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 34vw);
    grid-template-rows: none;
    height: auto;
    min-height: clamp(300px, 80dvh, 640px);
    overflow: visible;
  }

  .public-video-stage {
    height: clamp(300px, 80dvh, 640px);
    min-height: clamp(300px, 80dvh, 640px);
  }

  .public-video-room .video-collaboration-panel {
    max-height: calc(100dvh - 16px);
  }

  .public-video-room .public-video-brand {
    max-width: 46vw;
  }
}
