:root {
  --bg: #f3f5f9;
  --card: rgba(255, 255, 255, 0.96);
  --card-strong: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #d9e2ef;
  --line-strong: #c6d3e5;
  --brand: #e11d48;
  --brand-soft: #fff0f3;
  --accent: #f4c95d;
  --accent-soft: #fff8de;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

html {
  scrollbar-gutter: stable;
}

.soft-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: rgba(99, 102, 241, 0.08);
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.kiagent-input-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.kiagent-input-heading {
  align-items: start;
  gap: 16px;
}

.kiagent-input-heading > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.kiagent-input-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.kiagent-input-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  max-width: 880px;
}

.kiagent-example-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.kiagent-example-note strong {
  color: #334155;
}

.kiagent-main-input {
  display: grid;
  gap: 10px;
}

.kiagent-main-input-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kiagent-input-card .modal-actions {
  padding-top: 6px;
  gap: 12px;
  align-items: center;
}

.kiagent-input-card .inline-button,
.kiagent-input-card .primary-button {
  min-height: 36px;
  padding: 0 18px;
  font-size: 14px;
}

.kiagent-page .content-panel {
  position: relative;
  overflow: hidden;
}

.kiagent-drawer-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 1240;
}

.kiagent-drawer {
  position: fixed;
  top: 58px;
  right: 4vw;
  bottom: 14px;
  width: min(1040px, calc(100vw - 28px));
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  transform: translateX(calc(100% + 4vw + 22px));
  transition: transform 260ms ease;
  z-index: 1250;
  isolation: isolate;
}

.kiagent-drawer-tab {
  position: fixed;
  right: 8px;
  bottom: 18px;
  z-index: 1265;
  width: 86px;
  height: 86px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background-color: transparent;
  background-image: url("assets/KIMessenger_light.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 86px 86px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  cursor: pointer;
  box-shadow: none;
  image-rendering: auto;
  will-change: opacity;
  transition: opacity 220ms ease, filter 180ms ease;
  overflow: hidden;
  isolation: isolate;
}

.kiagent-drawer-tab::before,
.kiagent-drawer-tab::after {
  content: none;
}

.kiagent-drawer-tab:hover {
  filter: brightness(1.04);
}

.kiagent-drawer-tab .kiagent-drawer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.32);
  transition: opacity 260ms ease;
}

.page-shell[data-kiagent-has-messages="1"] .kiagent-drawer-tab .kiagent-drawer-video {
  opacity: 1;
}

.page-shell[data-kiagent-drawer-open="1"] .kiagent-drawer-tab {
  opacity: 1;
  pointer-events: auto;
}

.serviceportal-layout {
  max-width: 1080px;
  margin: 0 auto;
}

.serviceportal-page .page-shell {
  padding-top: 28px;
}

.serviceportal-hero {
  margin-bottom: 14px;
}

.page-shell[data-kiagent-drawer-open="1"] .kiagent-drawer {
  transform: translateX(0);
}

.page-shell[data-kiagent-drawer-open="1"] .kiagent-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.kiagent-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.kiagent-drawer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.kiagent-drawer-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.kiagent-drawer-header .tiny-button {
  display: none;
}

.kiagent-message-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

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

.kiagent-drawer-input-wrap {
  display: block;
}

.kiagent-drawer-input {
  min-height: 64px;
  resize: vertical;
}

.kiagent-drawer-send {
  min-width: 104px;
  min-height: 42px;
}

.kiagent-message {
  border-radius: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.kiagent-message-user {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.96));
  border-color: rgba(249, 115, 22, 0.2);
}

.kiagent-message-assistant {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.96));
  border-color: rgba(59, 130, 246, 0.22);
}

.kiagent-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.kiagent-message-head strong {
  font-size: 13px;
}

.kiagent-message-head span {
  font-size: 11px;
  color: var(--muted);
}

.kiagent-message-body {
  color: #1f2937;
  font-size: 13px;
  line-height: 1.55;
}

.kiagent-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 10px;
}

.kiagent-message-link {
  text-decoration: none;
}

.kiagent-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.kiagent-slot-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.kiagent-slot-card strong {
  font-size: 14px;
}

.kiagent-slot-card span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .stammdaten-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-popup-card {
    width: min(420px, calc(100vw - 24px));
  }

  .kiagent-input-heading {
    align-items: stretch;
  }

  .kiagent-input-heading .soft-tag {
    justify-self: start;
  }

  .kiagent-drawer {
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: min(100vw - 24px, 420px);
    transform: translateX(calc(100% + 24px));
  }
  .kiagent-drawer-tab {
    right: 6px;
    bottom: 12px;
    width: 72px;
    height: 72px;
    background-size: 72px 72px;
  }
}

@media (max-width: 520px) {
  .stammdaten-card-grid {
    grid-template-columns: 1fr;
  }

  .library-popup-card {
    right: 12px !important;
    width: calc(100vw - 24px);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(225, 29, 72, 0.09), transparent 22%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 18%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  padding: 14px 18px 18px;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 8px 18px;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.topbar a {
  color: #1f2937;
}

.topbar a:hover,
.topbar a.is-active {
  color: var(--brand);
}

.topbar a[hidden] {
  display: none !important;
}

.topbar-library-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  height: 36px;
  min-height: 36px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: 1px solid rgba(225, 29, 72, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(190, 18, 60, 0.96), rgba(225, 29, 72, 0.8) 48%, rgba(127, 29, 29, 0.92)),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  z-index: 1410;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

[data-topbar-logon] {
  margin-left: auto;
}

[data-topbar-phase] {
  margin-left: auto;
}

[data-topbar-phase] + [data-topbar-logon] {
  margin-left: 0;
}

[data-topbar-library] {
  margin-left: 0;
}

.topbar-logon-button {
  text-decoration: none;
}

.topbar-library-button.topbar-phase-button {
  width: 46px;
  min-width: 46px;
  padding: 0;
  border-color: rgba(34, 197, 94, 0.42);
  background:
    linear-gradient(135deg, rgba(21, 128, 61, 0.97), rgba(34, 197, 94, 0.82) 52%, rgba(20, 83, 45, 0.94)),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.topbar-library-button.topbar-phase-button[aria-expanded="true"],
.topbar-library-button.topbar-phase-button:hover {
  border-color: rgba(187, 247, 208, 0.72);
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.topbar-phase-button .topbar-action-logo {
  filter: drop-shadow(0 6px 10px rgba(21, 128, 61, 0.28));
}

.topbar-phase-button.is-collapsed {
  border-color: rgba(74, 222, 128, 0.78);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16), 0 18px 44px rgba(34, 197, 94, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.topbar-library-button.topbar-phase-two-button,
.topbar-library-button.topbar-phase-three-button {
  width: 46px;
  min-width: 46px;
  padding: 0;
  border-color: rgba(34, 197, 94, 0.42);
  background:
    linear-gradient(135deg, rgba(21, 128, 61, 0.97), rgba(34, 197, 94, 0.82) 52%, rgba(20, 83, 45, 0.94)),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.topbar-library-button.topbar-phase-two-button:hover,
.topbar-library-button.topbar-phase-two-button.is-collapsed,
.topbar-library-button.topbar-phase-three-button:hover,
.topbar-library-button.topbar-phase-three-button.is-collapsed {
  border-color: rgba(187, 247, 208, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16), 0 18px 42px rgba(34, 197, 94, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.topbar-phase-two-button .topbar-action-logo,
.topbar-phase-three-button .topbar-action-logo {
  filter: drop-shadow(0 6px 10px rgba(21, 128, 61, 0.28));
}

.topbar-action-logo {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(127, 29, 29, 0.25));
}

.topbar-extras-button {
  margin-right: 25vw;
}

.topbar-library-button[aria-expanded="true"] {
  transform: translateY(2px);
  border-color: rgba(225, 29, 72, 0.62);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  z-index: 1500;
}

.topbar-library-button:hover {
  transform: translateY(-1px) scale(1.04) rotate(1deg);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.topbar-library-button:active {
  transform: scale(0.97);
}

.topbar-library-button-shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%);
  transition: transform 680ms ease;
}

.topbar-library-button:hover .topbar-library-button-shine {
  transform: translateX(120%);
}

.phase-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.phase-metric-card {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.84));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.phase-metric-card span {
  display: block;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 8px;
}

.phase-metric-card strong {
  display: block;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.phase-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #dbe2ea;
}

.phase-status-pill > span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.phase-status-pill.is-paid > span {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.phase-status-pill.is-overdue > span {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.phase-status-pill.is-partial > span {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.phase-reminder-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.phase-reminder-card {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 24px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.phase-reminder-head,
.phase-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.phase-reminder-head h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.phase-reminder-head p {
  margin: 0;
  color: #64748b;
}

.phase-process-tree {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  color: #334155;
}

.phase-process-tree div {
  position: relative;
  padding-left: 18px;
}

.phase-process-tree div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.phase-payment-input-card,
.phase-payment-history-card {
  margin: 18px 0;
}

.phase-payment-input-card {
  padding: 24px;
}

.phase-payment-input-card .section-header {
  margin-bottom: 18px;
}

.phase-payment-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(160px, 0.9fr) minmax(160px, 0.9fr) minmax(240px, 1.15fr) minmax(150px, auto);
  gap: 16px;
  align-items: end;
}

.phase-payment-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.phase-payment-form .app-button {
  min-height: 44px;
  white-space: nowrap;
}

.phase-bank-form {
  grid-template-columns: minmax(150px, 0.75fr) minmax(280px, 1.6fr) minmax(150px, 0.75fr) minmax(170px, auto);
}

.phase-bank-connector-form {
  grid-template-columns: minmax(180px, 0.8fr) minmax(150px, 0.7fr) minmax(280px, 1.3fr) minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(160px, auto);
}

.phase-accounting-form {
  grid-template-columns: minmax(135px, 0.7fr) minmax(180px, 1fr) minmax(170px, 0.9fr) minmax(240px, 1.35fr) minmax(130px, 0.7fr) minmax(110px, 0.55fr) minmax(155px, auto);
}

.phase-datev-form {
  grid-template-columns: minmax(150px, 0.7fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(170px, 0.8fr) minmax(180px, 0.9fr) minmax(155px, auto);
}

.phase-elster-form {
  grid-template-columns: minmax(145px, 0.7fr) minmax(145px, 0.7fr) minmax(110px, 0.55fr) minmax(150px, 0.75fr) minmax(220px, 1fr) minmax(155px, auto);
}

.phase-payment-history {
  display: grid;
  gap: 10px;
}

.phase-payment-history-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 110px 120px minmax(160px, 2fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #fbfdff;
}

.phase-payment-history-row small {
  color: #64748b;
}

.topbar-library-button-text {
  position: relative;
  z-index: 1;
}

.library-popup-card {
  --library-gradient: linear-gradient(135deg, #be123c 0%, #e11d48 52%, #fb7185 100%);
  position: fixed;
  top: 58px;
  right: 18px;
  width: min(520px, calc(100vw - 32px));
  min-height: 250px;
  height: auto;
  padding: 2px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.88), rgba(225, 29, 72, 0.76));
  overflow: visible;
  z-index: 1400;
  opacity: 0;
  transform: translateY(-2px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.extras-popup-card {
  width: min(360px, calc(100vw - 32px));
  min-height: 210px;
}

.library-popup-card::after {
  position: absolute;
  content: "";
  top: 28px;
  left: 0;
  right: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  transform: scale(0.82);
  filter: blur(28px);
  background: var(--library-gradient);
  opacity: 0.28;
  transition: opacity 500ms ease;
}

.library-popup-card[data-open="1"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.stammdaten-card-visual-tab {
  position: absolute;
  top: -7px;
  right: -2px;
  z-index: 2;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 72, 0.48);
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.98), rgba(225, 29, 72, 0.84), rgba(127, 29, 29, 0.94));
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}

.library-popup-card:hover::after {
  opacity: 0.18;
}

.library-popup-card-info {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 28px 28px;
  border-radius: 28px;
  border: 1px solid rgba(225, 29, 72, 0.08);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 240, 243, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  color: #0f172a;
  text-align: center;
  overflow: hidden;
}

.library-popup-card-info > div {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
}

.stammdaten-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  margin-top: 0;
}

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

.extras-section-separator {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  color: #c2214f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.extras-section-separator span {
  height: 1px;
  background: rgba(217, 226, 239, 0.9);
}

.extras-app-launcher-grid {
  padding-top: 0;
}

.extras-popup-card .library-popup-card-info {
  flex-direction: column;
  gap: 18px;
}

.extras-language-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(217, 226, 239, 0.78);
}

.extras-language-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  min-width: 148px;
  height: 64px;
}

.flag-language-switch {
  overflow: visible;
}

.flag-language-switch__group {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 148px;
  height: 64px;
  padding: 10px 62px 10px 24px;
  border: 1px solid rgba(225, 29, 72, 0.24);
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(159, 18, 57, 0.98), rgba(225, 29, 72, 0.96)),
    radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.18), transparent 42%);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.16),
    inset -1px -1px 8px rgba(110, 12, 35, 0.3),
    0 12px 28px rgba(20, 20, 20, 0.1),
    0 0 24px rgba(225, 29, 72, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.flag-language-switch__group::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  clip-path: inset(0 0 0 0 round 999px);
  background: linear-gradient(135deg, #9f1239, #f43f5e);
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.1),
    -0.05em -0.05em 0.05em 0 inset rgba(110, 12, 35, 0.28),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.13),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.42),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.16),
    -0.075em -0.25em 0.25em 0.1em inset rgba(85, 9, 28, 0.28);
  transition: box-shadow 300ms ease, clip-path 250ms ease, transform 250ms ease;
}

.flag-language-switch__group::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  top: -0.15em;
  left: -0.15em;
  border-radius: inherit;
  background: linear-gradient(-135deg, rgba(5, 5, 5, 0.34), transparent 22%, transparent 100%);
  filter: blur(0.0125em);
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.flag-language-switch:hover .flag-language-switch__group {
  transform: translateY(-2px);
}

.flag-language-switch:hover .flag-language-switch__group::before {
  clip-path: inset(1px 1px 1px 1px round 999px);
  box-shadow:
    0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.26),
    -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.18),
    0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.14),
    0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.12),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.18),
    -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.16);
}

.flag-language-switch:active .flag-language-switch__group {
  transform: translateY(0) scale(0.975);
}

.flag-language-switch__group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.flag-language-switch__option {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 12px 22px 10px 24px;
  border-radius: 50%;
  overflow: visible;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  z-index: 2;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.24, 1);
}

.flag-language-switch__option img {
  position: absolute;
  right: -2px;
  top: 50%;
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 247, 244, 0.92);
  box-shadow:
    0 6px 14px rgba(20, 20, 20, 0.18),
    0 0 14px rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
  z-index: 1;
}

.flag-language-switch__label {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1;
  color: #fff7f4;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 3;
}

.flag-language-switch__code {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: rgba(255, 244, 244, 0.78);
  position: relative;
  z-index: 3;
}

.flag-language-switch__option > span:not(.flag-language-switch__label):not(.flag-language-switch__code) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flag-language-switch__option:hover {
  opacity: 1;
}

.flag-language-switch__group input:checked + .flag-language-switch__option {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.production-language-switch.is-language-de #production-lang-wheel-de + .flag-language-switch__option,
.production-language-switch.is-language-en #production-lang-wheel-en + .flag-language-switch__option,
.production-language-switch.is-language-pt #production-lang-wheel-pt + .flag-language-switch__option,
.production-language-switch.is-language-al #production-lang-wheel-al + .flag-language-switch__option {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.flag-language-switch__group .next-trigger {
  position: absolute;
  inset: 0;
  z-index: -1;
  cursor: pointer;
}

.flag-language-switch__group:has(#app-lang-wheel-de:checked) #app-trigger-for-de,
.flag-language-switch__group:has(#app-lang-wheel-en:checked) #app-trigger-for-en,
.flag-language-switch__group:has(#app-lang-wheel-pt:checked) #app-trigger-for-pt,
.flag-language-switch__group:has(#app-lang-wheel-al:checked) #app-trigger-for-al {
  z-index: 30;
}

.flag-language-switch__group:has(#production-lang-wheel-de:checked) #production-trigger-for-de,
.flag-language-switch__group:has(#production-lang-wheel-en:checked) #production-trigger-for-en,
.flag-language-switch__group:has(#production-lang-wheel-pt:checked) #production-trigger-for-pt,
.flag-language-switch__group:has(#production-lang-wheel-al:checked) #production-trigger-for-al {
  z-index: 30;
}

.production-language-switch .next-trigger {
  display: none;
  pointer-events: none;
}

.production-language-switch,
.production-language-switch .flag-language-switch__group,
.production-language-switch .flag-language-switch__option {
  cursor: pointer;
}

.production-language-switch .flag-language-switch__option {
  pointer-events: none !important;
}

.production-language-switch .flag-language-switch__option img,
.production-language-switch .flag-language-switch__label,
.production-language-switch .flag-language-switch__code {
  pointer-events: none !important;
}

.flag-language-switch__group input:focus-visible + .flag-language-switch__option {
  outline: 2px solid #f43f5e;
  outline-offset: 3px;
}

.hint-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  transition: opacity 180ms ease, transform 180ms ease;
}

.flag-language-switch:hover .hint-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stammdaten-card-tile {
  min-height: 82px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 4px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #0f172a;
  text-decoration: none;
  box-shadow: none;
  transition: transform 180ms ease, color 180ms ease;
  font: inherit;
  cursor: pointer;
}

.stammdaten-card-tile:hover {
  transform: translateY(-2px);
  color: var(--brand);
}

.stammdaten-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.stammdaten-card-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.stammdaten-card-text {
  display: grid;
  text-align: center;
}

.stammdaten-card-text strong {
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
}

.stammdaten-card-empty {
  grid-column: 1 / -1;
}

.hero-card,
.shell-card,
.section-card,
.resume-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4px 0 0;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.hero-card::before {
  content: "";
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  background: center / contain no-repeat url("assets/GM_wirtschaft.png");
}

.hero-card > div {
  min-width: 0;
  flex: 1 1 auto;
}

.hero-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-title {
  display: none !important;
}

.hero-subtitle {
  display: none !important;
}

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

.workspace > .sidebar {
  min-width: 272px;
}

.workspace > .content-panel {
  min-width: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.left-rail {
  display: grid;
  gap: 16px;
  align-self: start;
  width: 272px;
  min-width: 272px;
}

.right-rail {
  min-width: 0;
  align-self: stretch;
}

.sidebar,
.content-panel {
  min-height: calc(100vh - 160px);
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  box-shadow: 0 18px 42px rgba(18, 18, 18, 0.06);
}

.sidebar {
  padding: 18px;
  align-self: start;
}

.content-panel {
  align-self: stretch;
  min-width: 0;
  padding: 24px;
}

.sidebar h2,
.content-panel h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.sidebar h2 {
  font-size: 17px;
}

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

.sidebar-copy,
.section-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.sidebar-copy {
  font-size: 13px;
  line-height: 1.45;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar .stack {
  margin-top: 14px;
}

.zeitbilanz-page .sidebar .stack + .field-row,
.zeitbilanz-page .sidebar .stack + .field-group,
.zeitbilanz-page .sidebar .stack + label,
.zeitbilanz-page .sidebar .stack + .branch-filter-group {
  margin-top: 12px;
}

.sidebar select.input,
.sidebar .select,
.sidebar .field-row select,
.sidebar label select {
  font-size: 12px;
  font-weight: 500;
}

.app-button,
.inline-button,
.tiny-button,
.chip-button,
.primary-button {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  position: relative;
  border: 1px solid rgba(40, 40, 40, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 251, 0.96));
  color: #344054;
  border-radius: 999px;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
  overflow: visible;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.08),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.08),
    0 10px 18px rgba(20, 20, 20, 0.08);
}

.app-button::before,
.inline-button::before,
.tiny-button::before,
.chip-button::before,
.primary-button::before,
.app-button::after,
.inline-button::after,
.tiny-button::after,
.chip-button::after,
.primary-button::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.app-button::before,
.inline-button::before,
.tiny-button::before,
.chip-button::before,
.primary-button::before {
  inset: 0;
  z-index: -1;
  transition:
    box-shadow 300ms ease,
    clip-path 250ms ease,
    transform 250ms ease,
    opacity 250ms ease;
  clip-path: inset(0 0 0 0 round 999px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 241, 239, 0.72));
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.08),
    -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.12),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.32),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.8),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.28),
    -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.1);
}

.app-button::after,
.inline-button::after,
.tiny-button::after,
.chip-button::after,
.primary-button::after {
  z-index: -2;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  top: -0.15em;
  left: -0.15em;
  background: linear-gradient(-135deg, rgba(5, 5, 5, 0.22), transparent 22%, transparent 100%);
  filter: blur(0.0125em);
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.app-button:hover,
.inline-button:hover,
.tiny-button:hover,
.chip-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  border-color: #b7c6dc;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.1),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1),
    0 14px 24px rgba(20, 20, 20, 0.1);
}

.app-button:hover::before,
.inline-button:hover::before,
.tiny-button:hover::before,
.chip-button:hover::before,
.primary-button:hover::before {
  clip-path: inset(clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 999px);
  box-shadow:
    0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.18),
    -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.12),
    0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.08),
    0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.12),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.18),
    -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.1);
}

.app-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.inline-button {
  min-height: 38px;
  padding: 0 16px;
}

.tiny-button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.chip-button.is-icon {
  padding: 0;
  line-height: 0;
}

.chip-button-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.info-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  background: #eef5ff;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.14);
}

.info-button:hover {
  border-color: #60a5fa;
  box-shadow: 0 12px 22px rgba(59, 130, 246, 0.18);
}

.info-button .chip-button-icon {
  width: 14px;
  height: 14px;
}

.chip-button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.shell-card {
  padding: 14px;
}

.section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  position: relative;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-header > div:first-child {
  min-width: 0;
}

.logon-page .section-header h2 {
  white-space: nowrap;
}

.section-header .section-title-row {
  display: block;
}

.section-header .section-title-row .info-button {
  position: absolute;
  right: 0;
  top: 0;
}

.rechnung-page .rechnung-preview-size-row {
  margin: 0 auto;
  justify-content: center;
  text-align: center;
}

.rechnung-page .rechnung-preview-size-row label {
  min-width: auto;
}

.rechnung-page .rechnung-preview-size-row select {
  min-width: 120px;
}

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

.field-row label,
.label {
  font-size: 14px;
  font-weight: 700;
}

.sidebar .label {
  font-size: 13px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  border: none;
  outline: none;
  border-radius: 18px;
  background: #d7dce5;
  color: var(--text);
  font: inherit;
  padding: 0 16px;
  box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.16);
  transition:
    background-color 300ms ease-in-out,
    transform 300ms ease-in-out,
    box-shadow 300ms ease-in-out;
}

.textarea {
  min-height: 92px;
  padding: 14px 16px;
  resize: vertical;
}

.select {
  appearance: none;
}

.content-panel .select {
  background: #eef3fa;
  box-shadow: inset 1px 3px 8px rgba(15, 23, 42, 0.12);
}

.content-panel .select:focus {
  background-color: #ffffff;
  transform: none;
  box-shadow:
    inset 1px 3px 8px rgba(15, 23, 42, 0.08),
    0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input:focus,
.select:focus,
.textarea:focus {
  background-color: #ffffff;
  transform: scale(1.02);
  box-shadow:
    10px 10px 40px rgba(150, 150, 150, 0.26),
    -10px -10px 40px rgba(255, 255, 255, 0.82);
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.mode-toggle {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.overview-section-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.overview-section-header > div:first-child {
  justify-self: start;
  min-width: 0;
}

.overview-header-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  justify-self: center;
}

.overview-mode-toggle {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 0;
}

.serviceformular-mode-toggle {
  justify-content: center;
  margin-top: 2px;
}

.logon-mode-toggle {
  justify-content: center;
  justify-self: stretch;
  margin-top: 2px;
  width: 100%;
}

.logon-page [data-logon-panel][hidden],
.logon-page [data-logon-user-section][hidden],
.logon-page [data-logon-company-section][hidden],
.logon-page [data-logon-users-list-section][hidden] {
  display: none !important;
}

.lager-mode-toggle {
  justify-content: center;
  justify-self: stretch;
  margin-top: 2px;
  width: 100%;
}

.lager-page [data-lager-sidebar-panel][hidden] {
  display: none !important;
}

.lager-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
}

.lager-section-header .lager-mode-toggle {
  grid-column: 2;
  justify-self: center;
  width: auto;
}

.overview-mode-toggle .radio-card {
  min-width: auto;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  gap: 8px;
}

.overview-mode-toggle .radio-card::before,
.overview-mode-toggle .radio-card::after {
  display: none;
}

.overview-mode-toggle .radio-card:hover,
.overview-mode-toggle .radio-card:has(input:checked) {
  transform: none;
  border: none;
  background: transparent;
  box-shadow: none;
}

.overview-mode-toggle .radio-card span {
  font-size: 12px;
  font-weight: 600;
}

.overview-mode-toggle .radio-card input {
  transform: scale(0.92);
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(40, 40, 40, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 251, 0.96));
  position: relative;
  isolation: isolate;
  overflow: visible;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.08),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.08),
    0 10px 18px rgba(20, 20, 20, 0.08);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.sidebar .radio-card span {
  font-size: 14px;
}

.radio-card::before,
.radio-card::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.radio-card::before {
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 241, 239, 0.72));
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.08),
    -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.12),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.32),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.8),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.28),
    -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.1);
}

.radio-card::after {
  z-index: -2;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  top: -0.15em;
  left: -0.15em;
  background: linear-gradient(-135deg, rgba(5, 5, 5, 0.22), transparent 22%, transparent 100%);
  filter: blur(0.0125em);
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.radio-card:hover {
  transform: translateY(-2px);
  border-color: #b7c6dc;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.1),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1),
    0 14px 24px rgba(20, 20, 20, 0.1);
}

.radio-card:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(219, 234, 254, 0.92));
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(37, 99, 235, 0.12),
    0.0375em 0.0375em 0.0675em 0 rgba(37, 99, 235, 0.1),
    0 12px 22px rgba(37, 99, 235, 0.12);
}

.radio-card:has(input:checked)::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(223, 236, 255, 0.78));
}

.radio-card input {
  accent-color: #2563eb;
}

.privacy-check-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 43, 91, 0.2);
  border-radius: 16px;
  background: rgba(255, 246, 249, 0.82);
  color: #4b5563;
  line-height: 1.45;
}

.privacy-check-row input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #e22b5b;
}

.privacy-check-row span {
  flex: 1 1 auto;
}

.privacy-check-row a {
  flex: 0 0 auto;
  color: #be123c;
  font-weight: 800;
  text-decoration: none;
}

.privacy-check-row a:hover {
  text-decoration: underline;
}

.radio-card span {
  font-weight: 600;
}

.status-list {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.planning-shell {
  display: grid;
  gap: 14px;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.day-card {
  min-width: 180px;
  background: linear-gradient(180deg, #fffbe8 0%, #fffdf5 100%);
  border: 1px solid #f0d999;
  border-radius: 18px;
  padding: 14px;
}

.day-card h3 {
  margin: 0 0 34px;
  font-size: 16px;
  color: #cb8a00;
}

.day-note {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  color: #8a8f98;
}

.day-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.plus-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #475467;
  cursor: pointer;
}

.split-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

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

th,
td {
  border-bottom: 1px solid #e6edf6;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 800;
  z-index: 1;
}

tbody tr:hover {
  background: #fff8f5;
}

.active-col {
  width: 56px;
  text-align: center;
}

.selected-cell {
  background: #166bb8 !important;
  color: #fff;
  border-radius: 8px;
}

.placeholder-page {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 24px;
  text-align: center;
}

.placeholder-page h2 {
  font-size: 32px;
  margin: 0 0 10px;
}

.placeholder-page p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.section-header > .badge {
  margin-right: 42px;
}

.is-readonly-disabled {
  cursor: not-allowed !important;
  opacity: 0.48;
  filter: grayscale(0.35);
}

.sortable-header {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.sortable-header:hover {
  color: var(--brand);
}

.sortable-header.is-sorted {
  color: var(--brand);
}

.primary-button {
  background: linear-gradient(180deg, #ef476f 0%, #d91c5c 100%);
  border-color: #d91c5c;
  color: #fff;
  text-shadow: rgba(0, 0, 0, 0.18) 0 1px 1px;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(140, 22, 59, 0.22),
    0.0375em 0.0375em 0.0675em 0 rgba(140, 22, 59, 0.12),
    0 14px 26px rgba(217, 28, 92, 0.18);
}

.primary-button::before {
  background: linear-gradient(135deg, #ef476f, #d91c5c);
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.08),
    -0.05em -0.05em 0.05em 0 inset rgba(140, 22, 59, 0.24),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.14),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.36),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.12),
    -0.075em -0.25em 0.25em 0.1em inset rgba(122, 18, 52, 0.24);
}

.primary-button:hover {
  border-color: #be184d;
}

.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 22px 12px;
}

.checkbox-cell {
  text-align: center;
}

.checkbox-cell input {
  width: 16px;
  height: 16px;
}

.table-row-selected {
  background: #fff4ef;
}

.filial-modal {
  width: min(760px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
}

.filial-modal::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.filial-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

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

.app-settings-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfe;
}

.app-settings-choice-stack {
  display: grid;
  gap: 10px;
}

.app-settings-choice-stack input[type="text"] {
  width: 100%;
}

.app-settings-choice input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.app-settings-choice strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}

.app-settings-choice span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.app-settings-subtitle {
  margin: 0;
  font-size: 18px;
}

.filial-form h3 {
  margin: 0;
  font-size: 24px;
}

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

.filial-form-grid label,
.time-grid label {
  display: grid;
  gap: 8px;
}

.filial-form-grid span,
.time-grid span,
.filial-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.filial-form-span-2 {
  grid-column: span 2;
}

.termin-calendar-panel {
  margin-top: 18px;
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.termin-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.termin-calendar-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.termin-calendar-head p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 13px;
}

.termin-calendar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.termin-calendar-nav {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe6f6;
  border-radius: 999px;
  background: #f8fafc;
}

.view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe6f6;
  border-radius: 999px;
  background: #f8fafc;
}

.view-toggle-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 12px;
}

.view-toggle-button.is-active {
  background: #e91e63;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(233, 30, 99, 0.22);
}

.subtle-badge {
  background: #eff6ff;
  color: #1d4ed8;
}

.termin-calendar {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 620px;
  background: #f8fafc;
}

.termin-calendar-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 10px 16px 16px;
  border-right: 1px solid #dbe6f6;
  background: #f8fbff;
}

.termin-calendar-hour {
  min-height: 32px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.termin-calendar-grid {
  position: relative;
  min-height: 620px;
  background: #ffffff;
}

.termin-week-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 620px;
  background: #ffffff;
}

.termin-week-days {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid #e2e8f0;
  background: rgba(248, 251, 255, 0.94);
  backdrop-filter: blur(8px);
}

.termin-week-day {
  min-height: 54px;
  padding: 9px 10px;
  border-right: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.termin-week-day strong {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 13px;
}

.termin-week-day.is-selected {
  background: #fff1f6;
  color: #be185d;
}

.termin-calendar-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
  pointer-events: none;
}

.termin-calendar-event {
  position: absolute;
  z-index: 2;
  display: flex;
  min-height: 48px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1px;
  padding: 7px 10px 8px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-left: 5px solid #2563eb;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 100%);
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  text-decoration: none;
}

.termin-calendar-event strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.termin-calendar-event span,
.termin-calendar-event small {
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.18;
}

.termin-calendar-event span {
  color: #1e293b;
  display: -webkit-box;
  font-size: 12px;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.termin-calendar-event small {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.termin-calendar-event small b {
  color: #1d4ed8;
  font-weight: 900;
}

.termin-calendar-event.is-confirmed {
  border-color: rgba(5, 150, 105, 0.28);
  border-left-color: #059669;
  background: #ecfdf5;
}

.termin-calendar-event.is-onsite {
  border-color: rgba(234, 88, 12, 0.28);
  border-left-color: #ea580c;
  background: #fff7ed;
}

.termin-calendar-event.is-done {
  border-color: rgba(71, 85, 105, 0.22);
  border-left-color: #475569;
  background: #f8fafc;
}

.termin-calendar-event.is-cancelled {
  border-color: rgba(220, 38, 38, 0.24);
  border-left-color: #dc2626;
  background: #fef2f2;
}

.termin-calendar-event.is-outside-worktime,
.termin-month-event.is-outside-worktime {
  outline: 2px dashed rgba(220, 38, 38, 0.55);
  outline-offset: -3px;
}

.termin-calendar-empty {
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.termin-month-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  min-height: 680px;
  background: #ffffff;
}

.termin-month-weekday {
  padding: 12px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fbff;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.termin-month-day {
  min-height: 112px;
  padding: 9px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.termin-month-day.is-outside {
  background: #f8fafc;
  color: #94a3b8;
}

.termin-month-day.is-selected {
  box-shadow: inset 0 0 0 2px #e91e63;
}

.termin-month-date {
  margin-bottom: 7px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.termin-month-event {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  padding: 5px 7px;
  border-left: 4px solid #2563eb;
  border-radius: 9px;
  background: #eff6ff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.termin-month-event.is-confirmed {
  border-left-color: #059669;
  background: #ecfdf5;
}

.termin-month-event.is-onsite {
  border-left-color: #ea580c;
  background: #fff7ed;
}

.termin-month-event.is-done {
  border-left-color: #475569;
  background: #f8fafc;
}

.termin-month-event.is-cancelled {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.termin-month-more {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .termin-calendar-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .termin-calendar-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .termin-calendar-nav {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .termin-calendar {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 520px;
  }

  .termin-calendar-grid {
    min-height: 520px;
  }

  .termin-week-grid {
    min-width: 760px;
    min-height: 520px;
  }

  .termin-month-grid {
    min-width: 760px;
  }

  .termin-calendar-scale {
    padding-inline: 8px;
  }

  .termin-calendar-event {
    min-height: 48px;
    padding: 8px;
  }
}

.filial-fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fbfcfe;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 6px;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 14px;
}

.mini-date-picker {
  position: fixed;
  z-index: 2147483647;
  width: min(360px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid #dbe6f6;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

.mini-date-picker[hidden] {
  display: none;
}

.mini-date-picker-head {
  display: grid;
  grid-template-columns: 38px 38px minmax(0, 1fr) 38px 38px;
  gap: 7px;
  align-items: center;
  margin-bottom: 16px;
}

.mini-date-picker-head strong {
  color: #7c4a1f;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-transform: capitalize;
}

.mini-date-picker-head button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: #eff6ff;
  color: #1268d9;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.mini-date-picker-weekdays,
.mini-date-picker-grid {
  display: grid;
  grid-template-columns: 38px repeat(7, 1fr);
  gap: 7px;
  align-items: center;
}

.mini-date-picker-weekdays {
  margin-bottom: 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.mini-date-picker-kw {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mini-date-picker-day {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #eef0f3;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.mini-date-picker-day:hover {
  background: #dbeafe;
  color: #0f4fb6;
  transform: translateY(-1px);
}

.mini-date-picker-day.is-outside {
  opacity: 0.6;
}

.mini-date-picker-day.is-today {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.mini-date-picker-day.is-selected {
  background: #64748b;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(100, 116, 139, 0.28);
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.split-modal-actions {
  align-items: center;
  justify-content: flex-start;
}

.left-modal-actions {
  justify-content: flex-start;
}

.dialog-header-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.password-toggle-button {
  justify-self: flex-start;
  border: 1px solid #dbe6f6;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(15, 23, 42, 0.08);
}

.password-toggle-button:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.logon-page .overview-rows > .section-card {
  padding: 22px 24px 24px;
}

.logon-page .overview-rows > .section-card h3 {
  margin: 0 0 18px;
}

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

.password-reset-card {
  max-width: 980px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.password-reset-card .section-header {
  align-items: center;
}

.reset-back-link {
  text-decoration: none;
  white-space: nowrap;
}

.password-reset-card input[readonly] {
  color: #64748b;
  background: linear-gradient(145deg, #f8fafc, #eef3fa);
  cursor: not-allowed;
}

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

.task-edit-modal {
  width: min(980px, calc(100vw - 40px));
}

.task-detail-modal {
  width: min(1240px, calc(100vw - 40px));
}

.task-detail-modal .ticket-detail-shell {
  gap: 18px;
}

.task-detail-modal .ticket-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.task-detail-modal .soft-note {
  height: 100%;
}

.task-detail-modal .ticket-detail-description,
.task-detail-modal .task-detail-dual-grid,
.task-detail-modal .ticket-workflow-history,
.task-detail-modal .modal-actions {
  margin-top: 2px;
}

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

.ticket-detail-description {
  margin-top: 8px;
  white-space: pre-wrap;
  line-height: 1.6;
  color: #334155;
}

.ticket-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ticket-workflow-actions .chip-button.is-active {
  border-color: rgba(37, 99, 235, 0.4);
  color: #1d4ed8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 20px rgba(37, 99, 235, 0.12);
}

.ticket-workflow-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ticket-workflow-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.ticket-workflow-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.ticket-workflow-meta {
  display: grid;
  gap: 3px;
}

.ticket-workflow-meta strong {
  font-size: 12px;
  color: #0f172a;
}

.ticket-workflow-meta span {
  font-size: 12px;
  color: #64748b;
}

.ticket-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.serviceformular-upload-card {
  padding: 24px;
}

.serviceformular-upload-card .section-title-row {
  margin-bottom: 14px;
}

.serviceformular-upload-card .soft-note {
  margin-bottom: 14px;
}

.serviceformular-multiday-box {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
}

.serviceformular-check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #0f172a;
}

.serviceformular-check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.serviceformular-multiday-grid {
  padding: 0;
}

.serviceformular-upload-grid {
  margin-top: 14px;
}

.file-upload-button {
  gap: 8px;
  margin-top: 12px;
  width: fit-content;
  min-width: 230px;
}

.file-upload-button span::before {
  content: "+";
  margin-right: 8px;
  font-weight: 900;
}

.file-upload-button input {
  display: none;
}

.ticket-attachment-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  box-shadow: 0 12px 22px rgba(148, 163, 184, 0.12);
}

.ticket-attachment-link {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 8px;
}

.ticket-attachment-preview,
.ticket-attachment-file {
  width: 100%;
  height: 110px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #f8fafc;
}

.ticket-attachment-preview {
  object-fit: cover;
  display: block;
}

.ticket-attachment-file {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #475569;
}

.ticket-attachment-name {
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
  word-break: break-word;
}

.ticket-attachment-delete {
  justify-self: stretch;
}

.task-checklist-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

.task-detail-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.task-detail-inline-grid {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 132px) auto;
}

.task-checklist-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.task-material-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.task-material-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  box-shadow: 0 12px 22px rgba(148, 163, 184, 0.08);
}

.task-material-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.task-material-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.task-material-copy {
  font-size: 12px;
  color: #64748b;
  word-break: break-word;
}

.task-material-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.task-material-status.is-ok {
  background: #dcfce7;
  color: #166534;
}

.task-material-status.is-low {
  background: #fef3c7;
  color: #92400e;
}

.task-material-status.is-missing {
  background: #fee2e2;
  color: #b91c1c;
}

.task-checklist-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  box-shadow: 0 12px 22px rgba(148, 163, 184, 0.08);
}

.task-checklist-item.is-done {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.95));
  border-color: rgba(34, 197, 94, 0.24);
}

.task-checklist-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  color: #334155;
}

.task-checklist-toggle span {
  word-break: break-word;
}

.task-checklist-item.is-done .task-checklist-toggle span {
  text-decoration: line-through;
  color: #64748b;
}

@media (max-width: 900px) {
  .task-detail-dual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-detail-inline-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-detail-modal .ticket-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .task-detail-modal .ticket-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dashboard-block {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.dashboard-block h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

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

.dashboard-card-span-2 {
  grid-column: 1 / -1;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.65;
}

.plain-list li + li {
  margin-top: 5px;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-card-span-2 {
    grid-column: auto;
  }
}

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

.dashboard-metric-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.95));
  box-shadow: 0 14px 26px rgba(148, 163, 184, 0.14);
}

.dashboard-link-card {
  text-decoration: none;
  color: inherit;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.dashboard-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 16px 28px rgba(59, 130, 246, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 246, 255, 0.96));
}

.dashboard-metric-card span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.dashboard-metric-card strong {
  font-size: 28px;
  color: #0f172a;
  line-height: 1;
}

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

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

.dashboard-latest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.82);
}

.dashboard-latest-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #0f172a;
}

.dashboard-latest-row div {
  font-size: 12px;
  color: #475569;
  line-height: 1.55;
}

.dashboard-latest-meta {
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: end;
}

.dashboard-latest-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.simulation-control-stack {
  gap: 12px;
}

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

.field-stack > span {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

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

.simulation-summary-grid .dashboard-metric-card strong {
  font-size: 15px;
  line-height: 1.35;
}

.simulation-card-span-2 {
  grid-column: span 2;
}

.simulation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.simulation-log-list,
.simulation-test-list {
  display: grid;
  gap: 10px;
}

.simulation-message-list {
  gap: 10px;
}

.simulation-log-entry,
.simulation-test-row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.84);
}

.simulation-log-head,
.simulation-test-row {
  align-items: start;
}

.simulation-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.simulation-log-head strong,
.simulation-test-row strong {
  font-size: 13px;
  color: #0f172a;
}

.simulation-log-head span,
.simulation-test-row span {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}

.simulation-log-body,
.simulation-test-row div {
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.simulation-test-row {
  grid-template-columns: 1fr auto;
}

.simulation-test-row div {
  grid-column: 1 / -1;
}

.simulation-test-row.is-ok {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.95), rgba(255, 255, 255, 0.9));
}

.simulation-test-row.is-ok span {
  color: #15803d;
}

.simulation-test-row.is-failed {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.9));
}

.simulation-test-row.is-failed span {
  color: #dc2626;
}

.produktionssimulation-workspace {
  align-items: stretch;
}

.production-presentation-shell {
  max-width: none;
}

.production-language-panel {
  position: sticky;
  top: 58px;
  z-index: 45;
  display: block;
  width: 100%;
  margin: 8px auto -4px;
  padding: 0 22px;
  pointer-events: none;
}

.production-context-panel {
  position: relative;
  order: 2;
  width: 100%;
  max-width: none;
  min-height: 52px;
  pointer-events: auto;
}

.production-fixed-controls {
  position: relative;
  z-index: 46;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: min(100%, 1680px);
  max-width: none;
  min-height: 46px;
  margin: 0 auto;
  padding: 4px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
}

.production-context-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  list-style: none;
  width: min(240px, 100%);
  min-height: 42px;
  padding-inline: 16px;

  border-color: rgba(34, 197, 94, 0.26);
  color: #166534;
  background:
    linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.12);
  cursor: pointer;
}

.production-context-toggle::-webkit-details-marker {
  display: none;
}

.production-context-panel[open] .production-context-toggle {
  color: #fff;
  border-color: rgba(22, 163, 74, 0.36);
  background: linear-gradient(135deg, #15803d, #22c55e);
}

.production-context-sliders {
  position: static;
  z-index: 60;
  display: none;
  width: min(1520px, calc(100vw - 44px));
  margin: 0 auto;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(201, 214, 232, 0.86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(225, 29, 72, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.production-context-panel[open] .production-context-sliders {
  display: grid;
}

.production-context-sliders label {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px 6px;
  min-width: 0;
}

.production-context-sliders label > span {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
}

.production-context-sliders b {
  color: #be123c;
  font-size: 11px;
  white-space: nowrap;
}

.production-context-sliders input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #e11d48;
}

.production-context-sliders em {
  color: #64748b;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.production-language-panel > span,
.production-fixed-controls > span {
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.production-language-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.production-language-control > span {
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.production-language-switch {
  pointer-events: auto;
}

.production-slide-size-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 214, 232, 0.84);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  box-shadow: inset 0 3px 10px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.06);
  pointer-events: auto;
  white-space: nowrap;
}

.production-slide-size-control span {
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.production-slide-size-control input[type="range"] {
  width: 132px;
  accent-color: #e11d48;
  cursor: pointer;
}

.production-slide-size-control b {
  min-width: 42px;
  color: #be123c;
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.production-sort-button {
  min-height: 42px;
  padding-inline: 16px;
  border-color: rgba(225, 29, 72, 0.22);
  color: #be123c;
  background:
    linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.9));
  pointer-events: auto;
  white-space: nowrap;
}

.production-print-button {
  min-height: 42px;
  padding-inline: 16px;
  border-color: rgba(190, 18, 60, 0.32);
  color: #fff;
  background: linear-gradient(135deg, #991b1b, #e11d48);
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.2);
  pointer-events: auto;
  white-space: nowrap;
}

.production-print-button:hover {
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.28);
}

.production-sort-button.is-active {
  color: #fff;
  border-color: rgba(190, 18, 60, 0.36);
  background: linear-gradient(135deg, #991b1b, #e11d48);
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.22);
}

.production-sort-select {
  min-height: 42px;
  min-width: 132px;
  padding: 0 38px 0 16px;
  border: 1px solid rgba(201, 214, 232, 0.94);
  border-radius: 999px;
  color: #0f172a;
  font-weight: 850;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.9));
  box-shadow: inset 0 3px 10px rgba(15, 23, 42, 0.08), 0 12px 28px rgba(15, 23, 42, 0.06);
  pointer-events: auto;
}

.production-presentation {
  display: grid;
  justify-items: center;
  gap: var(--production-slide-gap, 28px);
  padding: 18px 0 48px;
  scroll-snap-type: y proximity;
}

.production-slide {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-size: var(--production-slide-font-size, 16px);
  width: min(var(--production-slide-width, 100%), 100%);
  max-width: 100%;
  margin-inline: auto;
  min-height: var(--production-slide-min-height, calc(100vh - 94px));
  padding: clamp(var(--production-slide-padding-min, 22px), var(--production-slide-padding-mid, 3vw), var(--production-slide-padding-max, 44px));
  border-radius: var(--production-slide-radius, 34px);
  border: 1px solid rgba(201, 214, 232, 0.86);
  background:
    radial-gradient(circle at 12% 14%, rgba(225, 29, 72, 0.1), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,254,0.94));
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
}

@page production-slides {
  size: A4 landscape;
  margin: 10mm;
}

@media print {
  html,
  body,
  .produktionssimulation-page {
    page: production-slides;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #fff !important;
  }

  .produktionssimulation-page .topbar,
  .produktionssimulation-page .production-fixed-controls,
  .produktionssimulation-page .production-language-panel,
  .produktionssimulation-page .ki-messenger,
  .produktionssimulation-page .ki-messenger-toggle,
  .produktionssimulation-page .zion-corner-logo,
  .produktionssimulation-page dialog,
  .produktionssimulation-page [data-production-image-dialog] {
    display: none !important;
  }

  .production-presentation-shell,
  .production-presentation {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff !important;
  }

  .production-slide {
    display: grid;
    width: 100% !important;
    min-height: 180mm !important;
    margin: 0;
    padding: 12mm !important;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    box-shadow: none !important;
    break-after: page;
    page-break-after: always;
    background:
      radial-gradient(circle at 12% 14%, rgba(225, 29, 72, 0.08), transparent 30%),
      linear-gradient(180deg, #fff, #f8fafc) !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .production-slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .production-slide h1 {
    break-after: avoid;
  }
}

.production-slide-kicker {
  position: absolute;
  top: var(--production-slide-kicker-top, 24px);
  left: var(--production-slide-kicker-left, 32px);
  font-size: var(--production-slide-kicker-size, 12px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #be123c;
}

.production-slide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--production-slide-head-gap, 20px);
  margin-bottom: var(--production-slide-head-margin, 18px);
}

.production-slide-meta-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, auto) minmax(260px, 1fr);
  align-items: center;
  justify-items: center;
  gap: var(--production-slide-meta-gap, 18px);
  width: 100%;
  margin-bottom: var(--production-slide-meta-margin, 12px);
}

.production-slide-meta-row .eyebrow {
  margin: 0;
  justify-self: start;
  max-width: min(100%, 760px);
}

.production-slide-rank-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-content: center;
  gap: var(--production-rank-gap-y, 6px) var(--production-rank-gap-x, 12px);
  min-width: 0;
  justify-self: center;
  width: min(100%, var(--production-rank-width, 640px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.production-slide-rank-control > span {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: var(--production-rank-label-size, 11px);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.production-rank-category {
  display: inline-grid;
  grid-template-columns: var(--production-rank-name-width, 58px) minmax(0, auto) var(--production-rank-score-width, 28px);
  align-items: center;
  justify-content: center;
  gap: var(--production-rank-category-gap, 5px);
  min-width: 0;
  white-space: nowrap;
}

.production-rank-category > b {
  color: #475569;
  font-size: var(--production-rank-label-size, 11px);
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-rank-stars {
  display: inline-flex;
  align-items: center;
  gap: var(--production-rank-star-gap, 2px);
  padding: 0;
  border: 0;
  background: transparent;
}

.production-rank-star {
  display: inline-grid;
  place-items: center;
  width: var(--production-rank-star-size, 24px);
  height: var(--production-rank-star-size, 24px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(148, 163, 184, 0.72);
  font-size: var(--production-rank-star-font-size, 20px);
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease, text-shadow 160ms ease;
}

.production-rank-star.is-filled {
  color: #e11d48;
  text-shadow: 0 8px 18px rgba(225, 29, 72, 0.2);
}

.production-rank-star:hover {
  transform: translateY(-2px) scale(1.08);
  color: #fb7185;
}

.production-rank-category output {
  color: #be123c;
  font-size: var(--production-rank-score-size, 11px);
  font-weight: 950;
  min-width: var(--production-rank-score-width, 28px);
  white-space: nowrap;
}

.production-slide-head h1 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(var(--production-slide-h1-min, 32px), var(--production-slide-h1-fluid, 4.5vw), var(--production-slide-h1-max, 74px));
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.production-slide-head p:not(.eyebrow) {
  max-width: 740px;
  margin: 0;
  color: #64748b;
  font-size: var(--production-slide-text-size, 15px);
  line-height: 1.65;
}

.production-slide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(460px, 100%);
}

.production-context-fit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
  color: #be123c;
  background: rgba(255, 241, 242, 0.82);
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.1);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.production-index-slide {
  display: grid;
  align-content: center;
  gap: clamp(26px, 4vw, 54px);
}

.production-index-slide .production-slide-head {
  margin-bottom: 0;
}

.production-index-slide .production-slide-head h1 {
  max-width: 980px;
}

.production-radar-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr) minmax(240px, 0.8fr);
  gap: clamp(18px, 2.5vw, 34px);
  align-items: center;
  padding: clamp(20px, 2.2vw, 34px);
  border: 1px solid rgba(201, 214, 232, 0.86);
  border-radius: 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(225, 29, 72, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.09);
}

.production-radar-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.production-radar-card p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.production-radar-bars,
.production-radar-recommendations {
  display: grid;
  gap: 10px;
}

.production-radar-bar {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.production-radar-bar i {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.12);
}

.production-radar-bar i::before {
  content: "";
  display: block;
  width: var(--radar-value, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #be123c, #fb7185);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.2);
}

.production-radar-recommendations {
  align-content: start;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(225, 29, 72, 0.13);
}

.production-radar-recommendations-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.production-radar-recommendations strong {
  color: #be123c;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.production-recommendation-info {
  position: relative;
  z-index: 20;
}

.production-recommendation-info summary {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #eef5ff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.14);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.production-recommendation-info summary::-webkit-details-marker {
  display: none;
}

.production-recommendation-info summary:hover {
  border-color: #60a5fa;
  box-shadow: 0 12px 22px rgba(59, 130, 246, 0.18);
}

.production-recommendation-info-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(370px, calc(100vw - 42px));
  padding: 18px;
  border: 1px solid rgba(147, 197, 253, 0.62);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.production-recommendation-info-card h3 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.production-recommendation-info-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.production-recommendation-info-card dt {
  color: #be123c;
  font-size: 12px;
  font-weight: 950;
}

.production-recommendation-info-card dd {
  margin: -6px 0 0;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.production-radar-recommendations ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.production-radar-recommendations li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.production-radar-recommendations li span {
  color: #be123c;
  font-size: 12px;
}

.production-radar-recommendations a {
  color: inherit;
  text-decoration: none;
}

.production-radar-recommendations a:hover {
  color: #be123c;
}

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

.production-index-grid a {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
  min-height: 112px;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 26px;
  color: #0f172a;
  text-decoration: none;
  background:
    radial-gradient(circle at 8% 12%, rgba(225, 29, 72, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.9));
  border: 1px solid rgba(201, 214, 232, 0.82);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.production-index-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.08), transparent);
  transform: translateX(-110%);
  transition: transform 520ms ease;
}

.production-index-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, 0.34);
  box-shadow: 0 24px 58px rgba(225, 29, 72, 0.12);
}

.production-index-grid a:hover::after {
  transform: translateX(110%);
}

.production-index-grid span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #be123c;
  font-weight: 950;
  background: rgba(255, 241, 242, 0.96);
  border: 1px solid rgba(225, 29, 72, 0.16);
}

.production-index-grid strong,
.production-index-grid em {
  grid-column: 2;
}

.production-index-grid strong {
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.production-index-grid em {
  position: relative;
  z-index: 1;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.production-slide .section-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 2vw, 32px);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9)),
    radial-gradient(circle at 12% 8%, rgba(225, 29, 72, 0.08), transparent 34%);
}

.production-slide .section-card h2 {
  margin: 0;
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(20px, 1.7vw, 28px);
  letter-spacing: -0.035em;
}

.production-slide .section-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.72;
}

.production-slide-roi-action {
  align-self: end;
  justify-self: end;
  min-width: auto;
  margin-top: clamp(18px, 2vw, 32px);
}

.production-roi-example-button {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #991b1b, #e11d48);
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.22);
  white-space: nowrap;
}

.production-slide-value-strip {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 0 clamp(20px, 2.2vw, 34px);
  padding: 18px 20px;
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 241, 242, 0.94), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 96% 50%, rgba(59, 130, 246, 0.08), transparent 28%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.production-slide-value-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(225, 29, 72, 0.14);
  color: #be123c;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.production-slide-value-strip strong {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 15px;
  line-height: 1.45;
}

.production-slide-value-strip small {
  position: relative;
  padding-left: 16px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.production-slide-value-strip small::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.production-context-impact {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(225, 29, 72, 0.12);
}

.production-context-impact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.production-context-impact-head b {
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.production-context-impact-head span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.08);
  color: #be123c;
  font-size: 11px;
  font-weight: 900;
}

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

.production-context-impact-grid div {
  display: grid;
  gap: 5px;
  min-height: 122px;
  padding: 12px;
  border: 1px solid rgba(201, 214, 232, 0.74);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(225, 29, 72, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.production-context-impact-grid span {
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.production-context-impact-grid strong {
  color: #be123c;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 950;
  line-height: 1;
}

.production-context-impact-grid small {
  padding-left: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.production-context-impact-grid small::before {
  content: none;
}

.production-roi-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.production-roi-rank {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(225, 29, 72, 0.12);
}

.production-roi-rank b {
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.production-roi-rank i {
  display: flex;
  gap: 2px;
  color: #cbd5e1;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.production-roi-rank i span.is-filled {
  color: #e11d48;
  text-shadow: 0 6px 16px rgba(225, 29, 72, 0.24);
}

.production-roi-rank em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: left;
}

.production-slide-value-strip em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.production-status-badge {
  min-height: 40px;
  padding-inline: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,245,249,0.94));
}

.production-roi-slide {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(540px, 1.55fr) minmax(250px, 0.62fr);
  grid-template-rows: auto auto;
  column-gap: clamp(18px, var(--production-slide-padding-mid, 3vw), var(--production-roi-column-gap, 42px));
  row-gap: var(--production-roi-row-gap, 12px);
  align-items: start;
  padding-top: clamp(var(--production-roi-padding-top-min, 64px), var(--production-roi-padding-top-fluid, 7vw), var(--production-roi-padding-top-max, 96px));
}

.production-roi-parameter-card,
.production-roi-formula-card,
.production-roi-result-card {
  border: 1px solid rgba(201, 214, 232, 0.9);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.production-roi-parameter-card {
  display: grid;
  gap: var(--production-roi-card-gap, 20px);
  padding: var(--production-roi-card-padding, 28px);
  border-radius: var(--production-roi-card-radius, 28px);
}

.production-roi-left-stack {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  gap: var(--production-roi-left-gap, 22px);
  align-self: start;
  order: 1;
}

.production-roi-left-stack .production-roi-parameter-card {
  align-content: start;
}

.production-roi-benefit-card {
  gap: var(--production-roi-benefit-gap, 24px);
}

.production-roi-stack-title {
  font-size: var(--production-roi-stack-title-size, 24px);
}

.production-roi-subcard {
  display: grid;
  gap: var(--production-roi-subcard-gap, 18px);
}

.production-roi-subcard + .production-roi-subcard {
  padding-top: 22px;
  border-top: 1px solid rgba(201, 214, 232, 0.72);
}

.production-roi-subcard h2 {
  font-size: var(--production-roi-subcard-title-size, 17px);
}

.production-roi-parameter-right label:has([data-production-roi-param="currentOutput"]),
.production-roi-parameter-right label:has([data-production-roi-param="outputGain"]),
.production-roi-parameter-right label:has([data-production-roi-param="valuePerPart"]) {
  display: none;
}

.production-roi-parameter-card h2 {
  margin: 0;
  font-size: var(--production-roi-card-title-size, 20px);
}

.production-roi-card-note {
  margin: -10px 0 2px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.production-roi-field {
  display: grid;
  gap: 9px;
}

.production-roi-field span {
  padding-left: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.production-roi-field input {
  width: 100%;
  min-height: var(--production-roi-input-height, 52px);
  padding: 0 var(--production-roi-input-padding, 18px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc, #e9eef7);
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.13);
  font: 800 15px "Manrope", sans-serif;
  color: #0f172a;
}

.production-roi-formula-card {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  align-content: center;
  order: 2;
  min-height: var(--production-roi-formula-min-height, 560px);
  padding: clamp(var(--production-roi-formula-padding-min, 28px), var(--production-roi-formula-padding-fluid, 4vw), var(--production-roi-formula-padding-max, 58px));
  border-radius: var(--production-roi-formula-radius, 40px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.9));
}

.production-roi-logo {
  width: var(--production-roi-logo-size, 82px);
  height: var(--production-roi-logo-size, 82px);
  object-fit: contain;
  margin-bottom: var(--production-roi-logo-margin, 18px);
}

.production-roi-formula-card h1 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(var(--production-roi-title-min, 36px), var(--production-roi-title-fluid, 4.4vw), var(--production-roi-title-max, 75px));
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.production-roi-formula-card p:not(.eyebrow) {
  max-width: 640px;
  margin: var(--production-roi-text-margin-top, 22px) auto var(--production-roi-text-margin-bottom, 28px);
  color: #64748b;
  font-size: var(--production-roi-text-size, 16px);
  line-height: 1.65;
}

.production-roi-big-fraction {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--production-roi-fraction-gap, 22px);
  width: 100%;
  max-width: 900px;
  margin: var(--production-roi-fraction-margin-top, 20px) auto var(--production-roi-fraction-margin-bottom, 8px);
  padding: var(--production-roi-fraction-padding, 26px);
}

.production-roi-numerator,
.production-roi-denominator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--production-roi-equation-gap, 14px);
}

.production-roi-numerator {
  grid-column: 1 / -1;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.production-roi-denominator {
  grid-column: 1;
  flex-wrap: wrap;
}

.production-roi-numerator span,
.production-roi-denominator span {
  color: #64748b;
  font-size: clamp(var(--production-roi-label-min, 14px), var(--production-roi-label-fluid, 1.55vw), var(--production-roi-label-max, 21px));
  font-weight: 900;
}

.production-roi-numerator strong,
.production-roi-denominator strong {
  padding: var(--production-roi-pill-padding-y, 10px) var(--production-roi-pill-padding-x, 16px);
  border-radius: var(--production-roi-pill-radius, 17px);
  color: #be123c;
  background: rgba(255, 241, 242, 0.95);
  font-size: clamp(var(--production-roi-pill-min, 17px), var(--production-roi-pill-fluid, 1.85vw), var(--production-roi-pill-max, 26px));
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.12);
}

.production-roi-numerator em {
  color: #0f172a;
  font-size: clamp(var(--production-roi-minus-min, 20px), var(--production-roi-minus-fluid, 2.1vw), var(--production-roi-minus-max, 32px));
  font-style: normal;
  font-weight: 900;
}

.production-roi-fraction-line {
  height: var(--production-roi-line-height, 10px);
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f172a, #020617);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.production-roi-multiply {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: start;
  margin-left: var(--production-roi-multiply-margin, 18px);
  color: #0f172a;
  font-size: clamp(var(--production-roi-multiply-min, 17px), var(--production-roi-multiply-fluid, 1.7vw), var(--production-roi-multiply-max, 24px));
  font-weight: 900;
  white-space: nowrap;
}

.production-roi-result-card {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  align-self: start;
  order: 3;
  width: min(460px, 100%);
  display: grid;
  gap: var(--production-roi-result-gap, 8px);
  padding: var(--production-roi-result-padding, 24px);
  border-radius: var(--production-roi-card-radius, 28px);
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.96), rgba(225, 29, 72, 0.88));
  color: #fff;
}

.production-roi-result-card span,
.production-roi-result-card small,
.production-roi-result-card em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-weight: 800;
}

.production-roi-result-card > strong {
  font-size: clamp(var(--production-roi-result-min, 36px), var(--production-roi-result-fluid, 4vw), var(--production-roi-result-max, 62px));
  line-height: 1;
}

.production-roi-result-card b {
  display: block;
  margin-top: 8px;
  font-size: var(--production-roi-result-detail-size, 22px);
}

.production-roi-parameter-right {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  order: 4;
}

.production-machine-slide,
.production-summary-slide {
  display: grid;
  align-content: start;
}

.produktionssimulation-panel {
  display: grid;
  gap: 18px;
}

.production-sim-kpis,
.production-roi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.production-sim-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(420px, 1.4fr) minmax(240px, 0.72fr);
  gap: 16px;
  align-items: stretch;
}

.production-io-card,
.production-line-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.production-signal-grid {
  display: grid;
  gap: 10px;
}

.production-signal {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(239, 244, 251, 0.92));
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(15, 23, 42, 0.05);
}

button.production-signal {
  cursor: pointer;
}

.production-signal span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #64748b;
  background: rgba(226, 232, 240, 0.9);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.production-signal::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

.production-signal.is-active {
  border-color: rgba(22, 163, 74, 0.32);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.9));
  color: #14532d;
}

.production-signal.is-active span {
  color: #15803d;
  background: rgba(187, 247, 208, 0.76);
}

.production-signal.is-active::after {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14), 0 0 18px rgba(34, 197, 94, 0.45);
}

.production-signal.is-alarm {
  border-color: rgba(220, 38, 38, 0.3);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.92));
  color: #991b1b;
}

.production-signal.is-alarm span {
  color: #dc2626;
  background: rgba(254, 202, 202, 0.72);
}

.production-signal.is-alarm::after {
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.14), 0 0 20px rgba(239, 68, 68, 0.48);
}

.production-media-stage {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 18px;
  align-items: center;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 63, 94, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 22px 60px rgba(15, 23, 42, 0.16);
}

.production-media-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 170px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
}

.production-media-placeholder strong {
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.production-media-placeholder span {
  max-width: 520px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.production-conveyor {
  position: relative;
  height: 150px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #1f2937, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.production-belt {
  position: absolute;
  inset: 52px 18px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 20px, rgba(255,255,255,0.04) 20px 42px),
    linear-gradient(180deg, #475569, #1e293b);
}

.production-conveyor.is-running .production-belt {
  animation: production-belt-move 1.1s linear infinite;
}

.production-item {
  position: absolute;
  top: 60px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef3c7, #fb7185);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.production-item-a { left: 14%; }
.production-item-b { left: 44%; }
.production-item-c { left: 74%; }

.production-conveyor.is-running .production-item {
  animation: production-item-move 2.8s linear infinite;
}

.production-item-b { animation-delay: -0.9s; }
.production-item-c { animation-delay: -1.8s; }

.production-nozzle {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 54px;
  height: 64px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8);
}

.production-nozzle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -31px;
  width: 8px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #38bdf8;
  opacity: 0.34;
}

.production-conveyor.is-filling .production-nozzle::after {
  opacity: 1;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.75);
}

.production-sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.production-sim-actions .is-active {
  border-color: rgba(220, 38, 38, 0.28);
  color: #be123c;
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 255, 255, 0.92));
}

.production-roi-grid {
  grid-template-columns: 1fr 1fr 1.25fr;
}

.production-roi-list,
.production-step-flow,
.production-event-log {
  display: grid;
  gap: 10px;
}

.production-roi-list div {
  display: grid;
  grid-template-columns: minmax(96px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.production-roi-list strong {
  color: #be123c;
  font-size: clamp(15px, 1.35vw, 21px);
  line-height: 1.12;
}

.production-roi-list span,
.production-event-log {
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.production-oee-list div {
  grid-template-columns: minmax(145px, max-content) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.production-oee-list strong {
  min-width: 145px;
  white-space: nowrap;
}

.production-oee-list span {
  text-align: left;
}

.production-step-flow span {
  position: relative;
  padding: 13px 15px;
  border-radius: 999px;
  color: #334155;
  font-weight: 800;
  font-size: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.production-log-card {
  min-height: 260px;
}

.production-event-log {
  max-height: 214px;
  overflow: auto;
}

.production-event-log div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.production-oee-usecase-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.production-oee-usecase-card .production-event-log {
  display: none;
}

.production-oee-usecase-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.production-usecase-result {
  padding: 12px 14px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.9), rgba(255, 255, 255, 0.94));
  color: #be123c !important;
  font-weight: 900;
}

.production-image-preview-button {
  min-height: 34px;
  padding: 7px 12px;
  border-color: rgba(225, 29, 72, 0.18);
  color: #be123c;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.production-image-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 18px;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
}

.production-image-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
}

.production-image-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  border-radius: 20px;
  background: #f8fafc;
}

.production-image-dialog .dialog-close-button {
  float: right;
  margin: 0 0 12px 12px;
}

.production-topic-slide {
  display: grid;
  align-content: start;
  gap: clamp(18px, 2.2vw, 30px);
}

.production-kpi-swipe-host {
  display: block;
  contain: paint;
  overflow: hidden;
}

.production-kpi-swipe-track {
  display: grid;
  grid-template-columns: repeat(2, 50%);
  column-gap: 0;
  align-items: start;
  width: 200%;
  transition: transform 680ms cubic-bezier(0.2, 0.85, 0.22, 1);
  will-change: transform;
}

.production-kpi-swipe-track.is-showing-implementation {
  transform: translateX(-50%);
}

.production-kpi-swipe-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: clamp(18px, 2.2vw, 30px);
  width: 100%;
  min-width: 0;
  padding: 2px;
}

.production-kpi-swipe-panel + .production-kpi-swipe-panel {
  padding-left: clamp(72px, 7vw, 132px);
}

.production-slide-swipe-button {
  position: relative;
  overflow: hidden;
  border-color: rgba(225, 29, 72, 0.24);
  color: #be123c;
  background:
    linear-gradient(135deg, rgba(255, 241, 242, 0.98), rgba(255, 255, 255, 0.92)),
    #fff;
}

.production-slide-swipe-button::after {
  content: "→";
  display: inline-flex;
  margin-left: 8px;
  transition: transform 180ms ease;
}

.production-slide-swipe-button:hover::after {
  transform: translateX(5px);
}

.production-kpi-swipe-host .production-slide-swipe-button {
  position: absolute;
  top: calc(50% - 4cm);
  right: clamp(3px, 0.4vw, 7px);
  z-index: 8;
  display: grid;
  place-items: center;
  width: clamp(17px, 1.4vw, 23px);
  height: clamp(23px, 1.8vw, 29px);
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.26);
  border-radius: 0 999px 999px 0;
  color: #be123c;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 6px 14px rgba(225, 29, 72, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.production-kpi-swipe-host .production-slide-swipe-button::after {
  content: none;
}

.production-kpi-swipe-host .production-slide-swipe-button:hover {
  border-color: rgba(225, 29, 72, 0.46);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) translateX(-1px);
}

.production-kpi-swipe-host .production-slide-swipe-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleY(-1);
}

.production-kpi-swipe-host .production-slide-swipe-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.production-kpi-swipe-host .production-slide-swipe-button-back {
  left: clamp(20px, 2.2vw, 36px);
  right: auto;
  border-radius: 999px 0 0 999px;
  transform: translateY(-50%);
}

.production-kpi-swipe-host .production-slide-swipe-button-back img {
  transform: scaleX(-1) scaleY(-1);
}

.production-kpi-swipe-host .production-slide-swipe-button-back:hover {
  transform: translateY(-50%) translateX(1px);
}

.production-swipe-slide {
  transform-origin: right center;
  animation: production-swipe-ready 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.production-swipe-slide.is-swiped-in {
  animation: production-swipe-ready 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.production-data-journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 0.55vw, 10px);
  align-items: stretch;
  padding-top: 8px;
  border-top: 7px solid #0f335f;
  max-width: 100%;
  overflow: hidden;
}

.production-journey-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: clamp(470px, 54vh, 600px);
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-top: 4px solid currentColor;
  background:
    linear-gradient(180deg, color-mix(in srgb, currentColor 7%, white), rgba(255, 255, 255, 0.96) 28%, rgba(248, 250, 252, 0.92));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.production-journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 43%;
  right: -11px;
  z-index: 2;
  width: 22px;
  height: 16px;
  transform: translateY(-50%);
  clip-path: polygon(0 22%, 64% 22%, 64% 0, 100% 50%, 64% 100%, 64% 78%, 0 78%);
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.22), currentColor);
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.12));
}

.production-journey-step > span {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  background: #1d4ed8;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.production-journey-step h2 {
  margin: -37px 0 0 38px;
  color: currentColor;
  font-size: clamp(12px, 0.95vw, 16px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}

.production-journey-step em {
  margin: -2px 0 6px 38px;
  color: currentColor;
  font-size: clamp(11px, 0.82vw, 14px);
  font-style: normal;
  font-weight: 760;
  line-height: 1.2;
}

.production-journey-step p {
  margin: 0;
  color: #0f172a;
  font-size: clamp(11px, 0.78vw, 13px);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.production-journey-image {
  display: block;
  width: 100%;
  height: clamp(86px, 7.3vw, 138px);
  object-fit: contain;
  padding: 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed rgba(148, 163, 184, 0.26);
}

.production-journey-step ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 14px;
  color: #111827;
  font-size: clamp(10px, 0.68vw, 12px);
  font-weight: 750;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.production-journey-step strong {
  align-self: end;
  margin-top: auto;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 10px;
  color: #0f172a;
  font-size: 11px;
  line-height: 1.35;
  background: color-mix(in srgb, currentColor 8%, white);
  border: 1px solid currentColor;
}

.production-journey-step strong b {
  color: currentColor;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.production-journey-step strong small {
  color: #334155;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.production-journey-blue { color: #1d4ed8; }
.production-journey-green { color: #15803d; }
.production-journey-orange { color: #d97706; }
.production-journey-purple { color: #7e22ce; }

.production-journey-blue > span { background: #1d4ed8; }
.production-journey-green > span { background: #15803d; }
.production-journey-orange > span { background: #d97706; }
.production-journey-purple > span { background: #7e22ce; }

.production-implementation-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) minmax(220px, 0.9fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(201, 214, 232, 0.84);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.production-implementation-strip > div,
.production-implementation-strip aside {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 96px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.production-implementation-strip > div {
  position: relative;
}

.production-implementation-strip > div:not(:nth-last-child(2))::after {
  content: "→";
  position: absolute;
  right: -12px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #64748b;
  font-weight: 950;
}

.production-implementation-strip b {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
}

.production-implementation-strip span,
.production-implementation-strip li {
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.production-implementation-strip aside {
  color: #15803d;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.13), transparent 42%),
    rgba(240, 253, 244, 0.92);
  border-color: rgba(34, 197, 94, 0.28);
}

.production-implementation-strip aside strong {
  color: #15803d;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.production-implementation-strip aside ul {
  margin: 0;
  padding-left: 18px;
}

.production-swipe-slide .production-implementation-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(150px, 0.9fr);
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.production-swipe-slide .production-implementation-strip > div,
.production-swipe-slide .production-implementation-strip aside {
  min-width: 0;
  min-height: 66px;
  padding: 9px 10px;
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.28);
}

.production-swipe-slide .production-implementation-strip > div:not(:nth-last-child(2))::after {
  content: "→";
  right: -9px;
  color: #0f5f99;
  font-size: 15px;
}

.production-swipe-slide .production-implementation-strip b {
  color: #0f335f;
  font-size: 11px;
  text-align: center;
  overflow-wrap: anywhere;
}

.production-swipe-slide .production-implementation-strip span,
.production-swipe-slide .production-implementation-strip li {
  font-size: 10px;
  text-align: center;
  overflow-wrap: anywhere;
}

@keyframes production-swipe-ready {
  from {
    opacity: 0.82;
    transform: translateX(48px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.production-topic-grid,
.production-trace-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(240px, 0.85fr) minmax(240px, 0.85fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.production-topic-grid-wide {
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.production-trace-layout {
  grid-template-columns: minmax(520px, 1.4fr) minmax(300px, 0.8fr);
}

.production-topic-main {
  min-height: 320px;
  align-content: start;
  background:
    radial-gradient(circle at 12% 12%, rgba(225, 29, 72, 0.15), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
}

.production-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.production-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
  border: 1px solid rgba(225, 29, 72, 0.14);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

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

.production-roadmap-card {
  min-height: 360px;
}

.production-roadmap-card > strong {
  color: #be123c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.production-roadmap-source {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.production-roadmap-list div {
  display: grid;
  grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
}

.production-roadmap-list b {
  color: #be123c;
  font-size: 13px;
  font-weight: 950;
}

.production-roadmap-list span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

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

.production-process-chain span,
.production-process-step,
.production-data-pill {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 18px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  font-family: inherit;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,245,249,0.92));
  border: 1px solid rgba(225, 29, 72, 0.14);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.production-process-step:hover {
  transform: translateY(-2px);
}

.production-process-chain span::after,
.production-process-step::after {
  content: "↓";
  display: block;
  margin-top: 3px;
  color: #e11d48;
  font-size: 13px;
}

.production-process-step.is-digital {
  color: #14532d;
  border-color: rgba(34, 197, 94, 0.42);
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 197, 94, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(240,253,244,0.98), rgba(255,255,255,0.94));
  box-shadow: 0 16px 36px rgba(22, 163, 74, 0.12);
}

.production-process-step.is-digital::after,
.production-process-chain span:last-child::after {
  content: "✓";
  color: #16a34a;
}

.production-digital-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #64748b;
}

.production-digital-status strong {
  color: #be123c;
  font-size: 18px;
  font-weight: 950;
}

.production-digital-status small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.production-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
  padding: clamp(8px, 1.4vw, 18px) clamp(4px, 1vw, 12px) 0;
  border-top: 1px solid rgba(201, 214, 232, 0.72);
}

.production-insight-card {
  display: grid;
  gap: 12px;
  min-height: 120px;
  padding: 8px 4px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.production-insight-card span {
  color: #e11d48;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.production-insight-card strong {
  color: #0f172a;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
}

.production-insight-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.production-mini-chart {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.production-mini-chart div {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: center;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.production-mini-chart i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #be123c, #fb7185);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.14);
}

.production-data-table {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.production-data-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.production-data-row b {
  color: #be123c;
}

.production-data-row em {
  color: #64748b;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.production-slide-footnote {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.production-kpi-strip {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(225, 29, 72, 0.14);
}

.production-kpi-strip span {
  color: #64748b;
  font-weight: 900;
}

.production-kpi-strip strong {
  color: #be123c;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1;
}

.production-camera-card {
  min-height: 420px;
}

.production-camera-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(circle at 48% 44%, rgba(34, 197, 94, 0.18), transparent 22%),
    linear-gradient(135deg, #111827, #1e293b);
  background-size: 34px 34px, 34px 34px, auto, auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px rgba(15, 23, 42, 0.18);
}

.production-camera-frame::before,
.production-camera-frame::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(34, 197, 94, 0.72);
  border-radius: 18px;
}

.production-camera-frame::before {
  inset: 74px 34%;
}

.production-camera-frame::after {
  inset: 122px 18% 76px 58%;
  border-color: rgba(225, 29, 72, 0.78);
}

.production-camera-frame span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.production-camera-frame b {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #052e16;
  background: #86efac;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.44);
}

@keyframes production-belt-move {
  from { background-position: 0 0, 0 0; }
  to { background-position: 84px 0, 0 0; }
}

@keyframes production-item-move {
  from { transform: translateX(-140px); }
  to { transform: translateX(760px); }
}

@media (max-width: 1180px) {
  .simulation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .simulation-card-span-2 {
    grid-column: span 1;
  }

  .production-sim-layout,
  .production-topic-grid,
  .production-topic-grid-wide,
  .production-trace-layout,
  .production-process-chain,
  .production-insight-grid,
  .production-roi-grid,
  .production-roi-slide {
    grid-template-columns: 1fr;
  }

  .production-roi-result-card {
    grid-column: auto;
  }

  .production-roi-left-stack,
  .production-roi-formula-card,
  .production-roi-result-card,
  .production-roi-parameter-right {
    grid-column: 1;
    grid-row: auto;
  }

  .production-roi-left-stack {
    order: 1;
  }

  .production-roi-formula-card {
    order: 2;
  }

  .production-roi-result-card {
    order: 3;
  }

  .production-roi-parameter-right {
    order: 4;
  }

  .production-roi-formula-card {
    min-height: auto;
  }

  .production-language-panel {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    top: 58px;
    margin-top: 8px;
  }

  .production-context-panel {
    max-width: 100%;
  }

  .production-fixed-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: none;
    min-height: 46px;
    padding-inline: 12px;
    border-radius: 0;
  }

  .production-slide-size-control {
    width: 100%;
    justify-content: space-between;
  }

  .production-slide-size-control input[type="range"] {
    flex: 1 1 120px;
    width: auto;
  }

  .production-slide-head {
    display: grid;
  }

  .production-slide-meta-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .production-slide-meta-row .eyebrow {
    justify-self: center;
    text-align: center;
  }

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

  .production-radar-card {
    grid-template-columns: 1fr;
  }

  .production-slide-rank-control {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .production-rank-category {
    width: 100%;
    max-width: 320px;
  }

  .production-slide-actions {
    justify-content: flex-start;
  }

  .production-slide-value-strip {
    grid-template-columns: 1fr;
  }

  .production-context-impact-grid {
    grid-template-columns: 1fr;
  }

  .production-roi-rank-grid {
    grid-template-columns: 1fr;
  }

  .production-slide-value-strip em {
    text-align: left;
  }

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

  .production-index-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .production-sim-kpis {
    grid-template-columns: 1fr;
  }

  .production-media-stage {
    min-height: 300px;
    padding: 12px;
  }

  .production-roi-list div {
    grid-template-columns: 1fr;
  }

  .production-oee-list strong {
    min-width: 0;
    white-space: normal;
  }

  .production-kpi-strip {
    grid-template-columns: 1fr;
  }

  .production-data-row,
  .production-mini-chart div {
    grid-template-columns: 1fr;
  }

  .production-data-row em {
    text-align: left;
  }

  .production-roi-big-fraction {
    padding-right: 26px;
  }

  .production-roi-numerator {
    flex-wrap: wrap;
    white-space: normal;
  }

  .production-roi-multiply {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-left: 12px;
    margin-top: 4px;
  }

  .production-slide {
    min-height: auto;
    padding: 22px;
    border-radius: 24px;
  }

  .production-slide-kicker {
    position: static;
    margin-bottom: 18px;
  }

  .production-roi-slide {
    padding-top: 22px;
  }

  .production-roi-formula-card h1 {
    font-size: 48px;
  }
}

.mitarbeiter-health {
  margin-top: auto;
  padding-top: 18px;
}

.health-led {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.health-led.is-ok {
  color: #16a34a;
}

.health-led.is-missing {
  color: #dc2626;
}

.health-title {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.health-list {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.hours-preview {
  font-size: 13px;
  font-weight: 800;
  color: #2563eb;
}

.assignment-table th,
.assignment-table td {
  white-space: nowrap;
}

.assignment-cell {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  user-select: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.assignment-cell:hover {
  background: #fff7d6;
  color: #0f172a;
}

.assignment-cell-active {
  background: #dcfce7;
  color: #166534;
}

.side-subtitle {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.lager-location-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 248, 252, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(15, 23, 42, 0.04);
}

.lager-location-chip {
  min-height: 42px;
  padding: 0 14px;
  text-align: left;
  justify-content: flex-start;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 1px solid rgba(40, 40, 40, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 251, 0.96));
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.08),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.08),
    0 10px 18px rgba(20, 20, 20, 0.08);
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.lager-location-chip::before,
.lager-location-chip::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.lager-location-chip::before {
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 241, 239, 0.72));
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.08),
    -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.12),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.32),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.8),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.28),
    -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.1);
}

.lager-location-chip::after {
  z-index: -2;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  top: -0.15em;
  left: -0.15em;
  background: linear-gradient(-135deg, rgba(5, 5, 5, 0.22), transparent 22%, transparent 100%);
  filter: blur(0.0125em);
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.lager-location-chip:hover {
  transform: translateY(-2px);
  border-color: #b7c6dc;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.1),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1),
    0 14px 24px rgba(20, 20, 20, 0.1);
}

.lager-location-chip.is-active {
  background: linear-gradient(180deg, #dceeff 0%, #c9e1ff 100%);
  border-color: #60a5fa;
  color: #0f172a;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 18px rgba(59, 130, 246, 0.18);
}

.lager-transfer-card {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfe;
  display: grid;
  gap: 8px;
}

.lager-transfer-card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.lager-status-block {
  margin-top: auto;
  padding-top: 18px;
}

.lager-preview {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
}

.lager-table td:last-child,
.lager-table th:last-child {
  text-align: center;
}

.status-pill-ok,
.status-pill-low {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.status-pill-ok {
  background: #dcfce7;
  color: #166534;
}

.status-pill-low {
  background: #fee2e2;
  color: #b91c1c;
}

.lager-locations-editor {
  display: grid;
  gap: 8px;
}

.lager-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
}

.lager-location-row button {
  min-width: 110px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  position: relative;
  border: 1px solid rgba(40, 40, 40, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 251, 0.96));
  color: #344054;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
  overflow: visible;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.08),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.08),
    0 10px 18px rgba(20, 20, 20, 0.08);
}

.lager-location-row button::before,
.lager-location-row button::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.lager-location-row button::before {
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 241, 239, 0.72));
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.08),
    -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.12),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.32),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.8),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.28),
    -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.1);
}

.lager-location-row button::after {
  z-index: -2;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  inset: -0.15em;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.18));
  filter: blur(0.0125em);
  opacity: 0.82;
  mix-blend-mode: multiply;
}

.lager-location-row button:hover {
  transform: translateY(-2px);
  border-color: #b7c6dc;
  box-shadow:
    -0.18em -0.18em 0.18em -0.08em rgba(5, 5, 5, 0.08),
    0.04em 0.06em 0.12em 0 rgba(5, 5, 5, 0.08),
    0 14px 24px rgba(20, 20, 20, 0.1);
}

.lager-location-row button:hover::before {
  clip-path: inset(clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 999px);
}

.lager-location-row button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.branch-filter-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.branch-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 14px;
}

.overview-wrap {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.overview-current-week {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.is-hidden {
  display: none !important;
}

.overview-current-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-icon-button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e3f4;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 252, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 20px rgba(148, 163, 184, 0.16);
  padding: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.overview-icon-button img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  transition:
    filter 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.overview-icon-button-add {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 20px rgba(37, 99, 235, 0.12);
}

.overview-icon-button-add img {
  filter: brightness(0) saturate(100%) invert(38%) sepia(91%) saturate(1352%) hue-rotate(212deg) brightness(97%) contrast(92%);
  opacity: 0.88;
}

.overview-icon-button-update {
  border-color: rgba(249, 115, 22, 0.34);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 20px rgba(249, 115, 22, 0.12);
}

.overview-icon-button-update img {
  filter: brightness(0) saturate(100%) invert(63%) sepia(84%) saturate(1802%) hue-rotate(352deg) brightness(101%) contrast(96%);
  opacity: 0.88;
}

.overview-icon-button-delete {
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(254, 202, 202, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 20px rgba(239, 68, 68, 0.12);
}

.overview-icon-button-delete img {
  filter: brightness(0) saturate(100%) invert(49%) sepia(39%) saturate(1600%) hue-rotate(323deg) brightness(101%) contrast(96%);
  opacity: 0.86;
}

.overview-icon-button-add:hover,
.overview-icon-button-update:hover,
.overview-icon-button-delete:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 26px rgba(15, 23, 42, 0.08);
}

.overview-icon-button-add:hover img,
.overview-icon-button-update:hover img,
.overview-icon-button-delete:hover img {
  transform: scale(1.06);
}

.overview-rows {
  display: grid;
  gap: 14px;
}

.overview-row-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: #fff;
}

.overview-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.overview-row-header .field-row {
  margin: 0;
  flex: 1;
}

.overview-row-header > .overview-icon-button,
.overview-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.overview-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(210px, 1fr));
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 6px 8px;
  align-items: start;
  background: #fff;
  border-radius: 22px;
}

.overview-day-card {
  min-width: 210px;
  width: 100%;
  background: linear-gradient(180deg, #fffbe8 0%, #fffdf5 100%);
  border: 1px solid #f0d999;
  border-radius: 18px;
  outline: 6px solid #ffffff;
  outline-offset: 0;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
  box-shadow: 0 10px 20px rgba(203, 138, 0, 0.06);
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 0;
  justify-self: start;
  transition:
    width 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.overview-day-card:hover {
  width: calc(200% + 18px);
  z-index: 20;
  border-color: #e7bf52;
  box-shadow: 0 22px 38px rgba(203, 138, 0, 0.16);
}

body[data-overview-card-hover="0"] .overview-day-card:hover {
  width: 100%;
  z-index: 0;
  border-color: #f0d999;
  box-shadow: 0 10px 20px rgba(203, 138, 0, 0.06);
}

.overview-day-card:nth-child(6):hover,
.overview-day-card:nth-child(7):hover {
  justify-self: end;
}

body[data-overview-card-hover="0"] .overview-day-card:nth-child(6):hover,
body[data-overview-card-hover="0"] .overview-day-card:nth-child(7):hover {
  justify-self: start;
}

.overview-day-card h3 {
  margin: 0;
  font-size: 16px;
  color: #cb8a00;
}

.overview-day-title {
  display: grid;
  gap: 2px;
}

.overview-day-date {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.overview-day-card textarea {
  min-height: 88px;
  font-size: 12px;
  line-height: 1.35;
}

.overview-day-entries {
  display: grid;
  gap: 12px;
  align-content: start;
  align-items: start;
}

.overview-plan-entry {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(240, 217, 153, 0.8);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 251, 232, 0.72), rgba(255, 253, 245, 0.96));
  align-content: start;
  min-width: 0;
  overflow: hidden;
}

.overview-entry-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.overview-entry-marker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b08a1d;
}

.overview-plain-label {
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  min-width: 0;
}

.overview-plain-label.is-empty {
  color: #94a3b8;
  font-style: italic;
}

.overview-plan-entry > .overview-plain-label:first-of-type {
  min-height: 42px;
}

.overview-label-stack {
  display: grid;
  gap: 6px;
  min-height: 64px;
  align-content: start;
  min-width: 0;
}

.overview-entry-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 2px;
}

.overview-entry-actions .chip-button {
  min-height: 30px;
  min-width: 30px;
  justify-content: center;
  padding: 0;
}

.overview-entry-head .chip-button {
  min-height: 30px;
  min-width: 30px;
  justify-content: center;
  padding: 0;
  margin-left: 2px;
}

.overview-entry-actions .chip-button.is-danger,
.overview-entry-head .chip-button.is-danger {
  color: #b42318;
  border-color: rgba(217, 45, 32, 0.42);
  background: linear-gradient(180deg, #fff1f0 0%, #ffd9d6 100%);
  box-shadow: 0 8px 18px rgba(217, 45, 32, 0.14);
}

.overview-entry-actions .chip-button.is-danger:hover,
.overview-entry-head .chip-button.is-danger:hover {
  border-color: rgba(217, 45, 32, 0.56);
  box-shadow: 0 10px 22px rgba(217, 45, 32, 0.2);
}

.overview-entry-actions .chip-button.is-danger .chip-button-icon,
.overview-entry-head .chip-button.is-danger .chip-button-icon {
  filter: brightness(0) saturate(100%) invert(49%) sepia(39%) saturate(1600%) hue-rotate(323deg) brightness(101%) contrast(96%);
  opacity: 0.82;
}

.overview-entry-add {
  justify-self: auto;
  border-color: rgba(217, 119, 6, 0.38);
  background: linear-gradient(180deg, #fff1bf 0%, #fde68a 100%);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.14);
}

.overview-entry-add:hover {
  border-color: rgba(217, 119, 6, 0.56);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.2);
}

.overview-entry-add .chip-button-icon {
  filter: brightness(0) saturate(100%) invert(58%) sepia(73%) saturate(1141%) hue-rotate(358deg) brightness(95%) contrast(96%);
  opacity: 0.9;
}

.overview-plan-entry textarea {
  width: 100%;
  min-height: 76px;
  max-height: 120px;
  resize: none;
  overflow: auto;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 1px 3px 8px rgba(15, 23, 42, 0.1);
  display: block;
  font-size: 11px;
  line-height: 1.3;
}

.overview-entry-actions .chip-button .chip-button-icon,
.overview-entry-head .chip-button .chip-button-icon {
  width: 14px;
  height: 14px;
}

.overview-plan-entry textarea:focus {
  background-color: #ffffff;
  transform: none;
  box-shadow:
    inset 1px 3px 8px rgba(15, 23, 42, 0.08),
    0 0 0 3px rgba(37, 99, 235, 0.1);
}

.overview-row-header .select:focus,
.overview-inline-fields .select:focus {
  transform: none;
}

.overview-row-header .select,
.overview-inline-fields .select,
.overview-shift-select {
  font-size: 11px;
  line-height: 1.25;
}

.overview-inline-fields {
  display: grid;
  gap: 8px;
}

.overview-day-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.overview-day-toolbar .chip-button {
  min-height: 34px;
}

.overview-time-display {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.overview-employee-list {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.overview-view-link {
  justify-content: center;
  text-decoration: none;
}

.overview-view-page .page-shell {
  width: 100%;
  max-width: none;
}

.overview-view-shell {
  display: grid;
  gap: 16px;
  width: 100%;
}

.overview-view-back {
  justify-self: end;
  text-decoration: none;
}

.overview-view-toolbar {
  display: grid;
  grid-template-columns: auto minmax(160px, 220px) auto minmax(220px, 320px) auto minmax(220px, 320px) auto minmax(220px, 320px) 1fr;
  align-items: center;
  gap: 14px;
}

.overview-view-toolbar .badge {
  justify-self: end;
}

.overview-view-status {
  display: grid;
  gap: 12px;
}

.overview-view-summary-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  color: #64748b;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.overview-view-summary-card strong {
  color: #0f172a;
  font-size: 16px;
}

.overview-view-board {
  display: grid;
  gap: 22px;
}

.overview-view-row {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.06);
}

.overview-view-row-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.overview-view-row-head h3 {
  margin: 0;
  font-size: 22px;
}

.overview-view-row-head span {
  color: #64748b;
  font-weight: 800;
}

.overview-view-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(240px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.overview-view-day-card {
  min-width: 240px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid #f0d999;
  border-radius: 24px;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 237, 153, 0.55), transparent 34%),
    linear-gradient(180deg, #fffdf2 0%, #ffffff 100%);
}

.overview-view-day-card h3 {
  margin: 0;
  color: #b87500;
  font-size: 17px;
}

.overview-view-day-list {
  display: grid;
  gap: 10px;
}

.overview-view-entry {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(215, 227, 244, 0.95);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.overview-view-entry-main {
  display: grid;
  gap: 6px;
}

.overview-view-entry-main strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
}

.overview-view-entry-main span {
  color: #2563eb;
  font-weight: 900;
}

.overview-view-entry-meta {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.overview-view-empty-day {
  color: #94a3b8;
  font-style: italic;
  padding: 12px 0;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

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

.choice-slot-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f172a;
}

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

.choice-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-size: 14px;
}

.choice-item input {
  margin: 0;
}

.choice-item span {
  flex: 1;
}

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

.kw-select-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 14px;
}

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

.kpi-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.kpi-label {
  font-size: 12px;
  color: #64748b;
}

.kpi-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.zeitbilanz-status-card,
.zeitbilanz-preview-card {
  padding: 14px;
}

.zeitbilanz-status-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.zeitbilanz-preview-card {
  display: grid;
  gap: 12px;
}

.zeitbilanz-preview-entry {
  border: 1px solid #dbe2ea;
  border-radius: 18px;
  padding: 16px;
  background: #fbfdff;
}

.zeitbilanz-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.zeitbilanz-preview-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.zeitbilanz-preview-sub {
  font-size: 13px;
  color: #334155;
  margin-top: 4px;
}

.zeitbilanz-preview-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  color: #334155;
  font-size: 13px;
}

.zeitbilanz-badges {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zeitbilanz-badge {
  display: inline-flex;
  padding: 4px 10px;
  background: #eef2ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.rechnung-preview-card {
  padding: 18px;
  overflow: auto;
}

.email-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.email-template-tab {
  min-width: 36px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.email-template-tab.is-active {
  border-color: rgba(225, 29, 72, 0.42);
  background: linear-gradient(180deg, #fff1f4 0%, #ffd7e1 100%);
  color: #be123c;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.14);
}

.email-preview-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

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

.email-config-grid-span {
  grid-column: 1 / -1;
}

.email-config-delete-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 64px;
}

.email-preview-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.email-preview-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  background: #ffffff;
}

.email-preview-summary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.email-preview-name {
  margin-top: 3px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  word-break: break-word;
}

.email-preview-delete {
  flex: 0 0 auto;
  justify-self: end;
  align-self: center;
}

.email-preview-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.email-preview-label {
  font-size: 13px;
  font-weight: 700;
  color: #475467;
}

.email-preview-value {
  min-height: 20px;
  font-size: 13px;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}

.email-preview-editor {
  display: grid;
  gap: 8px;
}

.email-preview-editor span {
  font-size: 13px;
  font-weight: 700;
  color: #475467;
}

.email-preview-editor textarea {
  min-height: 260px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.55;
}

.soft-note {
  font-size: 13px;
  color: #64748b;
}

.mobile-sidebar-toggle,
.mobile-sidebar-backdrop,
.desktop-sidebar-toggle {
  display: none;
}

@media (min-width: 761px) {
  .desktop-sidebar-toggle {
    display: inline-flex;
    position: fixed;
    left: 14px;
    bottom: 16px;
    z-index: 1240;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
  }

  .desktop-sidebar-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #475467;
    display: block;
  }

  .page-shell[data-desktop-sidebar-collapsed="1"] .left-rail {
    display: none;
  }

  .page-shell[data-desktop-sidebar-collapsed="1"]::before,
  .page-shell[data-desktop-sidebar-collapsed="1"]::after {
    content: "";
    position: fixed;
    top: 8px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.98;
  }

  .page-shell[data-desktop-sidebar-collapsed="1"]::before {
    right: 152px;
    width: 26px;
    height: 26px;
    background: center / contain no-repeat url("assets/GM_wirtschaft.png");
  }

  .page-shell[data-desktop-sidebar-collapsed="1"]::after {
    right: 18px;
    width: 126px;
    height: 28px;
    background: right center / contain no-repeat url("assets/ZION.png");
  }

  .left-rail {
    transition: transform 240ms ease, opacity 180ms ease;
  }

  .page-shell[data-desktop-sidebar-collapsed="1"] .page-layout,
  .page-shell[data-desktop-sidebar-collapsed="1"] .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1200px) {
  .workspace,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .workspace > .sidebar,
  .workspace > .content-panel,
  .left-rail,
  .right-rail {
    min-width: 0;
    width: auto;
  }

  .hero-card {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 12px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding-inline: 4px;
    font-size: 13px;
  }

  .hero-card {
    align-items: start;
    padding: 16px;
  }

  .hero-title {
    font-size: 19px;
  }

  .overview-view-toolbar,
  .overview-view-row-head,
  .overview-section-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .overview-view-toolbar .badge,
  .overview-view-back {
    justify-self: start;
  }

  .overview-view-days {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .overview-view-day-card {
    min-width: 0;
  }

  .hero-subtitle,
  .sidebar-copy,
  .section-header p,
  .soft-note {
    font-size: 13px;
  }

  .sidebar,
  .content-panel,
  .shell-card,
  .section-card {
    padding: 12px;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .left-rail {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: min(300px, calc(100vw - 52px));
    min-width: min(300px, calc(100vw - 52px));
    height: 100vh;
    padding: 16px 12px 20px;
    background: linear-gradient(180deg, rgba(243, 245, 249, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    transform: translateX(calc(-100% - 18px));
    transition: transform 240ms ease;
    touch-action: pan-y;
  }

  .right-rail,
  .content-panel {
    min-width: 0;
  }

  .page-shell[data-mobile-sidebar-open="1"] .left-rail {
    transform: translateX(0);
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
    position: fixed;
    left: 12px;
    top: 56px;
    z-index: 1250;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
  }

  .mobile-sidebar-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #475467;
    display: block;
  }

  .page-shell[data-mobile-sidebar-open="1"] .mobile-sidebar-toggle {
    left: calc(min(300px, calc(100vw - 52px)) - 20px);
    background: rgba(255, 255, 255, 0.98);
  }

  .mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1190;
    border: none;
    padding: 0;
    background: rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .page-shell[data-mobile-sidebar-open="1"] .mobile-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .field-row,
  .section-header,
  .split-actions,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .overview-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }

  .overview-section-header > div:first-child {
    width: 100%;
    padding-right: 40px;
  }

  .overview-header-tools {
    justify-self: start;
    width: auto;
    margin-top: 2px;
  }

  .overview-mode-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    gap: 8px;
  }

  .overview-mode-toggle .radio-card span {
    font-size: 11px;
  }

  .overview-mode-toggle .radio-card {
    width: 100%;
    justify-content: flex-start;
  }

  .field-row label,
  .label {
    min-width: 0;
  }

  .app-button,
  .inline-button,
  .tiny-button {
    width: 100%;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table,
  .assignment-table {
    min-width: 760px;
  }

  .filial-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .filial-form {
    padding: 18px;
  }

  .filial-form h3,
  .app-settings-subtitle {
    font-size: 20px;
  }

  .filial-form-grid,
  .time-grid,
  .email-config-grid {
    grid-template-columns: 1fr;
  }

  .filial-form-span-2 {
    grid-column: auto;
  }

  .mitarbeiter-page .section-header {
    gap: 10px;
    align-items: flex-start;
  }

  .email-header-tools {
    justify-content: flex-start;
  }

  .email-preview-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mitarbeiter-page .badge {
    align-self: flex-start;
  }

  .mitarbeiter-page .table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
  }

  .mitarbeiter-page .mitarbeiter-table {
    min-width: 0;
    display: block;
  }

  .mitarbeiter-page .mitarbeiter-table thead {
    display: none;
  }

  .mitarbeiter-page .mitarbeiter-table tbody {
    display: grid;
    gap: 12px;
  }

  .mitarbeiter-page .mitarbeiter-table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .mitarbeiter-page .mitarbeiter-table td {
    display: grid;
    grid-template-columns: minmax(120px, 42%) 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
    word-break: break-word;
  }

  .mitarbeiter-page .mitarbeiter-table td:last-child {
    border-bottom: none;
  }

  .mitarbeiter-page .mitarbeiter-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mitarbeiter-page .mitarbeiter-table .active-col {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    text-align: left;
    padding-top: 0;
  }

  .mitarbeiter-page .mitarbeiter-table .active-col::before {
    content: "Aktiv";
  }

  .mitarbeiter-page .mitarbeiter-table .table-empty {
    display: block;
    border: none;
    padding: 18px 8px;
    text-align: center;
  }

  .mitarbeiter-page .mitarbeiter-table .table-empty::before {
    content: none;
  }

  .filialen-page .status-list,
  .schichten-page .status-list,
  .lager-page .status-list,
  .zeitbilanz-page .status-list,
  .rechnung-page .status-list,
  .schicht-zuteilung-page .status-list {
    font-size: 13px;
  }

  .overview-page .sidebar .stack {
    gap: 10px;
  }

  .overview-page .mode-toggle {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .overview-page .overview-wrap {
    padding: 12px;
  }

  .overview-page .overview-current-week {
    font-size: 12px;
  }

  .overview-page .overview-current-bar {
    gap: 10px;
    align-items: center;
  }

  .overview-page .overview-row-card {
    padding: 12px;
  }

  .overview-page .overview-row-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .overview-page .overview-row-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .overview-page .overview-row-header > .overview-icon-button,
  .overview-page .overview-row-actions .overview-icon-button,
  .overview-page .overview-current-bar .overview-icon-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .overview-page .overview-row-header > .overview-icon-button img,
  .overview-page .overview-row-actions .overview-icon-button img,
  .overview-page .overview-current-bar .overview-icon-button img {
    width: 16px;
    height: 16px;
  }

  .overview-page .overview-day-grid {
    grid-template-columns: 1fr;
    overflow: visible;
    gap: 10px;
  }

  .overview-page .overview-day-card {
    min-width: 0;
    padding: 12px;
  }

  .overview-page .overview-day-card h3 {
    font-size: 15px;
  }

  .overview-page .overview-day-card textarea {
    min-height: 72px;
  }

  .overview-page .overview-plan-entry {
    padding: 10px;
  }

  .overview-page .overview-inline-fields {
    gap: 10px;
  }

  .overview-page .overview-day-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .overview-page .overview-day-toolbar .chip-button {
    width: 100%;
    justify-content: center;
  }

  .overview-page .overview-entry-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .overview-page .overview-entry-actions .chip-button {
    width: auto;
    min-width: 0;
    justify-content: center;
  }

  .overview-page .overview-employee-list {
    min-height: 38px;
    padding: 10px;
    font-size: 12px;
  }

  .choice-slot-row,
  .choice-slot-times {
    grid-template-columns: 1fr;
  }

  .lager-page .lager-transfer-card,
  .lager-page .lager-status-block,
  .arbeit-page .branch-filter-list,
  .zeitbilanz-page .kw-select-list,
  .rechnung-page .rechnung-preview,
  .rechnung-page .rechnung-summary,
  .rechnung-page .rechnung-preview-grid,
  .rechnung-page .rechnung-party-grid,
  .rechnung-page .rechnung-footer-grid {
    width: 100%;
  }

  .rechnung-page .rechnung-preview {
    overflow-wrap: anywhere;
  }

  .rechnung-page .data-table {
    min-width: 680px;
  }

  .phase-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .phase-payment-form,
  .phase-bank-connector-form,
  .phase-accounting-form,
  .phase-datev-form,
  .phase-elster-form {
    grid-template-columns: 1fr;
  }

  .phase-payment-history-row {
    grid-template-columns: 1fr;
  }

  .zeitbilanz-page .kpi-grid {
    grid-template-columns: 1fr;
  }

  .zeitbilanz-page .zeitbilanz-preview-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .schicht-zuteilung-page .table-wrap,
  .filialen-page .table-wrap,
  .schichten-page .table-wrap,
  .lager-page .table-wrap,
  .arbeit-page .table-wrap,
  .zeitbilanz-page .table-wrap,
  .rechnung-page .table-wrap {
    border-radius: 18px;
  }
  
}
.produktionssimulation-page {
    zoom: 90%;
}

.pdf-merger-page .hero-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pdf-merger-page .hero-logo,
.pdf-tool-page .hero-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(214, 42, 82, 0.2));
}

.smartformular-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 22px;
}

.smartformular-page .section-card,
.smartformular-page .dashboard-block {
  padding: 22px;
}

.smartformular-page .section-header {
  padding: 22px 24px;
  margin-bottom: 18px;
}

.smartformular-api-card {
  margin-bottom: 18px;
}

.smartformular-api-card h3,
.smartformular-page .section-card h3,
.smartformular-page .section-card h2 {
  margin-top: 0;
}

.smartformular-api-card p {
  margin: 8px 0 16px;
  color: #64748b;
}

.smartformular-page .field-stack {
  gap: 9px;
}

.smartformular-page .field-stack > span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.smartformular-span-2 {
  grid-column: 1 / -1;
}

.smartformular-textarea {
  min-height: 210px;
  resize: vertical;
}

.smartformular-file-button {
  width: 100%;
}

.smartformular-file-card {
  min-height: 92px;
  padding: 16px;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  border-radius: 18px;
}

.smartformular-page .ticket-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.smartformular-page .modal-actions {
  align-items: center;
  justify-content: flex-end;
  padding-top: 4px;
}

.smartformular-page .modal-actions .inline-button {
  min-width: 150px;
}

.smartformular-result-pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  color: #334155;
}

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

.smartformular-output-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.82));
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.14);
}

.smartformular-output-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.smartformular-output-card strong {
  color: #0f172a;
  font-size: 15px;
}

.smartformular-output-card span,
.smartformular-output-card small {
  color: #64748b;
  font-size: 12px;
}

.smartformular-editor-backdrop[hidden] {
  display: none;
}

.smartformular-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(9px);
}

.smartformular-editor-card {
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 26px;
}

.smartformular-editor-textarea {
  min-height: 52vh;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.55;
  white-space: pre-wrap;
}

.compact-header {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.modern-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(214, 42, 82, 0.28);
  border-radius: 999px;
  color: #c2214f;
  font-weight: 800;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 246, 0.88));
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  overflow: hidden;
}

.modern-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.modern-file-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(214, 42, 82, 0.18);
}

.pdf-merger-dropzone {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed rgba(214, 42, 82, 0.35);
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(214, 42, 82, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.82));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pdf-merger-dropzone[data-active="1"] {
  border-color: rgba(214, 42, 82, 0.85);
  box-shadow: 0 20px 50px rgba(214, 42, 82, 0.16);
  transform: translateY(-2px);
}

.pdf-merger-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 16px;
}

.pdf-merger-row,
.pdf-merger-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.86));
  box-shadow: 0 16px 34px rgba(148, 163, 184, 0.16);
}

.pdf-merger-preview-tile {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 0;
  border: 1px solid rgba(214, 42, 82, 0.22);
  border-radius: 22px;
  color: #c2214f;
  font-weight: 900;
  background:
    radial-gradient(circle at 24% 20%, rgba(214, 42, 82, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 248, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 28px rgba(148, 163, 184, 0.18);
  cursor: pointer;
  overflow: hidden;
}

.pdf-merger-preview-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 42, 82, 0.45);
  box-shadow: 0 18px 38px rgba(214, 42, 82, 0.16);
}

.pdf-merger-preview-tile iframe {
  width: 100%;
  height: 230px;
  border: 0;
  background: #fff;
  pointer-events: none;
  transform: scale(1.02);
  transform-origin: center top;
}

.pdf-merger-preview-overlay {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(145deg, #a71e3f, #df3b68);
  box-shadow: 0 10px 22px rgba(214, 42, 82, 0.28);
}

.pdf-merger-preview-tile .pdf-merger-index {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.pdf-merger-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, #a71e3f, #df3b68);
  box-shadow: 0 12px 26px rgba(214, 42, 82, 0.25);
}

.pdf-merger-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pdf-merger-meta strong {
  display: -webkit-box;
  min-height: 42px;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.35;
}

.pdf-merger-meta span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

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

.pdf-merger-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 999px;
  color: #334155;
  font-weight: 800;
  background: linear-gradient(145deg, #ffffff, #eef2f7);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.18);
  cursor: pointer;
}

.pdf-merger-actions button:hover:not(:disabled) {
  color: #c2214f;
  border-color: rgba(214, 42, 82, 0.38);
}

.pdf-merger-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.pdf-merger-result[hidden] {
  display: none;
}

.pdf-checker-dropzone {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed rgba(214, 42, 82, 0.35);
  text-align: center;
  background:
    radial-gradient(circle at 18% 8%, rgba(214, 42, 82, 0.11), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.84));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pdf-checker-dropzone[data-active="1"] {
  border-color: rgba(214, 42, 82, 0.85);
  box-shadow: 0 20px 50px rgba(214, 42, 82, 0.16);
  transform: translateY(-2px);
}

.pdf-checker-summary-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 16px;
}

.pdf-checker-score-card,
.pdf-checker-metric-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 22px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.82));
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.16);
}

.pdf-checker-score-card {
  color: #fff;
  background: linear-gradient(135deg, #8f1f3c, #e53e70);
  box-shadow: 0 22px 46px rgba(214, 42, 82, 0.24);
}

.pdf-checker-score-card[data-score-state="ok"] {
  background: linear-gradient(135deg, #166534, #22c55e);
}

.pdf-checker-score-card[data-score-state="warn"] {
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.pdf-checker-score-card[data-score-state="risk"] {
  background: linear-gradient(135deg, #7f1d1d, #ef4444);
}

.pdf-checker-score-card span,
.pdf-checker-metric-card span,
.pdf-checker-score-card small,
.pdf-checker-metric-card small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.78;
}

.pdf-checker-score-card strong,
.pdf-checker-metric-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
}

.pdf-checker-results,
.pdf-checker-pages {
  display: grid;
  gap: 12px;
}

.pdf-checker-result-row,
.pdf-checker-page-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) auto minmax(0, 2fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.84));
}

.pdf-checker-result-row span {
  justify-self: start;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.pdf-checker-result-row p,
.pdf-checker-page-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.pdf-checker-result-row.is-ok {
  border-color: rgba(34, 197, 94, 0.34);
}

.pdf-checker-result-row.is-ok span {
  color: #166534;
  background: rgba(220, 252, 231, 0.9);
}

.pdf-checker-result-row.is-warn {
  border-color: rgba(245, 158, 11, 0.36);
}

.pdf-checker-result-row.is-warn span {
  color: #92400e;
  background: rgba(254, 243, 199, 0.92);
}

.pdf-checker-result-row.is-risk {
  border-color: rgba(239, 68, 68, 0.34);
}

.pdf-checker-result-row.is-risk span {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.94);
}

.pdf-checker-page-card {
  grid-template-columns: 120px 1fr 170px;
}

.pdf-checker-page-card small {
  color: #c2214f;
  font-weight: 900;
}

.pdf-checker-page-card p {
  grid-column: 1 / -1;
  padding-top: 2px;
}

.badge[data-state="ok"] {
  color: #166534;
  background: rgba(220, 252, 231, 0.9);
}

.badge[data-state="warn"],
.badge[data-state="busy"],
.badge[data-state="ready"] {
  color: #92400e;
  background: rgba(254, 243, 199, 0.92);
}

.badge[data-state="risk"] {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.94);
}

@media (max-width: 1100px) {
  .pdf-checker-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pdf-checker-summary-grid,
  .pdf-checker-result-row,
  .pdf-checker-page-card {
    grid-template-columns: 1fr;
  }
}

.smart-archiv-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
}

.smart-archiv-app-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
}

.smart-archiv-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.smart-archiv-app-header .hero-logo {
  width: 38px;
  height: 38px;
}

.smart-archiv-app-header .hero-title {
  font-size: 24px;
  margin: 0;
}

.smart-archiv-app-header .hero-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
}

.smart-archiv-mode-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 18px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.smart-archiv-mode-switch label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.smart-archiv-mode-switch input {
  width: 17px;
  height: 17px;
  accent-color: #0875d1;
}

.smart-archiv-online-state {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.smart-archiv-online-state span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.smart-archiv-page .section-card,
.smart-archiv-page .dashboard-block {
  padding: 22px;
}

.smart-archiv-page .field-stack {
  gap: 9px;
}

.smart-archiv-page .field-stack > span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.smart-archiv-span-2 {
  grid-column: span 2;
}

.smart-archiv-note {
  min-height: 116px;
  resize: vertical;
}

.smart-archiv-search {
  width: min(420px, 100%);
}

.smart-archiv-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.smart-archiv-summary-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.82));
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.14);
}

.smart-archiv-summary-grid span,
.smart-archiv-card small,
.smart-archiv-card p,
.smart-archiv-card-meta {
  color: #64748b;
  font-size: 12px;
}

.smart-archiv-summary-grid strong {
  color: #c2214f;
  font-size: 26px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

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

.smart-archiv-feed {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 760px);
  overflow: auto;
  padding-right: 8px;
}

.smart-archiv-alert-line {
  display: inline-block;
  margin-top: 10px;
  color: #cf173d;
  font-size: 14px;
}

.smart-archiv-feed-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 32px rgba(148, 163, 184, 0.12);
}

.smart-archiv-feed-card.has-action-need {
  border-color: rgba(239, 68, 68, 0.26);
  background:
    linear-gradient(90deg, rgba(254, 242, 242, 0.68), rgba(255, 255, 255, 0.98) 42%),
    rgba(255, 255, 255, 0.96);
}

.smart-archiv-feed-main {
  display: grid;
  gap: 8px;
}

.smart-archiv-feed-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.smart-archiv-feed-title-row strong {
  color: #07142f;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.smart-archiv-feed-title-row span {
  flex: 0 0 auto;
  color: #c2214f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.smart-archiv-feed-main h4 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 13px;
}

.smart-archiv-feed-main p {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
}

.smart-archiv-feed-main small {
  color: #64748b;
  font-size: 12px;
}

.smart-archiv-recommendation {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 22px;
  background: #f8fafc;
}

.smart-archiv-recommendation strong,
.smart-archiv-recommendation span {
  font-size: 12px;
  font-weight: 900;
}

.smart-archiv-recommendation p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.42;
}

.smart-archiv-recommendation b {
  color: #047857;
  font-size: 24px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.smart-archiv-recommendation.is-risk {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(254, 226, 226, 0.64);
}

.smart-archiv-recommendation.is-risk strong,
.smart-archiv-recommendation.is-risk p,
.smart-archiv-recommendation.is-risk b {
  color: #dc2626;
}

.smart-archiv-recommendation.is-ok strong,
.smart-archiv-recommendation.is-ok b {
  color: #047857;
}

.smart-archiv-card {
  display: grid;
  gap: 10px;
  min-height: 232px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(214, 42, 82, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
  box-shadow: 0 18px 34px rgba(148, 163, 184, 0.14);
}

.smart-archiv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.smart-archiv-file-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #8f173a, #e34873);
  box-shadow: 0 16px 30px rgba(214, 42, 82, 0.24);
}

.smart-archiv-card strong {
  color: #0f172a;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.smart-archiv-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.smart-archiv-card-meta {
  display: grid;
  gap: 4px;
}

.smart-archiv-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
}

.smart-archiv-editor-card {
  width: min(1040px, 96vw);
}

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

.smart-archiv-page .page-shell {
  max-width: none;
}

.smart-archiv-page .topbar {
  margin-bottom: 12px;
}

.smart-archiv-v2-workspace {
  align-items: stretch;
  margin-top: 0;
}

.smart-archiv-v2-sidebar {
  align-self: stretch;
}

.smart-archiv-v2-actions,
.smart-archiv-v2-upload {
  display: grid;
  gap: 9px;
}

.smart-archiv-v2-file {
  width: 100%;
}

.smart-archiv-v2-note {
  min-height: 86px;
  resize: vertical;
}

.smart-archiv-v2-main {
  min-height: calc(100vh - 170px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.smart-archiv-v2-head {
  align-items: center;
}

.smart-archiv-v2-view {
  min-height: 0;
}

.smart-archiv-v2-dashboard,
.smart-archiv-v2-email,
.smart-archiv-v2-doings,
.smart-archiv-v2-library {
  display: grid;
  gap: 16px;
  min-height: 100%;
}

.smart-archiv-v2-notices {
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
}

.smart-archiv-v2-notices strong {
  color: #1565c0;
  font-size: 13px;
}

.smart-archiv-v2-notices strong.is-risk {
  color: #b91c1c;
}

.smart-archiv-v2-feed {
  display: grid;
  gap: 12px;
  max-height: min(70vh, 820px);
  overflow: auto;
  padding-right: 8px;
}

.smart-archiv-v2-post {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(148, 163, 184, 0.12);
}

.smart-archiv-v2-post.has-action-need {
  border-color: rgba(239, 68, 68, 0.3);
  background:
    linear-gradient(90deg, rgba(254, 242, 242, 0.74), rgba(255, 255, 255, 0.98) 42%),
    rgba(255, 255, 255, 0.98);
}

.smart-archiv-v2-post-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.smart-archiv-v2-post-main strong {
  color: #07142f;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.smart-archiv-v2-post-main h4 {
  margin: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.smart-archiv-v2-post-main p,
.smart-archiv-v2-detail p {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.smart-archiv-v2-post-main small {
  color: #64748b;
  font-size: 12px;
}

.smart-archiv-v2-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.smart-archiv-v2-recommendation {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 20px;
  background: #f8fafc;
}

.smart-archiv-v2-recommendation strong,
.smart-archiv-v2-recommendation span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.smart-archiv-v2-recommendation p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.42;
}

.smart-archiv-v2-recommendation b {
  color: #047857;
  font: 900 24px "Space Grotesk", "Manrope", sans-serif;
}

.smart-archiv-v2-recommendation.is-risk {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(254, 226, 226, 0.64);
}

.smart-archiv-v2-recommendation.is-risk strong,
.smart-archiv-v2-recommendation.is-risk p,
.smart-archiv-v2-recommendation.is-risk b {
  color: #b91c1c;
}

.smart-archiv-v2-library-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 220px) auto minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
}

.smart-archiv-v2-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.smart-archiv-v2-library-body {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(260px, 360px) minmax(0, 1fr);
  gap: 14px;
  min-height: 560px;
}

.smart-archiv-v2-tree,
.smart-archiv-v2-doc-list,
.smart-archiv-v2-detail {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.1);
}

.smart-archiv-v2-tree button,
.smart-archiv-v2-doc-list button {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #334155;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.smart-archiv-v2-tree button.is-active,
.smart-archiv-v2-doc-list button.is-active {
  border-color: rgba(225, 29, 72, 0.38);
  color: #c2214f;
  background: #fff0f3;
}

.smart-archiv-v2-months {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 213, 225, 0.8);
}

.smart-archiv-v2-doc-list {
  max-height: 65vh;
  overflow: auto;
}

.smart-archiv-v2-doc-list h3,
.smart-archiv-v2-detail h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 16px;
}

.smart-archiv-v2-doc-list button span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.smart-archiv-v2-detail {
  gap: 10px;
}

.smart-archiv-v2-detail h4 {
  margin: 8px 0 0;
  color: #334155;
  font-size: 13px;
}

.smart-archiv-v2-doing {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
}

.smart-archiv-v2-doing strong {
  color: #0f172a;
  font-size: 15px;
}

.smart-archiv-v2-doing p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.smart-archiv-v2-doing small {
  color: #94a3b8;
}

@media (max-width: 980px) {
  .smart-archiv-form,
  .smart-archiv-editor-grid {
    grid-template-columns: 1fr;
  }

  .smart-archiv-span-2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .smart-archiv-summary-grid {
    grid-template-columns: 1fr;
  }
}

.pdf-preview-modal[hidden] {
  display: none;
}

.pdf-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.pdf-preview-dialog {
  width: min(1120px, calc(100vw - 54px));
  height: min(860px, calc(100vh - 54px));
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px;
  border: 1px solid rgba(214, 42, 82, 0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 228, 236, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.28);
}

.pdf-preview-dialog .modal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 14px;
}

.pdf-preview-dialog iframe {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 22px;
  background: #f8fafc;
}

body[data-pdf-busy] [data-pdf-merge],
body[data-pdf-busy] [data-pdf-clear],
body[data-pdf-busy] .modern-file-button {
  pointer-events: none;
  opacity: 0.7;
}

@media (max-width: 1800px) {
  .pdf-merger-list {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
  }
}

@media (max-width: 1500px) {
  .pdf-merger-list {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }
}

@media (max-width: 1180px) {
  .pdf-merger-list {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 920px) {
  .pdf-merger-list {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .pdf-merger-list {
    grid-template-columns: 1fr;
  }

  .pdf-merger-preview-tile,
  .pdf-merger-preview-tile iframe {
    min-height: 260px;
    height: 260px;
  }

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