:root{
  --navy:#0b2545;
  --navy-2:#123a63;
  --blue:#1477d4;
  --blue-dark:#0b5aa5;
  --teal:#0f9b8e;
  --green:#147a5b;
  --red:#d92d20;
  --red-dark:#b42318;
  --amber:#b86b00;
  --bg:#f4f8fb;
  --surface:#ffffff;
  --surface-2:#eef6fb;
  --ink:#122033;
  --muted:#627184;
  --line:#dce6ee;
  --shadow:0 18px 50px rgba(14,45,73,.09);
  --shadow-sm:0 8px 24px rgba(14,45,73,.07);
  --radius:22px;
  --radius-sm:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:linear-gradient(180deg,#f8fbfd 0,#f4f8fb 42%,#eef5f8 100%);color:var(--ink);line-height:1.6;min-height:100vh}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
img{max-width:100%;display:block}

.topbar{min-height:76px;background:rgba(255,255,255,.96);border-bottom:1px solid rgba(220,230,238,.9);display:flex;align-items:center;justify-content:space-between;padding:12px max(18px,calc((100% - 1180px)/2));gap:18px;position:sticky;top:0;z-index:40;backdrop-filter:blur(12px);box-shadow:0 2px 18px rgba(18,32,51,.035)}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brandmark{position:relative;display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:linear-gradient(145deg,var(--navy),var(--blue));color:#fff;box-shadow:0 8px 22px rgba(20,119,212,.22);flex:0 0 auto}
.brandmark:before,.brandmark:after{content:"";position:absolute;background:#fff;border-radius:3px}
.brandmark:before{width:22px;height:7px}
.brandmark:after{width:7px;height:22px}
.brandtext{min-width:0;line-height:1.12}
.brandtext b{display:block;font-size:18px;letter-spacing:-.02em;color:var(--navy)}
.brandtext small{display:block;color:var(--muted);font-size:11px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:430px}
.brandby{font-size:10px!important;text-transform:uppercase;letter-spacing:.08em;color:var(--blue)!important;font-weight:800}
.topbar nav{display:flex;align-items:center;gap:6px}
/* =========================================================
   HEALTH ID DESKTOP NAVIGATION
   ========================================================= */

.topbar nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar nav > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 15px;
    border-radius: 10px;

    color: #0b2545;
    font-size: 14px;
    font-weight: 750;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

/* Normal navigation hover */
.topbar nav > a:not(.btn-sm):hover {
    color: #0b5aa5;
    background: #eaf5ff;
}

/* Blue underline */
.topbar nav > a:not(.btn-sm)::after {
    content: "";
    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 5px;

    height: 2px;

    background: #1477d4;
    border-radius: 10px;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform .2s ease;
}

.topbar nav > a:not(.btn-sm):hover::after {
    transform: scaleX(1);
}


/* =========================================================
   CREATE HEALTH ID BUTTON
   ========================================================= */

.topbar nav > .btn-sm {
    margin-left: 5px;

    padding: 12px 19px;

    color: #ffffff !important;

    background: linear-gradient(
        135deg,
        #0b5aa5 0%,
        #1477d4 100%
    );

    border-radius: 12px;

    box-shadow:
        0 7px 18px rgba(20,119,212,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.topbar nav > .btn-sm:hover {
    color: #ffffff !important;

    background: linear-gradient(
        135deg,
        #0b2545 0%,
        #0b5aa5 100%
    );

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(11,37,69,.22);
}

/* Don't put underline under button */
.topbar nav > .btn-sm::after {
    display: none;
}
.mobile-menu{display:none;position:relative}
.mobile-menu summary{list-style:none;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;font-size:0}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu summary:before{content:"☰";font-size:23px;color:var(--navy);line-height:1}
.mobile-menu[open] summary:before{content:"×";font-size:30px}
.mobile-panel{position:absolute;right:0;top:52px;width:min(300px,calc(100vw - 28px));background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;box-shadow:var(--shadow)}
.mobile-panel a {
    display: block;
    padding: 13px 14px;

    border-radius: 10px;

    color: #0b2545;

    font-size: 14px;
    font-weight: 750;

    transition:
        background .2s ease,
        color .2s ease;
}

.mobile-panel a:hover,
.mobile-panel a:focus {
    background: #eaf5ff;
    color: #0b5aa5;
}

.btn-sm,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,var(--blue),#1165b8);color:#fff!important;border:0;border-radius:12px;padding:12px 17px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(20,119,212,.17);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.btn:hover,.btn-sm:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(20,119,212,.22)}
.btn.danger{background:linear-gradient(135deg,var(--red),var(--red-dark))}
.btn.ghost{background:#fff;color:var(--navy)!important;border:1px solid var(--line);box-shadow:none}
.btn.green{background:linear-gradient(135deg,#138a66,#0f7458)}
.btn.block{width:100%}

.wrap{max-width:1180px;margin:0 auto;padding:30px 18px 70px;min-height:calc(100vh - 160px)}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:6px 0 24px}
.page-head h1{margin:0;color:var(--navy);font-size:clamp(30px,4vw,44px);line-height:1.08;letter-spacing:-.035em}
.page-head p{margin:8px 0 0;color:var(--muted)}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;background:#e9f4ff;color:var(--blue-dark);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.eyebrow:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px rgba(15,155,142,.12)}

.hero{display:grid;grid-template-columns:1.08fr .92fr;gap:34px;align-items:center;padding:54px 0 44px}
.hero-copy{padding:10px 0}
.hero h1{font-size:clamp(42px,6vw,72px);line-height:1.01;margin:15px 0 18px;letter-spacing:-.055em;color:var(--navy);max-width:760px}
.hero h1 .accent{color:var(--blue)}
.hero p{font-size:18px;color:var(--muted);max-width:710px;margin:0 0 22px}
.hero-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:26px}
.hero-trust{display:flex;flex-wrap:wrap;gap:9px;margin-top:26px}
.trust-pill{padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.75);font-size:12px;color:#506277;font-weight:700}
.hero-card,.card{background:rgba(255,255,255,.98);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-sm)}
.hero-card{position:relative;overflow:hidden;border-top:4px solid var(--blue)}
.hero-card:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(20,119,212,.07);right:-70px;top:-70px}
.hero-card h2{margin:0 0 8px;color:var(--navy);font-size:23px}
.hero-card .medical-item{position:relative;z-index:1}
.section{padding:28px 0}
.section-title{text-align:center;max-width:720px;margin:0 auto 28px}
.section-title h2{font-size:clamp(28px,4vw,40px);line-height:1.1;margin:9px 0;color:var(--navy);letter-spacing:-.03em}
.section-title p{color:var(--muted);margin:0}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.card h1,.card h2,.card h3{color:var(--navy);line-height:1.18}
.card h1{font-size:clamp(30px,4vw,42px);margin-top:0;letter-spacing:-.035em}
.card h2{margin-top:0;font-size:22px}
.card h3{margin:8px 0 6px}
.card p:last-child{margin-bottom:0}
.step-card{position:relative;padding-top:28px}
.step-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#eaf5ff;color:var(--blue);font-size:21px;font-weight:900;margin-bottom:14px}
.stat{font-size:36px;line-height:1;font-weight:900;color:var(--navy);letter-spacing:-.04em}
.stat-label{color:var(--muted);font-size:13px;font-weight:700;margin-bottom:8px}
.muted{color:var(--muted)}

form{display:grid;gap:16px}
.form-card{max-width:740px;margin:30px auto;padding:30px}
.form-card .form-intro{margin-bottom:4px}
.field{display:grid;gap:7px}
.field label{font-size:13px;font-weight:800;color:#34475a}
.field input,.field select,.field textarea{width:100%;padding:13px 14px;border:1px solid #cdd9e3;border-radius:12px;background:#fff;color:var(--ink);outline:none;transition:border .18s,box-shadow .18s;background-clip:padding-box}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#6fb5ec;box-shadow:0 0 0 4px rgba(20,119,212,.1)}
.field textarea{min-height:110px;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:#9aa8b6}
.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-section{padding-top:12px;border-top:1px solid var(--line);margin-top:4px}
.form-section h2{margin:0 0 6px;font-size:21px}
.form-section-note{margin:0 0 15px;color:var(--muted);font-size:13px}
.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.check-card{display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#f9fbfc;font-weight:750;color:#415467;cursor:pointer}
.check-card input{margin-top:3px;accent-color:var(--blue);width:17px;height:17px;flex:0 0 auto}

.notice{padding:13px 15px;border-radius:12px;background:#edf7ff;color:#175a94;border:1px solid #b9ddfa}
.error{background:#fff1f0;color:#a61b12;border-color:#fac5c0}
.success{background:#ebf9f3;color:#0a6b4e;border-color:#b6e8d7}
.warning{background:#fff8e8;color:#8a5700;border-color:#f4d89b}

.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}
.dashboard-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow-sm)}
.dashboard-card .icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#eaf5ff;color:var(--blue);font-size:20px;margin-bottom:18px}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#0d243d;color:#e8f5ff;padding:13px 14px;border-radius:11px;word-break:break-all;font-size:13px;border:1px solid #17395c}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
.table{width:100%;border-collapse:collapse;min-width:660px}
.table th,.table td{text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}
.table th{background:#f6f9fb;color:#516478;font-size:12px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.table tr:last-child td{border-bottom:0}
.table tbody tr:hover{background:#fbfdfe}
.status-pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eaf8f2;color:#0d7053;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}

.emergency-wrap{max-width:790px;margin:4px auto 0}
.emergency-banner{background:linear-gradient(135deg,#b42318,#df3325);color:#fff;padding:18px 20px;border-radius:22px 22px 0 0;text-align:center;box-shadow:0 14px 32px rgba(180,35,24,.19)}
.emergency-banner .alert-line{font-size:12px;font-weight:900;letter-spacing:.15em;text-transform:uppercase;opacity:.9}
.emergency-banner .title{font-size:28px;font-weight:950;line-height:1.08;margin-top:4px}
.emergency-card{background:#fff;border:1px solid #f1b0aa;border-top:0;border-radius:0 0 22px 22px;padding:25px;box-shadow:var(--shadow)}
.emergency-name{display:flex;align-items:center;gap:16px;margin-bottom:16px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.avatar{width:88px;height:88px;border-radius:22px;object-fit:cover;background:#eef4f7;border:4px solid #fff;box-shadow:0 0 0 1px var(--line),0 8px 22px rgba(18,32,51,.08)}
.avatar.placeholder{display:grid;place-items:center;font-size:0;font-weight:900;position:relative;background:linear-gradient(145deg,#edf6fd,#e6f2f9)}
.avatar.placeholder:before,.avatar.placeholder:after{content:"";position:absolute;background:var(--blue);border-radius:4px}
.avatar.placeholder:before{width:34px;height:10px}.avatar.placeholder:after{width:10px;height:34px}
.emergency-name h1{font-size:clamp(27px,5vw,38px);line-height:1.06;color:var(--navy);letter-spacing:-.035em}
.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef3f7;color:#52677c;font-size:11px;font-weight:850}
.medical-list{display:grid;gap:10px}
.medical-item{padding:14px 0;border-bottom:1px solid var(--line);color:#26384b}
.medical-item:last-child{border-bottom:0}
.medical-item b{display:block;font-size:11px;text-transform:uppercase;color:#687b8e;letter-spacing:.07em;margin-bottom:3px}
.medical-item.critical{background:#fff5f4;border:1px solid #f7c8c4;border-radius:14px;padding:14px 15px;color:#871a12;margin:8px 0}
.medical-item.critical b{color:#b42318}
.contact-title{display:flex;align-items:center;gap:8px;color:var(--navy);margin:24px 0 10px;font-size:20px}
.contact-card{padding:15px!important;margin-bottom:10px;border-radius:15px!important;box-shadow:none!important;background:#f9fbfc!important}
.call{display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(135deg,#14815f,#0f6e52);color:#fff;padding:14px;border-radius:12px;font-weight:900;margin-top:10px;letter-spacing:.02em;box-shadow:0 8px 18px rgba(20,129,95,.15)}
.emergency-disclaimer{margin-top:19px;font-size:13px}

.auth-shell{display:grid;grid-template-columns:.92fr 1.08fr;max-width:940px;margin:34px auto;background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}
.auth-side{padding:38px;background:linear-gradient(145deg,var(--navy),#104e7a);color:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:480px}
.auth-side h2{font-size:32px;line-height:1.1;margin:12px 0;color:#fff;letter-spacing:-.04em}
.auth-side p{color:#cfe5f4}
.auth-points{display:grid;gap:12px;margin-top:24px}
.auth-point{display:flex;gap:10px;font-size:13px;color:#dcecf7}
.auth-point:before{content:"✓";display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.13);color:#fff;font-weight:900;flex:0 0 auto}
.auth-main{padding:38px}
.auth-main h1{margin:0 0 6px;color:var(--navy);font-size:34px;letter-spacing:-.035em}
.auth-main>.muted{margin-bottom:20px}

/* =========================================================
   HEALTH ID PROFESSIONAL FOOTER
   ========================================================= */

.footer {
    position: relative;

    background:
        linear-gradient(
            135deg,
            #071b30 0%,
            #0b2545 55%,
            #0c3158 100%
        );

    color: #d8e6f1;

    border-top: 3px solid #1477d4;

    padding: 0;

    overflow: hidden;
}


/* subtle medical glow */

.footer::before {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    right: -180px;
    top: -200px;

    border-radius: 50%;

    background: rgba(20,119,212,.10);

    pointer-events: none;
}


/* =========================================================
   MAIN FOOTER
   ========================================================= */

.footer-inner {
    position: relative;
    z-index: 1;

    max-width: 1180px;

    margin: 0 auto;

    padding: 48px 18px 38px;

    display: grid;

    grid-template-columns:
        1.6fr
        .8fr
        .8fr
        1.25fr;

    gap: 42px;
}


/* =========================================================
   LOGO / BRAND
   ========================================================= */

.footer-brand-area {
    max-width: 350px;
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo {
    width: 285px;
    height: auto;

    max-width: 100%;

    object-fit: contain;

    object-position: left center;

    margin-bottom: 17px;
}

.footer-description {
    margin: 0;

    max-width: 330px;

    color: #a9bfd0;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.footer-column {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
}

.footer-column h3 {
    position: relative;

    margin: 4px 0 12px;

    padding-bottom: 10px;

    color: #ffffff;

    font-size: 15px;

    font-weight: 850;

    letter-spacing: .01em;
}


/* red/blue branded underline */

.footer-column h3::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 34px;
    height: 3px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #1477d4 0%,
        #1477d4 65%,
        #d92d20 65%,
        #d92d20 100%
    );
}


/* =========================================================
   LINKS
   ========================================================= */

.footer-column a {
    color: #b8ccdb;

    font-size: 13px;

    font-weight: 650;

    padding: 3px 0;

    transition:
        color .18s ease,
        transform .18s ease;
}

.footer-column a:hover {
    color: #ffffff;

    transform: translateX(3px);
}


/* =========================================================
   IMPORTANT INFORMATION
   ========================================================= */

.footer-important p {
    margin: 0 0 9px;

    color: #a9bfd0;

    font-size: 12px;

    line-height: 1.65;
}


/* =========================================================
   BOTTOM BAR
   ========================================================= */

.footer-bottom {
    position: relative;
    z-index: 1;

    max-width: 1180px;

    margin: 0 auto;

    padding: 19px 18px 22px;

    border-top: 1px solid rgba(255,255,255,.10);

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    color: #8fa9bc;

    font-size: 12px;
}

.footer-powered strong {
    color: #7cc4f5;

    font-weight: 850;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .footer-inner {
        grid-template-columns: 1.4fr 1fr 1fr;

        gap: 34px;
    }

    .footer-important {
        grid-column: 1 / -1;

        max-width: 650px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .footer-inner {
        padding: 36px 18px 28px;

        grid-template-columns: 1fr 1fr;

        gap: 30px 22px;
    }

    .footer-brand-area {
        grid-column: 1 / -1;

        max-width: 100%;
    }

    .footer-logo {
        width: 245px;

        margin-bottom: 12px;
    }

    .footer-description {
        max-width: 420px;

        font-size: 13px;
    }

    .footer-important {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        display: block;

        text-align: center;

        padding: 18px;
    }

    .footer-powered {
        margin-top: 6px;
    }

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 400px) {

    .footer-inner {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .footer-brand-area,
    .footer-important {
        grid-column: auto;
    }

    .footer-logo {
        width: 220px;
    }

}

@media(max-width:900px){
  .hero{grid-template-columns:1fr;gap:20px;padding-top:34px}
  .hero-copy{padding:0}
  .dashboard-grid{grid-template-columns:1fr 1fr}
  .auth-shell{grid-template-columns:1fr;max-width:700px}
  .auth-side{min-height:auto;padding:28px}
  .auth-side .auth-points{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .desktop-nav{display:none!important}
  .mobile-menu{display:block}
  .topbar{min-height:68px;padding:10px 14px}
  .brandmark{width:42px;height:42px;border-radius:13px}
  .brandtext b{font-size:16px}
  .brandtext small:not(.brandby){display:none}
  .brandby{margin-top:3px!important;font-size:9px!important}
  .wrap{padding:20px 14px 52px}
  .hero{padding:22px 0 28px}
  .hero h1{font-size:clamp(38px,12vw,56px)}
  .hero p{font-size:16px}
  .hero-actions .btn{width:100%}
  .hero-card,.card{border-radius:18px;padding:19px}
  .grid,.grid.two,.row,.dashboard-grid,.quick-grid,.check-grid{grid-template-columns:1fr}
  .page-head{display:block;margin-bottom:18px}
  .page-head .btn{margin-top:14px;width:100%}
  .form-card{margin:12px auto;padding:20px}
  .auth-shell{margin:10px auto;border-radius:19px}
  .auth-side{padding:24px;display:none}
  .auth-main{padding:22px 19px 24px}
  .auth-main h1{font-size:30px}
  .emergency-wrap{margin-top:0}
  .emergency-banner{border-radius:18px 18px 0 0;padding:15px}
  .emergency-banner .title{font-size:23px}
  .emergency-card{border-radius:0 0 18px 18px;padding:18px 15px}
  .emergency-name{align-items:flex-start;gap:13px}
  .avatar{width:72px;height:72px;border-radius:18px}
  .emergency-name h1{font-size:27px;margin-right:0}
  .call{padding:15px 12px;font-size:15px}
  .table-wrap{margin-left:-4px;margin-right:-4px}
  .footer{display:block;padding:24px 18px}
  .footer>div+div{margin-top:14px}
}
@media(max-width:430px){
  .brandtext b{font-size:15px}
  .hero h1{font-size:39px}
  .hero-trust{display:grid;grid-template-columns:1fr 1fr}
  .trust-pill{text-align:center;padding:7px}
  .dashboard-card{padding:17px}
  .emergency-name{display:grid;grid-template-columns:72px 1fr}
}

/* Member profile photo management */
.profile-photo-section{padding-top:0;border-top:0}
.photo-editor{display:grid;grid-template-columns:120px 1fr;gap:22px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:16px;background:#f8fbfd}
.photo-preview-wrap{display:flex;justify-content:center}
.profile-photo-preview{width:112px;height:112px;border-radius:22px;object-fit:cover;background:#eef4f7;border:4px solid #fff;box-shadow:0 0 0 1px var(--line),0 8px 22px rgba(18,32,51,.08)}
.photo-controls{display:grid;gap:10px}
.photo-controls .field small{font-size:12px;color:var(--muted)}
.remove-photo{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:750;color:#8d2b24;cursor:pointer}
.remove-photo input{width:17px;height:17px;accent-color:var(--red)}
@media(max-width:600px){
  .photo-editor{grid-template-columns:1fr;text-align:center;padding:18px 14px}
  .photo-controls{text-align:left;width:100%}
  .profile-photo-preview{width:104px;height:104px}
}

/* =========================================================
   HEALTH ID HEADER - LARGE FULL LOGO
   ========================================================= */

.topbar {
    min-height: 118px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.topbar .brand,
.topbar .brand-logo-only {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 0;
    text-decoration: none;
}

/* FULL HEALTH ID LOGO */
.brand-logo {
    display: block;

    width: 430px;
    height: 100px;

    max-width: none;

    object-fit: contain;
    object-position: left center;

    flex: 0 0 auto;
}

/* Navigation stays on the right */
.desktop-nav {
    margin-left: auto;
    flex-shrink: 0;
}


/* =========================================================
   MEDIUM DESKTOP / TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .brand-logo {
        width: 340px;
        height: 90px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .topbar {
        min-height: 88px;
        padding: 6px 12px;
    }

    .brand-logo {
        width: 285px;
        height: 76px;
        max-width: calc(100vw - 80px);
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-menu {
        display: block;
        margin-left: auto;
        flex-shrink: 0;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .topbar {
        min-height: 82px;
        padding: 5px 10px;
    }

    .brand-logo {
        width: 250px;
        height: 70px;
        max-width: calc(100vw - 68px);
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 350px) {

    .brand-logo {
        width: 215px;
        height: 64px;
        max-width: calc(100vw - 65px);
    }

}
