:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #213e33; background: #f5f8f6; color-scheme: light; font-size: 16px;
  --green: #16664e; --ink: #193d30; --muted: #697c70; --line: #e5ece7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; -webkit-font-smoothing: antialiased; background: linear-gradient(180deg, #edf5ef, #f5f8f6 330px); }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
button, .button { touch-action: manipulation; }
.page-shell { max-width: 792px; margin: auto; padding: 0 32px 52px; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 38px 3px 32px; }
.page-identity { display: flex; align-items: center; gap: 12px; color: #244f3c; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.page-identity small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .15px; color: #74877a; margin-top: 4px; }
.document-icon { display: grid; place-items: center; width: 38px; height: 42px; color: var(--green); }
.document-icon svg { width: 28px; height: 28px; }
.private-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #6b8072; white-space: nowrap; }
.private-badge svg { width: 12px; height: 12px; }
.layout, .workspace { min-width: 0; }
.progress { margin: 0 0 22px; }
.progress ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; gap: 12px; margin: 0; padding: 0; }
.progress li { display: flex; align-items: center; gap: 9px; color: #768a7d; padding: 12px 0 17px; border-bottom: 2px solid #dce7df; }
.step-number { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; font-size: 10px; font-weight: 600; border: 1px solid #d6e2d9; border-radius: 50%; background: #f5f8f5; }
.step-copy strong { font-size: 12px; font-weight: 500; }
.progress li[aria-current="step"] { border-color: var(--green); color: var(--ink); }
.progress li[aria-current="step"] .step-number { background: var(--green); border-color: var(--green); color: white; }
.progress li[data-complete="true"] { border-color: #a8cabb; color: #47745b; }
.progress li[data-complete="true"] .step-number { border-color: #c4ddcc; background: #e6f0e8; color: #377054; }
.session-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 3px 16px; font-size: 11px; color: #778a7c; }
.expiry-pill { display: flex; align-items: center; gap: 6px; color: #5c7564; font-variant-numeric: tabular-nums; }
.expiry-pill svg { width: 15px; height: 15px; }
.session-bar[data-urgent="true"] .expiry-pill { color: #93652a; }
.card { padding: 38px; background: #fff; border: 1px solid #e0e9e2; border-radius: 20px; box-shadow: 0 2px 3px #21433102, 0 16px 45px -25px #2143311c; }
.card-heading { margin-bottom: 26px; }
h1 { color: var(--ink); font-size: 31px; line-height: 1.2; letter-spacing: -1.1px; font-weight: 600; margin: 0; }
.card-heading p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 12px 0 0; }
.eyebrow { color: #647e6d; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; margin: 0 0 14px; }
.lookup-notice { display: flex; align-items: flex-start; gap: 10px; padding: 15px; margin-bottom: 29px; border: 1px solid #e0ecdf; border-radius: 11px; background: #f4f9f2; }
.lookup-icon { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; color: #4f8055; border-radius: 50%; background: #e3efdf; }
.lookup-icon svg { width: 16px; height: 16px; }
.lookup-notice strong { display: block; color: #3e6345; font-size: 12px; font-weight: 600; line-height: 1.5; margin: 2px 0 4px; }
.lookup-notice p { font-size: 12px; color: #65806a; line-height: 1.7; margin: 0; }
.lookup-notice[data-outcome="not-found"], .lookup-notice[data-outcome="unavailable"] { background: #fbf8f1; border-color: #eee6d5; }
.lookup-notice[data-outcome="not-found"] .lookup-icon, .lookup-notice[data-outcome="unavailable"] .lookup-icon { background: #f0e8d5; color: #896b3b; }
.lookup-notice[data-outcome="not-found"] strong, .lookup-notice[data-outcome="unavailable"] strong { color: #7e6237; }
.lookup-notice[data-outcome="not-found"] p, .lookup-notice[data-outcome="unavailable"] p { color: #867452; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; color: #3d5c47; font-size: 13px; font-weight: 600; }
.section-number { display: none; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 21px 20px; }
.wide { grid-column: 1 / -1; }
label { display: block; min-width: 0; font-size: 12px; font-weight: 500; color: #526c5c; }
input, select { display: block; width: 100%; min-height: 49px; margin-top: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #284f3b; background: #fdfefd; border: 1px solid #d8e3da; border-radius: 9px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #8b9d90; font-weight: 400; }
input:hover:not([readonly]), select:hover { border-color: #a9bfae; }
input:focus, select:focus { outline: 0; border-color: #478363; box-shadow: 0 0 0 3px #47836314; }
input[readonly] { background: #f3f7f2; color: #3b5d44; border-color: #e0e8dc; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 16px; letter-spacing: .9px; }
.label-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.locked-label { display: inline-flex; align-items: center; gap: 4px; color: #768c7c; font-size: 9px; font-weight: 400; white-space: nowrap; }
.locked-label svg { width: 12px; height: 12px; }
.field-hint { display: block; color: #718675; font-size: 10px; font-weight: 400; line-height: 1.7; margin-top: 8px; }
.field-error { display: block; margin-top: 6px; color: #a5483e; font-size: 11px; font-weight: 450; line-height: 1.5; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: #b26054; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #b2605418; }
.applicant-section { border-top: 1px solid var(--line); margin-top: 29px; padding-top: 26px; }
.applicant-section legend { float: left; }
.applicant-section label { clear: both; }
.form-bottom { margin-top: 30px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 14px 20px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; text-align: center; text-decoration: none; transition: background .15s, box-shadow .15s; }
button svg { width: 17px; height: 17px; flex: 0 0 17px; }
.primary { color: white; background: var(--green); box-shadow: 0 3px 7px #16664e12; }
.primary:hover { background: #10543f; box-shadow: 0 4px 12px #16664e20; }
.secondary { color: #4b6b56; background: #f2f6f2; }
.secondary:hover { background: #e9f0e9; }
button:focus-visible, a:focus-visible { outline: 2px solid #478363; outline-offset: 4px; }
button:disabled { opacity: .6; cursor: wait; }
.form-bottom .primary { width: 100%; }
.status-dot { display: inline-block; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: #48956b; }
.review-caption { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #6b8271; padding: 0 0 17px; border-bottom: 1px solid var(--line); }
dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; margin: 0; }
dl > div { min-width: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
dl > div:first-child { grid-column: 1 / -1; }
dt { font-size: 11px; color: #758b7b; margin-bottom: 7px; }
dd { margin: 0; color: #2d503a; font-size: 14px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
dl > div:first-child dd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 16px; letter-spacing: .7px; }
dl > div:last-child { grid-column: 1 / -1; border: 1px solid #e2ebdd; background: #f5f8f2; padding: 17px; margin-top: 20px; border-radius: 10px; }
.confirm-note { display: flex; align-items: flex-start; gap: 8px; color: #6d8573; padding-top: 21px; }
.confirm-note svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; }
.confirm-note p { font-size: 11px; line-height: 1.8; margin: 0; }
.actions { display: flex; gap: 12px; margin-top: 25px; }
.actions > * { flex: 1; }
.state-card { text-align: center; padding: 55px 38px; }
.state-card > p:not(.eyebrow) { max-width: 390px; font-size: 13px; color: var(--muted); line-height: 1.9; margin: 17px auto 0; }
.state-symbol { display: grid; place-items: center; width: 66px; height: 66px; background: #edf5e9; color: #337656; border-radius: 50%; margin: 0 auto 30px; }
.state-symbol svg { width: 34px; height: 34px; }
.loading-symbol::after { content: ""; width: 24px; height: 24px; border: 2px solid #cee2c6; border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.unavailable-symbol { color: #8e7549; background: #f7f2e8; }
.state-detail { font-size: 12px; line-height: 1.8; color: #778b7e; border-top: 1px solid var(--line); margin-top: 29px; padding-top: 22px; }
.success-mark { box-shadow: 0 0 0 9px #f6f9f3; margin-bottom: 37px; }
.delivery-detail { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: #6a846c; margin: 30px 0 24px; }
#return-whatsapp { width: 100%; max-width: 360px; }
.state-card > p.muted { font-size: 11px; color: #788c7d; margin-top: 15px; }
.state-card > p.closing-note { font-size: 10px; color: #7c8e7e; margin-top: 30px; }
#feedback { padding: 13px 16px; margin: 0 0 15px; border: 1px solid #ebdbd4; border-radius: 10px; color: #9b4d40; background: #fff8f4; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#feedback:empty { display: none; }
@media (max-width: 600px) {
  .page-shell { padding: 0 18px 32px; }
  .masthead { padding: 25px 3px 22px; gap: 12px; }
  .page-identity { gap: 7px; font-size: 12px; }
  .page-identity small { font-size: 10px; }
  .document-icon { width: 30px; }
  .document-icon svg { width: 25px; height: 25px; }
  .private-badge { font-size: 9px; gap: 4px; }
  .private-badge svg { width: 11px; height: 11px; }
  .progress { margin-bottom: 18px; }
  .progress ol { gap: 10px; }
  .progress li { gap: 7px; padding: 11px 0 14px; }
  .step-number { width: 23px; height: 23px; flex-basis: 23px; font-size: 9px; }
  .step-copy strong { font-size: 11px; }
  .session-bar { font-size: 10px; padding-bottom: 13px; }
  .card { padding: 28px 23px; border-radius: 17px; }
  h1 { font-size: 28px; letter-spacing: -.9px; }
  .card-heading { margin-bottom: 22px; }
  .card-heading p { font-size: 12px; }
  .lookup-notice { padding: 13px; gap: 9px; margin-bottom: 26px; }
  .lookup-notice p, .lookup-notice strong { font-size: 11px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  label { font-size: 12px; }
  input, select { font-size: 16px; min-height: 50px; padding: 12px 13px; }
  input[readonly] { font-size: 15px; letter-spacing: .7px; }
  legend { font-size: 12px; margin-bottom: 19px; }
  .field-hint { font-size: 10px; }
  .applicant-section { margin-top: 25px; padding-top: 24px; }
  .form-bottom { margin-top: 25px; }
  button, .button { min-height: 51px; }
  .actions { flex-direction: column-reverse; gap: 9px; }
  dl { gap: 0 18px; }
  dd { font-size: 13px; }
  dl > div:first-child dd { font-size: 15px; letter-spacing: .5px; }
  .state-card { padding: 43px 24px; }
  .state-card h1 { font-size: 27px; }
  .state-card > p:not(.eyebrow) { font-size: 12px; }
}
@media (max-width: 360px) {
  .page-shell { padding-left: 12px; padding-right: 12px; }
  .card { padding-left: 20px; padding-right: 20px; }
  .private-badge { font-size: 8px; }
  .page-identity { font-size: 11px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}
