@font-face {
  font-family: "Transpair Montserrat";
  src: url("/assets/fonts/transpair-montserrat-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Transpair Montserrat";
  src: url("/assets/fonts/transpair-montserrat-bold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700 900;
}

:root {
  color-scheme: light;
  --brand-blue: #003a96;
  --brand-blue-soft: #e5f0fe;
  --brand-blue-soft-2: #c8e0fe;
  --brand-navy: #001d4b;
  --brand-orange: #f68712;
  --brand-orange-dark: #d46f0c;
  --brand-gray: #a4a8a8;
  --brand-charcoal: #1b1b1e;
  --ink: #1b1b1e;
  --muted: #626a73;
  --line: #d7dde5;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-blue: #f2f7ff;
  --nav: #001d4b;
  --nav-2: #003a96;
  --blue: var(--brand-blue);
  --green: #177245;
  --amber: var(--brand-orange);
  --red: #b42318;
  --violet: #6941c6;
  --font-brand: "Transpair Montserrat", Arial, Helvetica, sans-serif;
  --shadow: 0 18px 48px rgba(0, 29, 75, .10);
  --shadow-soft: 0 10px 28px rgba(0, 29, 75, .07);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: var(--font-brand);
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  grid-template-columns: auto;
  color: var(--muted);
  text-align: center;
  padding: 36px 20px;
  overflow: hidden;
  animation: loadingScreenFade .42s ease-out both;
}

.loading-logo {
  width: min(260px, 70vw);
  height: auto;
  animation: loadingLogoFloat 2.8s ease-in-out infinite;
}

.loading-screen > div:not(.loading-mark):not(.brand-mark) {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.loading-screen > div:not(.loading-mark):not(.brand-mark)::after {
  content: "";
  width: min(148px, 42vw);
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(0, 58, 150, .12),
      var(--brand-blue),
      var(--brand-orange),
      rgba(0, 58, 150, .12));
  background-size: 220% 100%;
  box-shadow: 0 8px 22px rgba(0, 58, 150, .12);
  animation: loadingProgress 1.55s ease-in-out infinite;
}

.loading-mark,
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--brand-blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.loading-mark {
  animation: loadingMarkPulse 1.8s ease-in-out infinite;
}

.loading-screen strong,
.loading-screen span {
  display: block;
}

@keyframes loadingScreenFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadingLogoFloat {
  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(0, 58, 150, 0));
  }
  50% {
    transform: translateY(-5px);
    filter: drop-shadow(0 12px 18px rgba(0, 58, 150, .10));
  }
}

@keyframes loadingProgress {
  0% {
    background-position: 120% 50%;
    opacity: .62;
    transform: scaleX(.72);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    background-position: -120% 50%;
    opacity: .62;
    transform: scaleX(.72);
  }
}

@keyframes loadingMarkPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 58, 150, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 22px rgba(0, 58, 150, .12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen,
  .loading-logo,
  .loading-mark,
  .loading-screen > div:not(.loading-mark):not(.brand-mark)::after {
    animation: none;
  }
}

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

.sidebar {
  align-self: start;
  background: var(--nav);
  color: #ffffff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.brand-logo-card {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(0, 58, 150, .12);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.brand-logo {
  display: block;
  width: min(178px, 100%);
  height: auto;
}

.public-nav .brand {
  grid-template-columns: auto minmax(0, 1fr);
}

.brand small {
  display: block;
  color: rgba(255,255,255,.72);
  margin-top: 2px;
}

.brand strong {
  color: inherit;
  font-weight: 900;
}

.public-nav .brand small {
  color: var(--muted);
}

.public-nav .brand strong {
  color: var(--brand-navy);
}

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

.nav-group {
  color: rgba(255,255,255,.56);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 14px 10px 4px;
  text-transform: uppercase;
}

.nav a,
.public-nav a {
  text-decoration: none;
}

.nav a {
  color: rgba(255,255,255,.86);
  border-radius: 8px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-left: 3px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255,255,255,.09);
  border-left-color: var(--brand-orange);
  color: #ffffff;
}

.nav-icon {
  align-items: center;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.nav-icon svg {
  display: block;
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 18px;
}

.nav a:hover .nav-icon {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.26);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav a.active .nav-icon {
  background: var(--brand-orange);
  border-color: rgba(255,255,255,.32);
  box-shadow: 0 8px 18px rgba(246,135,18,.28);
  color: #ffffff;
}

.nav-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.nav-copy strong {
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.nav-copy small {
  color: rgba(255,255,255,.62);
  font-size: 11px;
}

.nav-badge {
  background: rgba(246,135,18,.18);
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.language-switcher {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  width: fit-content;
}

.sidebar .language-switcher {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}

.language-option {
  align-items: center;
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  min-width: 36px;
  padding: 0 9px;
}

.sidebar .language-option {
  color: rgba(255,255,255,.76);
}

.language-option:hover {
  background: rgba(0,58,150,.08);
  color: var(--brand-blue);
}

.sidebar .language-option:hover {
  background: rgba(255,255,255,.12);
  color: #ffffff;
}

.language-option.active {
  background: var(--brand-orange);
  color: #ffffff;
}

.user-chip {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
  color: #ffffff;
}

.user-chip small {
  display: block;
  color: rgba(255,255,255,.72);
  margin-top: 3px;
}

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

.topbar {
  min-height: 72px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(210px, .85fr) minmax(240px, 360px) minmax(260px, auto);
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-navy);
}

.topbar p {
  margin: 3px 0 0;
  color: var(--muted);
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.topbar-actions .button {
  white-space: nowrap;
}

.topbar-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.topbar-status span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 9px;
  white-space: nowrap;
}

.global-search {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.global-search input {
  background: var(--surface-soft);
  border-color: transparent;
  min-height: 40px;
}

.global-search input:focus {
  background: #ffffff;
}

.secondary-icon {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

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

.content {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.content > * {
  min-width: 0;
}

.public-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.public-nav {
  min-height: 70px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 14px clamp(18px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-content {
  padding: clamp(22px, 4vw, 48px);
  display: grid;
  gap: 24px;
  align-content: start;
}

.hero-band {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  overflow: hidden;
}

.hero-copy {
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  align-content: center;
  gap: 18px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 35px;
  font-weight: 900;
  line-height: 1.12;
}

.hero-copy p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 66ch;
}

.hero-panel {
  background: var(--surface-blue);
  border-left: 1px solid var(--line);
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  align-content: center;
}

.auth-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.interface-map,
.login-stack {
  display: grid;
  gap: 16px;
}

.interface-core {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.interface-core span,
.demo-account span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.interface-core strong {
  color: var(--brand-navy);
  font-size: 30px;
  line-height: 1.35;
}

.interface-core p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

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

.interface-parties span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
  padding: 12px;
}

.interface-parties span:nth-child(3n + 2) {
  border-left: 3px solid var(--brand-blue);
}

.interface-parties span:nth-child(3n) {
  border-left: 3px solid var(--brand-orange);
}

.interface-parties span:nth-child(3n + 1) {
  border-left: 3px solid var(--brand-gray);
}

.demo-card {
  display: grid;
  gap: 16px;
}

.demo-card p {
  margin: 6px 0 0;
}

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

.demo-account {
  background: var(--surface-blue);
  border: 1px solid var(--brand-blue-soft-2);
  border-left: 3px solid var(--brand-blue);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
}

.demo-account:nth-child(even) {
  border-left-color: var(--brand-orange);
}

.demo-account strong {
  color: var(--brand-navy);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

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

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

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

.panel h2,
.panel h3,
.auth-card h2 {
  margin: 0;
  font-size: 18px;
  color: var(--brand-navy);
  font-weight: 800;
}

.panel p,
.empty-state p {
  color: var(--muted);
  line-height: 1.55;
}

.panel-divider {
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.kpi {
  display: grid;
  gap: 9px;
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
}

.kpi strong {
  font-size: 30px;
  color: var(--brand-blue);
}

.dashboard-command {
  align-items: center;
  background: #08244f;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-width: 0;
  padding: 22px;
}

.dashboard-command h2 {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.28;
  margin: 4px 0 0;
  max-width: 760px;
}

.dashboard-kicker {
  color: #ffd4a0;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-kpi-grid .panel {
  border-top: 3px solid var(--brand-blue);
}

.dashboard-kpi-grid .panel:nth-child(2) {
  border-top-color: var(--brand-orange);
}

.dashboard-kpi-grid .panel:nth-child(3) {
  border-top-color: var(--violet);
}

.dashboard-kpi-grid .panel:nth-child(4) {
  border-top-color: var(--green);
}

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

.dashboard-stage {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
}

.dashboard-stage span {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-blue);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.dashboard-stage strong {
  color: var(--brand-navy);
}

.dashboard-stage b {
  color: var(--brand-blue);
  font-size: 28px;
  line-height: 1;
}

.dashboard-stage small {
  color: var(--muted);
}

.dashboard-stage.attention {
  background: #fff8ef;
  border-color: rgba(246,135,18,.35);
}

.dashboard-stage.warning b,
.dashboard-stage.attention b {
  color: var(--brand-orange-dark);
}

.dashboard-stage.done {
  background: #f1fbf5;
  border-color: rgba(23,114,69,.22);
}

.dashboard-stage.done b {
  color: var(--green);
}

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

.system-cockpit-grid div {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.system-cockpit-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.system-cockpit-grid strong {
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.status,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}

.status.new,
.status.workshop_ordered,
.status.auftrag_versendet,
.status.abholung_terminiert,
.status.open,
.status.planned,
.status.queued {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

.status.estimate_submitted,
.status.kv_eingereicht,
.status.vorkalkulation_eingereicht,
.status.kv_angefordert,
.status.mietwagenfreigabe_angefragt,
.status.angefragt,
.status.eingereicht,
.status.frist_abgelaufen,
.status.dunning,
.status.in_progress,
.status.running,
.status.review {
  background: #fff0dc;
  color: var(--brand-orange-dark);
}

.status.repair_approved,
.status.freigegeben,
.status.rechnungen_freigegeben,
.status.done {
  background: #e8f6ee;
  color: var(--green);
}

.status.estimate_rejected,
.status.kv_abgelehnt,
.status.reparatur_abgebrochen,
.status.rechnung_abgelehnt,
.status.storniert,
.status.abgelehnt,
.status.cancelled,
.status.rejected,
.status.failed {
  background: #fde8e7;
  color: var(--red);
}

.status.invoice_submitted,
.status.rechnung_eingereicht {
  background: #eee8ff;
  color: var(--violet);
}

.status.bereit,
.status.nicht_erforderlich,
.status.inaktiv,
.status.deferred {
  background: var(--surface-soft);
  color: var(--muted);
}

.status.deferred_due,
.status.deferred_missing {
  background: #fff0dc;
  color: var(--brand-orange-dark);
}

.status.gesendet,
.status.test_gesendet,
.status.sent,
.status.aktiv {
  background: #e8f6ee;
  color: var(--green);
}

.status.fehler {
  background: #fde8e7;
  color: var(--red);
}

.pill {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

.progress {
  width: min(220px, 100%);
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--brand-blue-soft);
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

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

th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-blue);
  font-weight: 800;
}

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

.row-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.damage-overview-summary {
  display: grid;
  gap: 16px;
}

.damage-overview-title,
.damage-filter-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.damage-overview-title h2 {
  font-size: 22px;
}

.damage-overview-title p,
.damage-filter-head p {
  margin-bottom: 0;
}

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

.damage-summary-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
}

.damage-summary-card.attention {
  border-left-color: var(--brand-orange);
}

.damage-summary-card.done {
  border-left-color: var(--green);
}

.damage-summary-card.neutral {
  border-left-color: var(--brand-gray);
}

.damage-summary-card span,
.damage-summary-card small {
  color: var(--muted);
  font-size: 12px;
}

.damage-summary-card strong {
  color: var(--brand-navy);
  font-size: 26px;
  line-height: 1.05;
}

.reporting-hero {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.reporting-hero h2,
.reporting-block-title h2 {
  color: var(--brand-navy);
  font-size: 24px;
  margin: 3px 0 0;
}

.reporting-hero p,
.reporting-block-title p {
  margin-bottom: 0;
}

.reporting-hero-pills {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.reporting-kpi small {
  color: var(--muted);
  font-size: 12px;
}

.reporting-bars {
  display: grid;
  gap: 12px;
}

.reporting-bar-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1.4fr) minmax(46px, auto);
}

.reporting-bar-label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.reporting-bar-label strong,
.reporting-bar-value {
  color: var(--brand-navy);
}

.reporting-bar-label small {
  color: var(--muted);
  font-size: 12px;
}

.reporting-progress {
  width: 100%;
}

.reporting-section-stack,
.reporting-internal-block {
  display: grid;
  gap: 18px;
}

.reporting-block-title {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.reporting-mini-kpis {
  gap: 12px;
}

.reporting-filter-panel .panel-header {
  align-items: center;
}

.reporting-filter-panel .field-block strong {
  color: var(--brand-navy);
  font-size: 18px;
}

.reporting-management {
  display: grid;
  gap: 16px;
}

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

.reporting-signal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.reporting-signal-card.warning {
  border-left-color: var(--brand-orange);
}

.reporting-signal-card.danger {
  border-left-color: var(--red);
}

.reporting-signal-card span,
.reporting-signal-card small {
  color: var(--muted);
  font-size: 12px;
}

.reporting-signal-card strong {
  color: var(--brand-navy);
  font-size: 24px;
  line-height: 1.05;
}

.reporting-total-line {
  align-items: center;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.reporting-total-line strong {
  color: var(--brand-navy);
  font-size: 18px;
}

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

.reporting-insight {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 12px 14px;
}

.reporting-insight.warning {
  border-left-color: var(--brand-orange);
}

.reporting-insight.danger {
  border-left-color: var(--red);
}

.reporting-insight strong {
  color: var(--brand-navy);
}

.reporting-insight p {
  color: var(--muted);
  margin: 4px 0 0;
}

.damage-filter-panel {
  display: grid;
  gap: 16px;
}

.damage-filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 1fr));
}

.damage-search-field {
  grid-column: span 2;
}

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

.damage-case-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 29, 75, .04);
  overflow: hidden;
}

.damage-case-row.active,
.damage-case-row.attention,
.damage-case-row.warning {
  box-shadow: inset 4px 0 0 var(--brand-orange), 0 6px 16px rgba(0, 29, 75, .04);
}

.damage-case-row.done {
  box-shadow: inset 4px 0 0 var(--green), 0 6px 16px rgba(0, 29, 75, .04);
}

.damage-case-row.paused {
  box-shadow: inset 4px 0 0 var(--brand-gray), 0 6px 16px rgba(0, 29, 75, .04);
}

.damage-case-link {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(155px, .65fr) minmax(230px, 1fr) minmax(230px, 1fr) minmax(230px, 1fr) minmax(170px, .7fr);
  padding: 15px 16px;
  text-decoration: none;
}

.damage-case-link:hover {
  background: var(--surface-blue);
}

.damage-case-id,
.damage-case-subject,
.damage-case-insurance,
.damage-case-next,
.damage-case-state {
  min-width: 0;
}

.damage-case-id,
.damage-case-insurance,
.damage-case-next,
.damage-case-state {
  display: grid;
  gap: 5px;
}

.damage-case-id span,
.damage-case-insurance span,
.damage-case-next span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.damage-case-id strong {
  color: var(--brand-blue);
  font-size: 17px;
}

.damage-case-subject {
  display: grid;
  gap: 4px;
}

.damage-case-subject strong,
.damage-case-insurance strong,
.damage-case-next strong {
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.damage-case-subject span,
.damage-case-subject small,
.damage-case-insurance small,
.damage-case-next small,
.damage-order-note {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.damage-case-state {
  justify-items: start;
}

.compact-damage-list .damage-case-link {
  align-items: start;
  gap: 10px 14px;
  grid-template-columns: minmax(140px, .75fr) minmax(0, 1fr);
}

.compact-damage-list .damage-case-insurance,
.compact-damage-list .damage-case-next,
.compact-damage-list .damage-case-state {
  grid-column: 2;
}

.compact-damage-list .damage-case-state {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.damage-action-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 9px;
}

.damage-action-chip.active,
.damage-action-chip.attention,
.damage-action-chip.warning {
  background: #fff0dc;
  border-color: rgba(246, 135, 18, .35);
  color: var(--brand-orange-dark);
}

.damage-action-chip.done {
  background: #e8f6ee;
  border-color: rgba(23, 114, 69, .25);
  color: var(--green);
}

.damage-action-chip.paused {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--muted);
}

.locked-field {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.locked-field span,
.locked-field small {
  color: var(--muted);
  font-size: 12px;
}

.locked-field strong {
  color: var(--brand-navy);
}

.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

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

.fine {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.button,
.icon-button {
  min-height: 39px;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--brand-orange);
  color: white;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.1;
}

.button:hover,
.icon-button:hover {
  filter: brightness(.96);
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  filter: grayscale(.3);
  opacity: .55;
}

.button.secondary {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

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

.button.warning {
  background: var(--brand-orange);
}

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

.button.ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line);
}

.icon-button {
  width: 39px;
  padding: 0;
}

form {
  display: grid;
  gap: 16px;
}

form > * {
  min-width: 0;
}

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

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

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

.form-grid .full-row {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--brand-navy);
  font-weight: 650;
  min-width: 0;
}

.required-marker {
  width: fit-content;
  border-radius: 999px;
  background: #fff0dc;
  color: var(--brand-orange-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 3px 8px;
}

.inline-check .required-marker {
  flex: 0 0 auto;
}

.field-block {
  color: var(--brand-navy);
  display: grid;
  gap: 6px;
  font-weight: 650;
}

.input-action-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.quick-master-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 11px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 150, .12);
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

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

.chatbot-panel {
  display: grid;
  gap: 16px;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  min-height: calc(100vh - 134px);
}

.chatbot-messages {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 330px);
  min-height: 360px;
  overflow-y: auto;
  padding: 14px;
}

.chatbot-message {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  max-width: min(760px, 92%);
  padding: 12px 14px;
}

.chatbot-message strong {
  color: var(--brand-navy);
  font-size: 13px;
}

.chatbot-message div {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chatbot-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  white-space: normal;
}

.chatbot-action-list .button {
  min-height: 34px;
  padding: 8px 10px;
}

.chatbot-message.user {
  align-self: flex-end;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.chatbot-message.user strong {
  color: #ffffff;
}

.chatbot-empty,
.chatbot-typing {
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 16px;
}

.chatbot-empty strong {
  color: var(--brand-navy);
  display: block;
  margin-bottom: 6px;
}

.chatbot-empty p,
.chatbot-status p {
  margin: 0;
}

.chatbot-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.chatbot-form textarea {
  max-height: 180px;
  min-height: 74px;
}

.chatbot-side {
  display: grid;
  gap: 18px;
}

.chatbot-side h3 {
  margin-bottom: 10px;
}

.chatbot-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.chatbot-status.ok {
  background: #ecfdf3;
  border-color: #b7e4c7;
}

.chatbot-status.checking {
  background: var(--surface-blue);
  border-color: var(--brand-blue-soft-2);
}

.chatbot-status.error {
  background: #fff3f0;
  border-color: #f7c8c2;
}

.chatbot-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.chatbot-status strong {
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.chatbot-status small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.chatbot-prompt-list {
  display: grid;
  gap: 8px;
}

.chatbot-prompt-list .button {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}

.chatbot-floating {
  bottom: 24px;
  display: grid;
  gap: 12px;
  justify-items: end;
  pointer-events: none;
  position: fixed;
  right: 24px;
  z-index: 80;
}

.chatbot-floating > * {
  pointer-events: auto;
}

.chatbot-fab {
  align-items: center;
  background: var(--brand-orange);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(0, 29, 75, .24);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  min-height: 54px;
  max-width: min(330px, calc(100vw - 32px));
  padding: 10px 18px;
}

.chatbot-fab span {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  display: grid;
  font-weight: 900;
  height: 34px;
  place-items: center;
  width: 42px;
}

.chatbot-fab small {
  font-weight: 800;
  max-width: 210px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatbot-fab.ok {
  background: var(--green);
}

.chatbot-fab.checking {
  background: var(--brand-blue);
}

.chatbot-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 29, 75, .24);
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
  max-height: min(680px, calc(100vh - 112px));
  min-width: 0;
  overflow: hidden;
  width: min(430px, calc(100vw - 32px));
}

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

.chatbot-window header strong {
  color: var(--brand-navy);
  display: block;
  font-weight: 900;
}

.chatbot-window header small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.chatbot-window-messages {
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(410px, calc(100vh - 330px));
  min-height: 240px;
  overflow-y: auto;
  padding: 12px;
}

.chatbot-window-messages .chatbot-message {
  max-width: 100%;
  padding: 11px 12px;
}

.chatbot-window-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.chatbot-window-form textarea {
  max-height: 140px;
  min-height: 52px;
}

.chatbot-window-tools {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 10px 12px 12px;
}

.chatbot-window-tools .button {
  min-height: 34px;
  padding: 8px 10px;
}

.accounting-filter-panel .panel-header {
  align-items: center;
}

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

.accounting-kpi {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 7px;
  padding: 17px;
}

.accounting-kpi span,
.accounting-kpi small,
.accounting-aging-item span,
.accounting-aging-item small {
  color: var(--muted);
  font-size: 12px;
}

.accounting-kpi strong {
  color: var(--brand-navy);
  font-size: 27px;
  line-height: 1.1;
}

.accounting-kpi.success {
  border-left-color: var(--green);
}

.accounting-kpi.warning {
  border-left-color: var(--brand-orange);
}

.accounting-kpi.danger {
  border-left-color: var(--red);
}

.accounting-ledger-panel {
  display: grid;
  gap: 16px;
}

.accounting-ledger-panel .panel-header {
  margin-bottom: 0;
}

.accounting-ledger-summary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.accounting-ledger-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.accounting-aging-item {
  background: var(--surface-blue);
  border: 1px solid rgba(0, 58, 150, .14);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.accounting-aging-item strong {
  color: var(--brand-navy);
  font-size: 18px;
}

.accounting-aging-item.late,
.accounting-aging-item.critical {
  background: #fff6f4;
  border-color: rgba(180, 35, 24, .22);
}

.accounting-table {
  min-width: 0;
  table-layout: fixed;
}

.accounting-table th:nth-child(1),
.accounting-table td:nth-child(1) {
  width: 16%;
}

.accounting-table th:nth-child(2),
.accounting-table td:nth-child(2) {
  width: 23%;
}

.accounting-table th:nth-child(3),
.accounting-table td:nth-child(3) {
  width: 13%;
}

.accounting-table th:nth-child(4),
.accounting-table td:nth-child(4) {
  width: 17%;
}

.accounting-table th:nth-child(5),
.accounting-table td:nth-child(5) {
  width: 15%;
}

.accounting-table th:nth-child(6),
.accounting-table td:nth-child(6) {
  width: 16%;
}

.accounting-row td:first-child {
  border-left: 4px solid transparent;
}

.accounting-row.is-open td:first-child,
.accounting-row.is-sent td:first-child,
.accounting-row.is-neutral td:first-child {
  border-left-color: var(--brand-blue);
}

.accounting-row.is-due td:first-child,
.accounting-row.is-soon td:first-child,
.accounting-row.is-partially_paid td:first-child {
  border-left-color: var(--brand-orange);
}

.accounting-row.is-overdue td:first-child,
.accounting-row.is-dunning td:first-child {
  border-left-color: var(--red);
}

.accounting-row.is-paid td:first-child,
.accounting-row.is-credit td:first-child,
.accounting-row.is-memo td:first-child,
.accounting-row.is-corrected td:first-child,
.accounting-row.is-settled td:first-child {
  border-left-color: var(--green);
}

.accounting-row.is-cancelled td:first-child {
  border-left-color: var(--brand-gray);
}

.accounting-row.is-due td,
.accounting-row.is-soon td {
  background: #fffaf2;
}

.accounting-row.is-overdue td,
.accounting-row.is-dunning td {
  background: #fff7f4;
}

.accounting-row.is-paid td,
.accounting-row.is-credit td,
.accounting-row.is-memo td,
.accounting-row.is-corrected td,
.accounting-row.is-settled td {
  background: #fbfffd;
}

.invoice-cell,
.amount-cell {
  display: grid;
  gap: 5px;
}

.invoice-cell strong,
.amount-cell strong,
.accounting-table td > strong {
  color: var(--brand-navy);
}

.invoice-cell span,
.amount-cell span,
.accounting-reference,
.accounting-mail-ref {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.accounting-reference a,
.accounting-facts dd a {
  color: var(--brand-blue);
  font-weight: 800;
  text-decoration: none;
}

.accounting-reference a:hover,
.accounting-facts dd a:hover {
  text-decoration: underline;
}

.accounting-pdf-link {
  display: inline-flex;
  padding: 7px 9px;
  width: fit-content;
}

.accounting-due-badge {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-width: 126px;
  padding: 8px 10px;
}

.accounting-due-badge strong {
  color: var(--brand-navy);
  font-size: 13px;
}

.accounting-due-badge small {
  color: var(--muted);
  font-size: 11px;
}

.accounting-due-badge.soon,
.accounting-due-badge.due {
  background: #fff8ef;
  border-color: rgba(246, 135, 18, .28);
}

.accounting-due-badge.overdue {
  background: #fde8e7;
  border-color: rgba(180, 35, 24, .25);
}

.accounting-due-badge.settled {
  background: #f2fbf6;
  border-color: rgba(23, 114, 69, .22);
}

.status.accounting-status.open,
.status.accounting-status.neutral {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

.status.accounting-status.sent,
.status.accounting-status.partially_paid,
.status.accounting-status.due,
.status.accounting-status.soon {
  background: #fff0dc;
  color: var(--brand-orange-dark);
}

.status.accounting-status.overdue,
.status.accounting-status.dunning {
  background: #fde8e7;
  color: var(--red);
}

.status.accounting-status.paid,
.status.accounting-status.credit,
.status.accounting-status.memo,
.status.accounting-status.corrected,
.status.accounting-status.settled {
  background: #e8f6ee;
  color: var(--green);
}

.status.accounting-status.cancelled {
  background: var(--surface-soft);
  color: var(--muted);
}

.accounting-action-stack {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr;
}

.accounting-action-stack .button,
.accounting-action-stack .fine {
  min-height: 34px;
  padding: 8px 9px;
  width: 100%;
}

.accounting-action-stack .fine {
  align-items: center;
  display: inline-flex;
}

.accounting-detail-row td {
  background: #ffffff;
  border-top: 0;
  padding: 0 14px 14px;
}

.accounting-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.accounting-details summary {
  align-items: center;
  background: var(--surface-soft);
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 11px 13px;
}

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

.accounting-details summary span {
  color: var(--brand-blue);
  font-weight: 800;
}

.accounting-details summary small {
  color: var(--muted);
  font-size: 12px;
}

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

.accounting-detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, .75fr) minmax(320px, 1.25fr);
  padding: 14px;
}

.accounting-detail-grid section {
  min-width: 0;
}

.accounting-detail-grid h3 {
  font-size: 15px;
  margin: 0 0 10px;
}

.accounting-facts {
  display: grid;
  gap: 7px;
  margin: 0;
}

.accounting-facts div {
  display: grid;
  gap: 8px;
  grid-template-columns: 112px minmax(0, 1fr);
}

.accounting-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.accounting-facts dd {
  color: var(--ink);
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}

.accounting-note {
  background: #fff8ef;
  border: 1px solid rgba(246, 135, 18, .26);
  border-radius: 8px;
  margin-top: 12px;
  padding: 11px;
}

.accounting-note p {
  margin: 4px 0 0;
}

.settlement-documents .table-wrap {
  margin-top: 8px;
}

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

.accounting-event {
  border-left: 3px solid var(--brand-blue);
  display: grid;
  gap: 3px;
  padding-left: 10px;
}

.accounting-event span {
  color: var(--muted);
  font-size: 12px;
}

.compact-table th,
.compact-table td {
  padding: 9px 10px;
}

.accounting-dialog-form {
  gap: 18px;
}

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

.accounting-dialog-summary div {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.accounting-dialog-summary span {
  color: var(--muted);
  font-size: 12px;
}

.accounting-dialog-summary strong {
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.accounting-position-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.accounting-position-row {
  align-items: end;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) 82px 122px 92px minmax(135px, .85fr) auto;
  padding: 12px;
}

.accounting-position-row .button {
  min-height: 42px;
}

.accounting-position-total {
  background: #ffffff;
  border: 1px solid rgba(0, 58, 150, .12);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 8px 10px;
}

.accounting-position-total span,
.accounting-position-total small,
.accounting-manual-totals span,
.accounting-vat-breakdown span {
  color: var(--muted);
  font-size: 12px;
}

.accounting-position-total strong,
.accounting-manual-totals strong {
  color: var(--brand-navy);
}

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

.accounting-manual-totals > div {
  background: #ffffff;
  border: 1px solid rgba(0, 58, 150, .14);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}

.accounting-manual-totals .accounting-vat-breakdown {
  grid-column: 1 / -1;
}

.accounting-vat-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.tag-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  padding: 7px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 750;
  padding: 5px 7px 5px 10px;
}

.tag-chip button {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 58, 150, .12);
  color: var(--brand-blue);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.rental-class-picker {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rental-rule-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.rental-rule-head,
.rental-rule-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(230px, 1fr) 110px 130px;
  align-items: center;
}

.workshop-rental-rates .rental-rule-head,
.workshop-rental-rates .rental-rule-row {
  grid-template-columns: minmax(230px, 1fr) 110px minmax(110px, 140px) minmax(110px, 140px);
}

.rental-rule-head {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  text-transform: uppercase;
}

.rental-rule-row {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
}

.rental-rule-row small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 2px;
}

.toggle-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

.toggle-row input {
  width: auto;
}

@media (max-width: 760px) {
  .rental-rule-head {
    display: none;
  }

  .rental-rule-row,
  .workshop-rental-rates .rental-rule-row {
    grid-template-columns: 1fr;
  }
}

.check-row {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 9px 10px;
}

.check-row input {
  width: auto;
  margin-top: 3px;
}

.check-row small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 2px;
}

.tag-editor input.tag-entry {
  flex: 1 1 150px;
  min-width: 150px;
  border: 0;
  padding: 5px;
}

.tag-editor input.tag-entry:focus {
  outline: none;
}

.tag-empty {
  padding: 5px;
}

.master-contact-list {
  display: grid;
  gap: 14px;
}

.master-contact-row {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.master-contact-row-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.master-contact-row-header strong,
.master-contact-row-header span {
  display: block;
}

.vehicle-insurance-list {
  display: grid;
  gap: 14px;
}

.vehicle-insurance-card {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

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

.vehicle-insurance-card-header strong,
.vehicle-insurance-card-header span {
  display: block;
}

.driver-change-log {
  display: grid;
  gap: 12px;
}

.driver-change-entry {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.driver-change-entry header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
}

.driver-change-list {
  display: grid;
  gap: 6px;
}

.driver-change-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1fr) minmax(0, 1fr);
}

.driver-change-row span {
  overflow-wrap: anywhere;
}

.driver-change-row span:first-child {
  color: var(--muted);
  font-weight: 800;
}

.address-suggestions {
  position: absolute;
  z-index: 80;
  display: grid;
  max-height: 260px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px;
}

.address-suggestion-item {
  width: 100%;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 10px 11px;
  text-align: left;
  line-height: 1.35;
}

.address-suggestion-item:hover,
.address-suggestion-item:focus {
  background: var(--brand-blue-soft);
  outline: none;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 0;
  display: grid;
  gap: 14px;
}

.estimate-total-row {
  align-items: center;
  background: linear-gradient(135deg, var(--surface-blue), #ffffff);
  border: 1px solid rgba(0, 58, 150, .18);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 29, 75, .06);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.estimate-total-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.estimate-total-row strong {
  color: var(--brand-navy);
  font-size: 22px;
  line-height: 1.1;
}

.condition-period {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.condition-period summary {
  cursor: pointer;
  font-weight: 750;
}

.condition-period-wrap {
  max-width: 100%;
}

.condition-period-table {
  min-width: 2600px;
}

.condition-period-table th,
.condition-period-table td {
  padding: 10px;
  min-width: 142px;
  vertical-align: middle;
}

.condition-period-table th:first-child,
.condition-period-table td:first-child {
  left: 0;
  min-width: 150px;
  position: sticky;
  z-index: 2;
}

.condition-period-table th:first-child {
  background: var(--surface-blue);
}

.condition-period-table td:first-child,
.condition-period-title {
  background: #ffffff;
}

.condition-period-title strong {
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
}

.condition-period-table input,
.condition-period-table select {
  min-width: 118px;
  padding: 8px 9px;
}

.condition-period-new {
  background: var(--surface-blue);
}

.condition-period-table {
  min-width: 860px;
}

.condition-period-table th,
.condition-period-table td {
  min-width: auto;
}

.condition-period-table th:first-child,
.condition-period-table td:first-child {
  left: auto;
  min-width: 130px;
  position: static;
  z-index: auto;
}

.condition-period-table th:nth-child(4),
.condition-period-table td:nth-child(4) {
  width: 48%;
}

.condition-period-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.condition-period-actions {
  white-space: nowrap;
}

.condition-period-detail-row td {
  background: var(--surface-blue);
  padding: 0;
}

.condition-period-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.condition-period-detail h3 {
  margin: 6px 0 0;
}

.vehicle-insurer-table table {
  min-width: 1280px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

legend {
  padding: 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.tab {
  background: transparent;
  color: var(--muted);
  border-radius: 8px 8px 0 0;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 700;
}

.tab.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-panel {
  overflow: visible;
}

.timeline-detailed {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(420px, .9fr) minmax(440px, 1.1fr);
}

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

.timeline-entry {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 124px minmax(0, 1fr);
  min-height: 72px;
  padding: 11px 12px;
  text-align: left;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}

.timeline-entry:hover,
.timeline-entry.active {
  background: var(--surface-blue);
  border-color: var(--brand-blue-soft-2);
  box-shadow: 0 8px 20px rgba(0, 58, 150, .08);
}

.timeline-entry:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.timeline-entry-time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.timeline-entry-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.timeline-entry-copy strong {
  color: #050b18;
  overflow-wrap: anywhere;
}

.timeline-entry-copy span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.timeline-detail-stack {
  position: sticky;
  top: 92px;
}

.timeline-detail-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-orange);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 11px;
  padding: 16px;
}

.timeline-detail-card h3,
.timeline-detail-card p {
  margin: 0;
}

.timeline-detail-card h3 {
  color: var(--brand-navy);
  font-size: 16px;
}

.timeline-detail-card p {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.timeline-detail-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-detail-meta {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
}

.timeline-detail-meta div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding-top: 8px;
}

.timeline-detail-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timeline-detail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.changelog-list {
  display: grid;
  gap: 14px;
}

.feedback-list {
  display: grid;
  gap: 12px;
}

.feedback-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feedback-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback-item h3 {
  margin: 4px 0 0;
}

.feedback-item p {
  margin: 0;
}

.feedback-item summary {
  color: var(--brand-blue);
  cursor: pointer;
  font-weight: 800;
}

.feedback-history {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.changelog-entry {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.changelog-entry header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.changelog-entry h3 {
  margin: 4px 0 0;
}

.changelog-entry ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.changelog-entry li + li {
  margin-top: 6px;
}

.changelog-screenshots {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.changelog-compare {
  display: grid;
  gap: 10px;
}

.changelog-compare h4 {
  color: var(--brand-blue);
  font-size: 14px;
  margin: 0;
}

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

.changelog-shot {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  overflow: hidden;
  padding: 10px;
  position: relative;
  background: #ffffff;
}

.changelog-shot img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.changelog-shot figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.changelog-shot-label {
  align-self: start;
  background: var(--brand-blue);
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  left: 18px;
  letter-spacing: .02em;
  padding: 5px 8px;
  position: absolute;
  text-transform: uppercase;
  top: 18px;
  z-index: 1;
}

@media (max-width: 860px) {
  .changelog-compare-grid {
    grid-template-columns: 1fr;
  }
}

.route-results {
  display: grid;
  gap: 12px;
}

.route-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.route-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 150, .12);
}

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

.workshop-order-prep {
  margin-top: 16px;
}

.workshop-invoice-list {
  display: grid;
  gap: 12px;
}

.invoice-approval-board {
  background: var(--surface-blue);
  border: 1px solid rgba(0, 58, 150, .16);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.invoice-approval-board-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.invoice-approval-board-header strong,
.invoice-approval-board-header span {
  display: block;
}

.invoice-approval-board-header span {
  color: var(--muted);
  font-size: 13px;
}

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

.invoice-approval-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.invoice-approval-card strong,
.invoice-approval-card span,
.invoice-approval-card em {
  display: block;
}

.invoice-approval-card span {
  color: var(--muted);
  font-size: 13px;
}

.invoice-approval-card em {
  color: var(--brand-orange-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.invoice-approval-card.is-approved {
  border-color: rgba(23, 114, 69, .28);
}

.invoice-approval-card.is-approved em {
  color: var(--green);
}

.workshop-invoice-row {
  background: #ffffff;
}

.completion-overview {
  display: grid;
  gap: 18px;
}

.completion-summary-grid,
.completion-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.completion-summary-card,
.completion-kpi {
  background: var(--surface-blue);
  border: 1px solid rgba(0, 58, 150, .14);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 14px;
}

.completion-summary-card span,
.completion-kpi span,
.completion-kpi small {
  color: var(--muted);
  font-size: 13px;
}

.completion-summary-card strong,
.completion-kpi strong {
  color: var(--brand-navy);
  font-size: 21px;
  line-height: 1.15;
}

.completion-subsection {
  display: grid;
  gap: 12px;
}

.completion-subsection h3 {
  color: var(--brand-navy);
  font-size: 16px;
  margin: 0;
}

.completion-timeline {
  border-left: 2px solid rgba(0, 58, 150, .16);
  display: grid;
  gap: 12px;
  padding-left: 16px;
}

.completion-timeline-item {
  display: grid;
  gap: 4px;
  position: relative;
}

.completion-timeline-item::before {
  background: var(--brand-orange);
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 58, 150, .16);
  content: "";
  height: 10px;
  left: -22px;
  position: absolute;
  top: 4px;
  width: 10px;
}

.completion-timeline-item span,
.completion-timeline-item p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.completion-timeline-item strong {
  color: var(--brand-navy);
}

.detail-stack {
  display: grid;
  gap: 8px;
}

.workshop-order-list {
  display: grid;
  gap: 14px;
}

.workshop-order-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.workshop-order-entry summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 13px 14px;
}

.workshop-order-entry[open] summary {
  border-bottom: 1px solid var(--line);
}

.workshop-order-entry > .grid,
.workshop-order-entry > .actions {
  padding: 14px;
}

.workshop-order-entry > .actions {
  border-top: 1px solid var(--line);
}

.case-overview {
  border: 1px solid rgba(0, 58, 150, .18);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  overflow: hidden;
  position: relative;
}

.case-overview::before {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.case-overview-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-top: 2px;
}

.case-overview-header h2 {
  font-size: 24px;
}

.case-overview-header p {
  margin: 4px 0 0;
}

.case-status-stack {
  align-items: flex-end;
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 180px;
}

.case-status-stack span:not(.status) {
  color: var(--muted);
  font-size: 12px;
}

.case-overview-main {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, .95fr) minmax(320px, 1.35fr);
}

.case-focus {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 18px;
}

.case-focus.active {
  border-left-color: var(--brand-orange);
}

.case-focus.attention,
.case-focus.warning {
  border-left-color: var(--brand-orange);
}

.case-focus.done {
  border-left-color: var(--green);
}

.case-focus.paused {
  border-left-color: var(--brand-gray);
}

.case-focus-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-focus h2 {
  color: var(--brand-navy);
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
}

.case-focus p {
  color: var(--muted);
  margin: 0;
}

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

.case-facts div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 13px;
}

.case-facts span,
.case-facts strong {
  display: block;
}

.case-facts span {
  color: var(--muted);
  font-size: 12px;
}

.case-facts strong {
  color: var(--brand-navy);
  hyphens: auto;
  overflow-wrap: break-word;
}

.case-section-title {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-top: 14px;
}

.case-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.case-section-title strong {
  color: var(--brand-navy);
  font-size: 13px;
}

.case-stage-map {
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  overflow: hidden;
}

.case-stage {
  background: #ffffff;
  border-right: 0;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr);
  min-height: 104px;
  padding: 13px;
  position: relative;
}

.case-stage:last-child {
  border-right: 0;
}

.case-stage-dot {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.case-stage strong,
.case-stage small {
  display: block;
  hyphens: auto;
  overflow-wrap: break-word;
}

.case-stage small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.case-stage.done {
  background: #f7fcf9;
}

.case-stage.done .case-stage-dot {
  background: #e8f6ee;
  color: var(--green);
}

.case-stage.active,
.case-stage.attention {
  background: #fffaf2;
  box-shadow: inset 0 -3px 0 var(--brand-orange);
}

.case-stage.active .case-stage-dot,
.case-stage.attention .case-stage-dot {
  background: #fff0dc;
  color: var(--brand-orange-dark);
}

.case-stage.paused {
  background: var(--surface-soft);
}

.case-bottom {
  display: grid;
  gap: 14px;
  align-items: start;
}

.case-alerts {
  display: grid;
  gap: 8px;
}

.case-alerts {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-metrics span {
  align-items: baseline;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
  min-width: 0;
  padding: 7px 11px;
}

.case-metrics strong {
  color: var(--brand-navy);
}

.case-alert {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-grid;
  gap: 2px;
  max-width: none;
  padding: 10px 12px;
}

.case-alert strong {
  color: var(--brand-navy);
}

.case-alert.warning,
.case-alert.attention,
.case-alert.active {
  border-color: rgba(246, 135, 18, .4);
}

.case-alert.done {
  border-color: rgba(23, 114, 69, .28);
}

.process-quality-panel {
  border: 1px solid rgba(0, 58, 150, .14);
  display: grid;
  gap: 16px;
}

.process-quality-panel.blocked {
  border-left: 4px solid var(--red);
}

.process-quality-panel.attention {
  border-left: 4px solid var(--brand-orange);
}

.process-quality-panel.ready,
.process-quality-panel.done {
  border-left: 4px solid var(--green);
}

.process-quality-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-navy);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.process-quality-badge.blocked {
  background: #fef3f2;
  border-color: #fecdca;
  color: var(--red);
}

.process-quality-badge.attention {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a4a00;
}

.process-quality-badge.ready,
.process-quality-badge.done {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: var(--green);
}

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

.process-quality-summary div {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.process-quality-summary span,
.process-quality-summary strong {
  display: block;
}

.process-quality-summary span {
  color: var(--muted);
  font-size: 12px;
}

.process-quality-summary strong {
  color: var(--brand-navy);
  font-size: 22px;
}

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

.process-gate-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-gray);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.process-gate-card.done {
  border-left-color: var(--green);
}

.process-gate-card.blocked {
  border-left-color: var(--red);
}

.process-gate-card.attention {
  border-left-color: var(--brand-orange);
}

.process-gate-card header {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.process-gate-card strong,
.process-gate-card p {
  overflow-wrap: anywhere;
}

.process-gate-card header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.process-gate-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.process-checklist-wrap {
  display: grid;
  gap: 10px;
}

.process-checklist-wrap h3 {
  color: var(--brand-navy);
  font-size: 16px;
  margin: 0;
}

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

.process-check {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px;
}

.process-check > span {
  background: var(--surface-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  min-width: 46px;
  padding: 4px 7px;
  text-align: center;
}

.process-check.done > span {
  background: #ecfdf5;
  color: var(--green);
}

.process-check.open > span {
  background: #fff7ed;
  color: #9a4a00;
}

.process-check strong,
.process-check small {
  display: block;
  overflow-wrap: anywhere;
}

.process-check small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.process-flow {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.process-flow-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.process-flow-header strong,
.process-flow-header span {
  display: block;
}

.process-flow-header span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.process-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.process-step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 86px;
  padding: 12px;
}

.process-step-index {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.process-step strong,
.process-step small {
  display: block;
}

.process-step small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.process-step.done {
  border-color: rgba(22, 163, 74, .35);
}

.process-step.done .process-step-index {
  background: #e8f6ee;
  color: var(--green);
}

.process-step.active {
  border-color: rgba(255, 128, 0, .55);
  box-shadow: 0 0 0 3px rgba(255, 128, 0, .12);
}

.process-step.active .process-step-index {
  background: #fff0dc;
  color: var(--brand-orange-dark);
}

.process-description {
  display: grid;
  gap: 18px;
}

.process-description h2,
.process-description h3,
.process-description p {
  margin: 0;
}

.process-kicker {
  color: var(--brand-orange-dark);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.process-hero {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  padding: 22px;
}

.process-hero-copy {
  align-content: center;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.process-hero-copy h2 {
  color: var(--brand-navy);
  font-size: 27px;
  line-height: 1.18;
  max-width: 780px;
}

.process-hero-copy p,
.process-section-title p,
.process-system-card p,
.process-river-step p,
.process-role-node p,
.process-role-core p,
.process-module-card p,
.process-admin-node p {
  color: var(--muted);
  line-height: 1.55;
}

.process-system-card {
  background: #08244f;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
}

.process-system-core {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.process-system-core span,
.process-system-row span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.process-system-core strong {
  color: #ffffff;
  font-size: 19px;
}

.process-system-card p {
  color: rgba(255, 255, 255, .78);
}

.process-system-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.process-system-row b {
  background: #ffffff;
  border-radius: 999px;
  color: var(--brand-navy);
  font-size: 12px;
  padding: 7px 10px;
  text-align: center;
}

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

.process-metric {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
}

.process-metric:nth-child(2) {
  border-left-color: var(--brand-orange);
}

.process-metric:nth-child(3) {
  border-left-color: var(--green);
}

.process-metric:nth-child(4) {
  border-left-color: var(--violet);
}

.process-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.process-metric strong {
  color: var(--brand-navy);
  font-size: 30px;
}

.process-metric small {
  color: var(--muted);
  line-height: 1.35;
}

.handbook-intro-grid,
.handbook-glossary-grid,
.handbook-quickstart {
  display: grid;
  gap: 12px;
}

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

.handbook-glossary {
  display: grid;
  gap: 14px;
}

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

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

.handbook-intro-card,
.handbook-glossary-card,
.handbook-quickstart-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 14px;
}

.handbook-intro-card {
  border-top: 4px solid var(--brand-blue);
}

.handbook-intro-card:nth-child(2) {
  border-top-color: var(--brand-orange);
}

.handbook-intro-card:nth-child(3) {
  border-top-color: var(--green);
}

.handbook-intro-card:nth-child(4) {
  border-top-color: var(--violet);
}

.handbook-glossary-card,
.handbook-quickstart-card {
  border-left: 4px solid var(--brand-blue);
}

.handbook-glossary-card:nth-child(even),
.handbook-quickstart-card:nth-child(2) {
  border-left-color: var(--brand-orange);
}

.handbook-glossary-card:nth-child(3n),
.handbook-quickstart-card:nth-child(3) {
  border-left-color: var(--green);
}

.handbook-intro-card strong,
.handbook-glossary-card strong,
.handbook-quickstart-card strong {
  color: var(--brand-navy);
}

.handbook-intro-card p,
.handbook-glossary-card p,
.handbook-quickstart-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.process-section {
  display: grid;
  gap: 14px;
}

.process-section-title {
  display: grid;
  gap: 6px;
}

.process-section-title h2 {
  color: var(--brand-navy);
  font-size: 21px;
}

.process-river {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  position: relative;
}

.process-river::before {
  background: var(--brand-blue-soft-2);
  content: "";
  display: none;
  height: 3px;
  left: 24px;
  position: absolute;
  right: 24px;
  top: 29px;
}

.process-river-step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-blue);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  color: inherit;
  cursor: default;
  display: grid;
  gap: 9px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 14px;
  position: relative;
  text-align: left;
  z-index: 1;
}

.process-river.interactive .process-river-step {
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.process-river.interactive .process-river-step:hover,
.process-river.interactive .process-river-step.active {
  border-color: rgba(246, 135, 18, .56);
  box-shadow: 0 14px 34px rgba(0, 29, 75, .12), 0 0 0 3px rgba(246, 135, 18, .12);
  transform: translateY(-1px);
}

.process-river.interactive .process-river-step.active .process-river-marker {
  background: var(--brand-orange);
}

.process-river-step[data-accent="1"],
.process-module-card[data-accent="1"],
.process-admin-node[data-accent="1"] {
  border-top-color: var(--brand-orange);
}

.process-river-step[data-accent="2"],
.process-module-card[data-accent="2"],
.process-admin-node[data-accent="2"] {
  border-top-color: var(--green);
}

.process-river-step[data-accent="3"],
.process-module-card[data-accent="3"],
.process-admin-node[data-accent="3"] {
  border-top-color: var(--violet);
}

.process-river-marker {
  align-items: center;
  background: var(--brand-navy);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.process-river-step h3,
.process-module-card h3,
.process-lane h3 {
  color: var(--brand-navy);
  font-size: 16px;
}

.process-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.process-chip-row span {
  background: var(--surface-blue);
  border: 1px solid var(--brand-blue-soft-2);
  border-radius: 999px;
  color: var(--brand-navy);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
}

.process-step-detail {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  padding: 18px;
}

.process-step-detail-main {
  align-content: start;
  border-left: 4px solid var(--brand-orange);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-left: 14px;
}

.process-step-detail-main h3,
.handbook-manual-card h3,
.handbook-manual-hero h2 {
  color: var(--brand-navy);
  margin: 0;
}

.process-step-detail-main p,
.handbook-manual-hero p,
.handbook-manual-note p,
.handbook-manual-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

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

.process-detail-field {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 12px;
}

.process-detail-field:last-child {
  grid-column: 1 / -1;
}

.process-detail-field span {
  color: var(--brand-orange-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.process-detail-field strong {
  color: var(--brand-navy);
  font-size: 13px;
  line-height: 1.45;
}

.process-role-map {
  display: grid;
  gap: 12px;
  grid-template-areas:
    "fahrer manager fuhrpark"
    "werkstatt core anwalt"
    "gutachter accounting admin";
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-role-core,
.process-role-node,
.process-module-card,
.process-lane,
.process-admin-node {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.process-role-core {
  background: #08244f;
  color: #ffffff;
  display: grid;
  gap: 7px;
  grid-area: core;
  padding: 16px;
}

.process-role-core span {
  color: #ffd4a0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.process-role-core strong {
  color: #ffffff;
  font-size: 20px;
}

.process-role-core p {
  color: rgba(255, 255, 255, .78);
}

.process-role-node {
  border-left: 4px solid var(--brand-blue);
  display: grid;
  gap: 6px;
  padding: 14px;
}

.process-role-node strong,
.process-admin-node strong {
  color: var(--brand-navy);
}

.process-role-node[data-area="fahrer"] {
  grid-area: fahrer;
}

.process-role-node[data-area="manager"] {
  border-left-color: var(--brand-orange);
  grid-area: manager;
}

.process-role-node[data-area="fuhrpark"] {
  grid-area: fuhrpark;
}

.process-role-node[data-area="werkstatt"] {
  border-left-color: var(--green);
  grid-area: werkstatt;
}

.process-role-node[data-area="anwalt"] {
  border-left-color: var(--violet);
  grid-area: anwalt;
}

.process-role-node[data-area="gutachter"] {
  grid-area: gutachter;
}

.process-role-node[data-area="accounting"] {
  border-left-color: var(--green);
  grid-area: accounting;
}

.process-role-node[data-area="admin"] {
  border-left-color: var(--brand-orange);
  grid-area: admin;
}

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

.process-module-card {
  border-top: 4px solid var(--brand-blue);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.process-lane {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.process-lane ol {
  counter-reset: process-lane;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-lane li {
  align-items: start;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
}

.process-lane li::before {
  align-items: center;
  background: var(--surface-blue);
  border: 1px solid var(--brand-blue-soft-2);
  border-radius: 999px;
  color: var(--brand-blue);
  content: counter(process-lane);
  counter-increment: process-lane;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.process-lane li span {
  color: var(--muted);
  line-height: 1.45;
}

.process-admin-section {
  margin-bottom: 10px;
}

.process-admin-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.process-admin-node {
  border-top: 4px solid var(--brand-blue);
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
  padding: 14px;
}

.handbook-tabs {
  margin-bottom: 18px;
}

.handbook-manual {
  display: grid;
  gap: 18px;
}

.handbook-manual-hero {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .46fr);
  padding: 22px;
}

.handbook-manual-hero > div:first-child {
  display: grid;
  gap: 10px;
}

.handbook-manual-note {
  align-content: start;
  background: var(--surface-blue);
  border: 1px solid var(--brand-blue-soft-2);
  border-left: 4px solid var(--brand-orange);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
}

.handbook-manual-note strong {
  color: var(--brand-navy);
}

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

.handbook-manual-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(180px, .92fr) minmax(0, 1.08fr);
  min-width: 0;
  overflow: hidden;
}

.handbook-shot {
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
  display: block;
  min-height: 220px;
  overflow: hidden;
}

.handbook-shot img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform .18s ease;
  width: 100%;
}

.handbook-shot:hover img {
  transform: scale(1.02);
}

.handbook-manual-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
}

.handbook-manual-copy ol {
  color: var(--muted);
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.handbook-why {
  background: var(--surface-blue);
  border: 1px solid var(--brand-blue-soft-2);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
}

.handbook-why span {
  color: var(--brand-orange-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.handbook-why strong {
  color: var(--brand-navy);
  font-size: 13px;
  line-height: 1.45;
}

.handbook-manual-copy .button {
  justify-self: start;
}

@media (max-width: 1180px) {
  .process-river,
  .process-admin-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-river::before {
    display: none;
  }
}

@media (max-width: 980px) {
  .process-hero,
  .process-metrics,
  .process-role-map,
  .process-module-grid,
  .process-swimlanes,
  .process-step-detail,
  .handbook-intro-grid,
  .handbook-glossary-grid,
  .handbook-quickstart,
  .handbook-manual-hero,
  .handbook-manual-grid {
    grid-template-columns: 1fr;
  }

  .process-role-map {
    grid-template-areas:
      "core"
      "manager"
      "fahrer"
      "fuhrpark"
      "werkstatt"
      "anwalt"
      "gutachter"
      "accounting"
      "admin";
  }
}

@media (max-width: 720px) {
  .process-river,
  .process-admin-strip {
    grid-template-columns: 1fr;
  }

  .process-hero {
    padding: 18px;
  }

  .process-hero-copy h2 {
    font-size: 23px;
  }

  .process-system-row {
    grid-template-columns: 1fr;
  }

  .process-detail-grid,
  .handbook-manual-card {
    grid-template-columns: 1fr;
  }

  .handbook-shot {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 190px;
  }
}

.driver-status-board,
.driver-rental-extension {
  border-color: rgba(0, 58, 150, .18);
  box-shadow: var(--shadow-soft);
}

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

.driver-status-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 130px;
  padding: 16px;
}

.driver-status-card.active {
  background: #fff6ea;
  border-color: rgba(246, 135, 18, .32);
}

.driver-status-card span,
.driver-status-card p {
  color: var(--muted);
}

.driver-status-card span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.driver-status-card strong {
  color: var(--brand-navy);
  font-size: 18px;
}

.driver-status-card p {
  margin: 0;
}

.driver-order-list,
.driver-rental-list {
  display: grid;
  gap: 14px;
}

.driver-order-card,
.driver-rental-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.driver-order-card > header,
.driver-rental-card > header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.driver-order-card header strong,
.driver-order-card header small,
.driver-rental-card header strong,
.driver-rental-card header span {
  display: block;
}

.driver-order-card header small,
.driver-rental-card header span {
  color: var(--muted);
  font-size: 12px;
}

.driver-order-flow {
  background: #ffffff;
}

.driver-order-facts {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.driver-rental-card {
  background: var(--surface-blue);
}

.driver-rental-card p {
  color: var(--muted);
  margin: 0;
}

.driver-rental-card form {
  display: grid;
  gap: 12px;
}

@media (max-width: 860px) {
  .driver-status-grid {
    grid-template-columns: 1fr;
  }
}

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

.photo-grid figure {
  margin: 0;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-grid figcaption {
  padding: 7px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.case-workspace-panel {
  display: grid;
  gap: 16px;
}

.workspace-stats,
.document-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-stats span,
.document-group-pills span {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-navy);
  font-size: 12px;
  padding: 6px 9px;
}

.workspace-card {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.workspace-card h3,
.workspace-note-details strong,
.workspace-email-details strong,
.document-upload-details strong,
.document-section.clean strong {
  color: var(--brand-navy);
  margin: 0;
}

.workspace-card p,
.workspace-card .fine {
  margin: 0;
}

.communication-feed-card.expanded {
  background: #ffffff;
}

.workspace-note-form textarea {
  min-height: 110px;
}

.communication-split {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr);
  min-height: 420px;
  overflow: hidden;
}

.communication-feed-list {
  display: grid;
  align-content: start;
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
  max-height: 560px;
  overflow: auto;
}

.communication-feed-item {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.communication-feed-item:hover,
.communication-feed-item.active {
  background: #ffffff;
}

.communication-feed-item.active {
  box-shadow: inset 4px 0 0 var(--brand-orange);
}

.communication-feed-item strong {
  color: var(--brand-navy);
  line-height: 1.3;
}

.communication-feed-preview {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.communication-feed-top,
.communication-detail-meta,
.communication-detail-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.communication-type {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
}

.communication-feed-top small,
.communication-detail-meta {
  color: var(--muted);
  font-size: 12px;
}

.communication-detail-pane {
  background: #ffffff;
  min-width: 0;
  padding: 18px;
}

.communication-detail {
  display: grid;
  gap: 14px;
}

.communication-detail-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.communication-detail-head h3 {
  color: var(--brand-navy);
  font-size: 18px;
  margin: 8px 0 0;
}

.communication-detail-body {
  color: var(--text);
  line-height: 1.55;
  max-height: 360px;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: normal;
}

.communication-detail-actions {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.communication-follow-up,
.follow-up-options {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.communication-follow-up > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.communication-follow-up strong {
  color: var(--brand-navy);
}

.communication-follow-up span,
.communication-follow-up small {
  color: var(--muted);
}

.follow-up-options {
  background: #ffffff;
  margin: 0;
}

.follow-up-options legend {
  color: var(--brand-navy);
  font-weight: 800;
  padding: 0 6px;
}

.follow-up-panel {
  display: grid;
  gap: 16px;
}

.follow-up-board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.follow-up-board section {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.follow-up-board h3 {
  color: var(--brand-navy);
  font-size: 15px;
  margin: 0;
}

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

.work-item-dashboard-list,
.work-item-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.work-item-dashboard-list > .button {
  justify-self: start;
}

.work-item-filter-panel {
  display: grid;
  gap: 14px;
}

.work-item-filter-panel .panel-header {
  align-items: center;
}

.work-item-filter-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-item-filter-grid label:first-child {
  grid-column: span 2;
}

.work-item-filter-grid .button {
  justify-self: start;
}

.work-item-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 29, 75, .05);
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
}

.work-item-card.critical,
.work-item-card.overdue {
  background: #fff8f6;
  border-left-color: var(--red);
}

.work-item-card.escalated {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .08), 0 8px 20px rgba(0, 29, 75, .05);
}

.work-item-card.high.today,
.work-item-card.today {
  background: #fffaf2;
  border-left-color: var(--brand-orange);
}

.work-item-card.low {
  border-left-color: var(--brand-gray);
}

.work-item-card header,
.work-item-card header > div,
.work-item-card footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.work-item-card header,
.work-item-card footer {
  justify-content: space-between;
}

.work-item-card header > span,
.work-item-card small,
.work-item-card footer > span {
  color: var(--muted);
  font-size: 12px;
}

.work-item-card h3 {
  color: var(--brand-navy);
  font-size: 15px;
  margin: 0;
  overflow-wrap: anywhere;
}

.work-item-card p {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.work-item-card .button {
  min-height: 34px;
  padding: 7px 10px;
}

.work-item-control-info {
  background: rgba(0, 58, 150, .05);
  border: 1px solid rgba(0, 58, 150, .12);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.work-item-control-info p {
  color: var(--brand-navy);
  font-size: 12px;
}

.work-item-controls {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 9px;
}

.work-item-controls select {
  min-height: 34px;
  padding: 7px 9px;
  width: min(190px, 100%);
}

.work-item-controls .button {
  white-space: nowrap;
}

.work-item-priority {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-navy);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
}

.work-item-priority.critical {
  background: #fef3f2;
  border-color: #fecdca;
  color: var(--red);
}

.work-item-priority.high {
  background: rgba(246, 135, 18, .12);
  border-color: rgba(246, 135, 18, .30);
  color: #9a4a00;
}

.work-item-priority.normal {
  background: var(--brand-blue-soft);
  border-color: var(--brand-blue-soft-2);
  color: var(--brand-blue);
}

.work-item-priority.low {
  background: var(--surface-soft);
  color: var(--muted);
}

.follow-up-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.follow-up-card.overdue {
  border-left-color: #c2410c;
}

.follow-up-card.today {
  border-left-color: var(--brand-orange);
}

.follow-up-card.done {
  opacity: .78;
}

.follow-up-card header,
.follow-up-card header > div,
.follow-up-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.follow-up-card header {
  justify-content: space-between;
}

.follow-up-card h3 {
  color: var(--brand-navy);
  font-size: 16px;
  margin: 0;
}

.follow-up-card p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.follow-up-card header span,
.follow-up-meta {
  color: var(--muted);
  font-size: 12px;
}

.follow-up-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-navy);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
}

.follow-up-pill.overdue {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.follow-up-pill.today {
  background: rgba(246,135,18,.12);
  border-color: rgba(246,135,18,.28);
  color: #9a4a00;
}

.follow-up-pill.open {
  background: var(--surface-soft);
}

.follow-up-pill.done {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.follow-up-done-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.follow-up-done-details summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 13px 14px;
}

.follow-up-done-details summary::-webkit-details-marker {
  display: none;
}

.follow-up-done-details summary span {
  display: grid;
  gap: 2px;
}

.follow-up-done-details summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.follow-up-done-details .follow-up-list,
.follow-up-done-details .empty-state {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.workspace-note-details,
.workspace-email-details,
.document-upload-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.workspace-note-details summary,
.workspace-email-details summary,
.document-upload-details summary,
.document-section.clean summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 13px 14px;
}

.workspace-note-details summary::-webkit-details-marker,
.workspace-email-details summary::-webkit-details-marker,
.document-upload-details summary::-webkit-details-marker,
.document-section.clean summary::-webkit-details-marker {
  display: none;
}

.workspace-note-details summary::before,
.workspace-email-details summary::before,
.document-upload-details summary::before,
.document-section.clean summary::before {
  color: var(--brand-orange);
  content: "+";
  font-weight: 900;
}

.workspace-note-details[open] summary::before,
.workspace-email-details[open] summary::before,
.document-upload-details[open] summary::before,
.document-section.clean[open] summary::before {
  content: "-";
}

.workspace-note-details summary > span:first-child,
.workspace-email-details summary > span:first-child,
.document-upload-details summary > span:first-child,
.document-section.clean summary > span:first-child {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.workspace-note-details small,
.workspace-email-details small,
.document-upload-details small,
.document-section.clean small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.workspace-note-form,
.email-compose-form,
.document-upload-details .document-upload-form {
  border-top: 1px solid var(--line);
  padding: 14px;
}

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

.document-type-picker {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, .45fr) minmax(260px, 1fr);
}

.mail-editor {
  display: grid;
  gap: 8px;
}

.mail-editor-toolbar {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
}

.mail-editor-toolbar .icon-button {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--brand-navy);
  min-height: 34px;
  width: 34px;
}

.mail-editor-toolbar select {
  min-height: 34px;
  padding: 6px 10px;
}

.rich-mail-editor {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 210px;
  outline: none;
  overflow-wrap: anywhere;
  padding: 12px;
}

.rich-mail-editor:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 58, 150, .11);
}

.rich-mail-editor:empty::before {
  color: var(--muted);
  content: attr(data-placeholder);
}

.document-board {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.document-board.compact {
  gap: 12px;
  margin-top: 14px;
}

.document-hub-panel {
  display: grid;
  gap: 14px;
}

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

.document-section.clean {
  display: block;
}

.document-section.clean summary {
  background: var(--surface-blue);
  border-bottom: 1px solid transparent;
}

.document-section.clean[open] summary {
  border-bottom-color: var(--line);
}

.document-section > header {
  align-items: center;
  background: var(--surface-blue);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.document-section h3 {
  color: var(--brand-navy);
  font-size: 16px;
  margin: 0;
}

.document-section header span {
  color: var(--muted);
  font-size: 12px;
}

.document-card-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

.document-thumb {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-blue);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 74px;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  width: 74px;
}

.document-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.document-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.document-card-title strong,
.document-card-title span {
  display: block;
}

.document-card-title strong {
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.document-card-title span,
.document-meta,
.document-card p {
  color: var(--muted);
  font-size: 12px;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-card p {
  margin: 0;
}

.document-card-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.document-card-footer > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.document-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.document-card-actions .button {
  padding: 7px 10px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  background: var(--brand-navy);
  color: white;
  padding: 14px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 140;
}

.toast.has-chatbot {
  bottom: 24px;
  right: calc(24px + min(330px, calc(100vw - 32px)) + 16px);
}

.toast.has-open-chatbot {
  bottom: auto;
  right: 24px;
  top: 24px;
}

.empty-state {
  border: 1px dashed #b8c4d1;
  border-radius: 8px;
  padding: 24px;
  background: var(--surface-blue);
}

.empty-state.success,
.vehicle-check-panel.success {
  background: #f2fbf6;
  border-color: rgba(30, 125, 87, .35);
}

.empty-state.warning,
.vehicle-check-panel.warning {
  background: #fff8ef;
  border-color: rgba(255, 126, 9, .42);
}

.vehicle-check-panel {
  margin-top: 14px;
  padding: 16px;
}

.api-test-result {
  margin-top: 14px;
}

.api-test-result.success {
  border-color: rgba(30, 125, 87, .35);
  background: #f2fbf6;
}

.api-test-result.warning {
  border-color: rgba(255, 126, 9, .38);
  background: #fff8ef;
}

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

.import-method-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.import-method-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.import-method-header p {
  margin: 6px 0 0;
}

.import-method-kicker {
  color: var(--brand-orange-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.import-method-form {
  display: grid;
  gap: 14px;
}

.import-guide {
  background: var(--surface-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.import-guide h4 {
  color: var(--brand-navy);
  margin: 0;
}

.import-guide ol {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
}

.import-guide li {
  margin: 4px 0;
}

.import-column-groups {
  display: grid;
  gap: 12px;
}

.import-jobs-section {
  margin-top: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.flag-grid,
.requirement-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.requirement-row {
  margin: 16px 0 0;
}

.damage-photo-overview {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 12px;
}

.damage-photo-overview-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.damage-photo-overview-header strong,
.damage-photo-overview-header span {
  display: block;
}

.damage-photo-overview-header span {
  color: var(--muted);
  font-size: 13px;
}

.damage-photo-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.damage-photo-strip a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.damage-photo-strip img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.vehicle-photo-strip {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.damage-type-panel.attention {
  border-color: rgba(255, 126, 9, .45);
  box-shadow: 0 10px 28px rgba(255, 126, 9, .10);
}

.related-damage-panel,
.deferral-panel,
.deferred-dashboard-panel {
  border-color: rgba(246, 135, 18, .32);
}

.related-damage-list,
.deferred-dashboard-list {
  display: grid;
  gap: 10px;
}

.related-damage-link,
.deferred-dashboard-item,
.deferral-current {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  text-decoration: none;
}

.related-damage-link:hover {
  background: var(--surface-blue);
}

.related-damage-link span,
.related-damage-link small,
.deferred-dashboard-item span,
.deferred-dashboard-item small,
.deferral-current span,
.deferral-current small {
  color: var(--muted);
  font-size: 12px;
}

.related-damage-link strong,
.deferred-dashboard-item strong,
.deferral-current strong {
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.deferred-dashboard-item {
  align-items: center;
  border-left: 4px solid var(--brand-orange);
  grid-template-columns: minmax(0, 1fr) auto;
}

.deferred-dashboard-item.missing {
  border-left-color: var(--red);
}

.deferred-dashboard-item.collect {
  border-left-color: var(--brand-blue);
}

.deferral-panel.paused {
  border-color: var(--line);
}

.deferral-panel.attention {
  border-color: rgba(246, 135, 18, .45);
  box-shadow: 0 10px 28px rgba(246, 135, 18, .10);
}

.deferral-current {
  align-items: center;
  background: var(--surface-soft);
  grid-template-columns: minmax(0, 1fr) auto;
}

.deferral-current.attention {
  background: #fff8ef;
  border-color: rgba(246, 135, 18, .38);
}

.deferral-current.paused {
  background: var(--surface-blue);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 29, 75, .48);
  display: grid;
  place-items: center;
  padding: 22px;
  z-index: 120;
}

.modal {
  width: min(1180px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: white;
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

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

.mail-viewer {
  display: grid;
  gap: 14px;
}

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

.mail-viewer-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.mail-viewer-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mail-viewer-field strong {
  overflow-wrap: anywhere;
}

.mail-viewer-body {
  max-height: 46vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mail-template-usage {
  display: grid;
  gap: 16px;
}

.mail-template-usage-head {
  align-items: start;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .35fr);
  padding: 16px;
}

.mail-template-usage-head h3 {
  color: var(--brand-navy);
  font-size: 20px;
  margin: 10px 0 6px;
}

.mail-template-usage-head p {
  color: var(--ink);
  margin: 0;
  overflow-wrap: anywhere;
}

.mail-template-type-card,
.mail-template-usage-field,
.mail-template-flow-step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.mail-template-type-card {
  display: grid;
  gap: 6px;
  padding: 13px;
}

.mail-template-type-card span,
.mail-template-type-card small,
.mail-template-usage-field span {
  color: var(--muted);
  font-size: 12px;
}

.mail-template-type-card span,
.mail-template-usage-field span {
  font-weight: 850;
  text-transform: uppercase;
}

.mail-template-type-card strong,
.mail-template-usage-field strong {
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.mail-template-flow {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.mail-template-flow-step {
  display: grid;
  gap: 9px;
  min-height: 112px;
  padding: 14px;
}

.mail-template-flow-step span {
  align-items: center;
  background: var(--surface-blue);
  border: 1px solid var(--brand-blue-soft-2);
  border-radius: 999px;
  color: var(--brand-blue);
  display: inline-flex;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.mail-template-flow-step strong {
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.mail-template-flow-step.is-mail-step {
  background: #fff8ef;
  border-color: rgba(246, 135, 18, .48);
  box-shadow: 0 10px 26px rgba(246, 135, 18, .12);
}

.mail-template-flow-step.is-mail-step span {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
}

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

.mail-template-usage-field {
  display: grid;
  gap: 6px;
  padding: 12px;
}

@media (max-width: 720px) {
  .mail-template-usage-head,
  .mail-template-usage-grid {
    grid-template-columns: 1fr;
  }
}

.photo-preview-modal {
  display: grid;
  place-items: center;
}

.photo-preview-image {
  border-radius: 8px;
  max-height: calc(100vh - 180px);
  max-width: 100%;
  object-fit: contain;
}

.settlement-preview {
  display: grid;
  gap: 14px;
}

.settlement-reconciliation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
}

.settlement-reconciliation div {
  min-width: 0;
}

.settlement-reconciliation span,
.settlement-reconciliation p {
  color: var(--muted);
}

.settlement-reconciliation span,
.settlement-reconciliation strong {
  display: block;
}

.settlement-reconciliation strong {
  font-size: 1.05rem;
}

.settlement-reconciliation p {
  grid-column: 1 / -1;
  margin: 0;
}

.settlement-reconciliation.is-warning {
  border-color: #f2b166;
  background: #fff8ed;
}

.settlement-pdf-preview {
  width: 100%;
  height: min(62vh, 720px);
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.code-link {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-blue);
  border-radius: 8px;
  padding: 10px;
  color: #314056;
  overflow-wrap: anywhere;
}

.damage-report-panel {
  margin: 0;
  max-width: none;
  width: 100%;
}

.damage-report-form {
  gap: 18px;
}

.nested-fieldset {
  background: #f8fbff;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

.check-pill,
.inline-check {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 9px;
  min-height: 42px;
  padding: 9px 11px;
}

.inline-check {
  background: #fff;
}

.check-pill input,
.inline-check input,
.damage-zone input {
  width: auto;
  min-width: auto;
}

.damage-upload {
  border: 1px dashed #b7c5d8;
  border-radius: 8px;
  cursor: pointer;
  min-height: 82px;
  place-items: center;
  text-align: center;
}

.damage-upload span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.damage-upload input {
  border: 0;
  max-width: 360px;
  padding: 0;
}

.damage-upload-wrap {
  display: grid;
  gap: 12px;
}

.upload-preview {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.upload-preview-header {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  margin-bottom: 10px;
}

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

.upload-preview-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 62px minmax(0, 1fr) 36px;
  min-height: 78px;
  padding: 8px;
}

.upload-preview-item img,
.upload-preview-file {
  aspect-ratio: 1;
  background: #eaf1fb;
  border-radius: 6px;
  height: 62px;
  object-fit: cover;
  width: 62px;
}

.upload-preview-file {
  align-items: center;
  color: var(--brand-blue);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
}

.upload-preview-item strong,
.upload-preview-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-item span {
  color: var(--muted);
  font-size: 12px;
}

.vehicle-damage-map {
  max-width: 780px;
}

.car-skeleton {
  background:
    radial-gradient(circle at 22% 25%, rgba(246, 135, 18, .13) 0 18px, transparent 19px),
    radial-gradient(circle at 78% 25%, rgba(246, 135, 18, .13) 0 18px, transparent 19px),
    radial-gradient(circle at 22% 76%, rgba(246, 135, 18, .13) 0 18px, transparent 19px),
    radial-gradient(circle at 78% 76%, rgba(246, 135, 18, .13) 0 18px, transparent 19px),
    linear-gradient(90deg, transparent 0 7%, #90abc8 7% 8%, transparent 8% 92%, #90abc8 92% 93%, transparent 93%),
    linear-gradient(180deg, #f8fbff, #ffffff);
  border: 2px solid #90abc8;
  border-radius: 56px;
  color: var(--brand-navy);
  min-height: 360px;
  position: relative;
  width: min(100%, 720px);
}

.car-skeleton::before {
  border: 2px solid #b8c9dc;
  border-radius: 38px;
  content: "";
  inset: 58px 110px;
  position: absolute;
}

.car-skeleton::after {
  border-left: 2px solid #b8c9dc;
  border-right: 2px solid #b8c9dc;
  content: "";
  inset: 112px 250px;
  position: absolute;
}

.damage-hotspot {
  position: absolute;
}

.damage-hotspot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.damage-hotspot span {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 2px dashed var(--brand-orange);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 29, 75, .12);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  justify-content: center;
  min-height: 36px;
  min-width: 84px;
  padding: 7px 10px;
  text-align: center;
}

.damage-hotspot input:checked + span {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.damage-hotspot-front { left: 50%; top: 10px; transform: translateX(-50%); }
.damage-hotspot-hood { left: 50%; top: 62px; transform: translateX(-50%); }
.damage-hotspot-windshield { left: 50%; top: 112px; transform: translateX(-50%); }
.damage-hotspot-roof { left: 50%; top: 168px; transform: translateX(-50%); }
.damage-hotspot-rearWindow { left: 50%; bottom: 112px; transform: translateX(-50%); }
.damage-hotspot-rear { left: 50%; bottom: 10px; transform: translateX(-50%); }
.damage-hotspot-driverFront { left: 18px; top: 92px; }
.damage-hotspot-driverRear { left: 18px; bottom: 92px; }
.damage-hotspot-passengerFront { right: 18px; top: 92px; }
.damage-hotspot-passengerRear { right: 18px; bottom: 92px; }
.damage-hotspot-wheels { right: 24px; top: 50%; transform: translateY(-50%); }

.vehicle-part-map {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(#d6e0eb, #d6e0eb) 16% 22% / 67% 2px no-repeat,
    linear-gradient(#d6e0eb, #d6e0eb) 16% 72% / 67% 2px no-repeat,
    linear-gradient(90deg, #d6e0eb 0 2px, transparent 2px) 14% 38% / 73% 25% no-repeat,
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 920px;
  min-height: auto;
  overflow: hidden;
  position: relative;
  width: min(100%, 920px);
}

.vehicle-side-marker {
  color: var(--brand-navy);
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 800;
  left: 7%;
  line-height: 1;
  position: absolute;
}

.vehicle-side-marker-left {
  top: 9%;
}

.vehicle-side-marker-right {
  bottom: 9%;
}

.damage-part {
  display: block;
  position: absolute;
}

.damage-part input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.damage-part span {
  align-items: center;
  background: rgba(255, 255, 255, .82);
  border: 2px solid #9fb0c4;
  color: var(--brand-navy);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  justify-content: center;
  padding: 6px;
  text-align: center;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
  width: 100%;
}

.damage-part strong {
  font-size: clamp(18px, 3vw, 34px);
  line-height: 1;
}

.damage-part small {
  font-size: clamp(9px, 1.3vw, 12px);
  font-weight: 750;
  line-height: 1.12;
}

.damage-part input:checked + span {
  background: rgba(246, 135, 18, .82);
  border-color: var(--brand-orange);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .72), 0 10px 24px rgba(246, 135, 18, .25);
  color: #fff;
}

.damage-part-leftRear { left: 16%; top: 7%; width: 15%; height: 19%; }
.damage-part-leftRear span { border-radius: 14px 0 0 28px; clip-path: polygon(7% 15%, 86% 2%, 100% 100%, 16% 94%); }
.damage-part-leftRearDoor { left: 31%; top: 6%; width: 18%; height: 20%; }
.damage-part-leftRearDoor span { clip-path: polygon(7% 5%, 100% 0, 94% 100%, 0 93%); }
.damage-part-leftFrontDoor { left: 49%; top: 6%; width: 18%; height: 20%; }
.damage-part-leftFrontDoor span { clip-path: polygon(2% 0, 91% 5%, 100% 91%, 7% 100%); }
.damage-part-leftFront { left: 67%; top: 7%; width: 15%; height: 19%; }
.damage-part-leftFront span { border-radius: 0 14px 28px 0; clip-path: polygon(0 0, 88% 13%, 98% 92%, 0 100%); }

.damage-part-rear { left: 3%; top: 36%; width: 12%; height: 24%; }
.damage-part-rear span { border-radius: 24px 6px 6px 24px; }
.damage-part-rearTop { left: 16%; top: 33%; width: 18%; height: 30%; }
.damage-part-rearTop span { border-radius: 24px 8px 8px 24px; clip-path: polygon(0 18%, 88% 0, 100% 100%, 0 88%); }
.damage-part-roof { left: 34%; top: 31%; width: 30%; height: 34%; }
.damage-part-roof span { border-radius: 18px; }
.damage-part-hood { left: 64%; top: 33%; width: 22%; height: 30%; }
.damage-part-hood span { border-radius: 8px 28px 28px 8px; clip-path: polygon(0 0, 88% 16%, 100% 84%, 0 100%); }
.damage-part-front { left: 87%; top: 36%; width: 10%; height: 24%; }
.damage-part-front span { border-radius: 6px 24px 24px 6px; }

.damage-part-rightRear { left: 16%; top: 74%; width: 15%; height: 19%; }
.damage-part-rightRear span { border-radius: 28px 0 0 14px; clip-path: polygon(16% 6%, 100% 0, 86% 98%, 7% 85%); }
.damage-part-rightRearDoor { left: 31%; top: 74%; width: 18%; height: 20%; }
.damage-part-rightRearDoor span { clip-path: polygon(0 7%, 94% 0, 100% 95%, 7% 100%); }
.damage-part-rightFrontDoor { left: 49%; top: 74%; width: 18%; height: 20%; }
.damage-part-rightFrontDoor span { clip-path: polygon(7% 0, 100% 7%, 91% 95%, 2% 100%); }
.damage-part-rightFront { left: 67%; top: 74%; width: 15%; height: 19%; }
.damage-part-rightFront span { border-radius: 0 28px 14px 0; clip-path: polygon(0 0, 98% 8%, 88% 87%, 0 100%); }

.vehicle-damage-map {
  max-width: 1100px;
}

.vehicle-part-map {
  aspect-ratio: 1000 / 620;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 51, 102, .03);
  max-width: 1100px;
  min-height: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.vehicle-blueprint-svg {
  inset: 3.5% 2.5%;
  position: absolute;
  width: 95%;
  height: 93%;
}

.vehicle-blueprint-lines {
  fill: none;
  stroke: #233b5b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.vehicle-blueprint-lines rect {
  fill: rgba(255, 255, 255, .28);
}

.vehicle-side-marker {
  color: var(--brand-navy);
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 900;
  left: 7%;
  line-height: 1;
  position: absolute;
  z-index: 2;
}

.vehicle-side-marker-left {
  top: 10%;
}

.vehicle-side-marker-right {
  bottom: 10%;
}

.damage-part {
  display: block;
  position: absolute;
  z-index: 3;
}

.damage-part input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.damage-part span {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 2px solid transparent;
  color: var(--brand-navy);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  justify-content: center;
  padding: 6px;
  text-align: center;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
  width: 100%;
}

.damage-part strong {
  align-items: center;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(0, 51, 102, .16);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 29, 75, .08);
  display: flex;
  font-size: clamp(16px, 2.2vw, 30px);
  height: clamp(30px, 4vw, 48px);
  justify-content: center;
  line-height: 1;
  min-width: clamp(30px, 4vw, 48px);
  padding: 0 10px;
}

.damage-part small {
  background: rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 29, 75, .08);
  font-size: clamp(9px, 1.1vw, 12px);
  font-weight: 800;
  line-height: 1.12;
  max-width: 92%;
  padding: 3px 7px;
}

.damage-part:hover span {
  background: rgba(0, 75, 145, .08);
  border-color: rgba(0, 75, 145, .45);
}

.damage-part input:checked + span {
  background: rgba(246, 135, 18, .22);
  border-color: var(--brand-orange);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .72), 0 10px 24px rgba(246, 135, 18, .24);
  color: var(--brand-navy);
}

.damage-part input:checked + span strong,
.damage-part input:checked + span small {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.damage-part-leftRear { left: 18.5%; top: 7%; width: 15.5%; height: 18%; }
.damage-part-leftRear span { border-radius: 18px 8px 8px 28px; clip-path: polygon(4% 35%, 35% 12%, 100% 4%, 100% 95%, 20% 90%, 0 72%); }
.damage-part-leftRearDoor { left: 34%; top: 7%; width: 15%; height: 18%; }
.damage-part-leftRearDoor span { clip-path: polygon(0 18%, 100% 5%, 100% 95%, 0 88%); }
.damage-part-leftFrontDoor { left: 49%; top: 7%; width: 15%; height: 18%; }
.damage-part-leftFrontDoor span { clip-path: polygon(0 5%, 100% 15%, 100% 86%, 0 95%); }
.damage-part-leftFront { left: 64%; top: 7%; width: 19%; height: 18%; }
.damage-part-leftFront span { border-radius: 8px 28px 28px 8px; clip-path: polygon(0 5%, 75% 14%, 100% 34%, 97% 72%, 80% 90%, 0 95%); }

.damage-part-rear { left: 4%; top: 40%; width: 10.5%; height: 22%; }
.damage-part-rear span { border-radius: 26px 9px 9px 26px; }
.damage-part-rearTop { left: 15.5%; top: 34%; width: 18%; height: 32%; }
.damage-part-rearTop span { border-radius: 30px 10px 10px 30px; clip-path: polygon(0 18%, 72% 0, 100% 15%, 100% 86%, 72% 100%, 0 86%); }
.damage-part-roof { left: 33.5%; top: 33%; width: 28.5%; height: 34%; }
.damage-part-roof span { border-radius: 22px; }
.damage-part-hood { left: 62%; top: 34%; width: 25%; height: 32%; }
.damage-part-hood span { border-radius: 10px 34px 34px 10px; clip-path: polygon(0 12%, 72% 0, 100% 18%, 100% 84%, 72% 100%, 0 88%); }
.damage-part-front { left: 88%; top: 40%; width: 8.5%; height: 22%; }
.damage-part-front span { border-radius: 9px 26px 26px 9px; }

.damage-part-rightRear { left: 18.5%; top: 75%; width: 15.5%; height: 18%; }
.damage-part-rightRear span { border-radius: 28px 8px 8px 18px; clip-path: polygon(20% 10%, 100% 5%, 100% 96%, 35% 88%, 4% 65%, 0 28%); }
.damage-part-rightRearDoor { left: 34%; top: 75%; width: 15%; height: 18%; }
.damage-part-rightRearDoor span { clip-path: polygon(0 12%, 100% 5%, 100% 82%, 0 95%); }
.damage-part-rightFrontDoor { left: 49%; top: 75%; width: 15%; height: 18%; }
.damage-part-rightFrontDoor span { clip-path: polygon(0 5%, 100% 12%, 100% 88%, 0 95%); }
.damage-part-rightFront { left: 64%; top: 75%; width: 19%; height: 18%; }
.damage-part-rightFront span { border-radius: 8px 28px 28px 8px; clip-path: polygon(0 5%, 80% 10%, 97% 28%, 100% 66%, 75% 86%, 0 95%); }

.repeat-list {
  display: grid;
  gap: 14px;
}

.repeat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.repeat-card-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

@media (max-width: 1180px) {
  .timeline-detailed {
    grid-template-columns: 1fr;
  }

  .timeline-detail-stack {
    position: static;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    align-self: stretch;
    height: auto;
    max-height: none;
    overflow: visible;
    position: static;
  }

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

  .nav-group {
    grid-column: 1 / -1;
  }

  .toast.has-chatbot {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    right: 22px;
  }

  .toast.has-open-chatbot {
    bottom: auto;
    top: calc(22px + env(safe-area-inset-top, 0px));
  }

  .grid.three,
  .grid.four,
  .grid.five,
  .grid.six,
  .dashboard-stage-grid,
  .system-cockpit-grid,
  .reporting-signal-grid,
  .accounting-cockpit,
  .accounting-aging,
  .accounting-detail-grid,
  .accounting-manual-totals,
  .accounting-position-row,
  .process-gate-grid,
  .process-checklist,
  .import-method-grid,
  .damage-summary-grid,
  .damage-filter-grid,
  .work-item-filter-grid,
  .damage-case-link,
  .case-overview-main,
  .case-stage-map,
  .follow-up-board,
  .communication-split,
  .case-bottom,
  .chatbot-workspace,
  .hero-band {
    grid-template-columns: 1fr;
  }

  .communication-feed-list {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    max-height: 300px;
  }

  .damage-search-field {
    grid-column: auto;
  }

  .work-item-filter-grid label:first-child {
    grid-column: auto;
  }

  .case-stage {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: auto;
  }

  .case-stage:last-child {
    border-bottom: 0;
  }

  .hero-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .topbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .topbar-status {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .sidebar {
    padding-bottom: 92px;
  }

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

@media (max-width: 720px) {
  .content,
  .topbar {
    padding: 18px;
  }

  .topbar {
    gap: 12px;
  }

  .topbar-actions,
  .topbar-actions .button,
  .global-search {
    width: 100%;
  }

  .dashboard-command {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-command-actions,
  .dashboard-command-actions .button {
    width: 100%;
  }

  .grid.two,
  .form-grid,
  .form-grid.three,
  .form-grid.four,
  .chatbot-form,
  .document-upload-form .document-upload-grid,
  .document-type-picker,
  .accounting-dialog-summary,
  .settlement-reconciliation,
  .process-quality-summary,
  .mail-viewer-grid,
  .deferred-dashboard-item,
  .deferral-current,
  .damage-overview-title,
  .damage-filter-head,
  .case-overview-header,
  .document-card {
    grid-template-columns: 1fr;
  }

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

  .accounting-action-stack,
  .accounting-facts div {
    grid-template-columns: 1fr;
  }

  .accounting-details summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-header {
    flex-direction: column;
  }

  .panel-header .actions {
    width: 100%;
  }

  .chatbot-message {
    max-width: 100%;
  }

  .chatbot-floating {
    bottom: 14px;
    left: 14px;
    right: 14px;
  }

  .toast {
    left: 14px;
    max-width: none;
    right: 14px;
  }

  .toast.has-chatbot {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    right: 14px;
  }

  .toast.has-open-chatbot {
    bottom: auto;
    top: calc(14px + env(safe-area-inset-top, 0px));
  }

  .chatbot-fab,
  .chatbot-window {
    width: 100%;
  }

  .chatbot-window {
    max-height: calc(100vh - 92px);
  }

  .chatbot-window-form {
    grid-template-columns: 1fr;
  }

  .chatbot-window-tools {
    flex-direction: column;
  }

  .damage-overview-title,
  .damage-filter-head,
  .reporting-hero,
  .reporting-block-title,
  .case-overview-header {
    display: grid;
  }

  .reporting-hero-pills {
    justify-content: flex-start;
  }

  .reporting-bar-row {
    grid-template-columns: 1fr;
  }

  .reporting-total-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-status-stack {
    align-items: start;
    justify-items: start;
  }

  .workspace-note-details summary,
  .workspace-email-details summary,
  .document-upload-details summary,
  .document-section.clean summary {
    align-items: flex-start;
  }

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

  .public-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-nav .brand {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .public-nav .actions,
  .public-nav .actions .button {
    width: 100%;
  }

  .public-nav .language-switcher {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
  }
}
