/* Account access uses the same quiet monochrome palette as the workspace. */
body.auth-locked{overflow:auto;background:#fff}
body.auth-locked> :not(#auth-gate):not(script):not(style):not(link){display:none!important}
.auth-gate,.account-dialog{color:#191b1d;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;line-height:1.5}
.auth-gate{min-height:100dvh;background:#fff;position:relative;z-index:100}
.auth-gate *, .account-dialog *{box-sizing:border-box}
.auth-header{min-height:88px;padding:22px 5vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8e8e6;gap:20px}
.auth-brand{display:flex;align-items:center;gap:11px;font-size:25px;font-weight:700;letter-spacing:-.8px}
.auth-mark{display:grid;place-items:center;width:35px;height:38px;border-radius:10px;background:#191b1d;color:white;font-size:28px;font-weight:650;line-height:1}
.auth-language select{color:#303431;background:#fff;border:1px solid #d5d8d5;min-height:42px;padding:8px 31px 8px 12px;border-radius:8px;font:inherit;font-size:13px;max-width:100%}
.auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(350px,1fr);max-width:1320px;margin:auto;min-height:calc(100dvh - 89px);align-items:stretch}
.auth-visual{margin:38px 28px 38px 38px;border-radius:18px;overflow:hidden;background:#e9e5dd;position:relative;min-height:600px;display:flex;align-items:flex-end}
.auth-visual>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 42%}
.auth-visual:after{content:"";position:absolute;inset:42% 0 0;background:linear-gradient(transparent,rgba(22,26,23,.85));pointer-events:none}
.auth-visual-copy{position:relative;padding:38px;z-index:1;color:white;max-width:510px}
.auth-visual-copy h2{font-size:38px;line-height:1.15;letter-spacing:-1.2px;font-weight:600;margin:14px 0 20px}
.auth-visual-copy>p:last-child{color:#fff;font-size:15px;line-height:1.75;max-width:360px}
.auth-eyebrow{font-size:10px;font-weight:650;letter-spacing:1.7px;line-height:1.6}
.auth-panel{padding:62px 55px;align-self:center;max-width:560px;width:100%;margin:auto}
.auth-panel h1{font-size:31px;letter-spacing:-1px;line-height:1.2;font-weight:650;margin:0 0 14px;outline:none}
.auth-description{color:#5d645f;font-size:15px;line-height:1.7;margin:0 0 27px}
.auth-oauth{display:flex;flex-direction:column;gap:10px;margin:0 0 22px}
.auth-oauth:empty{display:none}
.auth-oauth-button{display:flex;align-items:center;justify-content:center;gap:11px;min-height:46px;padding:11px 16px;border:1px solid #c9cfca;border-radius:8px;background:#fff;color:#202421;font-size:14px;font-weight:600;text-decoration:none}
.auth-oauth-button:hover{background:#f5f6f3;border-color:#afb6b0}
.auth-oauth-button:focus-visible{outline:3px solid #4a725c;outline-offset:3px}
.auth-oauth-icon{display:grid;place-items:center;width:20px;height:20px;font-size:15px;font-weight:700;line-height:1}
.account-connected{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #dfe4da}.account-connected .auth-oauth-button{font:inherit;font-size:14px}.account-connected .auth-hint{max-width:48ch}.account-connected .auth-oauth-button:disabled{opacity:.6;cursor:wait}
.generation-credit-panel select:focus-visible{outline:3px solid #087c72;outline-offset:3px}.generation-credit-panel select:disabled{opacity:.6;cursor:not-allowed}
.auth-divider{display:flex;align-items:center;gap:12px;color:#737a74;font-size:11px;margin:2px 0}
.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#e0e3df;flex:1}
.auth-divider span{white-space:nowrap}
.auth-mode-switch{display:flex;gap:0;border-bottom:1px solid #dedfdd;margin:0 0 35px}
.auth-mode-switch button{padding:12px 16px;font-size:14px;color:#60655f;border-bottom:2px solid transparent;flex:1;min-height:45px}
.auth-mode-switch .is-active{color:#191b1d;border-bottom-color:#191b1d;font-weight:650}
.auth-form{display:flex;flex-direction:column;gap:19px}
.auth-required{font-size:12px;color:#646960;margin:0 0 -3px}
.auth-field{display:flex;flex-direction:column;gap:7px}
.auth-form label{display:block;font-weight:600;font-size:13px;color:#303730;margin:0}
.auth-form input:not([type=checkbox]),.auth-form select{margin:0;border:1px solid #c9cfca;background:white;color:#191b1d;padding:11px 12px;border-radius:8px;width:100%;min-height:46px;font:inherit;font-size:15px;box-shadow:none}
.auth-form input[readonly]{background:#f6f7f5;color:#525a52}
.auth-hint{font-size:12px!important;line-height:1.65!important;color:#5e675e!important;margin:1px 0 0!important}
.auth-primary,.auth-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;font:inherit;font-size:14px;font-weight:600;border-radius:8px;padding:12px 18px;line-height:1.5}
.auth-primary{background:#1b211e;color:#fff;border:1px solid #1b211e}
.auth-primary:hover:not(:disabled){background:#343d37}
.auth-secondary{background:white;color:#303730;border:1px solid #c9cfca}
.auth-secondary:hover:not(:disabled){background:#f3f5f1}
.auth-panel>.auth-primary{width:100%}
.auth-primary:disabled,.auth-secondary:disabled{opacity:.5;cursor:not-allowed}
.auth-text-button{font:inherit;font-size:13px;color:#39463b;min-height:44px;text-decoration:underline;text-underline-offset:4px;margin:12px 0 0;padding:10px 0;text-align:left}
.auth-footnote{font-size:12px;line-height:1.75;color:#636c62;margin:19px 0 0}
.auth-status{font-size:13px;line-height:1.6;color:#345540;margin:0;overflow-wrap:anywhere}
.auth-status:empty{display:none}
.auth-status.is-error{color:#a52d22;background:#fff4f1;border-left:3px solid #ac4435;padding:10px 12px}
.auth-codes{list-style:none;padding:17px;margin:0 0 18px;border:1px solid #d2d8d1;border-radius:9px;background:#f7f8f5;display:grid;grid-template-columns:1fr 1fr;gap:11px}
.auth-codes li{min-width:0}
.auth-codes code{font:13px/1.5 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}
.auth-checkbox{display:flex!important;align-items:flex-start;gap:10px;font-size:13px;color:#384438;margin:23px 0 18px;line-height:1.7;cursor:pointer}
.auth-checkbox input{width:18px;height:18px;flex-shrink:0;margin:2px 0 0;accent-color:#1b211e}
.auth-gate button:focus-visible,.auth-gate input:focus-visible,.auth-gate select:focus-visible,.account-dialog button:focus-visible,.account-dialog input:focus-visible,.account-dialog select:focus-visible{outline:3px solid #4a725c;outline-offset:3px}
.auth-sr-only{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}
.account-controls{display:flex;align-items:center;gap:12px;min-width:0}
.account-trigger{display:block;background:#eef0ec;border:1px solid #dce1da;color:#29362c;font-size:13px;font-weight:600;border-radius:8px;min-height:40px;padding:9px 13px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-sidebar-trigger{display:flex;gap:10px;align-items:center;padding:0;text-align:left;width:100%;min-width:0;color:#27322a}
.account-sidebar-trigger>span:last-child{min-width:0}
.account-sidebar-trigger strong,.account-sidebar-trigger small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:135px}
.account-sidebar-trigger strong{font-size:13px;font-weight:600}
.account-sidebar-trigger small{font-size:11px;color:#667164}
.account-sidebar-trigger .avatar{flex-shrink:0}
.account-dialog{width:min(620px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);border-radius:16px;border:1px solid #dce0d9;padding:0;background:#fff}
.account-dialog::backdrop{background:#17211980;backdrop-filter:blur(3px)}
.account-header{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:25px 28px 20px}
.account-header .auth-eyebrow{color:#5f6d61;margin:0 0 8px}
.account-header h2{font-size:24px;letter-spacing:-.6px;line-height:1.3;margin:0}
.account-close{font-size:26px;min-width:44px;height:44px;border-radius:8px;color:#384238}
.account-close:hover{background:#f0f3ed}
.account-tabs{display:flex;border-bottom:1px solid #dfe4da;gap:10px;padding:0 28px;overflow-x:auto}
.account-tabs button{font:inherit;font-size:13px;color:#586656;min-height:44px;padding:10px 13px;border-bottom:2px solid transparent;white-space:nowrap}
.account-tabs .is-active{color:#1b271e;border-color:#1b271e;font-weight:650}
.account-content{padding:26px 28px;outline:none}
.account-content h3{font-size:16px;line-height:1.5;margin:0}
.account-credits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:15px 0 13px;border:1px solid #e0e5dd;border-radius:9px;background:#f8f9f6}
.account-credits>div{display:flex;flex-direction:column;padding:16px 12px;text-align:center;gap:4px;min-width:0}
.account-credits>div+div{border-left:1px solid #e0e5dd}
.account-credits strong{font-size:26px;line-height:1.25;font-weight:650;overflow-wrap:anywhere}
.account-credits span{font-size:12px;color:#5c6659;overflow-wrap:anywhere}
.account-form{margin-top:25px}
.account-form .auth-primary{align-self:flex-start}
.account-footer{margin:0!important;padding:18px 28px!important;border-top:1px solid #dfe4da;display:flex;justify-content:space-between;align-items:center;gap:20px}
.account-footer>.auth-status{flex:1}
.account-footer>button{flex-shrink:0}
.account-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.account-table-scroll{max-width:100%;overflow-x:auto;margin:18px 0 24px;border:1px solid #e0e5dd;border-radius:8px}
.account-users{width:100%;border-collapse:collapse;text-align:left;min-width:365px;font-size:12px}
.account-users th,.account-users td{padding:11px 10px;border-bottom:1px solid #e5e8e2;text-align:left;vertical-align:middle}
.account-users thead{background:#f5f7f1;color:#576550}
.account-users tbody th{font-weight:400;max-width:240px;overflow-wrap:anywhere}
.account-users th strong,.account-users th span,.account-users th small{display:block}
.account-users th small{color:#63735d;font-size:10px;margin-top:5px}
.account-users th span{color:#64715f;font-size:11px}
.account-users tr:last-child td,.account-users tr:last-child th{border-bottom:0}
.account-grant{border-top:1px solid #e0e5dd;padding-top:23px;gap:12px}
@media(min-width:1450px){.auth-layout{padding:18px 0}.auth-visual{min-height:690px}}
@media(max-width:900px){.auth-visual{margin:26px 10px 26px 26px}.auth-visual-copy{padding:27px}.auth-visual-copy h2{font-size:30px}.auth-panel{padding:45px 30px}.auth-layout{grid-template-columns:minmax(0,.85fr) minmax(340px,1fr)}}
@media(max-width:700px){.auth-header{padding:18px 23px;min-height:77px}.auth-layout{display:block;min-height:calc(100dvh - 78px)}.auth-visual{display:none}.auth-panel{padding:36px 25px 45px;max-width:500px}.auth-panel h1{font-size:29px}.auth-description{font-size:14px}.auth-brand{font-size:23px}.auth-mode-switch{margin-bottom:30px}.account-controls{gap:7px}.account-controls .auth-language select{padding-left:8px;font-size:12px;max-width:108px}.account-trigger{max-width:102px;padding:8px;font-size:12px}.topbar>div{gap:7px}.account-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.account-header{padding:20px}.account-tabs{padding:0 18px;gap:2px}.account-content{padding:22px 20px}.account-footer{padding:16px 20px!important}.account-header h2{font-size:21px}.account-credits strong{font-size:23px}}
@media(max-width:370px){.auth-panel{padding-left:19px;padding-right:19px}.auth-header{padding-left:19px;padding-right:19px}.auth-codes{padding:12px;gap:8px}.auth-codes code{font-size:11px}.account-controls .auth-language select{max-width:95px}.account-trigger{max-width:75px}.account-tabs button{font-size:12px;padding-left:9px;padding-right:9px}}
.topbar #breadcrumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar>div{flex-shrink:0}
.auth-brand{color:inherit;text-decoration:none}.auth-header-actions{display:flex;align-items:center;gap:23px}.auth-home-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:#525e50;text-decoration:none}.auth-home-link:hover{text-decoration:underline;text-underline-offset:4px}.auth-gate a:focus-visible{outline:3px solid #4a725c;outline-offset:3px}@media(max-width:540px){.auth-header{padding:16px 5vw;gap:12px}.auth-header-actions{gap:12px}.auth-home-link{font-size:11px}.auth-brand{font-size:21px}.auth-language select{padding-inline:8px;font-size:12px}}
.generation-credit-panel{padding:16px;background:#f1f3ed;border:1px solid #dce1d4;border-radius:10px}.generation-credit-panel label{display:flex;align-items:center;gap:14px}.generation-credit-panel label[hidden]{display:none}.generation-credit-panel select{padding:8px;font:inherit}.credit-estimate{font-size:13px;font-weight:600;color:#35452b}.account-credits{grid-template-columns:1fr}.account-credit-link{font-size:12px;padding:8px;border:1px solid #dce1d4;border-radius:8px}
.billing-panel{padding:20px 0}.billing-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.billing-pack{padding:18px;border:1px solid #dce1d4;border-radius:10px;display:flex;flex-direction:column;gap:12px}.billing-pack h4,.billing-pack p{margin:0}.billing-pack>strong{font-size:21px}.billing-pack button{margin-top:auto;white-space:normal}.billing-panel>[role=status]{font-size:14px;line-height:1.7}.billing-packs+P{line-height:1.8}@media(max-width:600px){.billing-packs{grid-template-columns:1fr}.account-credit-link{font-size:11px}.account-tabs{overflow:auto}}

/* Itemlume 01 identity - IL light fold. */
.auth-mark{display:block;width:38px;height:38px;object-fit:contain;border-radius:0;background:transparent;color:transparent;flex:none}.auth-brand{color:#183f44}

/* Provider-specific OAuth button treatment. */
.auth-oauth-icon{display:block;width:20px;height:20px;object-fit:contain;flex:none}.auth-oauth-apple{background:#000;color:#fff;border-color:#000}.auth-oauth-apple:hover{background:#202020;border-color:#202020}.auth-oauth-apple .auth-oauth-icon{filter:invert(1)}

/* Workspace account and billing use the same dark right-side surface as the creative tools. */
body:not(.auth-locked) .account-dialog[open]{position:fixed;inset:0 0 0 auto;width:min(720px,calc(100vw - 230px));height:100dvh;max-height:none;margin:0;padding:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;border:0;border-left:1px solid #293236;border-radius:0;background:#0d1214;color:#eef3f2;box-shadow:-28px 0 80px #0009;overflow:hidden;animation:itemlume-drawer-in .28s cubic-bezier(.22,.8,.24,1)}
body:not(.auth-locked).nav-collapsed .account-dialog[open]{width:min(720px,calc(100vw - 72px))}
body:not(.auth-locked) .account-dialog::backdrop{background:#02050666;backdrop-filter:blur(2px);animation:itemlume-backdrop-in .22s ease-out}
body:not(.auth-locked) .account-header{padding:24px 28px 18px;border-bottom:1px solid #242c30;background:#0d1214}
body:not(.auth-locked) .account-header .auth-eyebrow{color:#5f6b6d}
body:not(.auth-locked) .account-header h2{color:#fff}
body:not(.auth-locked) .account-close{color:#859092;transition:color .16s,background .16s,transform .16s}
body:not(.auth-locked) .account-close:hover{color:#fff;background:#1a2124;transform:rotate(4deg)}
body:not(.auth-locked) .account-tabs{padding:0 28px;border-color:#242c30;background:#0d1214}
body:not(.auth-locked) .account-tabs button{color:#808b8d;transition:color .16s,border-color .16s}
body:not(.auth-locked) .account-tabs .is-active{color:#69e3dc;border-color:#52d7d0}
body:not(.auth-locked) .account-content{padding:25px 28px;overflow:auto;background:#0b0f11}
body:not(.auth-locked) .account-content h3,body:not(.auth-locked) .account-content h4{color:#f4f7f6}
body:not(.auth-locked) .account-content input,body:not(.auth-locked) .account-content select{background:#171d20;border-color:#30393d;color:#eef3f2}
body:not(.auth-locked) .account-content .auth-hint,body:not(.auth-locked) .billing-panel>[role=status]{color:#8f9a9c}
body:not(.auth-locked) .account-credits,body:not(.auth-locked) .account-table-scroll{background:#121719;border-color:#293236}
body:not(.auth-locked) .account-credits span{color:#899496}
body:not(.auth-locked) .account-users th,body:not(.auth-locked) .account-users td{border-color:#293236}
body:not(.auth-locked) .account-users thead{background:#151b1e;color:#a5b0b1}
body:not(.auth-locked) .account-footer{padding:16px 28px!important;border-color:#242c30;background:#0d1214}
body:not(.auth-locked) .account-footer button,body:not(.auth-locked) .billing-panel .auth-secondary{color:#b8c1c2;border-color:#30393d;background:#151b1e}
body:not(.auth-locked) .billing-packs{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body:not(.auth-locked) .billing-pack{min-width:0;padding:18px;border-color:#2b3539;background:#121719;transition:transform .18s,border-color .18s,background .18s}
body:not(.auth-locked) .billing-pack:hover{transform:translateY(-3px);border-color:#4c7777;background:#151d1f}
body:not(.auth-locked) .billing-pack>strong{color:#6de6df}
body:not(.auth-locked) .billing-pack .auth-primary{background:#52d7d0;color:#061313;border:0;border-radius:8px}
body:not(.auth-locked) .billing-pack .auth-primary:not(:disabled):hover{background:#73e4df;transform:translateY(-1px)}
@keyframes itemlume-drawer-in{from{transform:translateX(34px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes itemlume-backdrop-in{from{opacity:0}to{opacity:1}}
@media(max-width:800px){body:not(.auth-locked) .account-dialog[open],body:not(.auth-locked).nav-collapsed .account-dialog[open]{width:100vw}.billing-packs{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){body:not(.auth-locked) .account-dialog[open],body:not(.auth-locked) .account-dialog::backdrop{animation:none}body:not(.auth-locked) .billing-pack:hover{transform:none}}
