:root {
  --ink: #202124;
  --ink-soft: #6f6764;
  --accent: #c34235;
  --accent-strong: #9f2d23;
  --accent-soft: #f4dfda;
  --surface: #f3efec;
  --card: #ffffff;
  --line: rgba(91, 83, 78, 0.18);
  --ok: #2f7a49;
  --warn: #b67b18;
  --info: #7b7774;
  --danger: #c34235;
  --steel: #c2beb9;
  --shadow: 0 22px 48px rgba(23, 21, 20, 0.12);
  --hero-start: #212224;
  --hero-end: #4d4f54;
  --body-top: #f2eeeb;
  --body-mid: #ebe5e1;
  --body-bottom: #fcfbfa;
  --panel-glow: rgba(195, 66, 53, 0.14);
  --grid-line: rgba(122, 113, 108, 0.08);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(195,66,53,0.18), transparent 24%),
    radial-gradient(circle at left 20%, rgba(194,190,185,0.2), transparent 26%),
    linear-gradient(180deg, var(--body-top) 0%, var(--body-mid) 24%, var(--body-bottom) 100%);
  background-color: var(--body-bottom);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(195,66,53,0.18), transparent 24%),
    radial-gradient(circle at left 20%, rgba(194,190,185,0.2), transparent 26%),
    linear-gradient(180deg, var(--body-top) 0%, var(--body-mid) 24%, var(--body-bottom) 100%);
  transition: background .22s ease, color .22s ease;
  position: relative;
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 88%);
}
body::after {
  background:
    radial-gradient(circle at 12% 10%, rgba(195,66,53,0.12), transparent 18%),
    radial-gradient(circle at 88% 18%, rgba(194,190,185,0.14), transparent 16%);
}
[data-theme="dark"] {
  --ink: #f3efec;
  --ink-soft: #b7afaa;
  --surface: #101113;
  --card: #18191b;
  --line: rgba(181, 172, 166, 0.15);
  --shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
  --hero-start: #111214;
  --hero-end: #2b2d31;
  --body-top: #09090a;
  --body-mid: #121315;
  --body-bottom: #1a1b1e;
  --panel-glow: rgba(195, 66, 53, 0.18);
  --grid-line: rgba(145, 136, 130, 0.1);
}
.shell { max-width: min(1880px, calc(100vw - 24px)); margin: 0 auto; padding: 20px 12px 40px; }
.shell-wide { max-width: min(1880px, calc(100vw - 24px)); padding-left: 12px; padding-right: 12px; }
.shell-app {
  max-width: min(760px, calc(100vw - 20px));
  padding-top: 122px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
  min-height: 100dvh;
}
.shell-login { padding-top: 72px; }
.shell-work-allocation-edit .content { gap: 12px; }
.app-floating-actions {
  position: fixed;
  top: 18px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.app-floating-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(243,239,236,0.76));
  border: 1px solid rgba(110, 100, 94, 0.12);
  box-shadow: 0 12px 26px rgba(23, 21, 20, 0.08);
}
.app-floating-brand::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle, rgba(195,66,53,0.24) 0%, rgba(195,66,53,0.12) 42%, transparent 74%),
    radial-gradient(circle at 35% 35%, rgba(194,190,185,0.42), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}
.app-push-card {
  gap: 12px;
}
.app-push-card [data-push-toggle] {
  width: 100%;
}
.brand-mark,
.login-mark,
.wall-mark,
.app-mark {
  display: block;
  width: auto;
  height: auto;
  filter:
    drop-shadow(0 0 12px rgba(195, 66, 53, 0.16))
    drop-shadow(0 0 20px rgba(194, 190, 185, 0.18))
    drop-shadow(0 10px 18px rgba(23, 21, 20, 0.12));
}
.brand-mark {
  width: 112px;
}
.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.login-mark {
  width: 132px;
}
.app-mark {
  position: relative;
  z-index: 1;
  width: 60px;
}
.app-account-panel {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 0;
}
.app-session-badge {
  display: grid;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(243,239,236,0.96));
  border: 1px solid rgba(110, 100, 94, 0.14);
  box-shadow: var(--shadow);
  font-weight: 700;
  min-width: 0;
}
.app-session-badge-main {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.app-session-badge-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  margin-left: auto;
  text-align: right;
}
.app-session-badge-text span {
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
}
.app-logout-form {
  justify-self: end;
  flex: 0 0 auto;
}
.app-logout-form .ghost-button {
  min-width: 0;
  padding: 8px 10px;
  min-height: 34px;
  border-radius: 12px;
  font-size: 0.75rem;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,239,236,0.98));
  color: var(--ink);
  border-color: rgba(110, 100, 94, 0.18);
}
.grid-one { display: grid; gap: 16px; }
[data-app-mode="true"] .hero-card {
  padding: 22px 20px;
}
[data-app-mode="true"] .shell,
[data-app-mode="true"] .shell-wide,
[data-app-mode="true"] .content {
  background: transparent;
}
[data-app-mode="true"] body,
body[data-app-mode="true"] {
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: var(--body-bottom);
}
[data-app-mode="true"] .content {
  min-height: calc(100dvh - 150px);
}
[data-app-mode="true"] .hero-card h2 {
  font-size: 1.65rem;
}
[data-app-mode="true"] .card {
  padding: 22px 20px;
}
[data-app-mode="true"] .card h3 {
  font-size: 1.35rem;
}
[data-app-mode="true"] .address-link {
  display: inline-flex;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
}
[data-theme="dark"] .app-session-badge {
  background: linear-gradient(180deg, rgba(34,35,38,0.94), rgba(22,23,25,0.96));
  border-color: rgba(181,172,166,0.12);
}
[data-theme="dark"] .app-floating-brand {
  background: linear-gradient(180deg, rgba(34,35,38,0.84), rgba(22,23,25,0.88));
  border-color: rgba(181,172,166,0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
[data-theme="dark"] .app-floating-brand::before {
  background:
    radial-gradient(circle, rgba(195,66,53,0.28) 0%, rgba(195,66,53,0.14) 42%, transparent 74%),
    radial-gradient(circle at 35% 35%, rgba(194,190,185,0.24), transparent 68%);
}
[data-theme="dark"] .brand-mark,
[data-theme="dark"] .login-mark,
[data-theme="dark"] .wall-mark,
[data-theme="dark"] .app-mark {
  filter:
    drop-shadow(0 0 14px rgba(195, 66, 53, 0.18))
    drop-shadow(0 0 24px rgba(194, 190, 185, 0.12))
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.34));
}
[data-theme="dark"] .app-logout-form .ghost-button {
  background: linear-gradient(180deg, #34363a, #232427);
  color: var(--ink);
  border-color: rgba(181,172,166,.14);
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,240,237,0.98)),
    linear-gradient(120deg, rgba(195,66,53,0.08), transparent 42%);
  border: 1px solid rgba(110, 100, 94, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.header > * { position: relative; z-index: 1; }
.header::after {
  content: "";
  position: absolute;
  inset: auto -20px -24px auto;
  width: 220px;
  height: 64px;
  background: linear-gradient(90deg, rgba(194,190,185,0.96), rgba(195,66,53,0.96));
  transform: skewX(38deg);
  opacity: 0.92;
}
.header::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195,66,53,0.48), transparent);
}
.brand-block { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-copy { min-width: 0; }
.header-tools { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.session-panel { display: grid; gap: 8px; }
.theme-switch-form { display: inline-flex; flex-shrink: 0; }
.developer-switch-form { margin-left: 2px; }
.theme-switch-form.theme-switch-floating {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 3;
}
.theme-switch {
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.theme-switch-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 128px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(52, 48, 46, 0.16), rgba(52, 48, 46, 0.08));
  border: 1px solid rgba(110,100,94,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 24px rgba(34, 29, 27, 0.12);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.theme-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 8px);
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #ece6e2);
  box-shadow: 0 6px 14px rgba(31, 26, 24, 0.18);
  transition: transform .2s ease, background .2s ease;
}
.theme-switch.is-dark .theme-switch-thumb {
  transform: translateX(calc(100% + 8px));
  background: linear-gradient(180deg, #d15548, #9f2d23);
}
.theme-switch-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  height: 100%;
  text-align: center;
  padding: 0 8px;
}
.theme-switch-label-light { color: rgba(17,35,56,.84); }
.theme-switch-label-dark { color: rgba(17,35,56,.5); }
.theme-switch.is-dark .theme-switch-label-light { color: rgba(238,247,255,.44); }
.theme-switch.is-dark .theme-switch-label-dark { color: #eef7ff; }
.theme-switch.is-compact .theme-switch-track {
  width: 92px;
  height: 32px;
}
.theme-switch.is-compact .theme-switch-thumb {
  top: 3px;
  left: 3px;
  height: 24px;
  width: calc(50% - 6px);
}
.theme-switch.is-compact.is-dark .theme-switch-thumb {
  transform: translateX(calc(100% + 6px));
}
.theme-switch.is-compact .theme-switch-label {
  font-size: 0.55rem;
  padding: 0 6px;
}
.app-floating-brand .theme-switch-track {
  width: 94px;
  height: 32px;
}
.app-floating-brand .theme-switch-thumb {
  top: 3px;
  left: 3px;
  height: 24px;
  width: calc(50% - 6px);
}
.app-floating-brand .theme-switch.is-dark .theme-switch-thumb {
  transform: translateX(calc(100% + 6px));
}
.app-floating-brand .theme-switch-label {
  font-size: 0.55rem;
  padding: 0 6px;
}
.header h1 { margin: 4px 0 0; font-size: clamp(1.7rem, 2vw, 2.2rem); color: var(--ink); letter-spacing: -0.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; color: var(--accent); margin: 0; font-weight: 800; }
.session-badge {
  background:
    linear-gradient(180deg, #232426, #18191b),
    linear-gradient(130deg, rgba(195,66,53,0.16), transparent 42%);
  color: white;
  padding: 13px 16px;
  border-radius: 18px;
  min-width: 150px;
  text-align: right;
  font-size: 0.92rem;
  border: 1px solid rgba(195, 66, 53, 0.22);
  box-shadow: 0 12px 24px rgba(20, 18, 17, 0.24);
}
.session-badge span { display: block; margin-top: 4px; color: #d1c9c3; font-size: 0.72rem; }
.session-logout { justify-self: stretch; }
.session-logout .ghost-button {
  width: 100%;
  background: linear-gradient(180deg, #c34235, #9f2d23);
  color: #ffffff;
  border-color: rgba(159, 45, 35, 0.45);
  box-shadow: 0 10px 22px rgba(92, 28, 22, 0.22);
}
.topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  padding: 14px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(70, 123, 176, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.topnav-links,
.topnav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topnav-links { min-width: 0; flex: 1 1 auto; }
.topnav-actions { margin-left: auto; justify-content: flex-end; }
.topnav-public { justify-content: flex-end; }
.mobile-menu { display: none; }
.mobile-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(70, 123, 176, 0.14);
  box-shadow: var(--shadow);
  font-weight: 800;
  color: var(--ink);
}
.mobile-menu-trigger::-webkit-details-marker { display: none; }
.mobile-menu-panel {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(110,100,94,.14);
  box-shadow: var(--shadow);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,239,236,0.98));
  border: 1px solid rgba(110,100,94,.16);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.mobile-menu-actions {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}
.mobile-menu-actions .theme-switch-form,
.mobile-logout-form { width: 100%; }
.mobile-menu-actions .theme-switch { width: 100%; display: flex; justify-content: center; }
.mobile-menu-actions .theme-switch-track { width: min(100%, 180px); margin: 0 auto; }
.mobile-logout-form .secondary-button { width: 100%; }
.topnav a, .ghost-button, .ghost-link, .secondary-button, .primary-button, .small-button {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.compact-button { min-height: 38px; padding: 8px 12px; border-radius: 12px; font-size: 0.82rem; }
.topnav a, .ghost-link, .ghost-button {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,239,236,0.98));
  color: var(--ink);
  border-color: rgba(72, 125, 176, 0.18);
}
.primary-button {
  background: linear-gradient(180deg, #d15548, #b2372c);
  color: white;
  border-color: rgba(159,45,35,.58);
  box-shadow: 0 12px 26px rgba(195,66,53,.24);
}
.secondary-button {
  background: linear-gradient(180deg, #333437, #1f2022);
  color: white;
  border-color: rgba(93, 87, 82, 0.3);
}
.small-button { background: linear-gradient(180deg, #ffffff, #f3efec); color: var(--ink); padding: 10px 12px; min-height: 40px; border-color: rgba(110,100,94,.18); }
.ghost-button.danger { color: var(--danger); }
.inline-form { display: inline; }
.role-switcher { display: grid; gap: 10px; margin: 6px 0 18px; padding: 14px 16px; border-radius: 22px; background: rgba(255,255,255,0.78); border: 1px solid rgba(110,100,94,.14); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.role-switcher-header {
  margin: 0;
  padding: 10px 12px;
  min-width: 260px;
  max-width: 100%;
}
.role-switcher-buttons { gap: 8px; justify-content: flex-end; }
.content { display: grid; gap: 16px; }
.card, .hero-card, .metric-card, .mini-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(110,100,94,0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.card, .hero-card { padding: 18px; }
.hero-card {
  background:
    radial-gradient(circle at top right, rgba(195,66,53,0.28), transparent 22%),
    linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  top: -38px;
  right: 42px;
  width: 188px;
  height: 58px;
  background: linear-gradient(90deg, var(--steel), var(--accent));
  transform: skewX(38deg);
  opacity: 0.95;
}
.hero-card .muted, .hero-card p, .hero-card h2, .hero-card strong { color: white; }
.narrow { max-width: 560px; margin: 0 auto; }
.shell-login .header { display: none; }
.muted { color: #666c72; }
.error { background: #fff1f1; color: #a33b3b; border-radius: 14px; padding: 12px; border: 1px solid rgba(208,78,78,.18); }
.info-box { border-radius: 16px; background: rgba(195,66,53,.08); padding: 14px; border: 1px solid rgba(195,66,53,.14); }
.top-gap { margin-top: 14px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.metric-card { padding: 16px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,239,236,.96)); border: 1px solid rgba(110,100,94,.12); backdrop-filter: blur(3px); }
.metric-card span { display: block; color: var(--ink-soft); margin-bottom: 6px; }
.metric-card strong { font-size: 2rem; color: var(--ink); }
.section-header, .project-row, .button-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tab-row { display: flex; flex-wrap: wrap; gap: 10px; }
.subnav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.subnav a { color: white; background: rgba(255,255,255,.12); padding: 8px 12px; border-radius: 999px; text-decoration: none; }
.section-header h2, .section-header h3 { margin: 0; }
.card-list { display: grid; gap: 14px; }
.card-list.compact { gap: 12px; }
.project-card h3, .card h3, .card h2 { margin-top: 0; color: var(--ink); }
.project-card.completed-project {
  opacity: 0.84;
  background: linear-gradient(180deg, rgba(241,238,235,0.88), rgba(228,224,220,0.92));
}
.address-link { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
.access-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(195,66,53,.08); border: 1px solid rgba(195,66,53,.16); color: var(--ink); font-weight: 600; }
.grid-two { display: grid; gap: 14px; }
.management-layout { display: grid; gap: 14px; }
.management-sidebar { display: grid; gap: 14px; align-content: start; }
.admin-layout { display: grid; gap: 14px; }
.admin-sidebar { display: grid; gap: 14px; align-content: start; }
.card-compact { padding: 16px; }
.knowledge-card-link { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.knowledge-card-link:hover { transform: translateY(-1px); }
.knowledge-card-action { justify-self: flex-start; }
.knowledge-document .code-block { margin-top: 10px; }
.page-footer-grid { margin-top: 8px; }
.employee-groups { display: grid; gap: 14px; }
.employee-group { padding-top: 10px; border-top: 1px solid rgba(217,208,196,0.8); }
.employee-group:first-child { padding-top: 0; border-top: 0; }
.employee-group h4 { margin: 0 0 10px; color: var(--ink); }
.list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.photo-list { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-chip, .badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}
.photo-chip { background: rgba(195,66,53,.08); color: var(--ink-soft); border: 1px solid rgba(195,66,53,.1); }
.badge-entwurf { background: #ebedef; color: #4d4d4d; }
.badge-eingereicht { background: #f7ddd6; color: #8f331f; }
.badge-zur_korrektur { background: #f8d9d5; color: #98281b; }
.badge-freigegeben { background: #dfece2; color: #2f7a49; }
.badge-aktiv, .badge-abgeschlossen, .badge-abgerechnet, .badge-geplant, .badge-pausiert { background: rgba(22,22,22,.08); color: var(--ink); }
form.stack, .stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); }
fieldset.special-role-group { display: grid; gap: 10px; border: 1px solid rgba(22,22,22,.08); border-radius: 16px; padding: 12px 14px; margin: 0; }
fieldset.special-role-group legend { padding: 0 6px; font-weight: 700; color: var(--ink); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}
option { color: #161616; background: #ffffff; }
input[readonly] { background: #edf5ff; color: var(--ink-soft); font-weight: 700; }
textarea { resize: vertical; }
.subsection { display: grid; gap: 12px; padding-top: 8px; border-top: 1px solid rgba(217,208,196,0.8); }
.repeat-list { display: grid; gap: 12px; }
.repeat-card { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(247,247,247,0.96), rgba(240,241,242,0.96)); border: 1px solid rgba(22,22,22,0.08); }
.two-col { display: grid; gap: 12px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: 20px; height: 20px; }
.code-block {
  white-space: pre-wrap;
  background: linear-gradient(180deg, #0e2034, #0a1726);
  color: #dff1ff;
  padding: 12px;
  border-radius: 16px;
  overflow: auto;
  border: 1px solid rgba(83, 146, 205, 0.18);
}
.allocation-summary-grid,
.allocation-special-grid,
.allocation-project-grid { display: grid; gap: 10px; }
.allocation-editor { display: grid; gap: 12px; }
.allocation-resource-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.allocation-pool-card { padding: 14px 16px; }
.allocation-column,
.allocation-summary-card { background: rgba(255,255,255,.88); border: 1px solid rgba(71, 122, 170, .12); border-radius: 22px; padding: 14px; }
.allocation-column { min-height: 108px; }
.allocation-column.project { border-top: 4px solid #c34235; }
.allocation-column.repair { border-top: 4px solid #315d8d; }
.allocation-column.sick { border-top: 4px solid #d04e4e; }
.allocation-column.vacation { border-top: 4px solid #90a5bb; }
.allocation-column.training { border-top: 4px solid #c34235; }
.allocation-summary-card-repair { border-top: 4px solid #315d8d; }
.allocation-summary-card-sick { border-top: 4px solid #d04e4e; }
.allocation-summary-card-vacation { border-top: 4px solid #90a5bb; }
.allocation-summary-card-training { border-top: 4px solid #c34235; }
.allocation-summary-card-available { border-top: 4px solid #2f3033; }
.allocation-stack, .allocation-pool { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.allocation-stack.compact { gap: 6px; }
.allocation-card { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: white; border: 1px solid rgba(110,100,94,.12); box-shadow: 0 8px 20px rgba(23, 21, 20, 0.08); cursor: grab; user-select: none; }
.allocation-card.compact { padding: 6px 8px; gap: 6px; font-size: 0.82rem; }
.allocation-card.foreman { background: linear-gradient(180deg, #ffe0d3, #ffd0bc); border-color: rgba(219,108,56,.34); }
.allocation-card.worker { background: linear-gradient(180deg, #edf6ff, #deebfb); border-color: rgba(92,130,171,.26); }
.allocation-card.apprentice { background: linear-gradient(180deg, #d8fbff, #bff5ff); border-color: rgba(18,184,199,.34); }
.allocation-card.journeyman { background: linear-gradient(180deg, #e2f8e6, #c9edcf); border-color: rgba(74,159,92,.34); }
.allocation-card.helper { background: linear-gradient(180deg, #f0e1ff, #e4cffd); border-color: rgba(138,94,211,.34); }
.allocation-card.intern { background: linear-gradient(180deg, #fff4d8, #ffebbf); border-color: rgba(210,159,55,.34); }
.allocation-card-vehicle { gap: 10px; border-width: 2px; box-shadow: 0 10px 24px rgba(23, 21, 20, 0.12); }
.allocation-card-copy { display: grid; gap: 2px; min-width: 0; }
.allocation-card-vehicle-bulli,
.allocation-card-vehicle-pritsche { background: linear-gradient(180deg, #fff1c7, #ffd978); border-color: rgba(204, 141, 15, 0.42); }
.allocation-card-vehicle-kranwagen { background: linear-gradient(180deg, #ffd8d2, #ffaea2); border-color: rgba(202, 70, 54, 0.4); }
.allocation-card-vehicle-pkw { background: linear-gradient(180deg, #d8f2ff, #9edaff); border-color: rgba(37, 127, 195, 0.38); }
.allocation-card-vehicle-anhaenger { background: linear-gradient(180deg, #e8defd, #ccb8f7); border-color: rgba(116, 82, 190, 0.38); }
.allocation-card.foreman .allocation-avatar { background: rgba(181,79,33,.16); }
.allocation-card.worker .allocation-avatar { background: rgba(44,91,138,.14); }
.allocation-card.apprentice .allocation-avatar { background: rgba(0,143,163,.16); }
.allocation-card.journeyman .allocation-avatar { background: rgba(48,128,66,.16); }
.allocation-card.helper .allocation-avatar { background: rgba(111,67,185,.16); }
.allocation-card.intern .allocation-avatar { background: rgba(168,122,28,.16); }
.allocation-card[draggable="false"] { cursor: default; }
.allocation-avatar { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: rgba(22,22,22,.08); color: var(--ink); font-size: 0.75rem; letter-spacing: 0.04em; }
.allocation-card.compact .allocation-avatar { width: 24px; height: 24px; font-size: 0.7rem; }
.allocation-name { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.allocation-card-subtitle { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(18, 20, 24, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.allocation-card-vehicle .allocation-name,
.allocation-card-vehicle .allocation-card-subtitle {
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}
.allocation-card.dragging { opacity: .45; }
.allocation-card.is-selected {
  background: linear-gradient(180deg, #d15548, #9f2d23) !important;
  border-color: rgba(159,45,35,.72) !important;
  color: #ffffff;
  outline: 3px solid rgba(195,66,53,.45);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(195,66,53,.14), 0 14px 28px rgba(72, 28, 24, 0.18);
}
.allocation-card.is-selected .allocation-avatar { background: rgba(255,255,255,.18) !important; color: #ffffff; }
.allocation-vehicle-stack { margin-top: 8px; }
.allocation-wall-vehicles { margin-top: 8px; }
.wall-available-vehicles .section-header { align-items: center; }
.address-autocomplete {
  position: relative;
}
.address-suggestion-list[hidden] {
  display: none !important;
}
.address-suggestion-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 6px);
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 8px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(71,122,170,.18);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(23, 21, 20, 0.12);
}
.address-suggestion-item {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  background: rgba(243,239,236,0.92);
  color: var(--ink);
  cursor: pointer;
}
.address-suggestion-item:hover {
  background: rgba(209, 85, 72, 0.12);
}
.vehicle-manage-button {
  min-width: 310px;
  box-shadow: 0 12px 24px rgba(195,66,53,.2);
}
.drop-active { outline: 3px dashed rgba(195,66,53,.45); outline-offset: 2px; }
.date-picker summary { list-style: none; cursor: pointer; background: rgba(255,255,255,.14); color: white; border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.date-picker summary::-webkit-details-marker { display: none; }
.allocation-hero-actions { margin-top: 14px; }
.shell-wallboard {
  max-width: none;
  width: 100vw;
  padding: 0;
}
.shell-wallboard .content {
  padding: 0;
}
.shell-minimal-surface {
  max-width: 1180px;
  padding-top: 22px;
}
.minimal-surface-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(71,122,170,.12);
  border-radius: 24px;
  padding: 22px 24px;
}
.minimal-surface-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.minimal-surface-brand .wall-mark {
  width: 138px;
}
.wallboard-preview-shell {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.wallboard-stage {
  width: 3840px;
  min-width: 3840px;
  height: 2160px;
  min-height: 2160px;
  padding: 14px 14px 12px;
  transform-origin: top left;
  will-change: transform;
  opacity: 0;
}
[data-wall-ready="true"] .wallboard-stage { opacity: 1; }
.wall-header-card,
.wall-available-card,
.wall-selection-bar {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(71,122,170,.12);
  border-radius: 24px;
  padding: 22px 24px;
}
.wall-header-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.wall-header-card h2 {
  margin: 10px 0 6px;
  font-size: 54px;
  line-height: 1;
}
.wall-header-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}
.wall-mark {
  width: 168px;
  filter: drop-shadow(0 14px 24px rgba(23, 21, 20, 0.18));
}
.wall-header-card .muted {
  font-size: 24px;
}
.wall-toolbar {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-areas:
    "date publish desktop"
    ". . project";
  gap: 16px;
  align-items: start;
  justify-content: end;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
}
.wall-toolbar-date { grid-area: date; }
.wall-toolbar-publish { grid-area: publish; }
.wall-toolbar-desktop { grid-area: desktop; }
.wall-toolbar-project-create {
  grid-area: project;
  align-self: end;
  justify-self: end;
}
.wall-toolbar-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  align-self: start;
  gap: 0;
}
.wall-toolbar input[type="date"] {
  min-height: 74px;
  font-size: 28px;
  border-radius: 18px;
  padding: 12px 18px;
}
.wall-toolbar-link {
  min-height: 74px;
  padding: 16px 24px;
  font-size: 24px;
  border-radius: 18px;
  min-width: 310px;
}
.wall-toolbar-link-accent {
  background: linear-gradient(180deg, #4c5866, #2f3740);
  border-color: rgba(53, 62, 72, 0.44);
  color: #ffffff;
}
.wall-available-card {
  margin-bottom: 22px;
  min-height: 170px;
}
.wall-available-card h3 {
  font-size: 30px;
  margin: 0 0 10px;
}
.wall-available-pool {
  gap: 10px;
  min-height: 78px;
}
.allocation-wall-grid {
  display: grid;
  grid-template-columns: repeat(var(--wall-column-count, 29), minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  overflow: hidden;
}
.allocation-wall-column {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(71,122,170,.12);
  border-radius: 18px;
  padding: 8px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  height: 100%;
}
.allocation-wall-column.project { border-top: 5px solid #c34235; }
.allocation-wall-column.repair { border-top: 5px solid #315d8d; }
.allocation-wall-column.sick { border-top: 5px solid #d04e4e; }
.allocation-wall-column.vacation { border-top: 5px solid #90a5bb; }
.allocation-wall-column.training { border-top: 5px solid #c34235; }
.allocation-wall-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: flex-start;
  gap: 4px;
}
.allocation-wall-head .eyebrow {
  font-size: .72rem;
  padding: 5px 6px;
}
.allocation-wall-head h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  white-space: normal;
}
.wall-project-link {
  color: inherit;
  text-decoration: none;
}
.wall-project-link.is-disabled {
  opacity: .56;
  pointer-events: none;
}
.allocation-wall-list {
  align-content: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  gap: 6px;
}
.allocation-wall-column .allocation-card {
  width: 100%;
  min-height: 52px;
  padding: 7px 8px;
  gap: 6px;
  border-radius: 12px;
}
.allocation-wall-column .allocation-avatar {
  width: 26px;
  height: 26px;
  font-size: 0.72rem;
}
.allocation-wall-column .allocation-name {
  max-width: none;
  font-size: 0.8rem;
  line-height: 1.08;
  white-space: normal;
}
.wall-start-time {
  display: grid;
  gap: 4px;
  min-width: 58px;
  max-width: 58px;
  width: 58px;
  flex: 0 0 58px;
}
.wall-start-time span {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.wall-start-time select {
  min-height: 32px;
  width: 100%;
  max-width: 58px;
  padding: 3px 1px;
  font-size: 0.62rem;
  font-weight: 700;
}
.wall-start-time-placeholder {
  justify-items: end;
  opacity: .72;
}
.wall-legend-card {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 26px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(110,100,94,.12);
  box-shadow: 0 14px 32px rgba(12, 19, 31, 0.08);
}
.wall-legend-group {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
}
.wall-legend-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(110,100,94,.2), transparent);
}
.allocation-legend-card { margin-top: 2px; }
.allocation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.allocation-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}
.allocation-legend-chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(110,100,94,.18);
  flex-shrink: 0;
}
.allocation-legend-chip.foreman { background: linear-gradient(180deg, #ffe0d3, #ffd0bc); border-color: rgba(219,108,56,.34); }
.allocation-legend-chip.journeyman { background: linear-gradient(180deg, #e2f8e6, #c9edcf); border-color: rgba(74,159,92,.34); }
.allocation-legend-chip.apprentice { background: linear-gradient(180deg, #d8fbff, #bff5ff); border-color: rgba(18,184,199,.34); }
.allocation-legend-chip.helper { background: linear-gradient(180deg, #f0e1ff, #e4cffd); border-color: rgba(138,94,211,.34); }
.allocation-legend-chip.intern { background: linear-gradient(180deg, #fff4d8, #ffebbf); border-color: rgba(210,159,55,.34); }
.allocation-legend-chip.vehicle-bulli,
.allocation-legend-chip.vehicle-pritsche { background: linear-gradient(180deg, #fff1c7, #ffd978); border-color: rgba(204, 141, 15, 0.42); }
.allocation-legend-chip.vehicle-kranwagen { background: linear-gradient(180deg, #ffd8d2, #ffaea2); border-color: rgba(202, 70, 54, 0.4); }
.allocation-legend-chip.vehicle-pkw { background: linear-gradient(180deg, #d8f2ff, #9edaff); border-color: rgba(37, 127, 195, 0.38); }
.allocation-legend-chip.vehicle-anhaenger { background: linear-gradient(180deg, #e8defd, #ccb8f7); border-color: rgba(116, 82, 190, 0.38); }
.request-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.request-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(195,66,53,.05); border: 1px solid rgba(110,100,94,.1); }
.request-item p { margin: 4px 0 0; }
.request-actions { display: flex; gap: 8px; align-items: center; }
.icon-button { width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.icon-approve { background: #dff4ec; color: #2f7a49; }
.icon-deny { background: #fff0f0; color: #b13e3e; }
[data-theme="dark"] .header,
[data-theme="dark"] .topnav,
[data-theme="dark"] .role-switcher,
[data-theme="dark"] .card,
[data-theme="dark"] .wall-header-card,
[data-theme="dark"] .wall-available-card,
[data-theme="dark"] .allocation-wall-column,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .mini-card,
[data-theme="dark"] .allocation-column,
[data-theme="dark"] .allocation-summary-card,
[data-theme="dark"] .repeat-card {
  background: rgba(24,25,27,0.9);
  border-color: rgba(181,172,166,0.12);
}
[data-theme="dark"] .wallboard-preview-shell {
  background: linear-gradient(180deg, #0d0d0e, #191a1d);
}
[data-theme="dark"] .theme-switch-track {
  background: linear-gradient(180deg, rgba(31, 32, 34, 0.92), rgba(20, 20, 22, 0.92));
  border-color: rgba(195,66,53,.2);
  box-shadow: inset 0 0 0 1px rgba(195,66,53,.12), 0 12px 24px rgba(0,0,0,.24);
}
[data-theme="dark"] .topnav a,
[data-theme="dark"] .ghost-link,
[data-theme="dark"] .ghost-button,
[data-theme="dark"] .small-button,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: linear-gradient(180deg, #242528, #17181a);
  color: var(--ink);
  border-color: rgba(181,172,166,.14);
}
[data-theme="dark"] option { background: #171a1f; color: #f2f2f2; }
[data-theme="dark"] .secondary-button {
  background: linear-gradient(180deg, #3a3b3f, #232427);
  color: #f3efec;
  border-color: rgba(181,172,166,.2);
}
[data-theme="dark"] .metric-card {
  background: linear-gradient(180deg, rgba(39,40,43,0.92), rgba(24,25,27,0.94));
  border-color: rgba(181,172,166,0.14);
}
[data-theme="dark"] .metric-card span { color: #c7bdb7; }
[data-theme="dark"] .metric-card strong { color: #f3efec; }
[data-theme="dark"] .mobile-menu-trigger,
[data-theme="dark"] .mobile-menu-panel {
  background: rgba(24,25,27,0.92);
  border-color: rgba(181,172,166,0.12);
}
[data-theme="dark"] .mobile-nav-link {
  background: linear-gradient(180deg, #242528, #17181a);
  color: var(--ink);
  border-color: rgba(181,172,166,.14);
}
[data-theme="dark"] .session-logout .ghost-button {
  background: linear-gradient(180deg, #d15548, #9f2d23);
  color: #ffffff;
  border-color: rgba(195,66,53,.28);
}
[data-theme="dark"] .muted,
[data-theme="dark"] .session-badge span,
[data-theme="dark"] .photo-chip {
  color: #c3c7cc;
}
[data-theme="dark"] .photo-chip,
[data-theme="dark"] .allocation-card,
[data-theme="dark"] input[readonly] {
  background: rgba(43,44,48,0.72);
  border-color: rgba(181,172,166,.14);
}
[data-theme="dark"] .allocation-card.foreman { background: rgba(210,112,64,.26); }
[data-theme="dark"] .allocation-card.worker { background: rgba(44,91,138,.34); }
[data-theme="dark"] .allocation-card.apprentice { background: rgba(11,182,198,.28); }
[data-theme="dark"] .allocation-card.journeyman { background: rgba(67,153,89,.28); }
[data-theme="dark"] .allocation-card.helper { background: rgba(128,93,199,.3); }
[data-theme="dark"] .allocation-card.intern { background: rgba(196,150,52,.28); }
[data-theme="dark"] .allocation-card-vehicle-bulli,
[data-theme="dark"] .allocation-card-vehicle-pritsche { background: rgba(196, 146, 32, 0.28); border-color: rgba(230, 187, 71, 0.28); }
[data-theme="dark"] .allocation-card-vehicle-kranwagen { background: rgba(188, 82, 68, 0.3); border-color: rgba(224, 119, 106, 0.28); }
[data-theme="dark"] .allocation-card-vehicle-pkw { background: rgba(46, 119, 179, 0.3); border-color: rgba(95, 169, 230, 0.28); }
[data-theme="dark"] .allocation-card-vehicle-anhaenger { background: rgba(116, 88, 184, 0.3); border-color: rgba(167, 139, 238, 0.28); }
[data-theme="dark"] .allocation-card-subtitle { color: rgba(245, 247, 250, 0.72); }
[data-theme="dark"] .address-suggestion-list {
  background: rgba(17, 19, 24, 0.98);
  border-color: rgba(95, 106, 121, 0.22);
}
[data-theme="dark"] .address-suggestion-item {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}
[data-theme="dark"] .address-suggestion-item:hover {
  background: rgba(209, 85, 72, 0.22);
}
[data-theme="dark"] .minimal-surface-header {
  background: rgba(17, 19, 24, 0.88);
  border-color: rgba(95, 106, 121, 0.18);
}
[data-theme="dark"] .allocation-legend-chip.foreman { background: rgba(210,112,64,.26); border-color: rgba(210,112,64,.42); }
[data-theme="dark"] .allocation-legend-chip.journeyman { background: rgba(67,153,89,.28); border-color: rgba(67,153,89,.42); }
[data-theme="dark"] .allocation-legend-chip.apprentice { background: rgba(11,182,198,.28); border-color: rgba(11,182,198,.42); }
[data-theme="dark"] .allocation-legend-chip.helper { background: rgba(128,93,199,.3); border-color: rgba(128,93,199,.44); }
[data-theme="dark"] .allocation-legend-chip.intern { background: rgba(196,150,52,.28); border-color: rgba(196,150,52,.42); }
[data-theme="dark"] .allocation-legend-chip.vehicle-bulli,
[data-theme="dark"] .allocation-legend-chip.vehicle-pritsche { background: rgba(196, 146, 32, 0.28); border-color: rgba(230, 187, 71, 0.28); }
[data-theme="dark"] .allocation-legend-chip.vehicle-kranwagen { background: rgba(188, 82, 68, 0.3); border-color: rgba(224, 119, 106, 0.28); }
[data-theme="dark"] .allocation-legend-chip.vehicle-pkw { background: rgba(46, 119, 179, 0.3); border-color: rgba(95, 169, 230, 0.28); }
[data-theme="dark"] .allocation-legend-chip.vehicle-anhaenger { background: rgba(116, 88, 184, 0.3); border-color: rgba(167, 139, 238, 0.28); }
[data-theme="dark"] .wall-legend-card { background: rgba(24,25,27,0.9); border-color: rgba(181,172,166,0.12); }
[data-theme="dark"] .wall-legend-divider { background: linear-gradient(180deg, transparent, rgba(181,172,166,.24), transparent); }
[data-theme="dark"] fieldset.special-role-group,
[data-theme="dark"] .request-item { border-color: rgba(181,172,166,.12); background: rgba(39,40,43,.56); }
[data-theme="dark"] .project-card.completed-project {
  opacity: 0.82;
  background: linear-gradient(180deg, rgba(43,44,48,0.9), rgba(30,31,34,0.96));
}
[data-theme="dark"] .address-link { color: #e06a5e; }
[data-theme="dark"] .access-note { background: rgba(195,66,53,.12); border-color: rgba(195,66,53,.24); color: var(--ink); }
@media (min-width: 760px) {
  .grid-two { grid-template-columns: 1fr 1fr; }
  .management-layout { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.85fr); align-items: start; }
  .allocation-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr); align-items: start; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .allocation-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .allocation-special-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .allocation-project-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .allocation-column,
  .allocation-summary-card { min-height: 96px; }
  .allocation-summary-card h3,
  .allocation-column h3 { font-size: 1rem; }
  .allocation-column .eyebrow,
  .allocation-summary-card .eyebrow { font-size: 0.64rem; }
  .allocation-name { max-width: 120px; }
}
@media (max-width: 900px) {
  .topnav { display: none; }
  .mobile-menu { display: block; margin: 0 0 20px; }
  .mobile-menu[open] .mobile-menu-trigger { margin-bottom: 10px; }
  .header { align-items: flex-start; }
  .brand-block { width: 100%; }
  .session-badge { width: 100%; text-align: left; }
  .header-tools { width: 100%; justify-content: flex-start; }
  .session-panel { width: 100%; }
  .role-switcher-header,
  .developer-switch-form,
  .session-logout { display: none; }
  .theme-switch-form.theme-switch-floating { top: 14px; right: 14px; }
  .shell-app {
    max-width: calc(100vw - 18px);
    padding-top: 138px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .app-floating-actions {
    left: 10px;
    right: 10px;
    top: 10px;
    grid-template-columns: minmax(0, 1fr);
  }
  .app-floating-brand {
    justify-content: space-between;
    padding-right: 8px;
  }
  .app-mark {
    width: 54px;
  }
  .app-account-panel {
    justify-items: stretch;
  }
  .app-session-badge,
  .app-logout-form,
  .app-session-badge-main {
    justify-self: stretch;
  }
  .app-session-badge-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .brand-mark {
    width: 96px;
  }
  .app-floating-actions .theme-switch-form,
  .app-floating-actions .theme-switch {
    width: auto;
  }
  .app-floating-brand .theme-switch-track {
    width: 88px;
    max-width: 88px;
  }
  .topnav { align-items: flex-start; }
  .topnav-actions { width: 100%; justify-content: flex-start; }
  .header {
    padding: 16px 18px;
    border-radius: 24px;
  }
  .header h1 { font-size: 1.8rem; }
  .card, .hero-card { padding: 20px; }
  .section-header h2, .section-header h3 { font-size: 1.2rem; }
  .topnav a, .ghost-button, .ghost-link, .secondary-button, .primary-button, .small-button {
    min-height: 54px;
    padding: 14px 18px;
    font-size: 0.98rem;
  }
  input, textarea, select {
    min-height: 52px;
    font-size: 1rem;
  }
  .badge, .photo-chip { font-size: 0.92rem; }
  .allocation-card {
    min-height: 52px;
    padding: 10px 12px;
    gap: 10px;
  }
  .allocation-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  .allocation-name { max-width: none; font-size: 0.96rem; }
  .project-card h3, .card h3, .card h2 { font-size: 1.25rem; }
  .metrics { grid-template-columns: 1fr; }
  .grid-two, .management-layout, .admin-layout, .allocation-resource-grid { grid-template-columns: 1fr; }
  .minimal-surface-header, .minimal-surface-brand { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1280px) {
  .allocation-summary-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .allocation-project-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .allocation-column,
  .allocation-summary-card { padding: 12px; }
  .allocation-name { max-width: 100px; }
}
@media (min-width: 1600px) {
  .shell,
  .shell-wide { max-width: min(2120px, calc(100vw - 20px)); padding-left: 10px; padding-right: 10px; }
  .allocation-summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .allocation-project-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .allocation-special-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .allocation-card.compact { padding: 5px 7px; }
  .allocation-card.compact .allocation-avatar { width: 22px; height: 22px; }
  .allocation-name { max-width: 92px; }
}
