:root{--bg:#07090c;--side:#090c11;--panel:#0e131a;--panel2:#121923;--line:rgba(255,255,255,.09);--text:#f5f7fb;--muted:#a0a7b2;--blue:#078cff;--green:#2ed47a;--red:#ff666f;--purple:#a57aff}*{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-body,Inter,Arial,sans-serif)}body{min-height:100vh;background:var(--bg);color:var(--text);font-size:16px;line-height:1.6}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.portal-layout{min-height:100vh;display:grid;grid-template-columns:275px 1fr}.shared-sidebar{position:fixed;inset:0 auto 0 0;z-index:50;width:275px;padding:28px 18px 20px;display:flex;flex-direction:column;border-right:1px solid var(--line);background:var(--side)}.portal-brand{height:48px;padding:0 10px;display:flex;align-items:center;gap:10px}.portal-brand img{width:34px;height:34px;object-fit:contain}.portal-brand>span{font-size:21px;font-weight:800}.portal-brand small{margin-left:auto;color:#717986;font-size:11px;font-weight:800;text-transform:uppercase}.shared-portal-nav{margin-top:38px;display:grid;gap:6px}.shared-nav-link{min-height:48px;padding:0 14px;display:flex;align-items:center;gap:13px;border-radius:11px;color:#929aa6;font-size:14px;font-weight:700}.shared-nav-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.shared-nav-link:hover{background:rgba(255,255,255,.04);color:#fff}.shared-nav-link.active{background:rgba(7,140,255,.12);box-shadow:inset 3px 0 var(--blue);color:#fff}.shared-nav-link.active svg{color:var(--blue)}.shared-account{margin-top:auto;padding:15px 8px 0;border-top:1px solid var(--line);display:grid;gap:8px}.shared-account>a,.shared-account>button{padding:7px 8px;border:0;background:none;color:#8e96a2;text-align:left;font-size:13px;font-weight:700}.shared-account>a:hover,.shared-account>button:hover{color:var(--blue)}.shared-account>div{margin-top:10px;display:flex;align-items:center;gap:10px}.shared-account>div>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#143553;color:#7ac2ff;font-size:12px;font-weight:800}.shared-account strong,.shared-account small{display:block}.shared-account strong{font-size:13px}.shared-account small{color:#858d99;font-size:11px}.portal-page{grid-column:2;min-width:0}.portal-topbar{height:84px;padding:0 clamp(24px,4vw,55px);display:flex;align-items:center;border-bottom:1px solid var(--line);background:rgba(7,9,12,.88);backdrop-filter:blur(16px)}.portal-topbar h1{font-size:23px}.portal-topbar p{margin-left:18px;padding-left:18px;border-left:1px solid var(--line);color:var(--muted);font-size:13px}.portal-menu{display:none;width:42px;height:42px;margin-right:14px;border:1px solid var(--line);border-radius:10px;background:none;color:#fff;font-size:21px}.portal-content{width:100%;max-width:1350px;margin:auto;padding:clamp(35px,5vw,64px) clamp(22px,5vw,65px) 80px}.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:34px}.page-intro span{color:var(--blue);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.page-intro h2{margin-top:8px;font-size:clamp(30px,4vw,44px);line-height:1.2}.page-intro p{max-width:650px;margin-top:10px;color:var(--muted);font-size:15px}.portal-button{min-height:46px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:11px;background:var(--blue);color:#fff;font-size:14px;font-weight:800;box-shadow:0 10px 28px rgba(7,140,255,.2)}.portal-button.secondary{border:1px solid var(--line);background:rgba(255,255,255,.04);box-shadow:none;color:#fff}.portal-card{border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 22px 60px rgba(0,0,0,.2)}.portal-card-head{padding:22px 25px;border-bottom:1px solid var(--line)}.portal-card-head h3{font-size:18px}.portal-card-head p{margin-top:4px;color:var(--muted);font-size:13px}.form-grid{padding:25px;display:grid;grid-template-columns:1fr 1fr;gap:22px}.field{display:grid;gap:8px}.field.full{grid-column:1/-1}.field label{font-size:14px;font-weight:800}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:11px;outline:0;background:rgba(255,255,255,.035);color:#fff;font-size:14px}.field input,.field select{height:50px;padding:0 14px}.field textarea{min-height:140px;padding:13px 14px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(7,140,255,.7);box-shadow:0 0 0 4px rgba(7,140,255,.09)}.field small{color:#858d99;font-size:12px}.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:12px}.portal-form-message:empty{display:none}.portal-form-message{grid-column:1/-1;padding:12px 14px;border-radius:10px;font-size:13px;font-weight:700}.portal-form-message.success{border:1px solid rgba(46,212,122,.3);background:rgba(46,212,122,.08);color:#70e4a7}.portal-form-message.error{border:1px solid rgba(255,102,111,.3);background:rgba(255,102,111,.08);color:#ff969d}.list-grid{display:grid;gap:15px}.list-card{padding:23px;display:flex;align-items:center;gap:20px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.list-card>div{min-width:0;flex:1}.list-card h3{font-size:17px}.list-card p{margin-top:5px;color:var(--muted);font-size:13px}.pill{display:inline-flex;padding:6px 10px;border-radius:999px;background:rgba(7,140,255,.1);color:#72bfff;font-size:11px;font-weight:800}.empty-panel{padding:65px 25px;text-align:center}.empty-panel h3{font-size:24px}.empty-panel p{max-width:520px;margin:10px auto 0;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.setting-link{padding:25px;min-height:190px;border:1px solid var(--line);border-radius:17px;background:var(--panel);transition:.2s}.setting-link:hover{transform:translateY(-3px);border-color:rgba(7,140,255,.4)}.setting-link i{width:45px;height:45px;display:grid;place-items:center;border-radius:12px;background:rgba(7,140,255,.1);color:var(--blue);font-size:20px;font-style:normal}.setting-link h3{margin-top:20px;font-size:17px}.setting-link p{margin-top:8px;color:var(--muted);font-size:13px}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:16px 20px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}.data-table th{color:#8d95a1;font-size:11px;text-transform:uppercase}.data-table td{color:#d5d9e0}.toggle-row{padding:20px 24px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line)}.toggle-row>div{flex:1}.toggle-row h3{font-size:15px}.toggle-row p{margin-top:3px;color:var(--muted);font-size:12px}.switch{position:relative;width:48px;height:27px}.switch input{position:absolute;opacity:0}.switch span{position:absolute;inset:0;border-radius:99px;background:#2a3039;cursor:pointer}.switch span:before{content:"";position:absolute;width:21px;height:21px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.2s}.switch input:checked+span{background:var(--blue)}.switch input:checked+span:before{transform:translateX(21px)}:focus-visible{outline:3px solid rgba(7,140,255,.65);outline-offset:3px}
@media(max-width:900px){.portal-layout{display:block}.shared-sidebar{transform:translateX(-100%);box-shadow:25px 0 70px rgba(0,0,0,.55);transition:.25s}.shared-sidebar.open{transform:none}.portal-page{width:100%}.portal-menu{display:grid;place-items:center}.settings-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.portal-topbar{height:74px;padding:0 16px}.portal-topbar p{display:none}.portal-content{padding:30px 16px 60px}.page-intro{align-items:flex-start;flex-direction:column}.page-intro .portal-button{width:100%}.form-grid{grid-template-columns:1fr;padding:20px}.field.full,.form-actions{grid-column:1}.form-actions{flex-direction:column}.form-actions .portal-button{width:100%}.settings-grid{grid-template-columns:1fr}.list-card{align-items:flex-start;flex-direction:column}.data-table{display:block;overflow-x:auto}}
.shared-sidebar{overflow-y:auto}
select{color-scheme:dark}.field select option,.field select optgroup,.member select option{background:#121923;color:#f5f7fb}.field select optgroup{font-weight:800}.field select option{font-weight:600}
.settings-content{max-width:1450px}.settings-intro{margin-bottom:28px}.settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}.settings-nav{position:sticky;top:108px;padding:10px;display:grid;gap:5px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.settings-nav button{min-height:44px;padding:0 13px;border:0;border-radius:9px;background:transparent;color:#929aa6;text-align:left;font-size:13px;font-weight:700}.settings-nav button:hover{background:rgba(255,255,255,.04);color:#fff}.settings-nav button.active{background:rgba(7,140,255,.12);color:#75c0ff}.settings-panel{display:none;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--panel)}.settings-panel.active{display:block;animation:settingsIn .25s ease both}@keyframes settingsIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}.settings-panel-head{min-height:95px;padding:23px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.settings-panel-head h2{font-size:22px}.settings-panel-head p{margin-top:5px;color:var(--muted);font-size:13px}.company-logo{width:52px;height:52px;display:grid;place-items:center;border:1px solid rgba(7,140,255,.3);border-radius:14px;background:rgba(7,140,255,.1);color:#72bfff;font-weight:800}.settings-form{padding:25px;display:grid;grid-template-columns:1fr 1fr;gap:21px}.settings-stack{display:grid}.settings-row{min-height:92px;padding:20px 25px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid var(--line)}.settings-row:last-child{border-bottom:0}.settings-row>div{min-width:0;flex:1}.settings-row h3{font-size:15px}.settings-row p{margin-top:4px;color:var(--muted);font-size:12px}.status-good{padding:6px 10px;border-radius:999px;background:rgba(46,212,122,.1);color:#6fe0a4;font-size:11px;font-weight:800}.danger-row{background:rgba(255,102,111,.025)}.danger-button{min-height:40px;padding:0 14px;border:1px solid rgba(255,102,111,.3);border-radius:9px;background:rgba(255,102,111,.07);color:#ff8f96;font-size:12px;font-weight:800}.settings-save{padding:20px 25px;display:flex;align-items:center;justify-content:flex-end;gap:20px}.settings-save .portal-form-message{margin-right:auto}.member-list{display:grid}.member{padding:20px 25px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.member>span{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:rgba(7,140,255,.1);color:#72bfff;font-size:11px;font-weight:800}.member>div{flex:1}.member h3{font-size:14px}.member p{margin-top:3px;color:var(--muted);font-size:11px}.member strong{color:#72bfff;font-size:12px}.member select{height:38px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel2);color:#fff}.billing-summary{padding:24px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;border-bottom:1px solid var(--line)}.billing-summary article{padding:18px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.025)}.billing-summary span,.billing-summary strong,.billing-summary p{display:block}.billing-summary span{color:var(--muted);font-size:11px}.billing-summary strong{margin-top:7px;font-size:14px}.billing-summary p{margin-top:5px;color:#7f8793;font-size:10px}.integration-grid{padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.integration-grid article{padding:18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.02)}.integration-grid i{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:rgba(7,140,255,.1);color:#75c0ff;font-size:11px;font-style:normal;font-weight:800}.integration-grid h3{font-size:14px}.integration-grid p{margin-top:3px;color:var(--muted);font-size:10px}.integration-grid button{min-height:35px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.04);color:#fff;font-size:11px;font-weight:800}.integration-grid button.connected{border-color:rgba(46,212,122,.3);color:#70dfa5}
@media(max-width:1050px){.settings-layout{grid-template-columns:190px 1fr}.integration-grid,.billing-summary{grid-template-columns:1fr}}
@media(max-width:760px){.settings-layout{grid-template-columns:1fr}.settings-nav{position:static;grid-template-columns:1fr 1fr}.settings-form{grid-template-columns:1fr}.settings-panel-head,.settings-row{align-items:flex-start;flex-direction:column}.settings-panel-head .portal-button,.settings-row .portal-button,.danger-button{width:100%}.integration-grid{grid-template-columns:1fr}}

/* Client settings use the same card, choice, and language architecture as Admin Settings. */
.settings-layout{grid-template-columns:210px minmax(0,1fr);gap:18px}.settings-nav{padding:12px;border-radius:14px}.settings-nav button{min-height:42px;padding:0 12px;border-radius:8px;color:var(--muted);font-size:12px}.settings-nav button.active{background:rgba(7,140,255,.14);color:#77c2ff}.settings-panel{border-radius:14px}.settings-panel-head{min-height:84px;padding:20px 22px}.settings-panel-head h2{font-size:19px}.settings-panel-head p{font-size:11px}.client-choice-grid{padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.client-choice{min-height:110px;padding:17px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025);color:var(--text);text-align:left}.client-choice:hover,.client-choice[aria-pressed='true']{border-color:rgba(7,140,255,.55);background:rgba(7,140,255,.09)}.client-choice strong{font-size:13px}.client-choice small{color:var(--muted);font-size:10px;line-height:1.5}.client-choice-preview{width:100%;height:45px;padding:7px;display:grid;grid-template-columns:24% 1fr;grid-template-rows:repeat(2,1fr);gap:5px;border:1px solid rgba(255,255,255,.12);border-radius:7px}.client-choice-preview i{display:block;border-radius:3px;background:rgba(7,140,255,.55)}.client-choice-preview i:first-child{grid-row:1/3}.preview-dark{background:#07111a}.preview-light{border-color:rgba(20,52,78,.16);background:#eef4f8}.preview-light i{background:#68aee5}.client-language-grid{padding:22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.client-language-grid button{min-height:43px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:rgba(255,255,255,.025);color:var(--text);font-size:11px;font-weight:800}.client-language-grid button:hover,.client-language-grid button[aria-pressed='true']{border-color:rgba(7,140,255,.55);background:rgba(7,140,255,.11);color:#76c2ff}.client-settings-note{margin:0 22px 22px;padding:13px 15px;border:1px solid rgba(7,140,255,.2);border-radius:9px;background:rgba(7,140,255,.06);color:var(--muted);font-size:10px;line-height:1.6}.settings-hidden-control{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}html[data-portal-theme='light'] .client-choice,html[data-portal-theme='light'] .client-language-grid button{background:#f7fafc;color:var(--text)}html[data-portal-theme='light'] .client-choice:hover,html[data-portal-theme='light'] .client-choice[aria-pressed='true'],html[data-portal-theme='light'] .client-language-grid button:hover,html[data-portal-theme='light'] .client-language-grid button[aria-pressed='true']{background:#e8f4fd;color:#0878ca}html[data-portal-theme='light'] .client-settings-note{background:#eef7fe;color:#526a7d}
@media(max-width:1050px){.settings-layout{grid-template-columns:190px minmax(0,1fr)}}@media(max-width:760px){.settings-layout{grid-template-columns:1fr}.client-language-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.client-choice-grid,.client-language-grid{grid-template-columns:1fr}}
@media(max-width:480px){.settings-nav{grid-template-columns:1fr}.settings-form,.integration-grid,.billing-summary{padding:18px}.settings-panel-head,.settings-row{padding:20px}.integration-grid article{grid-template-columns:auto 1fr}.integration-grid button{grid-column:1/-1;width:100%}}
.accessibility-mark{width:52px;height:52px;display:grid;place-items:center;border:1px solid rgba(7,140,255,.35);border-radius:14px;background:rgba(7,140,255,.1);color:#79c3ff;font-size:17px;font-weight:800}.accessibility-toggle{min-height:90px;padding:17px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.02)}.accessibility-preview{padding:22px;border:1px solid rgba(7,140,255,.25);border-radius:14px;background:linear-gradient(135deg,rgba(7,140,255,.08),rgba(255,255,255,.02))}.accessibility-preview>span{color:var(--blue);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.accessibility-preview h3{margin-top:8px;font-size:19px}.accessibility-preview p{margin-top:6px;color:var(--muted);font-size:13px}.accessibility-preview>div{margin-top:15px;display:flex;align-items:center;gap:9px}.accessibility-preview i{width:10px;height:10px;border-radius:50%;background:var(--green)}.accessibility-preview strong{font-size:12px}.shared-nav-link[href="clientportal-settings.html"] svg{color:#75c0ff;stroke-width:2.2}
body[data-text-size="large"] .portal-layout{zoom:1.08}body[data-text-size="extra-large"] .portal-layout{zoom:1.16}.portal-high-contrast{--line:rgba(255,255,255,.34);--muted:#e0e4ea;--panel:#0b1118;--panel2:#121c27;--text:#fff}.portal-high-contrast .shared-sidebar{background:#03070b}.portal-high-contrast .shared-nav-link,.portal-high-contrast .settings-nav button{color:#eef1f5}.portal-high-contrast input,.portal-high-contrast select,.portal-high-contrast textarea{border-color:rgba(255,255,255,.48)!important}.portal-reduce-motion *,.portal-reduce-motion *:before,.portal-reduce-motion *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
.portal-high-contrast .accessibility-preview{border-color:#fff}
@media(max-width:760px){body[data-text-size="large"] .portal-layout,body[data-text-size="extra-large"] .portal-layout{zoom:1}.accessibility-toggle{grid-column:1}.accessibility-preview{grid-column:1}}
.portal-brand{height:58px;padding:0 4px;gap:9px}.portal-brand img{flex:0 0 32px;width:32px;height:32px}.portal-brand>span{min-width:0;flex:1;font-size:15px;line-height:1.12;white-space:normal}.portal-brand small{flex:0 0 auto;margin-left:0;font-size:9px}
button.portal-button,a.portal-button,.primary-button,.outline-button{position:relative;isolation:isolate;overflow:hidden;border:1px solid rgba(112,196,255,.3);box-shadow:0 10px 28px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.14);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,filter .22s ease}button.portal-button:after,a.portal-button:after,.primary-button:after,.outline-button:after{content:"";position:absolute;z-index:-1;inset:-70% auto -70% -45%;width:34%;transform:translateX(-180%) rotate(18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);filter:blur(1px);transition:transform .55s cubic-bezier(.2,.75,.2,1);pointer-events:none}button.portal-button:hover,a.portal-button:hover,.primary-button:hover,.outline-button:hover{transform:translateY(-2px);border-color:rgba(112,196,255,.7);box-shadow:0 15px 38px rgba(0,0,0,.3),0 0 24px rgba(7,140,255,.14),inset 0 1px rgba(255,255,255,.2);filter:saturate(1.08)}button.portal-button:hover:after,a.portal-button:hover:after,.primary-button:hover:after,.outline-button:hover:after{transform:translateX(520%) rotate(18deg)}button.portal-button:active,a.portal-button:active,.primary-button:active,.outline-button:active{transform:translateY(0) scale(.985)}@media(prefers-reduced-motion:reduce){button.portal-button,a.portal-button,.primary-button,.outline-button{transition:none}button.portal-button:after,a.portal-button:after,.primary-button:after,.outline-button:after{display:none}}
input[type="file"]{padding:8px;color:#aeb8c4}input[type="file"]::file-selector-button{min-height:38px;margin-right:12px;padding:0 15px;border:1px solid rgba(7,140,255,.5);border-radius:8px;background:rgba(7,140,255,.12);color:#eaf6ff;font:800 10px var(--font-body,Inter,Arial,sans-serif);cursor:pointer;transition:background .2s,border-color .2s,transform .2s}input[type="file"]::file-selector-button:hover{border-color:#078cff;background:rgba(7,140,255,.24);transform:translateY(-1px)}input[type="file"]:focus-visible{outline:3px solid rgba(7,140,255,.35);outline-offset:2px}
.settings-form[hidden]{display:none!important}#profile-loading{margin:24px;padding:16px 18px;border:1px solid var(--line);border-radius:11px;background:rgba(7,140,255,.055);color:var(--muted)}#profile-loading.error{border-color:rgba(255,102,112,.3);background:rgba(255,102,112,.07);color:#ff8f96}
.settings-modal-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px;background:rgba(2,6,11,.7);backdrop-filter:blur(12px)}.settings-modal-backdrop[hidden]{display:none!important}.settings-modal{width:min(520px,100%);overflow:hidden;border:1px solid rgba(7,140,255,.35);border-radius:20px;background:var(--panel);box-shadow:0 35px 100px rgba(0,0,0,.55)}.settings-modal>header{padding:23px 25px;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.settings-modal>header span{color:var(--blue);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.settings-modal>header h2{margin-top:5px;font-size:22px}.settings-modal>header p{margin-top:5px;color:var(--muted);font-size:12px}.settings-modal>header button{width:38px;height:38px;flex:0 0 38px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.035);color:var(--text);font-size:22px}.settings-modal form{padding:25px;display:grid;gap:18px}.settings-modal footer{display:flex;justify-content:flex-end;gap:10px;margin-top:3px}
.password-strength{margin-top:9px;display:flex;align-items:center;gap:10px}.password-strength>div{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;flex:1}.password-strength i{height:5px;border-radius:99px;background:var(--line);transition:background .2s,box-shadow .2s}.password-strength span{min-width:58px;color:var(--muted);font-size:10px;font-weight:800;text-align:right}.password-strength[data-strength="weak"] i:first-child{background:#ff6670}.password-strength[data-strength="weak"] span{color:#ff8990}.password-strength[data-strength="medium"] i:nth-child(-n+2){background:#ffb13b;box-shadow:0 0 10px rgba(255,177,59,.2)}.password-strength[data-strength="medium"] span{color:#ffc66d}.password-strength[data-strength="strong"] i{background:#2ed47a;box-shadow:0 0 10px rgba(46,212,122,.2)}.password-strength[data-strength="strong"] span{color:#6fe0a4}

/* Shared client-portal shell: quiet product navigation with a lightweight signal accent. */
.shared-profile-card.is-loading{pointer-events:none}
.shared-profile-card.is-loading>span,.shared-profile-card.is-loading strong,.shared-profile-card.is-loading small{color:transparent!important;background:linear-gradient(100deg,rgba(104,137,160,.09) 20%,rgba(112,184,232,.18) 42%,rgba(104,137,160,.09) 64%);background-size:240% 100%;animation:portal-profile-loading 1.35s ease-in-out infinite}
.shared-profile-card.is-loading>span{border-color:rgba(82,188,255,.08)!important;border-radius:11px!important}
.shared-profile-card.is-loading strong{width:108px;height:12px;border-radius:5px}
.shared-profile-card.is-loading small{width:76px;height:9px;margin-top:7px;border-radius:4px}
@keyframes portal-profile-loading{0%{background-position:100% 0}100%{background-position:-100% 0}}
.portal-reduce-motion .shared-profile-card.is-loading>span,.portal-reduce-motion .shared-profile-card.is-loading strong,.portal-reduce-motion .shared-profile-card.is-loading small{animation:none}
.portal-reduce-motion .shared-nav-link:hover svg{transform:none}
@media(prefers-reduced-motion:reduce){.shared-profile-card.is-loading>span,.shared-profile-card.is-loading strong,.shared-profile-card.is-loading small{animation:none}.shared-nav-link:hover svg{transform:none}}
.shared-sidebar{isolation:isolate;overflow-x:hidden;border-right-color:rgba(73,139,184,.18);background:radial-gradient(circle at 18% -4%,rgba(7,140,255,.105),transparent 28%),linear-gradient(180deg,#080d12 0%,#070a0e 72%,#080d12 100%);box-shadow:18px 0 60px rgba(0,0,0,.12)}
.shared-sidebar:after{content:"";position:absolute;z-index:3;inset:0 -1px 0 auto;width:1px;height:auto;background:linear-gradient(180deg,transparent 0,#57c2ff 45%,#078cff 68%,transparent 100%) 0 -130px/100% 130px no-repeat;box-shadow:0 0 12px rgba(42,169,255,.72);pointer-events:none;animation:portal-edge-signal 11s ease-in-out infinite}
@keyframes portal-edge-signal{0%,14%{background-position:0 -130px;opacity:0}22%{opacity:1}78%{opacity:1}88%,100%{background-position:0 calc(100vh + 130px);opacity:0}}
.portal-brand{position:relative;min-height:62px;height:auto;padding:8px 8px 12px;border-bottom:1px solid rgba(91,154,195,.13);transition:opacity .2s ease}.portal-brand:hover{opacity:.92}.portal-brand img{width:34px;height:34px;filter:drop-shadow(0 5px 12px rgba(0,140,255,.22))}.portal-brand>span{color:#f3f8fc;font-size:16px;letter-spacing:-.025em}.portal-brand small{padding:4px 7px;border-radius:6px;background:rgba(7,140,255,.075);color:#70869a;font-size:8px;letter-spacing:.075em}
.shared-portal-nav{margin-top:28px;gap:7px}.shared-nav-link{position:relative;min-height:50px;padding:0 11px;overflow:hidden;border:1px solid transparent;border-radius:12px;color:#84909c;transition:transform .2s ease,border-color .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease}.shared-nav-link svg{width:34px;height:34px;padding:7px;flex:0 0 34px;border:1px solid transparent;border-radius:9px;background:rgba(255,255,255,.022);transition:border-color .2s ease,background .2s ease,color .2s ease}.shared-nav-link:hover{transform:translateX(2px);border-color:rgba(99,178,232,.12);background:rgba(255,255,255,.03);color:#e5edf4}.shared-nav-link:hover svg{border-color:rgba(79,169,226,.14);background:rgba(7,140,255,.06);color:#8acfff}.shared-nav-link.active{border-color:rgba(67,171,238,.22);background:linear-gradient(90deg,rgba(7,140,255,.13),rgba(7,140,255,.045) 72%,transparent);color:#f5f9fc;box-shadow:inset 0 1px rgba(255,255,255,.025),0 9px 24px rgba(0,0,0,.12)}.shared-nav-link.active:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;border-radius:99px;background:linear-gradient(180deg,#75d0ff,#078cff);box-shadow:0 0 11px rgba(7,140,255,.72)}.shared-nav-link.active:after{content:"";position:absolute;right:13px;width:5px;height:5px;border-radius:50%;background:#3bb8ff;box-shadow:0 0 9px rgba(59,184,255,.7)}.shared-nav-link.active svg{border-color:rgba(82,188,255,.2);background:linear-gradient(145deg,rgba(7,140,255,.15),rgba(7,140,255,.055));color:#7dcbff}.shared-nav-link:focus-visible{outline:2px solid rgba(78,187,255,.75);outline-offset:2px}
.shared-account{margin:18px 0 0;padding:12px 8px 0;gap:8px;border-top-color:rgba(91,154,195,.13)}.shared-account>div{margin-top:0;padding:11px;border:1px solid rgba(94,153,194,.12);border-radius:12px;background:rgba(255,255,255,.022)}.shared-account>div>span{position:relative;border:1px solid rgba(82,188,255,.16);background:linear-gradient(145deg,#123c5b,#0b2a41);box-shadow:inset 0 1px rgba(255,255,255,.07)}.shared-account>div>span:after{content:"";position:absolute;right:-2px;bottom:-2px;width:7px;height:7px;border:2px solid #091018;border-radius:50%;background:#2ed47a}.shared-account>a,.shared-account>button{min-height:34px;padding:0 11px;border-radius:8px;transition:background .2s ease,color .2s ease}.shared-account>a:hover,.shared-account>button:hover{background:rgba(7,140,255,.06);color:#78c8ff}
.portal-topbar{position:sticky!important;top:0;z-index:40;isolation:isolate;height:84px;border-bottom-color:rgba(73,139,184,.18);background:linear-gradient(90deg,rgba(7,12,17,.985),rgba(8,14,20,.97) 58%,rgba(7,20,31,.97))!important;box-shadow:0 14px 35px rgba(0,0,0,.16);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.portal-topbar:after{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent 4%,rgba(7,140,255,.38) 26%,rgba(92,194,255,.18) 56%,transparent 90%);pointer-events:none}.portal-topbar h1,.portal-topbar .topbar-title h1{color:#f4f8fb;letter-spacing:-.025em}.portal-topbar>p{border-left-color:rgba(102,166,209,.19);color:#82909d}.portal-topbar .topbar-title>span{color:#5eb9f6;letter-spacing:.12em}.portal-menu,.portal-back{border-color:rgba(91,167,218,.2)!important;background:rgba(7,140,255,.045)!important;color:#a9d9f8!important;transition:border-color .2s ease,background .2s ease,color .2s ease,transform .2s ease}.portal-menu:hover,.portal-back:hover{transform:translateY(-1px);border-color:rgba(88,188,249,.45)!important;background:rgba(7,140,255,.1)!important;color:#e6f6ff!important}
html[data-portal-theme="light"] .shared-sidebar{border-right-color:rgba(26,97,145,.16);background:radial-gradient(circle at 18% -4%,rgba(0,116,212,.08),transparent 29%),linear-gradient(180deg,#ffffff,#f5f9fc 72%,#f8fbfd)!important;box-shadow:14px 0 38px rgba(31,65,90,.08)}html[data-portal-theme="light"] .portal-brand{border-bottom-color:rgba(20,86,132,.13)}html[data-portal-theme="light"] .portal-brand>span{color:#142438}html[data-portal-theme="light"] .portal-brand small{background:rgba(0,116,212,.06);color:#60788b}html[data-portal-theme="light"] .shared-nav-link{color:#5b6e80!important}html[data-portal-theme="light"] .shared-nav-link svg{background:rgba(20,86,132,.025)}html[data-portal-theme="light"] .shared-nav-link:hover{border-color:rgba(0,116,194,.12);background:rgba(0,116,194,.045)!important;color:#173d57!important}html[data-portal-theme="light"] .shared-nav-link.active{border-color:rgba(0,116,194,.18);background:linear-gradient(90deg,rgba(0,126,213,.11),rgba(0,116,194,.035) 76%,transparent)!important;color:#075f9f!important;box-shadow:0 9px 22px rgba(31,65,90,.06)}html[data-portal-theme="light"] .shared-account>div{border-color:rgba(20,86,132,.12);background:rgba(255,255,255,.72)}html[data-portal-theme="light"] .shared-account>div>span:after{border-color:#fff}html[data-portal-theme="light"] .portal-topbar{border-bottom-color:rgba(20,86,132,.14);background:linear-gradient(90deg,rgba(255,255,255,.985),rgba(247,251,253,.98) 62%,rgba(240,248,253,.98))!important;box-shadow:0 12px 30px rgba(31,65,90,.08)}html[data-portal-theme="light"] .portal-topbar h1,html[data-portal-theme="light"] .portal-topbar .topbar-title h1{color:#142438}html[data-portal-theme="light"] .portal-topbar>p{color:#617285}
.portal-high-contrast .shared-sidebar:after{display:none}.portal-high-contrast .shared-nav-link,.portal-high-contrast .shared-account>div{border-color:currentColor}.portal-reduce-motion .shared-sidebar:after{display:none}.portal-reduce-motion .shared-nav-link,.portal-reduce-motion .shared-nav-link svg,.portal-reduce-motion .portal-brand,.portal-reduce-motion .portal-menu,.portal-reduce-motion .portal-back{transition:none}.portal-reduce-motion .shared-nav-link:hover{transform:none}
@media(max-width:900px){.shared-sidebar{width:min(310px,calc(100vw - 38px));box-shadow:26px 0 75px rgba(0,0,0,.48)}.shared-sidebar:after{display:none}.portal-topbar{height:78px}.shared-nav-link:hover{transform:none}}
@media(max-width:520px){.portal-topbar{height:72px}.portal-brand{min-height:58px}.shared-portal-nav{margin-top:20px}}
@media(prefers-reduced-motion:reduce){.shared-sidebar:after{display:none}.shared-nav-link,.shared-nav-link svg,.portal-brand,.portal-menu,.portal-back{transition:none}.shared-nav-link:hover{transform:none}}

/* Portal icon finish */
.portal-brand{min-height:72px;display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:10px;row-gap:2px;padding:8px 10px 12px}
.portal-brand img{grid-column:1;grid-row:1/3;align-self:center}
.portal-brand>span{grid-column:2;grid-row:1;align-self:end;white-space:nowrap;font-size:15px}
.portal-brand small{grid-column:2;grid-row:2;justify-self:start;margin:0;padding:2px 6px;font-size:7px;line-height:1.35}
.shared-nav-link svg{stroke-width:1.7;transform:translateZ(0);box-shadow:inset 0 1px rgba(255,255,255,.025);transition:border-color .2s ease,background .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease}
.shared-nav-link svg path{vector-effect:non-scaling-stroke}
.shared-nav-link:hover svg{transform:translateY(-1px);box-shadow:inset 0 1px rgba(255,255,255,.045),0 7px 18px rgba(0,0,0,.16)}
.shared-nav-link.active svg{box-shadow:inset 0 1px rgba(255,255,255,.06),0 0 18px rgba(7,140,255,.09)}
.portal-reduce-motion .shared-nav-link:hover svg{transform:none}
@media(prefers-reduced-motion:reduce){.shared-nav-link svg{transition:none}.shared-nav-link:hover svg{transform:none}}

/* Portal overlays avoid GPU-heavy backdrop blur while keeping dialogs visually focused. */
.meeting-modal,.project-editor,.refund-dialog-backdrop,.settings-modal-backdrop{background:rgba(1,6,11,.78)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.invoice-action-menu{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-portal-theme="light"] .meeting-modal,html[data-portal-theme="light"] .project-editor,html[data-portal-theme="light"] .refund-dialog-backdrop,html[data-portal-theme="light"] .settings-modal-backdrop{background:rgba(12,31,46,.62)!important}

/* Shared portal navigation, compact mode, topbar, and scrollbar finish. */
:root{--portal-sidebar-width:275px;scrollbar-color:#128ee6 #071018;scrollbar-width:thin}
.portal-layout{grid-template-columns:var(--portal-sidebar-width) minmax(0,1fr);transition:grid-template-columns .25s ease}
.shared-sidebar{width:var(--portal-sidebar-width);min-height:100vh;min-height:100dvh;padding-bottom:18px;scrollbar-color:#137fc4 #070d13;scrollbar-width:thin;transition:width .25s ease,padding .25s ease}
:where(html,body,.shared-sidebar,.portal-content,.portal-notification-list,.settings-panel,.detail-card,.meeting-modal-card,.project-editor-card)::-webkit-scrollbar{width:10px;height:10px}
:where(html,body,.shared-sidebar,.portal-content,.portal-notification-list,.settings-panel,.detail-card,.meeting-modal-card,.project-editor-card)::-webkit-scrollbar-track{border-left:1px solid rgba(73,139,184,.08);background:#071018}
:where(html,body,.shared-sidebar,.portal-content,.portal-notification-list,.settings-panel,.detail-card,.meeting-modal-card,.project-editor-card)::-webkit-scrollbar-thumb{min-height:40px;border:2px solid #071018;border-radius:999px;background:linear-gradient(180deg,#43bdff,#078cff 58%,#0568b9);background-clip:padding-box}
:where(html,body,.shared-sidebar,.portal-content,.portal-notification-list,.settings-panel,.detail-card,.meeting-modal-card,.project-editor-card)::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#70ceff,#1698ff 58%,#0878d2);background-clip:padding-box}
.portal-sidebar-toggle{position:absolute;z-index:5;right:13px;top:103px;width:31px;height:31px;padding:0;display:grid;place-items:center;border:1px solid rgba(83,170,226,.2);border-radius:9px;background:#0a141d;color:#78c7f8;box-shadow:0 8px 22px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.035);transition:transform .2s ease,border-color .2s ease,background .2s ease,color .2s ease}
.portal-sidebar-toggle:hover{transform:translateX(-1px);border-color:rgba(82,190,255,.46);background:rgba(7,140,255,.1);color:#e2f5ff}.portal-sidebar-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s ease}.portal-sidebar-toggle span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.shared-portal-nav{padding-top:13px}.shared-account{margin-top:auto;padding-bottom:0}.shared-account>button{display:flex;align-items:center;gap:10px}.shared-account>button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.shared-profile-card{position:relative;min-height:62px;transition:border-color .2s ease,background .2s ease,transform .2s ease}.shared-profile-card:not(.is-loading):hover{transform:translateY(-1px);border-color:rgba(76,181,246,.23);background:rgba(7,140,255,.045)}
.shared-nav-link[href="clientportal-settings.html"]:not(.active) svg{color:inherit!important;stroke-width:1.7!important}
.portal-topbar-copy{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:18px}.portal-topbar-context{grid-column:1/-1;color:#5dbaff;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.portal-topbar-copy h1{grid-column:1;grid-row:2;margin-top:2px;font-size:20px!important;line-height:1.2}.portal-topbar-copy>p{grid-column:2;grid-row:2;margin:2px 0 0!important;padding-left:18px!important;border-left:1px solid rgba(102,166,209,.19)!important;color:#81909d!important;font-size:11px!important;line-height:1.4}.portal-back{width:42px!important;height:42px!important;flex:0 0 42px;margin-right:15px!important}.portal-back svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.portal-notification-panel{isolation:isolate;overflow:visible!important}.portal-notification-head,.portal-notification-list{position:relative;z-index:1}.portal-notification-head{border-radius:19px 19px 0 0;background:linear-gradient(135deg,rgba(11,23,33,.98),rgba(7,14,21,.98))}.portal-notification-list{overflow-y:auto!important;border-radius:0 0 19px 19px;background:#090f15}.portal-notification-panel:after{content:"";position:absolute;z-index:0;right:14px;top:-7px;width:14px;height:14px;transform:rotate(45deg);border-top:1px solid rgba(77,178,244,.28);border-left:1px solid rgba(77,178,244,.28);border-radius:2px 0 0;background:#0c1720;box-shadow:-4px -4px 12px rgba(7,140,255,.045)}
html.portal-sidebar-compact{--portal-sidebar-width:88px}.portal-sidebar-compact .shared-sidebar{padding-inline:12px}.portal-sidebar-compact .portal-brand{grid-template-columns:1fr;place-items:center;padding-inline:0}.portal-sidebar-compact .portal-brand img{grid-column:1;grid-row:1/-1;width:36px;height:36px}.portal-sidebar-compact .portal-brand>span,.portal-sidebar-compact .portal-brand small{display:none}.portal-sidebar-compact .portal-sidebar-toggle{right:28px}.portal-sidebar-compact .portal-sidebar-toggle svg{transform:rotate(180deg)}.portal-sidebar-compact .shared-portal-nav{padding-top:16px}.portal-sidebar-compact .shared-nav-link{width:52px;min-height:50px;margin-inline:auto;padding:0;justify-content:center;overflow:visible}.portal-sidebar-compact .shared-nav-link>span{display:none}.portal-sidebar-compact .shared-nav-link svg{flex-basis:36px;width:36px;height:36px}.portal-sidebar-compact .shared-nav-link.active:after{right:2px}.portal-sidebar-compact .shared-nav-link.active:before{top:9px;bottom:9px}.portal-sidebar-compact .shared-account{padding-inline:5px}.portal-sidebar-compact .shared-account>a,.portal-sidebar-compact .shared-account>button,.portal-sidebar-compact .artic-cookie-in-sidebar{width:52px;min-height:42px;margin-inline:auto;padding:0;justify-content:center}.portal-sidebar-compact .shared-account>button span,.portal-sidebar-compact .artic-cookie-manage-label{display:none!important}.portal-sidebar-compact .shared-account>div{width:52px;min-height:54px;margin-inline:auto;padding:7px;justify-content:center}.portal-sidebar-compact .shared-account>div>p{display:none}.portal-sidebar-compact .shared-account>div>span{width:36px;height:36px}.portal-sidebar-compact .shared-account>div>span:after{right:-1px;bottom:-1px}
html[data-portal-theme="light"]{scrollbar-color:#1687d3 #e6f1f7}html[data-portal-theme="light"] :where(html,body,.shared-sidebar,.portal-content,.portal-notification-list,.settings-panel,.detail-card,.meeting-modal-card,.project-editor-card)::-webkit-scrollbar-track{border-left-color:rgba(19,98,151,.1);background:#e6f1f7}html[data-portal-theme="light"] :where(html,body,.shared-sidebar,.portal-content,.portal-notification-list,.settings-panel,.detail-card,.meeting-modal-card,.project-editor-card)::-webkit-scrollbar-thumb{border-color:#e6f1f7}html[data-portal-theme="light"] .portal-sidebar-toggle{border-color:rgba(19,105,164,.18);background:#f5fafc;color:#177ebf;box-shadow:0 7px 18px rgba(31,65,90,.1)}html[data-portal-theme="light"] .portal-notification-head,html[data-portal-theme="light"] .portal-notification-list{background:#f8fcff}html[data-portal-theme="light"] .portal-notification-panel:after{border-color:rgba(0,112,190,.22);background:#f7fbfe}
@media(max-width:900px){:root,html.portal-sidebar-compact{--portal-sidebar-width:275px}.portal-layout{display:block}.shared-sidebar,.portal-sidebar-compact .shared-sidebar{width:min(310px,calc(100vw - 38px));padding-inline:18px}.portal-sidebar-toggle{display:none}.portal-sidebar-compact .portal-brand{display:grid;grid-template-columns:36px minmax(0,1fr);place-items:initial;padding:8px 10px 12px}.portal-sidebar-compact .portal-brand img{grid-column:1;grid-row:1/3;width:34px;height:34px}.portal-sidebar-compact .portal-brand>span,.portal-sidebar-compact .portal-brand small{display:block}.portal-sidebar-compact .shared-nav-link{width:auto;margin:0;padding:0 11px;justify-content:flex-start;overflow:hidden}.portal-sidebar-compact .shared-nav-link>span{display:inline}.portal-sidebar-compact .shared-account{padding-inline:8px}.portal-sidebar-compact .shared-account>a,.portal-sidebar-compact .shared-account>button,.portal-sidebar-compact .artic-cookie-in-sidebar{width:auto;margin:0;padding:0 11px;justify-content:flex-start}.portal-sidebar-compact .shared-account>button span,.portal-sidebar-compact .artic-cookie-manage-label{display:inline!important}.portal-sidebar-compact .shared-account>div{width:auto;margin:0;padding:11px;justify-content:flex-start}.portal-sidebar-compact .shared-account>div>p{display:block}.portal-topbar-copy>p{max-width:55vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:650px){.portal-topbar-copy{display:block}.portal-topbar-context{display:block}.portal-topbar-copy h1{margin-top:2px}.portal-topbar-copy>p{display:none}.portal-back{width:38px!important;height:38px!important;flex-basis:38px;margin-right:10px!important}.portal-notification-panel:after{right:13px}.portal-notification-head{border-radius:17px 17px 0 0}.portal-notification-list{border-radius:0 0 17px 17px}}
.portal-reduce-motion .portal-layout,.portal-reduce-motion .shared-sidebar,.portal-reduce-motion .portal-sidebar-toggle,.portal-reduce-motion .portal-sidebar-toggle svg,.portal-reduce-motion .shared-profile-card{transition:none}@media(prefers-reduced-motion:reduce){.portal-layout,.shared-sidebar,.portal-sidebar-toggle,.portal-sidebar-toggle svg,.shared-profile-card{transition:none}}

/* Edge-mounted navigation control and compact subpage back action. */
.portal-sidebar-toggle{position:fixed;left:calc(var(--portal-sidebar-width) - 16px);right:auto;top:104px;width:32px;height:42px;border-radius:999px;background:linear-gradient(180deg,#0d1c28,#08131c);box-shadow:0 10px 28px rgba(0,0,0,.34),0 0 0 1px rgba(7,140,255,.04),inset 0 1px rgba(255,255,255,.045);transition:left .25s ease,transform .2s ease,border-color .2s ease,background .2s ease,color .2s ease}
.portal-sidebar-toggle:before{content:"";position:absolute;left:4px;top:8px;bottom:8px;width:1px;border-radius:99px;background:linear-gradient(180deg,transparent,#50bdff,transparent);opacity:.55}.portal-sidebar-toggle:hover{transform:translateX(2px);background:linear-gradient(180deg,#102a3c,#0a1b28)}.portal-sidebar-compact .portal-sidebar-toggle{left:calc(var(--portal-sidebar-width) - 16px);right:auto}
.portal-back{width:auto!important;min-width:72px!important;height:36px!important;padding:0 12px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;flex-basis:auto!important;margin-right:16px!important;border-radius:999px!important;background:rgba(7,140,255,.035)!important;color:#9dd8fb!important;font-size:10px!important;font-weight:800!important;letter-spacing:.02em}.portal-back svg{width:16px;height:16px;transition:transform .18s ease}.portal-back:hover{transform:translateY(-1px)!important;background:rgba(7,140,255,.09)!important}.portal-back:hover svg{transform:translateX(-2px)}
html[data-portal-theme="light"] .portal-back{background:rgba(0,116,194,.035)!important;color:#1e78b4!important}html[data-portal-theme="light"] .portal-back:hover{background:rgba(0,126,213,.09)!important}
@media(max-width:900px){.portal-sidebar-toggle{display:none}.portal-back{min-width:68px!important}}
@media(max-width:520px){.portal-back{width:36px!important;min-width:36px!important;padding:0!important;margin-right:9px!important}.portal-back span{display:none}}
.portal-reduce-motion .portal-sidebar-toggle,.portal-reduce-motion .portal-back,.portal-reduce-motion .portal-back svg{transition:none}.portal-reduce-motion .portal-back:hover,.portal-reduce-motion .portal-back:hover svg{transform:none!important}@media(prefers-reduced-motion:reduce){.portal-sidebar-toggle,.portal-back,.portal-back svg{transition:none}.portal-back:hover,.portal-back:hover svg{transform:none!important}}

/* Final shared control placement. */
.portal-sidebar-toggle{top:50%;transform:translateY(-50%)}.portal-sidebar-toggle:hover{transform:translate(2px,-50%)}
.portal-notification-button{width:auto!important;min-width:94px;height:40px!important;padding:0 13px!important;display:flex!important;grid-auto-flow:column;align-items:center;justify-content:center;gap:8px;border-radius:999px!important}.portal-notification-button-label{color:#a6b4c0;font-size:10px;font-weight:800;letter-spacing:.015em;transition:color .2s ease}.portal-notification-button:hover .portal-notification-button-label,.portal-notification-button[aria-expanded="true"] .portal-notification-button-label{color:#dff3ff}.portal-notification-count{right:-4px!important;top:-7px!important}.portal-notification-panel:after{right:17px}
html[data-portal-theme="light"] .portal-notification-button-label{color:#536c80}html[data-portal-theme="light"] .portal-notification-button:hover .portal-notification-button-label,html[data-portal-theme="light"] .portal-notification-button[aria-expanded="true"] .portal-notification-button-label{color:#076fae}
@media(max-width:560px){.portal-notification-button{width:40px!important;min-width:40px;padding:0!important}.portal-notification-button-label{display:none}.portal-notification-panel:after{right:13px}}
.portal-reduce-motion .portal-sidebar-toggle:hover{transform:translateY(-50%)!important}@media(prefers-reduced-motion:reduce){.portal-sidebar-toggle:hover{transform:translateY(-50%)!important}}

/* Mobile topbar actions stay grouped on the right. */
@media(max-width:900px){.portal-topbar>.portal-menu:not(.portal-back){order:3;margin:0 8px 0 auto}.portal-topbar>.portal-notifications{order:4;margin-left:0}.portal-topbar>.portal-topbar-copy,.portal-topbar>.topbar-title{order:1}.portal-topbar>.portal-back{order:0}.portal-topbar>.topbar-actions{order:4;margin-left:auto}.portal-topbar>.topbar-actions .portal-notifications{margin-left:0}}
@media(max-width:520px){.portal-topbar>.portal-menu:not(.portal-back){position:relative;width:38px;height:38px;margin-right:7px;border-radius:11px;font-size:0}.portal-topbar>.portal-menu:not(.portal-back):before,.portal-topbar>.portal-menu:not(.portal-back):after{content:"";position:absolute;left:50%;top:50%;width:16px;height:1px;border-radius:99px;background:currentColor}.portal-topbar>.portal-menu:not(.portal-back):before{transform:translate(-50%,-4px)}.portal-topbar>.portal-menu:not(.portal-back):after{transform:translate(-50%,4px)}}

/* Artic select system: shared across every client-portal form. */
.portal-select{position:relative;display:block;width:100%;min-width:0;isolation:isolate}
.select-shell.portal-select:after,.request-select-shell.portal-select:after{display:none!important}
.portal-select-native{position:absolute!important;left:0!important;bottom:0!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important}
.portal-select-trigger{position:relative;width:100%;min-height:50px;padding:0 48px 0 16px;display:flex;align-items:center;text-align:left;border:1px solid #253440;border-radius:12px;background:linear-gradient(180deg,#111a22,#0e171f);color:#e9f1f7;font:inherit;font-size:13px;font-weight:650;box-shadow:inset 0 1px rgba(255,255,255,.025);cursor:pointer;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,color .2s ease}
.portal-select-trigger:hover{border-color:rgba(83,174,232,.46);background:linear-gradient(180deg,#12202a,#0e1921)}
.portal-select-trigger:focus,.portal-select-trigger:focus-visible{outline:0!important;box-shadow:inset 0 1px rgba(255,255,255,.035)!important}
.portal-select:after{content:"";position:absolute;z-index:3;left:14px;right:14px;bottom:0;height:2px;border-radius:999px;background:linear-gradient(90deg,transparent,#37b8ff 15%,#078cff 76%,transparent);box-shadow:0 0 12px rgba(7,140,255,.34);opacity:0;transform:scaleX(.25);transform-origin:center;pointer-events:none;transition:opacity .2s ease,transform .28s ease}
.portal-select.is-open:after,.portal-select:focus-within:after{opacity:1;transform:scaleX(1)}
.portal-select.is-open .portal-select-trigger{border-color:rgba(46,167,242,.55);background:linear-gradient(180deg,#10202b,#0c1821)}
.portal-select-value{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-select.is-placeholder .portal-select-value{color:#84919c;font-weight:550}
.portal-select-chevron{position:absolute;right:15px;top:50%;width:19px;height:19px;display:grid;place-items:center;transform:translateY(-50%);color:#64c4fa;transition:transform .22s ease,color .2s ease}
.portal-select-chevron svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.portal-select.is-open .portal-select-chevron{transform:translateY(-50%) rotate(180deg);color:#b9e8ff}
.portal-select.is-disabled{opacity:.55}.portal-select.is-disabled .portal-select-trigger{cursor:not-allowed}
.portal-select.is-invalid .portal-select-trigger{border-color:rgba(255,102,113,.68)}
.portal-select.is-invalid:after{background:linear-gradient(90deg,transparent,#ff6671,transparent);opacity:1;transform:scaleX(1);box-shadow:0 0 12px rgba(255,75,91,.22)}
.portal-select-menu{position:fixed;z-index:1700;display:grid;gap:3px;padding:7px;overflow-x:hidden;overflow-y:auto;border:1px solid rgba(76,167,226,.3);border-radius:13px;background:#0a151e;box-shadow:0 18px 48px rgba(0,0,0,.52),inset 0 1px rgba(255,255,255,.04);scrollbar-width:thin;scrollbar-color:#1596eb #0a151e;animation:portalSelectIn .16s ease both}
.portal-select-menu[hidden]{display:none!important}
.portal-select-menu:before{content:"";position:sticky;z-index:2;top:-7px;height:1px;margin:-7px 8px 4px;background:linear-gradient(90deg,transparent,#42bdff,transparent);box-shadow:0 0 10px rgba(26,159,244,.24)}
.portal-select-menu::-webkit-scrollbar{width:8px}.portal-select-menu::-webkit-scrollbar-track{background:#0a151e}.portal-select-menu::-webkit-scrollbar-thumb{border:2px solid #0a151e;border-radius:999px;background:#168fdc}
.portal-select-option{position:relative;width:100%;min-height:42px;padding:9px 42px 9px 12px;display:flex;align-items:center;border:1px solid transparent;border-radius:9px;background:transparent;color:#aebac4;font:inherit;font-size:13px;font-weight:600;line-height:1.3;text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.portal-select-option:hover,.portal-select-option:focus-visible{outline:0;background:rgba(7,140,255,.09);border-color:rgba(70,173,238,.16);color:#eef8ff;transform:translateX(2px)}
.portal-select-option[aria-selected="true"]{background:linear-gradient(90deg,rgba(7,140,255,.14),rgba(7,140,255,.045));border-color:rgba(64,179,248,.22);color:#75cdff}
.portal-select-option:disabled{opacity:.42;cursor:not-allowed;transform:none}
.portal-select-check{position:absolute;right:12px;top:50%;width:19px;height:19px;display:grid;place-items:center;transform:translateY(-50%) scale(.75);border:1px solid rgba(84,181,239,.18);border-radius:6px;color:#76d0ff;opacity:0;transition:opacity .16s ease,transform .16s ease}
.portal-select-option[aria-selected="true"] .portal-select-check{opacity:1;transform:translateY(-50%) scale(1)}
.portal-select-check svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.portal-select-group{padding:9px 11px 4px;color:#5f9fc8;font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.ticket-form .portal-select-trigger,.request-form .portal-select-trigger{min-height:51px}.meeting-form-grid .portal-select-trigger,.invite-form .portal-select-trigger,.project-editor-card .portal-select-trigger{min-height:46px}
html[data-portal-theme="light"] .portal-select-trigger{border-color:#c8d9e4;background:linear-gradient(180deg,#fff,#f5fafc);color:#163042;box-shadow:inset 0 1px #fff}html[data-portal-theme="light"] .portal-select-trigger:hover,html[data-portal-theme="light"] .portal-select.is-open .portal-select-trigger{border-color:rgba(20,132,203,.48);background:#f7fcff}html[data-portal-theme="light"] .portal-select.is-placeholder .portal-select-value{color:#718493}html[data-portal-theme="light"] .portal-select-menu{border-color:rgba(20,124,190,.24);background:#f9fcfe;box-shadow:0 18px 44px rgba(19,48,67,.2),inset 0 1px #fff;scrollbar-color:#168ed8 #eef6fa}html[data-portal-theme="light"] .portal-select-option{color:#506675}html[data-portal-theme="light"] .portal-select-option:hover,html[data-portal-theme="light"] .portal-select-option:focus-visible{background:rgba(3,133,218,.08);color:#102b3d}html[data-portal-theme="light"] .portal-select-option[aria-selected="true"]{background:linear-gradient(90deg,rgba(0,137,225,.12),rgba(0,137,225,.035));color:#076eaf}
.portal-high-contrast .portal-select-trigger{border-color:#7897aa}.portal-high-contrast .portal-select-menu{border-color:#62caff}.portal-high-contrast .portal-select-option{color:#dcebf4}.portal-high-contrast .portal-select-option[aria-selected="true"]{color:#a8e4ff}
@keyframes portalSelectIn{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:650px){.portal-select-trigger{min-height:52px;padding-left:15px;border-radius:11px}.portal-select-option{min-height:47px;padding-block:11px}.portal-select-menu{padding:6px;border-radius:12px}.portal-select-menu:before{top:-6px;margin-top:-6px}}
.portal-reduce-motion .portal-select-trigger,.portal-reduce-motion .portal-select:after,.portal-reduce-motion .portal-select-chevron,.portal-reduce-motion .portal-select-option,.portal-reduce-motion .portal-select-check{transition:none}.portal-reduce-motion .portal-select-menu{animation:none}.portal-reduce-motion .portal-select-option:hover{transform:none}@media(prefers-reduced-motion:reduce){.portal-select-trigger,.portal-select:after,.portal-select-chevron,.portal-select-option,.portal-select-check{transition:none}.portal-select-menu{animation:none}.portal-select-option:hover{transform:none}}

/* Keep paired form controls level when only one field includes supporting text. */
.form-grid>.field{align-self:start;align-content:start}

/* Shared client calendar for project and meeting date fields. */
.portal-calendar{position:relative;display:block;width:100%;min-width:0;isolation:isolate}
.portal-calendar-native{position:absolute!important;left:0!important;bottom:0!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important}
.portal-calendar-trigger{position:relative;width:100%;min-height:46px;padding:0 46px 0 14px;display:flex;align-items:center;border:1px solid rgba(83,151,195,.24);border-radius:11px;background:linear-gradient(180deg,#111b24,#0c171f);color:#e9f3f9;font:inherit;font-size:12px;font-weight:700;text-align:left;box-shadow:inset 0 1px rgba(255,255,255,.025);cursor:pointer;transition:border-color .18s ease,background .18s ease}
.portal-calendar-trigger:hover{border-color:rgba(79,179,243,.46);background:linear-gradient(180deg,#13222d,#0e1b24)}
.portal-calendar-trigger:focus,.portal-calendar-trigger:focus-visible{outline:0!important;box-shadow:inset 0 1px rgba(255,255,255,.03)!important}
.portal-calendar:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;border-radius:999px;background:linear-gradient(90deg,transparent,#42bcff 15%,#078cff 80%,transparent);box-shadow:0 0 10px rgba(7,140,255,.25);opacity:0;transform:scaleX(.3);pointer-events:none;transition:opacity .18s ease,transform .24s ease}
.portal-calendar.is-open:after,.portal-calendar:focus-within:after{opacity:1;transform:scaleX(1)}.portal-calendar.is-open .portal-calendar-trigger{border-color:rgba(65,174,244,.55)}
.portal-calendar-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-calendar.is-empty .portal-calendar-value{color:#8998a4;font-weight:550}
.portal-calendar-icon{position:absolute;right:15px;top:50%;width:18px;height:18px;display:grid;place-items:center;transform:translateY(-50%);color:#6fc8fb}.portal-calendar-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.portal-calendar.is-disabled{opacity:.55}.portal-calendar.is-disabled .portal-calendar-trigger{cursor:not-allowed}.portal-calendar.is-invalid .portal-calendar-trigger{border-color:rgba(255,107,117,.7)}.portal-calendar.is-invalid:after{background:linear-gradient(90deg,transparent,#ff6975,transparent);opacity:1;transform:scaleX(1)}
.portal-calendar-panel{position:fixed;z-index:1800;overflow-x:hidden;overflow-y:auto;padding:11px;border:1px solid rgba(77,175,237,.31);border-radius:15px;background:#0a151e;color:#e8f2f8;box-shadow:0 22px 56px rgba(0,0,0,.55),inset 0 1px rgba(255,255,255,.045);scrollbar-width:thin;scrollbar-color:#168fdc #0a151e;animation:portalSelectIn .16s ease both}.portal-calendar-panel[hidden]{display:none!important}
.portal-calendar-panel:before{content:"";position:sticky;z-index:2;top:-11px;display:block;height:1px;margin:-11px 4px 9px;background:linear-gradient(90deg,transparent,#45beff,transparent);box-shadow:0 0 10px rgba(7,140,255,.28)}
.portal-calendar-head{min-height:39px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:0 4px 9px}.portal-calendar-head strong{color:#edf6fb;font-size:12px;font-weight:850;white-space:nowrap}.portal-calendar-nav{display:flex;gap:5px}.portal-calendar-nav button{width:29px;height:29px;display:grid;place-items:center;border:1px solid rgba(77,151,200,.16);border-radius:8px;background:rgba(255,255,255,.025);color:#8acffa;transition:border-color .16s ease,background .16s ease,color .16s ease}.portal-calendar-nav button:hover,.portal-calendar-nav button:focus-visible{outline:0;border-color:rgba(72,177,244,.45);background:rgba(7,140,255,.13);color:#e0f4ff}.portal-calendar-nav svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portal-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.portal-calendar-weekday{height:27px;display:grid;place-items:center;color:#6e899c;font-size:9px;font-weight:800}.portal-calendar-day{position:relative;min-width:0;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:8px;background:transparent;color:#d6e3eb;font:inherit;font-size:11px;font-weight:700;cursor:pointer;transition:border-color .14s ease,background .14s ease,color .14s ease}.portal-calendar-day.outside-month{color:#526879}.portal-calendar-day.is-today:after{content:"";position:absolute;left:50%;bottom:3px;width:3px;height:3px;transform:translateX(-50%);border-radius:50%;background:#55c2ff}.portal-calendar-day:hover:not(:disabled),.portal-calendar-day:focus-visible{outline:0;border-color:rgba(76,181,246,.22);background:rgba(7,140,255,.13);color:#eff9ff}.portal-calendar-day[aria-selected="true"]{border-color:rgba(91,196,255,.5);background:linear-gradient(145deg,#148fe5,#0874c7);color:#fff;box-shadow:0 4px 12px rgba(7,140,255,.25)}.portal-calendar-day[aria-selected="true"]:after{background:#fff}.portal-calendar-day:disabled{color:#3b4b57;cursor:not-allowed}
.portal-calendar-footer{min-height:38px;margin-top:8px;padding:8px 4px 0;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid rgba(80,151,197,.13)}.portal-calendar-footer button{min-height:27px;padding:3px 7px;border:0;border-radius:7px;background:transparent;color:#77c8fa;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.portal-calendar-footer button:hover:not(:disabled),.portal-calendar-footer button:focus-visible{outline:0;background:rgba(7,140,255,.11);color:#e8f7ff}.portal-calendar-footer button:last-child{margin-left:auto}.portal-calendar-footer button:disabled{color:#526879;cursor:not-allowed}
html[data-portal-theme="light"] .portal-calendar-trigger{border-color:#c8d9e4;background:linear-gradient(180deg,#fff,#f5fafc);color:#163042}html[data-portal-theme="light"] .portal-calendar-trigger:hover{border-color:rgba(20,132,203,.48);background:#f7fcff}html[data-portal-theme="light"] .portal-calendar-panel{border-color:rgba(20,124,190,.25);background:#f9fcfe;color:#173248;box-shadow:0 20px 46px rgba(19,48,67,.22),inset 0 1px #fff}html[data-portal-theme="light"] .portal-calendar-head strong{color:#173248}html[data-portal-theme="light"] .portal-calendar-day{color:#29495f}html[data-portal-theme="light"] .portal-calendar-day.outside-month{color:#9badb8}html[data-portal-theme="light"] .portal-calendar-day:disabled{color:#becbd3}html[data-portal-theme="light"] .portal-calendar-day[aria-selected="true"]{color:#fff}html[data-portal-theme="light"] .portal-calendar-weekday{color:#69869b}
.portal-high-contrast .portal-calendar-trigger,.portal-high-contrast .portal-calendar-panel{border-color:#7fc8f5}.portal-high-contrast .portal-calendar-day{color:#f2f8fc}.portal-high-contrast .portal-calendar-day:disabled{color:#90a0aa}
@media(max-width:650px){.portal-calendar-trigger{min-height:52px}.portal-calendar-panel{padding:9px}.portal-calendar-panel:before{top:-9px;margin-top:-9px}.portal-calendar-day{height:39px;font-size:12px}.portal-calendar-weekday{height:30px}}
.portal-reduce-motion .portal-calendar-trigger,.portal-reduce-motion .portal-calendar:after,.portal-reduce-motion .portal-calendar-nav button,.portal-reduce-motion .portal-calendar-day{transition:none}.portal-reduce-motion .portal-calendar-panel{animation:none}@media(prefers-reduced-motion:reduce){.portal-calendar-trigger,.portal-calendar:after,.portal-calendar-nav button,.portal-calendar-day{transition:none}.portal-calendar-panel{animation:none}}
.portal-calendar-day[aria-pressed="true"]{border-color:rgba(91,196,255,.5);background:linear-gradient(145deg,#148fe5,#0874c7);color:#fff;box-shadow:0 4px 12px rgba(7,140,255,.25)}.portal-calendar-day[aria-pressed="true"]:after{background:#fff}html[data-portal-theme="light"] .portal-calendar-day[aria-pressed="true"]{color:#fff}

/* Data states (clientportal-common.js): saved/out-of-date data, failed loads and notification errors.
   Amber marks "may be out of date"; --red marks "could not load". Both always pair with text and an icon. */
.portal-data-notice{margin:0 0 18px;padding:13px 14px 13px 16px;display:flex;align-items:center;gap:14px;border:1px solid rgba(242,184,75,.34);border-radius:14px;background:rgba(242,184,75,.07);color:var(--text)}
.portal-data-notice.is-error{border-color:rgba(255,102,111,.38);background:rgba(255,102,111,.07)}
.portal-data-notice-icon{flex:0 0 auto;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(242,184,75,.13);color:#f2b84b}
.portal-data-notice.is-error .portal-data-notice-icon{background:rgba(255,102,111,.13);color:var(--red)}
.portal-data-notice-icon svg,.projects-error .projects-empty-icon svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portal-data-notice-icon svg{width:18px;height:18px}
.portal-data-notice p{flex:1;min-width:0;display:grid;gap:2px;font-size:13px;line-height:1.5}
.portal-data-notice p span{color:var(--muted)}
.portal-data-notice .portal-button{flex:0 0 auto;min-height:44px}
.projects-error .projects-empty-icon{border-color:rgba(255,102,111,.3);background:rgba(255,102,111,.08);color:var(--red)}
.portal-notification-state.is-error>span{border-color:rgba(255,102,111,.3);background:rgba(255,102,111,.08);color:var(--red)}
.portal-notification-state .portal-button{margin-top:16px;min-height:44px}
.portal-notification-alert{margin:8px 10px 4px;padding:9px 10px 9px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(242,184,75,.3);border-radius:10px;background:rgba(242,184,75,.07);color:var(--muted);font-size:11px;line-height:1.45}
.portal-notification-alert button{flex:0 0 auto;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--text);font:inherit;font-weight:800;cursor:pointer}
@media(max-width:560px){.portal-data-notice{flex-wrap:wrap}.portal-data-notice .portal-button{width:100%}}
html[data-portal-theme="light"] .portal-data-notice{border-color:rgba(154,98,0,.28);background:rgba(242,184,75,.12)}
html[data-portal-theme="light"] .portal-data-notice-icon{background:rgba(154,98,0,.1);color:#8a5a00}
html[data-portal-theme="light"] .portal-data-notice.is-error{border-color:rgba(196,43,54,.3);background:rgba(255,102,111,.08)}
html[data-portal-theme="light"] .portal-data-notice.is-error .portal-data-notice-icon,html[data-portal-theme="light"] .projects-error .projects-empty-icon,html[data-portal-theme="light"] .portal-notification-state.is-error>span{color:#b4232f}
html[data-portal-theme="light"] .portal-data-notice .portal-button.secondary,html[data-portal-theme="light"] .portal-notification-state .portal-button.secondary{color:var(--text)}
html[data-portal-theme="light"] .portal-notification-alert{border-color:rgba(154,98,0,.26);background:rgba(242,184,75,.1)}

/* Light theme contrast (portal): labels, avatars, meta text and status pills were tuned for dark panels and fell to
   about 2:1 on light backgrounds. Accent text uses one darker brand blue (about 5.4:1); secondary text uses --muted-2.
   Status pills keep their tinted backgrounds, pair colour with their text label, and use darker text per state. */
html[data-portal-theme="light"] :is(.portal-topbar-context,.topbar-title>span,.progress-spotlight-copy>span,.contracts-intro>span,.contract-empty-inner>small,.meetings-intro>span,.meeting-copy>span,.meeting-date>small,.chat-intro-copy>span,.support-eyebrow,.request-kicker,.ticket-browse,.view-project,.project-phase,.project-name>b,.join-button,.shared-profile-card>span,.project-avatar,.team-avatar,.company-logo){color:#0a6ab8}
html[data-portal-theme="light"] :is(.workspace-live,.meeting-info>p,.panel-head p,.page-intro p,.contracts-intro>p,.meetings-intro>p,.chat-intro-copy>p,.support-hero-copy>p,.request-hero-copy>p,.settings-panel-head p,.ticket-history-count,.request-history-details,.request-history-meta,.request-brief-label,.chat-projects-head>span,.owner-note,.pending-row>span,.pending-row>strong,#portal-logout,#portal-logout span){color:var(--muted-2)}
html[data-portal-theme="light"] :is(.ticket-summary h3,.invite-form label){color:var(--text)}
html[data-portal-theme="light"] .invite-form :is(input,select){border-color:var(--line);background:#fff;color:var(--text)}
html[data-portal-theme="light"] :is(.page-intro>div>span,.contracts-section-head>div>span,.meeting-section-head>div>span,.projects-section-head>div>span,.ticket-history-head span,.ticket-route b,.project-name span){color:#0a6ab8}
html[data-portal-theme="light"] .chat-presence{color:#137a47}
/* These page rules use !important for their dark colours, so the light equivalents must match it. */
html[data-portal-theme="light"] :is(.request-history-meta,.request-history-details){color:var(--muted-2)!important}
html[data-portal-theme="light"] .shared-account>div>span{border-color:rgba(0,116,212,.2);background:linear-gradient(145deg,#e8f3fc,#d7eaf9);box-shadow:none}
html[data-portal-theme="light"] .shared-account>div>span:after{border-color:#fff}
/* Status system (tickets, requests, contracts, refunds, project health).
   Five status tokens, each paired with an icon shape so colour is never the only cue (the chip text states it too).
   Colour-vision palettes (clientportal-common.js sets body[data-colour-vision]) only swap these tokens, the ring
   colour and the green/red accents, with separate dark and light values. Chip colours are also set per page, and
   the shared values must win, hence !important on the chip colour properties only. */
:root{
    --status-success:#46d68f;--status-warning:#f2b84b;--status-danger:#ff7a83;--status-info:#5ab8ff;--status-neutral:#a3adb8;
    --ring:#4bbcff;--ring-soft:#6bd2ff;--ring-strong:#078cff;
    --icon-success:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-warning:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v6' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.6' r='1.4'/%3E%3C/svg%3E");
    --icon-danger:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    --icon-info:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.6' fill='none' stroke='%23000' stroke-width='1.9'/%3E%3Cpath d='M8 5.2v3l2 1.3' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
    --icon-neutral:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
html[data-portal-theme="light"] body{--status-success:#137a47;--status-warning:#8a5a00;--status-danger:#b4232f;--status-info:#0a5fa6;--status-neutral:#4b6074;--ring:#0a7fd4;--ring-soft:#43a9ec;--ring-strong:#0a6ab8}

/* Default meaning per chip type, then per state. */
:is(.ticket-status,.request-status,.contract-status,.invoice-refund-status,.health-badge){--chip:var(--status-info);--chip-icon:var(--icon-info)}
:is(.contract-status,.request-status){--chip:var(--status-warning);--chip-icon:var(--icon-warning)}
:is(.ticket-status,.request-status,.contract-status,.invoice-refund-status,.health-badge,.pill[data-status]):is(.done,.approved,.fully_signed,.completed,.paid,.resolved,[data-status="success"]){--chip:var(--status-success);--chip-icon:var(--icon-success)}
:is(.ticket-status,.request-status,.contract-status,.invoice-refund-status,.health-badge,.pill[data-status]):is(.pending,.sent,.outstanding,.due,[data-status="warning"]){--chip:var(--status-warning);--chip-icon:var(--icon-warning)}
:is(.ticket-status,.request-status,.contract-status,.invoice-refund-status,.health-badge,.pill[data-status]):is(.rejected,.declined,.failed,.overdue,.cancelled,[data-status="danger"]){--chip:var(--status-danger);--chip-icon:var(--icon-danger)}
:is(.ticket-status,.request-status,.contract-status,.invoice-refund-status,.health-badge,.pill[data-status]):is(.in-progress,.processing,.client_signed,.open,[data-status="info"]){--chip:var(--status-info);--chip-icon:var(--icon-info)}
:is(.ticket-status,.request-status,.contract-status,.invoice-refund-status,.health-badge,.pill[data-status]):is(.to-do,.draft,[data-status="neutral"]){--chip:var(--status-neutral);--chip-icon:var(--icon-neutral)}

:is(.ticket-status,.request-status,.contract-status,.invoice-refund-status,.health-badge,.pill[data-status]){display:inline-flex;align-items:center;gap:.42em;border:1px solid color-mix(in srgb,var(--chip) 34%,transparent)!important;background:color-mix(in srgb,var(--chip) 12%,transparent)!important;color:var(--chip)!important}
:is(.ticket-status,.request-status,.contract-status,.invoice-refund-status,.pill[data-status])::before,html body .health-badge::before{content:"";flex:0 0 auto;width:1.05em;height:1.05em;border-radius:0;box-shadow:none;background:currentColor;-webkit-mask:var(--chip-icon) center/contain no-repeat;mask:var(--chip-icon) center/contain no-repeat}
html body .health-badge::before{width:10px;height:10px}

/* Progress rings follow the ring token, so colour-vision palettes reach them too. */
html body .project-ring{background:conic-gradient(var(--ring) var(--project-progress),rgba(93,126,149,.16) 0)}
html body .detail-progress-ring{background:conic-gradient(var(--ring) var(--detail-progress),rgba(76,111,134,.16) 0)}
#progress-ring-gradient stop:first-child{stop-color:var(--ring-soft)}
#progress-ring-gradient stop:last-child{stop-color:var(--ring-strong)}

/* Light theme: project detail view (opened from a project card) had near-white headings and figures. */
html[data-portal-theme="light"] :is(.detail-progress-ring strong,.detail-stat strong,.milestone h4,.update h4,.finance-grid strong,.team-member h4){color:var(--text)}
html[data-portal-theme="light"] :is(.detail-title>span,.stage-progress-copy>span,.detail-card-head span,.team-member>span){color:#0a6ab8}
html[data-portal-theme="light"] :is(.detail-title>p,.stage-note,.detail-card-head p){color:var(--muted-2)}
/* Inline field errors (form-validation.js) replace the browser validation bubble. */
.field-error{display:flex;align-items:flex-start;gap:8px;margin:8px 0 0;padding:9px 12px;border:1px solid rgba(255,122,131,.38);border-radius:10px;background:rgba(255,122,131,.1);color:#ffd1d5;font-size:13px;font-weight:600;line-height:1.45}
.field-error::before{content:"";flex:0 0 auto;width:16px;height:16px;margin-top:1px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M8 4.6v4' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.2' r='1.1'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M8 4.6v4' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.2' r='1.1'/%3E%3C/svg%3E") center/contain no-repeat}
:is(input,textarea,select)[aria-invalid="true"]:not(.input-shell *),.input-shell:has([aria-invalid="true"]){border-color:rgba(255,122,131,.7)!important;box-shadow:0 0 0 3px rgba(255,122,131,.16)!important}
html[data-theme="light"] .field-error,html[data-portal-theme="light"] .field-error{border-color:rgba(180,35,47,.3);background:#fdecee;color:#8f1c26}
html[data-theme="light"] :is(:is(input,textarea,select)[aria-invalid="true"]:not(.input-shell *),.input-shell:has([aria-invalid="true"])),html[data-portal-theme="light"] :is(input,textarea,select)[aria-invalid="true"]:not(.input-shell *){border-color:#b4232f!important;box-shadow:0 0 0 3px rgba(180,35,47,.14)!important}

/* D-08: portal pop-ups - one scroll surface, page locked behind, nothing cut off on short screens. */
body:has(#meeting-modal:not([hidden]),#password-modal:not([hidden]),#refund-dialog:not([hidden])){overflow:hidden}
.meeting-modal-card{max-height:calc(100dvh - 40px);overscroll-behavior:contain}
.settings-modal{max-height:calc(100dvh - 40px);overflow-y:auto!important;overscroll-behavior:contain}

/* ---------- D-11: client card polish (tickets list, billing, New Project) ---------- */
/* Support tickets: readable metadata, consistent chip, larger toggle target. */
.ticket-item .ticket-summary{min-height:76px;padding:18px 20px!important;gap:16px}
.ticket-item .ticket-summary h3{font-size:16px!important;line-height:1.3}
.ticket-item .ticket-summary p{margin-top:6px!important;color:var(--muted-2,#a9b8c5)!important;font-size:12.5px!important;line-height:1.45}
.ticket-item .ticket-status{font-size:12px!important;padding:5px 11px!important}
.ticket-item .ticket-body{padding:0 20px 20px!important}
.ticket-item .ticket-description{font-size:14px;line-height:1.6}
.ticket-item .ticket-tools textarea{min-height:88px}
html[data-portal-theme="light"] .ticket-item .ticket-summary p{color:#4b6074!important}
/* Upload drop zones (tickets, new project): readable helper text and a proper button size. */
/* Billing: project payment cards fill the row; invoices show a status chip and a real-size menu button. */
.billing-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;gap:16px!important}
.billing-summary article{min-height:0!important;padding:20px!important;border-radius:14px!important}
.billing-summary span{font-size:12.5px!important;font-weight:700;color:var(--muted-2,#a9b8c5)!important}
.billing-summary strong{margin-top:8px!important;font-size:19px!important;line-height:1.25}
.billing-summary p{margin-top:6px!important;font-size:13px!important;color:var(--muted-2,#a9b8c5)!important;line-height:1.45}
.billing-summary .billing-next{padding-top:10px;margin-top:12px!important;border-top:1px solid var(--line)}
.invoice-row{min-height:76px;align-items:center}
.invoice-row .invoice-title-line h3{font-size:15px}
.invoice-row .invoice-copy>p{margin-top:5px;font-size:13px!important}
.invoice-status{font-size:12px!important;font-weight:700!important;padding:4px 10px!important}
.invoice-menu-trigger{width:40px!important;height:40px!important;border:1px solid var(--line)!important;border-radius:10px!important}
.invoice-menu-trigger:is(:hover,:focus-visible),.invoice-menu-trigger[aria-expanded='true']{border-color:rgba(83,177,237,.5)!important;background:rgba(7,140,255,.1)!important}
html[data-portal-theme="light"] .billing-summary :is(span,p){color:#4b6074!important}
@media(max-width:640px){.billing-summary{padding:16px!important}.billing-summary strong{font-size:17px!important}}
/* Evidence drop zone: readable text (was 9-11px) and a real button size; icon follows the theme. */
.ticket-dropzone strong{font-size:14px!important}
.ticket-dropzone small{font-size:12.5px!important;color:var(--muted-2,#a9b8c5)!important}
.ticket-browse{min-height:40px;padding:0 16px!important;display:inline-flex;align-items:center;font-size:13px!important;font-weight:700!important}
html[data-portal-theme="light"] .ticket-dropzone>svg{border-color:rgba(7,140,255,.25)!important;background:#eaf4fd!important;color:#0a5fa6!important}
html[data-portal-theme="light"] .ticket-dropzone strong{color:#102331!important}
html[data-portal-theme="light"] .ticket-dropzone small{color:#4b6074!important}
html[data-portal-theme="light"] .ticket-browse{border-color:rgba(7,140,255,.28)!important;background:#eaf4fd!important;color:#0a5fa6!important}
/* Expanded ticket: no empty description box; comment and attachment rows line up. */
.ticket-item .ticket-description:empty{display:none}
.ticket-item :is(.ticket-tools,.ticket-upload){display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:14px}
.ticket-item .ticket-tools textarea{width:100%;min-height:88px;margin:0}
.ticket-item :is(.ticket-tools,.ticket-upload)>button{min-height:44px;margin:0}
.ticket-item .ticket-upload small{grid-column:1/-1}
.ticket-item .ticket-upload small:empty{display:none}
.ticket-item .ticket-upload input[type="file"]{width:100%;min-height:44px;padding:6px;border:1px dashed var(--line);border-radius:12px;background:transparent;color:var(--muted-2,#a9b8c5);font:600 13px/1.4 inherit}
.ticket-item .ticket-upload input[type="file"]::file-selector-button{min-height:32px;margin-right:12px;padding:0 14px;border:1px solid rgba(83,177,237,.36);border-radius:9px;background:rgba(7,140,255,.12);color:#8fd0ff;font:700 13px/1 inherit;cursor:pointer}
html[data-portal-theme="light"] .ticket-item .ticket-upload input[type="file"]{color:#4b6074}
html[data-portal-theme="light"] .ticket-item .ticket-upload input[type="file"]::file-selector-button{border-color:rgba(7,140,255,.28);background:#eaf4fd;color:#0a5fa6}
@media(max-width:560px){.ticket-item :is(.ticket-tools,.ticket-upload){grid-template-columns:minmax(0,1fr)}.ticket-item :is(.ticket-tools,.ticket-upload)>button{width:100%}}
label.ticket-dropzone span small,label.ticket-dropzone small{font-size:12.5px!important}
label.ticket-dropzone span strong{font-size:14px!important}
.ticket-item .ticket-summary span.ticket-status{padding:5px 11px!important;font-size:12px!important;line-height:1.3}
.ticket-item form.ticket-upload input[type="file"]{justify-self:stretch;width:100%!important;max-width:none!important;min-width:0}

/* Settings > Language: the chooser sits inside the card padding, in step with the note below it. */
#language-panel .client-language-chooser{padding:22px 22px 18px}
#language-panel .artic-language-chooser label{color:#d9e4eb;font-size:12px;font-weight:600;letter-spacing:-.005em}
#language-panel .artic-language-chooser input{border-color:rgba(89,150,190,.22);background:#0e171f}
html[data-portal-theme="light"] #language-panel .artic-language-chooser label{color:#22394b}
html[data-portal-theme="light"] #language-panel .artic-language-chooser input{border-color:rgba(16,76,116,.2);background:#fff}

/* ---- Phones and tablets (client portal) ---- */
/* The page itself never scrolls sideways ("clip" keeps the sticky top bar working). */
body{overflow-x:clip}
@media(max-width:900px){
  /* Top bar: title on the left, then the menu button beside the notification bell. Both used
     margin-left:auto, which split the space and left the menu button floating in the middle. */
  .portal-topbar>.portal-menu:not(.portal-back)~.topbar-actions{margin-left:0}
  .portal-topbar>.portal-topbar-copy,.portal-topbar>.topbar-title{flex:1 1 auto;min-width:0}
  .portal-topbar h1,.portal-topbar .topbar-title h1{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  /* One menu icon on every page and size (the dashboard's drawn icon had no line colour on tablets). */
  .portal-topbar>.portal-menu:not(.portal-back){position:relative;font-size:0}
  .portal-topbar>.portal-menu:not(.portal-back) svg{display:none}
  .portal-topbar>.portal-menu:not(.portal-back):before,.portal-topbar>.portal-menu:not(.portal-back):after{content:"";position:absolute;left:50%;top:50%;width:16px;height:1px;border-radius:99px;background:currentColor}
  .portal-topbar>.portal-menu:not(.portal-back):before{transform:translate(-50%,-4px)}
  .portal-topbar>.portal-menu:not(.portal-back):after{transform:translate(-50%,4px)}
  /* Open menu: dim and freeze the page behind it, and hide the floating help and cookie buttons. */
  html.portal-drawer-open body{overflow:hidden}
  html.portal-drawer-open body:after{content:"";position:fixed;inset:0;z-index:45;background:rgba(2,6,10,.58)}
  html[data-portal-theme="light"].portal-drawer-open body:after{background:rgba(20,36,56,.32)}
  html.portal-drawer-open :is(.artic-support,.artic-cookie-manage:not(.artic-cookie-in-sidebar),.landing-ai){display:none!important}
}
/* iPhone zooms the whole page when a text box under 16px is tapped and does not zoom back,
   leaving the page wider than the screen. 16px boxes keep the page at its normal size. */
@media(max-width:900px) and (pointer:coarse){
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),select,textarea{font-size:16px!important}
}

/* Light mode scrollbars: several portal areas hard-code the dark track (sidebar, agreement text, menus), so in light
   mode every scroll area uses the light track and blue thumb. */
html[data-portal-theme="light"],html[data-portal-theme="light"] *{scrollbar-color:#1687d3 #e6f1f7!important}
/* New project: the three process steps. Readable sizes, and a light version of the numbered tiles. */
html .request-map-node{font-size:11px}
html .request-map strong{font-size:12.5px}
html .request-map small{font-size:11px;line-height:1.45;color:#8fa1af}
html[data-portal-theme="light"] .request-map-node{border-color:rgba(0,116,212,.22);background:#e8f3fc;color:#0a5fa6;box-shadow:0 6px 14px rgba(35,72,98,.08)}
html[data-portal-theme="light"] .request-map small{color:#4b6074}

/* Billing: project payment card (premium-system.css pins the button absolutely with !important, hence the overrides). Amount and details on the left, the action on the right (stacked on phones), a clear
   paid state, and a payment box that stops its spinner once a result is shown. */
#billing-projects .billing-project-item{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;row-gap:2px;min-height:0!important;padding:20px 22px!important}
#billing-projects .billing-project-item>*{grid-column:1;margin-block:0}
#billing-projects .billing-project-item>span{color:#a9b8c5;font-size:13px;font-weight:700}
#billing-projects .billing-project-item>strong{margin-top:4px;font-size:26px;line-height:1.2}
#billing-projects .billing-project-item .billing-reason{margin-top:4px;font-size:14px}
#billing-projects .billing-project-item .billing-next{margin-top:10px;color:#a9b8c5;font-size:13px}
#billing-projects .billing-pay-now{position:relative!important;inset:auto!important;overflow:hidden!important;isolation:isolate;width:100%!important;min-height:46px!important;margin:16px 0 0;padding:0 24px;border:0;background:linear-gradient(180deg,#1599f5,#087bd5);color:#fff;box-shadow:0 10px 24px rgba(0,118,208,.22)}
#billing-projects .billing-pay-now:hover{background:linear-gradient(180deg,#28a8ff,#0b85e5)}
#billing-projects .billing-pay-now:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}
#billing-projects .billing-project-item.is-paid>strong{color:#67dba0}
#billing-projects .billing-project-item.is-paid .billing-reason{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:3px 10px;border:1px solid rgba(103,219,160,.35);border-radius:99px;background:rgba(103,219,160,.1);color:#7fe0b0;font-size:12.5px;font-weight:800}
#billing-projects .billing-project-item.is-paid .billing-reason:before{content:"\2713"}
html[data-portal-theme="light"] #billing-projects .billing-project-item>span,html[data-portal-theme="light"] #billing-projects .billing-project-item .billing-next{color:#4b6074}
html[data-portal-theme="light"] #billing-projects .billing-project-item.is-paid>strong{color:#127a4a}
html[data-portal-theme="light"] #billing-projects .billing-project-item.is-paid .billing-reason{border-color:rgba(18,122,74,.3);background:#e8f6ee;color:#127a4a}
.embedded-payment-form.saved-card-processing.payment-stopped .portal-form-message:before{display:none}
.embedded-payment-form .payment-message-close{min-width:120px;min-height:40px;margin-top:4px;width:auto}
/* Client project editor: commercial terms shown read-only (see clientportal-projects.html). */
.project-editor label[hidden]{display:none!important}
.project-commercial-lock{margin-top:16px;padding:14px 16px;border:1px solid rgba(91,176,230,.22);border-radius:12px;background:rgba(18,40,58,.45)}
.project-commercial-lock dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 18px;margin:0 0 10px}
.project-commercial-lock dt{color:#a9b8c5;font-size:12px;font-weight:700}
.project-commercial-lock dd{margin:2px 0 0;color:#eef5fb;font-size:15px;font-weight:700}
.project-commercial-lock p{margin:0;color:#a9b8c5;font-size:12.5px;line-height:1.5}
html[data-portal-theme="light"] .project-commercial-lock{border-color:rgba(20,52,78,.14);background:#f3f8fc}
html[data-portal-theme="light"] .project-commercial-lock dt,html[data-portal-theme="light"] .project-commercial-lock p{color:#4b6074}
html[data-portal-theme="light"] .project-commercial-lock dd{color:#102331}
#project-editor .project-commercial-lock{display:block;color:inherit}
#project-editor .project-commercial-lock dl{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
#project-editor .project-commercial-lock dl>div{min-width:0}
#project-editor .project-commercial-lock p{color:#a9b8c5}
html[data-portal-theme="light"] #project-editor .project-commercial-lock p{color:#4b6074}
html[data-portal-theme="light"] #project-editor label,html[data-portal-theme="light"] #project-editor label>span:first-child{color:#173248!important;opacity:1!important}

/* Invoice "..." menu (Request refund) and the refund amount field. */
#invoice-action-menu{min-width:240px;padding:6px;border:1px solid rgba(126,181,224,.18);border-radius:12px;background:linear-gradient(145deg,#0f141b,#0b1016);box-shadow:0 18px 44px rgba(0,0,0,.45)}
#invoice-action-menu #request-refund-action{width:100%;min-height:42px;padding:0 12px;display:flex;align-items:center;border:0;border-radius:8px;background:transparent;color:#eef5fb;font:inherit;font-size:14px;font-weight:700;text-align:left;cursor:pointer}
#invoice-action-menu #request-refund-action:hover:not(:disabled),#invoice-action-menu #request-refund-action:focus-visible{background:rgba(46,168,255,.12);outline:none}
#invoice-action-menu #request-refund-action:disabled{color:#7d8f9e;cursor:not-allowed}
#invoice-action-menu #refund-action-note{margin:0 12px 8px;color:#a9b8c5;font-size:12.5px;line-height:1.45}
#invoice-action-menu #refund-action-note:empty{display:none}
html[data-portal-theme="light"] #invoice-action-menu{border-color:rgba(20,52,78,.14);background:#fff;box-shadow:0 16px 40px rgba(35,72,98,.16)}
html[data-portal-theme="light"] #invoice-action-menu #request-refund-action{color:#102331}
html[data-portal-theme="light"] #invoice-action-menu #request-refund-action:hover:not(:disabled){background:#eef6fd}
html[data-portal-theme="light"] #invoice-action-menu #request-refund-action:disabled{color:#7a8c9b}
html[data-portal-theme="light"] #invoice-action-menu #refund-action-note{color:#4b6074}
#refund-amount{-moz-appearance:textfield;appearance:textfield}
#refund-amount::-webkit-inner-spin-button,#refund-amount::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html[data-portal-theme="light"] #billing-projects .billing-pay-now{border:0!important;background:linear-gradient(180deg,#1599f5,#087bd5)!important;color:#fff!important;box-shadow:0 10px 24px rgba(0,118,208,.22)!important}
html[data-portal-theme="light"] #billing-projects .billing-pay-now:hover{background:linear-gradient(180deg,#28a8ff,#0b85e5)!important}
/* Chat avatars in light mode: light blue tiles with dark blue initials instead of the dark navy squares. */
html[data-portal-theme="light"] :is(.project-avatar,.message-avatar){border-color:rgba(0,116,212,.2)!important;background:linear-gradient(145deg,#e8f3fc,#d9ebf9)!important;color:#0a5fa6!important;box-shadow:none!important}
/* Payment plan block (recurring projects): count, progress bar, estimated last payment. */
.payment-plan{display:grid;gap:7px;margin-top:12px;padding:12px 14px;border:1px solid rgba(126,181,224,.16);border-radius:12px;background:rgba(46,168,255,.05)}
.payment-plan-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.payment-plan-head strong{color:#eef5fb;font-size:13.5px}
.payment-plan-head span{color:#a9b8c5;font-size:12.5px;font-weight:600}
.payment-plan-bar{height:6px;overflow:hidden;border-radius:99px;background:rgba(126,181,224,.16)}
.payment-plan-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1599f5,#5bc0ff)}
.payment-plan.is-complete .payment-plan-bar i{background:linear-gradient(90deg,#2bb673,#67dba0)}
.payment-plan small{color:#a9b8c5;font-size:12px;line-height:1.45}
html[data-theme="light"] .payment-plan,html[data-portal-theme="light"] .payment-plan{border-color:rgba(20,52,78,.12);background:#f3f8fc}
html[data-theme="light"] .payment-plan-head strong,html[data-portal-theme="light"] .payment-plan-head strong{color:#102331}
html[data-theme="light"] :is(.payment-plan-head span,.payment-plan small),html[data-portal-theme="light"] :is(.payment-plan-head span,.payment-plan small){color:#4b6074}
html[data-theme="light"] .payment-plan-bar,html[data-portal-theme="light"] .payment-plan-bar{background:#dbe7f1}
.detail-card .finance-plan{margin:0 22px 22px}
/* Billing card: slim payment plan right under the price (no box), keeping the card compact. */
#billing-projects .payment-plan.is-compact{gap:5px;margin:8px 0 2px;padding:0;border:0;background:none}
#billing-projects .payment-plan.is-compact .payment-plan-head strong{font-size:12.5px}
#billing-projects .payment-plan.is-compact .payment-plan-head span{font-size:12px}
#billing-projects .payment-plan.is-compact .payment-plan-bar{height:4px}
#billing-projects .payment-plan.is-compact small{font-size:11.5px}
html[data-portal-theme="light"] #billing-projects .payment-plan.is-compact{background:none}
#billing-projects .payment-plan.is-compact .payment-plan-head{flex-wrap:nowrap;align-items:baseline}
#billing-projects .payment-plan.is-compact .payment-plan-head strong{margin:0!important;font-size:12.5px!important;line-height:1.3!important;font-weight:800}
#billing-projects .payment-plan.is-compact .payment-plan-head span{margin:0!important;color:#a9b8c5!important;font-size:12px!important;font-weight:600!important;white-space:nowrap}
html[data-portal-theme="light"] #billing-projects .payment-plan.is-compact .payment-plan-head span{color:#4b6074!important}
#billing-projects .payment-plan.is-compact small{margin:0!important;line-height:1.4!important}
/* Billing cards, slim: tighter padding and type, no divider, short button; equal heights stay tidy across 2-3 cards. */
#billing-projects{grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr))!important;gap:14px!important}
#billing-projects .billing-project-item{padding:16px 18px!important;row-gap:0}
#billing-projects .billing-project-item>strong{margin-top:2px!important;font-size:22px!important}
#billing-projects .billing-project-item .billing-reason{margin-top:2px!important;font-size:13px!important}
#billing-projects .billing-project-item .billing-next{margin-top:6px!important;padding-top:0!important;border-top:0!important;font-size:12.5px!important;line-height:1.45}
#billing-projects .billing-pay-now{min-height:40px!important;margin-top:12px!important;font-size:13.5px!important}
#billing-projects .billing-project-item.is-paid .billing-reason{margin-top:6px!important}
/* Billing: project payment cards in one horizontal row that scrolls (snaps card by card) instead of a growing grid. */
#billing-projects{display:flex!important;grid-template-columns:none!important;gap:14px!important;overflow-x:auto;overflow-y:hidden;padding:2px 2px 12px;scroll-snap-type:x mandatory;scroll-padding:2px;overscroll-behavior-x:contain;scrollbar-width:thin}
#billing-projects>.billing-project-item{flex:0 0 clamp(240px,31%,300px);scroll-snap-align:start}
#billing-projects:focus-visible{outline:2px solid #5bb0e6;outline-offset:4px;border-radius:14px}
@media(max-width:640px){#billing-projects>.billing-project-item{flex-basis:82%}}
#billing-projects{min-width:0;max-width:100%;box-sizing:border-box}
#billing-projects>.billing-project-item{flex:0 0 268px!important;min-width:0}
#billing-projects .billing-pay-now{white-space:nowrap}
@media(max-width:640px){#billing-projects>.billing-project-item{flex-basis:82%!important}}
#billing-projects{margin:18px 24px 6px!important;width:auto!important}
@media(max-width:640px){#billing-projects{margin-inline:16px!important}}
/* Failed or paused automatic payment: amber badge on the card and on the unpaid row in Payment history. */
.billing-attention{display:inline-flex;align-items:center;gap:6px;width:max-content;margin-top:8px;padding:3px 10px;border:1px solid rgba(255,190,87,.45);border-radius:99px;background:rgba(255,190,87,.12);color:#ffd08a;font-size:12px;font-weight:800}
.billing-attention:before{content:"!";display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#ffbe57;color:#1a1204;font-size:10.5px;font-weight:900}
#billing-projects .billing-project-item.needs-attention{border-color:rgba(255,190,87,.45)!important;box-shadow:inset 3px 0 #ffbe57}
#billing-projects .billing-project-item.needs-attention .billing-next{color:#ffd9a0!important}
.invoice-row.is-failed{box-shadow:inset 3px 0 #ffbe57}
.invoice-title-line .billing-attention{margin:0 0 0 8px}
html[data-portal-theme="light"] .billing-attention{border-color:rgba(176,108,0,.35);background:#fff4df;color:#8a5300}
html[data-portal-theme="light"] #billing-projects .billing-project-item.needs-attention .billing-next{color:#8a5300!important}
.billing-attention{display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap;white-space:nowrap;line-height:1.3}
.billing-attention:before{flex:0 0 15px}
/* Payment box: warnings (needs attention, still checking) in amber, not success green. */
.embedded-payment-form.payment-stopped .portal-form-message{border-color:rgba(255,190,87,.4)!important;background:rgba(255,190,87,.08)!important;color:#ffd08a!important}
html[data-portal-theme="light"] .embedded-payment-form.payment-stopped .portal-form-message{border-color:rgba(176,108,0,.3)!important;background:#fff6e5!important;color:#8a5300!important}

/* ---------- Payment status (opening, checking, done, needs attention, error) ----------
   A slim card instead of a tall box with a centred spinner: state icon on the left, message, Close on the right,
   the Stripe note underneath. Icon and colours follow the state. */
.embedded-payment-form.saved-card-processing{min-height:0!important;display:flex!important;flex-direction:column;gap:10px;padding:16px 18px!important;border:1px solid rgba(91,176,230,.28)!important;border-radius:16px!important;background:linear-gradient(145deg,#0f141b,#0b1016)!important;box-shadow:0 14px 34px rgba(0,0,0,.24)!important;animation:payment-status-in .2s ease-out both}
.embedded-payment-form.saved-card-processing .portal-form-message{order:1;display:grid!important;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;justify-items:start!important;gap:14px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:#eef5fb!important;font-size:14.5px!important;font-weight:600;line-height:1.45;text-align:left!important}
.embedded-payment-form.saved-card-processing .portal-form-message:before{width:40px!important;height:40px!important;border-width:3px!important;margin:0!important}
.embedded-payment-form.saved-card-processing .billing-secure-note{order:2;justify-content:flex-start!important;margin:0 0 0 54px!important;color:#7f93a3;font-size:11.5px}
.embedded-payment-form.saved-card-processing .payment-message-close{grid-column:3;margin:0!important;min-width:96px;min-height:38px}
.embedded-payment-form.saved-card-processing.payment-complete{border-color:rgba(103,219,160,.4)!important}
.embedded-payment-form.saved-card-processing.payment-complete .portal-form-message{color:#bdf0d5!important}
.embedded-payment-form.saved-card-processing.payment-stopped{border-color:rgba(255,190,87,.42)!important}
.embedded-payment-form.saved-card-processing.payment-stopped .portal-form-message{color:#ffe0ad!important}
.embedded-payment-form.saved-card-processing.payment-stopped .portal-form-message:before{content:'!'!important;display:grid!important;place-items:center;border:1px solid rgba(255,190,87,.45)!important;border-radius:50%;background:rgba(255,190,87,.14)!important;color:#ffbe57;font-weight:900;font-size:18px;animation:none!important}
.embedded-payment-form.saved-card-processing:has(.portal-form-message.error){border-color:rgba(255,128,128,.45)!important}
.embedded-payment-form.saved-card-processing .portal-form-message.error{color:#ffc2c2!important}
.embedded-payment-form.saved-card-processing .portal-form-message.error:before{content:'!'!important;display:grid!important;place-items:center;border:1px solid rgba(255,128,128,.45)!important;border-radius:50%;background:rgba(255,128,128,.14)!important;color:#ff8f8f;font-weight:900;font-size:18px;animation:none!important}
@keyframes payment-status-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.embedded-payment-form.saved-card-processing{animation:none}}
@media(max-width:560px){.embedded-payment-form.saved-card-processing .portal-form-message{grid-template-columns:36px minmax(0,1fr)}.embedded-payment-form.saved-card-processing .payment-message-close{grid-column:1 / -1;justify-self:stretch}.embedded-payment-form.saved-card-processing .billing-secure-note{margin-left:0!important}}
html[data-portal-theme="light"] .embedded-payment-form.saved-card-processing{border-color:rgba(0,116,212,.22)!important;background:#fff!important;box-shadow:0 12px 30px rgba(35,72,98,.1)!important}
html[data-portal-theme="light"] .embedded-payment-form.saved-card-processing .portal-form-message{color:#102331!important}
html[data-portal-theme="light"] .embedded-payment-form.saved-card-processing.payment-complete .portal-form-message{color:#0f6b40!important}
html[data-portal-theme="light"] .embedded-payment-form.saved-card-processing.payment-stopped .portal-form-message{color:#7a4a00!important}
html[data-portal-theme="light"] .embedded-payment-form.saved-card-processing .portal-form-message.error{color:#a3231b!important}
html[data-portal-theme="light"] .embedded-payment-form.saved-card-processing .billing-secure-note{color:#4b6074}
html[data-portal-theme="light"] .embedded-payment-form.saved-card-processing .portal-form-message{border:0!important;background:none!important}
html[data-portal-theme="light"] .embedded-payment-form.saved-card-processing.payment-stopped{border-color:rgba(176,108,0,.35)!important;background:#fffaf0!important}
html[data-portal-theme="light"] .embedded-payment-form.saved-card-processing:has(.portal-form-message.error){border-color:rgba(200,55,45,.35)!important;background:#fff7f6!important}
html[data-portal-theme="light"] .embedded-payment-form.saved-card-processing.payment-complete{border-color:rgba(18,122,74,.32)!important;background:#f4fbf7!important}

/* Payment history filters: inset to match the list, transparent fields on the page background, search icon, and the
   result count on its own quiet line. */
#invoice-filters.invoice-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(170px,220px) auto;align-items:center;gap:10px;margin:0!important;padding:16px 24px 6px}
#invoice-filters #invoice-search{width:100%;min-height:44px;padding:0 14px 0 42px;border:1px solid rgba(126,181,224,.2);border-radius:11px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f93a3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px 50%/17px;color:#eef5fb;font:inherit;font-size:14px;outline:none;transition:border-color .15s}
#invoice-filters #invoice-search::placeholder{color:#7f93a3}
#invoice-filters #invoice-search:focus{border-color:rgba(91,176,230,.6);box-shadow:0 0 0 3px rgba(46,168,255,.12)}
#invoice-filters #invoice-search::-webkit-search-cancel-button{filter:invert(.6)}
#invoice-filters :is(select,[class*="select-trigger"],[class*="portal-select"]>button){min-height:44px!important;border:1px solid rgba(126,181,224,.2)!important;border-radius:11px!important;background:transparent!important;box-shadow:none!important}
#invoice-filters #invoice-clear-filters{min-height:44px;width:auto}
#invoice-filters .invoice-filter-count{grid-column:1 / -1;color:#7f93a3;font-size:12px;font-weight:700;letter-spacing:.02em}
#invoice-filters .invoice-filter-count:empty{display:none}
#invoice-list{margin-top:4px}
.invoice-no-matches{padding:18px 24px}
html[data-portal-theme="light"] #invoice-filters #invoice-search{border-color:rgba(20,52,78,.16);color:#102331}
html[data-portal-theme="light"] #invoice-filters #invoice-search::placeholder,html[data-portal-theme="light"] #invoice-filters .invoice-filter-count{color:#5c7184}
html[data-portal-theme="light"] #invoice-filters #invoice-search::-webkit-search-cancel-button{filter:none}
html[data-portal-theme="light"] #invoice-filters :is(select,[class*="select-trigger"],[class*="portal-select"]>button){border-color:rgba(20,52,78,.16)!important}
@media(max-width:640px){#invoice-filters.invoice-filters{grid-template-columns:1fr;padding:14px 16px 4px}}
html[data-portal-theme="light"] #invoice-filters #invoice-search{background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c7184' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px 50%/17px!important;box-shadow:none!important}
html[data-portal-theme="light"] #invoice-filters #invoice-search:focus{border-color:rgba(0,116,212,.45)!important;box-shadow:0 0 0 3px rgba(0,116,212,.1)!important}
/* Chat sidebar: People first, then Projects, each with its own small heading. */
.chat-projects .chat-team{margin-top:0!important;border-top:0!important;border-bottom:1px solid rgba(81,147,190,.14)}
.chat-projects .chat-team #team-list{padding-bottom:8px}
.chat-projects .chat-team-head{font-size:10.5px!important;color:#7f93a3!important}
.chat-projects .chat-projects-label{padding-top:14px!important}
html[data-portal-theme="light"] .chat-projects .chat-team{border-bottom-color:rgba(20,52,78,.1)}
html[data-portal-theme="light"] .chat-projects .chat-team-head{color:#5c7184!important}

/* Project page: paid state, Billing heading in the edit popup, and collapsible cards. */
.detail-stat.is-paid strong,.finance-grid>div.is-paid strong,.project-commercial-lock dd.is-paid{color:#67dba0!important}
:is(.detail-stat.is-paid strong,.finance-grid>div.is-paid strong,.project-commercial-lock dd.is-paid)::before{content:"\2713";margin-right:6px}
.finance-grid>div.is-paid{border-color:rgba(103,219,160,.35)!important;background:rgba(103,219,160,.06)!important}
html[data-portal-theme="light"] :is(.detail-stat.is-paid strong,.finance-grid>div.is-paid strong,.project-commercial-lock dd.is-paid){color:#127a4a!important}
html[data-portal-theme="light"] .finance-grid>div.is-paid{border-color:rgba(18,122,74,.28)!important;background:#ecf8f1!important}
.project-commercial-heading{display:block;margin:0 0 10px;color:#7cc8ff;font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
html[data-portal-theme="light"] .project-commercial-heading{color:#0a6ab8}
.detail-card>.detail-card-head{position:relative}
.detail-card-toggle{position:absolute;top:50%;right:18px;width:34px;height:34px;display:grid;place-items:center;padding:0;border:1px solid rgba(126,181,224,.2);border-radius:10px;background:transparent;color:#9fb2c1;cursor:pointer;transform:translateY(-50%);transition:background .15s,color .15s}
.detail-card-toggle:hover,.detail-card-toggle:focus-visible{background:rgba(46,168,255,.1);color:#eef5fb;outline:none}
.detail-card-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:rotate(180deg);transition:transform .2s}
.detail-card.is-collapsed .detail-card-toggle svg{transform:none}
.detail-card.is-collapsed>:not(.detail-card-head){display:none!important}
.detail-card.is-collapsed>.detail-card-head{border-bottom:0!important}
.detail-card.is-collapsed>.detail-card-head::after{display:none!important}
.detail-card>.detail-card-head>div{padding-right:44px}
html[data-portal-theme="light"] .detail-card-toggle{border-color:rgba(20,52,78,.16);color:#4b6074}
html[data-portal-theme="light"] .detail-card-toggle:hover{background:#eef6fd;color:#102331}
@media(prefers-reduced-motion:reduce){.detail-card-toggle svg{transition:none}}
