@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@500;650;700;800;900;950&display=swap");

:root {
  color-scheme: light;
  /* Nexa brand identity */
  --ink: #232a38;
  --muted: #5a6472;
  --line: #d9dee7;
  --panel: #ffffff;
  --page: #f5f7fb;
  --brand: #4a90e2;
  --brand-strong: #002366;
  --navy: #002366;
  --accent: #4a90e2;
  --teal: #0f9f8f;
  --amber: #f0a83a;
  --red: #e0383f;
  --blue: #4a90e2;
  --magenta: #d94f9f;
  --soft-green: #e8f8f4;
  --soft-amber: #fff5df;
  --soft-red: #ffeded;
  --soft-blue: #e9f1fc;
  --soft-purple: #e9f1fc;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow: 0 18px 44px rgba(0, 35, 102, 0.08);
  --soft-shadow: 0 10px 28px rgba(0, 35, 102, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(74, 144, 226, 0.2), transparent 30%),
    linear-gradient(180deg, #f5f9ff 0%, #edf4fc 100%);
  color: var(--ink);
  font-family: "Nunito Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

[hidden] {
  display: none !important;
}

.landing-screen {
  min-height: 100vh;
  overflow: hidden;
  background: #071229;
  color: #fff;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(8, 8, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.landing-brand small {
  color: rgba(255, 255, 255, 0.66);
}

.landing-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.landing-nav a:hover,
.landing-nav a:focus-visible {
  color: #fff;
  outline: none;
}

.landing-login-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 15px;
}

.landing-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 140px clamp(22px, 6vw, 82px) 70px;
  isolation: isolate;
}

.landing-hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.98) 0%, rgba(8, 8, 12, 0.86) 39%, rgba(8, 8, 12, 0.36) 72%, rgba(8, 8, 12, 0.7) 100%),
    radial-gradient(circle at 76% 34%, rgba(74, 144, 226, 0.58), transparent 27%),
    radial-gradient(circle at 58% 78%, rgba(74, 144, 226, 0.28), transparent 30%),
    radial-gradient(circle at 20% 72%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(135deg, #040b1c 0%, #0a1730 48%, #071229 100%);
}

.landing-hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 226, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(920px, 100%);
}

.hero-kicker {
  display: inline-flex;
  max-width: 100%;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(74, 144, 226, 0.34);
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 22px;
  padding: 0 12px;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 940px;
  color: #fff;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 950;
  line-height: 0.92;
  margin-bottom: 24px;
}

.hero-copy > p:not(.hero-kicker) {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 950;
  padding: 0 20px;
  text-decoration: none;
}

.hero-primary {
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(74, 144, 226, 0.35);
}

.hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.motion-grid {
  position: absolute;
  right: -8vw;
  top: 8vh;
  width: 70vw;
  height: 74vh;
  background:
    linear-gradient(rgba(74, 144, 226, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  filter: blur(0.2px);
  mask-image: radial-gradient(circle at 52% 48%, #000 0%, transparent 72%);
  opacity: 0.54;
  transform: rotate(-8deg) skewX(-8deg);
}

.motion-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: glowDrift 8.5s ease-in-out infinite;
}

.glow-one {
  width: 30vw;
  height: 30vw;
  right: 25vw;
  top: 8vh;
  background: rgba(255, 255, 255, 0.2);
}

.glow-two {
  width: 32vw;
  height: 32vw;
  right: 6vw;
  bottom: 4vh;
  background: rgba(74, 144, 226, 0.64);
  animation-delay: 1.4s;
}

.glow-three {
  width: 22vw;
  height: 22vw;
  left: 42vw;
  top: 54vh;
  background: rgba(74, 144, 226, 0.28);
  animation-delay: 2.2s;
}

.screen-cloud {
  position: absolute;
  top: 10vh;
  right: -5vw;
  width: min(1040px, 68vw);
  height: 76vh;
  min-height: 620px;
  perspective: 1500px;
  animation: cloudFloat 6.8s ease-in-out infinite;
}

.float-screen {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(14, 29, 56, 0.82);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 8px 34px rgba(74, 144, 226, 0.18);
  color: #f7f7fb;
  transform-style: preserve-3d;
  backdrop-filter: blur(12px);
}

.screen-main {
  z-index: 8;
  width: 520px;
  height: 332px;
  right: 210px;
  top: 160px;
  transform: rotateX(8deg) rotateY(-18deg) rotateZ(2deg);
  animation: screenEnterMain 6.8s ease-in-out infinite;
}

.screen-dashboard {
  z-index: 7;
  width: 286px;
  height: 206px;
  right: 600px;
  top: 82px;
  transform: rotateX(8deg) rotateY(-23deg) rotateZ(-5deg);
  animation: screenEnterLeft 6.8s ease-in-out infinite;
}

.screen-list {
  z-index: 6;
  width: 292px;
  height: 232px;
  right: 62px;
  top: 80px;
  transform: rotateX(8deg) rotateY(22deg) rotateZ(5deg);
  animation: screenEnterRight 6.8s ease-in-out infinite;
}

.screen-kanban {
  z-index: 5;
  width: 286px;
  height: 186px;
  right: 54px;
  top: 390px;
  transform: rotateX(7deg) rotateY(22deg) rotateZ(-7deg);
  animation: screenEnterBottom 6.8s ease-in-out infinite;
}

.screen-finance {
  z-index: 5;
  width: 260px;
  height: 178px;
  right: 520px;
  top: 402px;
  transform: rotateX(10deg) rotateY(-24deg) rotateZ(6deg);
  animation: screenEnterLeft 6.8s ease-in-out infinite reverse;
}

.screen-blur {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(2.5px);
  opacity: 0.72;
}

.screen-blur span {
  display: block;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
}

.screen-left {
  z-index: 2;
  width: 320px;
  height: 224px;
  right: 720px;
  top: 266px;
  transform: rotateX(12deg) rotateY(-34deg) rotateZ(8deg);
  animation: screenEnterFar 6.8s ease-in-out infinite;
}

.screen-right {
  z-index: 2;
  width: 308px;
  height: 198px;
  right: -88px;
  top: 278px;
  transform: rotateX(9deg) rotateY(34deg) rotateZ(8deg);
  animation: screenEnterFar 6.8s ease-in-out infinite reverse;
}

.screen-bottom {
  z-index: 1;
  width: 430px;
  height: 154px;
  right: 286px;
  bottom: -24px;
  transform: rotateX(26deg) rotateY(-8deg) rotateZ(-5deg);
  filter: blur(4px);
  opacity: 0.58;
  animation: screenEnterBottom 6.8s ease-in-out infinite reverse;
}

.screen-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 12px;
}

.screen-toolbar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.screen-toolbar strong {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
}

.screen-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
}

.screen-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 12px;
}

.screen-sidebar i,
.screen-sidebar b {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.screen-sidebar i {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4a90e2, #7fb4ef);
}

.screen-sidebar b {
  width: 100%;
  height: 8px;
}

.screen-sidebar b:nth-child(4) {
  width: 72%;
}

.screen-content {
  display: grid;
  gap: 12px;
}

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

.screen-header-row span {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.screen-header-row strong {
  color: var(--brand);
  font-size: 22px;
  font-weight: 950;
}

.screen-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.screen-metrics span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
}

.screen-metrics b {
  color: #fff;
  font-size: 15px;
}

.screen-metrics small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 800;
}

.screen-timeline {
  display: grid;
  gap: 9px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 68px repeat(4, 1fr);
  gap: 8px;
  align-items: center;
}

.timeline-row i,
.timeline-row b,
.timeline-row em,
.timeline-row strong {
  display: block;
  height: 18px;
  border-radius: 6px;
}

.timeline-row i {
  height: auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.timeline-row b {
  background: rgba(24, 184, 150, 0.34);
}

.timeline-row em {
  background: rgba(74, 144, 226, 0.5);
}

.timeline-row strong {
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-mini {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 20px;
}

.donut {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(#10b69d 0 68%, #4a90e2 68% 86%, #e8ebf3 86%);
  position: relative;
}

.donut::after {
  position: absolute;
  inset: 15px;
  content: "";
  border-radius: inherit;
  background: #0e1d38;
}

.dashboard-mini strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 10px;
}

.dashboard-mini b {
  position: relative;
  display: block;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin: 10px 0;
  overflow: hidden;
}

.dashboard-mini b::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 70%);
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, #4a90e2, #7fb4ef);
}

.screen-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

.screen-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 44px;
  gap: 9px;
  align-items: center;
  min-height: 34px;
}

.screen-list span,
.screen-list b,
.screen-list em {
  display: block;
  border-radius: 999px;
}

.screen-list span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(74, 144, 226, 0.22);
  color: #bcd8f7;
  font-size: 10px;
  font-weight: 950;
}

.screen-list b {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-list em {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  background: rgba(24, 184, 150, 0.18);
  color: #8ff0df;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.kanban-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.kanban-mini span {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 104px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 10px;
}

.kanban-mini i {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
}

.kanban-mini b {
  display: block;
  height: 24px;
  border-radius: 7px;
  background: rgba(74, 144, 226, 0.42);
}

.kanban-mini b:last-child {
  background: rgba(24, 184, 150, 0.28);
}

.purchase-mini {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.purchase-mini span {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 10px;
  align-items: center;
}

.purchase-mini b,
.purchase-mini i {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.purchase-mini i {
  background: rgba(74, 144, 226, 0.46);
}

.motion-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(74, 144, 226, 0.26) 48%, transparent 64%);
  transform: translateX(-100%);
  animation: sheenSweep 6.8s ease-in-out infinite;
  opacity: 0.62;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  animation: rotateOrbit 18s linear infinite;
}

.orbit-one {
  width: 660px;
  height: 660px;
  right: -130px;
  top: 120px;
}

.orbit-two {
  width: 420px;
  height: 420px;
  right: 150px;
  top: 250px;
  animation-duration: 12s;
  animation-direction: reverse;
}

.signal-line {
  position: absolute;
  height: 2px;
  width: 38vw;
  background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.85), transparent);
  transform-origin: left center;
  animation: pulseLine 4s ease-in-out infinite;
}

.line-one {
  right: 150px;
  top: 34%;
  transform: rotate(-18deg);
}

.line-two {
  right: 20px;
  bottom: 24%;
  animation-delay: 1.2s;
  transform: rotate(14deg);
}

.product-console {
  position: absolute;
  right: clamp(-160px, 2vw, 80px);
  top: 22%;
  width: min(620px, 52vw);
  min-height: 410px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(24px);
  transform: perspective(1000px) rotateY(-12deg) rotateX(5deg);
  animation: consoleFloat 7s ease-in-out infinite;
}

.console-top {
  display: flex;
  gap: 7px;
  padding: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.console-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 12px;
  padding: 14px;
}

.console-panel {
  min-height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(7, 18, 41, 0.62);
  padding: 16px;
}

.console-panel.wide {
  grid-column: 1 / -1;
}

.console-panel.red {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.94), rgba(0, 35, 102, 0.86));
}

.console-panel.tall {
  min-height: 176px;
}

.console-panel strong {
  display: block;
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.console-panel small,
.console-panel li {
  color: rgba(255, 255, 255, 0.7);
}

.console-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 17px;
}

.console-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 12px;
}

.console-progress span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: #fff;
  animation: loadBar 2.6s ease-out both;
}

.landing-band,
.modules-section,
.why-section,
.essence-section,
.founder-section {
  padding: 88px clamp(22px, 6vw, 82px);
}

.landing-band {
  background: #fff;
  color: var(--ink);
}

.modules-section {
  background: #0b1830;
  color: #fff;
}

.services-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(74, 144, 226, 0.24), transparent 26%),
    #0b1830;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 30px;
}

.section-heading span,
.founder-label {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-heading h2,
.founder-section h2 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 950;
  line-height: 1;
}

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

.value-grid article,
.module-rail article {
  min-height: 220px;
  border-radius: 8px;
  padding: 22px;
}

.value-grid article {
  border: 1px solid var(--line);
  background: #fbfbfe;
}

.value-grid article span {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 26px;
}

.value-grid h3,
.module-rail strong {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
}

.value-grid p,
.module-rail p,
.founder-section p {
  color: var(--muted);
  line-height: 1.6;
}

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

.module-rail article {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
}

.module-rail article.active {
  background: var(--brand);
  border-color: var(--brand);
}

.module-rail p {
  color: rgba(255, 255, 255, 0.68);
}

.module-rail article.active p {
  color: rgba(255, 255, 255, 0.84);
}

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

.service-grid article {
  min-height: 255px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.service-grid article.active {
  background: var(--brand);
  border-color: var(--brand);
}

.service-grid strong,
.method-grid strong,
.essence-grid strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.service-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 17px;
}

.service-grid li {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.4;
}

.service-grid article.active li {
  color: rgba(255, 255, 255, 0.88);
}

.methodology-section {
  background:
    linear-gradient(135deg, rgba(74, 144, 226, 0.06), transparent 34%),
    #fff;
}

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

.method-grid article {
  position: relative;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfe;
  padding: 20px;
}

.method-grid article::before {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  content: counter(method);
  counter-increment: method;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 24px;
}

.method-grid {
  counter-reset: method;
}

.method-grid p,
.essence-grid p,
.brand-concept p {
  color: var(--muted);
  line-height: 1.6;
}

.why-section {
  background: #f3f4f8;
  color: var(--ink);
}

.why-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1180px;
}

.why-list span,
.values-list span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #343748;
  font-size: 13px;
  font-weight: 850;
  padding: 0 14px;
}

.essence-section {
  background: #fff;
  color: var(--ink);
}

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

.essence-grid article,
.brand-concept {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfe;
  padding: 22px;
}

.brand-concept {
  display: grid;
  gap: 12px;
}

.brand-concept h3 {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.founder-section {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: end;
  gap: 34px;
  overflow: hidden;
  background: #071229;
  color: #fff;
  isolation: isolate;
}

.founder-authority::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.98) 0%, rgba(8, 8, 12, 0.84) 42%, rgba(8, 8, 12, 0.2) 76%, rgba(8, 8, 12, 0.48) 100%),
    linear-gradient(0deg, rgba(8, 8, 12, 0.94), rgba(8, 8, 12, 0.02) 52%, rgba(8, 8, 12, 0.88)),
    url("./assets/danielle-lacerda.jpg");
  background-position: center, center, right 28% center;
  background-size: cover, cover, min(58vw, 820px);
  background-repeat: no-repeat;
  filter: saturate(0.95) contrast(1.05);
}

.founder-authority::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 22% 72%, rgba(74, 144, 226, 0.36), transparent 30%),
    linear-gradient(135deg, rgba(74, 144, 226, 0.2), transparent 42%);
}

.founder-content {
  max-width: 920px;
}

.founder-section h2 {
  max-width: 900px;
  color: #fff;
}

.founder-section p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.65;
}

.authority-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.authority-metrics article {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  padding: 16px;
}

.authority-metrics strong {
  display: block;
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.authority-metrics span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.authority-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(22px);
  padding: 24px;
}

.authority-card span {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.authority-card h3 {
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.authority-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.founder-link {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  padding: 0 18px;
  box-shadow: 0 16px 34px rgba(74, 144, 226, 0.28);
}

@keyframes rotateOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseLine {
  0%,
  100% {
    opacity: 0.15;
    scale: 0.72 1;
  }
  50% {
    opacity: 1;
    scale: 1 1;
  }
}

@keyframes consoleFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}

@keyframes loadBar {
  from {
    width: 0;
  }
}

@keyframes glowDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-20px, 18px, 0) scale(1.12);
  }
}

@keyframes cloudFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes screenEnterMain {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateX(8deg) rotateY(-16deg) rotateZ(2deg);
  }
  50% {
    transform: translate3d(-18px, -14px, 40px) rotateX(6deg) rotateY(-12deg) rotateZ(1deg);
  }
}

@keyframes screenEnterLeft {
  0%,
  100% {
    transform: translate3d(0, 0, -40px) rotateX(8deg) rotateY(-20deg) rotateZ(-4deg);
  }
  50% {
    transform: translate3d(34px, -22px, 10px) rotateX(6deg) rotateY(-15deg) rotateZ(-2deg);
  }
}

@keyframes screenEnterRight {
  0%,
  100% {
    transform: translate3d(0, 0, -10px) rotateX(8deg) rotateY(18deg) rotateZ(4deg);
  }
  50% {
    transform: translate3d(-26px, 18px, 24px) rotateX(6deg) rotateY(13deg) rotateZ(2deg);
  }
}

@keyframes screenEnterBottom {
  0%,
  100% {
    transform: translate3d(0, 0, -30px) rotateX(12deg) rotateY(18deg) rotateZ(-8deg);
  }
  50% {
    transform: translate3d(-14px, -20px, 16px) rotateX(9deg) rotateY(14deg) rotateZ(-5deg);
  }
}

@keyframes screenEnterFar {
  0%,
  100% {
    transform: translate3d(0, 0, -130px) rotateX(10deg) rotateY(-28deg) rotateZ(8deg);
  }
  50% {
    transform: translate3d(26px, -10px, -80px) rotateX(8deg) rotateY(-22deg) rotateZ(6deg);
  }
}

@keyframes sheenSweep {
  0%,
  18% {
    transform: translateX(-100%);
  }
  52%,
  100% {
    transform: translateX(110%);
  }
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(74, 144, 226, 0.08), transparent 42%),
    var(--page);
}

.login-shell {
  display: grid;
  width: min(420px, 100%);
  justify-items: center;
  gap: 22px;
}

.login-card {
  position: relative;
  display: grid;
  width: min(420px, 100%);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(32, 33, 47, 0.12);
  padding: 24px;
}

.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.login-brand {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.login-product-brand {
  display: grid;
  width: 100%;
  justify-items: center;
  padding-inline: 42px;
  text-align: center;
}

.login-product-brand .brand-platform-lockup,
.login-product-brand .brand-logo-crop {
  justify-items: center;
  margin-inline: auto;
}

.login-developed {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.login-developed span {
  color: #7d8796;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-developed img {
  width: 150px;
  height: auto;
}

.login-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-card .primary-button {
  width: 100%;
}

.login-card small {
  color: var(--muted);
}

.login-alert {
  border: 1px solid #f0b7ba;
  border-radius: 8px;
  background: var(--soft-red);
  color: #9a3427;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}

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

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

.sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid rgba(217, 222, 231, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup {
  display: block;
  width: 176px;
  max-width: 100%;
  height: auto;
}

.landing-brand-lockup {
  width: 188px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}

.app-brand-lockup {
  width: 174px;
}

.product-brand {
  min-height: 58px;
  padding: 2px 8px;
}

.product-brand .product-logo {
  display: block;
  width: 196px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.login-product-brand .product-logo {
  width: 220px;
}

.product-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  background: #e4262f;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(228, 38, 47, 0.24);
}

.product-brand-copy strong,
.product-brand-copy small {
  display: block;
}

.product-brand-copy strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.05;
}

.product-brand-copy small {
  margin-top: 5px;
  color: #6a7382;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.login-brand .brand-lockup {
  width: 190px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-section-label {
  margin: 14px 14px 2px;
  color: #8a93a1;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #556070;
  cursor: pointer;
  text-align: left;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 760;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: #eef5ff;
  color: var(--brand-strong);
  outline: none;
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, #1158df, #4a90e2);
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 88, 223, 0.25);
  font-weight: 900;
}

.module-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.module-nav small {
  border-radius: 999px;
  background: #f1f4f8;
  color: #7a8493;
  font-size: 9px;
  font-weight: 900;
  padding: 4px 7px;
  white-space: nowrap;
}

.module-nav[data-module-access="active"] small {
  background: #e7f8f2;
  color: #0d7e61;
}

.module-nav[data-module-access="requested"] small {
  background: #fff3d8;
  color: #936300;
}

.module-nav[data-module-access="suspended"] small {
  background: #ffe8e8;
  color: #ad3535;
}

.module-nav.active small {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sidebar-profile {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1.35fr);
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  min-height: 186px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 78% 28%, rgba(114, 177, 255, 0.42), transparent 32%),
    linear-gradient(135deg, #0b4fd7 0%, #1768e8 48%, #4a90e2 100%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 24px 54px rgba(0, 35, 102, 0.16);
  color: #fff;
  overflow: visible;
  backdrop-filter: blur(18px);
}

.topbar::before {
  position: absolute;
  inset: 14px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
}

.topbar-copy {
  align-self: center;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 8px;
}

.topbar-kicker {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 850;
  padding: 0 12px;
  text-transform: capitalize;
}

.topbar h1 {
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  margin: 0;
}

.topbar-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 24px;
  letter-spacing: 0;
}

h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.top-actions {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-content: start;
  align-items: center;
  gap: 12px;
}

.quick-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.quick-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  padding: 0 16px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.quick-action:hover,
.quick-action:focus-visible,
.quick-action.active {
  background: #fff;
  color: var(--brand-strong);
  outline: none;
  transform: translateY(-1px);
}

.profile-control {
  position: relative;
}

.profile-toggle {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(74, 144, 226, 0.14);
  border-radius: 999px;
  background: #f7fbff;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 16px 6px 6px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 35, 102, 0.06);
}

.profile-toggle strong,
.profile-toggle small {
  display: block;
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-toggle strong {
  color: var(--ink);
  font-size: 14px;
}

.profile-toggle small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.profile-avatar {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    #0d4ec9;
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.hero-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-width: 3px;
  box-shadow: 0 18px 38px rgba(0, 35, 102, 0.24);
  font-size: 16px;
}

.profile-avatar.large {
  width: 62px;
  height: 62px;
  border-color: rgba(74, 144, 226, 0.22);
  color: var(--brand-strong);
  background-color: #eef5ff;
}

.profile-menu {
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 12px);
  z-index: 20;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 14px;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 68px rgba(0, 35, 102, 0.2);
  color: var(--ink);
  padding: 16px;
}

.profile-menu-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.profile-menu-head strong,
.profile-menu-head small,
.profile-menu label span {
  display: block;
}

.profile-menu-head small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.profile-menu label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.profile-menu input[type="file"] {
  display: grid;
  align-items: center;
  padding-top: 9px;
}

.profile-menu-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.profile-menu-actions .ghost-button,
.profile-menu-actions .primary-button {
  flex: 1;
}

.sidebar-logout {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(224, 56, 63, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #9a3427;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 35, 102, 0.04);
}

.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  background: var(--soft-red);
  outline: none;
}

.search-box {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

textarea {
  min-height: 96px;
  border-radius: 18px;
  padding: 12px 14px;
  resize: vertical;
}

.search-box input {
  min-width: 0;
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(74, 144, 226, 0.14);
}

.ghost-button,
.primary-button,
.icon-button {
  min-height: 42px;
  border-radius: 999px;
  cursor: pointer;
}

.ghost-button {
  border: 1px solid rgba(74, 144, 226, 0.16);
  background: #fff;
  color: var(--brand-strong);
  padding: 0 16px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(0, 35, 102, 0.07);
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, #1158df, #4a90e2);
  color: #fff;
  font-weight: 900;
  padding: 0 18px;
  box-shadow: 0 14px 28px rgba(17, 88, 223, 0.24);
}

.icon-button {
  width: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.content {
  padding: 20px 4px 38px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.two-col {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

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

.panel {
  background: var(--panel);
  border: 1px solid rgba(217, 222, 231, 0.78);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel.tight {
  padding: 0;
  overflow: hidden;
}

.kpi {
  min-height: 112px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.kpi span,
.small-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
  letter-spacing: 0;
}

.kpi small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4edf7;
}

.bar > span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.stacked-bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4edf7;
}

.stacked-bar span {
  display: block;
  width: var(--value, 0%);
}

.done {
  background: var(--teal);
}

.progress {
  background: var(--amber);
}

.pending {
  background: var(--red);
}

.unit-list,
.task-list,
.blocker-list {
  display: grid;
  gap: 10px;
}

.unit-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(217, 222, 231, 0.82);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 35, 102, 0.05);
}

.unit-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.unit-card button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
  text-align: left;
}

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

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.done {
  background: var(--soft-green);
  color: #087467;
}

.badge.progress {
  background: var(--soft-amber);
  color: #8a5a0a;
}

.badge.pending {
  background: var(--soft-red);
  color: #9a3427;
}

.badge.critical {
  background: #202430;
  color: #fff;
}

.badge.info {
  background: var(--soft-purple);
  color: var(--brand-strong);
}

.badge.review {
  background: #eef5ff;
  color: #1c5faa;
}

.badge.negotiation {
  background: #fff3d8;
  color: #98630d;
}

.badge.rejected {
  background: #ffe9ec;
  color: #b4233a;
}

.badge.empty-status {
  background: #eef1f4;
  color: #5a6472;
}

.risk-high {
  color: var(--red);
  font-weight: 800;
}

.risk-medium {
  color: #9a640a;
  font-weight: 800;
}

.risk-low {
  color: var(--teal);
  font-weight: 800;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.toolbar-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 222, 231, 0.8);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 14px;
}

.dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.dashboard-toolbar strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-top: 3px;
}

.implantation-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: end;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 12%, rgba(74, 144, 226, 0.36), transparent 28%),
    linear-gradient(135deg, #002366, #30363f);
  color: #fff;
  box-shadow: 0 20px 48px rgba(0, 35, 102, 0.16);
  margin-bottom: 18px;
  padding: 26px;
}

.implantation-hero-panel .small-label {
  color: rgba(255, 255, 255, 0.68);
}

.implantation-hero-panel h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.98;
  margin: 8px 0 12px;
}

.implantation-hero-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.55;
}

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

.status-overview {
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 13px;
}

.status-overview strong {
  display: block;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.status-overview span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
  margin-top: 8px;
}

.status-overview.green {
  background: rgba(15, 159, 143, 0.18);
}

.status-overview.yellow {
  background: rgba(240, 168, 58, 0.18);
}

.status-overview.orange {
  background: rgba(229, 108, 47, 0.2);
}

.status-overview.red {
  background: rgba(224, 56, 63, 0.2);
}

.dashboard-toolbar label {
  display: grid;
  gap: 6px;
}

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 0 11px;
}

.view-tab:hover,
.view-tab:focus-visible {
  border-color: rgba(74, 144, 226, 0.24);
  background: #f5f9ff;
  color: var(--brand-strong);
  outline: none;
}

.view-tab.active {
  border-color: var(--line);
  background: var(--soft-purple);
  color: var(--brand-strong);
}

.unit-accordion {
  display: grid;
  gap: 10px;
}

.implantation-board {
  margin-top: 16px;
}

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

.panel-heading-row h2 {
  margin: 3px 0 0;
}

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

.unit-workspace {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(217, 222, 231, 0.82);
  border-radius: 22px;
  background: #fff;
  padding: 14px;
}

.unit-workspace.expanded {
  border-color: #bcd0ef;
  box-shadow: 0 12px 26px rgba(74, 144, 226, 0.08);
}

.franchise-card {
  gap: 12px;
  padding: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, translate 0.2s ease;
}

.franchise-card:hover {
  border-color: #bcd0ef;
  box-shadow: 0 14px 30px rgba(0, 35, 102, 0.1);
  translate: 0 -1px;
}

.franchise-card.expanded {
  grid-column: 1 / -1;
  translate: none;
}

.unit-focus-toolbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.unit-focus-toolbar label {
  display: grid;
  gap: 6px;
}

.unit-focus-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: end;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 18%, rgba(74, 144, 226, 0.34), transparent 28%),
    linear-gradient(135deg, #002366, #30363f);
  color: #fff;
  box-shadow: 0 20px 48px rgba(0, 35, 102, 0.16);
  margin-bottom: 18px;
  padding: 26px;
}

.unit-focus-hero .small-label,
.unit-focus-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.unit-focus-hero h2 {
  color: #fff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  margin: 8px 0 10px;
}

.unit-focus-progress {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.unit-focus-progress strong {
  color: #fff;
  font-size: 52px;
  line-height: 0.9;
}

.unit-focus-progress span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.unit-focus-progress .stacked-bar {
  background: rgba(255, 255, 255, 0.16);
}

.unit-focus-kpis {
  margin-bottom: 16px;
}

.unit-focus-workspace {
  min-height: 68vh;
}

.unit-focus-workspace .unit-detail {
  padding-top: 0;
}

.record-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(217, 222, 231, 0.82);
  border-radius: 22px;
  background: #fbfcff;
  margin-bottom: 14px;
  padding: 14px;
}

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

.record-form-head h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 16px;
}

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

.record-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.record-form-grid .span-2 {
  grid-column: span 2;
}

.record-form-actions {
  display: flex;
  justify-content: flex-end;
}

.pendency-resolved {
  opacity: 0.68;
}

.pendency-resolved .row-title {
  text-decoration: line-through;
}

.pendency-status-select {
  min-width: 156px;
  border: 0;
  font-size: 12px;
  font-weight: 900;
}

.pendency-note-input {
  min-width: 280px;
  min-height: 58px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.35;
  padding: 9px 11px;
  text-transform: none;
}

.pendency-save-bar {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  border: 1px solid rgba(74, 144, 226, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(0, 35, 102, 0.12);
  margin-top: 14px;
  padding: 10px;
  backdrop-filter: blur(14px);
}

.pendency-save-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.franchise-meta-grid span,
.summary-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(217, 222, 231, 0.82);
  border-radius: 18px;
  background: #fbfcff;
  padding: 10px;
}

.franchise-card .franchise-meta-grid > span {
  min-height: 82px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.franchise-meta-grid small,
.summary-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.franchise-meta-grid strong,
.summary-card strong {
  color: var(--ink);
  font-size: 13px;
}

.franchise-card .franchise-meta-grid strong {
  overflow: visible;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.unit-workspace-head {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.franchise-card .unit-workspace-head {
  min-height: 76px;
  align-items: flex-start;
}

.unit-workspace-head span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.unit-workspace-head strong {
  font-size: 15px;
}

.unit-workspace-head small {
  color: var(--muted);
  font-size: 12px;
}

.unit-head-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.franchise-card .unit-head-metrics {
  display: grid;
  grid-template-columns: auto auto;
  flex: 0 0 auto;
  justify-items: end;
  max-width: 148px;
}

.franchise-card .unit-head-metrics .chevron {
  grid-column: 2;
}

.franchise-card > .badge-row {
  justify-content: center;
  align-items: center;
}

.unit-percent {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--brand));
  color: #fff;
  font-size: 18px;
  padding: 0 10px;
}

.chevron {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #f1f3f8;
  color: var(--ink);
  font-weight: 900;
}

.open-folder-button {
  min-height: 44px;
  border: 1px solid #c9d8f0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5f9ff, #e9f1fc);
  color: var(--brand-strong);
  cursor: pointer;
  font-weight: 950;
}

.open-folder-button:hover,
.open-folder-button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.delete-unit-button,
.danger-action {
  min-height: 40px;
  border: 1px solid #ffd6d6;
  border-radius: 999px;
  background: #fff8f8;
  color: #b42318;
  cursor: pointer;
  font-weight: 950;
  padding: 0 16px;
}

.delete-unit-button:hover,
.delete-unit-button:focus-visible,
.danger-action:hover,
.danger-action:focus-visible {
  border-color: #ffb8b8;
  background: #fff1f1;
  outline: none;
}

.unit-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 8px;
}

.unit-tabbar {
  display: grid;
  grid-template-columns: repeat(8, minmax(118px, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.unit-tabbar button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
  white-space: nowrap;
}

.unit-tabbar button.active {
  border-color: #bcd0ef;
  background: var(--soft-blue);
  color: var(--brand-strong);
}

.detail-section {
  display: grid;
  align-content: start;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-section.wide {
  grid-column: 1 / -1;
}

.unit-tab-panel {
  border: 0;
  padding-top: 0;
}

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

.compact-kpis {
  margin-top: 12px;
}

.schedule-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 16px;
}

.schedule-hero span,
.schedule-hero small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.schedule-hero strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  margin: 6px 0;
}

.schedule-ring {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(var(--schedule-color, var(--brand)) var(--value), #e8edf6 0);
}

.schedule-ring strong {
  margin: 0;
}

.schedule-ring span {
  margin-top: -28px;
}

.schedule-green {
  --schedule-color: var(--teal);
}

.schedule-yellow {
  --schedule-color: var(--amber);
}

.schedule-orange {
  --schedule-color: #e56c2f;
}

.schedule-red {
  --schedule-color: var(--red);
}

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

.alert-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.alert-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #f3d2d4;
  border-radius: 8px;
  background: var(--soft-red);
  padding: 10px 12px;
}

.alert-list strong {
  color: #9a3427;
  font-size: 12px;
  text-transform: uppercase;
}

.alert-list span {
  color: #63302d;
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.pendency-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pendency-filters span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

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

.compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
}

.compact-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-table {
  min-width: 720px;
}

.pending-chart {
  display: grid;
  gap: 9px;
}

.chart-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 34px 42px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 35px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 6px;
  text-align: left;
}

.chart-row:hover,
.chart-row:focus-visible {
  background: #fbfbff;
  outline: none;
}

.chart-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.chart-row strong {
  color: var(--red);
  text-align: right;
}

.chart-row small {
  color: var(--muted);
  text-align: right;
}

.status-split {
  display: grid;
  gap: 14px;
}

.stacked-bar.tall {
  height: 20px;
  border-radius: 8px;
}

.roadmap-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.kanban-column {
  min-height: 248px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px;
}

.kanban-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kanban-column > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tiny-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.kanban-column.done .tiny-dot {
  background: var(--teal);
}

.kanban-column.progress .tiny-dot {
  background: var(--amber);
}

.kanban-column.pending .tiny-dot {
  background: var(--red);
}

.task-count {
  display: inline-flex;
  min-width: 26px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f3f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.task-chip {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.task-chip:hover,
.task-chip:focus-visible {
  border-color: #cfd4e8;
  box-shadow: 0 8px 20px rgba(32, 33, 47, 0.08);
  outline: none;
}

.task-chip strong {
  font-size: 13px;
  line-height: 1.25;
}

.task-chip span {
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
  font-size: 14px;
}

.workspace-table tbody tr:hover {
  background: #fbfbff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbfcff;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

td select {
  min-width: 148px;
  border: 0;
  font-weight: 800;
  min-height: 30px;
}

select.done {
  background: var(--soft-green);
  color: #087467;
}

select.progress {
  background: var(--soft-amber);
  color: #8a5a0a;
}

select.pending {
  background: var(--soft-red);
  color: #9a3427;
}

select.info {
  background: var(--soft-purple);
  color: var(--brand-strong);
}

select.review {
  background: #eef5ff;
  color: #1c5faa;
}

select.negotiation {
  background: #fff3d8;
  color: #98630d;
}

select.rejected {
  background: #ffe9ec;
  color: #b4233a;
}

select.empty-status {
  background: #eef1f4;
  color: #5a6472;
}

select.done,
select.progress,
select.pending,
select.info,
select.review,
select.negotiation,
select.rejected,
select.empty-status {
  border: 1px solid transparent;
}

select.done:focus {
  border-color: rgba(8, 116, 103, 0.3);
  box-shadow: 0 0 0 4px rgba(8, 116, 103, 0.12);
}

select.progress:focus,
select.negotiation:focus {
  border-color: rgba(152, 99, 13, 0.3);
  box-shadow: 0 0 0 4px rgba(152, 99, 13, 0.12);
}

select.pending:focus,
select.rejected:focus {
  border-color: rgba(180, 35, 58, 0.28);
  box-shadow: 0 0 0 4px rgba(180, 35, 58, 0.1);
}

select.review:focus,
select.info:focus {
  border-color: rgba(47, 124, 226, 0.3);
  box-shadow: 0 0 0 4px rgba(47, 124, 226, 0.12);
}

select.empty-status:focus {
  border-color: rgba(90, 100, 114, 0.24);
  box-shadow: 0 0 0 4px rgba(90, 100, 114, 0.1);
}

.link-button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 0 9px;
}

.link-button:hover,
.link-button:focus-visible {
  background: var(--soft-purple);
  outline: none;
}

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

.link-button.danger:hover,
.link-button.danger:focus-visible {
  background: #fff1f1;
}

.row-title {
  display: block;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.25;
}

.workspace-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.record-source {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

.manual-status-select {
  width: 100%;
  max-width: 180px;
}

.table-input,
.table-textarea {
  width: 100%;
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
}

.table-textarea {
  min-width: 260px;
  min-height: 46px;
  resize: vertical;
}

.table-input:focus,
.table-textarea:focus {
  border-color: rgba(47, 124, 226, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 124, 226, 0.12);
  outline: none;
}

.schedule-notes {
  min-width: 300px;
}

.attachment-control {
  display: grid;
  gap: 7px;
  min-width: 210px;
}

.attachment-picker {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  text-transform: none;
}

.attachment-picker:hover,
.attachment-picker:focus-within {
  border-color: var(--blue);
  color: var(--blue);
}

.attachment-picker.is-loading {
  cursor: wait;
  opacity: 0.7;
}

.attachment-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.attachment-picker span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-control.has-file .attachment-picker {
  border-style: solid;
  background: rgba(31, 166, 116, 0.07);
  color: var(--ink);
}

.attachment-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.icon-text-button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  padding: 5px 9px;
}

.icon-text-button:hover {
  border-color: var(--blue);
}

.icon-text-button.danger {
  color: var(--red);
}

.icon-text-button[hidden] {
  display: none;
}

.nowrap {
  white-space: nowrap;
}

.empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.phase-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.phase-row > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.heatmap {
  min-width: 980px;
}

.heat-cell {
  display: inline-flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #17302d;
  font-size: 11px;
  font-weight: 900;
}

.heat-closed {
  background: #b8e4cf;
}

.heat-mixed {
  background: #d8e4a5;
}

.heat-negotiation {
  background: #ffd891;
}

.heat-empty {
  background: #edf1ee;
  color: #8b9994;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

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

.mini-chart {
  display: grid;
  gap: 11px;
}

.mini-chart-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.mini-chart-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-page-head,
.admin-hero,
.module-active-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 24px 26px;
  border: 1px solid rgba(217, 222, 231, 0.82);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 35, 102, 0.07);
}

.permission-banner {
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid #d9e5f7;
  border-radius: 14px;
  background: #f3f7fd;
  color: #31547f;
  font-size: 12px;
  font-weight: 800;
}

.module-page-head h2,
.admin-hero h2,
.module-active-hero h3 {
  margin: 4px 0 6px;
  font-size: 28px;
}

.module-page-head p,
.admin-hero p,
.module-active-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.tenant-context-select {
  display: grid;
  min-width: 280px;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.module-lock-panel {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 42px;
  border: 1px solid rgba(217, 222, 231, 0.82);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(248, 250, 253, 0.96), rgba(255, 255, 255, 0.98)),
    #fff;
  text-align: center;
  box-shadow: 0 20px 48px rgba(0, 35, 102, 0.07);
}

.module-lock-panel h3 {
  max-width: 650px;
  margin: 2px 0 0;
  font-size: 26px;
}

.module-lock-panel p {
  max-width: 620px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.65;
}

.module-lock-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 18px;
  background: #172033;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
}

.module-lock-panel.requested .module-lock-icon {
  background: #d89216;
}

.module-lock-panel.suspended .module-lock-icon {
  background: #bd343c;
}

.module-status-pill,
.admin-scope-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: #edf1f6;
  color: #5f6978;
  font-size: 11px;
  font-weight: 900;
  padding: 0 11px;
  text-transform: uppercase;
}

.module-status-pill.active {
  background: #e4f8f0;
  color: #08775b;
}

.module-status-pill.requested {
  background: #fff3d8;
  color: #8a5c00;
}

.module-status-pill.suspended {
  background: #ffe8e8;
  color: #a12d35;
}

.module-active-hero {
  border-color: rgba(19, 153, 116, 0.2);
  background: linear-gradient(135deg, #f4fcf9, #fff);
}

.module-active-hero .primary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.52;
}

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

.module-metric-grid article {
  display: grid;
  min-height: 142px;
  align-content: center;
  gap: 7px;
  padding: 20px;
  border: 1px solid rgba(217, 222, 231, 0.82);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 35, 102, 0.06);
}

.module-metric-grid article:nth-child(2) {
  border-top: 3px solid #14a985;
}

.module-metric-grid article:nth-child(3) {
  border-top: 3px solid #f2a32b;
}

.module-metric-grid article:nth-child(4) {
  border-top: 3px solid #e64a52;
}

.module-metric-grid span,
.module-metric-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.module-metric-grid strong {
  color: var(--ink);
  font-size: 29px;
}

.module-workflow-panel {
  padding: 24px;
}

.module-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.module-workflow article {
  display: grid;
  min-height: 122px;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #f6f8fb;
}

.module-workflow article span {
  color: #2d6dd8;
  font-size: 12px;
  font-weight: 950;
}

.module-workflow article small {
  color: var(--muted);
  line-height: 1.4;
}

.admin-hero {
  background: linear-gradient(135deg, #14213a 0%, #233b65 58%, #314d76 100%);
  color: #fff;
}

.admin-hero .eyebrow,
.admin-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.admin-hero h2 {
  color: #fff;
}

.admin-scope-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-section {
  margin-bottom: 16px;
  padding: 24px;
}

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

.section-title-row h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.admin-module-table td:first-child strong,
.admin-module-table td:first-child small {
  display: block;
}

.admin-module-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
}

.module-status-select {
  min-width: 132px;
  border-color: transparent;
  font-weight: 850;
}

.module-status-select.active {
  background: #e7f8f2;
  color: #08775b;
}

.module-status-select.requested {
  background: #fff3d8;
  color: #8a5c00;
}

.module-status-select.suspended {
  background: #ffe8e8;
  color: #a12d35;
}

.module-status-select.locked {
  background: #edf1f6;
  color: #5f6978;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  gap: 16px;
  align-items: start;
}

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

.admin-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.admin-user-list,
.admin-request-list {
  display: grid;
  gap: 10px;
}

.admin-user-list article,
.admin-request-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}

.admin-user-copy,
.admin-request-list article > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-user-copy > span,
.admin-request-list article span {
  color: var(--muted);
  font-size: 12px;
}

.admin-access-controls {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) 120px 126px auto;
  gap: 8px;
  min-width: min(100%, 460px);
}

@media (max-width: 1320px) {
  .franchise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .landing-nav {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 210px;
  }

  .hero-motion {
    position: relative;
    overflow: visible;
    order: 2;
    min-height: 430px;
    margin-top: 34px;
  }

  .landing-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .screen-cloud {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 430px;
    min-height: 0;
    transform: scale(0.72);
    transform-origin: top center;
  }

  .screen-main {
    right: 50%;
    top: 120px;
    width: 370px;
    height: 240px;
    margin-right: -185px;
  }

  .screen-dashboard {
    right: 50%;
    top: 30px;
    width: 220px;
    height: 160px;
    margin-right: 20px;
  }

  .screen-list {
    right: 50%;
    top: 52px;
    width: 220px;
    height: 178px;
    margin-right: -260px;
  }

  .screen-kanban,
  .screen-finance,
  .screen-left,
  .screen-right,
  .screen-bottom {
    display: none;
  }

  .value-grid,
  .module-rail,
  .service-grid,
  .method-grid,
  .essence-grid,
  .authority-metrics,
  .founder-section {
    grid-template-columns: 1fr;
  }

  .founder-section {
    min-height: auto;
  }

  .founder-authority::before {
    background:
      linear-gradient(180deg, rgba(8, 8, 12, 0.68) 0%, rgba(8, 8, 12, 0.84) 46%, rgba(8, 8, 12, 0.98) 100%),
      url("./assets/danielle-lacerda.jpg");
    background-position: center, center top;
    background-size: cover, 100%;
    background-repeat: no-repeat;
  }

  .module-rail article,
  .service-grid article,
  .method-grid article,
  .value-grid article {
    min-height: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .sidebar {
    position: relative;
    height: auto;
    top: auto;
  }

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

  .nav-section-label {
    grid-column: 1 / -1;
  }

  .module-nav {
    min-height: 66px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .module-nav small {
    max-width: 100%;
  }

  .topbar {
    top: auto;
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: var(--radius-lg);
  }

  .top-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

  .unit-tabbar {
    grid-template-columns: 1fr;
  }

  .profile-toggle {
    width: 100%;
  }

  .profile-menu {
    left: 0;
    right: auto;
    width: min(100%, 360px);
  }

  .search-box input {
    min-width: 0;
  }

  .kpi-grid,
  .module-metric-grid,
  .module-workflow,
  .admin-grid,
  .two-col,
  .three-col,
  .implantation-hero-panel,
  .unit-focus-toolbar,
  .unit-focus-hero,
  .status-overview-grid,
  .franchise-grid,
  .dashboard-toolbar,
  .record-form-grid,
  .unit-detail,
  .franchise-meta-grid,
  .unit-summary-grid,
  .phase-grid,
  .roadmap-board,
  .filters,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .module-page-head,
  .admin-hero,
  .module-active-hero,
  .section-title-row,
  .admin-user-list article,
  .admin-request-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .tenant-context-select,
  .admin-access-controls {
    width: 100%;
    min-width: 0;
  }

  .admin-access-controls {
    grid-template-columns: 1fr;
  }

  .record-form-grid .span-2 {
    grid-column: auto;
  }

  .schedule-hero,
  .alert-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .alert-list span {
    text-align: left;
  }

  .content {
    padding: 16px;
  }

  .roadmap-board {
    gap: 10px;
  }

  .kanban-column {
    min-height: auto;
  }

  .unit-workspace-head,
  .unit-head-metrics {
    align-items: flex-start;
    flex-direction: column;
  }

  .unit-head-metrics {
    align-items: stretch;
    width: 100%;
  }

  .compact-row,
  .chart-row {
    grid-template-columns: 1fr;
  }

  .chart-row strong,
  .chart-row small {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .nav-section-label {
    margin-top: 10px;
  }

  .module-page-head,
  .admin-hero,
  .module-active-hero,
  .admin-section,
  .module-lock-panel {
    padding: 20px;
  }
}

/* 33Doctor product landing */
.landing-screen {
  min-height: 100vh;
  overflow: hidden;
  background: #f7faff;
  color: #172033;
}

.landing-screen .landing-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(28px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid #e4ebf5;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(42, 72, 118, 0.06);
  backdrop-filter: blur(16px);
}

.landing-screen .landing-brand {
  display: inline-flex;
  width: 230px;
  min-width: 180px;
  align-items: center;
}

.landing-screen .landing-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.landing-screen .landing-nav nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-screen .landing-nav a {
  color: #465269;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.landing-screen .landing-nav a:hover,
.landing-screen .landing-nav a:focus-visible {
  color: #1f7fe5;
}

.landing-screen .landing-login-button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #1f83eb;
  color: #fff;
  padding: 0 22px;
  box-shadow: 0 12px 28px rgba(31, 131, 235, 0.24);
}

.landing-screen .landing-hero {
  position: relative;
  display: grid;
  min-height: 820px;
  grid-template-columns: minmax(400px, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 20px;
  padding: 132px max(28px, calc((100vw - 1440px) / 2)) 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(120deg, #edf6ff 0%, #e8f1ff 54%, #dfeaff 100%);
  isolation: isolate;
}

.landing-screen .landing-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: radial-gradient(#9fb8d5 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.22;
  mask-image: linear-gradient(90deg, #000, transparent 42%, transparent 100%);
}

.landing-screen .hero-copy {
  position: relative;
  z-index: 4;
  max-width: 680px;
  padding: 34px 0;
}

.landing-screen .hero-kicker,
.landing-section-heading > span,
.operation-copy > span,
.landing-cta > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  color: #1f7fe5;
  font-size: 12px;
  font-weight: 950;
  padding: 0 13px;
  box-shadow: 0 8px 24px rgba(31, 127, 229, 0.09);
  text-transform: uppercase;
}

.landing-screen .hero-copy h1 {
  max-width: 650px;
  margin: 22px 0 20px;
  color: #111b2f;
  font-size: 66px;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-screen .hero-copy > p:not(.hero-kicker) {
  max-width: 620px;
  margin: 0;
  color: #526077;
  font-size: 18px;
  line-height: 1.65;
}

.landing-screen .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.landing-screen .hero-primary,
.landing-screen .hero-secondary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  padding: 0 24px;
  text-decoration: none;
}

.landing-screen .hero-primary {
  border: 0;
  background: #1f83eb;
  color: #fff;
  box-shadow: 0 16px 32px rgba(31, 131, 235, 0.26);
}

.landing-screen .hero-secondary {
  border: 1px solid #dce6f2;
  background: #fff;
  color: #1d6fbf;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}

.hero-proof span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #69758a;
  font-size: 11px;
  font-weight: 850;
}

.hero-proof strong {
  color: #1f83eb;
  font-size: 11px;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 620px;
}

.hero-visual > img {
  position: absolute;
  inset: 0 -150px 0 -260px;
  width: calc(100% + 410px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
}

.hero-float-card {
  position: absolute;
  z-index: 3;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 54px rgba(42, 72, 118, 0.16);
  backdrop-filter: blur(14px);
}

.hero-float-card span,
.hero-float-card small {
  color: #647188;
  font-size: 11px;
  font-weight: 800;
}

.hero-progress-card {
  right: 4%;
  bottom: 10%;
  width: 224px;
  gap: 8px;
  padding: 18px;
}

.hero-progress-card strong {
  color: #172033;
  font-size: 30px;
}

.hero-progress-card div,
.operation-chart i {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.hero-progress-card i,
.operation-chart b {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f83eb, #54a7f5);
}

.hero-network-card {
  top: 14%;
  left: 4%;
  width: 250px;
  gap: 6px;
  padding: 16px 18px;
}

.hero-network-card strong {
  color: #172033;
  font-size: 16px;
}

.hero-alert-card {
  left: 1%;
  bottom: 24%;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.hero-alert-card > b {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #e52c3c;
  color: #fff;
  font-size: 18px;
}

.hero-alert-card span,
.hero-alert-card strong,
.hero-alert-card small {
  display: block;
}

.hero-alert-card strong {
  color: #253047;
  font-size: 12px;
}

.landing-intro,
.landing-modules,
.landing-operation,
.landing-security,
.landing-cta,
.landing-footer {
  padding-left: max(28px, calc((100vw - 1440px) / 2));
  padding-right: max(28px, calc((100vw - 1440px) / 2));
}

.landing-intro,
.landing-modules {
  padding-top: 104px;
  padding-bottom: 104px;
}

.landing-intro {
  background: #fff;
}

.landing-section-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

.landing-section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.landing-section-heading h2,
.operation-copy h2,
.landing-cta h2 {
  margin: 16px 0;
  color: #14203a;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: 0;
}

.landing-section-heading p,
.operation-copy > p {
  color: #657188;
  font-size: 17px;
  line-height: 1.65;
}

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

.landing-highlight-grid article {
  min-height: 200px;
  border: 1px solid #e3eaf3;
  border-radius: 18px;
  background: #f8fbff;
  padding: 26px;
}

.landing-highlight-grid article::before {
  display: block;
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: #1f83eb;
  content: "";
  margin-bottom: 34px;
}

.landing-highlight-grid strong,
.landing-module-grid strong {
  display: block;
  color: #1a263e;
  font-size: 21px;
}

.landing-highlight-grid p,
.landing-module-grid p {
  color: #6b768a;
  line-height: 1.6;
}

.landing-modules {
  background: #f2f7ff;
}

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

.landing-module-grid article {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  border: 1px solid #dfe8f5;
  border-radius: 18px;
  background: #fff;
  padding: 22px;
}

.landing-module-grid article.featured {
  border-color: #1f83eb;
  background: #1f83eb;
  box-shadow: 0 18px 40px rgba(31, 131, 235, 0.22);
}

.landing-module-grid article > span {
  color: #1f83eb;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 34px;
}

.landing-module-grid em {
  margin-top: auto;
  color: #778398;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-module-grid .featured strong,
.landing-module-grid .featured > span,
.landing-module-grid .featured p,
.landing-module-grid .featured em {
  color: #fff;
}

.landing-module-grid .featured p {
  opacity: 0.78;
}

.landing-operation {
  display: grid;
  grid-template-columns: minmax(520px, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: 70px;
  padding-top: 110px;
  padding-bottom: 110px;
  background: #fff;
}

.operation-preview {
  min-height: 490px;
  border: 1px solid #dfe7f2;
  border-radius: 24px;
  background: #f8fbff;
  box-shadow: 0 30px 70px rgba(42, 72, 118, 0.12);
  padding: 24px;
}

.operation-preview > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e9f2;
}

.operation-preview > header small {
  margin-left: auto;
  color: #7a8598;
}

.mini-logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #e52c3c;
  color: #fff;
  font-weight: 950;
}

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

.operation-metrics article {
  display: grid;
  gap: 8px;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(42, 72, 118, 0.06);
}

.operation-metrics span,
.operation-metrics small {
  color: #758095;
  font-size: 11px;
  font-weight: 800;
}

.operation-metrics strong {
  color: #14203a;
  font-size: 30px;
}

.operation-chart {
  display: grid;
  gap: 14px;
  border-radius: 18px;
  background: #fff;
  padding: 22px;
}

.operation-chart > div {
  display: grid;
  grid-template-columns: 130px 1fr 44px;
  align-items: center;
  gap: 12px;
  color: #526077;
  font-size: 12px;
  font-weight: 850;
}

.operation-copy ol {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.operation-copy li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
}

.operation-copy li > b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #eaf4ff;
  color: #1f83eb;
}

.operation-copy li strong,
.operation-copy li small {
  display: block;
}

.operation-copy li small {
  margin-top: 3px;
  color: #727e92;
}

.landing-security {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: 60px;
  padding-top: 58px;
  padding-bottom: 58px;
  background: #132443;
  color: #fff;
}

.landing-security span,
.landing-security strong {
  display: block;
}

.landing-security span {
  color: #75b9ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-security strong {
  margin-top: 8px;
  font-size: 28px;
}

.landing-security p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.6;
}

.landing-cta {
  display: grid;
  min-height: 480px;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(92, 167, 244, 0.28), transparent 42%),
    #edf6ff;
  text-align: center;
}

.landing-cta h2 {
  max-width: 840px;
  margin: 20px auto 28px;
  font-size: 52px;
}

.landing-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 230px;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-top: 1px solid #e2e9f3;
}

.landing-footer > div:first-child {
  max-width: 520px;
}

.landing-footer > div:first-child > img {
  width: 210px;
  height: auto;
}

.landing-footer p {
  max-width: 480px;
  color: #778297;
  line-height: 1.6;
}

.footer-nexa {
  display: grid;
  width: 100%;
  justify-items: center;
  justify-self: center;
  gap: 10px;
  text-align: center;
}

.footer-nexa span {
  color: #8a94a5;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-nexa img {
  width: 250px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 1180px) {
  .landing-screen .landing-hero {
    min-height: 760px;
    grid-template-columns: minmax(360px, 0.9fr) minmax(450px, 1.1fr);
  }

  .landing-screen .hero-copy h1 {
    font-size: 52px;
  }

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

  .landing-module-grid article {
    min-height: 260px;
  }
}

@media (max-width: 900px) {
  .landing-screen .landing-nav {
    position: relative;
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  .landing-screen .landing-nav nav {
    width: 100%;
    gap: 10px 18px;
    flex-wrap: wrap;
  }

  .landing-screen .landing-nav nav a {
    display: none;
  }

  .landing-screen .landing-login-button {
    width: 100%;
  }

  .landing-screen .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 58px 20px 0;
  }

  .landing-screen .hero-copy {
    max-width: 700px;
    padding: 0;
  }

  .landing-screen .hero-copy h1 {
    font-size: 46px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-visual > img {
    inset: 0 -120px 0 -100px;
    width: calc(100% + 220px);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  }

  .landing-highlight-grid,
  .landing-operation,
  .landing-security {
    grid-template-columns: 1fr;
  }

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

  .landing-operation {
    gap: 48px;
  }

  .landing-security {
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .landing-screen .landing-nav {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .landing-screen .landing-brand {
    width: 164px;
    min-width: 0;
  }

  .landing-screen .landing-nav nav {
    width: auto;
    margin-left: auto;
  }

  .landing-screen .landing-login-button {
    width: auto;
    min-height: 42px;
    padding: 0 16px;
    font-size: 12px;
  }

  .landing-screen .hero-copy h1 {
    font-size: 38px;
  }

  .landing-screen .hero-copy > p:not(.hero-kicker) {
    font-size: 16px;
  }

  .landing-screen .hero-actions,
  .landing-screen .hero-primary,
  .landing-screen .hero-secondary {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    gap: 10px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .hero-network-card {
    top: 8%;
    right: auto;
    left: 0;
    width: 210px;
  }

  .hero-alert-card {
    left: 0;
    bottom: 27%;
  }

  .hero-progress-card {
    right: 0;
    bottom: 5%;
    width: 200px;
  }

  .landing-intro,
  .landing-modules {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .landing-section-heading h2,
  .operation-copy h2,
  .landing-cta h2 {
    font-size: 34px;
  }

  .landing-highlight-grid,
  .landing-module-grid,
  .operation-metrics {
    grid-template-columns: 1fr;
  }

  .landing-module-grid article {
    min-height: 230px;
  }

  .landing-operation {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .operation-preview {
    min-height: auto;
    padding: 16px;
  }

  .operation-chart > div {
    grid-template-columns: 100px 1fr 38px;
  }

  .landing-cta {
    min-height: 420px;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .footer-nexa {
    justify-items: center;
  }
}

.brand-platform-lockup {
  display: grid;
  width: 100%;
  gap: 2px;
  align-items: start;
}

.brand-logo-crop {
  display: block;
  width: 100%;
  aspect-ratio: 384 / 82;
  overflow: hidden;
}

.brand-logo-crop img,
.landing-screen .brand-logo-crop img {
  display: block;
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: initial;
}

.brand-platform-lockup > small {
  display: block;
  color: #1f6ebc;
  font-size: 8px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.product-brand .brand-platform-lockup {
  width: 196px;
  max-width: 100%;
}

.product-brand .brand-platform-lockup > small {
  color: #234c7c;
  font-size: 7px;
}

.login-product-brand .brand-platform-lockup {
  width: 220px;
}

.footer-brand-lockup {
  width: 210px;
}

.landing-footer .footer-brand-lockup > small {
  color: #1f6ebc;
  font-size: 7px;
}

/* Clean authenticated product design system */
.app-shell {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: #f5f6f8;
  color: #1c2533;
}

.app-shell .sidebar {
  top: 0;
  height: 100vh;
  gap: 14px;
  padding: 22px 14px 16px;
  border: 0;
  border-right: 1px solid #e2e5e9;
  border-radius: 0;
  background: #fbfbfc;
  box-shadow: none;
  backdrop-filter: none;
}

.app-shell .product-brand {
  min-height: 66px;
  padding: 0 10px 14px;
  border-bottom: 1px solid #e4e7eb;
}

.app-shell .product-brand .brand-platform-lockup {
  width: 178px;
}

.app-shell .nav {
  gap: 3px;
}

.app-shell .nav-section-label {
  margin: 18px 12px 5px;
  color: #9aa1ab;
  font-size: 9px;
  letter-spacing: 0;
}

.app-shell .nav-item {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #4e5968;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 750;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.app-shell .nav-item:hover,
.app-shell .nav-item:focus-visible {
  border-color: #dde3e8;
  background: #fff;
  color: #164f61;
  transform: none;
}

.app-shell .nav-item.active {
  border-color: #cfdde1;
  background: #fff;
  color: #14556a;
  box-shadow: 0 3px 10px rgba(21, 65, 80, 0.06);
  font-weight: 900;
}

.app-shell .module-nav small {
  border-radius: 5px;
  background: #f0f2f4;
  color: #89919b;
  padding: 3px 5px;
}

.app-shell .module-nav.active small {
  background: #e5f1f4;
  color: #14556a;
}

.app-shell .workspace {
  min-width: 0;
  background: #f5f6f8;
}

.app-shell .topbar {
  position: relative;
  display: grid;
  min-height: 126px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(480px, 1.3fr);
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  border: 0;
  border-bottom: 1px solid #e0e4e8;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #1d2633;
  backdrop-filter: none;
}

.app-shell .topbar::before {
  display: none;
}

.app-shell .topbar-copy {
  align-self: center;
}

.app-shell .topbar-kicker {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8b939e;
  padding: 0;
  font-size: 10px;
}

.app-shell .topbar-user {
  gap: 10px;
  margin: 6px 0 3px;
}

.app-shell .topbar h1 {
  color: #18212e;
  font-size: 21px;
  line-height: 1.2;
}

.app-shell .topbar-copy p {
  color: #8a929d;
  font-size: 11px;
}

.app-shell .hero-avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 1px solid #dce2e8;
  background-color: #155b70;
  box-shadow: none;
  font-size: 11px;
}

.app-shell .top-actions {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-content: center;
  gap: 8px 10px;
}

.app-shell .quick-menu {
  grid-column: 1 / -1;
  gap: 6px;
}

.app-shell .quick-action {
  min-height: 32px;
  border: 1px solid #e0e4e8;
  border-radius: 7px;
  background: #fff;
  color: #687281;
  padding: 0 10px;
  font-size: 10px;
}

.app-shell .quick-action:hover,
.app-shell .quick-action:focus-visible,
.app-shell .quick-action.active {
  border-color: #bdd0d6;
  background: #edf4f6;
  color: #14556a;
  transform: none;
}

.app-shell .search-box {
  grid-column: 1;
  gap: 4px;
  color: #8c949f;
  font-size: 9px;
}

.app-shell .search-box input {
  min-height: 40px;
  border: 1px solid #dfe4e9;
  border-radius: 8px;
  background: #fafbfc;
  color: #293341;
  box-shadow: none;
}

.app-shell .search-box input::placeholder {
  color: #a1a8b1;
}

.app-shell .top-actions > .ghost-button {
  align-self: end;
  min-height: 40px;
}

.app-shell .top-action-buttons {
  display: flex;
  align-self: end;
  gap: 7px;
}

.app-shell .top-action-buttons .ghost-button,
.app-shell .theme-toggle {
  min-height: 40px;
}

.app-shell .theme-toggle {
  width: 40px;
  flex: 0 0 40px;
  border: 1px solid #dce2e7;
  background: #fff;
  color: #355363;
  font-size: 17px;
}

.app-shell .content {
  padding: 24px 28px 48px;
}

.app-shell .profile-toggle {
  min-height: 56px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid #e0e4e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  padding: 6px 10px 6px 6px;
}

.app-shell .profile-avatar {
  width: 42px;
  height: 42px;
  border-width: 1px;
  background-color: #155b70;
}

.app-shell .sidebar-logout {
  min-height: 40px;
  border: 1px solid #e4d9d9;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
}

.app-shell input,
.app-shell select,
.app-shell textarea {
  border-color: #dfe3e8;
  border-radius: 8px;
  background: #fff;
}

.app-shell textarea {
  border-radius: 8px;
}

.app-shell .ghost-button,
.app-shell .primary-button,
.app-shell .icon-button,
.app-shell .open-folder-button,
.app-shell .delete-unit-button,
.app-shell .link-button {
  border-radius: 8px;
  box-shadow: none;
}

.app-shell .primary-button,
.app-shell .open-folder-button {
  background: #145b70;
  color: #fff;
}

.app-shell .ghost-button {
  border-color: #dce2e7;
  color: #355363;
}

.app-shell .panel,
.app-shell .toolbar-panel,
.app-shell .unit-workspace,
.app-shell .module-page-head,
.app-shell .module-active-hero,
.app-shell .module-lock-panel,
.app-shell .admin-section {
  border: 1px solid #e0e4e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.app-shell .panel {
  padding: 18px;
}

.app-shell .panel h2 {
  color: #202936;
  font-size: 15px;
}

.app-shell .toolbar-panel {
  margin-bottom: 12px;
  padding: 12px 14px;
}

.app-shell .dashboard-toolbar {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
}

.app-shell .admin-toolbar {
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
}

.app-shell .dashboard-toolbar strong {
  font-size: 15px;
}

.app-shell .view-tabs {
  gap: 4px;
}

.app-shell .view-tab {
  min-height: 34px;
  border-radius: 7px;
  padding: 0 11px;
  font-size: 11px;
}

.app-shell .view-tab.active {
  border-color: #bfd0d5;
  background: #eaf2f4;
  color: #14556a;
}

.app-shell .implantation-hero-panel,
.app-shell .unit-focus-hero,
.app-shell .admin-hero {
  gap: 18px;
  border: 1px solid #e0e4e8;
  border-radius: 12px;
  background: #fff;
  color: #202936;
  box-shadow: none;
  padding: 20px;
}

.app-shell .implantation-hero-panel .small-label,
.app-shell .unit-focus-hero .small-label,
.app-shell .admin-hero .eyebrow {
  color: #8a939e;
}

.app-shell .implantation-hero-panel h2,
.app-shell .unit-focus-hero h2,
.app-shell .admin-hero h2 {
  color: #1d2633;
  font-size: 25px;
  line-height: 1.15;
  margin: 6px 0 8px;
}

.app-shell .implantation-hero-panel p,
.app-shell .unit-focus-hero p,
.app-shell .admin-hero p {
  color: #76808e;
  font-size: 12px;
}

.app-shell .status-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.app-shell .dashboard-context-hero {
  margin-bottom: 16px;
}

.app-shell .dashboard-summary-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell .admin-overview-grid {
  margin-top: 14px;
}

.app-shell .admin-overview-grid .ghost-button {
  margin-top: 16px;
}

.app-shell .request-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.app-shell .user-confirmation-note,
.app-shell .admin-preview-banner {
  margin-top: 14px;
}

.app-shell .module-admin-note {
  display: block;
  margin-top: 12px;
  color: #7c8591;
}

/* Dark product theme */
.app-shell.dark-theme {
  color-scheme: dark;
  background: #101419;
  color: #dce2e8;
}

.app-shell.dark-theme .sidebar {
  border-color: #2a3139;
  background: #14191f;
}

.app-shell.dark-theme .product-brand {
  border-color: #2a3139;
}

.app-shell.dark-theme .nav-section-label,
.app-shell.dark-theme .small-label,
.app-shell.dark-theme .eyebrow {
  color: #8e99a5;
}

.app-shell.dark-theme .nav-item {
  color: #aeb7c1;
}

.app-shell.dark-theme .nav-item:hover,
.app-shell.dark-theme .nav-item:focus-visible,
.app-shell.dark-theme .nav-item.active {
  border-color: #3b4651;
  background: #202830;
  color: #ecf4f7;
}

.app-shell.dark-theme .module-nav small {
  background: #222a32;
  color: #9fa9b4;
}

.app-shell.dark-theme .workspace,
.app-shell.dark-theme .content {
  background: #101419;
}

.app-shell.dark-theme .topbar {
  border-color: #2a3139;
  background: #171c22;
  color: #e5eaf0;
}

.app-shell.dark-theme .topbar h1,
.app-shell.dark-theme .panel h2,
.app-shell.dark-theme .implantation-hero-panel h2,
.app-shell.dark-theme .unit-focus-hero h2,
.app-shell.dark-theme .admin-hero h2,
.app-shell.dark-theme .module-page-head h2,
.app-shell.dark-theme .module-active-hero h3,
.app-shell.dark-theme .record-form h3 {
  color: #f0f3f6;
}

.app-shell.dark-theme .topbar-copy p,
.app-shell.dark-theme .implantation-hero-panel p,
.app-shell.dark-theme .unit-focus-hero p,
.app-shell.dark-theme .admin-hero p,
.app-shell.dark-theme .module-page-head p,
.app-shell.dark-theme .module-active-hero p,
.app-shell.dark-theme .panel p,
.app-shell.dark-theme .meta {
  color: #98a3ae;
}

.app-shell.dark-theme .quick-action,
.app-shell.dark-theme .ghost-button,
.app-shell.dark-theme .icon-button,
.app-shell.dark-theme .profile-toggle,
.app-shell.dark-theme .sidebar-logout,
.app-shell.dark-theme .theme-toggle {
  border-color: #343d46;
  background: #1c232a;
  color: #d5dce3;
}

.app-shell.dark-theme .quick-action:hover,
.app-shell.dark-theme .quick-action:focus-visible,
.app-shell.dark-theme .quick-action.active,
.app-shell.dark-theme .ghost-button:hover,
.app-shell.dark-theme .ghost-button:focus-visible {
  border-color: #53616e;
  background: #26313a;
  color: #fff;
}

.app-shell.dark-theme .search-box input,
.app-shell.dark-theme input,
.app-shell.dark-theme select,
.app-shell.dark-theme textarea {
  border-color: #333c45;
  background: #12171c;
  color: #e0e6eb;
}

.app-shell.dark-theme input::placeholder,
.app-shell.dark-theme textarea::placeholder {
  color: #6f7b87;
}

.app-shell.dark-theme .panel,
.app-shell.dark-theme .toolbar-panel,
.app-shell.dark-theme .unit-workspace,
.app-shell.dark-theme .module-page-head,
.app-shell.dark-theme .module-active-hero,
.app-shell.dark-theme .module-lock-panel,
.app-shell.dark-theme .admin-section,
.app-shell.dark-theme .implantation-hero-panel,
.app-shell.dark-theme .unit-focus-hero,
.app-shell.dark-theme .admin-hero,
.app-shell.dark-theme .record-form,
.app-shell.dark-theme .kpi,
.app-shell.dark-theme .unit-card {
  border-color: #2c343d;
  background: #171d23;
  color: #dce2e8;
}

.app-shell.dark-theme .view-tab {
  color: #aab4bf;
}

.app-shell.dark-theme .view-tab.active {
  border-color: #52626d;
  background: #26333b;
  color: #e8f4f7;
}

.app-shell.dark-theme .status-overview,
.app-shell.dark-theme .franchise-meta-grid > div,
.app-shell.dark-theme .unit-summary-grid article,
.app-shell.dark-theme .phase-grid article,
.app-shell.dark-theme .module-metric-grid article,
.app-shell.dark-theme .module-workflow article,
.app-shell.dark-theme .admin-user-list article,
.app-shell.dark-theme .admin-request-list article {
  border-color: #303943;
  background: #1d242b;
  color: #e0e6eb;
}

.app-shell.dark-theme .kpi > span,
.app-shell.dark-theme .kpi small,
.app-shell.dark-theme .status-overview span,
.app-shell.dark-theme .module-metric-grid span,
.app-shell.dark-theme .module-metric-grid small,
.app-shell.dark-theme .module-workflow small {
  color: #98a3ae;
}

.app-shell.dark-theme .kpi strong,
.app-shell.dark-theme .status-overview strong,
.app-shell.dark-theme .module-metric-grid strong,
.app-shell.dark-theme .module-workflow strong,
.app-shell.dark-theme .row-title {
  color: #edf1f5;
}

.app-shell.dark-theme thead th {
  border-color: #303842;
  background: #20272e;
  color: #a7b0ba;
}

.app-shell.dark-theme tbody td,
.app-shell.dark-theme .chart-row,
.app-shell.dark-theme .unit-tabbar {
  border-color: #2b333c;
  color: #cbd3db;
}

.app-shell.dark-theme tbody tr:hover,
.app-shell.dark-theme .chart-row:hover,
.app-shell.dark-theme .chart-row:focus-visible {
  background: #1c232a;
}

.app-shell.dark-theme .bar,
.app-shell.dark-theme .kpi-segments span {
  background: #303842;
}

.app-shell.dark-theme .profile-menu {
  border-color: #343d46;
  background: #1a2026;
  color: #e1e6eb;
}

.app-shell.dark-theme .permission-banner {
  background: #202c33;
  color: #b7cbd3;
}

.app-shell.dark-theme .attachment-picker,
.app-shell.dark-theme .icon-text-button,
.app-shell.dark-theme .pendency-save-bar {
  border-color: #343d46;
  background: #1c232a;
  color: #d5dce3;
}

.app-shell.dark-theme .attachment-control.has-file .attachment-picker {
  background: rgba(31, 166, 116, 0.12);
  color: #dcf7ed;
}

.app-shell .status-overview {
  min-height: 68px;
  border: 1px solid #e2e6ea;
  border-left: 4px solid #3c87b5;
  border-radius: 8px;
  background: #fafbfc;
  padding: 11px 12px;
}

.app-shell .status-overview strong {
  color: #202936;
  font-size: 23px;
}

.app-shell .status-overview span {
  color: #707b89;
  font-size: 10px;
  margin-top: 5px;
}

.app-shell .status-overview.green {
  border-left-color: #22a874;
  background: #f4fbf8;
}

.app-shell .status-overview.yellow {
  border-left-color: #e4b23f;
  background: #fffbf1;
}

.app-shell .status-overview.orange {
  border-left-color: #e7873a;
  background: #fff8f1;
}

.app-shell .status-overview.red {
  border-left-color: #df5864;
  background: #fff6f7;
}

.app-shell .kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.app-shell .kpi {
  min-height: 126px;
  border-radius: 10px;
  padding: 16px;
}

.app-shell .kpi span {
  font-size: 10px;
}

.app-shell .kpi strong {
  font-size: 28px;
}

.app-shell .kpi small {
  color: #828b97;
  font-size: 10px;
}

.app-shell .kpi-segments {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
}

.app-shell .kpi-segments i {
  height: 5px;
  border-radius: 2px;
  background: #e4e7eb;
}

.app-shell .kpi-info .kpi-segments i:nth-child(-n + 3) {
  background: #3e8db1;
}

.app-shell .kpi-done .kpi-segments i:nth-child(-n + 4) {
  background: #22a874;
}

.app-shell .kpi-progress .kpi-segments i:nth-child(-n + 3) {
  background: #e4ad36;
}

.app-shell .kpi-pending .kpi-segments i:nth-child(-n + 2) {
  background: #df5864;
}

.app-shell .donut-chart-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 220px;
  padding: 8px 14px 12px;
}

.app-shell .donut-chart {
  position: relative;
  display: grid;
  width: 158px;
  height: 158px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    #22a874 0 var(--done-stop),
    #e4ad36 var(--done-stop) var(--progress-stop),
    #df5864 var(--progress-stop) 100%
  );
}

.app-shell .donut-chart::before {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.app-shell .donut-chart > div {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
}

.app-shell .donut-chart strong {
  color: #202936;
  font-size: 28px;
  line-height: 1;
}

.app-shell .donut-chart span {
  color: #8a939e;
  font-size: 10px;
  font-weight: 850;
  margin-top: 4px;
  text-transform: uppercase;
}

.app-shell .donut-legend {
  display: grid;
  gap: 10px;
}

.app-shell .donut-legend > div {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf0f2;
  background: transparent;
  color: inherit;
}

.app-shell .donut-legend > div > span {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #3e8db1;
}

.app-shell .donut-legend .done > span {
  background: #22a874;
}

.app-shell .donut-legend .progress > span {
  background: #e4ad36;
}

.app-shell .donut-legend .pending > span {
  background: #df5864;
}

.app-shell .donut-legend > div.done,
.app-shell .donut-legend > div.progress,
.app-shell .donut-legend > div.pending {
  background: transparent;
}

.app-shell .donut-legend p,
.app-shell .donut-legend strong,
.app-shell .donut-legend small {
  display: block;
  margin: 0;
}

.app-shell .donut-legend strong {
  color: #374150;
  font-size: 11px;
}

.app-shell .donut-legend small {
  margin-top: 2px;
  color: #9098a2;
  font-size: 10px;
}

.app-shell .badge {
  min-height: 26px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 10px;
}

.app-shell .badge.done,
.app-shell select.done {
  background: #e8f7f0;
  color: #197a57;
}

.app-shell .badge.progress,
.app-shell select.progress,
.app-shell .badge.review,
.app-shell select.review,
.app-shell .badge.negotiation,
.app-shell select.negotiation {
  background: #fff3d8;
  color: #936614;
}

.app-shell .badge.pending,
.app-shell select.pending,
.app-shell .badge.rejected,
.app-shell select.rejected,
.app-shell .critical {
  background: #fdebed;
  color: #ad3e49;
}

.app-shell .badge.info,
.app-shell select.info,
.app-shell .badge.empty-status,
.app-shell select.empty-status {
  background: #ebf2f6;
  color: #416778;
}

.app-shell .chart-row {
  min-height: 38px;
  border-bottom: 1px solid #f0f1f3;
  border-radius: 0;
}

.app-shell .chart-row:hover,
.app-shell .chart-row:focus-visible {
  background: #f8fafb;
}

.app-shell .chart-row strong {
  color: #b44550;
}

.app-shell .chart-row .bar > span.pending {
  background: #df5864;
}

.app-shell .bar {
  height: 6px;
  background: #edf0f2;
}

.app-shell .unit-card,
.app-shell .franchise-grid .unit-card,
.app-shell .blocker-list .unit-card {
  border-color: #e4e7eb;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.app-shell .blocker-list {
  gap: 6px;
}

.app-shell .blocker-list .unit-card {
  padding: 12px;
}

.app-shell .franchise-grid {
  gap: 12px;
}

.app-shell .franchise-meta-grid > div,
.app-shell .unit-summary-grid article,
.app-shell .phase-grid article {
  border-radius: 8px;
  background: #f8f9fa;
  box-shadow: none;
}

.app-shell .unit-tabbar {
  gap: 4px;
  border-bottom: 1px solid #e2e5e9;
  padding-bottom: 8px;
}

.app-shell .unit-tabbar button {
  border-radius: 7px;
  background: transparent;
}

.app-shell .unit-tabbar button.active {
  background: #eaf2f4;
  color: #14556a;
}

.app-shell table {
  border-collapse: collapse;
}

.app-shell thead th {
  background: #f6f7f8;
  color: #6e7784;
  font-size: 9px;
}

.app-shell tbody td {
  border-bottom: 1px solid #eceef1;
  color: #3f4957;
  font-size: 11px;
}

.app-shell .module-metric-grid article,
.app-shell .module-workflow article,
.app-shell .admin-user-list article,
.app-shell .admin-request-list article {
  border-color: #e2e5e9;
  border-radius: 10px;
  box-shadow: none;
}

.app-shell .module-metric-grid article:nth-child(2),
.app-shell .module-metric-grid article:nth-child(3),
.app-shell .module-metric-grid article:nth-child(4) {
  border-top-width: 1px;
}

.app-shell .admin-hero {
  background: #fff;
}

.app-shell .admin-scope-pill {
  background: #eaf2f4;
  color: #14556a;
}

.app-shell .module-status-select {
  border-radius: 7px;
}

.app-shell .permission-banner {
  border-radius: 8px;
  background: #f1f6f8;
  color: #356173;
}

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

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

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

  .app-shell .sidebar {
    position: relative;
    height: auto;
    border: 1px solid #e0e4e8;
    border-radius: 12px;
  }

  .app-shell .topbar {
    border: 1px solid #e0e4e8;
    border-radius: 12px;
  }

  .app-shell .content {
    padding: 18px 0 36px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 8px;
  }

  .app-shell .sidebar {
    gap: 10px;
    padding: 12px;
  }

  .app-shell .brand {
    width: 172px;
    margin: 0;
    padding: 0 0 10px;
  }

  .app-shell .nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 6px;
    scrollbar-width: thin;
  }

  .app-shell .nav-section-label {
    display: none;
  }

  .app-shell .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .app-shell .sidebar-profile {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 0;
  }

  .app-shell .profile-toggle {
    min-height: 48px;
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .app-shell .profile-avatar {
    width: 36px;
    height: 36px;
  }

  .app-shell .sidebar-logout {
    min-height: 48px;
    padding-inline: 12px;
  }

  .app-shell .profile-menu {
    left: 0;
    right: auto;
  }

  .app-shell .kpi-grid,
  .app-shell .status-overview-grid,
  .app-shell .donut-chart-layout {
    grid-template-columns: 1fr;
  }

  .app-shell .donut-chart {
    margin: 0 auto;
  }

  .app-shell .top-actions,
  .app-shell .dashboard-toolbar,
  .app-shell .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .app-shell .search-box,
  .app-shell .top-action-buttons {
    grid-column: 1;
  }

  .app-shell .dashboard-summary-four {
    grid-template-columns: 1fr;
  }
}

/* Final dark-theme semantic overrides must follow the light status palette. */
.app-shell.dark-theme .status-overview {
  border-color: #303943;
  border-left-color: #3c87b5;
  background: #1d242b;
}

.app-shell.dark-theme .status-overview.green {
  border-left-color: #22a874;
  background: #172820;
}

.app-shell.dark-theme .status-overview.yellow {
  border-left-color: #e4b23f;
  background: #292516;
}

.app-shell.dark-theme .status-overview.orange {
  border-left-color: #e7873a;
  background: #2b2119;
}

.app-shell.dark-theme .status-overview.red {
  border-left-color: #df5864;
  background: #2a1d21;
}

.app-shell.dark-theme .status-overview strong,
.app-shell.dark-theme .profile-toggle strong,
.app-shell.dark-theme .admin-user-copy strong,
.app-shell.dark-theme .admin-request-list strong {
  color: #f0f3f6;
}

.app-shell.dark-theme .status-overview span,
.app-shell.dark-theme .profile-toggle small,
.app-shell.dark-theme .admin-user-copy span,
.app-shell.dark-theme .admin-request-list span {
  color: #a4aeb8;
}

/* Complete dark surface system. Keep this block last so light cleanup rules cannot win. */
.app-shell.dark-theme {
  --ink: #edf1f5;
  --muted: #9da8b3;
  --line: #303943;
  --panel: #171d23;
  --page: #101419;
}

.app-shell.dark-theme .sidebar,
.app-shell.dark-theme .topbar,
.app-shell.dark-theme .panel,
.app-shell.dark-theme .toolbar-panel,
.app-shell.dark-theme .unit-workspace,
.app-shell.dark-theme .unit-card,
.app-shell.dark-theme .franchise-grid .unit-card,
.app-shell.dark-theme .blocker-list .unit-card,
.app-shell.dark-theme .module-page-head,
.app-shell.dark-theme .module-active-hero,
.app-shell.dark-theme .module-lock-panel,
.app-shell.dark-theme .admin-section,
.app-shell.dark-theme .implantation-hero-panel,
.app-shell.dark-theme .unit-focus-hero,
.app-shell.dark-theme .admin-hero,
.app-shell.dark-theme .record-form,
.app-shell.dark-theme .kanban-column,
.app-shell.dark-theme .task-chip,
.app-shell.dark-theme .schedule-hero,
.app-shell.dark-theme .profile-menu {
  border-color: #303943;
  background: #171d23;
  color: #dce2e8;
  box-shadow: none;
}

.app-shell.dark-theme .unit-card header strong,
.app-shell.dark-theme .unit-card button,
.app-shell.dark-theme .unit-workspace-head,
.app-shell.dark-theme .unit-workspace-head strong,
.app-shell.dark-theme .panel h2,
.app-shell.dark-theme .panel h3,
.app-shell.dark-theme .record-form h3,
.app-shell.dark-theme .schedule-hero strong,
.app-shell.dark-theme .summary-card strong,
.app-shell.dark-theme .franchise-meta-grid strong,
.app-shell.dark-theme .phase-row,
.app-shell.dark-theme .task-chip strong,
.app-shell.dark-theme .donut-chart strong,
.app-shell.dark-theme .donut-legend strong,
.app-shell.dark-theme .section-title-row h2 {
  color: #edf1f5;
}

.app-shell.dark-theme .meta,
.app-shell.dark-theme .unit-workspace-head small,
.app-shell.dark-theme .summary-card span,
.app-shell.dark-theme .franchise-meta-grid small,
.app-shell.dark-theme .schedule-hero span,
.app-shell.dark-theme .schedule-hero small,
.app-shell.dark-theme .workspace-table td small,
.app-shell.dark-theme .task-chip span,
.app-shell.dark-theme .donut-chart span,
.app-shell.dark-theme .donut-legend small,
.app-shell.dark-theme .record-form-grid label,
.app-shell.dark-theme .pendency-save-bar span {
  color: #9da8b3;
}

.app-shell.dark-theme .franchise-meta-grid > span,
.app-shell.dark-theme .franchise-meta-grid > div,
.app-shell.dark-theme .summary-card,
.app-shell.dark-theme .unit-summary-grid article,
.app-shell.dark-theme .phase-grid article,
.app-shell.dark-theme .module-metric-grid article,
.app-shell.dark-theme .module-workflow article,
.app-shell.dark-theme .admin-user-list article,
.app-shell.dark-theme .admin-request-list article,
.app-shell.dark-theme .status-overview {
  border-color: #343e48;
  background: #1d242b;
  color: #dce2e8;
}

.app-shell.dark-theme .unit-workspace.expanded,
.app-shell.dark-theme .franchise-card:hover {
  border-color: #456171;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.app-shell.dark-theme .chevron,
.app-shell.dark-theme .task-count,
.app-shell.dark-theme .record-source,
.app-shell.dark-theme .admin-scope-pill,
.app-shell.dark-theme .module-status-pill {
  background: #252e37;
  color: #b9c3cc;
}

.app-shell.dark-theme .open-folder-button,
.app-shell.dark-theme .primary-button {
  border-color: #34839a;
  background: #17697d;
  color: #fff;
}

.app-shell.dark-theme .open-folder-button:hover,
.app-shell.dark-theme .primary-button:hover,
.app-shell.dark-theme .open-folder-button:focus-visible,
.app-shell.dark-theme .primary-button:focus-visible {
  border-color: #52a8bd;
  background: #1d7a90;
}

.app-shell.dark-theme .delete-unit-button,
.app-shell.dark-theme .danger-action,
.app-shell.dark-theme .link-button.danger {
  border-color: #5e3035;
  background: #2a1b1e;
  color: #ff8f98;
}

.app-shell.dark-theme .delete-unit-button:hover,
.app-shell.dark-theme .danger-action:hover,
.app-shell.dark-theme .link-button.danger:hover {
  border-color: #88434a;
  background: #3a2226;
}

.app-shell.dark-theme .unit-tabbar {
  border-color: #303943;
  background: transparent;
}

.app-shell.dark-theme .unit-tabbar button,
.app-shell.dark-theme .view-tab {
  border-color: #3a4550;
  background: #171d23;
  color: #aeb8c2;
}

.app-shell.dark-theme .unit-tabbar button:hover,
.app-shell.dark-theme .view-tab:hover {
  border-color: #52626d;
  background: #202830;
  color: #eef3f6;
}

.app-shell.dark-theme .unit-tabbar button.active,
.app-shell.dark-theme .view-tab.active {
  border-color: #4c7180;
  background: #243740;
  color: #b9e4ef;
}

.app-shell.dark-theme .schedule-ring {
  background:
    radial-gradient(circle at center, #171d23 0 54%, transparent 55%),
    conic-gradient(var(--schedule-color, var(--brand)) var(--value), #343e48 0);
}

.app-shell.dark-theme .bar,
.app-shell.dark-theme .stacked-bar,
.app-shell.dark-theme .kpi-segments i {
  background: #303943;
}

.app-shell.dark-theme .donut-chart::before {
  background: #171d23;
}

.app-shell.dark-theme .donut-legend > div {
  border-color: #303943;
}

.app-shell.dark-theme .chart-row {
  border-color: #303943;
  color: #dce2e8;
}

.app-shell.dark-theme .chart-row:hover,
.app-shell.dark-theme .chart-row:focus-visible,
.app-shell.dark-theme .workspace-table tbody tr:hover {
  background: #20272e;
}

.app-shell.dark-theme thead th {
  border-color: #343e48;
  background: #20272e;
  color: #aeb8c2;
}

.app-shell.dark-theme tbody td {
  border-color: #2d3640;
  color: #d3dae1;
}

.app-shell.dark-theme tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.app-shell.dark-theme input,
.app-shell.dark-theme select,
.app-shell.dark-theme textarea,
.app-shell.dark-theme .table-input,
.app-shell.dark-theme .table-textarea,
.app-shell.dark-theme .attachment-picker,
.app-shell.dark-theme .icon-text-button,
.app-shell.dark-theme .link-button {
  border-color: #3a4550;
  background: #12171c;
  color: #e2e7ec;
}

.app-shell.dark-theme input:focus,
.app-shell.dark-theme select:focus,
.app-shell.dark-theme textarea:focus,
.app-shell.dark-theme .attachment-picker:focus-within {
  border-color: #4f91aa;
  box-shadow: 0 0 0 3px rgba(79, 145, 170, 0.16);
}

.app-shell.dark-theme input::placeholder,
.app-shell.dark-theme textarea::placeholder {
  color: #74808c;
}

.app-shell.dark-theme .alert-list article {
  border-color: #583239;
  background: #2a1d21;
}

.app-shell.dark-theme .alert-list strong {
  color: #ff99a2;
}

.app-shell.dark-theme .alert-list span {
  color: #e1b8bc;
}

.app-shell.dark-theme .pendency-save-bar {
  border-color: #3c4954;
  background: rgba(29, 36, 43, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.app-shell.dark-theme .badge.done,
.app-shell.dark-theme select.done,
.app-shell.dark-theme .module-status-pill.active,
.app-shell.dark-theme .module-status-select.active {
  background: #173529;
  color: #75d5ae;
}

.app-shell.dark-theme .badge.progress,
.app-shell.dark-theme select.progress,
.app-shell.dark-theme .badge.review,
.app-shell.dark-theme select.review,
.app-shell.dark-theme .badge.negotiation,
.app-shell.dark-theme select.negotiation,
.app-shell.dark-theme .module-status-pill.requested,
.app-shell.dark-theme .module-status-select.requested {
  background: #382d18;
  color: #f1c66c;
}

.app-shell.dark-theme .badge.pending,
.app-shell.dark-theme select.pending,
.app-shell.dark-theme .badge.rejected,
.app-shell.dark-theme select.rejected,
.app-shell.dark-theme .critical,
.app-shell.dark-theme .module-status-pill.suspended,
.app-shell.dark-theme .module-status-select.suspended {
  background: #3a2025;
  color: #ff98a2;
}

.app-shell.dark-theme .badge.info,
.app-shell.dark-theme select.info,
.app-shell.dark-theme .badge.empty-status,
.app-shell.dark-theme select.empty-status,
.app-shell.dark-theme .module-status-select.locked {
  background: #20323b;
  color: #8bc5d9;
}

.app-shell.dark-theme .attachment-control.has-file .attachment-picker {
  border-color: #315746;
  background: #172820;
  color: #a7dfc6;
}

.app-shell.dark-theme .permission-banner,
.app-shell.dark-theme .admin-preview-banner,
.app-shell.dark-theme .user-confirmation-note {
  border-color: #36515d;
  background: #1b2b32;
  color: #acd1df;
}

/* Operational department modules */
.module-live-indicator {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid #cfe1e8;
  border-radius: 8px;
  background: #edf6f8;
  color: #24677a;
  font-size: 11px;
  font-weight: 850;
  padding: 0 12px;
  text-transform: uppercase;
}

.module-loading {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: #667180;
}

.department-metrics article {
  border-top: 3px solid #3e8db1 !important;
}

.department-metrics .metric-success { border-top-color: #22a874 !important; }
.department-metrics .metric-warning { border-top-color: #e4ad36 !important; }
.department-metrics .metric-danger { border-top-color: #df5864 !important; }
.department-metrics .metric-purple { border-top-color: #8c6cc3 !important; }

.department-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding: 18px 20px;
}

.department-toolbar h2,
.department-form-card h2 {
  margin: 2px 0 4px;
  font-size: 18px;
}

.department-toolbar p {
  margin: 0;
  color: #77818e;
  font-size: 12px;
}

.department-toolbar .ghost-button {
  width: auto;
  flex: 0 0 auto;
  text-decoration: none;
}

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

.department-form-card {
  padding: 20px;
  margin-bottom: 14px;
}

.department-form-layout .department-form-card {
  margin-bottom: 0;
}

.department-form-wide {
  width: 100%;
}

.department-form-card .record-form-grid {
  margin-top: 16px;
}

.department-form-card .record-form-grid label,
.module-form-field {
  display: grid;
  align-content: start;
  gap: 6px;
  color: #606b79;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.department-form-card input,
.department-form-card select,
.department-form-card textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dfe4e9;
  border-radius: 8px;
  background: #fff;
  color: #26313e;
  padding: 9px 11px;
  text-transform: none;
}

.department-form-card textarea {
  min-height: 82px;
  resize: vertical;
}

.department-form-card .checkbox-field {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px 12px;
  text-transform: none;
}

.department-form-card .checkbox-field input {
  width: 17px;
  min-height: 17px;
  flex: 0 0 17px;
  padding: 0;
}

.department-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.department-form-actions .primary-button,
.department-form-actions .ghost-button {
  width: auto;
}

.department-section {
  margin-top: 14px;
  padding: 18px;
}

.department-table {
  min-width: 940px;
}

.department-table td {
  vertical-align: middle;
}

.department-table td > strong,
.department-table td > small {
  display: block;
}

.department-table td > small {
  max-width: 320px;
  margin-top: 4px;
  color: #84909d;
  white-space: normal;
}

.module-record-status {
  width: 100%;
  min-width: 136px;
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0 30px 0 10px;
  font-size: 10px;
  font-weight: 850;
}

.module-row-actions {
  display: flex;
  gap: 5px;
}

.module-row-actions .icon-text-button {
  min-height: 32px;
  padding: 0 9px;
}

.module-form-field .attachment-control {
  text-transform: none;
}

.module-form-field .attachment-picker input {
  min-height: 0;
}

/* Public careers portal */
.careers-page {
  min-height: 100vh;
  background: #f5f8fc;
  color: #1c283a;
}

.careers-header,
.careers-hero,
.careers-content,
.careers-footer {
  padding-right: max(28px, calc((100vw - 1180px) / 2));
  padding-left: max(28px, calc((100vw - 1180px) / 2));
}

.careers-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e8f0;
  background: #fff;
}

.careers-header > span {
  color: #667387;
  font-size: 13px;
  font-weight: 800;
}

.careers-brand {
  width: 190px;
  text-decoration: none;
}

.careers-hero {
  display: grid;
  min-height: 370px;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 60px;
  background: #132443;
  color: #fff;
}

.careers-hero > div > span {
  color: #71baff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.careers-hero h1 {
  max-width: 780px;
  margin: 16px 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
}

.careers-hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.6;
}

.careers-hero > strong {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 52px;
}

.careers-hero > strong small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  text-transform: uppercase;
}

.careers-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
  align-items: start;
  gap: 28px;
  padding-top: 72px;
  padding-bottom: 90px;
}

.careers-jobs {
  display: grid;
  gap: 14px;
}

.career-job-card,
.career-application-card {
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: #fff;
}

.career-job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 22px;
}

.career-job-card h3 {
  margin: 5px 0 8px;
  font-size: 20px;
}

.career-job-card p {
  margin: 0;
  color: #6f7b8d;
  line-height: 1.5;
}

.career-job-card > div > span {
  color: #2577c9;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.career-job-card dl {
  display: flex;
  grid-column: 1 / -1;
  gap: 28px;
  margin: 0;
}

.career-job-card dt {
  color: #929cac;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.career-job-card dd {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.career-job-card > a {
  align-self: start;
  border-radius: 7px;
  background: #1f83eb;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 11px 14px;
  text-decoration: none;
}

.career-application-card {
  position: sticky;
  top: 22px;
  padding: 24px;
}

.career-application-card h2 {
  margin: 4px 0 6px;
}

.career-application-card > p {
  margin: 0 0 20px;
  color: #778398;
  font-size: 12px;
}

.career-application-card form,
.career-application-card label {
  display: grid;
  gap: 7px;
}

.career-application-card form { gap: 13px; }
.career-application-card label { color: #5c6879; font-size: 10px; font-weight: 850; }

.career-application-card input,
.career-application-card select,
.career-application-card textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dce3eb;
  border-radius: 7px;
  background: #fff;
  padding: 10px 11px;
}

.career-application-card textarea { min-height: 100px; resize: vertical; }
.career-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.career-application-card .career-consent { display: flex; align-items: flex-start; gap: 9px; font-weight: 650; line-height: 1.4; }
.career-consent input { width: 16px; min-height: 16px; flex: 0 0 16px; }
.career-honeypot { position: absolute; left: -9999px; opacity: 0; }
.career-form-message { min-height: 18px; font-size: 11px; line-height: 1.4; }
.career-form-message.success { color: #137451; }
.career-form-message.error { color: #b33a45; }
.careers-footer { display: flex; min-height: 130px; align-items: center; justify-content: space-between; border-top: 1px solid #e1e8f0; background: #fff; color: #7a8697; font-size: 11px; }
.careers-footer > div { display: flex; align-items: center; gap: 12px; }
.careers-footer img { width: 120px; }
.careers-loading, .careers-empty { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 30px; }
.careers-empty a { color: #1f83eb; font-weight: 850; }
.careers-empty-inline { border: 1px dashed #ccd6e2; border-radius: 10px; color: #7d8898; padding: 32px; text-align: center; }

.app-shell.dark-theme .module-live-indicator {
  border-color: #36515d;
  background: #1b2b32;
  color: #acd1df;
}

.app-shell.dark-theme .department-toolbar,
.app-shell.dark-theme .department-form-card,
.app-shell.dark-theme .department-section {
  border-color: #303943;
  background: #171d23;
  color: #dce2e8;
}

.app-shell.dark-theme .department-toolbar h2,
.app-shell.dark-theme .department-form-card h2,
.app-shell.dark-theme .department-section h2,
.app-shell.dark-theme .department-table td > strong {
  color: #edf1f5;
}

.app-shell.dark-theme .department-toolbar p,
.app-shell.dark-theme .department-table td > small,
.app-shell.dark-theme .department-form-card .record-form-grid label,
.app-shell.dark-theme .module-form-field {
  color: #9da8b3;
}

.app-shell.dark-theme .department-form-card .checkbox-field {
  border-color: #3a4550;
  background: #12171c;
}

@media (max-width: 1050px) {
  .department-form-layout,
  .careers-content { grid-template-columns: 1fr; }
  .career-application-card { position: static; }
}

@media (max-width: 700px) {
  .department-toolbar,
  .careers-footer { align-items: flex-start; flex-direction: column; }
  .careers-header, .careers-hero, .careers-content, .careers-footer { padding-right: 18px; padding-left: 18px; }
  .careers-header { gap: 14px; }
  .careers-header > span { max-width: 140px; text-align: right; }
  .careers-hero { min-height: 430px; grid-template-columns: 1fr; gap: 22px; padding-top: 48px; padding-bottom: 48px; }
  .careers-hero > strong { width: 110px; height: 110px; font-size: 38px; }
  .career-job-card { grid-template-columns: 1fr; }
  .career-job-card dl { flex-wrap: wrap; }
  .career-job-card > a { justify-self: start; }
  .career-form-row { grid-template-columns: 1fr; }
}
