:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6fbfa;
  color: #0e191b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button, select, textarea {
  font: inherit;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  border-radius: 24px;
  background: #102f33;
  padding: 28px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: #58d3dc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.subcopy {
  max-width: 650px;
  margin-bottom: 0;
  color: #d4f3f5;
  line-height: 1.6;
}

.auth-card, .panel, .modules {
  border: 1px solid #d9ebed;
  border-radius: 18px;
  background: #fff;
  color: #0e191b;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.auth-card p {
  margin-bottom: 0;
  color: #526f73;
  font-weight: 700;
}

button, select {
  border: 0;
  border-radius: 12px;
  background: #11828d;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 12px 14px;
}

button.secondary, select {
  border: 1px solid #bfdfe3;
  background: #fff;
  color: #0e191b;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.modules {
  align-self: start;
  padding: 10px;
}

.module {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  border: 0;
  background: transparent;
  color: #355b60;
  text-align: left;
}

.module.active {
  background: #eaf8fa;
  color: #0e191b;
}

.panel {
  min-height: 420px;
  padding: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.suggestion {
  border: 1px solid #e2eef0;
  border-radius: 16px;
  padding: 16px;
}

.suggestion-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status {
  border-radius: 999px;
  background: #eef8f9;
  color: #11828d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.meta {
  color: #526f73;
  font-size: 13px;
  line-height: 1.5;
}

.notice {
  margin: -6px 0 14px;
  border: 1px solid #b9e5df;
  border-radius: 12px;
  background: #ecfaf8;
  color: #0e5f5c;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.review-meta {
  display: grid;
  gap: 4px;
  margin: 10px 0 2px;
  border-left: 3px solid #b9e5df;
  padding-left: 10px;
}

.audit-line {
  margin-bottom: 0;
}

.soft-note {
  color: #6f8588;
  font-size: 12px;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

textarea {
  width: 100%;
  min-height: 70px;
  margin-top: 10px;
  border: 1px solid #d9ebed;
  border-radius: 12px;
  padding: 12px;
}

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

.stat {
  border: 1px solid #e2eef0;
  border-radius: 16px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 28px;
}

.analytics-summary {
  display: grid;
  gap: 16px;
}

.analytics-sections {
  display: grid;
  gap: 14px;
}

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

.analytics-section {
  border: 1px solid #e2eef0;
  border-radius: 16px;
  padding: 16px;
}

.analytics-section h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf5f6;
  padding: 9px 0;
  color: #355b60;
  font-size: 13px;
}

.breakdown-row:first-of-type {
  border-top: 0;
}

.detail-table {
  display: grid;
  gap: 0;
  overflow-x: auto;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) minmax(140px, 1fr) minmax(120px, 0.8fr) minmax(70px, 0.5fr) minmax(150px, 1fr);
  gap: 12px;
  border-top: 1px solid #edf5f6;
  padding: 10px 0;
  color: #355b60;
  font-size: 13px;
}

.detail-head {
  border-top: 0;
  color: #0e191b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty-panel {
  display: grid;
  min-height: 320px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.empty-panel h2 {
  margin-bottom: 10px;
}

.empty-panel .meta {
  max-width: 520px;
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .shell {
    padding: 18px;
  }

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