*{box-sizing:border-box}body{margin:0;background:#0c131c;color:#dce8f5;font:15px/1.55 system-ui}a{color:#9bd5ff;text-decoration:none}main{max-width:1440px;margin:auto;padding:20px}h1{font-size:25px;margin:0 0 8px}h2{font-size:18px;margin:0 0 10px}p{margin:8px 0;color:#aec1d4}.site-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.site-card,.site-panel{padding:14px;background:#111f2e;border:1px solid #2d455c;border-radius:10px;margin-bottom:14px}.site-card{font-size:13px;line-height:1.5}.site-card a,.site-action{display:inline-block;padding:7px 12px;border:1px solid #41688c;border-radius:6px;margin:6px 5px 0 0}.site-meta{font-size:12px;color:#a9bfd2}.site-warning{color:#ffd28e}.site-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.site-tabs a{padding:8px 14px;border:1px solid #45617c;border-radius:6px}.site-tabs [aria-current=page]{background:#254565}.site-chart{width:100%;height:700px;min-height:520px;border:0}.site-table{width:100%;border-collapse:collapse}.site-table td,.site-table th{text-align:left;padding:10px;border-bottom:1px solid #2c4359}details>summary{cursor:pointer;padding:8px 0}button,input,select{font:inherit}button{cursor:pointer} .site-scroll{overflow-x:auto}@media(max-width:850px){.site-grid{grid-template-columns:1fr}.site-chart{height:600px}main{padding:12px}}

.research-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.research-shortcuts .site-panel{margin:0}.research-shortcuts h2{font-weight:700}@media(max-width:650px){.research-shortcuts{grid-template-columns:1fr}}

.site-tabs button{padding:8px 13px;border:1px solid #45617c;border-radius:6px;background:#132639;color:#deebf7}.site-tabs button[aria-pressed=true]{background:#285b85;border-color:#85bfe5}

.structure-matrix{table-layout:fixed;min-width:850px}.structure-matrix th:first-child{width:95px}.structure-matrix td{vertical-align:top;font-size:14px;line-height:1.55}.structure-matrix details{font-size:12px}.structure-bull{color:#84d7b8}.structure-bear{color:#f0a1a6}.structure-transition{color:#c3cbd7}.site-card>p:first-of-type{font-size:14px;color:#e3edf8}

.structure-spark{display:block;margin:0 0 4px;max-width:100%}
.overview-markets{grid-template-columns:repeat(5,minmax(0,1fr))}.structure-matrix{min-width:1250px}
@media(max-width:1250px){.overview-markets{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.overview-markets{grid-template-columns:1fr}}
/* Overview source lines: bold asset label, BTC orange, XAU gold, TOTAL3ES/BTC light green; readable size. */
#overviewSources{font-size:16px;line-height:1.9;color:#d9e3ee}#overviewSources b{font-weight:600}.src-btc{color:#f7931a}.src-xau{color:#f5c84c}.src-alt{color:#9fdcae}.src-up{color:#84d7b8}.src-down{color:#f0a1a6}.src-sep{color:#7d8da0}

.structure-close{margin-top:7px;font-size:13px;color:#e3edf8;font-variant-numeric:tabular-nums}.structure-matrix details p{margin:5px 0}.structure-matrix details{max-width:42em}.structure-matrix .site-meta{line-height:1.6}

/* Simulation desk: compact, readable, keyboard accessible. */
.paper-controls{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.paper-controls label{display:grid;gap:5px;font-size:14px}.paper-controls select,.paper-controls input{background:#0c1724;color:#e0eaf4;border:1px solid #45617c;border-radius:6px;padding:8px;max-width:250px}.paper-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:10px;margin:16px 0}.paper-metrics>div{background:#102437;border:1px solid #344d63;border-radius:8px;padding:10px}.paper-metrics span,.paper-table small{display:block;color:#b5c7d9;font-size:14px}.paper-metrics strong{display:block;font-size:25px;margin-top:4px}.paper-up{color:#87dfb5}.paper-down{color:#ff9ca9}.paper-info{color:#9bd5ff}.paper-warn{color:#ffd28e}.paper-muted{color:#b5c7d9;font-size:14px}.paper-tag{display:inline-block;border:1px solid #3c546a;border-radius:5px;padding:2px 5px;margin-top:5px;font-size:12px}.paper-table{min-width:1020px;font-size:15px}.paper-table td{vertical-align:top}.paper-table details{max-width:390px}.paper-table pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto;font-size:12px;background:#08131d;padding:10px}.paper-controls :focus-visible{outline:2px solid #9bd5ff;outline-offset:3px}

#paperBoard>details pre,#paperReport pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font-size:12px} @media(max-width:600px){.paper-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Seven-day price context, independent of execution decisions. */
.paper-price{min-width:190px;max-width:220px}.paper-price>strong{display:block;font-size:14px}.paper-spark{display:block;margin-bottom:5px;max-width:100%;height:36px}.paper-last{margin-top:0;white-space:nowrap}.paper-price details{font-size:12px}.paper-price details summary{padding:4px 0}.paper-table{min-width:1250px}

.paper-table td:nth-child(3){min-width:260px;max-width:330px}.paper-table td:nth-child(3) small{margin-top:6px;line-height:1.45}.paper-table td:nth-child(5){min-width:115px}.paper-table td:nth-child(3) b{color:#e0eaf4}
.paper-table td:first-child{min-width:105px}.paper-table td:nth-child(5){min-width:170px}.paper-table small.paper-up{color:#87dfb5}.paper-table small.paper-down{color:#ff9ca9}

/* Asset colors stay consistent on card titles and linked column headers. */
.site-card h2.src-btc,.site-table th a.src-btc{color:#f7931a}.site-card h2.src-xau,.site-table th a.src-xau{color:#f5c84c}.site-card h2.src-alt,.site-table th a.src-alt{color:#9fdcae}
[data-chart-job]{cursor:help;border-bottom:1px dotted #7d8da0}

/* Status emphasis scoped to the paper status heading, not its numeric conditions. */
.paper-table td:nth-child(3)>b.paper-status{font-weight:700;color:#b5c7d9}
.paper-table td:nth-child(3)>b.paper-status.paper-zone{color:#ffbe85}
.paper-table td:nth-child(3)>b.paper-status.paper-up{color:#87dfb5}
.paper-table td:nth-child(3)>b.paper-status.paper-down{color:#ff9ca9}
.paper-table td:nth-child(3)>b.paper-status.paper-tp{color:#f5d779}
.paper-table td:nth-child(3)>b.paper-status.paper-sl{color:#ff9989}
.paper-table td:nth-child(3)>b.paper-status.paper-info{color:#9bd5ff}
.paper-table td:nth-child(3)>b.paper-status.paper-warn{color:#ffd28e}

.paper-table .paper-fill-price{display:block;font-size:15.3px;font-weight:800;color:#f1f7ff;line-height:1.45;margin-top:5px}.paper-table .paper-pnl,.paper-table .paper-pnl-usd{display:block;font-weight:750;line-height:1.5}.paper-table .paper-pnl{font-size:16px}
.paper-table{min-width:1180px;font-size:14px}.paper-table td,.paper-table th{padding:8px}.paper-table .paper-price{min-width:175px;max-width:200px}.paper-table td:nth-child(3){min-width:240px}.paper-table td:nth-child(5){min-width:145px}.paper-table td:last-child,.paper-table th:last-child{min-width:140px}.paper-table td:last-child summary{font-weight:600;white-space:normal}.paper-table td{vertical-align:top}.paper-table small{font-size:13px}

/* Per-asset chart controls now live on Data. */

#chartQuickRefresh{padding:12px 16px}.chart-refresh-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.chart-refresh-head b{font-size:14px}.chart-refresh-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:12px}.chart-refresh-group{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;row-gap:6px;align-items:center}.chart-refresh-name{grid-row:1 / 3;align-self:start;padding-top:5px}.chart-refresh-row{grid-column:2;display:grid;grid-template-columns:112px max-content max-content;gap:8px;justify-content:start;align-items:center;min-width:0}.chart-refresh-caption,.chart-refresh-stamp,[data-chart-job]{font-size:12px;color:#aabbd0}.chart-refresh-stamp{font-variant-numeric:tabular-nums;white-space:nowrap}.chart-refresh-caption{white-space:nowrap}#chartQuickRefresh button{padding:5px 9px;background:#20354c;border:1px solid #405a76;border-radius:5px;color:#c6e3ff;cursor:pointer;white-space:nowrap;font-size:12px;min-height:30px}#chartQuickRefresh button:disabled{opacity:.5;cursor:wait}.chart-refresh-row button{width:104px}@media(max-width:1700px){.chart-refresh-items{grid-template-columns:1fr;gap:12px}.chart-refresh-group{grid-template-columns:64px minmax(0,1fr);max-width:560px}.chart-refresh-row{grid-template-columns:112px max-content 104px}}@media(max-width:460px){.chart-refresh-group{grid-template-columns:1fr}.chart-refresh-name{grid-row:auto}.chart-refresh-row{grid-column:1;grid-template-columns:1fr auto}.chart-refresh-caption{grid-column:1;grid-row:1}.chart-refresh-stamp{grid-column:1;grid-row:2}.chart-refresh-row button{grid-column:2;grid-row:1 / 3}}


@media(min-width:1100px){#chartQuickRefresh .chart-refresh-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}#chartQuickRefresh .chart-refresh-group{grid-template-columns:minmax(0,1fr);max-width:none}#chartQuickRefresh .chart-refresh-name{grid-column:1;grid-row:auto;padding-top:0}#chartQuickRefresh .chart-refresh-row{grid-column:1;grid-template-columns:100px minmax(0,1fr) 88px}#chartQuickRefresh .chart-refresh-stamp{white-space:normal}#chartQuickRefresh .chart-refresh-row button{width:88px}}

/* Small spacing polish; retain the existing page structure. */
.opportunity-page header h1{font-size:25px;margin:0 0 8px}.opportunity-page section[aria-label="Nhóm coin chọn nhanh"]>details{padding:6px 0}.opportunity-page section[aria-label="Nhóm coin chọn nhanh"]>details>summary{padding:6px 0}

.opportunity-page #structurePanel .structure-row{padding:8px 0}
