.finished-account-page .finished-main{width:min(100% - 32px,720px);margin:32px auto 64px}
.finished-account-page [hidden]{display:none!important}
.finished-account-page .topbar{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.finished-account-page .brand{width:auto;min-width:0;flex:0 1 auto}
.finished-account-page .top-actions{width:auto;flex:0 0 auto;margin-left:auto}
.finished-account-page .top-actions #finishedHomeLink.soft-button{display:inline-flex;white-space:nowrap}
.finished-main .hero-panel{display:block;min-height:0;padding:28px;margin-bottom:20px}
.finished-main .hero-copy{width:100%;min-width:0}
.finished-main .hero-copy h1{font-size:30px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.finished-main .hero-copy p{display:block;margin:0;line-height:1.65;overflow-wrap:anywhere}
.finished-main .flow-card{min-height:0;padding:28px}
.finished-main .form-stack{gap:10px}
.finished-main label{font-weight:600;margin-top:10px}
.finished-main input{box-sizing:border-box;width:100%;min-width:0;min-height:46px}
.finished-main details{border:1px solid var(--border,#dce2eb);border-radius:8px;padding:14px;margin:8px 0}
.finished-main summary{cursor:pointer;font-weight:600}
.finished-main details input{margin:12px 0}
.finished-main .field-hint{margin:0 0 8px}
.finished-main .finished-error{color:#ba2424;margin:0;overflow-wrap:anywhere}
.finished-main .finished-error:empty{display:none}
.finished-meta{margin:24px 0}
.finished-meta div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:9px 0}
.finished-meta dd{margin:0;overflow-wrap:anywhere}
.finished-main .button-row{display:flex;flex-wrap:wrap;gap:12px}
.finished-account-page .finished-main .finished-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.finished-account-page .finished-main .finished-primary-actions>button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0;height:48px;min-height:48px;margin:0;padding:12px 14px;flex:none;border-radius:10px;font-size:14px;line-height:1.5}
.finished-primary-actions #finishedRetry[hidden]+#finishedRefresh{grid-column:1/-1}
.finished-actions svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.finished-account-page .finished-main #finishedNew.finished-secondary-action{display:flex;align-items:center;justify-content:center;gap:3px;width:max-content;max-width:100%;min-height:40px;margin:12px auto 0;padding:7px 12px;border:0;border-radius:8px;background:transparent;color:var(--muted,#526078);box-shadow:none;font-size:13px;font-weight:500;line-height:1.5}
.finished-account-page .finished-main #finishedNew.finished-secondary-action:hover{color:var(--ui-accent,#245bd9);background:rgba(36,91,217,.05)}
.finished-secondary-action svg{width:14px;height:14px}
.finished-main button{min-height:44px}
.finished-main #finishedSubmit{width:100%;min-height:46px}
#finishedMessage{overflow-wrap:anywhere}
.finished-progress{margin:24px 0;padding:18px 0;border-top:1px solid var(--border,#dce2eb);border-bottom:1px solid var(--border,#dce2eb)}
.finished-progress-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;font-size:14px}
#finishedProgressSummary{font-size:12px;color:var(--muted,#526078);text-align:right}
.finished-progress-body{position:relative}
.finished-progress-track{position:absolute;top:15px;left:16.6667%;right:16.6667%;height:3px;background:var(--border,#dce2eb);border-radius:3px;overflow:hidden}
.finished-progress-track>span{display:block;width:0;height:100%;background:#2d65d8;transition:width .25s ease}
.finished-progress[data-stage="1"] .finished-progress-track>span{width:50%}
.finished-progress[data-stage="2"] .finished-progress-track>span{width:100%}
.finished-progress[data-status="complete"] .finished-progress-track>span{background:#16846b}
.finished-progress-steps{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.finished-step{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;text-align:center;color:var(--muted,#526078)}
.finished-step-marker{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border:2px solid var(--border,#dce2eb);border-radius:50%;background:var(--ui-surface,#fff);font-size:14px;font-weight:700}
.finished-step strong{font-size:14px;font-weight:600;line-height:1.5}
.finished-step-status{font-size:12px;line-height:1.5}
.finished-step.is-current{color:#245bd9}
.finished-step.is-current .finished-step-marker{background:#245bd9;border-color:#245bd9;color:#fff;box-shadow:0 0 0 4px rgba(36,91,217,.12)}
.finished-step.is-complete{color:#16846b}
.finished-step.is-complete .finished-step-marker{background:#16846b;border-color:#16846b;color:#fff}
.finished-step.is-review{color:#986500}
.finished-step.is-review .finished-step-marker{border-color:#ad7700;color:#986500}
.finished-step.is-failed{color:#ba2424}
.finished-step.is-failed .finished-step-marker{border-color:#ba2424;color:#ba2424}
@media(prefers-reduced-motion:reduce){.finished-progress-track>span{transition:none}}
#finishedDelivery{border-top:1px solid var(--border,#dce2eb);padding-top:18px;margin-bottom:22px}
#finishedCredentials{box-sizing:border-box;width:100%;min-width:0;margin:12px 0;resize:vertical;overflow-wrap:anywhere;white-space:pre-wrap}
.finished-main .credential-format-hint{margin:8px 0;font-size:14px;line-height:1.7;color:var(--muted,#526078);overflow-wrap:anywhere}
.credential-format-hint code{font-family:Consolas,monospace;font-weight:700;white-space:nowrap}
.credential-format-hint a{color:var(--ui-accent,#245bd9);text-decoration:underline;text-underline-offset:3px}
.credential-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 22px;padding:16px 0;border-top:1px solid var(--border,#dce2eb);border-bottom:1px solid var(--border,#dce2eb)}
.credential-legend dt{font-size:14px;font-weight:600;line-height:1.5}
.credential-legend dd{margin:7px 0 0;font-size:13px;line-height:1.7;color:var(--muted,#526078);overflow-wrap:anywhere}
@media(max-width:520px){
  .finished-account-page .finished-main{width:calc(100% - 20px);margin-top:18px}
  .finished-main .flow-card,.finished-main .hero-panel{padding:20px}
  .finished-main .hero-copy h1{font-size:26px;margin-bottom:9px}
  .finished-account-page .topbar{padding:14px}
  .finished-meta div{grid-template-columns:76px minmax(0,1fr)}
  .credential-legend{grid-template-columns:minmax(0,1fr);gap:14px}
  .credential-legend dd{margin-top:4px}
  .finished-progress-steps{gap:6px}
  .finished-step strong{font-size:13px}
}
