/* ti-pages.css (2026-11-11): the look layer shared by the dashboard pages (Market Breadth, Ratio Charts, Top Trader Insights) and the header of Lessons / Account.
   Brings the Today report's language to the denser pages: logos, sector icons, index badges, a gradient mark on each Compass band, and a phone layout that is complete (one-row nav strip, text 14px+, 44px touch targets).
   Linked AFTER each page's own <style> and after site-nav.css; every rule is either a new class (tiL / tiS / tiC / tiP, drawn by ti-identity.js) or a phone-only override. BUMP ?v= ON EVERY PAGE when this changes.
   The PHONE-NAV block is written so it can be folded into site-nav.css later (Home and the two other dashboards do not link this file yet). */

/* ---------------------------------------------------------------- identity badges (ti-identity.js) */
.tiL,.tiS,.tiC{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;margin-right:7px;border-radius:6px;vertical-align:middle;box-sizing:border-box;line-height:1}
.tiL{overflow:hidden;font:800 12px/1 "Segoe UI",system-ui,sans-serif;color:#0d1117}
.tiL.has-img{background:#fff;padding:2px}
.tiL.has-img img{display:block;width:100%;height:100%;object-fit:contain}
.tiL.tiL--idx{padding:0;background:transparent;border-radius:50%}
.tiL.tiL--idx img{border-radius:50%}
.tiL:not(.has-img)::before{content:attr(data-l)}
.tiL.t0{background:linear-gradient(145deg,#5ceaff,#4c8bf5)}.tiL.t1{background:linear-gradient(145deg,#c3a8ff,#ff7bbd)}.tiL.t2{background:linear-gradient(145deg,#6ff0a8,#2fc7c0)}
.tiL.t3{background:linear-gradient(145deg,#ffd166,#ff9a52)}.tiL.t4{background:linear-gradient(145deg,#ff9ecb,#9b8cff)}.tiL.t5{background:linear-gradient(145deg,#8fd3ff,#7a7bff)}
.tiS,.tiC{--sc:170,182,195;color:rgb(var(--sc));background:rgba(var(--sc),.16);border:1px solid rgba(var(--sc),.42)}
.tiS svg,.tiC svg{width:68%;height:68%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tiS--XLK{--sc:92,234,255}.tiS--XLV{--sc:255,123,189}.tiS--XLE{--sc:255,184,77}.tiS--XLF{--sc:111,240,168}.tiS--XLY{--sc:195,168,255}.tiS--XLP{--sc:143,220,111}
.tiS--XLI{--sc:255,154,82}.tiS--XLB{--sc:143,211,255}.tiS--XLU{--sc:255,226,102}.tiS--XLRE{--sc:255,150,160}.tiS--XLC{--sc:122,160,255}
.tiC--bond{--sc:143,211,255}.tiC--crypto{--sc:255,184,77}.tiC--gold{--sc:255,209,102}.tiC--oil{--sc:255,154,82}.tiC--globe{--sc:92,234,255}.tiC--scale{--sc:195,168,255}.tiC--vol{--sc:255,123,189}
.tiC--flask{--sc:111,240,168}.tiC--shield{--sc:255,150,160}.tiC--code{--sc:122,160,255}.tiC--dollar{--sc:143,220,111}.tiC--mid{--sc:195,168,255}.tiC--bars{--sc:170,182,195}
/* sizes: s = inside a ticker chip, default = beside a name in a list, l = a title */
.tiL--s,.tiS--s{width:16px;height:16px;margin-right:5px;border-radius:5px;font-size:10px}
.tiL--l,.tiS--l{width:32px;height:32px;margin-right:10px;border-radius:9px;font-size:15px}
.tiL--l.tiL--idx{border-radius:50%}
.tiP{display:inline-flex;align-items:center;justify-content:flex-start;flex:none;width:40px;margin-right:9px;vertical-align:middle}   /* fixed width: a pair showing one badge (bond vs bond) still lines the names up */
.tiP>*{margin-right:0}.tiP>*+*{margin-left:-4px;box-shadow:0 0 0 2px var(--panel,#161b22)}
.tiP--s{width:29px;margin-right:6px}.tiP--s>*+*{margin-left:-3px;box-shadow:0 0 0 1.5px var(--panel,#161b22)}
.tiP--l{width:60px;margin-right:12px}.tiP--l>*+*{margin-left:-5px;box-shadow:0 0 0 2px var(--bg,#0d1117)}
.tiP>*:first-child{position:relative;z-index:1}

/* chips that carry a badge need less padding on the badge side */
.wl-chip{padding-left:6px;padding-right:10px}
.cx .compass-chip{padding-left:8px}
.pos-item .pos-ticker{display:inline-flex;align-items:center;vertical-align:middle}
.preset-chip{display:inline-flex;align-items:center}
.stat-group .grp-label{display:inline-flex;align-items:center}
.cx .cx-r .id>.tiL,.cx .cx-r .id>.tiS,.cx .cx-r .id>.tiC,.cx .cx-r .id>.tiP{align-self:center}

/* the Compass band's mark: the small compass icon becomes the Today report's gradient mark */
.cx .cx-ico{width:32px;height:32px;padding:7px;box-sizing:border-box;border-radius:10px;color:#0d1117;background:linear-gradient(145deg,#00E5FF,#8C9BFF 55%,#FF4FA3);box-shadow:0 4px 16px rgba(0,229,255,.22);stroke-width:2.2}
.cx .compass-head{gap:9px}

/* ---------------------------------------------------------------- PHONE-NAV: one row, scrolls sideways, 44px pills, 14px text */
@media (max-width:760px){
  header .topbar .tool-nav,.tool-nav,header.nav nav.tabs{position:static;left:auto;transform:none;width:auto;max-width:100%;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;gap:6px;margin-top:6px;padding:2px 0 6px;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 22px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 22px),transparent 100%)}
  header .topbar .tool-nav::-webkit-scrollbar,.tool-nav::-webkit-scrollbar,header.nav nav.tabs::-webkit-scrollbar{display:none}
  header .topbar .tool-nav>:first-child,.tool-nav>:first-child,header.nav nav.tabs>:first-child{margin-left:auto;margin-inline-start:auto}
  header .topbar .tool-nav>:last-child,.tool-nav>:last-child,header.nav nav.tabs>:last-child{margin-right:auto;margin-inline-end:auto}
  header .tool-nav .nav-pill,.tool-nav .nav-pill,header.nav nav.tabs a{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 15px;font-size:14px;line-height:1.2;white-space:nowrap}
  header .avatar-circle,header .who .avatar{width:44px;height:44px;font-size:15px}
  header .avatar-menu{top:-4px}
  header .brand{min-height:44px;display:inline-flex;align-items:center}
  header .topbar{min-height:44px}
}

/* ---------------------------------------------------------------- PHONE: text 14px+, touch targets 44px (dashboards) */
@media (max-width:760px){
  .cx .info-tip,.info-tip{position:relative}
  .cx .info-tip::after,.info-tip::after{content:"";position:absolute;inset:-12px}                 /* the (i) stays small; its touch area is 44px */
  .why-toggle{position:relative}.why-toggle::after{content:"";position:absolute;inset:-9px -6px}
  .compass-chip,.wl-chip,.chip-more-toggle,.preset-chip,.pos-item,.cx-tk{position:relative}
  .compass-chip::after,.wl-chip::after,.chip-more-toggle::after{content:"";position:absolute;inset:-6px -3px}
}
@media (max-width:760px){
  .headline-cell,.note-badge.more,.mode-pill button,.btn-export,.cx .cx-r,.etfv-tab,.tgl,.preset-chip,.chip-more-toggle,.why-toggle,.cx-more button,.avatar-dropdown-item{min-height:44px!important}
  .headline-cell,.note-badge.more,.cx .cx-r{box-sizing:border-box}
  .feedback-fab,.feedback-fab span{font-size:14px!important}
  body>header{position:static}header.nav{position:static}                                          /* a 130px sticky bar would cover a third of a phone screen */
}
@media (max-width:480px){
  .nav-pill,.compass-chip,.wl-chip,.chip-more-toggle,.pos-ticker,.pos-note,.pos-entry,.cc-side,.cx-tag,.cx .cx-r .tk,.cx .cx-r--h,.cx .cx-r--h .lbl,.cx-lbl,.cx-nowrap,.mom-badge,.cx-r .ld,.cx-r .ld-v,.cx-r .ld-lead,.cx-r .tx,.cx-r .gl,
  .note-badge,.headline-chip,.headline-more,.dlt,.th-lbl,.th-sub,.hd,.bb-side,.btn-export,.cx-tk,th,.etfv-t th,footer,.leaders,.leaders *,.bb-side b,.mode-pill button,.tgl .tx,.badge-fresh{font-size:14px!important}
  .cx .cx-sec--mb .cx-r .tk{display:none}                                                         /* the sector icon and its full name say it; the ticker gave the name room */
  .cx .cx-sec--mb .cx-r .nm{flex:none;overflow:visible}
  .cx .cx-sec--mb .cx-r .cx-tag{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .etfv-tab{min-height:44px}
}
@media (max-width:480px){
  .preset-chip,.preset-row-label,.ma-group label,.ma-group-lbl,.grp-label,.stat-pill,.stat-pill b,.custom-toggle,.ratio-sub,.ratio-read,.search-row-label,.search-row label,
  .trader-section-lbl,.update-pill-text,.update-pill,.commentary-text,.trader-avatar-note,.pos-head,.pos-fold-txt,.cx-when,.snip,.empty-state,.cx-asof,.bf-short,.chips-lbl,.trader-lessons,.cx-fi *{font-size:14px!important}
}
@media (max-width:760px){
  .preset-chip,.custom-toggle,.ma-group label,.stat-group .grp-label.ticker-chip,.pos-fold,.trader-lessons,.search-row button,.search-row input{min-height:44px!important;box-sizing:border-box}
  .preset-chip,.custom-toggle{padding-top:0;padding-bottom:0}
  .stat-group .grp-label.ticker-chip{padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0}
}
@media (max-width:760px){
  footer a{display:inline-block;padding:13px 7px;margin:-13px 0}
  .feedback-fab{min-height:44px!important}
  .compass-chip,.wl-chip,.chip-more-toggle,.pos-item{min-height:38px;box-sizing:border-box}
}
@media (max-width:760px){
  .source-arrow{position:relative}.source-arrow::after{content:"";position:absolute;inset:-14px}
  .why-toggle{min-width:44px}
}

/* ---------------------------------------------------------------- tablets: the nav pills are touch targets up to 900px */
@media (max-width:900px){
  header .tool-nav .nav-pill,.tool-nav .nav-pill,header.nav nav.tabs a{min-height:44px;display:inline-flex;align-items:center}
  header .avatar-circle,header .who .avatar,.topbar .avatar-circle{width:44px;height:44px}
  .brand{min-height:44px;display:inline-flex;align-items:center}
  .t-x,.code-box label,.code-box summary{min-height:44px;box-sizing:border-box}
}

/* ---------------------------------------------------------------- Lessons and Account (phone) */
@media (max-width:760px){
  .jump a,.t-x,.c-cta,.t-next,.pop-next{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center}
  .jump .av{width:32px;height:32px}
  .code-box summary{min-height:44px;display:flex;align-items:center}
  .code-box input,.code-box button,.pricing-card button,.pricing-card .btn,button.secondary{min-height:44px;box-sizing:border-box}
  .footer-links a{display:inline-block;padding:13px 7px;margin:-13px 0}
}
@media (max-width:480px){
  .c-meta,.c-meta *,.c-cta,.jump a,.jump small,.jump .av,.t-name .pill,.t-x,small,.tool-card-desc,.footer-links,.footer-links a,.pricing-price span,.code-box label,.code-box summary,.pop-meta,.pop-meta *{font-size:14px!important}
}
@media (max-width:680px){
  .t-hero{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;column-gap:14px;row-gap:12px}       /* Lessons trader panel: avatar | name + bio, then the @handle button on its own row */
  .t-hero>.t-x{grid-column:1/-1;justify-content:center;margin-left:0}
  .t-hero .t-bio{white-space:normal}
}
@media (max-width:760px){
  .modal .m-x{width:44px;height:44px}
  .modal button.chip,.modal .credit a{min-height:44px;box-sizing:border-box}
  .modal .credit a{display:inline-flex;align-items:center}
}
@media (max-width:480px){
  .modal td,.modal th,.modal figcaption,.modal .credit,.modal .credit *,.modal span:not(.tag),.modal b{font-size:14px!important}
  .modal .tag{font-size:14px!important;letter-spacing:.03em}
}
@media (max-width:760px){
  .eod-wrap tbody td{padding-top:0!important;padding-bottom:0!important}                          /* rows are as tall as their 44px tap target, not 44 + padding */
  .eod-wrap tbody tr{height:44px}
}
@media (max-width:900px){                                                                          /* tablets: every control (not the dense table rows) is a 44px target */
  .cx .cx-r,.etfv-tab,.why-toggle,.preset-chip,.custom-toggle,.mode-pill button,.tgl,.btn-export,.feedback-fab,.stat-group .grp-label.ticker-chip,.trader-lessons,.pos-fold,.chip-more-toggle{min-height:44px!important;box-sizing:border-box}
  .why-toggle,.note-badge.more{min-width:44px}
  footer a{display:inline-block;padding:13px 7px;margin:-13px 0}
}
/* 2026-11-11: every company / index logo badge is a circle (sector icons keep their rounded square) */
.tiL,.tiL--s,.tiL--l,.tiL.tiL--idx{border-radius:50%}.tiL img{border-radius:50%}
