:root{--ink:#123e35;--ink-deep:#07342c;--ink-soft:#315d53;--paper:#fff;--ground:#f4f5f0;--sage:#dfe8df;--sage-2:#edf2ec;--red:#d84b35;--red-dark:#bd3b28;--text:#17201d;--muted:#66736e;--line:#d7ded8;--danger:#a62e22;--shadow:0 12px 35px rgba(15,48,40,.08),0 2px 8px rgba(15,48,40,.04);--radius:14px;--ease:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}html{font-size:16px;scroll-behavior:smooth}body{margin:0;background:var(--ground);color:var(--text);font-family:"DM Sans",sans-serif;min-height:100vh}button,input,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}::selection{background:#b8d2c6;color:#092f28}:focus-visible{outline:3px solid rgba(216,75,53,.34);outline-offset:3px}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#9aaba4;border:3px solid var(--ground);border-radius:99px}::-webkit-scrollbar-track{background:var(--ground)}[hidden]{display:none!important}svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
h1,h2,h3,p{margin-top:0}h1,h2,h3,.brand{font-family:"Manrope",sans-serif;letter-spacing:-.03em}h1{font-size:clamp(2rem,3.2vw,3rem);line-height:1.05;margin-bottom:.55rem}h2{font-size:1.25rem;margin-bottom:.35rem}p{color:var(--muted);line-height:1.55}.button{border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:.65rem;min-height:46px;padding:.75rem 1.15rem;font-weight:700;transition:transform .2s var(--ease),background .2s,box-shadow .2s}.button:hover:not(:disabled){transform:translateY(-1px)}.button.primary{background:var(--red);color:#fff;box-shadow:0 7px 18px rgba(186,55,36,.18)}.button.primary:hover{background:var(--red-dark)}.button.secondary{background:var(--sage-2);color:var(--ink);border:1px solid var(--line);box-shadow:none}.button.wide{width:100%}.text-button,.back-link{border:0;background:none;color:var(--ink);font-weight:700;padding:.45rem;text-decoration:none}.text-button:hover,.back-link:hover{text-decoration:underline;text-underline-offset:4px}.icon-button{border:0;background:transparent;color:inherit;width:40px;height:40px;display:grid;place-items:center;border-radius:8px}.icon-button svg{width:22px;height:22px}.form-message{min-height:1.4em;margin:.1rem 0;color:var(--danger);font-size:.9rem}.form-message.success{color:#1c6a4d}.field{display:grid;gap:.48rem;color:var(--text);font-weight:600}.field>span:first-child{display:flex;justify-content:space-between;gap:1rem}.field b{color:var(--red);font-weight:700}.field small{color:var(--muted);font-weight:500}.field input,.field select,.search input{width:100%;min-height:48px;border:1px solid #bdc8c0;border-radius:8px;background:#fff;color:var(--text);padding:.72rem .85rem;transition:border .2s,box-shadow .2s}.field input::placeholder,.search input::placeholder{color:#7b8983}.field input:focus,.field select:focus,.search input:focus{outline:0;border-color:var(--ink-soft);box-shadow:0 0 0 3px rgba(49,93,83,.13)}.field input:invalid:not(:placeholder-shown){border-color:#c26b5d}
.brand{display:flex;align-items:center;gap:.72rem;color:var(--ink);font-weight:700;font-size:1.22rem;text-decoration:none}.brand-mark{width:29px;height:29px;position:relative;display:flex;align-items:flex-end;justify-content:center;gap:2px}.brand-mark span{display:block;width:6px;border-radius:6px 6px 1px 1px;background:currentColor;transform-origin:bottom}.brand-mark span:nth-child(1){height:16px;transform:rotate(-28deg)}.brand-mark span:nth-child(2){height:25px}.brand-mark span:nth-child(3){height:16px;transform:rotate(28deg)}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(420px,.92fr)}.auth-brand{padding:clamp(2rem,5vw,5rem);background:var(--ink-deep);color:#fff;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-brand:after{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(194,224,208,.18);border-radius:50%;bottom:-190px;right:-80px;box-shadow:0 0 0 58px rgba(194,224,208,.035),0 0 0 116px rgba(194,224,208,.025)}.brand-light{color:#fff}.auth-message{margin:auto 0;max-width:670px;position:relative;z-index:1}.folio-index{font-size:.74rem;letter-spacing:.16em;color:#a9c8bb;font-weight:700;margin-bottom:2rem}.auth-message h1{font-size:clamp(2.8rem,5vw,5.2rem);max-width:12ch;margin-bottom:1.5rem}.auth-message>p:last-child{color:#c8dad2;font-size:1.12rem;max-width:56ch}.auth-trust{color:#a9c8bb!important;font-size:.86rem;position:relative;z-index:1}.signin-panel{background:#fafbf8;display:grid;place-items:center;padding:3rem}.signin-form{width:min(100%,430px);display:grid;gap:1.4rem}.signin-form h2{font-size:2rem}.signin-form>div>p{margin-bottom:0}.password-field{position:relative}.password-field input{padding-right:3.2rem}.password-field .icon-button{position:absolute;right:4px;top:4px}.help-copy{font-size:.86rem;text-align:center;margin:0}.signin-form .button{margin-top:.25rem}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:var(--ink-deep);color:#fff;padding:1.8rem 1rem 1.2rem;display:flex;flex-direction:column;justify-content:space-between;z-index:20}.sidebar .brand{padding:0 .65rem;margin-bottom:2.3rem}.primary-nav{display:grid;gap:.35rem}.primary-nav a{display:flex;align-items:center;gap:.9rem;padding:.84rem .88rem;border-radius:9px;color:#d9e8e1;text-decoration:none;font-weight:600;transition:background .18s,color .18s}.primary-nav a:hover,.primary-nav a.active{background:#195347;color:#fff}.primary-nav svg{width:22px;height:22px}.secure-note{border-top:1px solid rgba(225,241,234,.23);padding:1.2rem .65rem .2rem;display:flex;gap:.8rem;color:#b8d2c6}.secure-note svg{width:25px}.secure-note span{display:grid}.secure-note strong{font-size:.78rem;color:#eef7f2}.secure-note small{font-size:.7rem;margin-top:.15rem}.workspace{margin-left:250px;min-height:100vh}.topbar{height:84px;padding:0 clamp(1.2rem,3.4vw,3.2rem);display:flex;justify-content:flex-end;align-items:center;background:rgba(244,245,240,.94);border-bottom:1px solid transparent;position:sticky;top:0;z-index:12;backdrop-filter:blur(12px)}.mobile-menu{display:none;margin-right:auto}.account-menu{position:relative}.account-menu>button{border:0;background:none;display:flex;align-items:center;gap:.7rem;text-align:left;padding:.35rem;border-radius:9px;color:var(--text)}.account-menu>button>span:nth-child(2){display:grid}.account-menu small{text-transform:capitalize;color:var(--muted)}.account-menu svg{width:18px}.avatar{width:42px;height:42px;border-radius:50%;display:grid!important;place-items:center;background:var(--ink);color:#fff;font-weight:700}.account-popover{position:absolute;right:0;top:58px;width:240px;background:#fff;border-radius:10px;box-shadow:var(--shadow);padding:.7rem;border:1px solid var(--line)}.account-popover span{display:block;color:var(--muted);font-size:.84rem;padding:.6rem}.account-popover button{width:100%;border:0;background:#f4f6f2;text-align:left;padding:.75rem;border-radius:7px;color:var(--danger);font-weight:700}.main-content{padding:1rem clamp(1.2rem,3.4vw,3.2rem) 4rem;max-width:1600px;margin:auto}.page{display:none;animation:page-in .46s var(--ease)}.page.active{display:block}@keyframes page-in{from{opacity:.35;clip-path:inset(0 0 10% 0)}to{opacity:1;clip-path:inset(0)}}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:1.5rem;margin:1rem 0 2rem}.page-heading p{margin:0}.dashboard-heading h1{font-size:2.35rem}.journey-panel,.ledger,.side-form{background:var(--paper);border-radius:var(--radius);box-shadow:var(--shadow)}.journey-panel{padding:1.8rem 2.2rem;margin-bottom:1.5rem}.journey-rail{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);padding:0;margin:1.65rem 0 .2rem;position:relative}.journey-rail:before{content:"";position:absolute;top:20px;left:10%;right:10%;border-top:1px dashed #a9bbb2}.journey-rail li{display:grid;justify-items:center;gap:.55rem;position:relative;color:var(--muted);font-size:.88rem}.journey-rail li span{width:41px;height:41px;border-radius:50%;display:grid;place-items:center;background:var(--sage-2);border:1px solid #cfdbd1;color:var(--ink);font-weight:700;z-index:1}.journey-rail li.complete span{background:var(--ink);color:#fff}.journey-rail strong{font-weight:600;color:var(--text)}.ledger{overflow:hidden}.ledger>header{display:flex;align-items:center;justify-content:space-between;padding:1.55rem 1.8rem 1.15rem}.ledger>header p{margin:0;font-size:.9rem}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th{text-align:left;background:#edf2ee;color:#44534e;font-size:.76rem;text-transform:uppercase;letter-spacing:.055em;padding:.85rem 1.15rem;white-space:nowrap}.data-table td{padding:1.05rem 1.15rem;border-top:1px solid var(--line);font-size:.9rem;vertical-align:middle}.data-table tbody tr:hover{background:#fafcf9}.data-table strong{display:block}.data-table small{color:var(--muted)}.route-arrow{color:var(--red);padding:0 .2rem}.status{display:inline-flex;align-items:center;gap:.4rem;padding:.38rem .56rem;border-radius:6px;background:#e8f3ea;color:#236446;font-weight:700;font-size:.78rem;white-space:nowrap}.status:before{content:"";width:7px;height:7px;border-radius:50%;background:#2b7c54}.row-action{background:#fff;border:1px solid #b9c7bf;border-radius:7px;padding:.5rem .72rem;color:var(--ink);font-weight:700}.empty-state{padding:4.2rem 1.5rem;text-align:center;border-top:1px solid var(--line)}.empty-state .empty-icon{width:58px;height:58px;border-radius:50%;background:var(--sage-2);display:grid;place-items:center;color:var(--ink);margin:0 auto 1rem}.empty-state svg{width:28px}.empty-state h3{margin-bottom:.35rem}.empty-state p{margin-bottom:1.25rem}.table-tools{padding:1rem 1.3rem;border-bottom:1px solid var(--line)}.search{max-width:410px;position:relative;display:block}.search svg{width:19px;position:absolute;left:.8rem;top:14px;color:var(--muted)}.search input{padding-left:2.5rem;background:#f9faf7}.applicant-row{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:center;padding:1rem 1.4rem;border-top:1px solid var(--line)}.applicant-row:first-child{border-top:0}.applicant-row .avatar{background:var(--sage);color:var(--ink)}.applicant-row p{margin:0;font-size:.85rem}.admin-layout{display:grid;grid-template-columns:1fr minmax(310px,390px);gap:1.5rem;align-items:start}.admin-layout:has(.side-form[hidden]){grid-template-columns:1fr}.side-form{padding:1.5rem;display:grid;gap:1.15rem}.side-form header{display:flex;justify-content:space-between;align-items:center}.side-form header h2{margin:0}.user-status{display:flex;align-items:center;gap:.5rem}.switch{border:0;border-radius:99px;width:42px;height:24px;background:#c9d0cc;padding:3px}.switch:after{content:"";display:block;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s}.switch.on{background:var(--ink)}.switch.on:after{transform:translateX(18px)}
.application-header{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:end;margin:.4rem 0 1.5rem}.application-header .back-link{grid-column:1/-1;justify-self:start;padding-left:0}.application-header p{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--ink-soft);margin-bottom:.55rem}.application-header h1{font-size:2.25rem;margin:0}.form-shell{display:grid;grid-template-columns:240px minmax(0,820px);gap:2.2rem;align-items:start}.form-steps{list-style:none;padding:0;margin:0;position:sticky;top:110px}.form-steps li{display:flex;gap:.8rem;min-height:75px;position:relative;color:#74817c}.form-steps li:not(:last-child):after{content:"";position:absolute;left:16px;top:35px;height:40px;border-left:1px dashed #aab7b0}.form-steps li>span{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#e2e6e1;border:1px solid #ccd4ce;font-weight:700;font-size:.82rem;z-index:1}.form-steps li div{display:grid;align-content:start;padding-top:.15rem}.form-steps li strong{color:#67746f}.form-steps li small{font-size:.75rem}.form-steps li.active>span,.form-steps li.complete>span{background:var(--ink);color:#fff;border-color:var(--ink)}.form-steps li.active strong,.form-steps li.complete strong{color:var(--text)}#application-form{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.form-stage{display:none;border:0;margin:0;padding:2.3rem}.form-stage.active{display:grid;gap:1.5rem;animation:stage-in .42s var(--ease)}@keyframes stage-in{from{opacity:.25;transform:translateX(10px)}to{opacity:1;transform:none}}.form-stage legend{font-family:"Manrope",sans-serif;font-size:1.5rem;font-weight:700;letter-spacing:-.025em;padding:0}.form-stage>p{margin:-.9rem 0 0;max-width:66ch}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.35rem}.field-full{grid-column:1/-1}.phone-field{display:grid!important;grid-template-columns:88px 1fr;gap:.65rem}.check-field{display:flex;align-items:flex-start;gap:.75rem;color:#52605b;font-size:.9rem;line-height:1.5}.check-field input{width:18px;height:18px;margin-top:2px;accent-color:var(--ink)}.form-actions{border-top:1px solid var(--line);padding:1.25rem 2.3rem;display:flex;justify-content:flex-end;gap:.8rem}.form-actions .secondary{margin-right:auto}#application-message{padding:0 2.3rem}.review-sheet{border:1px solid var(--line);border-radius:10px;overflow:hidden}.review-section{padding:1.2rem 1.3rem;border-top:1px solid var(--line)}.review-section:first-child{border-top:0}.review-section h3{font-size:.83rem;text-transform:uppercase;letter-spacing:.07em;color:var(--ink-soft)}.review-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem 1.5rem}.review-grid div{display:grid;gap:.2rem}.review-grid small{color:var(--muted)}.review-grid strong{font-size:.92rem;word-break:break-word}.handoff-note{display:flex;gap:.9rem;background:var(--sage-2);padding:1rem;border-radius:9px;color:var(--ink)}.handoff-note svg{width:25px;flex:0 0 auto}.handoff-note p{font-size:.86rem;margin:.2rem 0 0}.toast-region{position:fixed;right:1.2rem;bottom:1.2rem;z-index:80;display:grid;gap:.7rem}.toast{background:var(--ink-deep);color:#fff;padding:.9rem 1rem;border-radius:9px;box-shadow:0 12px 28px rgba(7,52,44,.24);animation:toast-in .35s var(--ease);max-width:360px}.toast.error{background:#7e271f}@keyframes toast-in{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}
@media(max-width:980px){.sidebar{transform:translateX(-100%);transition:transform .3s var(--ease)}.sidebar.open{transform:none}.workspace{margin-left:0}.mobile-menu{display:grid}.topbar{justify-content:space-between}.form-shell{grid-template-columns:1fr}.form-steps{position:static;display:grid;grid-template-columns:repeat(4,1fr)}.form-steps li{display:grid;justify-items:center;text-align:center;gap:.4rem;min-height:auto}.form-steps li:not(:last-child):after{height:auto;width:calc(100% - 32px);left:calc(50% + 16px);top:16px;border-left:0;border-top:1px dashed #aab7b0}.auth-shell{grid-template-columns:1fr}.auth-brand{min-height:40vh;padding:2rem}.auth-message{margin:4rem 0 3rem}.auth-message h1{font-size:clamp(2.4rem,8vw,4rem)}.signin-panel{padding:4rem 1.5rem}.admin-layout{grid-template-columns:1fr}}
@media(max-width:680px){.main-content{padding:0 1rem 3rem}.topbar{height:70px;padding:0 1rem}.account-menu>button>span:nth-child(2){display:none}.page-heading{align-items:stretch;flex-direction:column;margin-top:1.2rem}.page-heading .button{width:100%}.dashboard-heading h1{font-size:2rem}.journey-panel{padding:1.25rem}.journey-rail{grid-template-columns:repeat(5,65px);overflow:auto;justify-content:start;padding-bottom:.5rem}.journey-rail:before{left:32px;right:auto;width:250px}.journey-rail strong{font-size:.72rem}.ledger>header{padding:1.2rem}.data-table th,.data-table td{padding:.8rem;white-space:nowrap}.form-shell{gap:1rem}.form-steps li div{display:none}.application-header{grid-template-columns:1fr}.application-header .text-button{justify-self:start}.application-header h1{font-size:1.8rem}.form-stage{padding:1.4rem}.field-grid,.review-grid{grid-template-columns:1fr}.field-full{grid-column:auto}.form-actions{padding:1rem 1.4rem}#application-message{padding:0 1.4rem}.auth-brand{min-height:350px}.auth-trust{font-size:.75rem}.signin-panel{padding:3rem 1.25rem}.applicant-row{grid-template-columns:auto 1fr}.applicant-row>small{grid-column:2}.toast-region{left:1rem;right:1rem}.toast{max-width:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
