:root {
  --bg: #eef2f5;
  --panel: #ffffff;
  --panel-2: #f7f9fb;
  --line: #d7dee6;
  --line-soft: #e7edf2;
  --text: #1f2933;
  --muted: #6b7785;
  --title: #16212b;
  --accent: #0f766e;
  --lv: #e2574c;
  --laderaumplanung: #0f766e;
  --aufmass: #d9aa3e;
  --projektakte: #3b97dd;
  --prozess: #7a69cf;
  --autojob: #2563eb;
  --autojob-ai-start: #0f766e;
  --autojob-ai-end: #2563eb;
  --dms: #516b7f;
  --fulltext: #008a9a;
  --belegeingang: #008fb3;
  --eingangsbuchung: #4f8d92;
  --zahlungsplan: #3b7fb6;
  --mahntool: #cc405d;
  --freigabe: #2a9d76;
  --lizenz: #5c6bc0;
  --changelog: #607d8b;
  --shadow: 0 4px 14px rgba(17, 28, 38, 0.05);
  --radius: 10px;
  --header-h: 98px;
  --brand-w: 330px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  padding: 18px;
  overflow: hidden;
}

.shell {
  height: calc(100vh - 36px);
  min-height: 0;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.brand-row {
  display: grid;
  grid-template-columns: var(--brand-w) 1fr;
  flex: 0 0 auto;
}

.brand {
  width: var(--brand-w);
  height: var(--header-h);
  background: #282828;
  color: #fff;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  border-right: 1px solid #313840;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand img {
  width: 290px;
  height: 98px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.topbar {
  width: 100%;
  height: var(--header-h);
  flex: 0 0 var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-title h2 {
  margin: 0;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8696;
  font-weight: 700;
}

.topbar-title p {
  margin: 8px 0 0;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--title);
  font-weight: 600;
}

.launcher-search {
  flex: 1 1 520px;
  max-width: 720px;
  min-width: 260px;
  min-height: 44px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  overflow: hidden;
}

.launcher-search:focus-within {
  border-color: #9fb9cc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 110, 165, 0.08);
}

.launcher-search-icon,
.launcher-search button {
  display: grid;
  place-items: center;
  color: #697782;
}

.launcher-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.launcher-search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--title);
  font: inherit;
  font-size: 0.92rem;
}

.launcher-search button {
  width: 38px;
  height: 42px;
  border: 0;
  border-left: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.launcher-search button:hover {
  background: #eef5f8;
  color: var(--accent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.finanzonline-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 7px 13px;
  border: 1px solid #ccd5df;
  border-radius: 999px;
  background: #f6f8fa;
  color: #758391;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.finanzonline-status:hover {
  border-color: #1e4d75;
  color: #1e4d75;
}

.finanzonline-status-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e6ebef;
  color: currentColor;
}

.finanzonline-status-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finanzonline-status-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.finanzonline-status-name {
  color: #12344d;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.finanzonline-status-text {
  color: currentColor;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.finanzonline-status.is-checking {
  border-color: #cfd7df;
  background: #fff;
  color: #647282;
}

.finanzonline-status.is-connected {
  border-color: #8acfb4;
  background: #effaf4;
  color: #138154;
}

.finanzonline-status.is-connected .finanzonline-status-icon {
  background: #d6f3e4;
  color: #138154;
}

.finanzonline-status.is-missing {
  border-color: #d8dde3;
  background: #f7f9fb;
  color: #7a8696;
}

.finanzonline-status.is-error {
  border-color: #f0cbd4;
  background: #fff5f7;
  color: #b33333;
}

.finanzonline-status.is-unknown {
  color: #7a8696;
}

.nvision-info-wrap {
  --nvision-state-color: #75d7c8;
  position: relative;
}

.nvision-info-wrap.is-ready {
  --nvision-state-color: #54d2ad;
}

.nvision-info-wrap.is-restricted {
  --nvision-state-color: #efbf5b;
}

.nvision-info-wrap.is-unavailable {
  --nvision-state-color: #ff8391;
}

.nvision-edition-badge {
  --nvision-color: #128d83;
  position: relative;
  display: inline-flex;
  min-height: 46px;
  padding: 0 13px;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--nvision-color) 40%, #cdd9dc);
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 0, color-mix(in srgb, var(--nvision-color) 16%, transparent), transparent 44%),
    #f7fbfb;
  box-shadow: 0 8px 22px rgba(25, 66, 78, 0.08);
  color: #12344d;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  white-space: nowrap;
}

.nvision-edition-name {
  color: #12344d;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
}

.nvision-edition-mark {
  display: grid;
  min-width: 29px;
  height: 23px;
  padding: 0 6px;
  place-items: center;
  border: 1px solid rgba(127, 237, 225, 0.38);
  border-radius: 7px;
  background: linear-gradient(145deg, #2d9b92, #176f6b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 5px 13px rgba(2, 76, 73, 0.24);
  color: #f4fffd;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.nvision-details {
  position: absolute;
  z-index: 51;
  top: calc(100% + 10px);
  right: 0;
  width: 372px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #314652;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(18, 141, 131, 0.18), transparent 43%),
    #14232d;
  box-shadow: 0 24px 55px rgba(6, 23, 31, 0.34);
  color: #e8f1f3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nvision-info-wrap:hover .nvision-details,
.nvision-info-wrap:focus-within .nvision-details {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nvision-details-brand {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  padding: 4px 4px 13px;
  align-items: center;
  border-bottom: 1px solid rgba(176, 207, 216, 0.14);
}

.nvision-details-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(127, 237, 225, 0.28);
  border-radius: 13px;
  background: linear-gradient(145deg, #2d9b92, #176f6b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(2, 76, 73, 0.24);
  color: #f4fffd;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.nvision-details-brand-copy,
.nvision-health-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  text-align: left;
}

.nvision-details-brand-copy small,
.nvision-health-copy small {
  color: #75d7c8;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.nvision-details-brand-copy strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.nvision-details-brand-copy > span,
.nvision-health-copy > span {
  color: #9db2bc;
  font-size: 0.64rem;
  line-height: 1.3;
}

.nvision-health {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 11px;
  margin-top: 10px;
  padding: 12px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--nvision-state-color) 34%, rgba(255, 255, 255, 0.12));
  border-radius: 11px;
  background: color-mix(in srgb, var(--nvision-state-color) 9%, rgba(255, 255, 255, 0.035));
}

.nvision-health-signal {
  width: 11px;
  height: 11px;
  border: 2px solid #18313b;
  border-radius: 50%;
  background: var(--nvision-state-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--nvision-state-color) 18%, transparent);
}

.nvision-info-wrap.is-checking .nvision-health-signal {
  animation: nvision-status-pulse 1.35s ease-in-out infinite;
}

.nvision-health-copy strong {
  color: var(--nvision-state-color);
  font-size: 0.82rem;
  font-weight: 850;
}

.nvision-facts {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
}

.nvision-facts > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 5px;
  border-bottom: 1px solid rgba(176, 207, 216, 0.12);
}

.nvision-facts dt,
.nvision-facts dd {
  margin: 0;
  font-size: 0.65rem;
}

.nvision-facts dt {
  color: #76919d;
  font-weight: 750;
}

.nvision-facts dd {
  overflow: hidden;
  color: #dbe8ec;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nvision-facts dd.is-ready {
  color: #65d9bd;
}

.nvision-facts dd.is-restricted {
  color: #efbf5b;
}

.nvision-facts dd.is-unavailable {
  color: #ff8f9b;
}

.nvision-footnote {
  padding: 10px 5px 1px;
  color: #6f8b96;
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes nvision-status-pulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.erp-integration-wrap {
  --erp-state-color: #75d7c8;
  position: relative;
}

.erp-integration-wrap.is-connected {
  --erp-state-color: #54d2ad;
}

.erp-integration-wrap.is-disconnected,
.erp-integration-wrap.is-incomplete {
  --erp-state-color: #ff8391;
}

.erp-integration-status {
  --erp-state-color: #97a9b2;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 52px;
  min-width: 218px;
  padding: 7px 11px 7px 14px;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid #3a4b57;
  border-radius: 11px;
  background: #202d37;
  box-shadow: inset 5px 0 0 #13a9c5, 0 8px 22px rgba(11, 30, 40, 0.16);
  color: #fff;
  font: inherit;
  white-space: nowrap;
}

.erp-integration-product {
  display: grid;
  min-width: 0;
  gap: 3px;
  text-align: left;
}

.erp-integration-product strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1;
}

.erp-integration-product sup,
.erp-product-card sup {
  margin-left: 1px;
  color: #9fc3bd;
  font-size: 0.48em;
}

.erp-integration-product small {
  color: #a9bdc6;
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1;
}

.erp-integration-live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--erp-state-color);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.erp-integration-signal {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid #20303a;
  border-radius: 50%;
  background: var(--erp-state-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--erp-state-color) 20%, transparent);
}

.erp-integration-status.is-checking {
  --erp-state-color: #75d7c8;
}

.erp-integration-status.is-checking .erp-integration-signal {
  animation: erp-connection-pulse 1.35s ease-in-out infinite;
}

.erp-integration-status.is-connected {
  --erp-state-color: #54d2ad;
}

.erp-integration-status.is-disconnected,
.erp-integration-status.is-incomplete {
  --erp-state-color: #ff8391;
}

.erp-integration-details {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  width: 392px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #314652;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(19, 169, 197, 0.14), transparent 42%),
    #14232d;
  box-shadow: 0 24px 55px rgba(6, 23, 31, 0.34);
  color: #e8f1f3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.erp-integration-wrap:hover .erp-integration-details,
.erp-integration-wrap:focus-within .erp-integration-details {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.erp-integration-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.erp-product-card {
  display: grid;
  min-height: 74px;
  padding: 13px 14px;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.erp-product-card.is-bueroware {
  box-shadow: inset 5px 0 0 #13a9c5;
}

.erp-product-card strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.erp-product-card small {
  color: #aec2cc;
  font-size: 0.63rem;
  font-weight: 650;
}

.erp-product-card img {
  display: block;
  width: 100%;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}

.erp-softengine-brand {
  display: flex;
  min-width: 0;
  min-height: 74px;
  padding: 8px 7px;
  align-items: center;
  justify-content: center;
}

.erp-softengine-brand img {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  object-fit: contain;
}

.erp-api-health {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 11px;
  margin-top: 10px;
  padding: 12px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--erp-state-color, #75d7c8) 32%, rgba(255, 255, 255, 0.12));
  border-radius: 11px;
  background: color-mix(in srgb, var(--erp-state-color, #75d7c8) 9%, rgba(255, 255, 255, 0.035));
}

.erp-api-health-signal {
  width: 11px;
  height: 11px;
  border: 2px solid #18313b;
  border-radius: 50%;
  background: var(--erp-state-color, #75d7c8);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--erp-state-color, #75d7c8) 18%, transparent);
}

.erp-integration-wrap.is-checking .erp-api-health-signal {
  animation: erp-connection-pulse 1.35s ease-in-out infinite;
}

.erp-api-health-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  text-align: left;
}

.erp-api-health-copy small {
  color: #75d7c8;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.erp-api-health-copy strong {
  color: var(--erp-state-color, #e8f1f3);
  font-size: 0.82rem;
  font-weight: 850;
}

.erp-api-health-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: #9db2bc;
  font-size: 0.65rem;
  line-height: 1.3;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.erp-connection-facts {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
}

.erp-connection-facts > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 5px;
  border-bottom: 1px solid rgba(176, 207, 216, 0.12);
}

.erp-connection-facts dt,
.erp-connection-facts dd {
  margin: 0;
  font-size: 0.65rem;
}

.erp-connection-facts dt {
  color: #76919d;
  font-weight: 750;
}

.erp-connection-facts dd {
  overflow: hidden;
  color: #dbe8ec;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.erp-connection-footnote {
  padding: 10px 5px 1px;
  color: #6f8b96;
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes erp-connection-pulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.btn {
  border: 1px solid #cfd7df;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
}

.btn.primary {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}

.sidebar-inner {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
}

.profile-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  width: auto;
  margin: 0 8px;
  flex: 0 0 auto;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f4c5c;
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.profile-role {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.individual-modules-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #90a0b1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 8px;
}

.nav-item,
.subnav-item {
  width: 100%;
  background: #fff;
  border: 0;
  text-align: left;
  color: var(--title);
  cursor: pointer;
  font-family: inherit;
}

.nav-item {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.nav-item:hover {
  background: #f4f7f9;
}

.nav-item.active {
  background: #dde7ea;
  box-shadow: inset 0 0 0 1px #c4d1d8;
  font-weight: 600;
}

.nav-item.has-notifications {
  background: #fff7f9;
  box-shadow: inset 3px 0 0 #cc405d;
}

.nav-item.has-notifications.active {
  background: #f4e3e8;
  box-shadow: inset 0 0 0 1px #ddb4bf, inset 3px 0 0 #cc405d;
}

.nav-item.has-notifications .nav-icon {
  color: #cc405d;
}

.nav-item.has-tasks {
  background: #f2fbf7;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-item.has-tasks.active {
  background: #e4f1ed;
  box-shadow: inset 0 0 0 1px #bcd8d0, inset 3px 0 0 var(--accent);
}

.nav-item.has-tasks .nav-icon {
  color: var(--accent);
}

.nav-group.permission-hidden,
.nav-group[hidden] {
  display: none;
}

body:not(.permissions-ready) [data-permission-role-group] {
  display: none;
}

body:not(.permissions-ready) .module-entry,
body:not(.permissions-ready) .nav-item[data-embed-module],
.module-entry[hidden],
.nav-item[data-embed-module][hidden],
.launch-tile[hidden] {
  display: none !important;
}

body.permissions-blocked .shell {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.nav-item.permission-disabled,
.nav-item:disabled {
  opacity: 0.54;
  cursor: not-allowed;
  filter: grayscale(1);
}

.nav-item.permission-user-denied {
  background: #eef2f5;
  box-shadow: inset 0 0 0 1px #cfd7df;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: #2f3944;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav-item.active .nav-icon {
  color: #16212b;
}

.nav-label {
  min-width: 0;
}

.nav-counter {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #cc405d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-counter[hidden] {
  display: none;
}

.nav-item.cockpit-item {
  --cockpit-color: #38546b;
  --cockpit-soft: color-mix(in srgb, var(--cockpit-color) 8%, white);
  --cockpit-soft-2: color-mix(in srgb, var(--cockpit-color) 13%, white);
  --cockpit-border: color-mix(in srgb, var(--cockpit-color) 20%, white);
  --cockpit-ease: cubic-bezier(.25, .7, .3, 1);
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: #fff;
  padding: 7px 10px;
  box-shadow: none;
  transition:
    background .28s var(--cockpit-ease),
    border-color .28s var(--cockpit-ease),
    box-shadow .28s var(--cockpit-ease),
    transform .28s var(--cockpit-ease);
}

.nav-item.cockpit-item:hover {
  background: var(--cockpit-soft);
  border-color: var(--cockpit-border);
  box-shadow:
    0 5px 12px color-mix(in srgb, var(--cockpit-color) 8%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--cockpit-color) 10%, white);
  transform: translateX(2px);
}

.nav-item.cockpit-item.active {
  background: var(--cockpit-soft-2);
  border-color: var(--cockpit-border);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cockpit-color) 14%, white);
  font-weight: 600;
}

.nav-item.cockpit-item.has-notifications,
.nav-item.cockpit-item.has-tasks {
  background: #fff;
  box-shadow: none;
}

.nav-item.cockpit-item.has-notifications:hover,
.nav-item.cockpit-item.has-tasks:hover {
  background: var(--cockpit-soft);
  box-shadow:
    0 5px 12px color-mix(in srgb, var(--cockpit-color) 8%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--cockpit-color) 10%, white);
}

.nav-item.cockpit-item.has-notifications.active,
.nav-item.cockpit-item.has-tasks.active {
  background: var(--cockpit-soft-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cockpit-color) 14%, white);
}

.nav-item.cockpit-item .nav-icon {
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--cockpit-color) 22%, white);
  border-radius: 10px;
  background: color-mix(in srgb, var(--cockpit-color) 8%, white);
  color: var(--cockpit-color);
  transition:
    background .28s var(--cockpit-ease),
    border-color .28s var(--cockpit-ease),
    color .28s var(--cockpit-ease),
    transform .28s var(--cockpit-ease);
}

.nav-item.cockpit-item:hover .nav-icon,
.nav-item.cockpit-item.active .nav-icon,
.nav-item.cockpit-item.has-notifications:hover .nav-icon,
.nav-item.cockpit-item.has-tasks:hover .nav-icon {
  background: var(--cockpit-color);
  border-color: var(--cockpit-color);
  color: #fff;
}

.nav-item.cockpit-item:hover .nav-icon {
  transform: scale(1.02);
}

.nav-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  transition: transform .26s var(--cockpit-ease);
}

.nav-item.cockpit-item:hover .nav-copy {
  transform: translateX(1px);
}

.nav-item.cockpit-item .nav-label {
  min-width: 0;
  color: var(--title);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-sub {
  min-width: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item.cockpit-item .nav-counter {
  margin-left: 0;
  min-width: 32px;
  height: 28px;
  gap: 6px;
  border: 1px solid #cfd7df;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 9px;
}

.nav-item.cockpit-item .nav-counter::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 9px;
}

.nav-item.cockpit-notifications .nav-counter {
  border-color: color-mix(in srgb, #cc405d 28%, white);
  background: color-mix(in srgb, #cc405d 11%, white);
  color: #cc405d;
}

.nav-item.cockpit-notifications .nav-counter::before {
  background: #cc405d;
  box-shadow: 0 0 0 4px color-mix(in srgb, #cc405d 13%, transparent);
}

.nav-item.cockpit-notifications.has-critical-notifications {
  border-color: #e7a5b3;
  background: #fff4f6;
  box-shadow: inset 3px 0 0 #b91c3c;
}

.nav-critical-indicator {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid #b91c3c;
  border-radius: 7px;
  background: #b91c3c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.nav-critical-indicator[hidden] {
  display: none;
}

.nav-item.cockpit-tasks .nav-counter {
  border-color: color-mix(in srgb, var(--accent) 28%, white);
  background: color-mix(in srgb, var(--accent) 11%, white);
  color: var(--accent);
}

.nav-item.cockpit-tasks .nav-counter::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.nav-item.cockpit-notifications:hover .nav-counter,
.nav-item.cockpit-notifications.active .nav-counter {
  background: #cc405d;
  border-color: #cc405d;
  color: #fff;
}

.nav-item.cockpit-tasks:hover .nav-counter,
.nav-item.cockpit-tasks.active .nav-counter {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Legacy-Fallback: bleibt bewusst drin, falls alte Module temporär noch module-dot nutzen. */
.nav-item .module-dot {
  width: 5px;
  height: 18px;
  border-radius: 1px;
  flex: 0 0 auto;
  background: transparent;
}

.nav-item.module-dms .module-dot { background: var(--dms); }
.nav-item.module-fulltext .module-dot { background: var(--fulltext); }
.nav-item.module-lv .module-dot { background: var(--lv); }
.nav-item.module-aufmass .module-dot { background: var(--aufmass); }
.nav-item.module-projektakte .module-dot { background: var(--projektakte); }
.nav-item.module-prozess .module-dot { background: var(--prozess); }
.nav-item.module-belegeingang .module-dot { background: var(--belegeingang); }
.nav-item.module-eingangsbuchung .module-dot { background: var(--eingangsbuchung); }
.nav-item.module-freigabe .module-dot { background: var(--freigabe); }
.nav-item.module-autojob .module-dot { background: var(--autojob); }
.nav-item.module-lizenz .module-dot { background: var(--lizenz); }
.nav-item.module-changelog .module-dot { background: var(--changelog); }

.module-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.subnav {
  display: none;
  margin: 0 0 8px 18px;
  padding-left: 10px;
  border-left: 1px solid #d9e1e7;
}

.module-entry.open .subnav {
  display: block;
}

.subnav-item {
  padding: 7px 8px;
  font-size: 0.84rem;
  color: var(--muted);
  border-radius: 8px;
}

.subnav-item:hover {
  background: #f6f9fb;
  color: var(--text);
}

.subnav-item.active {
  background: #e8f2f8;
  color: #1f6ea5;
  box-shadow: inset 0 0 0 1px #c9deea;
  font-weight: 700;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.main-inner {
  padding: 18px;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.view {
  display: none;
  min-width: 0;
  min-height: 0;
}

.view.active {
  display: block;
}

#notificationsView.view.active,
#embeddedModuleView.view.active,
#tasksView.view.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#dashboardView.view.active {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

#tasksView > .single-card {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 18px;
  margin-bottom: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.launcher-dashboard {
  grid-template-columns: minmax(420px, 1.35fr) minmax(330px, 0.85fr);
  grid-template-areas:
    "quick tasks"
    "quick recent"
    "system recent";
  align-items: stretch;
}

.launcher-dashboard .quickstart-card {
  grid-area: quick;
}

.launcher-dashboard .tasks-card {
  grid-area: tasks;
}

.launcher-dashboard .recent-card {
  grid-area: recent;
}

.launcher-dashboard .system-card {
  grid-area: system;
}

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 210px;
}

.card-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #f4f7fa;
  font-size: 0.78rem;
  font-weight: 700;
  color: #738395;
  text-transform: uppercase;
}

.hero-card h3 {
  margin: 18px 0 10px;
  font-size: 0.84rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8190a0;
  font-weight: 700;
}

.hero-main-title {
  margin: 0 0 14px;
  font-size: 2.4rem;
  line-height: 1.05;
  color: var(--title);
  font-weight: 600;
}

.hero-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-points {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.point {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: #f8fafc;
  font-size: 0.82rem;
  color: #334455;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h4 {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a8998;
  font-weight: 700;
}

.section-main-title {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--title);
  font-weight: 600;
}

.muted {
  font-size: 0.8rem;
  color: var(--muted);
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfcfd;
  font-size: 0.9rem;
}

.status-row strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.ok { color: #138154; }
.warn { color: #a87417; }

.list-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfcfd;
}

.list-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--title);
}

.list-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tasks-card .ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tasks-card .ops-tile {
  min-height: 104px;
}

.recent-list {
  display: grid;
  gap: 10px;
}

.recent-item {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfcfd;
  padding: 10px 12px;
  text-align: left;
  color: var(--title);
  cursor: pointer;
  font: inherit;
}

.recent-item:hover {
  border-color: #cdd8e2;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 28, 38, 0.06);
}

.recent-item:disabled,
.recent-item.permission-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(1);
}

.recent-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--tile-color, var(--accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.recent-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.recent-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--title);
  font-size: 0.92rem;
}

.recent-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
}

.recent-arrow {
  color: #697782;
}

.recent-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recent-empty {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed #cdd8e2;
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--muted);
  text-align: center;
}

.recent-empty strong {
  color: var(--title);
  font-size: 0.95rem;
}

.recent-empty span {
  font-size: 0.84rem;
}

.status-list-compact {
  gap: 8px;
}

.status-list-compact .status-row {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
}

.status-list-compact .status-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.status-list-compact .status-row strong {
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-tile {
  min-height: 112px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfcfd;
  padding: 14px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  text-align: left;
  color: var(--title);
  cursor: pointer;
  font: inherit;
}

.ops-tile:hover {
  background: #fff;
  border-color: #cdd8e2;
  box-shadow: 0 8px 18px rgba(17, 28, 38, 0.06);
}

.ops-tile.permission-disabled,
.ops-tile:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(1);
}

.ops-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e9f3f1;
  color: var(--accent);
}

.ops-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ops-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ops-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #758391;
  text-transform: uppercase;
}

.ops-copy strong {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--title);
  font-weight: 700;
}

.ops-copy span:last-child {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--muted);
}

.ops-tile[data-status="connected"] .ops-icon {
  background: #dff4e8;
  color: #138154;
}

.ops-tile[data-status="missing"] .ops-icon,
.ops-tile[data-status="checking"] .ops-icon {
  background: #eef2f5;
  color: #697782;
}

.ops-tile[data-status="error"] .ops-icon {
  background: #fff0f2;
  color: #b33333;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 264px;
  align-content: start;
  border: 1px dashed transparent;
  border-radius: 14px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.favorite-dropzone.is-drag-over {
  border-color: #8fb7c8;
  background: #f3f8fb;
  box-shadow: inset 0 0 0 2px rgba(31, 110, 165, 0.08);
}

.launcher-empty {
  grid-column: 1 / -1;
  min-height: 232px;
  border: 1px dashed #cdd8e2;
  border-radius: 14px;
  background: #fbfcfd;
  color: var(--muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.launcher-empty strong {
  color: var(--title);
  font-size: 1rem;
}

.launcher-empty span {
  font-size: 0.88rem;
}

.launcher-empty-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2f5;
  color: #697782;
}

.launcher-empty-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.launch-tile {
  border: 1px solid var(--line-soft);
  background: #fff;
  border-radius: 14px;
  padding: 0;
  text-align: left;
  display: block;
  position: relative;
  font-family: inherit;
  overflow: hidden;
}

.launch-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: var(--tile-color, #687786);
}

.launch-tile:hover {
  background: #fbfcfd;
}

.launch-tile.is-dragging {
  opacity: 0.42;
}

.launch-tile.is-new-favorite {
  border-color: color-mix(in srgb, var(--tile-color, #687786) 45%, white);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--tile-color, #687786) 18%, transparent),
    0 8px 18px rgba(17, 28, 38, 0.08);
}

.launch-action {
  width: 100%;
  min-height: 76px;
  border: 0;
  background: transparent;
  padding: 12px 46px 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  color: inherit;
  cursor: grab;
  font: inherit;
}

.launch-action:active {
  cursor: grabbing;
}

.launch-action:disabled {
  cursor: not-allowed;
}

.launch-tile.permission-disabled,
.launch-tile:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(1);
}

.launch-tile.permission-user-denied {
  background: #eef2f5;
  border-color: #cfd7df;
  filter: none;
}

.launch-tile .module-lock-icon {
  position: absolute;
  right: 50px;
  top: 14px;
  width: 17px;
  height: 17px;
  color: #697782;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
}

.launch-tile.permission-user-denied .module-lock-icon {
  opacity: 1;
}

.favorite-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f3f6f8;
  color: #6b7785;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.72;
}

.favorite-remove:hover {
  opacity: 1;
  color: #b33333;
  border-color: #f0cbd4;
  background: #fff5f7;
}

.favorite-remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.launch-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--tile-color, #687786);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.launch-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.launch-title {
  display: block;
  max-width: 100%;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--title);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-wrap: anywhere;
}

.launch-tile.tile-dms { --tile-color: var(--dms); }
.launch-tile.tile-prozess { --tile-color: var(--prozess); }
.launch-tile.tile-lv { --tile-color: var(--lv); }
.launch-tile.tile-laderaumplanung { --tile-color: var(--laderaumplanung); }
.launch-tile.tile-autojob { --tile-color: var(--autojob); }
.launch-tile.tile-autojob .launch-badge {
  background: linear-gradient(90deg, var(--autojob-ai-start), var(--autojob-ai-end));
}
.launch-tile.tile-projektakte { --tile-color: var(--projektakte); }
.launch-tile.tile-fulltext { --tile-color: var(--fulltext); }
.launch-tile.tile-belegeingang { --tile-color: var(--belegeingang); }
.launch-tile.tile-aufmass { --tile-color: var(--aufmass); }
.launch-tile.tile-eingangsbuchung { --tile-color: var(--eingangsbuchung); }
.launch-tile.tile-zahlungsplan { --tile-color: var(--zahlungsplan); }
.launch-tile.tile-mahntool { --tile-color: var(--mahntool); }
.launch-tile.tile-freigabe { --tile-color: var(--freigabe); }
.launch-tile.tile-dublettenpruefung { --tile-color: var(--changelog); }

.module-entry.is-pointer-draggable .module-row,
.module-entry[draggable="true"] .module-row {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.module-entry.is-dragging .module-row {
  opacity: 0.55;
}

body.noveum-module-dragging {
  cursor: grabbing;
  user-select: none;
}

.noveum-drag-ghost {
  position: fixed;
  left: -9999px;
  top: -9999px;
  z-index: 9999;
  pointer-events: none;
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--ghost-color, #607d8b) 32%, white);
  border-left: 5px solid var(--ghost-color, #607d8b);
  border-radius: 12px;
  background: #fff;
  color: var(--title);
  opacity: 0.96;
  box-shadow: 0 18px 34px rgba(17, 28, 38, 0.22);
  will-change: left, top;
}

.noveum-drag-ghost-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--ghost-color, #607d8b);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.noveum-drag-ghost-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.noveum-drag-ghost-copy strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
  line-height: 1.2;
}

.noveum-drag-ghost-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.single-card {
  min-height: 320px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-box {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  background: #fbfcfd;
}

.stat-box span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--title);
}

.module-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  display: block;
  background: #fff;
}

@media (max-width: 1280px) {
  .brand-row {
    grid-template-columns: var(--brand-w) 1fr;
  }
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .shell {
    height: auto;
    min-height: calc(100vh - 36px);
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .sidebar {
    overflow: visible;
  }

  .sidebar-inner {
    overflow: visible;
  }

  .brand-row {
    grid-template-columns: 1fr;
  }

  .brand {
    border-right: 0;
    border-bottom: 1px solid #313840;
  }

  .main {
    overflow: visible;
  }

  .main-inner {
    overflow: visible;
  }

  #notificationsView.view.active,
  #embeddedModuleView.view.active,
  #tasksView.view.active {
    min-height: 720px;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .content-grid,
  .stats-grid,
  .launcher-grid,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    height: auto;
    flex-basis: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .launcher-search {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }

  .launcher-dashboard {
    grid-template-areas:
      "quick"
      "tasks"
      "recent"
      "system";
  }

  #notificationsView.view.active,
  #embeddedModuleView.view.active,
  #tasksView.view.active {
    min-height: 900px;
  }
}

