:root {
  color: #263645;
  background: #eef3f7;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible { outline: 3px solid #84c7ff; outline-offset: 2px; }
svg { width: 18px; height: 18px; }

.review-shell { min-height: 100vh; padding: 18px; }
.review-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1440px;
  margin: 0 auto 12px;
  color: #536578;
  font-size: 12px;
}
.review-bar__label { display: flex; align-items: center; gap: 8px; }
.review-bar__label > span { width: 9px; height: 9px; border-radius: 50%; background: #f5a524; }
.review-bar strong { color: #147bc0; letter-spacing: .08em; font-size: 11px; }
.review-bar small { color: #8291a1; }
.review-bar label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.review-bar select {
  color: #36485a;
  background: #fff;
  border: 1px solid #d6e0e8;
  border-radius: 7px;
  min-height: 34px;
  padding: 0 28px 0 10px;
}

.portal-canvas {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  overflow: hidden;
  max-width: 1440px;
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  background: #f5f8fa;
  border: 1px solid #dbe5eb;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(32, 54, 73, .12);
}
.portal-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 22px 10px;
  color: #bfd4e5;
  background: linear-gradient(180deg, #20486b, #173856);
  font-size: 10px;
  font-weight: 700;
}
.portal-mark {
  display: grid;
  width: 36px;
  height: 36px;
  color: #fff;
  background: #3caeea;
  border-radius: 11px;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
}

.native-deal { min-width: 0; padding: 32px 34px 54px; }
.native-deal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 8px; color: #8b9aab; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.native-deal h1 { margin: 0; color: #263645; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.025em; }
.native-deal__crumb { margin: 8px 0 0; color: #8c9baa; font-size: 13px; }
.native-deal__header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  color: #65788a;
  background: #fff;
  border: 1px solid #dce6ed;
  border-radius: 9px;
  place-items: center;
}
.icon-button:hover { color: #247eb6; border-color: #a9d5ee; }
.toolbar-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  color: #176b9d;
  background: #f7fcff;
  border: 1px solid #42b8ef;
  border-radius: 9px;
  padding: 0 13px;
  box-shadow: 0 3px 8px rgba(27, 140, 194, .08);
  font-size: 13px;
  font-weight: 750;
}
.toolbar-button:hover { color: #075f94; background: #ecf9ff; }

.native-deal__stage { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 7px; margin-top: 32px; }
.native-deal__stage span { padding: 12px 14px; color: #708091; background: #e7edf1; border-radius: 7px; font-size: 12px; font-weight: 700; }
.native-deal__stage .is-current { color: #176c9e; background: #edf9ff; box-shadow: inset 0 -3px #36b7ee; }
.native-tabs { display: flex; gap: 23px; overflow: auto; margin: 23px -34px 0; padding: 0 34px; border-bottom: 1px solid #dce5ea; }
.native-tabs span { flex: none; padding: 0 0 14px; color: #778695; border-bottom: 2px solid transparent; font-size: 14px; }
.native-tabs .is-active { color: #1779b1; border-color: #42b9ee; font-weight: 750; }

.native-grid { display: grid; grid-template-columns: minmax(300px, 1.2fr) minmax(260px, .8fr); gap: 16px; max-width: 1010px; margin-top: 26px; }
.native-card { background: #fff; border: 1px solid #e1e9ee; border-radius: 14px; padding: 20px; box-shadow: 0 4px 14px rgba(33, 55, 73, .035); }
.native-card__heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #e8eef2; }
.native-card__heading h2 { margin: 0; color: #526272; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.native-card__heading span { color: #8c9aa8; font-size: 11px; }
.native-fields { display: grid; gap: 17px; margin: 20px 0 0; }
.native-fields div { display: grid; gap: 5px; }
.native-fields dt { color: #96a4b1; font-size: 12px; }
.native-fields dd { margin: 0; color: #415364; font-size: 16px; }
.native-fields .native-amount { color: #32465a; font-size: 28px; letter-spacing: -.02em; }
.native-card--products { align-self: start; }
.product-line { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 18px; }
.product-line__icon { display: grid; width: 34px; height: 34px; color: #218fbd; background: #e6f7ff; border-radius: 8px; place-items: center; }
.product-line strong, .product-line small { display: block; }
.product-line strong { color: #425467; font-size: 13px; line-height: 1.35; }
.product-line small { margin-top: 4px; color: #9aa7b2; font-size: 11px; }
.product-line b { grid-column: 2; color: #5a6b79; font-size: 13px; }
.native-card--activity { grid-column: 1 / -1; max-width: 675px; }
.native-card--activity p { margin: 17px 0 12px; color: #607284; font-size: 14px; }
.native-link { color: #197cb4; background: transparent; border: 0; padding: 0; font-size: 13px; font-weight: 700; }

.action-slider {
  position: fixed;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(640px, 100vw);
  overflow: auto;
  background: #fff;
  border-left: 1px solid #d9e4eb;
  box-shadow: -18px 0 48px rgba(22, 47, 68, .2);
}
.action-slider__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid #e7eef2; }
.action-slider__header strong, .action-slider__header small { display: block; }
.action-slider__header strong { color: #283949; font-size: 18px; }
.action-slider__header small { margin-top: 4px; color: #8493a0; font-size: 11px; }
.action-slider__context { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 12px 24px; color: #708191; background: #f5f9fb; border-bottom: 1px solid #e4edf2; font-size: 11px; }
.action-slider__context strong { overflow: hidden; color: #435668; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.action-slider__context b { color: #1e82b8; background: #e5f6ff; border-radius: 999px; padding: 4px 7px; font-size: 10px; }
.slider-content { padding: 27px 28px 38px; }
.slider-kicker { margin: 0 0 8px; color: #2d99cf; letter-spacing: .1em; font-size: 10px; font-weight: 800; }
.slider-content h2 { margin: 0; color: #2b3c4b; font-size: 25px; letter-spacing: -.02em; }
.slider-copy { margin: 10px 0 22px; color: #758596; font-size: 14px; line-height: 1.5; }
.action-list { display: grid; gap: 10px; }
.action-row { display: grid; grid-template-columns: 43px minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; color: #34485a; text-align: left; background: #fff; border: 1px solid #dce7ed; border-radius: 11px; padding: 13px; }
.action-row:hover { border-color: #54bfea; background: #fbfeff; box-shadow: 0 8px 17px rgba(36, 130, 180, .08); }
.action-row__icon { display: grid; width: 43px; height: 43px; color: #187dac; background: #e8f7fe; border-radius: 10px; place-items: center; }
.action-row strong, .action-row small { display: block; }
.action-row strong { font-size: 14px; }
.action-row small { margin-top: 4px; color: #8796a3; font-size: 11px; line-height: 1.35; }
.action-row i { color: #9aacb9; }
.source-note { margin: 22px 0 0; color: #8493a0; font-size: 11px; line-height: 1.5; }
.back-link { margin: 0 0 21px; color: #237dab; background: transparent; border: 0; padding: 0; font-size: 12px; font-weight: 700; }
.field-label { display: grid; gap: 7px; margin-top: 15px; color: #667889; font-size: 12px; font-weight: 700; }
.field-label select { min-height: 43px; color: #374b5d; background: #fff; border: 1px solid #d3e0e7; border-radius: 9px; padding: 0 12px; }
.offer-options { display: grid; gap: 8px; margin-top: 18px; }
.offer-option { display: flex; justify-content: space-between; gap: 13px; color: #3b4d5e; text-align: left; background: #fff; border: 1px solid #dbe6ec; border-radius: 10px; padding: 12px; }
.offer-option:hover, .offer-option.is-selected { border-color: #41b7e9; background: #f3fbff; }
.offer-option strong, .offer-option small { display: block; }
.offer-option strong { font-size: 13px; }
.offer-option small { margin-top: 4px; color: #8393a1; font-size: 11px; }
.offer-option b { flex: none; color: #237ba8; font-size: 13px; }
.offer-preview, .blocked-box, .confirm-box, .read-only-fact { display: flex; gap: 11px; margin-top: 17px; padding: 13px; border-radius: 10px; }
.offer-preview { color: #316f56; background: #ebf9f1; border: 1px solid #cfeeda; }
.offer-preview > span, .blocked-box > span { flex: none; }
.offer-preview strong, .blocked-box strong { display: block; font-size: 13px; }
.offer-preview p, .blocked-box p { margin: 5px 0 0; font-size: 12px; line-height: 1.45; }
.blocked-box { color: #804950; background: #fff4f4; border: 1px solid #f3d1d4; }
.confirm-box { display: block; color: #526779; background: #f4f8fa; border: 1px solid #dce7ec; }
.confirm-box strong { font-size: 13px; }
.confirm-box p { margin: 6px 0 12px; color: #758594; font-size: 12px; line-height: 1.45; }
.read-only-fact { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; background: #f4f8fa; border: 1px solid #e0e9ee; }
.read-only-fact span { color: #8998a5; font-size: 11px; }
.read-only-fact strong { color: #3c5265; font-size: 15px; }
.primary-button, .secondary-button { min-height: 42px; border-radius: 9px; padding: 0 15px; font-size: 13px; font-weight: 750; }
.primary-button { width: 100%; margin-top: 18px; color: #fff; background: #218bc6; border: 1px solid #218bc6; }
.primary-button:hover { background: #107bb6; }
.secondary-button { color: #287ba7; background: #f2f8fb; border: 1px solid #cfe4ef; }
.result-panel { max-width: 480px; padding-top: 54px; }
.result-panel__icon { display: grid; width: 46px; height: 46px; color: #2d9b6b; background: #e6f8ef; border-radius: 50%; place-items: center; }
.result-panel p:not(.slider-kicker):not(.source-note) { color: #657889; font-size: 14px; line-height: 1.5; }
.result-panel .secondary-button { margin-top: 19px; }

@media (max-width: 900px) {
  .native-deal { padding: 24px; }
  .native-tabs { margin-right: -24px; margin-left: -24px; padding-right: 24px; padding-left: 24px; }
  .native-grid { grid-template-columns: 1fr; }
  .native-card--activity { grid-column: auto; max-width: none; }
  .native-deal__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .review-shell { padding: 9px; }
  .review-bar { align-items: flex-start; flex-direction: column; }
  .portal-canvas { grid-template-columns: 1fr; border-radius: 12px; }
  .portal-rail { display: none; }
  .native-deal__header { flex-direction: column; }
  .native-deal__header-actions { width: 100%; justify-content: space-between; }
  .toolbar-button { flex: 1; justify-content: center; }
  .action-slider { width: 100vw; }
  .slider-content { padding: 22px 20px 30px; }
  .action-slider__header, .action-slider__context { padding-right: 20px; padding-left: 20px; }
}
