/* SynQRA customer account — shared commerce identity, responsive workspace. */
.portal{
 --portal-navy:#102f50;--portal-blue:#235be7;--portal-teal:#078d7b;
 --portal-muted:#5f7086;--portal-line:#dce4ed;
 background:#f5f7fa;color:#172c44;font:16px/1.55 "Segoe UI",system-ui,-apple-system,sans-serif;
}
.portal a{color:var(--portal-blue);text-underline-offset:3px}
.portal :where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #27bda5;outline-offset:3px}
.portal-shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh;width:100%}
.portal-sidebar{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;min-width:0;background:#fff;border-right:1px solid var(--portal-line);padding:28px 18px 22px;color:var(--portal-navy)}
.portal-brand{display:flex;align-items:center;gap:11px;color:var(--portal-navy)!important;text-decoration:none;font-size:26px;letter-spacing:-1px;font-weight:750}
.portal-brand .brand-mark{width:38px;height:38px;border-radius:10px;color:#fff;letter-spacing:0;font-size:24px}
.portal-brand strong span{color:var(--portal-teal)}
.portal-sidebar>.portal-brand{padding-left:12px}
.portal-sidebar>p{margin:12px 0 27px;padding-left:12px;color:var(--portal-muted);font-size:14px}
.portal-sidebar nav{display:grid;gap:5px}
.portal-sidebar nav a{position:relative;display:block;border:1px solid transparent;border-radius:8px;color:#3d536c;padding:11px 14px;text-decoration:none;font-size:15px;font-weight:600;transition:background .15s,color .15s}
.portal-sidebar nav a:hover{background:#f0f4fa;color:var(--portal-blue)}
.portal-sidebar nav a.active{background:#eaf0ff;border-color:#dbe5ff;color:#174dcc}
.portal-sidebar nav a.active:before{content:"";position:absolute;left:-1px;top:11px;bottom:11px;width:3px;border-radius:3px;background:var(--portal-blue)}
.portal-sidebar-foot{margin-top:auto;border-top:1px solid var(--portal-line);padding:22px 12px 0;font-size:14px;font-weight:600;line-height:1.8}
.portal-sidebar-foot small{font-size:14px;font-weight:400;color:var(--portal-muted)}
.portal-main{width:100%;min-width:0;max-width:1480px;margin:0 auto;padding:0 38px 44px}
.portal-top{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;border-bottom:1px solid var(--portal-line);margin-bottom:30px}
.portal-context{font-size:12px;font-weight:700;letter-spacing:1.2px;color:var(--portal-muted)}
.portal-user{display:flex;align-items:center;gap:20px;min-width:0;font-size:14px;color:#405570;overflow-wrap:anywhere}
.portal-user form{display:block;margin:0}
.portal-user button{min-height:38px;padding:8px 13px;font-size:14px}
.portal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}
.portal-heading>.portal-kicker,.portal-heading>div>.portal-kicker{display:none}
.portal-heading h1{font-size:30px;line-height:1.25;letter-spacing:-.7px;margin:0;font-weight:700}
.portal-support{font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.portal-kicker{font-size:12px;font-weight:700;letter-spacing:1.1px;color:var(--portal-muted)}
.portal-welcome{position:relative;padding:27px 30px;margin-bottom:24px;border:1px solid #dce5f0;border-radius:12px;background:#fff;box-shadow:none;overflow:hidden}
.portal-welcome:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#1aa58f}
.portal-welcome .portal-kicker{color:#326779;letter-spacing:.5px}
.portal-welcome h2{margin:11px 0;font-size:28px;font-weight:650;letter-spacing:-.7px;line-height:1.25}
.portal-welcome h2 br{display:none}
.portal-welcome p{max-width:800px;color:var(--portal-muted);font-size:16px;line-height:1.65;margin:12px 0 0}
.portal-welcome .actions{margin-top:22px}
.portal .actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.portal .button,.portal button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;border:1px solid transparent;border-radius:7px;background:var(--portal-blue);color:#fff;font:650 14px/1.4 "Segoe UI",system-ui,sans-serif;padding:11px 18px;text-decoration:none;transition:background .15s,box-shadow .15s}
.portal .button:hover,.portal button:hover{background:#174bd0;box-shadow:0 3px 8px #1d4db31a}
.portal .button.secondary,.portal button.secondary{border-color:#d5dfed;background:#fff;color:#264c7b}
.portal .button.secondary:hover,.portal button.secondary:hover{background:#eff4fb;border-color:#becfe3}
.portal button.danger{background:#fff2f3;border-color:#f4d6dc;color:#b22c43}
.portal button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.portal-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 24px}
.portal-metrics article{min-width:0;padding:22px 24px;background:white;border:1px solid var(--portal-line);border-radius:10px}
.portal-metrics article>span{display:block;font-size:14px;font-weight:600;color:var(--portal-muted)}
.portal-metrics strong{display:block;font-size:34px;line-height:1.3;letter-spacing:-1px;margin:12px 0 7px;font-weight:700}
.portal-metrics small,.portal-metrics a{font-size:14px;color:var(--portal-muted)}
.portal-metrics strong.portal-text-metric{font-size:23px;letter-spacing:-.4px;margin:17px 0 11px}
.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:24px}
.portal .card{min-width:0;border:1px solid var(--portal-line);border-radius:12px;box-shadow:none;padding:26px;background:#fff;margin:0 0 24px;overflow-wrap:anywhere}
.portal-grid>.card{margin-bottom:0}
.portal .card h2{font-size:21px;letter-spacing:-.35px;line-height:1.4;margin:0 0 15px}
.portal .card h3{font-size:20px;letter-spacing:-.3px;line-height:1.4;margin:14px 0 10px}
.portal .card p,.portal .muted{font-size:16px;line-height:1.65;color:var(--portal-muted)}
.portal .card>a:not(.button){font-size:14px;font-weight:600}
.portal-step{display:inline-flex;padding:4px 9px;border-radius:5px;background:#eaf0ff;color:var(--portal-blue);font-size:12px;font-weight:750}
.portal-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.portal-row h2{margin-bottom:0!important}
.portal .status{font-size:12px;font-weight:650;line-height:1.4;padding:6px 10px;white-space:normal}
.portal-license details{margin-top:20px;padding-top:18px;border-top:1px solid var(--portal-line)}
.portal-license summary{color:var(--portal-blue);font-size:14px;font-weight:650;cursor:pointer}
.portal-license details button{margin-top:16px}
.portal code.token{display:block;white-space:normal;overflow-wrap:anywhere;margin-top:15px;padding:16px;border-radius:7px;line-height:1.7;font-size:13px;background:var(--portal-navy);color:#e1efff}
.portal-price{display:block;margin:23px 0 10px;font-size:34px;font-weight:700;line-height:1.3;letter-spacing:-1px}
.portal-price small{color:var(--portal-muted);font-size:14px;letter-spacing:0;font-weight:400}
.portal-product>small{display:block;color:var(--portal-muted);font-size:14px;line-height:1.6;margin-top:16px}
.portal-product form{margin-top:24px}
.portal-empty{text-align:center;padding:36px 26px!important;color:var(--portal-muted)}
.portal form{display:grid;gap:20px}
.portal form>button{justify-self:start}
.portal label{display:grid;gap:8px;color:#314860;font-size:14px;font-weight:650;line-height:1.5}
.portal label small{font-size:13px;font-weight:400;color:var(--portal-muted)}
.portal input,.portal select,.portal textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid #c9d5e2;border-radius:7px;background:white;color:#172c44;font:400 16px/1.45 "Segoe UI",system-ui,sans-serif}
.portal input::placeholder,.portal textarea::placeholder{color:#78889c}
.portal input:hover,.portal select:hover,.portal textarea:hover{border-color:#9fb4cd}
.portal input:focus,.portal select:focus,.portal textarea:focus{border-color:var(--portal-blue);outline:3px solid #235be71a;outline-offset:0}
.portal input[type=checkbox],.portal input[type=radio]{width:18px;height:18px;min-height:18px;accent-color:var(--portal-blue);flex:0 0 18px;margin:0}
.portal label:has(>input[type=checkbox]),.portal label:has(>input[type=radio]){display:flex;gap:10px;align-items:flex-start}
.portal .alert{font-size:14px;line-height:1.7;border-radius:8px;padding:14px 17px}
.portal table{width:100%;border-collapse:collapse}
.portal table th{font-size:12px;font-weight:700;letter-spacing:.5px;background:#f7f9fc;color:var(--portal-muted);padding:13px 14px}
.portal table td{font-size:14px;padding:16px 14px;vertical-align:middle;border-color:var(--portal-line)}
.portal table td form{gap:0}
.portal table tbody tr:hover{background:#fafcff}
.portal-auth{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);min-height:100vh;background:#fff}
.portal-auth-story{display:flex;flex-direction:column;justify-content:center;position:relative;padding:52px clamp(36px,5vw,90px);background:var(--portal-navy);color:#fff;overflow:hidden}
.portal-auth-story>.portal-brand{position:absolute;top:38px;left:clamp(36px,5vw,90px);color:#fff!important;margin:0}
.portal-auth-story .portal-brand strong span{color:#43d2b7}
.portal-auth-story .portal-kicker{font-size:12px;letter-spacing:1px;color:#73d8c8}
.portal-auth-story h1{font-size:34px;letter-spacing:-1px;line-height:1.25;margin:20px 0 14px;max-width:410px}
.portal-auth-story p{font-size:16px;line-height:1.7;color:#c5d5e8;max-width:400px;margin:0}
.portal-auth-story ul{display:grid;gap:15px;padding:25px 0 0;margin:25px 0 0;list-style:none;border-top:1px solid #ffffff26;font-size:14px;color:#e1eaf5}
.portal-auth-story li:before{content:"✓";color:#50d3ba;margin-right:10px;font-weight:750}
.portal-auth-form{align-self:center;justify-self:center;width:min(500px,100%);min-width:0;padding:60px 35px}
.portal-auth-form .portal-heading{display:block;margin-bottom:20px}
.portal-auth-form .portal-heading h1{font-size:31px}
.portal-auth-form .portal-support{display:none}
.portal-auth-form form{margin-top:26px}
.portal-auth-form form>button{width:100%;margin-top:3px;min-height:48px;font-size:15px}
.portal-auth-form .card{padding:0;border:0;margin:0}
.portal-auth-form .card p{overflow-wrap:anywhere}
.portal-auth-links{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;font-size:14px;margin-top:25px;padding-top:24px;border-top:1px solid var(--portal-line)}
@media(min-width:1600px){.portal-main{padding-left:54px;padding-right:54px}}
@media(max-width:1150px){.portal-shell{grid-template-columns:210px minmax(0,1fr)}.portal-main{padding-left:25px;padding-right:25px}.portal-sidebar{padding-left:13px;padding-right:13px}.portal-support{display:none}.portal-metrics{gap:12px}.portal-metrics article{padding:20px}.portal-auth-story{padding:100px 36px 45px}.portal-auth-story>.portal-brand{left:36px}.portal-auth-story h1{font-size:30px}}
@media(max-width:900px){.portal-grid{grid-template-columns:1fr}.portal-metrics{grid-template-columns:1fr 1fr}.portal-metrics article:last-child{grid-column:1/-1}.portal-auth{grid-template-columns:minmax(280px,.75fr) minmax(0,1fr)}.portal-auth-story{padding-left:28px;padding-right:28px}.portal-auth-story>.portal-brand{left:28px}.portal-auth-story h1{font-size:28px}.portal-auth-form{padding-left:28px;padding-right:28px}}
@media(max-width:760px){.portal-shell{grid-template-columns:1fr}.portal-sidebar{position:static;height:auto;padding:19px 20px 0;border-right:0;border-bottom:1px solid var(--portal-line)}.portal-sidebar>.portal-brand{padding-left:0}.portal-sidebar>p,.portal-sidebar-foot{display:none}.portal-sidebar nav{display:flex;gap:8px;overflow-x:auto;margin:19px -20px 0;padding:0 20px 13px;scrollbar-width:thin}.portal-sidebar nav a{flex:0 0 auto;padding:10px 12px;font-size:14px}.portal-sidebar nav a.active:before{display:none}.portal-main{padding:0 20px 30px}.portal-top{min-height:68px;margin-bottom:24px;gap:14px;flex-wrap:wrap;padding:12px 0}.portal-user{gap:12px}.portal-heading{margin-bottom:22px}.portal-heading h1{font-size:27px}.portal-welcome{padding:23px 24px}.portal-welcome h2{font-size:25px}.portal-metrics{gap:12px}.portal-metrics strong{font-size:30px}.portal .card{padding:23px}.portal table{display:block;overflow-x:auto}.portal-auth{grid-template-columns:1fr;background:#f5f7fa}.portal-auth-story{display:none}.portal-auth-form{align-self:start;width:min(510px,100%);padding:35px 24px 45px}.portal-auth-form:before{content:"SynQRA";display:block;color:var(--portal-navy);font-size:27px;font-weight:800;letter-spacing:-1px;margin-bottom:35px}.portal-auth-form .portal-heading h1{font-size:29px}.portal-auth-form .card{background:transparent}}
@media(max-width:450px){.portal-main{padding-left:16px;padding-right:16px}.portal-metrics{grid-template-columns:1fr}.portal-metrics article:last-child{grid-column:auto}.portal-context{display:none}.portal-top{justify-content:flex-end}.portal-heading h1{font-size:25px}.portal .card{padding:21px}.portal-row{align-items:flex-start;flex-wrap:wrap}.portal-welcome .actions{display:grid}.portal-welcome .actions>.button{width:100%}.portal-auth-links{flex-direction:column;gap:14px}.portal .grid{grid-template-columns:1fr}.portal-price{font-size:31px}}
@media(prefers-reduced-motion:reduce){.portal *{transition:none!important;scroll-behavior:auto!important}}

/* Customer workspace: consistent navigation, compact information and clear actions. */
.portal{--portal-navy:#152d49;--portal-blue:#315be8;--portal-muted:#627186;--portal-line:#e2e8f0;background:#f6f8fc;font-size:15px;line-height:1.6}
.portal-skip{position:fixed;left:18px;top:-100px;z-index:1000;background:#fff;border:2px solid var(--portal-blue);padding:12px 20px;border-radius:9px}.portal-skip:focus{top:15px}
.portal-shell{grid-template-columns:258px minmax(0,1fr)}
.portal-icon{display:inline-block;flex:0 0 20px;vertical-align:middle}
.portal-sidebar{padding:28px 16px 18px;gap:0;background:#fff;border-right:1px solid #e4e9f2}
.portal-sidebar>.portal-brand{padding-left:14px;font-size:25px;gap:10px}
.portal-brand .brand-mark{display:grid;place-items:center;background:linear-gradient(145deg,#416df1,#1aa9ae);box-shadow:0 4px 11px #315be820;font-size:23px;border-radius:11px}
.portal-sidebar-caption{display:block;padding:11px 14px 20px;color:#8b98a9;font-size:12px}
.portal-navigation{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#d8e0ec transparent;border:0!important;padding:0!important;margin:0!important}
.portal-navigation>summary{display:none}
.portal-navigation:not([open])>nav,.portal-navigation>nav{display:block}
@media(min-width:761px){.portal-navigation::details-content{content-visibility:visible;display:block}}
.portal-sidebar nav .portal-nav-group{display:grid;gap:3px;margin:0 0 20px}
.portal-nav-label{font-size:10px!important;text-transform:uppercase;letter-spacing:1.1px;font-weight:750;color:#8b98a9!important;padding:0 14px;margin:0 0 6px!important}
.portal-sidebar nav a{display:flex;align-items:center;gap:11px;padding:10px 13px;font-size:13px;font-weight:550;border-radius:8px;line-height:1.4;color:#5d6c80;min-height:40px}
.portal-sidebar nav a .portal-icon{opacity:.8;width:19px;height:19px}
.portal-sidebar nav a:hover{background:#f5f7fc;color:#254bc7}
.portal-sidebar nav a.active{background:#eef2ff;color:#315be8;border-color:transparent;font-weight:700}
.portal-sidebar nav a.active:before{display:none}
.portal-sidebar nav a.active .portal-icon{opacity:1}
.portal-sidebar-foot{padding:17px 9px 0;margin-top:auto;flex-shrink:0;border-top:1px solid #edf0f6;font-size:12px;line-height:1.5}
.portal-sidebar-foot>a:first-child{display:flex;gap:10px;align-items:flex-start;text-decoration:none;color:#425773;font-weight:650}
.portal-sidebar-foot>a:first-child>.portal-icon{margin-top:1px;color:#8191a7}
.portal-sidebar-foot small{display:block;color:#8c9aab;font-size:10px;font-weight:400;margin-top:3px}
.portal-sidebar-foot .portal-website-link{display:flex;justify-content:space-between;color:#8695a9;margin-top:18px;font-size:11px;text-decoration:none;font-weight:500}
.portal-main{display:flex;flex-direction:column;max-width:1550px;padding:0 40px 0}
.portal-top{min-height:79px;margin:0 0 32px;border-color:#e7ebf3;flex-shrink:0;gap:12px}
.portal-context{display:flex;align-items:center;gap:9px;letter-spacing:0;font-size:11px;font-weight:500;color:#8996a8}
.portal-context strong{font-weight:550;color:#5d6f85}.portal-context-dot{width:6px;height:6px;border-radius:50%;background:#26b79a}.portal-breadcrumb{color:#c0cad7;margin:0 4px}
.portal-user{gap:10px;font-size:12px;flex-shrink:1}
.portal-avatar{display:grid;place-items:center;flex:0 0 33px;width:33px;height:33px;border-radius:50%;background:#eaf0ff;color:#315be8;font-weight:750;font-size:12px;border:1px solid #e1e8fb}
.portal-user-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#4b607b!important;text-decoration:none;font-weight:600}
.portal-user .portal-logout{margin-left:9px;padding:6px 10px;min-height:33px;gap:6px;border-color:#e2e8f0;color:#74849b;background:transparent;font-size:11px;border-radius:7px}
.portal-logout .portal-icon{width:15px;height:15px;flex-basis:15px}
.portal-content{flex:1;min-width:0}
.portal-heading{margin-bottom:26px;gap:16px}.portal-heading h1{font-size:27px;letter-spacing:-.8px;color:#172e4b;line-height:1.3;font-weight:730}
.portal-support{display:flex;align-items:center;gap:7px;color:#7b8aa1!important;font-size:11px;font-weight:500}.portal-support .portal-icon{width:17px;height:17px;flex-basis:17px}
.portal-footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:23px 0 25px;margin-top:24px;border-top:1px solid #e7ebf3;color:#97a3b3;font-size:10px}.portal-footer a{text-decoration:none;color:#7d8ba0}
.portal .card{border-radius:12px;border-color:#e3e8f1;padding:25px;box-shadow:0 2px 3px #233a5902;margin-bottom:20px}
.portal .card h2{font-size:18px;font-weight:700;letter-spacing:-.35px;margin-bottom:13px}
.portal .card h3{font-size:16px;font-weight:650}.portal .card p,.portal .muted{font-size:13px;line-height:1.8;color:#738198}
.portal .card>p:first-child{margin-top:0}.portal .card>a:not(.button){font-size:12px}
.portal .topbar{gap:16px;margin:0 0 22px}.portal .topbar h1{font-size:23px;line-height:1.3;letter-spacing:-.6px}.portal .eyebrow{font-size:10px;letter-spacing:1px}
.portal .button,.portal button{font-size:12px;font-weight:650;min-height:41px;padding:10px 16px;border-radius:8px;gap:7px}
.portal .button.secondary,.portal button.secondary{border-color:#dce4ef;color:#536c90}.portal .button:hover,.portal button:hover{box-shadow:0 3px 8px #315be817}
.portal .actions{gap:10px}.portal form{gap:17px}.portal label{font-size:12px;font-weight:600;color:#4a5d77;gap:7px}
.portal input,.portal select,.portal textarea{min-height:43px;border-radius:8px;border-color:#dae2ed;background:#fff;font-size:14px;padding:10px 12px;color:#30435d;box-shadow:0 1px 2px #18345102}
.portal input:hover,.portal select:hover,.portal textarea:hover{border-color:#b6c6dd}.portal input::placeholder,.portal textarea::placeholder{color:#a1adbc}
.portal label small{font-size:11px}.portal .alert{font-size:12px;border-radius:9px;padding:14px 17px}.portal .status{font-size:10px;padding:5px 9px;border-radius:6px}
.portal .grid{gap:20px}.portal .grid>.card{margin-bottom:0}
.portal table{border-collapse:separate;border-spacing:0}.portal table th{padding:12px 14px;background:#f8fafc;border-bottom:1px solid #e8edf5;font-size:9px;font-weight:700;letter-spacing:.7px;color:#8d9aaf}
.portal table td{padding:17px 14px;font-size:12px;border-bottom:1px solid #edf1f7;color:#586d89}.portal table td strong{color:#304c72}.portal table tr:last-child td{border-bottom:0}
.portal table tbody tr:hover{background:#fcfdff}.portal table small{font-size:10px;color:#92a0b4}.portal table td a{font-weight:600;text-decoration:none}
.portal table td .button,.portal table td button{font-size:11px;min-height:34px;padding:7px 11px}
.portal .admin-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.portal .admin-section-head h2{margin-bottom:0}.portal .admin-section-head>a{font-size:11px;text-decoration:none}
.portal-auth-form{width:min(500px,100%)}.portal-auth-form .portal-heading h1{font-size:30px}.portal-auth-form .portal-heading .portal-kicker{display:block;margin-bottom:8px;font-size:10px;letter-spacing:1.4px;color:#8596ae}.portal-auth-form>p{font-size:13px;color:#6e809a}
.portal-auth-form input,.portal-auth-form select{min-height:47px}.portal-auth-form form>button{font-size:13px}.portal-auth-links{font-size:12px}

/* Account overview supplied by customer-dashboard.php. */
.customer-dashboard{display:grid;gap:22px}
.customer-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 28px;border:1px solid #e1e7f5;border-radius:13px;background:linear-gradient(110deg,#fff 30%,#f0f5ff);position:relative;overflow:hidden}
.customer-hero h2{font-size:23px;letter-spacing:-.6px;line-height:1.35;margin:4px 0 9px;color:#1e385b}
.customer-hero p{font-size:12px;color:#7889a3;margin:0;max-width:590px;line-height:1.8}.customer-hero .eyebrow{color:#6385c5}.customer-hero .actions{margin-top:17px}
.customer-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.customer-metric{position:relative;min-width:0;padding:21px 23px;border:1px solid #e2e8f2;border-radius:11px;background:#fff;text-decoration:none;display:flex;flex-direction:column;align-items:flex-start;gap:8px;box-shadow:0 2px 4px #2d477003}
.customer-metric>span,.customer-metric>p{font-size:11px;font-weight:550;color:#7c8ba2;margin:0}.customer-metric strong{font-size:29px;line-height:1.35;color:#223f67;letter-spacing:-.8px;font-weight:700}.customer-metric small{font-size:10px;color:#8e9eb4}.customer-metric>a{font-size:11px;font-weight:600;text-decoration:none}.customer-metric svg{color:#6687d9;width:20px;height:20px}
.customer-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:22px;align-items:start}
.customer-section{min-width:0;border:1px solid #e3e9f2;border-radius:12px;background:#fff;padding:23px 25px}
.customer-section h2{font-size:16px;letter-spacing:-.25px;margin:0;color:#274365}.customer-section h3{font-size:13px;color:#38577e;margin:0 0 6px}.customer-section p{font-size:12px;color:#8090a7;line-height:1.75}
.customer-section>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.customer-section>header a{font-size:10px;font-weight:600;text-decoration:none}.customer-section>header p{margin:5px 0 0;font-size:11px}
.customer-orders{display:grid}.customer-order-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 0;border-bottom:1px solid #edf1f7;font-size:12px;text-decoration:none;color:#506887!important}
.customer-order-row:last-child{border-bottom:0;padding-bottom:0}.customer-order-row:first-child{padding-top:0}.customer-order-row strong{font-size:12px;color:#2d4b74;font-weight:650}.customer-order-row small{display:block;color:#98a4b5;font-size:10px;margin-top:4px}.customer-order-row>div:last-child{text-align:right}.customer-order-row .customer-status{margin-top:6px}
.customer-status{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;background:#eff4fb;color:#7290b8;font-size:9px;font-weight:600;line-height:1.5;white-space:nowrap}.customer-status.success,.customer-status.active,.customer-status.fulfilled,.customer-status.paid{background:#eaf8f2;color:#2e9b79}.customer-status.pending,.customer-status.warning,.customer-status.registered{background:#fff7e6;color:#b38933}
.customer-quicklinks{display:grid;gap:0}.customer-quicklinks>a{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #edf1f7;text-decoration:none;color:#3b5a82;font-size:12px;font-weight:600}.customer-quicklinks>a:first-child{padding-top:0}.customer-quicklinks>a:last-child{border-bottom:0;padding-bottom:0}.customer-quicklinks svg{width:18px;height:18px;flex-shrink:0;color:#7897c9}.customer-quicklinks small{display:block;font-size:10px;font-weight:400;color:#92a1b6;margin-top:3px}.customer-quicklinks>a:after{content:'›';margin-left:auto;font-size:20px;font-weight:400;color:#a4b5cd}
.customer-section .portal-kicker,.customer-hero .portal-kicker{display:block;font-size:9px;font-weight:700;color:#97a5b8;letter-spacing:1px;margin-bottom:8px}.customer-hero .portal-kicker{color:#6487c6}
.customer-metric:nth-child(2){border-top:2px solid #f4d48e}.customer-metric:nth-child(3){border-top:2px solid #a9dfd0}.customer-metric:nth-child(4){border-top:2px solid #bacaf5}.customer-metric:nth-child(1){border-top:2px solid #9bb7f3}
.customer-order-row>div:nth-child(2){margin-left:auto;text-align:right;flex-shrink:0}.customer-order-row .actions{flex-shrink:0;gap:7px}.customer-order-row .actions .button{padding:7px 10px;min-height:32px;font-size:10px}.customer-order-row a{text-decoration:none}
.customer-status-paid,.customer-status-fulfilled{background:#eaf8f2;color:#2e9b79}.customer-status-pending,.customer-status-registered{background:#fff7e6;color:#b38933}.customer-status-failed,.customer-status-cancelled{background:#f4f5f8;color:#8b96a7}
.customer-section>h2{margin-bottom:20px}.customer-section>h3{font-size:15px;line-height:1.5}.customer-section>p.customer-status{font-size:10px;color:#6483aa}.customer-claim{padding:12px 14px;background:#f8faff;border-radius:8px;border:1px solid #edf1f7}
.customer-quicklinks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.customer-quicklinks>a,.customer-quicklinks>a:first-child,.customer-quicklinks>a:last-child{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:17px 18px;border:1px solid #e8edf5;border-radius:9px;background:#fff;transition:background .15s,border-color .15s}.customer-quicklinks>a:hover{background:#f8faff;border-color:#d5e0f7}.customer-quicklinks>a>strong{display:flex;justify-content:space-between;width:100%;font-size:11px;font-weight:650}.customer-quicklinks>a>strong>span{color:#9aafd0;font-size:13px}.customer-quicklinks>a>span{font-size:10px;font-weight:400;color:#94a2b6;line-height:1.7}.customer-quicklinks>a:after{display:none}.customer-empty{padding:25px 0;color:#8093ad}.customer-empty h3{font-size:16px;margin-bottom:8px}.customer-empty>.button{margin-top:10px}
@media(min-width:1600px){.portal-main{padding-left:50px;padding-right:50px}}
@media(max-width:1200px){.portal-shell{grid-template-columns:232px minmax(0,1fr)}.portal-main{padding-left:27px;padding-right:27px}.portal-sidebar{padding-left:12px;padding-right:12px}.portal-context>strong,.portal-breadcrumb{display:none}.customer-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-grid{grid-template-columns:1fr}.portal-user-name{max-width:130px}}
@media(max-width:900px){.portal-heading h1{font-size:25px}.portal-user .portal-logout{margin-left:3px}.portal-user .portal-logout>span{display:none}.portal-top{margin-bottom:26px}.portal-support{display:none}.customer-hero{padding:24px}.customer-hero h2{font-size:21px}}
@media(max-width:760px){
 .portal-shell{display:block}.portal-sidebar{position:relative;display:block;padding:17px 20px;border-bottom:1px solid #e4eaf4;height:auto;overflow:visible}.portal-sidebar>.portal-brand{padding:0;font-size:23px;width:fit-content}.portal-brand .brand-mark{width:33px;height:33px;font-size:21px}.portal-sidebar-caption,.portal-sidebar-foot{display:none}
 .portal-navigation{overflow:visible;margin:0!important}.portal-navigation>summary{display:flex;align-items:center;justify-content:space-between;position:absolute;right:20px;top:18px;gap:12px;background:#f5f7fc;border:1px solid #e3e9f3;border-radius:7px;min-height:34px;padding:7px 12px;font-size:11px;font-weight:650;color:#59708f;list-style:none;cursor:pointer}.portal-navigation>summary::-webkit-details-marker{display:none}.portal-navigation>summary>span{font-size:15px;color:#899ab3}
 .portal-navigation:not([open])>nav{display:none}.portal-navigation[open]>nav{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;padding:20px 0 0;margin:0;overflow:visible}.portal-sidebar nav .portal-nav-group{display:grid;align-content:start;gap:2px;margin-bottom:0}.portal-sidebar nav .portal-nav-group:last-child{grid-column:1/-1;grid-template-columns:1fr 1fr}.portal-sidebar nav .portal-nav-group:last-child>.portal-nav-label{grid-column:1/-1}.portal-nav-label{padding:0 9px;font-size:9px!important}.portal-sidebar nav a{flex:initial;font-size:11px;padding:9px;min-height:37px;gap:8px}.portal-sidebar nav a .portal-icon{width:17px;height:17px;flex-basis:17px}
 .portal-main{padding:0 20px}.portal-top{min-height:62px;padding:12px 0;flex-wrap:nowrap;margin-bottom:23px;justify-content:space-between}.portal-context{font-size:10px}.portal-user-name{max-width:110px;font-size:11px}.portal-user{gap:7px}.portal-avatar{width:28px;height:28px;flex-basis:28px;font-size:10px}.portal-user .portal-logout{min-height:29px;padding:5px 7px}.portal-heading{margin-bottom:20px}.portal-heading h1{font-size:24px}.portal-footer{font-size:9px;margin-top:24px;padding:20px 0}
 .portal .card{padding:21px}.portal .grid{grid-template-columns:1fr}.portal table{display:block;max-width:100%;overflow-x:auto}.portal table th{font-size:9px}.portal table td{font-size:11px;min-width:90px}.portal .card h2{font-size:17px}.portal .button,.portal button{font-size:12px;min-height:42px}
 .customer-dashboard{gap:18px}.customer-hero{display:block;padding:22px}.customer-hero h2{font-size:22px}.customer-hero p{font-size:12px}.customer-metrics{gap:12px}.customer-metric{padding:18px}.customer-metric strong{font-size:27px}.customer-grid{gap:18px}.customer-section{padding:21px}.customer-order-row{gap:10px;font-size:11px}.customer-order-row strong{font-size:11px}.customer-order-row small{font-size:9px}.customer-order-row>div:first-child{min-width:0;overflow-wrap:anywhere}.customer-order-row>div:last-child{flex-shrink:0}
 .customer-hero>.button{margin-top:17px}.customer-order-row{flex-wrap:wrap}.customer-order-row>div:first-child{flex:1 1 140px}.customer-order-row>div:nth-child(2){flex:0 0 auto}.customer-order-row>.actions{width:100%;padding-top:3px;justify-content:flex-end}.customer-quicklinks{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.customer-quicklinks>a,.customer-quicklinks>a:first-child,.customer-quicklinks>a:last-child{padding:14px}
 .portal-auth-form .portal-heading h1{font-size:27px}.portal-auth-form{padding-top:33px}.portal-auth-form:before{margin-bottom:32px}.portal-auth-form .portal-heading .portal-kicker{font-size:9px}
}
@media(max-width:420px){.portal-main{padding:0 16px}.portal-sidebar{padding-left:16px;padding-right:16px}.portal-navigation>summary{right:16px}.portal-user-name{max-width:90px}.portal-context{gap:6px;font-size:9px}.portal-context-dot{width:5px;height:5px}.portal-user .portal-avatar{display:none}.portal-heading h1{font-size:22px}.customer-metric{padding:16px}.customer-metric>span{font-size:10px}.customer-metric strong{font-size:25px}.customer-section{padding:19px}.customer-hero .actions{display:grid}.customer-hero .actions>.button{width:100%}.portal .card{padding:19px}.portal-footer{display:block}.portal-footer a{display:block;margin-top:6px}}

/* Readability is independent of viewport size: shrink layout, not essential text. */
.portal-sidebar nav a{font-size:14px;min-height:42px}.portal-sidebar-caption{font-size:12px}.portal-nav-label{font-size:10px!important}
.portal-context,.portal-support,.portal-sidebar-foot,.portal-sidebar-foot small,.portal-sidebar-foot .portal-website-link,.portal-footer{font-size:12px}
.portal-user,.portal-user-name{font-size:14px}.portal-user .portal-logout{font-size:12px}.portal-user-name{max-width:180px}
.portal .card p,.portal .muted,.portal label,.portal .card>a:not(.button),.portal .button,.portal button{font-size:14px}
.portal label small,.portal .alert,.portal .status,.portal .admin-section-head>a{font-size:12px}.portal .card h2{font-size:19px}.portal .card h3{font-size:17px}
.portal table th{font-size:11px}.portal table td{font-size:14px}.portal table small{font-size:12px}.portal table td .button,.portal table td button{font-size:12px}
.portal-auth-form>p,.portal-auth-links,.portal-auth-form form>button{font-size:14px}
.customer-hero p,.customer-section p,.customer-order-row,.customer-order-row strong,.customer-section h3,.customer-metric>span,.customer-metric>p{font-size:14px}
.customer-metric small,.customer-metric>a,.customer-section>header a,.customer-section>header p,.customer-order-row small,.customer-status,.customer-section>p.customer-status,.customer-quicklinks>a>span{font-size:12px}
.customer-quicklinks>a>strong{font-size:14px}.customer-order-row .actions .button{font-size:12px;min-height:36px}.customer-hero .portal-kicker,.customer-section .portal-kicker{font-size:10px}
.customer-order-row{flex-wrap:wrap}.customer-order-row>div:first-child{flex:1 1 180px}.customer-order-row>div:nth-child(2){flex:0 0 auto}.customer-order-row>.actions{width:100%;justify-content:flex-end}.customer-order-row .customer-status{margin-top:7px}
@media(max-width:760px){.portal-navigation>summary{font-size:12px}.portal-sidebar nav a{font-size:14px;min-height:42px}.portal-sidebar nav a .portal-icon{width:19px;height:19px;flex-basis:19px}.portal-user-name{max-width:130px}.portal-context strong{display:none}.portal-context{font-size:12px}.portal-user .portal-logout>span{display:none}.portal table th{font-size:11px}.portal table td{font-size:14px}.portal .button,.portal button{font-size:14px}.customer-quicklinks{grid-template-columns:1fr}.customer-order-row strong{font-size:14px}.customer-order-row small{font-size:12px}.customer-metric>span{font-size:14px}.portal-footer{font-size:12px}.customer-hero h2{font-size:23px}}
@media(max-width:420px){.portal-context{font-size:12px}.portal-user-name{max-width:100px}.customer-metrics{grid-template-columns:1fr}.customer-metric{padding:20px}.customer-metric strong{font-size:29px}.customer-metric>span{font-size:14px}.portal-navigation[open]>nav{grid-template-columns:1fr}.portal-sidebar nav .portal-nav-group:last-child{grid-template-columns:1fr}.portal-sidebar nav .portal-nav-group:last-child>.portal-nav-label{grid-column:auto}.portal-sidebar nav a{font-size:14px}}

.portal {
  --portal-navy: #182823;
  --portal-ink: #182823;
  --portal-muted: #52635b;
  --portal-line: #d9ded4;
  --portal-blue: #245a43;
  background: #f5f3ee;
}
.portal .portal-main { background: #f5f3ee; }
.portal .portal-sidebar, .portal .card, .customer-section, .customer-metric { background: #fffefa; }
.portal .portal-brand strong span, .portal .portal-kicker { color: #245a43; }
.portal .portal-sidebar nav a.active { background: #e6efcf; color: #15382e; }
.portal .portal-avatar { background: #e6efcf; color: #15382e; }
.portal .customer-hero { background: #15382e; color: #fffefa; border-color: #15382e; }
.portal .customer-hero h2, .portal .customer-hero p { color: #fffefa; }
.portal .customer-hero .portal-kicker { color: #bce36a; }
.portal .customer-hero .button { background: #bce36a; color: #182823; }
.portal .customer-hero .button:hover { background: #d4ee9e; }
.portal .portal-auth-story { background: #15382e; }
.portal .portal-auth-story .portal-kicker { color: #bce36a; }
.portal .customer-metric strong { font-variant-numeric: tabular-nums; }
.portal .customer-metric:hover { border-color: #63886a; }
.portal .customer-order-row .actions { width: auto; margin-left: auto; }
@media (max-width: 540px) {
  .portal .customer-order-row .actions { width: 100%; }
}

.portal:has(.portal-shell) {
  --portal-line: #d7e1e8;
  --portal-blue: #19579a;
  --portal-muted: #556b78;
  background: #f2f5f7;
}
.portal .portal-sidebar { background: #152d3d; color: #f4f8fa; border: 0; overflow-y: auto; }
.portal .portal-sidebar :is(.portal-brand, .portal-brand strong, .portal-sidebar-caption, .portal-navigation summary) { color: white !important; }
.portal .portal-sidebar nav a, .portal .portal-sidebar-foot a { color: #dce9ef; }
.portal .portal-sidebar :is(.portal-nav-label,.portal-sidebar-foot small) { color:#b0c6d1; }
.portal .portal-sidebar nav a:hover, .portal .portal-sidebar nav a.active { background:#2c485a; color:white; }
.portal .customer-hero { background:#e4eff4; color:#17384c; border:1px solid #cbdde5; border-radius:12px; }
.portal .customer-hero :is(h2,p) { color: #17384c; }
.portal .customer-hero .button { background:#19579a; color:white; }
.portal .customer-hero .button:hover { background:#14477e; }
.portal .customer-document { display:grid; grid-template-columns:minmax(8rem,1fr) minmax(10rem,2fr) auto; gap:1rem; align-items:center; padding:1rem 0; border-top:1px solid var(--portal-line); overflow-wrap:anywhere; }
.portal .customer-document small { display:block; color:var(--portal-muted); }
.portal .customer-pagination { display:flex; justify-content:center; align-items:center; gap:1rem; padding-top:1rem; }
@media(max-width:680px) {
  .portal .customer-document { grid-template-columns:minmax(0,1fr) auto; }
  .portal .customer-document > a:first-of-type { grid-column:1; }
  .portal .customer-document > a:last-child { grid-column:2; grid-row:1/3; }
}
