:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #182231;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.app-header {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 251, 0.98)),
    linear-gradient(90deg, rgba(6, 55, 109, 0.09), transparent 52%);
  border-bottom: 1px solid #d9dee7;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(460px, 1fr) minmax(190px, 240px) auto;
  min-height: 112px;
  padding: 18px clamp(18px, 4vw, 48px);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.suite-home-link {
  background: #ffffff;
  border: 1px solid #bdc8d9;
  border-radius: 6px;
  color: #05294d;
  font-weight: 850;
  padding: 9px 11px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 20px;
  min-width: 0;
}

.product-logo {
  background: linear-gradient(135deg, #05294d, #0f6b7a 64%, #d0aa5b);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(5, 41, 77, 0.2);
  color: #ffffff;
  flex: 0 0 auto;
  height: 76px;
  overflow: hidden;
  position: relative;
  width: 76px;
}

.product-logo::after {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 13px;
  content: "";
  inset: 6px;
  position: absolute;
}

.product-logo span {
  font-size: 1.85rem;
  font-weight: 950;
  left: 11px;
  letter-spacing: 0;
  line-height: 1;
  position: absolute;
  top: 16px;
  z-index: 1;
}

.product-logo i {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 1px, transparent 1px);
  background-size: 8px 8px;
  bottom: 13px;
  height: 20px;
  left: 14px;
  opacity: 0.72;
  position: absolute;
  width: 27px;
  z-index: 1;
}

.header-visual {
  align-items: center;
  align-self: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: 76px minmax(96px, 1fr);
  min-height: 64px;
}

.visual-card,
.visual-chart {
  border: 1px solid #d3deeb;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(24, 47, 79, 0.1);
  height: 64px;
}

.visual-card {
  background: #ffffff;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.visual-card-primary {
  border-left: 5px solid #0f6b7a;
}

.visual-line {
  background: #c8d6e6;
  border-radius: 999px;
  display: block;
  height: 7px;
  width: 82%;
}

.visual-line.short {
  width: 56%;
}

.visual-total {
  align-self: end;
  color: #05294d;
  font-size: 1.15rem;
  font-weight: 900;
}

.visual-chart {
  align-items: end;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(237, 246, 248, 0.96));
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 12px;
}

.visual-chart span {
  background: linear-gradient(180deg, #0f6b7a, #d0aa5b);
  border-radius: 5px 5px 2px 2px;
  display: block;
  width: 11px;
}

.eyebrow {
  color: #4b627f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: #05294d;
  font-size: clamp(2.15rem, 3.5vw, 3.3rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 0;
  white-space: nowrap;
}

.brand-subtitle {
  color: #344258;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.publisher-mark {
  color: #66758a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.language-control {
  align-items: center;
  display: flex;
  gap: 8px;
}

.language-control span {
  color: #344258;
  font-size: 0.9rem;
  font-weight: 700;
}

select {
  border: 1px solid #c9d1df;
  border-radius: 6px;
  font: inherit;
  padding: 8px 10px;
}

input,
textarea {
  border: 1px solid #c9d1df;
  border-radius: 6px;
  font: inherit;
  padding: 9px 10px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.site-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 93px);
}

.site-list {
  background: #202938;
  color: #eef3fa;
  padding: 18px;
}

.site-list h2 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-item {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #d8e0ed;
  cursor: pointer;
  display: block;
  font: inherit;
  margin-bottom: 8px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.site-item strong,
.site-item span {
  display: block;
}

.site-item span {
  font-size: 0.84rem;
  margin-top: 4px;
}

.site-item.active,
.site-item:hover {
  background: #ffffff;
  color: #202938;
}

.site-item:disabled {
  cursor: default;
  opacity: 0.55;
}

.public-site {
  padding: clamp(18px, 4vw, 42px);
}

.hero {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #dbe2ed;
  border-radius: 8px;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.74fr);
  padding: clamp(22px, 4vw, 42px);
}

.hero h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1;
  margin-bottom: 18px;
  max-width: 760px;
}

.hero p {
  color: #33465f;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 740px;
}

.legacy-content {
  color: #33465f;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 740px;
}

.legacy-content.compact {
  font-size: 0.95rem;
}

.legacy-content p,
.legacy-content ul,
.legacy-content ol {
  margin: 0 0 12px;
}

.legacy-content a {
  color: #0f5d91;
  font-weight: 700;
}

.site-logo {
  display: block;
  max-height: 58px;
  max-width: min(280px, 100%);
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  max-width: 600px;
}

.action {
  border: 1px solid #bac6d8;
  border-radius: 6px;
  color: #1d3149;
  font-weight: 700;
  padding: 11px 14px;
  text-decoration: none;
}

.action.primary {
  background: #126044;
  border-color: #126044;
  color: #ffffff;
}

.hero-media {
  align-self: stretch;
  display: grid;
  gap: 14px;
  grid-template-rows: minmax(190px, 1fr) auto;
  min-width: 0;
}

.hero-media > img {
  border: 1px solid #c7d6e5;
  border-radius: 8px;
  display: block;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.advisor-panel {
  background: #eef4f8;
  border: 1px solid #c7d6e5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 138px;
  padding: 16px;
}

.portrait {
  align-items: center;
  aspect-ratio: 1;
  background: #1c2c3e;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  font-size: 1.45rem;
  font-weight: 800;
  justify-content: center;
  margin-bottom: 4px;
  width: 64px;
}

.portrait-photo {
  border: 2px solid #ffffff;
  object-fit: cover;
}

.portrait-photo:not([hidden]) + .portrait-fallback {
  display: none;
}

.advisor-panel strong {
  font-size: 1.35rem;
}

.advisor-panel span,
.advisor-panel small {
  color: #4b627f;
}

.detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.operations-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(320px, 1fr);
  margin-top: 18px;
}

.detail-grid article,
.operations-grid article,
.admin-review {
  background: #ffffff;
  border: 1px solid #dbe2ed;
  border-radius: 8px;
  min-height: 170px;
  padding: 20px;
}

.detail-grid h3,
.operations-grid h3,
.admin-review h3 {
  color: #10233b;
  margin-bottom: 12px;
}

.detail-grid p,
.operations-grid p,
.admin-review p {
  color: #40536d;
  line-height: 1.5;
  margin-bottom: 8px;
}

.status-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.status-list div,
.review-list div {
  align-items: center;
  border-bottom: 1px solid #e6ecf3;
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
}

.status-list dt {
  color: #40536d;
  font-weight: 700;
}

.status-list dd {
  color: #126044;
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form label span {
  color: #40536d;
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.lead-form button {
  background: #126044;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 11px 14px;
}

.lead-status {
  color: #126044;
  font-weight: 700;
  margin: 0;
}

.admin-review {
  margin-top: 18px;
  min-height: auto;
}

.review-list {
  display: grid;
  gap: 8px;
}

.review-list strong,
.review-list span {
  display: block;
}

.review-list span,
.lead-count {
  color: #52667f;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .app-header,
  .site-shell,
  .hero,
  .detail-grid,
  .operations-grid {
    display: block;
  }

  .language-control {
    margin-top: 18px;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .site-list,
  .public-site {
    padding: 16px;
  }

  .hero-media > img {
    max-height: none;
  }

  .advisor-panel,
  .detail-grid article,
  .operations-grid article {
    margin-top: 16px;
  }
}
