/* Market Consultant — subscriber website styles (from the approved design canvas, 2026-10-03).
   Written by Claude Opus 5.5 (claude-opus-5-5, via Claude Code), 2026-10-03.
   Logical properties (inline-start/end) make the same rules work in Arabic (rtl) and English (ltr). */

:root {
  --ink: #0E1A2B;
  --text: #22303F;
  --muted: #4A5568;
  --line: #D9DEE7;
  --line-soft: #EEF1F5;
  --ground: #F4F6F9;
  --panel: #FFFFFF;
  --accent: #0A5C8C;
  --accent-dark: #06405F;
  --accent-soft: #E3EEF6;
  --warm: #8A3F00;
  --warm-soft: #FBEBDD;
  --ok: #1F6B45;
  --ok-soft: #E1F1E8;
  --field: #A9B4C4;
  --night: #0E1A2B;
  --night-panel: #16263D;
  --night-line: #2C4060;
  --night-text: #C9D3E0;
  --radius: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.55 "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; line-height: 1.75; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
.mono, .num { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; }
.num { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.hidden { display: none !important; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 24px; }
.split > * { flex: 1 1 360px; min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: one dark bar, menu with an underline on the current page, a market ticker below; on narrow screens the
   menu folds into a "Menu" button (owner feedback 2026-10-04: "the menu is not professional"; Claude Opus 5.5). */
/* header.top, not .top: a page's own "top" class (a card's head) took the header's dark sticky look and covered
   the menus (owner 2026-10-22). Claude Opus 5.5. */
header.top { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
header.top .topbar { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand svg { stroke: #7FB2E5; }
.brand span { font-family: "IBM Plex Sans", sans-serif; }
/* The logo image (owner 2026-10-13; Claude Opus 5.5): white background as drawn, on a rounded light chip. */
.brand-logo { display: block; height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 3px 8px; }
.nav { display: flex; align-items: stretch; gap: 2px; flex: 1 1 auto; height: 64px; min-width: 0; }
.nav a { display: inline-flex; align-items: center; gap: 7px; color: #C9D3E0; text-decoration: none; padding: 0 12px;
         font-size: 14.5px; font-weight: 500; white-space: nowrap; position: relative; transition: color .15s, background .15s; }
.nav a svg { width: 16px; height: 16px; flex: 0 0 auto; stroke: currentColor; opacity: .85; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #7FB2E5; }
.top-actions { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; white-space: nowrap; flex: 0 0 auto; }
.top-actions .who { color: #C9D3E0; font-size: 13px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
header.top .btn { min-height: 38px; padding: 7px 16px; font-size: 14px; }
header.top .btn.quiet { color: #fff; }
header.top .btn.quiet:hover { background: rgba(255,255,255,.08); color: #fff; }
header.top .btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
header.top .btn.outline:hover { background: rgba(255,255,255,.1); color: #fff; }
header.top .btn:not(.quiet):not(.outline) { background: #2F7FB8; border-color: #2F7FB8; }
header.top .btn:not(.quiet):not(.outline):hover { background: #3A8FCB; }
.lang-toggle { background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: #fff; font: inherit; font-size: 13px;
               padding: 6px 10px; cursor: pointer; }
.lang-toggle:hover { background: rgba(255,255,255,.08); }
.menu-btn { display: none; align-items: center; gap: 8px; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff;
            border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.ticker { background: #0B1522; border-top: 1px solid rgba(255,255,255,.06); overflow: hidden; height: 34px; direction: ltr; }
.ticker-track { display: inline-flex; gap: 34px; align-items: center; height: 34px; white-space: nowrap; padding-inline-start: 24px;
                animation: ticker 50s linear infinite; font-size: 13px; color: #C9D3E0; }
.ticker-track > span { display: inline-flex; gap: 34px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item b { color: #fff; font-weight: 600; margin-inline-end: 6px; }
.ticker-item .trend.up { color: #7FC3EE; }
.ticker-item .trend.down { color: #F6B98A; }
.ticker-item .when { color: #8494A8; margin-inline-start: 6px; font-size: 12px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }   /* items are doubled */
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; padding-inline-start: 16px; } }
@media (max-width: 1500px) { .top-actions .who { display: none; } }
@media (max-width: 1440px) { .nav a svg { display: none; } .nav a { padding: 0 10px; } }
@media (max-width: 1280px) {
  .nav a svg { display: inline; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; height: auto; flex-direction: column; background: var(--night);
         border-top: 1px solid rgba(255,255,255,.08); padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; }
  .nav a[aria-current="page"] { background: rgba(127,178,229,.15); }
  .nav a[aria-current="page"]::after { inset-block: 10px; inset-inline: 0 auto; width: 3px; height: auto; border-radius: 3px; }
}
.nav .mobile-only { display: none; }
@media (max-width: 640px) {
  header.top .topbar { gap: 10px; }
  .brand span { display: none; }                      /* logo only; the menu holds the pages */
  .brand-logo { height: 36px; padding: 2px 6px; }
  .top-actions .who, .top-actions .btn.quiet, .top-actions .btn.outline { display: none; }
  .top-actions .btn { padding: 6px 12px; font-size: 13px; }
  .nav .mobile-only { display: inline-flex; border-top: 1px solid rgba(255,255,255,.1); margin-top: 6px; padding-top: 14px; }
}
.foot { background: var(--panel); border-top: 1px solid var(--line); margin-top: 48px; }
.foot .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 20px 48px; font-size: 14px; color: var(--muted); }
.foot .legal { flex: 2 1 460px; }
.foot nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }

/* buttons, chips, cards */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
       border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit;
       font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.outline { background: var(--panel); color: var(--accent); }
.btn.outline:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn.quiet { background: none; border-color: transparent; color: var(--accent); padding-inline: 6px; }
.btn.danger { background: var(--panel); color: var(--warm); border-color: var(--warm); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.icon { width: 48px; padding: 0; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
        background: var(--ground); color: var(--text); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.info { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; }
.chip.warn { background: var(--warm-soft); color: var(--warm); border-color: transparent; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.tight { padding: 16px; }
.card h2 { font-size: 20px; margin-bottom: 8px; }
.ev { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; }
.notice { background: var(--accent-soft); color: var(--accent-dark); border-radius: 10px; padding: 14px 16px; }
.notice.warn { background: var(--warm-soft); color: var(--warm); }
.notice.ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }   /* 2026-10-16, a sent reset link */
/* the site's question box, in the middle of the page (MC.ask; owner 2026-10-13; Claude Opus 5.5) */
.mc-dialog { border: 0; border-radius: 16px; padding: 24px; width: min(460px, calc(100vw - 32px)); margin: auto;
             background: var(--panel); color: var(--ink); box-shadow: 0 30px 80px rgba(15,23,42,.35); }
.mc-dialog::backdrop { background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.mc-dialog p { margin: 0 0 20px; font-size: 16px; line-height: 1.7; }
.mc-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
/* the agent's best time to call: from / to / time zone in one aligned row, labels above (owner 2026-10-13: "please
   format it"; Claude Opus 5.5) */
/* the month's summary under the scenario boxes (owner 2026-10-13; Claude Opus 5.5) */
.month-top { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 12px; padding: 10px 14px;
             background: var(--accent-soft); border-radius: 10px; color: var(--ink); }
.ag-window { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; align-items: end; }
.ag-window legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.ag-window input, .ag-window select { height: 48px; padding-block: 0; }
@media (max-width: 640px) { .ag-window { grid-template-columns: 1fr 1fr; } .ag-window .ag-zone { grid-column: 1 / -1; } }
.empty { color: var(--muted); padding: 8px 0; }

/* forms */
label { font-weight: 600; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
/* inputs written without a type (or tel / url) get the same look (owner 2026-10-12: formatting errors on the
   company pages; Claude Opus 5.5) */
/* "hidden" always hides, whatever display a class gives (owner 2026-10-22: the profile form with class "stack" stayed open
   and unfilled, and the dashboard showed under its refusal). Claude Opus 5.5. */
[hidden] { display: none !important; }

input:not([type]), input[type=tel], input[type=url],
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  font: inherit; padding: 11px 13px; border: 1px solid var(--field); border-radius: 8px; background: var(--panel); color: var(--ink);
  width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 3px solid #7FB2E5; outline-offset: 2px;
}
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }
.check label { font-weight: 400; font-size: 15px; }
.error { color: var(--warm); font-size: 14px; min-height: 1em; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 600; font-size: 14px; padding-inline: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit;
               font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* tables */
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: start; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); }
td { padding: 12px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
td.n, th.n { text-align: end; }

/* home page */
.hero { background: var(--panel); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; margin-bottom: 18px; }
.hero .lead { font-size: 19px; color: #3D4A5C; max-width: 560px; margin-bottom: 28px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
.sample { background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.metric .value { font-family: "IBM Plex Mono", monospace; font-size: 22px; direction: ltr; text-align: start; }
html[lang="ar"] .metric .value { text-align: end; }
.section { padding-block: 72px; }
.section h2 { font-size: 32px; margin-bottom: 12px; }
.section .intro { font-size: 17px; color: #3D4A5C; max-width: 720px; margin-bottom: 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.steps h3 { font-size: 18px; margin: 8px 0 6px; }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.dark { background: var(--night); color: #fff; }
.dark .intro, .dark p { color: var(--night-text); }
.dark .panel { background: var(--night-panel); border: 1px solid var(--night-line); border-radius: 14px; padding: 22px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border: 2px solid var(--accent); padding: 23px; }
.plan .price { font-family: "IBM Plex Mono", monospace; font-size: 34px; direction: ltr; unicode-bidi: isolate; }
.plan ul { margin: 0; padding-inline-start: 18px; color: #3D4A5C; display: flex; flex-direction: column; gap: 6px; flex: 1; }

/* signed-in pages */
.page { padding-block: 28px; }
/* Main column + side column on wide screens; one column below 1200px so cards get the full width. */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.layout > main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.layout > aside { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1200px) { .layout { grid-template-columns: minmax(0, 1fr); } .layout > aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.answer { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--ground); white-space: pre-wrap; }
.record-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.record-card a.title { font-weight: 600; font-size: 17px; text-decoration: none; }
.scen { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .card { padding: 18px; }
  .section { padding-block: 48px; }
  .hero .wrap { padding-block: 40px 48px; }
}

/* ---------------------------------------------------------------------------
   Indicators and dashboards (owner feedback 2026-10-03: "more alive, indicators,
   dashboards"; Claude Opus 5.5). Up = blue ▲, down = orange ▼ (differ in lightness
   and symbol, not only hue).
   --------------------------------------------------------------------------- */
.up { color: var(--accent); }
.down { color: #A14B00; }
.flat { color: var(--muted); }
.trend { font-family: "IBM Plex Mono", monospace; font-weight: 500; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
/* Cards side by side: 4 / 3 / 2 / 1 per row by width (owner feedback 2026-10-04). */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis, .kpis:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kpis, .kpis:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kpis, .kpis:has(> :nth-child(5)) { grid-template-columns: minmax(0, 1fr); } }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
       display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--accent); opacity: .85; }
.kpi.warm::before { background: #C0661A; }
.kpi.ok::before { background: var(--ok); }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .value { font-family: "IBM Plex Mono", monospace; font-size: 26px; font-weight: 500; line-height: 1.1; direction: ltr; unicode-bidi: isolate; }
.kpi .sub { font-size: 13px; color: var(--muted); }
.kpi svg.spark { width: 100%; height: 42px; display: block; margin-top: 4px; }
.pulse-band { background: var(--panel); border-block: 1px solid var(--line); }
.pulse { display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto;
         padding-block: 18px; scrollbar-width: thin; }
.tile { background: var(--ground); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex;
        flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.tile:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.tile .name { font-weight: 600; font-size: 14px; }
.tile .price { font-family: "IBM Plex Mono", monospace; font-size: 21px; direction: ltr; unicode-bidi: isolate; }
.tile .meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tile svg.spark { width: 100%; height: 38px; display: block; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.chart-box { position: relative; height: 300px; direction: ltr; }
.chart-box.short { height: 220px; }
.legend-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.range { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #F3C9A6, #E3EEF6 50%, #9CC9E6); margin: 18px 0 8px; direction: ltr; }
.range .mark { position: absolute; top: -6px; width: 3px; height: 22px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; direction: ltr; }
.gauge-row { display: grid; grid-template-columns: minmax(90px, 1fr) 3fr minmax(70px, auto); gap: 10px; align-items: center; font-size: 14px; }
.bar { height: 10px; background: var(--line-soft); border-radius: 5px; overflow: hidden; direction: ltr; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.bar.warm > span { background: #C0661A; }
.tone { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.tone.positive { background: var(--accent-soft); color: var(--accent-dark); }
.tone.negative { background: var(--warm-soft); color: var(--warm); }
.tone.neutral { background: var(--ground); color: var(--muted); border: 1px solid var(--line); }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.news-list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.news-list li:last-child { border-bottom: 0; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-inline-end: 6px;
            box-shadow: 0 0 0 0 rgba(31,107,69,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,107,69,.45); } 70% { box-shadow: 0 0 0 8px rgba(31,107,69,0); } 100% { box-shadow: 0 0 0 0 rgba(31,107,69,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } a.tile:hover { transform: none; } }

/* ---------------------------------------------------------------------------
   Card carousel (owner request 2026-10-04: cards side by side on Markets and Stock exchanges, scrolling by
   themselves from right to left, with a slider underneath; Claude Opus 5.5). The track is always laid out
   left-to-right so the motion is the same in Arabic and English; the cards keep the page's text direction.
   --------------------------------------------------------------------------- */
.carousel { position: relative; min-width: 0; }
.carousel-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; direction: ltr;
                  padding-block: 4px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 clamp(220px, 23%, 290px); scroll-snap-align: start; }
html[dir="rtl"] .carousel-track > * { direction: rtl; }
.carousel-controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; direction: ltr; }
.carousel-controls button { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
                            background: var(--panel); color: var(--accent); cursor: pointer; display: grid; place-items: center; }
.carousel-controls button:hover { background: var(--accent-soft); border-color: #9CC9E6; }
.carousel-controls button svg { width: 18px; height: 18px; stroke: currentColor; }
.carousel-controls input[type="range"] { flex: 1 1 auto; height: 6px; -webkit-appearance: none; appearance: none; border-radius: 3px;
                                         background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--line) var(--fill, 0%));
                                         cursor: pointer; padding: 0; border: 0; }
.carousel-controls input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
                                                                background: #fff; border: 3px solid var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.carousel-controls input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff;
                                                            border: 3px solid var(--accent); }
.carousel-controls .auto { font-size: 12px; color: var(--muted); white-space: nowrap; }
.carousel.static .carousel-controls { display: none; }
@media (max-width: 640px) { .carousel-track > * { flex-basis: 78%; } }
/* A row that fits without sliding starts from the reading side in Arabic. */
html[dir="rtl"] .carousel.static .carousel-track { flex-direction: row-reverse; justify-content: flex-start; }

/* "Why this range?" side panel (website/site/why.js; owner request 2026-10-04; Claude Opus 5.5) */
body.drawer-open { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14, 26, 43, .45); z-index: 90; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(620px, 100vw); background: var(--panel);
  z-index: 91; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(14, 26, 43, .25); outline: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px;
  border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; margin: 0; }
.drawer-close { border: 0; background: var(--ground); width: 40px; height: 40px; border-radius: 50%; font-size: 24px;
  line-height: 1; cursor: pointer; color: var(--ink); flex: none; }
.drawer-close:hover, .drawer-close:focus-visible { background: var(--accent-soft); }
.drawer-body { overflow-y: auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 16px; }
.drawer-body h3 { font-size: 17px; margin: 0 0 10px; }
.drawer-body h4 { font-size: 14px; margin: 14px 0 6px; color: var(--muted); }
.why-summary { background: var(--ground); border-radius: var(--radius); padding: 16px; }
.why-odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.why-odds .odd { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.why-odds .odd strong { font-size: 24px; }
.why-odds .down { background: var(--warm-soft); color: var(--warm); }
.why-odds .mid { background: var(--panel); color: var(--muted); }
.why-odds .up { background: var(--accent-soft); color: var(--accent-dark); }
.why-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.why-bars { display: flex; flex-direction: column; gap: 10px; }
.why-bar-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) 64px; gap: 10px; align-items: center; }
.why-track { position: relative; height: 12px; background: var(--line-soft); border-radius: 6px; direction: ltr; }
.why-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--field); }
.why-track span { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.why-track .pos { background: var(--accent); }
.why-track .neg { background: var(--warm); }
.why-factor { border: 1px solid var(--line); border-radius: var(--radius); }
.why-factor summary { cursor: pointer; padding: 12px 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.why-factor-body { padding: 0 16px 14px; }
.why-news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.why-table { width: 100%; border-collapse: collapse; }
.why-table th, .why-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); text-align: start; vertical-align: top; }
.why-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-bottom: 8px; }
.why-kv b { font-weight: 600; }
.drawer .chip, .scen-click .chip { white-space: normal; }
.warn-text { color: var(--warm); }
.table-wrap { overflow-x: auto; }
.scen-click { cursor: pointer; }
.scen-click:hover { box-shadow: 0 0 0 2px var(--accent-soft); }
@media (max-width: 520px) {
  .why-odds { grid-template-columns: minmax(0, 1fr); }
  .why-bar-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 56px; }
}

/* Two-day lean on dashboard cards (decision G-D16; Claude Opus 5.5, 2026-10-04) */
.tile .lean { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; font-weight: 600;
  border-radius: 8px; padding: 6px 10px; margin-top: 8px; }
.tile .lean .odds { white-space: nowrap; font-weight: 500; }
.tile .lean.up { background: var(--accent-soft); color: var(--accent-dark); }
.tile .lean.down { background: var(--warm-soft); color: var(--warm); }

/* =====================================================================================================
   Portal look (owner request 2026-10-04: follow MarketScreener's contents and screens; our own design).
   Claude Opus 5.5. Header: brand + search + account on a dark bar, sections on a second row, ticker.
   ===================================================================================================== */
header.top { box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.mast { background: var(--night); }
.mast-row { display: flex; align-items: center; gap: 18px; height: 60px; }
.mast .brand { flex: 0 0 auto; }
.search { position: relative; flex: 1 1 520px; max-width: 620px; display: flex; }
.search input { width: 100%; height: 40px; border-radius: 8px 0 0 8px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; padding: 0 14px; font: inherit; font-size: 14.5px; }
html[dir="rtl"] .search input { border-radius: 0 8px 8px 0; }
.search input::placeholder { color: #9FB0C4; }
.search input:focus { outline: 2px solid #7FB2E5; outline-offset: -1px; background: rgba(255,255,255,.12); }
.search button { width: 46px; height: 40px; border: 0; border-radius: 0 8px 8px 0; background: #2F7FB8; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
html[dir="rtl"] .search button { border-radius: 8px 0 0 8px; }
.search button svg { width: 18px; height: 18px; stroke: currentColor; }
.search-results { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--panel); color: var(--ink); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(14,26,43,.25); overflow: hidden; z-index: 60; }
.search-results a { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.search-results a:hover, .search-results a:focus { background: var(--accent-soft); }
.search-results p { padding: 12px 14px; margin: 0; font-size: 14px; }
.subnav { background: var(--night-panel); border-top: 1px solid rgba(255,255,255,.06); }
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { color: #C9D3E0; text-decoration: none; padding: 11px 13px; font-size: 14px; font-weight: 500; white-space: nowrap; position: relative; }
.subnav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.subnav a[aria-current="page"] { color: #fff; font-weight: 600; }
.subnav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #7FB2E5; }
.subnav .mobile-only { display: none; }
.mast .menu-btn { display: none; padding: 8px; }
@media (max-width: 1100px) { .top-actions .who { display: none; } }
@media (max-width: 860px) {
  .mast-row { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 10px; }
  .search { order: 5; flex: 1 1 100%; max-width: none; }
  .mast .menu-btn { display: inline-flex; }
  .subnav { display: none; }
  .subnav.open { display: block; }
  .subnav .wrap { flex-direction: column; padding-block: 8px; }
  .subnav a { padding: 12px 10px; border-radius: 8px; }
  .subnav a[aria-current="page"] { background: rgba(127,178,229,.15); }
  .subnav a[aria-current="page"]::after { display: none; }
  .subnav .mobile-only { display: block; border-top: 1px solid rgba(255,255,255,.1); margin-top: 6px; }
}
@media (max-width: 640px) {
  .top-actions .btn.quiet, .top-actions .btn.outline { display: none; }
}

/* Portal components */
.portal { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.portal > div { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 1000px) { .portal { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: #FAFBFD; }
.panel-head h2 { font-size: 16px; margin: 0; letter-spacing: .01em; }
.panel-head a { font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.panel-body { padding: 4px 0; }
.panel-note { padding: 14px 16px; font-size: 14px; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.feed li:last-child { border-bottom: 0; }
.feed a.title { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.feed a.title:hover { color: var(--accent); text-decoration: underline; }
.feed .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.sym { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }
.chg { font-family: "IBM Plex Mono", monospace; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.chg.up { color: var(--accent); }
.chg.down { color: var(--warm); }
.qtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.qtable th { text-align: start; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 16px; border-bottom: 1px solid var(--line); }
.qtable td { padding: 9px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.qtable tr:last-child td { border-bottom: 0; }
.qtable td.n, .qtable th.n { text-align: end; font-family: "IBM Plex Mono", monospace; white-space: nowrap; }
.qtable a { color: var(--ink); text-decoration: none; font-weight: 600; }
.qtable a:hover { color: var(--accent); }
.qtable .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.ptabs { display: flex; gap: 4px; }
.ptabs button { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 13px;
  cursor: pointer; color: var(--muted); }
.ptabs button[aria-selected="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.headline { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; background: var(--night); color: #fff;
  border-radius: 10px; overflow: hidden; }
.headline .main { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.headline .main h2 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; margin: 0; }
.headline .main p { color: var(--night-text); margin: 0; }
.headline .main a { color: #9CCBF0; }
.headline .side { background: var(--night-panel); padding: 14px 0; }
.headline .side a { display: block; padding: 8px 20px; color: #DCE4EE; text-decoration: none; font-size: 14px; line-height: 1.4; }
.headline .side a:hover { color: #fff; background: rgba(255,255,255,.05); }
.headline .side .meta { display: block; font-size: 12px; color: #8EA0B6; margin-top: 2px; }
@media (max-width: 760px) { .headline { grid-template-columns: minmax(0, 1fr); } }
.lean-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.lean-chip.up { background: var(--accent-soft); color: var(--accent-dark); }
.lean-chip.down { background: var(--warm-soft); color: var(--warm); }
.lean-chip.flat { background: var(--line-soft); color: var(--muted); }
.headline .lean-chip.up { background: rgba(127,178,229,.2); color: #BFDDF6; }
.headline .lean-chip.down { background: rgba(246,185,138,.18); color: #F6C9A6; }
.promo { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--accent-soft);
  border-radius: 10px; padding: 14px 18px; }
.promo p { margin: 0; color: var(--accent-dark); }
.promo[hidden] { display: none; }
.portal-page { padding-block: 20px 8px; }
.portal-title { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.portal-title h1 { font-size: clamp(24px, 3vw, 30px); margin: 0; }
.filter { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; min-width: 220px; }

/* Section tabs inside a page (owner decision 2026-10-04: one place for each piece of information). */
.page-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.page-tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.page-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.guide { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.guide h2 { font-size: 16px; margin: 0 0 10px; }
.guide ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* Every card group is a sliding row (owner request 2026-10-05): whatever grid the group had, inside a carousel it is
   one row of cards side by side. */
.carousel.auto > .carousel-track { display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap; }
.carousel.auto > .carousel-track > * { flex: 0 0 clamp(240px, 37%, 400px); min-width: 0; }   /* 3+ cards always slide */
.carousel.auto > .kpis.carousel-track > *, .carousel.auto > .counters.carousel-track > * { flex-basis: clamp(170px, 24%, 240px); }
@media (max-width: 640px) { .carousel.auto > .carousel-track > * { flex-basis: 80%; } }
.dark .carousel-controls button, .how-hero .carousel-controls button { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }

/* Reasons panel: the plain-language conclusion first (2026-10-05). */
.why-plain .why-headline { font-size: 17px; line-height: 1.5; margin: 6px 0 8px; }
.why-plain p, .why-plain li { line-height: 1.6; }
.why-reasons { padding-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.why-reasons .chip { margin-inline-start: 6px; font-size: 11.5px; }
.why-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 8px 0; }
.why-case { border-radius: 10px; padding: 10px 12px; }
.why-case h4 { margin: 0 0 4px; font-size: 13.5px; }
.why-case p { margin: 0; font-size: 14px; }
.why-case.pess { background: var(--warm-soft); }
.why-case.opt { background: var(--accent-soft); }
.why-data { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.why-data > summary { cursor: pointer; font-weight: 600; color: var(--accent-dark); padding: 6px 0; }
.plain-card .why-cases { margin-top: 10px; }

/* The analysis against what happened (owner 2026-10-15: "a comparison with the real situation after the analysis
   period; the button with the readings opens the reasons for the difference or the match"; Claude Opus 5.5) */
.mc-dialog.wide { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.mc-dialog-body { margin-bottom: 18px; }
.mc-dialog-body h3 { margin: 0 0 6px; font-size: 19px; }
.mc-dialog-body h4 { margin: 18px 0 6px; font-size: 15px; }
.mc-dialog-body ul { margin: 0; padding-inline-start: 20px; line-height: 1.7; }
.lean-btn { all: unset; cursor: pointer; border-radius: 999px; }
.lean-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lean-btn:hover .lean-chip { filter: brightness(.96); box-shadow: 0 0 0 1px currentColor inset; }
.result-banner { padding: 10px 14px; border-radius: 12px; font-weight: 700; margin: 10px 0 14px; }
.result-banner.ok { background: var(--ok-soft); color: var(--ok); }
.result-banner.warn { background: var(--warm-soft); color: var(--warm); }
.result-banner.flat { background: var(--line-soft); color: var(--muted); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }
.compare > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.compare dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0 0; font-size: 14px; }
.compare dt { color: var(--muted); }
.compare dd { margin: 0; font-weight: 600; }
.range-track { position: relative; height: 10px; border-radius: 6px; background: var(--line-soft); margin: 26px 8px 30px; }
.range-track .band { position: absolute; top: 0; bottom: 0; background: var(--accent-soft); border-radius: 6px; }
.range-track .mark { position: absolute; top: -5px; width: 4px; height: 20px; border-radius: 2px; transform: translateX(-50%); }
.range-track .mark.start { background: var(--muted); }
.range-track .mark.end { background: var(--ink); }
.range-track .mark span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap;
                          font-size: 11.5px; color: var(--muted); }
.range-track .mark.end span { top: -20px; color: var(--ink); font-weight: 700; }
.compare bdi, .compare .num { white-space: nowrap; }   /* a date never breaks at its hyphen (2026-10-15) */
.result-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }   /* the analysis page: compare with what happened (2026-10-15) */
/* Sign in with Google / Facebook (owner 2026-10-16; Claude Opus 5.5) */
.social-btn { display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 600; }
.or-line { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* A question to correct before it is analysed (2026-10-16, Claude Opus 5.5) */
.answer.warn-box { background: var(--warm-soft); color: var(--warm); }
.btn.small { padding: 6px 12px; font-size: 13px; }

/* The plans waiting for payment on the dashboard (2026-10-18, Claude Opus 5.5) */
.pc-pending { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #FEF3C7; color: #92400E; }
.pc-pending-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.pc-req { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-top: 1px solid rgba(146, 64, 14, 0.18); }
.pc-pending-title + .pc-req { border-top: 0; padding-top: 6px; }
.pc-req-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.pc-req-text span { font-size: 13px; opacity: 0.85; }
.pc-req .btn.small { flex: none; padding: 6px 14px; font-size: 13px; min-height: 0; }

/* Exit survey in the close-account form (2026-10-18, Claude Opus 5.5) */
.close-survey { border: 1px solid var(--line, #E5E7EB); border-radius: 12px; padding: 12px 14px; margin: 4px 0 0; }
.close-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 14px; margin-top: 8px; }
.close-reasons .check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.close-survey textarea { width: 100%; resize: vertical; }

/* The language menu and the Chinese font (2026-10-19: Spanish, French, German, Chinese, Turkish, Russian; Claude Opus 5.5) */
.lang-menu { position: relative; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; }
.lang-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.lang-list { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; min-width: 170px; background: #fff;
  border: 1px solid var(--line, #E5E7EB); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 6px;
  display: flex; flex-direction: column; gap: 2px; }
.lang-list[hidden] { display: none; }
.lang-list button { all: unset; cursor: pointer; padding: 8px 12px; border-radius: 8px; color: #0E1A2B; font-size: 14px; font-weight: 600; }
.lang-list button:hover { background: #E3EEF6; }
.lang-list button[aria-pressed="true"] { background: #0A5C8C; color: #fff; }
html[lang="zh-CN"] body, html[lang="zh-CN"] button, html[lang="zh-CN"] input, html[lang="zh-CN"] select, html[lang="zh-CN"] textarea {
  font-family: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }

/* the page is being translated (site.js liveNote, 2026-10-19) */
.live-note { position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 60; background: #0F1B2D; color: #fff;
  font-size: 13px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(15, 27, 45, .25); }
.live-note[hidden] { display: none; }
