:root {
  --page-bg: #edf3fb;
  --surface: #ffffff;
  --line: #dbe4ef;
  --copy-main: #152745;
  --copy-soft: #546683;
  --brand-deep: #0d2b49;
  --brand-mid: #1a5d8d;
  --brand-fresh: #0b9f87;
  --panel-shadow: 0 22px 44px rgba(15, 34, 69, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--copy-main);
  background: radial-gradient(circle at 80% -10%, #d2f5ee 0%, #edf3fb 46%, #e8eef8 100%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(90deg, rgba(16, 46, 79, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(16, 46, 79, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.canvas-wrap {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 18px 34px;
}

.frame-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--panel-shadow);
}

.topline-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.identity-cluster,
.topline-shell__controls,
.rate-strip {
  display: flex;
  align-items: center;
}

.identity-cluster {
  gap: 12px;
}

.identity-cluster__mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.identity-cluster__note {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #5e7391;
}

.identity-cluster__brand {
  margin: 2px 0 0;
  font-size: 27px;
  font-weight: 800;
}

.topline-shell__controls {
  gap: 12px;
}

.rate-strip {
  gap: 8px;
}

.rate-chip {
  min-width: 92px;
  padding: 8px 10px;
  border: 1px solid #d6e3f2;
  border-radius: 11px;
  background: #f4f8ff;
}

.rate-chip span {
  display: block;
  font-size: 11px;
  color: #6b7f9b;
}

.rate-chip strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.dropnav-box summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.dropnav-box summary::-webkit-details-marker {
  display: none;
}

.dropnav-box ul {
  width: 240px;
  margin: 10px 0 0;
  padding: 10px;
  list-style: none;
  border: 1px solid #335679;
  border-radius: 14px;
  background: #112f4b;
  color: #dbe9ff;
}

.feature-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "lead visual"
    "score visual";
}

.feature-grid__lead,
.feature-grid__visual,
.feature-grid__score,
.module-card,
.side-panel,
.bottomline-shell {
  position: relative;
  overflow: hidden;
}

.feature-grid__lead {
  grid-area: lead;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, #071f36 0%, #0e3658 56%, #0d7a68 100%);
}

.feature-grid__lead::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.feature-grid__eyebrow {
  margin: 0 0 10px;
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.feature-grid__summary {
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
  color: #d8e8ff;
}

.feature-grid__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature-grid__actions a {
  padding: 11px 14px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.cta-primary {
  background: #ffef77;
  color: #0f2c49;
}

.cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #eaf2ff;
}

.feature-grid__visual {
  grid-area: visual;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 16px;
  background: linear-gradient(145deg, #f4fbff 0%, #e2f4ff 100%);
}

.feature-grid__visual img {
  width: 100%;
  border-radius: 14px;
}

.feature-grid__score {
  grid-area: score;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.feature-grid__score h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.feature-grid__score p {
  margin: 0;
  color: var(--copy-soft);
}

.feature-grid__score img {
  width: 100%;
  border: 1px solid #d5e2ee;
  border-radius: 13px;
}

.dashboard-grid {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.32fr) minmax(290px, 0.68fr);
}

.dashboard-grid__main,
.dashboard-grid__side {
  display: grid;
  gap: 16px;
}

.module-card,
.side-panel {
  padding: 18px;
}

.module-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.module-card__head h2 {
  margin: 0;
  font-size: 24px;
}

.module-card__head span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667a96;
}

.module-card__slot {
  min-height: 220px;
  padding: 14px;
  border: 1px dashed #bfd0e5;
  border-radius: 14px;
  color: var(--copy-soft);
}

.card-matrix {
  display: grid;
  gap: 12px;
}

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

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

.mini-panel,
.choice-panel,
.news-rack__item {
  padding: 12px;
  border: 1px solid #d8e5f2;
  border-radius: 14px;
}

.mini-panel {
  background: linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
}

.mini-panel img,
.choice-panel img,
.news-rack__item img,
.side-panel img,
.bottomline-shell img {
  width: 100%;
  border: 1px solid #d5e2ee;
  border-radius: 10px;
}

.mini-panel h3,
.choice-panel h3,
.news-rack__item h3 {
  margin: 10px 0 6px;
  font-size: 17px;
}

.mini-panel p,
.choice-panel p,
.news-rack__item p,
.side-panel p,
.side-panel li {
  margin: 0;
  color: var(--copy-soft);
  font-size: 14px;
  line-height: 1.45;
}

.choice-panel a {
  display: inline-block;
  margin-top: 9px;
  color: #085497;
  font-weight: 700;
  text-decoration: none;
}

.choice-panel--mint {
  background: linear-gradient(145deg, #f2fff7 0%, #e2f8ec 100%);
}

.choice-panel--sky {
  background: linear-gradient(145deg, #f3fbff 0%, #e2f1ff 100%);
}

.choice-panel--sand {
  background: linear-gradient(145deg, #fffdf3 0%, #fff5db 100%);
}

.choice-panel--lilac {
  background: linear-gradient(145deg, #f8f5ff 0%, #efeaff 100%);
}

.module-card--editorial {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

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

.news-rack__item {
  background: #fbfdff;
}

.side-panel h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

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

.side-panel img {
  margin-top: 12px;
  border-radius: 12px;
}

.bottomline-shell {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.bottomline-shell__copy strong {
  font-size: 20px;
}

.bottomline-shell__copy p {
  margin: 8px 0 0;
  color: var(--copy-soft);
}

.bottomline-shell a {
  color: #0e5d97;
}

@media (max-width: 1160px) {
  .feature-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "visual"
      "score";
  }

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

  .card-matrix--triple,
  .news-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topline-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .topline-shell__controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .rate-strip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dropnav-box summary,
  .dropnav-box ul {
    width: 100%;
  }

  .feature-grid__score {
    grid-template-columns: 1fr;
  }

  .card-matrix--triple,
  .card-matrix--double,
  .news-rack,
  .bottomline-shell {
    grid-template-columns: 1fr;
  }

  .module-card,
  .side-panel,
  .feature-grid__lead,
  .feature-grid__visual,
  .feature-grid__score,
  .bottomline-shell {
    padding: 14px;
  }
}
