:root {
  color-scheme: light dark;
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --ink: #182026;
  --muted: #63707d;
  --line: #d8dee6;
  --accent: #f26b21;
  --accent-2: #2e7d32;
  --feierabend-orange: #f26b21;
  --feierabend-ink: #1d1d1b;
  --kalkweiss: #f5f1e8;
  --warn: #b76b00;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(29, 29, 27, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151719;
    --surface: #202428;
    --ink: #f2f5f7;
    --muted: #a8b2bd;
    --line: #343b43;
    --accent: #ff8a3d;
    --accent-2: #78b66f;
    --warn: #f2b95f;
    --danger: #ff8a80;
    --shadow: 0 18px 42px rgba(0, 0, 0, .24);
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.skip-link {
  background: var(--feierabend-orange);
  color: var(--feierabend-ink);
  font-weight: 900;
  left: 12px;
  padding: 10px 14px;
  position: absolute;
  top: -48px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--feierabend-orange); outline-offset: 3px; }
.shell {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, #fffaf0) 0%, var(--bg) 42%),
    var(--bg);
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  align-self: start;
  background: color-mix(in srgb, var(--surface) 96%, #fffaf0);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100vh;
  padding: 20px;
  position: sticky;
  top: 0;
}
.brand {
  background: color-mix(in srgb, var(--surface) 82%, #fffaf0);
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--feierabend-orange));
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
}
.brand-logo {
  background: #fffaf0;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: calc(var(--radius) - 2px);
  height: 68px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 6px;
  width: 100%;
}
.brand-copy { display: grid; gap: 2px; min-width: 0; }
.brand-copy strong { font-size: 1.02rem; line-height: 1.1; overflow-wrap: anywhere; }
.brand small, .eyebrow { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0; }
.brand-status {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.brand-status span {
  background: color-mix(in srgb, var(--feierabend-orange) 9%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--feierabend-orange) 24%, var(--line));
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  min-height: 28px;
  padding: 5px 3px;
  text-align: center;
  text-transform: uppercase;
}
.tenant-label { text-transform: none; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  gap: 10px;
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 58px;
  padding: 8px;
}
.sidebar nav a:hover,
.sidebar nav a.is-active {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  color: var(--ink);
}
.sidebar nav a.is-active {
  box-shadow: inset 4px 0 0 var(--feierabend-orange);
}
.nav-icon,
.nav-mark {
  background: #fffaf0;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--feierabend-orange));
  border-radius: calc(var(--radius) - 2px);
  height: 40px;
  object-fit: contain;
  padding: 3px;
  width: 40px;
}
.nav-mark {
  align-items: center;
  color: var(--feierabend-orange);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
}
.nav-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.nav-text strong {
  color: inherit;
  font-size: .95rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.nav-text small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.sidebar nav a.is-active .nav-text small,
.sidebar nav a:hover .nav-text small {
  color: color-mix(in srgb, var(--ink) 76%, var(--muted));
}
.main { min-width: 0; padding: 24px; }
.topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
}
.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.topbar-status {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.25;
  max-width: 220px;
}
h1, h2, p { margin-top: 0; }
h1 { font-size: 1.8rem; margin-bottom: 0; }
h2 { font-size: 1.15rem; }
.button { border: 1px solid var(--line); border-radius: var(--radius); min-height: 42px; padding: 9px 14px; background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.button.primary { border-color: var(--feierabend-orange); background: var(--feierabend-orange); color: var(--feierabend-ink); font-weight: 900; }
.button.secondary { border-color: var(--accent-2); color: var(--accent-2); }
.button.ghost { background: transparent; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.text-link { color: var(--accent-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; min-height: 94px; }
.metric span { color: var(--muted); }
.metric strong { font-size: 2rem; }
.persona-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, #fffaf0) 0%, var(--surface) 62%),
    var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--feierabend-orange);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(29, 29, 27, .06);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  margin-bottom: 16px;
  padding: 20px;
}
.persona-hero h2 { font-size: 1.45rem; margin-bottom: 8px; }
.persona-heading { align-items: flex-start; display: flex; gap: 14px; min-width: 0; }
.persona-icon {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex: 0 0 72px;
  height: 72px;
  background: #fffaf0;
  object-fit: contain;
  width: 72px;
}
.persona-promise { color: var(--ink); font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.workspace-answer { color: var(--muted); font-weight: 700; margin-bottom: 0; }
.persona-actions { align-content: start; display: grid; gap: 10px; justify-items: start; }
.persona-actions small { color: var(--muted); line-height: 1.35; }
.feierabend-cockpit {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, var(--feierabend-orange)) 0%, var(--surface) 58%),
    var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--feierabend-orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 1.1fr) minmax(240px, 1fr) minmax(220px, .82fr);
  margin-bottom: 18px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}
.cockpit-brand-strip {
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  display: flex;
  gap: 14px;
  grid-column: 1 / -1;
  min-width: 0;
  padding-bottom: 14px;
}
.cockpit-brand-strip img {
  aspect-ratio: 1200 / 311;
  background: #fffaf0;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: calc(var(--radius) - 2px);
  height: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
  padding: 4px;
  width: 220px;
}
.cockpit-brand-strip div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.cockpit-brand-strip span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}
.cockpit-brand-strip strong {
  font-size: 1.08rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.feierabend-cockpit::before {
  background: url("/static/brand/feierabend-cloud-ui-logo.png") right 18px top 18px / 360px auto no-repeat;
  content: "";
  inset: 0;
  opacity: .045;
  pointer-events: none;
  position: absolute;
}
.feierabend-cockpit > * { position: relative; }
.feierabend-cockpit h2 { font-size: 1.65rem; line-height: 1.1; margin-bottom: 8px; }
.cockpit-status p { color: var(--muted); font-weight: 700; margin-bottom: 0; }
.cockpit-state-mark {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  margin-bottom: 10px;
  min-height: 30px;
}
.cockpit-state-mark span {
  background: var(--feierabend-orange);
  border: 3px solid color-mix(in srgb, var(--feierabend-orange) 22%, var(--surface));
  border-radius: 50%;
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}
.cockpit-state-mark strong {
  color: var(--ink);
  font-size: .88rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cockpit-action .cockpit-state-mark span { background: var(--danger); }
.cockpit-watch .cockpit-state-mark span { background: var(--warn); }
.cockpit-reason-stack {
  display: grid;
  gap: 8px;
}
.cockpit-reasons { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cockpit-reasons li {
  align-items: start;
  background: color-mix(in srgb, var(--feierabend-orange) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--feierabend-orange) 32%, var(--line));
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  grid-template-columns: 12px minmax(0, 1fr);
  min-height: 44px;
  padding: 10px 11px;
}
.cockpit-reasons li::before {
  background: var(--feierabend-orange);
  border-radius: 50%;
  content: "";
  height: 10px;
  margin-top: 6px;
  width: 10px;
}
.cockpit-next {
  background: var(--feierabend-ink);
  border-radius: var(--radius);
  color: #fffaf0;
  display: grid;
  gap: 8px;
  padding: 16px;
}
.cockpit-next span { color: #f7c9aa; font-size: .82rem; font-weight: 900; text-transform: uppercase; }
.cockpit-next strong { font-size: 1.18rem; line-height: 1.18; }
.cockpit-next p { color: #e8ded0; margin-bottom: 4px; }
.cockpit-next .button { width: 100%; }
.cockpit-proof-rail {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.cockpit-proof-rail li {
  background: color-mix(in srgb, var(--bg) 86%, var(--surface));
  border: 1px solid var(--line);
  border-top: 4px solid var(--feierabend-orange);
  border-radius: var(--radius);
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 12px;
}
.cockpit-proof-rail span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.cockpit-proof-rail strong {
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.cockpit-evidence {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.cockpit-evidence div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 74px;
  padding: 12px;
}
.cockpit-evidence dt { color: var(--muted); font-size: .82rem; font-weight: 900; margin-bottom: 4px; text-transform: uppercase; }
.cockpit-evidence dd { margin: 0; overflow-wrap: anywhere; }
.cockpit-action { border-left-color: var(--danger); }
.cockpit-watch { border-left-color: var(--warn); }
.cockpit-ok { border-left-color: var(--feierabend-orange); }
.workspace-focus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.workspace-focus article { align-items: center; background: color-mix(in srgb, var(--feierabend-orange) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--feierabend-orange) 42%, var(--line)); border-radius: var(--radius); display: flex; gap: 10px; padding: 12px; min-height: 58px; }
.workspace-focus span { align-items: center; background: var(--feierabend-orange); border-radius: 999px; color: var(--feierabend-ink); display: inline-flex; flex: 0 0 auto; font-weight: 900; height: 28px; justify-content: center; width: 28px; }
.workspace-focus strong { line-height: 1.25; }
.workband, .auth-panel, .review-panel, .voice-primary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: .85rem; }
.process-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.process-strip span { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; background: color-mix(in srgb, var(--accent-2) 8%, transparent); }
.queue-pill { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; color: var(--muted); background: var(--bg); font-weight: 700; }
.fact-grid, .compact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact-grid div, .compact-grid > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.fact-grid dt { color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.fact-grid dd { margin: 0; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin-bottom: 8px; }
.cost-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.cost-card,
.cost-summary {
  background: color-mix(in srgb, var(--bg) 86%, var(--surface));
  border: 1px solid var(--line);
  border-left: 5px solid var(--feierabend-orange);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}
.cost-level-action { border-left-color: var(--danger); }
.cost-level-watch { border-left-color: var(--warn); }
.cost-level-ok { border-left-color: var(--feierabend-orange); }
.billing-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.billing-card {
  background: color-mix(in srgb, var(--bg) 84%, var(--surface));
  border: 1px solid var(--line);
  border-left: 5px solid var(--feierabend-orange);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}
.document-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.document-card {
  background: color-mix(in srgb, var(--bg) 88%, var(--surface));
  border: 1px solid var(--line);
  border-left: 5px solid var(--feierabend-orange);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  min-height: 156px;
  min-width: 0;
  padding: 14px;
}
.document-card span,
.document-card small {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.document-card h3 {
  font-size: 1.05rem;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.billing-level-action { border-left-color: var(--danger); }
.billing-level-watch { border-left-color: var(--warn); }
.billing-level-ok { border-left-color: var(--feierabend-orange); }
.billing-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.billing-card-head span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}
.billing-card h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}
.billing-card p {
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.billing-card-head > strong {
  color: var(--feierabend-orange);
  font-size: 1.12rem;
  text-align: right;
  white-space: nowrap;
}
.billing-inline-form {
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 12px;
}
.billing-inline-form label {
  color: var(--muted);
  display: grid;
  gap: 5px;
  font-size: .82rem;
  font-weight: 850;
}
.billing-inline-form .compact-button {
  align-self: end;
}
.billing-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}
.billing-form h3 { margin-bottom: 0; }
.billing-form label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.billing-form input,
.billing-form select,
.billing-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 11px;
  width: 100%;
}
.cost-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.cost-card-head span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}
.cost-card h3,
.cost-summary h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.cost-card-head > strong {
  color: var(--feierabend-orange);
  font-size: 1.15rem;
  white-space: nowrap;
}
.cost-mini-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.cost-card .cost-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cost-mini-grid div,
.cost-category-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 10px;
}
.cost-mini-grid dt,
.cost-category-grid span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.cost-mini-grid dd {
  font-weight: 850;
  margin: 0;
  overflow-wrap: anywhere;
}
.cost-category-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}
.cost-category-grid article {
  display: grid;
  gap: 4px;
}
.cost-category-grid strong { overflow-wrap: anywhere; }
.cost-category-grid small { color: var(--muted); line-height: 1.25; }
.cost-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}
.cost-form label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.cost-form input,
.cost-form select,
.cost-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 11px;
  width: 100%;
}
.cost-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.schedule-overview table {
  table-layout: fixed;
}
.schedule-overview th,
.schedule-overview td {
  overflow-wrap: anywhere;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}
.schedule-overview th:nth-child(1),
.schedule-overview td:nth-child(1) { width: 8%; }
.schedule-overview th:nth-child(2),
.schedule-overview td:nth-child(2) { width: 8%; }
.schedule-overview th:nth-child(3),
.schedule-overview td:nth-child(3) { width: 16%; }
.schedule-overview th:nth-child(4),
.schedule-overview td:nth-child(4) { width: 14%; }
.schedule-overview th:nth-child(5),
.schedule-overview td:nth-child(5) { width: 10%; }
.schedule-overview th:nth-child(6),
.schedule-overview td:nth-child(6) { width: 10%; }
.schedule-overview th:nth-child(7),
.schedule-overview td:nth-child(7) { width: 14%; }
.schedule-overview th:nth-child(8),
.schedule-overview td:nth-child(8) { width: 20%; }
.assignment-level-action { border-left: 5px solid var(--danger); }
.assignment-level-watch { border-left: 5px solid var(--warn); }
.assignment-level-ok { border-left: 5px solid var(--feierabend-orange); }
.inline-status-form {
  display: grid;
  gap: 7px;
  min-width: 180px;
}
.inline-status-form select,
.inline-status-form input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 38px;
  min-width: 0;
  padding: 8px 9px;
  width: 100%;
}
.compact-button {
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
}
.assignment-card-list {
  display: grid;
  gap: 12px;
}
.assignment-card {
  align-items: start;
  background: color-mix(in srgb, var(--bg) 86%, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  padding: 14px;
}
.assignment-card span,
.assignment-card small {
  color: var(--muted);
  font-weight: 800;
}
.assignment-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.assignment-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}
.assignment-form h3 { margin-bottom: 0; }
.assignment-form label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.assignment-form input,
.assignment-form select,
.assignment-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 11px;
  width: 100%;
}
.document-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}
.document-form h3 { margin-bottom: 0; }
.document-form label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.document-form input,
.document-form select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 11px;
  width: 100%;
}
.document-table {
  table-layout: fixed;
}
.document-table th,
.document-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}
.document-table th:nth-child(1),
.document-table td:nth-child(1) { width: 30%; }
.document-table th:nth-child(2),
.document-table td:nth-child(2) { width: 14%; }
.document-table th:nth-child(3),
.document-table td:nth-child(3) { width: 16%; }
.document-table th:nth-child(4),
.document-table td:nth-child(4) { width: 28%; }
.document-table th:nth-child(5),
.document-table td:nth-child(5) { width: 12%; }
.auth-panel { max-width: 480px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions.right { justify-content: flex-end; }
.voice-layout { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.voice-primary { display: grid; gap: 20px; position: sticky; top: 18px; }
.prompt-box { border-left: 4px solid var(--accent); padding: 10px 12px; background: color-mix(in srgb, var(--accent) 9%, transparent); }
.prompt-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.prompt-box p { margin: 4px 0 0; font-size: 1.3rem; line-height: 1.35; }
.record-button { width: min(100%, 340px); aspect-ratio: 1 / 1; border-radius: 50%; border: 0; background: var(--danger); color: white; display: grid; place-items: center; justify-self: center; cursor: pointer; box-shadow: 0 18px 42px rgba(0, 0, 0, .18); }
.record-button[aria-pressed="true"] { background: var(--warn); }
.record-dot { width: 48px; height: 48px; border-radius: 50%; background: currentColor; opacity: .24; display: block; }
#recordLabel { font-size: 1.25rem; font-weight: 800; }
.status-line { color: var(--muted); min-height: 24px; }
.review-panel label { display: grid; gap: 6px; margin-bottom: 12px; color: var(--muted); }
.review-panel input, .review-panel select, .review-panel textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); padding: 10px 11px; min-height: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.provider-body {
  --bg: #14191e;
  --surface: #1d2329;
  --line: #38434c;
  --ink: #eef3f5;
  --muted: #b8c3cc;
  background: #101418;
  color: var(--ink);
}
.provider-shell { margin: 0 auto; max-width: 1180px; padding: 28px; }
.provider-topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.provider-topbar p { color: #b8c3cc; margin-bottom: 0; }
.provider-warning {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--feierabend-orange);
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: 18px;
}
.provider-warning p { color: #d6dee4; margin-bottom: 0; }
.provider-body .metric-card,
.provider-body .workband,
.provider-control {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.provider-body .metric-card p,
.provider-body .status-line,
.provider-body td,
.provider-body th,
.provider-body li,
.provider-body .provider-control p { color: var(--muted); }
.provider-body .metric-value,
.provider-body h2,
.provider-body h3,
.provider-body strong { color: var(--ink); }
.provider-body table { table-layout: fixed; width: 100%; }
.provider-body table tr { border-color: var(--line); }
.provider-body td,
.provider-body th { overflow-wrap: anywhere; white-space: normal; word-break: break-word; }
.provider-audit-table th:nth-child(1),
.provider-audit-table td:nth-child(1) { width: 42%; }
.provider-audit-table th:nth-child(2),
.provider-audit-table td:nth-child(2) { width: 24%; }
.provider-audit-table th:nth-child(3),
.provider-audit-table td:nth-child(3) { width: 20%; }
.provider-audit-table th:nth-child(4),
.provider-audit-table td:nth-child(4) { width: 14%; }
.provider-control-grid { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.provider-control {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 14px;
}
.provider-control span {
  align-self: start;
  border-radius: 999px;
  color: var(--feierabend-ink);
  font-size: .72rem;
  font-weight: 900;
  justify-self: start;
  padding: 4px 9px;
  text-transform: uppercase;
}
.provider-ready span { background: #8bd17c; }
.provider-watch span { background: #f2b95f; }
.provider-blocked span { background: #ff8a80; }
.provider-control strong { line-height: 1.2; }
.provider-control p { color: var(--muted); margin-bottom: 0; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; top: auto; z-index: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar { min-height: auto; }
  .sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-grid, .voice-layout, .fact-grid, .compact-grid, .persona-hero, .workspace-focus, .feierabend-cockpit, .cockpit-proof-rail, .cockpit-evidence, .provider-control-grid, .cost-card-grid, .cost-mini-grid, .cost-category-grid, .billing-card-grid, .document-card-grid, .billing-inline-form, .assignment-card { grid-template-columns: 1fr; }
  .voice-primary { position: static; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .main { padding: 14px; }
  .topbar, .section-head { align-items: stretch; flex-direction: column; }
  .topbar-actions { align-items: stretch; justify-content: stretch; }
  .topbar-actions .button,
  .topbar-actions form { width: 100%; }
  .sidebar { padding: 12px; gap: 12px; }
  .brand-logo { height: 58px; object-fit: contain; width: 100%; }
  .brand small { display: none; }
  .brand-status { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar nav a { grid-template-columns: 34px minmax(0, 1fr); min-height: 58px; }
  .nav-icon,
  .nav-mark { height: 34px; width: 34px; }
  .nav-text small { font-size: .7rem; }
  .metric-grid, .form-grid, .process-strip, .fact-grid, .compact-grid, .cost-form-grid, .document-form-grid { grid-template-columns: 1fr; }
  .billing-card-head { align-items: stretch; flex-direction: column; }
  .billing-card-head > strong { text-align: left; white-space: normal; }
  .record-button { width: min(82vw, 300px); }
  .cockpit-brand-strip { align-items: flex-start; flex-direction: column; }
  .cockpit-brand-strip img { height: auto; max-width: 100%; object-fit: contain; width: 100%; }
  .provider-audit-table,
  .provider-audit-table tbody,
  .provider-audit-table tr,
  .provider-audit-table td { display: block; width: 100%; }
  .provider-audit-table td:nth-child(1),
  .provider-audit-table td:nth-child(2),
  .provider-audit-table td:nth-child(3),
  .provider-audit-table td:nth-child(4) { width: 100%; }
  .provider-audit-table thead { display: none; }
  .provider-audit-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 10px;
  }
  .provider-audit-table td {
    border-bottom: 0;
    padding: 5px 0;
  }
  .provider-audit-table td::before {
    color: var(--muted);
    content: attr(data-label);
    display: block;
    font-size: .7rem;
    font-weight: 900;
    margin-bottom: 2px;
    text-transform: uppercase;
  }
  .document-overview .table-wrap { overflow-x: visible; }
  .document-table,
  .document-table tbody,
  .document-table tr,
  .document-table td { display: block; width: 100%; }
  .document-table thead { display: none; }
  .document-table tr {
    background: color-mix(in srgb, var(--bg) 86%, var(--surface));
    border: 1px solid var(--line);
    border-left: 5px solid var(--feierabend-orange);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 10px;
  }
  .document-table td:nth-child(1),
  .document-table td:nth-child(2),
  .document-table td:nth-child(3),
  .document-table td:nth-child(4),
  .document-table td:nth-child(5) { width: 100%; }
  .document-table td {
    border-bottom: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
    padding: 8px 0;
    word-break: normal;
  }
  .document-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: .7rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
  }
  .schedule-overview .table-wrap { overflow-x: visible; }
  .schedule-overview table,
  .schedule-overview tbody,
  .schedule-overview tr,
  .schedule-overview td { display: block; width: 100%; }
  .schedule-overview thead { display: none; }
  .schedule-overview tr {
    background: color-mix(in srgb, var(--bg) 86%, var(--surface));
    border: 1px solid var(--line);
    border-left-width: 5px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 10px;
  }
  .schedule-overview tr.assignment-level-action { border-left-color: var(--danger); }
  .schedule-overview tr.assignment-level-watch { border-left-color: var(--warn); }
  .schedule-overview tr.assignment-level-ok { border-left-color: var(--feierabend-orange); }
  .schedule-overview td:nth-child(1),
  .schedule-overview td:nth-child(2),
  .schedule-overview td:nth-child(3),
  .schedule-overview td:nth-child(4),
  .schedule-overview td:nth-child(5),
  .schedule-overview td:nth-child(6),
  .schedule-overview td:nth-child(7),
  .schedule-overview td:nth-child(8) { width: 100%; }
  .schedule-overview td {
    border-bottom: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
    padding: 8px 0;
    word-break: normal;
  }
  .schedule-overview td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: .7rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
  }
  .schedule-overview .inline-status-form { min-width: 0; }
}

.login-form {
  display: grid;
  gap: 14px;
  width: min(100%, 320px);
}

.app-name {
  color: var(--muted);
  font-weight: 700;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-weight: 700;
}

.login-form input {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

.form-error {
  color: #b42318;
  font-weight: 700;
}

.public-body {
  background: #f8f5ee;
  color: #1f2728;
}

.public-nav {
  align-items: center;
  background: rgba(248, 245, 238, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 39, 40, .14);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px clamp(16px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.public-wordmark {
  align-items: center;
  display: grid;
  gap: 2px;
  justify-items: start;
  min-width: 0;
}

.public-logo-img {
  border: 1px solid rgba(31, 39, 40, .12);
  border-radius: var(--radius);
  height: 48px;
  object-fit: contain;
  object-position: center;
  padding: 3px;
  width: min(292px, 54vw);
}

.wordmark-text {
  color: #111718;
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1;
}

.wordmark-text span {
  color: var(--feierabend-orange);
}

.public-wordmark small {
  color: #4d5a5c;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-nav nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.public-nav nav a:not(.button) {
  color: #304043;
  font-weight: 800;
  padding: 8px 10px;
}

.public-login-link {
  min-height: 40px;
}

.public-hero {
  background:
    linear-gradient(90deg, rgba(248, 245, 238, .99) 0%, rgba(248, 245, 238, .97) 62%, rgba(255, 250, 240, .92) 100%),
    #f8f5ee;
  color: #1f2728;
  isolation: isolate;
  min-height: clamp(500px, 62vh, 650px);
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(42px, 6vw, 70px) clamp(18px, 6vw, 88px);
}

.public-hero-content {
  color: #1f2728;
  max-width: 800px;
  min-width: 0;
}

.login-logo {
  background: #fffaf0;
  border: 1px solid rgba(31, 39, 40, .14);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(31, 39, 40, .10);
  display: block;
  height: auto;
  margin-bottom: 18px;
  max-width: min(560px, 100%);
  padding: 4px;
  width: 100%;
}

.login-logo {
  max-width: min(540px, 100%);
}

.public-kicker {
  color: var(--feierabend-orange);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.public-hero h1,
.public-simple-hero h1 {
  font-size: 4.5rem;
  line-height: 1.02;
  margin: 0 0 14px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.public-promise {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.16;
  margin-bottom: 14px;
}

.public-copy {
  color: inherit;
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 620px;
}

.public-lage-panel {
  background: #fffaf0;
  border: 1px solid rgba(31, 39, 40, .14);
  border-left: 6px solid var(--feierabend-orange);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(31, 39, 40, .12);
  color: #1f2728;
  display: grid;
  gap: 14px;
  margin-top: 22px;
  max-width: 760px;
  padding: 18px;
}

.public-lage-panel-compact {
  margin-top: 20px;
}

.public-lage-head {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.public-lage-head .public-kicker {
  color: var(--feierabend-orange);
  margin-bottom: 3px;
}

.public-lage-head strong {
  display: block;
  font-size: 1.14rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.public-lage-dot {
  background: var(--feierabend-orange);
  border: 4px solid rgba(242, 107, 33, .16);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

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

.public-lage-grid div {
  background: rgba(242, 107, 33, .06);
  border: 1px solid rgba(31, 39, 40, .10);
  border-radius: var(--radius);
  min-height: 98px;
  padding: 12px;
}

.public-lage-grid dt {
  color: var(--feierabend-orange);
  font-size: .76rem;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.public-lage-grid dd {
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}

.public-lage-grid span {
  color: #4d5a5c;
  display: block;
  font-size: .92rem;
  line-height: 1.34;
}

.public-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.public-primary {
  background: var(--feierabend-orange);
  border-color: var(--feierabend-orange);
  color: var(--feierabend-ink);
  font-weight: 900;
}

.public-secondary {
  background: #fffaf0;
  border-color: rgba(31, 39, 40, .22);
  color: #1f2728;
  font-weight: 900;
}

.public-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.public-proof-list-compact {
  margin-top: 16px;
}

.public-proof-list li {
  background: rgba(255, 250, 240, .82);
  border: 1px solid rgba(31, 39, 40, .14);
  border-radius: var(--radius);
  font-weight: 800;
  padding: 9px 12px;
}

.public-band {
  padding: clamp(38px, 6vw, 64px) clamp(18px, 6vw, 88px);
}

.public-intro,
.start-band {
  background: #f8f5ee;
}

.public-compact-section {
  border-top: 1px solid rgba(31, 39, 40, .12);
}

.persona-public-band {
  background: #fffaf0;
}

.trust-band {
  background: #1f2728;
  color: #fffaf0;
}

.public-section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.public-section-head h2 {
  font-size: 2.35rem;
  line-height: 1.12;
  margin-bottom: 0;
}

.public-outcome-grid,
.trust-grid,
.persona-public-grid,
.start-steps {
  display: grid;
  gap: 14px;
}

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

.public-outcome-grid-compact article {
  min-height: 106px;
}

.public-outcome-grid article,
.trust-grid article,
.persona-public-grid article,
.start-steps li {
  border: 1px solid rgba(31, 39, 40, .16);
  border-radius: var(--radius);
  min-height: 126px;
  padding: 18px;
}

.public-outcome-grid article,
.persona-public-grid article,
.start-steps li {
  background: #fffaf0;
}

.public-outcome-grid strong,
.trust-grid strong,
.persona-public-grid strong,
.start-steps strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.public-outcome-grid p,
.trust-grid p,
.start-steps span,
.persona-public-grid span {
  color: #4d5a5c;
  line-height: 1.45;
  margin: 0;
}

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

.trust-band-compact .public-actions {
  margin-top: 20px;
}

.trust-grid-compact article {
  min-height: 118px;
}

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

.trust-grid article {
  background: rgba(255, 250, 240, .08);
  border-color: rgba(255, 250, 240, .2);
}

.trust-grid p {
  color: #d7dedc;
}

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

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

.persona-public-grid article {
  align-items: center;
  display: flex;
  gap: 14px;
  min-height: 104px;
}

.persona-public-grid img {
  border: 1px solid rgba(31, 39, 40, .14);
  border-radius: var(--radius);
  height: 62px;
  object-fit: cover;
  width: 62px;
}

.start-steps {
  counter-reset: start-step;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.start-steps li {
  counter-increment: start-step;
  position: relative;
}

.start-steps li::before {
  align-items: center;
  background: var(--feierabend-orange);
  border-radius: 999px;
  color: var(--feierabend-ink);
  content: counter(start-step);
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  margin-bottom: 16px;
  width: 32px;
}

.public-simple-hero {
  background: #26302b;
  color: #fffaf0;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 88px);
}

.public-simple-hero > div {
  max-width: 840px;
}

.login-shell {
  align-items: start;
  display: grid;
  gap: clamp(24px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  min-height: calc(100vh - 132px);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 6vw, 88px);
}

.login-copy {
  max-width: 680px;
  min-width: 0;
}

.login-copy h1 {
  font-size: 4.2rem;
  line-height: 1;
  margin-bottom: 16px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.login-steps {
  counter-reset: login-step;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.login-steps li {
  background: #fffaf0;
  border: 1px solid rgba(31, 39, 40, .14);
  border-radius: var(--radius);
  counter-increment: login-step;
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 14px;
}

.login-steps li::before {
  align-items: center;
  background: var(--feierabend-orange);
  border-radius: 999px;
  color: var(--feierabend-ink);
  content: counter(login-step);
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.login-steps strong {
  line-height: 1.2;
}

.login-steps span {
  color: #4d5a5c;
  font-size: .94rem;
  line-height: 1.35;
}

.login-proof li {
  background: rgba(242, 107, 33, .1);
  border-color: rgba(242, 107, 33, .34);
  color: #1f2728;
}

.public-auth-panel {
  background: #fffaf0;
  border-color: rgba(31, 39, 40, .14);
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

.public-auth-panel h2 {
  font-size: 1.45rem;
}

.public-auth-panel .actions {
  display: grid;
  gap: 12px;
}

.public-auth-panel .button,
.public-auth-panel form {
  width: 100%;
}

.public-auth-panel .login-form {
  width: 100%;
}

.public-auth-panel .login-form label {
  color: #304043;
}

.public-auth-panel .login-form input {
  background: #f8f5ee;
  border-color: rgba(31, 39, 40, .26);
  color: #1f2728;
  min-height: 46px;
}

.login-note {
  color: #4d5a5c;
  font-size: .95rem;
  line-height: 1.45;
  margin: 16px 0 0;
}

.betrieb-choice-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.betrieb-choice-list form {
  margin: 0;
  width: 100%;
}

.betrieb-choice-button {
  background: #f8f5ee;
  border: 1px solid rgba(31, 39, 40, .2);
  border-left: 4px solid var(--feierabend-orange);
  border-radius: var(--radius);
  color: #1f2728;
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.betrieb-choice-button:hover,
.betrieb-choice-button:focus-visible {
  border-color: var(--feierabend-orange);
  box-shadow: 0 12px 28px rgba(31, 39, 40, .11);
  outline: 2px solid transparent;
}

.betrieb-choice-button strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.betrieb-choice-button span {
  color: #4d5a5c;
  font-size: .94rem;
  line-height: 1.35;
}

.public-footer {
  align-items: center;
  background: #111718;
  color: #fffaf0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  min-height: 60px;
  padding: 16px clamp(18px, 6vw, 88px);
}

.public-footer span {
  color: #d7dedc;
}

@media (prefers-color-scheme: dark) {
  .public-body {
    background: #151719;
    color: #f2f5f7;
  }

  .public-nav {
    background: rgba(21, 23, 25, .96);
    border-bottom-color: rgba(242, 245, 247, .13);
  }

  .wordmark-text,
  .public-nav nav a:not(.button),
  .public-secondary,
  .login-proof li,
  .public-outcome-grid p,
  .start-steps span,
  .persona-public-grid span,
  .login-steps span,
  .public-auth-panel .login-form label,
  .public-auth-panel .login-form input,
  .login-note {
    color: #f2f5f7;
  }

  .public-wordmark small {
    color: #a8b2bd;
  }

  .public-logo-img,
  .login-logo {
    background: #fffaf0;
    border-color: rgba(242, 245, 247, .16);
  }

  .public-intro,
  .start-band {
    background: #151719;
  }

  .public-compact-section {
    border-top-color: rgba(242, 245, 247, .12);
  }

  .persona-public-band,
  .public-outcome-grid article,
  .login-steps li,
  .persona-public-grid article,
  .start-steps li,
  .public-auth-panel,
  .public-secondary {
    background: #202428;
  }

  .public-outcome-grid article,
  .login-steps li,
  .persona-public-grid article,
  .start-steps li,
  .public-auth-panel {
    border-color: rgba(242, 245, 247, .14);
  }

  .public-auth-panel .login-form input {
    background: #151719;
    border-color: rgba(242, 245, 247, .22);
  }

  .betrieb-choice-button {
    background: #151719;
    border-color: rgba(242, 245, 247, .18);
    color: #f2f5f7;
  }

  .betrieb-choice-button span {
    color: #a8b2bd;
  }

  .login-proof li {
    background: rgba(242, 107, 33, .16);
  }

  .public-lage-panel {
    background: rgba(32, 36, 40, .96);
    border-color: rgba(242, 245, 247, .14);
    box-shadow: 0 20px 46px rgba(0, 0, 0, .24);
    color: #f2f5f7;
  }

  .public-lage-grid div {
    background: rgba(255, 250, 240, .07);
    border-color: rgba(242, 245, 247, .14);
  }

  .public-lage-grid span {
    color: #cbd3dc;
  }

  .public-lage-grid dd,
  .public-lage-head strong {
    color: #f2f5f7;
  }

  .public-hero {
    background-color: #151719;
    background:
      linear-gradient(90deg, rgba(21, 23, 25, .96) 0%, rgba(21, 23, 25, .91) 58%, rgba(21, 23, 25, .76) 100%),
      #151719;
    color: #f2f5f7;
  }

  .public-hero-content {
    color: #f2f5f7;
  }
}

.check-layout {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.check-summary,
.check-form,
.check-result {
  border-top: 4px solid var(--feierabend-orange);
}

.check-form .button.primary {
  border-color: var(--feierabend-orange);
  background: var(--feierabend-orange);
  color: var(--feierabend-ink);
  font-weight: 800;
}

.choice-set {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.choice-set legend,
.field-stack span {
  font-weight: 800;
  margin-bottom: 8px;
}

.choice-card {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg);
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--feierabend-orange);
  background: color-mix(in srgb, var(--feierabend-orange) 12%, transparent);
}

.choice-card input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.field-stack {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field-stack input,
.field-stack textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 11px;
  background: var(--bg);
  color: var(--ink);
}

.form-message {
  min-height: 24px;
  color: var(--muted);
  margin: 10px 0 0;
  font-weight: 700;
}

.form-message.success {
  color: var(--accent);
}

.team-form {
  display: grid;
  gap: 14px;
}

.team-form label {
  color: var(--muted);
  display: grid;
  font-weight: 700;
  gap: 6px;
}

.team-form input[type="email"],
.team-form input[type="text"],
.team-form input:not([type]) {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 11px;
  width: 100%;
}

.role-checks {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 14px;
}

.role-checks legend {
  color: var(--muted);
  font-weight: 800;
  padding: 0 6px;
}

.role-checks label,
.inline-check {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 10px 11px;
}

.role-checks input,
.inline-check input {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

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

.team-member {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

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

.team-member-head div {
  display: grid;
  gap: 4px;
}

.team-member-head span {
  color: var(--muted);
}

.team-form.compact {
  gap: 12px;
}

.recommendation-strip,
.recommendation-list {
  display: grid;
  gap: 10px;
}

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

.recommendation-strip article,
.recommendation-item,
.empty-guidance {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: color-mix(in srgb, var(--feierabend-orange) 8%, var(--surface));
}

.recommendation-strip article,
.recommendation-item {
  align-items: start;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.recommendation-strip span,
.recommendation-item span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--feierabend-orange);
  color: var(--feierabend-ink);
  font-weight: 900;
}

.recommendation-strip p,
.recommendation-item p,
.recommendation-item small,
.empty-guidance p {
  color: var(--muted);
  margin: 5px 0 0;
}

.recommendation-strip p,
.recommendation-item p,
.recommendation-item small {
  grid-column: 1 / -1;
}

.recommendation-item small {
  display: block;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .public-hero h1,
  .public-simple-hero h1,
  .login-copy h1 {
    font-size: 3.6rem;
  }

  .public-promise {
    font-size: 1.55rem;
  }

  .public-section-head h2 {
    font-size: 1.95rem;
  }

  .check-layout,
  .recommendation-strip {
    grid-template-columns: 1fr;
  }

  .public-outcome-grid,
  .public-lage-grid,
  .trust-grid,
  .trust-grid.three,
  .persona-public-grid,
  .persona-public-grid.compact,
  .start-steps,
  .login-steps,
  .login-shell,
  .role-checks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .public-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-logo-img {
    height: 42px;
    width: min(270px, 100%);
  }

  .public-nav nav {
    justify-content: flex-start;
    width: 100%;
  }

  .public-login-link {
    flex: 1 1 160px;
  }

  .public-hero {
    align-items: center;
    background:
      linear-gradient(180deg, rgba(248, 245, 238, .96) 0%, rgba(248, 245, 238, .99) 100%),
      #f8f5ee;
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .login-logo {
    margin-bottom: 14px;
  }

  .public-hero h1,
  .public-simple-hero h1,
  .login-copy h1 {
    font-size: 2.42rem;
  }

  .public-promise {
    font-size: 1.28rem;
  }

  .public-section-head h2 {
    font-size: 1.55rem;
  }

  .public-proof-list,
  .public-lage-grid,
  .login-steps,
  .public-actions {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .public-actions .button,
  .public-lage-grid div,
  .login-steps li,
  .public-proof-list li {
    width: 100%;
  }

  .persona-public-grid article {
    min-height: 90px;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 700px) {
  .public-hero {
    background-color: #151719;
    background:
      linear-gradient(180deg, rgba(21, 23, 25, .72) 0%, rgba(21, 23, 25, .9) 38%, rgba(21, 23, 25, .99) 72%),
      #151719;
  }

  .public-hero-content {
    color: #f2f5f7;
  }
}
