html,
      body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
        background: #0f1115;
      }

      body {
        font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
        color: #e6edf5;
      }

      #boot-shell {
        position: fixed;
        inset: 0;
        display: grid;
        place-items: center;
        background:
          radial-gradient(130% 140% at 15% 5%, rgba(64, 64, 64, 0.18), rgba(13, 13, 13, 0.98)),
          linear-gradient(180deg, rgba(26, 26, 26, 0.96), rgba(13, 13, 13, 0.99));
        z-index: 9999;
        transition: opacity 160ms ease;
      }

      #resume-shell {
        position: fixed;
        inset: 0;
        display: grid;
        place-items: center;
        background:
          radial-gradient(130% 140% at 15% 5%, rgba(64, 64, 64, 0.18), rgba(13, 13, 13, 0.98)),
          linear-gradient(180deg, rgba(26, 26, 26, 0.96), rgba(13, 13, 13, 0.99));
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 140ms ease;
      }

      #resume-shell-label {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-transform: uppercase;
        font-weight: 900;
        letter-spacing: 0.1em;
        user-select: none;
      }
      #resume-shell-logo {
        width: min(280px, 58vw);
        max-height: 120px;
        height: auto;
        object-fit: contain;
        display: none;
      }
      #resume-shell-label.has-brand-logo .academy-word-law,
      #resume-shell-label.has-brand-logo .academy-word-name {
        display: none;
      }
      #resume-shell-label.has-brand-logo #resume-shell-logo {
        display: block;
      }

      #boot-shell-label {
        font-size: 14px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #cbd5f5;
        opacity: 0.9;
      }

      #boot-shell-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-transform: uppercase;
        font-weight: 900;
        letter-spacing: 0.1em;
        user-select: none;
      }

      #boot-shell-logo {
        width: min(320px, 62vw);
        max-height: 140px;
        height: auto;
        object-fit: contain;
        display: none;
      }
      #boot-shell-brand.has-brand-logo .academy-word-law,
      #boot-shell-brand.has-brand-logo .academy-word-name {
        display: none;
      }
      #boot-shell-brand.has-brand-logo #boot-shell-logo {
        display: block;
      }

      .academy-word-law,
      .academy-word-name {
        font-size: clamp(34px, 7vw, 86px);
        line-height: 1;
      }

      .academy-word-law {
        color: #ffffff;
        text-shadow: 0 10px 24px rgba(148, 163, 184, 0.25);
      }

      .academy-word-name {
        color: #60a5fa;
        text-shadow: 0 12px 30px rgba(14, 165, 233, 0.35);
      }

      #boot-shell-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
      }

      #app-shell {
        height: 100dvh;
        overflow: hidden;
        display: none;
      }

      body.app-ready #app-shell {
        display: block;
        opacity: 1;
        visibility: visible;
        transition: opacity 160ms ease;
      }

      /* Bis Layout-Controller aktiv ist: kein 3-Spalten-Flash aus defer-CSS. */
      body:not([data-active-tab="planning"]) #app-main {
        grid-template-columns: minmax(0, 1fr) !important;
      }

      body:not([data-active-tab="planning"]) #panel-canvas,
      body:not([data-active-tab="planning"]) #panel-right {
        display: none !important;
      }

      body:not(.app-ready) #app-shell,
      body:not(.app-ready) #app-shell img {
        visibility: hidden !important;
      }

      body.app-ready #boot-shell {
        opacity: 0;
        pointer-events: none;
      }

      body.app-ready.app-resuming #resume-shell {
        opacity: 1;
        pointer-events: auto;
      }

      body.app-ready.app-resuming #app-shell {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }

      .vehicle-flow-header.flow-header-shell {
        border-color: rgba(96, 165, 250, 0.35) !important;
        background: linear-gradient(90deg, rgba(15, 23, 42, 0.85), rgba(30, 58, 138, 0.35)) !important;
        padding: 7px 8px !important;
        height: auto !important;
        min-height: 72px !important;
        margin-bottom: 4px !important;
      }

      .vehicle-flow-header {
        align-items: center !important;
        flex-wrap: nowrap !important;
        min-height: 72px !important;
        gap: 10px 12px !important;
      }

      .vehicle-flow-copy .load-flow-title {
        line-height: 1.15 !important;
      }

      .vehicle-flow-copy .load-flow-meta {
        color: #9fb3d8 !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
      }

      .section-header__actions--vehicle {
        align-items: stretch !important;
      }

      .vehicle-flow-payload-chip {
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 6px 10px !important;
        gap: 2px !important;
        align-items: stretch !important;
      }

      .vehicle-flow-payload-head,
      .vehicle-flow-payload-main {
        display: flex !important;
        align-items: baseline !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
      }

      .vehicle-flow-payload-value {
        display: inline-flex !important;
        align-items: baseline !important;
        gap: 4px !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
      }

      .vehicle-flow-payload-label {
        font-size: 9px !important;
      }

      .vehicle-flow-payload-chip strong {
        font-size: 18px !important;
        line-height: 1 !important;
      }

      .vehicle-flow-payload-unit {
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        opacity: 0.92 !important;
      }

      .vehicle-flow-payload-details {
        font-size: 9px !important;
        line-height: 1.2 !important;
        color: #ffffff !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: right !important;
        white-space: normal !important;
        display: inline-flex !important;
        align-items: baseline !important;
        overflow-wrap: anywhere !important;
        flex: 1 1 auto !important;
      }

      body[data-active-tab="planning"] #planning-statusbar-host #statusbar .status-bar {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        backdrop-filter: none !important;
        --planning-status-side-slot: 208px !important;
        padding: 0 !important;
        position: relative !important;
      }

      body[data-active-tab="planning"] .planning-stage-header {
        min-height: 92px !important;
      }

      body[data-active-tab="planning"] .planning-stage-header > .section-header__center {
        display: none !important;
      }

      body[data-active-tab="planning"] #planning-statusbar-host #status-left-stack {
        position: absolute !important;
        top: 38px !important;
        right: 8px !important;
        width: var(--planning-status-side-slot) !important;
        min-width: var(--planning-status-side-slot) !important;
        max-width: var(--planning-status-side-slot) !important;
      }

      body[data-active-tab="planning"] #planning-statusbar-host #global-status-checks {
        display: flex !important;
        align-items: center !important;
      }
