/* LP LAB «Рынок» (round 7): the market index page. Uses the site's light tokens from lp-lab.css. */
#market-view{--mk-line:var(--lab-line,#dde1e8);--mk-muted:var(--lab-muted,#647083);--mk-surface:var(--lab-surface,#fff)}
.mk-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;align-items:start}
.mk-main,.mk-side{min-width:0}
.mk-main{background:var(--mk-surface);border:1px solid var(--mk-line);border-radius:8px;padding:16px 18px 12px}
.mk-main .section-top{margin:0 0 10px;gap:8px 16px;align-items:baseline}
.mk-main h2{font-size:17px;margin:0}
.mk-status-line{font-size:12px;color:var(--mk-muted);display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
.mk-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#d18a15}.mk-dot.ok{background:#159773}
.mk-reasons{display:inline;font-size:12px}.mk-reasons summary{cursor:pointer;display:inline;color:var(--mk-muted);text-decoration:underline dotted}
.mk-controls{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px}
#market-view .segmented{display:inline-flex;border:1px solid var(--mk-line);border-radius:7px;overflow:hidden;background:#f7f8fa}
#market-view .segmented button{border:0;background:none;padding:6px 11px;font:inherit;font-size:12.5px;color:#4d5668;cursor:pointer;min-height:32px}
#market-view .segmented button+button{border-left:1px solid var(--mk-line)}
#market-view .segmented button[aria-pressed="true"]{background:var(--lab-pink-soft,#fff0f6);color:var(--lab-pink,#c91666);font-weight:600}
.mk-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--mk-muted);margin-bottom:4px}
.mk-legend i{display:inline-block;width:14px;height:3px;border-radius:2px;margin-right:5px;vertical-align:middle}
.mk-chart{position:relative;width:100%;min-height:240px;overflow:hidden}
.mk-loading{padding:60px 0;text-align:center;color:var(--mk-muted);font-size:13px}
.mk-svg{display:block;width:100%;height:auto;touch-action:pan-y}
.mk-grid{stroke:#eceff3;stroke-width:1}.mk-grid.zero{stroke:#b9c0cc;stroke-dasharray:4 4}
.mk-axis{fill:#7b8597;font-size:11px;font-variant-numeric:tabular-nums}
.mk-line{fill:none;stroke-linejoin:round;stroke-linecap:round}
.mk-index{stroke-width:2.2}.mk-calm{stroke-width:2.2;opacity:.9}.mk-calm-fill{stroke:none}.mk-alarm{stroke-width:1.6;opacity:.95}
.mk-index-low,.mk-index-high{stroke-width:3}
.mk-break{stroke:#c7cdd7;stroke-dasharray:2 3}
.mk-cross{stroke:#9aa3b2;stroke-width:1}
.mk-chart-wrap{position:relative}
.mk-tip{position:absolute;top:6px;z-index:5;width:180px;background:#fff;border:1px solid var(--mk-line);border-radius:7px;
  box-shadow:0 6px 18px #1e243014;padding:8px 10px;font-size:12px;display:flex;flex-direction:column;gap:2px;pointer-events:none}
.mk-tip[hidden]{display:none}.mk-muted{color:var(--mk-muted)}
.mk-foot{font-size:11.5px;line-height:1.45;color:var(--mk-muted);margin:8px 0 0}
.mk-side{display:flex;flex-direction:column;gap:14px}
.mk-card{background:var(--mk-surface);border:1px solid var(--mk-line);border-radius:8px;padding:14px 16px}
.mk-card h3{font-size:14px;margin:0 0 8px}
.mk-card dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:8px 0 0;font-size:13px}
.mk-card dt{color:var(--mk-muted)}.mk-card dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.mk-cap{font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--mk-muted)}
.mk-big{font-size:46px;font-weight:700;line-height:1.05;margin-top:4px;font-variant-numeric:tabular-nums}
.mk-word{font-size:14px;font-weight:600;margin-top:2px}
.mk-gauge{min-height:170px}
.mk-gauge h3{font-size:15px;margin-bottom:16px}
.mk-score.entry,.mk-word.entry{color:#139a6d}
.mk-score.exit,.mk-word.exit{color:#e11d48}
.mk-score.neutral,.mk-word.neutral{color:#4c586b}
.mk-score-track{position:relative;height:8px;margin:22px 5px 0;border-radius:4px;
  background:linear-gradient(to right,#bce9d9 0 15%,#dce0e8 15% 85%,#f2b9c2 85% 100%)}
.mk-score-marker{position:absolute;top:50%;width:15px;height:15px;border:3px solid #fff;border-radius:50%;
  background:#4c586b;box-shadow:0 0 0 1px #929dad;transform:translate(-50%,-50%)}
.mk-score-marker.entry{background:#139a6d}.mk-score-marker.exit{background:#e11d48}
.mk-signal-facts{display:grid;gap:4px;margin-top:16px;font-size:11.5px;color:var(--mk-muted)}
.mk-signal-facts span{display:flex;justify-content:space-between;gap:10px}.mk-signal-facts b{color:#3f4a5c;font-weight:600}
.mk-candidates{border-top:1px solid var(--mk-line);margin-top:14px;padding-top:14px}
.mk-candidates-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:7px}
.mk-candidates-head h3{font-size:14px;margin:0}.mk-candidates-head span{font-size:11.5px;color:var(--mk-muted)}
.mk-candidate-table{max-height:300px;margin:0}
.mk-candidate-table .mk-table th:first-child,.mk-candidate-table .mk-table td:first-child{text-align:left}
.mk-bar{height:6px;border-radius:3px;background:#eef0f4;margin-top:8px;overflow:hidden}.mk-bar i{display:block;height:100%}
.mk-status{font-size:12px;color:var(--mk-muted);margin-top:8px}.mk-miss{font-size:11.5px;color:var(--mk-muted);margin-top:4px}
.mk-empty{font-size:13px;color:var(--mk-muted);padding:8px 0}
.mk-table-wrap{max-height:560px;overflow:auto;margin:0 -6px}
.mk-table{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
#market-view .mk-table th,#market-view .mk-table td{height:auto;padding:6px 6px;border-bottom:1px solid #eef0f4;text-align:right;white-space:nowrap;vertical-align:top}
#market-view .mk-table th{position:sticky;top:0;background:#f7f8fa;color:#6b7588;font-size:10.5px;font-weight:600;white-space:normal;line-height:1.2;border-top:0}
#market-view .mk-table td:nth-child(2),#market-view .mk-table th:nth-child(2){text-align:left;white-space:normal}
#market-view .mk-table td small{display:block;font-size:10.5px;color:var(--mk-muted);font-weight:400}
#market-view .mk-table td.mk-n{color:#9aa2b1;padding-left:6px}
#market-view .mk-table tbody tr{cursor:pointer}#market-view .mk-table tbody tr:hover td{background:var(--lab-pink-soft,#fff0f6)}
#market-view .mk-table td.negative{color:var(--lab-red,#c73650)}#market-view .mk-table td.positive{color:var(--lab-green,#087e63)}
@media(max-width:1250px){.mk-layout{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1050px){.mk-layout{grid-template-columns:minmax(0,1fr)}.mk-table-wrap{max-height:none}}
@media(max-width:720px){
  .mk-main{padding:12px 10px 10px}.mk-card{padding:12px}
  #market-view .segmented button{padding:6px 8px;font-size:12px}
  .mk-big{font-size:40px}
  #market-view .mk-table th,#market-view .mk-table td{padding:5px 4px;font-size:12px}
  .mk-candidate-table{overflow-x:auto}.mk-candidate-table .mk-table{min-width:470px}
}

/* 10.10 монеты на отскок */
#market-view .mk-bounce td.mk-growth b{font-weight:600;white-space:nowrap}#market-view .mk-bounce td.mk-growth small{display:block;color:var(--mk-muted);font-size:11px;margin-top:2px}
#market-view .mk-bounce td:first-child,#market-view .mk-bounce th:first-child{text-align:left}#market-view .mk-bounce td:nth-child(2),#market-view .mk-bounce th:nth-child(2){text-align:right}
@media(max-width:720px){.mk-candidate-table .mk-table.mk-bounce{min-width:0}#market-view .mk-bounce td.mk-growth b{white-space:normal}}
#market-view .mk-bounce td.mk-weak{color:#5f8f7b}
#market-view .mk-bounce td.mk-strong b{font-size:13.5px}
