/* Stock views (Nifty 50 detail research, Next Nifty): every rule scoped to .cpx so it never clashes with the page's own */

.cpx .sp { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
.cpx .side { position: sticky; top: 72px; max-height: calc(100vh - 90px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cpx .side .tabs { display: flex; border-bottom: 1px solid var(--line); }
.cpx .side .tabs a { flex: 1; text-align: center; padding: 10px 6px; font: 600 14.5px var(--sans); color: var(--muted); text-decoration: none; }
.cpx .side .tabs a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--violet); }
.cpx .side input { margin: 10px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; font: 500 15px var(--sans); }
.cpx .side .list { overflow-y: auto; }
.cpx .side .it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 9px 12px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.cpx .side .it:hover { background: var(--surface-alt); }
.cpx .side .it.on { background: var(--lavender); box-shadow: inset 3px 0 0 var(--violet); }
.cpx .side .it b { font-size: 15px; }
.cpx .side .it small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpx .side .it .r { text-align: right; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cpx .chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.cpx .chip.buy { background: #e6f6ee; color: #15803d; }
.cpx .chip.hold, .cpx .chip.wait { background: #fdf1dc; color: #b45309; }
.cpx .chip.sell { background: #fdecec; color: #b91c1c; }
.cpx .chip.watch { background: var(--surface-alt); color: var(--muted); }
.cpx .up { color: #15803d; }
.cpx .dn { color: #b91c1c; }
.cpx .head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.cpx .head h1 { font-size: 32px; margin: 0; }
.cpx .head .sub { color: var(--muted); margin: 4px 0 0; }
.cpx .head .px { margin-left: auto; text-align: right; }
.cpx .head .px .v { font-family: var(--display); font-size: 32px; }
.cpx .head .px .c { font-size: 15px; font-weight: 700; }
.cpx .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cpx .acts a, .cpx .acts button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 14px; font: 600 14.5px var(--sans); color: var(--ink); cursor: pointer; text-decoration: none; }
.cpx .acts a.t { background: var(--violet); border-color: var(--violet); color: #fff; }
.cpx .acts button.on { background: var(--lavender); border-color: transparent; color: var(--violet); }
.cpx .blk { margin-top: 16px; }
.cpx .blk h2 { font-size: 21px; margin: 0 0 4px; }
.cpx .blk .lead { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.cpx .ins li { margin: 5px 0; font-size: 15.5px; }
.cpx .ins { margin: 0; padding-left: 20px; }
.cpx .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cpx .tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cpx .tile .lab { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cpx .tile .v { font-family: var(--display); font-size: 24px; margin: 4px 0 2px; }
.cpx .tile .n { font-size: 14px; color: var(--muted); }
.cpx .kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.cpx .kv div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.cpx .kv b { display: block; font-size: 16.5px; font-variant-numeric: tabular-nums; }
.cpx .kv span { font-size: 13px; color: var(--muted); }
.cpx .chart svg { width: 100%; height: auto; display: block; }
.cpx .seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.cpx .seg button { border: 0; background: transparent; padding: 5px 12px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; }
.cpx .seg button.on { background: var(--ink); color: #fff; }
.cpx .checks { list-style: none; padding: 0; margin: 6px 0 0; font-size: 15px; }
.cpx .checks li { margin: 3px 0; }
.cpx .checks .ok::before { content: "✓ "; color: #15803d; font-weight: 700; }
.cpx .checks .no::before { content: "✗ "; color: #b91c1c; font-weight: 700; }
.cpx table.t td, .cpx table.t th { padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; white-space: nowrap; }
.cpx table.t th { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cpx .ai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cpx .ai ul { margin: 4px 0 8px; padding-left: 18px; font-size: 15px; }
.cpx .ai li { margin: 3px 0; }
.cpx .ai .lbl { font-weight: 700; font-size: 14.5px; margin-top: 8px; }
.cpx .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cpx .bar { width: 120px; height: 6px; border-radius: 3px; background: #eceae4; display: inline-block; position: relative; vertical-align: middle; }
.cpx .bar i { position: absolute; top: -3px; width: 3px; height: 12px; border-radius: 2px; background: var(--violet); }
@media (max-width: 900px) {
.cpx .sp { grid-template-columns: 1fr; }
.cpx .side { position: static; max-height: 340px; }
.cpx .tiles, .cpx .kv { grid-template-columns: 1fr 1fr; }
.cpx .ai, .cpx .two { grid-template-columns: 1fr; }
.cpx .head .px { margin-left: 0; text-align: left; }
}
/* small phones (320–360px): the levels table fits without pushing the page sideways (2026-11-13) */
@media (max-width: 380px) { .cpx table.t td, .cpx table.t th { padding: 7px 5px; font-size: 13.5px; } .cpx table.t td:first-child { white-space: normal; } }
.cpx table.t { max-width: 100%; }
