:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--tg-theme-bg-color, #f6f7f9);color:var(--tg-theme-text-color, #18202f);--surface: var(--tg-theme-secondary-bg-color, #ffffff);--border: rgba(24, 32, 47, .12);--muted: var(--tg-theme-hint-color, #667085);--primary: var(--tg-theme-button-color, #2563eb);--primary-text: var(--tg-theme-button-text-color, #ffffff)}:root[data-theme=dark]{color-scheme:dark;--surface: var(--tg-theme-secondary-bg-color, #171b24);--border: rgba(255, 255, 255, .14)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:var(--tg-theme-bg-color, #f6f7f9)}button,select{font:inherit}button{cursor:pointer}.auth-screen,.app-frame{min-height:100vh;padding:max(16px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}.auth-screen{display:grid;place-items:center}.auth-panel,.page-surface{width:100%;max-width:720px;margin:0 auto}.auth-panel{display:grid;gap:18px;padding:20px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.app-frame{display:grid;grid-template-rows:auto 1fr;gap:18px}.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:720px;margin:0 auto}.brand-row{display:flex;align-items:center;min-width:0;gap:10px}.brand-mark{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border-radius:8px;background:var(--primary);color:var(--primary-text);font-weight:700}.brand-row p,.brand-row h1,.page-heading h1{margin:0}.brand-row p{color:var(--muted);font-size:12px}.brand-row h1{overflow:hidden;max-width:42vw;text-overflow:ellipsis;white-space:nowrap;font-size:18px;line-height:1.2}.header-actions{display:flex;align-items:center;gap:8px}.header-actions select{max-width:160px;border:1px solid var(--border);border-radius:8px;padding:8px 10px;background:var(--surface);color:inherit}.ghost-button,.primary-button{border:1px solid var(--border);border-radius:8px;padding:9px 12px;background:var(--surface);color:inherit;font-weight:600}.primary-button{border-color:var(--primary);background:var(--primary);color:var(--primary-text)}.content{width:100%}.page-surface{display:grid;gap:14px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-heading h1{font-size:24px;line-height:1.15}.profile-hero{display:grid;justify-items:center;gap:8px;padding:22px 0 24px;text-align:center}.profile-avatar{display:grid;width:116px;height:116px;place-items:center;overflow:hidden;border-radius:999px;background:color-mix(in srgb,var(--muted) 22%,transparent);color:var(--primary-text);font-size:34px;font-weight:800}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-hero h1,.profile-hero p,.profile-actions h2{margin:0}.profile-hero h1{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:28px;line-height:1.15}.profile-hero p{max-width:100%;overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:16px}.profile-actions h2{font-size:18px;line-height:1.25}.management-list{display:grid;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.management-row{display:flex;align-items:center;justify-content:space-between;min-height:58px;gap:14px;padding:0 16px;border-top:1px solid var(--border)}.management-row:first-child,.management-row.group-start{border-top:0}.management-row.group-start{margin-top:12px;border-top:1px solid var(--border)}.management-title{min-width:0;color:inherit;font-size:17px;line-height:1.25}.management-meta{display:inline-flex;align-items:center;min-width:0;flex:0 1 auto;gap:10px}.management-value{overflow:hidden;max-width:42vw;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:16px}.status-icon{display:grid;width:22px;height:22px;flex:0 0 auto;place-items:center;border:2px solid #ffac00;border-radius:999px;color:#ffac00;font-size:15px;font-weight:800;line-height:1}.management-row.destructive .status-icon{border-color:#ff3b30;color:#ff3b30}.management-row.disabled .management-title,.management-row.disabled .management-value{color:color-mix(in srgb,var(--muted) 58%,transparent)}.chevron{width:10px;height:10px;flex:0 0 auto;border-top:2px solid var(--muted);border-right:2px solid var(--muted);transform:rotate(45deg);opacity:.78}.muted{color:var(--muted);font-size:14px;line-height:1.4}.error-banner{margin:0;border-radius:8px;background:#dc26261f;color:#b91c1c;padding:10px 12px;font-size:14px;line-height:1.4}@media (max-width: 520px){.app-header{align-items:stretch;flex-direction:column}.brand-row h1{max-width:100%}.header-actions{justify-content:space-between}.header-actions select{flex:1 1 auto;max-width:none}}
