/* Screenshot-fidelity layer for approved 1536x864 / 1672x941 cockpit.
   Loaded AFTER reference-fidelity.css. Only presentation/navigation changes.
   Backend proof, disabled trading controls and unknown-data states remain intact. */
:root{--design-cyan:#25c7ff;--design-violet:#a26eff;--design-panel:#081a2d;--design-border:#1b507b}
.topbar{background:linear-gradient(90deg,#051527,#0a1c30 61%,#071527);border-bottom:1px solid #153c62;z-index:20}
.brand-symbol{padding:0;border:0;box-shadow:0 0 18px #00acff91,inset 0 0 17px #1e86ba67;background:radial-gradient(circle,#14538b,#071e36 70%);flex-shrink:0}
.brand-symbol svg{width:100%;height:100%;filter:drop-shadow(0 0 5px #2acbff)}
.top-nav{scrollbar-width:none;min-width:0}
.top-nav button{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;transition:background .15s ease,box-shadow .15s ease}
.top-nav button svg{width:16px;height:16px;flex:0 0 16px}
.top-nav button[aria-current="page"]{color:#eefaff!important;border:1px solid #147dff!important;background:linear-gradient(115deg,#165ac1,#0b2b5c)!important;box-shadow:0 0 15px #187efa70,inset 0 -2px #31d4ff!important}
.global-search{height:31px;width:clamp(155px,15.2vw,245px);flex:0 1 235px;min-width:0;border:1px solid #23568d;border-radius:6px;display:flex;align-items:center;gap:6px;padding:0 8px;background:#091b30;position:relative}
.global-search:focus-within{border-color:#40afff;box-shadow:0 0 0 2px #188acc30}
.search-symbol{width:15px;height:15px;display:flex;align-items:center;color:#a6b9d5;flex-shrink:0}
.search-symbol svg{width:15px;height:15px}
.global-search input{font:11px Inter,"PingFang SC","Microsoft YaHei",sans-serif;min-width:0;flex:1;border:0;outline:0;background:transparent;color:#d4ecff}
.global-search input::placeholder{color:#7a91aa;opacity:1}
.global-search input::-webkit-search-cancel-button{filter:invert(1)}
.search-feedback{position:absolute;z-index:40;top:36px;left:0;min-width:100%;max-width:260px;background:#122f47;color:#b9d9ef;border-radius:5px;border:1px solid #30618b;font-size:11px}
.search-feedback:empty{display:none}
.top-actions{display:flex;align-items:center;gap:9px}
.notification-menu,.profile-menu{position:relative}
.notification-menu summary,.profile-menu summary{display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;list-style:none;color:#b3cce6}
.notification-menu summary::-webkit-details-marker,.profile-menu summary::-webkit-details-marker{display:none}
.notification-menu summary{width:24px;height:32px}
.notification-menu summary svg{width:17px;height:17px}
.profile-menu summary svg{width:15px;height:15px}
.user-avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#588ad3,#274b83);color:#fff;font-size:13px;box-shadow:0 0 10px #4775b75c}
.user-name{font-size:11px;color:#e1edff}
.notification-popover,.profile-popover{position:absolute;z-index:50;top:38px;right:0;width:225px;background:#0a2239;border:1px solid #2b5c85;border-radius:8px;box-shadow:0 10px 30px #000b;color:#b5d3e7;font-size:11px;padding:14px;line-height:1.7}
.notification-popover .refresh-inline{display:block;margin-top:9px;background:#14518d;border:1px solid #2684ca;border-radius:5px;padding:7px 11px;color:#e1f6ff;cursor:pointer}
.profile-popover strong,.profile-popover span,.profile-popover a{display:block;margin-bottom:5px}
.profile-popover a{margin-top:10px;padding:6px;color:#bce8ff;border-top:1px solid #23506d}
.runtime-strip{position:absolute;z-index:13;right:16px;top:51px;height:13px;display:flex;align-items:center;gap:12px;white-space:nowrap;color:#849cb4;font-size:8px;pointer-events:none}
.runtime-strip .status{font-size:9px;padding:0!important;border:0!important;background:none!important}
.runtime-strip .status:before{width:7px;height:7px;margin-right:4px}
.side-group{border:1px solid var(--design-border);border-radius:6px;background:linear-gradient(145deg,#0b253d,#081a2f 85%);padding:3px 3px 5px;box-shadow:inset 0 1px #3773a019}
.side-group.money{border-color:#493a7b;background:linear-gradient(140deg,#1b183b 0%,#101d37 34%,#07182b)}
.side-group.system{border-color:#1e4c7d}
.side-group-head{height:29px;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0 6px;border-radius:4px;color:#79cfff;background:linear-gradient(90deg,#184c7e,#0a2440 90%)}
.side-group-head span{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px;font-weight:750;letter-spacing:.2px}
.side-group-head svg{width:17px;height:17px;flex-shrink:0}
.side-group-head small{color:#7bb8db;letter-spacing:.45px;font-weight:650;font-size:8px}
.side-group.money .side-group-head{color:#d2a8ff;background:linear-gradient(90deg,#402367,#192044 90%)}
.side-group.money .side-group-head small{color:#ae8bea}
.side-group.system .side-group-head{background:linear-gradient(90deg,#1e497e,#0e2746)}
.side-group .side-link{border:1px solid transparent;width:100%;display:flex;align-items:center;gap:8px;border-radius:3px;color:#b5d3eb;font-size:11px;font-weight:540;text-align:left;margin:0;line-height:1}
.side-group .side-link svg{width:14px;height:14px;flex:0 0 14px;color:#bad6f0}
.side-group .side-link[aria-current="page"]{color:#f0f9ff;border-color:#1665a6;background:linear-gradient(90deg,#164f8a,#103758);box-shadow:inset 3px 0 #2bc5ff}
.side-group.money .side-link[aria-current="page"]{border-color:#7950bb;background:linear-gradient(90deg,#422679,#1d2951);box-shadow:inset 3px 0 #c68eff}
.sidebar-note{position:relative;isolation:isolate;margin:auto 0 0;overflow:hidden;border:1px solid #1f5e95;border-radius:6px;display:flex;flex-direction:column;gap:4px;background:radial-gradient(ellipse at 57% 99%,#123b8d,#091c39 66%,#08192b);color:#e5efff;font-style:italic;font-size:12px;line-height:1.7}
.sidebar-note span,.sidebar-note small{position:relative;z-index:1}
.sidebar-note small{text-align:right;font-size:10px;color:#93c0e8;font-style:normal}
.sidebar-horizon{position:absolute;bottom:-28px;left:-15%;height:90px;width:130%;opacity:.75;background:repeating-radial-gradient(ellipse 130px 48px at 50% 96%,transparent 0 9px,#0c95ff80 10px 11px,transparent 12px 19px),radial-gradient(ellipse at 60% 97%,#1258ca 2%,transparent 60%);transform:perspective(140px) rotateX(43deg)}
.nav-unavailable{display:flex;align-items:center;gap:9px;margin:4px 0 12px;background:#13293d;border:1px solid #85623a;border-radius:6px;color:#ffd79c;padding:10px 12px;font-size:12px}
.nav-unavailable svg{height:17px;width:17px;flex-shrink:0}
.reference-focus-panel{outline:1px solid #31bbff;box-shadow:0 0 19px #149cea47!important;scroll-margin-top:12px}
.overview-cockpit .metric{border-radius:7px;border-color:#1e4e77;background:linear-gradient(155deg,#0d2842,#081c30 90%);box-shadow:0 0 12px #1f70c112}
.overview-cockpit .metric:before{content:"";left:9px;top:10px;width:31px;height:32px;border:1px solid #2884bd;border-radius:6px;background:radial-gradient(circle at 46% 35%,#317dcf,#154274 80%);box-shadow:0 0 11px #167dda63}
.overview-cockpit .metric:nth-child(1):before{border-color:#b4872e;background:radial-gradient(circle,#6f5420,#3a2a13)}
.overview-cockpit .metric:nth-child(3):before{border-color:#1fa987;background:radial-gradient(circle,#126e70,#104b47)}
.overview-cockpit .metric:nth-child(6):before{border-color:#8246ed;background:radial-gradient(circle,#6f3cbb,#382068)}
.overview-cockpit .metric .label,.overview-cockpit .metric .value,.overview-cockpit .metric small{margin-left:43px}
.overview-cockpit .metric .value{letter-spacing:.6px}
.overview-cockpit .metric:nth-child(6) .value{color:#e4c9ff}
/* Screenshot KPI icons are real vector glyphs rather than colored empty tiles. */
.overview-cockpit .metric:before{display:none!important}
.overview-cockpit .metric-icon{position:absolute;top:10px;left:9px;width:31px;height:32px;display:grid;place-items:center;color:#75d4ff;border:1px solid #2675b9;border-radius:6px;background:radial-gradient(circle at 45% 30%,#194d88,#0e3057);box-shadow:0 0 11px #167dda63}
.overview-cockpit .metric-icon svg{width:21px;height:21px;filter:drop-shadow(0 0 4px currentColor)}
.overview-cockpit .metric:nth-child(1) .metric-icon{color:#ffdc68;border-color:#a77821;background:radial-gradient(circle,#5f4720,#322611)}
.overview-cockpit .metric:nth-child(2) .metric-icon{color:#72baff}
.overview-cockpit .metric:nth-child(3) .metric-icon{color:#50f0c6;border-color:#1caa8c;background:radial-gradient(circle,#125e5d,#103a3d)}
.overview-cockpit .metric:nth-child(4) .metric-icon{color:#65d7ff}
.overview-cockpit .metric:nth-child(5) .metric-icon{color:#77b8ff}
.overview-cockpit .metric:nth-child(6) .metric-icon{color:#dec1ff;border-color:#7845d3;background:radial-gradient(circle,#58359a,#2d1b55)}
.panel-head-link{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #2f6798;background:#102d4c;border-radius:5px;color:#bde9ff;padding:5px 10px;font-size:9px}
.panel-head-link:hover{border-color:#65caff;background:#16406a}
.hero-money .panel-head-link{border-color:#744ba1;color:#e1cbff;background:#211736}
.cockpit-funnel .funnel-row:nth-child(6){background:linear-gradient(100deg,#c15d29,#f68d3d)}
.cockpit-funnel .funnel-row:nth-child(7){background:linear-gradient(100deg,#b64b59,#fb5363)}

.overview-grid .panel{border-radius:7px;border-color:#215582;background:linear-gradient(144deg,#081d31,#071829 74%);box-shadow:inset 0 1px #3976a71f}
.overview-grid .hero-research{border-color:#2a74b9;box-shadow:inset 0 1px #3c98e421,0 0 14px #0f55af24}
.overview-grid .hero-money{border-color:#7251a8!important;background:linear-gradient(142deg,#171332,#0b1c36 47%,#10142b)}
.overview-grid .panel-header h2{font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview-grid .panel-header h2 .panel-title-icon{width:21px;height:21px;margin-right:7px;display:inline-grid;place-items:center;vertical-align:middle;color:#60caff;border:1px solid #1e79a4;border-radius:5px;background:#103f65}
.overview-grid .panel-header h2 .panel-title-icon svg{width:16px;height:16px}
.overview-grid .hero-money .panel-header h2,.overview-grid .hero-money .panel-title-icon{color:#c99aff}
.overview-grid .overview-risk .cockpit-gauge-ring{border-color:#1c65ab}
.overview-grid .cockpit-actions .cockpit-action:nth-child(2){border-color:#6b3999;background:linear-gradient(105deg,#4c2a73,#2b1f58)}
.overview-grid .cockpit-actions .cockpit-action:focus-visible{outline:2px solid #91ddff}
.footer{background:#061422!important;border-top:1px solid #17406b;color:#7391b0!important}
.footer-brand{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.footer-mark{font-size:18px;line-height:1;color:#35c9ff;text-shadow:0 0 10px #05a7ed}
.footer-brand strong{color:#bcdff6;font-weight:750;font-size:9px}
.footer-brand small{color:#6f98b6;font-size:8px}
.footer .footer-warning{color:#789cbd!important;font-size:8px;letter-spacing:.1px}


/* In-card tabs reproduce the approved research/money navigation and are live
   read-only switches rather than decorative, nonfunctional labels. */
.reference-tabs{display:flex;align-items:center;gap:6px;flex:0 0 auto;white-space:nowrap;min-width:0;max-width:100%;overflow:auto;scrollbar-width:none;border-bottom:1px solid #174568}
.reference-tabs button{cursor:pointer;color:#93b6d3;background:transparent;border:0;border-bottom:2px solid transparent;font-size:10px;padding:5px 7px;flex:0 0 auto}
.reference-tabs button:hover{color:#e4f9ff;background:#0e3151}
.reference-tabs button[aria-pressed="true"]{border-bottom-color:#32c6ff;color:#effaff;font-weight:750}
.hero-money .reference-tabs{border-bottom-color:#473e7c}
.hero-money .reference-tabs button[aria-pressed="true"]{border-bottom-color:#a887ff;color:#e5d2ff}
.overview-research-tab-content{min-height:0;flex:1 1 0;overflow:auto;display:flex;flex-direction:column}
.overview-research-tab-content>.graph-wrap,.overview-research-tab-content>.brain-svg,.overview-research-tab-content>.empty{min-height:110px;flex:1 1 0}
.overview-money-tab-content{min-height:0;flex:1 1 0;overflow:auto;padding-top:7px}
.overview-money-tab-content .data-table{font-size:10px}
.overview-money-tab-content .table-wrap{max-height:235px}
.overview-grid .hero-funnel .message{font-size:9px;line-height:1.4}
@media (min-width:1200px) and (min-height:760px){
  html,body{height:100%;overflow:hidden}
  .shell{height:100vh;min-height:0;overflow:hidden}
  .topbar{height:52px!important;min-height:52px!important;flex:0 0 52px;padding:0 16px!important;gap:10px!important;flex-wrap:nowrap!important}
  .brand{min-width:clamp(187px,13.2vw,220px)!important;gap:9px}
  .brand-symbol{width:39px!important;height:39px!important}
  .brand b{font-size:17px!important}
  .brand small{font-size:9px!important}
  .top-nav{gap:2px!important;flex:1 1 auto;max-width:none!important;order:0!important;overflow:hidden}
  .top-nav button{font-size:11px!important;padding:7px clamp(5px,.52vw,9px)!important;gap:5px;min-height:35px!important}
  .top-nav button svg{height:15px;width:15px;flex-basis:15px}
  .global-search{flex:0 1 clamp(165px,15vw,235px);height:31px}
  .top-actions{margin:0!important;flex-shrink:0}
  .workspace{height:calc(100vh - 72px)!important;min-height:0!important;overflow:hidden}
  .sidebar{flex:0 0 clamp(155px,10.2vw,170px)!important;width:clamp(155px,10.2vw,170px)!important;padding:10px 7px 5px!important;overflow-y:auto;gap:7px;display:flex;flex-direction:column}
  .side-group{flex-shrink:0}
  .side-group .side-link{height:27px;padding:5px 7px!important}
  .sidebar-note{min-height:130px;max-height:145px;padding:13px 9px 8px!important}
  .main{width:0!important;flex:1 1 0;max-width:none!important;height:100%;min-width:0;margin:0!important;padding:12px 10px 5px!important;overflow:auto}
  .footer{flex:0 0 20px;min-height:20px!important;height:20px!important;padding:3px 13px!important;font-size:8px!important}
  .overview-cockpit{display:flex;flex-direction:column;gap:9px;height:100%;min-height:0}
  .overview-cockpit .kpis{height:76px!important;min-height:76px;flex:0 0 76px!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:9px!important;margin:0!important}
  .overview-cockpit .metric{height:76px!important;min-height:76px!important;padding:10px 6px!important}
  .overview-cockpit .metric .label{font-size:10px;line-height:14px!important;margin-top:0}
  .overview-cockpit .metric .value{font-size:19px!important;line-height:23px!important;margin-top:5px!important;margin-bottom:0!important}
  .overview-cockpit .metric small{font-size:9px;line-height:13px!important}
  .overview-grid{display:grid;flex:1 1 0;min-height:0!important;height:0;gap:9px!important;grid-template-columns:repeat(24,minmax(0,1fr))!important;grid-template-rows:minmax(0,1.9fr) minmax(0,1.25fr) minmax(0,.63fr)!important}
  .overview-grid .panel{min-height:0!important;padding:7px 9px!important;display:flex;flex-direction:column;overflow:hidden}
  .overview-grid .panel-header{flex:0 0 auto;min-width:0;padding-bottom:5px!important;align-items:center}
  .overview-grid .panel-header h2{font-size:12px!important}
  .overview-grid .panel-header small{font-size:9px!important;padding:4px 6px}
  .overview-grid .panel-body{min-height:0;flex:1;overflow:auto;padding-top:5px!important}
  .overview-grid .hero-research{grid-area:1 / 1 / 2 / 11!important}
  .overview-grid .hero-funnel{grid-area:1 / 11 / 2 / 17!important}
  .overview-grid .hero-money{grid-area:1 / 17 / 2 / 25!important}
  .overview-grid .overview-agent{grid-area:2 / 1 / 3 / 11!important}
  .overview-grid .overview-feed{grid-area:2 / 11 / 3 / 17!important}
  .overview-grid .overview-holdings{grid-area:2 / 17 / 3 / 25!important}
  .overview-grid .overview-risk{grid-area:3 / 1 / 4 / 6!important}
  .overview-grid .overview-market{grid-area:3 / 6 / 4 / 11!important}
  .overview-grid .overview-events{grid-area:3 / 11 / 4 / 17!important}
  .overview-grid .overview-actions{grid-area:3 / 17 / 4 / 25!important}
  .overview-grid .hero-research .panel-body,.overview-grid .hero-money .panel-body{display:flex;flex-direction:column}
  .overview-grid .hero-research .reference-tabs,.overview-grid .hero-money .reference-tabs{height:25px}
  .overview-grid .hero-funnel .message{display:none}
  .overview-grid .hero-research .panel-body>.empty,.overview-grid .hero-research .brain-svg{flex:1;min-height:100px;max-height:none}
  .overview-grid .cockpit-funnel{padding:3px 0!important;gap:7px!important;justify-content:center;height:auto}
  .overview-grid .cockpit-funnel .funnel-row{height:32px!important;min-height:0!important;max-width:96%;font-size:10px;padding:0 11px}
  .overview-grid .cockpit-funnel .funnel-row strong{font-size:13px}
  .overview-grid .cockpit-money-value{font-size:27px;margin:4px 0 3px}
  .overview-grid .cockpit-money-divider{margin:7px 0}
  .overview-grid .cockpit-money-meta{gap:7px;margin-bottom:6px}
  .overview-grid .cockpit-money-meta strong{font-size:12px;margin-top:1px}
  .overview-grid .cockpit-money-plot{min-height:30px!important;flex:1 1 50px}
  .overview-grid .overview-agent .overview-line{min-height:23px;padding:3px 7px}
  .overview-grid .overview-feed .overview-line{min-height:40px;padding:5px 7px}
  .overview-grid .overview-risk .panel-body{display:grid;grid-template-columns:minmax(76px,38%) 1fr;gap:7px}
  .overview-grid .overview-market .cockpit-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .overview-grid .overview-actions .cockpit-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}
  .overview-grid .overview-actions .cockpit-action{min-height:32px!important;font-size:10px;padding:5px 2px}
  .overview-grid .overview-actions .action-caption{grid-column:1/-1;font-size:9px}
}
@media (min-width:1200px) and (min-height:760px) and (max-height:900px){
  .overview-grid .overview-actions .action-caption{display:none}
  .overview-grid .cockpit-mini-flow{display:none}
  .overview-grid .hero-money .cockpit-locked-strip{font-size:9px;padding:3px 6px}
}
@media (max-width:1199px){
  .topbar{height:auto;min-height:56px;gap:9px;flex-wrap:wrap}
  .brand{min-width:185px}
  .top-nav{order:3;width:100%;max-width:none!important;flex:0 0 100%;overflow:auto}
  .global-search{margin-left:auto}
  .top-actions{flex-shrink:0}
  .runtime-strip{display:none}
  .sidebar{width:162px;flex:0 0 162px;display:flex;flex-direction:column;gap:7px}
  .side-group .side-link{min-height:29px;padding:7px 8px}
  .sidebar-note{min-height:130px;padding:13px 10px}
}
@media (max-width:700px){
  .topbar{padding:9px 10px;gap:7px}
  .brand{min-width:0;flex:1}
  .brand b{font-size:15px}
  .global-search{order:2;flex:1 1 100%;max-width:none}
  .top-actions{margin-left:0}
  .top-nav{order:3;overflow-x:auto}
  .sidebar{display:none}
  .overview-cockpit .metric-icon{width:23px;height:24px;top:10px;left:9px}
  .overview-cockpit .metric-icon svg{width:17px;height:17px}
  .overview-cockpit .metric .label,.overview-cockpit .metric .value,.overview-cockpit .metric small{margin-left:30px}
  .overview-cockpit .metric .value{font-size:16px}
}

/* Bounded, local read-only search index. Nothing is sent to a third-party
 * search provider; only current verified backend metadata may appear. */
.global-search .search-results{
  position:absolute;left:0;top:calc(100% + 6px);z-index:65;
  width:clamp(270px,28vw,390px);max-width:min(390px,calc(100vw - 24px));
  max-height:min(360px,55vh);overflow:auto;
  border:1px solid #3780af;border-radius:9px;
  background:linear-gradient(155deg,#102c44,#081d31);
  box-shadow:0 16px 34px #000c;scrollbar-width:thin;
}
.global-search .search-results[hidden]{display:none!important}
.global-search .search-result{
  display:flex;width:100%;min-width:0;gap:10px;
  align-items:center;justify-content:space-between;text-align:left;
  padding:10px 11px;border:0;border-bottom:1px solid #25506d;
  background:transparent;color:#e1f4ff;cursor:pointer;
  font:11px/1.45 Inter,"PingFang SC","Microsoft YaHei",sans-serif;
}
.global-search .search-result:last-child{border-bottom:0}
.global-search .search-result:hover,
.global-search .search-result:focus-visible{
  background:#184467;outline:2px solid #55c7f6;outline-offset:-2px;
}
.search-result-content{display:flex;flex-direction:column;min-width:0;flex:1}
.search-result-content strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#e1f5ff;font-size:11px;font-weight:680;
}
.search-result-content small{
  color:#8cbbda;font-size:10px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;margin-top:4px;
}
.search-result-kind{
  font-size:9px;line-height:1.4;flex-shrink:0;max-width:74px;
  text-align:center;border:1px solid #346b90;background:#1a3e5a;
  border-radius:8px;color:#8ed3f4;padding:4px 5px;
}
.global-search .search-empty{
  padding:15px 12px;color:#9abdd5;line-height:1.6;
  font-size:11px;
}
@media(max-width:700px){
  .global-search .search-results{
    width:min(350px,calc(100vw - 24px));
    max-height:50vh;
  }
}

/* System Settings: only observed existing evidence, never a live permission gate. */
.settings-cockpit .settings-title{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;padding:9px 14px;
  border:1px solid #32618c;border-radius:8px;
  background:linear-gradient(110deg,#102940,#111d37);
}
.settings-cockpit .settings-title h2{
  margin:0;font-size:16px;letter-spacing:.3px;color:#e1f5ff;
}
.settings-cockpit .settings-intro{
  color:#a4d3e7;background:#0b253b;
  border:1px solid #265c77;border-radius:6px;
  padding:11px;line-height:1.6;font-size:11px;margin-bottom:12px;
}
.settings-cockpit .settings-matrix{
  max-width:100%;overflow-x:auto;scrollbar-width:thin;
}
.settings-cockpit .settings-matrix table{
  width:100%;border-collapse:collapse;
  font-size:11px;line-height:1.55;
  table-layout:auto;min-width:690px;
}
.settings-cockpit .settings-matrix th{
  background:#102e47;color:#8acbed;
  border-bottom:1px solid #377599;
  font-weight:650;white-space:nowrap;text-align:left;
  padding:9px 11px;
}
.settings-cockpit .settings-matrix td{
  color:#c9e2f1;padding:10px 11px;
  border-bottom:1px solid #1f4961;
  vertical-align:middle;
}
.settings-cockpit .settings-matrix tbody tr:hover{background:#10334d}
.settings-route-link{color:#65cfff;text-decoration:none;white-space:nowrap}
.settings-route-link:focus-visible{
  outline:2px solid #65dcff;outline-offset:4px;
}
.settings-state{
  display:inline-flex;padding:4px 7px;border-radius:6px;
  font-weight:680;font-size:10px;white-space:nowrap;
  border:1px solid #37536b;background:#122941;
}
.settings-state.observed{color:#6ee2c5;border-color:#226f6f;background:#073a3a}
.settings-state.unknown{color:#efce8e;border-color:#7e6239;background:#3a2e20}
@media(max-width:700px){
  .settings-cockpit .settings-title h2{font-size:13px}
  .settings-cockpit .settings-matrix{margin:0 -4px}
  .settings-cockpit .settings-matrix table{min-width:690px}
}


/* Accessible mobile subnavigation: the approved desktop sidebar stays unchanged.
   On <=700px the 15 sidebar links must NOT disappear behind display:none. */
.mobile-nav-toggle,.mobile-menu-close,.mobile-nav-backdrop{display:none}
@media (max-width:700px){
  .mobile-nav-toggle{
    display:inline-flex;align-items:center;justify-content:center;gap:5px;
    flex:0 0 auto;order:1;padding:9px 10px;min-height:39px;
    color:#d5f6ff;background:#112c43;border:1px solid #39799a;
    border-radius:8px;font-weight:600;font-size:11px;line-height:1.2;font-family:inherit;cursor:pointer;
  }
  .mobile-nav-toggle[aria-expanded="true"]{background:#174263;border-color:#65b8db}
  .mobile-nav-toggle:focus-visible,.mobile-menu-close:focus-visible{
    outline:2px solid #80f6ff;outline-offset:2px;
  }
  .mobile-nav-backdrop:not([hidden]){
    display:block;position:fixed;inset:0;z-index:79;
    width:100vw;height:100dvh;border:0;background:rgba(3,12,24,.76);
    cursor:pointer;
  }
  .sidebar.mobile-open{
    display:flex!important;position:fixed;inset:0 auto 0 0;z-index:80;
    width:min(86vw,310px)!important;max-width:310px;max-height:100dvh;
    height:100dvh;box-sizing:border-box;
    overflow-y:auto;overscroll-behavior:contain;
    flex-direction:column;gap:8px;padding:12px 10px 24px!important;
    border-right:1px solid #34769a;background:#071b2e;
    box-shadow:12px 0 40px #020911a8;
  }
  .sidebar.mobile-open .side-group{flex-shrink:0}
  .sidebar.mobile-open .side-link{min-height:40px!important;font-size:12px}
  .sidebar.mobile-open .sidebar-note{flex-shrink:0}
  .mobile-menu-close{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    width:100%;min-height:43px;padding:8px 10px;
    color:#dff6ff;background:#102f4a;border:1px solid #3b7895;
    border-radius:8px;font-size:12px;cursor:pointer;
  }
  body.mobile-nav-open{overflow:hidden}
}

/* Research knowledge subroute: local bounded text search and source metadata. */
.knowledge-controls{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.knowledge-controls label{display:flex;flex:1 1 180px;flex-direction:column;gap:5px;font-size:11px;color:#a9cde8}
.knowledge-controls input,.knowledge-controls select{
  width:100%;min-height:34px;background:#0a233c;border:1px solid #356b91;
  border-radius:6px;padding:8px;color:#e1f4ff;font:12px Inter,"Microsoft YaHei",sans-serif
}
.knowledge-scope{margin:8px 0 12px;padding:9px 10px;border-left:3px solid #3989bb;background:#0b2e45;color:#afcadf;font-size:11px}
.knowledge-search-scope{margin:8px 0 12px;padding:10px 11px;border-left:3px solid #d49b48;background:#292817;color:#d9d0ad;font-size:11px;line-height:1.55}
.knowledge-search-scope strong{color:#ffd486;letter-spacing:.03em}
.knowledge-search-state{margin:8px 0;padding:12px;border:1px solid #34566f;border-radius:7px;background:#0b2235;color:#b8cee0;font-size:11px}
.knowledge-search-results{margin:10px 0}
.knowledge-search-result{padding:10px 12px}
.knowledge-search-result .knowledge-title{display:block;margin-bottom:7px;color:#e0f4ff;font-size:13px}
.knowledge-search-excerpt{margin:9px 0;color:#c5dbea;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.knowledge-search-no-excerpt{color:#9eb7ca;font-style:italic}
.knowledge-search-provenance{display:block;color:#8fb0c8;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.knowledge-search-button{min-height:34px;margin:5px 0 12px;padding:7px 12px;border:1px solid #397fa5;border-radius:6px;background:#154b6d;color:#d8f2ff;font:600 11px Inter,"Microsoft YaHei",sans-serif;cursor:pointer}
.knowledge-search-button:hover:not(:disabled){background:#1c5b81}
.knowledge-search-button:disabled{opacity:.55;cursor:wait}
.knowledge-search-button:focus-visible{outline:2px solid #58cbff;outline-offset:2px}
.knowledge-result-list{display:flex;flex-direction:column;gap:7px}
.knowledge-source{min-width:0;overflow:hidden;background:#0d273d;border:1px solid #2d557a;border-radius:7px}
.knowledge-source summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:11px;color:#d8f0ff;font-size:12px}
.knowledge-title{min-width:0;overflow-wrap:anywhere;font-weight:650}
.knowledge-category{flex-shrink:0;background:#183e5a;border:1px solid #416c8b;border-radius:12px;color:#97d6f7;font-size:10px;padding:3px 7px}
.knowledge-metadata{display:grid;grid-template-columns:minmax(85px,125px) minmax(0,1fr);gap:8px 12px;padding:11px;margin:0;border-top:1px solid #31536c;font-size:11px;overflow-wrap:anywhere}
.knowledge-metadata dt{color:#8fbbd7}.knowledge-metadata dd{margin:0;color:#deedff}
.knowledge-lineage{display:block;background:#154c72;color:#b9e9ff;border:1px solid #367fa5;border-radius:6px;margin:0 10px 10px;padding:8px 10px;cursor:pointer;font-size:11px}
.knowledge-unknown{display:block;margin:0 10px 10px;color:#aac2d4}
.knowledge-controls input:focus-visible,.knowledge-controls select:focus-visible,.knowledge-source summary:focus-visible,.knowledge-lineage:focus-visible{outline:2px solid #58cbff;outline-offset:2px}
@media(max-width:700px){.knowledge-controls{flex-direction:column}.knowledge-controls label{flex:auto;min-width:0}.knowledge-metadata{grid-template-columns:90px minmax(0,1fr)}}


/* Deep-linked sources and Alpha records are read-only local metadata,
 * not promotion decisions or live-trading permissions. */
.search-evidence-target,.search-evidence-notice{
  margin:0 0 12px;padding:11px 12px;border-radius:8px;
  border:1px solid #3792b8;background:linear-gradient(145deg,#12374d,#0d283b);
  color:#d4edff;font-size:11px;line-height:1.5;
}
.search-evidence-target>strong{display:block;color:#80e5ff;font-size:12px;margin-bottom:7px}
.search-evidence-target dl{
  display:grid;grid-template-columns:92px minmax(0,1fr);
  gap:5px 10px;margin:0 0 8px;overflow-wrap:anywhere
}
.search-evidence-target dt{color:#9dbbd3}
.search-evidence-target dd{margin:0;color:#e9f6ff;min-width:0}
.search-evidence-target small{display:block;color:#b8ccd9;font-size:10px}
.search-evidence-notice{border-color:#997843;background:#342817;color:#f1d8ab}
.knowledge-source[open]{
  border-color:#36bde3;box-shadow:0 0 0 1px #299abb,0 0 20px #1172ae33
}
.brain-svg.brain-dense .brain-node-label{font-size:9px}
.brain-svg .brain-label-link{stroke:#5687a4;stroke-width:1;stroke-opacity:.45;pointer-events:none}
.audit-filter-actions{display:flex;gap:5px;align-items:center;white-space:nowrap}
@media(min-width:1200px) and (min-height:760px){
  .audit-filter-panel .panel-body{padding-top:4px}
  .audit-filter-panel .audit-filter-block{padding:4px}
  .audit-filter-panel .audit-search{padding:4px 6px;font-size:10px;margin-bottom:4px}
  .audit-filter-panel .audit-filter-row{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:6px}
  .audit-filter-panel .audit-filter-row label{font-size:9px;line-height:11px;margin-bottom:2px}
  .audit-filter-panel .audit-filter-row select,.audit-filter-panel .audit-filter-row button{padding:4px 6px;font-size:10px}
  .audit-filter-panel .money-proof{padding:4px 5px;font-size:9px;line-height:12px;margin:0}
}
@media(max-width:700px){
  .search-evidence-target dl{grid-template-columns:80px minmax(0,1fr)}
  .audit-filter-actions{grid-column:1/-1}
}
/* Preserve identifiers, status codes and amounts inside their own scroll region. */
.evidence-table-wrap{max-width:100%;min-width:0;overflow:auto}
.evidence-table-wrap .data-table{min-width:100%;width:max-content;table-layout:auto}
.evidence-table-wrap .data-table th,
.evidence-table-wrap .data-table td{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.evidence-table-wrap:focus-visible{outline:2px solid #399cf6;outline-offset:-2px}
