/* EXCALIBUR decision-first terminal. Overrides apply only after the JS activates clean mode.
   Existing other workspaces and investment data are untouched. */
html[data-ex-clean="1"] #fortressCockpit{
  display:flex!important;flex-direction:column;gap:9px!important;
  max-width:1700px;margin:auto;width:100%;
  padding:10px 15px 35px!important;
}
html[data-ex-clean="1"] #exCleanPrimaryBar{order:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 15px;background:#101b2a;border:1px solid #273c53;border-radius:7px;min-width:0}
html[data-ex-clean="1"] #exCleanPrimaryBar h1{font-size:22px!important;font-weight:760;line-height:1.15;margin:2px 0 3px!important;letter-spacing:-.025em}
html[data-ex-clean="1"] #exCleanPrimaryBar p{margin:0;color:#9eafc3;font-size:12px;line-height:1.35!important}
html[data-ex-clean="1"] .ex-clean-kicker{font-size:10px;letter-spacing:.09em;color:#80b9f0;font-weight:700}
html[data-ex-clean="1"] #exCleanDetailsToggle{flex:none;color:#c6d6e7;background:#1a2b40;border:1px solid #35516d;border-radius:5px;padding:8px 11px;min-height:34px;font-size:12px;font-weight:650;cursor:pointer}
html[data-ex-clean="1"] #exTopTenReview{
 order:1;display:block;min-width:0!important;width:100%!important;max-width:none!important;
 margin:0!important;padding:12px 14px!important;background:#101b2a!important;border:1px solid #2b4057!important;border-radius:7px!important;
}
html[data-ex-clean="1"] #exTopTenReview .ex-top-ten-head{align-items:center;gap:8px}
html[data-ex-clean="1"] #exTopTenReview .ex-top-ten-head h2{font-size:17px!important;line-height:1.2;margin:0 0 4px!important}
html[data-ex-clean="1"] #exTopTenReview .ex-top-ten-head .f2-kicker{font-size:10px}
html[data-ex-clean="1"] #exTopTenReview .ex-top-ten-head p{font-size:11px;line-height:1.35!important;margin:0!important}
html[data-ex-clean="1"] #exTopTenState{font-size:11px!important}
html[data-ex-clean="1"] #exTopTenStats{padding:7px 10px;margin:8px 0!important;border:1px solid #283e55;background:#142339;border-radius:5px;font-size:12px!important}
html[data-ex-clean="1"] .ex-top-ten-toolbar{justify-content:flex-end;margin:0 0 7px!important;gap:7px!important;min-height:30px}
html[data-ex-clean="1"] .ex-top-ten-toolbar button{font-size:11px!important;padding:6px 9px!important;min-height:30px!important}
html[data-ex-clean="1"] .ex-top-ten-toolbar label,html[data-ex-clean="1"] .ex-top-ten-toolbar input{display:none!important}
html[data-ex-clean="1"] .ex-top-ten-scroll{border-radius:5px!important}
html[data-ex-clean="1"] .ex-top-ten-scroll table{min-width:920px!important;font-size:12px!important;font-variant-numeric:tabular-nums}
html[data-ex-clean="1"] .ex-top-ten-scroll th{padding:8px 8px!important;text-transform:none;background:#1e2e42!important;color:#aabdd3!important;font-size:11px!important;position:sticky;top:0}
html[data-ex-clean="1"] .ex-top-ten-scroll td{padding:8px 8px!important;line-height:1.2!important;border-bottom:1px solid #27384c!important;background:#101b2a!important}
html[data-ex-clean="1"] .ex-top-ten-scroll tbody tr:nth-child(even) td{background:#142237!important}
html[data-ex-clean="1"] .ex-top-ten-scroll tbody tr:hover td{background:#20314a!important}
html[data-ex-clean="1"] .ex-t10-code{font-size:13px;font-weight:800;color:#f4f7ff}
html[data-ex-clean="1"] .ex-t10-locked{color:#e4b17d}
html[data-ex-clean="1"] .ex-top-ten-note{font-size:10px!important;line-height:1.4!important;margin:8px 0 0!important;color:#8798af!important}
html[data-ex-clean="1"] #f2Swing{order:2!important}
html[data-ex-clean="1"] #exForwardResults{order:3!important}
html[data-ex-clean="1"] #fortressLegacySummary{order:4!important}
html[data-ex-clean="1"][data-ex-details="closed"] #f2Swing,
html[data-ex-clean="1"][data-ex-details="closed"] #exForwardResults,
html[data-ex-clean="1"][data-ex-details="closed"] #fortressLegacySummary{display:none!important}
html[data-ex-clean="1"] #fortressLegacySummary{width:100%;max-width:none!important}
html[data-ex-clean="1"] .ft-site-brand{font-size:16px!important;font-weight:800}
@media(max-width:700px){
 html[data-ex-clean="1"] #fortressCockpit{padding:7px 7px 25px!important}
 html[data-ex-clean="1"] #exCleanPrimaryBar{flex-wrap:wrap;padding:10px}
 html[data-ex-clean="1"] #exCleanPrimaryBar h1{font-size:18px!important}
 html[data-ex-clean="1"] #exCleanDetailsToggle{width:100%}
 html[data-ex-clean="1"] #exTopTenReview{padding:9px!important}
 html[data-ex-clean="1"] .ex-top-ten-toolbar{justify-content:flex-start}
}

/* Dense quote-table controls and restrained Investing-style market colours. */
html[data-ex-clean="1"] .ex-clean-filter-bar{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:0 0 8px;padding:8px 0;border-top:1px solid #26394c}
html[data-ex-clean="1"] .ex-clean-filter-bar label{display:flex;align-items:center;gap:7px;color:#a7b8ca;font-size:11px;font-weight:650;white-space:nowrap}
html[data-ex-clean="1"] .ex-clean-filter-bar input,
html[data-ex-clean="1"] .ex-clean-filter-bar select{background:#0c1727!important;border:1px solid #354b62!important;color:#f0f6ff!important;border-radius:4px!important;padding:6px 9px!important;min-height:32px!important;font-size:12px!important;max-width:200px}
html[data-ex-clean="1"] .ex-clean-filter-legend{font-size:11px;color:#9babbf;margin-left:auto}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(1){width:48px}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(2){width:75px}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(3){min-width:155px}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(4){width:65px}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(5){width:75px}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(6){width:102px}
html[data-ex-clean="1"] .ex-top-ten-scroll tbody tr[hidden]{display:none!important}
html[data-ex-clean="1"] .ex-t10-locked{font-size:11px;border-radius:3px;background:#412c28!important;color:#f4be99!important;white-space:nowrap}
html[data-ex-clean="1"] #exCleanPrimaryBar{border-top:2px solid #3da5ee}
html[data-ex-clean="1"] .ft-site-nav{box-shadow:none!important;border-bottom:1px solid #334b65!important}
html[data-ex-clean="1"] #exTopTenReview .ex-top-ten-head{border-bottom:1px solid #2b4055;padding-bottom:8px}
html[data-ex-clean="1"] #exTopTenReview .ex-top-ten-stats{letter-spacing:0!important}
html[data-ex-clean="1"] #exForwardResults,
html[data-ex-clean="1"] #f2Swing{max-width:100%!important;min-width:0}
@media(max-width:700px){html[data-ex-clean="1"] .ex-clean-filter-legend{margin-left:0;width:100%}html[data-ex-clean="1"] .ex-clean-filter-bar label{flex:1 1 auto}html[data-ex-clean="1"] .ex-clean-filter-bar input{width:100%;min-width:0}}

/* Decision-first research table: short Japanese labels and one readable line per security. */
html[data-ex-clean="1"] .ex-top-ten-scroll{border:1px solid #30435b!important}
html[data-ex-clean="1"] .ex-top-ten-scroll table{min-width:760px!important;table-layout:fixed!important}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(3){min-width:120px!important}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(7){width:105px!important}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(8){width:105px!important}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(9){width:95px!important}
html[data-ex-clean="1"] .ex-top-ten-scroll td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}
html[data-ex-clean="1"] .ex-top-ten-scroll .ex-t10-company{font-weight:650;color:#f1f5fb}
html[data-ex-clean="1"] .ex-top-ten-scroll .ex-t10-number{text-align:right;font-variant-numeric:tabular-nums}
html[data-ex-clean="1"] .ex-top-ten-scroll .ex-t10-risk{text-align:right;color:#ff9c92;font-weight:700}
html[data-ex-clean="1"] .ex-top-ten-scroll .ex-t10-next{color:#f2cf90}
html[data-ex-clean="1"] .ex-top-ten-scroll .ex-t10-pending{color:#9eb3c8;cursor:help;text-decoration:underline dotted #7089a2;text-underline-offset:3px}
html[data-ex-clean="1"] .ex-top-ten-scroll .ex-t10-locked{background:none!important;color:#eeb895!important;text-align:center}
html[data-ex-clean="1"] .ex-top-ten-head{display:flex;gap:6px!important}
html[data-ex-clean="1"] .ex-top-ten-toolbar{min-height:0!important}
html[data-ex-clean="1"] #exTopTenStats{margin:6px 0!important;padding:6px 9px!important}
html[data-ex-clean="1"] #exTopTenReview .ex-top-ten-note{margin-top:5px!important}

/* Read-only, audited-availability price references. Real quote/ATR only; no mock prices. */
html[data-ex-clean="1"] .ex-top-ten-scroll table{min-width:1330px!important;table-layout:auto!important}
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(10),
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(11),
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(12),
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(13),
html[data-ex-clean="1"] .ex-top-ten-scroll th:nth-child(14){min-width:88px!important;text-align:right}
html[data-ex-clean="1"] .ex-top-ten-scroll td.ex-t10-price{text-align:right;font-variant-numeric:tabular-nums;color:#dceafa;white-space:nowrap}
html[data-ex-clean="1"] .ex-top-ten-scroll td.ex-t10-price-entry{color:#8ac8ff;font-weight:750}
html[data-ex-clean="1"] .ex-top-ten-scroll td.ex-t10-price-lowrr{color:#e5ab8a}
html[data-ex-clean="1"] .ex-top-ten-scroll td.ex-t10-price:nth-child(10){color:#e3eaf6}
html[data-ex-clean="1"] #exTopTenReview .ex-top-ten-note{max-width:100%;font-size:11px!important}
@media(max-width:980px){html[data-ex-clean="1"] .ex-top-ten-scroll{overflow:auto!important}}

/* Safety overrides never depend on the selected skin. */
#exResearchNoBuyWarning.ex-research-no-buy-warning{
 display:block!important;margin:8px 0 10px!important;padding:10px 13px!important;
 border:1px solid #ad7243!important;border-left:4px solid #ef9b5b!important;
 background:#332319!important;color:#ffe4c8!important;border-radius:5px!important;
 font-size:13px!important;line-height:1.5!important;
}
#exResearchNoBuyWarning strong{color:#fff1e0!important}
#exTopTenRows td.ex-t10-price[title^="買付未承認"]{color:#ffd3ab!important}
