:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #607080;
  --line: #dce2e8;
  --blue: #2457d6;
  --teal: #0b8f83;
  --amber: #b66a00;
  --red: #bc3131;
  --shadow: 0 18px 45px rgba(26, 41, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  min-height: 210px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: end;
  padding: 34px;
  color: white;
  background:
    linear-gradient(110deg, rgba(12, 28, 48, 0.92), rgba(15, 87, 97, 0.84)),
    url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: inherit;
  opacity: 0.72;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.intro {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.45;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-stats div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 8px;
}

.hero-stats span {
  display: block;
  font-size: 30px;
  font-weight: 800;
}

.hero-stats small {
  color: rgba(255, 255, 255, 0.76);
}

.workspace,
.lower-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.workspace {
  grid-template-columns: 390px 1fr;
}

.lower-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.panel {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(26, 41, 61, 0.07);
}

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

label,
legend {
  display: grid;
  gap: 7px;
  color: #2e3a46;
  font-size: 14px;
  font-weight: 700;
}

.helper-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.hidden {
  display: none;
}

input,
select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #cfd8e2;
  border-radius: 6px;
}

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

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.topic-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 10px;
  background: #f7f9fb;
  border: 1px solid #e6ebf0;
  border-radius: 6px;
  font-weight: 600;
}

.topic-list input {
  width: 18px;
  height: 18px;
}

.primary-button,
.ghost-button,
.mini-button {
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.primary-button {
  height: 46px;
  color: white;
  background: var(--blue);
}

.ghost-button {
  height: 34px;
  padding: 0 12px;
  color: var(--blue);
  background: #edf2ff;
}

.mini-button {
  min-height: 34px;
  padding: 0 10px;
  color: white;
  background: var(--teal);
}

.badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: #0d4b45;
  background: #dff6f2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.summary-card {
  padding: 14px;
  background: #f7f9fb;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
}

.summary-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 24px;
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
}

.plan-output {
  display: grid;
  gap: 10px;
}

.plan-step {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rank {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  font-weight: 800;
}

.plan-step h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.plan-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}

.roi-pill {
  padding: 8px 10px;
  color: #0d4b45;
  background: #dff6f2;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

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

.table-row {
  display: grid;
  grid-template-columns: 1fr 82px 82px 90px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.table-row.header {
  min-height: 34px;
  color: var(--muted);
  background: #f7f9fb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  line-height: 1.45;
}

.feedback-controls {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.feedback-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feedback-card select {
  width: 92px;
}

.profile-box {
  margin-top: 14px;
  padding: 14px;
  background: #f7f9fb;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.empty-state {
  padding: 14px;
  color: var(--muted);
  background: #f7f9fb;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  line-height: 1.5;
}

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

.risk-medium {
  color: var(--amber);
}

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

@media (max-width: 920px) {
  .hero,
  .workspace,
  .lower-grid {
    grid-template-columns: 1fr;
  }

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

  .table-row {
    grid-template-columns: 1fr 70px;
  }

  .table-row span:nth-child(3),
  .table-row span:nth-child(4) {
    display: none;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 18px, 1180px);
    padding-top: 9px;
  }

  .hero,
  .panel {
    padding: 18px;
  }

  .field-grid,
  .plan-step,
  .feedback-card {
    grid-template-columns: 1fr;
  }

  .roi-pill {
    width: max-content;
  }
}
