:root {
  --bg-app: #f7efee;
  --bg-surface: #ffffff;
  --bg-subtle: #eee7e8;
  --bg-hover: #faeef2;
  --text-primary: #212529;
  --text-secondary: #666666;
  --text-muted: #7a7a7a;
  --text-inverse: #ffffff;
  --brand-950: #4a061c;
  --brand-900: #650924;
  --brand-800: #810e33;
  --brand-700: #8d0f38;
  --brand-600: #a41141;
  --brand-100: #f1d7df;
  --brand-50: #faeef2;
  --brand-rgb: 164 17 65;
  --theme-accent: #a41141;
  --theme-accent-rgb: 164 17 65;
  --accent-700: #9a6322;
  --accent-500: #d0923f;
  --accent-100: #f7e8d1;
  --success: #26734d;
  --success-bg: #e4f3ea;
  --warning: #946200;
  --warning-bg: #fff1cc;
  --danger: #b3443f;
  --danger-bg: #fce8e6;
  --info: #376a9a;
  --info-bg: #e6f0f8;
  --purple: #7156a4;
  --purple-bg: #eee9f8;
  --border: #e5d9dc;
  --border-strong: #cebcc1;
  --focus: #d21653;
  --focus-rgb: 210 22 83;
  --font-sans: Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(33 37 41 / 6%);
  --shadow-md: 0 12px 32px rgb(33 37 41 / 10%);
  --shadow-lg: 0 24px 60px rgb(var(--brand-rgb) / 18%);
  --sidebar-width: 258px;
  --topbar-height: 72px;
  --motion-fast: 120ms;
  --motion-normal: 180ms;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: var(--bg-subtle); }
html::-webkit-scrollbar-thumb {
  min-height: 52px;
  border: 2px solid var(--bg-subtle);
  border-radius: var(--radius-pill);
  background: rgb(var(--theme-accent-rgb) / 58%);
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover { background: rgb(var(--theme-accent-rgb) / 82%); background-clip: padding-box; }
html::-webkit-scrollbar-corner { background: var(--bg-subtle); }

*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:vertical:decrement,
*::-webkit-scrollbar-button:vertical:increment,
*::-webkit-scrollbar-button:horizontal:decrement,
*::-webkit-scrollbar-button:horizontal:increment,
*::-webkit-scrollbar-button:start:decrement,
*::-webkit-scrollbar-button:end:increment {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: rgb(var(--theme-accent-rgb) / 66%) var(--bg-subtle);
    scrollbar-width: thin;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(135deg, #f2e0dc 0%, #e7e2e6 50%, #fadeda 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-small {
  width: 14px;
  height: 14px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% -10%, rgb(var(--focus-rgb) / 35%), transparent 32%),
    linear-gradient(180deg, var(--brand-900), var(--brand-950));
  color: rgb(255 255 255 / 80%);
}

.sidebar::-webkit-scrollbar { width: 6px; height: 6px; -webkit-appearance: none; appearance: none; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { min-height: 44px; border-radius: var(--radius-pill); background: rgb(255 255 255 / 24%); }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgb(255 255 255 / 38%); }
.sidebar::-webkit-scrollbar-button,
.sidebar::-webkit-scrollbar-button:single-button,
.sidebar::-webkit-scrollbar-button:vertical:decrement,
.sidebar::-webkit-scrollbar-button:vertical:increment,
.sidebar::-webkit-scrollbar-button:start:decrement,
.sidebar::-webkit-scrollbar-button:end:increment {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  background-image: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.brand-row {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 12px;
  background: rgb(255 255 255 / 11%);
  color: white;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  box-shadow: inset 0 1px rgb(255 255 255 / 13%);
}

.brand-row > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 0;
}

.brand-row strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.brand-row span {
  color: rgb(255 255 255 / 55%);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.sidebar-close {
  display: none !important;
  margin-left: auto;
  color: white;
}

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 12px 18px;
}

.nav-label {
  padding: 0 12px 8px;
  color: rgb(255 255 255 / 42%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-label-spaced {
  margin-top: 24px;
}

.nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgb(255 255 255 / 70%);
  font-size: 14px;
  font-weight: 560;
  transition: background var(--motion-normal), color var(--motion-normal), transform var(--motion-fast);
}

.nav-item:hover {
  background: rgb(255 255 255 / 7%);
  color: #fff;
}

.nav-item:active {
  transform: translateY(1px);
}

.nav-item.active {
  background: rgb(255 255 255 / 13%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
  color: #fff;
}

.nav-item.active::before {
  width: 3px;
  height: 20px;
  margin-left: -12px;
  border-radius: 0 4px 4px 0;
  background: #f0c2d0;
  content: "";
}

.nav-item.active .icon {
  color: #f1c6d3;
}

.nav-badge {
  min-width: 23px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 20px;
  background: rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 85%);
  font-size: 11px;
  font-weight: 700;
}

.nav-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #e9b66d;
  box-shadow: 0 0 0 3px rgb(233 182 109 / 12%);
}

.nav-group {
  display: grid;
}

.nav-parent {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-parent > span:nth-of-type(1) {
  min-width: 0;
  flex: 1;
}

.nav-parent .nav-badge,
.nav-parent .nav-dot {
  flex: 0 0 auto;
  margin-left: 0;
}

.nav-chevron {
  width: 15px;
  height: 15px;
  margin-left: 2px;
  color: rgb(255 255 255 / 38%);
  transition: transform var(--motion-normal), color var(--motion-normal);
}

.nav-group.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-parent:hover .nav-chevron,
.nav-parent.active .nav-chevron {
  color: rgb(255 255 255 / 75%);
}

.subnav {
  max-height: 0;
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0 0 0 21px;
  padding: 0 0 0 19px;
  border-left: 1px solid rgb(255 255 255 / 10%);
  opacity: 0;
  transition: max-height 220ms ease, opacity var(--motion-normal), padding var(--motion-normal);
}

.nav-group.open .subnav {
  max-height: 230px;
  padding-top: 3px;
  padding-bottom: 6px;
  opacity: 1;
}

.subnav-link {
  position: relative;
  min-height: 31px;
  display: flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 7px;
  color: rgb(255 255 255 / 46%);
  font-size: 11.5px;
  font-weight: 520;
  transition: color var(--motion-normal), background var(--motion-normal);
}

.subnav-link::before {
  position: absolute;
  left: -22px;
  width: 5px;
  height: 5px;
  border: 2px solid var(--brand-900);
  border-radius: 50%;
  background: rgb(255 255 255 / 24%);
  content: "";
}

.subnav-link:hover {
  background: rgb(255 255 255 / 5%);
  color: rgb(255 255 255 / 85%);
}

.subnav-link.active {
  background: rgb(255 255 255 / 8%);
  color: #f7dbe4;
  font-weight: 680;
}

.subnav-link.active::before {
  background: #f1c6d3;
  box-shadow: 0 0 0 3px rgb(241 198 211 / 10%);
}

.sidebar-idea {
  margin: 10px 16px 14px;
  padding: 15px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 14px;
  background: rgb(255 255 255 / 6%);
}

.sidebar-idea .idea-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 9px;
  background: rgb(247 232 209 / 15%);
  color: #efc98f;
}

.sidebar-idea strong {
  display: block;
  color: white;
  font-size: 13px;
}

.sidebar-idea p {
  margin: 4px 0 10px;
  color: rgb(255 255 255 / 50%);
  font-size: 11.5px;
  line-height: 1.45;
}

.text-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.text-button .icon {
  width: 15px;
  height: 15px;
  transition: transform var(--motion-normal);
}

.text-button:hover .icon {
  transform: translateX(2px);
}

.text-button.light {
  color: #f2c8d5;
}

.sidebar-footer {
  padding: 10px 12px 16px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.sidebar-profile {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: white;
  text-align: left;
  cursor: pointer;
}

.sidebar-profile:hover {
  background: rgb(255 255 255 / 7%);
}

.sidebar-profile > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

.sidebar-profile strong {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile small {
  color: rgb(255 255 255 / 45%);
  font-size: 10.5px;
}

.sidebar-profile > .icon {
  width: 17px;
  color: rgb(255 255 255 / 45%);
}

.avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-900);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.avatar-xs {
  width: 26px;
  height: 26px;
  border-width: 1.5px;
  font-size: 8px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 9px;
}

.avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 14px;
}

.avatar-xl {
  width: 68px;
  height: 68px;
  font-size: 18px;
}

.avatar-sand { background: #e6d6c1; color: #68451f; }
.avatar-mint { background: #cce4dd; color: #164c43; }
.avatar-blue { background: #d5e4f1; color: #285d86; }
.avatar-purple { background: #e1d9ed; color: #684893; }
.avatar-rose { background: #efd7d5; color: #8b4542; }
.avatar-gold { background: #f1dfbd; color: #78501c; }
.avatar-slate { background: #d8dfdd; color: #3e5550; }
.avatar-coral { background: #f3d4c9; color: #8a4631; }

.presence {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--brand-900);
  border-radius: 50%;
  background: #55b881;
}

.main-column {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(18px, 3vw, 40px);
  border-bottom: 1px solid rgb(229 217 220 / 90%);
  background: rgb(247 239 238 / 88%);
  backdrop-filter: blur(14px);
}

.menu-button {
  display: none !important;
}

.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--motion-normal), border var(--motion-normal), color var(--motion-normal);
}

.icon-button:hover {
  border-color: var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.has-notification {
  position: relative;
}

.has-notification::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--bg-app);
  border-radius: 50%;
  background: var(--danger);
  content: "";
}

.global-search-trigger {
  width: min(460px, 47vw);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgb(255 255 255 / 65%);
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: border var(--motion-normal), background var(--motion-normal), box-shadow var(--motion-normal);
}

.global-search-trigger:hover {
  border-color: var(--border-strong);
  background: white;
  box-shadow: var(--shadow-sm);
}

.global-search-trigger span {
  flex: 1;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

kbd {
  min-width: 46px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 10px;
  text-align: center;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.role-chip {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #ead5dc;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .03em;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  cursor: pointer;
  transition: background var(--motion-normal), border var(--motion-normal), color var(--motion-normal), transform var(--motion-fast), box-shadow var(--motion-normal);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  border-color: var(--focus);
  background: var(--brand-600);
  color: white;
  box-shadow: 0 2px 5px rgb(var(--brand-rgb) / 14%);
}

.button-primary:hover {
  border-color: var(--brand-800);
  background: #ad1245;
}

.button-secondary {
  border-color: var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.button-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--text-secondary);
}

.button-quiet:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.button-small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.create-menu {
  position: absolute;
  top: 60px;
  right: clamp(18px, 3vw, 40px);
  z-index: 60;
  width: 280px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow-md);
}

.create-menu > button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.create-menu > button:hover {
  background: var(--bg-hover);
}

.create-menu > button > span:last-child {
  display: grid;
}

.create-menu strong {
  font-size: 13px;
}

.create-menu small {
  color: var(--text-muted);
  font-size: 11px;
}

.menu-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.menu-icon .icon { width: 17px; height: 17px; }
.menu-icon.blue { background: var(--info-bg); color: var(--info); }
.menu-icon.green { background: var(--success-bg); color: var(--success); }
.menu-icon.gold { background: var(--accent-100); color: var(--accent-700); }

.page-container {
  width: 100%;
  max-width: 1560px;
  min-height: calc(100vh - var(--topbar-height));
  margin: 0 auto;
  padding: 30px clamp(18px, 3vw, 40px) 60px;
}

.page-container:focus:not(:focus-visible) {
  outline: none;
}

.page-enter {
  animation: page-in 260ms ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-header h1,
.page-header h2,
.page-header p {
  margin: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-header h1 {
  color: var(--brand-700);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.page-header p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 14px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.card-header p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.welcome-strip {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .75fr);
  min-height: 176px;
  margin-bottom: 20px;
  border: 1px solid rgb(var(--brand-rgb) / 10%);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 75% 0%, rgb(var(--focus-rgb) / 30%), transparent 36%),
    linear-gradient(120deg, var(--brand-900) 0%, var(--brand-700) 62%, var(--brand-600) 100%);
  color: white;
  box-shadow: 0 12px 30px rgb(var(--brand-rgb) / 13%);
}

.welcome-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 30px 32px;
}

.welcome-copy .eyebrow {
  color: #f1c6d3;
}

.welcome-copy h1 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.welcome-copy p {
  max-width: 610px;
  margin: 12px 0 0;
  color: rgb(255 255 255 / 65%);
  font-size: 14px;
}

.welcome-focus {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 18px;
  padding: 19px 22px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  background: rgb(255 255 255 / 9%);
  backdrop-filter: blur(8px);
}

.welcome-focus > span {
  color: #f1c6d3;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.welcome-focus strong {
  margin: 8px 0 2px;
  font-size: 26px;
  line-height: 1;
}

.welcome-focus p {
  margin: 3px 0 12px;
  color: rgb(255 255 255 / 55%);
  font-size: 11.5px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: rgb(255 255 255 / 12%);
}

.progress-track span {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: #f1c6d3;
}

.welcome-decoration {
  position: absolute;
  top: -85px;
  right: 20%;
  width: 230px;
  height: 230px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
}

.welcome-decoration::after {
  position: absolute;
  inset: 28px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: inherit;
  content: "";
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 15px;
}

.stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}

.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon.green { background: var(--brand-50); color: var(--brand-700); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-icon.gold { background: var(--accent-100); color: var(--accent-700); }
.stat-icon.purple { background: var(--purple-bg); color: var(--purple); }

.stat-copy {
  min-width: 0;
  display: grid;
}

.stat-copy strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-copy span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-trend {
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(285px, .88fr);
  gap: 20px;
}

.dashboard-main,
.dashboard-side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 20px;
}

.task-list-card,
.agenda-card,
.news-card,
.away-card {
  padding: 20px;
}

.task-list {
  display: grid;
}

.task-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #eeece7;
}

.task-row:first-child {
  padding-top: 2px;
  border-top: 0;
}

.task-check {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  background: white;
  color: white;
  cursor: pointer;
}

.task-check .icon {
  width: 12px;
  height: 12px;
  opacity: 0;
}

.task-check:hover {
  border-color: var(--brand-600);
  background: var(--brand-50);
}

.task-row.is-completed .task-check {
  border-color: var(--success);
  background: var(--success);
}

.task-row.is-completed .task-check .icon {
  opacity: 1;
}

.task-row.is-completed .task-title {
  color: var(--text-muted);
  text-decoration: line-through;
}

.task-content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.task-title {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-meta,
.muted-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 10.5px;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 9.5px;
  font-weight: 680;
  white-space: nowrap;
}

.tag.green { background: var(--brand-50); color: var(--brand-700); }
.tag.blue { background: var(--info-bg); color: var(--info); }
.tag.gold { background: var(--accent-100); color: var(--accent-700); }
.tag.red { background: var(--danger-bg); color: var(--danger); }
.tag.purple { background: var(--purple-bg); color: var(--purple); }

.due-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 620;
  white-space: nowrap;
}

.due-date .icon { width: 13px; height: 13px; }
.due-date.urgent { color: var(--danger); }
.due-date.today { color: var(--accent-700); }

.avatar-group {
  display: flex;
  align-items: center;
  padding-left: 6px;
}

.avatar-group .avatar {
  margin-left: -6px;
}

.agenda-list {
  display: grid;
  gap: 2px;
}

.agenda-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid #eeece7;
}

.agenda-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.agenda-time {
  padding-top: 1px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.agenda-detail {
  min-width: 0;
  padding-left: 11px;
  border-left: 3px solid var(--brand-600);
}

.agenda-detail.blue { border-color: #5a8bb8; }
.agenda-detail.gold { border-color: var(--accent-500); }
.agenda-detail.purple { border-color: #8d73bc; }

.agenda-detail strong {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-detail span {
  color: var(--text-muted);
  font-size: 10.5px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-link {
  min-width: 0;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: border var(--motion-normal), box-shadow var(--motion-normal), transform var(--motion-normal);
}

.quick-link:hover {
  border-color: #e2c3cd;
  box-shadow: 0 7px 18px rgb(33 37 41 / 7%);
  transform: translateY(-2px);
}

.quick-link-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.quick-link:nth-child(2) .quick-link-icon { background: var(--info-bg); color: var(--info); }
.quick-link:nth-child(3) .quick-link-icon { background: var(--accent-100); color: var(--accent-700); }
.quick-link:nth-child(4) .quick-link-icon { background: var(--purple-bg); color: var(--purple); }
.quick-link:nth-child(5) .quick-link-icon { background: var(--danger-bg); color: var(--danger); }
.quick-link:nth-child(6) .quick-link-icon { background: var(--success-bg); color: var(--success); }

.quick-link-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.quick-link-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-link-copy span {
  color: var(--text-muted);
  font-size: 9.5px;
}

.news-list {
  display: grid;
  gap: 15px;
}

.news-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
}

.news-thumb {
  position: relative;
  min-height: 60px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.news-thumb::before,
.news-thumb::after {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .16;
  content: "";
}

.news-thumb::before { width: 56px; height: 56px; top: -24px; right: -17px; }
.news-thumb::after { width: 38px; height: 38px; bottom: -20px; left: -10px; }
.news-thumb.gold { background: var(--accent-100); color: var(--accent-700); }
.news-thumb.blue { background: var(--info-bg); color: var(--info); }

.news-copy {
  min-width: 0;
}

.news-copy > span {
  color: var(--brand-700);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.news-copy h3 {
  margin: 2px 0 3px;
  font-size: 12.5px;
  line-height: 1.35;
}

.news-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.away-list {
  display: grid;
  gap: 11px;
}

.away-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.away-person > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

.away-person strong {
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.away-person small {
  color: var(--text-muted);
  font-size: 9.5px;
}

.away-until {
  color: var(--text-secondary);
  font-size: 9.5px;
  font-weight: 650;
}

/* Aufgaben */
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.select-control,
.input-control {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 12.5px;
}

.select-control {
  padding-right: 32px;
  cursor: pointer;
}

.toolbar-spacer { flex: 1; }

.filter-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: white;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: #ddb5c0;
  background: var(--brand-50);
  color: var(--brand-700);
}

.filter-chip .icon { width: 14px; height: 14px; }

.task-area-overview {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.task-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
  gap: 16px;
}

.task-area-card {
  width: 100%;
  min-width: 0;
  min-height: 280px;
  display: grid;
  grid-template-rows: auto minmax(5rem, 1fr) auto auto;
  align-content: stretch;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fbfaf7;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-normal), background var(--motion-normal), box-shadow var(--motion-normal), transform var(--motion-normal);
}

.task-area-card:hover {
  border-color: #e2c3cd;
  background: var(--brand-50);
  box-shadow: 0 8px 20px rgb(33 37 41 / 7%);
  transform: translateY(-1px);
}

.task-area-card:focus-visible {
  outline: 3px solid rgb(var(--focus-rgb) / 28%);
  outline-offset: 2px;
  border-color: var(--focus);
}

.task-area-card.active,
.task-area-card[aria-pressed="true"] {
  border-color: var(--brand-600);
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px rgb(var(--brand-rgb) / 12%);
}

.task-area-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-area-card-top > div:not(.task-area-icon) {
  min-width: 0;
}

.task-area-card-top h2,
.task-area-card-top h3,
.task-area-card-top p {
  margin: 0;
}

.task-area-card-top h2,
.task-area-card-top h3 {
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-area-card-top p {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9.5px;
}

.task-area-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.task-area-card-copy h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.task-area-card-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.task-area-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
}

.task-area-icon .icon {
  width: 18px;
  height: 18px;
}

.task-area-progress {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.task-area-progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 8.5px;
  line-height: 1.3;
}

.task-area-progress-copy strong {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-area-progress-track {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
}

.task-area-progress-track > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-600);
  transition: width var(--motion-normal);
}

.task-area-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 9.5px;
}

.task-area-meta > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.task-area-meta .icon {
  width: 12px;
  height: 12px;
}

.area-filter-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  padding: 9px 11px;
  border: 1px solid #ecd9df;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 10.5px;
}

.area-filter-summary strong {
  color: var(--brand-900);
}

.area-filter-summary .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

#task-area-filter + .select-control {
  display: none;
}

.form-field:has(#task-label) {
  display: none;
}

.task-area-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.task-area-picker > legend {
  margin-bottom: 7px;
  padding: 0;
  font-size: 10.5px;
  font-weight: 680;
}

.task-area-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.task-area-options > label {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fbfaf7;
  cursor: pointer;
  transition: border-color var(--motion-normal), background var(--motion-normal), box-shadow var(--motion-normal), transform var(--motion-normal);
}

.task-area-options > label:hover {
  border-color: #e2c3cd;
  background: var(--brand-50);
  transform: translateY(-1px);
}

.task-area-options > label:has(input:checked) {
  border-color: var(--brand-600);
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px rgb(var(--brand-rgb) / 10%);
}

.task-area-options > label:has(input:focus-visible) {
  outline: 3px solid rgb(var(--focus-rgb) / 24%);
  outline-offset: 2px;
  border-color: var(--focus);
}

.task-area-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-700);
  cursor: pointer;
}

.task-area-options .task-area-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.task-area-options .task-area-icon .icon {
  width: 15px;
  height: 15px;
}

.task-area-icon.blue { background: var(--info-bg); color: var(--info); }
.task-area-icon.purple { background: var(--purple-bg); color: var(--purple); }
.task-area-icon.green { background: var(--success-bg); color: var(--success); }
.task-area-icon.gold { background: var(--accent-100); color: var(--accent-700); }
.task-area-icon.red { background: var(--danger-bg); color: var(--danger); }

.task-area-options > label > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.task-area-options strong {
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-area-options small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 8.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-area-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.task-area-tags:empty {
  display: none;
}

.task-area-tags .tag {
  min-height: 19px;
  padding: 1px 7px;
  font-size: 8.5px;
}

.task-area-tags + .kanban-card-top > .tag {
  display: none;
}

.task-detail-areas {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  padding: 11px 13px;
  border: 1px solid #ecd9df;
  border-radius: 11px;
  background: var(--brand-50);
}

.task-detail-areas .eyebrow {
  margin: 0;
  font-size: 9px;
}

.task-detail-areas > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}



.board-wrap {
  margin-inline: calc(clamp(18px, 3vw, 40px) * -1);
  padding: 2px clamp(18px, 3vw, 40px) 22px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.kanban-board {
  min-width: 1040px;
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 14px;
}

.kanban-column {
  min-height: 520px;
  padding: 12px;
  border: 1px solid #e4e1db;
  border-radius: 15px;
  background: #efede8;
  transition: background var(--motion-normal), border var(--motion-normal);
}

.kanban-column.drag-over {
  border-color: var(--brand-600);
  background: var(--brand-50);
}

.column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 3px 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.backlog { background: #8c9591; }
.status-dot.progress { background: #557fa8; }
.status-dot.review { background: #c1883c; }
.status-dot.done { background: #4e9370; }

.column-header strong {
  font-size: 12.5px;
}

.column-count {
  min-width: 21px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-left: 1px;
  border-radius: 20px;
  background: rgb(255 255 255 / 70%);
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 700;
}

.column-header .icon-button {
  width: 28px;
  height: 28px;
  margin-left: auto;
}

.kanban-cards {
  min-height: 420px;
  display: grid;
  align-content: start;
  gap: 9px;
}

.kanban-card {
  position: relative;
  overflow: hidden;
  padding: 13px 13px 11px 16px;
  border: 1px solid #dfdcd5;
  border-radius: 11px;
  background: white;
  box-shadow: 0 1px 2px rgb(33 37 41 / 5%);
  cursor: grab;
  transition: border var(--motion-normal), box-shadow var(--motion-normal), transform var(--motion-normal), opacity var(--motion-normal);
}

.kanban-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--border-strong);
  content: "";
}

.kanban-card[data-priority="high"]::before { background: var(--danger); }
.kanban-card[data-priority="medium"]::before { background: var(--accent-500); }
.kanban-card[data-priority="low"]::before { background: var(--success); }

.kanban-card:hover {
  border-color: #c8c4bb;
  box-shadow: 0 8px 20px rgb(33 37 41 / 8%);
  transform: translateY(-1px);
}

.kanban-card[role="button"]:not(.dragging),
.kanban-card[data-action="task-detail"]:not(.dragging) {
  cursor: pointer;
}

.kanban-card:focus-visible {
  outline: 3px solid rgb(var(--focus-rgb) / 28%);
  outline-offset: 2px;
  border-color: var(--focus);
  box-shadow: 0 10px 24px rgb(33 37 41 / 11%);
}

.kanban-card:focus-within {
  border-color: #e2c3cd;
}

.kanban-card button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}


.kanban-card.dragging {
  opacity: .55;
  cursor: grabbing;
  transform: rotate(1deg);
}

.kanban-card-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.kanban-card-top .tag { margin-right: auto; }

.card-more {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.card-more:hover { background: var(--bg-subtle); color: var(--text-primary); }
.card-more .icon { width: 15px; height: 15px; }

.kanban-card h3 {
  margin: 9px 0 10px;
  font-size: 12.5px;
  line-height: 1.42;
}

.kanban-card-description {
  display: -webkit-box;
  overflow: hidden;
  margin: -4px 0 10px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kanban-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 9.5px;
}

.kanban-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kanban-card-stats .icon { width: 12px; height: 12px; }

.mini-progress {
  height: 4px;
  margin: -1px 0 10px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--bg-subtle);
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-600);
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid #f0eee9;
}

.advance-task {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
}

.advance-task:hover { border-color: var(--brand-600); color: var(--brand-700); }
.advance-task .icon { width: 13px; height: 13px; }

.column-add {
  width: 100%;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
  border: 1px dashed #c9c5bc;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
}

.column-add:hover { border-color: var(--brand-600); background: rgb(255 255 255 / 40%); color: var(--brand-700); }
.column-add .icon { width: 14px; height: 14px; }

.empty-column {
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed #d3d0c8;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 10.5px;
  text-align: center;
}

/* Kalender */
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.calendar-card {
  min-width: 0;
  overflow: hidden;
}

.calendar-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.calendar-toolbar h2 {
  min-width: 150px;
  margin: 0 8px;
  font-size: 17px;
}

.calendar-toolbar [data-action="calendar-prev"] .icon {
  transform: rotate(180deg);
}

.view-switcher {
  display: inline-flex;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-app);
}

.view-switcher button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
}

.view-switcher button.active {
  background: white;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
}

.calendar-weekdays {
  border-bottom: 1px solid var(--border);
  background: #fbfaf8;
}

.calendar-weekdays div {
  padding: 9px 10px;
  border-left: 1px solid #efede8;
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.calendar-weekdays div:first-child { border-left: 0; }

.calendar-day {
  min-height: 105px;
  padding: 8px;
  border-right: 1px solid #eeece7;
  border-bottom: 1px solid #eeece7;
  background: white;
}

.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.other-month { background: #faf9f6; color: #aaa; }
.calendar-day.today { background: #fbf2f4; box-shadow: inset 0 0 0 1px #e2c3cd; }

.day-number {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 650;
}

.calendar-day.today .day-number {
  background: var(--brand-700);
  color: white;
}

.calendar-event {
  width: 100%;
  min-height: 21px;
  display: block;
  overflow: hidden;
  margin: 3px 0;
  padding: 3px 6px;
  border: 0;
  border-left: 2px solid var(--brand-600);
  border-radius: 4px;
  background: var(--brand-50);
  color: var(--brand-900);
  font-size: 8.8px;
  font-weight: 650;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.calendar-event.blue { border-color: #5a8bb8; background: var(--info-bg); color: #285d86; }
.calendar-event.gold { border-color: var(--accent-500); background: var(--accent-100); color: #78501c; }
.calendar-event.purple { border-color: #8d73bc; background: var(--purple-bg); color: #63468c; }
.calendar-event.red { border-color: var(--danger); background: var(--danger-bg); color: #8b3e3a; }

.calendar-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.calendar-sidebar .card { padding: 18px; }

.mini-date {
  width: 49px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  text-align: center;
}

.mini-date span {
  display: block;
  padding: 2px;
  background: var(--brand-700);
  color: white;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.mini-date strong {
  display: block;
  padding: 3px 0 4px;
  font-size: 17px;
}

.upcoming-event {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #eeece7;
}

.upcoming-event:first-of-type { padding-top: 0; border-top: 0; }

.upcoming-copy {
  min-width: 0;
  display: grid;
  align-content: center;
}

.upcoming-copy strong {
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-copy span {
  color: var(--text-muted);
  font-size: 9.5px;
}

.calendar-legend {
  display: grid;
  gap: 9px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 10.5px;
}

.legend-item::before {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--brand-600);
  content: "";
}

.legend-item.blue::before { background: #5a8bb8; }
.legend-item.gold::before { background: var(--accent-500); }
.legend-item.purple::before { background: #8d73bc; }

/* Personen */
.finder-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr);
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
  padding: 28px 30px;
  border: 1px solid #e2c3cd;
  border-radius: var(--radius-xl);
  background: linear-gradient(115deg, #f6e7ea, #fbf7f8 68%, #fae4df);
}

.finder-hero::after {
  position: absolute;
  right: -30px;
  bottom: -74px;
  width: 230px;
  height: 230px;
  border: 30px solid rgb(var(--focus-rgb) / 8%);
  border-radius: 50%;
  content: "";
}

.finder-copy { position: relative; z-index: 1; }

.finder-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 33px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.finder-copy p {
  margin: 7px 0 17px;
  color: var(--text-secondary);
  font-size: 12.5px;
}

.finder-search {
  max-width: 660px;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #e5ccd3;
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 18px rgb(var(--brand-rgb) / 8%);
}

.finder-search .icon { color: var(--brand-600); }

.finder-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font-size: 13px;
}

.finder-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.finder-suggestions button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgb(var(--brand-rgb) / 12%);
  border-radius: 20px;
  background: rgb(255 255 255 / 55%);
  color: var(--brand-700);
  font-size: 9.5px;
  font-weight: 650;
  cursor: pointer;
}

.finder-suggestions button:hover { background: white; }

.finder-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.avatar-orbit {
  position: relative;
  width: 170px;
  height: 116px;
}

.avatar-orbit .avatar {
  position: absolute;
  box-shadow: 0 6px 16px rgb(33 37 41 / 12%);
}

.avatar-orbit .avatar:nth-child(1) { top: 25px; left: 57px; width: 60px; height: 60px; font-size: 16px; z-index: 3; }
.avatar-orbit .avatar:nth-child(2) { top: 0; left: 9px; }
.avatar-orbit .avatar:nth-child(3) { top: 3px; right: 4px; }
.avatar-orbit .avatar:nth-child(4) { bottom: 0; left: 1px; }
.avatar-orbit .avatar:nth-child(5) { right: 0; bottom: 0; }

.people-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.people-toolbar h2 {
  margin: 0 auto 0 0;
  font-size: 18px;
}

.people-result-count {
  color: var(--text-muted);
  font-size: 11px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.person-card {
  min-width: 0;
  padding: 17px;
  transition: border var(--motion-normal), box-shadow var(--motion-normal), transform var(--motion-normal);
}

.person-card:hover {
  border-color: #e2c3cd;
  box-shadow: 0 9px 24px rgb(33 37 41 / 7%);
  transform: translateY(-2px);
}

.person-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.person-identity {
  min-width: 0;
  flex: 1;
  display: grid;
}

.person-identity strong {
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-identity span {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--success);
  font-size: 9px;
  font-weight: 650;
}

.availability::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.availability.away { color: var(--accent-700); }
.availability.busy { color: var(--danger); }

.person-more {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.person-more:hover { background: var(--bg-subtle); }
.person-more .icon { width: 16px; height: 16px; }

.person-location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 13px 0 10px;
  color: var(--text-muted);
  font-size: 9.5px;
}

.person-location .icon { width: 12px; height: 12px; }

.responsibility-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.responsibility-tags {
  min-height: 49px;
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}

.person-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #efede8;
}

.person-actions .button {
  min-height: 34px;
  padding: 0 9px;
  font-size: 10.5px;
}

.person-actions .icon { width: 13px; height: 13px; }

.subpage-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
  padding: 16px 18px;
  border: 1px solid #ecd9df;
  border-radius: 13px;
  background: linear-gradient(110deg, var(--brand-50), #fbfaf7);
}

.subpage-intro h2 {
  margin: 0;
  font-size: 15px;
}

.subpage-intro p {
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: 10.5px;
}

.responsibility-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.responsibility-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 17px;
  cursor: pointer;
  transition: border var(--motion-normal), transform var(--motion-normal), box-shadow var(--motion-normal);
}

.responsibility-card:hover {
  border-color: #e2c3cd;
  box-shadow: 0 8px 20px rgb(33 37 41 / 7%);
  transform: translateY(-1px);
}

.responsibility-topic-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.responsibility-card:nth-child(2n) .responsibility-topic-icon { background: var(--info-bg); color: var(--info); }
.responsibility-card:nth-child(3n) .responsibility-topic-icon { background: var(--accent-100); color: var(--accent-700); }
.responsibility-topic-icon .icon { width: 19px; height: 19px; }

.responsibility-copy {
  min-width: 0;
}

.responsibility-copy > span:first-child {
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.responsibility-copy h3 {
  margin: 3px 0 8px;
  font-size: 13px;
}

.responsibility-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.responsibility-contact > span:last-child {
  min-width: 0;
  display: grid;
}

.responsibility-contact strong,
.responsibility-contact small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.responsibility-contact strong { font-size: 10.5px; }
.responsibility-contact small { color: var(--text-muted); font-size: 8.5px; }

.org-chart-card {
  overflow-x: auto;
  padding: 28px;
}

.org-chart {
  min-width: 760px;
  display: grid;
  justify-items: center;
}

.org-level {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.org-level.departments {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(155px, 1fr));
  gap: 14px;
}

.org-connector {
  width: 1px;
  height: 26px;
  background: var(--border-strong);
}

.org-branch-line {
  width: 76%;
  height: 18px;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
}

.org-node {
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
}

.org-node:hover { border-color: #e2c3cd; }
.org-node.executive { min-width: 240px; border-color: #e2c3cd; background: var(--brand-50); }
.org-node > span:last-child { min-width: 0; display: grid; }
.org-node strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.org-node small { overflow: hidden; color: var(--text-muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }

.org-department {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.org-department > strong {
  display: block;
  padding: 0 4px 4px;
  color: var(--brand-700);
  font-size: 9px;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.no-results {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 30px;
  text-align: center;
}

.no-results-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 15px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.no-results h3 { margin: 0; font-size: 15px; }
.no-results p { margin: 4px 0 12px; color: var(--text-muted); font-size: 11px; }

/* Wissen & Mitteilungen */
.knowledge-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.category-card {
  align-self: start;
  padding: 12px;
}

.category-card strong {
  display: block;
  padding: 6px 8px 9px;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.category-button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.category-button:hover,
.category-button.active { background: var(--brand-50); color: var(--brand-700); font-weight: 680; }
.category-button .icon { width: 15px; height: 15px; }

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.doc-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border var(--motion-normal), transform var(--motion-normal), box-shadow var(--motion-normal);
}

.doc-card:hover { border-color: #e2c3cd; transform: translateY(-1px); box-shadow: 0 6px 17px rgb(33 37 41 / 6%); }

.doc-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.doc-card:nth-child(2n) .doc-icon { background: var(--info-bg); color: var(--info); }
.doc-card:nth-child(3n) .doc-icon { background: var(--accent-100); color: var(--accent-700); }
.doc-icon .icon { width: 18px; height: 18px; }

.doc-copy { min-width: 0; }
.doc-copy > span { color: var(--brand-700); font-size: 8.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.doc-copy h3 { margin: 3px 0 4px; font-size: 12.5px; line-height: 1.35; }
.doc-copy p { margin: 0 0 8px; color: var(--text-muted); font-size: 9.5px; line-height: 1.45; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--text-muted); font-size: 8.5px; }
.doc-card > .icon { width: 15px; height: 15px; color: var(--text-muted); }

.announcement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  gap: 18px;
}

.announcement-list { display: grid; gap: 12px; }

.announcement-card {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  overflow: hidden;
}

.announcement-accent { background: var(--brand-600); }
.announcement-card.gold .announcement-accent { background: var(--accent-500); }
.announcement-card.blue .announcement-accent { background: #5a8bb8; }

.announcement-body { padding: 18px 20px; }
.announcement-kicker { display: flex; align-items: center; gap: 8px; color: var(--brand-700); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.announcement-body h2 { margin: 7px 0 7px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.announcement-body p { margin: 0 0 14px; color: var(--text-secondary); font-size: 11px; line-height: 1.55; }
.announcement-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #efede8; }
.author { display: flex; align-items: center; gap: 7px; }
.author span { display: grid; font-size: 9px; }
.author small { color: var(--text-muted); font-size: 8.5px; }

.pulse-card,
.birthday-card { padding: 20px; }
.pulse-options { display: flex; gap: 7px; margin-top: 14px; }
.pulse-options button { width: 39px; height: 39px; border: 1px solid var(--border); border-radius: 10px; background: white; font-size: 18px; cursor: pointer; }
.pulse-options button:hover { border-color: var(--brand-600); background: var(--brand-50); transform: translateY(-1px); }
.birthday-person { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.birthday-person span:nth-child(2) { display: grid; }
.birthday-person strong { font-size: 11.5px; }
.birthday-person small { color: var(--text-muted); font-size: 9.5px; }

/* Hilfe, Tickets & Wiki */
.support-hero {
  position: relative;
  overflow: hidden;
  min-height: 228px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 30px 34px;
  border: 1px solid rgb(var(--brand-rgb) / 12%);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 0%, rgb(var(--focus-rgb) / 34%), transparent 34%),
    linear-gradient(125deg, #f2e0dc 0%, #e7e2e6 58%, #fadeda 100%);
  box-shadow: 0 10px 28px rgb(var(--brand-rgb) / 7%);
}

.support-hero::after {
  position: absolute;
  right: -65px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgb(var(--brand-rgb) / 8%);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgb(255 255 255 / 9%), 0 0 0 76px rgb(255 255 255 / 7%);
  content: "";
}

.support-hero > div,
.support-hero-icon { position: relative; z-index: 1; }
.support-hero h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -.025em; }
.support-hero p { max-width: 700px; margin: 5px 0 17px; color: var(--text-secondary); font-size: 12.5px; }

.support-search {
  width: min(660px, 100%);
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #e2c3cd;
  border-radius: 12px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 6px 18px rgb(var(--brand-rgb) / 9%);
  transition: border-color var(--motion-normal), box-shadow var(--motion-normal);
}

.support-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(var(--focus-rgb) / 13%), 0 7px 20px rgb(var(--brand-rgb) / 10%); }
.support-search .icon { color: var(--brand-600); }
.support-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: 13px; }
.support-search input::placeholder { color: var(--text-muted); }

.support-hero-icon {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  margin-right: 28px;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 31px;
  background: rgb(255 255 255 / 48%);
  color: var(--brand-700);
  box-shadow: 0 14px 34px rgb(var(--brand-rgb) / 12%), inset 0 1px rgb(255 255 255 / 70%);
  transform: rotate(3deg);
}

.support-hero-icon .icon { width: 48px; height: 48px; stroke-width: 1.45; }

.support-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.support-channel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  transition: border-color var(--motion-normal), box-shadow var(--motion-normal), transform var(--motion-normal);
}

.support-channel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--info);
  content: "";
}

.support-channel.gold::before { background: var(--accent-500); }
.support-channel.green::before { background: var(--success); }
.support-channel.purple::before { background: var(--purple); }
.support-channel:not(.planned):hover { border-color: #e2c3cd; box-shadow: 0 8px 20px rgb(33 37 41 / 7%); transform: translateY(-2px); }
.support-channel.planned { background: linear-gradient(135deg, #fff, #faf9f6); }
.support-channel.planned > :not(.channel-top) { opacity: .72; }

.channel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.channel-icon,
.ticket-channel-icon {
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--info-bg);
  color: var(--info);
}

.channel-icon { width: 40px; height: 40px; }
.channel-icon .icon { width: 19px; height: 19px; }
.support-channel.gold .channel-icon,
.channel-icon.gold,
.ticket-channel-icon.gold { background: var(--accent-100); color: var(--accent-700); }
.support-channel.green .channel-icon,
.channel-icon.green,
.ticket-channel-icon.green { background: var(--success-bg); color: var(--success); }
.support-channel.purple .channel-icon,
.channel-icon.purple,
.ticket-channel-icon.purple { background: var(--purple-bg); color: var(--purple); }

.support-channel h3 { margin: 0 0 1px; font-size: 14px; letter-spacing: -.01em; }
.channel-address { color: var(--brand-700); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 9px; font-weight: 720; }
.support-channel > p { min-height: 42px; margin: 9px 0 16px; color: var(--text-secondary); font-size: 9.5px; line-height: 1.5; }
.support-channel footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid #efede8; }
.support-channel footer > span { color: var(--text-muted); font-size: 8.5px; white-space: nowrap; }
.support-channel footer .button { flex: 0 0 auto; }
.support-channel footer .button:disabled { cursor: not-allowed; opacity: .62; }

.support-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  margin-top: 20px;
}

.support-tickets-card,
.support-wiki-card { min-width: 0; padding: 19px; }
.ticket-list { display: grid; }

.ticket-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 3px;
  border: 0;
  border-top: 1px solid #efede8;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-fast), padding var(--motion-fast);
}

.ticket-row:first-child { padding-top: 2px; border-top: 0; }
.ticket-row:last-child { padding-bottom: 2px; }
.ticket-row:hover { margin-inline: -8px; padding-inline: 8px; border-radius: 9px; background: var(--bg-hover); }
.ticket-channel-icon { width: 34px; height: 34px; }
.ticket-channel-icon .icon { width: 16px; height: 16px; }

.ticket-main { min-width: 0; display: grid; gap: 3px; }
.ticket-main > span:first-child { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.ticket-main strong { overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-main small { flex: 0 0 auto; color: var(--text-muted); font-size: 8px; }
.ticket-snippet { overflow: hidden; color: var(--text-muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-assignee { display: flex; align-items: center; gap: 5px; }
.ticket-assignee small { max-width: 74px; overflow: hidden; color: var(--text-secondary); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row time { color: var(--text-muted); font-size: 8px; white-space: nowrap; }
.ticket-row > .icon { width: 14px; height: 14px; color: var(--text-muted); }
.status-badge.waiting { background: var(--info-bg); color: var(--info); }
.status-badge.resolved,
.status-badge.closed { background: var(--success-bg); color: var(--success); }

.support-article-list { display: grid; }
.support-article-list > button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border: 0;
  border-top: 1px solid #efede8;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.support-article-list > button:first-child { padding-top: 2px; border-top: 0; }
.support-article-list > button:hover { color: var(--brand-700); }
.support-article-list .doc-icon { width: 34px; height: 34px; }
.support-article-list > button > span:nth-child(2) { min-width: 0; display: grid; }
.support-article-list strong { overflow: hidden; color: var(--text-primary); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.support-article-list small { overflow: hidden; color: var(--text-muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.support-article-list > button > .icon { width: 14px; height: 14px; color: var(--text-muted); }

.ticket-table-card { overflow: hidden; }
.ticket-list-large .ticket-row { padding: 14px 18px; }
.ticket-list-large .ticket-row:first-child { padding-top: 14px; }
.ticket-list-large .ticket-row:last-child { padding-bottom: 14px; }
.ticket-list-large .ticket-row:hover { margin: 0; border-radius: 0; }

.ticket-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
  gap: 18px;
}

.ticket-form-card { padding: 22px; }
.ticket-form-card .form-field textarea { min-height: 150px; line-height: 1.55; }
.ticket-form-note { display: flex; align-items: center; gap: 7px; margin-top: 15px; padding: 10px 12px; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); font-size: 9px; }
.ticket-form-note .icon { width: 14px; height: 14px; }
.ticket-form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.ticket-help-card { padding: 18px; }
.ticket-help-card h3 { margin: 12px 0 4px; font-size: 13px; }
.ticket-help-card > p { margin: 0 0 13px; color: var(--text-secondary); font-size: 9.5px; line-height: 1.55; }

.response-times { display: grid; gap: 0; margin-top: 9px; }
.response-times > span { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; padding: 9px 0; border-top: 1px solid #efede8; }
.response-times > span:first-child { border-top: 0; }
.response-times i { grid-row: 1 / 3; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.response-times i.warning { background: var(--warning); }
.response-times i.danger { background: var(--danger); }
.response-times strong { font-size: 9.5px; }
.response-times small { color: var(--text-muted); font-size: 8.5px; }

.systems-grid { margin-bottom: 18px; }
.integration-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-color: #ead5dc;
  background: linear-gradient(125deg, white, var(--brand-50));
}

.integration-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-900);
  color: white;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.03em;
  box-shadow: 0 7px 16px rgb(var(--brand-rgb) / 18%);
}

.integration-summary h2 { margin: 0; font-size: 15px; }
.integration-summary p { max-width: 850px; margin: 3px 0 0; color: var(--text-secondary); font-size: 9.5px; line-height: 1.5; }

/* Wiki- und FreeScout-Wissensansichten */
.wiki-toolbar,
.knowledge-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.wiki-search { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; }
.wiki-search .icon { width: 17px; height: 17px; color: var(--text-muted); }
.wiki-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.wiki-toolbar > span { margin-left: auto; color: var(--text-muted); font-size: 9px; white-space: nowrap; }
.wiki-source-switch { display: inline-flex; align-items: center; padding: 3px; border-radius: 9px; background: var(--bg-subtle); }
.wiki-source-switch a { min-height: 29px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 7px; color: var(--text-secondary); font-size: 9px; font-weight: 650; white-space: nowrap; }
.wiki-source-switch a:hover { color: var(--text-primary); }
.wiki-source-switch a.active { background: white; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.wiki-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  text-align: left;
  transition: border-color var(--motion-normal), box-shadow var(--motion-normal), transform var(--motion-normal);
}

button.wiki-card { width: 100%; cursor: pointer; }
.wiki-card:hover { border-color: #e2c3cd; box-shadow: 0 8px 20px rgb(33 37 41 / 7%); transform: translateY(-2px); }
.wiki-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wiki-source,
.source-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: var(--radius-pill); background: var(--brand-50); color: var(--brand-700); font-size: 8px; font-weight: 730; }
.wiki-source.freescout,
.source-badge.freescout { background: var(--info-bg); color: var(--info); }
.wiki-category { margin-bottom: 4px; color: var(--brand-700); font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.wiki-card h2,
.wiki-card h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.35; }
.wiki-card > p { margin: 0 0 15px; color: var(--text-secondary); font-size: 9.5px; line-height: 1.55; }
.wiki-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #efede8; color: var(--text-muted); font-size: 8.5px; }
.wiki-card footer > span:first-child { min-width: 0; display: flex; align-items: center; gap: 7px; }
.wiki-card footer > span:first-child > span { min-width: 0; display: grid; }
.wiki-card footer strong,
.wiki-card footer small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-card footer strong { color: var(--text-primary); font-size: 8.5px; }
.wiki-card footer small { color: var(--text-muted); font-size: 8px; }
.wiki-card footer > .icon { width: 14px; height: 14px; color: var(--brand-600); }
.wiki-empty { grid-column: 1 / -1; }

.wiki-article-meta,
.ticket-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; color: var(--text-muted); font-size: 9px; }
.wiki-article-content { color: var(--text-secondary); font-size: 11px; line-height: 1.7; }
.wiki-article-content h3 { margin: 20px 0 7px; color: var(--text-primary); font-size: 14px; }
.wiki-article-content p { margin: 0 0 12px; }
.wiki-article-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* FreeScout-Konfiguration im Adminbereich */
.integration-settings,
.admin-integration-layout { max-width: 980px; display: grid; gap: 14px; }
.integration-settings-card,
.integration-config-card { padding: 20px; }
.integration-provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.integration-provider {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  cursor: pointer;
}

.integration-provider:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 2px rgb(var(--brand-rgb) / 8%); }
.integration-provider input { accent-color: var(--brand-700); }
.integration-provider > span { min-width: 0; display: grid; }
.integration-provider strong { font-size: 10.5px; }
.integration-provider small { color: var(--text-muted); font-size: 8.5px; }

.integration-callout,
.security-callout,
.integration-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid #ead5dc;
  border-radius: 11px;
  background: var(--brand-50);
}

.integration-callout.warning,
.security-callout.warning { border-color: #ecd7ac; background: var(--warning-bg); }
.integration-callout > .icon,
.security-callout > .icon,
.integration-notice > .icon { width: 18px; height: 18px; color: var(--brand-700); }
.integration-callout.warning > .icon,
.security-callout.warning > .icon { color: var(--warning); }
.integration-callout strong,
.security-callout strong,
.integration-notice strong { display: block; font-size: 10.5px; }
.integration-callout p,
.security-callout p,
.integration-notice p { margin: 2px 0 0; color: var(--text-secondary); font-size: 9px; line-height: 1.55; }

.integration-callout { margin-bottom: 14px; }
.integration-callout.connected { border-color: #a9cfba; background: var(--success-bg); }
.integration-callout.pending { border-color: #ead7af; background: var(--warning-bg); }
.integration-callout > .stat-icon { align-self: center; }

.integration-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.integration-status-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 17px;
}

.integration-status-card .eyebrow { margin-bottom: 1px; font-size: 8px; }
.integration-status-card h2 { margin: 0; font-size: 13px; }
.integration-status-card p { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--text-secondary); font-size: 9px; line-height: 1.5; }
.integration-form { max-width: 980px; }

.mailbox-mapping,
.mailbox-mapping-list { display: grid; gap: 8px; }
.mailbox-mapping-list > label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(120px, 170px);
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #efede8;
}

.mailbox-mapping-list > label:first-child { padding-top: 0; border-top: 0; }
.mailbox-mapping-list > label > span:nth-child(2) { min-width: 0; display: grid; }
.mailbox-mapping-list > label strong { font-size: 10px; }
.mailbox-mapping-list > label small { overflow: hidden; color: var(--text-muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-mapping-list input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
  background: white;
  font-size: 10px;
}

.mailbox-mapping-list input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(var(--focus-rgb) / 12%); }
.mailbox-mapping-list input:disabled { background: var(--bg-subtle); cursor: not-allowed; opacity: .65; }
.mailbox-mapping-row { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #efede8; }
.mailbox-mapping-row:first-child { border-top: 0; }
.mailbox-mapping-row > span { min-width: 0; display: grid; }
.mailbox-mapping-row strong { font-size: 10px; }
.mailbox-mapping-row small { color: var(--text-muted); font-size: 8.5px; }

/* Ticket-, Hilfe- und Artikel-Dialoge */
.modal.modal-wide,
.ticket-detail-modal,
.help-center-modal,
.wiki-detail-modal { width: min(760px, 100%); }
.ticket-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ticket-detail-number { color: var(--brand-700); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 9px; font-weight: 720; }
.ticket-detail-description { margin: 16px 0; padding: 14px; border-radius: 10px; background: #faf9f6; color: var(--text-secondary); font-size: 10.5px; line-height: 1.65; white-space: pre-wrap; }
.ticket-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 15px 0; }
.ticket-detail-field { min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 9px; }
.ticket-detail-field small { display: block; color: var(--text-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.ticket-detail-field strong { display: block; margin-top: 2px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-comments { display: grid; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.ticket-comments > h3 { margin: 0; font-size: 12px; }
.ticket-comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; }
.ticket-comment-body { min-width: 0; padding: 10px 12px; border-radius: 4px 11px 11px 11px; background: var(--bg-subtle); }
.ticket-comment-body > div { display: flex; justify-content: space-between; gap: 10px; }
.ticket-comment-body strong { font-size: 9.5px; }
.ticket-comment-body time { color: var(--text-muted); font-size: 8px; }
.ticket-comment-body p { margin: 4px 0 0; color: var(--text-secondary); font-size: 9.5px; line-height: 1.55; white-space: pre-wrap; }
.ticket-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 10px; }
.ticket-comment-form textarea { min-height: 66px; resize: vertical; }

.ticket-detail-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-detail-summary > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ticket-description { margin: 15px 0; padding: 14px; border: 1px solid #ebe8e1; border-radius: 10px; background: #faf9f6; color: var(--text-secondary); font-size: 10.5px; line-height: 1.65; white-space: pre-wrap; }
.ticket-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ticket-detail-meta > span { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; }
.ticket-detail-meta > span > small { grid-column: 1 / -1; color: var(--text-muted); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.ticket-detail-meta > span > strong { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-conversation { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.ticket-conversation > h3 { margin: 0 0 10px; font-size: 12px; }
.ticket-conversation > article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; margin-top: 9px; }
.ticket-conversation > article > div { min-width: 0; padding: 10px 12px; border-radius: 4px 11px 11px 11px; background: var(--bg-subtle); }
.ticket-conversation article header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-conversation article strong { font-size: 9.5px; }
.ticket-conversation article time { color: var(--text-muted); font-size: 8px; }
.ticket-conversation article p { margin: 4px 0 0; color: var(--text-secondary); font-size: 9.5px; line-height: 1.55; white-space: pre-wrap; }
.ticket-comment-form { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 6px; margin-top: 14px; }
.ticket-comment-form > label { font-size: 9.5px; font-weight: 680; }
.ticket-comment-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.ticket-comment-form textarea { width: 100%; min-height: 70px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; outline: 0; resize: vertical; font-size: 10.5px; }
.ticket-comment-form textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(var(--focus-rgb) / 12%); }

.help-channel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.help-channel,
.help-channel-list > article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.help-channel > span:nth-child(2) { min-width: 0; display: grid; }
.help-channel strong { font-size: 10px; }
.help-channel small { overflow: hidden; color: var(--text-muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.help-center-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }

.help-channel-list > article > span:nth-child(2) { min-width: 0; display: grid; }
.help-channel-list > article strong { font-size: 10px; }
.help-channel-list > article small { overflow: hidden; color: var(--text-muted); font-size: 8.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.help-channel-list > article .button:disabled { cursor: not-allowed; opacity: .6; }
.help-search-launch {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e2c3cd;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  text-align: left;
  cursor: pointer;
}

.help-search-launch:hover { border-color: var(--brand-600); background: #f7e7eb; }
.help-search-launch > .icon:first-child { width: 22px; height: 22px; }
.help-search-launch > .icon:last-child { width: 15px; height: 15px; }
.help-search-launch > span { min-width: 0; display: grid; }
.help-search-launch strong { color: var(--text-primary); font-size: 11px; }
.help-search-launch small { overflow: hidden; color: var(--text-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.wiki-article-meta { justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.wiki-article-meta > span:first-child { display: flex; align-items: center; gap: 8px; }
.wiki-article-meta > span:first-child > span { display: grid; }
.wiki-article-meta strong { font-size: 9.5px; }
.wiki-article-meta small { color: var(--text-muted); font-size: 8.5px; }
.wiki-lead { margin: 17px 0 10px; color: var(--text-primary); font-size: 12px; font-weight: 650; line-height: 1.55; }
.wiki-content { color: var(--text-secondary); font-size: 10.5px; line-height: 1.75; }
.wiki-article-detail .security-callout { margin-top: 20px; }

/* Administration */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 16px;
}

.admin-stat > span:last-child {
  min-width: 0;
  display: grid;
}

.admin-stat strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.admin-stat > span:last-child > span {
  font-size: 10.5px;
  font-weight: 680;
}

.admin-stat small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, .6fr);
  gap: 18px;
}

.admin-activity-card,
.admin-system-card,
.admin-next-card {
  padding: 19px;
}

.audit-list {
  display: grid;
}

.audit-entry {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #efede8;
}

.audit-entry:first-child { padding-top: 0; border-top: 0; }

.audit-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.audit-icon .icon { width: 15px; height: 15px; }
.audit-entry > span:nth-child(2) { min-width: 0; display: grid; }
.audit-entry strong { overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.audit-entry small { overflow: hidden; color: var(--text-muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.audit-entry time { color: var(--text-muted); font-size: 8.5px; white-space: nowrap; }
.admin-empty-line { padding: 34px; color: var(--text-muted); font-size: 10.5px; text-align: center; }

.status-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 8.5px;
  font-weight: 730;
  white-space: nowrap;
}

.status-badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge.active { background: var(--success-bg); color: var(--success); }
.status-badge.blocked { background: var(--danger-bg); color: var(--danger); }
.status-badge.pending { background: var(--warning-bg); color: var(--warning); }

.system-checks {
  display: grid;
  gap: 9px;
}

.system-checks span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 9.5px;
  font-weight: 620;
}

.system-checks span.warning { color: var(--warning); }
.system-checks .icon { width: 13px; height: 13px; }

.admin-next-card > h3 { margin: 13px 0 5px; font-size: 14px; }
.admin-next-card > p { margin: 0 0 13px; color: var(--text-secondary); font-size: 9.5px; line-height: 1.55; }

.admin-toolbar {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 9px 12px;
}

.admin-toolbar > span {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 9.5px;
}

.admin-search {
  width: min(410px, 50vw);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fbfaf8;
}

.admin-search .icon { width: 16px; height: 16px; color: var(--text-muted); }
.admin-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 11px; }

.admin-table-card {
  overflow: hidden;
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: #faf9f6;
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #efede8;
  color: var(--text-secondary);
  font-size: 10px;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #fcfbf9; }

.account-person {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-person > span:last-child { min-width: 0; display: grid; }
.account-person strong { overflow: hidden; color: var(--text-primary); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.account-person small { overflow: hidden; color: var(--text-muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }

.account-role-select {
  height: 34px;
  padding: 0 25px 0 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text-primary);
  font-size: 9.5px;
}

.last-login { color: var(--text-muted); white-space: nowrap; }
.admin-table .button:disabled { opacity: .45; cursor: not-allowed; }

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.role-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.role-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--brand-600);
  content: "";
}

.role-card.manager::before { background: var(--info); }
.role-card.admin::before { background: var(--accent-500); }

.role-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.role-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); }
.role-card.manager .role-icon { background: var(--info-bg); color: var(--info); }
.role-card.admin .role-icon { background: var(--accent-100); color: var(--accent-700); }
.role-icon .icon { width: 18px; height: 18px; }
.role-count { color: var(--text-muted); font-size: 8.5px; }
.role-card h2 { margin: 16px 0 4px; font-size: 16px; }
.role-card > p { min-height: 34px; margin: 0 0 14px; color: var(--text-secondary); font-size: 9.5px; line-height: 1.5; }
.permission-list { display: grid; gap: 7px; padding-top: 13px; border-top: 1px solid #efede8; }
.permission-list span { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 9px; }
.permission-list .icon { width: 12px; height: 12px; color: var(--success); }

.permission-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 15px;
}

.permission-note strong { font-size: 11px; }
.permission-note p { margin: 2px 0 0; color: var(--text-muted); font-size: 9px; }

.invite-code { display: grid; }
.invite-code strong { color: var(--text-primary); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .03em; }
.invite-code small { color: var(--text-muted); font-size: 8.5px; }

.admin-settings-layout {
  max-width: 900px;
  display: grid;
  gap: 14px;
}

.settings-section { padding: 20px; }
.setting-toggle {
  grid-column: 1 / -1;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.setting-toggle > span { min-width: 0; display: grid; }
.setting-toggle strong { font-size: 10.5px; }
.setting-toggle small { color: var(--text-muted); font-size: 8.5px; }
.setting-toggle input { width: 36px; height: 20px; flex: 0 0 auto; accent-color: var(--brand-700); }

.settings-footer {
  position: sticky;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid #ead5dc;
  border-radius: 12px;
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.settings-footer > span { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 9px; }
.settings-footer .icon { width: 13px; height: 13px; color: var(--success); }

.branding-settings-form { max-width: 1120px; }
.branding-editor-card { padding: 26px; }
.superadmin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--brand-600) 24%, white);
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 8.5px;
  font-weight: 780;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.superadmin-badge .icon { width: 13px; height: 13px; }
.branding-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: 22px;
}
.branding-controls { min-width: 0; }
.branding-color-fields {
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
}
.branding-color-picker { display: grid; gap: 7px; color: var(--text-primary); font-size: 10px; font-weight: 700; }
.branding-picker-shell {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fcfbf9;
}
.branding-picker-shell input[type="color"] {
  width: 48px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
.branding-picker-shell input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.branding-picker-shell input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.branding-picker-shell input[type="color"]::-moz-color-swatch { border: 0; border-radius: 7px; }
.branding-picker-shell strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: .025em; }
.branding-contrast-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 20px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 650;
}
.branding-contrast-status .icon { width: 14px; height: 14px; }
.branding-contrast-status.valid { border-color: #b7dcc7; background: var(--success-bg); color: var(--success); }
.branding-contrast-status.invalid { border-color: #efc7c3; background: var(--danger-bg); color: var(--danger); }
.branding-presets { display: grid; gap: 8px; }
.branding-presets > div { display: flex; flex-wrap: wrap; gap: 8px; }
.branding-preset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 9px 5px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 670;
  transition: border-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}
.branding-preset:hover { border-color: var(--brand-600); color: var(--brand-800); transform: translateY(-1px); }
.branding-preset i { width: 22px; height: 22px; flex: 0 0 auto; border: 2px solid white; border-radius: 50%; background: var(--preset-color); box-shadow: 0 0 0 1px rgb(33 37 41 / 14%); }
.branding-reset { margin-top: 15px; }
.branding-reset .icon { width: 13px; height: 13px; }
.branding-security-note { margin-top: 22px; }
.branding-preview {
  min-width: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--brand-600) 18%, var(--border));
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgb(var(--focus-rgb) / 13%), transparent 34%),
    linear-gradient(140deg, var(--brand-50), white 68%);
  box-shadow: 0 18px 42px rgb(var(--brand-rgb) / 11%);
}
.branding-preview-top { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--brand-900); }
.branding-preview-top .brand-mark { width: 33px; height: 33px; border-radius: 9px; font-size: 16px; }
.branding-preview-top > span:last-child { display: grid; }
.branding-preview-top strong { font-family: Georgia, "Times New Roman", serif; font-size: 12px; letter-spacing: .1em; }
.branding-preview-top small { color: var(--text-muted); font-size: 8px; }
.branding-preview-window {
  min-height: 280px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 13px;
  background: white;
  box-shadow: var(--shadow-md);
}
.branding-preview-nav { display: grid; align-content: start; gap: 12px; padding: 25px 18px; background: linear-gradient(180deg, var(--brand-900), var(--brand-950)); }
.branding-preview-nav i { height: 5px; border-radius: var(--radius-pill); background: rgb(255 255 255 / 28%); }
.branding-preview-nav i:first-child { background: white; }
.branding-preview-content { padding: 30px 25px; }
.branding-preview-content h3 { margin: 6px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; line-height: 1.12; }
.branding-preview-content > p { margin: 0 0 18px; color: var(--text-secondary); font-size: 9px; line-height: 1.55; }
.branding-preview-content .button { min-height: 34px; padding: 0 12px; pointer-events: none; font-size: 9px; }
.branding-preview-elements { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; margin-top: 18px; font-size: 8.5px; }
.branding-preview-elements > span { padding: 5px 8px; border-radius: var(--radius-pill); background: var(--brand-50); color: var(--brand-800); font-weight: 720; }
.branding-preview-elements a { color: var(--brand-700); font-weight: 720; }
.branding-preview-elements label { display: flex; align-items: center; gap: 5px; color: var(--text-secondary); }
.branding-preview-elements input { accent-color: var(--brand-600); }
.branding-preview > small { display: block; margin-top: 11px; color: var(--text-muted); font-size: 8px; line-height: 1.5; }
.branding-settings-footer strong { color: var(--text-primary); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

@media (max-width: 900px) {
  .branding-editor-layout { grid-template-columns: 1fr; }
  .branding-preview { max-width: 620px; }
}

@media (max-width: 620px) {
  .branding-editor-card { padding: 18px; }
  .branding-color-fields { grid-template-columns: 1fr; }
  .branding-preview-window { grid-template-columns: 56px minmax(0, 1fr); }
  .branding-preview-nav { padding-inline: 13px; }
  .branding-preview-content { padding: 24px 18px; }
}

/* Modal & Suche */
.modal-backdrop,
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 18px;
  background: rgb(33 37 41 / 48%);
  backdrop-filter: blur(4px);
}

.modal-backdrop { place-items: center; }

.modal {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-lg);
  animation: modal-in 180ms ease both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 22px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.modal-header p { margin: 3px 0 0; color: var(--text-muted); font-size: 10.5px; }
.modal-header .icon-button { width: 34px; height: 34px; }
.modal-body { padding: 20px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { min-width: 0; display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 10.5px; font-weight: 680; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: var(--text-primary);
  outline: 0;
  font-size: 12px;
}
.form-field textarea { min-height: 88px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(var(--focus-rgb) / 12%); }
.form-hint { color: var(--text-muted); font-size: 9.5px; }

.profile-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  padding: 17px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--brand-50), #fbfaf7);
}
.profile-hero-copy { min-width: 0; display: grid; }
.profile-hero-copy h3 { margin: 0; font-size: 17px; }
.profile-hero-copy span { color: var(--text-secondary); font-size: 11px; }
.profile-hero-copy small { margin-top: 6px; color: var(--success); font-size: 9.5px; }
.profile-section { margin-top: 18px; }
.profile-section > strong { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.profile-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-tile { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; }
.contact-tile .icon { width: 15px; height: 15px; color: var(--brand-600); }
.contact-tile span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.profile-photo-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 15px;
  border: 1px solid #e2c3cd;
  border-radius: 13px;
  background: linear-gradient(115deg, var(--brand-50), #fbfaf7);
}

.profile-photo-preview {
  position: relative;
  width: 88px;
  height: 88px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--brand-100);
  box-shadow: 0 5px 16px rgb(33 37 41 / 12%);
  color: var(--brand-900);
  font-size: 20px;
  font-weight: 750;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-photo-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-photo-actions > p,
.profile-photo-actions > small {
  width: 100%;
  margin: 0;
  color: var(--text-muted);
  font-size: 9.5px;
}

.profile-edit-form {
  display: grid;
  gap: 16px;
}

.profile-field-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--text-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.profile-field-note .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--brand-600);
}


.search-overlay {
  align-items: start;
  justify-items: center;
  padding-top: min(12vh, 110px);
}

.search-dialog {
  width: min(690px, 100%);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 17px;
  background: white;
  box-shadow: var(--shadow-lg);
  animation: modal-in 160ms ease both;
}

.search-dialog-input {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border-bottom: 1px solid var(--border);
}

.search-dialog-input .icon { width: 22px; height: 22px; color: var(--brand-600); }
.search-dialog-input input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 16px; }
.key-button { padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-app); color: var(--text-muted); font-size: 9px; cursor: pointer; }

.search-results {
  max-height: min(520px, 65vh);
  overflow-y: auto;
  padding: 12px;
}

.search-group-title { display: block; padding: 7px 8px 5px; color: var(--text-muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.search-result:hover { background: var(--bg-hover); }
.result-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); }
.result-icon .icon { width: 16px; height: 16px; }
.result-copy { min-width: 0; display: grid; }
.result-copy strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.result-copy span { overflow: hidden; color: var(--text-muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.search-result > .icon { width: 14px; height: 14px; color: var(--text-muted); }
.search-empty { display: grid; place-items: center; min-height: 170px; padding: 30px; color: var(--text-muted); font-size: 11px; text-align: center; }
.search-hints { padding: 9px 8px 3px; color: var(--text-muted); font-size: 9.5px; }

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 130;
  width: min(350px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
}

/* Anmeldung */
.login-view {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--brand-950);
}

.login-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(24px, 4vw, 64px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(31 5 22 / 26%) 0%, rgb(31 5 22 / 8%) 44%, transparent 68%),
    linear-gradient(180deg, rgb(20 5 17 / 6%) 50%, rgb(20 5 17 / 22%) 100%),
    url("assets/images/login/kroenung-login-hero-4k-v2.jpg") center center / cover no-repeat;
}

.login-brand-panel {
  display: none;
}

.login-brand-panel::before,
.login-brand-panel::after {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  content: "";
}

.login-brand-panel::before {
  top: -130px;
  right: -120px;
  width: 390px;
  height: 390px;
  box-shadow: 0 0 0 50px rgb(255 255 255 / 1.5%), 0 0 0 100px rgb(255 255 255 / 1%);
}

.login-brand-panel::after {
  right: 12%;
  bottom: -190px;
  width: 330px;
  height: 330px;
}

.login-brand,
.login-mobile-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.login-brand .brand-mark,
.login-mobile-brand .brand-mark {
  flex: 0 0 auto;
}

.login-brand > span:last-child,
.login-mobile-brand > span:last-child {
  display: grid;
}

.login-brand strong,
.login-mobile-brand strong {
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: .15em;
}

.login-brand small,
.login-mobile-brand small {
  color: rgb(255 255 255 / 50%);
  font-size: 11px;
}

.login-welcome {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: auto 0;
  padding: 60px 0;
}

.login-kicker {
  color: #f1c6d3;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.login-welcome h1 {
  margin: 17px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.login-welcome > p {
  max-width: 480px;
  margin: 0;
  color: rgb(255 255 255 / 60%);
  font-size: 15px;
  line-height: 1.7;
}

.login-benefits {
  display: grid;
  gap: 11px;
  margin-top: 30px;
}

.login-benefits > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 82%);
  font-size: 12.5px;
  font-weight: 600;
}

.login-benefits i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(241 198 211 / 13%);
  color: #f1c6d3;
}

.login-benefits .icon {
  width: 13px;
  height: 13px;
}

.login-trust {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 23px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: rgb(255 255 255 / 55%);
}

.login-trust > .icon {
  width: 22px;
  height: 22px;
  color: #f1c6d3;
}

.login-trust span {
  display: grid;
}

.login-trust strong {
  color: rgb(255 255 255 / 77%);
  font-size: 10.5px;
}

.login-trust small {
  font-size: 9.5px;
}

.login-form-panel {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.login-form-wrap {
  width: min(470px, 100%);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 26px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 28px 90px rgb(42 5 26 / 32%);
  backdrop-filter: blur(16px);
  animation: page-in 300ms ease both;
}

.login-form-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
}

.login-form-wrap::-webkit-scrollbar-track {
  margin-block: 18px;
  background: transparent;
}

.login-form-wrap::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgb(var(--theme-accent-rgb) / 60%);
  background-clip: padding-box;
}

.login-form-wrap::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--theme-accent-rgb) / 86%);
  background-clip: padding-box;
}

.login-form-wrap::-webkit-scrollbar-button,
.login-form-wrap::-webkit-scrollbar-button:single-button,
.login-form-wrap::-webkit-scrollbar-button:vertical:decrement,
.login-form-wrap::-webkit-scrollbar-button:vertical:increment,
.login-form-wrap::-webkit-scrollbar-button:start:decrement,
.login-form-wrap::-webkit-scrollbar-button:end:increment,
.login-form-wrap::-webkit-scrollbar-corner {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

@supports not selector(::-webkit-scrollbar) {
  .login-form-wrap {
    scrollbar-color: rgb(var(--theme-accent-rgb) / 66%) transparent;
    scrollbar-width: thin;
  }
}

.login-mobile-brand {
  display: flex;
  margin-bottom: 28px;
  color: var(--brand-900);
}

.login-mobile-brand .brand-mark {
  background: var(--brand-900);
  color: white;
  box-shadow: 0 8px 22px rgb(var(--brand-rgb) / 20%);
}

.login-mobile-brand small {
  color: var(--text-muted);
}

.login-form-wrap > h1 {
  margin: 4px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.3vw, 42px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.login-intro {
  margin: 0 0 26px;
  color: var(--text-secondary);
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 15px;
}

.login-form .form-field {
  gap: 7px;
}

.login-form .form-field label {
  color: var(--text-primary);
  font-size: 11px;
}

.login-form .form-field > input,
.password-field > input {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fcfbf9;
  color: var(--text-primary);
  outline: 0;
  font-size: 13px;
  transition: border var(--motion-normal), box-shadow var(--motion-normal), background var(--motion-normal);
}

.login-form .form-field > input:focus,
.password-field:focus-within > input {
  border-color: var(--focus);
  background: white;
  box-shadow: 0 0 0 3px rgb(var(--focus-rgb) / 12%);
}

.password-field {
  position: relative;
}

.password-field > input {
  width: 100%;
  padding-right: 48px;
}

.password-field > button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.password-field > button:hover {
  background: var(--bg-hover);
  color: var(--brand-700);
}

.password-field > button .icon {
  width: 16px;
  height: 16px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -1px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 10.5px;
  cursor: pointer;
}

.checkbox-label input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand-700);
}

.login-options > button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: 680;
  cursor: pointer;
}

.login-error {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #efc1bd;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 10.5px;
}

.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  font-size: 13px;
}

.login-submit .icon {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

.login-divider {
  position: relative;
  margin: 21px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.login-divider span {
  position: relative;
  top: -10px;
  padding: 0 10px;
  background: rgb(255 255 255 / 96%);
  color: var(--text-muted);
  font-size: 9.5px;
}

.sso-button {
  width: 100%;
  min-height: 46px;
}

.microsoft-mark {
  width: 16px;
  height: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
}

.microsoft-mark i:nth-child(1) { background: #f35325; }
.microsoft-mark i:nth-child(2) { background: #81bc06; }
.microsoft-mark i:nth-child(3) { background: #05a6f0; }
.microsoft-mark i:nth-child(4) { background: #ffba08; }

.demo-login-box {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #ecd9df;
  border-radius: 13px;
  background: var(--brand-50);
}

.demo-label {
  color: var(--brand-700);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-login-box > p {
  margin: 4px 0 11px;
  color: var(--text-secondary);
  font-size: 9.5px;
  line-height: 1.45;
}

.demo-users {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.demo-users > button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgb(var(--brand-rgb) / 10%);
  border-radius: 9px;
  background: rgb(255 255 255 / 75%);
  text-align: left;
  cursor: pointer;
}

.demo-users > button:hover {
  border-color: #ddb5c0;
  background: white;
}

.demo-users > button > span:last-child {
  min-width: 0;
  display: grid;
}

.demo-users strong,
.demo-users small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-users strong {
  font-size: 9.5px;
}

.demo-users small {
  color: var(--text-muted);
  font-size: 8px;
}

.login-prototype-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 15px 0 0;
  color: var(--text-muted);
  font-size: 8.5px;
  text-align: center;
}

.login-prototype-note .icon {
  width: 12px;
  height: 12px;
}

.registration-link {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 10.5px;
  cursor: pointer;
}

.registration-link strong {
  color: var(--brand-700);
}

.registration-link .icon {
  width: 13px;
  height: 13px;
  color: var(--brand-700);
  transition: transform var(--motion-normal);
}

.registration-link:hover .icon {
  transform: translateX(2px);
}

.registration-pane {
  width: min(520px, 100%);
}

.back-to-login {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: 680;
  cursor: pointer;
}

.back-to-login .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.register-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.registration-consent {
  align-items: flex-start;
  line-height: 1.45;
}

.registration-consent input {
  flex: 0 0 auto;
  margin-top: 1px;
}

.registration-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.registration-steps span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 8.5px;
}

.registration-steps i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ead5dc;
  border-radius: 11px;
  background: white;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: 11px;
  animation: toast-in 220ms ease both;
}

.toast-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
}
.toast-icon .icon { width: 14px; height: 14px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.sidebar-scrim { display: none; }

@media (max-width: 1180px) {
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-row { grid-template-columns: auto minmax(160px, 1fr) auto auto auto; }
  .ticket-row > .ticket-assignee { display: none; }
}

@media (min-width: 961px) and (min-aspect-ratio: 21/10) {
  .login-shell {
    background:
      linear-gradient(90deg, rgb(31 5 22 / 26%) 0%, rgb(31 5 22 / 8%) 44%, transparent 68%),
      linear-gradient(180deg, rgb(20 5 17 / 6%) 50%, rgb(20 5 17 / 22%) 100%),
      url("assets/images/login/kroenung-login-hero-ultrawide-v3.png") center center / cover no-repeat;
  }
}

@media (min-width: 961px) {
  body.auth-mode {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.auth-mode .login-view {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.auth-mode .login-shell {
    height: 100%;
    min-height: 0;
    padding-block: clamp(14px, 2vh, 24px);
  }

  body.auth-mode .login-form-panel {
    height: 100%;
    min-height: 0;
  }

  body.auth-mode .login-form-wrap {
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 960px) {
  .login-shell {
    display: block;
    padding: 0;
    overflow: visible;
    background: linear-gradient(135deg, #f2e0dc 0%, #e7e2e6 50%, #fadeda 100%);
  }
  .login-brand-panel { display: none; }
  .login-form-panel {
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px 24px;
    background:
      radial-gradient(circle at 100% 0%, rgb(241 215 223 / 40%), transparent 28%),
      var(--bg-surface);
  }
  .login-form-wrap {
    width: min(500px, 100%);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    width: min(var(--sidebar-width), calc(100vw - 48px));
    transform: translateX(-102%);
    transition: transform 220ms ease;
  }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: inline-grid !important; }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgb(33 37 41 / 38%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }
  body.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .menu-button { display: inline-grid !important; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(250px, .7fr); }
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-dashboard-grid > .dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-dashboard-grid { grid-template-columns: 1fr; }
  .ticket-create-layout { grid-template-columns: 1fr; }
  .ticket-create-layout > .dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-overview { grid-template-columns: 1fr; }
}

@media (min-width: 961px) and (max-height: 780px) {
  .login-shell {
    padding-block: 14px;
  }

  .login-form-panel {
    place-items: center;
  }
}

@media (max-width: 760px) {
  :root { --topbar-height: 64px; }
  .topbar { gap: 8px; padding-inline: 14px; }
  .global-search-trigger { width: auto; flex: 1; }
  .global-search-trigger kbd { display: none; }
  .topbar-actions .button > span,
  .topbar-actions .button .icon-small { display: none; }
  .topbar-actions .button { width: 40px; padding: 0; }
  .role-chip { display: none; }
  .login-shell { display: block; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; padding: 32px 24px; }
  .login-mobile-brand { display: flex; }
  .login-mobile-brand .brand-mark { background: var(--brand-900); color: white; }
  .responsibility-directory { grid-template-columns: 1fr; }
  .page-container { padding: 22px 14px 46px; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .welcome-strip { grid-template-columns: 1fr; }
  .welcome-copy { padding: 25px 24px 18px; }
  .welcome-focus { margin: 0 16px 16px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .task-row > .due-date { grid-column: 2; }
  .finder-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .finder-visual { display: none; }
  .people-grid { grid-template-columns: 1fr; }
  .knowledge-layout { grid-template-columns: 1fr; }
  .category-card { display: flex; overflow-x: auto; }
  .category-card strong { display: none; }
  .category-button { width: auto; flex: 0 0 auto; padding-inline: 12px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .announcement-layout { grid-template-columns: 1fr; }
  .calendar-card { overflow-x: auto; }
  .calendar-toolbar,
  .calendar-weekdays,
  .calendar-grid { min-width: 650px; }
  .calendar-sidebar { grid-template-columns: 1fr; }
  .board-wrap { margin-inline: -14px; padding-inline: 14px; }

  .task-area-overview { padding: 14px; }
  .task-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-filter-summary { align-items: flex-start; flex-wrap: wrap; }

  .role-grid { grid-template-columns: 1fr; }
  .role-card > p { min-height: 0; }
  .admin-toolbar { align-items: stretch; flex-wrap: wrap; }
  .admin-search { width: 100%; }
  .admin-toolbar > span { margin-left: 0; }
  .support-hero { min-height: 0; padding: 25px 22px; }
  .support-hero-icon { display: none; }
  .ticket-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 9px; }
  .ticket-row > time { display: none; }
  .ticket-list-large .ticket-row { padding-inline: 14px; }
  .integration-summary { grid-template-columns: auto minmax(0, 1fr); }
  .integration-summary > .button { grid-column: 1 / -1; justify-self: start; }
  .integration-callout,
  .security-callout,
  .integration-notice { grid-template-columns: auto minmax(0, 1fr); }
  .integration-callout > .button,
  .security-callout > .button,
  .integration-notice > .button { grid-column: 1 / -1; justify-self: start; }
  .help-channel-list { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .global-search-trigger span { max-width: 110px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { grid-template-columns: auto 1fr; padding: 12px; }
  .stat-trend { display: none; }
  .stat-icon { width: 34px; height: 34px; }
  .stat-copy strong { font-size: 17px; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-link { min-height: 68px; }
  .people-toolbar { align-items: stretch; flex-direction: column; }
  .people-toolbar h2 { margin-right: 0; }
  .people-toolbar .select-control { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .profile-contact { grid-template-columns: 1fr; }

  .task-area-grid { grid-template-columns: 1fr; }

  .task-area-options { grid-template-columns: 1fr; }
  .task-area-options > label { min-height: 58px; }
  .task-detail-areas { padding: 10px 11px; }

  .profile-photo-editor {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .profile-photo-actions { justify-content: center; }
  .profile-photo-actions > p,
  .profile-photo-actions > small { max-width: 340px; }

  .modal-backdrop { padding: 8px; align-items: end; }
  .modal { max-height: calc(100vh - 16px); border-radius: 18px 18px 10px 10px; }
  .login-form-panel { align-items: start; padding: 24px 18px 36px; }
  .login-mobile-brand { margin-bottom: 30px; }
  .demo-users { grid-template-columns: 1fr; }
  .demo-users > button { min-height: 48px; }
  .subpage-intro { align-items: flex-start; flex-direction: column; }
  .register-name-grid { grid-template-columns: 1fr; }
  .registration-steps { align-items: flex-start; flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-dashboard-grid > .dashboard-side { grid-template-columns: 1fr; }
  .settings-footer { align-items: stretch; flex-direction: column; }
  .settings-footer .button { width: 100%; }
  .support-channel-grid,
  .wiki-grid,
  .integration-provider-grid { grid-template-columns: 1fr; }
  .support-channel > p { min-height: 0; }
  .support-channel footer { align-items: stretch; flex-direction: column; }
  .support-channel footer .button { width: 100%; }
  .ticket-create-layout > .dashboard-side { grid-template-columns: 1fr; }
  .ticket-form-card { padding: 17px; }
  .ticket-form-footer { align-items: stretch; flex-direction: column-reverse; }
  .ticket-form-footer .button { width: 100%; }
  .ticket-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ticket-row > .status-badge { grid-column: 2; justify-self: start; }
  .ticket-row > .icon { grid-column: 3; grid-row: 1 / 3; }
  .ticket-main > span:first-child { display: grid; gap: 0; }
  .ticket-snippet { display: none; }
  .integration-summary { grid-template-columns: 1fr; }
  .integration-logo { width: 46px; height: 46px; }
  .wiki-toolbar,
  .knowledge-toolbar { align-items: stretch; flex-direction: column; }
  .wiki-toolbar > span { margin-left: 0; }
  .wiki-source-switch { align-self: flex-start; }
  .mailbox-mapping-row { grid-template-columns: 1fr; gap: 6px; }
  .mailbox-mapping-list > label { grid-template-columns: auto minmax(0, 1fr); }
  .mailbox-mapping-list > label > input { grid-column: 1 / -1; }
  .integration-status-card { grid-template-columns: auto minmax(0, 1fr); }
  .integration-status-card > .status-badge { grid-column: 2; justify-self: start; }
  .ticket-detail-grid { grid-template-columns: 1fr; }
  .ticket-detail-meta { grid-template-columns: 1fr; }
  .ticket-comment-form > div { grid-template-columns: 1fr; }
  .ticket-comment-form .button { width: 100%; }
  .help-channel-list > article { grid-template-columns: auto minmax(0, 1fr); }
  .help-channel-list > article .button { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
/* Desktop-first Bereichsboards */
.task-area-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.task-area-card {
  min-height: 288px;
  grid-template-rows: auto minmax(5.5rem, 1fr) auto auto;
  gap: 16px;
  padding: 20px;
}

.task-area-card-top .status-badge {
  margin-left: auto;
}

.task-area-card-copy p {
  font-size: 14px;
  line-height: 1.5;
}

.task-area-progress-copy {
  font-size: 10.5px;
}

.task-area-progress-copy strong {
  font-size: 10.5px;
}

.task-area-meta {
  gap: 12px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}

.task-area-owner {
  flex: 1 1 auto;
  min-width: 0;
  gap: 9px !important;
}

.task-area-owner > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.task-area-owner strong,
.task-area-owner small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-area-owner strong {
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
}

.task-area-owner small {
  color: var(--text-muted);
  font-size: 9.5px;
}

.task-area-count {
  flex: 0 0 auto;
  gap: 5px !important;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.task-area-count strong {
  color: var(--text-primary);
  font-size: 13px;
}

.task-area-count small {
  font-size: 9.5px;
}

.task-area-count .icon {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

@media (max-width: 720px) {
  .task-area-overview {
    padding: 14px;
  }

  .task-area-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
  }

  .task-area-card {
    min-height: 260px;
    padding: 17px;
  }
}

@media (max-width: 620px) {
  .task-area-grid {
    grid-template-columns: 1fr;
  }

  .task-area-card {
    min-height: 0;
  }
}

/* Desktop-first Aufgabendetails */
.modal:has(.task-detail-body) {
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.modal:has(.task-detail-body) .task-detail-body {
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  background: #f7f6f2;
}

.task-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 20px;
}

.task-detail-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.task-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-detail-section,
.task-detail-sidebar > form,
.task-activity {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: 0 4px 18px rgb(71 71 71 / 4%);
}

.task-detail-section > header,
.task-detail-sidebar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.task-detail-section > header h3,
.task-detail-sidebar-heading h3 {
  margin: 2px 0 0;
  font-size: 15px;
  letter-spacing: -.015em;
}

.task-detail-section > header > strong {
  min-width: 42px;
  color: var(--brand-700);
  font-size: 12px;
  text-align: right;
}

.task-detail-section .eyebrow,
.task-detail-sidebar .eyebrow {
  margin: 0;
  font-size: 8.5px;
}

.task-detail-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.task-inline-form {
  display: grid;
  gap: 12px;
}

.task-inline-form .button {
  justify-self: start;
}

.task-detail-progress {
  height: 7px;
  margin: -2px 0 14px;
  background: var(--bg-subtle);
}

.task-detail-progress > span {
  background: linear-gradient(90deg, var(--brand-600), var(--focus));
}

.task-detail-list,
.task-attachment-list,
.task-activity ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-detail-list-item,
.task-attachment {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #ebe9e3;
  border-radius: 9px;
  background: #fbfaf7;
}

.task-detail-list-item > label {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 11.5px;
}

.task-detail-list-item input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-600);
}

.task-detail-list-item.completed span {
  color: var(--text-muted);
  text-decoration: line-through;
}

.icon-button.compact {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
}

.task-detail-empty {
  padding: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.task-add-row,
.task-upload-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.task-add-row > input,
.task-comment-compose textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: 0;
  background: white;
  color: var(--text-primary);
  font: inherit;
  font-size: 11px;
}

.task-add-row > input:focus,
.task-comment-compose textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(var(--focus-rgb) / 12%);
}

.task-attachment-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.task-attachment-icon .icon {
  width: 15px;
  height: 15px;
}

.task-attachment > span:nth-child(2),
.task-attachment > .task-attachment-link {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.task-attachment-link {
  color: inherit;
  text-decoration: none;
}

.task-attachment-link:hover strong { text-decoration: underline; }

.task-attachment strong,
.task-attachment small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-attachment strong {
  font-size: 11px;
}

.task-attachment small {
  color: var(--text-muted);
  font-size: 9px;
}

.task-upload-row {
  grid-template-columns: auto minmax(140px, 1fr) auto;
}

.task-upload-row .form-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-comment-list {
  display: grid;
  gap: 12px;
}

.task-comment {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.task-comment > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 4px 11px 11px 11px;
  background: var(--bg-subtle);
}

.task-comment header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-comment strong {
  font-size: 10px;
}

.task-comment time,
.task-comment small {
  color: var(--text-muted);
  font-size: 8.5px;
}

.task-comment p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.task-mention {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--brand-100);
  color: var(--brand-800);
  font-weight: 700;
}

.task-comment-compose {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.task-comment-compose textarea {
  min-height: 78px;
  resize: vertical;
}

.task-comment-compose > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-detail-sidebar {
  min-width: 0;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 0;
}

.task-detail-meta-form {
  display: grid;
  gap: 13px;
}

.task-detail-meta-form > .button {
  width: 100%;
  margin-top: 2px;
}

.task-assignee-picker {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}

.task-assignee-picker legend,
.form-label {
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 680;
}

.task-assignee-picker > label {
  min-width: 0;
  display: block;
  cursor: pointer;
}

.task-assignee-picker > label > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.task-assignee-picker > label > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color 140ms ease, background 140ms ease;
}

.task-assignee-picker > label > input:checked + span {
  border-color: var(--focus);
  background: var(--brand-50);
}

.task-assignee-picker > label > span > span:last-child {
  min-width: 0;
  display: grid;
}

.task-assignee-picker strong,
.task-assignee-picker small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-assignee-picker strong {
  font-size: 9.5px;
}

.task-assignee-picker small {
  color: var(--text-muted);
  font-size: 8px;
}

.task-detail-assignees {
  display: grid;
  gap: 8px;
}

.task-activity ul {
  gap: 0;
}

.task-activity li {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 9px;
  padding: 0 0 15px;
}

.task-activity li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: var(--border);
}

.activity-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border: 3px solid var(--brand-100);
  border-radius: 50%;
  background: var(--brand-600);
}

.activity-dot.created { border-color: #dfeadc; background: var(--success); }
.activity-dot.removed { border-color: #f4dfdc; background: #bd655b; }
.activity-dot.comment { border-color: #e6e3f5; background: #786fb2; }
.activity-dot.attachment { border-color: #dce9f6; background: #4d83b8; }

.task-activity li > div {
  min-width: 0;
}

.task-activity strong {
  font-size: 9.5px;
}

.task-activity p {
  margin: 2px 0;
  color: var(--text-secondary);
  font-size: 9.5px;
  line-height: 1.45;
}

.task-activity time {
  color: var(--text-muted);
  font-size: 8px;
}

.security-callout.compact {
  padding: 10px;
  font-size: 9.5px;
}

@media (max-width: 940px) {
  .modal:has(.task-detail-body) {
    width: min(760px, calc(100vw - 32px));
  }

  .task-detail-layout {
    grid-template-columns: 1fr;
  }

  .task-detail-sidebar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 650px) {
  .modal:has(.task-detail-body) {
    width: 100%;
    max-height: calc(100vh - 16px);
  }

  .modal:has(.task-detail-body) .task-detail-body {
    padding: 12px;
  }

  .task-detail-section,
  .task-detail-sidebar > form,
  .task-activity {
    padding: 14px;
  }

  .task-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .task-add-row,
  .task-upload-row {
    grid-template-columns: 1fr;
  }

  .task-add-row .button,
  .task-upload-row .button {
    width: 100%;
  }

  .task-upload-row .form-hint {
    white-space: normal;
  }

  .task-comment-compose > div {
    align-items: stretch;
    flex-direction: column;
  }

  .task-comment-compose .button {
    width: 100%;
  }
}

/* Personalisierte Startseite und Benachrichtigungen */
.welcome-customize {
  position: absolute;
  z-index: 4;
  top: 13px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(var(--brand-rgb) / 20%);
  color: rgb(255 255 255 / 78%);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(7px);
}

.welcome-customize:hover {
  border-color: rgb(255 255 255 / 36%);
  background: rgb(255 255 255 / 12%);
  color: white;
}

.welcome-customize .icon {
  width: 13px;
  height: 13px;
}

.dashboard-compact .welcome-strip {
  min-height: 150px;
}

.dashboard-compact .welcome-copy {
  padding-block: 23px;
}

.dashboard-compact .dashboard-grid,
.dashboard-compact .dashboard-side,
.dashboard-compact .dashboard-main {
  gap: 12px;
}

.dashboard-compact .card {
  --compact-card-padding: 16px;
}

.dashboard-settings-body {
  display: grid;
  gap: 22px;
}

.dashboard-settings-body section > h3 {
  margin: 3px 0 12px;
  font-size: 14px;
}

.dashboard-widget-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-widget-options > label {
  min-width: 0;
  cursor: pointer;
}

.dashboard-widget-options > label > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dashboard-widget-options > label > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfaf7;
  transition: 140ms ease;
}

.dashboard-widget-options > label > input:checked + span {
  border-color: #dcaeba;
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px rgb(var(--brand-rgb) / 12%);
}

.dashboard-widget-options > label > span > .icon {
  width: 17px;
  height: 17px;
  color: var(--brand-600);
}

.dashboard-widget-options > label > span > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-widget-options strong {
  font-size: 10.5px;
}

.dashboard-widget-options small {
  color: var(--text-muted);
  font-size: 8.5px;
  line-height: 1.35;
}

.dashboard-link-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dashboard-link-options > label {
  cursor: pointer;
}

.dashboard-link-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dashboard-link-options span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--text-secondary);
  font-size: 9.5px;
  font-weight: 650;
}

.dashboard-link-options input:checked + span {
  border-color: #dcaeba;
  background: var(--brand-50);
  color: var(--brand-800);
}

.dashboard-link-options .icon {
  width: 13px;
  height: 13px;
}

.dashboard-preference-toggles {
  display: grid;
  gap: 7px;
}

.notification-list {
  display: grid;
  gap: 8px;
}

.notification-item {
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  border-color: #e2c3cd;
  background: var(--brand-50);
}

.notification-item.unread {
  border-color: #e2c3cd;
  background: var(--brand-50);
}

.notification-item > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.notification-item strong,
.notification-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item strong {
  font-size: 10.5px;
}

.notification-item small,
.notification-item time {
  color: var(--text-muted);
  font-size: 8.5px;
}

.notification-item > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-600);
}

@media (max-width: 650px) {
  .welcome-customize {
    top: 10px;
    right: 10px;
  }

  .welcome-customize {
    width: 34px;
    height: 34px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .welcome-customize .icon {
    flex: 0 0 auto;
    color: white;
  }

  .dashboard-widget-options {
    grid-template-columns: 1fr;
  }
}

/* Erweiterter Desktop-Kalender */
.day-number {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.day-number:hover {
  background: var(--brand-50);
  color: var(--brand-800);
}

.calendar-week-range {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfaf8;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
}

.calendar-week-scroll {
  min-height: 530px;
  overflow-x: auto;
}

.calendar-week-grid {
  min-width: 920px;
  display: grid;
  grid-template-columns: repeat(7, minmax(125px, 1fr));
}

.calendar-week-day {
  min-width: 0;
  min-height: 530px;
  border-right: 1px solid var(--border);
  background: white;
}

.calendar-week-day:last-child {
  border-right: 0;
}

.calendar-week-day.today {
  background: var(--brand-50);
}

.calendar-week-day > header {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 7px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}

.calendar-week-day > header > span {
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-week-day > header > strong {
  grid-row: 2;
  font-size: 18px;
}

.calendar-week-day > header > button {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  color: var(--brand-700);
  cursor: pointer;
}

.calendar-week-day > header > button .icon {
  width: 12px;
  height: 12px;
}

.calendar-week-events {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 8px;
}

.calendar-week-event {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 0;
  border-left: 3px solid var(--brand-600);
  border-radius: 7px;
  background: var(--brand-50);
  color: var(--brand-900);
  text-align: left;
  cursor: pointer;
}

.calendar-week-event.blue { border-color: #5a8bb8; background: var(--info-bg); color: #285d86; }
.calendar-week-event.gold { border-color: var(--accent-500); background: var(--accent-100); color: #78501c; }
.calendar-week-event.purple { border-color: #8d73bc; background: var(--purple-bg); color: #63468c; }
.calendar-week-event.red { border-color: var(--danger); background: var(--danger-bg); color: #8b3e3a; }

.calendar-week-event time {
  font-size: 8px;
  font-weight: 700;
}

.calendar-week-event strong {
  overflow: hidden;
  font-size: 9.5px;
  text-overflow: ellipsis;
}

.calendar-week-event small {
  overflow: hidden;
  opacity: .72;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-week-empty {
  padding: 12px 2px;
  color: var(--text-muted);
  font-size: 8.5px;
  text-align: center;
}

.calendar-filter-list .legend-item {
  cursor: pointer;
}

.calendar-filter-list input {
  width: 15px;
  height: 15px;
  margin-left: auto;
  accent-color: var(--brand-600);
}

.calendar-filter-list .legend-item:has(input:not(:checked)) {
  opacity: .45;
}

.legend-item.green::before { background: var(--brand-600); }
.legend-item.red::before { background: var(--danger); }

.event-participant-picker {
  padding: 0;
  border: 0;
}

.event-participant-picker > legend {
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 680;
}

.event-participant-picker > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.event-participant-picker label {
  min-width: 0;
  cursor: pointer;
}

.event-participant-picker label > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.event-participant-picker label > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.event-participant-picker label > input:checked + span {
  border-color: #dcaeba;
  background: var(--brand-50);
}

.event-participant-picker label > span > span:last-child {
  min-width: 0;
  display: grid;
}

.event-participant-picker strong,
.event-participant-picker small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-participant-picker strong { font-size: 9px; }
.event-participant-picker small { color: var(--text-muted); font-size: 7.5px; }

.event-detail-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.event-participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-danger {
  border-color: #e5bbb6;
  background: #fff7f6;
  color: #9a4038;
}

.button-danger:hover {
  border-color: #cc7c73;
  background: #fcede9;
}

.modal-footer .button-left {
  margin-right: auto;
}

@media (max-width: 760px) {
  .event-participant-picker > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .event-participant-picker > div {
    grid-template-columns: 1fr;
  }

  .modal-footer .button-left {
    margin-right: 0;
  }
}

/* Erweiterte Administration */
.system-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.system-status-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 17px;
}

.system-status-card > div {
  min-width: 0;
}

.system-status-card h2 {
  margin: 2px 0 4px;
  font-size: 15px;
}

.system-status-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.5;
}

.system-status-card code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--bg-subtle);
  font-size: 8.5px;
}

.system-status-card > .status-badge {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-system-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
}

.system-check-result {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfaf7;
}

.system-check-result > div:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.system-check-result strong {
  font-size: 10.5px;
}

.system-check-result small {
  color: var(--text-muted);
  font-size: 8.5px;
}

.audit-table time {
  color: var(--text-secondary);
  font-size: 9px;
  white-space: nowrap;
}

.audit-details {
  max-width: 420px;
  color: var(--text-secondary);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.admin-audit-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .system-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-system-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .system-status-grid,
  .admin-audit-stats {
    grid-template-columns: 1fr;
  }
}

/* Wiki-Editor und Versionshistorie */
.wiki-article-meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wiki-markdown {
  margin-top: 13px;
}

.wiki-markdown h2,
.wiki-markdown h3,
.wiki-markdown h4 {
  margin: 18px 0 7px;
  color: var(--text-primary);
  line-height: 1.3;
}

.wiki-markdown h2 { font-size: 17px; }
.wiki-markdown h3 { font-size: 14px; }
.wiki-markdown h4 { font-size: 12px; }

.wiki-markdown p {
  margin: 0 0 10px;
}

.wiki-list-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  margin: 5px 0;
  padding-left: 3px;
}

.wiki-list-line .icon {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  color: var(--success);
}

.wiki-version-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfaf7;
}

.wiki-version-summary > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1px 7px;
}

.wiki-version-summary > span > .icon {
  grid-row: 1 / 3;
  width: 15px;
  height: 15px;
  color: var(--brand-600);
}

.wiki-version-summary strong {
  font-size: 9.5px;
}

.wiki-version-summary small {
  color: var(--text-muted);
  font-size: 8.5px;
}

#wiki-edit-content {
  min-height: 300px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  line-height: 1.6;
}

.wiki-history-list {
  display: grid;
  gap: 8px;
}

.wiki-history-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.wiki-history-item.current {
  border-color: #e2c3cd;
  background: var(--brand-50);
}

.wiki-version-number {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-800);
  color: white;
  font-size: 9px;
  font-weight: 750;
}

.wiki-history-item > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wiki-history-item strong {
  font-size: 10px;
}

.wiki-history-item small,
.wiki-history-item p {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-history-item p {
  margin: 2px 0 0;
  color: var(--text-secondary);
}

.settings-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 620px) {
  .wiki-version-summary,
  .wiki-history-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .wiki-version-number {
    width: auto;
    height: 29px;
  }

  .wiki-version-summary {
    flex-direction: column;
  }

  .wiki-version-summary .button,
  .wiki-history-item .button,
  .settings-footer-actions,
  .settings-footer-actions .button {
    width: 100%;
  }
}


.runtime-mode-chip {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .03em;
}

.runtime-mode-chip::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.runtime-mode-chip.api {
  border-color: #a9cfba;
  background: var(--success-bg);
  color: var(--success);
}

.runtime-mode-chip.demo {
  border-color: #ead4a2;
  background: #fff8e7;
  color: #8b6508;
}

.runtime-mode-chip.checking::before { animation: runtime-pulse 1s ease-in-out infinite alternate; }
@keyframes runtime-pulse { to { opacity: .25; } }

.runtime-login-notice {
  display: grid;
  gap: 2px;
  margin: 13px 0 17px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 10px;
}

.runtime-login-notice strong { color: var(--text-primary); }
.runtime-login-notice.api { border-color: #a9cfba; background: var(--success-bg); }
.runtime-login-notice.demo { border-color: #ead4a2; background: #fff8e7; }

body[data-runtime-mode="api"] .demo-login-box,
body[data-runtime-mode="api"] .login-divider,
body[data-runtime-mode="api"] .sso-button { display: none; }
body[data-runtime-mode="api"] .login-prototype-note { margin-top: 12px; }
body[data-runtime-mode="demo"] .registration-pane .login-prototype-note { color: #8b6508; }
