*{box-sizing:border-box}html,body{margin:0;font-family:Arial,sans-serif}
.page {
  min-height: 100vh;
  color: #112e2d;
  background:
    radial-gradient(circle at 78% -12%, rgba(104, 214, 186, 0.22), transparent 33rem),
    linear-gradient(180deg, #eaf7f4 0, #f6faf8 30rem, #eef4f1 100%);
  font-family: var(--font-sans), Arial, sans-serif;
}

.shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(16, 65, 62, 0.15);
}

.brandLine {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brandMark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  color: #effffb;
  background: #123f3c;
  font-family: var(--font-display), sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow,
.sectionIndex {
  color: #4f706d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header h1 {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.header > div:first-child > p {
  max-width: 600px;
  margin: 16px 0 0;
  color: #56706e;
  font-size: 15px;
}

.runControl {
  display: flex;
  min-width: 310px;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(28, 91, 85, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 45px rgba(20, 68, 64, 0.07);
  backdrop-filter: blur(14px);
}

.runControl label,
.filters label > span,
.cabinFilters > span {
  color: #64807d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.runControl select,
.filters select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #163c39;
  background: transparent;
  font: 600 13px var(--font-sans), sans-serif;
}

.liveState {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: #3e6e68;
  font-size: 11px;
}

.liveState i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fb486;
  box-shadow: 0 0 0 4px rgba(47, 180, 134, 0.13);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(24, 77, 73, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 60px rgba(23, 71, 68, 0.06);
}

.metrics article {
  min-height: 128px;
  padding: 22px 24px;
  border-right: 1px solid rgba(24, 77, 73, 0.1);
}

.metrics article:last-child { border-right: 0; }

.metrics article > span,
.cabinRange span,
.opportunityPrice span,
.conclusionGrid article > span {
  display: block;
  color: #66817e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin: 9px 0 6px;
  font-family: var(--font-display), sans-serif;
  font-size: 33px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.metrics small { color: #6a807e; font-size: 11px; }
.metrics .positiveMetric strong { color: #118460; }

.section { margin-top: 54px; }

.sectionHeading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.sectionHeading > div {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.sectionHeading h2 {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.sectionHeading p {
  margin: 0;
  color: #728783;
  font-size: 12px;
}

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

.opportunityCard,
.noOpportunity {
  min-height: 240px;
  padding: 23px;
  border-radius: 18px;
  color: #eafff9;
  background:
    radial-gradient(circle at 100% 0, rgba(89, 224, 180, 0.24), transparent 16rem),
    #143e3b;
  box-shadow: 0 22px 55px rgba(14, 54, 51, 0.14);
}

.opportunityTopline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(229, 255, 247, 0.5);
  font: 700 10px var(--font-sans), sans-serif;
  letter-spacing: 0.12em;
}

.verifiedBadge {
  padding: 6px 9px;
  border-radius: 999px;
  color: #a8ffdc;
  background: rgba(67, 222, 170, 0.13);
  text-transform: uppercase;
}

.opportunityCard h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 25px 0 4px;
  font: 500 28px var(--font-display), sans-serif;
  letter-spacing: -0.03em;
}

.opportunityCard h3 i {
  width: 34px;
  height: 1px;
  background: #6cd8b6;
}

.opportunityCard > p {
  margin: 0;
  color: rgba(226, 255, 247, 0.6);
  font-size: 12px;
}

.opportunityPrice {
  margin-top: 24px;
}

.opportunityPrice strong {
  display: block;
  margin-bottom: 2px;
  font: 500 30px var(--font-display), sans-serif;
}

.opportunityPrice span { color: rgba(226, 255, 247, 0.45); }

.savingLine {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(211, 255, 242, 0.12);
}

.savingLine strong { color: #83efcb; font-size: 15px; }
.savingLine span { color: rgba(226, 255, 247, 0.56); font-size: 10px; }

.noOpportunity {
  display: grid;
  min-height: 130px;
  place-items: center;
  grid-column: 1 / -1;
  color: rgba(232, 255, 248, 0.66);
}

.cabinGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cabinCard {
  min-width: 0;
  padding: 21px 21px 17px;
  overflow: hidden;
  border: 1px solid rgba(20, 71, 67, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 46px rgba(20, 63, 60, 0.055);
}

.cabinCardHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.cabinCardHeader > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cabinCode,
.tableCabin {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: #24544f;
  background: #d9efea;
  font-size: 10px;
  font-weight: 800;
}

.cabinCard[data-cabin="S"] .cabinCode,
.tableCabin[data-cabin="S"] { color: #695224; background: #f5e8c8; }
.cabinCard[data-cabin="C"] .cabinCode,
.tableCabin[data-cabin="C"] { color: #354f77; background: #dfe9f7; }
.cabinCard[data-cabin="F"] .cabinCode,
.tableCabin[data-cabin="F"] { color: #5e446d; background: #eee1f4; }

.cabinCard h3 {
  margin: 0;
  font: 600 16px var(--font-display), sans-serif;
}

.cabinRange { text-align: right; }
.cabinRange strong { display: block; margin-top: 5px; font-size: 12px; }

.priceBars {
  display: flex;
  height: 170px;
  gap: 9px;
  margin-top: 21px;
  padding-top: 13px;
  overflow-x: auto;
  border-top: 1px solid rgba(23, 72, 68, 0.08);
}

.barItem {
  display: grid;
  min-width: 60px;
  flex: 1;
  grid-template-rows: 18px 1fr 18px 15px;
  text-align: center;
}

.barPrice { font-size: 9px; font-weight: 700; }

.barTrack {
  position: relative;
  width: 14px;
  height: 96px;
  align-self: end;
  justify-self: center;
  overflow: hidden;
  border-radius: 8px 8px 3px 3px;
  background: #e3eeeb;
}

.barFill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 12px;
  border-radius: inherit;
  background: #8fb4ad;
}

.barFill[data-status="confirmed"] { background: #1bb17f; }
.barFill[data-status="changed"] { background: #e99754; }
.barFill[data-status="candidate"] { background: #4d8e85; }
.barDate { color: #496964; font-size: 9px; font-weight: 700; }
.barRoute { color: #839692; font-size: 8px; }

.legend {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  color: #637b77;
  font-size: 10px;
}

.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; background: #8fb4ad; }
.legend i[data-tone="verified"] { background: #1bb17f; }
.legend i[data-tone="changed"] { background: #e99754; }

.filters {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(24, 77, 73, 0.11);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.66);
}

.filters label { display: grid; min-width: 210px; gap: 7px; }

.cabinFilters { display: flex; align-items: center; gap: 13px; }
.cabinFilters > div { display: flex; gap: 5px; }

.cabinFilters button {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #607a76;
  background: transparent;
  font: 600 11px var(--font-sans), sans-serif;
  cursor: pointer;
}

.cabinFilters button:hover { background: #edf5f2; }
.cabinFilters button[data-active="true"] {
  border-color: rgba(29, 104, 95, 0.12);
  color: #153e3a;
  background: #dfefeb;
}

.tableWrap {
  overflow-x: auto;
  border: 1px solid rgba(24, 77, 73, 0.11);
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(20, 63, 60, 0.05);
}

.tableWrap table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.tableWrap th {
  padding: 13px 15px;
  color: #718681;
  background: rgba(232, 243, 239, 0.55);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

.tableWrap td {
  padding: 13px 15px;
  border-top: 1px solid rgba(26, 75, 71, 0.075);
  color: #45635f;
  font-size: 11px;
  white-space: nowrap;
}

.tableWrap tbody tr:hover { background: rgba(224, 242, 236, 0.42); }
.tableWrap tr[data-status="confirmed"] { background: rgba(215, 246, 233, 0.45); }
.tableWrap td:first-child { color: #183f3b; }
.routeArrow { padding: 0 7px; color: #87a39f; }
.tableCabin { width: 22px; height: 22px; margin-right: 7px; border-radius: 6px; }
.priceCell { color: #173f3a !important; font-weight: 800; }
.tableWrap td[data-delta="down"] { color: #0c8b60; font-weight: 700; }
.tableWrap td[data-delta="up"] { color: #b36a35; }

.statusPill {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 999px;
  color: #627c77;
  background: #eef4f2;
  font-size: 9px;
  font-weight: 700;
}

.statusPill[data-status="confirmed"] { color: #087550; background: #d8f3e8; }
.statusPill[data-status="changed"] { color: #a45725; background: #f9e5d8; }
.statusPill[data-status="candidate"] { color: #276d65; background: #dceeea; }

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

.conclusionGrid article {
  min-height: 190px;
  padding: 21px;
  border: 1px solid rgba(24, 77, 73, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
}

.conclusionGrid article[data-tone="positive"] {
  border-color: rgba(31, 152, 112, 0.25);
  background: linear-gradient(150deg, rgba(220, 247, 238, 0.9), rgba(255, 255, 255, 0.75));
}

.conclusionGrid article[data-tone="warning"] {
  background: linear-gradient(150deg, rgba(252, 237, 220, 0.8), rgba(255, 255, 255, 0.75));
}

.conclusionGrid h3 {
  margin: 20px 0 10px;
  font: 550 19px/1.2 var(--font-display), sans-serif;
  letter-spacing: -0.02em;
}

.conclusionGrid p {
  margin: 0;
  color: #637d78;
  font-size: 11px;
  line-height: 1.65;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 72, 68, 0.12);
  color: #7a8d89;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emptyPage {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #edf7f4;
}

.emptyCard {
  width: min(480px, calc(100% - 32px));
  padding: 40px;
  border: 1px solid rgba(24, 77, 73, 0.13);
  border-radius: 20px;
  background: white;
  text-align: center;
}

.emptyCard h1 { margin: 12px 0 8px; font-family: var(--font-display), sans-serif; }
.emptyCard p { margin: 0; color: #607a76; }

@media (max-width: 1040px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n + 2) { border-bottom: 1px solid rgba(24, 77, 73, 0.1); }
  .conclusionGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1480px); padding-top: 24px; }
  .header { align-items: stretch; flex-direction: column; }
  .runControl { min-width: 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article { min-height: 110px; padding: 18px; }
  .metrics strong { font-size: 28px; }
  .section { margin-top: 40px; }
  .sectionHeading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .opportunityGrid, .cabinGrid, .conclusionGrid { grid-template-columns: 1fr; }
  .filters { align-items: stretch; flex-direction: column; }
  .cabinFilters { align-items: flex-start; flex-direction: column; }
  .cabinFilters > div { width: 100%; overflow-x: auto; }
  .footer { flex-direction: column; gap: 7px; }
}
