/* Qsource AI customer portal — same brand and type system as landing page. */
:root{
  color-scheme:light;
  --navy:#0a1420;--navy-2:#111d2b;--deep:#06101b;
  --teal:#43dbc4;--teal-deep:#0a877a;--teal-pale:#e7f8f4;
  --ink:#172535;--muted:#627084;--line:#dee5eb;--pale:#f2f5f8;
  --white:#ffffff;--warning:#9a5b18;
  --font:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --display:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--pale);color:var(--ink);font:400 14px/1.65 var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit}button,input{font:inherit}
button:disabled{cursor:not-allowed;opacity:.65}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #15a58f;outline-offset:3px}
.wrap{width:min(1190px,calc(100% - 64px));margin-inline:auto}
.skip{position:absolute;left:16px;top:-85px;padding:10px 16px;z-index:100;background:var(--teal);color:var(--navy);font-weight:700}
.skip:focus{top:8px}
.topbar{position:sticky;top:0;z-index:40;background:var(--navy);border-bottom:1px solid #223246}
.nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#fff;white-space:nowrap;font:800 26px/1 var(--display);letter-spacing:-.075em}
.brand-icon{border:2.3px solid var(--teal);width:24px;height:24px;border-radius:50%;display:inline-grid;place-items:center;flex:none}
.brand-icon span{width:8px;height:8px;background:var(--teal);border-radius:50%}
.brand-period{color:var(--teal)}
.portal-links{display:flex;align-items:center;gap:3px}
.portal-links a{position:relative;display:inline-flex;align-items:center;min-height:38px;padding:10px 13px;border-radius:5px;color:#b6c3d0;font:600 12px/1.3 var(--font);text-decoration:none;white-space:nowrap;transition:background .2s,color .2s}
.portal-links a:hover{color:#fff;background:#1a3040}
.portal-links a[aria-current="page"]{color:#fff;background:#233b49}
.portal-links a[aria-current="page"]:not(.nav-cta)::after{content:"";position:absolute;left:13px;right:13px;bottom:2px;height:2px;background:var(--teal);border-radius:4px}
.portal-links .nav-cta{color:#082a27;background:var(--teal);font-weight:700;margin-left:8px}
.portal-links .nav-cta:hover{color:#082a27;background:#6debd8}
.portal-links .nav-cta[aria-current="page"]{color:#082a27;background:#6debd8}
.nav-toggle{display:none;border:1px solid #365062;background:transparent;color:#fff;border-radius:6px;align-items:center;justify-content:center;width:40px;height:38px;padding:8px;cursor:pointer}
.nav-toggle span{display:block;width:18px;height:2px;background:#e1edf2;border-radius:2px;margin:3px auto}
.notice{background:#e7f8f4;border-bottom:1px solid #c7e9e1;color:#236358}
.notice .wrap{display:flex;align-items:center;gap:12px;padding:10px 0;font-size:12px;line-height:1.55}
.notice strong{color:#0a665c}
.signal{width:7px;height:7px;border-radius:50%;background:#0a9b88;box-shadow:0 0 0 4px #0a9b8820;flex:none}
.hero{padding:34px 0 20px}
.crumb{color:#738095;font-size:12px;font-weight:500;margin:0 0 16px}
.crumb a{color:#0b8075;text-decoration:none}.crumb a:hover{text-decoration:underline}
.eyebrow{display:flex;align-items:center;gap:9px;color:#0a8377;font:800 10.5px/1.3 var(--display);letter-spacing:.14em;text-transform:uppercase}
.eyebrow::before{content:"";width:24px;height:1px;background:currentColor}
.hero h1{font:800 clamp(28px,3.1vw,40px)/1.19 var(--display);letter-spacing:-.05em;margin:12px 0 11px;max-width:860px}
.hero p{max-width:740px;font-size:14px;line-height:1.75;color:var(--muted);margin:0}
.hero .actions{margin-top:20px}
h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--display);letter-spacing:-.035em}
.section{padding:15px 0 26px}
.section-title{font-size:20px;line-height:1.35;font-weight:800;margin:0 0 16px}
.columns{display:grid;grid-template-columns:minmax(0,1.56fr) minmax(286px,1fr);gap:18px;align-items:start}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.four,.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.card{background:var(--white);border:1px solid var(--line);border-radius:10px;padding:22px;min-width:0;box-shadow:0 4px 15px rgba(15,37,52,.025)}
.card.inset{background:#fbfcfd}
.card.highlight{border-color:#b6ded6;box-shadow:0 0 0 1px #d6efea,0 6px 24px rgba(15,55,55,.035)}
.card h2{font-size:17px;line-height:1.35;font-weight:800;margin:0 0 10px}
.card h3{font-size:14px;line-height:1.4;font-weight:800;margin:0 0 8px}
.card p{color:var(--muted);margin:5px 0 14px;line-height:1.7}
.card small,.hint{font-size:11px;color:var(--muted);line-height:1.6}
.card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.card-header h2,.card-header h3{margin-bottom:0}
.card .card-header p{margin:0}
.muted{color:var(--muted)}.label{font-size:11px;color:var(--muted);font-weight:700}
.pill{display:inline-flex;align-items:center;border-radius:50px;background:var(--teal-pale);color:#08675d;border:1px solid #b7e9de;font-size:10px;letter-spacing:.03em;font-weight:800;padding:5px 10px;line-height:1.3;white-space:nowrap}
.pill.neutral{background:#edf2f6;color:#536478;border-color:#dbe4ec}
.pill.warn{background:#fff6e8;color:var(--warning);border-color:#f1dbb9}
.action,.action-secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:5px;padding:10px 15px;text-decoration:none;font:700 12px/1.4 var(--font);min-height:40px;border:1px solid transparent;transition:background .2s,transform .2s,border-color .2s}
.action{background:#0a8377;color:#fff}.action:hover{background:#086a60;transform:translateY(-1px)}
.action:disabled,.action-secondary:disabled{cursor:not-allowed;background:#e8eef2;border-color:#d5dfe6;color:#82919b;opacity:1}
.action-secondary{border-color:#d5dfe6;background:#fff;color:#263f53}
.action-secondary:hover{border-color:#0a8377;background:#edf9f6}
.actions{display:flex;gap:9px;flex-wrap:wrap}
.divider{height:1px;background:var(--line);margin:18px 0}
.status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #ebeff3}
.status-row:last-child{border-bottom:0}.status-row strong{font-size:12px;font-weight:700;color:#405266}.status-row span{font-size:12px;font-weight:600;text-align:right;color:#243c4d;overflow-wrap:anywhere}
.status-row .muted{color:var(--muted)}
.callout{border-left:3px solid #ddb46a;border-radius:4px;background:#fff9ef;padding:12px 14px;font-size:12px;color:#795c31;line-height:1.65}
.callout.teal{border-color:#0aa793;background:var(--teal-pale);color:#25685f}
.message{padding:11px 13px;background:#eff6f8;border:1px solid #d6e6eb;border-radius:6px;color:#33596a;font-size:12px;line-height:1.65;margin:11px 0 15px}
.message.warn{background:#fff5ea;border-color:#f0dfc3;color:#8a5528}
.message.good{background:#eaf9f3;border-color:#b7ead4;color:#16624c}
.message[hidden]{display:none}
.form-grid{display:grid;gap:13px}
.field label{display:block;font:700 12px var(--font);margin-bottom:6px;color:#334b5d}
.field input{height:42px;padding:0 13px;background:#fff;border:1px solid #ccd8e2;color:var(--ink);border-radius:5px;width:100%;font-size:13px}
.field input::placeholder{color:#93a3b0}
.field input:disabled{background:#f3f6f8;opacity:.65}
.form-grid button{justify-self:start}
.tabs{display:inline-flex;gap:4px;background:#eef3f6;border:1px solid #e0e8ee;padding:4px;border-radius:6px;margin:10px 0 18px;max-width:100%}
.tabs button{background:transparent;color:#627084;padding:9px 19px;border:0;border-radius:4px;cursor:pointer;font-size:12px;font-weight:700}
.tabs button[aria-selected="true"]{background:#fff;color:#0d7369;box-shadow:0 1px 5px #1c344616}
.tab-panel[hidden]{display:none}
.price{font:800 clamp(36px,4.2vw,46px)/1.12 var(--display);letter-spacing:-.05em;color:#0a1420;margin:11px 0 12px}
.price small{font:600 13px/1.4 var(--font);color:var(--muted);letter-spacing:0}
.kpi{font:800 37px/1.14 var(--display);letter-spacing:-.06em;margin:7px 0}
.kpi span{font:600 13px var(--font);letter-spacing:0;color:var(--muted)}
.metric{padding:19px 18px;background:#fff;border:1px solid var(--line);border-radius:9px;min-width:0}
.metric .metric-label{font-size:11px;font-weight:700;color:#67768a;letter-spacing:.01em;margin-bottom:8px}
.metric .metric-value{font:800 24px/1.2 var(--display);color:#132635;letter-spacing:-.045em;overflow-wrap:anywhere}
.metric .metric-hint{font-size:11px;color:var(--muted);margin-top:7px}
.metric .metric-value.good{color:#0a8377}
.metric-icon{width:30px;height:30px;display:inline-grid;place-items:center;border-radius:7px;background:#e7f8f4;color:#0b8377;font-size:14px;font-weight:800;margin-bottom:12px}
.list-clean{padding:0;margin:12px 0 16px;list-style:none}.list-clean li{padding:8px 0;border-bottom:1px solid #edf1f3;color:#405266;font-size:12px}
.list-clean li::before{content:"✓";color:#0a8377;font-weight:900;margin-right:10px}
.number{display:inline-flex;justify-content:center;align-items:center;width:29px;height:29px;background:var(--teal-pale);color:#09786c;border-radius:50%;font:800 11px var(--display);margin-bottom:12px}
.meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.meta dt{font-size:11px;color:var(--muted)}.meta dd{margin:2px 0 0;font-size:13px;font-weight:750;overflow-wrap:anywhere}
.release-box{border:1px solid #dce7ed;border-radius:7px;padding:15px;background:#f7fafb}
.release-box strong{font-size:12px}.release-box p{font-size:12px}
.progress{width:100%;height:9px;appearance:none;border-radius:30px;overflow:hidden;border:0;background:#e5ecef}
.progress::-webkit-progress-bar{background:#e5ecef;border-radius:30px}
.progress::-webkit-progress-value{background:#0a9f90;border-radius:30px}
.progress::-moz-progress-bar{background:#0a9f90;border-radius:30px}
.progress-caption{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;margin:8px 0 0}
.quick-link{display:flex;align-items:flex-start;gap:12px;text-decoration:none;color:inherit;padding:18px;transition:border-color .2s,transform .2s}
.quick-link:hover{border-color:#9dd7cd;transform:translateY(-2px)}
.quick-link .quick-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:#0a8377;background:#e7f8f4;flex:none;font-size:17px}
.quick-link h3{margin-bottom:4px}.quick-link p{margin:0;font-size:12px}
.resend-confirmation{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}
.account-overview-email{max-width:100%;overflow-wrap:anywhere}
.site-foot{background:var(--navy);color:#9eafbd;margin-top:42px;padding:29px 0 34px}
.site-foot .wrap{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}
.site-foot .brand{font-size:20px}.site-foot .brand-icon{width:19px;height:19px;border-width:2px}.site-foot .brand-icon span{width:6px;height:6px}
.site-foot p{font-size:11px;line-height:1.7;max-width:360px;margin:11px 0 0}
.site-foot a{color:#c2ceda;text-decoration:none}.site-foot a:hover{color:#fff}
.site-foot .foot-links{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}
details{border-bottom:1px solid var(--line);padding:12px 0}details:last-child{border-bottom:0}
summary{cursor:pointer;font-size:12px;font-weight:750}details p{margin:11px 0 0;font-size:12px}
.anchor{scroll-margin-top:90px}
@media(max-width:1050px){
 .nav{gap:12px}.portal-links a{padding:9px 10px}
 .columns{grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr)}
}
@media(max-width:860px){
 .nav{height:67px;position:relative}.nav-toggle{display:block}
 .portal-links{display:none;position:absolute;left:0;right:0;top:calc(100% + 1px);background:#0a1420;box-shadow:0 12px 20px #06101b40;padding:10px;flex-direction:column;align-items:stretch;border:1px solid #253c4b;border-radius:0 0 9px 9px;gap:3px}
 .portal-links.open{display:flex}
 .portal-links a{font-size:13px;padding:12px 13px}
 .portal-links .nav-cta{margin:6px 0 0;justify-content:center}
 .portal-links a[aria-current="page"]:not(.nav-cta)::after{display:none}
 .columns{grid-template-columns:1fr}
 .four,.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 .wrap{width:min(100% - 32px,1190px)}
 .brand{font-size:23px}.brand-icon{width:21px;height:21px}
 .notice .wrap{font-size:11px}
 .hero{padding:28px 0 12px}.hero h1{font-size:30px}.hero p{font-size:13px}
 .three,.two,.meta{grid-template-columns:1fr}
 .card{padding:18px}.card h2{font-size:16px}
 .section{padding:12px 0 21px}.section-title{font-size:18px}
 .actions{display:grid;grid-template-columns:1fr}.actions>*{width:100%}
 .tabs{display:flex}.tabs button{flex:1}
 .form-grid button{width:100%}
 .status-row{align-items:flex-start}.status-row strong{max-width:50%}.status-row span{max-width:50%}
 .site-foot .wrap{flex-direction:column}.site-foot .foot-links{gap:12px}
}
@media(max-width:370px){.four,.metrics{grid-template-columns:1fr}.brand{font-size:21px}.card{padding:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
