:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #172033;
  background: #f4f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"],
:root:not([data-theme]),
:root[data-theme="system"] {
  color: #f8fbff;
  background: #090b10;
}

:root[data-theme="dark"] body,
:root:not([data-theme]) body,
:root[data-theme="system"] body {
  background:
    radial-gradient(circle at top left, rgba(214, 162, 58, 0.16), transparent 30rem),
    #090b10;
}

:root[data-theme="dark"] .main-panel,
:root:not([data-theme]) .main-panel,
:root[data-theme="system"] .main-panel {
  background: #0d1118;
}

:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .module-card,
:root:not([data-theme]) .content-card,
:root:not([data-theme]) .metric-card,
:root:not([data-theme]) .module-card,
:root[data-theme="system"] .content-card,
:root[data-theme="system"] .metric-card,
:root[data-theme="system"] .module-card {
  color: #f8fbff;
  background: #121824;
  border-color: rgba(244, 201, 93, 0.18);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root:not([data-theme]) input,
:root:not([data-theme]) select,
:root:not([data-theme]) textarea,
:root[data-theme="system"] input,
:root[data-theme="system"] select,
:root[data-theme="system"] textarea {
  color: #f8fbff;
  background: #0b1018;
  border-color: rgba(244, 201, 93, 0.22);
}

:root[data-theme="light"] {
  color: #172033;
  background: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(34, 113, 177, 0.12), transparent 32rem),
    #f4f7fb;
}

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

button {
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

:focus-visible {
  outline: 3px solid rgba(244, 201, 93, 0.72);
  outline-offset: 3px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  color: #f8fbff;
  background: linear-gradient(180deg, #172033 0%, #263750 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-lockup {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 18px 18px;
}

.sidebar-scroll {
  display: grid;
  flex: 1 1 auto;
  gap: 18px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 18px 18px;
  scrollbar-color: rgba(244, 201, 93, 0.5) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.sidebar-scroll::-webkit-scrollbar,
.modal-panel::-webkit-scrollbar,
.drawer-panel::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.sidebar-scroll::-webkit-scrollbar-thumb,
.modal-panel::-webkit-scrollbar-thumb,
.drawer-panel::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(244, 201, 93, 0.45);
  border-radius: 999px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #172033;
  font-weight: 800;
  background: #f4c95d;
}

.brand-lockup h1,
.topbar h2,
.section-heading h3 {
  margin: 0;
}

.brand-lockup h1 {
  font-size: 1.3rem;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 5px;
  color: #6a7890;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #9fb1ca;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.sidebar-workspaces {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-nav {
  width: 100%;
  padding: 8px 10px;
  color: #f7efe0;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 201, 93, 0.18);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
}

.workspace-nav.active,
.workspace-nav:hover {
  color: #ffffff;
  background: rgba(244, 201, 93, 0.18);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #d8e2f0;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #172033;
  font-size: 0.72rem;
  font-weight: 800;
  background: #d8e2f0;
}

.nav-item.active .nav-icon {
  background: #f4c95d;
}

.sidebar-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 18px 18px;
  padding: 14px;
  color: #d8e2f0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.sidebar-status strong,
.sidebar-status small {
  display: block;
}

.sidebar-status small {
  margin-top: 3px;
  color: #9fb1ca;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #4ed3a5;
}

.main-panel {
  min-width: 0;
  overflow-x: hidden;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(244, 201, 93, 0.18), transparent 30rem),
    linear-gradient(135deg, #172033, #263750);
}

.login-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 32px;
  width: min(1040px, 100%);
  align-items: center;
}

.login-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  color: #ffffff;
}

.login-brand h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.login-brand .eyebrow {
  color: #f4c95d;
}

.login-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.login-card h2 {
  margin: 0;
}

.login-card p {
  margin: 0;
  color: #5f6f85;
  line-height: 1.55;
}

.login-profile {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.login-profile span {
  color: #617087;
}

.login-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(22px, 3.2vw, 36px);
  min-height: 100vh;
  padding: clamp(22px, 3vw, 48px);
  color: #f8fafc;
  overflow: hidden auto;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.98), rgba(5, 7, 12, 0.82) 44%, rgba(5, 7, 12, 0.94)),
    radial-gradient(circle at 76% 50%, rgba(212, 160, 23, 0.22), transparent 28rem),
    linear-gradient(135deg, transparent 0 40%, rgba(212, 160, 23, 0.06) 40% 41%, transparent 41%),
    #05070c;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(212, 160, 23, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.1) 1px, transparent 1px),
    repeating-linear-gradient(115deg, transparent 0 76px, rgba(212, 160, 23, 0.09) 77px, transparent 78px);
  background-size: 42px 42px, 42px 42px, 240px 240px;
  mask-image: linear-gradient(90deg, transparent 4%, rgba(0, 0, 0, 0.4) 42%, rgba(0, 0, 0, 0.8) 100%);
}

.login-screen::after {
  content: "";
  position: absolute;
  right: -8vw;
  top: 0;
  width: 62vw;
  height: 54vh;
  pointer-events: none;
  opacity: 0.62;
  background:
    linear-gradient(90deg, transparent 6%, rgba(212, 160, 23, 0.32) 6% 6.6%, transparent 6.6%),
    linear-gradient(0deg, transparent 12%, rgba(212, 160, 23, 0.22) 12% 12.6%, transparent 12.6%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(212, 160, 23, 0.22) 43px, transparent 44px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(212, 160, 23, 0.16) 39px, transparent 40px);
  clip-path: polygon(24% 8%, 98% 0, 100% 76%, 78% 76%, 72% 34%, 60% 34%, 58% 92%, 34% 92%, 31% 48%, 18% 48%);
}

.login-hero,
.login-screen .login-card {
  position: relative;
  z-index: 1;
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(20px, 3vw, 36px);
  width: min(1660px, 100%);
  margin: 0 auto;
}

.login-logo-lockup {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}

.login-logo-lockup img {
  width: clamp(86px, 8vw, 138px);
  height: clamp(86px, 8vw, 138px);
  object-fit: contain;
  filter:
    drop-shadow(0 22px 42px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 18px rgba(212, 160, 23, 0.28));
}

.login-logo-lockup h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 5.6vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.login-logo-lockup span {
  display: block;
  margin-top: 12px;
  color: #f4c95d;
  font-size: clamp(0.95rem, 1.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-platform-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  padding: 20px 24px;
  color: #f8fafc;
  background: rgba(8, 12, 18, 0.9);
  border: 1px solid rgba(212, 160, 23, 0.58);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
}

.login-platform-pill strong,
.login-platform-pill small {
  display: block;
}

.login-platform-pill strong {
  color: #f4c95d;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-platform-pill small {
  margin-top: 6px;
  color: #f8fafc;
}

.login-shield,
.login-auth-icon,
.security-main-icon,
.security-row > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #f4c95d;
  border: 1px solid rgba(212, 160, 23, 0.42);
  background: radial-gradient(circle at 35% 20%, rgba(244, 201, 93, 0.18), rgba(5, 7, 12, 0.82));
}

.login-shield {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.5rem;
}

.login-hero .eyebrow,
.login-screen .login-card .eyebrow {
  color: #d4a017;
}

.login-hero-copy {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-top: clamp(12px, 2vw, 32px);
  padding-left: 28px;
  border-left: 4px solid #f4c95d;
}

.login-hero-copy h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.login-hero-copy p {
  max-width: 780px;
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

.login-screen .login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: clamp(28px, 4vw, 54px);
  width: min(1660px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 3vw, 48px);
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(10, 14, 21, 0.97), rgba(3, 5, 9, 0.96)),
    radial-gradient(circle at 60% 0%, rgba(212, 160, 23, 0.1), transparent 34rem);
  border: 1px solid rgba(212, 160, 23, 0.58);
  border-radius: 22px;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-auth-panel {
  position: relative;
  display: grid;
  gap: 17px;
  padding-left: clamp(0px, 3vw, 120px);
}

.login-auth-icon {
  position: absolute;
  left: clamp(0px, 2vw, 28px);
  top: 10px;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(212, 160, 23, 0.08);
}

.login-screen .login-card h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.login-screen .login-card h2 span {
  color: #f4c95d;
}

.login-screen .login-card label {
  display: grid;
  gap: 7px;
  color: #e5edf8;
  font-weight: 800;
}

.login-screen .login-card label span {
  color: #cbd5e1;
  font-size: 0.82rem;
}

.login-screen .login-card select,
.login-screen .login-card input[type="text"],
.login-screen .login-card input[type="email"] {
  width: 100%;
  min-height: 58px;
  color: #f8fafc;
  padding: 0 18px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(212, 160, 23, 0.72);
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
}

.login-screen .login-card select:focus-visible,
.login-screen .login-card input:focus-visible {
  border-color: rgba(244, 201, 93, 0.72);
  box-shadow: 0 0 0 4px rgba(244, 201, 93, 0.14);
}

.login-screen .access-preview {
  display: grid;
  gap: 12px;
  padding: 0;
  color: #d8e2f0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.login-screen .access-preview strong {
  display: inline;
  color: #f4c95d;
  font-size: 1rem;
}

.login-screen .access-preview span {
  color: #cbd5e1;
  overflow-wrap: anywhere;
}

.login-screen .access-preview small {
  color: #f4c95d;
  overflow-wrap: anywhere;
}

.login-screen .access-preview p {
  color: #cbd5e1;
}

.login-screen .checkbox-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-weight: 800;
}

.login-screen .checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: #d4a017;
}

.login-screen .login-auth-panel > button {
  min-height: 58px;
  color: #05070c;
  background: linear-gradient(135deg, #ffe9a6, #d4a017 58%, #b58510);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(212, 160, 23, 0.2);
  font-weight: 900;
  font-size: 1.02rem;
}

.login-screen .login-auth-panel > button span {
  margin-right: 10px;
}

.login-screen .login-auth-panel > button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(212, 160, 23, 0.28);
}

.login-screen .sso-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 28px);
}

.login-screen .sso-row button {
  min-height: 52px;
  color: #e5edf8;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(212, 160, 23, 0.42);
  border-radius: 10px;
  font-weight: 800;
}

.login-screen .sso-row button:hover {
  color: #ffffff;
  border-color: rgba(244, 201, 93, 0.38);
  background: rgba(244, 201, 93, 0.08);
}

.sso-mark {
  margin-right: 10px;
  font-weight: 900;
}

.sso-mark.microsoft {
  color: #f4c95d;
}

.sso-mark.google {
  color: #6ea8ff;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: #f4c95d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.login-security-panel {
  display: grid;
  align-content: center;
  gap: 22px;
  padding-left: clamp(22px, 3vw, 46px);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.security-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.3);
}

.security-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
}

.security-main-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 1.7rem;
}

.security-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.security-row > span {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 1.15rem;
}

.security-row strong,
.security-row small {
  display: block;
}

.security-row strong {
  color: #ffffff;
  font-size: 1rem;
}

.security-row small {
  margin-top: 4px;
  color: #cbd5e1;
}

.login-system-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
  padding-top: 24px;
  color: #d8e2f0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.login-system-status p {
  margin: 0;
}

.login-system-status strong {
  color: #22c55e;
}

.login-footer {
  position: relative;
  z-index: 1;
  width: min(1660px, 100%);
  margin: 0 auto;
  color: #9ca3af;
  text-align: center;
}

.inline-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5f6f85;
  font-weight: 700;
}

.inline-control input {
  width: 18px;
  height: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  padding: 24px 34px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid #dce5f0;
  backdrop-filter: blur(18px);
}

.topbar h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: 0;
}

.topbar p:last-child {
  margin: 6px 0 0;
  color: #5f6f85;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.company-switcher {
  display: grid;
  gap: 4px;
  min-width: 210px;
}

.company-switcher span {
  color: #6a7890;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.company-switcher select {
  min-height: 42px;
  padding: 9px 12px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.global-search {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.global-search input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 15;
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(23, 32, 51, 0.18);
}

.search-results section {
  display: grid;
  gap: 6px;
}

.search-results button {
  display: grid;
  gap: 3px;
  padding: 9px;
  text-align: left;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.search-results span {
  color: #617087;
  font-size: 0.82rem;
}

.icon-button {
  position: relative;
  min-height: 38px;
  padding: 8px 12px;
  color: #172033;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.icon-button span {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  color: #172033;
  font-size: 0.72rem;
  background: #f4c95d;
  border-radius: 999px;
}

.notification-panel {
  display: grid;
  gap: 8px;
  width: 100%;
}

.notification-panel button {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  text-align: left;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.notification-panel small {
  display: block;
  margin-top: 3px;
  color: #617087;
  line-height: 1.35;
}

.status-dot.warning {
  background: #f4c95d;
}

.status-dot.critical {
  background: #e05f5f;
}

.status-dot.notice {
  background: #5f7ce0;
}

.pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #23405c;
  font-size: 0.78rem;
  font-weight: 800;
  background: #e6eef8;
}

.primary-button,
.secondary-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  color: #172033;
  background: #f4c95d;
  border: 1px solid #ddb13d;
}

.secondary-button {
  color: #23405c;
  background: #ffffff;
  border: 1px solid #cbd8e6;
}

.danger-button {
  min-height: 40px;
  padding: 0 14px;
  color: #ffffff;
  font-weight: 800;
  background: #b93838;
  border: 1px solid #9d2f2f;
  border-radius: 8px;
}

.link-button {
  padding: 0;
  color: #2271b1;
  font-weight: 800;
  background: transparent;
  border: 0;
}

.danger-text {
  color: #9d2f2f;
}

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

.page-content {
  padding: 28px 34px 42px;
}

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

.metrics-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.compact-metrics {
  grid-template-columns: minmax(220px, 320px);
  margin: 18px 0;
}

.metric-card,
.content-card,
.priority-grid article {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce5f0;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.07);
}

.metric-card {
  min-height: 140px;
  padding: 20px;
}

.metric-card p,
.metric-card span,
.list-row span,
.priority-grid span {
  color: #617087;
}

.metric-card p {
  margin: 0 0 14px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
  letter-spacing: 0;
}

.content-card {
  min-width: 0;
  padding: 22px;
}

.content-card.wide {
  grid-column: 1 / -1;
}

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

.section-heading h3 {
  font-size: 1.15rem;
  letter-spacing: 0;
}

.module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.module-header h3,
.hero-card h3,
.module-card h4 {
  margin: 0;
  letter-spacing: 0;
}

.module-header h3,
.hero-card h3 {
  font-size: 1.55rem;
}

.module-header p,
.hero-card p,
.module-card p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #5f6f85;
  line-height: 1.55;
}

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

.hero-card {
  background: #172033;
  color: #ffffff;
}

.hero-card .eyebrow,
.hero-card p {
  color: #d8e2f0;
}

.module-card-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.module-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 250px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce5f0;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.07);
}

.module-card.selected {
  border-color: #d6a23a;
  box-shadow: 0 18px 45px rgba(214, 162, 58, 0.18);
}

.group-portal {
  display: grid;
  gap: 18px;
}

.about-nexus {
  display: grid;
  gap: 18px;
}

.about-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(244, 201, 93, 0.22), transparent 28rem),
    linear-gradient(135deg, #0b0f17, #172033 54%, #263750);
  border: 1px solid rgba(244, 201, 93, 0.26);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(23, 32, 51, 0.22);
}

.about-logo {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  color: #172033;
  background: linear-gradient(135deg, #f4c95d, #ffffff);
  border-radius: 24px;
  font-size: 2.4rem;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(244, 201, 93, 0.22);
}

.about-hero h2,
.about-hero h3,
.about-hero p {
  margin: 0;
}

.about-hero h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
}

.about-hero h3 {
  margin-top: 8px;
  color: #f4c95d;
  font-size: 1.25rem;
}

.about-hero p {
  max-width: 920px;
  margin-top: 14px;
  color: #d8e2f0;
  line-height: 1.6;
}

.about-version-grid,
.about-stack-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-version-grid div,
.about-stack-list div {
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.about-version-grid dt,
.about-stack-list dt {
  color: #6a7890;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.about-version-grid dd,
.about-stack-list dd {
  margin: 6px 0 0;
  color: #172033;
  font-weight: 800;
}

.about-module-grid,
.about-company-grid,
.health-grid,
.about-action-grid {
  display: grid;
  gap: 14px;
}

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

.about-module-card,
.about-company-card,
.health-card,
.about-resource-panel {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 10px;
  box-shadow: 0 16px 42px rgba(23, 32, 51, 0.07);
}

.about-module-card {
  display: grid;
  gap: 18px;
  min-height: 230px;
}

.about-module-card h4,
.about-company-card h4,
.release-list h4,
.roadmap-timeline h4,
.about-resource-panel h4 {
  margin: 8px 0;
}

.about-module-card p,
.about-company-card p,
.release-list p,
.roadmap-timeline p,
.about-resource-panel p {
  margin: 0;
  color: #5f6f85;
  line-height: 1.55;
}

.about-module-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.about-module-card dt,
.about-module-card dd {
  margin: 0;
}

.about-module-card dt {
  color: #6a7890;
  font-size: 0.78rem;
  font-weight: 800;
}

.about-module-card dd {
  font-weight: 800;
}

.about-company-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.about-company-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.about-company-card .brand-mark {
  width: 56px;
  height: 56px;
}

.about-company-card small {
  color: #6a7890;
  font-weight: 800;
}

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

.health-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.health-card p {
  margin: 4px 0 0;
  color: #5f6f85;
}

.health-light {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.health-light.green {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.health-light.yellow {
  background: #f4c95d;
  box-shadow: 0 0 0 6px rgba(244, 201, 93, 0.18);
}

.health-light.red {
  background: #e05252;
  box-shadow: 0 0 0 6px rgba(224, 82, 82, 0.14);
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.release-list,
.roadmap-timeline {
  display: grid;
  gap: 16px;
}

.release-list section {
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.release-list ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #5f6f85;
  line-height: 1.6;
}

.roadmap-timeline section {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
}

.roadmap-timeline section > span {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  background: #f4c95d;
  border: 3px solid #172033;
  border-radius: 999px;
}

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

.about-resource-panel {
  margin-top: 16px;
  background: #f8fbff;
}

.executive-boardroom {
  display: grid;
  gap: 18px;
}

.boardroom-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(244, 201, 93, 0.24), transparent 28rem),
    linear-gradient(135deg, #06080d, #172033 58%, #2d3f5a);
  border: 1px solid rgba(244, 201, 93, 0.28);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(23, 32, 51, 0.24);
}

.boardroom-hero h2,
.boardroom-hero p {
  margin: 0;
}

.boardroom-hero h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.boardroom-hero p {
  max-width: 860px;
  margin-top: 14px;
  color: #d8e2f0;
  line-height: 1.6;
}

.boardroom-controls {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 201, 93, 0.18);
  border-radius: 10px;
}

.boardroom-controls label {
  display: grid;
  gap: 6px;
  color: #f8fbff;
  font-weight: 800;
}

.boardroom-controls select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(244, 201, 93, 0.3);
  border-radius: 8px;
}

.boardroom-actions,
.report-grid,
.chart-grid,
.company-performance-grid,
.boardroom-grid {
  display: grid;
  gap: 14px;
}

.boardroom-actions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.executive-ai-card {
  color: #ffffff;
  background: linear-gradient(135deg, #172033, #263750);
  border-color: rgba(244, 201, 93, 0.3);
}

.executive-ai-card h3,
.executive-ai-card .eyebrow {
  color: #ffffff;
}

.attention-feed {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
}

.attention-feed button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 12px;
  padding: 12px;
  text-align: left;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.attention-feed p {
  grid-column: 1 / -1;
  margin: 0;
  color: #5f6f85;
}

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

.company-performance-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.company-performance-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
}

.company-performance-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-performance-card h3,
.company-performance-card p,
.company-performance-card dl {
  margin: 0;
}

.company-performance-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.company-performance-card span {
  padding: 10px;
  background: #f8fbff;
  border-radius: 8px;
}

.company-performance-card dt {
  color: #6a7890;
  font-size: 0.75rem;
  font-weight: 800;
}

.company-performance-card dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.risk-heatmap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.risk-heatmap span {
  display: grid;
  gap: 5px;
  padding: 12px;
  color: #172033;
  background: #fff1cc;
  border: 1px solid #f4c95d;
  border-radius: 8px;
}

.mini-chart {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.mini-chart h4 {
  margin: 0;
}

.mini-chart div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 80px;
  gap: 10px;
  align-items: center;
}

.mini-chart b {
  display: block;
  height: 12px;
  background: linear-gradient(90deg, #172033, #f4c95d);
  border-radius: 999px;
}

.executive-briefing-card {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(38, 55, 80, 0.94)),
    #172033;
  border-color: rgba(244, 201, 93, 0.42);
}

.executive-briefing-card .eyebrow,
.executive-briefing-card p,
.executive-briefing-card h3 {
  color: #ffffff;
}

.briefing-grid,
.workspace-grid,
.group-company-grid,
.company-kpi-grid {
  display: grid;
  gap: 14px;
}

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

.briefing-grid article {
  min-height: 110px;
  padding: 16px;
  color: #f7efe0;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 201, 93, 0.24);
  border-radius: 8px;
}

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

.workspace-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  text-align: left;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.workspace-card strong {
  color: #172033;
}

.workspace-card span,
.workspace-card small {
  color: #5f6f85;
  line-height: 1.5;
}

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

.company-operating-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.07);
}

.company-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-card-head h3,
.company-card-head p {
  margin: 0;
}

.company-card-head p {
  color: #6a7890;
}

.company-card-head .status-badge {
  margin-left: auto;
}

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

.company-kpi-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.company-kpi-grid b {
  color: #172033;
}

.company-kpi-grid small {
  color: #6a7890;
}

.module-chip-row,
.alert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-chip-row span,
.alert-list small {
  padding: 7px 10px;
  color: #172033;
  background: #f7efe0;
  border: 1px solid rgba(244, 201, 93, 0.45);
  border-radius: 999px;
  font-weight: 700;
}

.alert-list small {
  color: #8a4b18;
  background: #fff8f0;
  border-color: #f2d4b2;
}

.settings-areas .module-card {
  min-height: 180px;
}

.platform-services {
  display: grid;
  gap: 18px;
}

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

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

.compact-field {
  display: grid;
  gap: 5px;
  min-width: min(360px, 100%);
}

.compact-field span {
  color: #6a7890;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compact-field select,
.inline-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget-toggle {
  justify-content: flex-start;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.ai-floating-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #172033;
  font-weight: 900;
  background: #f4c95d;
  border: 1px solid rgba(23, 32, 51, 0.2);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.28);
}

.ai-assistant-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.ai-mode-grid,
.ai-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-mode-grid button,
.ai-chip-grid button,
.ai-prompt-list button {
  padding: 8px 10px;
  color: #172033;
  background: #f8fbff;
  border: 1px solid #dce5f0;
  border-radius: 8px;
}

.ai-mode-grid button.active {
  background: #172033;
  color: #ffffff;
  border-color: #172033;
}

.ai-recommendations,
.ai-generator,
.ai-module-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.ai-recommendations p,
.ai-message p {
  margin: 0;
  color: #5f6f85;
  line-height: 1.45;
}

.ai-chat-form,
.ai-prompt-form {
  display: grid;
  gap: 10px;
}

.ai-chat-form textarea,
.ai-prompt-form textarea,
.ai-prompt-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.ai-chat-form textarea,
.ai-prompt-form textarea {
  min-height: 96px;
  resize: vertical;
}

.ai-history {
  display: grid;
  gap: 10px;
}

.ai-message {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.ai-message.user {
  background: #172033;
  color: #ffffff;
}

.ai-message.user p {
  color: #d8e2f0;
}

.ai-prompt-list {
  display: grid;
  gap: 8px;
}

.ai-module-actions {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}

.ai-inline-output,
.ai-result {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  padding: 12px;
  color: #d8e2f0;
  background: #172033;
  border-radius: 8px;
}

.ai-command-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: flex-start;
  justify-items: center;
  padding-top: 12vh;
  background: rgba(23, 32, 51, 0.38);
  backdrop-filter: blur(6px);
}

.ai-command-bar {
  display: grid;
  gap: 14px;
  width: min(760px, calc(100vw - 32px));
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(23, 32, 51, 0.32);
}

.ai-command-bar input {
  width: 100%;
  min-height: 58px;
  padding: 14px;
  color: #172033;
  font-size: 1.05rem;
  background: #f8fbff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.ai-command-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-command-examples button {
  padding: 10px;
  text-align: left;
  color: #172033;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.finance-module {
  display: grid;
  gap: 18px;
}

.finance-action-grid,
.finance-cash-grid,
.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.finance-action-grid button {
  min-height: 54px;
}

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

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

.account-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.account-grid span {
  color: #617087;
}

.procurement-module {
  display: grid;
  gap: 18px;
}

.procurement-module .module-card {
  min-height: 210px;
}

.inventory-module {
  display: grid;
  gap: 18px;
}

.workshop-module {
  display: grid;
  gap: 18px;
}

.projects-module {
  display: grid;
  gap: 18px;
}

.workshop-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}

.project-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}

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

.gantt-row {
  display: grid;
  grid-template-columns: 260px minmax(180px, 1fr) 170px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
}

.gantt-row strong,
.gantt-row span {
  display: block;
}

.gantt-row span {
  color: #6a7890;
  font-size: 0.88rem;
}

.gantt-track {
  height: 18px;
  overflow: hidden;
  background: #edf2f7;
  border: 1px solid #dce5f0;
  border-radius: 999px;
}

.gantt-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #172033, #f4c95d);
}

.kanban-column {
  min-height: 260px;
  border: 1px solid rgba(214, 162, 58, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.92));
  padding: 14px;
}

.kanban-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.kanban-heading h4 {
  margin: 0;
  color: #111827;
  font-size: 0.95rem;
}

.kanban-heading span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #111827;
  color: #f7d88a;
  font-weight: 800;
}

.kanban-card {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.kanban-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.kanban-card p,
.kanban-card small {
  margin: 0;
  color: #4b5563;
}

.kanban-card small {
  line-height: 1.45;
}

.status-badge.low-stock,
.status-badge.reorder,
.status-badge.reserved {
  color: #172033;
  background: #f4c95d;
}

.status-badge.out-of-stock,
.status-badge.pending-approval {
  color: #7f1d1d;
  background: #fee2e2;
}

.status-badge.posted,
.status-badge.received,
.status-badge.issued {
  color: #14532d;
  background: #dcfce7;
}

.status-badge.preferred-supplier,
.status-badge.best-value,
.status-badge.preferred {
  color: #172033;
  background: #f4c95d;
}

.status-badge.lowest-price,
.status-badge.fastest-delivery {
  color: #174d3a;
  background: #d9f7ea;
}

.finance-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  background: #eef3f9;
  border: 1px solid #dce5f0;
  border-radius: 8px;
}

.finance-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  color: #41516a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.finance-tabs button.active {
  color: #172033;
  background: #ffffff;
  border-color: #d6a23a;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.finance-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.finance-filter-bar label {
  display: grid;
  gap: 6px;
}

.finance-filter-bar span {
  color: #6a7890;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-filter-bar input,
.finance-filter-bar select {
  min-height: 40px;
  padding: 9px 10px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.module-card h4 {
  margin-top: 16px;
  font-size: 1.1rem;
}

.module-card .secondary-button {
  width: fit-content;
}

.empty-state {
  display: grid;
  gap: 8px;
  min-height: 190px;
  margin-top: 18px;
  padding: 28px;
  place-content: center;
  text-align: center;
  background: #f8fbff;
  border: 1px dashed #b9c8d9;
  border-radius: 8px;
}

.empty-state strong {
  font-size: 1.05rem;
}

.empty-state p {
  max-width: 620px;
  margin: 0 auto;
  color: #617087;
  line-height: 1.55;
}

.table-wrap {
  width: 100%;
  max-height: min(70vh, 860px);
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 8px;
}

.action-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
}

.search-bar {
  flex: 1;
  min-width: 220px;
}

.search-bar input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #e6edf5;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #6a7890;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ffffff;
}

td {
  color: #263750;
}

tbody tr:hover {
  background: #f8fbff;
}

.row-actions {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.status-badge.on-rental,
.status-badge.paid,
.status-badge.connected,
.status-badge.current,
.status-badge.low,
.status-badge.role-control-active,
.status-badge.mock-data-active,
.status-badge.mock-permissions-active,
.status-badge.mock-settings-active {
  color: #126247;
  background: #dff7ee;
}

.status-badge.available {
  color: #23527c;
  background: #e3f0ff;
}

.status-badge.maintenance,
.status-badge.pending,
.status-badge.review,
.status-badge.medium,
.status-badge.live-connector-pending,
.status-badge.module-coming-soon,
.status-badge.documents-pending,
.status-badge.pending-review,
.status-badge.pending-upload,
.status-badge.invited,
.status-badge.draft,
.status-badge.missing,
.status-badge.uploaded,
.status-badge.sent-for-signature,
.status-badge.needs-review,
.status-badge.signed-by-customer,
.status-badge.quotation,
.status-badge.opportunity,
.status-badge.lead,
.status-badge.fallback,
.status-badge.not-synced {
  color: #896313;
  background: #fff1cc;
}

.status-badge.demo-data-active,
.status-badge.active,
.status-badge.active-onboarding,
.status-badge.won,
.status-badge.signed,
.status-badge.approved,
.status-badge.certified,
.status-badge.complete,
.status-badge.clear,
.status-badge.online,
.status-badge.verified,
.status-badge.signed-by-eag,
.status-badge.fully-signed {
  color: #126247;
  background: #dff7ee;
}

.status-badge.overdue,
.status-badge.disabled,
.status-badge.expired,
.status-badge.lost,
.status-badge.cancelled,
.status-badge.at-risk,
.status-badge.delayed,
.status-badge.high {
  color: #9d2f2f;
  background: #ffe3e3;
}

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

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

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #5f6f85;
  font-size: 0.86rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.field textarea {
  resize: vertical;
}

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

.workflow-grid,
.permission-grid,
.connector-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

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

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

.connector-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.workflow-card,
.permission-card,
.connector-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.workflow-card span,
.permission-card span,
.permission-card p,
.muted-text {
  color: #617087;
  line-height: 1.55;
}

.permission-card p {
  margin: 0;
}

.connector-metrics {
  grid-template-columns: repeat(2, minmax(220px, 320px));
}

.connector-card {
  gap: 16px;
}

.connector-card h3 {
  margin: 0 0 10px;
}

.connector-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.connector-card dl div {
  display: grid;
  gap: 3px;
}

.connector-card dt {
  color: #6a7890;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connector-card dd {
  margin: 0;
  color: #263750;
  line-height: 1.45;
}

.fleet-module {
  display: grid;
  gap: 18px;
}

.fleet-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.tab-button {
  min-height: 38px;
  padding: 0 12px;
  color: #41516a;
  font-weight: 800;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.tab-button.active,
.tab-button:hover {
  color: #172033;
  background: #ffffff;
  border-color: #cbd8e6;
}

.fleet-tab-panel {
  display: grid;
  gap: 18px;
}

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

.fleet-summary-card {
  min-height: 170px;
  padding: 20px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.fleet-summary-card h3 {
  margin: 0;
}

.fleet-summary-card p:last-child {
  color: #617087;
  line-height: 1.55;
}

.contract-pack-list {
  margin-top: 4px;
}

.active-contract-row {
  border-color: #f4c95d;
  box-shadow: inset 3px 0 0 #f4c95d;
}

.contract-preview {
  display: grid;
  gap: 18px;
  padding: 24px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #d8b44f;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.09);
}

.empty-contract-preview {
  border-style: dashed;
}

.contract-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: #ffffff;
  background: #111827;
  border-radius: 8px;
}

.contract-preview-header .eyebrow {
  color: #f4c95d;
}

.contract-preview-header h3,
.contract-preview-grid h4 {
  margin: 0;
}

.contract-preview-header p {
  margin: 6px 0 0;
  color: #d8e2f0;
}

.contract-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.contract-preview-grid article {
  padding: 16px;
  background: #fffcf3;
  border: 1px solid #ead89b;
  border-radius: 8px;
}

.contract-preview dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.contract-preview dl div {
  display: grid;
  gap: 2px;
}

.contract-preview dt {
  color: #6a7890;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-preview dd {
  margin: 0;
}

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

.document-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.document-card strong,
.document-card span {
  display: block;
}

.document-card strong {
  color: #172033;
}

.document-card span,
.document-card p {
  color: #617087;
}

.document-card p {
  margin: 0;
  line-height: 1.5;
}

.profile-page {
  display: grid;
  gap: 18px;
}

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

.profile-section {
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce5f0;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.06);
}

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

.profile-field-grid div {
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.profile-field-grid dt {
  color: #6a7890;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-field-grid dd {
  margin: 5px 0 0;
  color: #172033;
}

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

.timeline article {
  padding: 14px 14px 14px 18px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-left: 4px solid #f4c95d;
  border-radius: 8px;
}

.timeline span {
  color: #6a7890;
  font-size: 0.8rem;
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin-top: 5px;
}

.timeline p {
  margin: 5px 0 0;
  color: #617087;
}

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

.photo-placeholder {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: #617087;
  font-weight: 800;
  background: #f8fbff;
  border: 1px dashed #b9c8d9;
  border-radius: 8px;
}

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

.vault-document {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.vault-document strong,
.vault-document span {
  display: block;
}

.vault-document span {
  margin-top: 4px;
  color: #617087;
  word-break: break-word;
}

.vault-document dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.vault-document dt {
  color: #6a7890;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vault-document dd {
  margin: 4px 0 0;
}

.upload-link {
  display: inline-flex;
  align-items: center;
}

.signature-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.signature-blocks article {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 18px;
  background: #fffcf3;
  border: 1px solid #ead89b;
  border-radius: 8px;
}

.signature-blocks span {
  color: #172033;
}

.modal-guidance {
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.modal-guidance p {
  margin: 6px 0 0;
  color: #617087;
  line-height: 1.55;
}

.form-error {
  margin: 0;
  padding: 12px;
  color: #9d2f2f;
  font-weight: 800;
  background: #ffe3e3;
  border: 1px solid #f0b9b9;
  border-radius: 8px;
}

.success-message {
  background: rgba(78, 211, 165, 0.12);
  border: 1px solid rgba(78, 211, 165, 0.32);
  border-radius: 10px;
  color: #13664e;
  font-weight: 800;
  margin: 0;
  padding: 12px 14px;
}

.health-list,
.import-preview {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.health-list p,
.import-preview p {
  margin: 0;
  color: #617087;
}

.secondary-button:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23, 32, 51, 0.58);
  animation: overlay-fade 160ms ease;
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
  animation: modal-rise 180ms ease;
}

.modal-panel.command {
  width: min(760px, calc(100vw - 32px));
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: flex;
  justify-content: flex-end;
  background: rgba(23, 32, 51, 0.26);
  animation: overlay-fade 160ms ease;
}

.drawer-panel {
  width: min(520px, calc(100vw - 24px));
  height: 100vh;
  overflow: auto;
  padding: 22px;
  background: #ffffff;
  border-left: 1px solid #dce5f0;
  box-shadow: -24px 0 60px rgba(23, 32, 51, 0.18);
  animation: drawer-in 180ms ease;
}

.drawer-panel.wide {
  width: min(760px, calc(100vw - 24px));
}

.drawer-panel.narrow {
  width: min(420px, calc(100vw - 24px));
}

.drawer-panel.left {
  border-left: 0;
  border-right: 1px solid #dce5f0;
  margin-right: auto;
}

.drawer-form {
  grid-template-columns: 1fr;
}

@keyframes overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.confirm-dialog {
  width: min(480px, 100%);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.list-row strong,
.list-row span {
  display: block;
}

.list-row span {
  margin-top: 5px;
  font-size: 0.9rem;
}

.align-right {
  text-align: right;
}

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

.priority-grid article {
  display: grid;
  gap: 10px;
  min-height: 136px;
  padding: 18px;
}

.priority-grid b {
  color: #2271b1;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 260px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.chart-bars span {
  flex: 1;
  min-width: 30px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #2271b1, #4ed3a5);
}

.settings-list {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.settings-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #e6edf5;
  border-radius: 8px;
}

.settings-list select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #ffffff;
}

.settings-list input {
  width: 20px;
  height: 20px;
  accent-color: #2271b1;
}

@media (max-width: 1040px) {
  .workshop-kanban {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .project-kanban {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .about-module-grid,
  .about-company-grid,
  .health-grid,
  .about-action-grid,
  .boardroom-actions,
  .company-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-version-grid,
  .about-stack-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gantt-row {
    grid-template-columns: 1fr;
  }

  .boardroom-hero,
  .boardroom-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    padding: 0;
  }

  .brand-lockup div:not(.brand-mark),
  .nav-item span:last-child,
  .sidebar-status {
    display: none;
  }

  .brand-lockup {
    justify-content: center;
    padding: 18px 12px 14px;
  }

  .sidebar-scroll {
    padding: 0 12px 14px;
  }

  .sidebar-status {
    margin: 0 12px 14px;
  }

  .nav-item {
    justify-content: center;
    padding: 10px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }

  .sidebar-scroll {
    overflow: visible;
    padding-bottom: 18px;
  }

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

  .nav-item {
    justify-content: flex-start;
  }

  .nav-item span:last-child,
  .brand-lockup div:not(.brand-mark) {
    display: block;
  }

  .topbar,
  .page-content {
    padding-inline: 18px;
  }

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

  .global-search {
    width: 100%;
    max-width: none;
  }

  .company-switcher {
    width: 100%;
  }

  .page-grid,
  .metrics-grid,
  .priority-grid,
  .module-card-grid,
  .briefing-grid,
  .workspace-grid,
  .group-company-grid,
  .company-kpi-grid,
  .about-module-grid,
  .about-company-grid,
  .health-grid,
  .about-version-grid,
  .about-stack-list,
  .about-split,
  .about-action-grid,
  .boardroom-actions,
  .company-performance-grid,
  .boardroom-grid,
  .chart-grid,
  .form-grid,
  .workflow-grid,
  .permission-grid,
  .connector-grid,
  .connector-metrics,
  .fleet-overview-grid,
  .contract-preview-grid,
  .document-checklist,
  .profile-grid,
  .profile-field-grid,
  .photo-grid,
  .document-vault,
  .workshop-kanban,
  .project-kanban,
  .vault-document dl,
  .signature-blocks {
    grid-template-columns: 1fr;
  }

  .module-card-grid.compact {
    grid-template-columns: 1fr;
  }

  .finance-action-grid,
  .finance-cash-grid,
  .account-grid,
  .finance-filter-bar {
    grid-template-columns: 1fr;
  }

  .login-panel {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 18px;
  }

  .section-heading,
  .module-header,
  .action-toolbar,
  .list-row,
  .settings-list label {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .drawer-panel,
  .drawer-panel.wide,
  .drawer-panel.narrow {
    width: 100vw;
    max-width: 100vw;
  }

  .module-actions {
    justify-content: flex-start;
  }

  .align-right {
    text-align: left;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .sidebar,
  .topbar,
  .fleet-actions,
  .tab-strip,
  .table-wrap,
  .no-print,
  .modal-backdrop {
    display: none !important;
  }

  .app-shell,
  .main-panel,
  .page-content {
    display: block;
    padding: 0;
  }

  .content-card,
  .contract-preview {
    border: 0;
    box-shadow: none;
  }

  .contract-preview {
    page-break-inside: avoid;
  }
}
.workflow-module {
  border-color: rgba(214, 162, 58, 0.28);
}

.workflow-designer-grid,
.rule-builder,
.automation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.workflow-designer-grid article,
.rule-builder article,
.automation-panel article,
.approval-flow article {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 235, 0.92));
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(12, 12, 12, 0.08);
}

.workflow-health-stack {
  display: grid;
  gap: 12px;
}

.workflow-health-stack span {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.rule-builder {
  grid-template-columns: minmax(280px, 1fr) minmax(240px, 1fr) minmax(240px, 1fr);
}

.rule-flow,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.rule-flow span,
.tag-cloud span {
  background: #101010;
  border: 1px solid rgba(214, 162, 58, 0.5);
  border-radius: 999px;
  color: #f8ead0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
}

.tag-cloud span {
  background: rgba(16, 16, 16, 0.06);
  color: #1f1f1f;
}

.approval-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.approval-flow article {
  display: grid;
  gap: 8px;
}

.approval-flow span:not(.status-badge) {
  color: #6c6254;
  font-size: 0.84rem;
}

.workflow-timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.workflow-timeline article {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(214, 162, 58, 0.2);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  padding: 16px;
}

.timeline-dot {
  background: #d6a23a;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(214, 162, 58, 0.14);
  display: block;
  height: 12px;
  margin-top: 4px;
  width: 12px;
}

.automation-panel {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.automation-panel article {
  display: grid;
  gap: 14px;
}

.hr-module {
  border-color: rgba(214, 162, 58, 0.28);
}

.hr-split {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  margin-top: 18px;
}

.employee-profile-card,
.org-chart,
.org-departments article,
.org-team,
.report-grid .metric-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(248, 244, 235, 0.92));
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(12, 12, 12, 0.08);
  padding: 18px;
}

.employee-profile-card {
  align-self: start;
  display: grid;
  gap: 14px;
}

.employee-avatar {
  align-items: center;
  background: #101010;
  border: 2px solid #d6a23a;
  border-radius: 999px;
  color: #f8ead0;
  display: flex;
  font-size: 1.2rem;
  font-weight: 800;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.employee-profile-card dl {
  display: grid;
  gap: 8px;
  grid-template-columns: 120px minmax(0, 1fr);
}

.employee-profile-card dt {
  color: #756b5f;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.employee-profile-card dd {
  margin: 0;
}

.org-chart {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.org-root,
.org-company {
  background: #101010;
  border-radius: 12px;
  color: #f8ead0;
  display: grid;
  gap: 4px;
  padding: 16px;
  text-align: center;
}

.org-company {
  background: linear-gradient(135deg, #d6a23a, #f3d892);
  color: #17120a;
}

.org-departments {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.org-team {
  box-shadow: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
}

.org-team button {
  background: rgba(16, 16, 16, 0.04);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 10px;
  color: #1f1f1f;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
}

.org-team small {
  color: #756b5f;
}

.report-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 18px;
}

.product-footer {
  align-items: center;
  background: rgba(12, 12, 12, 0.94);
  border-top: 1px solid rgba(214, 162, 58, 0.35);
  color: #f8ead0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  padding: 14px 20px;
}

.product-footer span {
  border-left: 1px solid rgba(248, 234, 208, 0.25);
  padding-left: 10px;
}

.version-roadmap-grid,
.settings-release-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.version-roadmap-grid article {
  background: linear-gradient(145deg, #101010, #252017);
  border: 1px solid rgba(214, 162, 58, 0.35);
  border-radius: 14px;
  color: #f8ead0;
  padding: 18px;
}

.version-roadmap-grid strong {
  color: #d6a23a;
  font-size: 1.15rem;
}

.release-group {
  margin-top: 10px;
}

.release-group strong {
  color: #1f1f1f;
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.version-settings {
  display: grid;
  gap: 18px;
}

.plant-module {
  border-color: rgba(214, 162, 58, 0.3);
}

.plant-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 18px;
}

.plant-equipment-card,
.plant-asset-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(248, 244, 235, 0.92));
  border: 1px solid rgba(214, 162, 58, 0.24);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(12, 12, 12, 0.08);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.architecture-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.architecture-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.94));
  border: 1px solid rgba(214, 162, 58, 0.24);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(12, 12, 12, 0.08);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.architecture-card h4 {
  margin: 0;
}

.architecture-card p {
  color: #756b5f;
  margin: 0;
}

.empty-state.compact {
  margin: 0;
  min-height: auto;
  padding: 18px;
}

.form-section {
  display: grid;
  gap: 12px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.modal-panel.small {
  max-width: 460px;
}

.modal-panel.large {
  max-width: 960px;
}

.error-boundary {
  align-items: center;
  background: linear-gradient(135deg, #101010, #2a2112);
  color: #f8ead0;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.error-boundary .content-card {
  margin: 0 auto;
  max-width: 720px;
}

.error-boundary h1 {
  margin-top: 0;
}

.plant-equipment-card h4,
.plant-asset-panel h3 {
  margin: 8px 0 2px;
}

.plant-equipment-card dl,
.plant-asset-panel dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plant-equipment-card dt,
.plant-asset-panel dt {
  color: #756b5f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plant-equipment-card dd,
.plant-asset-panel dd {
  margin: 0;
}

.plant-split {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  margin-top: 18px;
}

.plant-asset-panel {
  align-self: start;
  background: linear-gradient(145deg, #101010, #252017);
  color: #f8ead0;
}

.plant-asset-panel dt {
  color: #d6a23a;
}

.plant-timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.plant-timeline article {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  padding: 16px;
}

.copilot-button {
  background: linear-gradient(135deg, #101010, #d6a23a);
  box-shadow: 0 18px 42px rgba(16, 16, 16, 0.28);
}

.copilot-panel {
  border-left: 1px solid rgba(214, 162, 58, 0.35);
  max-width: min(760px, calc(100vw - 28px));
  width: 720px;
}

.copilot-context-card {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}

.copilot-context-card div {
  background: linear-gradient(145deg, #101010, #252017);
  border: 1px solid rgba(214, 162, 58, 0.35);
  border-radius: 12px;
  color: #f8ead0;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.copilot-context-card span {
  color: #d6a23a;
  font-size: 0.78rem;
}

.copilot-history-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.copilot-conversation-list {
  background: rgba(16, 16, 16, 0.04);
  border: 1px solid rgba(214, 162, 58, 0.18);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
  padding: 12px;
}

.copilot-conversation-list button {
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 10px;
  color: #17120a;
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 10px;
  text-align: left;
}

.copilot-conversation-list button.active {
  border-color: #d6a23a;
  box-shadow: 0 0 0 3px rgba(214, 162, 58, 0.16);
}

.copilot-conversation-list span,
.copilot-conversation-list small {
  color: #756b5f;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.copilot-thread {
  max-height: 430px;
  overflow: auto;
}

.copilot-thread-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.copilot-markdown {
  background: #101010;
  border-radius: 10px;
  color: #f8ead0;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.copilot-knowledge {
  background: rgba(214, 162, 58, 0.08);
  border: 1px solid rgba(214, 162, 58, 0.2);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.treasury-module {
  display: grid;
  gap: 18px;
}

.treasury-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.treasury-balance-list,
.cash-forecast-grid,
.approval-rule-grid,
.fraud-grid,
.adapter-grid,
.treasury-action-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.treasury-balance-list div,
.cash-forecast-grid article,
.approval-rule-grid article,
.fraud-grid article,
.adapter-grid article,
.treasury-action-row article {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.94));
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(12, 12, 12, 0.08);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.treasury-balance-list strong {
  color: #101010;
  font-size: 1.4rem;
}

.cash-forecast-grid dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.cash-forecast-grid dt {
  color: #756b5f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cash-forecast-grid dd {
  margin: 0;
}

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

.payment-timeline article {
  align-items: center;
  background: #fffaf0;
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 14px;
}

.timeline-dot {
  background: #cbd8e6;
  border-radius: 999px;
  height: 14px;
  width: 14px;
}

.timeline-dot.complete {
  background: #d6a23a;
}

.fraud-grid small,
.adapter-grid small {
  color: #756b5f;
  display: block;
  line-height: 1.45;
}

.treasury-ai-list article {
  background: #101010;
  border: 1px solid rgba(214, 162, 58, 0.3);
  border-radius: 12px;
  color: #f8ead0;
  padding: 14px;
}

.connect-module {
  display: grid;
  gap: 18px;
}

.connect-landing {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.connect-hero {
  align-items: center;
  background: linear-gradient(135deg, #101010, #2a2112);
  color: #f8ead0;
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
}

.connect-hero .brand-mark {
  background: #d6a23a;
  color: #101010;
  height: 72px;
  width: 72px;
}

.connect-hero p {
  color: #f8ead0;
}

.portal-login-list,
.portal-announcement-list,
.portal-knowledge-grid,
.portal-self-service,
.portal-security-grid {
  display: grid;
  gap: 12px;
}

.portal-login-list button,
.portal-announcement-list section,
.portal-knowledge-grid article,
.portal-self-service button,
.portal-security-grid article {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.94));
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 12px;
  color: #17120a;
  display: grid;
  gap: 7px;
  padding: 14px;
  text-align: left;
}

.portal-login-list button:hover,
.portal-self-service button:hover {
  border-color: #d6a23a;
  box-shadow: 0 0 0 3px rgba(214, 162, 58, 0.14);
}

.portal-knowledge-grid,
.portal-security-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.portal-ai-form {
  display: grid;
  gap: 12px;
}

.portal-ai-form textarea {
  min-height: 120px;
  resize: vertical;
}

.portal-ai-answer {
  background: #101010;
  border: 1px solid rgba(214, 162, 58, 0.35);
  border-radius: 12px;
  color: #f8ead0;
  margin-top: 14px;
  padding: 16px;
}

.integration-module {
  display: grid;
  gap: 18px;
}

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

.integration-card-grid,
.integration-security-grid,
.integration-ai-grid,
.integration-settings-list,
.mapping-entity-grid,
.integration-alert-list {
  display: grid;
  gap: 14px;
}

.integration-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.integration-card,
.integration-security-grid article,
.integration-ai-grid article,
.integration-settings-list article,
.integration-alert-list section {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.94));
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(12, 12, 12, 0.08);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.integration-card dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.integration-card dt,
.integration-security-grid small {
  color: #756b5f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.integration-card dd {
  margin: 0;
}

.mapping-entity-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 16px;
}

.mapping-entity-grid span {
  background: #101010;
  border: 1px solid rgba(214, 162, 58, 0.3);
  border-radius: 999px;
  color: #f8ead0;
  font-weight: 800;
  padding: 9px 12px;
  text-align: center;
}

.sync-timeline {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.sync-timeline article {
  align-items: center;
  background: #fffaf0;
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 14px;
}

.integration-ai-grid article {
  background: #101010;
  color: #f8ead0;
}

.knowledge-module {
  display: grid;
  gap: 18px;
}

.knowledge-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
}

.knowledge-insight-list {
  display: grid;
  gap: 12px;
}

.knowledge-insight-list article,
.knowledge-insight-list section,
.knowledge-ai-grid article,
.knowledge-permission-grid article {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.94));
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(12, 12, 12, 0.08);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.knowledge-search-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) 220px 220px;
  margin-bottom: 16px;
}

.knowledge-search-row input,
.knowledge-search-row select {
  min-height: 42px;
  padding: 9px 12px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.knowledge-explorer {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
}

.explorer-list {
  display: grid;
  gap: 10px;
  max-height: 650px;
  overflow: auto;
  padding-right: 6px;
}

.explorer-list button {
  display: grid;
  gap: 6px;
  padding: 14px;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
}

.explorer-list button.active,
.explorer-list button:hover {
  border-color: #d6a23a;
  box-shadow: 0 0 0 3px rgba(214, 162, 58, 0.14);
}

.explorer-list small,
.document-preview-box small,
.knowledge-permission-grid small {
  color: #756b5f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-panel {
  align-self: start;
  display: grid;
  gap: 16px;
}

.document-preview-box {
  background: linear-gradient(145deg, #101010, #252017);
  border: 1px solid rgba(214, 162, 58, 0.35);
  border-radius: 16px;
  color: #f8ead0;
  display: grid;
  gap: 14px;
  min-height: 420px;
  padding: 22px;
}

.document-preview-box h3,
.document-preview-box p,
.document-preview-box dl {
  margin: 0;
}

.document-preview-box p {
  color: #f8ead0;
  line-height: 1.55;
}

.document-preview-box dl {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-preview-box dt {
  color: #d6a23a;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.document-preview-box dd {
  margin: 0;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-document-list {
  display: grid;
  gap: 8px;
}

.related-document-list span {
  background: rgba(244, 201, 93, 0.12);
  border: 1px solid rgba(244, 201, 93, 0.25);
  border-radius: 999px;
  color: #f8ead0;
  padding: 7px 10px;
}

.knowledge-ai-grid,
.knowledge-permission-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.knowledge-ai-grid article {
  background: #101010;
  color: #f8ead0;
  font-weight: 800;
}

.knowledge-permission-grid article {
  align-content: start;
}

.security-admin {
  display: grid;
  gap: 18px;
}

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

.security-alert-list,
.security-identity-grid,
.security-role-catalog,
.security-ai-grid {
  display: grid;
  gap: 12px;
}

.security-alert-list section,
.security-ai-grid article {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.94));
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(12, 12, 12, 0.08);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.security-alert-list p,
.security-alert-list small {
  color: #756b5f;
  line-height: 1.45;
}

.security-identity-grid,
.security-role-catalog {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.security-identity-grid span,
.security-role-catalog span {
  background: #101010;
  border: 1px solid rgba(214, 162, 58, 0.32);
  border-radius: 999px;
  color: #f8ead0;
  font-weight: 800;
  padding: 9px 12px;
  text-align: center;
}

.security-role-catalog {
  margin-top: 18px;
}

.security-check {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 5px 9px;
}

.security-check.yes {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.security-check.no {
  background: rgba(224, 82, 82, 0.12);
  color: #9d2f2f;
}

.security-ai-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.security-ai-grid article {
  background: #101010;
  color: #f8ead0;
  font-weight: 800;
}

.collaboration-centre {
  display: grid;
  gap: 18px;
}

.collaboration-grid,
.cloud-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.provider-grid,
.presence-stack,
.team-space-grid,
.collaboration-ai-grid,
.notification-list {
  display: grid;
  gap: 12px;
}

.provider-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.provider-grid section,
.team-space-grid article,
.collaboration-ai-grid article {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.94));
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(12, 12, 12, 0.08);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.provider-grid p,
.team-space-grid p {
  color: #756b5f;
  margin: 0;
}

.presence-pill {
  align-items: center;
  background: #fffaf0;
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  padding: 12px;
}

.presence-avatar {
  align-items: center;
  background: #101010;
  border: 2px solid #d6a23a;
  border-radius: 999px;
  color: #f8ead0;
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.presence-avatar.away {
  border-color: #f4c95d;
}

.presence-avatar.busy {
  border-color: #e05f5f;
}

.presence-avatar.offline {
  border-color: #94a3b8;
  opacity: 0.72;
}

.presence-pill small {
  color: #756b5f;
  display: block;
  margin-top: 3px;
}

.presence-actions,
.collaboration-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.collaboration-filter-row input,
.collaboration-filter-row select {
  min-height: 42px;
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.notification-list {
  margin-top: 16px;
}

.notification-list button {
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(214, 162, 58, 0.22);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  padding: 12px;
  text-align: left;
}

.notification-list small {
  color: #756b5f;
  display: block;
  margin-top: 4px;
}

.activity-stream {
  display: grid;
  gap: 12px;
}

.activity-stream article {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid rgba(214, 162, 58, 0.18);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 14px;
}

.activity-stream p {
  color: #5f6f85;
  margin: 4px 0;
}

.activity-stream small {
  color: #756b5f;
}

.collaboration-ai-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.collaboration-ai-grid article {
  background: #101010;
  color: #f8ead0;
  font-weight: 800;
}

.presence-button {
  position: relative;
}

.presence-button span {
  background: #22c55e;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.72rem;
  justify-content: center;
  margin-left: 6px;
  min-width: 22px;
  padding: 2px 6px;
}

@media (max-width: 900px) {
  .hr-split {
    grid-template-columns: 1fr;
  }

  .employee-profile-card dl {
    grid-template-columns: 1fr;
  }

  .plant-split,
  .plant-equipment-card dl,
  .plant-asset-panel dl {
    grid-template-columns: 1fr;
  }

  .copilot-context-card,
  .copilot-history-layout,
  .treasury-grid,
  .connect-landing,
  .connect-hero,
  .integration-grid,
  .integration-card dl,
  .cash-forecast-grid dl,
  .knowledge-grid,
  .knowledge-search-row,
  .knowledge-explorer,
  .document-preview-box dl,
  .security-grid,
  .collaboration-grid,
  .cloud-grid {
    grid-template-columns: 1fr;
  }
}

/* EBE ForgeOS executive UI transformation */
:root {
  --ebe-gold: #d4a017;
  --ebe-gold-soft: rgba(212, 160, 23, 0.16);
  --ebe-navy: #0f172a;
  --ebe-bg: #070b12;
  --ebe-sidebar: #0b1220;
  --ebe-surface: rgba(17, 24, 39, 0.8);
  --ebe-surface-solid: #111827;
  --ebe-surface-raised: rgba(15, 23, 42, 0.92);
  --ebe-border: #1f2937;
  --ebe-text: #f3f4f6;
  --ebe-muted: #9ca3af;
  --ebe-success: #22c55e;
  --ebe-info: #3b82f6;
  --ebe-warning: #f59e0b;
  --ebe-danger: #ef4444;
  --ebe-radius-card: 12px;
  --ebe-radius-button: 10px;
  --ebe-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

:root:not([data-theme]),
:root[data-theme="dark"],
:root[data-theme="system"] {
  color: var(--ebe-text);
  background: var(--ebe-bg);
}

:root:not([data-theme]) body,
:root[data-theme="dark"] body,
:root[data-theme="system"] body {
  color: var(--ebe-text);
  background:
    radial-gradient(circle at 24% 0%, rgba(212, 160, 23, 0.14), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(59, 130, 246, 0.09), transparent 28rem),
    linear-gradient(135deg, #05080e 0%, #08111f 48%, #05080e 100%);
}

.app-shell {
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100dvh;
  background: transparent;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 0;
  background:
    radial-gradient(circle at top left, rgba(212, 160, 23, 0.12), transparent 16rem),
    linear-gradient(180deg, #0b1220 0%, #070d18 100%);
  border-right: 1px solid rgba(212, 160, 23, 0.15);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.22);
}

.brand-lockup {
  padding: 18px 18px 16px;
}

.brand-mark,
.sidebar-company-mark {
  color: #111827;
  background: linear-gradient(135deg, #ffd66b, var(--ebe-gold));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(212, 160, 23, 0.24);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.brand-lockup .eyebrow,
.sidebar-heading {
  color: var(--ebe-muted);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.brand-lockup h1 {
  color: var(--ebe-text);
  font-size: 1.18rem;
}

.sidebar-scroll {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 14px 14px;
  scroll-behavior: smooth;
}

.sidebar-workspaces,
.sidebar-nav-group {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.sidebar-workspaces {
  padding: 10px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-nav,
.nav-item {
  border-radius: var(--ebe-radius-button);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.workspace-nav {
  color: #d8dde8;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-nav.active,
.workspace-nav:hover {
  color: var(--ebe-gold);
  background: rgba(212, 160, 23, 0.12);
  border-color: rgba(212, 160, 23, 0.32);
}

.nav-list {
  gap: 0;
}

.nav-item {
  min-height: 39px;
  padding: 8px 10px;
  color: #d7deea;
  font-size: 0.9rem;
}

.nav-item:hover,
.nav-item.active {
  color: var(--ebe-gold);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(212, 160, 23, 0.18);
  transform: translateX(2px);
}

.nav-icon {
  width: 24px;
  height: 24px;
  color: #dbe4f0;
  background: transparent;
  border: 1px solid rgba(219, 228, 240, 0.45);
  border-radius: 7px;
  font-size: 0.62rem;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  color: #111827;
  background: var(--ebe-gold);
  border-color: var(--ebe-gold);
}

.sidebar-status {
  position: relative;
  gap: 10px;
  margin: 0 14px 10px;
  padding: 13px;
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(212, 160, 23, 0.18);
  border-radius: var(--ebe-radius-card);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.sidebar-company-mark {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
}

.sidebar-status .status-dot {
  position: absolute;
  top: 14px;
  left: 42px;
  border: 2px solid var(--ebe-sidebar);
  background: var(--ebe-success);
}

.sidebar-status strong {
  color: var(--ebe-text);
}

.sidebar-status small {
  color: var(--ebe-muted);
}

.sidebar-footer {
  margin: 0;
  padding: 0 16px 14px;
  color: #6b7280;
  font-size: 0.72rem;
}

.main-panel {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.98), rgba(6, 10, 18, 0.98)),
    var(--ebe-bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  min-height: 0;
  padding: 14px 18px 0;
  background: rgba(8, 13, 24, 0.78);
  border-bottom: 1px solid rgba(212, 160, 23, 0.13);
  backdrop-filter: blur(18px);
}

.topbar-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.8fr);
  align-items: end;
}

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

.company-switcher {
  min-width: 0;
}

.company-switcher span {
  color: var(--ebe-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.company-switcher select,
.global-search input,
input,
select,
textarea {
  color: var(--ebe-text);
  background: rgba(8, 13, 24, 0.86);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 8px;
}

.company-switcher select {
  min-height: 36px;
  padding: 7px 11px;
}

.global-search {
  max-width: none;
  width: 100%;
}

.global-search input {
  min-height: 36px;
}

.search-results,
.notification-panel button,
.drawer-panel,
.modal-panel {
  color: var(--ebe-text);
  background: rgba(12, 18, 31, 0.96);
  border-color: rgba(212, 160, 23, 0.22);
  box-shadow: var(--ebe-shadow);
}

.search-results button {
  color: var(--ebe-text);
  background: rgba(17, 24, 39, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.search-results span,
.notification-panel small,
.muted-text {
  color: var(--ebe-muted);
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.primary-button,
.secondary-button,
.icon-button,
.danger-button,
.link-button,
.tab-strip button,
.quick-create-card,
.executive-action-bar button {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.primary-button {
  color: #111827;
  background: linear-gradient(135deg, #ffd76a, var(--ebe-gold));
  border-color: rgba(255, 214, 106, 0.6);
  border-radius: var(--ebe-radius-button);
  box-shadow: 0 10px 22px rgba(212, 160, 23, 0.22);
}

.secondary-button,
.icon-button {
  color: var(--ebe-text);
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ebe-radius-button);
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.quick-create-card:hover,
.executive-action-bar button:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 160, 23, 0.46);
  box-shadow: 0 14px 34px rgba(212, 160, 23, 0.16);
}

.notification-button span,
.presence-button span {
  background: var(--ebe-gold);
  color: #111827;
}

.pill,
.status-badge {
  color: var(--ebe-text);
  background: rgba(17, 24, 39, 0.84);
  border: 1px solid rgba(212, 160, 23, 0.22);
}

.user-pill {
  display: grid;
  gap: 1px;
  min-width: 130px;
  border-radius: 10px;
}

.user-pill small {
  color: var(--ebe-muted);
  font-size: 0.62rem;
}

.company-hero {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 178px;
  overflow: hidden;
  margin: 0 -18px;
  padding: 30px 24px;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(8, 12, 20, 0.92), rgba(8, 12, 20, 0.58), rgba(8, 12, 20, 0.2)),
    linear-gradient(135deg, rgba(212, 160, 23, 0.22), transparent 30%),
    radial-gradient(circle at 20% 40%, rgba(212, 160, 23, 0.24), transparent 16rem),
    linear-gradient(135deg, #09111f, #172033);
  background-position: center;
  background-size: cover;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.company-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(30deg, rgba(212, 160, 23, 0.09) 12%, transparent 12.5%, transparent 87%, rgba(212, 160, 23, 0.09) 87.5%, rgba(212, 160, 23, 0.09)),
    linear-gradient(150deg, rgba(212, 160, 23, 0.09) 12%, transparent 12.5%, transparent 87%, rgba(212, 160, 23, 0.09) 87.5%, rgba(212, 160, 23, 0.09));
  background-position: 0 0, 0 0;
  background-size: 68px 118px;
  mask-image: linear-gradient(90deg, black, transparent 46%);
  opacity: 0.8;
}

.company-hero-logo,
.company-hero h2,
.company-hero p {
  position: relative;
  z-index: 1;
}

.company-hero-logo {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #ffd66b, var(--ebe-gold));
  border-radius: 18px;
  font-weight: 950;
  box-shadow: 0 20px 46px rgba(212, 160, 23, 0.28);
}

.company-hero h2 {
  margin: 0;
  color: var(--ebe-gold);
  font-size: clamp(1.6rem, 4vw, 2.55rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-hero p {
  margin: 6px 0 0;
  color: #f8ead0;
  font-weight: 800;
}

.page-content {
  width: min(100%, 1580px);
  margin: 0 auto;
  padding: 16px 18px 36px;
}

.content-card,
.metric-card,
.module-card,
.priority-grid article,
.portal-login-list button,
.portal-announcement-list section,
.portal-knowledge-grid article,
.portal-self-service button,
.portal-security-grid article,
.plant-equipment-card,
.plant-asset-panel,
.architecture-card,
.integration-card,
.integration-security-grid article,
.integration-ai-grid article,
.integration-settings-list article,
.integration-alert-list section,
.knowledge-insight-list article,
.knowledge-insight-list section,
.knowledge-ai-grid article,
.knowledge-permission-grid article,
.security-alert-list section,
.security-ai-grid article,
.provider-grid section,
.team-space-grid article,
.collaboration-ai-grid article,
.activity-stream article {
  color: var(--ebe-text);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.88), rgba(10, 16, 28, 0.84));
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: var(--ebe-radius-card);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.content-card p,
.module-header p,
.hero-card p,
.module-card p,
.metric-card p,
.metric-card span,
.activity-stream p,
.portal-knowledge-grid article span,
.portal-security-grid article span {
  color: var(--ebe-muted);
}

.module-header {
  align-items: center;
  padding: 16px 18px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: var(--ebe-radius-card);
}

.module-header h3,
.section-heading h3 {
  color: var(--ebe-text);
}

.eyebrow {
  color: var(--ebe-gold);
}

.tab-strip {
  gap: 8px;
  padding: 8px;
  background: rgba(8, 13, 24, 0.72);
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: var(--ebe-radius-card);
  scrollbar-width: thin;
}

.tab-strip button {
  flex: 0 0 auto;
  min-height: 37px;
  color: var(--ebe-text);
  background: rgba(17, 24, 39, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
}

.tab-strip button.active,
.tab-strip button:hover {
  color: var(--ebe-gold);
  background: rgba(212, 160, 23, 0.12);
  border-color: rgba(212, 160, 23, 0.36);
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-card {
  position: relative;
  min-height: 112px;
  padding: 16px 16px 16px 58px;
}

.metric-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #ffd66b, var(--ebe-gold));
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 900;
}

.metric-card p {
  margin-bottom: 8px;
}

.metric-card strong {
  color: var(--ebe-text);
  font-size: 1.6rem;
}

.executive-action-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.executive-action-bar button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  min-height: 56px;
  padding: 11px 14px;
  text-align: left;
  color: var(--ebe-text);
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: var(--ebe-radius-button);
}

.executive-action-bar button span {
  grid-row: span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ebe-gold);
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.32);
  border-radius: 10px;
  font-weight: 900;
}

.executive-action-bar button small {
  color: var(--ebe-muted);
}

.launch-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.activity-stream.compact {
  display: grid;
  gap: 10px;
}

.announcement-card {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(8, 13, 24, 0.72);
  border: 1px solid rgba(212, 160, 23, 0.18);
  border-radius: var(--ebe-radius-card);
}

.announcement-card span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #111827;
  background: var(--ebe-gold);
  border-radius: 10px;
  font-weight: 900;
}

.announcement-card p {
  margin: 4px 0 0;
  color: var(--ebe-muted);
}

.quick-create-drawer {
  width: min(720px, calc(100vw - 32px));
}

.quick-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.quick-create-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  padding: 12px;
  text-align: left;
  color: var(--ebe-text);
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 10px;
}

.quick-create-card span {
  grid-row: span 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #111827;
  background: var(--ebe-gold);
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 900;
}

.quick-create-card small {
  color: var(--ebe-muted);
}

.quick-create-card.active {
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.2);
}

.quick-create-all {
  width: 100%;
  padding: 12px 0 0;
  color: var(--ebe-gold);
  text-align: left;
  background: transparent;
  border: 0;
  font-weight: 900;
}

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

.form-grid textarea {
  min-height: 112px;
  resize: vertical;
}

.brand-form-toolbar,
.brand-upload-panel,
.brand-import-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(8, 13, 24, 0.72);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--ebe-radius-card);
}

.brand-form-toolbar {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.brand-form-toolbar span,
.brand-upload-panel p {
  margin: 0;
  color: var(--ebe-muted);
}

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

.brand-upload-panel section {
  display: grid;
  gap: 10px;
  align-content: start;
}

.brand-upload-panel input[type="file"],
.brand-import-panel input[type="file"] {
  width: 100%;
  padding: 10px;
  color: var(--ebe-muted);
  background: rgba(17, 24, 39, 0.82);
  border: 1px dashed rgba(212, 160, 23, 0.35);
  border-radius: 10px;
}

.brand-logo-preview {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  color: #111827;
  background: linear-gradient(135deg, #ffd66b, var(--ebe-gold));
  border: 1px solid rgba(212, 160, 23, 0.45);
  border-radius: 18px;
  font-weight: 950;
}

.brand-logo-preview img,
.company-hero-logo img,
.sidebar-company-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-background-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 12px;
}

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

.brand-import-panel .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.document-designer {
  display: grid;
  gap: 14px;
}

.designer-toolbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.8fr) auto auto auto;
}

.designer-toolbar h3 {
  margin: 0;
}

.designer-shell {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(210px, 0.65fr) minmax(460px, 1.35fr) minmax(260px, 0.8fr);
}

.designer-panel,
.designer-canvas {
  min-width: 0;
}

.designer-element-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.designer-element-grid button {
  min-height: 46px;
  color: var(--ebe-text);
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 10px;
  font-weight: 800;
}

.designer-element-grid button:hover {
  color: var(--ebe-gold);
  border-color: rgba(212, 160, 23, 0.42);
}

.designer-canvas {
  overflow: auto;
  padding: 18px;
}

.document-page {
  width: min(100%, 794px);
  min-height: 950px;
  margin: 0 auto;
  padding: 26px;
  color: #111827;
  background: #fffaf2;
  border: 1px solid rgba(212, 160, 23, 0.32);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.document-page-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ebe-gold);
}

.document-logo {
  display: grid;
  width: 76px;
  height: 46px;
  place-items: center;
  color: #111827;
  background: var(--ebe-gold);
  border-radius: 6px;
  font-weight: 950;
}

.document-page-header span {
  display: block;
  margin-top: 3px;
  color: #4b5563;
  font-size: 0.78rem;
}

.designer-page-element {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 10px;
  text-align: left;
  border: 1px dashed rgba(17, 24, 39, 0.22);
  border-radius: 6px;
}

.designer-page-element.active {
  border-color: var(--ebe-gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}

.designer-page-element small {
  color: #6b7280;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.designer-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: #6b7280;
  border: 1px dashed rgba(17, 24, 39, 0.2);
  border-radius: 8px;
}

.designer-properties {
  display: grid;
  gap: 12px;
}

.designer-properties label,
.element-editor {
  min-width: 0;
}

.element-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: rgba(8, 13, 24, 0.72);
  border: 1px solid rgba(212, 160, 23, 0.18);
  border-radius: 12px;
}

.import-documents {
  display: grid;
  gap: 16px;
}

.import-document-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 0.8fr) minmax(300px, 1fr);
}

.upload-drop-zone {
  display: grid;
  gap: 10px;
  min-height: 260px;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: rgba(8, 13, 24, 0.72);
  border: 1px dashed rgba(212, 160, 23, 0.48);
  border-radius: 14px;
}

.upload-drop-zone label {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 150px;
}

.upload-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.upload-drop-zone small {
  max-width: 380px;
  color: var(--ebe-muted);
  line-height: 1.5;
}

.import-settings {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tender-intelligence {
  display: grid;
  gap: 16px;
}

.tender-actions,
.tender-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.connector-status-grid,
.tender-card-grid,
.tender-detail-grid {
  display: grid;
  gap: 14px;
}

.connector-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.connector-status-grid article,
.tender-card,
.tender-detail-grid article,
.tender-list-panel {
  color: var(--ebe-text);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.88), rgba(8, 13, 24, 0.82));
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: var(--ebe-radius-card);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.connector-status-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.connector-status-grid small,
.tender-detail-grid span,
.tender-list-panel p,
.tender-card dt {
  color: var(--ebe-muted);
}

.tender-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.tender-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.tender-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.tender-card dl,
.tender-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tender-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.tender-card dt {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tender-card dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.tender-workspace {
  display: grid;
  gap: 14px;
}

.tender-workspace-drawer {
  max-width: min(1120px, calc(100vw - 28px));
  width: min(1120px, calc(100vw - 28px));
  animation: tenderDrawerIn 220ms ease-out;
}

.tender-workspace-drawer .tender-workspace {
  min-height: calc(100vh - 44px);
}

.tender-workspace-drawer .section-heading {
  position: sticky;
  top: -22px;
  z-index: 2;
  padding: 0 0 14px;
  background: rgba(8, 13, 24, 0.98);
  border-bottom: 1px solid rgba(212, 160, 23, 0.16);
}

.tender-workspace-drawer h3:focus {
  outline: 3px solid rgba(212, 160, 23, 0.56);
  outline-offset: 4px;
  border-radius: 8px;
}

@keyframes tenderDrawerIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tender-workspace-body {
  min-height: 260px;
}

.tender-detail-grid article,
.tender-list-panel {
  padding: 14px;
}

.tender-detail-grid strong {
  display: block;
  margin-top: 4px;
}

.tender-list-panel {
  display: grid;
  gap: 10px;
}

.tender-list-panel h4 {
  margin: 0;
}

.tender-card.selected {
  border-color: rgba(212, 160, 23, 0.62);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.14), 0 22px 54px rgba(0, 0, 0, 0.28);
}

.tender-card[role="button"] {
  cursor: pointer;
}

.compliance-checklist-grid,
.ai-analysis-grid,
.pipeline-board {
  display: grid;
  gap: 12px;
}

.compliance-checklist-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compliance-checklist-grid article,
.ai-analysis-grid article,
.pipeline-board article {
  color: var(--ebe-text);
  background: rgba(8, 13, 24, 0.72);
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: var(--ebe-radius-card);
  padding: 14px;
}

.compliance-checklist-grid article {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ai-analysis-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ai-analysis-grid article span {
  color: var(--ebe-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.ai-analysis-grid .tender-list-panel {
  grid-column: 1 / -1;
}

.pipeline-board {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.pipeline-board article {
  align-content: start;
  display: grid;
  gap: 10px;
  min-height: 160px;
}

.pipeline-board article > strong {
  color: var(--ebe-gold);
}

.pipeline-board article > p {
  color: var(--ebe-muted);
  margin: 0;
}

.pipeline-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(212, 160, 23, 0.18);
  border-radius: 10px;
}

.pipeline-item button {
  display: grid;
  gap: 4px;
  padding: 0;
  color: var(--ebe-text);
  text-align: left;
  background: transparent;
  border: 0;
}

.pipeline-item small {
  color: var(--ebe-muted);
  line-height: 1.35;
}

.pipeline-item select {
  min-height: 34px;
}

.drawer-backdrop {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
}

.drawer-panel {
  background: rgba(8, 13, 24, 0.96);
  border-left: 1px solid rgba(212, 160, 23, 0.24);
}

.table-wrap {
  border-color: rgba(31, 41, 55, 0.95);
  border-radius: var(--ebe-radius-card);
}

table {
  color: var(--ebe-text);
}

thead th {
  color: var(--ebe-gold);
  background: rgba(8, 13, 24, 0.92);
}

tbody td {
  border-color: rgba(255, 255, 255, 0.06);
}

.floating-ai-button {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 120;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: #111827;
  background:
    radial-gradient(circle at 32% 26%, #fff5b8, transparent 18px),
    linear-gradient(135deg, #ffd66b, var(--ebe-gold));
  border: 1px solid rgba(255, 214, 106, 0.72);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.34), 0 24px 60px rgba(0, 0, 0, 0.36);
  font-size: 1.05rem;
  font-weight: 950;
  animation: ebePulse 2.4s ease-in-out infinite;
}

@keyframes ebePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.34), 0 24px 60px rgba(0, 0, 0, 0.36);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(212, 160, 23, 0), 0 30px 70px rgba(0, 0, 0, 0.42);
    transform: translateY(-2px);
  }
}

.product-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--ebe-muted);
  background: rgba(8, 13, 24, 0.94);
  border-top: 1px solid rgba(31, 41, 55, 0.95);
}

.product-footer strong {
  color: var(--ebe-text);
}

.splash-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--ebe-text);
  background:
    radial-gradient(circle at 20% 10%, rgba(212, 160, 23, 0.22), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(34, 197, 94, 0.1), transparent 28%),
    linear-gradient(135deg, #04070d 0%, #0b111d 52%, #05070c 100%);
}

.splash-card {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(460px, 100%);
  padding: 38px;
  text-align: center;
  background: rgba(8, 13, 24, 0.86);
  border: 1px solid rgba(212, 160, 23, 0.26);
  border-radius: 18px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.45);
}

.splash-card img {
  width: min(280px, 74vw);
  height: auto;
}

.splash-card h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.splash-card p {
  margin: 0;
  color: var(--ebe-muted);
}

.forge-loader {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.forge-loader span {
  width: 9px;
  height: 9px;
  background: var(--ebe-gold);
  border-radius: 999px;
  animation: forgeLoader 1s ease-in-out infinite;
}

.forge-loader span:nth-child(2) {
  animation-delay: 0.14s;
}

.forge-loader span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes forgeLoader {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-7px);
  }
}

.forge-login {
  min-height: 100vh;
  padding: clamp(20px, 4vw, 54px);
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.72), rgba(4, 7, 13, 0.96)),
    radial-gradient(circle at 12% 18%, rgba(212, 160, 23, 0.2), transparent 32%),
    #05070c;
}

.forge-login-panel {
  width: min(1180px, 100%);
  min-height: min(720px, calc(100vh - 80px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.75fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  margin: 0 auto;
}

.forge-login-hero {
  display: grid;
  gap: 18px;
  align-content: center;
  max-width: 680px;
}

.login-logo {
  width: min(320px, 70vw);
  height: auto;
}

.forge-login-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.95;
}

.forge-login-hero p {
  max-width: 620px;
  color: var(--ebe-muted);
  font-size: 1.05rem;
}

.login-announcements {
  display: grid;
  gap: 10px;
  max-width: 620px;
  padding: 18px;
  background: rgba(8, 13, 24, 0.74);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--ebe-radius-card);
}

.login-announcements strong {
  color: var(--ebe-gold);
  text-transform: uppercase;
  letter-spacing: 0;
}

.login-announcements ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
  color: var(--ebe-muted);
}

.forge-login-card {
  width: 100%;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(8, 13, 24, 0.92);
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

.sso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .login-screen {
    gap: 28px;
    padding: 22px;
    overflow-y: auto;
  }

  .login-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .login-logo-lockup {
    align-items: flex-start;
  }

  .login-logo-lockup img {
    width: 78px;
    height: 78px;
  }

  .login-platform-pill {
    width: 100%;
    min-width: 0;
  }

  .login-hero-copy {
    margin-top: 4px;
    padding-left: 18px;
  }

  .login-hero-copy h2 {
    font-size: clamp(1.9rem, 11vw, 3.2rem);
  }

  .login-screen .login-card {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 28px;
  }

  .login-auth-panel {
    padding-left: 0;
  }

  .login-auth-icon {
    position: static;
    width: 58px;
    height: 58px;
  }

  .login-security-panel {
    padding-top: 26px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .forge-login-panel {
    grid-template-columns: 1fr;
  }

  .forge-login-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.5rem);
  }
}

@media (max-width: 520px) {
  .login-screen {
    padding: 16px;
  }

  .login-logo-lockup {
    display: grid;
    gap: 14px;
  }

  .login-logo-lockup h1 {
    font-size: clamp(2.2rem, 15vw, 3.4rem);
  }

  .login-logo-lockup span {
    letter-spacing: 0.1em;
  }

  .login-screen .login-card {
    padding: 22px;
    border-radius: 16px;
  }

  .security-heading,
  .security-row {
    align-items: flex-start;
  }

  .login-screen .sso-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-controls,
  .switcher-row,
  .launch-two-column {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    width: 76px;
  }

  .brand-lockup {
    justify-content: center;
    padding-inline: 10px;
  }

  .brand-lockup div:not(.brand-mark),
  .sidebar-heading,
  .workspace-nav,
  .nav-item span:last-child,
  .sidebar-status span:not(.status-dot),
  .sidebar-footer {
    display: none;
  }

  .sidebar-scroll {
    padding-inline: 10px;
  }

  .nav-item {
    justify-content: center;
    padding: 8px;
  }

  .sidebar-status {
    justify-content: center;
    margin-inline: 10px;
    padding: 10px;
  }

  .sidebar-company-mark {
    width: 34px;
    height: 34px;
  }

  .topbar {
    position: relative;
    padding: 10px 12px 0;
  }

  .company-hero {
    min-height: 142px;
    margin-inline: -12px;
  }

  .quick-create-grid,
  .executive-action-bar,
  .designer-toolbar,
  .designer-shell,
  .import-document-grid,
  .tender-card dl,
  .tender-detail-grid,
  .brand-upload-panel,
  .brand-import-panel {
    grid-template-columns: 1fr;
  }

  .floating-ai-button {
    right: 16px;
    bottom: 18px;
    width: 58px;
    height: 58px;
  }
}
