* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  background: #eef2f7;
  color: #182233;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.sidebar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 1rem 0.8rem;
  overflow-y: auto;
  background: #203a63;
  color: #dbeafe;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.55rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-logo {
  width: 3.6rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 0.35rem;
  background: #070707;
}

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

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 0.1rem;
  color: #aac1e1;
  font-size: 0.78rem;
}

.nav {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.75rem;
}

.nav-section {
  margin: 0.85rem 0 0.35rem;
  padding: 0.75rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.4rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  color: #dbeafe;
  font-size: 1rem;
  font-weight: 600;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.nav em {
  color: #b9c8df;
  font-style: normal;
}

.module-search {
  margin-bottom: 0.45rem;
}

.module-search input {
  width: 100%;
  height: 2.3rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.module-search input::placeholder {
  color: #9fb3d4;
}

.sidebar-foot {
  margin-top: auto;
  padding: 0.85rem 0.7rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.user-name {
  margin: 0;
  font-weight: 800;
}

.user-role {
  margin: 0.2rem 0 0.75rem;
  color: #aac1e1;
  font-size: 0.86rem;
}

.logout-link {
  color: #ffffff;
  font-weight: 700;
}

.content {
  min-width: 0;
  padding: 0;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #d7dee8;
  background: #ffffff;
}

.page-head h1 {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin: 0;
  padding: 0.25rem 0.8rem;
  border-radius: 0.45rem;
  background: #e8f2ff;
  color: #1d2939;
  font-size: 1rem;
  font-weight: 800;
}

.eyebrow,
.page-copy {
  display: none;
}

.page-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 3.6rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #d7dee8;
  background: #ffffff;
}

.toolbar-left,
.page-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-search input {
  width: min(32vw, 360px);
  min-width: 220px;
  height: 2.35rem;
  margin: 0;
  padding: 0 0.85rem;
  border: 1px solid #bfc8d6;
  border-radius: 0.4rem;
  background: #ffffff;
}

.tool-button,
.view-button,
.ghost-button,
.primary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.45rem;
  border: 1px solid #cfd8e6;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.tool-button,
.view-button,
.ghost-button {
  background: #f5f7fa;
  color: #1d2939;
}

.view-button.active {
  background: #e8f2ff;
  color: #0b84ff;
}

.primary-button {
  background: #0b84ff;
  border-color: #0b84ff;
  color: #ffffff;
}

.danger-button {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.flash {
  margin: 0.8rem 1rem 0;
  padding: 0.8rem 1rem;
  border-radius: 0.4rem;
  font-weight: 700;
}

.flash-success {
  background: #ecfdf5;
  color: #047857;
}

.flash-error {
  background: #fff1f2;
  color: #be123c;
}

.grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

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

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

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

.split {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem;
}

.card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 0.45rem;
  padding: 1rem;
  box-shadow: none;
}

.split > .card:first-child {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.split > .card:first-child h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.split > .card:first-child h2::after {
  display: block;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5ebf2;
  color: #111827;
  content: "System Defined Filters";
  font-size: 0.95rem;
  font-weight: 800;
}

.stat-number {
  margin: 0.25rem 0 0;
  font-size: 1.8rem;
  font-weight: 900;
}

.muted {
  color: #5d697c;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #d7dee8;
  border-radius: 0.4rem;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 0.72rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #e5ebf2;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
  border-bottom: 2px solid #d4deec;
  color: #111827;
  font-size: 0.96rem;
  font-weight: 500;
}

td {
  color: #344054;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

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

label,
.field-title {
  display: block;
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #bfc8d6;
  border-radius: 0.4rem;
  color: #0f172a;
  background: #ffffff;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

.check-list {
  display: grid;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  background: #ffffff;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 500;
}

.check-row:last-child {
  border-bottom: 0;
}

.check-row input {
  width: auto;
  margin-top: 0.15rem;
}

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

.check-row small {
  margin-top: 0.2rem;
  color: #64748b;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e7f7ff;
  color: #0f7099;
  font-size: 0.78rem;
  font-weight: 800;
}

.kanban {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  overflow-x: auto;
}

.kanban-column {
  min-height: 360px;
  padding: 0.75rem;
  border-radius: 0.25rem;
  border: 0;
  background: #dff8fb;
}

.kanban-column > strong {
  display: block;
  margin-bottom: 0.25rem;
}

.kanban-card {
  margin-top: 0.75rem;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
  background: #eef2f7;
}

.login-card {
  width: min(100%, 440px);
}

.auth-logo {
  display: block;
  width: 8rem;
  height: auto;
  margin: 0 auto 1.2rem;
  border-radius: 0.55rem;
  background: #070707;
}

.auth-copy {
  margin: 0.65rem 0 1.2rem;
  color: #475569;
  line-height: 1.5;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 2.8rem;
  margin-bottom: 1rem;
  border: 1px solid #cfd8e6;
  border-radius: 0.45rem;
  background: #ffffff;
  color: #111827;
  font-weight: 800;
}

.google-button span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px #d1d5db;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: #64748b;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  content: "";
}

.auth-switch {
  margin: 1rem 0 0;
  color: #475569;
  text-align: center;
}

.auth-switch a {
  color: #0b66c3;
  font-weight: 800;
}

.site-body {
  background: #ffffff;
  color: #050505;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.8rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
}

.site-menu-check,
.site-menu-button {
  display: none;
}

.site-brand,
.site-nav,
.site-actions,
.site-hero-actions {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: 0.8rem;
  font-size: 1.05rem;
}

.site-logo {
  width: 6.6rem;
  height: 4rem;
  object-fit: contain;
  border-radius: 0.4rem;
  background: #070707;
}

.site-nav {
  gap: clamp(1rem, 3vw, 2.6rem);
  flex: 1;
  font-size: 1.05rem;
}

.site-nav a:first-child {
  color: #0067b8;
}

.site-actions {
  gap: 0.8rem;
}

.site-link {
  color: #111827;
  font-weight: 700;
}

.site-button,
.site-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.15rem;
  border: 1px solid #0b66c3;
  color: #0b66c3;
  font-weight: 800;
  text-transform: uppercase;
}

.site-button.red {
  border-color: #ef0018;
  background: #ef0018;
  color: #ffffff;
}

.site-hero {
  display: grid;
  min-height: 35rem;
  place-items: center;
  padding: 5rem 1.25rem 7rem;
  background:
    repeating-radial-gradient(ellipse at center, rgba(74, 117, 202, 0.12) 0 1px, transparent 1px 22px),
    linear-gradient(115deg, #ffffff 0%, #fff8ff 48%, #f5f8ff 100%);
  text-align: center;
}

.site-hero-inner {
  max-width: 920px;
}

.site-kicker {
  margin: 0 0 1rem;
  color: #ef0018;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
}

.site-hero p:not(.site-kicker) {
  max-width: 820px;
  margin: 1.8rem auto 0;
  color: #1f2937;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.site-hero-actions {
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.featured-suite {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 3rem;
  width: min(100% - 2rem, 1450px);
  margin: -4.5rem auto 4rem;
  padding: 1.1rem;
  border: 1px solid #dfe5ee;
  border-radius: 0.55rem;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

.feature-media {
  min-height: 260px;
  padding: 2rem;
  border-radius: 0.45rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 40px 40px,
    linear-gradient(135deg, #6121a6, #27105c);
  color: #ffffff;
}

.feature-media span,
.feature-media strong {
  display: block;
}

.feature-media span {
  margin-top: 7rem;
  color: #d9c9ff;
  font-size: 2rem;
}

.feature-media strong {
  margin-top: 0.35rem;
  font-size: 2.6rem;
}

.featured-apps {
  padding: 1.8rem 1.2rem 1rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #e5e7eb;
}

.section-head p {
  margin: 0;
  color: #1f2937;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head a {
  color: #0067b8;
  font-weight: 800;
  text-transform: uppercase;
}

.product-grid,
.marketing-grid,
.resource-grid {
  display: grid;
  gap: 1.7rem;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.product-grid article,
.marketing-grid article,
.resource-grid article {
  min-width: 0;
}

.product-icon,
.line-icon {
  display: inline-grid;
  height: 2.7rem;
  width: 2.7rem;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 0.45rem;
  font-weight: 900;
}

.blue {
  color: #2877d4;
}

.amber {
  color: #e4a500;
}

.green {
  color: #0ca64a;
}

.red {
  color: #ef0018;
}

.product-grid h3,
.marketing-grid h3,
.resource-grid h3 {
  margin: 0.7rem 0 0.35rem;
  font-size: 1.45rem;
}

.product-grid p,
.marketing-grid p,
.resource-grid p {
  margin: 0;
  color: #3f3f46;
  line-height: 1.45;
}

.about-band,
.resource-band {
  display: grid;
  gap: 2rem;
  width: min(100% - 2rem, 1320px);
  margin: 0 auto 4rem;
  padding: 4rem;
  border-radius: 0.65rem;
  background: #0f172a;
  color: #ffffff;
}

.about-band {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.about-band h2,
.resource-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
}

.about-band p:not(.site-kicker),
.resource-band p:not(.site-kicker) {
  margin: 0;
  color: #dbeafe;
  font-size: 1.15rem;
  line-height: 1.65;
}

.marketing-panel {
  width: min(100% - 2rem, 1500px);
  margin: 0 auto 4rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.marketing-products {
  padding: 3rem;
}

.marketing-products h2 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
}

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

.marketing-grid article {
  padding: 1.4rem;
}

.marketing-grid .highlight {
  background: #f5f7fa;
}

.resource-band {
  background: #f8fafc;
  color: #0f172a;
}

.resource-band p:not(.site-kicker) {
  color: #475569;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid #e5e7eb;
  color: #475569;
}

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

  .split {
    grid-template-columns: 1fr;
  }

  .split > .card:first-child {
    position: static;
    max-height: none;
  }

  .featured-suite,
  .about-band,
  .marketing-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .page-head,
  .toolbar,
  .page-search {
    align-items: stretch;
    flex-direction: column;
  }

  .page-search input {
    width: 100%;
    min-width: 0;
  }

  .grid-2,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .site-hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    flex-wrap: wrap;
    min-height: 4.75rem;
    padding: 0.7rem 1rem;
    gap: 0.75rem;
  }

  .site-brand {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
  }

  .site-brand strong {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-logo {
    width: 4rem;
    height: 2.45rem;
  }

  .site-menu-button {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 0.35rem;
    background: #ffffff;
    cursor: pointer;
    margin-left: auto;
  }

  .site-menu-button span {
    display: block;
    width: 1.18rem;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: #111827;
  }

  .site-nav,
  .site-actions {
    display: none;
    flex: 0 0 100%;
  }

  .site-menu-check:checked ~ .site-nav,
  .site-menu-check:checked ~ .site-actions {
    display: flex;
  }

  .site-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1rem;
  }

  .site-nav a {
    padding: 0.8rem 0;
  }

  .site-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
    padding-bottom: 0.35rem;
  }

  .site-link {
    padding: 0.35rem 0;
  }

  .site-hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .product-grid,
  .marketing-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .about-band,
  .resource-band {
    padding: 2rem;
  }
}
