:root {
    --navy:#073765;
    --navy2:#0a2c52;
    --teal:#079aa6;
    --teal2:#14aeb4;
    --bg:#f7fafb;
    --card:#fff;
    --text:#152333;
    --muted:#657485;
    --line:#dce5e9;
    --soft:#edf7f7;
    --danger:#a33b3b;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--text);
    background:var(--bg);
}

button,input,select,textarea {
    font:inherit;
}

button {
    cursor:pointer;
}

.screen {
    display:none;
    min-height:100vh;
    animation:fade .35s ease;
}

.screen.active {
    display:block;
}

@keyframes fade {
    from {
        opacity:0;
        transform:translateY(5px);
    }

    to {
        opacity:1;
        transform:none;
    }

}

.auth {
    display:grid;
    grid-template-columns:43% 57%;
    min-height:100vh;
}

.brand {
    background:linear-gradient(145deg,#f0f8f8 0%,#e7f4f5 100%);
    padding:48px 62px;
    position:relative;
    overflow:hidden;
}

.brand:after {
    content:"";
    position:absolute;
    width:390px;
    height:390px;
    border:58px solid rgba(7,154,166,.07);
    border-radius:50%;
    bottom:-190px;
    right:-150px;
}

.logo {
    width:260px;
    max-width:78%;
    height:auto;
}

.hero {
    max-width:520px;
    margin:18vh auto 0;
}

.eyebrow {
    font-size:12px;
    letter-spacing:.22em;
    text-transform:uppercase;
    color:var(--teal);
    font-weight:800;
}

.hero h1 {
    font-family:Georgia,serif;
    font-size:50px;
    line-height:1.08;
    margin:20px 0;
    color:#102d4b;
    font-weight:500;
}

.hero p {
    font-size:18px;
    line-height:1.7;
    color:#46596a;
}

.trust {
    margin-top:35px;
    background:rgba(255,255,255,.8);
    padding:17px 20px;
    border-radius:12px;
    font-size:14px;
    color:#3b5367;
}

.authpane {
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:50px;
}

.formbox {
    width:100%;
    max-width:500px;
}

.formbox h2 {
    font-size:31px;
    margin:0 0 8px;
}

.sub {
    color:var(--muted);
    margin:0 0 28px;
    line-height:1.55;
}

.field {
    margin:0 0 18px;
}

.field label {
    display:block;
    font-size:14px;
    font-weight:700;
    margin-bottom:8px;
}

.field input,.field select,.field textarea {
    width:100%;
    padding:14px 15px;
    border:1px solid #cbd8dd;
    border-radius:9px;
    background:#fbfcfc;
    outline:none;
    transition:.2s;
}

.field input:focus,.field select:focus,.field textarea:focus {
    border-color:var(--teal);
    box-shadow:0 0 0 3px rgba(7,154,166,.1);
}

.row {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.btn {
    border:0;
    border-radius:9px;
    padding:14px 18px;
    font-weight:750;
    background:linear-gradient(90deg,var(--navy),#0b4b78);
    color:white;
    transition:.2s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.btn:hover {
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(7,55,101,.16);
}

.btn.teal {
    background:#028893;
}

.btn.outline {
    background:#fff;
    color:var(--navy);
    border:1px solid #bfd0d8;
}

.btn.full {
    width:100%;
}

.fine {
    font-size:13px;
    color:#71808d;
    line-height:1.5;
}

.link {
    color:var(--teal);
    font-weight:700;
    cursor:pointer;
}

.center {
    text-align:center;
}

.check {
    display:flex;
    gap:10px;
    align-items:flex-start;
    font-size:14px;
    color:#526473;
    margin:17px 0 22px;
}

.code {
    display:flex;
    gap:10px;
    margin:22px 0;
}

.code input {
    width:56px;
    height:60px;
    text-align:center;
    font-size:25px;
    border:1px solid #cbd8dd;
    border-radius:10px;
}

.app {
    display:grid;
    grid-template-columns:250px 1fr;
    min-height:100vh;
}

.side {
    background:var(--navy2);
    color:white;
    padding:27px 18px;
    position:fixed;
    inset:0 auto 0 0;
    width:250px;
}

.side .logo {
    width:190px;
    filter:brightness(0) invert(1);
    opacity:.98;
    margin:0 10px 28px;
}

.nav {
    display:flex;
    flex-direction:column;
    gap:7px;
}

.nav button {
    border:0;
    background:transparent;
    color:#c8d7e4;
    text-align:left;
    padding:12px 14px;
    border-radius:8px;
    font-weight:650;
}

.nav button:hover,.nav button.on {
    background:rgba(20,174,180,.16);
    color:#fff;
}

.nav small {
    display:block;
    color:#7791a7;
    margin:28px 14px 9px;
    text-transform:uppercase;
    letter-spacing:.14em;
}

.sidefoot {
    position:absolute;
    bottom:25px;
    left:20px;
    right:20px;
    border-top:1px solid rgba(255,255,255,.12);
    padding-top:18px;
    font-size:13px;
    color:#adc0cf;
}

.main {
    grid-column:2;
    padding:0 38px 50px;
}

.top {
    height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    margin-bottom:32px;
}

.top h2 {
    margin:0;
    font-size:24px;
}

.avatar {
    width:38px;
    height:38px;
    border-radius:50%;
    background:var(--soft);
    color:var(--navy);
    display:grid;
    place-items:center;
    font-weight:800;
}

.content {
    max-width:1180px;
}

.welcome {
    display:flex;
    justify-content:space-between;
    gap:30px;
    align-items:flex-start;
}

.welcome h1 {
    font-size:34px;
    margin:0 0 8px;
}

.welcome p {
    color:var(--muted);
    margin:0;
}

.status {
    background:#eaf7f5;
    color:#087c83;
    padding:8px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
}

.cards {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin:28px 0;
}

.card {
    background:white;
    border:1px solid var(--line);
    border-radius:13px;
    padding:22px;
    box-shadow:0 3px 12px rgba(22,46,67,.035);
}

.card h3 {
    margin:0 0 7px;
    font-size:17px;
}

.card p {
    color:var(--muted);
    font-size:14px;
    line-height:1.5;
}

.num {
    font-size:29px;
    font-weight:800;
    color:var(--navy);
    margin:9px 0;
}

.progress {
    height:8px;
    background:#e7eef1;
    border-radius:10px;
    overflow:hidden;
    margin:16px 0;
}

.progress span {
    display:block;
    height:100%;
    background:var(--teal);
    width:42%;
}

.sectionhead {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:32px 0 15px;
}

.sectionhead h2 {
    font-size:20px;
    margin:0;
}

.steps {
    background:#fff;
    border:1px solid var(--line);
    border-radius:13px;
    padding:5px 22px;
}

.step {
    display:grid;
    grid-template-columns:38px 1fr auto;
    gap:12px;
    align-items:center;
    padding:17px 0;
    border-bottom:1px solid #edf1f3;
}

.step:last-child {
    border:0;
}

.dot {
    width:30px;
    height:30px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#e9f6f6;
    color:var(--teal);
    font-weight:800;
}

.step.done .dot {
    background:var(--teal);
    color:white;
}

.step b {
    display:block;
}

.step span {
    font-size:13px;
    color:var(--muted);
}

.uploadbox {
    border:2px dashed #b7d2d7;
    background:#f9fcfc;
    border-radius:14px;
    padding:52px;
    text-align:center;
    transition:.2s;
}

.uploadbox:hover {
    border-color:var(--teal);
    background:#f1fafa;
}

.uploadicon {
    font-size:40px;
    color:var(--teal);
}

.filelist {
    margin-top:20px;
}

.file {
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff;
    border:1px solid var(--line);
    border-radius:10px;
    padding:14px 16px;
    margin:10px 0;
}

.pill {
    font-size:12px;
    padding:5px 9px;
    border-radius:999px;
    background:#eaf7f5;
    color:#087c83;
    font-weight:800;
}

.qwrap {
    display:grid;
    grid-template-columns:240px 1fr;
    gap:28px;
}

.qside {
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    padding:18px;
    height:max-content;
}

.qside .qitem {
    padding:10px;
    border-radius:8px;
    font-size:14px;
    color:var(--muted);
}

.qside .qitem.on {
    background:var(--soft);
    color:var(--navy);
    font-weight:750;
}

.qcard {
    background:white;
    border:1px solid var(--line);
    border-radius:13px;
    padding:30px;
}

.qcard h2 {
    margin-top:0;
}

.qactions {
    display:flex;
    justify-content:space-between;
    margin-top:25px;
}

.notice {
    background:#f3f8fa;
    border-left:3px solid var(--teal);
    padding:14px 16px;
    border-radius:6px;
    color:#526473;
    font-size:13px;
    line-height:1.55;
}

.toast {
    position:fixed;
    right:24px;
    bottom:24px;
    background:#123958;
    color:#fff;
    padding:14px 18px;
    border-radius:9px;
    opacity:0;
    transform:translateY(15px);
    transition:.3s;
    pointer-events:none;
}

.toast.show {
    opacity:1;
    transform:none;
}

.intake-screen {
    min-height:100vh;
    background:#fbfdfd;
    position:relative;
    overflow:hidden;
}

.intake-screen:before {
    content:"";
    position:fixed;
    width:420px;
    height:420px;
    border-radius:50%;
    background:rgba(7,154,166,.045);
    right:-180px;
    top:-170px;
}

.intake-top {
    height:78px;
    padding:0 48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #e8eff1;
    background:rgba(255,255,255,.92);
}

.intake-top .logo {
    width:185px;
}

.intake-progress {
    position:fixed;
    top:78px;
    left:0;
    right:0;
    height:3px;
    background:#e9eff1;
    z-index:4;
}

.intake-progress span {
    display:block;
    height:100%;
    background:var(--teal);
    transition:width .45s cubic-bezier(.4,0,.2,1);
}

.intake-body {
    max-width:800px;
    margin:0 auto;
    padding:11vh 32px 80px;
}

.type-step {
    display:none;
}

.type-step.active {
    display:block;
    animation:typeIn .48s cubic-bezier(.2,.8,.2,1);
}

@keyframes typeIn {
    from {
        opacity:0;
        transform:translateY(24px);
    }

    to {
        opacity:1;
        transform:translateY(0);
    }

}

.qnumber {
    font-size:14px;
    color:var(--teal);
    font-weight:800;
    margin-bottom:15px;
}

.type-step h1 {
    font-family:Georgia,serif;
    font-size:40px;
    line-height:1.18;
    font-weight:500;
    color:#102d4b;
    margin:0 0 12px;
}

.type-step .prompt {
    font-size:17px;
    color:#6b7a87;
    margin:0 0 32px;
    line-height:1.6;
}

.biginput {
    width:100%;
    border:0;
    border-bottom:2px solid #b8c9ce;
    background:transparent;
    padding:14px 2px;
    font-size:25px;
    color:#17314a;
    outline:none;
    transition:.2s;
}

.biginput:focus {
    border-color:var(--teal);
}

.choicegrid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.choice {
    border:1px solid #cbdadd;
    background:white;
    border-radius:10px;
    padding:16px 18px;
    text-align:left;
    color:#31485b;
    transition:.2s;
}

.choice:hover,.choice.selected {
    border-color:var(--teal);
    background:#f0fafa;
    box-shadow:0 4px 14px rgba(7,154,166,.08);
}

.choice.selected {
    color:#086e76;
    font-weight:750;
}

.type-actions {
    display:flex;
    align-items:center;
    gap:13px;
    margin-top:34px;
}

.enterhint {
    font-size:12px;
    color:#8a969f;
}

.type-back {
    position:fixed;
    bottom:28px;
    right:34px;
    display:flex;
    gap:6px;
}

.type-back button {
    width:38px;
    height:36px;
    border:1px solid #d4e0e3;
    background:white;
    color:#506574;
    border-radius:7px;
}

.simple-dashboard {
    max-width:920px;
}

.casebar {
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    padding:22px 24px;
    margin:26px 0;
}

.casebar-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.casebar h3 {
    margin:0 0 5px;
}

.casebar p {
    margin:0;
    color:var(--muted);
    font-size:14px;
}

.plain-grid {
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:18px;
}

.plain-panel {
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    padding:24px;
}

.plain-panel h2 {
    font-size:18px;
    margin:0 0 18px;
}

.plain-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 0;
    border-bottom:1px solid #edf1f3;
}

.plain-row:last-child {
    border:0;
}

.plain-row b {
    font-size:14px;
}

.plain-row span {
    font-size:13px;
    color:var(--muted);
}

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

    .brand {
        display:none;
    }

    .app {
        grid-template-columns:1fr;
    }

    .side {
        display:none;
    }

    .main {
        grid-column:1;
        padding:0 20px 40px;
    }

    .cards {
        grid-template-columns:1fr;
    }

    .qwrap {
        grid-template-columns:1fr;
    }

    .qside {
        display:none;
    }

    .welcome {
        display:block;
    }

    .status {
        display:inline-block;
        margin-top:14px;
    }

}

.full-main {
    grid-column:2;
    padding:0 42px 55px;
    width:calc(100vw - 250px);
}

.full-content {
    width:100%;
    max-width:none;
}

.dashboard-grid {
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
    margin-top:24px;
}

.wide-panel {
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    padding:26px;
}

.wide-panel h2 {
    margin:0 0 18px;
    font-size:19px;
}

.case-summary {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:0;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    margin:25px 0;
    overflow:hidden;
}

.summary-cell {
    padding:22px;
    border-right:1px solid var(--line);
}

.summary-cell:last-child {
    border:0;
}

.summary-cell span {
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:7px;
}

.summary-cell b {
    font-size:15px;
    color:#18334b;
}

.account-form {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.account-form .field {
    margin:0;
}

.agreement {
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:center;
    padding:17px 0;
    border-bottom:1px solid #edf1f3;
}

.agreement:last-child {
    border:0;
}

.agreement small {
    display:block;
    color:var(--muted);
    margin-top:5px;
}

.loader-screen {
    position:fixed;
    inset:0;
    background:#f9fcfc;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.loader-screen.show {
    display:flex;
    animation:fade .25s ease;
}

.loader-inner {
    width:min(520px,85vw);
}

.loader-logo {
    width:240px;
    margin-bottom:35px;
}

.loader-ring {
    width:54px;
    height:54px;
    border:4px solid #d9ebed;
    border-top-color:var(--teal);
    border-radius:50%;
    margin:0 auto 24px;
    animation:spin .85s linear infinite;
}

@keyframes spin {
    to {
        transform:rotate(360deg);
    }

}

.loader-inner h2 {
    font-family:Georgia,serif;
    font-weight:500;
    color:var(--navy);
    font-size:30px;
    margin:0 0 10px;
}

.loader-inner p {
    color:var(--muted);
    line-height:1.6;
}

.loader-line {
    height:5px;
    background:#e5eff1;
    border-radius:10px;
    overflow:hidden;
    margin:26px auto 0;
    max-width:360px;
}

.loader-line span {
    display:block;
    height:100%;
    width:0;
    background:var(--teal);
    animation:loadline 2.2s ease forwards;
}

@keyframes loadline {
    to {
        width:100%;
    }

}

.profile-card {
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:24px;
}

.profile-avatar {
    width:64px;
    height:64px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:var(--soft);
    color:var(--navy);
    font-size:20px;
    font-weight:800;
}

.settings-list {
    border-top:1px solid var(--line);
}

.setting-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
    border-bottom:1px solid var(--line);
}

.switch {
    width:43px;
    height:24px;
    border-radius:20px;
    background:var(--teal);
    position:relative;
}

.switch:after {
    content:"";
    position:absolute;
    width:18px;
    height:18px;
    background:#fff;
    border-radius:50%;
    right:3px;
    top:3px;
}

.dangerbtn {
    color:#9a3333;
    border-color:#e1bcbc!important;
}

.upload-complete {
    display:flex;
    justify-content:flex-end;
    margin-top:22px;
}

@media(max-width:900px) {
    .full-main {
        width:100%;
        padding:0 20px 40px;
    }

    .dashboard-grid,.case-summary,.account-form {
        grid-template-columns:1fr;
    }

    .summary-cell {
        border-right:0;
        border-bottom:1px solid var(--line);
    }

}

.recprocess {
    background: #ffeb0047 !important;
    color: #808400 !important;
    padding:9px;
}

.record-checklist {
    border:1px solid #e3e8e8;
    border-radius:14px;
    padding:20px;
    margin-bottom:20px;
    background:#fff;
}

.checkrow {
    display:flex;
    gap:13px;
    align-items:flex-start;
    padding:13px 4px;
    border-bottom:1px solid #eef1f1;
    cursor:pointer;
}

.checkrow:last-child {
    border-bottom:0;
}

.checkrow input {
    width:18px;
    height:18px;
    margin-top:2px;
    accent-color:#079aa5;
}

.checkrow span {
    display:flex;
    flex-direction:column;
    gap:3px;
}

.checkrow b {
    font-size:14px;
    color:#17364a;
}

.checkrow small {
    font-size:12px;
    color:#718087;
    line-height:1.4;
}

/* Updated user dashboard */

.dashboard-lower {
    display:grid;
    grid-template-columns:1.15fr .82fr;
    gap:20px;
    margin-top:20px;
}

.dashboard-card {
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    padding:24px;
}

.dashboard-card h2 {
    font-size:18px;
    margin:0 0 18px;
}

.activity-item {
    display:flex;
    gap:13px;
    padding:14px 0;
    border-bottom:1px solid #edf1f3;
}

.activity-item:last-child {
    border-bottom:0;
}

.activity-dot {
    width:9px;
    height:9px;
    background:var(--teal);
    border-radius:50%;
    margin-top:5px;
    flex:0 0 auto;
}

.activity-item b {
    display:block;
    font-size:14px;
    margin-bottom:4px;
}

.activity-item small {
    color:var(--muted);
    line-height:1.45;
}

.record-item {
    display:grid;
    grid-template-columns:38px 1fr auto;
    gap:11px;
    align-items:center;
    padding:13px 0;
    border-bottom:1px solid #edf1f3;
}

.record-item:last-of-type {
    border-bottom:0;
}

.record-icon {
    width:34px;
    height:38px;
    border:1px solid #cfe0e5;
    border-radius:7px;
    display:grid;
    place-items:center;
    color:var(--teal);
    font-size:10px;
    font-weight:800;
}

.record-item b {
    display:block;
    font-size:13px;
    margin-bottom:3px;
}

.record-item small {
    color:var(--muted);
}

.record-received {
    font-size:11px;
    color:#087c83;
    font-weight:800;
}

.need-box {
    background:#f2fbfb;
    border:1px solid #d2eeee;
    border-radius:10px;
    padding:18px;
}

.need-check {
    width:30px;
    height:30px;
    border-radius:50%;
    background:var(--teal);
    color:#fff;
    display:grid;
    place-items:center;
    font-weight:800;
    margin-bottom:12px;
}

.need-box h3 {
    margin:0 0 7px;
    font-size:15px;
}

.need-box p {
    margin:0;
    color:var(--muted);
    font-size:12px;
    line-height:1.55;
}

.dashboard-help {
    margin-top:17px;
    padding-top:16px;
    border-top:1px solid #edf1f3;
}

.dashboard-help b {
    font-size:13px;
}

.dashboard-help p {
    font-size:12px;
    color:var(--muted);
    line-height:1.5;
    margin:6px 0 9px;
}

.text-link {
    border:0;
    background:transparent;
    color:var(--teal);
    padding:0;
    font-weight:750;
}

@media(max-width:1150px) {
    .dashboard-lower {
        grid-template-columns:1fr 1fr;
    }

    .dashboard-lower .dashboard-card:last-child {
        grid-column:1/-1;
    }

}

@media(max-width:900px) {
    .dashboard-lower {
        grid-template-columns:1fr;
    }

    .dashboard-lower .dashboard-card:last-child {
        grid-column:auto;
    }

}

/* Professional dashboard sidebar only */
#dashboard .app {
    grid-template-columns:232px 1fr;
}

#dashboard .side {
    width:232px;
    background:#082b4d;
    padding:26px 16px 22px;
    display:flex;
    flex-direction:column;
}

#dashboard .side .logo {
    width:178px;
    margin:2px 10px 24px;
    padding-bottom:22px;
    border-bottom:1px solid rgba(255,255,255,.10);
}

#dashboard .nav {
    gap:4px;
}

#dashboard .nav button {
    height:44px;
    padding:0 11px;
    border-radius:8px;
    font-size:14px;
    font-weight:620;
    display:flex;
    align-items:center;
    gap:11px;
    color:#c9d8e5;
}

#dashboard .nav button:hover {
    background:rgba(255,255,255,.055);
    color:#fff;
}

#dashboard .nav button.on {
    background:#104b70;
    color:#fff;
    font-weight:720;
}

#dashboard .nav small {
    font-size:10px;
    font-weight:800;
    letter-spacing:.16em;
    color:#7695af;
    margin:22px 12px 8px;
}

#dashboard .dash-icon {
    width:19px;
    height:19px;
    display:grid;
    place-items:center;
    flex:0 0 19px;
}

#dashboard .dash-icon svg {
    width:18px;
    height:18px;
    stroke:currentColor;
    fill:none;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

#dashboard .sidefoot {
    left:27px;
    right:27px;
    bottom:22px;
    color:#7f9ab1;
    font-size:11px;
}

#dashboard .full-main {
    width:calc(100vw - 232px);
}

@media(max-width:900px) {
    #dashboard .full-main {
        width:100%;
    }

}

.qr-page {
    max-width:1100px;
}

.qr-header {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:24px;
    margin-bottom:24px;
}

.qr-header h1 {
    font-size:32px;
    margin:0 0 8px;
}

.qr-header p {
    margin:0;
    color:var(--muted);
}

.qr-meta {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
    margin-bottom:20px;
}

.qr-meta-item {
    padding:18px 20px;
    border-right:1px solid var(--line);
}

.qr-meta-item:last-child {
    border-right:0;
}

.qr-meta-item span,.qr-answer span {
    display:block;
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.05em;
    margin-bottom:6px;
}

.qr-meta-item b {
    font-size:14px;
}

.qr-section {
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    padding:24px;
    margin-bottom:16px;
}

.qr-section h2 {
    font-size:18px;
    margin:0 0 18px;
}

.qr-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 34px;
}

.qr-answer {
    padding:14px 0;
    border-bottom:1px solid #edf1f3;
}

.qr-answer b {
    display:block;
    font-size:14px;
    line-height:1.5;
    color:#18334b;
}

.qr-long {
    background:#f8fbfb;
    border:1px solid #e3ebed;
    border-radius:9px;
    padding:16px;
    font-size:14px;
    line-height:1.65;
    color:#31485b;
}

/* Keep the professional portal sidebar identical on every authenticated page */
.app {
    grid-template-columns:232px 1fr;
}

.side {
    width:232px;
    background:#082b4d;
    padding:26px 16px 22px;
    display:flex;
    flex-direction:column;
}

.side .logo {
    width:178px;
    margin:2px 10px 24px;
    padding-bottom:22px;
    border-bottom:1px solid rgba(255,255,255,.10);
}

.side .nav {
    gap:4px;
}

.side .nav button {
    height:44px;
    padding:0 11px;
    border-radius:8px;
    font-size:14px;
    font-weight:620;
    display:flex;
    align-items:center;
    gap:11px;
    color:#c9d8e5;
}

.side .nav button:hover {
    background:rgba(255,255,255,.055);
    color:#fff;
}

.side .nav button.on {
    background:#104b70;
    color:#fff;
    font-weight:720;
}

.side .nav small {
    font-size:10px;
    font-weight:800;
    letter-spacing:.16em;
    color:#7695af;
    margin:22px 12px 8px;
}

.side .dash-icon {
    width:19px;
    height:19px;
    display:grid;
    place-items:center;
    flex:0 0 19px;
}

.side .dash-icon svg {
    width:18px;
    height:18px;
    stroke:currentColor;
    fill:none;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.side .sidefoot {
    left:27px;
    right:27px;
    bottom:22px;
    color:#7f9ab1;
    font-size:11px;
}

.full-main {
    width:calc(100vw - 232px);
}

@media(max-width:900px) {
    .full-main {
        width:100%;
    }

}

/* FightCancer background motif: soft intersecting ribbons instead of circles */
.auth::before {
    width:620px;
    height:260px;
    border:0;
    border-radius:42px;
    right:-190px;
    bottom:70px;
    background:rgba(8,154,166,.055);
    transform:rotate(-28deg);
}

.auth::after {
    content:"";
    position:absolute;
    width:540px;
    height:145px;
    right:-120px;
    bottom:205px;
    border:0;
    border-radius:34px;
    background:rgba(8,154,166,.045);
    transform:rotate(24deg);
    pointer-events:none;
}

/* Replace original circular brand decoration */
.brand:after {
    content:"";
    position:absolute;
    width:520px;
    height:170px;
    right:-155px;
    bottom:40px;
    border:0;
    border-radius:34px;
    background:rgba(7,154,166,.065);
    transform:rotate(-31deg);
    pointer-events:none;
}

.brand:before {
    content:"";
    position:absolute;
    width:430px;
    height:105px;
    right:-90px;
    bottom:190px;
    border-radius:28px;
    background:rgba(7,154,166,.045);
    transform:rotate(25deg);
    pointer-events:none;
}

.auth::before,.auth::after {
    display:none!important;
}

/* Registration agreements */
.registration-agreements {
    min-height:100vh;
    background:#f7fafb;
    padding:38px 22px;
}

.registration-agreements .agreement-shell {
    max-width:860px;
    margin:0 auto;
}

.registration-agreements .agreement-logo {
    display:block;
    width:190px;
    margin:0 auto 26px;
}

.registration-agreements .agreement-card {
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:0 12px 35px rgba(15,43,65,.06);
    overflow:hidden;
}

.registration-agreements .agreement-heading {
    padding:28px 30px 20px;
    border-bottom:1px solid var(--line);
}

.registration-agreements .agreement-heading h1 {
    margin:0 0 8px;
    font-size:27px;
}

.registration-agreements .agreement-heading p {
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.55;
}

.registration-agreements .agreement-progress {
    display:flex;
    gap:7px;
    margin-top:18px;
}

.registration-agreements .agreement-progress span {
    height:5px;
    flex:1;
    border-radius:999px;
    background:#dfe9ec;
}

.registration-agreements .agreement-progress span.done {
    background:var(--teal);
}

.registration-agreements .agreement-scroll {
    height:430px;
    overflow-y:auto;
    padding:26px 30px;
    scroll-behavior:smooth;
}

.registration-agreements .legal-section {
    padding-bottom:27px;
    margin-bottom:27px;
    border-bottom:1px solid #e8eef0;
}

.registration-agreements .legal-section:last-child {
    border-bottom:0;
    margin-bottom:0;
}

.registration-agreements .legal-num {
    display:inline-grid;
    place-items:center;
    width:27px;
    height:27px;
    border-radius:7px;
    background:#eaf7f7;
    color:#087d84;
    font-size:12px;
    font-weight:800;
    margin-bottom:10px;
}

.registration-agreements .legal-section h2 {
    font-size:18px;
    margin:0 0 11px;
}

.registration-agreements .legal-section p,.registration-agreements .legal-section li {
    font-size:13px;
    color:#536777;
    line-height:1.7;
}

.registration-agreements .legal-section ul {
    padding-left:19px;
    margin:10px 0 0;
}

.registration-agreements .agreement-actions {
    padding:20px 30px 26px;
    border-top:1px solid var(--line);
    background:#fbfcfc;
}

.registration-agreements .agree-check {
    display:flex;
    align-items:flex-start;
    gap:11px;
    font-size:13px;
    line-height:1.5;
    color:#43596a;
    margin-bottom:17px;
}

.registration-agreements .agree-check input {
    width:17px;
    height:17px;
    margin-top:2px;
    accent-color:var(--teal);
}

.registration-agreements .agreement-buttons {
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.registration-agreements .scroll-note {
    font-size:11px;
    color:#81909b;
    margin-bottom:12px;
}

@media(max-width:650px) {
    .registration-agreements {
        padding:18px 12px;
    }

    .registration-agreements .agreement-heading,.registration-agreements .agreement-scroll,.registration-agreements .agreement-actions {
        padding-left:20px;
        padding-right:20px;
    }

    .registration-agreements .agreement-scroll {
        height:52vh;
    }

}

.contract-document {
    display:none;
}

.contract-document.active {
    display:block;
}

.contract-title {
    text-align:center;
    border-bottom:1px solid #dfe7ea;
    padding-bottom:18px;
    margin-bottom:22px;
}

.contract-title h2 {
    font-family:Georgia,serif;
    color:#0b3156;
    font-size:23px;
    margin:0 0 6px;
}

.contract-title p {
    font-size:12px!important;
    color:#7a8995!important;
    margin:0!important;
}

.contract-document h3 {
    font-size:14px;
    color:#173b58;
    margin:23px 0 7px;
}

.contract-document>p {
    font-size:13px;
    color:#536777;
    line-height:1.72;
    margin:0 0 12px;
}

.agreement-step-label {
    font-size:10px;
    font-weight:800;
    letter-spacing:.12em;
    color:#079aa6;
    margin-bottom:5px;
}

.agreement-count {
    min-width:50px;
    text-align:center;
    padding:7px 10px;
    background:#edf7f7;
    border-radius:999px;
    color:#087d84;
    font-size:12px;
    font-weight:800;
}

.agreement-actions .btn:disabled {
    opacity:.45;
    cursor:not-allowed;
}

/* Agreement flow rendering safety */
#registration-agreements .contract-document {
    display:none!important;
}

#registration-agreements .contract-document.active {
    display:block!important;
}

#registration-agreements .agreement-card {
    position:relative;
}

#registration-agreements .agreement-scroll {
    overflow-x:hidden;
}

.form-error {
    color: #a33b3b;
    padding: 12px;
    background: #fff1f1;
    border-radius: 8px;
}

/* Shared registration/report disclosures. */
.disclosure-statement { font-size:clamp(24px,4vw,36px);font-weight:700;line-height:1.45;padding:24px 8px;color:#14334d; }
.final-disclosures { height:min(480px, 52dvh) !important;max-height:52dvh !important;min-height:0 !important;overflow-y:auto !important;overscroll-behavior:contain; }
.final-disclosures p {font-size:13px;line-height:1.7;}.final-disclosures h3 {font-size:15px;line-height:1.5;margin:18px 0 8px;}
#registrationCheckLabel[hidden],#reportAgreementCheckLabel[hidden] {display:none !important;}
#registrationCheckLabel {display:flex;gap:10px;align-items:center;margin:16px 0;}
