/* Dashboard look shared by every page with the sidebar (Dashboard, Escrow, Marketplace Deals, Wallet, ...) */

    /* ---- Dashboard: centered, more room, no boxes: the lower part is one slightly lighter area ---- */
    html:root body:has(aside.side) .main { padding: 0 !important; }
    html:root body:has(aside.side) .main > .plan-label,
    html:root body:has(aside.side) .main > .v-plans { width: min(1320px, calc(100% - 4rem)); margin-left: auto; margin-right: auto; }
    html:root body:has(aside.side) .main > .plan-label { margin-top: 1.05rem; margin-bottom: .55rem; font-size: .78rem; color: #8b93a3; }
    html:root body:has(aside.side) .main > .v-plans { border-bottom: 0 !important; margin-bottom: 0; padding-bottom: .95rem; }
    /* each number with a small icon in front (like the plans on Vital) */
    html:root body:has(aside.side) .v-plan { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; padding: .1rem 1.6rem .05rem 1.2rem; }
    html:root body:has(aside.side) .v-plan .vp-ic { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(143,216,255,.08); color: #8fd8ff; }
    html:root body:has(aside.side) .v-plan:not(.on) .vp-ic { background: rgba(255,255,255,.05); color: #a4acbd; }
    html:root body:has(aside.side) .v-plan .vp-ic svg { width: 16px; height: 16px; }
    html:root body:has(aside.side) .v-plan span { margin-top: .1rem; }
    html:root body:has(aside.side) .v-plan b { font-size: .95rem; }
    html:root body:has(aside.side) .v-plan span { font-size: .78rem; }
    html:root body:has(aside.side) .main > .v-panel {
      border: 0 !important; border-radius: 10px 0 0 0 !important; box-shadow: none !important;
      background: #0d1118 !important; margin: 0 0 0 .5rem;
      padding: 2.2rem max(2rem, calc((100% - 1320px) / 2)) 3.4rem !important;
      min-height: calc(100vh - 170px);
    }
    /* tabs and buttons: smaller and quieter */
    html:root body:has(aside.side) .v-panel-top { margin-bottom: 2.2rem; }
    html:root body:has(aside.side) .v-panel-top .v-seg { padding: 3px; }
    html:root body:has(aside.side) .v-panel-top .v-seg button { font-size: .82rem !important; padding: .42rem .95rem !important; }
    html:root body:has(aside.side) .v-panel-top .filter-tabs { width: auto; max-width: none; margin-bottom: 0; }
    html:root body:has(aside.side) .v-panel-top .filter-tabs button { flex: 0 0 auto; white-space: nowrap; }
    html:root body:has(aside.side) .volline .xdd-btn { padding: .42rem .8rem; font-size: .84rem; border-radius: 10px; }
    html:root body:has(aside.side) .volline .xdd.inline { min-width: 120px; }
    html:root body:has(aside.side) .v-panel .dealbtns .btn-deal,
    html:root body:has(aside.side) .v-panel .dealbtns .btn-join { padding: .5rem .95rem !important; font-size: .82rem !important; border-radius: 10px !important; min-height: 0 !important; }
    /* headings: plain and light, like "General" */
    html:root body:has(aside.side) .v-panel h2 { font-family: Manrope, system-ui, sans-serif !important; font-weight: 600 !important; font-size: 1.08rem !important; letter-spacing: -.01em; }
    html:root body:has(aside.side) .v-panel .v-table-head { margin-bottom: 1.1rem; }
    html:root body:has(aside.side) .volwrap { margin-bottom: 3rem; }
    html:root body:has(aside.side) .volsub { margin-top: .5rem; }
    /* tables without an outer box: a light header row, thin lines between rows */
    html:root body:has(aside.side) .v-panel .v-table { border: 0 !important; background: transparent !important; border-radius: 0 !important; overflow: visible; }
    html:root body:has(aside.side) .v-panel .v-table .v-tr.head { background: rgba(255,255,255,.028) !important; border: 0 !important; border-radius: 9px; font-size: .74rem; }
    html:root body:has(aside.side) .v-panel .v-table a.v-tr { border-radius: 9px; border-top: 0 !important; border-bottom: 1px solid rgba(255,255,255,.04) !important; }
    html:root body:has(aside.side) .v-panel .v-table a.v-tr:last-child { border-bottom: 0 !important; }
    html:root body:has(aside.side) .v-panel .v-empty { padding: 2.4rem 1rem; color: #7f8797; font-size: .84rem; }
    html:root body:has(aside.side) .v-panel .v-search { height: 38px; font-size: .84rem; }
    html:root body:has(aside.side) .dashfoot { margin: 0 0 0 .5rem; padding: 1.1rem max(2rem, calc((100% - 1320px) / 2)) 1.4rem; background: #0d1118; border-top: 1px solid rgba(255,255,255,.04); }
    @media (max-width: 900px) {
      html:root body:has(aside.side) .main > .plan-label, html:root body:has(aside.side) .main > .v-plans { width: calc(100% - 2rem); }
      html:root body:has(aside.side) .main > .v-panel { margin: 0; border-radius: 18px 18px 0 0 !important; padding: 1.6rem 1rem 2.4rem !important; }
      html:root body:has(aside.side) .dashfoot { margin: 0; padding: 1rem; }
    }
    /* no glow at the top: one flat dark blue, the same blue as the selected Overview / Activity / Offers tab */
    html:root body:has(aside.side) { background: #080c13 !important; background-image: none !important; }
    html:root body:has(aside.side)::before { display: none !important; }
    /* the selected tab / period: the same look as the notification bell */
    html:root body:has(aside.side) .v-panel .voltabs button.on {
      background: linear-gradient(180deg, rgba(143,216,255,.18), rgba(143,216,255,.07)) !important; color: #fff !important;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 14px rgba(0,0,0,.35) !important; }
    /* the selected Overview / Activity / Offers tab: dark, the same bell look as the period buttons */
    html:root body:has(aside.side) .v-panel-top .v-seg button.on {
      background: linear-gradient(180deg, rgba(143,216,255,.18), rgba(143,216,255,.07)) !important; color: #fff !important;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 14px rgba(0,0,0,.35) !important; }
    html:root body:has(aside.side) .v-plan .vp-ic { background: #080c13; border: 1px solid rgba(143,216,255,.14); }
    html:root body:has(aside.side) .v-plan:not(.on) .vp-ic { background: transparent; border-color: rgba(255,255,255,.08); }
    html:root body:has(aside.side) .v-plan .vp-ic svg { width: 17px; height: 17px; }
    /* search with an icon inside, a little lighter under the mouse; the period buttons right next to it */
    html:root body:has(aside.side) .v-table-tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
    .v-sbox { position: relative; display: inline-flex; align-items: center; }
    .v-sbox svg { position: absolute; left: .75rem; width: 15px; height: 15px; color: #7f8797; pointer-events: none; transition: color .2s ease; }
    html:root body:has(aside.side) .v-sbox .v-search { padding-left: 2.15rem; width: 230px; transition: background .2s ease, border-color .2s ease; }
    html:root body:has(aside.side) .v-sbox:hover .v-search { background: #151b25 !important; border-color: rgba(255,255,255,.18) !important; }
    .v-sbox:hover svg, .v-sbox:focus-within svg { color: #c9d3e0; }
    html:root body:has(aside.side) .v-table-tools .voltabs { margin: 0; }
    @media (max-width: 640px) { html:root body:has(aside.side) .v-sbox, html:root body:has(aside.side) .v-sbox .v-search { width: 100%; } }
    /* Account overview like the plans on Vital: icon + name on top, the number under it,
       closer together, a short line on the left only as tall as the icon (blue on the chosen one) */
    html:root body:has(aside.side) .main > .v-plans { display: flex !important; flex-wrap: wrap; gap: 1.2rem 6.5rem !important; }
    html:root body:has(aside.side) .v-plan { display: block !important; position: relative; padding: 0 0 0 1.05rem !important; box-shadow: none !important; border: 0 !important; min-width: 150px; }
    html:root body:has(aside.side) .v-plan::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 28px; border-radius: 2px; background: rgba(255,255,255,.09); }
    html:root body:has(aside.side) .v-plan.on::before { width: 3px; background: #8fd8ff; }
    html:root body:has(aside.side) .v-plan .vp-top { display: flex !important; align-items: center; gap: .6rem; height: 28px; margin: 0 !important; }
    html:root body:has(aside.side) .v-plan .vp-ic { width: 28px; height: 28px; border-radius: 8px; }
    html:root body:has(aside.side) .v-plan .vp-ic svg { width: 16px; height: 16px; }
    html:root body:has(aside.side) .v-plan .vp-lab { display: inline !important; margin: 0 !important; font-size: .9rem !important; font-weight: 600; color: #8b93a3 !important; }
    html:root body:has(aside.side) .v-plan.on .vp-lab { color: #eef2f8 !important; }
    html:root body:has(aside.side) .v-plan > b { display: block; margin-top: .55rem; font-size: .95rem; color: #eef2f8; }
    html:root body:has(aside.side) .v-plan:not(.on) > b { color: #a4acbd; }
    /* every deal row: the same soft raised look as the notification bell, with a little space between them */
    html:root body:has(aside.side) .v-panel #recentRows, html:root body:has(aside.side) .v-panel #actBox .v-table { display: flex; flex-direction: column; gap: .3rem; }
    html:root body:has(aside.side) .v-panel #actBox .v-table .v-tr.head { margin-bottom: .1rem; }
    html:root body:has(aside.side) .v-panel .v-table a.v-tr {
      background: linear-gradient(180deg, #1c1f29, #13151c) !important; border: 0 !important; border-radius: 11px !important;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 14px rgba(0,0,0,.3) !important; }
    html:root body:has(aside.side) .v-panel .v-table a.v-tr:hover { background: linear-gradient(180deg, #222632, #171a22) !important; }
    html:root body:has(aside.side) .v-panel .v-table > .v-tr.head { margin-bottom: .45rem; }
    /* hover: a slight outline in the colour of the deal's status (green completed, blue active, amber pending),
       and the other deals fade back (like the listings, but nothing grows) */
    html:root body:has(aside.side) .v-panel .v-table a.v-tr { transition: opacity .22s ease, box-shadow .22s ease, background .2s ease; }
    html:root body:has(aside.side) .v-panel .v-table a.v-tr.st-done:hover { box-shadow: inset 0 0 0 1px rgba(61,220,132,.45), 0 6px 14px rgba(0,0,0,.3) !important; }
    html:root body:has(aside.side) .v-panel .v-table a.v-tr.st-live:hover { box-shadow: inset 0 0 0 1px rgba(143,216,255,.45), 0 6px 14px rgba(0,0,0,.3) !important; }
    html:root body:has(aside.side) .v-panel .v-table a.v-tr.st-wait:hover { box-shadow: inset 0 0 0 1px rgba(245,181,68,.45), 0 6px 14px rgba(0,0,0,.3) !important; }
    html:root body:has(aside.side) .v-panel .v-table:has(a.v-tr:hover) a.v-tr:not(:hover) { opacity: .4; }

    /* ---- the same look on every dashboard page ---- */
    /* pages without the overview on top: the whole page is the lighter area */
    html:root body:has(aside.side) .main:not(:has(> .v-plans)) {
      background: #0d1118; border-radius: 10px 0 0 0; margin: .9rem 0 0 .5rem !important;
      padding: 2.2rem max(2rem, calc((100% - 1320px) / 2)) 3.4rem !important; min-height: calc(100vh - 90px); }
    /* pages where the content sits in a wrapper (Friends): the wrapper is the lighter area */
    html:root body:has(aside.side) .main > .v-plans + :not(.v-panel) {
      background: #0d1118; border-radius: 10px 0 0 0; margin: 0 0 0 .5rem;
      padding: 2.2rem max(2rem, calc((100% - 1320px) / 2)) 3.4rem; min-height: calc(100vh - 170px); }
    /* boxes inside the lighter area: no box, just space and a thin line between the sections */
    html:root body:has(aside.side) .main:not(:has(> .v-plans)) .v-panel:not(.cp-wrap), html:root body:has(aside.side) .main > .v-plans + :not(.v-panel) .v-panel:not(.cp-wrap) {
      background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
    html:root body:has(aside.side) .main:not(:has(> .v-plans)) .v-panel ~ .v-panel, html:root body:has(aside.side) .main > .v-plans + :not(.v-panel) .v-panel ~ .v-panel { margin-top: 2.4rem !important; padding-top: 2.2rem !important; border-top: 1px solid rgba(255,255,255,.05) !important; }
    html:root body:has(aside.side) .main:not(:has(> .v-plans)) .v-panel h2 { font-family: Manrope, system-ui, sans-serif !important; font-weight: 600 !important; letter-spacing: -.01em; }
    /* overview labels start with a capital letter */
    html:root body:has(aside.side) .v-plan .vp-lab { display: inline-block !important; }
    html:root body:has(aside.side) .v-plan .vp-lab::first-letter { text-transform: uppercase; }
    /* every selected tab: the old soft blue */
    html:root body:has(aside.side) .v-panel .v-seg button.on, html:root body:has(aside.side) .v-panel .filter-tabs button.on {
      background: linear-gradient(180deg, rgba(143,216,255,.18), rgba(143,216,255,.07)) !important; color: #fff !important;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 14px rgba(0,0,0,.35) !important; }
    html:root body:has(aside.side) .v-panel .v-seg button, html:root body:has(aside.side) .v-panel .filter-tabs button { font-size: .82rem !important; }
    /* deal rows on every page: the hover outline takes the colour of the status shown in the row */
    html:root body:has(aside.side) .v-panel .v-table a.v-tr:has(.dstat.done):hover { box-shadow: inset 0 0 0 1px rgba(61,220,132,.45), 0 6px 14px rgba(0,0,0,.3) !important; }
    html:root body:has(aside.side) .v-panel .v-table a.v-tr:has(.sdot.live):hover { box-shadow: inset 0 0 0 1px rgba(143,216,255,.45), 0 6px 14px rgba(0,0,0,.3) !important; }
    html:root body:has(aside.side) .v-panel .v-table a.v-tr:has(.sdot.wait):hover { box-shadow: inset 0 0 0 1px rgba(245,181,68,.45), 0 6px 14px rgba(0,0,0,.3) !important; }
    html:root body:has(aside.side) .v-panel #dealRows { display: flex; flex-direction: column; gap: .3rem; }
    @media (max-width: 900px) {
      html:root body:has(aside.side) .main:not(:has(> .v-plans)), html:root body:has(aside.side) .main > .v-plans + :not(.v-panel) { margin: 0 !important; border-radius: 18px 18px 0 0; padding: 1.6rem 1rem 2.4rem !important; }
    }
    /* the chat box in a DM stays a box, like Live Chat */
    html:root body:has(aside.side) .main:not(:has(> .v-plans)) .v-panel.cp-wrap { background: #0b0f15 !important; min-height: 0 !important; margin: 0 !important; }
    html:root body:has(aside.side) .cp-pick .fr-empty a { display: inline !important; padding: 0 !important; border: 0 !important; background: none !important; }
    /* section headings: plain and light everywhere (not the big numbers) */
    html:root body:has(aside.side) .v-panel h3, html:root body:has(aside.side) .v-panel .v-k, html:root body:has(aside.side) .main:not(:has(> .v-plans)) h2 { font-family: Manrope, system-ui, sans-serif !important; font-weight: 600 !important; letter-spacing: -.01em; }
    /* tab boxes only as wide as their tabs */
    html:root body:has(aside.side) .tabgroups .filter-tabs { flex: 0 0 auto !important; width: auto !important; }
    /* the search icon in the middle of the box */
    html:root body:has(aside.side) .v-sbox svg { top: 50%; transform: translateY(-50%); }
    html:root body:has(aside.side) .v-sbox .v-search { margin: 0 !important; }
    /* the footer: the same lighter strip on every page */
    html:root body:has(aside.side) .dashfoot { width: auto !important; max-width: none !important; border-radius: 0 !important; }
    /* Escrow / Marketplace Deals / Listings: the page stays put and only the list scrolls */
    @media (min-width: 901px) {
      html:root body:has(aside.side):has(#dcards) .main { padding-bottom: 0 !important; }
      html:root body:has(aside.side):has(#dcards) .main > .v-panel { min-height: 0 !important; padding-bottom: 1.6rem !important; }
      html:root body:has(aside.side):has(#dcards) .dashfoot { margin: 0 0 0 .5rem !important; }
      html:root body:has(aside.side):has(#dcards) #dcards .v-tr.head { background: #13171f !important; }
    }
    /* Affiliate: Purchases and Payouts side by side, without the line between them */
    html:root body:has(aside.side) .main > .v-plans + .af-area .af-cols > .v-panel.v-panel ~ .v-panel.v-panel { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
    html:root body:has(aside.side) .af-area .af-block { margin-top: 1.4rem; }
