@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

:root { --bg:#0b0d11; --sidebar:#0d1015; --surface:#11151c; --surface-2:#151a22; --line:#242b35; --line-soft:#1a2029; --text:#e7eaf0; --muted:#89919e; --subtle:#5f6875; --blue:#738dff; --blue-strong:#5875ff; --green:#45d39b; --amber:#e6ad62; --red:#ed7777; --font:'DM Sans',system-ui,sans-serif; --mono:'DM Mono',monospace; }
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; background:var(--bg); color:var(--text); font-family:var(--font); font-size:14px; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.loading-screen,.auth-shell { min-height:100vh; display:grid; place-items:center; color:var(--muted); }
.brand-mark { display:inline-grid; place-items:center; width:28px; height:28px; border:1px solid #354878; border-radius:8px; color:var(--blue); background:#151e3b; }
.app-shell { min-height:100vh; display:flex; }
.sidebar { width:226px; background:var(--sidebar); border-right:1px solid var(--line-soft); display:flex; flex-direction:column; padding:25px 15px 15px; }
.brand { display:flex; align-items:center; gap:10px; padding:0 11px; font-weight:700; letter-spacing:-.02em; }
.workspace-label { color:#4f5968; font-size:10px; letter-spacing:.16em; font-weight:600; margin:49px 12px 12px; }
.nav { display:grid; gap:4px; }
.nav-item { display:flex; align-items:center; gap:11px; width:100%; border:0; color:var(--muted); background:transparent; border-radius:8px; padding:10px 12px; text-align:left; transition:background .16s,color .16s; }
.nav-item:hover { color:var(--text); background:#161b24; }
.nav-item.active { color:#dfe5ff; background:#1c2549; box-shadow:inset 2px 0 var(--blue); }
.nav-item span { flex:1; }
.nav-item em { font-style:normal; font-size:11px; color:#7a8390; }
.sidebar-bottom { margin-top:auto; display:grid; gap:15px; }
.sync-card { display:flex; gap:9px; align-items:center; background:#111e1d; border:1px solid #1d3934; border-radius:9px; padding:11px; }
.sync-card b,.sync-card small,.account b,.account small { display:block; }
.sync-card b { font-size:11px; color:#a4e4cc; font-weight:600; }.sync-card small { margin-top:3px; color:#668a82; font-size:10px; }
.pulse,.dot { width:7px; height:7px; border-radius:50%; display:inline-block; background:var(--green); box-shadow:0 0 0 3px #2a5849; flex-shrink:0; }
.account { width:100%; display:flex; align-items:center; gap:9px; border:0; background:transparent; color:var(--muted); text-align:left; padding:7px; border-radius:8px; }
.account:hover { background:#161b24; color:var(--text); }.account .icon { margin-left:auto; }.avatar { display:grid; place-items:center; width:29px; height:29px; background:#252d42; color:#b5c0ff; border-radius:50%; font-weight:700; }.account-copy { flex:1; min-width:0; }.account b { font-size:11px; color:var(--text); }.account small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:125px; font-size:10px; margin-top:2px; }
.main { flex:1; min-width:0; }
.topbar { height:73px; border-bottom:1px solid var(--line-soft); display:flex; align-items:center; justify-content:space-between; padding:0 clamp(22px,4vw,58px); }
.crumb { display:flex; align-items:center; gap:9px; color:var(--subtle); font-size:12px; }.crumb strong { color:var(--text); font-weight:600; }.slash { color:#39404b; }
.top-actions,.row-actions,.modal-actions { display:flex; align-items:center; gap:9px; }.refresh-status { display:inline-flex; align-items:center; gap:7px; color:#71cda9; font-size:10px; white-space:nowrap; }.refresh-status i { width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px #203e36; }.refresh-status.error { color:var(--amber); }.refresh-status.error i { background:var(--amber); box-shadow:0 0 0 3px #4b3821; }
.content { max-width:1260px; margin:0 auto; padding:47px clamp(22px,4vw,58px) 60px; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:25px; margin-bottom:30px; }.eyebrow { color:var(--blue); font-size:10px; letter-spacing:.16em; font-weight:700; margin-bottom:10px; }.page-heading h1 { margin:0; font-size:26px; letter-spacing:-.04em; font-weight:600; }.page-heading p { margin:8px 0 0; color:var(--muted); font-size:13px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid transparent; border-radius:7px; padding:9px 14px; font-weight:600; font-size:12px; transition:background .16s,border-color .16s,transform .16s; white-space:nowrap; }.button:active { transform:translateY(1px); }.button-primary { color:white; background:var(--blue-strong); }.button-primary:hover { background:#6c87ff; }.button-secondary { color:#b5bdca; background:#161b23; border-color:var(--line); }.button-secondary:hover { color:var(--text); background:#1c232e; }.button.full { width:100%; padding:12px; }
.icon-button { border:0; display:inline-flex; align-items:center; justify-content:center; min-width:31px; min-height:31px; border-radius:6px; color:var(--subtle); background:transparent; transition:color .16s,background .16s; }.icon-button:hover { color:var(--text); background:#1c222b; }.icon-button.danger:hover { color:var(--red); background:#2b1c20; }.text-action { gap:5px; padding:0 6px; color:#8295ee; font-size:11px; }
.metric-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:28px; }.metric { background:var(--surface); border:1px solid var(--line-soft); border-radius:9px; padding:17px 18px; }.metric span,.metric small { display:block; color:var(--muted); font-size:11px; }.metric strong { display:block; font-size:24px; margin:8px 0 3px; letter-spacing:-.04em; font-weight:600; }.metric small.green { color:var(--green); }
.toolbar { display:flex; align-items:center; gap:12px; margin-bottom:12px; }.search { display:flex; align-items:center; gap:8px; flex:1; max-width:450px; color:var(--subtle); border:1px solid var(--line); border-radius:7px; background:var(--surface); padding:0 11px; }.search input { border:0; outline:0; color:var(--text); background:transparent; padding:10px 0; width:100%; font-size:12px; }.search input::placeholder { color:#596270; }.filter-group { display:flex; background:var(--surface); border:1px solid var(--line); border-radius:7px; padding:3px; }.filter { border:0; border-radius:5px; color:var(--muted); background:transparent; padding:6px 10px; font-size:11px; }.filter.selected { background:#252d3b; color:var(--text); }.sort-label { margin-left:auto; display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; }.sort-label select { border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--text); padding:7px 9px; font-size:11px; }.result-count { color:var(--muted); font-size:11px; margin-left:auto; }
.table-wrap { border:1px solid var(--line); border-radius:9px; overflow:auto; background:var(--surface); }.fleet-table { width:100%; border-collapse:collapse; min-width:850px; }.fleet-table th { background:#141921; color:#6f7987; font-size:10px; font-weight:600; text-align:left; letter-spacing:.08em; text-transform:uppercase; padding:12px 14px; border-bottom:1px solid var(--line); }.fleet-table td { padding:14px; border-bottom:1px solid var(--line-soft); color:#c7ccd5; font-size:12px; }.fleet-table tr:last-child td { border-bottom:0; }.fleet-table tbody tr.device-row:hover { background:#151b24; }.device-row td.device-cell { display:flex; align-items:center; gap:9px; min-width:275px; }.device-row.expanded td { border-bottom-color:transparent; }.expand-button { border:0; width:21px; height:27px; padding:0; display:grid; place-items:center; color:#697384; background:transparent; transition:transform .18s; }.expanded .expand-button { transform:rotate(90deg); }.device-symbol,.browser-glyph { display:grid; place-items:center; color:#8395ef; background:#222b4b; border-radius:6px; width:27px; height:27px; }.row-primary { min-width:0; }.row-primary b { display:block; font-weight:600; color:#e0e4eb; }.row-primary small { display:block; max-width:280px; margin-top:3px; overflow:hidden; color:#697382; font-family:var(--mono); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.muted { color:#77818f !important; }.count-badge,.rule-count { display:inline-grid; place-items:center; min-width:22px; height:21px; padding:0 6px; border-radius:5px; color:#adb6c5; background:#202630; font-size:11px; }.status { display:inline-flex; align-items:center; gap:7px; color:#a3abb7; font-size:11px; }.status i { width:6px; height:6px; border-radius:50%; background:#697382; }.status.online { color:#74dab0; }.status.online i { background:var(--green); box-shadow:0 0 0 3px #203e36; }.status.offline i { background:#6a7481; }.actions-col { text-align:right !important; }.row-actions { justify-content:flex-end; }.installation-row { background:#0e1218; }.installation-row td { color:#8d97a5; padding-top:10px; padding-bottom:10px; }.installation-row td.select-col { padding-left:22px; }.installation-indent { display:flex; align-items:center; gap:9px; }.browser-glyph { width:23px; height:23px; border-radius:5px; color:#8290a4; background:#1b222e; }.installation-row code,.rule-line code { font-family:var(--mono); font-size:10px; color:#929cad; }.table-footer { display:flex; justify-content:space-between; color:#606a78; font-size:10px; padding:11px 4px; }.legend { display:flex; align-items:center; gap:7px; }.dot.green { width:6px; height:6px; box-shadow:none; }
.empty { min-height:190px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--muted); text-align:center; }.empty b { color:#ccd1da; font-weight:600; }.empty span { color:#687280; font-size:12px; }.empty-icon { display:grid; place-items:center; width:42px; height:42px; margin-bottom:5px; color:#7183d5; border:1px solid #2b3557; border-radius:50%; background:#171e36; }
.rule-list,.activity-list { display:grid; gap:8px; }.rule-card { display:flex; align-items:center; gap:14px; min-height:76px; padding:15px 17px; border:1px solid var(--line); border-radius:9px; background:var(--surface); transition:border .16s,background .16s; }.rule-card:hover { border-color:#35405a; background:#141a23; }.rule-card.disabled { opacity:.55; }.priority { display:grid; place-items:center; width:28px; height:28px; border-radius:6px; color:#768199; background:#1b2230; font-family:var(--mono); font-size:10px; }.rule-main { flex:1; min-width:0; }.rule-line { display:flex; align-items:center; gap:10px; min-width:0; }.rule-line code { color:#e3b266; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.rule-line span { color:#4e5967; }.rule-line code.destination { color:#73cea2; }.rule-meta { display:flex; align-items:center; gap:7px; margin-top:8px; }.scope-pill,.tag { border-radius:4px; padding:3px 6px; color:#9fa9b9; background:#1e2631; font-size:9px; }.tag.amber { color:#e7bc7a; background:#342a1c; }.rule-updated { color:#687280; font-size:10px; }.switch input { display:none; }.switch span { display:block; position:relative; width:31px; height:18px; border-radius:12px; background:#303844; transition:.16s; }.switch span::after { content:""; position:absolute; top:3px; left:3px; width:12px; height:12px; border-radius:50%; background:#8993a0; transition:.16s; }.switch input:checked + span { background:#325f53; }.switch input:checked + span::after { left:16px; background:var(--green); }
.activity-list { max-width:700px; border:1px solid var(--line); border-radius:9px; background:var(--surface); padding:8px 17px; }.activity-item { display:flex; gap:13px; align-items:flex-start; padding:16px 0; border-bottom:1px solid var(--line-soft); }.activity-item:last-child { border-bottom:0; }.activity-dot { margin-top:5px; width:7px; height:7px; border-radius:50%; background:var(--blue); box-shadow:0 0 0 4px #232d55; }.activity-item b,.activity-item small { display:block; }.activity-item b { font-weight:500; }.activity-item small { margin-top:5px; color:var(--muted); font-size:11px; text-transform:capitalize; }
.activity-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin-bottom:18px; }.panel,.policy-card { border:1px solid var(--line); border-radius:9px; background:var(--surface); padding:20px; }.panel h2,.policy-card h2,.audit-section h2 { margin:0; font-size:15px; }.panel > p,.policy-card > div > p { margin:7px 0 17px; color:var(--muted); font-size:11px; line-height:1.5; }.compact-form { display:grid; gap:13px; }.compact-form textarea { resize:vertical; font-family:var(--mono); font-size:11px; }.delivery-list { display:grid; gap:8px; margin-top:16px; padding-top:13px; border-top:1px solid var(--line-soft); }.delivery-list div { display:flex; justify-content:space-between; gap:10px; color:#ced4de; font-size:11px; }.delivery-list small { color:var(--muted); text-transform:capitalize; } .delivery-list div { flex-wrap:wrap; } .delivery-list .delivery-error { flex-basis:100%; color:#f08a8a; text-transform:none; }.site-list { display:grid; }.site-list > div { display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:9px; align-items:center; padding:9px 0; border-bottom:1px solid var(--line-soft); }.site-list > div:last-child { border-bottom:0; }.site-list span { color:#75819a; font-family:var(--mono); font-size:10px; }.site-list b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:var(--mono); font-size:11px; color:#d9deea; }.site-list em { color:var(--muted); font-size:10px; font-style:normal; white-space:nowrap; }.empty.compact { min-height:100px; }.live-panel { margin:18px 0; }.live-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.live-tabs article { min-width:0; border:1px solid var(--line-soft); border-radius:7px; background:#0e1218; padding:13px; }.live-tab-head { display:flex; justify-content:space-between; gap:8px; align-items:center; }.live-tab-head b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }.live-tabs article > small { display:block; margin-top:12px; color:var(--muted); font-size:10px; }.current-page { display:grid; gap:3px; margin:12px 0; }.current-page strong { color:#7081a3; font-size:9px; text-transform:uppercase; letter-spacing:.08em; }.current-page a,.live-tabs li a { overflow:hidden; color:#aab9fa; font-size:10px; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }.live-tabs ul { display:grid; gap:4px; max-height:118px; overflow:auto; list-style:none; margin:0; padding:0; }.live-tabs li { display:flex; min-width:0; align-items:center; gap:6px; color:var(--muted); font-size:10px; }.live-tabs li span { flex:none; border-radius:3px; padding:2px 4px; background:#202630; color:#8590a1; font-size:9px; }.live-tabs li.active span { color:#8ae1bd; background:#1c352b; }.audit-section { margin-top:26px; }.audit-section h2 { margin-bottom:11px; }.audit-section .activity-list { max-width:none; }.policy-card { display:grid; grid-template-columns:minmax(230px,.72fr) minmax(320px,1.28fr); gap:30px; margin-top:14px; }.policy-card .eyebrow { margin-bottom:8px; }.policy-card .modal-form { padding:0; }.policy-card .checkbox-field { min-height:30px; }.policy-card .field-label textarea { width:100%; border:1px solid var(--line); border-radius:6px; color:var(--text); background:#0e1218; padding:10px; outline:0; }
.panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }.panel-heading p { margin-bottom:0 !important; }.cookie-inventory { margin:18px 0; }.cookie-search { max-width:none; margin:16px 0 12px; }.cookie-table-wrap { overflow:auto; border:1px solid var(--line-soft); border-radius:7px; }.cookie-table { width:100%; min-width:940px; border-collapse:collapse; font-size:11px; }.cookie-table th { padding:10px; background:#141921; color:#758092; font-size:9px; letter-spacing:.08em; text-align:left; text-transform:uppercase; }.cookie-table td { max-width:240px; padding:10px; color:#bac2cf; border-top:1px solid var(--line-soft); vertical-align:top; overflow-wrap:anywhere; }.cookie-table code { color:#bdc8ee; font-family:var(--mono); font-size:10px; }.cookie-table .cookie-value { display:block; max-width:280px; max-height:46px; overflow:auto; color:#d7dcf3; white-space:pre-wrap; }
.settings-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:13px; max-width:900px; }.settings-card { padding:22px; border:1px solid var(--line); border-radius:9px; background:var(--surface); }.settings-icon { display:grid; place-items:center; width:34px; height:34px; color:#a6b2ff; background:#222b4c; border-radius:7px; margin-bottom:15px; }.settings-card h2 { margin:0; font-size:15px; }.settings-card p { margin:8px 0 22px; line-height:1.55; color:var(--muted); font-size:12px; }.field-label { display:flex; flex-direction:column; gap:7px; color:#9da6b4; font-size:11px; }.copy-field { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:6px; padding:4px 5px 4px 10px; }.copy-field code { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#9ba8ea; font-family:var(--mono); font-size:10px; }.callout { display:flex; gap:8px; margin-top:18px; color:#8f98a7; font-size:10px; line-height:1.45; }.callout span:first-child { display:grid; place-items:center; flex:none; width:15px; height:15px; border:1px solid #47516e; border-radius:50%; color:#a1aef2; }.protection-list { display:grid; gap:11px; color:#9aa4b1; font-size:11px; }
.notice { position:fixed; z-index:10; top:86px; right:28px; border:1px solid #275344; border-radius:7px; color:#a6e8cc; background:#13251f; padding:11px 14px; font-size:12px; box-shadow:0 8px 30px #0008; }.notice.error { border-color:#63333b; color:#ffb4b4; background:#29171c; }
.browser-details-button,.browser-id-button { border:0; padding:0; color:inherit; background:transparent; text-align:left; }.browser-details-button { display:flex; width:100%; min-width:0; align-items:center; gap:9px; }.browser-id-button code { color:#929cad; font-family:var(--mono); font-size:10px; }.browser-id-button:hover code,.browser-details-button:hover .row-primary b { color:#b9c7ff; }.installation-row.expanded { background:#111827; }.installation-details td { padding:0 !important; background:#0b0f15; }.browser-monitor { display:grid; gap:18px; padding:22px 24px 26px 55px; border-top:1px solid #25304a; }.browser-monitor-header,.monitor-section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }.browser-monitor-header h3 { margin:0 0 5px; font-size:17px; }.browser-monitor-header code { color:#7789c8; font-family:var(--mono); font-size:10px; }.browser-monitor h4 { margin:0 0 9px; color:#d8deea; font-size:12px; }.browser-monitor section { min-width:0; border:1px solid var(--line-soft); border-radius:8px; background:#0e1218; padding:14px; }.browser-monitor section > p { margin:0; font-size:11px; }.monitor-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.monitor-current-page { display:grid; gap:4px; color:#aab9fa; text-decoration:none; font-size:12px; overflow-wrap:anywhere; }.monitor-current-page small { color:#77818f; font-family:var(--mono); font-size:10px; }.monitor-site-list { display:grid; max-height:164px; overflow:auto; }.monitor-site-list > div { display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:8px; align-items:center; padding:6px 0; border-bottom:1px solid var(--line-soft); }.monitor-site-list > div:last-child { border-bottom:0; }.monitor-site-list span { color:#75819a; font-family:var(--mono); font-size:10px; }.monitor-site-list b { overflow:hidden; color:#d9deea; font-family:var(--mono); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.monitor-site-list em { color:var(--muted); font-size:10px; font-style:normal; }.monitor-tabs { display:grid; gap:6px; max-height:180px; margin:0; padding:0; overflow:auto; list-style:none; }.monitor-tabs li { display:flex; min-width:0; align-items:center; gap:7px; color:var(--muted); font-size:11px; }.monitor-tabs li span { flex:none; border-radius:3px; padding:2px 4px; background:#202630; color:#8590a1; font-size:9px; }.monitor-tabs li.active span { color:#8ae1bd; background:#1c352b; }.monitor-tabs li a { overflow:hidden; color:#aab9fa; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }.monitor-section-heading { margin-bottom:12px; align-items:center; }.monitor-section-heading h4 { margin-bottom:3px; }.monitor-section-heading p { color:var(--muted); font-size:10px; }.monitor-cookie-search { flex:0 1 320px; }.monitor-visits { max-width:none; max-height:410px; overflow:auto; }
.modal-backdrop { position:fixed; inset:0; display:grid; place-items:center; z-index:20; padding:20px; background:#050609c9; }.modal { width:min(560px,100%); max-height:calc(100vh - 40px); overflow:auto; border:1px solid #333c4a; border-radius:11px; background:#131820; box-shadow:0 22px 80px #000b; }.modal-header { display:flex; justify-content:space-between; gap:20px; padding:21px 23px 16px; border-bottom:1px solid var(--line); }.modal-header h2 { margin:0; font-size:17px; }.modal-header p { margin:6px 0 0; color:var(--muted); font-size:11px; }.modal-form { display:grid; gap:16px; padding:21px 23px 23px; }.modal-form input,.modal-form select,.modal-form textarea,.auth-form input { width:100%; border:1px solid var(--line); border-radius:6px; color:var(--text); background:#0e1218; padding:10px; outline:0; font-size:12px; }.modal-form textarea { resize:vertical; font-family:var(--mono); font-size:11px; }.modal-form input:focus,.modal-form select:focus,.modal-form textarea:focus,.auth-form input:focus { border-color:var(--blue); }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.checkbox-field { display:flex; align-items:center; gap:8px; color:#aab2be; font-size:11px; }.checkbox-field span:first-child { display:block; color:#9da6b4; }.checkbox-field input { width:14px; accent-color:var(--blue); }.hidden { display:none !important; }.pair-code-area { display:grid; justify-items:center; gap:10px; padding:27px 20px; border-bottom:1px solid var(--line-soft); text-align:center; }.pair-code-area strong { color:#dfe4ff; font-family:var(--mono); font-size:37px; letter-spacing:.18em; }.pair-code-area > span:last-child { color:var(--muted); font-size:11px; }.modal-actions { justify-content:flex-end; padding:16px 23px; }.modal-help { margin:0 23px 21px; display:grid; gap:4px; border:1px solid #293348; border-radius:7px; padding:12px; color:#aab5cf; background:#151c2e; font-size:11px; line-height:1.45; }.modal-help span { color:#78849b; }
.auth-shell { background:radial-gradient(circle at 50% 35%,#172140 0,#0b0d11 47%); }.auth-panel { width:min(410px,calc(100% - 38px)); padding:36px 34px 28px; border:1px solid #2b3548; border-radius:12px; background:#11161e; box-shadow:0 25px 100px #0008; }.auth-brand { display:flex; align-items:center; gap:9px; color:#dbe0f0; font-weight:700; letter-spacing:-.02em; }.auth-brand > span:last-child { color:#7185ed; font-size:9px; letter-spacing:.14em; margin-left:2px; }.auth-kicker { margin-top:54px; color:var(--blue); font-size:10px; letter-spacing:.16em; font-weight:700; }.auth-panel h1 { margin:10px 0 7px; font-size:26px; letter-spacing:-.04em; }.auth-panel > p { color:var(--muted); font-size:12px; line-height:1.5; margin:0 0 25px; }.auth-form { display:grid; gap:14px; }.auth-form label { display:grid; gap:7px; color:#abb4c1; font-size:11px; }.auth-error { min-height:16px; color:#ff9e9e; font-size:11px; }.text-button { border:0; background:transparent; color:#91a1ed; padding:0; margin:18px auto 0; display:block; font-size:11px; }.security-note { display:flex; align-items:center; justify-content:center; gap:5px; margin-top:30px; color:#5c6675; font-size:10px; }
@media (max-width:850px) { .sidebar { width:69px; padding:20px 10px 12px; }.brand { justify-content:center; padding:0; }.brand > span:last-child,.workspace-label,.nav-item span,.nav-item em,.sync-card,.account-copy,.account > svg { display:none; }.nav { margin-top:45px; }.nav-item { justify-content:center; padding:11px; }.account { justify-content:center; }.content { padding-top:32px; }.metric-row { gap:8px; }.metric { padding:13px; }.metric strong { font-size:20px; } }
@media (max-width:650px) { .topbar { height:60px; padding:0 16px; }.crumb span:first-child,.crumb .slash { display:none; }.content { padding:28px 14px 45px; }.page-heading { align-items:flex-start; flex-direction:column; gap:15px; margin-bottom:22px; }.page-heading h1 { font-size:23px; }.metric-row,.activity-grid,.live-tabs,.policy-card,.monitor-grid { grid-template-columns:1fr; }.toolbar { flex-wrap:wrap; }.search { flex-basis:100%; max-width:none; }.filter-group { order:3; }.sort-label { margin-left:auto; }.settings-grid { grid-template-columns:1fr; }.form-grid { grid-template-columns:1fr; }.modal { max-height:calc(100vh - 20px); }.auth-panel { padding:28px 23px 24px; }.policy-card { gap:18px; }.site-list > div { grid-template-columns:20px minmax(0,1fr); }.site-list em { grid-column:2; }.browser-monitor { padding:18px; }.browser-monitor-header,.monitor-section-heading { align-items:stretch; flex-direction:column; }.monitor-cookie-search { flex-basis:auto; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; } }
.browser-monitor-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }.browser-row-button { border:1px solid #2f3b53; border-radius:5px; padding:5px 7px; color:#b9c7ff; background:#151d2b; font-size:10px; white-space:nowrap; }.browser-row-button:hover { border-color:#6174b5; background:#1d2940; }
.monitor-cookie-section { padding:0 !important; overflow:hidden; }.cookie-view-toggle { display:flex; width:100%; align-items:center; justify-content:space-between; gap:14px; border:0; padding:14px; color:var(--text); background:transparent; text-align:left; }.cookie-view-toggle:hover { background:#141b24; }.cookie-view-toggle > span { display:grid; gap:4px; }.cookie-view-toggle b { font-size:12px; font-weight:600; }.cookie-view-toggle small { color:var(--muted); font-size:10px; }.cookie-view-toggle > svg { flex:none; color:#7e8aa0; transition:transform .18s; }.cookie-view-toggle[aria-expanded="true"] > svg { transform:rotate(90deg); }.cookie-viewer-body { padding:0 14px 14px; border-top:1px solid var(--line-soft); }.cookie-viewer-closed { padding:0 14px 14px; color:#687280 !important; font-size:10px !important; }
.visit-alert-card { grid-column:1 / -1; max-width:900px; }.visit-alert-card form { max-width:560px; }.alert-delivery-status { color:#72cda9; font-size:10px; line-height:1.45; }.alert-delivery-status.error { color:var(--red); }
.autofill-fields { display:grid; gap:5px; margin-top:9px; max-height:150px; overflow:auto; }.autofill-fields span { display:flex; justify-content:space-between; gap:12px; color:#aeb7c5; font-size:10px; border-top:1px solid var(--line-soft); padding-top:5px; }.autofill-fields code { color:#d7dcf3; font-family:var(--mono); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.autofill-capture-meta { color:var(--green) !important; }
.autofill-record-toolbar { display:flex; gap:10px; margin:0 0 14px; }.autofill-record-toolbar input { flex:1; }.autofill-record-toolbar input,.autofill-record-toolbar select { min-width:0; border:1px solid var(--line); border-radius:7px; color:var(--text); background:var(--surface); padding:9px 11px; outline:0; }.autofill-record-toolbar input:focus,.autofill-record-toolbar select:focus { border-color:var(--blue); }.autofill-master-detail { display:grid; grid-template-columns:minmax(250px,.8fr) minmax(0,1.5fr); gap:14px; }.autofill-record-list { max-height:680px; overflow:auto; }.autofill-record-list h2 small { color:var(--muted); font-size:11px; font-weight:400; }.autofill-record-row { display:grid; gap:4px; width:100%; padding:11px; border:0; border-top:1px solid var(--line-soft); background:transparent; color:inherit; text-align:left; cursor:pointer; }.autofill-record-row:hover,.autofill-record-row.selected { background:rgba(104,127,255,.12); }.autofill-record-row span,.autofill-record-row small { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.autofill-record-detail { min-width:0; }.detail-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }.autofill-record-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; }.autofill-record-meta span { min-width:0; color:var(--text); overflow-wrap:anywhere; }.autofill-record-meta b { display:block; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:3px; }.autofill-field-table { border:1px solid var(--line-soft); }.autofill-field-table>div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; padding:9px 10px; border-top:1px solid var(--line-soft); }.autofill-field-table>div:first-child { border-top:0; color:var(--muted); font-size:10px; text-transform:uppercase; }.selectable-value { user-select:text; overflow-wrap:anywhere; }.selectable-value em { color:var(--muted); font-size:10px; font-style:normal; margin-left:6px; }.selectable-value.masked { letter-spacing:.14em; color:var(--muted); }.sensitive-tag { color:var(--muted); font-size:9px; font-style:normal; text-transform:uppercase; letter-spacing:.06em; margin-left:6px; border:1px solid var(--line-soft); border-radius:4px; padding:1px 5px; }.detail-actions { display:flex; align-items:center; gap:8px; }
@media (max-width: 760px) { .autofill-record-toolbar { flex-wrap:wrap; }.autofill-record-toolbar input { flex-basis:100%; }.autofill-master-detail { grid-template-columns:1fr; }.autofill-record-list { max-height:360px; }.autofill-record-meta { grid-template-columns:1fr; } }
.visit-alert-layout { align-items:start; }.alert-destinations { display:grid; gap:8px; margin:0; padding:12px; border:1px solid var(--line); border-radius:8px; }.alert-destinations legend { padding:0 6px; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.08em; }.alert-rule-list .rule-card { grid-template-columns:minmax(0,1fr) auto; }.alert-rule-list .rule-main { display:grid; gap:8px; }.alert-rule-list .rule-main > small code { margin-right:5px; }
.preset-icon { width:44px; height:44px; border-radius:10px; object-fit:cover; background:#202936; }.preset-picker { padding:12px; border:1px solid var(--line); border-radius:9px; background:#111821; }
.extension-builder { align-items:start; }.extension-build-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.extension-build-options article { display:grid; align-content:start; gap:8px; min-height:156px; padding:16px; border:1px solid var(--line); border-radius:8px; background:#0e1218; }.extension-build-options article b { color:#e0e5ef; font-size:12px; }.extension-build-options article p { min-height:48px; margin:0; color:var(--muted); font-size:10px; line-height:1.5; }.extension-build-options .callout { grid-column:1 / -1; margin-top:0; }
@media (max-width:650px) { .extension-build-options { grid-template-columns:1fr; }.extension-build-options .callout { grid-column:1; } }
.cookie-tools { display:grid; gap:13px; margin:14px 0; padding:14px; border:1px solid #29344a; border-radius:8px; background:#101722; }.cookie-report { display:grid; grid-template-columns:repeat(7,minmax(70px,1fr)); gap:7px; }.cookie-report span { display:grid; gap:3px; padding:9px; border:1px solid var(--line-soft); border-radius:6px; color:var(--muted); font-size:9px; }.cookie-report b { color:var(--text); font-size:15px; }.cookie-tool-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }.cookie-tool-grid input,.cookie-tool-grid select { min-width:0; width:100%; border:1px solid var(--line); border-radius:6px; color:var(--text); background:#0b1017; padding:9px; font-size:10px; }.callout.error { margin:0; color:#ffb4b4; }.cookie-table td small { display:block; max-width:160px; margin-top:4px; color:var(--muted); font-size:9px; overflow-wrap:anywhere; }
@media (max-width:850px) { .cookie-report { grid-template-columns:repeat(4,1fr); }.cookie-tool-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:650px) { .cookie-report,.cookie-tool-grid { grid-template-columns:1fr; } }
.fleet-table tbody tr.device-row.drop-target { background:#18233d; box-shadow:inset 0 0 0 2px var(--blue); }
.installation-row[draggable="true"] { cursor:grab; }
.installation-row[draggable="true"]:active { cursor:grabbing; }
.installation-row.dragging { opacity:.4; }
.installer-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.manual-downloads { grid-column:1 / -1; display:flex; align-items:center; gap:12px; color:var(--muted); font-size:10px; }
.manual-downloads .text-button { margin:0; }
.monitor-tabs li a { flex:1; }
.monitor-tabs li .button { flex:none; min-height:28px; padding:5px 9px; font-size:10px; }
.monitor-tabs .tab-site-data-panel { display:block; margin:2px 0 8px; padding:12px; border:1px solid #2a3550; border-radius:7px; background:#0a0f17; color:var(--text); }
.tab-site-data-header,.tab-site-data-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.tab-site-data-header small { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.tab-site-data-toolbar { margin:12px 0 8px; }
.tab-site-data-modes { display:flex; flex-wrap:wrap; gap:5px; }
.tab-site-data-modes button { border:1px solid var(--line); border-radius:5px; padding:5px 8px; color:var(--muted); background:#111823; font-size:10px; cursor:pointer; }
.tab-site-data-modes button.active { border-color:#4f6dcb; color:#dce5ff; background:#1b2a50; }
.tab-site-data-toolbar .search { flex:0 1 260px; }
.tab-site-data-table { max-height:250px; overflow:auto; }
.tab-site-data-table table { width:100%; border-collapse:collapse; }
.tab-site-data-table th,.tab-site-data-table td { padding:7px; border-bottom:1px solid var(--line-soft); text-align:left; font-size:10px; vertical-align:top; }
.tab-site-data-table td code { display:block; max-width:420px; overflow:hidden; color:#b7c4e8; text-overflow:ellipsis; white-space:nowrap; }
.open-remote-tab-form { display:flex; flex:0 1 430px; gap:7px; }
.open-remote-tab-form input { min-width:0; flex:1; }
.tab-close-button { flex:none; color:#9ca7ba; }
.tab-close-button:hover { color:#ff9b9b; }
@media (max-width:780px) { .open-remote-tab-form { width:100%; flex-basis:100%; }.monitor-section-heading { flex-wrap:wrap; } }.select-col { width:38px; text-align:center !important; }
.fleet-table th.select-col { padding-top:12px; padding-bottom:12px; }
.row-select { width:15px; height:15px; margin:0; accent-color:var(--blue-strong); cursor:pointer; vertical-align:middle; }
.select-all { display:inline-flex; align-items:center; gap:7px; margin:10px 0 4px; color:var(--muted); font-size:10px; }
.bulk-bar { display:flex; align-items:center; gap:10px; margin:12px 0; padding:9px 12px; border:1px solid #3b4a6f; border-radius:8px; color:#d7def0; background:#161f33; font-size:11px; }
.bulk-bar > span { flex:1; }
.button-danger { color:#ffd9d9; background:#3a1e22; border-color:#5d2b31; }
.button-danger:hover { color:#fff; background:#4c262c; }
.rule-select { display:inline-flex; align-items:center; }
.rule-select .row-select { width:14px; height:14px; }
.autofill-record-item { display:flex; align-items:flex-start; gap:2px; border-top:1px solid var(--line-soft); }
.autofill-record-item .autofill-record-row { flex:1; min-width:0; border-top:0; }
.record-select { display:inline-flex; align-items:center; padding:13px 4px 0 11px; }
.autofill-record-item.selected { background:rgba(104,127,255,.12); }
.autofill-record-item.selected .autofill-record-row { background:transparent; }
.autofill-field-sections { display:grid; gap:16px; }
.autofill-field-section h3 { margin:0 0 4px; color:#dfe5f1; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.autofill-field-section h3 small { margin-left:6px; color:var(--muted); font-size:10px; font-weight:400; }
.field-section-help { margin:0 0 8px; color:var(--muted); font-size:10px; }
@media (max-width:760px) { .autofill-record-item { gap:0; } }
.keyword-tag { color:var(--blue-strong); font-size:9px; font-style:normal; text-transform:uppercase; letter-spacing:.06em; margin-left:6px; border:1px solid rgba(104,127,255,.45); border-radius:4px; padding:1px 5px; }

.autofill-record-group { margin-top:10px; }
.autofill-record-group-title { margin:6px 2px 2px; color:var(--muted); font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.autofill-record-group-title small { margin-left:6px; font-weight:400; }
.record-group-help { margin:0 2px 4px; color:var(--muted); font-size:11px; }

.field-category-tag { color:var(--muted); font-size:9px; font-style:normal; text-transform:uppercase; letter-spacing:.06em; margin-left:6px; border:1px solid var(--line-soft); border-radius:4px; padding:1px 5px; }

/* Build 76: dashboard UX - sticky scroll, keyboard list navigation, search footer */
.autofill-record-list,.table-wrap,[data-nav-list] { scroll-behavior:auto; }
.record-list-more { position:sticky; bottom:0; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:10px; padding:10px 2px 2px; background:linear-gradient(180deg,transparent,var(--surface, #0f141b) 42%); border-top:1px solid var(--line-soft); color:var(--muted); font-size:11px; }
.record-list-more-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.record-list-more-actions .button { padding:6px 10px; font-size:11px; }
.record-list-more .text-button { color:var(--blue, #687fff); background:transparent; border:0; cursor:pointer; font-size:11px; padding:6px 4px; }
.record-list-more .text-button:hover { text-decoration:underline; }
[data-nav-row]:focus { outline:none; }
[data-nav-row]:focus-visible,.autofill-record-row:focus-visible,.device-row:focus-visible,.rule-card:focus-visible { outline:2px solid var(--blue, #687fff); outline-offset:-2px; }
.autofill-record-item:focus-within,.device-row:focus-within,.rule-card:focus-within { background:rgba(104,127,255,.10); }
.autofill-record-item.selected:focus-within { background:rgba(104,127,255,.16); }
.autofill-record-list:focus-within { border-color:#35405a; }
.rule-list [data-nav-row] { border-radius:9px; }

.device-autofill-body { flex:1; min-width:0; }
.device-autofill-toggle { display:flex; width:100%; align-items:center; justify-content:space-between; gap:10px; padding:0; border:0; background:transparent; color:inherit; text-align:left; font:inherit; cursor:pointer; }
.device-autofill-toggle:hover .device-autofill-head b { color:#b9c7ff; }
.device-autofill-head { min-width:0; }
.device-autofill-head b { display:block; font-weight:500; overflow-wrap:anywhere; }
.device-autofill-head small { display:block; margin-top:5px; color:var(--muted); font-size:11px; }
.device-autofill-toggle svg { flex:none; color:var(--muted); transition:transform .16s; }
.device-autofill-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
.device-autofill-toggle:focus-visible { outline:2px solid var(--blue, #687fff); outline-offset:2px; border-radius:6px; }
.device-autofill-fields { display:grid; margin-top:10px; overflow:hidden; border:1px solid var(--line-soft); border-radius:7px; background:#0b0f15; }
.device-autofill-field { display:grid; grid-template-columns:minmax(120px,.6fr) minmax(0,1fr) auto; gap:10px; align-items:center; padding:8px 10px; border-top:1px solid var(--line-soft); font-size:11px; }
.device-autofill-field:first-child { border-top:0; }
.device-autofill-field > span { color:var(--muted); overflow-wrap:anywhere; }
.device-autofill-field .sensitive-tag { margin-left:0; }
.device-autofill-value { color:#d9deea; font-family:var(--mono); font-size:11px; overflow-wrap:anywhere; user-select:text; background:#0e1218; border:1px solid var(--line-soft); border-radius:4px; padding:2px 6px; }
.monitor-user-agent { display:flex; flex-wrap:wrap; align-items:center; gap:6px; max-width:760px; margin:8px 0 0; color:var(--muted); font-size:10px; }
.monitor-user-agent > span { flex:none; text-transform:uppercase; letter-spacing:.1em; font-size:9px; color:#75819a; }
.monitor-user-agent em { flex:none; border-radius:999px; padding:1px 7px; color:#aab9fa; background:#1b2334; font-style:normal; font-size:9px; }
.monitor-user-agent code { min-width:0; color:#8f9bb3; font-family:var(--mono); font-size:10px; overflow-wrap:anywhere; }
.monitor-user-agent.missing { color:#687280; }
.field-hint { display:block; margin-top:2px; color:#7c8698; font-size:10px; line-height:1.5; font-weight:400; }.field-hint code { color:#9ba8ea; font-family:var(--mono); font-size:10px; }

/* Build 78: element replacer view, shortcut hints, device quick actions */
kbd { display:inline-block; min-width:16px; padding:2px 6px; border:1px solid #39445c; border-bottom-width:2px; border-radius:5px; color:#dfe5ff; background:#1a2231; font-family:var(--mono); font-size:10px; line-height:1.4; text-align:center; }
.shortcut-strip { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:-8px 0 20px; padding:11px 14px; border:1px solid #2a3550; border-radius:9px; color:#c6cfe4; background:#101725; font-size:11px; }
.shortcut-strip > span { color:var(--muted); }
.shortcut-strip small { color:var(--subtle); font-size:10px; }
.shortcut-divider { width:1px; height:16px; margin:0 4px; background:var(--line); }
.replace-card { align-items:flex-start; }
.replace-card .rule-main { display:grid; gap:9px; }
.replace-side { display:flex; flex-direction:column; align-items:flex-end; gap:9px; flex:none; }
.replace-original { border:1px solid var(--line-soft); border-radius:7px; background:#0b0f15; }
.replace-original > summary { padding:8px 11px; color:var(--muted); font-size:10px; cursor:pointer; list-style:none; }
.replace-original > summary::-webkit-details-marker { display:none; }
.replace-original > summary::before { content:'\25B8'; display:inline-block; margin-right:7px; color:var(--subtle); transition:transform .15s; }
.replace-original[open] > summary::before { transform:rotate(90deg); }
.replace-original > summary:hover { color:var(--text); }
.replace-source { max-height:280px; margin:0; padding:10px 12px; border-top:1px solid var(--line-soft); color:#9fb0cc; background:#080c12; font-family:var(--mono); font-size:10px; line-height:1.55; white-space:pre-wrap; overflow:auto; overflow-wrap:anywhere; }
.replace-editor { display:grid; gap:9px; padding:11px; border:1px solid #2a3550; border-radius:8px; background:#0e1420; }
.replace-editor textarea { width:100%; box-sizing:border-box; min-height:120px; padding:10px; border:1px solid var(--line); border-radius:6px; color:#dfe5f1; background:#080c12; font-family:var(--mono); font-size:11px; line-height:1.55; }
.replace-editor .form-actions { display:flex; flex-wrap:wrap; gap:8px; }
.replace-steps { display:grid; gap:7px; margin:0; padding-left:20px; color:var(--muted); font-size:11px; line-height:1.55; }
.tag.green { color:#8fe3c0; background:#1b3a30; }
@media (max-width:860px) { .replace-side { flex-direction:row; align-items:center; } .replace-card { flex-wrap:wrap; } }
.replace-layout { grid-template-columns:minmax(320px,.85fr) minmax(0,1.25fr); }
.field-label input,.field-label select { width:100%; box-sizing:border-box; border:1px solid var(--line); border-radius:6px; color:var(--text); background:#0e1218; padding:10px; outline:0; font-size:12px; }
.field-label input:focus,.field-label select:focus { border-color:var(--blue); }
@media (max-width:1100px) { .replace-layout { grid-template-columns:minmax(0,1fr); } }
.settings-section { margin-top:34px; max-width:900px; }
.activity-grid.is-single { grid-template-columns:1fr; max-width:900px; }

/* ---------- revamp ---------- */

/* ==========================================================================
   CONTROL CENTER V2 — aurora glass revamp
   Appended after the original sheet so every existing class contract holds.
   ========================================================================== */
:root {
  --bg: #07090e;
  --sidebar: #0a0d14;
  --surface: #10141c;
  --surface-2: #141924;
  --surface-3: #1a2130;
  --line: #242c3a;
  --line-soft: #1a212c;
  --text: #eef1f8;
  --muted: #9aa3b5;
  --subtle: #6b7484;
  --blue: #738dff;
  --blue-strong: #5875ff;
  --green: #45d39b;
  --amber: #e6ad62;
  --red: #ed7777;
  --violet: #a78bfa;
  --cyan: #67e8f9;
  --pink: #f472b6;
  --display: 'Sora', 'DM Sans', system-ui, sans-serif;
  --grad-primary: linear-gradient(135deg, #738dff 0%, #a78bfa 52%, #67e8f9 110%);
  --grad-mint: linear-gradient(135deg, #45d39b, #67e8f9);
  --grad-warm: linear-gradient(135deg, #e6ad62, #f472b6);
  --glass: rgba(16, 20, 28, .72);
  --shadow: 0 30px 70px -34px rgba(0, 0, 0, .85);
}

html, body { background: var(--bg); }
body {
  background:
    radial-gradient(58% 44% at 12% -4%, rgba(115, 141, 255, .13), transparent 62%),
    radial-gradient(42% 38% at 88% 4%, rgba(167, 139, 250, .11), transparent 66%),
    radial-gradient(52% 46% at 50% 108%, rgba(69, 211, 155, .06), transparent 64%),
    var(--bg);
  background-attachment: fixed;
}
body::before {
  content: '';
  position: fixed;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(28% 26% at 24% 22%, rgba(115, 141, 255, .16), transparent 70%),
    radial-gradient(24% 22% at 76% 12%, rgba(103, 232, 249, .10), transparent 70%),
    radial-gradient(26% 24% at 62% 76%, rgba(167, 139, 250, .10), transparent 70%);
  filter: blur(38px);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 10%, transparent 82%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 10%, transparent 82%);
}
.app-shell, .auth-shell, .loading-screen { position: relative; z-index: 1; }

::selection { background: rgba(115, 141, 255, .38); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #333d51 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #3a4662, #232b3a); border-radius: 99px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #52628a, #2c3548); }

/* ---------- Shell ---------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, rgba(13, 17, 26, .94), rgba(7, 10, 15, .97));
  border-right: 1px solid rgba(115, 141, 255, .11);
  box-shadow: 40px 0 90px -70px #000;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.sidebar::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  pointer-events: none;
  background: radial-gradient(70% 100% at 30% 0%, rgba(115, 141, 255, .16), transparent 72%);
}
.brand { position: relative; z-index: 1; }
.brand-mark {
  width: 33px;
  height: 33px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: conic-gradient(from 210deg at 50% 50%, #738dff, #a78bfa, #67e8f9, #738dff);
  color: #0a1020;
  box-shadow: 0 10px 26px -12px rgba(115, 141, 255, .9), inset 0 1px rgba(255, 255, 255, .45);
  animation: brandFloat 7s ease-in-out infinite;
}
.brand-mark svg { stroke-width: 2.1; }
.brand > span:last-child {
  font-family: var(--display);
  font-size: 13.5px;
  letter-spacing: -.03em;
  background: linear-gradient(110deg, #fff, #b9c6ff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.workspace-label { color: #64708a; margin-top: 44px; }
.nav { gap: 3px; }
.nav-item {
  position: relative;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 11px;
  overflow: hidden;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-item svg { opacity: .7; transition: transform .22s ease, opacity .22s ease, color .22s ease; }
.nav-item:hover {
  color: var(--text);
  background: linear-gradient(90deg, rgba(115, 141, 255, .11), rgba(115, 141, 255, .01));
  border-color: rgba(115, 141, 255, .12);
  transform: translateX(2px);
}
.nav-item:hover svg { opacity: 1; transform: scale(1.08); }
.nav-item.active {
  color: #e6ebff;
  background: linear-gradient(90deg, rgba(115, 141, 255, .26), rgba(167, 139, 250, .10) 65%, transparent);
  border-color: rgba(115, 141, 255, .25);
  box-shadow: inset 2px 0 0 var(--blue), 0 12px 30px -22px #738dff;
}
.nav-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  box-shadow: 0 0 12px #738dff;
}
.nav-item.active svg { opacity: 1; color: #c9d4ff; }
.nav-item em {
  font-size: 10px;
  font-weight: 600;
  color: #aab6d6;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .07);
  padding: 1px 7px;
  border-radius: 99px;
}
.sync-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(20, 44, 39, .85), rgba(11, 20, 19, .9));
  border: 1px solid rgba(69, 211, 155, .22);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}
.sync-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -60% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 211, 155, .22), transparent 68%);
}
.pulse {
  box-shadow: 0 0 0 3px rgba(69, 211, 155, .14), 0 0 12px rgba(69, 211, 155, .8);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.account { border: 1px solid transparent; transition: background .18s, border-color .18s; }
.account:hover { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.avatar {
  background: conic-gradient(from 200deg, #738dff, #a78bfa, #67e8f9, #738dff);
  color: #0a1020;
  font-weight: 800;
  box-shadow: 0 6px 18px -8px rgba(115, 141, 255, .9);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 11, 16, .68);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.crumb { color: #6f7a8d; letter-spacing: .01em; }
.crumb strong { color: #e8ecf7; }
.slash { color: #384256; }
.refresh-status { color: #86e7c1; }
.content { max-width: 1340px; padding-top: 42px; animation: viewIn .32s cubic-bezier(.22, 1, .36, 1) both; }

/* ---------- Type ---------- */
h1, h2, h3, .metric strong, .target-count b, .target-head-stats b { font-family: var(--display); }
.page-heading h1 {
  font-size: clamp(26px, 2.3vw, 35px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  background: linear-gradient(180deg, #ffffff 18%, #c4cfe8 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 40px rgba(115, 141, 255, .12);
}
.page-heading p { color: #98a2b5; max-width: 760px; line-height: 1.55; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #93a4ff;
  font-weight: 700;
  letter-spacing: .2em;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  box-shadow: 0 0 10px rgba(115, 141, 255, .8);
}

/* ---------- Buttons ---------- */
/* Buttons use the pre-revamp definitions near the top of this file: flat
   blue-strong fill, white label, 7px radius, no gradient, sheen or lift. The
   revamp overrides were removed on request. Everything else — ambience,
   vibrance, rule colours, autofill rows — keeps the newer styling. */
.icon-button {
  border-radius: 9px;
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.icon-button:hover {
  background: rgba(115, 141, 255, .14);
  border-color: rgba(115, 141, 255, .3);
  color: #e3e9ff;
  transform: translateY(-1px);
}
.icon-button.danger:hover { background: rgba(237, 119, 119, .14); border-color: rgba(237, 119, 119, .4); color: #ffb4b4; }
.filter { border-radius: 99px; transition: all .16s ease; }
.filter:hover { border-color: rgba(115, 141, 255, .35); color: #e4e9ff; }
.filter.selected {
  background: rgba(115, 141, 255, .17);
  border-color: rgba(115, 141, 255, .45);
  color: #e2e8ff;
  box-shadow: 0 0 0 1px rgba(115, 141, 255, .14), 0 8px 20px -14px #738dff;
}
.text-button { color: #94a3c9; transition: color .16s; }
.text-button:hover { color: #c9d5ff; }

/* ---------- Inputs ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], input[type="number"], input[type="tel"], input[type="date"], textarea, select {
  background: #0b0f16;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus,
input[type="url"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="date"]:focus,
textarea:focus, select:focus {
  outline: none;
  border-color: rgba(115, 141, 255, .62);
  box-shadow: 0 0 0 3px rgba(115, 141, 255, .14), 0 0 24px -12px #738dff;
  background: #0c111a;
}
.search {
  background: #0a0e15;
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .16s, box-shadow .16s;
}
.search:focus-within { border-color: rgba(115, 141, 255, .55); box-shadow: 0 0 0 3px rgba(115, 141, 255, .12); }
.search input[type="search"] { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.toolbar {
  background: rgba(12, 16, 23, .62);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.field-hint { color: #7e8a9f; }
.field-hint code { background: rgba(115, 141, 255, .12); border: 1px solid rgba(115, 141, 255, .18); color: #b9c6ff; }
.callout {
  background: linear-gradient(140deg, rgba(115, 141, 255, .09), rgba(103, 232, 249, .04));
  border: 1px solid rgba(115, 141, 255, .18);
  border-radius: 12px;
}

/* ---------- Metrics ---------- */
.metric-row { gap: 14px; margin-bottom: 26px; }
.metric {
  position: relative;
  overflow: hidden;
  padding: 19px 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(23, 29, 42, .88), rgba(11, 14, 20, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.metric::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad-primary);
  opacity: .85;
}
.metric:nth-child(2)::before { background: var(--grad-mint); }
.metric:nth-child(3)::before { background: var(--grad-warm); }
.metric::after {
  content: '';
  position: absolute;
  right: -34px;
  top: -44px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 141, 255, .16), transparent 68%);
  pointer-events: none;
}
.metric:hover { transform: translateY(-2px); border-color: rgba(115, 141, 255, .34); box-shadow: var(--shadow); }
.metric span { color: #8d98ac; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.metric strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric:nth-child(2) strong { background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; }
.metric:nth-child(3) strong { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }
.metric small { color: #7b879c; }
.metric small.green { color: #6fe3b6; }

/* ---------- Surfaces ---------- */
.panel, .settings-card, .policy-card, .live-panel, .rule-card, .visit-alert-card, .replace-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 25, 36, .86), rgba(11, 14, 20, .93));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.panel h2, .settings-card h2, .policy-card h2 { font-family: var(--display); letter-spacing: -.02em; }
.panel:hover, .settings-card:hover { border-color: rgba(115, 141, 255, .22); }
.settings-icon, .preset-icon {
  background: linear-gradient(145deg, rgba(115, 141, 255, .18), rgba(167, 139, 250, .08));
  border: 1px solid rgba(115, 141, 255, .24);
  color: #c3ceff;
}
.settings-grid { gap: 16px; }

/* ---------- Tables ---------- */
.table-wrap {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 22, 31, .88), rgba(9, 12, 18, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .03), var(--shadow);
  overflow: auto;
}
.fleet-table { border-collapse: separate; border-spacing: 0; }
.fleet-table thead th {
  background: rgba(12, 16, 23, .92);
  color: #7f8ba1;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.fleet-table tbody tr { transition: background .16s ease; }
.fleet-table tbody tr:hover > td { background: rgba(115, 141, 255, .045); }
.fleet-table tbody tr.device-row.expanded > td { background: rgba(115, 141, 255, .05); }
.fleet-table td { border-bottom: 1px solid var(--line-soft); }
.installation-row > td { background: rgba(6, 9, 14, .5); }
.installation-row:hover > td { background: rgba(115, 141, 255, .055); }
.row-primary b { letter-spacing: -.01em; }
.row-primary small { color: #657187; font-family: var(--mono); }
.count-badge {
  background: rgba(115, 141, 255, .13);
  border: 1px solid rgba(115, 141, 255, .22);
  color: #c3ceff;
  border-radius: 7px;
}
.rule-count {
  color: #cdd7ff;
  background: rgba(115, 141, 255, .1);
  border: 1px solid rgba(115, 141, 255, .18);
  border-radius: 7px;
}
.device-symbol {
  background: linear-gradient(145deg, rgba(115, 141, 255, .16), rgba(167, 139, 250, .06));
  border: 1px solid rgba(115, 141, 255, .22);
  color: #b9c6ff;
  border-radius: 9px;
}
.expand-button { color: #7a869c; transition: color .16s, transform .2s; }
.expand-button:hover { color: #c8d3ff; }
.device-row.expanded .expand-button { transform: rotate(90deg); color: #a9b8ff; }
.browser-glyph {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: #94a2bb;
  border-radius: 9px;
}
.browser-row-button {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #a8b3c7;
  transition: all .16s;
}
.browser-row-button:hover { color: #e0e6f7; border-color: rgba(115, 141, 255, .4); background: rgba(115, 141, 255, .1); }
.table-footer { color: #6f7b90; }
.table-footer .legend { color: #6f7b90; }

/* ---------- Status ---------- */
.status {
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}
.status.online { color: #82f0c7; background: rgba(69, 211, 155, .09); border-color: rgba(69, 211, 155, .24); }
.status.online i { box-shadow: 0 0 0 3px rgba(69, 211, 155, .12), 0 0 10px rgba(69, 211, 155, .9); animation: pulseDot 2.4s ease-in-out infinite; }
.status.offline { color: #8b95a8; background: rgba(255, 255, 255, .03); border-color: var(--line); }
.tag { border-radius: 4px; }
.tag.amber { background: #342a1c; border: 1px solid transparent; color: #e7bc7a; }

/* ---------- Rule cards ---------- */
/* The pre-revamp mixture: amber source, muted arrow, green destination and
   flat grey pills. Restored as asked — it keeps the two sides of a rewrite
   legible at a glance without tinting the whole card. */
.rule-card { border-radius: 9px; transition: border-color .16s ease, background .16s ease; }
.rule-card:hover { border-color: #35405a; background: #141a23; transform: none; box-shadow: none; }
.rule-card .priority { font-family: var(--mono); color: #768199; background: #1b2230; opacity: 1; }
.rule-line code { background: none; border: 0; border-radius: 0; padding: 0; color: #e3b266; font-size: 11px; }
.rule-line span { color: #4e5967; }
.rule-line code.destination { background: none; border: 0; color: #73cea2; }
.scope-pill { background: #1e2631; border: 1px solid transparent; border-radius: 4px; color: #9fa9b9; }
.rule-updated { color: #687280; }

/* ---------- Empty states ---------- */
.empty { color: #8a96aa; }
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #aab8ff;
  background: linear-gradient(145deg, rgba(115, 141, 255, .16), rgba(167, 139, 250, .06));
  border: 1px solid rgba(115, 141, 255, .22);
  box-shadow: 0 16px 34px -24px rgba(115, 141, 255, .9);
}
.empty b { color: #dfe5f2; font-family: var(--display); }

/* ---------- Modal / notice ---------- */
.modal-backdrop { background: rgba(4, 6, 10, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal {
  position: relative;
  background: linear-gradient(168deg, #161c28, #0a0d13 78%);
  border: 1px solid rgba(115, 141, 255, .24);
  border-radius: 20px;
  box-shadow: 0 50px 110px -40px #000, inset 0 1px rgba(255, 255, 255, .06);
  animation: modalIn .3s cubic-bezier(.22, 1, .36, 1) both;
}
.modal::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 20px 20px 0 0;
  opacity: .8;
}
.modal-header h2 { font-family: var(--display); letter-spacing: -.02em; }
.notice {
  top: 84px;
  right: 26px;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: noticeIn .32s cubic-bezier(.22, 1, .36, 1) both;
}
.notice.success { border-color: rgba(69, 211, 155, .3); background: rgba(15, 39, 32, .88); color: #a9f0d3; box-shadow: 0 20px 45px -20px rgba(69, 211, 155, .4); }
.notice.error { border-color: rgba(237, 119, 119, .32); background: rgba(45, 19, 21, .9); color: #ffc0c0; box-shadow: 0 20px 45px -20px rgba(237, 119, 119, .35); }

/* ---------- Auth ---------- */
.auth-shell {
  background:
    radial-gradient(50% 46% at 50% 28%, rgba(115, 141, 255, .18), transparent 66%),
    radial-gradient(40% 36% at 78% 10%, rgba(167, 139, 250, .13), transparent 70%),
    var(--bg);
}
.auth-panel {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(115, 141, 255, .22);
  background: linear-gradient(165deg, rgba(24, 30, 43, .92), rgba(10, 13, 19, .96));
  box-shadow: 0 50px 120px -50px #000, inset 0 1px rgba(255, 255, 255, .06);
  overflow: hidden;
}
.auth-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad-primary);
}
.auth-panel::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 141, 255, .2), transparent 68%);
  pointer-events: none;
}
.auth-brand { font-family: var(--display); }
.auth-kicker { color: #8ea0ff; letter-spacing: .2em; }
.auth-panel h1 {
  font-family: var(--display);
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff, #c3cee8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-form label { color: #9aa5b9; }
.auth-form input { margin-top: 6px; }
.auth-error { color: #ffb3b3; }
.security-note { color: #6f7b90; }

/* ---------- Site favicons ---------- */
.site-chip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, #f5f7fc, #dde3ef);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 7px 16px -9px #000, inset 0 1px rgba(255, 255, 255, .7);
  flex: 0 0 auto;
  overflow: visible;
  vertical-align: middle;
}
.site-chip img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; padding: 2px; display: block; }
.site-chip.is-target { box-shadow: 0 0 0 1.5px var(--chip-color, #738dff), 0 0 20px -5px var(--chip-color, #738dff), 0 7px 16px -9px #000; }
.site-chip-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-color, #738dff);
  border: 2px solid #0a0d13;
  box-shadow: 0 0 9px var(--chip-color, #738dff);
}
.site-chip.no-icon { background: linear-gradient(145deg, #26314a, #151c2a); }
.site-chip.no-icon::before {
  content: attr(data-letter);
  font: 700 10px/1 var(--display);
  letter-spacing: .02em;
  color: #c7d3ff;
}
.site-chip.in-row { width: 30px; height: 30px; margin-right: 3px; }
.site-chip-stack { display: inline-flex; align-items: center; padding-left: 2px; vertical-align: middle; }
.site-chip-stack .site-chip { width: 27px; height: 27px; margin-left: -8px; box-shadow: 0 0 0 2px #0b0e14, 0 8px 16px -10px #000; }
.site-chip-stack .site-chip:first-child { margin-left: 0; z-index: 3; }
.site-chip-stack .site-chip:nth-child(2) { z-index: 2; }
.site-chip-stack .site-chip:nth-child(3) { z-index: 1; }
.site-chip.target-big { width: 56px; height: 56px; border-radius: 16px; }
.site-chip.target-big img { border-radius: 15px; padding: 3px; }
.target-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--target-color, #738dff);
  background: rgba(115, 141, 255, .1);
  color: #dfe6ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.target-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--target-color, #738dff); box-shadow: 0 0 8px var(--target-color, #738dff); }

/* ---------- Targets view ---------- */
.targets-heading { align-items: flex-end; }
.target-head-stats { display: flex; gap: 10px; }
.target-head-stats > span {
  min-width: 96px;
  padding: 11px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 26, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}
.target-head-stats b { display: block; font-size: 21px; line-height: 1; color: #dfe6ff; letter-spacing: -.03em; }
.target-head-stats small { display: block; margin-top: 4px; color: #7c879c; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.target-head-stats span.live { border-color: rgba(69, 211, 155, .3); background: rgba(13, 35, 29, .55); }
.target-head-stats span.live b { color: #8df0ca; }

.target-composer {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  margin-bottom: 22px;
  overflow: hidden;
}
.target-composer::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 141, 255, .16), transparent 68%);
  pointer-events: none;
}
.target-composer-copy { display: flex; align-items: center; gap: 14px; }
.target-composer-copy h2 { margin: 0 0 4px; font-size: 17px; }
.target-composer-copy p { margin: 0; color: #8d98ac; font-size: 12px; }
.target-composer-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #cdd7ff;
  background: linear-gradient(145deg, rgba(115, 141, 255, .22), rgba(167, 139, 250, .08));
  border: 1px solid rgba(115, 141, 255, .3);
  box-shadow: 0 14px 30px -20px rgba(115, 141, 255, 1);
}
.target-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 88px auto; gap: 12px; align-items: end; }
.target-form .field-label { margin: 0; }
.target-form .button { height: 41px; white-space: nowrap; }
.target-color-field input[type="color"], .target-color-row input[type="color"] {
  width: 100%;
  height: 41px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0b0f16;
  cursor: pointer;
}
.target-color-row { display: flex; align-items: center; gap: 12px; }
.target-color-row input[type="color"] { width: 72px; flex: 0 0 auto; }

.target-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.target-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(23, 28, 40, .88), rgba(10, 13, 19, .95));
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.target-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--target-color, #738dff), transparent);
  opacity: .9;
}
.target-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 1px var(--target-color, #738dff), 0 30px 60px -38px #000;
}
.target-glow {
  position: absolute;
  right: -60px;
  top: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--target-color, #738dff), transparent 68%);
  opacity: .13;
  filter: blur(10px);
  pointer-events: none;
}
.target-card-head { display: flex; align-items: center; gap: 13px; position: relative; }
.target-identity { min-width: 0; flex: 1; }
.target-identity b { display: block; font-family: var(--display); font-size: 15px; letter-spacing: -.02em; color: #eef2ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-identity small { display: block; margin-top: 3px; color: #8591a6; font-family: var(--mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-count { text-align: right; padding-left: 10px; }
.target-count b { display: block; font-size: 22px; line-height: 1; color: #aab7d2; letter-spacing: -.04em; }
.target-count.live b { color: #7ff0c4; text-shadow: 0 0 18px rgba(69, 211, 155, .45); }
.target-count small { display: block; margin-top: 3px; color: #6f7b90; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.target-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: #7f8ba0; font-size: 11px; }
.target-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.target-state { color: #8b97ab; }
.target-matches { display: flex; flex-direction: column; gap: 6px; max-height: 148px; overflow: auto; }
.target-match {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .022);
  animation: fadeUp .3s ease both;
}
.target-match i { width: 6px; height: 6px; border-radius: 50%; background: #66738a; }
.target-match.live { border-color: rgba(69, 211, 155, .18); background: rgba(69, 211, 155, .045); }
.target-match.live i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.target-match b { display: block; color: #d6deee; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-match small { display: block; color: #71809a; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-match em { font-style: normal; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #66738a; }
.target-match.live em { color: #6fe3b6; }
.target-wait { padding: 10px 2px; color: #758198; font-size: 11px; line-height: 1.5; }
.target-card-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.target-card-actions .button { padding: 7px 12px; font-size: 11px; }
.target-empty { min-height: 220px; border: 1px dashed var(--line); border-radius: 18px; background: rgba(12, 16, 23, .5); }

/* ---------- Activity & record polish ---------- */
.activity-item, .visit-alert-card, .autofill-record-item, .replace-card { transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.activity-item:hover, .autofill-record-item:hover { border-color: rgba(115, 141, 255, .24); }
.autofill-record-item.selected { border-color: rgba(115, 141, 255, .42); background: rgba(115, 141, 255, .07); box-shadow: 0 0 0 1px rgba(115, 141, 255, .14); }
.activity-dot { box-shadow: 0 0 0 3px rgba(69, 211, 155, .12); }
.current-page, .monitor-current-page { border-radius: 10px; }
.copy-field, .pair-code-area, .cookie-value { border-radius: 9px; }
.bulk-bar { border-radius: 12px; border: 1px solid rgba(115, 141, 255, .24); background: rgba(20, 26, 42, .9); backdrop-filter: blur(12px); }

/* ---------- Motion ---------- */
@keyframes auroraDrift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  50% { transform: translate3d(1.5%, 1.5%, 0) scale(1.03); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.01); }
}
@keyframes brandFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-2px) rotate(-2deg); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes noticeIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .target-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 80px; }
  .target-form .button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .target-form { grid-template-columns: 1fr; }
  .target-form .button { width: 100%; justify-content: center; }
  .targets-heading { align-items: flex-start; }
}
@media (max-width: 850px) {
  .sidebar {
    position: sticky;
    height: 100vh;
    background: linear-gradient(180deg, rgba(11, 15, 22, .97), rgba(7, 10, 15, .99));
  }
  .nav-item.active::after { display: none; }
  .brand-mark { width: 32px; height: 32px; }
}
@media (max-width: 650px) {
  .metric strong { font-size: 26px; }
  .target-head-stats { width: 100%; }
  .target-head-stats > span { flex: 1; min-width: 0; }
  .target-grid { grid-template-columns: 1fr; }
  .target-card { padding: 17px; }
  .notice { top: 68px; right: 12px; left: 12px; }
  .content { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .brand-mark { animation: none; }
  .pulse, .status.online i { animation: none; }
  .content, .modal, .notice, .target-match { animation: none; }
}

/* Compact inline favicons for destinations, visits and monitors */
.site-chip.tiny {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  margin: 0 6px 0 0;
  vertical-align: -4px;
  box-shadow: 0 3px 8px -6px #000;
}
.site-chip.tiny img { border-radius: 5px; padding: 1px; }
.site-chip.tiny .site-chip-dot { width: 6px; height: 6px; border-width: 1.5px; }

/* Mobile: keep the topbar inside the viewport and pin an open monitor to it */
@media (max-width: 850px) {
  .installation-details > td { padding-left: 0; padding-right: 0; }
  .browser-monitor {
    position: sticky;
    left: 0;
    width: calc(100vw - 100px);
    max-width: calc(100vw - 100px);
  }
}
@media (max-width: 650px) {
  .top-actions { gap: 6px; min-width: 0; }
  .top-actions .refresh-status { display: none; }
  .top-actions > .button-primary { display: none; }
  .browser-monitor { width: calc(100vw - 100px); max-width: calc(100vw - 100px); padding: 14px; }
}

/* ---------- DR3 · bcd wordmark ---------- */
.dr3-logo { display: inline-flex; align-items: center; gap: 8px; line-height: 1; user-select: none; }
.dr3-word {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.03em;
  transform: skewX(-6deg);
  background: linear-gradient(180deg, #ffffff 10%, #c2cdf0 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(115, 141, 255, .28));
}
.dr3-bolt { display: inline-flex; align-items: center; margin-left: -1px; }
.dr3-bolt svg { display: block; height: 1.2em; width: auto; overflow: visible; filter: drop-shadow(0 0 7px rgba(115, 141, 255, .6)); }
.dr3-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
  color: #b9c6ff;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(115, 141, 255, .35);
  background: rgba(115, 141, 255, .12);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}
.dr3-logo.sm .dr3-word { font-size: 17px; }
.dr3-logo.sm .dr3-tag { font-size: 9.5px; padding: 2px 7px; }
.dr3-logo.lg .dr3-word { font-size: 24px; gap: 2px; }
.dr3-logo.lg .dr3-tag { font-size: 10px; padding: 3px 8px; }
/* The old sidebar rule turned the trailing brand span into gradient text; the
   wordmark now carries its own fill. */
.brand > span.dr3-logo { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; font-size: inherit; letter-spacing: normal; }

/* Compact rail: the wordmark stands in for the old square mark on narrow screens */
@media (max-width: 850px) {
  .brand > span.dr3-logo { display: inline-flex; justify-content: center; }
  .dr3-logo.sm .dr3-word { font-size: 15px; }
  .dr3-logo.sm .dr3-tag { display: none; }
}

/* ---------- Browser family marks + chips after the row name ---------- */
/* Brand marks are the logo itself — no plate, border or shadow behind them.
   A tile competes with the artwork, and a transparent mark sits naturally on
   whatever surface the row already has. The glyph grows to fill the space the
   plate used to take, so the row keeps the same visual weight. */
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: none;
  border: 0;
  box-shadow: none;
}
.brand-icon img { display: block; width: 22px; height: 22px; object-fit: contain; }
.browser-monitor-header .brand-icon { width: 34px; height: 34px; }
.browser-monitor-header .brand-icon img { width: 28px; height: 28px; }

.row-primary .name-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}
.row-primary .name-line > b { min-width: 0; }
.name-chips { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.name-chips .site-chip {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  margin: 0;
  vertical-align: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 3px 8px -6px #000;
}
.name-chips .site-chip img { border-radius: 4px; padding: 1px; }
.name-chips .site-chip.is-target { box-shadow: 0 0 0 1.5px var(--chip-color, #738dff), 0 0 10px -2px var(--chip-color, #738dff); }
.name-chips .site-chip.no-icon::before { font-size: 8px; }

/* Site chips inside lists read better nudged to the text baseline */
.autofill-record-row .site-chip.tiny,
.activity-item .site-chip.tiny,
.monitor-tabs .site-chip.tiny { vertical-align: -3px; }

/* Monitor header: brand mark sits beside the browser name, not above it */
.monitor-title { display: flex; align-items: center; gap: 10px; margin-top: 2px; min-width: 0; }
.monitor-title h3 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Device tiles show the operating system ---------- */
.brand-icon.os img { width: 22px; height: 22px; }
.brand-icon.os.linux img { width: 23px; height: 23px; }
/* Apple's mark is solid black, which would vanish on a dark surface, so that
   one glyph is inverted. Every other mark keeps its own colours. */
.brand-icon.os.mac img { width: 21px; height: 21px; filter: brightness(0) invert(1); }
@media (max-width: 650px) {
  .brand-icon.os img { width: 20px; height: 20px; }
  .brand-icon.os.linux img { width: 21px; height: 21px; }
  .brand-icon.os.mac img { width: 19px; height: 19px; }
}

/* Uninstall card + CSV export controls */
.settings-card.is-danger { border-color: rgba(237,119,119,.28); }
.settings-card.is-danger .settings-icon { color: #ffb4b4; background: rgba(237,119,119,.12); }
.settings-card.is-danger h2 { color: #ffb4b4; }
.autofill-record-toolbar .autofill-export-toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--subtle); font-size: 12px; }
.autofill-record-toolbar .autofill-export-toggle input { flex: 0 0 auto; width: auto; min-width: 0; }

/* Uninstall device: browser picker */
.uninstall-browser-list { display:grid; gap:8px; max-height:250px; overflow-y:auto; border:1px solid var(--line); border-radius:8px; background:var(--bg); padding:12px; }
.uninstall-browser-list[hidden] { display:none; }
.uninstall-browser-option { display:flex; align-items:flex-start; gap:9px; color:#aab2be; font-size:11px; }
.uninstall-browser-option input { width:14px; margin-top:2px; accent-color:var(--blue); flex:none; }
.uninstall-browser-option span { display:grid; gap:2px; min-width:0; }
.uninstall-browser-option b { color:#d7dce6; font-weight:600; font-size:12px; }
.uninstall-browser-option small { color:var(--muted); font-size:10px; }

/* Overflow badge for site chips: how many older sites are not shown. */
.chip-more { display:inline-grid; place-items:center; flex:0 0 auto; min-width:16px; height:16px; padding:0 4px; border-radius:4px; background:#202630; color:#8d97a5; font-size:9px; font-weight:600; letter-spacing:.02em; }
.name-chips .chip-more { border-radius:4px; }

/* Only chips for a configured target hop, and they hop without pause: two
   bounces per cycle, no rest phase, so the motion reads as continuous. Only
   `transform` is animated, so the target ring — a box-shadow painted outside
   the border box — travels with its icon instead of detaching from it, and the
   glow is never overwritten. Non-target chips stay perfectly still. */
@keyframes site-chip-bounce {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(.32, 0, .67, .25); }
  30% { transform: translateY(-4px); animation-timing-function: cubic-bezier(.33, .75, .68, 1); }
  55% { transform: translateY(0); animation-timing-function: cubic-bezier(.32, 0, .67, .25); }
  75% { transform: translateY(-2px); animation-timing-function: cubic-bezier(.33, .75, .68, 1); }
  100% { transform: translateY(0); }
}

.name-chips .site-chip.is-target { animation: site-chip-bounce 1.6s linear infinite; }

/* Decorative motion: honour a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .name-chips .site-chip.is-target { animation: none; }
}

/* Inline assignment control: sits where the old scope pill was, so a rule can be
   moved to another browser or device straight from the list. */
.rule-meta .scope-select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 240px;
  height: 20px;
  padding: 0 20px 0 8px;
  border: 1px solid #2a3444;
  border-radius: 999px;
  background-color: #171e29;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238d97a5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 8px 5px;
  color: #c7d2e2;
  font: inherit;
  font-size: 11px;
  line-height: 18px;
  cursor: pointer;
  transition: border-color .12s ease, color .12s ease;
}
.rule-meta .scope-select:hover { border-color: #3a475c; color: #e6ebf5; }
.rule-meta .scope-select:focus-visible { outline: 2px solid #3057d5; outline-offset: 1px; }
.rule-card.disabled .scope-select { opacity: .6; }
