/* ===== ChartVerdict Lab theme — matches the homepage (used by Lab Results and the private owner Lab) =====
   Loaded after each page's own styles. Same palette as the homepage: near-black background with a teal glow,
   dark glass cards, DM Sans text, JetBrains Mono numbers, cyan→mint gradient for the main actions. */
html:root{
  --bg:#000510; --panel:#0E131C; --panel2:#0A0F17; --line:#1C2433;
  --ink:#E6ECF3; --mut:#8C97A8; --dim:#6B7688;
  --cy:#1FD6E8; --up:#22D38A; --dn:#FF5A6E; --am:#F7B53B;
  --mono:'JetBrains Mono',ui-monospace,monospace;
  --lab-grad:linear-gradient(90deg,#1FD6E8 0%,#7FEBB0 100%);
  --lab-card:rgba(14,19,28,.82); --lab-edge:rgba(149,149,149,.15); --lab-edge2:#273042;
}
html{background:#000510 !important}
html body{
  background:
    radial-gradient(1000px 760px at 100% -8%, rgba(15,111,106,.36), transparent 70%),
    radial-gradient(760px 640px at -12% 62%, rgba(29,122,87,.16), transparent 70%),
    #000510 !important;
  background-attachment:fixed !important;
  font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif !important;
  color:var(--ink);-webkit-font-smoothing:antialiased;
}
html body .site-bg{display:none !important}
html body ::selection{background:rgba(31,214,232,.3)}

/* headings */
html body :is(.lhead h1,.sec,.panel h2,details.wk summary .t,.gate h1,.login h1,h1,h2,h3){font-family:'DM Sans',system-ui,sans-serif !important;letter-spacing:-.02em;color:#F2F6FA}
html body .lhead h1{font-weight:700}
html body .lhead .eyebrow,html body .gate .eyebrow{color:#7FEBB0}
html body :is(.lhead p,.gate p){color:#A9B3C2}
html body :is(.subt,.panel .sub,.empty,.fine,.gate .fine2){color:#8C97A8}
html body :is(.how li,.gate li){color:#C4CCD8}
html body :is(.how li,.gate li):before{color:#7FEBB0}

/* cards / panels — dark glass like the homepage */
html body :is(.card,.kpi,.panel,details.wk,.rv,.login,.gate .card){
  background:var(--lab-card) !important;border:1px solid var(--lab-edge) !important;border-radius:18px !important;
  box-shadow:0 18px 50px -24px rgba(0,0,0,.6) !important;
}
html body .kpi{border-radius:16px !important}
html body :is(.pc,.log){background:rgba(10,15,23,.85) !important;border:1px solid var(--lab-edge) !important;border-radius:14px !important}
html body .pc.empty{border-style:dashed !important}
html body .tbl:not(table){background:var(--lab-card) !important;border:1px solid var(--lab-edge) !important;border-radius:16px !important}
html body th{background:#0C1119 !important}
html body :is(td,th){border-bottom-color:rgba(149,149,149,.12) !important}
html body .tbl td{color:#D5DCE6}
html body .log{color:#A9B3C2}
html body .log div{border-bottom-color:rgba(149,149,149,.08)}

/* notes / warnings */
html body .note{border-color:rgba(247,181,59,.35);background:rgba(247,181,59,.06);color:#EADBB0;border-radius:14px}
html body .note b{color:#F7C948}
html body .note.cy{border-color:rgba(31,214,232,.3);background:rgba(31,214,232,.05);color:#BFD3DC}
html body .note.cy b{color:var(--cy)}
html body .warn{background:rgba(247,181,59,.07);border-color:rgba(247,181,59,.4);color:#F5D79A;border-radius:14px}
html body .flash{background:rgba(31,214,232,.07);border-color:rgba(31,214,232,.35);border-radius:14px}
html body .livepill{border-radius:999px}

/* exit-plan picker */
html body .tfbar a{border-radius:14px !important;border-color:var(--lab-edge2) !important;background:rgba(14,19,28,.6) !important}
html body .tfbar a small{font-family:'DM Sans',system-ui,sans-serif !important}
html body .tfbar a:hover{border-color:rgba(31,214,232,.45) !important;color:var(--ink)}
html body .tfbar a.on{background:rgba(31,214,232,.08) !important;border-color:rgba(31,214,232,.7) !important;color:var(--cy) !important;box-shadow:0 10px 26px -12px rgba(31,214,232,.55)}

/* owner tabs + switches */
html body .tabs a{border-radius:12px !important;border-color:var(--lab-edge2) !important;font-family:'DM Sans',system-ui,sans-serif}
html body .tabs a:hover{color:var(--ink);border-color:rgba(31,214,232,.45) !important}
html body .tabs a.on{background:var(--lab-grad) !important;color:#02121a !important;border-color:transparent !important;box-shadow:0 10px 26px -10px rgba(31,214,232,.55)}
html body .sw{border-color:var(--lab-edge2) !important;border-radius:12px !important}
html body .sw a.on{box-shadow:inset 0 0 0 1px var(--lab-edge2) !important}
html body .brand{font-family:'DM Sans',system-ui,sans-serif;font-weight:700;letter-spacing:-.01em}
html body .brand span{background:var(--lab-grad);-webkit-background-clip:text;background-clip:text;color:transparent}

/* buttons + inputs */
html body .btn{border-color:var(--lab-edge2) !important;border-radius:12px !important;font-family:'DM Sans',system-ui,sans-serif}
html body .btn:hover{border-color:rgba(31,214,232,.5) !important}
html body :is(.btn.pri,.gate .pri){background:var(--lab-grad) !important;color:#02121a !important;border:0 !important;box-shadow:0 10px 26px -10px rgba(31,214,232,.55)}
html body .btn.ok{border-color:rgba(34,211,138,.55) !important}
html body .btn.bad{border-color:rgba(255,90,110,.55) !important}
html body .gate .btn{border-radius:12px !important}
html body :is(textarea,select,input[type=text],input[type=password],input[type=email],input[type=number],.gate input){
  background:#0A0F17 !important;border:1px solid var(--lab-edge2) !important;border-radius:12px !important;color:var(--ink) !important;
}
html body :is(textarea,select,input):focus{outline:none;border-color:rgba(31,214,232,.6) !important;box-shadow:0 0 0 3px rgba(31,214,232,.12) !important}

/* charts */
html body .ch-tools button{background:#0A0F17 !important;border-color:var(--lab-edge2) !important;border-radius:8px !important;font-family:'DM Sans',system-ui,sans-serif !important}
html body .ch-tools button:hover{border-color:rgba(31,214,232,.5) !important;color:var(--ink)}
html body .ch-tip{background:rgba(10,15,23,.95) !important;border-color:var(--lab-edge2) !important;border-radius:10px !important}
html body .lab-mc{background:rgba(5,8,14,.55) !important;border-radius:12px !important}

/* tags */
html body .tag{border-radius:7px}
html body .tag.g{background:#151C27 !important}
html body .tag.b{color:var(--cy);border-color:rgba(31,214,232,.4)}
html body .live{background:var(--lab-grad);color:#02121a}
html body .tfb{border-color:var(--cy);color:var(--cy)}

/* details rows on Lab Results */
html body details.wk summary .m{color:#A9B3C2}
html body details.wk summary .chev{color:#7FEBB0}
html body details.wk:hover{border-color:rgba(31,214,232,.35) !important}
html body .cmpt tr.on td{background:rgba(31,214,232,.06)}

/* owner Lab on phones: tabs scroll sideways in one row instead of squashing */
@media (max-width:760px){
  html body .top{align-items:flex-start}
  html body .tabs{flex-wrap:nowrap !important;overflow-x:auto;width:100%;max-width:100%;padding-bottom:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  html body .tabs::-webkit-scrollbar{display:none}
  html body .tabs a{white-space:nowrap;flex:0 0 auto}
}

/* colour-coded numbers in tables (green = good, amber = watch, red = bad) — beats the plain table text colour */
html body :is(td,th,span,b).up{color:var(--up) !important}
html body :is(td,th,span,b).dn{color:var(--dn) !important}
html body :is(td,th,span,b).am{color:var(--am) !important}
