/* FakeHunter V2 / visual system — isolated from V1. */
:root{
 color-scheme:light;
 --bg:#f6f7f6;--surface:#fff;--surface-2:#f3f5f3;--surface-3:#edf0ed;
 --ink:#1a2423;--ink-2:#42504f;--muted:#81908c;
 --line:#e6eae7;--line-strong:#d8ded9;
 --accent:#a9d67c;--accent-dark:#253923;--accent-dim:#eef6e9;
 --warning:#b48137;--warning-bg:#fff5e4;--danger:#c25658;--danger-bg:#fbefee;
 --success:#3d8264;--success-bg:#e8f5ed;--shadow:0 14px 45px #1924210a;
 --radius:13px;--rail-width:226px;
 font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
 font-synthesis:none;scrollbar-color:#ced6d0 transparent;
}
:root[data-theme="dark"]{
 color-scheme:dark;
 --bg:#121815;--surface:#1b2420;--surface-2:#222e28;--surface-3:#29372e;
 --ink:#edf4ee;--ink-2:#c0cec4;--muted:#91a49a;
 --line:#314038;--line-strong:#435348;
 --accent:#b9dd89;--accent-dark:#172318;--accent-dim:#2d422d;
 --warning:#e4b875;--warning-bg:#3d3222;--danger:#ed9294;--danger-bg:#3f2729;
 --success:#91d7af;--success-bg:#2b4035;--shadow:0 16px 48px #0002;
}
*{box-sizing:border-box}
html{scroll-behavior:auto}
body{margin:0;background:var(--bg);color:var(--ink);font-size:13px;line-height:1.5;min-height:100vh}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
 outline:2px solid var(--ink-2);outline-offset:3px
}
[hidden]{display:none!important}
.icon-defs{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
svg.icon use{pointer-events:none}
h1,h2,h3,h4,p{margin-top:0}
h1,h2,h3,h4{letter-spacing:-.035em}
h1{font-size:clamp(26px,3vw,35px);font-weight:750;line-height:1.15}
h2{font-size:21px;font-weight:730;line-height:1.25}
h3{font-size:15px;line-height:1.3}
.muted{color:var(--muted)}
.eyebrow{font-weight:780;font-size:10px;letter-spacing:1.4px;color:var(--muted)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.small{font-size:11px}.tiny{font-size:10px}
.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}
.spinner{height:17px;width:17px;border-radius:50%;border:2px solid var(--line-strong);border-top-color:var(--ink-2);animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.page-loading{min-height:270px;display:flex;align-items:center;justify-content:center;gap:13px;color:var(--muted)}
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px;padding:35px;text-align:center;border:1px dashed var(--line-strong);border-radius:var(--radius);background:var(--surface)}
.empty-state .empty-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--surface-3);color:var(--ink-2);margin-bottom:14px}
.empty-state h3{margin:0 0 5px}.empty-state p{max-width:400px;color:var(--muted);margin:0 0 13px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;border-radius:9px;padding:0 15px;border:1px solid var(--line-strong);font-weight:690;white-space:nowrap;font-size:12px;background:var(--surface);color:var(--ink)}
.btn:hover:not(:disabled){background:var(--surface-3)}
.btn .icon{width:15px;height:15px}
.btn.primary{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.btn.primary:hover:not(:disabled){background:var(--ink-2);border-color:var(--ink-2)}
:root[data-theme="dark"] .btn.primary{background:var(--accent);color:#132018;border-color:var(--accent)}
:root[data-theme="dark"] .btn.primary:hover:not(:disabled){background:#d2eea6}
.btn.soft{background:var(--surface-2);border-color:transparent}
.btn.danger{color:var(--danger);background:var(--danger-bg);border-color:transparent}
.btn.danger:hover:not(:disabled){filter:brightness(.95)}
.btn.small{height:31px;padding:0 11px;font-size:11px}
.btn.wide{width:100%;height:45px}
.icon-button{display:grid;place-items:center;height:36px;width:36px;border:1px solid transparent;background:transparent;color:var(--ink-2);border-radius:9px}
.icon-button:hover:not(:disabled),.icon-button[aria-pressed="true"]{background:var(--surface-3)}
.icon-button .icon{width:17px;height:17px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field>label,.form-field>label{font-size:11px;font-weight:700;color:var(--ink-2)}
.input,textarea,select,input[type=text],input[type=password],input[type=search]{
 max-width:100%;background:var(--surface);border:1px solid var(--line-strong);border-radius:9px;color:var(--ink);
 padding:10px 12px;outline:0;min-height:39px
}
input::placeholder,textarea::placeholder{color:var(--muted)}
textarea{resize:vertical;min-height:90px;width:100%}
select{min-height:37px;padding:7px 33px 7px 11px;cursor:pointer}
input[type=checkbox]{accent-color:var(--ink-2);width:15px;height:15px}
.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:18px}
.field-error{color:var(--danger);font-size:11px;min-height:15px;margin:9px 0}
.notice-strip{background:var(--accent-dim);border:1px solid var(--line);border-radius:9px;padding:12px 14px;color:var(--ink-2);font-size:11px}
.notice-strip.warning{background:var(--warning-bg);border-color:transparent}
.live-dot{width:7px;height:7px;display:inline-block;flex:none;border-radius:99px;background:#78ad69;box-shadow:0 0 0 4px #78ad6920}
kbd{font:inherit;font-size:10px;color:var(--muted);border:1px solid var(--line);background:var(--surface-2);border-radius:5px;padding:2px 5px}

/* AUTH / high-contrast editorial login */
.login-page{display:grid;grid-template-columns:minmax(380px,1.16fr) minmax(390px,1fr);min-height:100vh}
.login-art{background:#1f3026;position:relative;overflow:hidden;color:#f3f7f0;display:flex;align-items:flex-end;padding:clamp(35px,6vw,90px)}
.login-art:before{content:"";position:absolute;inset:-40%;background:
 repeating-radial-gradient(circle at 53% 48%,transparent 0 23px,#d7f2b014 24px 25px);
 transform:rotate(-16deg);pointer-events:none}
.login-art:after{content:"";position:absolute;width:min(58vw,580px);height:min(58vw,580px);left:-22%;top:-22%;border:1px solid #d5e9a72c;border-radius:50%;box-shadow:0 0 0 65px #d5e9a708,0 0 0 130px #d5e9a706}
.login-watermark{font-size:clamp(95px,15vw,230px);font-weight:760;letter-spacing:-.12em;position:absolute;right:7%;top:10%;opacity:.09;line-height:1;white-space:nowrap}
.login-watermark span{color:#a9d67c}
.login-art-content{position:relative;max-width:660px}
.login-art h1{font-size:clamp(39px,5vw,72px);line-height:1.04;letter-spacing:-.07em;font-weight:630;margin:18px 0}
.login-art h1 em{font-style:normal;color:#b8df8a}
.login-kicker{font-size:11px;letter-spacing:2px;font-weight:760;color:#b8df8a}
.login-art-content p{max-width:490px;color:#bccbc0;font-size:15px;line-height:1.7}
.login-note{margin-top:55px;display:flex;align-items:center;gap:10px;color:#a8bead;font-size:11px}
.login-main{display:grid;place-items:center;padding:50px 28px;background:var(--bg)}
.login-box{width:min(405px,100%)}
.wordmark{display:flex;align-items:center;gap:11px;font-weight:730;font-size:18px;letter-spacing:-.5px;margin-bottom:72px}
.wordmark b{font-size:9px;background:var(--accent-dim);color:var(--ink-2);letter-spacing:.6px;border-radius:5px;padding:4px 6px;vertical-align:middle;margin-left:3px}
.brand-symbol{display:grid;place-items:center;width:37px;height:37px;flex:none;border-radius:10px;background:#233e2d;color:#c9ec9a;font-weight:870;font-size:14px;letter-spacing:-2px}
.brand-symbol span{color:#fff}
.login-box h2{font-size:clamp(29px,3vw,39px);margin:6px 0 10px}
.login-box .muted{max-width:350px;line-height:1.7;font-size:12px}
.login-box form{margin-top:33px}
.login-box label{display:block;margin-bottom:9px;font-size:12px;font-weight:690}
.login-box input{height:45px;width:100%;font-size:14px}
.login-box button{margin-top:13px}
.login-footer{margin-top:55px;color:var(--muted);font-size:10px;letter-spacing:.2px}

/* Shell */
.workspace{display:flex;min-height:100vh}
.left-rail{width:var(--rail-width);height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;flex:none;background:var(--surface);border-right:1px solid var(--line);z-index:30;transition:width .2s ease;overflow:hidden}
.brand{display:flex;align-items:center;gap:11px;min-height:82px;padding:0 23px;white-space:nowrap}
.brand-type{display:flex;flex-direction:column;line-height:1.23}
.brand-type strong{font-size:15px;font-weight:780;letter-spacing:-.5px}
.brand-type small{font-size:8px;letter-spacing:1.15px;font-weight:700;color:var(--muted);margin-top:4px}
.rail-collapse{position:absolute;right:10px;top:88px;display:grid;place-items:center;width:28px;height:28px;background:var(--surface-2);border:0;border-radius:8px;color:var(--muted)}
.rail-collapse:hover{color:var(--ink)}
.rail-collapse svg{transition:transform .2s}
.nav-links{display:flex;flex-direction:column;gap:4px;padding:41px 12px 10px;overflow-y:auto;scrollbar-width:thin}
.nav-links a{display:flex;align-items:center;gap:12px;min-height:41px;padding:9px 12px;border-radius:9px;font-size:12px;font-weight:560;color:var(--muted);white-space:nowrap;transition:background .12s,color .12s}
.nav-links a .icon{width:18px;height:18px}
.nav-links a:hover{background:var(--surface-2);color:var(--ink)}
.nav-links a[aria-current=page]{background:var(--accent-dim);color:var(--ink);font-weight:740}
.nav-links a[aria-current=page] .icon{color:var(--success)}
.rail-bottom{display:flex;flex-direction:column;gap:4px;margin-top:auto;padding:16px 12px;border-top:1px solid var(--line)}
.system-state{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:10px;color:var(--muted);padding:8px 11px 13px}
.rail-footer-btn{display:flex;align-items:center;gap:12px;width:100%;height:38px;padding:0 12px;background:none;border:0;color:var(--ink-2);border-radius:9px;font-size:11px;font-weight:570;white-space:nowrap}
.rail-footer-btn:hover{background:var(--surface-2)}
.rail-footer-btn .icon{width:16px;height:16px}
.rail-collapsed{--rail-width:69px}
.rail-collapsed .brand{padding:0 15px}
.rail-collapsed .brand-type,.rail-collapsed .nav-links a span,.rail-collapsed .rail-footer-btn span,.rail-collapsed .system-state span:not(.live-dot){display:none}
.rail-collapsed .rail-collapse{right:20px;top:77px}
.rail-collapsed .rail-collapse svg{transform:rotate(180deg)}
.rail-collapsed .nav-links{padding:36px 10px 8px}
.rail-collapsed .nav-links a{justify-content:center;padding:8px 0}
.rail-collapsed .rail-bottom{padding:12px 10px}
.rail-collapsed .rail-footer-btn{justify-content:center;padding:0}
.rail-collapsed .system-state{justify-content:center;padding:10px 0}
.work-area{flex:1;min-width:0}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:15px;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(18px);height:71px;padding:0 clamp(18px,3.1vw,48px);border-bottom:1px solid var(--line)}
.topbar-left,.topbar-actions{display:flex;align-items:center;gap:12px;min-width:0}
.breadcrumbs{display:flex;align-items:center;gap:10px;color:var(--muted);white-space:nowrap;font-size:11px}
.breadcrumbs strong{color:var(--ink);font-weight:690;font-size:12px}
.breadcrumbs .icon{width:12px;height:12px}
.environment-label{background:var(--accent-dim);color:var(--success);font-size:9px;font-weight:780;padding:6px 8px;border-radius:5px;letter-spacing:.45px;white-space:nowrap}
.top-search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface);color:var(--muted);height:36px;min-width:205px;padding:0 10px;border-radius:9px;font-size:11px}
.top-search .icon{width:15px;height:15px}
.top-search kbd{margin-left:auto}
.top-search:hover{border-color:var(--line-strong)}
.mobile-menu{display:none}
.main-content{max-width:1600px;margin:0 auto;padding:clamp(20px,3.2vw,45px);min-height:calc(100vh - 71px)}
.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:29px}
.page-header .eyebrow{margin-bottom:11px}
.page-header h1{margin:0 0 10px}
.page-header p{color:var(--muted);margin:0;font-size:12px;max-width:590px;line-height:1.65}
.page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}
.section-heading h2{font-size:16px;margin:0}
.section-heading .muted{font-size:11px}
.link-button{display:inline-flex;align-items:center;gap:6px;color:var(--ink-2);font-size:11px;font-weight:700}
.link-button .icon{width:13px;height:13px}
.link-button:hover{color:var(--success)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.pad{padding:21px}
.layout-two{display:grid;grid-template-columns:minmax(0,1.61fr) minmax(280px,1fr);gap:17px;align-items:start}
.stack{display:flex;flex-direction:column;gap:17px;min-width:0}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:24px}
.stat-card{min-height:142px;padding:19px 21px;position:relative;overflow:hidden}
.stat-card:before{content:"";position:absolute;top:-47px;right:-47px;width:110px;height:110px;border-radius:50%;background:var(--surface-2)}
.stat-card .stat-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:var(--surface-2);color:var(--ink-2);margin-bottom:14px;position:relative}
.stat-card .stat-icon .icon{width:15px;height:15px}
.stat-card strong{display:block;font-size:29px;line-height:1.2;font-weight:740;letter-spacing:-1.1px;position:relative}
.stat-card span{font-size:10px;color:var(--muted);font-weight:630;display:block;margin-top:6px}
.stat-card.accent{background:#263a2b;color:#f2f6f0;border-color:#263a2b}
.stat-card.accent:before{background:#c1e29710}
.stat-card.accent .stat-icon{background:#badf9024;color:#d5f3b1}
.stat-card.accent span{color:#aec0ae}
.segmented{display:inline-flex;gap:3px;background:var(--surface-2);border:1px solid var(--line);padding:3px;border-radius:9px}
.segmented button{display:grid;place-items:center;height:29px;min-width:32px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:11px;font-weight:650}
.segmented button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 5px #0000000b}
.segmented .icon{width:16px;height:16px}
.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.toolbar .search-field{display:flex;align-items:center;gap:8px;padding:0 11px;height:38px;border:1px solid var(--line);border-radius:9px;background:var(--surface);min-width:220px;flex:1;max-width:380px}
.toolbar .search-field .icon{width:16px;height:16px;color:var(--muted)}
.toolbar .search-field input{background:transparent;outline:0!important;border:0;padding:0;min-height:0;height:100%;width:100%;font-size:11px}
.toolbar .select-compact{min-width:130px}
.toolbar .toolbar-spacer{flex:1}
.record-count{margin:0;color:var(--muted);font-size:11px}
.table-shell{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);scrollbar-width:thin}
.data-table{border-collapse:collapse;min-width:780px;width:100%;font-size:11px}
.data-table th{font-size:10px;text-align:left;letter-spacing:.2px;font-weight:720;color:var(--muted);padding:13px 15px;background:var(--surface-2);border-bottom:1px solid var(--line);white-space:nowrap}
.data-table td{border-bottom:1px solid var(--line);padding:13px 15px;vertical-align:middle;height:63px;color:var(--ink-2)}
.data-table tr:last-child td{border-bottom:0}
.data-table tbody tr:hover{background:var(--surface-2)}
.data-table tbody tr.selected{background:var(--accent-dim)}
.data-table .title-cell{max-width:480px}
.record-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:730;margin-bottom:3px;cursor:pointer}
.record-title:hover{text-decoration:underline;text-underline-offset:2px}
.record-subtitle{max-width:455px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--muted)}
.platform-cell{display:flex;align-items:center;gap:8px;white-space:nowrap}
.platform-dot{width:8px;height:8px;border-radius:3px;display:inline-block;flex:none;background:var(--accent)}
.platform-dot[data-platform=instagram]{background:#d66b91}
.platform-dot[data-platform=facebook]{background:#668dd1}
.platform-dot[data-platform=tiktok]{background:#58bcb6}
.platform-dot[data-platform=youtube]{background:#d96767}
.platform-dot[data-platform=reddit]{background:#d08a5a}
.platform-dot[data-platform=bluesky]{background:#68a6e2}
.platform-dot[data-platform=threads]{background:#9b94bb}
.platform-dot[data-platform=x]{background:#8d95a0}
.status-pill{display:inline-flex;gap:5px;align-items:center;padding:5px 8px;border-radius:6px;background:var(--surface-2);color:var(--ink-2);font-weight:670;font-size:9.5px;white-space:nowrap}
.status-pill.pending{background:var(--warning-bg);color:var(--warning)}
.status-pill.false{background:var(--danger-bg);color:var(--danger)}
.status-pill.true{background:var(--success-bg);color:var(--success)}
.status-pill.misleading{background:var(--warning-bg);color:var(--warning)}
.cell-actions{display:flex;align-items:center;gap:3px;justify-content:flex-end}
.row-action{border:0;background:transparent;color:var(--muted);height:30px;width:30px;border-radius:7px;display:grid;place-items:center}
.row-action:hover{background:var(--surface-3);color:var(--ink)}
.row-action .icon{width:15px;height:15px}
.row-action.is-favorite{color:#b69248;background:var(--warning-bg)}
.row-action.is-favorite .icon{fill:currentColor}
.row-action.danger:hover{background:var(--danger-bg);color:var(--danger)}
.bulk-bar{display:flex;justify-content:space-between;gap:15px;align-items:center;background:var(--ink);color:var(--surface);border-radius:10px;padding:10px 14px;margin:0 0 14px;min-height:51px}
.bulk-bar .bulk-counter{font-weight:670;font-size:11px}
.bulk-bar .btn{background:#ffffff15;color:#fff;border-color:#ffffff30}
.bulk-bar .btn.danger{background:#b93f45;color:#fff;border-color:transparent}
:root[data-theme=dark] .bulk-bar{background:#39483d}
:root[data-theme=dark] .bulk-bar .btn{color:#eaf2e8}

/* Feeds, insight, case cards */
.feed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.feed-card{padding:19px;min-width:0;display:flex;flex-direction:column;min-height:212px}
.feed-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.feed-card h3{font-size:14px;letter-spacing:-.25px;line-height:1.45;margin:0 0 9px;cursor:pointer;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.feed-card p{font-size:11px;color:var(--muted);line-height:1.6;margin:0 0 20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.feed-card-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid var(--line);padding-top:11px}
.feed-card-bottom small{color:var(--muted);font-size:10px}
.feed-card-bottom .cell-actions{gap:4px}
.inline-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.list-card{display:flex;align-items:center;gap:14px;padding:15px 17px;border:1px solid var(--line);background:var(--surface);border-radius:10px;min-width:0}
.list-card:hover{background:var(--surface-2)}
.list-card .list-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--surface-2);color:var(--ink-2);flex:none}
.list-card .list-icon .icon{width:17px;height:17px}
.list-card .list-copy{min-width:0;flex:1}
.list-card .list-copy strong{display:block;color:var(--ink);font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.list-card .list-copy p{color:var(--muted);font-size:10px;margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.list-card .list-arrow{color:var(--muted);width:14px}
.mini-chart{display:flex;align-items:flex-end;gap:7px;height:123px;padding:5px 0 0}
.mini-chart .bar{flex:1;min-width:4px;max-width:55px;background:var(--surface-3);border-radius:5px 5px 0 0;position:relative;min-height:6px}
.mini-chart .bar.primary{background:var(--accent)}
.mini-chart .bar:hover{background:var(--ink-2)}
.chart-legend{display:flex;align-items:center;gap:17px;font-size:10px;color:var(--muted);margin-top:16px}
.chart-legend span{display:flex;align-items:center;gap:6px}
.chart-legend i{display:block;width:7px;height:7px;border-radius:2px;background:var(--accent)}
.highlight-panel{background:#253b2b;color:#f1f6ee;padding:25px;position:relative;overflow:hidden}
.highlight-panel:after{content:"";position:absolute;right:-65px;top:-65px;width:220px;height:220px;border:1px solid #afcf9160;border-radius:50%;box-shadow:0 0 0 42px #a1d48b11,0 0 0 82px #a1d48b08;pointer-events:none}
.highlight-panel .eyebrow{color:#bddfa0}
.highlight-panel h3{font-size:20px;line-height:1.3;font-weight:640;max-width:310px;margin:11px 0}
.highlight-panel p{color:#bfcec0;font-size:11px;line-height:1.6;max-width:340px}
.highlight-panel .btn{background:#c4e8a0;color:#1f3625;border:0;margin-top:6px}

/* Investigation */
.search-hero{padding:clamp(20px,3vw,31px);position:relative;overflow:hidden;background:var(--surface)}
.search-hero:before{content:"";position:absolute;right:-100px;top:-170px;width:410px;height:410px;pointer-events:none;border-radius:50%;background:radial-gradient(circle,var(--accent-dim),transparent 68%)}
.search-hero h2{font-size:clamp(22px,2.9vw,31px);margin:4px 0 9px;max-width:700px}
.search-hero>p{font-size:11px;color:var(--muted);max-width:650px;line-height:1.65;margin-bottom:18px}
.query-input{position:relative}
.query-input textarea{font-size:15px;line-height:1.55;min-height:108px;padding:17px;border-radius:10px;background:var(--bg);border-color:var(--line-strong)}
.source-section{display:flex;align-items:center;gap:14px;min-width:0;flex-wrap:wrap;margin-top:18px}
.source-section>span{color:var(--muted);font-size:10px;font-weight:730}
.source-grid{display:flex;align-items:center;gap:5px;flex:1;flex-wrap:wrap}
.source-toggle{position:relative;display:inline-flex;align-items:center;gap:7px;background:var(--surface-2);border:1px solid transparent;color:var(--muted);border-radius:8px;padding:8px 10px;font-size:10px;font-weight:690;opacity:.52;transition:opacity .12s,background .12s}
.source-toggle:hover{opacity:.85}
.source-toggle[aria-pressed=true]{opacity:1;background:var(--accent-dim);color:var(--ink)}
.source-toggle:focus-visible{outline:2px solid var(--ink-2)}
.source-toggle .source-icon{display:grid;place-items:center;font-weight:790;font-size:11px;min-width:17px}
.source-toggle.network[aria-pressed=true]{background:var(--surface-3)}
.source-divider{height:27px;width:1px;background:var(--line-strong);margin:0 4px;flex:none}
.search-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.search-controls .left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.search-controls label{display:flex;align-items:center;gap:7px;color:var(--ink-2);font-size:11px;cursor:pointer}
.search-hint{font-size:10px;color:var(--muted);margin:12px 0 0}
.source-status{display:flex;align-items:center;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:11px;color:var(--ink-2)}
.source-status .live-dot{box-shadow:none}
.investigation-result{padding:19px;margin-top:16px}
.investigation-result h3{margin:0 0 8px}
.investigation-result p{font-size:11px;white-space:pre-wrap;color:var(--ink-2);line-height:1.7}
.network-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.network-links a{background:var(--surface-2);border:1px solid var(--line);padding:8px 10px;border-radius:8px;font-size:10px;font-weight:680;display:inline-flex;align-items:center;gap:5px}
.network-links a:hover{background:var(--accent-dim)}
.network-links .icon{width:12px;height:12px}
.search-footnotes{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:17px}
.footnote-card{padding:17px;border-radius:11px;border:1px solid var(--line);background:var(--surface)}
.footnote-card .icon{color:var(--success);margin-bottom:12px}
.footnote-card strong{display:block;font-size:11px}
.footnote-card p{margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.6}
.network-chip{display:inline-flex;align-items:center;gap:7px;background:var(--surface-2);padding:5px 8px;border-radius:6px;color:var(--ink-2);font-size:10px;white-space:nowrap}

/* map */
.graph-panel{min-height:570px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,var(--surface),var(--surface-2))}
.graph-panel svg{width:100%;height:570px;display:block;touch-action:pan-y}
.graph-panel .graph-link{fill:none;stroke:var(--line-strong);stroke-width:1.5;opacity:.78}
.graph-panel .graph-link.proven{stroke:var(--success);stroke-width:2.3;stroke-dasharray:5 6}
.graph-panel .graph-node{cursor:pointer}
.graph-panel .graph-node circle{fill:var(--surface);stroke:var(--line-strong);stroke-width:1.5;filter:drop-shadow(0 2px 5px #0000000e)}
.graph-panel .graph-node.primary circle{fill:#2b4230;stroke:#c3e4a1;stroke-width:3}
.graph-panel .graph-node.primary text{fill:#fff}
.graph-panel .graph-node text{fill:var(--ink);font-size:11px;text-anchor:middle;dominant-baseline:middle;pointer-events:none;font-weight:690}
.graph-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.graph-controls label{font-size:10px;color:var(--muted)}
.graph-legend{position:absolute;left:18px;bottom:15px;background:var(--surface);padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:10px;color:var(--muted)}

/* Offcanvas drawer and modal */
.drawer-backdrop,.modal-backdrop,.mobile-backdrop{position:fixed;inset:0;background:#111d1890;z-index:110;backdrop-filter:blur(2px)}
.context-drawer{position:fixed;right:0;top:0;bottom:0;width:min(475px,100vw);background:var(--surface);z-index:120;box-shadow:-10px 0 55px #0002;display:flex;flex-direction:column;border-left:1px solid var(--line);transform:translateX(102%);visibility:hidden;transition:transform .19s,visibility .19s}
.context-drawer.open{transform:translateX(0);visibility:visible}
.drawer-header,.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:23px 25px;border-bottom:1px solid var(--line)}
.drawer-header h2,.modal-heading h2{font-size:19px;letter-spacing:-.45px;margin:5px 0 0}
.drawer-header small,.modal-heading small{color:var(--muted);font-size:9px;font-weight:790;letter-spacing:1px}
.drawer-body{padding:24px 25px;flex:1;overflow-y:auto;overscroll-behavior:contain}
.drawer-body>h3{line-height:1.4;font-size:20px;margin:0 0 12px}
.drawer-body .drawer-summary{white-space:pre-wrap;line-height:1.75;color:var(--ink-2);font-size:12px}
.drawer-meta{display:grid;grid-template-columns:1fr 1fr;gap:17px;padding:18px;background:var(--surface-2);border-radius:10px;margin:19px 0}
.drawer-meta small{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}
.drawer-meta strong{font-size:12px;word-break:break-word}
.drawer-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
.drawer-body hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.drawer-body .field{margin-bottom:14px}
.modal-backdrop{z-index:140}
.modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-48%);width:min(520px,calc(100vw - 26px));max-height:calc(100dvh - 36px);overflow-y:auto;background:var(--surface);border-radius:14px;box-shadow:0 25px 100px #0004;z-index:150;visibility:hidden;opacity:0;transition:opacity .14s,transform .14s}
.modal.open{visibility:visible;opacity:1;transform:translate(-50%,-50%)}
#modal-body{padding:23px 25px}
#modal-body .field{margin-bottom:15px}
#modal-body .field:last-of-type{margin-bottom:0}
.toast-host{position:fixed;right:20px;bottom:20px;z-index:300;display:flex;flex-direction:column;gap:8px;max-width:min(420px,calc(100vw - 35px));pointer-events:none}
.toast{display:flex;align-items:center;gap:10px;background:var(--ink);color:var(--surface);box-shadow:0 12px 38px #0003;border-radius:10px;padding:13px 15px;font-size:11px;font-weight:620;animation:toastEnter .15s ease}
.toast.error{background:#7a3235;color:#fff}
.toast .icon{width:15px;height:15px}
@keyframes toastEnter{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}

@media(max-width:1350px){
 .top-search{min-width:0;width:36px;padding:0 8px;justify-content:center}
 .top-search span,.top-search kbd{display:none}
 .stat-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:1080px){
 .layout-two{grid-template-columns:1fr}
 .search-footnotes{grid-template-columns:1fr 1fr}
}
@media(max-width:820px){
 .left-rail{position:fixed;transform:translateX(-101%);width:255px;transition:transform .18s}
 body.mobile-nav-open .left-rail{transform:translateX(0)}
 body.mobile-nav-open .mobile-backdrop{display:block!important;z-index:25}
 .mobile-menu{display:grid}
 .rail-collapse{display:none}
 .topbar{padding:0 17px}
 .environment-label{display:none}
 .main-content{padding:25px 17px}
 .page-header{align-items:flex-start}
 .page-header h1{font-size:27px}
 .top-new{font-size:0;padding:0;width:37px}
 .top-new .icon{width:18px;height:18px}
}
@media(max-width:610px){
 .login-page{display:block}
 .login-art{display:none}
 .login-main{min-height:100dvh;padding:30px 23px}
 .wordmark{margin-bottom:52px}
 .topbar{height:61px}
 .topbar-actions{gap:4px}
 .breadcrumbs>span,.breadcrumbs>.icon{display:none}
 .main-content{min-height:calc(100vh - 61px)}
 .page-header{flex-direction:column;align-items:flex-start;gap:17px}
 .page-actions{justify-content:flex-start;width:100%}
 .stat-grid{grid-template-columns:repeat(2,1fr);gap:8px}
 .stat-card{padding:14px;min-height:132px}
 .stat-card strong{font-size:25px}
 .search-footnotes{grid-template-columns:1fr}
 .feed-grid{grid-template-columns:1fr}
 .toolbar .search-field{max-width:none;width:100%}
 .toolbar .select-compact{flex:1;min-width:110px}
 .drawer-header,.modal-heading{padding:17px 18px}
 .drawer-body,#modal-body{padding:17px 18px}
 .bulk-bar{flex-wrap:wrap}
 .graph-panel,.graph-panel svg{height:440px;min-height:440px}
 .source-section{align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
