.profile-switcher{margin:4px 14px 18px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.tp-full-scope>label{display:block;font-size:11px;color:var(--muted);margin-bottom:7px;font-weight:600}
.tp-full-scope>.tp-switch-row+label{margin-top:11px}
.tp-switch-row{display:flex;align-items:center;gap:5px;min-width:0}
.tp-switch-row select{flex:1;width:0;min-width:0;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--text);font:inherit;font-size:12px;min-height:36px}
.tp-switch-row .icon-button{width:30px;height:32px;flex:0 0 30px}
.tp-scope-note{display:flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;margin:0 0 16px;background:var(--panel);color:var(--muted);font-size:12px}
.tp-scope-dot{height:8px;width:8px;flex:0 0 8px;border-radius:50%;background:var(--accent,var(--brand))}
.tp-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin:22px 0}
.tp-profile-card{padding:20px;border:1px solid var(--line);border-radius:16px;min-width:0}
.tp-profile-title{display:flex;align-items:center;gap:12px}
.tp-profile-title h4{margin:0 0 4px}.tp-profile-title small{color:var(--muted)}
.tp-profile-mark{background:var(--tp-color);color:#fff;border-radius:12px;padding:11px;font-weight:700;min-width:42px;text-align:center}
.tp-profile-card .card-actions{flex-wrap:wrap;gap:8px;margin-top:18px}
.tp-profile-card p{white-space:pre-wrap;overflow-wrap:anywhere}
.tp-csv-note{font-size:12px;color:var(--muted)}
.import-screen .tp-csv-profile{min-width:145px;max-width:220px}
.profile-switcher .tp-compact-scope{display:none}
.nav-item[hidden]{display:none!important}
.sidebar.collapsed .profile-switcher{display:grid;justify-items:center;margin:3px 8px 12px;padding:0;border:0;background:transparent}
.sidebar.collapsed .profile-switcher .tp-full-scope{display:none}
.sidebar.collapsed .profile-switcher .tp-compact-scope{display:inline-flex}
.tp-scope-dialog{width:min(360px,calc(100% - 36px));padding:20px;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:16px}
.tp-scope-dialog::backdrop{background:#0d1c1859}
.tp-scope-dialog h2{font-size:17px;margin:0 0 14px}.tp-scope-dialog form{display:flex;justify-content:flex-end;margin-top:16px}
@media(max-width:760px){.profile-switcher{display:grid;justify-items:center;margin:3px 7px 12px;padding:0;border:0;background:transparent}.profile-switcher .tp-full-scope{display:none}.profile-switcher .tp-compact-scope{display:inline-flex}.tp-profile-grid{grid-template-columns:1fr}}
