#appShell .sidebar-account-mini{display:flex;align-items:center;gap:10px;padding:2px 0;min-width:0}
#appShell .sidebar-account-mini strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
#appShell .sidebar-account-mini span{display:block;font-size:10px;color:var(--muted)}
#appShell .profile-workspace{min-height:calc(100vh - 140px);display:flex;flex-direction:column}
#appShell .profile-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}
#appShell .profile-workspace-head h1,#appShell .profile-workspace-head h2[data-h1]{font-size:clamp(32px,4vw,52px);letter-spacing:-.045em}
#appShell .profile-avatar-large{width:72px;height:72px;border-radius:22px;background:linear-gradient(145deg,var(--teal2),var(--teal3));color:var(--deep);display:grid;place-items:center;font:700 28px Space Grotesk;box-shadow:0 0 35px var(--glow);flex:0 0 auto}
#appShell .profile-account-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:20px;max-width:1100px}
#appShell .profile-account-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0;overflow:hidden}
#appShell .profile-field{padding:24px;border-bottom:1px solid var(--line)}
#appShell .profile-field:nth-child(odd){border-right:1px solid var(--line)}
#appShell .profile-field span,.profile-label{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:7px}
#appShell .profile-field strong{font-size:15px;overflow-wrap:anywhere}
#appShell .profile-plan-card{display:flex;flex-direction:column;justify-content:center;min-height:220px}
#appShell .profile-plan-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 12px}
#appShell .profile-plan-row strong{font-size:30px;letter-spacing:-.03em}
#appShell .profile-upgrade-overlay{position:fixed;inset:0;background:rgba(3,9,18,.78);backdrop-filter:blur(12px);z-index:30000;display:none;align-items:center;justify-content:center;padding:24px}
#appShell .profile-upgrade-overlay.open{display:flex}
#appShell .profile-upgrade-modal{position:relative;width:min(1120px,100%);max-height:min(90vh,900px);overflow:auto;background:linear-gradient(145deg,#0f1d32,#0b182a);border:1px solid var(--line2);border-radius:22px;padding:32px;box-shadow:0 30px 100px rgba(0,0,0,.55)}
#appShell .profile-upgrade-modal h2{font-size:clamp(25px,3vw,38px);letter-spacing:-.04em;margin-bottom:8px}
#appShell .profile-upgrade-close{position:absolute;right:18px;top:16px;border:0;background:transparent;color:var(--muted);font-size:30px;line-height:1;cursor:pointer}
#appShell .profile-pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:26px}
#appShell .profile-pricing-card{position:relative;background:var(--bg-card);border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px 24px;min-width:0}
#appShell .profile-pricing-card.featured{border-color:var(--accent-dark);background:linear-gradient(180deg,rgba(90,192,191,.08),var(--bg-card));box-shadow:var(--shadow-glow)}
#appShell .profile-pricing-card.current{border-color:var(--teal);box-shadow:0 0 0 1px rgba(90,192,191,.2),var(--shadow-glow)}
#appShell .profile-pricing-card.current::after{content:'✓  Piano Attuale';position:absolute;right:16px;top:16px;background:var(--teal);color:var(--deep);font-size:10px;font-weight:800;padding:6px 10px;border-radius:999px}
#appShell .profile-pricing-card.current .profile-plan-action{opacity:.65;cursor:default;pointer-events:none}
#appShell .profile-pricing-card .feature-list{margin:18px 0 24px}
#appShell .profile-plan-action{width:100%}
#appShell .profile-plan-action.btn-primary{background:var(--teal)!important;color:var(--deep)!important;border-color:var(--teal)!important}
#appShell .profile-pricing-card .current-plan-badge{width:100%;padding:10px 16px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:#263449!important;color:#8795aa!important;opacity:.62;cursor:not-allowed;pointer-events:none;font:600 14px "Space Grotesk",sans-serif}
@media(max-width:1050px){#appShell .profile-account-grid{grid-template-columns:1fr}#appShell .profile-pricing-grid{grid-template-columns:1fr}.profile-pricing-card{max-width:none}}
@media(max-width:800px){#appShell .app{margin-left:0}#appShell .sidebar{transform:translateX(-105%);transition:transform .25s ease;box-shadow:20px 0 60px rgba(0,0,0,.35)}#appShell .sidebar.open{transform:none}#appShell .mobile-top{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--line);background:rgba(15,29,50,.7);color:var(--soft);border-radius:9px;cursor:pointer;margin-right:10px}#appShell .topbar{padding:0 14px;height:64px}#appShell .crumb{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#appShell .stats{gap:5px}.stat-chip{padding:6px 7px!important}.stat-chip span{display:none!important}#appShell .content{padding:20px 14px 30px}#appShell .page-head{align-items:flex-start;flex-direction:column;margin-bottom:20px}#appShell .g-main,#appShell .g-2,#appShell .g-3{grid-template-columns:1fr}#appShell .profile-workspace{min-height:auto}#appShell .profile-workspace-head{align-items:flex-start}#appShell .profile-account-card{grid-template-columns:1fr}#appShell .profile-field:nth-child(odd){border-right:0}#appShell .profile-field:not(:last-child){border-bottom:1px solid var(--line)}#appShell .profile-avatar-large{width:58px;height:58px;border-radius:18px;font-size:23px}#appShell .profile-upgrade-modal{padding:24px 16px;border-radius:16px}#appShell .profile-pricing-grid{gap:14px}}
@media(max-width:520px){#appShell .stats .stat-chip:nth-child(3){display:none}#appShell .profile-plan-row{align-items:flex-start;flex-direction:column}#appShell .profile-plan-row .btn{width:100%}#appShell .mission{align-items:flex-start}#appShell .mission .xp{margin-left:auto}}
