.flow-hero {
  padding: 50px 0 38px;
  background: radial-gradient(900px 360px at 84% -20%, rgba(151,119,64,.06), transparent 62%), var(--paper);
  border-bottom: 1px solid var(--line);
}
.flow-hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: end; }
.flow-hero .ihq-kicker { margin-bottom: 20px; }
.flow-hero h1 { font-size: 44px; line-height: 1.16; letter-spacing: -.045em; font-weight: 700; margin: 0 0 18px; color: #0e1620; }
.flow-hero h1 span { color: var(--blue); }
.flow-hero .ihq-lede { max-width: 34em; margin-bottom: 0; }
.flow-hero-slim { padding: 42px 0 32px; }
.flow-hero-slim h1 { font-size: 40px; margin-bottom: 12px; }
.flow-hero-slim .ihq-lede { max-width: 46em; margin-bottom: 0; }

.flow-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gold); }
.flow-steps li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.flow-steps b { min-width: 20px; padding-top: 3px; font-size: 9px; letter-spacing: .12em; color: var(--gold); }
.flow-steps span { font-size: 12px; font-weight: 600; color: #1b2835; }
.flow-steps small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; line-height: 1.6; color: #8a939e; }

.flow-body { padding: 40px 0 60px; }
.flow-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.flow-aside { position: sticky; top: 24px; }
.flow-aside .ihq-sheet-label { margin-bottom: 12px; }
.flow-aside > p { font-size: 11.5px; line-height: 1.9; color: #5f6975; margin: 0 0 14px; }
.flow-aside ul { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.flow-aside li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10.5px; line-height: 1.8; color: #6b7480; }
.flow-aside li b { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 600; color: #39434e; }
.flow-aside-note { font-size: 9.5px !important; line-height: 1.8; color: #9aa3ad !important; background: #fffdf8; border: 1px solid #e5ddcc; padding: 12px 13px; }
.flow-aside .ihq-textlink { display: inline-block; font-size: 10.5px; }

.flow-card { background: #fff; border: 1px solid #e6e1d6; border-top: 3px solid var(--blue); padding: 34px 38px 32px; }

.flow-form .flow-sec { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid #efebe2; }
.flow-form .flow-sec:last-of-type { border-bottom: 0; padding-bottom: 6px; }
.flow-sec-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.flow-sec-head > b { padding-top: 4px; font-size: 9px; letter-spacing: .12em; color: var(--gold); }
.flow-sec-head h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: #1b2835; }
.flow-sec-head p { margin: 0; font-size: 10.5px; line-height: 1.6; color: #8a939e; }

.flow-field { display: block; margin-bottom: 15px; font-size: 10.5px; letter-spacing: .03em; color: #4f5a66; }
.flow-field i { font-style: normal; color: var(--gold); margin-left: 2px; }
.flow-field input, .flow-field select, .flow-field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 11px;
  border: 1px solid #d9d3c7; background: #fffdf8; color: var(--ink);
  font-size: 12.5px; outline: none;
}
.flow-field textarea { line-height: 1.8; resize: vertical; min-height: 78px; }
.flow-field input:focus, .flow-field select:focus, .flow-field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,72,157,.1);
}
.flow-hint { display: block; margin-top: 5px; font-size: 9.5px; line-height: 1.6; letter-spacing: 0; color: #9aa3ad; }
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.flow-funding { display: flex; gap: 14px; align-items: flex-start; margin-top: 4px; padding: 12px 14px; background: #fffdf8; border-left: 3px solid var(--gold); }
.flow-funding b { padding-top: 1px; font-size: 10px; letter-spacing: .06em; color: var(--gold); white-space: nowrap; }
.flow-funding span { font-size: 10px; line-height: 1.8; color: #6b7480; }

.flow-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 10.5px; line-height: 1.8; color: #5f6975; }
.flow-check input { margin-top: 2px; accent-color: var(--blue); }
.flow-error { margin: 0 0 16px; padding: 10px 12px; background: #fdf3f0; border-left: 3px solid #a33b2b; font-size: 11px; line-height: 1.7; color: #a33b2b; }
.flow-submit { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.flow-submit p { margin: 0; font-size: 9.5px; line-height: 1.7; color: #9aa3ad; }

.flow-success { border-top-color: var(--gold); }
.flow-success-mark { display: inline-block; margin-bottom: 16px; padding: 4px 9px; background: var(--gold); color: #fff; font-size: 9px; letter-spacing: .14em; }
.flow-success h2 { margin: 12px 0 10px; font-family: var(--font-serif); font-size: 28px; font-weight: 600; line-height: 1.5; color: #172431; }
.flow-success > p { max-width: 44em; margin: 0; font-size: 12px; line-height: 1.95; color: #5f6975; }
.flow-receipt { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 22px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-receipt span { font-size: 9.5px; letter-spacing: .1em; color: #8a939e; }
.flow-receipt b { font-size: 15px; letter-spacing: .06em; color: #1b2835; }
.flow-steps-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 22px; background: #e8e1d4; border: 1px solid #e8e1d4; }
.flow-steps-inline li { display: block; padding: 14px; background: var(--cream); border: 0; }
.flow-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.flow-success .flow-aside-note { max-width: none; margin-top: 20px; }
.flow-success .ihq-textlink { display: inline-block; margin-top: 14px; font-size: 10.5px; }

.rv-warning { background: #17212b; color: #dfe5ec; }
.rv-warning .ihq-wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-size: 10px; letter-spacing: .03em; }
.rv-warning a { color: #d6bd88; }

.rv-body { padding: 30px 0 56px; }
.flow-tabs { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.flow-tabs .mkt-tabs { border-bottom: 0; }
.flow-tabs .ihq-textlink { margin-bottom: 12px; padding: 0 0 3px; border: 0; border-bottom: 1px solid #aeb6c0; background: transparent; color: #5f6975; font-size: 10px; cursor: pointer; }

.rv-list { display: flex; flex-direction: column; gap: 12px; }
.rv-item { background: #fff; border: 1px solid #e6e1d6; border-left: 3px solid var(--gold); }
.rv-item.is-approved { border-left-color: var(--blue); }
.rv-item.is-rejected { border-left-color: #b9b2a4; }
.rv-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 15px 18px; cursor: pointer; list-style: none; }
.rv-summary::-webkit-details-marker { display: none; }
.rv-type { padding: 3px 6px; border: 1px solid #e3d3b8; background: #fffdf8; font-size: 8.5px; letter-spacing: .08em; color: var(--gold); white-space: nowrap; }
.rv-name { flex: 1 1 240px; font-size: 12.5px; font-weight: 600; color: #1b2835; }
.rv-by { font-size: 10px; color: #6b7480; }
.rv-date { font-size: 9.5px; color: #9aa3ad; }
.rv-badge { padding: 3px 8px; border: 1px solid; font-size: 9px; letter-spacing: .04em; white-space: nowrap; }
.rv-badge.is-pending { color: var(--gold); border-color: #e3d3b8; background: #fffdf8; }
.rv-badge.is-approved { color: var(--blue); border-color: #ccd9e8; background: #f8fbff; }
.rv-badge.is-rejected { color: #8a939e; border-color: #ddd7ca; background: #f6f3ec; }
.rv-chevron { font-size: 11px; line-height: 1; color: #8a939e; transition: transform .18s ease; }
.rv-item[open] .rv-chevron { transform: rotate(180deg); }

.rv-detail { padding: 4px 18px 18px; border-top: 1px solid #efebe2; }
.rv-q { margin: 16px 0 10px; font-family: var(--font-serif); font-size: 18px; line-height: 1.7; color: #1b2835; }
.rv-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; font-size: 9.5px; color: #8a939e; }
.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e8e1d4; border: 1px solid #e8e1d4; }
.rv-block { padding: 14px 15px; background: #fffdf8; }
.rv-block b { display: block; margin-bottom: 6px; font-size: 9px; letter-spacing: .1em; color: var(--gold); }
.rv-block b:not(:first-child) { margin-top: 12px; }
.rv-block p { margin: 0; font-size: 10.5px; line-height: 1.8; color: #4f5a66; }
.rv-block ul { margin: 0; padding-left: 14px; font-size: 10.5px; line-height: 1.8; color: #4f5a66; }
.rv-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rv-tags span { padding: 2px 7px; border: 1px solid #e9e3d7; background: #f6f3ec; font-size: 9px; color: #6f7883; }

.rv-note { display: block; margin-top: 16px; font-size: 10px; color: #4f5a66; }
.rv-note textarea { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border: 1px solid #d9d3c7; background: #fff; font-size: 11.5px; line-height: 1.7; outline: none; resize: vertical; }
.rv-note textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,72,157,.1); }
.rv-note-read { margin-top: 16px; padding: 12px 14px; background: #f6f3ec; border-left: 3px solid #ddd7ca; }
.rv-note-read b { font-size: 9px; letter-spacing: .1em; color: #8a939e; }
.rv-note-read p { margin: 5px 0 0; font-size: 10.5px; line-height: 1.8; color: #4f5a66; }

.rv-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid #efebe2; }
.rv-tip { font-size: 9.5px; color: #9aa3ad; }
.rv-actions-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.rv-actions .ihq-btn { padding: 9px 14px; font-size: 11px; }
.rv-empty { padding: 40px 0; font-size: 11.5px; color: #8a939e; }

.flow-toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translateX(-50%); padding: 11px 18px; background: #17212b; color: #fff; font-size: 11px; letter-spacing: .04em; box-shadow: 0 10px 30px rgba(5,15,30,.25); }

@media (max-width: 1000px) {
  .flow-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .flow-hero h1 { font-size: 38px; }
  .flow-grid { grid-template-columns: 1fr; gap: 26px; }
  .flow-aside { position: static; }
  .flow-aside ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
  .rv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .flow-hero { padding: 36px 0 30px; }
  .flow-hero h1 { font-size: 31px; }
  .flow-hero-slim h1 { font-size: 34px; }
  .flow-body { padding: 30px 0 40px; }
  .flow-card { padding: 26px 20px 24px; }
  .flow-row { grid-template-columns: 1fr; gap: 0; }
  .flow-aside ul { grid-template-columns: 1fr; }
  .flow-steps-inline { grid-template-columns: 1fr; }
  .flow-submit { align-items: stretch; }
  .flow-submit .ihq-btn { width: 100%; }
  .flow-success h2 { font-size: 23px; }
  .flow-receipt { flex-direction: column; gap: 4px; }
  .rv-summary { padding: 13px 14px; }
  .rv-name { flex-basis: 100%; order: 3; }
  .rv-by { order: 4; flex-basis: 100%; }
  .rv-date { order: 5; }
  .rv-badge { order: 1; margin-left: auto; }
  .rv-chevron { order: 2; }
  .rv-detail { padding: 4px 14px 16px; }
  .rv-q { font-size: 16px; }
  .rv-actions { align-items: flex-start; }
  .rv-actions-buttons { width: 100%; }
  .rv-actions-buttons .ihq-btn { flex: 1; }
}
