html{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}body,button,input,select,textarea{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}h1,h2,h3,h4,h5,h6,.brand,.brand-mark,.eyebrow,.plan-label,.stat-card strong,.project-card h4,.builder-head h1,.auth-heading h2{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.02em}.brand{letter-spacing:-.02em}.eyebrow{letter-spacing:.08em}.primary-btn,.secondary-btn,.white-btn,.nav-item,.project-action,.history-action{letter-spacing:0}

/* Stable mobile sidebar */
.sidebar{height:100dvh;min-height:100dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.sidebar-bottom{position:sticky;bottom:0;z-index:4;background:linear-gradient(180deg,rgba(13,19,36,0),rgba(13,19,36,.96) 22%,#0d1324 100%);padding-bottom:max(12px,env(safe-area-inset-bottom));padding-top:24px}.sidebar-bottom #logoutBtn{display:flex!important;visibility:visible!important;opacity:1!important;flex-shrink:0}.sidebar-backdrop{position:fixed;inset:0;background:rgba(7,11,22,.48);backdrop-filter:blur(3px);z-index:70;opacity:0;pointer-events:none;transition:.22s}.sidebar-backdrop.show{opacity:1;pointer-events:auto}

.lang-switch-mini{display:inline-flex;align-items:center;border:1px solid #dfe3e8;background:#f4f5f7;border-radius:10px;padding:3px;gap:2px;height:34px}.lang-switch-mini button{border:0;background:transparent;color:#667085;border-radius:7px;min-width:34px;height:26px;padding:0 8px;font-size:10px;font-weight:700}.lang-switch-mini button.active{background:#111827;color:#fff;box-shadow:0 2px 7px rgba(17,24,39,.14)}.topbar-actions{min-width:0}

@media(max-width:760px){body.sidebar-open{overflow:hidden}.sidebar{height:100dvh!important;min-height:100dvh!important;padding-bottom:0!important}.sidebar-bottom{margin-top:auto;padding-left:0;padding-right:0}.sidebar .nav-item{min-height:46px}.sidebar #logoutBtn{margin-bottom:max(4px,env(safe-area-inset-bottom))}.topbar-actions{gap:6px}.lang-switch-mini{display:inline-flex}.profile-chip{margin-left:0}}
@media(max-width:430px){.lang-switch-mini button{padding:0 6px;min-width:31px;height:24px}.lang-switch-mini{height:32px}.topbar{gap:8px}.topbar-left h2{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}