:root {
  color-scheme: light;
  --bg: #eef1f3;
  --panel: #ffffff;
  --panel-soft: #f7f9fa;
  --ink: #30383b;
  --muted: #667174;
  --line: #dce2e4;
  --brand: #9ccc17;
  --brand-dark: #7ea70e;
  --brand-soft: #eef8d6;
  --charcoal: #252d30;
  --charcoal-2: #343d40;
  --danger: #bf2f18;
  --danger-soft: #fff0eb;
  --warning: #a16207;
  --warning-soft: #fff7d6;
  --ok: #247a4d;
  --ok-soft: #e9f8ef;
  --shadow: 0 18px 45px rgba(48, 56, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.unauthenticated {
  overflow: hidden;
  height: 100vh;
}

body.dialog-open {
  overflow: hidden;
}

body.dialog-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(16, 21, 22, 0.48);
}

body.theme-dark {
  --bg: #0f1416;
  --panel: #182022;
  --panel-soft: #11181a;
  --ink: #edf2f3;
  --muted: #9babb0;
  --line: #273235;
  --brand-soft: rgba(156, 204, 23, 0.12);
  --danger-soft: rgba(191, 47, 24, 0.18);
  --warning-soft: rgba(161, 98, 7, 0.18);
  --ok-soft: rgba(36, 122, 77, 0.18);
  --charcoal: #f1f5f6;
  --charcoal-2: #d7e0e3;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

body.theme-dark .sidebar {
  background: #0b1011;
}

body.theme-dark .secondary-button,
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark .search-select-button,
body.theme-dark .search-select-dropdown,
body.theme-dark .action-menu-list,
body.theme-dark .icon-button {
  background: #12191b;
  color: var(--ink);
}

body.theme-dark .project-action-button {
  border-color: rgba(238, 244, 241, 0.12);
  background: rgba(238, 244, 241, 0.06);
  color: var(--ink);
  box-shadow: none;
}

body.theme-dark .project-action-button:hover {
  border-color: rgba(151, 197, 21, 0.48);
  background: rgba(151, 197, 21, 0.14);
}

body.theme-dark .brand,
body.theme-dark .sales-subnav-button,
body.theme-dark .settings-subnav-button,
body.theme-dark .product-subnav-button,
body.theme-dark .customer-section-button,
body.theme-dark .project-section-button,
body.theme-dark .asset-filter,
body.theme-dark .project-portfolio-card,
body.theme-dark .project-budget-stat,
body.theme-dark .project-budget-traffic,
body.theme-dark .project-task-lane,
body.theme-dark .project-package,
body.theme-dark .project-task-item,
body.theme-dark .service-check-item,
body.theme-dark .project-summary-card,
body.theme-dark .agent-overview-card span,
body.theme-dark .pill {
  background: #12191b;
}

body.theme-dark .project-task-empty {
  background: rgba(18, 25, 27, 0.7);
}

body.theme-dark .auth-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(18, 25, 27, 0.88);
}

body.theme-dark .toast {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 25, 27, 0.96);
  color: #eef3f2;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.app-hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(226, 127, 43, 0.16), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(151, 197, 21, 0.12), transparent 26%),
    radial-gradient(circle at 50% 92%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(135deg, #f6f1e8 0%, #efe4d4 48%, #f8f5ee 100%);
}

.auth-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(180deg, transparent 0%, rgba(184, 118, 54, 0.08) 100%);
  pointer-events: none;
}

.auth-gate::after {
  content: "";
  position: absolute;
  inset: auto auto -160px -120px;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(226, 127, 43, 0.12);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(440px, 100%);
  display: grid;
  gap: 22px;
  padding: 32px;
  border: 1px solid rgba(184, 118, 54, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 70px rgba(74, 56, 38, 0.14);
  text-align: center;
  backdrop-filter: blur(8px);
}

.auth-card h1,
.auth-card p {
  margin: 0;
}

.auth-card p {
  color: var(--muted);
}

.auth-logo {
  width: min(300px, 88%);
  max-width: 100%;
  margin: 0 auto 4px;
}

.auth-button-stack {
  display: grid;
  gap: 10px;
}

.auth-provider-button {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.microsoft-mark {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, 9px);
}

.microsoft-mark span {
  display: block;
  height: 9px;
  width: 9px;
}

.microsoft-mark span:nth-child(1) {
  background: #f25022;
}

.microsoft-mark span:nth-child(2) {
  background: #7fba00;
}

.microsoft-mark span:nth-child(3) {
  background: #00a4ef;
}

.microsoft-mark span:nth-child(4) {
  background: #ffb900;
}

.panel-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.session-user {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  text-align: left;
}

.session-user strong {
  font-size: 14px;
}

.session-user strong,
.session-user span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding: 24px 18px;
  background: #101516;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 78px;
  margin-bottom: 28px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 14px;
  color: #d9dee0;
  font-weight: 800;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background: var(--brand);
  color: #111617;
}

.nav-sub-link {
  min-height: 38px;
  margin-left: 16px;
  padding-left: 18px;
  font-size: 14px;
}

.operations-shell {
  align-items: start;
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
  padding: 18px 0 0;
  color: #aeb7ba;
  font-size: 13px;
}

.sidebar-footer > * {
  min-width: 0;
  max-width: 100%;
}

.sidebar-footer strong {
  color: #fff;
}

.sidebar-signature {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.2;
}

.sidebar-signature strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.sidebar-signature span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.profile-button:hover {
  border-color: rgba(156, 204, 23, 0.45);
  background: rgba(156, 204, 23, 0.08);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  color: #d9dee0;
  font-size: 13px;
  font-weight: 800;
}

.theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-toggle-slider {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}

.theme-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease;
}

.theme-toggle input:checked + .theme-toggle-slider {
  background: var(--brand);
}

.theme-toggle input:checked + .theme-toggle-slider::after {
  transform: translateX(20px);
}

.workspace {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--charcoal);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  color: var(--charcoal);
  font-size: 21px;
  letter-spacing: 0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  border: 0;
  background: var(--brand);
  color: #121718;
}

.primary-button:hover {
  background: var(--brand-dark);
  color: #fff;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--charcoal);
}

.link-button {
  text-decoration: none;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

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

.stats article,
.panel,
.customer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stats article {
  min-height: 112px;
  padding: 18px;
}

.stats span {
  display: block;
  margin-bottom: 8px;
  color: var(--charcoal-2);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.stats article:first-child span {
  color: var(--brand-dark);
}

.stats p {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.sales-shell {
  display: block;
}

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

.workspace-subnav,
.sales-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.operations-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sales-subnav-button,
.product-subnav-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.sales-subnav-button.active,
.sales-subnav-button:hover,
.product-subnav-button.active,
.product-subnav-button:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: #182000;
}

.product-shell {
  display: grid;
  gap: 16px;
}

.product-subnav {
  margin-bottom: 0;
}

.product-section {
  display: none;
}

.product-section.active {
  display: block;
}

.product-panel {
  display: grid;
  gap: 16px;
}

.service-top-list {
  display: grid;
  gap: 10px;
}

.service-assignment-filters {
  align-items: end;
}

.compact-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.sales-content {
  display: grid;
  gap: 16px;
}

.wide-content {
  width: 100%;
}

.sales-section {
  display: none;
}

.sales-section.active {
  display: block;
}

.sales-heat-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.sales-heat-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.sales-heat-card.hot {
  background: #fde2df;
  border-color: #efb7b0;
}

.sales-heat-card.warm {
  background: #fff1cc;
  border-color: #ead28b;
}

.sales-heat-card.cool {
  background: #e7f2ff;
  border-color: #bdd8ff;
}

.sales-heat-card strong {
  color: var(--charcoal);
}

.sales-heat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.settings-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  grid-column: 1 / -1;
}

.settings-subnav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.settings-subnav-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--charcoal);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.settings-subnav-button.active,
.settings-subnav-button:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: #182000;
}

.settings-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: block;
}

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

.audit-filters {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto;
  align-items: end;
}

.settings-sync-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.settings-sync-card strong {
  font-size: 14px;
}

.settings-sync-card span,
.settings-sync-card small,
.field-hint {
  color: var(--muted);
}

.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(156, 204, 23, 0.18);
  background:
    linear-gradient(135deg, rgba(156, 204, 23, 0.12), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.dashboard-hero h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.dashboard-hero-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 180px;
}

.dashboard-hero-meta strong {
  color: var(--charcoal);
  font-size: 18px;
}

.dashboard-hero-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-kpi {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8faf9);
  box-shadow: 0 10px 24px rgba(48, 56, 59, 0.05);
}

.dashboard-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-kpi strong {
  color: var(--charcoal);
  font-size: 34px;
  line-height: 1;
}

.dashboard-kpi p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.dashboard-kpi.kpi-emphasis {
  border-color: rgba(151, 197, 20, 0.35);
  background: linear-gradient(135deg, rgba(151, 197, 20, 0.16), #ffffff 62%);
}

.dashboard-kpi.kpi-emphasis strong {
  color: var(--brand-dark);
}

.gl-finance-kpis {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.gl-finance-kpi {
  display: grid;
  align-content: space-between;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8faf9);
  box-shadow: 0 12px 28px rgba(48, 56, 59, 0.06);
}

.gl-finance-kpi-primary {
  border-color: rgba(151, 197, 20, 0.35);
  background: linear-gradient(135deg, rgba(151, 197, 20, 0.16), #ffffff 62%);
}

.gl-finance-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.gl-finance-kpi strong {
  margin-top: 10px;
  color: var(--charcoal);
  font-size: 34px;
  line-height: 1;
}

.gl-finance-kpi-primary strong {
  color: var(--brand-dark);
}

.gl-finance-kpi p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.gl-finance-panel {
  background: linear-gradient(180deg, #ffffff, #fbfcfa);
}

.gl-finance-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.gl-finance-summary strong {
  display: block;
  margin-bottom: 6px;
  color: var(--charcoal);
  font-size: 18px;
}

.gl-finance-summary p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 280px;
  padding-top: 18px;
}

.dashboard-chart-day {
  display: grid;
  gap: 10px;
  align-items: end;
  justify-items: center;
  min-height: 240px;
}

.dashboard-chart-value {
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-chart-bar-wrap {
  display: flex;
  align-items: end;
  width: 100%;
  height: 190px;
  padding: 0 10px;
}

.dashboard-chart-bar {
  width: 100%;
  min-height: 8px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.08);
}

.dashboard-chart-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-agent-list,
.dashboard-recent-list,
.dashboard-highlight-list {
  display: grid;
  gap: 12px;
}

.product-usage-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.project-board {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.project-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(160px, 0.7fr) minmax(220px, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

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

.project-portfolio-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbfb);
  box-shadow: 0 10px 24px rgba(48, 56, 59, 0.05);
}

.project-portfolio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-portfolio-customer {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--charcoal);
  font-size: 22px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.project-portfolio-copy,
.project-task-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.project-portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-progress-block,
.project-package-progress {
  display: grid;
  gap: 8px;
}

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

.project-progress-head strong {
  color: var(--charcoal);
  font-size: 13px;
}

.project-progress-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-progress-track {
  position: relative;
  min-height: 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  overflow: hidden;
}

.project-progress-track.compact {
  min-height: 8px;
}

.project-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.progress-ok {
  background: linear-gradient(90deg, #72c17c, #247a4d);
}

.progress-warning {
  background: linear-gradient(90deg, #f2c14f, #c28700);
}

.progress-error {
  background: linear-gradient(90deg, #ea6b5b, #bf2f18);
}

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

.project-assignee-chip,
.history-actor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-budget-stat,
.project-budget-traffic {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.project-budget-stat span,
.project-budget-traffic span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-budget-stat strong,
.project-budget-traffic strong {
  color: var(--charcoal);
  font-size: 14px;
}

.traffic-ok {
  border-color: rgba(36, 122, 77, 0.24);
  background: #ebf7f0;
}

.traffic-warning {
  border-color: rgba(161, 98, 7, 0.24);
  background: #fff7e8;
}

.traffic-error {
  border-color: rgba(191, 47, 24, 0.24);
  background: #fff0eb;
}

.traffic-muted {
  background: var(--panel-soft);
}

.project-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.project-summary-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.project-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-summary-card strong {
  color: var(--charcoal);
  font-size: 16px;
}

.project-summary-card p {
  margin: 0;
  color: var(--muted);
}

.project-team-stack {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding-top: 2px;
}

.project-team-stack .user-avatar {
  margin-left: -6px;
  border: 2px solid var(--panel);
}

.project-team-stack .user-avatar:first-child {
  margin-left: 0;
}

.project-team-overflow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -6px;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 900;
}

.project-team-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.project-status-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.project-status-summary-item {
  display: grid;
  gap: 1px;
  min-width: 0;
  border-radius: 8px;
  padding: 7px 8px;
  background: var(--panel);
}

.project-status-summary-item strong {
  font-size: 16px;
  line-height: 1;
}

.project-status-summary-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-status-summary-item.status-offen {
  background: #fff0ef;
  color: #a5403a;
}

.project-status-summary-item.status-in_bearbeitung {
  background: #fff5d9;
  color: #805200;
}

.project-status-summary-item.status-done {
  background: #eaf7ef;
  color: #247a4d;
}

.project-summary-warning {
  border-color: rgba(79, 131, 200, 0.22);
  background: #f0f6fc;
}

.project-timeline {
  display: grid;
  gap: 12px;
}

.project-gantt-shell,
.project-gantt-rows {
  display: grid;
  gap: 8px;
}

.project-gantt-shell {
  overflow-x: auto;
  padding-bottom: 4px;
}

.project-gantt-toolbar {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 760px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-gantt-axis,
.project-gantt-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(560px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 760px;
}

.project-gantt-axis-title,
.project-gantt-label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-gantt-label-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.project-gantt-label-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-gantt-axis-grid,
.project-gantt-grid {
  position: relative;
  display: grid;
  gap: 0;
  align-items: center;
}

.project-gantt-axis-day,
.project-gantt-cell {
  min-height: 28px;
  border-left: 1px solid rgba(220, 226, 228, 0.75);
}

.project-gantt-axis-day {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.project-gantt-axis-day.minor {
  color: transparent;
}

.project-gantt-cell {
  background: rgba(247, 249, 250, 0.42);
}

.project-gantt-bar {
  z-index: 1;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin: 2px 0;
  border-radius: 999px;
  padding: 0 8px;
  background: linear-gradient(90deg, #4f83c8, #6a9bd8) !important;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(44, 93, 150, 0.18);
}

.project-gantt-bar.clipped-start {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.project-gantt-bar.clipped-end {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.project-gantt-resource {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.project-gantt-bar .project-gantt-resource .user-avatar {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  font-size: 9px;
}

.project-gantt-milestone {
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: #8fbce8 !important;
  box-shadow: 0 7px 16px rgba(88, 132, 180, 0.24);
  transform: rotate(45deg);
}

.project-gantt-today {
  z-index: 2;
  grid-row: 1 / -1;
  width: 2px;
  justify-self: center;
  align-self: stretch;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(156, 204, 23, 0.15);
}

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

.project-package {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.project-package.is-milestone {
  border-color: rgba(79, 131, 200, 0.22);
  background: linear-gradient(180deg, #ffffff, #f6faff);
}

.project-package.has-dependency {
  border-left: 3px solid #8fbce8;
}

.project-package.is-draggable {
  cursor: grab;
}

.project-drag-handle {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.55;
  pointer-events: none;
}

.project-package.is-draggable:hover .project-drag-handle {
  opacity: 0.9;
}

.project-package.dragging {
  opacity: 0.55;
}

.project-package-head {
  display: grid;
  gap: 8px;
}

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

.project-package-title-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-package-title-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-package-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-height: 28px;
}

.project-card-actions .icon-button {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
}

.project-package-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-status-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.project-status-icon:hover,
.project-status-icon:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  color: var(--charcoal);
  outline: none;
  transform: translateY(-1px);
}

.project-status-icon.active {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--brand) 14%, #fff 86%);
  color: var(--brand-dark);
}

.project-status-icon:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.dependency-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(162, 98, 7, 0.28);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff7e6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 900;
}

.project-package-dependency {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(79, 131, 200, 0.2);
  border-radius: 8px;
  padding: 8px;
  background: #f5f9fd;
}

.project-package-dependency.is-blocking {
  border-color: rgba(162, 98, 7, 0.24);
  background: #fff8ea;
}

.project-package-dependency.is-ready {
  border-color: rgba(36, 122, 77, 0.18);
  background: #eef8f1;
}

.project-package-dependency-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #e4f0fb;
  color: #2f669c;
}

.project-package-dependency.is-blocking .project-package-dependency-icon {
  background: #fff0cf;
  color: #8a5a00;
}

.project-package-dependency.is-ready .project-package-dependency-icon {
  background: #dff3e7;
  color: #247a4d;
}

.project-package-dependency-icon svg,
.project-package-kind svg,
.project-card-actions .icon-button svg,
.project-detail-actions .project-action-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-package-dependency span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-package-dependency strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--charcoal);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-package-dependency em {
  display: block;
  margin-top: 2px;
  color: #8a5a00;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.project-package-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.milestone-kind {
  background: #e4f0fb;
  color: #2f669c;
}

.project-collapse-button {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.project-task-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-package-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.project-package-lane {
  display: grid;
  gap: 10px;
  min-height: 240px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 249, 250, 0.7);
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.project-package-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
}

.project-package-lane-head strong {
  color: var(--charcoal);
  font-size: 13px;
}

.project-package-lane-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.project-package-lane-list {
  display: grid;
  gap: 10px;
}

.project-task-board.collapsed {
  display: none;
}

.project-task-lane {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 249, 250, 0.85);
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.project-task-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-task-lane-head strong {
  color: var(--charcoal);
  font-size: 13px;
}

.project-task-lane-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-task-lane.lane-offen {
  border-top: 3px solid #bf2f18;
}

.project-task-lane.lane-in_bearbeitung {
  border-top: 3px solid #c28700;
}

.project-task-lane.lane-geschlossen {
  border-top: 3px solid #247a4d;
}

.project-task-lane.is-drop-target {
  border-color: var(--brand);
  background: rgba(156, 204, 23, 0.12);
  transform: translateY(-2px);
}

.project-package-lane.lane-offen {
  border-top: 2px solid #bf2f18;
}

.project-package-lane.lane-in_bearbeitung {
  border-top: 2px solid #c28700;
}

.project-package-lane.lane-geschlossen {
  border-top: 2px solid #247a4d;
}

.project-package-meta,
.project-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-package-task-list {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.project-package-task-list.collapsed {
  display: none;
}

.work-package-task-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.work-package-task-list {
  display: grid;
  gap: 10px;
}

.work-package-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.work-package-task-row.is-done {
  background: #f6f8f7;
}

.task-checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.task-checkline input {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: var(--brand);
  transform: translateY(1px);
}

.task-check-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.task-check-copy strong {
  color: var(--charcoal);
  font-size: 13px;
}

.task-check-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.work-package-task-row.is-done .task-check-copy strong,
.project-task-item.is-done strong {
  text-decoration: line-through;
  color: var(--muted);
}

.project-task-item.is-done {
  background: color-mix(in srgb, #fff 82%, var(--panel-soft) 18%);
  opacity: 0.78;
}

.work-package-task-row.is-done .task-check-copy span,
.project-task-item.is-done .project-task-copy {
  text-decoration: line-through;
  opacity: 0.72;
}

.project-subtask-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 34px;
  padding: 6px 10px;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.project-subtask-toggle strong {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1;
  flex: 0 0 auto;
}

.project-subtask-toggle strong::before {
  content: none;
}

.project-subtask-toggle[aria-expanded="true"] strong::before {
  content: none;
}

.project-subtask-toggle span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-toggle {
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.compact-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
}

.rapport-text-label {
  gap: 8px;
}

.rapport-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rapport-goodwill-toggle {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 0;
  margin: 0;
}

.project-task-list {
  display: grid;
  gap: 10px;
}

.project-task-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.project-task-item.is-draggable {
  cursor: grab;
}

.project-task-item.dragging {
  opacity: 0.55;
}

.project-task-empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.7);
}

.product-service-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.product-service-summary strong {
  color: var(--charcoal);
  font-size: 16px;
}

.product-service-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.selected-row {
  background: rgba(156, 204, 23, 0.08);
}

.compact-form {
  margin-top: 16px;
}

.service-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.service-check-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.service-check-item:has(input[type="checkbox"]:checked) {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, #fff 92%);
}

.service-check-item input[type="checkbox"] {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand-dark);
}

.service-check-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.service-check-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--charcoal);
  font-size: 14px;
}

.service-check-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.table-primary,
.table-secondary {
  display: block;
}

.table-primary {
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 900;
}

.table-secondary {
  max-width: 520px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.project-member-item {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
}

.project-member-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.project-member-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-member-copy strong,
.project-member-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-member-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  accent-color: var(--brand-dark);
}

.dashboard-agent-card,
.dashboard-recent-item,
.dashboard-highlight-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f9fbfb);
}

.dashboard-agent-card header,
.dashboard-recent-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-agent-card strong,
.dashboard-recent-item strong,
.dashboard-highlight-item strong {
  color: var(--charcoal);
  font-size: 14px;
}

.dashboard-agent-stats,
.dashboard-recent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-agent-stats span,
.dashboard-recent-meta span,
.dashboard-highlight-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.panel {
  padding: 22px;
}

.highlight-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  background: var(--charcoal);
  color: #fff;
}

.highlight-panel h2,
.highlight-panel .eyebrow {
  color: #fff;
}

.highlight-panel .eyebrow {
  color: var(--brand);
}

.highlight-panel p {
  color: #d9dee0;
  line-height: 1.55;
}

.text-link,
.source-link {
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.highlight-panel .text-link {
  color: var(--brand);
}

.text-link:hover,
.source-link:hover {
  text-decoration: underline;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--muted);
  font-weight: 800;
}

.task-list,
.settings-list {
  display: grid;
  gap: 12px;
}

.task-list div,
.settings-list div {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.task-list span,
.settings-list dd,
.customer-card p {
  color: var(--muted);
  line-height: 1.5;
}

.settings-list {
  margin: 16px 0 0;
}

.settings-list dt {
  color: var(--charcoal);
  font-weight: 900;
}

.settings-list dd {
  margin: 0;
}

.filters {
  display: grid;
  grid-template-columns: 160px minmax(180px, 260px) 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.customer-search {
  max-width: 420px;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.ticket-table-wrap {
  overflow: visible;
  padding-bottom: 90px;
}

.ticket-table {
  min-width: 980px;
  table-layout: fixed;
}

.ticket-table th,
.ticket-table td {
  font-size: 13px;
}

.ticket-table th:nth-child(1),
.ticket-table td:nth-child(1) {
  width: 110px;
}

.ticket-table th:nth-child(4),
.ticket-table td:nth-child(4) {
  width: 150px;
}

.ticket-table th:nth-child(5),
.ticket-table td:nth-child(5) {
  width: 130px;
}

.ticket-table th:nth-child(6),
.ticket-table td:nth-child(6) {
  width: 90px;
}

.ticket-table th:nth-child(8),
.ticket-table td:nth-child(8) {
  width: 150px;
}

.ticket-number-cell {
  width: 112px;
  white-space: nowrap;
}

.ticket-actions-cell {
  width: 92px;
  overflow: visible;
}

.asset-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.customer-overview-panel {
  margin-bottom: 16px;
  border: 1px solid rgba(156, 204, 23, 0.18);
  background:
    linear-gradient(180deg, rgba(156, 204, 23, 0.08), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.customer-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.customer-overview-copy {
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

.customer-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.customer-class-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.customer-class-badge.class-a {
  background: #e7f6ed;
  color: #1f6f46;
}

.customer-class-badge.class-b {
  background: #edf6ff;
  color: #275f96;
}

.customer-class-badge.class-c {
  background: #fff4d8;
  color: #805200;
}

.customer-class-badge.class-d {
  background: #ffebe7;
  color: #9f2f23;
}

.project-detail-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.project-action-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--charcoal) 12%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, #fff 86%, var(--soft) 14%);
  color: var(--charcoal);
  box-shadow: 0 10px 24px rgba(28, 35, 40, 0.08);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.project-action-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-action-button:hover {
  border-color: color-mix(in srgb, var(--lime) 48%, var(--charcoal) 12%);
  background: color-mix(in srgb, var(--lime) 16%, #fff 84%);
  color: var(--charcoal);
  transform: translateY(-1px);
}

.project-action-button.danger {
  color: #b42318;
}

.project-action-button.danger:hover {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.08);
}

.project-action-button.success {
  color: var(--ok);
}

.project-action-button.success:hover {
  border-color: rgba(36, 122, 77, 0.34);
  background: var(--ok-soft);
}

.customer-section-button,
.project-section-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.customer-section-button.active,
.customer-section-button:hover,
.project-section-button.active,
.project-section-button:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: #182000;
}

.customer-section-panel,
.project-section-panel {
  display: none;
}

.customer-section-panel.active,
.project-section-panel.active {
  display: block;
}

.customer-section-stack {
  display: grid;
  gap: 16px;
}

.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.customer-info-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 20px;
}

.customer-summary-card,
.customer-health-card {
  height: auto;
}

.customer-summary-card {
  box-shadow: 0 14px 34px rgba(28, 35, 40, 0.05);
}

.customer-health-card {
  order: -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.36fr);
  align-items: start;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--charcoal) 10%, transparent);
  background: color-mix(in srgb, #fff 92%, var(--soft) 8%);
  box-shadow: 0 18px 44px rgba(28, 35, 40, 0.07);
}

.customer-health-card > .section-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.customer-overview-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.customer-overview-actions > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.customer-class-inline-form {
  margin: 0;
}

.customer-class-inline-form label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-class-inline-form select {
  width: auto;
  min-width: 64px;
  height: 34px;
  padding: 0 28px 0 10px;
  font-size: 13px;
  font-weight: 900;
}

.customer-health-list {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(88px, auto);
  gap: 10px;
}

.customer-health-list article,
.customer-health-action {
  display: grid;
  align-content: center;
  gap: 5px;
  width: 100%;
  min-height: 88px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
}

.customer-health-primary {
  grid-column: 1 / -1;
}

.customer-health-action {
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.customer-health-action:hover,
.customer-health-action:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, #fff 90%);
  box-shadow: 0 12px 26px rgba(28, 35, 40, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.customer-health-list span,
.customer-health-action span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-health-list strong,
.customer-health-action strong {
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.4;
}

.customer-health-primary strong {
  font-size: 18px;
}

.customer-quality-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(110px, 132px) minmax(140px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 88px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
}

.customer-quality-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.customer-quality-head div {
  display: grid;
  gap: 2px;
}

.customer-quality-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-quality-head strong {
  color: var(--charcoal);
  font-size: 18px;
}

.quality-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.quality-dot.tone-ok {
  background: #2d9b64;
}

.quality-dot.tone-warning {
  background: #d89512;
}

.quality-dot.tone-error {
  background: #c94532;
}

.customer-quality-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.customer-quality-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.2s ease;
}

.customer-quality-bar .tone-ok {
  background: #2d9b64;
}

.customer-quality-bar .tone-warning {
  background: #d89512;
}

.customer-quality-bar .tone-error {
  background: #c94532;
}

.customer-quality-list {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

.customer-quality-list span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-quality-list .quality-complete {
  max-width: 220px;
  background: #e7f6ed;
  color: #1f6f46;
}

.customer-recent-card {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 10px;
  min-height: 186px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
}

.customer-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-recent-head .text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.customer-recent-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-recent-list {
  display: grid;
  gap: 8px;
}

.customer-recent-item {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.customer-recent-item:hover,
.customer-recent-item:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, #fff 92%);
  outline: none;
  transform: translateY(-1px);
}

.customer-recent-type {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-recent-item strong {
  overflow: hidden;
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-recent-item small,
.customer-recent-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.info-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
}

.info-tile-wide {
  grid-column: span 2;
}

.info-tile strong {
  display: block;
  margin-bottom: 2px;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.info-tile p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.info-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 13%, #fff 87%);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}

.info-icon svg {
  width: 18px;
  height: 18px;
}

.customer-contact-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 14px;
}

.customer-contact-toolbar .compact-field {
  width: min(100%, 360px);
}

.customer-contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.customer-contact-card {
  display: grid;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f9fbfb);
  box-shadow: 0 10px 24px rgba(48, 56, 59, 0.05);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.customer-contact-card:hover,
.customer-contact-card:focus-visible {
  border-color: rgba(151, 197, 20, 0.5);
  box-shadow: 0 14px 28px rgba(48, 56, 59, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.customer-contact-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.customer-contact-meta strong {
  color: var(--charcoal);
  font-size: 14px;
}

.customer-contact-meta label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-contact-meta input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.customer-contact-meta input[readonly] {
  background: var(--panel-soft);
  color: var(--muted);
}

.customer-contact-meta input[data-contact-function]:not([readonly]) {
  background: #fff;
  color: var(--charcoal);
}

.contact-function-save {
  width: 100%;
  min-height: 38px;
}

.customer-ninja-stack {
  display: grid;
  gap: 16px;
}

.customer-service-table {
  min-width: 640px;
}

.customer-note-list {
  display: grid;
  gap: 12px;
}

.customer-note-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
}

.customer-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.customer-note-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.customer-note-author-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.customer-note-author-meta strong {
  color: var(--charcoal);
  font-size: 14px;
}

.customer-note-author-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-note-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-note-body {
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.55;
}

.customer-timeline-list {
  display: grid;
  gap: 0;
}

.customer-timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.customer-timeline-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.customer-timeline-filter strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--charcoal);
  font-size: 12px;
}

.customer-timeline-filter.active,
.customer-timeline-filter:hover {
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  background: color-mix(in srgb, var(--brand) 12%, #fff 88%);
  color: var(--charcoal);
}

.customer-timeline-filter.active strong,
.customer-timeline-filter:hover strong {
  background: #fff;
}

.customer-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.16s ease, padding-inline 0.16s ease;
}

.customer-timeline-item + .customer-timeline-item {
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.customer-timeline-item:hover,
.customer-timeline-item:focus-visible {
  padding-inline: 10px;
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  outline: none;
}

.customer-timeline-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 13%, #fff 87%);
  color: color-mix(in srgb, var(--brand) 70%, var(--charcoal) 30%);
}

.customer-timeline-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-timeline-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.customer-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-timeline-body strong {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.3;
}

.customer-timeline-subtitle,
.customer-timeline-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.customer-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-timeline-amount {
  color: var(--charcoal);
  font-weight: 900;
}

.empty-note-state {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.ticket-notes-panel {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.compact-section-head {
  margin-bottom: 0;
  padding-bottom: 2px;
}

.ticket-note-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--panel-soft);
}

.ticket-note-composer textarea {
  min-height: 96px;
  background: var(--panel);
}

.ticket-note-composer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

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

.ticket-note-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel-soft);
}

.ticket-note-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ticket-note-meta {
  display: grid;
  gap: 2px;
}

.ticket-note-item strong {
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 900;
}

.ticket-note-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ticket-note-item p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.user-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar.small {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.user-avatar.tone-0 { background: #5b8def; }
.user-avatar.tone-1 { background: #6c9a19; }
.user-avatar.tone-2 { background: #ca6f1e; }
.user-avatar.tone-3 { background: #8e44ad; }
.user-avatar.tone-4 { background: #157a6e; }
.user-avatar.tone-5 { background: #c0392b; }

.profile-avatar-large {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.profile-dialog-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-dialog-meta {
  display: grid;
  gap: 4px;
}

.profile-dialog-meta strong {
  color: var(--charcoal);
  font-size: 18px;
}

.profile-dialog-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.asset-filter-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8faf9;
}

.asset-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.asset-filter-title h3 {
  margin: 0;
  font-size: 14px;
}

.asset-filter-clear {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.asset-filter-list {
  display: grid;
  gap: 8px;
}

.asset-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.asset-filter span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-filter strong {
  color: var(--muted);
  font-size: 13px;
}

.asset-filter.active {
  border-color: var(--lime);
  background: #f1f8dd;
}

.empty-filter {
  color: var(--muted);
  font-size: 13px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.data-table td:first-child {
  color: var(--charcoal);
  font-weight: 900;
}

.data-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.table-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.asset-link {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
  cursor: pointer;
}

.asset-link:disabled {
  background: #eef1f3;
  color: var(--muted);
  cursor: default;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ticket-actions-cell {
  min-width: 138px;
}

.action-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.action-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 146px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.action-menu-list button {
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.action-menu-list button:hover {
  background: var(--panel-soft);
}

.action-menu-list button.danger {
  color: #a5281f;
}

.icon-text-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.icon-text-button.danger {
  color: #a5281f;
}

.modal {
  width: min(680px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 48px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(16, 21, 22, 0.25);
  overflow: auto;
}

.modal[open],
.modal.is-open {
  position: fixed;
  inset: 24px;
  z-index: 80;
  margin: auto;
}

.compact-modal {
  width: min(520px, calc(100vw - 28px));
}

.wide-modal {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.quote-view-layout {
  display: grid;
  gap: 20px;
}

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

.quote-view-summary article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel-soft);
}

.quote-view-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-view-summary strong {
  color: var(--charcoal);
  font-size: 15px;
}

.compact-section-title {
  margin-bottom: 12px;
}

.compact-section-title h3 {
  margin: 0;
  color: var(--charcoal);
}

.quote-position-table {
  min-width: 720px;
}

.ticket-modal {
  width: min(1040px, calc(100vw - 28px));
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.ticket-modal .modal-header {
  align-items: flex-start;
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.ticket-modal .modal-header h2 {
  margin-bottom: 0;
}

.ticket-modal #ticketForm,
.ticket-modal .ticket-view-panel,
.ticket-modal .ticket-notes-panel {
  margin: 0;
  padding: 24px;
}

.ticket-modal-edit #ticketForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px 20px;
}

.ticket-modal-edit #ticketForm > input[type="hidden"],
.ticket-modal-edit #ticketForm > label:nth-of-type(3),
.ticket-modal-edit #ticketForm > label:nth-of-type(4),
.ticket-modal-edit #ticketForm > .button-row {
  grid-column: 1 / -1;
}

.ticket-modal-edit #ticketForm textarea {
  min-height: 104px;
}

.ticket-view-panel {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(156, 204, 23, 0.06), transparent 130px),
    var(--panel-soft);
}

.ticket-view-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ticket-view-actions .secondary-button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.ticket-view-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(48, 56, 59, 0.08);
  border-left: 5px solid var(--brand);
  border-radius: 14px;
  padding: 20px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(48, 56, 59, 0.08);
}

.ticket-view-hero h3 {
  margin: 4px 0 0;
  color: var(--charcoal);
  font-size: 24px;
  line-height: 1.2;
}

.ticket-view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  padding: 2px 4px;
  border: 0;
}

.ticket-view-meta-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.ticket-view-meta-item:nth-child(3n) {
  border-right: 0;
}

.ticket-view-meta-item:nth-child(n + 4) {
  border-top: 0;
}

.ticket-view-meta-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.ticket-view-meta-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ticket-view-meta-item > div > span:first-child,
.ticket-view-description > span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ticket-view-meta-item strong {
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 900;
}

.ticket-view-assignee {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  line-height: 1;
  vertical-align: middle;
}

.ticket-view-assignee .user-avatar {
  display: inline-grid;
  align-self: center;
}

.ticket-view-assignee span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 24px;
}

.ticket-view-description {
  border: 0;
  border-radius: 0;
  padding: 4px;
  background: transparent;
}

.ticket-view-description p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ticket-modal .button-row {
  padding-top: 4px;
}

.modal::backdrop {
  background: rgba(16, 21, 22, 0.48);
}

.modal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-header span {
  color: var(--muted);
  font-weight: 900;
}

.modal-copy {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

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

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

.search-select {
  position: relative;
}

.search-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.search-select-button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
}

.search-select-button.active {
  border-color: var(--brand);
  outline: 3px solid var(--brand-soft);
}

.search-select-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-select-options {
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.search-select-options button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.search-select-options button:hover {
  background: var(--panel-soft);
}

.search-select-options span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.search-select-options strong {
  font-size: 14px;
}

.form-stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-hidden {
  display: none;
}

.sidebar-footer #logoutButton {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  width: 100%;
}

.setup-hidden {
  display: none;
}

.advanced-settings {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.advanced-settings summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.advanced-settings[open] {
  gap: 14px;
}

.admin-only {
  display: none;
}

.admin-nav,
.product-nav,
.settings-nav {
  display: none;
}

.admin-unlocked .admin-nav {
  display: flex;
}

body.can-access-products .product-nav,
body.can-access-settings .settings-nav {
  display: flex;
}

.customer-nav {
  display: none;
}

body.can-access-customers .customer-nav {
  display: flex;
}

.ticketing-nav {
  display: none;
}

body.can-access-ticketing .ticketing-nav {
  display: flex;
}

.sales-nav {
  display: none;
}

body.can-access-sales .sales-nav {
  display: flex;
}

.gl-nav {
  display: none;
}

body.can-access-gl .gl-nav {
  display: flex;
}

.project-nav {
  display: none;
}

body.can-access-projects .project-nav {
  display: flex;
}

.admin-unlocked .admin-only {
  display: grid;
}

.agent-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.agent-overview-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

.agent-overview-card strong {
  color: var(--charcoal);
  font-size: 14px;
}

.agent-overview-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.agent-overview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agent-overview-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.role-cell {
  text-align: center;
  vertical-align: middle;
}

.role-cell input,
.permission-toggle input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}

.permission-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 220px;
}

.permission-toggle {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  white-space: nowrap;
}

.permission-toggle.compact {
  border-radius: 7px;
  justify-content: center;
  min-height: 26px;
  min-width: 42px;
  padding: 4px 6px;
}

.permission-matrix {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  min-width: 380px;
}

.permission-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(70px, 1fr) auto auto;
}

.permission-row strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.danger-icon {
  color: #b42318;
}

.danger-button {
  background: #b42318;
  border-color: #b42318;
}

.role-lock-hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-page .sidebar-footer #logoutButton,
.admin-page .nav-link:not([data-view="settings"]) {
  display: none;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.field-label {
  color: var(--muted);
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

input[readonly],
textarea[readonly] {
  cursor: default;
  background: var(--panel-soft);
  color: var(--muted);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 116px;
  padding: 11px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid var(--brand-soft);
}

.status {
  min-height: 22px;
  margin-bottom: 10px;
  color: var(--muted);
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid rgba(48, 56, 59, 0.08);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(48, 56, 59, 0.16);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 850;
  pointer-events: auto;
  animation: toastIn 0.18s ease-out;
}

.toast-success {
  border-color: rgba(36, 122, 77, 0.18);
  background: var(--ok-soft);
  color: var(--ok);
}

.toast-error {
  border-color: rgba(191, 47, 24, 0.18);
  background: var(--danger-soft);
  color: var(--danger);
}

.toast-info {
  border-color: rgba(161, 98, 7, 0.2);
  background: var(--warning-soft);
  color: var(--warning);
}

body.theme-dark .toast-success {
  border-color: rgba(79, 190, 123, 0.26);
  background: rgba(42, 122, 78, 0.2);
  color: #8ee0a9;
}

body.theme-dark .toast-error {
  border-color: rgba(255, 103, 81, 0.28);
  background: rgba(191, 47, 24, 0.2);
  color: #ff9b89;
}

body.theme-dark .toast-info {
  border-color: rgba(232, 168, 55, 0.28);
  background: rgba(161, 98, 7, 0.22);
  color: #ffd166;
}

.toast button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.68;
}

.toast button:hover {
  opacity: 1;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e8ecee;
  color: var(--charcoal-2);
  font-size: 13px;
  font-weight: 800;
}

.pill-ok {
  background: #dff3e4;
  color: #176b35;
}

.pill-warning {
  background: #fff1cc;
  color: #8a5a00;
}

.pill-error {
  background: #fde2df;
  color: #a5281f;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.status-offen {
  background: #fde2df;
  color: #a5281f;
}

.status-in_bearbeitung {
  background: #fff1cc;
  color: #8a5a00;
}

.status-geschlossen {
  background: #dff3e4;
  color: #176b35;
}

.status-muted {
  background: var(--panel-soft);
  color: var(--muted);
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .brand {
    width: min(100%, 300px);
    max-width: 300px;
    min-height: auto;
    margin-bottom: 16px;
  }

  .nav {
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sidebar-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .workspace {
    width: min(100% - 24px, 1540px);
    padding-top: 22px;
  }

  .dashboard-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .customer-health-card {
    grid-template-columns: 1fr;
  }

  .customer-health-list,
  .customer-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-recent-card {
    grid-column: 1;
    grid-row: auto;
  }

  .customer-quality-card {
    grid-column: 1 / -1;
    grid-template-columns: minmax(130px, 170px) minmax(180px, 1fr);
  }

  .customer-quality-list {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .project-portfolio-grid,
  .project-budget-row,
  .project-filter-bar {
    grid-template-columns: 1fr;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gl-finance-kpis {
    grid-template-columns: 1fr;
  }

  .gl-finance-summary {
    flex-direction: column;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-hero-meta {
    justify-items: start;
  }

  .settings-shell {
    grid-template-columns: 1fr;
  }

  .sales-shell {
    grid-template-columns: 1fr;
  }

  .customer-info-layout {
    grid-template-columns: 1fr;
  }

  .customer-health-card {
    position: static;
  }

  .settings-subnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-subnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-subnav {
    display: grid;
  }

  .customer-section-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .customer-section-nav::-webkit-scrollbar,
  .settings-subnav::-webkit-scrollbar,
  .sales-subnav::-webkit-scrollbar,
  .operations-subnav::-webkit-scrollbar {
    display: none;
  }

  .customer-section-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .filters,
  .form-grid,
  .stats,
  .compact-stats,
  .asset-summary,
  .dashboard-kpis,
  .gl-finance-kpis {
    grid-template-columns: 1fr;
  }

  .customer-health-list,
  .customer-info-grid,
  .customer-quality-card {
    grid-template-columns: 1fr;
  }

  .customer-quality-list {
    justify-content: flex-start;
  }

  .page-header,
  .customer-card {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header .primary-button,
  .page-header .secondary-button,
  .page-header .link-button {
    width: 100%;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-overview-actions {
    justify-content: flex-start;
  }

  .section-title .button-row {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row > * {
    width: 100%;
  }

  .table-wrap {
    overflow: visible;
  }

  .ticket-table-wrap {
    overflow: visible;
    padding-bottom: 0;
  }

  .data-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: grid;
    gap: 12px;
  }

  .data-table tr {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .data-table td {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 0;
    padding: 0;
    min-width: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .data-table td:first-child {
    color: var(--charcoal);
    font-weight: 900;
  }

  .data-table td:first-child::before {
    color: var(--brand-dark);
  }

  .data-table td > * {
    min-width: 0;
  }

  .ticket-table,
  .customer-service-table {
    min-width: 0;
    table-layout: auto;
  }

  .ticket-table th:nth-child(1),
  .ticket-table td:nth-child(1),
  .ticket-table th:nth-child(4),
  .ticket-table td:nth-child(4),
  .ticket-table th:nth-child(5),
  .ticket-table td:nth-child(5),
  .ticket-table th:nth-child(6),
  .ticket-table td:nth-child(6),
  .ticket-table th:nth-child(8),
  .ticket-table td:nth-child(8),
  .ticket-number-cell,
  .ticket-actions-cell {
    width: auto;
  }

  .ticket-actions-cell {
    overflow: visible;
  }

  .action-menu {
    justify-content: flex-start;
  }

  .search-select-dropdown {
    position: static;
    margin-top: 8px;
  }

  .modal,
  .compact-modal {
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .quote-view-summary {
    grid-template-columns: 1fr;
  }

  .wide-modal {
    inset: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    min-width: 132px;
  }

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

  .customer-info-grid {
    grid-template-columns: 1fr;
  }

  .customer-health-list {
    grid-template-columns: 1fr;
  }

  .customer-overview-copy {
    max-width: none;
    text-align: left;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .workspace {
    width: calc(100% - 18px);
    padding-bottom: 28px;
  }

  .panel {
    padding: 16px;
  }

  .sidebar {
    padding: 16px 12px;
  }

  .sidebar-footer {
    grid-template-columns: 1fr;
  }

  .profile-button,
  .theme-toggle,
  .sidebar-footer #logoutButton {
    width: 100%;
  }

  .sales-subnav,
  .settings-subnav,
  .operations-subnav,
  .customer-section-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .sales-subnav-button,
  .settings-subnav-button,
  .customer-section-button,
  .project-section-button {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
  }

  .dashboard-agent-card header,
  .dashboard-recent-item header,
  .customer-note-head,
  .work-package-task-row,
  .project-portfolio-head,
  .project-task-row,
  .project-package-title-row,
  .project-package-head,
  .profile-dialog-head,
  .modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-note-actions {
    width: 100%;
    justify-content: space-between;
  }

  .profile-dialog-meta,
  .customer-note-author-meta {
    min-width: 0;
  }

  .modal,
  .compact-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 16px;
    margin: 8px;
  }

  .ticket-modal {
    padding: 0;
  }

  .ticket-modal .modal-header,
  .ticket-modal #ticketForm,
  .ticket-modal .ticket-view-panel,
  .ticket-modal .ticket-notes-panel {
    padding: 16px;
  }

  .ticket-modal-edit #ticketForm,
  .ticket-view-grid {
    grid-template-columns: 1fr;
  }

  .ticket-view-meta-item,
  .ticket-view-meta-item:nth-child(3n) {
    border-right: 0;
  }

  .ticket-view-meta-item:not(:first-child) {
    border-top: 0;
  }

  .ticket-note-composer {
    grid-template-columns: 1fr;
  }

  .ticket-view-hero,
  .ticket-view-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-view-actions {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .modal[open],
  .modal.is-open,
  .compact-modal[open],
  .compact-modal.is-open {
    inset: 8px;
  }

  .filters {
    padding: 14px;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .auth-gate {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 18px;
  }

  .auth-gate::after {
    inset: auto auto -120px -140px;
    width: 320px;
    height: 320px;
    opacity: 1;
    border-radius: 999px;
    background: rgba(226, 127, 43, 0.12);
  }

  .project-summary-grid,
  .project-gantt-axis,
  .project-gantt-row,
  .project-task-board,
  .project-package-board {
    grid-template-columns: 1fr;
  }
}
