/* /apply/<step> — the application workspace (Blueprint-Income-style: top bar, step sidebar,
   form area, sticky footer with ← / Continue). Tokens come from insco.css. */
.ap-body { background: #fff; }
.ap-top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.ap-brand { display: flex; align-items: baseline; gap: 8px; color: var(--forest); }
.ap-brand .mark { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: .06em; }
.ap-brand .sub { font-size: 12px; color: var(--muted); }
.ap-chip { display: inline-flex; align-items: center; gap: 12px; background: var(--ivory); border-radius: 8px; padding: 8px 16px; font-size: 14px; }
.ap-chip b { font-weight: 600; } .ap-chip i { color: var(--muted); font-size: 12.5px; font-style: italic; } .ap-chip .amt { color: var(--green-text); font-weight: 600; font-family: var(--num); }
.ap-chip a { color: var(--green-text); font-size: 13px; }
.ap-topnav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.ap-topnav a:hover { color: var(--green-text); }
.ap-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px - 72px); }
.ap-side { background: #eef4ef; padding: 12px 0 24px; border-right: 1px solid var(--line); }
.ap-step { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 18px; font-size: 14px; cursor: pointer; color: var(--ink); border: 0; background: none; width: 100%; text-align: left; font-family: inherit; }
.ap-step small { display: block; font-size: 11px; color: var(--muted); }
.ap-step:hover { background: #e3ece5; }
.ap-step.on { background: var(--green); color: #fff; } .ap-step.on small { color: rgba(255,255,255,.75); }
.ap-sep { border-top: 1px solid #cfdcd3; margin: 8px 0; }
.ap-ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.ap-ic.todo { background: #c7d8f5; color: #2b5bd7; letter-spacing: 1px; } .ap-ic.todo:before { content: "···"; }
.ap-ic.bad { background: #d7263d; color: #fff; } .ap-ic.bad:before { content: "!"; }
.ap-ic.ok { background: var(--green); color: #fff; } .ap-ic.ok:before { content: "✓"; }
.ap-step.on .ap-ic.ok { background: #fff; color: var(--green); }
.ap-side .ap-actions { padding: 18px 18px 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ap-save { width: 100%; padding: 11px; border: 1px solid var(--green); color: var(--green-text); background: #fff; border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; }
.ap-save:hover { background: #f3f8f4; }
.ap-save small { display: block; font-size: 11px; color: var(--muted); }
.ap-cancel small { font-size: 11px; color: var(--muted); }
.ap-cancel { font-size: 13.5px; color: var(--green-text); background: none; border: 0; cursor: pointer; font-family: inherit; }
.ap-cancel:hover { text-decoration: underline; }
.ap-prog { padding: 18px 18px 0; }
.ap-prog .bar { height: 6px; border-radius: 3px; background: #fff; overflow: hidden; border: 1px solid #d5e2d9; }
.ap-prog .bar i { display: block; height: 100%; background: var(--green); transition: width .3s; }
.ap-prog .lab { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.ap-main { padding: 36px 40px 60px; max-width: 760px; }
.ap-main h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 8px; }
.ap-main h1 small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 4px; }
.ap-main p.intro { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; margin: 0 0 14px; }
.ap-main h4 { font-size: 18px; margin: 30px 0 12px; }
.ap-main h5 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 10px; }
.ap-main h6 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.ap-req { float: right; font-size: 11px; color: var(--muted); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.f-grid .full { grid-column: 1 / -1; }
.f-grid .third { grid-column: span 1; }
.f-grid.three { grid-template-columns: 2fr 1fr 2fr; }
.f-grid.three-eq { grid-template-columns: 1fr 1fr 1fr; }
.f label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.f label small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.f input, .f select, .f textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 4px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(35,131,67,.12); }
.f.err input, .f.err select, .f.err textarea { border-color: #d7263d; }
.f .msg { display: none; font-size: 12px; color: #d7263d; margin-top: 5px; }
.f.err .msg { display: block; }
.f .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.f input[disabled], .f select[disabled], .f textarea[disabled] { background: #f6f6f3; color: var(--muted); }
.f .money { position: relative; } .f .money input { padding-left: 24px; } .f .money:before { content: "$"; position: absolute; left: 11px; top: 11px; color: var(--muted); }
.f .pctw { position: relative; } .f .pctw input { padding-right: 28px; } .f .pctw:after { content: "%"; position: absolute; right: 11px; top: 11px; color: var(--muted); }
.f .ssn { position: relative; } .f .ssn button { position: absolute; right: 6px; top: 6px; border: 0; background: none; color: var(--green-text); font-size: 12px; cursor: pointer; font-family: inherit; }
.f-q { margin: 16px 0; font-size: 14.5px; }
.f-q .q { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.f-q .q small { font-weight: 400; color: var(--muted); display: block; font-size: 12px; }
.f-q.err .q { color: #d7263d; }
.f-q .msg { display: none; font-size: 12px; color: #d7263d; margin-top: 4px; } .f-q.err .msg { display: block; }
.opts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.opts label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.opts input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.opts.col { flex-direction: column; gap: 8px; }
.yn { display: inline-flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.yn button { font: inherit; font-size: 14px; padding: 7px 22px; border: 0; background: #fff; cursor: pointer; color: var(--ink); }
.yn button + button { border-left: 1px solid var(--line-2); }
.yn button.on { background: var(--green); color: #fff; }
.callout { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; padding: 12px 16px; font-size: 14px; margin: 14px 0; background: #fff; }
.callout i { flex: none; width: 36px; height: 36px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; color: #fff; }
.callout.info { border-color: #2b5bd7; } .callout.info i { background: #2b5bd7; }
.callout.warn { border-color: #e5a100; } .callout.warn i { background: #e5a100; }
.callout.bad { border-color: #d7263d; } .callout.bad i { background: #d7263d; }
.callout.ok { border-color: var(--green); } .callout.ok i { background: var(--green); }
.pcard { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.pcard .pl { padding: 24px 18px; border-right: 1px solid var(--line-2); text-align: center; background: #fff; }
.pcard .pl img { max-width: 130px; max-height: 60px; margin: 0 auto 14px; } .pcard .pl .q-mono { margin: 0 auto 14px; }
.pcard .pr { padding: 14px 24px; background: #fafaf7; }
.pcard .kv { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 9px 0; font-size: 14px; }
.pcard .kv b { font-weight: 700; } .pcard .kv .v { color: var(--ink-2); }
.pcard .amt { display: inline-flex; align-items: center; gap: 8px; }
.pcard .amt input { width: 150px; padding: 7px 10px; border: 1px solid var(--green); border-radius: 4px; font: inherit; font-size: 14px; background: #eef6f0; color: var(--green-text); font-weight: 600; }
.pcard .amt button { border: 0; background: none; color: var(--green-text); cursor: pointer; font-family: inherit; font-size: 13px; }
.po { display: grid; grid-template-columns: 56px 1fr; gap: 10px 18px; margin: 26px 0; }
.po .ico { width: 44px; height: 44px; border-radius: 50%; background: #eef4ef; color: var(--forest); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.po h4 { margin: 8px 0 6px; } .po p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.po .sub { margin: 14px 0 0 36px; }
.po .sub h5 { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); margin: 12px 0 2px; }
.po .sub p { font-size: 14px; }
.badge { display: inline-block; background: #fde8ec; color: #b4132f; font-size: 12px; border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }
.drop { border: 1px dashed #7a9ac9; border-radius: 4px; padding: 44px 20px; text-align: center; color: var(--ink-2); font-size: 14.5px; cursor: pointer; background: #fff; }
.drop:hover, .drop.over { background: #f3f7fb; border-color: #2b5bd7; }
.drop .ico { font-size: 42px; margin-bottom: 8px; }
.lic-prev { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; padding: 14px; }
.lic-prev img { max-width: 220px; max-height: 140px; border-radius: 4px; border: 1px solid var(--line); }
.lic-prev .pdf { width: 120px; height: 90px; border-radius: 4px; background: var(--ivory); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.lic-prev .meta { font-size: 13.5px; color: var(--ink-2); } .lic-prev .meta b { display: block; color: var(--ink); }
.lnk { background: none; border: 0; color: var(--green-text); cursor: pointer; font: inherit; font-size: 13.5px; padding: 0; }
.lnk:hover { text-decoration: underline; }
.addbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--green); color: var(--green-text); background: #fff; border-radius: 4px; padding: 11px 22px; font: inherit; font-size: 14.5px; cursor: pointer; }
.addbtn:hover { background: #f3f8f4; }
.addbtn:before { content: "⊕"; font-size: 16px; }
.item { display: flex; justify-content: space-between; gap: 14px; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.item .t { font-weight: 600; } .item .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.item .acts { display: flex; gap: 12px; flex: none; }
.item .alloc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.item .alloc input { width: 64px; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 4px; font: inherit; text-align: right; }
.sumline { display: flex; justify-content: space-between; align-items: center; background: #f0f0ed; border-radius: 4px; padding: 12px 16px; font-weight: 700; margin: 16px 0; }
.tabs { display: flex; border: 1px solid var(--green); border-radius: 4px; overflow: hidden; margin: 0 0 18px; }
.tabs button { flex: 1; font: inherit; font-size: 14px; padding: 12px; border: 0; background: #fff; color: var(--green-text); cursor: pointer; }
.tabs button.on { background: var(--green); color: #fff; }
.rv-sec { border: 1px solid var(--line-2); border-radius: 6px; margin-bottom: 14px; overflow: hidden; }
.rv-sec .rv-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fafaf7; font-weight: 700; font-size: 15px; }
.rv-sec .rv-h a { font-size: 13px; color: var(--green-text); font-weight: 400; }
.rv-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; padding: 12px 16px; font-size: 13.5px; }
.rv-kv div b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.rv-kv .full { grid-column: 1 / -1; }
.rv-list { padding: 4px 16px 12px; font-size: 13.5px; } .rv-list div { padding: 6px 0; border-top: 1px solid var(--line); }
.ap-foot { position: sticky; bottom: 0; z-index: 20; height: 72px; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 24px; background: #fff; border-top: 1px solid var(--line); }
.ap-back { position: absolute; left: 28px; font-size: 26px; color: var(--green-text); background: none; border: 0; cursor: pointer; }
.ap-next { min-width: 150px; padding: 12px 28px; background: var(--green); color: #fff; border: 0; border-radius: 4px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ap-next:hover { background: var(--green-deep); } .ap-next:disabled { background: #a9cdb5; cursor: default; }
.ap-saved { position: absolute; right: 28px; font-size: 12.5px; color: var(--muted); }
.ap-modal { position: fixed; inset: 0; z-index: 50; background: rgba(18,22,19,.55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; }
.ap-modal[hidden] { display: none; }
.ap-modal-box { position: relative; width: min(620px, 100%); background: #fff; border-radius: 6px; padding: 28px 26px 24px; }
.ap-modal-box h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; text-align: center; margin: 0 0 18px; }
.ap-x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 28px; color: var(--green-text); cursor: pointer; }
.ap-modal-foot { display: flex; justify-content: center; margin-top: 22px; }
.ap-loading, .ap-note { color: var(--muted); font-size: 14px; }
.done { text-align: center; padding: 30px 0; }
.done .big { font-size: 56px; color: var(--green); } .done h2 { font-family: var(--serif); font-weight: 400; margin: 6px 0; }
.done p { color: var(--ink-2); max-width: 36em; margin: 8px auto; font-size: 14.5px; }
.readonly .f input, .readonly .f select, .readonly .f textarea { pointer-events: none; background: #f6f6f3; }
@media (max-width: 860px) {
  .ap-shell { grid-template-columns: 1fr; }
  .ap-side { display: flex; flex-wrap: wrap; padding: 6px 8px; gap: 2px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ap-step { width: auto; padding: 8px 10px; border-radius: 6px; font-size: 13px; } .ap-step small { display: none; }
  .ap-sep, .ap-side .ap-actions, .ap-prog { display: none; }
  .ap-main { padding: 22px 16px 40px; }
  .ap-top { gap: 12px; padding: 0 14px; } .ap-brand { white-space: nowrap; } .ap-brand .sub { display: none; }
  .ap-chip { display: none; } .ap-topnav { gap: 14px; font-size: 13px; white-space: nowrap; }
  .ap-main h1 { font-size: 26px; }
  .ap-foot { padding: 0 12px; } .ap-next { min-width: 0; padding: 12px 20px; }
  .f-grid, .f-grid.three, .f-grid.three-eq { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: 1fr; } .pcard .pl { border-right: 0; border-bottom: 1px solid var(--line-2); } .pcard .kv { grid-template-columns: 1fr; gap: 2px; }
  .ap-back { left: 12px; } .ap-saved { display: none; }
  .rv-kv { grid-template-columns: 1fr; }
}
