/* ============================================================
   Forex News Aggregator -- shared design system
   Stripe-inspired fintech palette: navy text, signature indigo
   accent, cool slate neutrals -- a widely-recognized "trustworthy
   financial product" look, in place of a generic monochrome/blue.
   Used by index.html, login.html, admin_base.html
   ============================================================ */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --border: #e3e8ef;
  --border-strong: #c1cad6;
  --text: #0a2540;
  --muted: #425466;
  --muted-2: #697386;
  --accent: #635bff;
  --accent-strong: #4f46e5;
  --accent-soft: rgba(99, 91, 255, 0.08);
  --accent-border: rgba(99, 91, 255, 0.35);
  --high: #df1b41;
  --medium: #b45309;
  --low: #a3860a;
  --holiday: #697386;
  --bull: #0f9d68;
  --bear: #df1b41;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.05), 0 1px 3px rgba(10, 37, 64, 0.07);
  --tint: rgba(10, 37, 64, 0.04);
}

:root[data-theme="dark"] {
  --bg: #0b0e17;
  --surface: #141824;
  --surface-2: #141824;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --muted: #aab4c5;
  --muted-2: #7c8aa0;
  --accent: #7c76fa;
  --accent-strong: #635bff;
  --accent-soft: rgba(124, 118, 250, 0.16);
  --accent-border: rgba(124, 118, 250, 0.4);
  --high: #ff5c7a;
  --medium: #e3ab4d;
  --low: #d1b957;
  --holiday: #9aa4b5;
  --bull: #22c58e;
  --bear: #ff5c7a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.35);
  --tint: rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--accent); }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* ---------- Header / branding ---------- */

/* Sticks the header and its nav dropdown together as one unit -- without
   this, the mobile dropdown (position:static, sitting right after the
   header in the document) opened at its original spot on the page instead
   of following the header once the page was scrolled down.
   The ForexFactory ticker sits above this wrap (not sticky) so Chart Analysis
   method buttons stay clickable after scroll. */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
}
html {
  scroll-padding-top: 96px; /* sticky header height: scrollIntoView / #hash leave content clear */
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand-text p {
  margin: 1px 0 0;
  color: var(--muted-2);
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
}

.header-actions .user-pill {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-actions a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease;
}
.header-actions a:hover { color: var(--text); }
.header-actions a.primary-link { color: var(--accent); }
.header-actions a.primary-link:hover { color: var(--accent-strong); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); }

/* Hamburger toggle for the mobile nav dropdown -- hidden on desktop, where the
   page links already show inline in .site-nav. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
}
.nav-toggle:hover { border-color: var(--border-strong); }
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--muted);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle-float {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 10px 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--tint); }
.site-nav a.active { color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.site-nav .nav-icon { font-size: 15px; line-height: 1; }
/* Desktop already shows username/Admin/Logout in the header -- this mobile-
   only duplicate inside the nav dropdown stays hidden here. */
.site-nav-user { display: none; }

/* Mobile overrides come last so they win ties with the shared rules above
   instead of losing to them by source order at the same specificity. */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  /* Collapsed into a dropdown panel right under the header, opened via
     .nav-toggle -- max-height (not display:none) so open/close can animate,
     and plain static flow (not sticky) so it just pushes the page down
     when open instead of needing a positioned ancestor to anchor to. */
  .site-nav {
    position: static;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    padding: 0 8px;
    max-height: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: max-height .2s ease;
  }
  .site-nav.open { max-height: 520px; padding: 8px; }   /* six pages + the user rows */
  .site-nav a { padding: 12px 14px; }

  /* Username/Admin/Logout move into the nav dropdown on mobile instead of
     staying cramped in the header next to the theme toggle and hamburger. */
  .header-actions .user-pill,
  .header-actions a { display: none; }
  .site-nav-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .site-nav-user .user-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    color: var(--muted);
    font-size: 13px;
  }
  .site-nav-user a { padding: 12px 14px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 500; }
  .site-nav-user a:hover { color: var(--text); background: var(--tint); }
  .site-nav-user a.primary-link { color: var(--accent); }
}

.theme-toggle-sidebar { margin: 4px 22px 0; width: calc(100% - 44px); }

/* ---------- Layout ---------- */

.page { max-width: 1400px; margin: 0 auto; }

.results-section { padding: 4px 40px 32px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  min-width: 0;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  margin: 0 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted-2);
}

/* ---------- Filter bar ---------- */

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 24px 40px 28px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-bar-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted-2);
}
.filter-toggle { display: none; }   /* phones only, see the 640px breakpoint */

/* Grid areas (not two separate flex rows) so Apply can sit inline with
   Period/Impact on wide screens and drop to its own full-width row below the
   Pairs chips on narrow ones just by reassigning areas in the media query
   below -- no JS needed to move the button between two different containers. */
.filter-grid {
  display: grid;
  column-gap: 16px;
  row-gap: 16px;
  /* The 4th column is a plain empty filler ("."), not the Apply button's own
     column -- that keeps Apply's own column content-sized (auto), so it sits
     right next to Impact with a normal gap instead of snapping to the far
     right edge of the bar, while still giving the chips row (which spans all
     4 columns) the full bar width to work with. */
  grid-template-columns: auto auto auto 1fr;
  /* Sources/Pairs first, Period / Impact / Apply as the bottom row (19 Oct 2026: on top they
     looked out of place above the chips). */
  grid-template-areas: "chips chips chips chips" "period impact apply .";
  align-items: end;
}
.filter-area-period { grid-area: period; }
.filter-area-impact { grid-area: impact; }
.filter-area-chips { grid-area: chips; }
.filter-area-apply { grid-area: apply; justify-self: start; }
/* #apply.filter-area-apply (id+class) so this beats button#apply's width:100%
   below, which otherwise wins on specificity (id+type) regardless of source
   order and stretches the button across the whole third grid column. */
#apply.filter-area-apply { width: auto; padding: 9px 20px; }

.field-inline { display: flex; flex-direction: column; gap: 6px; }
.field-inline label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.filter-area-period select,
.filter-area-impact select {
  width: auto;
  min-width: 150px;
}

.filter-row-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.chip-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.chip-group-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted-2);
  flex-shrink: 0;
}

/* ---------- Form controls ---------- */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}

/* Login form's icon-prefixed inputs, with an eye toggle on the password
   field -- scoped to this wrapper (not input[type=...] globally) so it
   doesn't add unwanted left/right padding to every text/password field
   elsewhere, like the admin user forms. */
.input-icon-wrap { position: relative; }
/* input[type=text]/[type=password] below match on the type attribute too, so
   this needs the same specificity (not just source order) to actually win --
   otherwise that later, equal-specificity rule's padding shorthand resets
   padding-left back to 12px and the typed text runs under the icon. */
.input-icon-wrap input[type=text],
.input-icon-wrap input[type=password] { padding-left: 38px; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--muted-2);
  pointer-events: none;
}
.input-icon-wrap.has-toggle input { padding-right: 40px; }
.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 6px 8px;
  background: transparent;
  border: none;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.password-toggle:hover { color: var(--text); }

select, input[type=datetime-local], input[type=text], input[type=password], input[type=number] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Chrome/Edge paint autofilled fields with their own light background no
   matter what's set above -- an inset box-shadow the size of the whole
   field is the one thing that actually paints over it, plus -webkit-text-
   fill-color since autofill also locks the text color. Without this, a
   saved username/password shows as a jarring light box in dark mode. */
input[type=text]:-webkit-autofill,
input[type=password]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

select:focus, input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23425466'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

.pairs { display: flex; flex-wrap: wrap; gap: 8px; }

.pair-chip, .source-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background .15s ease;
}
.pair-chip:hover, .source-chip:hover:not(.disabled) { border-color: var(--border-strong); }
.pair-chip input, .source-chip input { accent-color: var(--accent); width: 15px; height: 15px; }

.pair-chip.active, .source-chip.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.source-chip.disabled { opacity: .4; cursor: not-allowed; }
.source-chip .why { margin-left: auto; font-size: 13px; color: var(--muted-2); }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Buttons ---------- */

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease, color .15s ease;
}

.btn, button#apply, .main button[type=submit]:not(.danger) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
}
.btn:hover, button#apply:hover, .main button[type=submit]:hover:not(.danger) {
  background: var(--accent-strong);
  color: #fff;
}

button#refreshNow {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
button#refreshNow:hover { border-color: var(--border-strong); color: var(--text); }
button#refreshNow.spinning { opacity: .5; cursor: wait; }

/* Shared loading mark: 5 candlesticks (green #32a648 / red #c94a4a) on #090909. */
@keyframes candle-bob {
  0%, 100% { transform: scaleY(.42); }
  50% { transform: scaleY(1); }
}
.candle-loader {
  --candle-green: #32a648;
  --candle-red: #c94a4a;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0;
  line-height: 0;
}
.candle-loader > i {
  position: relative;
  display: block;
  width: 9px;
  height: 100%;
  border-radius: 1px;
  transform-origin: center bottom;
  animation: candle-bob 1.05s ease-in-out infinite;
  background: var(--candle-green);
}
.candle-loader > i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  bottom: -7px;
  width: 2px;
  margin-left: -1px;
  background: inherit;
  border-radius: 1px;
  opacity: .95;
}
.candle-loader > i:nth-child(1) { height: 48%; animation-delay: 0s; background: var(--candle-green); }
.candle-loader > i:nth-child(2) { height: 78%; animation-delay: .12s; background: var(--candle-red); }
.candle-loader > i:nth-child(3) { height: 58%; animation-delay: .24s; background: var(--candle-green); }
.candle-loader > i:nth-child(4) { height: 88%; animation-delay: .36s; background: var(--candle-red); }
.candle-loader > i:nth-child(5) { height: 64%; animation-delay: .48s; background: var(--candle-green); }
.candle-loader-sm {
  height: 18px;
  gap: 3px;
}
.candle-loader-sm > i { width: 4px; }
.candle-loader-sm > i::before { top: -4px; bottom: -4px; width: 1px; margin-left: -.5px; }
@media (prefers-reduced-motion: reduce) {
  .candle-loader > i { animation: none; transform: scaleY(.75); }
}

.loading-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 36px 16px;
  color: var(--muted);
  font-size: 13px;
  grid-column: 1 / -1;
}
.loading-state .candle-loader {
  background: #090909;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 14px 18px 10px;
  box-sizing: content-box;
}

/* Blocking popup for user-triggered loads (first page load, Apply, manual
   Refresh) -- see showLoadingOverlay()/hideLoadingOverlay() in base.html. */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.loading-overlay[hidden] { display: none; }
.loading-overlay-box {
  background: #090909;
  border: 1px solid #222;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 320px;
  min-width: 200px;
}
.loading-overlay-text { color: #e8e8e8; font-size: 14px; font-weight: 500; }

button.danger {
  background: transparent;
  color: var(--bear);
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(223, 27, 65, 0.3);
  width: auto;
}
button.danger:hover { background: rgba(223, 27, 65, 0.1); border-color: var(--bear); }

/* ---------- Table ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 360px; }
table.data-table { min-width: 760px; }

th {
  text-align: left;
  color: var(--muted-2);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .06em;
  padding: 12px;
  background: var(--tint);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th:first-child { border-top-left-radius: var(--radius-sm); }
th:last-child { border-top-right-radius: var(--radius-sm); }

td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* Desktop-only table polish -- scoped above the mobile breakpoint so none of
   this touches the mobile card layout, which has its own separate styling
   further down and stays as-is. */
@media (min-width: 641px) {
  /* Rows of very uneven height (a 3-line headline and a dozen Affects chips
     next to a one-line row) packed edge-to-edge with just a hairline border
     read as one dense block, not separate news items -- border-collapse:
     separate + border-spacing puts real breathing room between rows, and
     each row gets its own bordered, rounded box so it reads as a distinct
     card rather than a spreadsheet line. */
  table.data-table { border-collapse: separate; border-spacing: 0 10px; }
  table.data-table thead th { border-bottom: none; }
  table.data-table tbody tr td {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  table.data-table tbody tr:last-child td { border-bottom: 1px solid var(--border); }
  table.data-table tbody tr td:first-child {
    border-left: 3px solid transparent;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
  }
  table.data-table tbody tr td:last-child {
    border-right: 1px solid var(--border);
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
  }

  /* Sentiment-colored left edge (same idea as the mobile cards, same
     data-sentiment attribute from the row template) so bullish/bearish news
     is tellable apart while scanning a full page of rows. */
  table.data-table tbody tr[data-sentiment="Bullish"] td:first-child { border-left-color: var(--bull); }
  table.data-table tbody tr[data-sentiment="Bearish"] td:first-child { border-left-color: var(--bear); }
  table.data-table .currency-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border-radius: 20px;
    padding: 3px 10px;
  }

  /* Social Sentiment cards on desktop -- wider columns (these carry post
     excerpts, not just a pair name and a count), a sentiment-colored left
     edge matching the mobile cards, and post excerpts as their own tinted
     blocks instead of a cramped 90px scrollbox. */
  #socialGrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
  #socialGrid .bias-card { border-left: 3px solid var(--border-strong); }
  #socialGrid .bias-card.Bullish { border-left-color: var(--bull); }
  #socialGrid .bias-card.Bearish { border-left-color: var(--bear); }
  #socialGrid .social-posts { max-height: none; overflow-y: visible; }
  #socialGrid .social-posts .post {
    background: var(--tint);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  #socialGrid .social-posts .post:last-child { margin-bottom: 0; }

  /* Market Bias cards on desktop -- same sentiment-colored left edge and a
     bit more breathing room than the 160px floor other .bias-grid users get. */
  #biasGrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  #biasGrid .bias-card { border-left: 3px solid var(--border-strong); }
  #biasGrid .bias-card.Bullish { border-left-color: var(--bull); }
  #biasGrid .bias-card.Bearish { border-left-color: var(--bear); }
}
tbody tr { transition: background .15s ease; }
tbody tr:hover td { background: var(--tint); }
tbody tr:last-child td { border-bottom: none; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-border);
}
.badge.High { background: rgba(223, 27, 65, 0.1); color: var(--high); border-color: rgba(223, 27, 65, 0.3); }
.badge.Medium { background: rgba(180, 83, 9, 0.12); color: var(--medium); border-color: rgba(180, 83, 9, 0.3); }
.badge.Low { background: rgba(163, 134, 10, 0.12); color: var(--low); border-color: rgba(163, 134, 10, 0.3); }
.badge.Holiday { background: rgba(105, 115, 134, 0.12); color: var(--holiday); border-color: rgba(105, 115, 134, 0.3); }
.badge.News { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-border); }
.badge.Analysis { background: var(--tint); color: var(--muted); border-color: var(--border-strong); }
.badge.Admin { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-border); }

.currency-tag { font-weight: 600; color: var(--text); }
.source-tag { font-size: 13px; color: var(--muted-2); }
a.title-link { color: var(--text); text-decoration: none; }
a.title-link:hover { color: var(--accent-strong); text-decoration: underline; }

.sentiment-badge {
  font-size: 13px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 12px;
  display: inline-block;
  border: 1px solid transparent;
}
.sentiment-badge.Bullish { background: rgba(15, 157, 104, 0.1); color: var(--bull); border-color: rgba(15, 157, 104, 0.28); }
.sentiment-badge.Bearish { background: rgba(223, 27, 65, 0.1); color: var(--bear); border-color: rgba(223, 27, 65, 0.28); }
.sentiment-badge.Neutral { background: var(--tint); color: var(--muted); border-color: var(--border-strong); }
/* what a Bullish / Bearish is for when not the row's currency: "Bearish · USDJPY" (17 Nov 2026) */
.sent-for { margin-left: 6px; font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; }

.reason-text { font-size: 13.5px; color: var(--muted-2); margin-top: 6px; max-width: 240px; line-height: 1.5; }

.affected { font-size: 13px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.affected .chip { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.dir { font-weight: 600; }
.dir.Up { color: var(--bull); }
.dir.Down { color: var(--bear); }
.dir.Flat { color: var(--muted-2); }

.count { color: var(--muted); font-size: 14.5px; font-weight: 400; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.refresh-controls { display: flex; align-items: center; gap: 10px; }
.last-updated { font-size: 13px; color: var(--muted-2); }

.empty { color: var(--muted-2); padding: 56px 16px; text-align: center; font-size: 15px; }

/* ---------- Bias / social sections ---------- */

.bias-section { margin: 0 40px 28px; }
.bias-section .disclaimer { color: var(--muted-2); font-size: 13.5px; margin: 0 0 14px; line-height: 1.55; }

.bias-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

.bias-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease;
}
.bias-card:hover { border-color: var(--border-strong); }
/* Social Sentiment's own freshness timestamp (Market Bias cards don't set
   this, so it's simply absent there) -- shown first, like the News cards
   lead with Time. */
.bias-card .card-time { font-size: 12px; color: var(--muted-2); margin-bottom: 6px; }
.bias-card .pair-name { font-weight: 600; font-size: 15px; }
.bias-card .bias-label { font-size: 14px; font-weight: 500; margin-top: 5px; }
.bias-card .bias-label.Bullish { color: var(--bull); }
.bias-card .bias-label.Bearish { color: var(--bear); }
.bias-card .bias-label.Neutral { color: var(--muted); }
.bias-card .signals { font-size: 13px; color: var(--muted-2); margin-top: 7px; line-height: 1.45; }
/* 17 Nov 2026: Market Bias's News + AI Market Intel breakdown (base.html renderIntelPart) */
#biasGrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.bias-card .intel-scores { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-2); margin-top: 8px; }
.bias-card .intel-scores .bias-label { display: inline; font-size: 12.5px; margin: 0; }
.bias-card .intel-agree { font-size: 12px; margin-top: 5px; color: var(--muted-2); }
.bias-card .intel-agree.agree { color: var(--bull); }
.bias-card .intel-agree.conflict { color: var(--bear); }
.bias-card .intel-why { margin-top: 7px; font-size: 12.5px; color: var(--muted-2); }
.bias-card .intel-why summary { cursor: pointer; color: var(--muted); }
.bias-card .intel-why ul { margin: 6px 0 0; padding-left: 0; list-style: none; line-height: 1.45; }
.bias-card .intel-why li { margin-bottom: 4px; }
.bias-card .intel-why li .bias-label { display: inline; font-size: 12.5px; margin: 0 4px 0 0; }
.bias-card .intel-why .intel-note { font-style: italic; }

/* TradingView's single-quote widget silently drops the % change line below
   ~280px of rendered width, so this grid keeps cards wider than that floor. */
.prices-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.price-card { padding: 10px 4px; }
.price-card .tradingview-widget-container,
.price-card .tradingview-widget-container__widget { width: 100%; }

.social-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.social-title { margin: 0; font-size: 15px; font-weight: 600; }

.social-bar { height: 4px; border-radius: 2px; background: rgba(223, 27, 65, 0.2); overflow: hidden; margin-top: 10px; }
.social-bar-fill { height: 100%; background: var(--bull); }
.social-posts { margin-top: 8px; font-size: 13px; color: var(--muted-2); max-height: 90px; overflow-y: auto; }
.social-posts .post { margin-bottom: 6px; line-height: 1.4; }
.social-posts .post .tag { font-weight: 600; }
.social-posts .post .tag.Bullish { color: var(--bull); }
.social-posts .post .tag.Bearish { color: var(--bear); }
.social-posts .post .post-time { font-size: 11px; color: var(--muted); }
.social-posts .post .post-source { font-size: 11px; color: var(--muted-2); }

/* ---------- Login page ---------- */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.06);
}

.auth-card .brand-mark { width: 44px; height: 44px; margin: 0 auto 20px; }
.auth-card h1 { font-size: 18px; margin: 0 0 5px; text-align: center; font-weight: 600; letter-spacing: -0.015em; }
.auth-card .subtitle { font-size: 14.5px; color: var(--muted-2); margin: 0 0 26px; text-align: center; }
.auth-card .error {
  color: var(--high);
  background: rgba(223, 27, 65, 0.08);
  border: 1px solid rgba(223, 27, 65, 0.25);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-bottom: 16px;
}
/* logged out because the account logged in on another device */
.auth-card .auth-notice {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ---------- Admin shell ---------- */

.admin-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}
.sidebar .brand { padding: 0 22px 24px; }
.sidebar .brand-text h1 { font-size: 15px; }
.sidebar .brand-text p { font-size: 13px; }
.admin-head-theme { display: none; }             /* the phone header's; the sidebar has its own at the bottom */
.admin-nav { flex: 1; display: flex; flex-direction: column; }
.admin-nav .nav-icon { font-size: 15px; line-height: 1; width: 18px; text-align: center; }

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  border-right: 2px solid transparent;
  transition: color .15s ease, background .15s ease;
}
.sidebar a:hover { color: var(--text); background: var(--tint); }
.sidebar a.active { color: var(--text); background: var(--accent-soft); border-right-color: var(--accent); }
.sidebar .spacer { flex: 1; }
.sidebar .divider { border-top: 1px solid var(--border); margin: 12px 0; }

.main { flex: 1; min-width: 0; padding: 36px 40px; max-width: 820px; }
.main h1 { font-size: 18px; margin: 0 0 24px; font-weight: 600; letter-spacing: -0.015em; }

.message {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }   /* a long label squeezed it to 13px */

/* ---------- Site Control: the admin's switches, and what they show on the pages ---------- */
.site-control .panel { margin-bottom: 18px; }
.site-control .hint { margin: -6px 0 6px; font-size: 13.5px; }
.site-control .field { margin: 14px 0 0; }
.state, .nav-closed {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 1px 7px; border-radius: 999px; white-space: nowrap;
}
.state { margin-left: 8px; }
.state.on { background: color-mix(in srgb, var(--bull) 14%, transparent); color: var(--bull); }
.state.off, .nav-closed { background: color-mix(in srgb, var(--bear) 12%, transparent); color: var(--bear); }
.save-bar { position: sticky; bottom: 0; padding: 12px 0; background: var(--bg); }
.save-bar { display: flex; align-items: center; gap: 8px; }
.save-bar button.ghost { flex: none; align-self: stretch; }
/* "Settings for": Everyone, or one user's own switches (Like everyone / on / off) */
.settings-for { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 18px; }
.settings-for label { font-weight: 600; }
.settings-for select { width: auto; min-width: 240px; max-width: 100%; }
.settings-for .hint { flex-basis: 100%; margin: 0; font-size: 13.5px; }
.choice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0 9px 10px;
  border-bottom: 1px solid var(--border); border-left: 3px solid transparent; font-size: 14.5px; }
.choice-row:last-of-type { border-bottom: none; }
.choice-row select { width: auto; min-width: 200px; flex: none; }
.choice-row.own { border-left-color: var(--accent); }
.choice-row.own select { border-color: var(--accent-border); color: var(--accent-strong); }
.choice-note { margin: 10px 0 0 !important; }
@media (max-width: 640px) {
  .choice-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .choice-row select, .settings-for select { width: 100%; min-width: 0; }
}

.user-actions { text-align: right; }
/* User Management: each user's ProBot key, whole on one click (to copy), and where it runs */
.check-field { display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; font-size: 14px; color: var(--text); cursor: pointer; }
.check-field input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.probot-key td { padding-top: 0; font-size: 12.5px; color: var(--muted); }
.users-table tr:has(+ tr.probot-key) td { border-bottom: 0; }
.probot-key code { margin: 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--text); white-space: nowrap; user-select: all; cursor: text; }
.probot-pc { font-size: 12px; color: var(--muted); }
.user-actions form { margin: 2px 0 2px 4px; }
.pw-form { display: inline-flex; gap: 4px; vertical-align: middle; }
.pw-form input[type=text] { width: 130px; padding: 6px 10px; font-size: 14px; }
/* after the accent submit buttons above: same specificity, so the later rule wins */
.main button.ghost[type=submit] {
  width: auto; padding: 7px 12px; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.main button.ghost[type=submit]:hover { background: var(--tint); color: var(--text); }

.site-notice {
  display: flex; align-items: center; gap: 10px; margin: 16px 40px 0; padding: 11px 14px;
  border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-border);
  color: var(--text); font-size: 14.5px; font-weight: 500;
}
.admin-note {
  margin: 12px 40px 0; padding: 9px 14px; border-radius: var(--radius); font-size: 13.5px; color: var(--text);
  border: 1px dashed color-mix(in srgb, var(--medium) 60%, transparent); background: color-mix(in srgb, var(--medium) 9%, transparent);
}
.site-nav .nav-closed { margin-left: 2px; }

.closed-box {
  max-width: 520px; margin: 48px auto; padding: 32px 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.closed-icon { font-size: 34px; line-height: 1; }
.closed-box h2 { margin: 12px 0 6px; font-size: 19px; font-weight: 600; }
.closed-box p { margin: 0; color: var(--muted); font-size: 14.5px; }
.closed-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.closed-links a {
  padding: 7px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-border);
  text-decoration: none; font-weight: 600; font-size: 14px;
}
.maintenance-card { text-align: center; }
.maintenance-text { font-size: 15.5px; color: var(--text); margin: 8px 0 6px; }
.maintenance-card .subtitle { margin-bottom: 14px; }
.maintenance-logout { font-size: 14px; }

/* ---------- Utility ---------- */

.muted { color: var(--muted); }
.hint { font-size: 14px; color: var(--muted-2); line-height: 1.5; }

/* ============================================================
   Responsive breakpoints
   ============================================================ */

@media (max-width: 900px) {
  .results-section { padding: 4px 16px 24px; }
  .filter-bar { margin: 16px 16px 20px; }
  .site-notice, .admin-note { margin-left: 16px; margin-right: 16px; }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 16px; }
  /* Stack everything into one column, with Apply moved after the chips instead
     of staying inline with Period/Impact -- same grid, different areas. */
  .filter-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "chips" "period" "impact" "apply";
  }
  .filter-area-period select,
  .filter-area-impact select { width: 100%; }
  .filter-area-apply { justify-self: stretch; }
  #apply.filter-area-apply { width: 100%; }
  .filter-bar { padding: 16px 18px; gap: 14px; }
  .filter-row-chips { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* Folded away behind one button that says what is picked: open, the filters took a whole
     phone screen before the first result. */
  .filter-bar { padding: 10px 18px; }
  .filter-bar-label { display: none; }
  .filter-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px;
    padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
  }
  .filter-toggle-name { flex: none; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); }
  .filter-summary { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .filter-chev {
    flex: none; width: 8px; height: 8px; margin: -4px 4px 0 0;
    border-right: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2); transform: rotate(45deg); transition: transform .15s;
  }
  .filter-bar.open { padding-bottom: 16px; }
  .filter-bar.open .filter-chev { transform: rotate(-135deg); margin-top: 4px; }
  .filter-bar:not(.open) .filter-grid { display: none; }
  /* The description line just repeats what the page already communicates,
     and dropping it keeps the logo/title and the theme toggle/hamburger on
     one compact row instead of the header wrapping onto two. */
  .brand-text p { display: none; }
  .brand-text { min-width: 0; }
  .brand-text h1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Just the theme toggle + hamburger remain here now that username/Admin/
     Logout moved into the nav dropdown -- group them on the right, on the
     same row as the logo (no forced width:100% line break), instead of
     space-between spreading two lone icons to opposite edges. */
  .header-actions { justify-content: flex-end; gap: 12px; flex: none; }
  /* one row: on a 320px phone the two icons wrapped under the title -- the title shortens (…) instead */
  .site-header { flex-wrap: nowrap; }
  .bias-section { margin: 0 16px 20px; }
  .prices-grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .results-header { flex-wrap: wrap; }
  .refresh-controls { width: 100%; justify-content: space-between; }
  .social-header { flex-wrap: wrap; gap: 10px; }
  .reason-text { max-width: 100%; }

  /* Responsive table -> social-post-style cards. A labeled-field-per-line
     layout (every value under its own uppercase heading, table order) read
     like a form, not something you'd casually scroll through -- reordered
     into a currency+impact tag row -> headline -> analysis -> affected
     pairs -> stats -> a small byline footer instead, with labels only kept
     where the value alone would be ambiguous (Forecast/Previous are bare
     numbers; everything else is already self-describing via its own badge
     color or styling). Each card also gets a colored left edge from its own
     sentiment (tr[data-sentiment], set in loadNewsInner's row template) so
     bullish/bearish/neutral news is tellable apart at a glance while
     scrolling, not just readable one card at a time. */
  table.data-table { min-width: 0; }
  table.data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data-table tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 14px 14px 14px 12px;
    background: var(--surface);
  }
  table.data-table tr[data-sentiment="Bullish"] { border-left-color: var(--bull); }
  table.data-table tr[data-sentiment="Bearish"] { border-left-color: var(--bear); }
  table.data-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 100%;
    text-align: left;
    border-bottom: none;
    padding: 3px 2px;   /* the table's 14px cell padding, on top of the card's own spacing, left big gaps */
  }
  table.data-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted-2);
  }
  table.data-table td.loading-cell { display: block; text-align: center; }

  /* Time + Source now form a small byline right at the top of the card --
     when this was posted and where it came from, read first, like a social
     post's timestamp/platform line -- with a rule underneath separating it
     from the tag row and headline below. */
  table.data-table td[data-label="Time"],
  table.data-table td[data-label="Source"] {
    order: 1;
    flex-basis: 100%;
    font-size: 12px;
    color: var(--muted-2);
  }
  table.data-table td[data-label="Time"]::before,
  table.data-table td[data-label="Source"]::before { content: none; }
  /* Room for the Impact badge pinned in the card's top-right corner (see
     below) so it never overlaps the Time line. */
  table.data-table td[data-label="Time"] { padding-right: 76px; }
  table.data-table td[data-label="Source"] {
    margin-top: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  table.data-table td[data-label="Source"] .source-tag::before { content: "via "; }
  table.data-table td[data-label="Source"] .source-tag { font-size: 12px; }

  /* Currency and Impact both pinned in the card's top-right corner, stacked
     -- Currency (the pair) on top, Impact directly below it -- instead of
     Currency sitting in the normal flow under the byline. */
  table.data-table td[data-label="Currency"] {
    position: absolute;
    top: 14px;
    right: 14px;
  }
  table.data-table td[data-label="Impact"] {
    position: absolute;
    top: 58px;
    right: 14px;
  }
  table.data-table td[data-label="Currency"]::before,
  table.data-table td[data-label="Impact"]::before { content: none; }
  table.data-table td[data-label="Currency"] .currency-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border-radius: 20px;
    padding: 3px 10px;
  }

  /* Headline and the analysis/affected-pairs blocks below it are each
     self-explanatory from their own styling (bold text, a colored badge,
     tagged chips), so their uppercase labels are dropped entirely instead
     of just shrunk -- one less thing to read past on a small screen. */
  table.data-table td[data-label="Event"]::before,
  table.data-table td[data-label="Sentiment"]::before,
  table.data-table td[data-label="Affects"]::before { content: none; }
  table.data-table td[data-label="Event"] {
    order: 3;
    /* Extra clearance so the headline's first line never runs under the
       Currency/Impact badges stacked in the corner above it. */
    margin-top: 24px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
  }
  table.data-table td[data-label="Sentiment"] { order: 4; margin-top: 12px; }
  table.data-table td[data-label="Affects"] { order: 5; margin-top: 12px; }
  table.data-table td[data-label="Affects"] .affected { gap: 6px; }
  table.data-table td[data-label="Affects"] .affected .chip {
    border-radius: 12px;
    padding: 3px 9px;
    font-size: 12.5px;
  }

  /* Actual/Forecast/Previous: three equal columns on one row, small label over the number.
     As "label: value" pairs side by side the three did not fit a phone's width and Previous
     wrapped onto a line of its own. */
  table.data-table td[data-label="Actual"],
  table.data-table td[data-label="Forecast"],
  table.data-table td[data-label="Previous"] {
    order: 6;
    flex: 1 1 0;
    min-width: 0;
    gap: 2px;
    margin-top: 14px;
    font-size: 14.5px;
    font-weight: 600;
  }
  /* News cards: the Impact badge level with the "via ..." line, above the rule under it (lower,
     it sat across that rule) */
  table.news-table td[data-label="Impact"] { top: 44px; }
  table.news-table td[data-label="Source"] { padding-right: 80px; padding-bottom: 14px; }

  /* A lone "-" (no affected pairs, no analysis) says nothing on a card: left out */
  table.data-table td:has(> .na:only-child) { display: none; }

  /* Admin: users as small cards -- the table was wider than the phone, Delete out of sight */
  table.users-table { min-width: 0; }
  table.users-table thead { display: none; }
  table.users-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--border);
  }
  table.users-table tr:last-child { border-bottom: 0; }
  table.users-table td { grid-column: 1; padding: 1px 0; border: 0; font-size: 13.5px; color: var(--muted); }
  table.users-table td[data-label="Username"] { font-size: 15px; font-weight: 600; color: var(--text); }
  table.users-table td[data-label="Active Since"]::before,
  table.users-table td[data-label="Auto-delete In"]::before { content: attr(data-label) ": "; }
  /* the actions on their own line under the user: password, block, renew and delete didn't fit beside it */
  table.users-table td.user-actions { grid-column: 1 / -1; text-align: left; padding-top: 8px; }
  table.users-table td.user-actions form { margin: 2px 4px 2px 0; }
  table.users-table td.user-actions:empty { display: none; }
  table.users-table tr:has(+ tr.probot-key) { padding-bottom: 4px; border-bottom: 0; }
  table.users-table tr.probot-key { padding-top: 0; }
  table.users-table tr.probot-key td { grid-column: 1 / -1; font-size: 12.5px; }

  /* Market Bias cards, one per row, same sentiment-colored left edge and
     bigger text as Social Sentiment's cards below. */
  #biasGrid { grid-template-columns: 1fr; }
  #biasGrid .bias-card {
    border-left: 3px solid var(--border-strong);
    padding: 16px;
  }
  #biasGrid .bias-card.Bullish { border-left-color: var(--bull); }
  #biasGrid .bias-card.Bearish { border-left-color: var(--bear); }
  #biasGrid .bias-card .pair-name { font-size: 17px; }
  #biasGrid .bias-card .bias-label { font-size: 15px; }

  /* Social Sentiment cards, one per row (same idea as the News cards) --
     these also carry StockTwits post excerpts that need real room instead
     of a cramped 2-column grid with a tiny scrolling box cutting them off. */
  #socialGrid { grid-template-columns: 1fr; }
  #socialGrid .bias-card {
    border-left: 3px solid var(--border-strong);
    padding: 16px;
  }
  #socialGrid .bias-card.Bullish { border-left-color: var(--bull); }
  #socialGrid .bias-card.Bearish { border-left-color: var(--bear); }
  #socialGrid .bias-card .pair-name { font-size: 17px; }
  #socialGrid .bias-card .bias-label { font-size: 15px; }
  #socialGrid .social-bar { height: 6px; }
  #socialGrid .social-posts { max-height: none; overflow-y: visible; }
  #socialGrid .social-posts .post {
    background: var(--tint);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  #socialGrid .social-posts .post:last-child { margin-bottom: 0; }

  /* The admin's sidebar becomes the site's phone header: logo and title, the theme toggle and a hamburger,
     its links a dropdown under it (like .site-nav) */
  .admin-shell { flex-direction: column; }
  .sidebar { position: sticky; top: 0; z-index: 20; width: 100%; padding: 0; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
  .admin-head .brand { flex: 1; min-width: 0; padding: 0; }
  .sidebar .brand-text h1 { font-size: 16px; }
  .admin-head-theme { display: inline-flex; flex: none; }
  .admin-head .nav-toggle { flex: none; }
  .admin-nav { gap: 2px; padding: 0 8px; max-height: 0; overflow: hidden; border-top: 1px solid transparent;
    box-shadow: var(--shadow-sm); transition: max-height .2s ease; }
  .admin-nav.open { max-height: 360px; padding: 8px; border-top-color: var(--border); }
  .sidebar .admin-nav a { padding: 12px 14px; border-right: none; border-radius: var(--radius-sm); }
  .sidebar .admin-nav a.active { color: var(--accent-strong); font-weight: 600; }
  .sidebar .spacer { display: none; }
  .sidebar .divider { margin: 6px 6px; }
  .theme-toggle-sidebar { display: none; }
  .main { padding: 20px 16px; }
}

/* Fingers, not a mouse: the small square icon buttons a little bigger */
@media (pointer: coarse) {
  .theme-toggle, .theme-toggle-sidebar { width: 36px; height: 36px; }
  .nav-toggle { width: 38px; height: 38px; }
}

@media (max-width: 420px) {
  .bias-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
  .prices-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 22px; }
}

/* ---- Live Prices (MetaTrader 5 quotes, replaces the TradingView widgets) ---- */
.lp-section { margin-top: 24px; }   /* no filter bar above it on this page: it sat right on the nav */
@media (max-width: 640px) { .lp-section { margin-top: 16px; } }
.lp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.lp-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.lp-status.ok .lp-dot { background: var(--bull); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bull) 25%, transparent); animation: lp-pulse 2s infinite; }
.lp-status.bad .lp-dot { background: var(--bear); }
@keyframes lp-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--bull) 0%, transparent); } }
.lp-error { margin: 10px 0; padding: 10px 14px; border-radius: var(--radius); font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--bear) 40%, transparent); background: color-mix(in srgb, var(--bear) 8%, transparent); color: var(--text); }
.lp-group { margin-top: 22px; }
.lp-group-title { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.lp-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px 12px; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s; overflow: hidden; }
.lp-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.lp-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border-strong); }
.lp-card.up::before { background: var(--bull); }
.lp-card.down::before { background: var(--bear); }
.lp-card.closed { opacity: .72; }
.lp-card.flash-up { animation: lp-flash-up .9s ease-out; }
.lp-card.flash-down { animation: lp-flash-down .9s ease-out; }
@keyframes lp-flash-up { from { background: color-mix(in srgb, var(--bull) 14%, var(--surface)); } to { background: var(--surface); } }
@keyframes lp-flash-down { from { background: color-mix(in srgb, var(--bear) 14%, var(--surface)); } to { background: var(--surface); } }
.lp-top { display: flex; align-items: center; gap: 10px; }
.lp-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.lp-id { min-width: 0; flex: 1; }
.lp-sym { font-weight: 700; font-size: 15px; color: var(--text); }
.lp-name { font-size: 12px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-closed { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2);
  border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 2px; }
.lp-chg { flex: none; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.lp-chg.up { color: var(--bull); background: color-mix(in srgb, var(--bull) 12%, transparent); }
.lp-chg.down { color: var(--bear); background: color-mix(in srgb, var(--bear) 12%, transparent); }
.lp-chg.flat { color: var(--muted-2); background: var(--tint); }
.lp-price { margin-top: 12px; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1; }
.lp-lead { font-size: 22px; font-weight: 600; }
.lp-big { font-size: 30px; font-weight: 700; }
.lp-frac { font-size: 16px; font-weight: 600; vertical-align: super; margin-left: 1px; color: var(--muted); }
.lp-sub { margin-top: 6px; font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.lp-sub .up { color: var(--bull); font-weight: 600; }
.lp-sub .down { color: var(--bear); font-weight: 600; }
.lp-spark { display: block; width: 100%; height: 42px; margin: 10px 0 6px; overflow: visible; }
.lp-spark .lp-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.lp-spark .lp-area { stroke: none; opacity: .14; }
.lp-spark .lp-base { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.lp-spark.up .lp-line { stroke: var(--bull); } .lp-spark.up .lp-area { fill: var(--bull); }
.lp-spark.down .lp-line { stroke: var(--bear); } .lp-spark.down .lp-area { fill: var(--bear); }
.lp-spark.flat .lp-line { stroke: var(--muted-2); } .lp-spark.flat .lp-area { fill: var(--muted-2); }
.lp-range { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.lp-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--tint); border: 1px solid var(--border); }
.lp-bar i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--accent-border); }
@media (max-width: 640px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-big { font-size: 26px; }
}

/* ---- Live Prices: search every pair, and a pair's popup with its 15m-W1 charts and levels (8 Nov 2026) ---- */
.lp-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.lp-search { position: relative; flex: 1 1 320px; max-width: 520px; }
.lp-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.lp-search input { width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 14px; }
.lp-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lp-hint { font-size: 12.5px; color: var(--muted-2); }
.lp-card[data-sym] { cursor: pointer; }
.lp-card[data-sym]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-mini .lp-price { margin-top: 10px; }
.lp-mini .lp-lead { font-size: 18px; }
.lp-mini .lp-big { font-size: 24px; }
.lp-empty { padding: 16px 4px; font-size: 14px; color: var(--muted-2); }
body.lpm-open { overflow: hidden; }
.lpm[hidden] { display: none; }
.lpm { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lpm-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .62); backdrop-filter: blur(3px); }
.lpm-box { position: relative; width: min(1200px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.lpm-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 70px 14px 20px;
  background: var(--surface); border-bottom: 1px solid var(--border); }
.lpm-title { flex: 1; min-width: 150px; }
.lpm-title h2 { margin: 0; font-size: 20px; color: var(--text); }
.lpm-title small { font-size: 12.5px; color: var(--muted-2); }
.lpm-head .lpm-price { margin: 0; }
.lpm-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
  color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.lpm-close:hover { border-color: var(--border-strong); }
.lpm-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px 0; }
.lpm-tabs button, .lpm-more { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.lpm-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.lpm-more { padding: 4px 10px; font-size: 12px; margin-left: auto; }
.lpm-more:hover, .lpm-tabs button:hover { border-color: var(--border-strong); color: var(--text); }
.lpm-body { padding: 14px 20px 22px; }
.lpm-note { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted-2); }
.lpm-table-wrap { overflow-x: auto; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.lpm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lpm-table th, .lpm-table td { padding: 9px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); color: var(--text); }
.lpm-table thead th { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); background: var(--surface-2); }
.lpm-table tbody th small, .lpm-table td small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted-2); }
.lpm-table tr:last-child th, .lpm-table tr:last-child td { border-bottom: 0; }
.lpm-table tbody th { font-size: 13.5px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.lpm-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface-2); }
.lpm-table .lpm-now th, .lpm-table .lpm-now td { background: var(--accent-soft); font-weight: 700; }
.lpm-none { color: var(--muted-2); }
.lpm-r { color: var(--bear) !important; font-weight: 700; }
.lpm-s { color: var(--bull) !important; font-weight: 700; }
.lpm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lpm-card { min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.lpm-card.wide { grid-column: 1 / -1; }
.lpm-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lpm-card-head b { font-size: 14.5px; color: var(--text); }
.lpm-trend { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.lpm-trend.up { color: var(--bull); background: color-mix(in srgb, var(--bull) 12%, transparent); }
.lpm-trend.down { color: var(--bear); background: color-mix(in srgb, var(--bear) 12%, transparent); }
.lpm-trend.turn { color: var(--medium); background: color-mix(in srgb, var(--medium) 14%, transparent); }
.lpm-chart svg { display: block; max-width: 100%; height: auto; }
.lpm-chart .lpm-cu { fill: var(--bull); stroke: var(--bull); stroke-width: 1; }
.lpm-chart .lpm-cd { fill: var(--bear); stroke: var(--bear); stroke-width: 1; }
.lpm-chart .lpm-lv { stroke-width: 1.4; stroke-dasharray: 6 4; }
.lpm-chart .lpm-lv.r { stroke: var(--bear); }
.lpm-chart .lpm-lv.s { stroke: var(--bull); }
.lpm-chart .lpm-px { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 2 3; }
.lpm-chart .lpm-tag { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lpm-chart .lpm-tag.r { fill: var(--bear); }
.lpm-chart .lpm-tag.s { fill: var(--bull); }
.lpm-chart .lpm-pxtag { fill: var(--accent); }
.lpm-chart .lpm-pxtxt { fill: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lpm-levels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lpm-levels span { padding: 3px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.lpm-levels small { color: var(--muted-2); }
@media (max-width: 760px) {
  .lpm { padding: 0; }
  .lpm-box { width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: 0; }
  .lpm-head { padding: 10px 62px 10px 14px; gap: 8px 10px; }
  .lpm-close { top: 10px; right: 12px; }
  .lpm-title h2 { font-size: 17px; }
  .lpm-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 10px 14px 2px; scrollbar-width: none; }
  .lpm-tabs button { flex: none; padding: 6px 12px; }
  .lpm-table th, .lpm-table td { padding: 8px 10px; }
  .lpm-trendcol { display: none; }
  .lpm-body { padding: 12px 14px 20px; }
  .lpm-grid { grid-template-columns: 1fr; }
  .lpm-card.wide { grid-column: auto; }
}

/* ---------- AI Market Intel (8 Nov 2026): calendar, AI reports, big investors, social, Ask AI, accuracy ---------- */
.mi { padding-top: 22px; }
.mi .up, .mim .up { color: var(--bull); }
.mi .down, .mim .down { color: var(--bear); }
.mi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.mi-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.mi-sub { font-size: 13px; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }
.mi-lead { margin: 6px 0 0; max-width: 860px; color: var(--muted); font-size: 14.5px; }
.mi-status { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 14px; max-width: 420px; line-height: 1.45; }
.mi-status small { color: var(--muted-2); }
.mi-dot { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--muted-2); }
.mi-status.ok .mi-dot { background: var(--bull); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bull) 25%, transparent); }
.mi-status.bad .mi-dot { background: var(--medium); }
.mi-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 10px 0 16px; overflow-x: auto; scrollbar-width: none; }
.mi-tabs button { flex: none; width: auto; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted);
  font-weight: 600; font-size: 14.5px; padding: 10px 14px; cursor: pointer; }
.mi-tabs button:hover { color: var(--text); background: var(--tint); }
.mi-tabs button.active { color: var(--accent-strong); border-bottom-color: var(--accent); }
.mi-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mi-tools-right { display: flex; gap: 8px; flex-wrap: wrap; }
.mi-tools select { width: auto; padding: 7px 10px; font-size: 13.5px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); }
.mi-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mi-chips button { width: auto; padding: 6px 12px; font-size: 13px; font-weight: 600; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.mi-chips button:hover { border-color: var(--border-strong); color: var(--text); }
.mi-chips button.on { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-border); }
.mi-chips button small { font-weight: 600; margin-left: 4px; color: var(--muted-2); }
.mi-search { flex: 1 1 260px; max-width: 380px; padding: 8px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); }
.mi-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mi-note { font-size: 13px; color: var(--muted-2); margin: 4px 0 12px; }
.mi-honest { background: var(--tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; color: var(--muted); }
.mi-muted { color: var(--muted-2); font-size: 13px; }
.mi-empty { color: var(--muted-2); padding: 40px 16px; text-align: center; font-size: 14.5px; }
.mi-foot { font-size: 12px; color: var(--muted-2); margin: 22px 0 0; }
.mi-spin { display: none; }
.mi-ai .candle-loader,
.mi-empty .candle-loader,
.mim-state .candle-loader,
.mi-bubble .candle-loader { margin-right: 6px; vertical-align: middle; }

/* the calendar table */
.mi-cal-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; box-shadow: var(--shadow-sm); }
table.mi-cal { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mi-cal thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.mi-cal td { padding: 8px 10px; border-bottom: 0; vertical-align: top; }
.mi-cal tr.mi-day td { padding: 14px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--tint); border-top: 1px solid var(--border); }
.mi-cal tr.mi-row.first td { border-top: 1px solid var(--border); }
.mi-cal tr.mi-day + tr.mi-row.first td { border-top: 0; }
.mi-cal tr.grp { cursor: pointer; }
.mi-cal tr.grp:hover td { background: var(--accent-soft); }
.mi-cal tr.grp:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mi-cal tr.sub td { padding-top: 2px; }
.mi-cal tr.minor .mi-line { color: var(--muted-2); }
.mi-cal tr.past .mi-time strong { color: var(--muted-2); }
.mi-time { white-space: nowrap; width: 78px; }
.mi-time strong { font-size: 14.5px; }
.mi-time small { display: block; font-size: 11.5px; color: var(--accent-strong); font-weight: 600; }
.mi-ccytag { display: inline-block; font-weight: 700; font-size: 12.5px; padding: 1px 7px; border-radius: 5px; background: var(--tint);
  border: 1px solid var(--border); color: var(--text); }
.mi-ev { min-width: 260px; }
.mi-gtitle { font-weight: 700; color: var(--text); margin-bottom: 1px; }
.mi-line { color: var(--muted); font-size: 13.5px; }
.mi-per { margin-left: 6px; font-size: 11.5px; color: var(--muted-2); }
.mi-num { white-space: nowrap; }
.mi-rev { display: block; font-size: 11px; font-weight: 600; color: var(--medium); }
.mi-act { color: var(--text); }
.mi-act.above::after { content: " \25B2"; font-size: 10px; color: var(--accent-strong); }
.mi-act.below::after { content: " \25BC"; font-size: 10px; color: var(--accent-strong); }
.mi-aicell { white-space: nowrap; }
.mi-bias { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--tint); color: var(--muted); }
.mi-bias.Bullish { color: var(--bull); background: color-mix(in srgb, var(--bull) 11%, transparent); border-color: color-mix(in srgb, var(--bull) 35%, transparent); }
.mi-bias.Bearish { color: var(--bear); background: color-mix(in srgb, var(--bear) 10%, transparent); border-color: color-mix(in srgb, var(--bear) 35%, transparent); }
.mi-conf { font-size: 11.5px; font-weight: 700; color: var(--muted-2); margin-left: 4px; }
.mi-goldchip { font-size: 11.5px; font-weight: 700; margin-left: 6px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); color: var(--muted); }
.mi-goldchip.Bullish { color: var(--bull); } .mi-goldchip.Bearish { color: var(--bear); }
.mi-hit { font-weight: 800; margin-left: 4px; }
.mi-hit.yes { color: var(--bull); } .mi-hit.no { color: var(--bear); }
.mi-ai { font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.mi-ai.go { color: var(--accent-strong); }
.mi-ai.busy { color: var(--medium); }

/* the report popup */
body.mim-open { overflow: hidden; }
.mim { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 18px; }
.mim[hidden] { display: none; }
.mim-backdrop { position: absolute; inset: 0; background: rgba(6, 10, 20, .58); backdrop-filter: blur(2px); }
.mim-box { position: relative; width: min(1180px, 100%); height: calc(100vh - 36px); display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.mim-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 64px 10px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mim-head h2 { margin: 4px 0 2px; font-size: 21px; line-height: 1.3; color: var(--text); }
.mim-kicker { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-2); }
.mim-when { font-size: 13px; color: var(--muted); }
.mim-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.mim-close:hover { background: var(--tint); }
.mim-nav { display: flex; gap: 6px; padding: 8px 20px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border-bottom: 1px solid var(--border); }
.mim-nav:empty { display: none; }
.mim-nav button { flex: none; width: auto; padding: 5px 11px; font-size: 12.5px; font-weight: 600; border-radius: 999px; cursor: pointer;
  background: var(--tint); color: var(--muted); border: 1px solid var(--border); }
.mim-nav button:hover { color: var(--accent-strong); border-color: var(--accent-border); }
.mim-body { flex: 1; overflow-y: auto; padding: 16px 20px 28px; }
.mim-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 14px; scroll-margin-top: 8px; }
.mim-sec h3 { margin: 0 0 10px; font-size: 16.5px; color: var(--text); }
.mim-sec h4 { margin: 14px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.mim-sec p { margin: 6px 0; }
.mim-verdict { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-soft); }
.mim-concl { border-left: 4px solid var(--accent); }
.mim-state { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--tint); border: 1px dashed var(--border-strong); color: var(--muted); }
.mim-state.busy { border-style: solid; border-color: color-mix(in srgb, var(--medium) 45%, transparent); color: var(--text); }
.mi-btn { display: inline-flex; width: auto; margin-top: 8px; padding: 9px 16px; font-weight: 700; border-radius: var(--radius); cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent-strong); }
.mi-btn:hover { background: var(--accent-strong); }
.mi-btn:disabled { opacity: .6; cursor: default; }
.mi-ver { width: auto; padding: 3px 6px; font-size: 12.5px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); }
.mi-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 6px 0 10px; }
table.mi-t { width: 100%; min-width: 0; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mi-t th, .mi-t td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.mi-t thead th { font-size: 11.5px; background: var(--tint); }
.mi-t thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted-2); white-space: normal; }
.mi-t tbody th { font-weight: 700; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13.5px; background: none; white-space: normal; }
.mi-t tbody th small, .mi-t td small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted-2); }
.mi-t tbody tr:last-child th, .mi-t tbody tr:last-child td { border-bottom: 0; }
.mi-t tr.main th, .mi-t tr.main td { background: var(--accent-soft); }
.mi-t tbody tr:hover td { background: transparent; }
.mi-mainmark { display: inline !important; color: var(--accent-strong) !important; font-weight: 700 !important; }
.mi-impact td { min-width: 150px; }
.mi-mv { display: inline-block; font-weight: 700; font-size: 12.5px; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.mi-mv.up { color: var(--bull); background: color-mix(in srgb, var(--bull) 11%, transparent); }
.mi-mv.down { color: var(--bear); background: color-mix(in srgb, var(--bear) 10%, transparent); }
.mi-verdict { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 12px; }
.mi-vmain { padding: 14px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--border); }
.mi-vmain .mi-bias { font-size: 17px; padding: 6px 14px; margin: 4px 0 8px; }
.mi-vlabel { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.mi-confbar { height: 8px; border-radius: 8px; background: var(--border); overflow: hidden; max-width: 320px; }
.mi-confbar i { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
.mi-vconf { font-size: 13px; color: var(--muted); margin-top: 4px; }
.mi-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.mi-box { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.mi-box h4 { margin-top: 0 !important; }
.mi-box.good { border-left: 3px solid var(--bull); }
.mi-box.bad { border-left: 3px solid var(--bear); }
.mi-list { margin: 4px 0; padding-left: 20px; }
.mi-list li { margin: 4px 0; }
.mi-md h5 { margin: 12px 0 4px; font-size: 14px; color: var(--text); }
.mi-md ul, .mi-md ol { margin: 4px 0; padding-left: 20px; }
.mi-md p { margin: 5px 0; }
.mi-mdrow { font-size: 13px; color: var(--muted); }
.mi-details { margin: 8px 0; }
.mi-details summary { cursor: pointer; font-weight: 600; color: var(--accent-strong); font-size: 13.5px; }
.mi-details[hidden] { display: none; }
.mi-srcs { margin: 4px 0; padding-left: 0; list-style: none; font-size: 13.5px; }
.mi-srcs li { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.mi-srcs li:last-child { border-bottom: 0; }
.mi-srcs small { color: var(--muted-2); }
.mi-sid { display: inline-block; min-width: 28px; font-size: 11px; font-weight: 800; color: var(--accent-strong); }
.mi-src { font-size: 12px; font-weight: 600; white-space: nowrap; }
.mi-cite { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 0 4px; border-radius: 4px; background: var(--accent-soft);
  color: var(--accent-strong); text-decoration: none; vertical-align: 1px; }
.mi-cite.off { background: var(--tint); color: var(--muted-2); }
.mi-cred { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--muted-2); }
.mi-cred.Official { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 40%, transparent); }
.mi-cred.Majornews { color: var(--accent-strong); border-color: var(--accent-border); }
.mi-cred.Financialmedia { color: var(--medium); border-color: color-mix(in srgb, var(--medium) 40%, transparent); }
.mi-opened { font-size: 10.5px; font-weight: 700; color: var(--bull); }
.mi-counts { margin: 8px 0; }
.mi-cbar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--border); max-width: 560px; }
.mi-cbar i { display: block; height: 100%; }
.mi-cbar i.b { background: var(--bull); } .mi-cbar i.n { background: var(--border-strong); } .mi-cbar i.s { background: var(--bear); }
.mi-clegend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; margin-top: 5px; color: var(--muted); }
.mi-clegend .b { color: var(--bull); font-weight: 700; } .mi-clegend .s { color: var(--bear); font-weight: 700; }
.mi-posts { list-style: none; margin: 6px 0; padding: 0; }
.mi-post { padding: 10px 0; border-bottom: 1px solid var(--border); }
.mi-post:last-child { border-bottom: 0; }
.mi-phead { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.mi-phead small { color: var(--muted-2); }
.mi-site { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 4px; color: #fff; background: var(--muted-2); }
.mi-site.Reddit { background: #ff4500; } .mi-site.StockTwits { background: #2e7cf6; } .mi-site.X { background: #111; }
.mi-ps { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.mi-ps.bullish { color: var(--bull); } .mi-ps.bearish { color: var(--bear); }
.mi-ptitle { font-weight: 600; color: var(--text); margin-top: 3px; }
.mi-ptext { font-size: 13.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.mi-pfoot { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.mi-scen { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mi-scard { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--tint); }
.mi-sname { font-weight: 700; color: var(--text); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mi-lk { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.mi-lk.high { color: var(--accent-strong); border-color: var(--accent-border); }
.mi-after-top { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 10px; }
.mi-big { font-size: 24px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.mi-big.above, .mi-big.below { color: var(--accent-strong); }

/* big investors, social, accuracy */
.mi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow-x: auto; }
.mi-card h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--text); }
.mi-card h3 small { font-size: 12.5px; font-weight: 500; color: var(--muted-2); margin-left: 6px; }
.mi-cot tr.first th, .mi-cot tr.first td { border-top: 2px solid var(--border); }
.mi-rank { position: relative; width: 90px; height: 6px; border-radius: 6px; margin-top: 7px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bear) 45%, transparent), var(--border) 50%, color-mix(in srgb, var(--bull) 45%, transparent)); }
.mi-rank i { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--text); border: 2px solid var(--surface); transform: translate(-50%, -50%); }
.mi-spark polyline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mi-spark.up polyline { stroke: var(--bull); } .mi-spark.down polyline { stroke: var(--bear); }
.mi-kpis { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.mi-kpis > div { flex: 1 1 140px; padding: 10px 12px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--border); }
.mi-kpis span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.mi-kpis strong { font-size: 19px; color: var(--text); font-variant-numeric: tabular-nums; }
.mi-kpis small { display: block; font-size: 12px; color: var(--muted-2); }
.mi-kpis.big strong { font-size: 28px; }
.mi-bars { display: block; width: 100%; height: 88px; margin: 6px 0; }
.mi-bars rect.up { fill: var(--bull); } .mi-bars rect.down { fill: var(--bear); }
.mi-bars line.base { stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mi-acc tr[data-gid] { cursor: pointer; }
.mi-acc tr[data-gid]:hover th, .mi-acc tr[data-gid]:hover td { background: var(--accent-soft) !important; }

/* Ask AI */
.mi-chat { max-width: 920px; }
.mi-chat-log { min-height: 320px; max-height: calc(100vh - 360px); overflow-y: auto; padding: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 12px; }
.mi-chat-hello { margin: auto 0; text-align: center; padding: 20px 10px; color: var(--muted); }
.mi-chat-hello-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.mi-suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.mi-suggest button { width: auto; padding: 8px 12px; font-size: 13px; border-radius: 999px; cursor: pointer; background: var(--tint);
  color: var(--text); border: 1px solid var(--border); text-align: left; }
.mi-suggest button:hover { border-color: var(--accent-border); color: var(--accent-strong); }
.mi-msg { display: flex; }
.mi-msg.user { justify-content: flex-end; }
.mi-bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.mi-msg.user .mi-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.mi-msg.assistant .mi-bubble { background: var(--tint); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.mi-msg.err .mi-bubble { border-color: color-mix(in srgb, var(--bear) 45%, transparent); color: var(--bear); }
.mi-model { margin-top: 6px; font-size: 11px; }
.mi-chat-form { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.mi-chat-form textarea { flex: 1; resize: vertical; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 14.5px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text); }
.mi-chat-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mi-chat-form button { width: auto; padding: 0 22px; font-weight: 700; border-radius: var(--radius); cursor: pointer; background: var(--accent); color: #fff; border: 1px solid var(--accent-strong); }
.mi-chat-form button:disabled { opacity: .6; }

@media (max-width: 760px) {
  .mi { padding-top: 14px; }
  .mi-title { font-size: 20px; }
  .mi-sub { display: none; }
  .mi-lead { font-size: 13.5px; }
  .mi-status { max-width: none; width: 100%; }
  .mi-tools-right, .mi-tools-right select, .mi-search { flex: 1 1 100%; max-width: none; }
  .mi-tools-right select { flex: 1 1 45%; }
  .mi-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .mi-chips button { flex: none; }
  /* the calendar: each line a small card */
  .mi-cal-wrap { overflow-x: visible; }
  table.mi-cal { min-width: 0; display: block; }
  .mi-cal thead { display: none; }
  .mi-cal tbody { display: block; }
  .mi-cal tr.mi-day { display: block; }
  .mi-cal tr.mi-day td { display: block; }
  .mi-cal tr.mi-row { display: grid; grid-template-columns: 54px 1fr 1fr 1fr; grid-template-areas: "time ev ev imp" "ccy a f p" ". ai ai ai";
    column-gap: 8px; padding: 8px 10px; border-top: 1px solid var(--border); }
  .mi-cal tr.mi-row.sub { border-top: 1px dashed var(--border); padding-top: 4px; grid-template-areas: ". ev ev ev" ". a f p"; }
  .mi-cal tr.mi-row td { padding: 2px 0; border: 0 !important; min-width: 0; }
  .mi-cal tr.mi-row td:nth-child(1) { grid-area: time; width: auto; }
  .mi-cal tr.mi-row td:nth-child(2) { grid-area: ccy; }
  .mi-cal tr.mi-row td:nth-child(3) { grid-area: ev; min-width: 0; }
  .mi-cal tr.mi-row td:nth-child(4) { grid-area: imp; text-align: right; }
  .mi-cal tr.mi-row td:nth-child(5) { grid-area: a; }
  .mi-cal tr.mi-row td:nth-child(6) { grid-area: f; }
  .mi-cal tr.mi-row td:nth-child(7) { grid-area: p; }
  .mi-cal tr.mi-row td:nth-child(8) { grid-area: ai; white-space: normal; }
  .mi-cal tr.mi-row td:nth-child(8):empty, .mi-cal tr.mi-row td:nth-child(4):empty { display: none; }
  .mi-cal td.mi-num { font-size: 13px; white-space: normal; }
  .mi-cal td.mi-num::before { content: attr(data-l); display: block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
  .mi-ev { min-width: 0; }
  /* the popup: full screen */
  .mim { padding: 0; }
  .mim-box { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .mim-head { padding: 10px 56px 8px 14px; }
  .mim-head h2 { font-size: 17px; }
  .mim-close { top: 8px; right: 10px; }
  .mim-nav { padding: 6px 12px; }
  .mim-body { padding: 10px 10px 24px; }
  .mim-sec { padding: 12px; }
  .mi-verdict, .mi-two { grid-template-columns: 1fr; }
  .mi-t th, .mi-t td { padding: 7px 8px; }
  .mi-chat-log { max-height: calc(100vh - 300px); }
  .mi-bubble { max-width: 96%; }
}

/* ---- Upcoming page (ForexFactory, 15 minutes ahead) ---- */
.up-note { margin: 4px 0 0; max-width: 760px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.up-when { white-space: nowrap; }
.up-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 16px; border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border); background: var(--accent-soft);
}
.up-hero[hidden] { display: none; }
.up-hero-empty { margin-top: 6px; font-size: 15px; color: var(--text); }
.up-hero-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.up-hero-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--text); }
.up-sep { color: var(--muted); font-weight: 400; }
.up-hero-meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.up-hero-count { font-size: 34px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--accent-strong); }
.up-hero.soon { border-color: color-mix(in srgb, var(--high) 45%, transparent); background: color-mix(in srgb, var(--high) 7%, var(--surface)); }
.up-hero.soon .up-hero-count { color: var(--high); animation: up-pulse 1s ease-in-out infinite; }
.up-count { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.up-count.soon { color: var(--high); }
.up-wait { font-weight: 600; white-space: nowrap; color: var(--medium); animation: up-pulse 1.4s ease-in-out infinite; }
.up-done { white-space: nowrap; color: var(--muted); }
.up-actual { font-weight: 700; }
.up-actual.up-better { color: var(--bull); }
.up-actual.up-worse { color: var(--bear); }
tr.up-flash td { animation: up-flash 2.4s ease-out; }
@keyframes up-pulse { 50% { opacity: .45; } }
@keyframes up-flash { from { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); } to { background: transparent; } }
@media (max-width: 640px) {
  .up-hero { padding: 14px; }
  .up-hero-count { font-size: 28px; }
}

/* ---- ForexFactory news strips: top of every page, edge to edge (same as the ProBot dashboard) ---- */
.news-card { background: var(--surface); border-bottom: 1px solid var(--border); }
.ff { display: flex; align-items: center; height: 42px; }
.ff + .ff { border-top: 1px solid var(--border); }
.ff-lab { flex: none; width: 168px; align-self: stretch; display: flex; align-items: center; padding: 0 12px 0 16px; border-right: 1px solid var(--border); }
.ff-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ff-tag.live { background: color-mix(in srgb, var(--high) 11%, transparent); color: var(--high); }
.ff-tag.usd { background: var(--accent-soft); color: var(--accent); }
.ff-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ff-blink 1.6s ease-in-out infinite; }
.ff-view { flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 32px), transparent); }
.ff-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: ff-scroll var(--ff-dur, 60s) linear infinite; }
.ff-track.still { animation: none; }
.ff-view:hover .ff-track { animation-play-state: paused; }
.ff-set { display: inline-flex; }
.ff-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-right: 1px solid var(--border); font-size: 13px; color: var(--muted); line-height: 24px; }
.ff-time { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ff-imp { width: 8px; height: 8px; border-radius: 2px; background: var(--low); flex: none; }
.ff-imp.High { background: var(--high); } .ff-imp.Medium { background: var(--medium); } .ff-imp.Holiday { background: var(--holiday); }
.ff-cur { font-weight: 700; color: var(--text); }
.ff-title { font-weight: 600; color: var(--text); }
.ff-nums { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12.5px; }
.ff-nums i { font-style: normal; }
.ff-nums i:not(:first-child) { margin-left: 8px; }
.ff-nums b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.ff-nums b.good { color: var(--bull); } .ff-nums b.bad { color: var(--bear); } .ff-nums b.none { color: var(--muted); font-weight: 500; }
.ff-new, .ff-next { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; line-height: 16px; }
.ff-new { background: color-mix(in srgb, var(--high) 11%, transparent); color: var(--high); }
.ff-new[hidden] { display: none; }
.ff-next { background: var(--accent-soft); color: var(--accent); }
.ff-in { color: var(--accent); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ff-in.past { color: var(--muted-2); font-weight: 500; }     /* "done" / "waiting for Actual": over, not coming */
.ff-short { display: none; }
@keyframes ff-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ff-blink { 50% { opacity: .35; } }
@media (max-width: 640px) {
  .ff { height: 38px; }
  .ff-lab { width: 76px; padding: 0 8px 0 10px; }
  .ff-tag .ff-name { display: none; } .ff-tag .ff-short { display: inline; }
  .ff-item { padding: 0 14px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ff-track, .ff-dot { animation: none; }
  .ff-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ff-dup { display: none; }
}
/* Upcoming hero: one line per release of that minute, each with Actual / Forecast / Previous */
.up-hero-main { min-width: 0; flex: 1 1 520px; }
.up-hero-rows { display: grid; gap: 8px; margin-top: 8px; }
.up-hero-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.up-hero-name { font-size: 16px; font-weight: 700; color: var(--text); }
.up-hero-nums { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.up-hero-nums b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.up-hero-nums b.none { color: var(--muted); font-weight: 500; }
.up-hero-nums .up-actual { font-size: 13px; }
.up-hero-name .currency-tag { margin-right: 4px; }
@media (max-width: 640px) {
  .up-hero-rows { gap: 12px; }
  .up-hero-row { gap: 4px 8px; }
  .up-hero-name { font-size: 15px; flex-basis: 100%; }
}
/* Upcoming hero: a release held in the card for a minute after its Actual */
.up-hero.held { border-color: color-mix(in srgb, var(--bull) 40%, transparent); background: color-mix(in srgb, var(--bull) 6%, var(--surface)); }
.up-hero-done { text-align: right; font-size: 30px; font-weight: 800; color: var(--bull); line-height: 1.1; }
.up-hero-done span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.up-hero-done.waiting { color: var(--medium); animation: up-pulse 1.4s ease-in-out infinite; }
.up-hero.up-hero-flash { animation: up-hero-flash 2.4s ease-out; }
@keyframes up-hero-flash { from { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bull) 45%, transparent); } to { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 640px) { .up-hero-done { text-align: left; font-size: 26px; } }

/* ---- Chart Analysis page (31 Oct 2026): levels on every timeframe + the news that moves each chart ---- */
.ca-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; scroll-margin-top: 140px; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600; }
.ca-chip span { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.ca-chip span.up { color: var(--bull); }
.ca-chip span.down { color: var(--bear); }
.ca-chip:hover { border-color: var(--border-strong); }
.ca-chip.active { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-strong); }
.ca-detail { margin-bottom: 20px; }
.ca-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ca-price { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text); }
/* the card's first box, "In short" (3 Nov 2026): the verdict, a sentence, the nearest floor and ceiling */
.ca-summary { display: grid; gap: 10px; margin: 14px 0 4px; padding: 14px; border-radius: var(--radius); background: var(--tint); }
.ca-sum-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ca-sum-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.ca-say { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.ca-fc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ca-fc > div { display: grid; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-left-width: 3px;
  border-radius: var(--radius-sm); background: var(--surface); }
.ca-fc .ca-fc-s { border-left-color: var(--bull); }
.ca-fc .ca-fc-r { border-left-color: var(--bear); }
.ca-fc span { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ca-fc-s span { color: var(--bull); }
.ca-fc-r span { color: var(--bear); }
.ca-fc b { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.ca-fc b.none { font-size: 14px; font-weight: 500; color: var(--muted-2); }
.ca-fc em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ca-summary .ca-tgs { margin-top: 0; }
/* a line on how to read the part under it (Explain: For new traders) */
.ca-help { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.ca-summary .ca-help { margin: 0; }
.ca-verdict { font-size: 13.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ca-verdict.up, .ca-tchip.up { color: var(--bull); background: color-mix(in srgb, var(--bull) 13%, transparent); }
.ca-verdict.down, .ca-tchip.down { color: var(--bear); background: color-mix(in srgb, var(--bear) 12%, transparent); }
.ca-verdict.flat, .ca-tchip.flat { color: var(--muted); background: var(--tint); border: 1px solid var(--border); }
.ca-count { font-size: 13px; color: var(--muted); }
.ca-trends { display: flex; flex-wrap: wrap; gap: 6px; }
.ca-tchip.soft { background: transparent; border: 1px dashed currentColor; opacity: .8; }   /* mixed swings: its last break's way */
.ca-tchip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ca-sub { margin: 20px 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.ca-levels { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ca-row { display: grid; grid-template-columns: 64px 150px 1fr 1fr 1fr 1fr 1fr 84px; align-items: center; gap: 10px;
  padding: 9px 14px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.ca-row:first-child { border-top: 0; }
.ca-headrow { padding-top: 7px; padding-bottom: 7px; background: var(--tint); font-size: 11px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.ca-tf { font-weight: 700; color: var(--text); }
.ca-tf small { display: block; font-size: 11px; font-weight: 500; color: var(--muted-2); white-space: nowrap; }
.ca-trend { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ca-trend.up { color: var(--bull); }
.ca-trend.down { color: var(--bear); }
.ca-trend.flat { color: var(--muted); }
.ca-lv { display: flex; flex-direction: column; min-width: 0; padding-left: 8px; line-height: 1.3; border-left: 3px solid transparent; }
.ca-lv b { font-size: 14.5px; color: var(--text); }
.ca-lv span { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.ca-lv span em { font-style: normal; font-weight: 600; color: var(--medium); }
.ca-lv.s { border-left-color: color-mix(in srgb, var(--bull) 60%, transparent); }
.ca-lv.r { border-left-color: color-mix(in srgb, var(--bear) 60%, transparent); }
.ca-lv.s2 { border-left-color: color-mix(in srgb, var(--bull) 25%, transparent); }
.ca-lv.r2 { border-left-color: color-mix(in srgb, var(--bear) 25%, transparent); }
.ca-lv.blank { border-left-color: var(--border); }
.ca-lv.blank b { color: var(--muted-2); font-weight: 500; }
.ca-pos .lp-bar { height: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--bull) 30%, transparent),
  var(--tint) 50%, color-mix(in srgb, var(--bear) 30%, transparent)); }
.ca-atr { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.ca-newshead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.ca-impact { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.ca-impact select { width: auto; padding: 6px 30px 6px 10px; font-size: 14px; }      /* 30px: the select's arrow, not over its text */
.ca-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ca-cols > div { min-width: 0; }
.ca-colhead { margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.ca-ev { margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.ca-ev.out { border-left: 3px solid var(--border-strong); }
.ca-ev-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ca-when { margin-right: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ca-rel { font-weight: 600; color: var(--accent); }
.ca-rel.soon { color: var(--high); }
.ca-cur { font-weight: 700; color: var(--text); }
.ca-title { font-weight: 600; color: var(--text); }
.ca-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 2px; font-size: 12.5px; color: var(--muted); }
.ca-nums i { margin-right: 4px; font-style: normal; }
.ca-nums b { color: var(--text); font-variant-numeric: tabular-nums; }
.ca-if { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.ca-if-head { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 13.5px; }
.ca-cond { font-weight: 700; color: var(--text); }
.ca-then { color: var(--muted); }
.ca-then b.up { color: var(--bull); }
.ca-then b.down { color: var(--bear); }
.ca-tgs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted-2); }
.ca-tg { display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ca-tg i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted-2); }
.ca-tg em { font-style: normal; font-size: 11.5px; color: var(--muted-2); }
.ca-tg.r { border-color: color-mix(in srgb, var(--bear) 35%, transparent); }
.ca-tg.s { border-color: color-mix(in srgb, var(--bull) 35%, transparent); }
.ca-why { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ca-none, .ca-empty { font-size: 13px; color: var(--muted-2); }
.ca-empty { margin: 4px 0 10px; }
table.ca-table td { font-variant-numeric: tabular-nums; }
table.ca-table tbody tr { cursor: pointer; }
table.ca-table tbody tr:hover td { background: var(--tint); }
table.ca-table tbody tr.sel td { background: var(--accent-soft); }
.ca-d { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
/* search (1 Nov 2026): any symbol of the MT5 account, its suggestions under the box, the searched ones as chips */
.ca-search { position: relative; max-width: 620px; margin-top: 14px; }
.ca-search form { display: flex; gap: 8px; }
.ca-search .input-icon-wrap { flex: 1; min-width: 0; }
.ca-search .btn { width: auto; padding: 9px 20px; }
.ca-suggest { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 360px; overflow-y: auto;
  padding: 4px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-sm), 0 12px 32px rgba(10, 37, 64, 0.16); }
.ca-sug { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
  background: transparent; color: var(--text); font-size: 14px; text-align: left; }
.ca-sug b { flex: none; min-width: 92px; font-weight: 700; }
.ca-sug span { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.ca-sug i { flex: none; padding: 1px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 11.5px;
  font-style: normal; color: var(--muted-2); }
.ca-sug.on, .ca-sug:hover { background: var(--accent-soft); }
.ca-sug-none { padding: 10px; font-size: 13.5px; color: var(--muted-2); }
.ca-chips-sep { align-self: center; margin-left: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2); }
.ca-chip.searched { border-style: dashed; }
.ca-chip.searched.active { border-style: solid; }
.ca-chip .ca-x { margin: 0 -4px 0 -2px; padding: 0 4px; font-size: 16px; line-height: 1; color: var(--muted-2); }
.ca-chip .ca-x:hover { color: var(--bear); }
.ca-loading { display: flex; align-items: center; gap: 10px; }
.ca-loading .candle-loader,
.ca-strong-prog .candle-loader,
.ca-empty .candle-loader,
.ca-card-empty .candle-loader { margin-right: 8px; vertical-align: middle; }
.ca-mhead { display: none; }      /* the phone layout's column names (the table head is hidden there) */
/* Strongest levels (1 Nov 2026): the 13 charts ranked by their D1/W1/MN support and resistance */
.ca-search { max-width: 800px; }
.ca-strong-btn { flex: none; padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; }
.ca-strong-btn:hover { border-color: var(--accent-border); color: var(--accent-strong); }
.ca-strong-btn.on { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-strong); }
/* the page's head (3 Nov 2026): the language beside the status, how to read the page, the five buttons with a line each */
.ca-intro { flex: 1 1 420px; min-width: 0; }
.ca-top-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ca-guide.ca-how { margin: 10px 0 0; }      /* .ca-guide's own margin comes later in this file */
.ca-how[open] { padding-bottom: 4px; }
.ca-steps { display: grid; gap: 6px; margin: 0; padding: 2px 14px 4px 36px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ca-steps b { color: var(--text); }
.ca-how .ca-sub { margin: 14px 14px 8px; }
.ca-methods { margin: 16px 0; }
.ca-methods-head { margin-bottom: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.ca-methods-row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.ca-methods .ca-strong-btn { display: grid; align-content: start; gap: 3px; padding: 10px 12px; text-align: left; white-space: normal; cursor: pointer; }
.ca-methods .ca-strong-btn b { font-size: 15px; }
.ca-methods .ca-strong-btn span { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--muted); }
.ca-methods .ca-strong-btn.on span { color: var(--accent-strong); }
.ca-chips-lead { margin-left: 0; }
/* Chart Analysis and Trade Ideas (3 Nov 2026): each page's link to the other; the other page's parts hidden */
#caPage [hidden] { display: none !important; }
.ca-goto { display: grid; gap: 3px; margin-top: 14px; padding: 12px 16px; border: 1px solid var(--accent-border); border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-strong); text-decoration: none; }
.ca-goto b { font-size: 15px; }
.ca-goto span { font-size: 13px; color: var(--muted); }
.ca-goto:hover { border-color: var(--accent); }
.ca-goto:hover span { color: var(--text); }
.ca-goto:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ca-all-key { margin: -6px 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ca-strong { position: relative; margin-bottom: 20px; scroll-margin-top: 16px; }
.ca-strong-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 16px; }
.ca-strong-head h3 { margin: 0; padding-right: 44px; }
.ca-strong-note { max-width: 720px; margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
/* a panel's controls (3 Nov 2026: a list's words ran under its arrow, the row broke anyhow): a grid of even cells, each
   name over its list, the search and the language two cells wide, the × in the panel's corner */
.ca-strong-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: end; gap: 10px 12px; width: 100%; }
.ca-strong-tools .ca-impact { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 0; min-width: 0;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.ca-strong-tools .ca-impact select { width: 100%; min-width: 0; padding: 7px 30px 7px 10px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
.ca-strong-tools .ca-find { grid-column: span 2; width: auto; }
.ca-strong-tools .ca-lang { grid-column: span 2; display: flex; }
.ca-strong-tools .ca-lang button { flex: 1 1 0; height: 35px; white-space: nowrap; }
.ca-strong-x { position: absolute; top: 14px; right: 14px; }
/* Strongest levels' own search: as tall as the lists beside it, a × to empty it */
.ca-find { width: 250px; }
.ca-find input[type=text] { padding-top: 6px; padding-bottom: 6px; padding-right: 34px; font-size: 14px; }
.ca-find-x { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 28px; height: 28px; border: 0;
  border-radius: var(--radius-sm); background: transparent; color: var(--muted-2); font-size: 18px; line-height: 1; cursor: pointer; }
.ca-find-x:hover { color: var(--text); background: var(--tint); }
.ca-find-x[hidden] { display: none; }
.ca-strong-found { margin: -4px 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ca-strong-prog { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface-2, var(--surface)); font-size: 13px; line-height: 1.5; color: var(--muted); }
.ca-strong-x { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent;
  color: var(--muted); font-size: 20px; line-height: 1; }
.ca-strong-x:hover { border-color: var(--border-strong); color: var(--text); }
.ca-sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; gap: 12px; }
.ca-sc { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s ease; }
.ca-sc:hover { border-color: var(--border-strong); }
.ca-sc.sel { border-color: var(--accent-border); background: var(--accent-soft); }
.ca-sc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ca-sc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ca-sc-rank { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--border);
  border-radius: 50%; background: var(--tint); font-size: 12px; font-weight: 700; color: var(--muted); }
.ca-sc-top b { font-size: 16px; color: var(--text); }
.ca-sc-name { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; color: var(--muted-2); text-overflow: ellipsis; white-space: nowrap; }
.ca-sc-price { font-size: 16px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
/* Strongest levels' live prices: a price that moved takes its colour for a moment, "live" in the note pulses */
.ca-sc-price.flash-up { animation: ca-tick-up 1.2s ease-out; }
.ca-sc-price.flash-down { animation: ca-tick-down 1.2s ease-out; }
@keyframes ca-tick-up { from { color: var(--bull); } }
@keyframes ca-tick-down { from { color: var(--bear); } }
.ca-live { color: var(--bull); font-weight: 600; }
.ca-live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 4px 1px 0; border-radius: 50%;
  background: currentColor; vertical-align: middle; animation: ca-live 2s ease-in-out infinite; }
@keyframes ca-live { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ca-sc-price.flash-up, .ca-sc-price.flash-down, .ca-live::before { animation: none; } }
.ca-sc-lv { display: grid; grid-template-columns: minmax(0, 1fr) 118px; align-items: center; gap: 12px; padding-left: 10px; border-left: 3px solid; }
.ca-sc-lv.r { border-left-color: color-mix(in srgb, var(--bear) 60%, transparent); }
.ca-sc-lv.s { border-left-color: color-mix(in srgb, var(--bull) 60%, transparent); }
.ca-sc-v { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ca-sc-k { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.ca-sc-v b { font-size: 15.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.ca-sc-meta { font-size: 12.5px; color: var(--muted); }
.ca-sc-meta em { font-style: normal; font-weight: 600; color: var(--medium); }
.ca-sc-close { margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 2px;
  color: var(--high); background: color-mix(in srgb, var(--high) 14%, transparent); }
.ca-sc-m { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; }
.ca-sc-m span { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.ca-sc-m div { height: 6px; overflow: hidden; border-radius: 999px; background: var(--tint); }
.ca-sc-m i { display: block; height: 100%; border-radius: 999px; }
.ca-sc-lv.r .ca-sc-m i { background: var(--bear); }
.ca-sc-lv.s .ca-sc-m i { background: var(--bull); }
.ca-sc-m em { min-width: 18px; font-size: 13px; font-style: normal; font-weight: 700; color: var(--text); text-align: right;
  font-variant-numeric: tabular-nums; }
.ca-sc-news { padding-top: 10px; border-top: 1px dashed var(--border); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ca-sc-news > .ca-sc-k { display: block; margin-bottom: 4px; }
/* Strongest levels for new traders: what kind of pair, how busy, how costly (chips), then the plain-words notes */
.ca-sc-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -2px; }
.ca-fact { padding: 2px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: help; }
.ca-fact.good { border-color: color-mix(in srgb, var(--bull) 45%, var(--border)); color: var(--bull); }
.ca-fact.warn { border-color: color-mix(in srgb, var(--medium) 50%, var(--border)); color: var(--medium); }
.ca-fact.bad { border-color: color-mix(in srgb, var(--bear) 50%, var(--border)); background: color-mix(in srgb, var(--bear) 10%, transparent); color: var(--bear); }
.ca-sc-say { padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft);
  font-size: 14px; line-height: 1.55; color: var(--text); }
.ca-sc-say b { color: var(--accent-strong); }
.ca-sc-warn { display: block; margin-top: 6px; font-weight: 600; color: var(--bear); }
.ca-sc-more { border-top: 1px dashed var(--border); cursor: auto; }
.ca-sc-more summary { padding-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent-strong); cursor: pointer; }
.ca-sc-more summary:hover { text-decoration: underline; }
.ca-sc-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ca-sc-help { display: grid; gap: 14px; padding-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.ca-sc-help h5 { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.ca-sc-help h5 .ca-d { font-weight: 500; letter-spacing: 0; text-transform: none; }
.ca-sc-help p { margin: 0 0 6px; }
.ca-sc-help p:last-child { margin-bottom: 0; }
.ca-sc-help ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
.ca-sc-help b { color: var(--text); }
.ca-lang { display: inline-flex; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ca-lang button { height: 34px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ca-lang button + button { border-left: 1px solid var(--border); }
.ca-lang button:hover { color: var(--text); }
.ca-lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.ca-lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ca-guide { margin: -4px 0 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--tint); }
.ca-guide summary { padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--accent-strong); cursor: pointer; }
.ca-guide dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px 20px; margin: 0; padding: 4px 14px 14px; }
.ca-guide dt { font-size: 13px; font-weight: 700; color: var(--text); }
.ca-guide dd { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ca-sc-nt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-bottom: 4px; color: var(--text); }
.ca-sc-if { margin-top: 3px; }
.ca-sc-if span { font-weight: 600; color: var(--text); }
.ca-sc-if b.up { color: var(--bull); }
.ca-sc-if b.down { color: var(--bear); }
.ca-strong-more { margin-top: 12px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--accent); font-size: 14px; font-weight: 600; }
.ca-strong-more:hover { border-color: var(--accent-border); }
/* ICT setups: the status (ready / at the zone / wait) and its six checks, the idea, the draw on liquidity; the kill
   zones bar over the cards */
.ca-ic.ready { border-color: color-mix(in srgb, var(--bull) 40%, var(--border)); }
.ca-ic.ready:has(.ca-ic-st.down) { border-color: color-mix(in srgb, var(--bear) 40%, var(--border)); }
.ca-ic.sel { border-color: var(--accent-border); }
.ca-ic-st { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ca-ic-st > b { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--tint); border: 1px solid var(--border); color: var(--muted); }
.ca-ic-st.watch > b { border-color: color-mix(in srgb, var(--medium) 50%, var(--border)); background: color-mix(in srgb, var(--medium) 12%, transparent); color: var(--medium); }
.ca-ic-st.ready.up > b { border-color: color-mix(in srgb, var(--bull) 50%, var(--border)); background: color-mix(in srgb, var(--bull) 14%, transparent); color: var(--bull); }
.ca-ic-st.ready.down > b { border-color: color-mix(in srgb, var(--bear) 50%, var(--border)); background: color-mix(in srgb, var(--bear) 12%, transparent); color: var(--bear); }
.ca-ic-way { font-size: 13px; font-weight: 700; }
.ca-ic-st.up .ca-ic-way { color: var(--bull); }
.ca-ic-st.down .ca-ic-way { color: var(--bear); }
.ca-ic-st.wait .ca-ic-way { font-weight: 600; color: var(--muted); }
.ca-ic-score { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; cursor: help; }
.ca-ic-score i { width: 8px; height: 8px; border-radius: 50%; background: var(--tint); border: 1px solid var(--border-strong); }
.ca-ic-score i.on { background: var(--accent); border-color: var(--accent); }
.ca-ic-score em { margin-left: 4px; font-size: 12px; font-style: normal; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ca-ic-check { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ca-ic-check li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; }
.ca-ic-check i { font-style: normal; font-weight: 700; text-align: center; }
.ca-ic-check li.ok { color: var(--text); }
.ca-ic-check li.ok i { color: var(--bull); }
.ca-ic-check li.no i { color: var(--muted-2); }
.ca-ic-check li.bias { padding-bottom: 5px; border-bottom: 1px dashed var(--border); font-weight: 600; color: var(--text); }
.ca-ic-check li.bias.up i { color: var(--bull); }
.ca-ic-check li.bias.down i { color: var(--bear); }
.ca-ic-idea { padding: 9px 12px; border-left: 3px solid; border-radius: var(--radius-sm); background: var(--tint); font-size: 13.5px; line-height: 1.5; color: var(--text); }
.ca-ic-idea.up { border-left-color: var(--bull); }
.ca-ic-idea.down { border-left-color: var(--bear); }
.ca-ic-idea .ca-sc-k, .ca-ic-draw .ca-sc-k { display: block; margin-bottom: 2px; }
.ca-ic-draw { font-size: 13.5px; color: var(--text); }
.ca-ic-draw b.up, .ca-sc-help b.up { color: var(--bull); }
.ca-ic-draw b.down, .ca-sc-help b.down { color: var(--bear); }
.ca-kz { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -4px 0 14px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--muted); }
.ca-kz-now { font-weight: 700; color: var(--text); }
.ca-kz-now::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 6px 1px 0; border-radius: 50%;
  background: var(--muted-2); vertical-align: middle; }
.ca-kz-now.on { color: var(--bull); }
.ca-kz-now.on::before { background: var(--bull); animation: ca-live 2s ease-in-out infinite; }
.ca-kz-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ca-kz-list .ca-sc-k { margin-right: 2px; }
.ca-kz-z b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.ca-kz-z.on b { color: var(--bull); }
@media (prefers-reduced-motion: reduce) { .ca-kz-now.on::before { animation: none; } }
/* Chart patterns: the pattern's name, chart, direction and status, its small chart, the breakout / target / stop rows */
.ca-pt.break:has(.ca-pt-dir.up) { border-color: color-mix(in srgb, var(--bull) 40%, var(--border)); }
.ca-pt.break:has(.ca-pt-dir.down) { border-color: color-mix(in srgb, var(--bear) 40%, var(--border)); }
.ca-pt.sel { border-color: var(--accent-border); }
.ca-pt-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ca-pt-name { font-size: 15px; color: var(--text); }
.ca-pt-dir { font-size: 13px; font-weight: 700; color: var(--muted); }
.ca-pt-dir.up { color: var(--bull); }
.ca-pt-dir.down { color: var(--bear); }
.ca-pt-st { margin-left: auto; padding: 2px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--muted); background: var(--tint); }
.ca-pt-st.near { border-color: color-mix(in srgb, var(--medium) 50%, var(--border)); background: color-mix(in srgb, var(--medium) 12%, transparent); color: var(--medium); }
.ca-pt-st.break.up { border-color: color-mix(in srgb, var(--bull) 50%, var(--border)); background: color-mix(in srgb, var(--bull) 14%, transparent); color: var(--bull); }
.ca-pt-st.break.down { border-color: color-mix(in srgb, var(--bear) 50%, var(--border)); background: color-mix(in srgb, var(--bear) 12%, transparent); color: var(--bear); }
/* the cards' small charts (candleChart): the candles, the levels, the trade ahead of the candles, a tag naming each
   level on the right, and the key under the chart saying what each colour and mark is */
.ca-fig { display: grid; gap: 6px; margin: 0; }
.ca-chart { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--tint); }
.ca-chart line, .ca-chart polyline { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ca-chart rect, .ca-chart polygon { vector-effect: non-scaling-stroke; }
.ca-chart text { font: 600 8.5px Inter, system-ui, sans-serif; stroke: none; }
.ca-chart .w.u { stroke: var(--bull); }
.ca-chart .w.d { stroke: var(--bear); }
.ca-chart .k.u { fill: var(--bull); }
.ca-chart .k.d { fill: var(--bear); }
/* zones: support and bullish ones green, resistance and bearish ones red, the ICT entry zone blue */
.ca-chart .zn.up { fill: color-mix(in srgb, var(--bull) 17%, transparent); }
.ca-chart .zn.down { fill: color-mix(in srgb, var(--bear) 15%, transparent); }
.ca-chart .zn.en { fill: color-mix(in srgb, var(--accent) 28%, transparent); }
/* the trade ahead: green to the target (the profit), red to the stop (the loss), the line it starts at amber, its
   likely path an arrow */
.ca-chart .pf { fill: color-mix(in srgb, var(--bull) 24%, transparent); stroke: color-mix(in srgb, var(--bull) 65%, transparent); stroke-width: 1; }
.ca-chart .ls { fill: color-mix(in srgb, var(--bear) 22%, transparent); stroke: color-mix(in srgb, var(--bear) 65%, transparent); stroke-width: 1; }
.ca-chart .ent { stroke: var(--medium); stroke-dasharray: 5 3; }
.ca-chart .ar { stroke: var(--text); stroke-width: 1.6; stroke-dasharray: 4 3; opacity: .85; }
.ca-chart .ah { fill: var(--text); opacity: .85; }
/* ICT: liquidity grey dashed (paler once taken), the range's half dotted blue, the last M15 shift amber */
.ca-chart .lq { stroke: var(--muted-2); stroke-dasharray: 3 3; }
.ca-chart .lq.taken { opacity: .45; }
.ca-chart .eq { stroke: var(--accent); stroke-dasharray: 1 3; }
.ca-chart .ms { stroke: var(--medium); stroke-width: 1.6; }
/* a chart pattern's lines and points blue, a flag's pole dotted, the breakout candle an amber band; a candlestick
   pattern's candles framed */
.ca-chart .pl { stroke: var(--accent); stroke-width: 2; }
.ca-chart .pole { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 2 3; }
.ca-chart .pp { fill: var(--accent); stroke: var(--surface); stroke-width: 1; }
.ca-chart .mk { fill: color-mix(in srgb, var(--medium) 16%, transparent); }
.ca-chart .box { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 2; }
/* the price now: a dot after the last candle and a dotted line to its tag */
.ca-chart .nw { stroke: var(--text); stroke-dasharray: 1 2; opacity: .5; }
.ca-chart .px { fill: var(--text); stroke: var(--surface); stroke-width: 1.5; }
/* names inside the chart, ringed in the chart's colour so the lines under them don't cut them */
.ca-chart .lb { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.ca-chart .lb.acc { fill: var(--accent-strong); }
.ca-chart .lb.amb { fill: var(--medium); }
/* the tags on the right: a pill in its level's colour, a short stroke back to the level */
/* the candles' tick volume under them (3 Nov 2026) */
.ca-chart .vol.u { fill: color-mix(in srgb, var(--bull) 42%, transparent); }
.ca-chart .vol.d { fill: color-mix(in srgb, var(--bear) 42%, transparent); }
.ca-chart .vol-ax { stroke: var(--border); stroke-width: 1; }
.ca-key .sw.vol { background: linear-gradient(90deg, color-mix(in srgb, var(--bull) 55%, transparent) 50%, color-mix(in srgb, var(--bear) 55%, transparent) 50%); }
.ca-chart .tag { --c: var(--muted); }
.ca-chart .tag.up { --c: var(--bull); }
.ca-chart .tag.down { --c: var(--bear); }
.ca-chart .tag.amb { --c: var(--medium); }
.ca-chart .tag.acc { --c: var(--accent-strong); }
.ca-chart .tag.now { --c: var(--text); }
.ca-chart .tag line { stroke: var(--c); stroke-width: 1; opacity: .6; }
.ca-chart .tag rect { fill: color-mix(in srgb, var(--c) 16%, var(--surface)); stroke: color-mix(in srgb, var(--c) 55%, transparent); stroke-width: 1; }
.ca-chart .tag text { fill: color-mix(in srgb, var(--c) 80%, var(--text)); text-anchor: middle; }
/* the key under the chart, each item a small sample of its mark */
.ca-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.ca-key span { display: inline-flex; align-items: center; gap: 6px; }
.ca-key .sw { flex: none; width: 14px; height: 10px; border-radius: 2px; }
.ca-key .sw.cd { width: 9px; background: linear-gradient(90deg, var(--bull) 0 38%, transparent 38% 62%, var(--bear) 62%); }
.ca-key .sw.px { width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.ca-key .sw.zn.up { background: color-mix(in srgb, var(--bull) 30%, transparent); }
.ca-key .sw.zn.down { background: color-mix(in srgb, var(--bear) 28%, transparent); }
.ca-key .sw.zn.en { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.ca-key .sw.pf { background: color-mix(in srgb, var(--bull) 30%, transparent); border: 1px solid var(--bull); }
.ca-key .sw.ls { background: color-mix(in srgb, var(--bear) 28%, transparent); border: 1px solid var(--bear); }
.ca-key .sw.box { background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px dashed var(--accent); }
.ca-key .sw.mk { width: 6px; height: 12px; border-radius: 1px; background: color-mix(in srgb, var(--medium) 45%, transparent); }
.ca-key .sw.ent, .ca-key .sw.lq, .ca-key .sw.eq, .ca-key .sw.ms, .ca-key .sw.pl, .ca-key .sw.pole { height: 0; border-radius: 0; border-top: 2px dashed var(--medium); }
.ca-key .sw.lq { border-top-color: var(--muted-2); }
.ca-key .sw.eq { border-top: 2px dotted var(--accent); }
.ca-key .sw.ms { border-top-style: solid; }
.ca-key .sw.pl { border-top: 2px solid var(--accent); }
.ca-key .sw.pole { border-top: 2px dotted var(--accent); }
/* a card's chart on the whole screen: a click on it, or its Full screen button at the end of the key */
.ca-sc .ca-chart { cursor: zoom-in; }
.ca-zoom-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--border-strong);
  border-radius: 999px; background: var(--tint); color: var(--accent-strong); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ca-zoom-btn:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.ca-zoom-btn:focus-visible, .ca-zoom-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.ca-zoomed { overflow: hidden; }
.ca-zoom { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 2vh 2vw; background: rgba(0, 0, 0, .72); }
.ca-zoom[hidden] { display: none; }
.ca-zoom-box { display: grid; align-content: start; gap: 12px; width: min(1180px, 100%); max-height: 100%; overflow: auto; padding: 14px 16px 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.ca-zoom-head { display: flex; align-items: flex-start; gap: 12px; }
.ca-zoom-title { flex: 1; display: grid; gap: 8px; min-width: 0; }
.ca-zoom-x { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--tint); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ca-zoom-x span[aria-hidden] { font-size: 20px; line-height: 1; }
.ca-zoom-x:hover { border-color: var(--accent-border); color: var(--accent-strong); }
.ca-zoom .ca-chart { margin: 0 auto; cursor: auto; }
.ca-zoom .ca-key { font-size: 13px; }
/* the window's own buttons (4 Nov 2026): the six methods and All 6, the timeframes; All 6's grid of charts */
.ca-zoom-tabs { display: grid; gap: 8px; }
.ca-zoom-tabs .ca-tf-tabs { margin-top: 0; }
.ca-card-tabs.ca-zoom-views { grid-template-columns: repeat(10, auto); }
.ca-zoom-views button, .ca-zoom-tfs button { height: 34px; font-size: 13.5px; }
.ca-zoom-views [data-zall] { font-weight: 700; }
.ca-zoom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ca-zoom-cell { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ca-zoom-cell h4 { display: flex; align-items: center; gap: 8px; margin: 0; }
.ca-zoom-tf { font-size: 12.5px; }
.ca-zoom-from { margin: -2px 0 2px; color: var(--muted-2); font-size: 12.5px; line-height: 1.45; }
.ca-zoom-title .ca-zoom-from { margin: 0; }
.ca-zoom-cell h4 button { padding: 0; border: 0; background: none; color: var(--accent-strong); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ca-zoom-cell h4 button:hover { text-decoration: underline; }
.ca-zoom-cell .ca-empty { margin: 0; }
/* Price action: the swings joined by a dashed line and named (HH / HL green, LH / LL red), the 20 EMA blue */
.ca-chart .zz { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 2; opacity: .85; }
.ca-chart .swp { fill: var(--muted); stroke: var(--surface); stroke-width: 1; }
.ca-chart .lb.bull { fill: var(--bull); }
.ca-chart .lb.bear { fill: var(--bear); }
.ca-chart .ema { stroke: var(--accent); stroke-width: 1.6; opacity: .9; }
.ca-chart .ghost { stroke: none; }
.ca-key .sw.zz, .ca-key .sw.ema { height: 0; border-radius: 0; border-top: 2px dashed var(--muted); }
.ca-key .sw.ema { border-top: 2px solid var(--accent); }
.ca-pa-st { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.ca-pa-st .ca-pt-st { margin-left: 0; }
/* Fibonacci (3 Nov 2026): the swing A to B, its levels (the golden zone amber, the one the trade is at bold), the %s */
.ca-chart .fbleg { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 3; }
.ca-chart .fbl { stroke: var(--muted-2); stroke-width: 1; stroke-dasharray: 2 2; }
.ca-chart .fbl.end { stroke: var(--muted); stroke-dasharray: none; opacity: .7; }
.ca-chart .fbl.gold { stroke: var(--medium); }
.ca-chart .fbl.on { stroke: var(--medium); stroke-width: 1.6; stroke-dasharray: none; }
.ca-chart .zn.gold { fill: color-mix(in srgb, var(--medium) 13%, transparent); }
.ca-chart .lb.fbt { fill: var(--muted); }
.ca-chart .lb.fbt.gold, .ca-chart .lb.fbt.on { fill: var(--medium); }
.ca-chart .lb.fbt.on { font-weight: 800; }
.ca-key .sw.fbleg, .ca-key .sw.fbl { height: 0; border-radius: 0; border-top: 2px dashed var(--accent); }
.ca-key .sw.fbl { border-top: 2px dotted var(--muted); }
.ca-key .sw.zn.gold { background: color-mix(in srgb, var(--medium) 26%, transparent); }
.ca-fb-lv { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 10px; }
.ca-fb-lv span { white-space: nowrap; color: var(--muted-2); }
.ca-fb-lv span b { color: var(--text); }
.ca-fb-lv span.on, .ca-fb-lv span.on b { color: var(--medium); }
/* CRT (8 Nov 2026): C1's range shaded, its high / low / 50% dashed, C1 C2 C3 named over their candles */
.ca-chart .zn.crt { fill: color-mix(in srgb, var(--accent) 11%, transparent); }
.ca-chart .crl { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 2; opacity: .85; }
.ca-chart .crl.mid { stroke: var(--muted-2); }
.ca-chart .lb.crc { fill: var(--accent-strong); font-weight: 800; }
.ca-key .sw.zn.crt { background: color-mix(in srgb, var(--accent) 24%, transparent); border: 1px dashed var(--accent); }
/* Footprint (8 Nov 2026): rows of ticks per candle, the POC outlined, imbalances a bright edge, the delta strip */
.ca-chart .fpc.b { fill: var(--bull); }
.ca-chart .fpc.s { fill: var(--bear); }
.ca-chart .fpc.e { fill: var(--muted-2); }
.ca-chart .fpn { fill: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ca-chart .fpn.ib { fill: var(--bull); font-weight: 800; }
.ca-chart .fpn.is { fill: var(--bear); font-weight: 800; }
.ca-chart .fpi.b { fill: var(--bull); }
.ca-chart .fpi.s { fill: var(--bear); }
.ca-chart .fpp { fill: none; stroke: var(--medium); stroke-width: 1.3; }
.ca-chart .fpz.up { fill: color-mix(in srgb, var(--bull) 10%, transparent); }
.ca-chart .fpz.down { fill: color-mix(in srgb, var(--bear) 10%, transparent); }
.ca-chart .fpw { stroke: var(--text); stroke-width: 1; opacity: .5; }
.ca-chart .fpk { fill: none; stroke-width: 1.2; opacity: .85; }
.ca-chart .fpk.u { stroke: var(--bull); }
.ca-chart .fpk.d { stroke: var(--bear); }
.ca-chart .fpd.b { fill: var(--bull); opacity: .8; }
.ca-chart .fpd.s { fill: var(--bear); opacity: .8; }
.ca-chart .fpdm { stroke: var(--border-strong); stroke-width: 1; }
.ca-chart .fpdt { fill: var(--muted); font-size: 8.5px; font-variant-numeric: tabular-nums; }
.ca-chart .fpl { stroke: var(--medium); stroke-width: 1; stroke-dasharray: 4 3; }
.ca-chart .fpst { stroke: var(--bear); stroke-width: 1; stroke-dasharray: 3 2; }
.ca-chart .fptg { stroke: var(--bull); stroke-width: 1; stroke-dasharray: 3 2; }
.ca-key .sw.fpc.b { background: color-mix(in srgb, var(--bull) 55%, transparent); }
.ca-key .sw.fpp { background: none; border: 1.5px solid var(--medium); }
.ca-key .sw.fpi.b { background: var(--bull); width: 4px; }
.ca-key .sw.fpz.up { background: color-mix(in srgb, var(--bull) 20%, transparent); }
.ca-key .sw.fpd.b { background: var(--bull); }
.ca-key .sw.fpnote { background: none; border: 1px dashed var(--muted-2); }
/* SMC (9 Nov 2026): the broken swing named BOS / CHoCH, the order block (.zn.up.ob), the leg's 50%, IDM, strong / weak */
.ca-chart .smb { stroke: var(--accent-strong); stroke-width: 1.2; stroke-dasharray: 4 2; }
.ca-chart .lb.smk { fill: var(--accent-strong); font-weight: 800; }
.ca-chart .sml { stroke: var(--muted-2); stroke-width: 1; stroke-dasharray: 2 3; }
.ca-chart .smi { stroke: var(--medium); stroke-width: 1; stroke-dasharray: 2 2; }
.ca-chart .lb.smt { fill: var(--muted); font-weight: 700; }
.ca-key .sw.smb, .ca-key .sw.sml { height: 0; border-radius: 0; border-top: 2px dashed var(--accent-strong); }
.ca-key .sw.sml { border-top: 2px dotted var(--muted-2); }
/* Decision (9 Nov 2026): the wide button under the nine methods, and its cards: the verdict, the two scores, the
   families with their evidence, why not, the signal */
.ca-methods .ca-dc-btn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; width: 100%; margin-top: 8px;
  border-color: var(--accent-border); background: var(--accent-soft); }
.ca-methods .ca-dc-btn b { color: var(--accent-strong); }
.ca-methods .ca-dc-btn.on { border-color: var(--accent); }
.ca-sc.ca-dc.buy { border-color: color-mix(in srgb, var(--bull) 55%, var(--border)); }
.ca-sc.ca-dc.sell { border-color: color-mix(in srgb, var(--bear) 55%, var(--border)); }
.ca-dc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ca-dc-badge { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.ca-dc-badge.buy { background: color-mix(in srgb, var(--bull) 18%, transparent); color: var(--bull); }
.ca-dc-badge.sell { background: color-mix(in srgb, var(--bear) 18%, transparent); color: var(--bear); }
.ca-dc-badge.none { background: var(--tint); color: var(--muted); border: 1px solid var(--border); }
.ca-dc-conf { font-size: 13px; font-weight: 700; color: var(--text); }
.ca-dc-bars { display: grid; gap: 4px; }
.ca-dc-bar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 26px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ca-dc-bar b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.ca-dc-fb { display: block; height: 8px; overflow: hidden; border-radius: 4px; background: var(--tint); }
.ca-dc-fb i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.ca-dc-bar.up .ca-dc-fb i { background: var(--bull); }
.ca-dc-bar.down .ca-dc-fb i { background: var(--bear); }
.ca-dc-fams, .ca-dc-other, .ca-dc-block { display: grid; gap: 6px; font-size: 13px; }
.ca-dc-fam { display: grid; grid-template-columns: minmax(0, 1fr) 70px 40px; align-items: center; gap: 4px 8px; }
.ca-dc-fam .ca-dc-fn { font-weight: 600; color: var(--text); }
.ca-dc-fam b { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.ca-dc-fam.off .ca-dc-fn, .ca-dc-fam.off b { color: var(--muted-2); font-weight: 500; }
.ca-dc-fam ul { grid-column: 1 / -1; }
.ca-dc-fams ul, .ca-dc-other ul, .ca-dc-block ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.45; }
.ca-dc-fams em, .ca-dc-other em { font-style: normal; font-weight: 700; color: var(--text); white-space: nowrap; }
.ca-dc-fams li.no em { color: var(--bear); }
.ca-dc-block { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--tint); }
.ca-dc-block ul { color: var(--text); }
.ca-dc-sig { padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--accent-border); background: var(--accent-soft);
  font-size: 13px; font-weight: 600; color: var(--accent-strong); }
.ca-dc-sig.sl { border-color: color-mix(in srgb, var(--bear) 50%, var(--border)); background: color-mix(in srgb, var(--bear) 10%, transparent); color: var(--bear); }
.ca-dc-sig.tp2, .ca-dc-sig.half { border-color: color-mix(in srgb, var(--bull) 50%, var(--border)); background: color-mix(in srgb, var(--bull) 10%, transparent); color: var(--bull); }
.ca-dc-warn { margin: 0; font-size: 13px; font-weight: 600; color: var(--medium); }
.ca-dc-day { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ca-dc-bt { margin: 8px 0 0; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--medium) 45%, var(--border)); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--medium) 10%, transparent); }
.ca-dc-how { margin: 6px 14px 10px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.ca-strong-tools .ca-impact input[type=number] { width: 100%; min-width: 0; padding: 7px 10px; font-size: 14px; }
.ca-chart .dcl { stroke: var(--bull); stroke-width: 1; stroke-dasharray: 3 3; opacity: .8; }
.ca-pt-rows { display: grid; gap: 4px; font-size: 13.5px; color: var(--text); }
.ca-pt-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.ca-pt-row b { font-variant-numeric: tabular-nums; }
.ca-pt-also { font-size: 13px; line-height: 1.5; color: var(--muted); }
.ca-pt-also .ca-sc-k { display: block; margin-bottom: 2px; }
.ca-pt-also b { color: var(--text); }
/* the method buttons on every card: Levels, ICT, Patterns, Candles -- the card shows its pair by the one pressed */
.ca-card-tabs { display: grid; grid-template-columns: repeat(9, auto); container-type: inline-size; overflow: hidden; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: auto; }
.ca-card-tabs button { min-width: 0; height: 30px; padding: 0 4px; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ca-card-tabs button + button { border-left: 1px solid var(--border); }
.ca-card-tabs button:hover { color: var(--text); background: var(--tint); }
.ca-card-tabs button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.ca-card-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ca-card-tabs .ca-tab-short { display: none; }
/* the chart picker under them (3 Nov 2026): Best (the panel's pick) and the six timeframes; one with nothing by the
   card's method there is dimmed, still clickable to say so */
.ca-tf-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: -6px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--tint); cursor: auto; }
.ca-tf-tabs button { min-width: 0; height: 26px; padding: 0 2px; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.ca-tf-tabs button + button { border-left: 1px solid var(--border); }
.ca-tf-tabs button:hover { color: var(--text); background: var(--surface); }
.ca-tf-tabs button.none { color: var(--muted-2); font-weight: 500; opacity: .65; }
.ca-tf-tabs button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; opacity: 1; }
.ca-tf-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* the news button under the chart picker (3 Nov 2026), and the pair's news it opens in the card */
.ca-news-btn { display: flex; align-items: center; gap: 6px; width: 100%; height: 30px; margin-top: -6px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; }
.ca-news-btn em { font-style: normal; font-weight: 600; color: var(--muted); }
.ca-news-btn .ca-news-ar { margin-left: auto; color: var(--muted-2); }
.ca-news-btn:hover { border-color: var(--accent-border); color: var(--accent-strong); }
.ca-news-btn[aria-expanded="true"] { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-strong); }
.ca-news-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ca-cn { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: -4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--tint); }
.ca-cn-h { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.ca-cn-i { display: grid; gap: 3px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 12.5px; }
.ca-cn-i.out { border-left: 3px solid var(--border-strong); }
.ca-cn-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; }
.ca-cn-t { font-weight: 600; color: var(--text); }
.ca-cn-n { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); }
.ca-cn-n i { font-style: normal; }
.ca-cn-n b { color: var(--text); font-variant-numeric: tabular-nums; }
.ca-cn-w { color: var(--muted); }
.ca-cn-w b.up { color: var(--bull); }
.ca-cn-w b.down { color: var(--bear); }
.ca-cn-foot { margin: 0; }
.ca-cn .ca-d { white-space: normal; }      /* .ca-d keeps to one line elsewhere: here a long one widened the card */
/* six names (3 Nov 2026): each button as wide as its name, the short ones when even that does not fit the card */
@container (max-width: 470px) {      /* eight names (8 Nov 2026): the short ones sooner */
  .ca-card-tabs .ca-tab-long { display: none; }
  .ca-card-tabs .ca-tab-short { display: inline; }
}
.ca-card-empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 18px 4px; text-align: left; }
@media (max-width: 900px) { .ca-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ca-price { font-size: 20px; }
  .ca-sug i { display: none; }
  /* Show beside the search box; the six buttons two by two under it */
  .ca-search .btn { padding-left: 14px; padding-right: 14px; }
  .ca-methods-row { grid-template-columns: 1fr 1fr; }
  .ca-top-tools { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ca-fc b { font-size: 16px; }
  .ca-card-tabs .ca-tab-long { display: none; }
  .ca-card-tabs .ca-tab-short { display: inline; }
  .ca-zoom { padding: 0; }
  .ca-zoom-box { width: 100%; height: 100%; max-height: none; padding: 12px; border: 0; border-radius: 0; }
  .ca-zoom-grid { grid-template-columns: minmax(0, 1fr); }
  .ca-card-tabs.ca-zoom-views { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ca-card-tabs.ca-zoom-views button { border-top: 1px solid var(--border); }
  .ca-sc-lv { grid-template-columns: minmax(0, 1fr) 92px; }
  /* a panel's controls two by two, each name over its list; the search and the language across; 16px so a phone
     does not zoom on them */
  .ca-strong-tools { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ca-strong-tools .ca-lang, .ca-strong-tools .ca-find { grid-column: 1 / -1; }
  .ca-find input[type=text] { padding-top: 9px; padding-bottom: 9px; font-size: 16px; }
  .ca-strong-tools .ca-impact select { padding: 8px 26px 8px 8px; background-position: right 9px center; font-size: 16px; }
  .ca-lang button { flex: 1 1 0; white-space: nowrap; }
  /* the chips: one row scrolling sideways from screen edge to edge, faded at the right -- wrapped, the 13 and the
     searched ones took eight lines before the chart */
  .ca-chips { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 14px; padding: 2px 16px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .ca-chips::-webkit-scrollbar { display: none; }
  .ca-chip, .ca-chips-sep { flex: none; }
  .ca-headrow { display: none; }
  .ca-mhead { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 12px; background: var(--tint);
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .ca-mhead div:first-child { color: var(--bull); }
  .ca-mhead div:last-child { color: var(--bear); }
  /* each timeframe as a small card: TF, ATR and trend, the nearest levels side by side, the farther ones under them */
  .ca-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 12px; padding: 12px;
    grid-template-areas: "tf tf tf trend trend trend" "s1 s1 s1 r1 r1 r1" "s2 s2 s2 r2 r2 r2" "pos pos pos pos pos pos" "atr atr atr atr atr atr"; }
  .ca-tf { grid-area: tf; }
  .ca-tf small { display: inline; margin-left: 6px; }
  .ca-trend { grid-area: trend; text-align: right; }
  .ca-lv.s { grid-area: s1; }
  .ca-lv.s.s2 { grid-area: s2; }
  .ca-lv.r { grid-area: r1; }
  .ca-lv.r.r2 { grid-area: r2; }
  .ca-pos { grid-area: pos; }
  .ca-atr { grid-area: atr; font-size: 11.5px; text-align: left; }
  .ca-atr { margin-top: -4px; }
  .ca-atr::before { content: attr(data-k) ": "; color: var(--muted-2); }
  /* the levels a release would run to: two columns of one-line pills, not a ragged wrap */
  .ca-tgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ca-tgl, .ca-tgs .ca-none { grid-column: 1 / -1; }
  .ca-tg { display: flex; flex-wrap: wrap; column-gap: 5px; min-width: 0; padding: 4px 8px; border-radius: var(--radius-sm); }
  .ca-tg em { flex-basis: 100%; }     /* the distance always on its own line: every pill the same height */
  .ca-cols { margin-top: 8px; }
  /* All charts: a compact card -- chart and price, the six trends, H1's levels, the next release */
  table.ca-table tr { padding: 12px 12px 10px 10px; }
  table.ca-table td[data-col="Chart"], table.ca-table td[data-col="Price"] { flex: 1 1 50%; }
  table.ca-table td[data-col="Chart"]::before, table.ca-table td[data-col="Price"]::before { content: none; }
  table.ca-table td[data-col="Chart"] b, table.ca-table td[data-col="Price"] { font-size: 16px; font-weight: 700; }
  table.ca-table td[data-col="Price"] { align-items: flex-end; }
  table.ca-table td[data-col="M15"], table.ca-table td[data-col="H1"], table.ca-table td[data-col="H4"],
  table.ca-table td[data-col="D1"], table.ca-table td[data-col="W1"], table.ca-table td[data-col="MN"] { flex: 0 0 16.6%; gap: 3px; }
  table.ca-table td[data-col="H1 support"], table.ca-table td[data-col="H1 resistance"] { flex: 1 1 45%; }
  table.ca-table td[data-col="Next news"] { display: block; font-size: 13px; }
  table.ca-table td[data-col="Next news"]::before { display: block; }
  table.ca-table tbody tr:hover td, table.ca-table tbody tr.sel td { background: transparent; }
  table.ca-table tbody tr.sel { border-color: var(--accent-border); background: var(--accent-soft); }
}

/* ---- Trade Ideas (3 Nov 2026): one pair read the way the user's chart analysis guide teaches ---- */
.ti-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0 16px; }
.ti-pick .ca-chips { margin: 0; flex: 1 1 520px; min-width: 0; }
.ti-find { display: flex; gap: 8px; flex: 0 1 380px; min-width: 0; }
.ti-find .input-icon-wrap { flex: 1; min-width: 0; }
.ti-find input { width: 100%; }
#tiBody { display: grid; gap: 16px; min-width: 0; }
#tiBody > * { min-width: 0; }
.ti-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.ti-hero-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ti-sym { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.ti-name { color: var(--muted); font-size: 14px; }
.ti-px { margin-left: auto; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ti-chg { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ti-chg.up { color: var(--bull); }
.ti-chg.down { color: var(--bear); }
.ti-chg.flat { color: var(--muted-2); }
.ti-short { margin: 16px 0 8px; color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ti-light { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--tint); color: var(--muted); font-size: 16px; line-height: 1.3; }
.ti-light i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--muted-2) 22%, transparent); }
.ti-light.go { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 45%, transparent); background: color-mix(in srgb, var(--bull) 10%, transparent); }
.ti-light.go i { background: var(--bull); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bull) 25%, transparent); }
.ti-light.wait { color: var(--medium); border-color: color-mix(in srgb, var(--medium) 45%, transparent); background: color-mix(in srgb, var(--medium) 10%, transparent); }
.ti-light.wait i { background: var(--medium); box-shadow: 0 0 0 4px color-mix(in srgb, var(--medium) 25%, transparent); }
.ti-why { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; }
.ti-score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.ti-score-bar { display: inline-flex; gap: 3px; }
.ti-score-bar i { width: 18px; height: 8px; border-radius: 3px; background: color-mix(in srgb, var(--bear) 30%, transparent); }
.ti-score-bar i.ok { background: var(--bull); }
.ti-todo { display: grid; gap: 7px; margin: 0; padding-left: 22px; font-size: 14.5px; line-height: 1.55; }
.ti-todo li::marker { color: var(--accent-strong); font-weight: 800; }
.ti-miss { display: grid; gap: 4px; margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.ti-warn { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.ti-warn li { display: flex; gap: 8px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--high) 40%, transparent); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--high) 8%, transparent); font-size: 13.5px; line-height: 1.5; }
.ti-warn li span { color: var(--high); font-weight: 800; }
.ti-how { margin-bottom: 4px; }
.ti-how .ca-steps { margin: 0; padding: 0 14px 14px 34px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.55; }
.ti-chart-hint { margin: -4px 0 10px; }
.ti-folds-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; margin-top: 8px; }
.ti-folds-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.ti-folds-head .ti-note { margin-top: 2px; }
.ti-folds-btns { display: flex; gap: 16px; }
.ti-folds-btns .ti-link-btn { margin: 0; }
details.ti-fold { padding: 0; }
details.ti-fold > summary { display: flex; align-items: center; gap: 14px; padding: 16px 22px; cursor: pointer; list-style: none; }
details.ti-fold > summary::-webkit-details-marker { display: none; }
details.ti-fold > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg); transition: transform .15s; }
details.ti-fold[open] > summary::after { transform: rotate(-135deg); }
details.ti-fold > summary:hover h3 { color: var(--accent-strong); }
details.ti-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-lg); }
.ti-fold-h { display: grid; gap: 4px; min-width: 0; }
.ti-fold-h h3 { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.ti-gist { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ti-gist b { color: var(--accent-strong); }
.ti-fold-body { padding: 0 22px 22px; }
details.ti-fold[open] > summary { padding-bottom: 12px; }
.ti-words { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--tint); }
.ti-row { display: grid; grid-template-columns: minmax(104px, 36%) minmax(0, 1fr); gap: 1px 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.ti-row > span:nth-child(2) { font-variant-numeric: tabular-nums; }
.ti-row .ti-sub { grid-column: 2; }
.ti-k { color: var(--muted); font-size: 13px; }
.ti-sub { color: var(--muted-2); font-size: 12.5px; line-height: 1.45; }
.ti-r { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--bull) 14%, transparent); color: var(--bull); font-size: 12px; font-weight: 700; }
.ti-h4 { margin: 18px 0 8px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.ti-checks { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.ti-checks li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.45; }
.ti-checks li span { flex: none; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 11px; font-weight: 800; }
.ti-checks li.ok span { background: color-mix(in srgb, var(--bull) 16%, transparent); color: var(--bull); }
.ti-checks li.no { color: var(--muted); }
.ti-checks li.no span { background: color-mix(in srgb, var(--bear) 13%, transparent); color: var(--bear); }
.ti-note { margin: 8px 0 0; color: var(--muted-2); font-size: 13px; line-height: 1.55; }
.ti-lead { margin: -6px 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.ti-tip { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent-border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft); font-size: 13px; line-height: 1.6; }
.ti-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.ti-chart-head h3 { margin: 0; }
.ti-tabs { min-width: 270px; margin-top: 0; grid-template-columns: repeat(6, minmax(40px, 1fr)); }
.ti-tabs button { height: 30px; }
.ti-tabs button:disabled { opacity: .4; cursor: default; }
.ti-layers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ti-layers button { height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ti-layers button:hover { border-color: var(--border-strong); color: var(--text); }
.ti-layers button[aria-pressed="true"] { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-strong); }
.ti-layers button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ti-chart-box { min-width: 0; }
.ca-chart.ti-chart { height: auto; }
.ca-chart .pd.p { fill: color-mix(in srgb, var(--bear) 6%, transparent); }
.ca-chart .pd.d { fill: color-mix(in srgb, var(--bull) 7%, transparent); }
.ca-chart .eqln { stroke: var(--muted-2); stroke-width: 1; stroke-dasharray: 6 4; }
.ca-chart .pdt { font-size: 8px; opacity: .85; }
.ca-chart .vw { stroke: var(--accent); stroke-width: 1.4; }
.ca-chart .poc { stroke: var(--medium); stroke-width: 1.4; }
.ca-chart .va { stroke: var(--medium); stroke-width: 1; stroke-dasharray: 2 3; }
.ca-chart .pfb { fill: color-mix(in srgb, var(--muted-2) 30%, transparent); }
.ca-chart .pfb.in { fill: color-mix(in srgb, var(--medium) 42%, transparent); }
.ca-chart .zn.ob { stroke-width: 1; }
.ca-chart .zn.up.ob { stroke: color-mix(in srgb, var(--bull) 55%, transparent); }
.ca-chart .zn.down.ob { stroke: color-mix(in srgb, var(--bear) 55%, transparent); }
.ca-key .sw.pd { background: linear-gradient(180deg, color-mix(in srgb, var(--bear) 30%, transparent) 50%, color-mix(in srgb, var(--bull) 32%, transparent) 50%); }
.ca-key .sw.sw { height: 0; border-radius: 0; border-top: 2px dashed var(--muted); }
.ca-key .sw.vo { height: 4px; background: linear-gradient(90deg, var(--accent) 0 40%, transparent 40% 55%, var(--medium) 55%); }
.ti-table { font-size: 13.5px; }
.ti-table th, .ti-table td { white-space: nowrap; }
.ti-table td.ti-role { min-width: 170px; color: var(--muted); font-size: 12.5px; white-space: normal; }
.ti-sw { display: inline-block; margin-right: 3px; padding: 1px 6px; border-radius: 4px; font-size: 11.5px; font-weight: 700; }
.ti-sw.up { color: var(--bull); background: color-mix(in srgb, var(--bull) 12%, transparent); }
.ti-sw.down { color: var(--bear); background: color-mix(in srgb, var(--bear) 11%, transparent); }
.ti-pd { font-size: 12.5px; font-weight: 600; }
.ti-pd.p { color: var(--bear); }
.ti-pd.d { color: var(--bull); }
.ti-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.ti-dot.up { background: var(--bull); }
.ti-dot.down { background: var(--bear); }
.ti-ladder tr.bsl td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--bull) 60%, transparent); }
.ti-ladder tr.ssl td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--bear) 60%, transparent); }
.ti-ladder tr.ti-now td { background: var(--accent-soft); color: var(--accent-strong); }
.ti-ladder tr.swept td, .ti-ladder tr.broken td { color: var(--muted-2); }
.ti-state { padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: 12px; white-space: nowrap; }
.ti-state.open { background: var(--accent-soft); color: var(--accent-strong); }
.ti-state.swept { background: color-mix(in srgb, var(--medium) 13%, transparent); color: var(--medium); }
.ti-state.forming { background: color-mix(in srgb, var(--bull) 12%, transparent); color: var(--bull); }
.ti-list { display: grid; gap: 6px; margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.55; }
.ti-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px 20px; margin: 14px 0 0; }
.ti-terms dt { font-size: 13px; font-weight: 700; }
.ti-terms dd { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ti-ranges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 28px; margin-bottom: 16px; }
.ti-range-k { margin-bottom: 6px; color: var(--muted); font-size: 12.5px; }
.ti-range-bar { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 22px; }
.ti-range-bar span { display: grid; place-items: center; font-size: 11.5px; font-weight: 700; }
.ti-range-bar .d { border-radius: 6px 0 0 6px; background: color-mix(in srgb, var(--bull) 16%, transparent); color: var(--bull); }
.ti-range-bar .p { border-radius: 0 6px 6px 0; background: color-mix(in srgb, var(--bear) 14%, transparent); color: var(--bear); }
.ti-range-bar i { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--text); }
.ti-range-ends { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; color: var(--muted-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ti-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.ti-tile { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--tint); }
.ti-tile b { font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ti-tile.up b { color: var(--bull); }
.ti-tile.down b { color: var(--bear); }
.ti-tile.acc b { color: var(--accent-strong); }
.ti-tile.hot b { color: var(--medium); }
.ti-news-list { padding: 0; gap: 8px; list-style: none; }
.ti-news { padding: 10px 12px; border: 1px solid var(--border); border-left: 3px solid var(--medium); border-radius: var(--radius-sm); }
.ti-news.high { border-left-color: var(--high); }
.ti-news-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ti-when { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ti-cur { padding: 0 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11.5px; font-weight: 700; }
.ti-key { color: var(--medium); }
.ti-imp { margin-left: auto; font-size: 11.5px; font-weight: 700; }
.ti-imp.high { color: var(--high); }
.ti-imp.medium { color: var(--medium); }
.ti-news-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.ti-eff { color: var(--text); font-weight: 600; }
.ti-dxy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ti-dxy .ti-sub { flex-basis: 100%; }
.ti-tl { margin-bottom: 14px; }
.ti-tl-bar { position: relative; height: 28px; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--tint); }
.ti-tl-bar i { position: absolute; height: 6px; border-radius: 3px; }
.ti-tl-as { top: 3px; background: #0ea5e9; }
.ti-tl-lo { top: 10px; background: var(--accent); }
.ti-tl-ny { top: 17px; background: var(--medium); }
.ti-tl-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--text); }
.ti-tl-ticks { position: relative; height: 18px; color: var(--muted-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.ti-tl-ticks span { position: absolute; top: 2px; transform: translateX(-50%); }
.ti-tl-ticks span:first-child { transform: none; }
.ti-tl-ticks span:last-child { transform: translateX(-100%); }
.ti-sess-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.ti-sess { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ti-sess.live { border-color: color-mix(in srgb, var(--bull) 50%, transparent); background: color-mix(in srgb, var(--bull) 6%, transparent); }
.ti-sess-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ti-sess-top .ti-sub { flex-basis: 100%; }
.ti-sess-hl { margin-top: 4px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ti-sess .ti-note { margin-top: 4px; }
.ti-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; margin-bottom: 10px; }
.ti-field { display: grid; gap: 4px; color: var(--muted); font-size: 12.5px; }
.ti-field input { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.ti-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ti-link-btn { margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ti-link-btn:hover { text-decoration: underline; }
.ti-rules { margin-top: 12px; }
.ti-tools { padding: 0; list-style: none; }
.ti-ck-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.ti-ck-head .ti-link-btn { margin: 0 0 0 auto; }
.ti-ck-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ti-ck-list label { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.ti-ck-list label:hover { border-color: var(--border-strong); }
.ti-ck-list input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.ti-ck-list label > span { display: grid; gap: 2px; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ti-ck-list input:checked + span b { color: var(--muted); text-decoration: line-through; }
.ti-learn { margin: 0; }
.ti-learn > :not(summary) { margin-left: 14px; margin-right: 14px; }
.ti-learn > :last-child { margin-bottom: 14px; }
.ti-disc { margin: 0; }
.ti-find .btn { flex: none; width: auto; padding: 9px 20px; }
.ti-facts { display: grid; gap: 0; margin-top: 14px; border-top: 1px solid var(--border); }
.ti-fact { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 2px 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.ti-fact-tfs { display: flex; flex-wrap: wrap; gap: 4px; }
.ti-fact-lv { display: inline-block; margin-right: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ti-fact-lv.up b { color: var(--bull); }
.ti-fact-lv.down b { color: var(--bear); }
.ca-chart .ti-in { font-size: 8px; }
@media (max-width: 900px) { .ti-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ti-pick { gap: 8px; }
  .ti-pick .ca-chips, .ti-find { flex-basis: 100%; }
  .ti-chart-panel { padding: 14px 12px; }
  .ti-tabs { width: 100%; min-width: 0; }
  .ti-sym, .ti-px { font-size: 19px; }
  .ti-light { font-size: 15px; }
  details.ti-fold > summary { padding: 14px 16px; }
  .ti-fold-body { padding: 0 16px 16px; }
  /* the tables' card rows (data-table on a phone), compact: the facts side by side, not one under the other */
  table.ti-table tr { padding: 10px 12px; column-gap: 12px; row-gap: 3px; }
  table.ti-table th[scope="row"] { display: flex; align-items: center; flex: 0 0 auto; padding: 2px 0; border: 0; background: none; font-size: 15px; font-weight: 800; }
  table.ti-table td { flex: 0 1 auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; white-space: normal; }
  table.ti-table td::before { content: none; }
  table.ti-table td:first-child { flex: 1 1 100%; }
  table.ti-st td.ti-role { flex: 1 1 0; min-width: 0; }
  table.ti-st td.ti-swings { flex: 1 1 100%; }
  table.ti-table td:empty { display: none; }
}

/* ---- Top Trades (6 Nov 2026): every method's votes on every pair put together, the top ones as cards ---- */
.tt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 14px 0 10px; font-size: 13.5px; color: var(--muted); }
.tt-bar b { color: var(--text); }
.tt-sess { padding: 3px 10px; border-radius: 999px; background: var(--tint); font-size: 12.5px; }
.tt-sess.open { background: color-mix(in srgb, var(--bull) 12%, transparent); color: var(--bull); font-weight: 600; }
.tt-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tt-seg { display: inline-flex; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.tt-seg button { height: 32px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tt-seg button + button { border-left: 1px solid var(--border); }
.tt-seg button:hover { color: var(--text); }
.tt-seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.tt-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.tt-card { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--border-strong);
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.tt-card.buy { border-left-color: var(--bull); }
.tt-card.sell { border-left-color: var(--bear); }
.tt-card.has-news { opacity: .85; }
.tt-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tt-rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--tint); font-size: 12px; font-weight: 700; color: var(--muted); }
.tt-sym { font-size: 18px; font-weight: 800; }
.tt-name { color: var(--muted); font-size: 13px; }
.tt-px { margin-left: auto; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tt-side { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; letter-spacing: .03em; }
.tt-side.buy { background: color-mix(in srgb, var(--bull) 14%, transparent); color: var(--bull); }
.tt-side.sell { background: color-mix(in srgb, var(--bear) 13%, transparent); color: var(--bear); }
.tt-level { font-size: 13px; font-weight: 700; }
.tt-level.strong { color: var(--bull); }
.tt-level.good { color: var(--accent-strong); }
.tt-level.light { color: var(--medium); }
.tt-score { flex: 0 0 80px; height: 7px; overflow: hidden; border-radius: 4px; background: var(--tint); }
.tt-score i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.tt-sub { color: var(--muted-2); font-size: 12.5px; }
.tt-plan { display: grid; gap: 0; border-top: 1px solid var(--border); }
.tt-plan > div { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr); gap: 2px 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tt-k { color: var(--muted); font-size: 12.5px; }
.tt-cost { margin-left: 4px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.tt-cost.low { background: color-mix(in srgb, var(--bull) 13%, transparent); color: var(--bull); }
.tt-cost.ok { background: color-mix(in srgb, var(--medium) 14%, transparent); color: var(--medium); }
.tt-warn-t { color: var(--medium); font-size: 12px; font-weight: 600; }
/* a card's chart (17 Nov 2026): its timeframe tabs, the candles with the trade's lines and their priced tags */
.tt-chart { display: grid; gap: 6px; min-width: 0; }
.tt-tfs { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 0; }
.tt-chart-box { min-width: 0; min-height: 40px; }
.tt-chart-note { margin: 0; padding: 14px 0; text-align: center; }
.ca-chart.tt-svg { height: auto; }
.ca-chart .tt-tpl { stroke: var(--bull); stroke-dasharray: 2 3; opacity: .75; }
.ca-chart .tt-sll { stroke: var(--bear); stroke-dasharray: 2 3; opacity: .75; }
/* the live prices (17 Nov 2026): a card's price green or red for a moment when it moves, "Live prices" pulsing */
.tt-px.flash-up { animation: ca-tick-up 1.2s ease-out; }
.tt-px.flash-down { animation: ca-tick-down 1.2s ease-out; }
.tt-live { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .tt-px.flash-up, .tt-px.flash-down { animation: none; } }
.tt-from { margin: -4px 0 0; }
.tt-news { margin: 0; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--high) 40%, transparent); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--high) 8%, transparent); font-size: 12.5px; }
.tt-ms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 0; padding: 0; list-style: none; }
.tt-m { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 6px; font-size: 12.5px; line-height: 1.35; }
.tt-m > span { grid-row: span 2; font-weight: 800; }
.tt-m small { grid-column: 2; color: var(--muted-2); font-size: 11.5px; overflow-wrap: anywhere; }
.tt-m.ok > span { color: var(--bull); }
.tt-m.no > span { color: var(--bear); }
.tt-m.off { color: var(--muted-2); }
.tt-acts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 600; }
.tt-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.tt-disc { margin: 16px 0 0; }
@media (max-width: 640px) {
  .tt-filters { gap: 6px; }
  .tt-seg { flex: 1 1 100%; }
  .tt-seg button { flex: 1 1 0; min-width: 0; padding: 0 6px; white-space: normal; line-height: 1.15; }
  .tt-card { padding: 12px; }
  .tt-ms { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   newsFX for sale (10 Nov 2026): the header's plan badge, language switch and account menu, locked pages in the
   menu, the sign-up / plans / payment / account / results / upgrade pages, the admin's overview, payments and
   business pages. Same tokens as the rest of the site.
   ============================================================ */
input[type=email], input[type=tel] {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 9px 12px;
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
input[aria-invalid="true"] { border-color: var(--high); }
.muted { color: var(--muted-2); }
.small { font-size: 12.5px; }
.pos { color: var(--bull); }
.neg { color: var(--bear); }

/* ---- header ---- */
.site-header { padding: 14px 40px; }
.site-header a.brand { text-decoration: none; color: inherit; }
.site-header .brand-text p { font-size: 13px; }
.header-actions { gap: 12px; }
.plan-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12px !important; font-weight: 700 !important; letter-spacing: .04em; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--border-strong); color: var(--muted) !important; background: var(--tint);
}
.plan-badge.plan-free { border-color: var(--accent-border); color: var(--accent-strong) !important; background: var(--accent-soft); }
.plan-badge.plan-basic { border-color: color-mix(in srgb, var(--bull) 45%, transparent); color: var(--bull) !important; background: color-mix(in srgb, var(--bull) 10%, transparent); }
.plan-badge.plan-pro { border-color: color-mix(in srgb, var(--medium) 50%, transparent); color: var(--medium) !important; background: color-mix(in srgb, var(--medium) 11%, transparent); }
.plan-badge.plan-admin { border-color: var(--accent-border); color: var(--accent-strong) !important; background: var(--accent-soft); }
.plan-badge:hover { filter: brightness(1.08); }
.lang-switch { display: inline-flex; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); height: 30px; }
.lang-switch button { padding: 0 9px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.lang-switch button + button { border-left: 1px solid var(--border); }
.lang-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.lang-switch button:focus-visible, .acct-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acct { position: relative; }
.acct-btn {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.acct-btn:hover { background: var(--accent-strong); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28); display: flex; flex-direction: column;
}
.acct-menu[hidden] { display: none; }
.acct-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.acct-head b { font-size: 14px; }
.acct-head span { font-size: 12.5px; color: var(--muted-2); }
.header-actions .acct-menu a, .acct-menu button {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text);
  font-size: 14px; font-weight: 500; text-decoration: none; background: transparent; text-align: left; width: 100%;
}
.header-actions .acct-menu a:hover, .acct-menu button:hover { background: var(--tint); }
.acct-menu button[hidden] { display: none; }

/* ---- the menu: one row, a lock on a page of a higher plan ---- */
.site-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding: 8px 40px; gap: 2px; }
.site-nav a { padding: 8px 12px; font-size: 13.5px; }
.site-nav a.locked { color: var(--muted-2); }
.site-nav a.locked .nav-icon { opacity: .6; }
.nav-lock { font-size: 11px; margin-left: 1px; opacity: .85; }
@media (max-width: 1100px) { .site-header .brand-text p { display: none; } }

/* ---- notes under the menu ---- */
.flash-note { background: color-mix(in srgb, var(--bull) 10%, transparent); border-color: color-mix(in srgb, var(--bull) 40%, transparent); }
.plan-note {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 40px 0; padding: 10px 14px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--medium) 10%, transparent); border: 1px solid color-mix(in srgb, var(--medium) 40%, transparent);
  font-size: 14px; font-weight: 500;
}
.plan-note-btn { margin-left: auto; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 13px; }

/* ---- the pages of this part ---- */
.sell-page { padding: 24px 40px 48px; max-width: 1180px; }
.sell-head h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.sell-head p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; max-width: 820px; }
.sell-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.sell-card h3 { margin: 0 0 12px; font-size: 15.5px; font-weight: 600; }
.sell-ok, .sell-err {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px;
}
.sell-ok { background: color-mix(in srgb, var(--bull) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bull) 40%, transparent); }
.sell-err { background: rgba(223, 27, 65, 0.08); border: 1px solid rgba(223, 27, 65, 0.3); color: var(--high); }
.sell-page .btn, .pub .btn, .auth-alt .btn { width: auto; text-decoration: none; }
.btn.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn.btn-ghost:hover { background: var(--tint); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.btn-row.center { justify-content: center; }
.btn-row form { margin: 0; }
.sell-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sell-table th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sell-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sell-table tr:last-child td { border-bottom: 0; }
.pay-st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border-strong); }
.pay-st.pending { color: var(--medium); border-color: color-mix(in srgb, var(--medium) 45%, transparent); }
.pay-st.approved { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 45%, transparent); }
.pay-st.rejected { color: var(--bear); border-color: color-mix(in srgb, var(--bear) 45%, transparent); }
.opt { color: var(--muted-2); font-weight: 400; }

/* payment */
.pay-form { display: grid; gap: 16px; margin-bottom: 18px; }
.pay-step { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 16px 20px 18px; margin: 0; min-width: 0; }
.pay-step legend { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-weight: 600; font-size: 15px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; }
.pay-choices, .pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.pay-choice, .pay-method { position: relative; display: block; cursor: pointer; }
.pay-choice input, .pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-choice > span, .pay-method > span {
  display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--bg); transition: border-color .15s ease, background .15s ease;
}
.pay-choice small, .pay-method small { color: var(--muted-2); font-size: 12.5px; }
.pay-method code { font-size: 14px; font-weight: 600; color: var(--text); background: var(--tint); padding: 3px 6px; border-radius: 4px; align-self: flex-start; user-select: all; }
.pay-choice input:checked + span, .pay-method input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.pay-choice input:focus-visible + span, .pay-method input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-total { margin: 14px 0 0; font-size: 15px; }
.pay-total b { font-size: 20px; }
.pay-help { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.pay-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 10px; }
.pay-fields .pay-note { grid-column: 1 / -1; }
.pay-submit { margin-top: 4px; }

/* account */
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.plan-big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.plan-card.plan-pro .plan-big { color: var(--medium); }
.plan-card.plan-basic .plan-big { color: var(--bull); }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); vertical-align: middle; }
.plan-bar { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; margin-top: 8px; }
.plan-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.ok-line { font-weight: 600; margin: 0 0 10px; }
.alerts-form .check-field { margin: 0 0 10px; align-items: flex-start; }
.alerts-form .check-field input { margin-top: 3px; }
.alerts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 8px; }
.tg-steps { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 8px; }
.tg-open { padding: 6px 12px; font-size: 14px; }
.pw-change .btn { margin-top: 2px; }

/* upgrade */
.upgrade-box {
  max-width: 620px; margin: 24px auto; padding: 34px 28px; text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.upgrade-lock { font-size: 34px; }
.upgrade-box h2 { margin: 6px 0 4px; font-size: 22px; }
.upgrade-need { margin: 0 0 10px; color: var(--muted); }
.upgrade-what { margin: 0 auto 18px; max-width: 520px; color: var(--text); }
.upgrade-plans { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.upgrade-plan {
  display: flex; flex-direction: column; gap: 2px; min-width: 170px; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); text-decoration: none; color: var(--text); background: var(--bg);
}
.upgrade-plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.upgrade-plan small { color: var(--muted-2); }
.upgrade-plan:hover { background: var(--tint); }

/* results */
.res-warn {
  padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13.5px;
  background: color-mix(in srgb, var(--medium) 9%, transparent); border: 1px solid color-mix(in srgb, var(--medium) 35%, transparent);
}
.res-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.res-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.res-tile .k { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); font-weight: 600; }
.res-tile b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.res-tile small { color: var(--muted); font-size: 12.5px; }
.res-chart { position: relative; min-height: 120px; }
.res-chart svg { display: block; }
.res-grid-l { stroke: var(--border); stroke-width: 1; }
.res-zero { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.res-ax { fill: var(--muted-2); font-size: 11px; }
.res-line { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.res-line.up { stroke: var(--bull); }
.res-line.down { stroke: var(--bear); }
.res-cross { stroke: var(--muted-2); stroke-width: 1; }
.res-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.res-tip { position: absolute; top: 4px; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border-strong); font-size: 12.5px; pointer-events: none; white-space: nowrap; }
.res-rules { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.res-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.way { font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 4px; }
.way.buy { color: var(--bull); background: color-mix(in srgb, var(--bull) 12%, transparent); }
.way.sell { color: var(--bear); background: color-mix(in srgb, var(--bear) 12%, transparent); }
.res-table .st { font-size: 12.5px; color: var(--muted); }
.res-table .st.tp { color: var(--bull); font-weight: 600; }
.res-table .st.sl { color: var(--bear); font-weight: 600; }
.res-table tr.locked td { color: var(--muted-2); }

/* ---- public pages: sign-up, plans ---- */
body.pub { min-height: 100vh; display: flex; flex-direction: column; }
.pub-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 40px;
  border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 20;
}
.pub-header a.brand { text-decoration: none; color: inherit; }
.pub-header .brand-mark { width: 36px; height: 36px; }
.pub-actions { display: flex; align-items: center; gap: 10px; }
.pub-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 8px; }
.pub-link:hover { color: var(--text); }
.pub-btn { padding: 7px 14px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.pub-btn:hover { background: var(--accent-strong); }
.pub-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pub-foot { border-top: 1px solid var(--border); padding: 20px 40px 28px; font-size: 12.5px; color: var(--muted-2); text-align: center; }
.pub-foot p { margin: 4px auto; max-width: 900px; }
.pub-auth { min-height: auto; padding: 32px 0 48px; }
.signup-card { max-width: 440px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.terms-check { align-items: flex-start; margin: 2px 0 16px; font-size: 13px; line-height: 1.5; }
.terms-check input { margin-top: 3px; flex-shrink: 0; }
.auth-alt { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); display: grid; gap: 10px; }
.auth-alt p { margin: 0; }
.auth-alt .btn { width: 100%; }

.price-hero { text-align: center; padding: 48px 0 18px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.price-hero h2 { margin: 0 auto 12px; max-width: 760px; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.03em; }
.price-hero .lead { margin: 0 auto; max-width: 760px; color: var(--muted); font-size: 16px; }
.price-now { margin: 14px 0 0; }
.price-cycle { display: flex; justify-content: center; gap: 4px; margin: 18px auto 22px; padding: 4px; width: max-content; max-width: 100%; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.price-cycle button { padding: 7px 14px; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.price-cycle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.price-cycle .save { font-size: 11px; font-weight: 700; color: var(--bull); margin-left: 4px; }
.price-cycle button[aria-pressed="true"] .save { color: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 40px rgba(99, 91, 255, .14); }
.price-card.current::after { content: "\2713"; position: absolute; top: 14px; right: 16px; color: var(--bull); font-weight: 800; }
.price-flag { position: absolute; top: -11px; left: 22px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; }
.price-card h3 { margin: 0; font-size: 18px; }
.price-for { margin: 0; color: var(--muted); font-size: 13.5px; }
.price-amt { min-height: 66px; margin: 8px 0 4px; }
.price-amt b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.price-amt small { color: var(--muted); }
.price-amt em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted-2); }
.price-list { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; flex: 1; }
.price-list li { display: flex; gap: 8px; }
.price-list li span { width: 16px; flex-shrink: 0; font-weight: 700; }
.price-list li.yes span { color: var(--bull); }
.price-list li.no { color: var(--muted-2); }
.price-card .btn { width: 100%; }
.price-faq { max-width: 780px; margin: 36px auto 24px; }
.price-faq h3 { font-size: 18px; margin: 0 0 10px; }
.price-faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.price-faq summary { cursor: pointer; font-weight: 600; }
.price-faq details p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* ---- admin ---- */
.adm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.adm-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; color: var(--text); }
.adm-tile span { font-size: 12px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }
.adm-tile b { font-size: 24px; font-weight: 800; }
.adm-tile small { color: var(--muted); font-size: 12.5px; }
a.adm-tile:hover { border-color: var(--border-strong); }
.adm-tile.warn { border-color: color-mix(in srgb, var(--medium) 55%, transparent); background: color-mix(in srgb, var(--medium) 8%, var(--surface)); }
.adm-check { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.biz-row, .biz-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.badge.plan-free { background: var(--tint); color: var(--muted); border-color: var(--border-strong); }
.badge.plan-basic { background: color-mix(in srgb, var(--bull) 12%, transparent); color: var(--bull); border-color: color-mix(in srgb, var(--bull) 40%, transparent); }
.badge.plan-pro { background: color-mix(in srgb, var(--medium) 12%, transparent); color: var(--medium); border-color: color-mix(in srgb, var(--medium) 40%, transparent); }
.u-contact { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.plan-form select { width: auto; padding-right: 28px; }
.pay-admin button { width: auto !important; }

/* ---- phones ---- */
@media (max-width: 900px) {
  .acct-grid, .res-grid { grid-template-columns: minmax(0, 1fr); }
  .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 0 auto; }
  .res-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { padding: 10px 14px; flex-wrap: nowrap; }
  .site-header .brand-mark { width: 34px; height: 34px; }
  .site-header .brand-mark img { width: 34px; height: 34px; }
  .header-actions { gap: 8px; }
  .header-actions a.plan-badge { display: inline-flex; height: 26px; padding: 0 8px; font-size: 10.5px !important; }
  .acct { display: none; }
  .lang-switch { height: 28px; }
  .lang-switch button { padding: 0 7px; font-size: 11px; }
  .site-nav { flex-wrap: nowrap; overflow: hidden; padding: 0 8px; }
  .site-nav.open { overflow-y: auto; max-height: 80vh; }
  .site-nav-user .nav-install { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; background: transparent; text-align: left; font-size: 14px; }
  .site-nav-user .nav-install[hidden] { display: none; }
  .plan-note { margin: 10px 14px 0; }
  .sell-page { padding: 16px 14px 36px; }
  .sell-card { padding: 16px; }
  .pay-fields, .alerts-row { grid-template-columns: minmax(0, 1fr); }
  .pub-header { padding: 10px 14px; }
  .pub-header .brand-text p { display: none; }
  .pub-link { display: none; }
  .pub-main { padding: 0 14px; }
  .pub-foot { padding: 16px 14px 24px; }
  .price-hero { padding: 28px 0 8px; }
  .res-tile b { font-size: 22px; }
}
@media (max-width: 380px) {
  .site-header .brand-text h1 { font-size: 15px; }
  .lang-switch { display: none; }
}

/* fixes after the first look (10 Nov 2026) */
.pb-short { display: none; }
.site-nav { padding: 8px 32px; }
.site-nav a { padding: 7px 10px; font-size: 13px; gap: 6px; }
.upgrade-page { max-width: none; }
.auth-alt { display: block; }
.auth-alt > * + * { margin-top: 10px; }
.pub .auth-card .btn { width: 100%; }
.plan-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.plan-note-btn { margin-left: 0; }
@media (max-width: 640px) {
  .pb-extra { display: none; }
  .pb-short { display: inline; }
  .site-header .brand { min-width: 0; flex: 1; }
  .site-header .brand-text { min-width: 0; }
  .site-header .brand-text h1 { white-space: nowrap; }
  .plan-note { grid-template-columns: auto minmax(0, 1fr); }
  .plan-note-btn { grid-column: 1 / -1; justify-self: start; }
}

.site-foot { margin: 28px 40px 0; padding: 18px 0 28px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted-2); text-align: center; }
.site-foot p { margin: 4px auto; max-width: 980px; }
.site-foot a { color: var(--muted); }
@media (max-width: 640px) { .site-foot { margin: 20px 14px 0; } }

/* the menu's Analysis group (10 Nov 2026): Chart Analysis, Trade Ideas and Top Trades in one dropdown */
.site-nav { overflow: visible; flex-wrap: wrap; }
.nav-group { position: relative; }
.nav-group-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: var(--radius); background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.nav-group-btn:hover, .nav-group.open > .nav-group-btn { color: var(--text); background: var(--tint); }
.nav-group.active > .nav-group-btn { color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.nav-group-btn.locked { color: var(--muted-2); }
.nav-group-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-caret { font-size: 10px; opacity: .75; transition: transform .15s ease; }
.nav-group.open .nav-caret { transform: rotate(180deg); }
.nav-group-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 290px; padding: 6px; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.nav-group-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }   /* the hover's bridge */
.nav-group.open .nav-group-menu { display: flex; }
/* 11 Nov 2026: the hover opens a group through the script (base.html), which keeps one open at a time */
.site-nav .nav-group-menu a { align-items: flex-start; gap: 10px; padding: 9px 10px; white-space: normal; }
.site-nav .nav-group-menu a .nav-icon { margin-top: 2px; }
.nav-sub { display: flex; flex-direction: column; gap: 1px; }
.nav-sub-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.nav-group-menu a.active .nav-sub-name { color: var(--accent-strong); }
.nav-group-menu a.locked .nav-sub-name { color: var(--muted-2); }
.nav-sub small { font-size: 12px; color: var(--muted-2); font-weight: 400; }
@media (max-width: 640px) {
  .site-nav { flex-wrap: nowrap; overflow: hidden; }
  .site-nav.open { overflow-y: auto; }
  .nav-group-btn { width: 100%; padding: 12px 14px; font-size: 14px; pointer-events: none; }
  .nav-group.active > .nav-group-btn { background: transparent; }
  .nav-caret { display: none; }
  .nav-group-menu { display: flex; position: static; min-width: 0; padding: 0 0 0 18px; border: 0; box-shadow: none; background: transparent; }
  .nav-group-menu::before { display: none; }
  .nav-sub small { display: none; }
  .site-nav .nav-group-menu a { padding: 10px 14px; align-items: center; }
  .site-nav .nav-group-menu a .nav-icon { margin-top: 0; }
  .nav-sub-name { font-weight: 500; font-size: 14px; }
}

@media (max-width: 640px) {
  .nav-sub-name { color: var(--muted); font-weight: 500; }
  .nav-group-menu a.active .nav-sub-name { color: var(--accent-strong); font-weight: 600; }
  .nav-group-menu a.locked .nav-sub-name { color: var(--muted-2); }
}

/* ---- phones (10 Nov 2026): the card's nine method buttons in two rows when the card is narrow (they ran into each
   other on a phone: "LevelsICT PatternCandles"), Market Intel's time column, Top Trades' spread tag, admin icons ---- */
.ca-sc { container: casc / inline-size; }
.ca-card-tabs button { overflow: hidden; text-overflow: ellipsis; }
@container casc (max-width: 340px) {      /* the card's inside: the nine need ~332px in one row */
  .ca-card-tabs:not(.ca-zoom-views) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ca-card-tabs:not(.ca-zoom-views) button { padding: 0 1px; font-size: 11.5px; letter-spacing: -0.01em; }
  .ca-card-tabs:not(.ca-zoom-views) button:nth-child(5n + 1) { border-left: 0; }
  .ca-card-tabs:not(.ca-zoom-views) button:nth-child(n + 6) { border-top: 1px solid var(--border); }
  .ca-card-tabs:not(.ca-zoom-views) button:nth-child(9) { grid-column: span 2; }
}
.tt-cost { white-space: nowrap; display: inline-block; }
.admin-nav .nav-icon { width: auto; min-width: 18px; }
@media (max-width: 640px) {
  .mi-time { width: 64px; white-space: normal; }
  .mi-time small { white-space: normal; font-size: 11px; line-height: 1.3; }
}

/* Chart Analysis' nine method cards on a tablet (10 Nov 2026): nine in a row only on a wide screen -- in between they
   were 67-96px each and their names ran into each other; the phone keeps its two a row */
@media (min-width: 641px) and (max-width: 1240px) { .ca-methods-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 641px) and (max-width: 860px) { .ca-methods-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* a very small phone (320px): the nine three by three */
@container casc (max-width: 280px) {
  .ca-card-tabs:not(.ca-zoom-views) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ca-card-tabs:not(.ca-zoom-views) button + button { border-left: 1px solid var(--border); }
  .ca-card-tabs:not(.ca-zoom-views) button:nth-child(3n + 1) { border-left: 0; }
  .ca-card-tabs:not(.ca-zoom-views) button:nth-child(n + 4) { border-top: 1px solid var(--border); }
  .ca-card-tabs:not(.ca-zoom-views) button:nth-child(9) { grid-column: auto; }
  .ca-card-tabs:not(.ca-zoom-views) button { font-size: 12px; }
}

/* a very small phone (320px): Trade Ideas' facts one under the other, a level's number and its tag may wrap */
@media (max-width: 360px) {
  .ti-fact { grid-template-columns: minmax(0, 1fr); }
  .ti-fact-lv { white-space: normal; }
  .ca-sc-lv { grid-template-columns: minmax(0, 1fr) 76px; }
}

/* payments with proof (10 Nov 2026): the client's list as cards with the rejection, the answer and the proof form; the
   admin's waiting / rejected lists with each payment's story */
.pay-note-bar { background: color-mix(in srgb, var(--bear) 9%, transparent); border-color: color-mix(in srgb, var(--bear) 38%, transparent); }
.pay-jump { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius); font-size: 14px;
  background: color-mix(in srgb, var(--bear) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bear) 35%, transparent); }
.pay-list > h3 { margin: 8px 0 12px; font-size: 15.5px; }
.pay-item { scroll-margin-top: 150px; }
.pay-item.rejected { border-color: color-mix(in srgb, var(--bear) 40%, transparent); }
.pay-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pay-item-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted-2); }
.pay-reason { margin-top: 10px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13.5px;
  background: color-mix(in srgb, var(--bear) 7%, transparent); }
.pay-answer { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); color: var(--muted); }
.pay-appeal { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.pay-appeal-h { margin: 0 0 10px; font-size: 14px; font-weight: 500; }
.pay-appeal-h small { color: var(--muted-2); }
.pay-appeal textarea, .pay-form input[type=file], .pay-appeal input[type=file] {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 9px 12px;
  border-radius: var(--radius-sm); font: inherit; font-size: 14px; }
.pay-appeal textarea { resize: vertical; }
.pay-admin-list { display: grid; gap: 10px; }
.pay-admin-item { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.pay-admin-item.again { border-color: color-mix(in srgb, var(--medium) 50%, transparent); }
.pay-admin-item.rejected { opacity: .95; }
.pay-admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.pay-admin-item .user-actions button { width: auto !important; }
.pay-story { display: grid; gap: 4px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.pay-story-r { color: var(--bear); }
.pay-story-a { color: var(--text); }

/* a rejected payment settled by a later approved one (10 Nov 2026): grey, no reminder, its form folded away */
.pay-st.settled { color: var(--muted); border-color: var(--border-strong); }
.pay-item.settled { border-color: var(--border); }
.pay-item.settled .pay-reason { background: var(--tint); }
.pay-settled { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.pay-settled-more { margin-top: 8px; font-size: 13px; }
.pay-settled-more summary { cursor: pointer; color: var(--accent); }

/* ---- AI Market Intel made simple (11 Nov 2026): plain words first, the detail one click away ---- */
.mi-view { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted-2); white-space: nowrap; }
.mi-view.Bullish { color: var(--bull); background: color-mix(in srgb, var(--bull) 11%, transparent); border-color: color-mix(in srgb, var(--bull) 35%, transparent); }
.mi-view.Bearish { color: var(--bear); background: color-mix(in srgb, var(--bear) 10%, transparent); border-color: color-mix(in srgb, var(--bear) 35%, transparent); }
.mi-aiv { display: flex; flex-wrap: wrap; gap: 4px; }
.mi-aiv-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 5px; }
.mi-sure { font-size: 11.5px; font-weight: 700; color: var(--muted-2); }
.mi-sure.high { color: var(--bull); } .mi-sure.medium { color: var(--medium); } .mi-sure.low { color: var(--bear); }
.mi-aiv-foot .mi-hit { margin-left: 0; font-size: 11.5px; }
.mi-next { display: grid; gap: 5px; width: 100%; text-align: left; padding: 14px 16px; margin: 0 0 14px; border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--text); font-size: 14px; }
.mi-next:hover { border-color: var(--accent-strong); }
.mi-next-k { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); }
.mi-next-t { font-size: 18px; font-weight: 800; line-height: 1.3; }
.mi-next-w { font-size: 13px; color: var(--muted-2); }
.mi-next-v { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 600; }
.mi-next-go { font-size: 13px; font-weight: 700; color: var(--accent-strong); }
.mi-simple { border: 1px solid var(--accent-border) !important; background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)) !important; }
.mi-simple h3 { margin-top: 0; }
.mi-what { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.mi-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.mi-scell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.mi-sbig { font-size: 20px; font-weight: 800; margin: 4px 0 2px; color: var(--muted-2); line-height: 1.25; }
.mi-sbig.Bullish, .mi-sbig.sure-high { color: var(--bull); }
.mi-sbig.Bearish, .mi-sbig.sure-low { color: var(--bear); }
.mi-sbig.sure-medium { color: var(--medium); }
.mi-scell .mi-confbar { margin-top: 6px; }
.mi-sresult { margin: 8px 0; padding: 9px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); line-height: 1.7; }
.mi-snote { font-size: 12.5px; color: var(--muted-2); margin: 8px 0 0; }
.mi-fulltoggle { text-align: center; margin: 2px 0 16px; }
.mi-btn.ghost { background: transparent; color: var(--accent-strong); border: 1px solid var(--accent-border); }
.mi-btn.ghost:hover { background: var(--accent-soft); }
.mi-moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.mi-mood { display: grid; gap: 3px; width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; }
.mi-mood:hover { border-color: var(--border-strong); }
.mi-mood.on { border-color: var(--accent-border); background: var(--accent-soft); }
.mi-mood-n { font-weight: 800; }
.mi-mood-w { font-weight: 700; font-size: 13px; color: var(--muted-2); }
.mi-mood-w.Bullish { color: var(--bull); } .mi-mood-w.Bearish { color: var(--bear); } .mi-mood-w.Neutral { color: var(--medium); }
.mi-mood small { color: var(--muted-2); font-size: 12px; }
.mi-more { margin-top: 4px; }
.mi-more > summary { font-weight: 700; color: var(--accent-strong); }
.mi-invs td { white-space: normal; }
@media (max-width: 760px) {
  .mi-sgrid { grid-template-columns: 1fr; }
  .mi-moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mi-next-t { font-size: 16px; }
}
@media (max-width: 340px) { .mi-moods { grid-template-columns: 1fr; } }
/* ---- Back to Top Trades (11 Nov 2026): a button that stays in view on Chart Analysis / Trade Ideas ---- */
.back-pill { position: fixed; left: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: #fff;
  background: var(--accent-strong); box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.back-pill:hover { filter: brightness(1.08); color: #fff; }
.back-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .back-pill { left: 12px; bottom: 12px; padding: 9px 14px; font-size: 13.5px; } }

/* AI Market Intel, "USD first" (11 Nov 2026): the note when the US dollar has no news in the period */
.mi-usdnone { display: inline-block; margin-bottom: 4px; color: var(--medium); font-weight: 700; }

/* ---- AI Market Intel 2.0 (12 Nov 2026): probabilities, history study, live reaction, macro, alerts, data health ---- */
/* chart series: categorical slots 1-2 of the validated reference palette (blue, orange), stepped for the dark surface */
.mi, .mim { --s1: #2a78d6; --s2: #eb6834; --ok: var(--bull); --warn: var(--medium); --bad: var(--bear); }
:root[data-theme="dark"] .mi, :root[data-theme="dark"] .mim { --s1: #3987e5; --s2: #d95926; }
.mi-status { cursor: pointer; text-align: left; font-family: inherit; width: auto; margin: 0; box-shadow: none; }
.mi-status:hover { border-color: var(--border-strong); }
.mi-status:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mi-status.warn .mi-dot { background: var(--medium); }
.mi-status.bad .mi-dot { background: var(--bear); }
.mi-tabs .mi-badge { display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 800;
  line-height: 18px; text-align: center; color: #fff; background: var(--bear); vertical-align: 1px; }
.mi-tabs .mi-badge[hidden] { display: none; }
/* KPI tiles and small chips */
.mi-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.mi-tile { position: relative; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); min-width: 0; }
.mi-tile .k { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.mi-tile .v { font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; margin: 3px 0 1px; line-height: 1.2; }
.mi-tile .s { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mi-tile .s b { font-weight: 700; }
.mi-tile .mi-spark { position: absolute; right: 10px; top: 12px; opacity: .9; }
.mi-tile.closed { opacity: .82; }
.mi-chipline { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.mi-chip { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--tint); border: 1px solid var(--border); color: var(--muted); }
.mi-chip.ok { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 35%, transparent); }
.mi-chip.warn { color: var(--medium); border-color: color-mix(in srgb, var(--medium) 40%, transparent); }
.mi-chip.bad { color: var(--bear); border-color: color-mix(in srgb, var(--bear) 35%, transparent); }
.mi-chip.live { color: #fff; background: var(--bear); border-color: var(--bear); }
.mi-chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: mi-blink 1.2s ease-in-out infinite; }
@keyframes mi-blink { 50% { opacity: .25; } }
.mi-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mi-grid2 > .mi-card { margin-bottom: 0; }
.mi-label-est { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px;
  border-radius: 4px; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--accent-border); vertical-align: 2px; }
.mi-label-data { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px;
  border-radius: 4px; color: var(--bull); border: 1px solid color-mix(in srgb, var(--bull) 40%, transparent); vertical-align: 2px; }
/* the scenario probabilities: one bar, Bullish | Neutral | Bearish, 2px gaps */
.mi-pbar { display: flex; gap: 2px; height: 30px; border-radius: 8px; overflow: hidden; margin: 8px 0 6px; background: var(--surface); }
.mi-pbar i { display: flex; align-items: center; justify-content: center; min-width: 0; font-style: normal; font-size: 12.5px; font-weight: 800; color: #fff; }
.mi-pbar i.b { background: var(--bull); } .mi-pbar i.n { background: var(--holiday); } .mi-pbar i.s { background: var(--bear); }
.mi-pbar i span { white-space: nowrap; overflow: hidden; padding: 0 4px; }
:root[data-theme="dark"] .mi-pbar i { color: #0b0e17; }
.mi-pbar.small { height: 8px; margin: 4px 0 2px; border-radius: 4px; }
.mi-pbar.small i span { display: none; }
.mi-plegend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.mi-plegend b { color: var(--text); }
.mi-plegend .b::before, .mi-plegend .n::before, .mi-plegend .s::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.mi-plegend .b::before { background: var(--bull); } .mi-plegend .n::before { background: var(--holiday); } .mi-plegend .s::before { background: var(--bear); }
.mi-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.mi-case { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); border-top: 3px solid var(--holiday); }
.mi-case.Bullish { border-top-color: var(--bull); } .mi-case.Bearish { border-top-color: var(--bear); }
.mi-case-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mi-case-h strong { font-size: 15px; }
.mi-case-p { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.mi-case dl { margin: 6px 0 0; font-size: 13px; }
.mi-case dt { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }
.mi-case dd { margin: 1px 0 0; color: var(--muted); }
.mi-aip { font-size: 11.5px; font-weight: 800; color: var(--muted); }
/* charts (inline SVG, drawn to the box's width) */
.mi-chart { position: relative; width: 100%; margin: 6px 0 4px; }
.mi-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mi-chart .grid { stroke: var(--border); stroke-width: 1; }
.mi-chart .zero { stroke: var(--border-strong); stroke-width: 1; }
.mi-chart .band { fill: var(--tint); }
.mi-chart .ax { fill: var(--muted-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.mi-chart .lbl { font-size: 11.5px; font-weight: 700; fill: var(--text); }
.mi-chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mi-chart .ln.s1 { stroke: var(--s1); } .mi-chart .ln.s2 { stroke: var(--s2); }
.mi-chart .dot { stroke: var(--surface); stroke-width: 2; }
.mi-chart .dot.s1 { fill: var(--s1); } .mi-chart .dot.s2 { fill: var(--s2); }
.mi-chart .mark { stroke: var(--muted-2); stroke-width: 1; stroke-dasharray: 3 3; }
.mi-chart .xh { stroke: var(--muted); stroke-width: 1; }
.mi-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 120px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); color: var(--muted); }
.mi-tip[hidden] { display: none; }
.mi-tip .t { font-weight: 700; color: var(--text); margin-bottom: 3px; }
.mi-tip .r { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mi-tip .r strong { color: var(--text); font-variant-numeric: tabular-nums; }
.mi-key { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; }
.mi-key.s1 { background: var(--s1); } .mi-key.s2 { background: var(--s2); }
.mi-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.mi-legend span { display: inline-flex; align-items: center; gap: 6px; }
/* bars inside a table cell (accuracy) */
.mi-hbar { position: relative; height: 8px; border-radius: 4px; background: var(--border); min-width: 80px; margin-top: 5px; overflow: hidden; }
.mi-hbar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--accent); }
.mi-rate { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.mi-rate small { font-weight: 500; color: var(--muted-2); margin-left: 4px; }
/* the effect of a macro reading on the AI's view */
.mi-eff { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.mi-eff.supports { color: var(--bull); background: color-mix(in srgb, var(--bull) 11%, transparent); }
.mi-eff.conflicts { color: var(--bear); background: color-mix(in srgb, var(--bear) 10%, transparent); }
/* alerts */
.mi-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mi-alert { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: start; padding: 11px 14px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--holiday); }
.mi-alert.high { border-left-color: var(--bear); } .mi-alert.medium { border-left-color: var(--medium); } .mi-alert.info { border-left-color: var(--accent); }
.mi-alert[data-gid] { cursor: pointer; }
.mi-alert[data-gid]:hover { border-color: var(--accent-border); }
.mi-alert .ic { font-size: 18px; line-height: 1.3; }
.mi-alert .ti { font-weight: 700; color: var(--text); }
.mi-alert .tx { grid-column: 2 / 4; font-size: 13.5px; color: var(--muted); }
.mi-alert .tm { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.mi-alert.new .ti::after { content: "NEW"; margin-left: 6px; font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 4px; color: #fff; background: var(--accent); vertical-align: 2px; }
.mi-strip { display: grid; gap: 6px; margin: 0 0 12px; }
.mi-strip .mi-alert { padding: 8px 12px; }
.mi-strip .mi-alert .tx { font-size: 13px; }
/* data health */
.mi-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.mi-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mi-state.ok { color: var(--bull); background: color-mix(in srgb, var(--bull) 11%, transparent); }
.mi-state.retrying, .mi-state.stale, .mi-state.missing { color: var(--medium); background: color-mix(in srgb, var(--medium) 12%, transparent); }
.mi-state.error { color: var(--bear); background: color-mix(in srgb, var(--bear) 10%, transparent); }
.mi-banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-lg); margin-bottom: 12px; font-size: 15px; font-weight: 700;
  border: 1px solid var(--border); background: var(--surface); }
.mi-banner.ok { border-color: color-mix(in srgb, var(--bull) 40%, transparent); }
.mi-banner.warn { border-color: color-mix(in srgb, var(--medium) 45%, transparent); }
.mi-banner.bad { border-color: color-mix(in srgb, var(--bear) 40%, transparent); }
.mi-banner small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
/* the study and the reaction */
.mi-rx-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.mi-shape { font-weight: 700; }
.mi-shape.held { color: var(--bull); } .mi-shape.faded { color: var(--medium); } .mi-shape.reversed { color: var(--bear); }
.mi-t td.c, .mi-t th.c { text-align: right; }
.mi-t tr.sim th, .mi-t tr.sim td { background: var(--accent-soft); }
.mi-res { font-size: 10.5px; font-weight: 700; color: var(--muted-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; }
.mi-vtable .first-b, .mi-vtable .final-b { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 0 6px; border-radius: 4px; margin-left: 4px; }
.mi-vtable .first-b { color: var(--accent-strong); border: 1px solid var(--accent-border); }
.mi-vtable .final-b { color: #fff; background: var(--accent); }
.mi-ps.spam, .mi-ps.dup { color: var(--muted-2); text-decoration: line-through; }
.mi-post.out { opacity: .6; }
.mi-select { width: auto; padding: 6px 10px; font-size: 13.5px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
@media (max-width: 760px) {
  .mi-grid2 { grid-template-columns: 1fr; }
  .mi-cases { grid-template-columns: 1fr; }
  .mi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mi-tile .v { font-size: 18px; }
  .mi-tile .mi-spark { display: none; }
  .mi-alert { grid-template-columns: auto 1fr; }
  .mi-alert .tm { grid-column: 2; }
  .mi-alert .tx { grid-column: 1 / 3; }
}
@media (max-width: 360px) { .mi-tiles { grid-template-columns: 1fr; } }

/* News and Upcoming (17 Nov 2026, the user's request): USD's rows first under their own heading, then the other
   currencies under theirs -- a plain heading line between the row cards, on a computer and on a phone */
table.data-table tr.news-grp td { padding: 12px 4px 0; border: 0; background: transparent; border-radius: 0;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.data-table tr.news-grp .news-grp-n { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--tint);
  color: var(--muted-2); font-weight: 700; letter-spacing: 0; }
@media (min-width: 641px) {
  table.data-table tbody tr.news-grp td, table.data-table tbody tr.news-grp td:first-child,
  table.data-table tbody tr.news-grp td:last-child { border: 0; border-radius: 0; }
}
@media (max-width: 640px) {
  table.data-table tr.news-grp { display: block; margin: 4px 0 0; padding: 0; border: 0; background: transparent; }
  table.data-table tr.news-grp td { display: block; padding: 4px 2px 2px; }
  table.data-table tr.news-grp td::before { content: none; }
}
