.cfout-page {
  max-width: 1180px;
}

.cfout-lead {
  font-size: 17px;
  max-width: 65ch;
}

.cfout-next {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ced8e4;
  background: #f5f8fc;
  padding: 24px;
  border-radius: 16px;
  margin: 12px 0 20px;
}

.cfout-next h2 {
  font-size: 25px;
  line-height: 1.2;
  margin: 4px 0 10px;
}

.cfout-eyebrow {
  font-weight: 700;
  letter-spacing: .08em;
  color: #465c72;
  font-size: 11px;
}

.cfout-steps,.cfout-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr));
  gap: 16px;
  margin: 24px 0;
}

.cfout-card,.cfout-summary {
  background: white;
  border: 1px solid #d1dce6;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
  min-width: 0;
}

.cfout-card h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 12px 0;
}

.cfout-step {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #102b42;
  color: white;
  font-weight: 700;
}

.cfout-card label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 600;
}

.cfout-card input:not([type=checkbox]),.cfout-card select {
  max-width: 100%;
  width: 100%;
  min-height: 40px;
  margin: 0 0 14px;
}

.cfout-card .button {
  white-space: normal;
  height: auto;
  min-height: 36px;
  margin: 3px 5px 3px 0;
}

.cfout-page p,.cfout-summary p,.cfout-next p {
  color: #3e5266;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.cfout-card summary {
  font-weight: 700;
  cursor: pointer;
}

.cfout-card pre {
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.cfout-result dl {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr));
  gap: 18px;
}

.cfout-result dt {
  font-weight: 700;
}

.cfout-result dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.cfout-result img {
  max-width: 100%;
  height: auto;
}

.cfout-summary h3 {
  margin-top: 0;
}

.cfout-card form+form {
  display: inline-block;
  margin: 6px 10px 6px 0;
}

.cfout-message {
  background: #fff8e7;
  padding: 16px;
  border-left: 3px solid #8a6415;
}

@media (max-width:600px) {
  .cfout-next {
    display: block;
    padding: 18px;
  }
  .cfout-next>.button {
    margin-top: 12px;
    white-space: normal;
  }
  .cfout-card,.cfout-summary {
    padding: 18px;
  }
  .cfout-next h2 {
    font-size: 22px;
  }
  .cfout-result dl {
    display: block;
  }
  .cfout-result dl>div {
    margin-bottom: 20px;
  }
}

/* Saved-content guidance follows the workspace palette and remains usable without scripts. */

.cfout-journey {
  display: grid;
  grid-template-columns: minmax(240px,.85fr) minmax(0,1.45fr);
  gap: 20px;
  align-items: start;
}

.cfout-group-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cfout-group-step>div {
  flex: 1;
  min-width: 0;
}

.cfout-group-step h2 {
  margin-top: 0!important;
}

.cfout-group-step details {
  max-width: 540px;
}

.cfout-card details {
  margin-top: 18px;
}

.cfout-card ol {
  padding-left: 22px;
}

.cfout-card li {
  line-height: 1.7;
  margin: 9px 0;
}

.cfout-result {
  padding: 16px;
  border-radius: 10px;
  background: var(--cf-mint,#edf4e9);
  margin: 16px 0;
}

.cfout-result dl {
  margin-bottom: 0;
}

.cfout-result dl:has(>div:only-child) {
  display: block;
}

.cfout-selected {
  margin: 20px 0 8px;
}

.cfout-card:target {
  scroll-margin-top: 25px;
}

.cfout-card form+form {
  display: block;
}

.cfout-card,.cfout-summary {
  background: var(--cf-surface,#fff);
  border-color: var(--cf-line,#d1dce6);
}

.cfout-page p,.cfout-summary p,.cfout-next p {
  color: var(--cf-muted,#3e5266);
}

.cfout-step {
  background: var(--cf-accent,#176344);
}

.cf-studio-ready[data-cf-theme=dark] .cfout-step {
  color: #15281f;
}

.cfout-message {
  background: var(--cf-mint,#fff8e7);
  border-left-color: var(--cf-accent,#8a6415);
}

.cfout-eyebrow {
  color: var(--cf-muted,#465c72);
}

.cf-builder-next {
  display: flex;
  gap: 8px 18px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--cf-line,#d9e4da);
  border-radius: 10px;
  background: var(--cf-mint,#e7f3e7);
  padding: 12px 16px;
  margin: 0 0 16px;
  font-size: 13px;
}

.cf-builder-next[hidden] {
  display: none!important;
}

.cf-builder-next>a {
  margin-left: auto;
  font-weight: 600;
}

.cf-builder-next>a[aria-disabled=true] {
  cursor: default;
  color: var(--cf-muted,#52675b);
  text-decoration: none;
}

.cf-builder-next>noscript {
  width: 100%;
}

@media (max-width:850px) {
  .cfout-journey {
    display: block;
  }
  .cf-builder-next>a {
    margin-left: 0;
  }
}

.cfout-goal-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:12px; margin:20px 0; }
.cfout-goal-options label { display:flex; align-items:flex-start; gap:10px; border:1px solid var(--cf-line,#d1dce6); border-radius:10px; padding:16px; margin:0; cursor:pointer; }
.cfout-goal-options label:has(input:checked) { border-color:var(--cf-accent,#176344); background:var(--cf-mint,#edf4e9); }
.cfout-card .cfout-goal-options input[type=radio] { flex:0 0 16px; width:16px; min-height:16px; height:16px; margin:3px 0 0; }
.cfout-goal-options small { display:block; font-size:13px; line-height:1.6; margin-top:6px; font-weight:400; color:var(--cf-muted,#3e5266); }
