/* Professional operating surface. Data and interaction IDs are preserved. */
.ref7-search{position:relative}.ref7-search #ccSearchStatus{position:absolute;left:12px;top:100%;color:#dfc38e;background:#101b2c;z-index:5;border-radius:6px;max-width:100%;font-size:11px}.ref7-search #ccSearchStatus:empty{display:none}
html.ktn-professional-v1 .side:not(:hover):not(:focus-within) .nav a[data-mp-path='/news']{flex-direction:row!important;gap:10px!important;justify-content:flex-start!important}html.ktn-professional-v1 .side:not(:hover):not(:focus-within) .nav a[data-mp-path='/news'] em{font-size:12px!important;line-height:1.4!important}
@media(max-width:720px){html.ktn-professional-v1 .ref7-topbar{display:flex!important;flex-wrap:wrap!important;gap:12px!important}html.ktn-professional-v1 .ref7-search{flex:1;min-width:220px}html.ktn-professional-v1 .ref7-top-actions{display:flex!important;gap:12px!important}html.ktn-professional-v1 .ref7-user{display:none!important}}
@media(max-width:720px){html.ktn-professional-v1.ktn-reference-v7 body:has(#command.active) .side{display:block!important;position:relative!important;width:100%!important;height:auto!important}.side .mp-nav-group em{display:block!important;opacity:1!important;width:auto!important;font-size:11px!important}.side .mp-nav-group a{min-width:100px!important}.side .mp-nav-group>span{display:none!important}}
html.ktn-professional-v1{--bg:#080e19;--text:#e9eff7;--muted:#93a4bb;--line:#223149;--gold:#cdb982;--green:#6dd6b2;--red:#ff969c}
html.ktn-professional-v1 body{background:#080e19;color:#e9eff7;line-height:1.65;font-family:Inter,"Noto Sans Thai",Segoe UI,system-ui,sans-serif}
html.ktn-professional-v1 .main{min-width:0;padding:28px clamp(16px,2.6vw,40px) 48px}
html.ktn-professional-v1 .head{margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid #223149}
html.ktn-professional-v1 .head h1{font-size:25px;letter-spacing:.01em}
html.ktn-professional-v1 .side{background:#0b1321;border-color:#223149}
html.ktn-professional-v1 .brand img{width:100%;max-width:160px;height:auto;object-fit:contain;object-position:center}
html.ktn-professional-v1 .route-card .route-letter{font-size:26px;line-height:1;letter-spacing:0;text-transform:none;display:grid;place-items:center;color:#9bded3;padding:0}
html.ktn-professional-v1 .route-card[data-route="B"] .route-letter{color:#e1c796}
html.ktn-professional-v1 .route-card .route-flow span{font-size:12px;line-height:1.6;color:#c9d6e5;letter-spacing:0;text-transform:none}
html.ktn-professional-v1 .route-card .route-account span{font-size:11px;color:#a7b9cd;letter-spacing:0}
html.ktn-professional-v1 .route-card .route-metric small,html.ktn-professional-v1 .route-card .route-metric em{font-size:12px;color:#b4c2d3;letter-spacing:0}
html.ktn-professional-v1 .nav a{border-radius:10px;letter-spacing:.03em}
html.ktn-professional-v1 .card,html.ktn-professional-v1 .tr2-section{background:#101a2b;border:1px solid #26364e;border-radius:16px;box-shadow:0 8px 24px #00000020}
html.ktn-professional-v1 .card h2,html.ktn-professional-v1 .card h3{color:#e9eff7}
html.ktn-professional-v1 .tr2-section{padding:22px;margin-top:20px}
html.ktn-professional-v1 .tr2-section-head{margin-bottom:20px;gap:16px}
html.ktn-professional-v1 .tr2-section-head h3{font-size:19px;line-height:1.5}
html.ktn-professional-v1 .tr2-section-head small{color:#a0afc1}
html.ktn-professional-v1 .tr2-hero{border-radius:18px;background:linear-gradient(115deg,#13243a,#0f192a);box-shadow:none;min-height:0}
html.ktn-professional-v1 .tr2-hero h2{font-size:clamp(25px,3vw,42px);letter-spacing:.02em}
html.ktn-professional-v1 .tr2-market-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;max-height:380px;overflow-y:auto;padding-right:4px;scrollbar-width:thin}
html.ktn-professional-v1 .tr2-market-grid>*,html.ktn-professional-v1 .tr2-safety>div{min-width:0}
html.ktn-professional-v1 th{background:#152238;color:#a8b8cc;font-weight:600;font-size:11px;letter-spacing:.04em}
html.ktn-professional-v1 td{padding:14px 12px;background:#0f1929;border-color:#223149;font-variant-numeric:tabular-nums}
html.ktn-professional-v1 .table-wrap{border-color:#26364e;border-radius:12px}
html.ktn-professional-v1 button:focus-visible,html.ktn-professional-v1 a:focus-visible{outline:2px solid #85d9d2;outline-offset:4px}
html.ktn-professional-v1 .btn{background:#1a3044;border-color:#36516a;color:#dfedf8;box-shadow:none}
html.ktn-professional-v1 .ref7-hero{border:1px solid #2a3b53;border-radius:18px;overflow:hidden;box-shadow:0 10px 30px #0003}
html.ktn-professional-v1 .ref7-feature{border-radius:14px;border-color:#2a3b53;box-shadow:none;transition:transform .18s,border-color .18s}
html.ktn-professional-v1 .ref7-feature:hover{transform:translateY(-3px);border-color:#809dba}
html.ktn-professional-v1 .ref7-feature img{object-fit:contain;filter:saturate(.75);border-radius:10px}
#portfolioRouteCards.route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;background:none;padding:0;border:0}
#trPortfolios{scroll-margin-top:150px}
.route-card{min-width:0;border:1px solid #33465e;border-radius:14px;background:linear-gradient(145deg,#152337,#101a2b);overflow:hidden}
.route-card-head{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid #2a3a50}
.route-letter{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:12px;font-size:23px;font-weight:700;color:#9bded3;background:#26413f}
.route-card[data-route="B"] .route-letter{color:#e1c796;background:#40382b}
.route-card-head h4{margin:0;font-size:17px;color:#edf3fa}.route-card-head small{color:#a1b0c4;font-size:11px;letter-spacing:.07em}
.route-pill{margin-left:auto;border:1px solid #456777;border-radius:999px;padding:4px 9px;color:#acdacf;font-size:10px;white-space:nowrap}.route-pill.wait{border-color:#746043;color:#e1c796}
.route-body{padding:20px}.route-flow{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px;color:#bacbdd;font-size:12px}.route-flow span{padding:5px 9px;border-radius:6px;background:#1e3047}.route-flow i{font-style:normal;align-self:center;color:#6f839d}
.route-account{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#a7b9cd;padding-bottom:15px;border-bottom:1px solid #2a3a50}.route-account b{color:#e0e9f4;font-weight:500}
.route-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:18px 0}.route-metric small{display:block;font-size:11px;color:#9dacbf}.route-metric b{display:block;color:#eef4fb;font-size:21px;font-weight:600;font-variant-numeric:tabular-nums}.route-metric em{font-size:11px;font-style:normal;color:#a4b4c8}
.route-state{padding:12px 14px;border:1px solid #3f4c5c;background:#202a39;border-radius:8px;color:#d3bc90;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.route-state strong{display:block;color:#e8d9b7;font-size:12px;font-weight:600}
.route-detail{margin-top:14px;color:#98aac0;font-size:11px}.route-detail summary{cursor:pointer;color:#b6c7db}.route-detail p{overflow-wrap:anywhere;margin:8px 0}.route-note{font-size:11px;color:#9baec4;margin:14px 0 0}
@media(max-width:1000px){#portfolioRouteCards.route-grid{grid-template-columns:1fr}html.ktn-professional-v1 .tr2-cockpit{grid-template-columns:1fr}}
@media(max-width:700px){html.ktn-professional-v1 .layout{display:block}html.ktn-professional-v1 .side{position:relative;width:100%;height:auto;padding:14px}html.ktn-professional-v1 .nav{display:flex;overflow:auto;padding-top:12px;gap:6px}html.ktn-professional-v1 .nav a{flex:0 0 62px;min-width:62px}html.ktn-professional-v1 .main{padding:20px 14px 32px}html.ktn-professional-v1 .head{flex-wrap:wrap}html.ktn-professional-v1 .tr2-section{padding:16px}html.ktn-professional-v1 .tr2-hero{padding:20px}html.ktn-professional-v1 .tr2-cockpit,html.ktn-professional-v1 .tr2-safety,html.ktn-professional-v1 .g3,html.ktn-professional-v1 .g4{grid-template-columns:1fr}html.ktn-professional-v1 .tr2-section-head{flex-wrap:wrap}.route-card-head,.route-body{padding:16px}.route-account{flex-wrap:wrap}.route-metric b{font-size:18px}html.ktn-professional-v1 .ref7-hero img{width:100%;height:auto}}
@media(prefers-reduced-motion:reduce){html.ktn-professional-v1 *{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){html.ktn-professional-v1 .side{width:100%!important;max-width:none!important;height:auto!important}.route-card-head h4{font-size:15px}.route-pill{font-size:9px}.route-metrics{grid-template-columns:1fr 1fr}.route-metric:last-child{grid-column:1/-1}html.ktn-professional-v1 .tr2-gate-orb{width:132px;height:132px;min-height:0}}

/* Overview: real text and links, resolution-independent decorative artwork. */
html.ktn-professional-v1 #command .ktn-overview-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);align-items:center;gap:24px;height:auto;min-height:340px;padding:36px 40px;background:linear-gradient(110deg,#15273b,#0d1829);isolation:isolate}
html.ktn-professional-v1 #command .overview-hero-copy{position:relative;z-index:1;min-width:0}
html.ktn-professional-v1 #command .overview-hero-kicker{margin:0 0 18px;color:#a6c5cc;font-size:11px;letter-spacing:.16em;font-weight:600}
html.ktn-professional-v1 #command .ktn-overview-hero h2{margin:0;color:#f0f5fb;font-size:clamp(28px,3.1vw,48px);font-weight:650;letter-spacing:-.015em;line-height:1.35;text-shadow:none}
html.ktn-professional-v1 #command .ktn-overview-hero h2 span{color:#a1d8cd}
html.ktn-professional-v1 #command .overview-hero-description{max-width:540px;margin:18px 0 22px;color:#bac9da;font-size:14px;line-height:1.9}
html.ktn-professional-v1 #command .overview-hero-actions{display:flex;flex-wrap:wrap;gap:10px}
html.ktn-professional-v1 #command .overview-hero-actions a{display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:11px 16px;min-height:44px;border:1px solid #425671;border-radius:9px;color:#e1eaf5;font-size:13px;font-weight:600;background:#13243a;transition:background .18s,border-color .18s}
html.ktn-professional-v1 #command .overview-hero-actions a.overview-primary{color:#0b2327;background:#a1d8cd;border-color:#a1d8cd}
html.ktn-professional-v1 #command .overview-hero-actions a:hover{border-color:#a1d8cd;background:#284157}
html.ktn-professional-v1 #command .overview-hero-actions a.overview-primary:hover{background:#c2eee4;color:#0b2327}
html.ktn-professional-v1 #command .overview-connection{position:static;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px;width:fit-content;margin-top:20px;padding:8px 12px;background:#0e1c2e;border:1px solid #31455d;border-radius:8px;backdrop-filter:none}
html.ktn-professional-v1 #command .overview-connection span,html.ktn-professional-v1 #command .overview-connection b{font:500 11px/1.6 Inter,"Noto Sans Thai",Segoe UI,sans-serif;letter-spacing:0}
html.ktn-professional-v1 #command .overview-connection span{color:#a6b9cd}
html.ktn-professional-v1 #command .overview-connection b.up{color:#8cdec7}
html.ktn-professional-v1 #command .overview-connection b.warn{color:#dfc38e}
html.ktn-professional-v1 #command .overview-hero-art{display:block;width:100%;max-width:480px;height:auto;justify-self:end;opacity:.9}
html.ktn-professional-v1 #command .ref7-ticker{height:auto;min-height:94px;margin-top:14px;gap:0;border-radius:12px;background:#101b2c;grid-template-columns:repeat(6,minmax(0,1fr))}
html.ktn-professional-v1 #command .ref7-ticker button{display:block;padding:14px 16px;background:#101b2c}
html.ktn-professional-v1 #command .ref7-ticker button:hover,html.ktn-professional-v1 #command .ref7-ticker button[aria-pressed="true"]{background:#20354b;box-shadow:inset 0 -2px #8bcebf}
html.ktn-professional-v1 #command .ref7-ticker span{font-size:11px;color:#bac9d9}
html.ktn-professional-v1 #command .ref7-ticker b{font-size:16px;font-weight:600;margin:5px 0}
html.ktn-professional-v1 #command .ref7-ticker small{font-size:10px;font-weight:500;line-height:1.6}
html.ktn-professional-v1 #command .ref7-ticker .stale{opacity:1}
@media(max-width:1100px){html.ktn-professional-v1 #command .ref7-ticker{grid-template-columns:repeat(3,minmax(0,1fr))}html.ktn-professional-v1 #command .ktn-overview-hero{padding:28px;grid-template-columns:minmax(0,1.2fr) minmax(200px,.8fr)}}
@media(max-width:700px){html.ktn-professional-v1 #command .ktn-overview-hero{grid-template-columns:1fr;padding:26px 22px;gap:0;min-height:0}html.ktn-professional-v1 #command .ktn-overview-hero h2{font-size:32px}html.ktn-professional-v1 #command .overview-hero-art{display:none}html.ktn-professional-v1 #command .overview-hero-actions{display:grid;grid-template-columns:1fr}html.ktn-professional-v1 #command .ref7-ticker{grid-template-columns:repeat(2,minmax(0,1fr))}html.ktn-professional-v1 #command .ref7-ticker button{padding:13px}html.ktn-professional-v1 #command .ref7-ticker b{font-size:15px}}
/* User view: internal diagnostics stay available in logs, never in the dashboard. */
[data-developer-note],.route-flow,.route-detail,.tr2-legacy,
.tr2-protocol-panel,#trAuditSection,#fAnalystPublish,
#fundamental .section-title:has(+ #fAnalystPublish),
#boardroomMessages,#boardroomStatus .mp-meeting-grid,
#boardroomStatus .mp-meeting-blockers,#boardroomSignals .mp-result-columns,
#boardroomSignals .mp-result-score,.policy-auto-note,
.knowledge-head .terminal-kicker,.knowledge-head small,
.knowledge-doc small,.knowledge-doc code,
.ol-bottom,.ol-service-strip,.ol-scene-screen,.ol-legend small,
.ol-room header>span{display:none!important}
/* Keep account health visible; remove implementation diagnostics and identifiers. */
.tr2-health-grid:has(#trTcBridgeStatus)>div:first-child,
.tr2-health-grid:has(#trTcBridgeStatus)>div:last-child,
#trBrainState,.tr2-brain-card,#trSystemGrid,
table:has(#exPendingRows) tr>:first-child,
table:has(#exLiveRows) tr>:first-child,
table:has(#exHistoryRows) tr>:first-child{display:none!important}
.tr2-system-grid{grid-template-columns:1fr!important}
.tr2-mission-meta{display:flex!important;flex-wrap:wrap;gap:20px}
.ref7-source-note:empty{display:none}
.brand::before{display:none!important}
.overview-hero-kicker::after{content:" · ดูข้อมูลตลาด"!important}
