@import url("../../admin/assets/css/app-tokens.css");

*{
    box-sizing:border-box;
}

:root{
    --auth-bg:#164a28;
    --auth-bg-deep:#0f321c;
    --auth-surface:#ffffff;
    --auth-surface-strong:#ffffff;
    --auth-line:rgba(22,74,40,.12);
    --auth-text:#1a2416;
    --auth-text-soft:#5c6b52;
    --auth-brand:#7cb542;
    --auth-brand-strong:#5f922e;
    --auth-brand-soft:#9dcc63;
    --auth-brand-pale:#eef6e4;
    --auth-danger:#e5322e;
    --auth-success:#7cb542;
    --auth-shadow:0 16px 36px rgba(8,24,14,.22);
    --auth-shadow-soft:0 8px 20px rgba(8,24,14,.12);
    --auth-radius-lg:24px;
    --auth-radius-md:var(--app-radius-md, 14px);
    --auth-radius-sm:8px;
}

html,
body{
    min-height:100%;
}

body{
    margin:0;
    font-family:var(--app-font, "Figtree", "Segoe UI", Arial, sans-serif);
    font-size:var(--app-text-base, 15px);
    line-height:var(--app-leading-normal, 1.5);
    color:var(--auth-text);
    background:var(--auth-bg);
}

body.auth-page,
body.staff-page{
    position:relative;
}

body.auth-page::before,
body.staff-page::before{
    display:none;
}

.auth-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px 18px;
}

.auth-shell{
    width:min(980px, 100%);
    display:grid;
    grid-template-columns:minmax(280px, 0.95fr) minmax(320px, 1fr);
    gap:18px;
    align-items:stretch;
}

.auth-hero,
.auth-card,
.staff-card{
    position:relative;
    overflow:hidden;
    border-radius:var(--auth-radius-lg);
    border:1px solid var(--auth-line);
    backdrop-filter:none;
}

.auth-hero{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:28px;
    min-height:520px;
    background:var(--auth-brand);
    color:#f5fff8;
    box-shadow:var(--auth-shadow);
}

.auth-hero::after{
    content:"";
    position:absolute;
    inset:auto -10% -18% auto;
    width:240px;
    height:240px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 72%);
}

.auth-logo{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:78px;
    height:78px;
    border-radius:18px;
    background:rgba(255,255,255,0.14);
    border:1px solid rgba(255,255,255,0.16);
    box-shadow:var(--auth-shadow-soft);
}

.auth-logo img{
    width:62px;
    height:62px;
    object-fit:contain;
}

.auth-kicker{
    display:inline-flex;
    align-items:center;
    width:fit-content;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(255,255,255,0.14);
    border:1px solid rgba(255,255,255,0.18);
    font-size:11px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.auth-hero h1,
.staff-card h1{
    margin:14px 0 10px;
    font-size:28px;
    line-height:1.08;
    letter-spacing:0;
}

.auth-hero p,
.auth-feature,
.staff-card p{
    margin:0;
    font-size:13px;
    line-height:1.65;
}

.auth-feature-list{
    display:grid;
    gap:10px;
    margin-top:18px;
}

.auth-feature{
    padding:12px 14px;
    border-radius:14px;
    background:rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.14);
}

.auth-card,
.staff-card{
    background:linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(243,249,244,0.92) 100%);
    box-shadow:var(--auth-shadow);
}

.auth-card{
    padding:28px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.auth-card h2{
    margin:0 0 8px;
    font-size:24px;
    line-height:1.12;
}

.auth-card > p{
    margin:0 0 18px;
    color:var(--auth-text-soft);
    font-size:13px;
    line-height:1.6;
}

.auth-form,
.staff-actions{
    display:grid;
    gap:14px;
}

.input-group{
    width:100%;
    margin:0;
}

.auth-input,
.auth-form input,
.auth-card input{
    width:100%;
    padding:13px 14px;
    border:1px solid var(--auth-line);
    border-radius:12px;
    background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241,248,243,0.96) 100%);
    color:var(--auth-text);
    outline:none;
    font-size:14px;
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-input:focus,
.auth-form input:focus,
.auth-card input:focus{
    border-color:rgba(85,162,119,0.86);
    box-shadow:0 0 0 4px rgba(85,162,119,0.14);
}

.auth-btn,
.auth-link-btn,
.staff-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 16px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-btn,
.staff-btn{
    background:linear-gradient(135deg, var(--g-950) 0%, var(--g-850) 100%);
    color:#fff;
    box-shadow:0 12px 24px rgba(2, 139, 34, 0.18);
}

.auth-btn:hover,
.staff-btn:hover{
    transform:translateY(-1px);
    background:linear-gradient(135deg, var(--g-800) 0%, var(--g-950) 100%);
}

.auth-link-btn{
    background:var(--auth-brand-pale);
    color:var(--g-950);
    border:1px solid var(--g-200);
}

.auth-helper{
    display:flex;
    justify-content:flex-start;
    font-size:13px;
}

.auth-helper a,
.helper-link a{
    color:var(--auth-brand);
    text-decoration:none;
    font-weight:700;
}

.helper-link{
    margin-top:0;
    font-size:13px;
}

.error,
.msg.error{
    color:var(--auth-danger);
}

.msg.success{
    color:var(--auth-success);
}

.error,
.msg{
    margin-top:2px;
    font-size:13px;
    line-height:1.55;
}

.staff-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px 18px;
}

.staff-card{
    width:min(560px, 100%);
    padding:30px;
}

.staff-eyebrow{
    display:inline-flex;
    align-items:center;
    width:fit-content;
    margin-bottom:12px;
    padding:7px 12px;
    border-radius:999px;
    background:#ebf6ee;
    color:#28553f;
    border:1px solid #d4e8da;
    font-size:11px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.staff-meta{
    margin-bottom:20px;
    color:var(--auth-text-soft);
}

@media (max-width: 860px){
    .auth-shell{
        grid-template-columns:1fr;
    }

    .auth-hero{
        min-height:unset;
        padding:24px;
    }

    .auth-card{
        padding:24px;
    }
}

@media (max-width: 520px){
    .auth-page,
    .staff-page{
        padding:14px;
    }

    .auth-hero,
    .auth-card,
    .staff-card{
        border-radius:18px;
    }

    .auth-hero,
    .auth-card,
    .staff-card{
        padding:20px;
    }

    .auth-hero h1,
    .staff-card h1{
        font-size:24px;
    }

    .auth-card h2{
        font-size:21px;
    }
}

/* Simple centered pages (login / forgot / reset) â€” same tokens as portal */
body.portal-simple{
    margin:0;
    min-height:100vh;
    min-height:100dvh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:24px;
    box-sizing:border-box;
    width:100%;
    overflow-x:hidden;
    font-family:var(--app-font, "Figtree", "Segoe UI", Arial, sans-serif);
    font-size:var(--app-text-base, 15px);
    line-height:var(--app-leading-normal, 1.5);
    background:#164a28;
    color:#fff;
}

@media (max-width: 520px){
    body.portal-simple{
        padding:16px 14px;
        align-items:flex-start;
        padding-top:max(20px, env(safe-area-inset-top, 0px));
    }
}

.portal-simple .portal-auth-logo{
    margin-bottom:22px;
    text-align:center;
}

.portal-simple .portal-auth-logo img{
    width:min(300px, 88vw);
    height:auto;
    object-fit:contain;
}

.portal-simple .portal-auth-card{
    width:100%;
    max-width:420px;
    background:#ffffff;
    border:0;
    border-radius:24px;
    padding:28px;
    box-shadow:0 16px 36px rgba(8,24,14,.22);
    color:#1a2416;
}

.portal-simple .portal-auth-card.portal-auth-card--bare{
    background:#ffffff;
    border:0;
    box-shadow:0 16px 36px rgba(8,24,14,.22);
    border-radius:24px;
    padding:28px;
    color:#1a2416;
}

.portal-simple .portal-auth-card h1{
    margin:0 0 10px;
    font-size:24px;
    color:var(--app-text-heading);
}

.portal-simple .portal-auth-card > p{
    margin:0 0 18px;
    color:var(--app-text-muted);
    line-height:1.6;
    font-size:14px;
}

.portal-simple .portal-auth-card form{
    display:flex;
    flex-direction:column;
    gap:0;
}

.portal-simple .portal-auth-card input[type="text"],
.portal-simple .portal-auth-card input[type="password"],
.portal-simple .portal-auth-card input[type="email"]{
    width:100%;
    box-sizing:border-box;
    padding:14px 16px;
    margin-bottom:14px;
    border:1px solid rgba(45,125,98,.12);
    border-radius:12px;
    outline:none;
    font-size:14px;
    background:#fff;
    color:var(--app-text-heading);
}

.portal-simple .portal-auth-card input:focus{
    border-color:var(--g-400);
    box-shadow:var(--app-focus-ring);
}

.portal-simple .portal-auth-card button[type="submit"],
.portal-simple .portal-auth-card .portal-link-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    width:100%;
    border:none;
    border-radius:999px;
    padding:0 16px;
    cursor:pointer;
    font-size:15px;
    font-weight:700;
    text-decoration:none;
    transition:background 0.2s ease, transform 0.15s ease;
}

.portal-simple .portal-auth-card button[type="submit"]{
    margin-top:6px;
    background:#7cb542;
    color:#fff;
}

.portal-simple .portal-auth-card button[type="submit"]:hover{
    background:#5f922e;
}

.portal-simple .portal-link-btn{
    margin-top:14px;
    background:var(--app-surface-muted);
    color:var(--app-brand-strong);
    border:1px solid var(--app-line);
}

.portal-simple .portal-helper{
    margin-top:14px;
    text-align:center;
    font-size:13px;
}

.portal-simple .portal-helper a{
    color:var(--app-brand-cta);
    font-weight:700;
    text-decoration:none;
}

.portal-simple .msg,
.portal-simple .error{
    margin-top:14px;
    font-size:13px;
    text-align:center;
}

.staff-card h1{
    color:var(--app-text-heading);
}

.staff-card .staff-meta{
    color:var(--app-text-muted);
}

.staff-logout{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:16px;
    padding:10px 16px;
    border-radius:var(--app-radius-sm);
    background:var(--app-surface-muted);
    color:var(--auth-danger);
    border:1px solid rgba(201,75,83,0.35);
    font-weight:700;
    text-decoration:none;
    font-size:13px;
    cursor:pointer;
    font-family:inherit;
}

.osfi-logout-form{
    margin:0;
}

.staff-logout:hover{
    background:#fde8e8;
}
/* Login: same centered card on phone and desktop */
html:has(body.lg-page){
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
}

body.lg-page{
    --lg-forest:#164a28;
    --lg-forest-deep:#0f321c;
    --lg-gold:#c4a056;
    --lg-khaki:#846d46;
    --lg-ink:#1a2416;
    --lg-muted:#5c6b52;
    --lg-paper:#fff;
    --lg-line:rgba(132,109,70,.28);
    margin:0;
    min-height:100vh;
    min-height:100dvh;
    min-height:100svh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    padding:max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    box-sizing:border-box;
    font-family:"Figtree", "Segoe UI", sans-serif;
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(196,160,86,.18), transparent 52%),
        linear-gradient(180deg, var(--lg-forest) 0%, var(--lg-forest-deep) 100%);
    color:var(--lg-ink);
    -webkit-font-smoothing:antialiased;
}

.lg-card{
    position:relative;
    width:100%;
    max-width:420px;
    padding:32px 24px 28px;
    border-radius:4px;
    background:var(--lg-paper);
    box-shadow:0 24px 48px rgba(8,24,14,.28);
    box-sizing:border-box;
    overflow:hidden;
}

.lg-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg, #a8863f, var(--lg-gold), #e0c588, var(--lg-gold), #a8863f);
}

.lg-logo{
    text-align:center;
    margin:4px 0 22px;
    padding:4px 0 18px;
    border-bottom:1px solid var(--lg-line);
}

.lg-logo img{
    width:auto;
    max-width:72%;
    max-height:96px;
    height:auto;
    display:block;
    margin:0 auto;
    object-fit:contain;
}

.lg-card h1{
    margin:8px 0 8px;
    font-family:"Sora", sans-serif;
    font-size:22px;
    font-weight:600;
    letter-spacing:-.03em;
    color:var(--lg-forest);
}

.lg-hint{
    margin:0 0 20px;
    font-size:14px;
    font-weight:500;
    line-height:1.5;
    color:var(--lg-muted);
}

.lg-alert{
    margin:0 0 16px;
    padding:12px 14px;
    border-radius:8px;
    border:1px solid rgba(176,64,48,.22);
    background:rgba(176,64,48,.08);
    color:#8a2e22;
    font-size:13px;
    font-weight:600;
    line-height:1.4;
}

.lg-portal{
    margin:0 0 16px;
    font-size:14px;
    font-weight:600;
    color:#164a28;
    text-align:center;
}

.lg-alert--ok{
    border-color:rgba(22,74,40,.18);
    background:rgba(22,74,40,.08);
    color:var(--lg-forest);
}

.lg-alert--info{
    border-color:rgba(196,160,86,.35);
    background:rgba(196,160,86,.12);
    color:#5c4a1e;
}

.lg-alert--ok a{
    color:inherit;
    font-weight:700;
}

.lg-form{
    display:grid;
    gap:16px;
}

.lg-field{
    display:grid;
    gap:8px;
    font-family:"Sora", sans-serif;
    font-size:11px;
    font-weight:600;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:var(--lg-khaki);
}

.lg-form input{
    width:100%;
    min-height:48px;
    border:0;
    border-bottom:1px solid var(--lg-line);
    border-radius:0;
    padding:10px 0 8px;
    font-family:"Figtree", "Segoe UI", sans-serif;
    font-size:16px;
    font-weight:600;
    letter-spacing:0;
    text-transform:none;
    color:var(--lg-ink);
    background:transparent;
    box-sizing:border-box;
    -webkit-appearance:none;
    appearance:none;
}

.lg-form input:focus{
    outline:none;
    border-bottom-color:var(--lg-gold);
    box-shadow:0 1px 0 var(--lg-gold);
}

.lg-form input:-webkit-autofill,
.lg-form input:-webkit-autofill:hover,
.lg-form input:-webkit-autofill:focus{
    -webkit-text-fill-color:var(--lg-ink);
    caret-color:var(--lg-ink);
    box-shadow:0 0 0 1000px var(--lg-paper) inset;
    transition:background-color 9999s ease-out;
}

.lg-pass{
    position:relative;
    display:block;
}

.lg-pass input{
    padding-right:48px;
}

.lg-eye{
    position:absolute;
    right:-8px;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    padding:0;
    background:transparent;
    color:var(--lg-khaki);
    cursor:pointer;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
}

.lg-eye:focus-visible{
    outline:2px solid var(--lg-gold);
    outline-offset:2px;
    border-radius:8px;
}

.lg-forgot{
    justify-self:end;
    min-height:44px;
    display:inline-flex;
    align-items:center;
    color:var(--lg-khaki);
    font-size:13px;
    font-weight:600;
    letter-spacing:.01em;
    text-decoration:none;
    touch-action:manipulation;
}

.lg-forgot:hover,
.lg-forgot:focus{
    color:var(--lg-forest);
}

.lg-back{
    display:flex;
    justify-content:center;
    width:100%;
    margin-top:8px;
}

.lg-form button[type="submit"]{
    min-height:52px;
    width:100%;
    margin-top:8px;
    border:0;
    border-radius:10px;
    background:var(--lg-forest);
    color:#fff;
    font-family:"Sora", sans-serif;
    font-size:15px;
    font-weight:600;
    letter-spacing:.06em;
    text-transform:uppercase;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(8,24,14,.18);
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
}

.lg-form button[type="submit"]:hover,
.lg-form button[type="submit"]:focus{
    background:var(--lg-forest-deep);
}

.lg-form button[type="submit"]:disabled{
    opacity:.72;
    cursor:wait;
}

body.lg-page > .lg-legal-nav{
    width:min(420px, 100%);
    margin:0;
    padding:0 4px 4px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px 14px;
}

body.lg-page > .lg-legal-nav a{
    color:rgba(255,255,255,.78);
    font-size:12px;
    font-weight:600;
    text-decoration:none;
}

body.lg-page > .lg-legal-nav a:hover,
body.lg-page > .lg-legal-nav a:focus{
    color:#fff;
    text-decoration:underline;
}

@media (max-width: 639px){
    .lg-card{
        padding:28px 20px 24px;
    }
}

.staff-page{
    align-items:flex-start;
}

.staff-card{
    width:min(720px, 100%);
}

.staff-sms-open{
    min-height:42px;
    padding:0 16px;
    border:0;
    border-radius:999px;
    background:#7cb542;
    color:#fff;
    font-weight:800;
    cursor:pointer;
}

.sl-sms-modal{
    position:fixed;
    inset:0;
    z-index:40;
    display:none;
    align-items:flex-end;
    justify-content:center;
    background:rgba(12,24,16,.48);
}

.sl-sms-modal.is-open{
    display:flex;
}

.sl-sms-dialog{
    width:min(560px,100%);
    max-height:86dvh;
    overflow:auto;
    border-radius:20px 20px 0 0;
    background:#fff;
}

.sl-sms-dialog-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    padding:18px 18px 0;
}

.sl-sms-dialog-head p{
    margin:0;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#7cb542;
}

.sl-sms-dialog-head h2{
    margin:4px 0 0;
    font-size:22px;
    color:#164a28;
}

.sl-sms-dialog-close{
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    background:#ebf6ee;
    cursor:pointer;
    font-size:22px;
}

.sl-sms-dialog-body{
    padding:16px 18px 20px;
}

.sl-sms-form,
.sl-sms-field,
.sl-sms-extra{
    display:grid;
    gap:8px;
}

.sl-sms-modal [hidden]{
    display:none !important;
}

.sl-sms-hint{
    margin:0;
    font-size:12px;
    font-weight:600;
    color:#5c6b52;
}

.sl-sms-field label,
.sl-sms-extra > label{
    font-size:12px;
    font-weight:800;
    color:#5c6b52;
}

.sl-sms-field select,
.sl-sms-field input,
.sl-sms-field textarea,
.sl-pick-filter{
    width:100%;
    border:1px solid #d4e8da;
    border-radius:12px;
    padding:11px 12px;
    font:inherit;
    box-sizing:border-box;
}

.sl-pick-list{
    max-height:180px;
    overflow:auto;
    display:grid;
    gap:6px;
    padding:8px;
    border:1px solid #d4e8da;
    border-radius:12px;
    background:#f7fbf8;
}

.sl-pick-row{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:8px;
    padding:8px;
    border-radius:10px;
    background:#fff;
}

.sl-sms-foot{
    display:flex;
    justify-content:flex-end;
    gap:8px;
}

.sl-sms-btn{
    min-height:42px;
    padding:0 16px;
    border:0;
    border-radius:999px;
    background:#7cb542;
    color:#fff;
    font-weight:800;
    cursor:pointer;
}

.sl-sms-btn--ghost{
    background:#ebf6ee;
    color:#164a28;
}

@media (min-width:720px){
    .sl-sms-modal{
        align-items:center;
        padding:24px;
    }
    .sl-sms-dialog{
        border-radius:20px;
    }
}

.lg-checks{
    border:0;
    margin:0;
    padding:0;
}

.lg-checks legend{
    font-size:13px;
    font-weight:800;
    color:#164a28;
    margin-bottom:8px;
}

.lg-check{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 0 8px;
    font-weight:700;
    color:#1a2416;
}

.lg-form textarea{
    width:100%;
    min-height:96px;
    padding:12px 14px;
    border:0;
    border-bottom:1px solid var(--lg-line);
    border-radius:0;
    font:inherit;
    font-size:15px;
    font-weight:600;
    resize:vertical;
    background:transparent;
}

.lg-mini-links{
    display:flex;
    justify-content:flex-end;
    gap:14px;
    margin:0;
}

.lg-mini-links a{
    color:var(--lg-khaki);
    font-size:12px;
    font-weight:700;
    text-decoration:none;
}

.lg-mini-links a:hover{
    color:var(--lg-forest);
}

body.lg-eval{
    justify-content:center;
    padding:28px 16px;
}

body.lg-eval .lg-card{
    max-width:440px;
    padding:22px 22px 18px;
}

body.lg-eval .lg-logo{
    margin:0 0 12px;
    padding:0 0 12px;
}

body.lg-eval .lg-logo img{
    max-height:48px;
    max-width:42%;
}

body.lg-eval .lg-kicker{
    margin:0 0 4px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--lg-khaki, #8a7a4a);
}

body.lg-eval .lg-card h1{
    margin:0 0 6px;
    font-size:22px;
    letter-spacing:-.03em;
}

body.lg-eval .lg-hint{
    margin:0 0 16px;
    font-size:13px;
    line-height:1.45;
    color:#5c6b52;
}

body.lg-eval .lg-alert{
    margin:0 0 12px;
    padding:10px 12px;
}

body.lg-eval .lg-form{
    gap:12px;
    grid-template-columns:1fr 1fr;
}

body.lg-eval .lg-eval-span,
body.lg-eval .lg-form > button,
body.lg-eval .lg-form > .osfi-star-pick{
    grid-column:1 / -1;
}

body.lg-eval .lg-form input{
    min-height:40px;
    padding:8px 0 6px;
    font-size:15px;
}

body.lg-eval .lg-form button[type="submit"]{
    min-height:44px;
    margin-top:4px;
}

body.lg-eval .lg-form textarea{
    min-height:72px;
    padding:8px 0;
    font-size:15px;
}

body.lg-eval .lg-portals{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:stretch;
    gap:12px;
    margin:0 0 14px;
    overflow-x:auto;
    padding:2px 2px 8px;
    scroll-snap-type:x proximity;
}

body.lg-eval .lg-portals form{
    margin:0;
    flex:1 1 0;
    min-width:168px;
    scroll-snap-align:start;
}

body.lg-eval .lg-portal{
    width:100%;
    min-height:168px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:8px;
    padding:18px 16px;
    border:1px solid #d9e4d4;
    border-radius:16px;
    background:#f6faf3;
    color:#164a28;
    font:inherit;
    text-align:left;
    cursor:pointer;
    appearance:none;
}

body.lg-eval .lg-portal:hover,
body.lg-eval .lg-portal:focus{
    border-color:#164a28;
    background:#eef6e4;
}

body.lg-eval .lg-portal-icon{
    font-size:26px;
    color:#c4a056;
}

body.lg-eval .lg-portal-text{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
}

body.lg-eval .lg-portal strong{
    font-size:15px;
    font-weight:800;
}

body.lg-eval .lg-portal-copy{
    font-size:12px;
    font-weight:600;
    line-height:1.35;
    color:#5c6b52;
}

body.lg-eval .lg-mini-links{
    justify-content:flex-start;
    margin-top:12px;
    gap:16px;
}

body.lg-eval .osfi-star-pick{
    margin:0;
    padding:0;
    border:0;
}

body.lg-eval .osfi-star-pick legend{
    padding:0;
    font-size:11px;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:var(--lg-khaki);
}

body.lg-eval .osfi-star-pick-row{
    display:flex;
    flex-direction:row-reverse;
    justify-content:flex-end;
    gap:2px;
    margin-top:4px;
}

body.lg-eval .osfi-star-pick-row input{
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
}

body.lg-eval .osfi-star-pick-row label{
    color:#d4d8ce;
    cursor:pointer;
}

body.lg-eval .osfi-star-pick-row label .material-icons{
    font-size:26px;
}

body.lg-eval .osfi-star-pick-row input:checked ~ label,
body.lg-eval .osfi-star-pick-row label:hover,
body.lg-eval .osfi-star-pick-row label:hover ~ label{
    color:#c4a056;
}

body.lg-eval .osfi-star-pick p{
    display:none;
}

body.lg-eval .osfi-star-pick .sr-only{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
}

@media (max-width: 560px){
    body.lg-eval .lg-form{
        grid-template-columns:1fr;
    }
}

.lg-result{
    max-width:440px;
}

.lg-result > h1{
    margin:0 0 14px;
}

.lg-kicker{
    display:inline-flex;
    align-items:center;
    margin:0 0 10px;
    padding:6px 10px;
    border-radius:999px;
    font-family:"Sora", sans-serif;
    font-size:10px;
    font-weight:700;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.lg-kicker--ok{
    background:rgba(22,74,40,.08);
    color:var(--lg-forest, #164a28);
}

.lg-kicker--err{
    background:rgba(176,64,48,.08);
    color:#8a2e22;
}

.lg-ref{
    display:grid;
    grid-template-columns:1fr auto;
    gap:4px 12px;
    align-items:center;
    margin:0 0 16px;
    padding:14px 16px;
    border:1px solid var(--lg-line, rgba(132,109,70,.28));
    border-radius:12px;
    background:linear-gradient(180deg, #fbf8f1 0%, #fff 100%);
}

.lg-ref-label{
    grid-column:1;
    font-family:"Sora", sans-serif;
    font-size:10px;
    font-weight:700;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--lg-khaki, #846d46);
}

.lg-ref-value{
    grid-column:1;
    font-family:"Sora", sans-serif;
    font-size:26px;
    font-weight:700;
    letter-spacing:.04em;
    color:var(--lg-forest, #164a28);
    line-height:1.15;
}

.lg-ref-copy{
    grid-column:2;
    grid-row:1 / span 2;
    min-height:36px;
    padding:0 12px;
    border:1px solid var(--lg-line, rgba(132,109,70,.28));
    border-radius:8px;
    background:#fff;
    color:var(--lg-khaki, #846d46);
    font-family:"Sora", sans-serif;
    font-size:11px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    cursor:pointer;
}

.lg-ref-copy:hover,
.lg-ref-copy:focus{
    color:var(--lg-forest, #164a28);
    border-color:var(--lg-gold, #c4a056);
}

.lg-result-copy{
    display:grid;
    gap:10px;
    margin:0 0 12px;
    color:var(--lg-muted, #5c6b52);
    font-size:14px;
    font-weight:500;
    line-height:1.55;
}

.lg-result-copy p{
    margin:0;
}

.lg-result-copy a{
    color:var(--lg-forest, #164a28);
    font-weight:700;
}

.lg-result-copy--err,
.lg-result-copy--err .error-list{
    color:#8a2e22;
}

.lg-result-copy .error-list{
    margin:0;
    padding-left:18px;
}

.lg-result-note{
    margin:0 0 8px;
}

.lg-result-actions{
    display:grid;
    gap:8px;
    margin-top:18px;
}

.lg-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    width:100%;
    border:0;
    border-radius:10px;
    background:var(--lg-forest, #164a28);
    color:#fff;
    font-family:"Sora", sans-serif;
    font-size:15px;
    font-weight:600;
    letter-spacing:.06em;
    text-transform:uppercase;
    text-decoration:none;
    box-shadow:0 10px 24px rgba(8,24,14,.18);
}

.lg-cta:hover,
.lg-cta:focus{
    background:var(--lg-forest-deep, #0f321c);
    color:#fff;
}

.lg-cta--ghost{
    background:#fff;
    color:var(--lg-forest, #164a28);
    border:1px solid var(--lg-line, rgba(132,109,70,.28));
    box-shadow:none;
}

.lg-cta--ghost:hover,
.lg-cta--ghost:focus{
    background:#fbf8f1;
    color:var(--lg-forest, #164a28);
}

.lg-status{
    margin:4px 0 18px;
    padding:16px;
    border:1px solid var(--lg-line, rgba(132,109,70,.28));
    border-radius:12px;
    background:#fbf8f1;
}

.lg-status-name{
    margin:0 0 4px;
    font-family:"Sora", sans-serif;
    font-size:16px;
    font-weight:700;
    color:var(--lg-forest, #164a28);
}

.lg-status-meta{
    margin:0 0 12px;
    font-size:13px;
    font-weight:600;
    color:var(--lg-muted, #5c6b52);
}

.lg-status-pill{
    display:inline-flex;
    align-items:center;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(22,74,40,.08);
    color:var(--lg-forest, #164a28);
    font-family:"Sora", sans-serif;
    font-size:11px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.lg-status-pill.is-rejected{
    background:rgba(176,64,48,.08);
    color:#8a2e22;
}

.lg-status-pill.is-accepted{
    background:rgba(22,74,40,.12);
    color:var(--lg-forest, #164a28);
}

.lg-status-pill.is-interview{
    background:rgba(196,160,86,.16);
    color:#6d5424;
}

.lg-status-date{
    margin:10px 0 0;
    font-size:12px;
    font-weight:600;
    color:var(--lg-muted, #5c6b52);
}

.lg-status .lg-form{
    margin-top:14px;
}

/* Login stage — masthead + sign-in sheet */
body.lg-page.lg-stage{
    display:block;
    padding:0;
    gap:0;
    background:
        radial-gradient(90% 50% at 50% -8%, rgba(196,160,86,.2), transparent 48%),
        linear-gradient(180deg, #164a28 0%, #0f321c 100%);
}

.lg-stage-inner{
    min-height:100vh;
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:22px;
    padding:max(28px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    box-sizing:border-box;
}

.lg-mast{
    width:min(560px, 100%);
    text-align:center;
}

.lg-mast-mark{
    position:relative;
    display:grid;
    justify-items:center;
    width:min(280px, 72vw);
    margin:0 auto 8px;
}

.lg-mast-logo{
    position:relative;
    z-index:1;
    display:block;
    width:auto;
    height:140px;
    max-width:100%;
    margin:0;
    object-fit:contain;
}

.lg-mast-floor{
    position:relative;
    z-index:0;
    display:block;
    width:88%;
    height:18px;
    margin-top:-4px;
    border-radius:50%;
    background:radial-gradient(ellipse at center, rgba(224,197,136,.7) 0%, rgba(196,160,86,.28) 45%, transparent 72%);
    filter:blur(3px);
}

.lg-mast h1{
    margin:0;
    font-family:"Sora", sans-serif;
    font-size:22px;
    font-weight:600;
    letter-spacing:-.03em;
    line-height:1.35;
    color:#fff;
}

.lg-mast h1 span{
    display:block;
    margin-top:10px;
    font-size:13px;
    font-weight:600;
    letter-spacing:.02em;
    line-height:1.4;
    color:rgba(255,255,255,.72);
}

.lg-creds{
    width:min(320px, 100%);
    display:grid;
    gap:14px;
}

.lg-creds--eval{
    width:min(1080px, 100%);
}

.lg-creds-kicker{
    margin:0;
    text-align:center;
    font-family:"Sora", sans-serif;
    font-size:11px;
    font-weight:700;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:rgba(224,197,136,.9);
}

.lg-creds-note{
    margin:0;
    text-align:center;
    font-size:13px;
    font-weight:600;
    line-height:1.5;
    color:rgba(255,255,255,.72);
}

.lg-stage .lg-status{
    margin:0;
    padding:0 0 14px;
    border:0;
    border-bottom:1px solid rgba(196,160,86,.28);
    border-radius:0;
    background:transparent;
}

.lg-stage .lg-status-name{
    color:#fff;
}

.lg-stage .lg-status-meta,
.lg-stage .lg-status-date{
    color:rgba(255,255,255,.68);
}

.lg-stage .lg-status-pill{
    background:rgba(255,255,255,.1);
    color:#fff;
}

.lg-stage .lg-status-pill.is-accepted{
    background:rgba(124,181,66,.22);
    color:#d4efb4;
}

.lg-stage .lg-status-pill.is-rejected{
    background:rgba(176,64,48,.28);
    color:#f3d0c8;
}

.lg-stage .lg-status-pill.is-interview{
    background:rgba(196,160,86,.22);
    color:#e0c588;
}

.lg-stage .lg-form{
    gap:14px;
}

.lg-stage .lg-field{
    gap:6px;
    font-size:10px;
    color:rgba(224,197,136,.86);
}

.lg-stage .lg-alert{
    margin:0;
    padding:10px 12px;
    font-size:12px;
    border-radius:0;
    border:0;
    border-left:2px solid rgba(232,120,96,.9);
    background:rgba(8,24,14,.28);
    color:#f3d0c8;
}
.lg-stage .lg-alert--ok{
    display:grid;
    gap:8px;
    border-left-color:#c4a056;
    color:#eef6e4;
}

.lg-stage-continue{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 12px;
    border-radius:0;
    background:#c4a056;
    color:#0f321c !important;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}

.lg-stage-continue:hover{background:#e0c588}

.lg-field-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}

.lg-stage .lg-field-row .lg-forgot{
    min-height:0;
    letter-spacing:0;
    text-transform:none;
    font-family:"Figtree", "Segoe UI", sans-serif;
    font-size:11px;
    font-weight:700;
    color:rgba(255,255,255,.72);
}

.lg-stage .lg-field-row .lg-forgot:hover,
.lg-stage .lg-field-row .lg-forgot:focus{
    color:#e0c588;
}

.lg-stage .lg-form input{
    min-height:42px;
    padding:8px 0 8px;
    border:0;
    border-bottom:1px solid rgba(255,255,255,.28);
    border-radius:0;
    background:transparent;
    color:#fff;
    font-size:15px;
    box-shadow:none;
}

.lg-stage .lg-form input::placeholder{color:rgba(255,255,255,.4)}

.lg-stage .lg-form input:focus{
    background:transparent;
    border-bottom-color:#c4a056;
    box-shadow:0 1px 0 #c4a056;
}

.lg-stage .lg-form input:-webkit-autofill,
.lg-stage .lg-form input:-webkit-autofill:hover,
.lg-stage .lg-form input:-webkit-autofill:focus{
    -webkit-text-fill-color:#fff;
    caret-color:#fff;
    box-shadow:0 0 0 1000px #164a28 inset;
    transition:background-color 9999s ease-out;
}

.lg-stage .lg-pass input{padding-right:40px}
.lg-stage .lg-eye{
    right:-6px;
    width:38px;
    height:38px;
    color:rgba(255,255,255,.7);
}

.lg-stage .lg-eye.is-on{
    color:#c4a056;
}

.lg-stage .lg-eye.is-on::after{
    content:"";
    position:absolute;
    width:18px;
    height:1.5px;
    background:currentColor;
    transform:rotate(-28deg);
    pointer-events:none;
}

.lg-stage .lg-form button[type="submit"]{
    min-height:42px;
    margin-top:6px;
    border-radius:0;
    background:#c4a056;
    color:#0f321c;
    font-size:12px;
    letter-spacing:.14em;
    box-shadow:none;
}

.lg-stage .lg-form button[type="submit"]:hover,
.lg-stage .lg-form button[type="submit"]:focus{
    background:#e0c588;
}

body.lg-stage.lg-eval .lg-form{
    grid-template-columns:1fr 1fr;
}

body.lg-stage.lg-eval .lg-eval-span,
body.lg-stage.lg-eval .lg-form > button,
body.lg-stage.lg-eval .lg-form > .osfi-star-pick{
    grid-column:1 / -1;
}

body.lg-stage.lg-eval .lg-form textarea{
    min-height:72px;
    padding:8px 0;
    border:0;
    border-bottom:1px solid rgba(255,255,255,.28);
    border-radius:0;
    background:transparent;
    color:#fff;
    font-size:15px;
    font-weight:600;
}

body.lg-stage.lg-eval .lg-form textarea:focus{
    outline:none;
    border-bottom-color:#c4a056;
    box-shadow:0 1px 0 #c4a056;
}

body.lg-stage.lg-eval .lg-form textarea::placeholder{
    color:rgba(255,255,255,.4);
}

body.lg-stage.lg-eval .lg-portals{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:stretch;
    gap:12px;
    margin:0;
    max-height:none;
    overflow-x:auto;
    overflow-y:visible;
    padding:4px 2px 10px;
    scroll-snap-type:x proximity;
    scrollbar-color:rgba(196,160,86,.7) transparent;
}

body.lg-stage.lg-eval .lg-portals form{
    flex:1 1 0;
    min-width:168px;
    scroll-snap-align:start;
}

body.lg-stage.lg-eval .lg-portal{
    width:100%;
    min-height:176px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:8px;
    padding:18px 16px 16px;
    border:1px solid rgba(224,197,136,.38);
    border-radius:16px;
    background:rgba(8,24,14,.28);
    color:#fff;
    font:inherit;
    text-align:left;
    cursor:pointer;
    transition:border-color .15s ease, background .15s ease, transform .15s ease;
}

body.lg-stage.lg-eval .lg-portal:hover,
body.lg-stage.lg-eval .lg-portal:focus{
    border-color:#c4a056;
    background:rgba(15,50,28,.55);
    transform:translateY(-2px);
}

body.lg-stage.lg-eval .lg-portal-icon{
    font-size:28px;
    color:#e0c588;
}

body.lg-stage.lg-eval .lg-portal-text{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
}

body.lg-stage.lg-eval .lg-portal strong{
    font-size:15px;
    font-weight:800;
    color:#fff;
}

body.lg-stage.lg-eval .lg-portal-copy{
    font-size:12px;
    font-weight:600;
    line-height:1.4;
    color:rgba(255,255,255,.68);
}

body.lg-stage.lg-eval .osfi-star-pick legend{
    color:rgba(224,197,136,.86);
}

@media (max-width: 560px){
    body.lg-stage.lg-eval .lg-form{
        grid-template-columns:1fr;
    }
}

.lg-sheet-links{
    display:flex;
    justify-content:center;
    gap:16px;
    margin:0;
    padding:0;
}

.lg-sheet-links a{
    color:rgba(255,255,255,.78);
    font-size:12px;
    font-weight:700;
    text-decoration:none;
}

.lg-sheet-links a:hover{color:#fff}

body.lg-stage > .lg-legal-nav,
.lg-stage-inner > .lg-legal-nav{
    width:min(420px, 100%);
    margin:0;
    padding:0;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px 16px;
}

.lg-stage-inner > .lg-legal-nav a{
    color:rgba(255,255,255,.72);
    font-size:12px;
    font-weight:600;
    text-decoration:none;
}

.lg-stage-inner > .lg-legal-nav a:hover{color:#fff}

@media (max-width: 640px){
    .lg-stage-inner{
        justify-content:flex-start;
        gap:16px;
        padding:max(12px, env(safe-area-inset-top, 0px)) 14px max(16px, env(safe-area-inset-bottom, 0px));
    }

    .lg-mast-mark{width:min(180px, 70vw);margin-bottom:2px}
    .lg-mast-logo{height:72px}

    .lg-mast h1{font-size:15px}

    .lg-mast h1 span{font-size:12px;margin-top:6px}

    .lg-creds--eval{
        width:100%;
        gap:12px;
    }

    .lg-creds-note{
        font-size:12px;
        line-height:1.45;
    }

    body.lg-eval .lg-portals,
    body.lg-stage.lg-eval .lg-portals{
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
        overflow:visible;
        padding:0;
        scroll-snap-type:none;
    }

    body.lg-eval .lg-portals form,
    body.lg-stage.lg-eval .lg-portals form{
        min-width:0;
        flex:none;
    }

    body.lg-eval .lg-portal,
    body.lg-stage.lg-eval .lg-portal{
        min-height:56px;
        flex-direction:row;
        align-items:center;
        gap:12px;
        padding:12px 14px;
        border-radius:14px;
        transform:none;
    }

    body.lg-eval .lg-portal-icon,
    body.lg-stage.lg-eval .lg-portal-icon{
        font-size:22px;
        flex-shrink:0;
    }

    body.lg-eval .lg-portal strong,
    body.lg-stage.lg-eval .lg-portal strong{
        font-size:14px;
    }

    body.lg-eval .lg-portal-copy,
    body.lg-stage.lg-eval .lg-portal-copy{
        font-size:11px;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }

    .lg-sheet-links{
        flex-wrap:wrap;
        gap:8px 18px;
        padding-bottom:env(safe-area-inset-bottom, 0px);
    }

    .lg-sheet-links a{
        min-height:44px;
        display:inline-flex;
        align-items:center;
    }
}

@media (min-width: 641px) and (max-width: 900px){
    body.lg-eval .lg-portals,
    body.lg-stage.lg-eval .lg-portals{
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        overflow:visible;
        scroll-snap-type:none;
        gap:10px;
    }

    body.lg-eval .lg-portals form,
    body.lg-stage.lg-eval .lg-portals form{
        min-width:0;
        flex:none;
    }

    body.lg-eval .lg-portal,
    body.lg-stage.lg-eval .lg-portal{
        min-height:140px;
    }

    .lg-creds--eval{
        width:min(720px, 100%);
    }
}

@media (hover: none){
    body.lg-stage.lg-eval .lg-portal:hover,
    body.lg-stage.lg-eval .lg-portal:focus{
        transform:none;
    }
}