/* Scene 6 refresh, a calm action workspace with clear trust, review and approval states. */
body[data-scene="6"] {
  --action-ink: #102049;
  --action-muted: #5d6b88;
  --action-line: #e2e7f0;
  --action-blue: #165eea;
  --action-mint: #14ad91;
  --action-purple: #6759d8;
  background: #f7f8fb;
}

body[data-scene="6"] #main {
  max-width: 1500px;
  padding: 30px clamp(18px, 3.2vw, 52px) 48px;
  color: var(--action-ink);
}

body[data-scene="6"] #main::before {
  top: 0;
  right: 2%;
  left: 2%;
  height: 142px;
  margin: 0;
  border-radius: 0 0 36px 36px;
  background: linear-gradient(105deg, #eef5ff 0%, #f8fbff 58%, rgb(247 248 251 / 0%) 100%);
}

body[data-scene="6"] .page-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

body[data-scene="6"] .page-heading h1,
body[data-scene="6"] .page-heading .title {
  margin-bottom: 5px;
  color: var(--action-ink);
  font-size: clamp(27px, 2.2vw, 34px);
  letter-spacing: -.9px;
}

body[data-scene="6"] .page-heading .small {
  color: #4d5f83;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

body[data-scene="6"] .page-heading .lead {
  margin: 0;
  color: var(--action-muted);
  font-size: 15px;
}

body[data-scene="6"] .action-intelligence-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.02fr) minmax(370px, 1.12fr) minmax(285px, .78fr);
  align-items: start;
  gap: 18px;
}

body[data-scene="6"] .action-intelligence-layout > * {
  min-width: 0;
}

body[data-scene="6"] .action-intelligence-primary,
body[data-scene="6"] .action-intelligence-rail {
  gap: 16px;
}

body[data-scene="6"] .action-intelligence-layout .card {
  border-color: var(--action-line);
  border-radius: 13px;
  box-shadow: 0 3px 10px rgb(19 38 75 / 6%);
}

body[data-scene="6"] .action-answer-card {
  gap: 15px;
  border-top: 4px solid var(--action-mint) !important;
}

body[data-scene="6"] .action-card-kicker,
body[data-scene="6"] .action-recommendation-heading,
body[data-scene="6"] .action-guidance-heading,
body[data-scene="6"] .action-receipt-heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

body[data-scene="6"] .action-card-kicker {
  align-items: center;
  color: #47618b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body[data-scene="6"] .action-card-kicker > span:nth-child(2) {
  flex: 1;
}

body[data-scene="6"] .action-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: #e4fbf5;
  color: #087866;
}

body[data-scene="6"] .action-card-icon svg,
body[data-scene="6"] .action-guidance-icon svg,
body[data-scene="6"] .action-receipt-icon svg,
body[data-scene="6"] .action-empty-icon svg,
body[data-scene="6"] .action-callout-icon svg,
body[data-scene="6"] .action-rationale-icon svg {
  width: 17px;
  height: 17px;
}

body[data-scene="6"] .action-answer-card h2 {
  max-width: 470px;
  margin: 0;
  color: var(--action-ink);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.35;
  letter-spacing: -.45px;
}

body[data-scene="6"] .action-source-link .btn.link,
body[data-scene="6"] .action-rationale-card .btn.link {
  color: var(--action-blue);
  font-weight: 700;
}

body[data-scene="6"] .action-recommendation-heading {
  align-items: center;
  color: var(--action-ink);
}

body[data-scene="6"] .action-recommendation-heading .action-card-icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-radius: 50%;
  background: #edf2ff;
  color: var(--action-blue);
}

body[data-scene="6"] .action-answer-card p {
  color: #25375d;
  line-height: 1.65;
}

body[data-scene="6"] .action-card-actions {
  gap: 9px;
  margin-top: 2px;
}

body[data-scene="6"] .action-card-actions .btn.primary,
body[data-scene="6"] .action-review-callout .btn.primary,
body[data-scene="6"] .action-form-actions .btn.primary,
body[data-scene="6"] .action-intelligence-rail > .btn.primary {
  background: #092b57;
  border-color: #092b57;
  box-shadow: 0 3px 8px rgb(9 43 87 / 14%);
}

body[data-scene="6"] .action-card-actions .btn.primary:hover,
body[data-scene="6"] .action-review-callout .btn.primary:hover,
body[data-scene="6"] .action-form-actions .btn.primary:hover,
body[data-scene="6"] .action-intelligence-rail > .btn.primary:hover {
  background: #123d70;
  border-color: #123d70;
}

body[data-scene="6"] .action-rationale-card {
  gap: 13px;
}

body[data-scene="6"] .action-section-heading {
  display: grid;
  gap: 4px;
}

body[data-scene="6"] .action-section-heading strong {
  color: var(--action-ink);
}

body[data-scene="6"] .action-rationale-list {
  display: grid;
}

body[data-scene="6"] .action-rationale-row {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
  color: #25375d;
  font-size: 13px;
  line-height: 1.55;
}

body[data-scene="6"] .action-rationale-row:last-child {
  border-bottom: 0;
}

body[data-scene="6"] .action-rationale-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf5ff;
  color: var(--action-blue);
}

body[data-scene="6"] .action-plan-card {
  min-width: 0;
  border-top: 4px solid #0a315e !important;
}

body[data-scene="6"] .action-plan-header {
  align-items: flex-start;
  margin-bottom: 13px;
}

body[data-scene="6"] .action-plan-header > div {
  display: grid;
  gap: 4px;
}

body[data-scene="6"] .action-plan-header strong {
  color: var(--action-ink);
  font-size: 20px;
  letter-spacing: -.25px;
}

body[data-scene="6"] .action-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 11px 0 16px;
}

body[data-scene="6"] .action-flow-step {
  display: grid;
  gap: 7px;
  justify-items: start;
  min-width: 0;
}

body[data-scene="6"] .action-flow-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf0f5;
  color: #65718a;
  font-size: 12px;
  font-weight: 800;
}

body[data-scene="6"] .action-flow-step.complete > span {
  background: #daf5e9;
  color: #08745b;
}

body[data-scene="6"] .action-flow-step.current > span {
  background: var(--action-blue);
  color: #fff;
  box-shadow: 0 0 0 4px #e4edff;
}

body[data-scene="6"] .action-flow-step strong,
body[data-scene="6"] .action-flow-step small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-scene="6"] .action-flow-step strong {
  color: var(--action-ink);
  font-size: 12px;
  line-height: 1.35;
}

body[data-scene="6"] .action-flow-step small {
  margin-top: 3px;
  color: var(--action-muted);
  font-size: 11px;
  line-height: 1.4;
}

body[data-scene="6"] .action-flow-connector {
  height: 1px;
  margin-top: 13px;
  background: #cbd5e5;
}

body[data-scene="6"] .action-form-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 3px;
}

body[data-scene="6"] .action-form-heading strong {
  color: var(--action-ink);
  font-size: 15px;
}

body[data-scene="6"] .action-plan-card .field {
  margin: 10px 0;
  color: #364b70;
  font-size: 13px;
  font-weight: 700;
}

body[data-scene="6"] .action-plan-card .field input,
body[data-scene="6"] .action-plan-card .field textarea {
  margin-top: 6px;
  border-color: #d4dce8;
}

body[data-scene="6"] .action-source-card {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 5px 12px;
  margin-top: 4px;
  padding: 13px;
  background: #f8fafc;
  box-shadow: none;
  font-size: 12px;
}

body[data-scene="6"] .action-source-card strong {
  color: #51617e;
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

body[data-scene="6"] .action-source-card p {
  margin: 0;
  color: var(--action-ink);
}

body[data-scene="6"] .action-form-actions {
  margin-top: 3px;
}

body[data-scene="6"] .action-review-callout,
body[data-scene="6"] .action-submitted-callout {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 14px;
  border-color: #afeadd;
  background: #ecfffb;
}

body[data-scene="6"] .action-callout-icon,
body[data-scene="6"] .action-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d4f8ee;
  color: #087866;
}

body[data-scene="6"] .action-review-callout p,
body[data-scene="6"] .action-submitted-callout p {
  margin: 5px 0 11px;
  color: #315773;
  font-size: 13px;
  line-height: 1.55;
}

body[data-scene="6"] .action-review-callout .btn {
  width: fit-content;
}

body[data-scene="6"] .action-submitted-callout {
  border-color: #b9e4d0;
  background: #eefaf4;
}

body[data-scene="6"] .action-submitted-callout .action-callout-icon {
  background: #d9f3e5;
  color: #14765b;
}

body[data-scene="6"] .action-intelligence-rail {
  align-self: start;
}

body[data-scene="6"] .action-empty-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 3px 11px;
  align-items: center;
  padding: 18px;
  border-top: 4px solid #d3dced !important;
}

body[data-scene="6"] .action-empty-card .action-empty-icon {
  grid-row: 1 / span 2;
  width: 35px;
  height: 35px;
  background: #edf2ff;
  color: var(--action-blue);
}

body[data-scene="6"] .action-empty-card p {
  margin: 0;
  color: var(--action-muted);
  font-size: 12px;
  line-height: 1.5;
}

body[data-scene="6"] .action-receipt-card {
  padding: 19px;
  border-color: #b9e4d0 !important;
  border-top: 4px solid #1da774 !important;
  background: linear-gradient(145deg, #f3fcf7 0%, #fff 74%);
}

body[data-scene="6"] .action-receipt-heading {
  align-items: center;
  margin-bottom: 15px;
}

body[data-scene="6"] .action-receipt-heading strong {
  display: block;
  color: #146448;
  font-size: 16px;
}

body[data-scene="6"] .action-receipt-heading p {
  margin: 3px 0 0;
  color: #4f7668;
  font-size: 12px;
}

body[data-scene="6"] .action-receipt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #d8f2e3;
  color: #14765b;
}

body[data-scene="6"] .action-receipt-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #d7eadf;
  border-bottom: 1px solid #d7eadf;
}

body[data-scene="6"] .action-receipt-details div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body[data-scene="6"] .action-receipt-details span {
  color: #5b7b6e;
  font-size: 11px;
}

body[data-scene="6"] .action-receipt-details strong {
  color: #174f3d;
  font-size: 12px;
  overflow-wrap: anywhere;
}

body[data-scene="6"] .action-receipt-card > .btn {
  width: 100%;
  margin-top: 14px;
}

body[data-scene="6"] .action-next-card {
  gap: 12px;
}

body[data-scene="6"] .action-next-card ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-scene="6"] .action-next-card li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

body[data-scene="6"] .action-next-card li strong,
body[data-scene="6"] .action-next-card li small {
  display: block;
}

body[data-scene="6"] .action-next-card li small {
  margin-top: 3px;
  color: var(--action-muted);
  font-size: 11px;
  line-height: 1.45;
}

body[data-scene="6"] .action-next-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid #cfd7e5;
  border-radius: 50%;
  color: #758099;
  font-size: 11px;
  font-weight: 800;
}

body[data-scene="6"] .action-next-marker.complete {
  border-color: #b9e4d0;
  background: #ddf4ea;
  color: #14765b;
}

body[data-scene="6"] .action-next-marker.current {
  border-color: #b8cbff;
  background: #edf2ff;
  color: var(--action-blue);
}

body[data-scene="6"] .action-guidance-compact {
  margin-top: 0;
  border-top: 4px solid var(--action-purple) !important;
}

body[data-scene="6"] .action-guidance-header {
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

body[data-scene="6"] .action-guidance-heading {
  min-width: 0;
}

body[data-scene="6"] .action-guidance-heading strong {
  color: var(--action-ink);
  font-size: 15px;
}

body[data-scene="6"] .action-guidance-heading p {
  margin: 3px 0 0;
  line-height: 1.45;
}

body[data-scene="6"] .action-guidance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: #eeeaff;
  color: var(--action-purple);
}

body[data-scene="6"] .action-guidance-list {
  display: grid;
  gap: 0;
}

body[data-scene="6"] .action-guidance-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 12px 0;
}

body[data-scene="6"] .action-guidance-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0efff;
  color: var(--action-purple);
  font-size: 10px;
  font-weight: 800;
}

body[data-scene="6"] .action-guidance-copy {
  min-width: 0;
}

body[data-scene="6"] .action-guidance-copy p {
  margin: 3px 0 0;
  line-height: 1.45;
}

body[data-scene="6"] .action-guidance-row > .btn {
  align-self: center;
  padding-right: 0;
  padding-left: 6px;
  font-size: 12px;
  white-space: nowrap;
}

body[data-scene="6"] .action-guidance-compact > .btn {
  margin-top: 7px;
}

@media (max-width: 1180px) and (min-width: 721px) {
  body[data-scene="6"] .action-intelligence-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .94fr);
  }

  body[data-scene="6"] .action-plan-card {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  body[data-scene="6"] .action-intelligence-rail {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 720px) {
  body[data-scene="6"] .action-intelligence-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  body[data-scene="6"] .action-intelligence-layout > .action-intelligence-primary {
    order: 1;
  }

  body[data-scene="6"] .action-intelligence-layout > .action-plan-card {
    order: 2;
  }

  body[data-scene="6"] .action-intelligence-layout > aside.action-intelligence-rail {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 620px) {
  body[data-scene="6"] #main {
    padding: 21px 12px 42px;
  }

  body[data-scene="6"] .page-heading {
    margin-bottom: 18px;
  }

  body[data-scene="6"] .page-heading h1,
  body[data-scene="6"] .page-heading .title {
    font-size: 26px;
  }

  body[data-scene="6"] .action-intelligence-layout .card {
    padding: 18px;
  }

  body[data-scene="6"] .action-card-actions,
  body[data-scene="6"] .action-form-actions {
    align-items: stretch;
  }

  body[data-scene="6"] .action-card-actions .btn,
  body[data-scene="6"] .action-form-actions .btn {
    flex: 1 1 auto;
  }

  body[data-scene="6"] .action-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body[data-scene="6"] .action-flow-step {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    column-gap: 9px;
    align-items: center;
  }

  body[data-scene="6"] .action-flow-step > span {
    grid-row: 1 / span 2;
  }

  body[data-scene="6"] .action-flow-connector {
    width: 1px;
    height: 12px;
    margin: 0 0 0 13px;
    background: #cbd5e5;
  }

  body[data-scene="6"] .action-source-card {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  body[data-scene="6"] .action-source-card p {
    margin-bottom: 7px;
  }

  body[data-scene="6"] .action-guidance-row {
    grid-template-columns: 25px minmax(0, 1fr);
  }

  body[data-scene="6"] .action-guidance-row > .btn {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
  }

  body[data-scene="6"] .action-receipt-details {
    grid-template-columns: 1fr 1fr;
  }
}
