/* CYPHEME INVESTIGATE. Shared visual vocabulary with NODARIS UI 0.2.0.
   Official logo files are preserved; font licenses are in licenses/fonts/. */
@font-face{font-family:Roboto;src:url('fonts/roboto-regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Roboto;src:url('fonts/roboto-medium.woff2') format('woff2');font-weight:500 600;font-style:normal;font-display:swap}
@font-face{font-family:Roboto;src:url('fonts/roboto-bold.woff2') format('woff2');font-weight:650 900;font-style:normal;font-display:swap}
@font-face{font-family:'Roboto Serif';src:url('fonts/roboto-serif-medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
:root,:root[data-theme=dark]{
  color-scheme:dark;--bg:#151517;--sidebar:#111113;--surface:#1b1b1e;--surface2:#222225;--surface3:#2c2c30;
  --border:#343438;--text:#f3f2ef;--text2:#b0b0b8;--muted:#b0b0b8;--subtle:#9898a2;
  --brand:#ff6600;--brand-ink:#1d1d1f;--accent:#ff984f;--accent-rgb:255,102,0;
  --green:#78c39f;--red:#e59398;--yellow:#d8b66b;--purple:#c5a1db;--orange:#ff984f;--blue:#85b5e6;
  --green-rgb:120,195,159;--red-rgb:229,147,152;--yellow-rgb:216,182,107;--blue-rgb:133,181,230;
  --shadow:0 18px 70px #0006;--canvas:#181819;
  --bs-body-color:var(--text);--bs-body-bg:var(--bg);--bs-emphasis-color:var(--text);--bs-secondary-color:var(--text2);--bs-heading-color:var(--text);--bs-border-color:var(--border);
}
:root[data-theme=light]{
  color-scheme:light;--bg:#f6f6f5;--sidebar:#fff;--surface:#fff;--surface2:#f2f2f1;--surface3:#e9e9e7;
  --border:#dededc;--text:#1d1d1f;--text2:#52525c;--muted:#52525c;--subtle:#67676f;
  --accent:#a84200;--green:#28724e;--red:#b3434b;--yellow:#876414;--purple:#805594;--orange:#a84200;--blue:#286ea7;
  --green-rgb:40,114,78;--red-rgb:179,67,75;--yellow-rgb:135,100,20;--blue-rgb:40,110,167;
  --shadow:0 18px 70px #1d1d1f16;--canvas:#f7f6f3;
}
*{box-sizing:border-box}
body{margin:0;color-scheme:inherit;background:var(--bg);color:var(--text);font-family:Roboto,Arial,sans-serif;font-size:13px;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:Roboto,Arial,sans-serif}
::selection{background:#ff660033}
a{color:var(--accent)}a:hover{color:var(--text)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
input:focus,select:focus,textarea:focus{border-color:var(--accent)!important;box-shadow:0 0 0 2px rgba(var(--accent-rgb),.13)!important}
input::placeholder,textarea::placeholder{color:var(--subtle)!important;opacity:1}
button:disabled{cursor:not-allowed}
.cypheme-logo{display:block;position:relative;width:128px;height:30px;overflow:hidden;flex:none}
.cypheme-logo img{position:absolute;display:block;width:100%;height:auto;top:50%;left:0;transform:translateY(-50%);max-width:none}
.cypheme-logo .logo-dark{width:104.8%;left:-2.4%}
.cypheme-logo .logo-light{display:none}
:root[data-theme=light] .cypheme-logo .logo-light{display:block}
:root[data-theme=light] .cypheme-logo .logo-dark{display:none}
.sidebar{width:232px;height:100dvh;min-height:0;background:var(--sidebar);border-color:var(--border)}
.sidebar-logo{padding:25px 24px 16px;border:0;flex:none}
.product-wordmark{display:block;margin-top:19px;font-size:19px;font-weight:500;letter-spacing:2.1px;line-height:1.2;color:var(--text)}
.brand-descriptor{display:block;margin-top:9px;font-size:10px;color:var(--text2);line-height:1.5}
.sidebar-navigation{flex:1;overflow:auto;min-height:0;padding:0 12px 16px!important}
.nav-section-label{font-size:9px;text-transform:uppercase;letter-spacing:1.3px;color:var(--subtle);font-weight:500;margin:17px 12px 8px}
.nav-link{position:relative;min-height:39px;margin:2px 0;border:1px solid transparent;border-radius:7px;font-size:12px;font-weight:400;padding:10px 12px;color:var(--text2);gap:11px;text-decoration:none}
.nav-link:hover{background:var(--surface);color:var(--text)}
.nav-link.active{color:var(--accent);background:rgba(var(--accent-rgb),.09);border:1px solid rgba(var(--accent-rgb),.12)}
.nav-link.active:before{content:'';position:absolute;left:-1px;top:50%;transform:translateY(-50%);width:3px;height:16px;border-radius:3px;background:var(--brand)}
.nav-link i{font-size:15px;width:17px}
.sidebar-footer{flex:none;border-top:1px solid var(--border);padding:13px 16px 16px!important;background:var(--sidebar)}
.sidebar-footer .profile-trigger{width:100%;justify-content:flex-start;min-height:36px}
.profile-trigger .bi-chevron-right{margin-left:auto;color:var(--subtle)}
.theme-switch{display:flex;gap:3px;padding:4px;border:1px solid var(--border);border-radius:8px;background:var(--bg)}
.theme-switch button{display:flex;flex:1;align-items:center;justify-content:center;gap:7px;padding:6px 10px;min-height:31px;font-size:11px;background:transparent;color:var(--text2);border:1px solid transparent;border-radius:5px}
.theme-switch button[aria-pressed=true]{background:var(--surface3);border-color:var(--border);color:var(--text);box-shadow:0 1px 3px #0001}
:root[data-theme=light] .theme-switch button[aria-pressed=true]{background:#fff}
.theme-switch button[aria-pressed=true] i{color:var(--accent)}
.shell-topbar{position:fixed;top:0;left:232px;right:0;min-height:64px;height:64px;display:flex;align-items:center;gap:15px;padding:0 28px;background:var(--sidebar);border-bottom:1px solid var(--border);z-index:75}
.shell-workspace{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--text)}
.shell-workspace>i{display:grid;place-items:center;border:1px solid var(--border);border-radius:6px;background:var(--surface2);width:28px;height:28px;font-size:12px;color:var(--text2)}
.shell-slash{color:var(--subtle)}.shell-breadcrumb{font-size:11px;color:var(--text2)}
.shell-right{display:flex;align-items:center;gap:18px;margin-left:auto}
.shell-status{font-size:10px;color:var(--text2);display:flex;align-items:center;gap:7px}
.shell-status:before{content:'';width:5px;height:5px;border-radius:50%;background:var(--green)}
.shell-date{font-size:11px;color:var(--text2);padding-left:18px;border-left:1px solid var(--border)}
.shell-mobile-menu{display:none;border:0;background:none;color:var(--text);font-size:19px;padding:5px}
.shell-preview{position:fixed;top:64px;left:232px;right:0;height:29px;align-items:center;justify-content:space-between;padding:0 28px;background:var(--surface);border-bottom:1px solid var(--border);color:var(--subtle);font-size:8px;letter-spacing:1.15px;z-index:74;display:none}
body[data-preview=true] .shell-preview{display:flex}
.shell-preview b{font-weight:500;color:var(--yellow)}
.main{margin-left:232px;padding:92px 28px 28px;min-width:0}
body[data-preview=true] .main{padding-top:120px}
:is(.page>div.d-flex:first-child,.research-page-header){margin-bottom:24px!important;gap:18px;min-height:57px}
:is(.page>div.d-flex:first-child,.research-page-header) h4{font-family:'Roboto Serif',Georgia,serif;font-size:30px;font-weight:500!important;letter-spacing:-1.15px;line-height:1.3;color:var(--text)}
:is(.page>div.d-flex:first-child,.research-page-header) h4:after{content:' ';display:inline-block;background:var(--brand);width:6px;height:6px;border-radius:50%;margin-left:10px;vertical-align:middle}
.page-eyebrow{font-family:Roboto,Arial,sans-serif;font-size:9px;text-transform:uppercase;letter-spacing:1.5px;color:var(--subtle);margin-bottom:10px;font-weight:500}
.page-subtitle{font-family:Roboto,Arial,sans-serif;font-size:12px!important;line-height:1.65;color:var(--text2);margin-top:7px}
.btn{border-radius:7px;font-size:11px;font-weight:500;min-height:34px;padding:7px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;box-shadow:none}
.btn-primary,.btn-primary:focus{background:var(--brand);color:var(--brand-ink);border:1px solid var(--brand);font-weight:600}
.btn-primary:hover{background:#ff7e28;border-color:#ff7e28;color:var(--brand-ink)}
.btn-outline{color:var(--text2);background:var(--surface);border-color:var(--border)}
.btn-outline:hover{background:var(--surface2);border-color:var(--subtle);color:var(--text)}
.btn-outline:disabled{opacity:.42}
.card,.stat-card,.gallery-item,.osint-result{background:var(--surface);border-color:var(--border);border-radius:10px;box-shadow:0 1px 2px #00000005}
.card-header{padding:14px 17px;background:var(--surface);border-color:var(--border);font-size:12px;font-weight:500;display:flex;align-items:center;gap:8px}
.card-header i{color:var(--text2)}
.stat-card{padding:23px 20px;position:relative;min-height:111px}
.stat-card .num{font-size:31px;font-weight:500;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:var(--text)!important}
.stat-card .label{font-size:10px;letter-spacing:.25px;margin-top:13px;color:var(--text2)}
.stat-card.clickable:hover{border-color:var(--accent);transform:translateY(-1px);box-shadow:0 4px 16px #0000000a}
.stat-card.clickable:after{content:'↗';position:absolute;right:15px;top:18px;color:var(--subtle);font-size:12px}
.result-badge{font-size:9px;letter-spacing:.2px;padding:4px 7px;border:1px solid transparent;border-radius:5px;font-weight:500}
.badge-valid{background:rgba(var(--green-rgb),.09);color:var(--green);border-color:rgba(var(--green-rgb),.15)}
.badge-invalid{background:rgba(var(--red-rgb),.09);color:var(--red);border-color:rgba(var(--red-rgb),.15)}
.badge-undecided{background:rgba(var(--yellow-rgb),.09);color:var(--yellow);border-color:rgba(var(--yellow-rgb),.16)}
.badge-zoom{background:rgba(var(--blue-rgb),.09);color:var(--blue);border-color:rgba(var(--blue-rgb),.15)}
.badge-finder{background:var(--surface2);color:var(--text2);border-color:var(--border)}
table{font-size:12px}th{background:var(--surface2);color:var(--subtle);font-size:9px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;padding:12px 14px}td{padding:10px 14px;border-color:var(--border)}
tr:hover td{background:var(--surface2)}.ip-link{font-size:11px;color:var(--blue)}.tag-code{display:inline-block;max-width:140px;font-size:11px;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.brand-cell{display:inline-block;vertical-align:middle}
.platform-badge{font-size:9px;border:1px solid var(--border);background:var(--surface2);padding:3px 6px;border-radius:4px}
input,select,textarea{background:var(--surface2)!important;border-color:var(--border)!important;color:var(--text)!important;font-size:12px}
.form-control,.form-select{border-radius:6px;min-height:33px;font-size:12px}
.form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239898a2' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3e%3c/svg%3e")}
.research-filter-card .card-body{padding:16px}
.filter-command-row{gap:8px;margin-bottom:14px;padding-bottom:14px}
.filter-command-row .form-select{min-width:120px}
.research-filter-grid{grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px}
.filter-field label,.platform-filter-label{font-size:9px;font-weight:500;letter-spacing:.65px;margin-bottom:7px;color:var(--subtle)}
.operator-input{grid-template-columns:76px minmax(0,1fr)}.operator-input .operator-select{font-size:10px}
.platform-filter-section{margin-top:14px;padding-top:14px}.platform-filter-option{font-size:11px}
.technical-filter-host summary{font-size:11px}.research-filter-actions{margin-top:14px;padding-top:14px}
.filter-chip{background:rgba(var(--accent-rgb),.07);border-color:rgba(var(--accent-rgb),.18);color:var(--accent);font-size:10px}
.facet-select summary{background:var(--surface2);border-color:var(--border);min-height:33px;font-size:12px}
.facet-menu{background:var(--surface);border-color:var(--border);box-shadow:var(--shadow)}
.facet-option{font-size:11px;min-height:31px}.facet-count,.facet-empty{font-size:10px}
.scan-size-segment,.zoom-control,.per-page-control,.media-controls{border-color:var(--border);border-radius:7px;background:var(--surface)}
.scan-size-btn{color:var(--text2);background:var(--surface);border-color:var(--border);height:31px}
.scan-size-btn.active{background:var(--surface3);color:var(--accent)}.zoom-value{font-size:10px;min-width:42px}
.per-page-control{font-size:11px}.zoom-control input[type=range]{accent-color:var(--brand)}
.gallery-grid{gap:16px}.gallery-item:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 8px 22px #0000000c}
.gallery-item img{background:var(--surface2)}.gallery-item .info{padding:11px 12px;font-size:10px;line-height:1.8}.gallery-item .info strong{font-weight:500;color:var(--text)!important;font-size:11px}
.thumb,.thumb-placeholder{border-color:var(--border);border-radius:6px;background:var(--surface2)}
#graph-container{background:var(--canvas);border-color:var(--border);height:max(480px,calc(100dvh - 365px));border-radius:10px}
#map-container{border-radius:10px;border-color:var(--border)}
.graph-legend{font-size:10px;gap:20px;padding:14px 2px;color:var(--text2)}
.legend-dot{width:7px;height:7px}.map-filter-bar{padding:12px;background:var(--surface);border-color:var(--border);border-radius:8px}
.map-result-btn{font-size:10px;padding:5px 10px;background:var(--surface);color:var(--text2)}
.map-result-btn.active{background:rgba(var(--accent-rgb),.08);border-color:var(--accent);color:var(--accent)}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:var(--surface);color:var(--text)}
.leaflet-popup-content{font-family:Roboto,Arial,sans-serif;font-size:12px;line-height:1.7}
.leaflet-container a.leaflet-popup-close-button{color:var(--text2)}
.map-popup-actions{border-color:var(--border)}.map-popup-action{color:var(--accent);background:var(--surface2);border-color:var(--border)}
.map-popup-action:hover{color:var(--text);border-color:var(--accent)}
.leaflet-bar a,.leaflet-control-layers{background:var(--surface);color:var(--text);border-color:var(--border)}
.leaflet-bar a:hover{background:var(--surface2);color:var(--accent)}
.modal-backdrop-custom{background:#05050799;backdrop-filter:blur(3px)}
.modal-box{background:var(--surface);border-color:var(--border);padding:25px;border-radius:12px;box-shadow:var(--shadow)}
.modal-box h5{font-family:'Roboto Serif',Georgia,serif;font-weight:500!important;letter-spacing:-.5px;font-size:24px}
.close-btn{border-radius:6px;background:var(--surface2);border:1px solid var(--border);color:var(--text2)}
.kv{font-size:12px;margin-bottom:10px}.kv .k{color:var(--subtle)}.kv .v{overflow-wrap:anywhere}
.img-nav-btn{background:var(--surface2);color:var(--text);border-color:var(--border)}
.osint-mode-segment{border-color:var(--border)}.osint-mode-btn{font-size:11px;background:var(--surface);color:var(--text2)}
.osint-mode-btn.active{background:var(--surface3);color:var(--accent);font-weight:500}
.osint-tool-link{background:var(--surface);border-color:var(--border);font-size:12px;min-height:49px;border-radius:8px}
.osint-tool-link small{font-size:10px}.osint-tool-group-title{font-size:9px;letter-spacing:1px;font-weight:500}
.susp-row{background:var(--surface);border:1px solid var(--border);border-radius:7px;font-size:12px;padding:11px 13px}
.alert-custom{font-size:12px}.alert-info{background:rgba(var(--blue-rgb),.08);border-color:rgba(var(--blue-rgb),.2);color:var(--blue)}
.text-danger{color:var(--red)!important}.text-success{color:var(--green)!important}.text-warning{color:var(--yellow)!important}
.toast-msg{background:var(--surface3);border-color:var(--border);color:var(--text);box-shadow:var(--shadow);font-size:12px}
#col-config-panel{background:var(--surface);border-color:var(--border);box-shadow:var(--shadow)}
.col-cfg-item{background:var(--surface2);border-color:var(--border)}.col-cfg-item label{font-size:12px}.col-cfg-move{background:var(--surface);border-color:var(--border)}
#back-btn{left:260px;top:101px;background:var(--surface);z-index:76}
.shell-scrim{display:none}
.auth-page{min-height:100dvh;display:flex;flex-direction:column;background:var(--bg)}
.auth-header{height:78px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:var(--sidebar)}
.auth-header .theme-switch{width:166px}.auth-layout{max-width:1050px;width:100%;margin:auto;display:grid;grid-template-columns:1.15fr 1fr;gap:70px;padding:70px 36px}
.auth-eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--subtle);text-transform:uppercase;margin-bottom:22px}
.auth-story h1{font-family:'Roboto Serif',Georgia,serif;font-size:48px;line-height:1.2;letter-spacing:-1.9px;font-weight:500;margin-bottom:23px}
.auth-story h1 span{color:var(--brand)}.auth-story p{font-size:14px;line-height:1.8;color:var(--text2);max-width:390px}
.auth-card{border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:32px;align-self:center;box-shadow:0 2px 8px #00000004}
.auth-card h2{font-size:19px;font-weight:500;margin-bottom:12px}.auth-card p{font-size:12px;line-height:1.8;color:var(--text2)}
.google-sign-in{width:100%;margin:22px 0 16px;display:flex;align-items:center;justify-content:center;gap:12px;padding:13px 18px;background:var(--brand);color:var(--brand-ink);font-weight:600;border:1px solid var(--brand);border-radius:7px;font-size:13px;text-decoration:none}
.google-sign-in:hover{background:#ff7e28;color:var(--brand-ink)}.google-g{font-size:16px;font-weight:700;line-height:1}
.auth-note{padding-top:16px;border-top:1px solid var(--border);font-size:10px!important;color:var(--subtle)!important;margin:0}
.auth-footer{display:flex;justify-content:space-between;padding:23px 42px;border-top:1px solid var(--border);color:var(--subtle);font-size:10px}
.auth-local-banner{display:none}.auth-page[data-preview=true] .auth-local-banner{display:block;text-align:center;padding:8px;color:var(--yellow);font-size:10px;border-bottom:1px solid var(--border)}
.distribution-page{font-family:Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
.distribution-page header{border-color:var(--border);padding-top:22px;padding-bottom:22px;max-width:1200px}
.distribution-page .brand{display:flex;align-items:center;gap:23px;letter-spacing:1.7px;font-size:11px;font-weight:500}
.distribution-page .brand>span:last-child{border-left:1px solid var(--border);padding-left:22px}
.distribution-page .back{color:var(--text2);font-size:12px}
.distribution-page h1,.distribution-page h2{font-family:'Roboto Serif',Georgia,serif;font-weight:500;letter-spacing:-1.2px}
.distribution-page h1{font-size:46px;line-height:1.2}.distribution-page h2{font-size:25px}.distribution-page h3{font-weight:500;font-size:15px}
.distribution-page p{color:var(--text2);font-size:13px;line-height:1.85}
.distribution-page .eyebrow,.distribution-page .number{color:var(--accent);font-weight:500;font-size:9px;letter-spacing:1.5px}
.distribution-page .download{background:var(--brand);color:var(--brand-ink);border-radius:7px;font-size:12px;padding:13px 20px;min-height:43px}
.distribution-page .access{background:var(--surface);border-color:var(--border);border-radius:10px;padding:28px}
.distribution-page .rule,.distribution-page footer{border-color:var(--border)}
.distribution-page .notice{background:var(--surface);border-left-color:var(--brand)}
.distribution-page .meta,.distribution-page figcaption,.distribution-page footer,.distribution-page .checksum{color:var(--subtle);font-size:11px}
.distribution-page .checksum code{color:var(--text)}
.distribution-page figure a{border-color:var(--border);background:var(--surface)}
.distribution-page .theme-switch{width:150px;margin-left:auto}
body[data-preview=true] .download{opacity:.6;cursor:default}
@media(min-width:1750px){.main{padding-left:38px;padding-right:38px}.shell-topbar,.shell-preview{padding-left:38px;padding-right:38px}}
@media(max-width:1100px){.shell-date{display:none}.main{padding-left:22px;padding-right:22px}:is(.page>div.d-flex:first-child,.research-page-header){flex-wrap:wrap;align-items:flex-start!important}.view-toolbar{justify-content:flex-start}.research-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-field.filter-wide{grid-column:span 1}:is(.page>div.d-flex:first-child,.research-page-header) h4{font-size:27px}.stat-card{padding:20px 15px}.stat-card .num{font-size:27px}.distribution-page .brand{gap:14px}.distribution-page .brand>span:last-child{padding-left:14px}}
@media(max-width:820px){
 .sidebar{position:fixed;left:0;top:0;bottom:0;width:244px;transform:translateX(-100%);visibility:hidden;transition:transform .2s,visibility .2s;overflow:visible;display:flex;height:100dvh;z-index:100}
 .sidebar.mobile-open{transform:none;visibility:visible}.sidebar-logo,.sidebar>div:last-child{display:block}.sidebar>.sidebar-navigation{display:block;width:100%;padding:0 12px 16px!important;overflow:auto}
 .nav-link{width:100%;flex:none;min-height:40px;white-space:normal}.nav-link.active{border-bottom:1px solid rgba(var(--accent-rgb),.12)}
 .shell-mobile-menu{display:block}.shell-topbar{left:0;padding:0 16px;height:58px;min-height:58px;gap:10px}.shell-topbar .shell-workspace{font-size:11px}.shell-status{font-size:9px}.shell-slash,.shell-breadcrumb{display:none}.shell-right{gap:0}
 .shell-preview{top:58px;left:0;padding:0 16px;letter-spacing:.7px;font-size:7px}.shell-preview>span:last-child{display:none}
 .main{margin-left:0;padding:84px 16px 24px}body[data-preview=true] .main{padding-top:110px}:is(.page>div.d-flex:first-child,.research-page-header){gap:14px}:is(.page>div.d-flex:first-child,.research-page-header) h4{font-size:27px}
 .view-toolbar{width:100%;gap:7px}.research-filter-grid{grid-template-columns:1fr 1fr}.zoom-control{flex:1 1 180px}.zoom-control input[type=range]{min-width:60px;width:100%}
 #back-btn{position:static;margin-bottom:12px}.shell-scrim.open{display:block;position:fixed;inset:0;background:#05050788;border:0;z-index:90}
 .gallery-grid{gap:12px}.stat-card{padding:17px 14px;min-height:105px}.stat-card .num{font-size:26px}
 .auth-header{padding:0 23px;height:70px}.auth-layout{grid-template-columns:1fr;gap:30px;padding:45px 24px}.auth-story h1{font-size:36px}.auth-story p{font-size:13px}.auth-card{padding:26px}.auth-footer{padding:20px 24px;gap:14px;flex-wrap:wrap}
 .distribution-page header{flex-wrap:wrap;gap:17px}.distribution-page .brand{flex:1}.distribution-page .theme-switch{width:140px}.distribution-page .back{order:3;width:100%}.distribution-page h1{font-size:36px}
}
@media(max-width:520px){.research-filter-grid{grid-template-columns:1fr}.filter-command-row .form-select{min-width:0}.shell-workspace>i{display:none}.shell-status{max-width:105px;text-align:right;line-height:1.5}.view-toolbar{gap:7px}.gallery-item .info{padding:10px}.modal-box{padding:20px;max-width:96vw}.auth-header .theme-switch{width:140px}.auth-header .cypheme-logo{width:110px}.distribution-page .brand>span:last-child{font-size:9px}.distribution-page .cypheme-logo{width:105px}.distribution-page header .theme-switch{width:125px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep quick research visible; advanced filters remain one click away. */
.filters-collapsed .research-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.filters-collapsed .research-filter-grid>.filter-field:nth-child(n+5){display:none}
.filters-collapsed .research-filter-grid>.filter-field:first-child{grid-column:auto}
#page-scans .filters-collapsed .research-filter-grid{grid-template-columns:1.6fr 1fr 1fr 1fr}
.filters-collapsed .platform-filter-section,.filters-collapsed .technical-filter-host{display:none}
.filters-collapsed .research-filter-actions{margin-top:12px;padding-top:12px}
.filter-visibility-toggle{white-space:nowrap}
@media(max-width:1100px){.filters-collapsed .research-filter-grid,#page-scans .filters-collapsed .research-filter-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.filters-collapsed .research-filter-grid,#page-scans .filters-collapsed .research-filter-grid{grid-template-columns:1fr}}

/* Research focus: collapse title/settings, keep recovery in the fixed top bar.
   A native dialog reopens the same controls without moving the data viewport. */
body{--workspace-top:64px}
body[data-preview=true]{--workspace-top:93px}
.shell-focus-controls[hidden]{display:none!important}
.shell-focus-controls{min-height:30px;padding:5px 10px;white-space:nowrap;font-size:10px}
.shell-focus-controls[aria-expanded=false]{color:var(--accent);border-color:rgba(var(--accent-rgb),.25)}
.research-controls:not([open]){display:none}
.research-controls[open]:not(:modal){position:static;inset:auto;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:visible}
.research-controls-closebar{display:none}
.research-controls:modal{position:fixed;inset:calc(var(--workspace-top) + 12px) 28px auto 260px;width:auto;max-width:none;max-height:calc(100dvh - var(--workspace-top) - 36px);margin:0;padding:20px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);box-shadow:var(--shadow);overscroll-behavior:contain}
.research-controls:modal::backdrop{background:#05050799}
.research-controls:modal .research-controls-closebar{position:sticky;top:-20px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--bg);margin:-20px -20px 20px;padding:12px 20px;border-bottom:1px solid var(--border)}
.research-controls-closebar>span{font-size:11px;color:var(--text2)}
.research-controls:modal>.research-filter-card{margin-bottom:0!important}
body.research-controls-modal{overflow:hidden}
.focus-workspace #map-container{height:max(300px,calc(100dvh - var(--workspace-top) - 55px))}
.focus-workspace #graph-container{height:max(300px,calc(100dvh - var(--workspace-top) - 115px))}
.focus-workspace .graph-legend{padding-top:0}
@media(max-width:820px){body{--workspace-top:58px}body[data-preview=true]{--workspace-top:87px}.shell-topbar.has-focus-controls .shell-status{display:none}.shell-focus-controls{padding:5px 8px}.research-controls:modal{left:12px;right:12px;padding:16px;max-height:calc(100dvh - var(--workspace-top) - 24px)}.research-controls:modal .research-controls-closebar{top:-16px;margin:-16px -16px 16px;padding:10px 16px}}

/* Result context stays with the data; page navigation uses the same cursors. */
.page{--research-context-height:44px}
.research-context{display:none;position:sticky;top:var(--workspace-top);z-index:65;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;min-height:44px;margin:0 0 10px;padding:7px 12px;background:var(--bg);border:1px solid var(--border);border-radius:7px}
#page-scans>.research-context,#page-gallery>.research-context,.focus-workspace>.research-context{display:grid}
.context-summary{font-size:10px;color:var(--text2);white-space:nowrap;font-variant-numeric:tabular-nums}
.context-filters{display:flex;align-items:center;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}
.context-filter{flex:none;max-width:235px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid rgba(var(--accent-rgb),.18);border-radius:4px;padding:3px 7px;min-height:25px;font-size:10px;color:var(--accent);background:rgba(var(--accent-rgb),.06)}
.context-unfiltered{font-size:10px;color:var(--subtle);white-space:nowrap}
.context-pagination{display:flex;align-items:center;gap:8px;white-space:nowrap}.context-pagination[hidden]{display:none}
.context-pagination .btn{min-height:28px;padding:4px 7px}.context-page{font-size:10px;color:var(--text2);font-variant-numeric:tabular-nums}
.focus-workspace .scans-scroll-region{height:max(220px,calc(100dvh - var(--workspace-top) - var(--research-context-height) - 66px));overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;position:relative}
.focus-workspace .scans-scroll-region thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 var(--border)}
.focus-workspace .scans-scroll-region table{border-collapse:separate;border-spacing:0}
.focus-workspace .scans-results-card>.card-body{display:none}
.focus-workspace #map-container{height:max(280px,calc(100dvh - var(--workspace-top) - var(--research-context-height) - 65px))}
.focus-workspace #graph-container{height:max(280px,calc(100dvh - var(--workspace-top) - var(--research-context-height) - 125px))}
@media(max-width:820px){.research-context{gap:7px;padding:7px 8px;grid-template-columns:minmax(0,1fr) auto}.context-filters{grid-column:1/-1;grid-row:2}.context-summary{white-space:normal;line-height:1.5}.context-pagination{grid-column:2;grid-row:1}}

.scans-scroll-region:focus-visible{outline:none}
.profile-dialog{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}
.profile-dialog::backdrop{background:#05050788}
.profile-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:var(--surface);border-bottom:1px solid var(--border)}
.profile-heading h2{font-size:19px;margin:0}
.profile-content{padding:4px 20px 16px}
.profile-account{display:flex;align-items:center;gap:12px;padding:16px 0}
.profile-account>i{font-size:23px;color:var(--text2)}
.profile-name{font-size:14px;font-weight:650;overflow-wrap:anywhere}
.profile-meta{font-size:12px;color:var(--text2);overflow-wrap:anywhere}
.profile-about{padding:13px;background:var(--surface2);border:1px solid var(--border);border-radius:8px;margin-bottom:8px}
.profile-about h3{font-size:13px;margin:0 0 6px}
.profile-about p{font-size:12px;line-height:1.5;color:var(--text2);margin:0}
.profile-about #db-count:not(:empty){display:block;margin-top:6px}
.profile-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;width:100%;font-size:13px;text-align:left}
.profile-action,.profile-section{border:0;border-top:1px solid var(--border);padding:0;background:none;color:inherit}
.profile-section>summary{cursor:pointer}
.profile-section>summary::before{content:'›';font-size:17px;color:var(--subtle)}
.profile-section[open]>summary::before{transform:rotate(90deg)}
.profile-section>summary{justify-content:flex-start;list-style:none}
.profile-section>summary::-webkit-details-marker{display:none}
.profile-section>summary .profile-meta{margin-left:auto}
.profile-section-body{padding:0 0 12px}
.profile-theme{display:flex;gap:2px;padding:2px;border:1px solid var(--border);border-radius:7px}
.profile-theme button{width:28px;height:27px;border:0;border-radius:4px;background:none;color:var(--text2)}
.profile-theme button[aria-pressed=true]{background:var(--surface3);color:var(--text)}
.profile-activity-list{list-style:none;margin:0;padding:0}
.profile-activity-list li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:6px 0}
.profile-activity-list strong{color:var(--text);font-weight:500}
.profile-actions{padding-top:12px;border-top:1px solid var(--border)}
.profile-actions p{margin:0 0 8px}
/* Personal shortcuts and session recovery share both product themes. */
.shortcut-settings { width:min(680px,calc(100vw - 32px)); max-height:85vh; overflow:auto; background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:12px; padding:24px; }
.shortcut-settings::backdrop { background:rgba(0,0,0,.56); }
.shortcut-settings p { color:var(--text2); font-size:13px; line-height:1.5; }
.shortcut-setting-row { display:grid; grid-template-columns:1fr minmax(140px,210px); gap:16px; align-items:center; padding:10px 0; border-bottom:1px solid var(--border); font-size:13px; }
.shortcut-actions { display:flex; justify-content:space-between; gap:12px; margin-top:20px; }
.shortcut-settings-heading { position:sticky; top:-24px; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:16px; background:var(--surface); margin:-24px -24px 12px; padding:20px 24px; border-bottom:1px solid var(--border); }
.shortcut-settings-heading h3 { margin:0; }
.session-recovery { position:fixed; z-index:10000; bottom:24px; right:24px; width:min(480px,calc(100vw - 32px)); padding:20px; border:1px solid var(--accent); border-radius:12px; background:var(--surface); color:var(--text); box-shadow:0 8px 40px #0005; }
.session-recovery .btn { margin:4px 8px 0 0; }
@media (max-width:520px) { .shortcut-setting-row { grid-template-columns:1fr; gap:6px; } .session-recovery { right:16px; bottom:16px; } }
