/* ============================================================================
   new-slider.css: the New Slider view (new-slider.js, design 1a-i).
   Odette's quiet system: one panel tone, hairlines between lanes, 12px
   captions, tabular figures, the dark chip for the chosen card (never sky),
   colour only for calls, puts and ranges, amber only in lines.
   ========================================================================== */

body.v2 #ns-view { display: none; }

/* the view layer, beside the others in the fixed-height region */
html:not(.m-on) body.v2 #v2-view-region > #ns-view {
    display: block;
    position: absolute;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px 16px 24px;
    scrollbar-width: thin;
}
/* a column: the chart takes what is left, down to the positions strip */
html:not(.m-on) body.v2 #v2-view-region > #ns-view {
    display: flex;
    flex-direction: column;
}
html:not(.m-on) body.v2 #v2-view-region[data-v2-view="basic"][data-ns="new"] > #ns-view {
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}
html:not(.m-on) body.v2 #v2-view-region[data-v2-view="basic"][data-ns="new"] > .strike-slider-track {
    visibility: hidden !important;
    pointer-events: none !important;
}
/* the New Slider's cards replace the day chips while it shows */
body.v2.ns-on #v2-view-region[data-v2-view="basic"] ~ * #v2-day-chips,
body.v2.ns-on #basic-view-container:has(#v2-view-region[data-v2-view="basic"][data-ns="new"]) #v2-day-chips { display: none !important; }

/* ---- settle-day cards ---------------------------------------------------- */
body.v2 #ns-view .ns-dates {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(var(--ns-n, 3), minmax(0, 1fr));
    align-items: end;
    gap: 6px;
    margin: 0;
}
body.v2 #ns-view .ns-dates:empty { display: none; }
/* the cards are the day chips' own buttons (class v2-chain-tab): revamp.css
   styles that class with !important, so the card shape is held the same way */
/* the cards are the day chips' own buttons (class v2-chain-tab): revamp.css
   styles that class with !important, so the card shape is held the same way.
   They are tabs on the lanes panel: the chosen day shares its shade and
   outline and opens into it; the other days sit behind, outlined, clickable. */
body.v2 #ns-view .ns-date.v2-chain-tab {
    box-sizing: border-box !important;
    height: 56px !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, .13) !important;
    border-bottom: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    background: #0E1322 !important;
    color: #C2CBD8 !important;
    font-family: var(--sans, Inter, sans-serif) !important;
    font-size: 12px !important;
    line-height: 16px !important;
    text-align: left !important;
    cursor: pointer;
}
body.v2 #ns-view .ns-date.v2-chain-tab:hover { background: #141927 !important; border-color: rgba(255, 255, 255, .24) !important; color: #F5F7FA !important; }
body.v2 #ns-view .ns-date.v2-chain-tab:focus-visible { outline: 2px solid #7DD3FC; outline-offset: 2px; }
body.v2 #ns-view .ns-date.v2-chain-tab.is-active {
    height: 61px !important;
    margin-bottom: -1px;
    background: #182036 !important;
    border-color: #D9A83C !important;      /* the spot marker's amber: the chosen day and its panel */
    color: #F5F7FA !important;
}
body.v2 #ns-view .ns-date-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.v2 #ns-view .ns-date-day { font-size: 15px; line-height: 20px; font-weight: 600; color: inherit; }
body.v2 #ns-view .ns-date-sub { font-size: 12px; line-height: 16px; color: #7E8A9C; white-space: nowrap; }
body.v2 #ns-view .ns-date-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
body.v2 #ns-view .ns-date-left { font-size: 12px; line-height: 16px; font-weight: 600; color: #7E8A9C; white-space: nowrap; }
body.v2 #ns-view .is-active .ns-date-left { color: #F5F7FA; }
body.v2 #ns-view .ns-date-check { width: 16px; height: 16px; border-radius: 8px; visibility: hidden;
    background: #F5F7FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='m1 4 2.6 2.6L9 1' fill='none' stroke='%230E1322' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 8px no-repeat; }
body.v2 #ns-view .is-active .ns-date-check { visibility: inherit; }

/* ---- the picker box (#ns-pick; the real slider waits unshown in #ns-slider-slot) ---- */
body.v2 #ns-view .ns-inputs { border: 1px solid #D9A83C; border-radius: 0 0 8px 8px; background: #182036; overflow: hidden; }

body.v2 #ns-view .ns-inputs { position: relative; }

/* ---- the chart, below, for reference --------------------------------------- */
body.v2 #ns-view .ns-dates,
body.v2 #ns-view .ns-inputs { flex: none; }
/* the chart fills the rest of the view, never under 200px of plot */
body.v2 #ns-view .ns-chart {
    flex: 1 1 auto;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    padding: 4px 0 4px 12px;
    border-radius: 8px;
    background: #0E1322;
}
body.v2 #ns-view #ns-chart-slot { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.v2 #ns-view #ns-chart-slot #sc-chart { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0; border-top: 0; border-bottom: 0; }
body.v2 #ns-view #ns-chart-slot #sc-chart .sc-head { flex: none; }
body.v2 #ns-view #ns-chart-slot #sc-chart .sc-plot { flex: 1 1 auto; height: auto; min-height: 200px; }
/* a short, narrow desktop window: a smaller chart, so less of it waits below
   the fold (1440px and wider keeps its 200px plot) */
@media (min-width: 992px) and (max-width: 1439.98px) and (max-height: 909.98px) {
    html:not(.m-on) body.v2 #ns-view .ns-chart { min-height: 160px; }
    html:not(.m-on) body.v2 #ns-view #ns-chart-slot #sc-chart .sc-plot { min-height: 120px; }
}

/* ---- the board head: the live spot, large ------------------------------------ */
body.v2 .ns-spot { display: none; }
html:not(.m-on) body.v2.ns-on .ns-spot {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    margin-right: 16px;
}
body.v2 .ns-spot-k { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 14px; color: #7E8A9C; white-space: nowrap; }
body.v2 .ns-spot-k i { width: 6px; height: 6px; border-radius: 3px; background: #5EDD9C; }
body.v2 .ns-spot-v { font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; color: #F5F7FA; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- the weekly prize pool, in the top bar ------------------------------------ */
body.v2 .ns-prize-item { display: none; }
html:not(.m-on) body.v2.ns-on .ns-prize-item { display: flex; align-items: center; }
body.v2 .ns-prize {
    height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--v2-chip, #232C42);
    color: #C2CBD8;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
body.v2 .ns-prize b { color: #F5F7FA; font-weight: 600; }
body.v2 .ns-prize:hover { background: var(--v2-chip-hover, #2C3752); color: #F5F7FA; }
/* under 1200px wide a connected wallet pushed the header 29px past the
   window: a page scrollbar that lifted the status bar over the strip.
   The chip keeps its icon and amount; the label moves to the tooltip and
   stays in the link's name for screen readers. */
@media (max-width: 1199.98px) {
    html:not(.m-on) body.v2 .ns-prize-label {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    }
}
/* (2026-11-12) applies on phones too, as it always has. The `html` keeps it
   level with m-app.css's display:flex !important, which it follows, so the
   phone line stays hidden while ns-on is set */
html body.v2.ns-on #v2-comp-line { display: none !important; }


/* (2026-10-27) a pick dims nothing: the chosen bar's tint marks it. The page
   still sets .dimmed on the slider and its ticks for a range pick
   (ui_interactions.js); here they keep full ink */
body.v2 #ns-view .strike-slider.dimmed,
body.v2 #ns-view .slider-ticks.dimmed .slider-tick { opacity: 1; }

/* the order panel's Clear */
body.v2 .ns-clear {
    display: block;
    width: auto;
    height: 24px;
    margin: 10px 0 0 auto;   /* bottom-right of the order panel */
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: var(--v2-chip, #232C42);
    color: #C2CBD8;
    font: 500 11px/24px var(--sans, Inter, sans-serif);
    cursor: pointer;
}
body.v2 .ns-clear:hover { background: var(--v2-chip-hover, #2C3752); color: #F5F7FA; }
body.v2 .ns-clear[hidden] { display: none; }

/* a range or spread picked: the slider's dot (and its tooltip) hides */
body.v2[data-ns-pick="range"] #ns-slider-slot .strike-slider::-webkit-slider-thumb,
body.v2[data-ns-pick="spread"] #ns-slider-slot .strike-slider::-webkit-slider-thumb { opacity: 0 !important; box-shadow: none !important; }
body.v2[data-ns-pick="range"] #ns-slider-slot .strike-slider::-moz-range-thumb,
body.v2[data-ns-pick="spread"] #ns-slider-slot .strike-slider::-moz-range-thumb { opacity: 0 !important; box-shadow: none !important; }
body.v2[data-ns-pick="range"] #ns-slider-slot .slider-tooltip,
body.v2[data-ns-pick="spread"] #ns-slider-slot .slider-tooltip { visibility: hidden !important; }

/* ---- the loading screen, shaped like the trade view: day tabs over the
   lanes panel, the chart below. The same blocks fit the old slider and the
   chain, so it reads true whichever view opens. ---------------------------- */
body.v2 .v2-boot-ns { flex-direction: column; gap: 0; padding: 14px 16px 16px; }
body.v2 .v2-boot-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
body.v2 #v2-boot .v2-boot-days b,
body.v2 #v2-boot .v2-boot-days i { height: 56px; border-radius: 8px 8px 0 0; }
body.v2 #v2-boot .v2-boot-days i { margin-top: 5px; height: 51px; }
body.v2 .v2-boot-lanes { border-radius: 0 0 8px 8px; background: var(--v2-skel); padding: 4px 16px; }
body.v2 .v2-boot-lane { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; height: 72px; }
body.v2 .v2-boot-lane + .v2-boot-lane { border-top: 1px solid var(--v2-hair); }
body.v2 .v2-boot-cap { display: flex; flex-direction: column; gap: 8px; }
body.v2 #v2-boot .v2-boot-cap i { width: 70px; height: 10px; background: var(--v2-skel-hi); }
body.v2 #v2-boot .v2-boot-cap i + i { display: none; }   /* the lanes show no helper line */
body.v2 #v2-boot .v2-boot-lane .is-bar { height: 8px; background: var(--v2-skel-hi); }
body.v2 #v2-boot .v2-boot-lane .is-range { height: 32px; width: 46%; margin-left: 30%; border-radius: 6px; }
body.v2 #v2-boot .v2-boot-lane .is-spread { height: 32px; width: 60%; margin-left: 40%; border-radius: 6px; }
body.v2 .v2-boot-chart { flex: 1 1 auto; min-height: 160px; margin-top: 12px; border-radius: 8px; display: flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--v2-hair); }
body.v2 .v2-boot-tf { display: flex; gap: 4px; justify-content: flex-end; }
body.v2 #v2-boot .v2-boot-tf i { width: 30px; height: 22px; }
body.v2 #v2-boot .v2-boot-plot { flex: 1 1 auto; margin-top: 10px; border-radius: 4px; background: var(--v2-skel); opacity: .6; }

/* ---- strike labels: app.css's old tablet rules (1024-1366px and below)
   hide all but every 4th-7th label and pad each to 130-200px, so the
   thinner saw clashes everywhere and dropped nearly all of them. On the
   desktop v2 page the thinner alone decides. ------------------------------- */
/* (2026-11-12) applies on phones too: it also overrides the app.css tablet
   rules at 768-991px */
body.v2 .slider-tick .slider-tick-label {
    display: block;
    min-width: 0;
    max-width: none;
    padding: 0;
}

/* ---- narrower windows: the view sizes its type and columns to its own
   width (a container), not the window's ---------------------------------- */
html:not(.m-on) body.v2 #v2-view-region > #ns-view { container: ns / inline-size; }
body.v2 #ns-view .ns-date.v2-chain-tab { padding: 0 clamp(8px, 1.6cqi, 14px) !important; gap: clamp(4px, 1cqi, 8px); }
body.v2 #ns-view .ns-date-main { flex: 1 1 auto; overflow: hidden; }
body.v2 #ns-view .ns-date-side { flex: none; }
body.v2 #ns-view .ns-date-day { font-size: clamp(13px, 1.9cqi, 15px); line-height: 1.3; }
body.v2 #ns-view .ns-date-sub { font-size: clamp(10.5px, 1.45cqi, 12px); overflow: hidden; text-overflow: ellipsis; }
body.v2 #ns-view .ns-date-left { font-size: clamp(10.5px, 1.45cqi, 12px); }
body.v2 .ns-spot-v { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
@container ns (max-width: 720px) {
    body.v2 #ns-view .ns-date-check { display: none; }
}
@container ns (max-width: 600px) {
    body.v2 #ns-view .ns-date.v2-chain-tab { flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; gap: 2px; }
    body.v2 #ns-view .ns-date-sub { display: none; }
    body.v2 #ns-view .ns-date-side { align-items: flex-start; }
}

/* the nav's Disconnect: the same 30px button as the balance and address
   chips beside it; red only in its text */
/* (2026-11-12) applies on phones too: the phone Disconnect button takes its
   border, radius, shadow, colour and weight from this rule */
body.v2 #disconnect-wallet-btn.wallet-cta {
    box-sizing: border-box !important;
    height: var(--v2-btn-h, 30px) !important;
    min-height: 0 !important;
    padding: 0 12px !important;
    margin-left: 8px !important;
    border: 0 !important;
    border-radius: var(--v2-r-btn, 6px) !important;
    box-shadow: none !important;
    background: var(--v2-chip, #232C42) !important;
    color: var(--negative, #E86A62) !important;
    font-family: var(--sans) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: var(--v2-btn-h, 30px) !important;   /* shown as inline-block by the page: centre by line */
    vertical-align: middle;
}
body.v2 #disconnect-wallet-btn.wallet-cta:hover { background: var(--v2-chip-hover, #2C3752) !important; }


/* the prize line moves into the nav once the page is up: not shown while loading */
/* (2026-11-12) applies on phones too, as it always has */
html.v2-loading body.v2 #v2-comp-line { visibility: hidden; }

