/* Account content is outside chart layout and uses the active terminal palette. */
.profile-dialog:has(.referral-panel){width:min(960px,calc(100vw - 32px));max-width:960px;background:var(--bg2,#141821);color:var(--text);border-color:var(--line);padding:28px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start;margin-top:22px}.profile-main{min-width:0}.profile-layout .subscription-status{margin:0 0 14px}.profile-dialog .profile-email{margin-bottom:0;color:var(--muted)}.profile-dialog .subscription-status{background:color-mix(in srgb,var(--accent) 5%,var(--bg1));border-color:var(--line)}.profile-dialog .profile-status,.profile-dialog .commerce-eyebrow{color:var(--accent)}.profile-dialog .profile-expires,.profile-dialog label,.profile-dialog form>small,.profile-dialog .commerce-message{color:var(--muted)}.profile-dialog :is(input,select){background:var(--bg1);border-color:var(--line);color:var(--text)}.profile-dialog .commerce-primary{background:var(--accent);border-color:var(--accent);color:var(--bg1)}.profile-dialog :is(form,.profile-logout){border-color:var(--line)}.profile-layout .account-admin{margin-top:20px}
.referral-panel{min-width:0;position:sticky;top:0;border:1px solid var(--line);border-radius:10px;padding:22px;background:var(--bg1);font:12px/1.6 Inter,system-ui,sans-serif}.referral-heading{display:flex;align-items:center;gap:9px;color:var(--accent);font:9px var(--font-mono,monospace);letter-spacing:.09em}.referral-panel h3{font:600 22px/1.25 Inter,system-ui;letter-spacing:-.025em;margin:16px 0 12px}.referral-intro{color:var(--muted);font-size:12px;line-height:1.75;margin:0 0 20px}.referral-progress{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:8px 16px}.referral-progress strong{font:600 30px/1.2 var(--font-mono,monospace);font-variant-numeric:tabular-nums}.referral-progress span{font-size:10px;color:var(--muted);text-align:right}.referral-progress progress{grid-column:1/-1;appearance:none;width:100%;height:4px;border:0;border-radius:2px;background:var(--line);accent-color:var(--accent)}.referral-progress progress::-webkit-progress-bar{background:var(--line);border-radius:2px}.referral-progress progress::-webkit-progress-value{background:var(--accent);border-radius:2px}.referral-counters{display:flex;justify-content:space-between;gap:12px;margin:12px 0 24px;color:var(--muted);font:10px var(--font-mono,monospace);font-variant-numeric:tabular-nums}.referral-link-label{display:block!important;margin-bottom:8px}.referral-link-row{display:flex;gap:6px}.referral-link-row input{min-width:0!important;width:0;flex:1;font-size:10px!important;height:36px}.referral-panel button{height:36px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:var(--bg2);color:var(--text);font:11px Inter,system-ui;cursor:pointer;white-space:nowrap;box-shadow:inset 0 1px #ffffff06;transition:background-color .15s,border-color .15s}.referral-panel button:hover{border-color:color-mix(in srgb,var(--accent) 35%,var(--line));background:color-mix(in srgb,var(--accent) 5%,var(--bg2))}.referral-panel button:active{transform:translateY(1px)}.referral-panel :is(a,button,input):focus-visible{outline:2px solid var(--accent);outline-offset:3px}.referral-panel button:disabled{opacity:.5;cursor:default}.referral-share{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}.referral-share a{color:var(--accent);text-decoration:none;font-size:11px}.referral-share a:not([href]){pointer-events:none;opacity:.5}.referral-state{color:var(--muted);font-size:10px;line-height:1.7;min-height:34px;margin:14px 0 20px}.referral-rewards{border-top:1px solid var(--line);padding-top:16px}.referral-rewards h4{font:600 12px Inter,system-ui;margin:0 0 12px}.referral-rewards ul{list-style:none;margin:0;padding:0;max-height:240px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.referral-rewards li{padding:12px 0;border-bottom:1px solid var(--line)}.referral-rewards li:last-child{border:0}.referral-rewards strong{display:block;font-size:11px;font-weight:500;color:var(--text)}.referral-rewards time{display:block;font:10px var(--font-mono,monospace);color:var(--muted);margin-top:5px}.referral-empty{color:var(--muted);font-size:11px}
.listings-locked-shell{position:relative;isolation:isolate;min-height:560px;max-height:calc(100dvh - 160px);overflow:hidden;border-radius:10px;contain:layout paint}.listings-live-preview{pointer-events:none;user-select:none;min-height:560px}.listings-locked-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:rgba(11,14,20,.65);background:color-mix(in srgb,var(--bg1) 65%,transparent);backdrop-filter:blur(10px);border:1px dashed var(--border-color,var(--line));border-radius:10px;z-index:2}.listings-locked-overlay .listings-pro-gate{width:min(100%,420px);min-height:0;padding:30px;text-align:center;background:var(--bg2);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 40px #0003;display:flex;flex-direction:column;align-items:center}.listings-locked-overlay .pro-gate>svg{width:22px;height:22px;color:var(--accent)}.listings-locked-overlay .pro-gate h3{font:600 22px/1.25 Inter,system-ui;letter-spacing:-.025em;margin:18px 0 10px}.listings-locked-overlay .pro-gate p{font:12px/1.8 Inter,system-ui;color:var(--muted);max-width:330px;margin:0 0 20px}.listings-locked-overlay .commerce-primary{background:var(--accent);border:1px solid var(--accent);color:var(--bg1);font:600 12px Inter,system-ui;min-height:38px;border-radius:6px;padding:10px 18px}.listings-source-state{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:14px}
@media(max-width:760px){.profile-dialog:has(.referral-panel){padding:22px 18px}.profile-layout{grid-template-columns:1fr;gap:20px}.referral-panel{position:static;padding:20px}.listings-locked-shell,.listings-live-preview{min-height:480px}.listings-locked-overlay{padding:16px}.listings-locked-overlay .listings-pro-gate{padding:24px 20px}}
@media(prefers-reduced-motion:reduce){.referral-panel button{transition:none}.referral-panel button:active{transform:none}}

#viewProfile.profile-page{position:relative;flex:1;min-height:0;width:auto;max-width:none;max-height:none;overflow-y:auto;overflow-x:hidden;padding:36px max(24px,calc((100% - 1120px)/2)) 0;margin:0!important;inset:auto;border:0;border-radius:0;box-shadow:none;background:var(--bg1);color:var(--text);font:13px/1.6 Inter,system-ui;contain:layout paint;scrollbar-gutter:stable}#viewProfile[hidden]{display:none!important}#viewProfile *{box-sizing:border-box}.profile-page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.profile-identity{display:flex;align-items:center;gap:16px;min-width:0}.profile-identity>div{min-width:0}.profile-identity .account-avatar{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;margin:0;border-radius:10px;border:1px solid var(--line);background:color-mix(in srgb,var(--accent) 10%,var(--bg2));color:var(--accent);font:600 15px var(--font-mono,monospace)}.profile-page .commerce-eyebrow{font:9px var(--font-mono,monospace);letter-spacing:.12em}.profile-page h2{font:600 30px/1.2 Inter,system-ui;letter-spacing:-.025em;margin:5px 0 4px}.profile-page .profile-email{margin:0;font-size:11px;overflow-wrap:anywhere}.profile-back{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;background:var(--bg2);color:var(--muted);padding:8px 12px;font:11px Inter,system-ui;cursor:pointer;white-space:nowrap}.profile-back:hover{color:var(--text);border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}.profile-page .profile-layout{margin:0;gap:24px;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}.profile-page .profile-main{padding:24px;background:var(--bg2);border:1px solid var(--line);border-radius:10px}.profile-page .profile-main form{display:grid;gap:9px;padding:20px 0;border-bottom:1px solid var(--line)}.profile-page label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--muted)}.profile-page .profile-main :is(input:not([type=checkbox]),select){height:36px;width:100%;min-width:0;padding:0 10px;background:var(--bg1);color:var(--text);border:1px solid var(--line);border-radius:6px;font:12px var(--font-mono,monospace)}.profile-page .profile-main :is(input,select,button):focus-visible,.profile-footer :is(button,a):focus-visible{outline:2px solid var(--accent);outline-offset:3px}.profile-page .profile-main form>small{font-size:10px;line-height:1.7;color:var(--muted)}.profile-page form button,.profile-page .profile-logout{justify-self:start;min-height:32px;padding:7px 12px;border:1px solid var(--line);border-radius:6px;background:var(--bg1);color:var(--text);font:11px Inter,system-ui;cursor:pointer;box-shadow:inset 0 1px #ffffff05}.profile-page form button:hover{border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}.profile-page .profile-days{font:600 25px var(--font-mono,monospace);font-variant-numeric:tabular-nums}.profile-page .profile-expires{font-size:11px}.profile-page .subscription-status{padding:20px;display:grid;gap:10px}.profile-page .subscription-progress{margin-top:5px}.profile-page .commerce-primary{min-height:38px;border:1px solid var(--accent);border-radius:6px;padding:10px 14px;background:var(--accent);color:var(--bg1);font:600 12px Inter,system-ui;cursor:pointer}.profile-page .commerce-message{min-height:0;margin:0 0 12px;font-size:11px}.profile-page .referral-panel{padding:26px;background:var(--bg2)}.profile-page .referral-link-row input{border-radius:6px;padding:0 10px;height:36px;color:var(--text);border:1px solid var(--line)}.profile-page .checkbox-label{display:flex;flex-direction:row;align-items:center;gap:8px}.profile-page .account-admin input[type=checkbox]{width:14px;height:14px;accent-color:var(--accent)}.profile-page .account-admin{border-color:var(--line);background:var(--bg1)}.profile-page .account-admin summary{color:var(--accent);cursor:pointer}.profile-page .account-admin .admin-periods{display:flex;flex-wrap:wrap;gap:6px}
.profile-footer{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);gap:36px 64px;margin-top:56px;padding:38px 0 20px;border-top:1px solid var(--line);color:var(--muted)}.profile-footer .pro-brand-art{display:block;width:230px;max-width:100%;height:auto;mix-blend-mode:screen}.profile-footer-brand p{font-size:11px;line-height:1.9;max-width:330px;margin:16px 0 18px}.profile-social{display:flex;gap:8px}.profile-social a{display:grid;place-items:center;width:34px;height:34px;background:var(--bg2);border:1px solid var(--line);border-radius:8px;color:var(--muted)}.profile-social svg{width:16px;height:16px}.profile-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:9px}.profile-footer h3{font:600 10px Inter,system-ui;letter-spacing:.1em;color:var(--text);margin:0 0 10px}.profile-footer :is(button,a){font:11px/1.6 Inter,system-ui;color:var(--muted);text-decoration:none}.profile-footer button{padding:0;background:none;border:0;cursor:pointer;text-align:left}.profile-footer :is(button,a):hover{color:var(--accent)}.profile-footer-bottom{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:8px;padding-top:20px;border-top:1px solid var(--line);font-size:10px}.profile-footer-bottom small{font-size:10px;text-align:right;line-height:1.6}
@media(max-width:760px){#viewProfile.profile-page{padding:24px 16px 0}.profile-page-head{align-items:flex-start;gap:12px}.profile-identity{gap:10px}.profile-identity .account-avatar{width:38px;height:38px;flex-basis:38px}.profile-page h2{font-size:25px}.profile-back{font-size:10px;padding:7px 8px}.profile-page .profile-layout{grid-template-columns:1fr;gap:18px}.profile-page .profile-main,.profile-page .referral-panel{padding:20px}.profile-footer{grid-template-columns:1fr 1fr;gap:28px 24px;margin-top:36px;padding-top:28px}.profile-footer-brand{grid-column:1/-1}.profile-footer .pro-brand-art{width:210px}.profile-footer-bottom{flex-direction:column;align-items:flex-start;gap:10px}.profile-footer-bottom small{text-align:left}}
