.profile-data-settings { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin:14px 0; padding:12px; border:1px solid var(--border); border-radius:8px; }
.profile-data-settings label { display:block; font-size:12px; margin-bottom:5px; color:var(--text-muted); }
.profile-data-settings input, .profile-data-settings select, .profile-data-settings button { padding:7px 10px; border:1px solid var(--input-br); border-radius:6px; background:var(--input-bg); color:var(--text); }
.profile-data-settings button { cursor:pointer; }
#profile-data-status { flex-basis:100%; color:var(--text-muted); font-size:12px; }
.profile-auto-refresh { display:flex; gap:7px; align-items:center; white-space:nowrap; }
.profile-auto-refresh select { font-size:11px; padding:3px; background:var(--input-bg); color:var(--text); border:1px solid var(--border); border-radius:4px; }
.profile-auto-switch { position:relative; display:inline-block; width:30px; height:17px; }
.profile-auto-switch input { position:absolute; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; z-index:1; }
.profile-auto-switch span { display:block; height:17px; border-radius:12px; background:#cbd5e1; }
.profile-auto-switch span::before { content:''; position:absolute; width:13px; height:13px; left:2px; top:2px; background:white; border-radius:50%; transition:transform .15s; }
.profile-auto-switch input:checked + span { background:#22c55e; }
.profile-auto-switch input:checked + span::before { transform:translateX(13px); }
.profile-auto-switch input:focus-visible + span { outline:2px solid #3b82f6; outline-offset:2px; }
.profile-auto-switch input:disabled + span { opacity:.5; }
body:not([data-profile-mode="v2"]) .v2-only { display:none !important; }
.v2-lifecycle-button { flex:1; padding:7px 9px; border:1px solid var(--border); border-radius:7px; background:var(--btn-bg); color:var(--text); font-size:12px; cursor:pointer; }
.v2-compact-actions { display:flex; gap:6px; flex-wrap:nowrap; }
.v2-compact-actions .v2-lifecycle-button,
body[data-profile-mode="v2"] .v2-delete-actions button { flex:1 1 auto; width:auto !important; min-width:0; padding:7px 8px !important; font-size:11px !important; line-height:16px; font-weight:600; white-space:nowrap; text-align:center !important; border-radius:7px; transition:filter .15s; }
.v2-compact-actions .v2-action-enable { background:#e9f8ee; border-color:#b6e4c5; color:#15803d; }
.v2-compact-actions .v2-action-disable { background:#fff0f0; border-color:#f4caca; color:#b91c1c; }
body[data-profile-mode="v2"] .v2-delete-actions .v2-lifecycle-button { background:#fff0f0; border-color:#f4caca; color:#b91c1c; }
body[data-profile-mode="v2"] .v2-delete-actions .v2-action-create { background:#e9f8ee; border-color:#b6e4c5; color:#15803d; }
body[data-profile-mode="v2"] .v2-delete-actions button { padding:7px 5px !important; }
.v2-compact-actions button:hover,
.v2-delete-actions button:hover { filter:brightness(.96); }
.v2-antic-actions { display:flex; align-items:center; gap:5px; flex-wrap:nowrap; }
body[data-profile-mode="v2"] .v2-antic-actions button {
    flex:0 0 auto; padding:5px 7px !important; font-size:10px !important;
    line-height:16px; border-radius:6px;
}
.v2-antic-actions button:disabled { opacity:.55; cursor:wait; }
.v2-import-group-picker { position:relative; flex:1 1 145px; min-width:70px; max-width:180px; margin-left:auto; }
body[data-profile-mode="v2"] .v2-antic-actions #v2-import-group-trigger {
    display:flex; align-items:center; justify-content:space-between; gap:6px;
    width:100% !important; height:28px; border:1px solid var(--input-br);
    background:var(--input-bg); color:var(--text); cursor:pointer; font-weight:500;
}
#v2-import-group-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.v2-import-group-menu { position:absolute; bottom:calc(100% + 5px); right:0; z-index:25; width:230px;
    padding:6px; background:var(--bg); border:1px solid var(--border); border-radius:8px; box-shadow:0 6px 20px #0002; }
.v2-import-group-menu[hidden] { display:none; }
#v2-import-group-search { box-sizing:border-box; width:100%; padding:7px 8px; margin-bottom:5px;
    border:1px solid var(--input-br); border-radius:5px; background:var(--input-bg); color:var(--text); font-size:12px; font-family:inherit; }
#v2-import-group-options { max-height:200px; overflow-y:auto; }
body[data-profile-mode="v2"] .v2-antic-actions #v2-import-group-options button {
    display:block; width:100% !important; padding:7px 8px !important; border:0; border-radius:4px;
    background:transparent; color:var(--text); text-align:left !important; font-size:12px !important;
    font-weight:400; overflow:hidden; text-overflow:ellipsis; cursor:pointer;
}
body[data-profile-mode="v2"] .v2-antic-actions #v2-import-group-options button:hover,
body[data-profile-mode="v2"] .v2-antic-actions #v2-import-group-options button:focus-visible,
body[data-profile-mode="v2"] .v2-antic-actions #v2-import-group-options button[aria-selected="true"] { background:#3b82f622; }
.v2-import-group-empty { padding:8px; color:var(--text-muted); font-size:12px; }
