@charset "UTF-8";
/* /results/ — builds on /styles.css + /real/real.css (hero, badge, sections, buttons) */
:root { --loss: #D04E5E; }

.res-title {
  margin: 22px auto 0; max-width: 18ch; text-align: center; font-weight: 800; font-size: clamp(32px, 6vw, 60px);
  line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; animation: fadeUp .9s var(--ease) .12s both;
}
.res-lead { margin: 16px auto 0; max-width: 54ch; text-align: center; font-size: 17px; line-height: 1.55; color: #dfe2e8; animation: fadeUp .9s var(--ease) .24s both; }

.res { position: relative; padding: 10px 0 70px; }
.res-tabs { min-height: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 26px; }
.res-tabs button, .res-presets button, .res-pager button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 800; color: #fff; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12);
  transition: border-color .2s, background .2s, color .2s;
}
.res-tabs button:hover, .res-presets button:hover { border-color: rgba(214,179,109,.5); }
.res-tabs button.is-on, .res-presets button.is-on { border-color: var(--gold); background: rgba(214,179,109,.13); color: var(--gold-hi); }
.res-tabs button:focus-visible, .res-presets button:focus-visible, .res-pager button:focus-visible, .res-hm-cell:focus-visible,
.res-filters input:focus-visible, .res-filters select:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.res-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: rPulse 1.8s ease-in-out infinite; }

.res-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; scroll-margin-top: 16px; }
.res-acc-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.res-badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #1A1408; background: var(--gold); }
.res-acc-sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.res-updated { margin: 0; font-size: 13px; color: #8b919c; }

/* filters: one row above everything they scope */
.res-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 18px; padding: 14px; border-radius: 16px; background: #121820; border: 1px solid rgba(214,179,109,.18); }
.res-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.res-presets button { min-height: 40px; padding: 8px 14px; font-size: 13.5px; }
.res-dates { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); }
.res-filters input[type="date"], .res-filters select {
  min-height: 40px; padding: 6px 10px; border-radius: 10px; font: inherit; font-size: 14px; color: #fff; color-scheme: dark;
  background: var(--bg); border: 1px solid rgba(214,179,109,.35);
}

/* KPI tiles */
.res-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .res-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .res-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.res-kpi { padding: 16px 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(18,24,32,.92), rgba(10,13,19,.96)); border: 1px solid rgba(214,179,109,.2); }
.res-kpi span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.res-kpi b { display: block; margin-top: 8px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.01em; color: #fff; }
.res-kpi--main { border-color: rgba(214,179,109,.5); }
.res-kpi b[data-sign="pos"] { color: var(--gold-hi); }
.res-kpi b[data-sign="neg"] { color: #ec8f97; }

/* panels */
.res-panel { margin-top: 14px; padding: 20px 18px; border-radius: 18px; background: #121820; border: 1px solid rgba(214,179,109,.18); }
.res-panel h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.res-panel-sub { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }

/* equity chart */
.res-chart-wrap { position: relative; }
.res-chart { display: block; width: 100%; height: clamp(220px, 34vw, 340px); touch-action: pan-y; }
.res-grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.res-grid.is-zero { stroke: rgba(255,255,255,.28); }
.res-axis { fill: #8b919c; font-size: 11.5px; font-family: 'Manrope', system-ui, sans-serif; }
.res-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.res-hair { stroke: rgba(243,220,162,.55); stroke-width: 1; }
.res-dot { fill: var(--gold-hi); stroke: #121820; stroke-width: 2; }
.res-tip {
  position: absolute; transform: translate(-50%, -100%); pointer-events: none; padding: 7px 10px; border-radius: 10px; white-space: nowrap;
  background: rgba(8,11,18,.95); border: 1px solid rgba(214,179,109,.45); box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.res-tip b { display: block; font-size: 15px; font-weight: 800; color: #fff; }
.res-tip span { font-size: 12px; color: var(--muted); }

/* monthly heatmap */
.res-hm { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.res-hm-row { display: grid; grid-template-columns: 52px repeat(12, minmax(54px, 1fr)) 70px; gap: 4px; min-width: 820px; margin-bottom: 4px; }
.res-hm-head span { font-size: 11.5px; font-weight: 700; color: #8b919c; text-align: center; padding: 4px 0; }
.res-hm-year { align-self: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.res-hm-total { align-self: center; text-align: right; font-size: 13px; font-weight: 800; color: #fff; }
.res-hm-cell {
  min-height: 40px; padding: 4px 2px; border-radius: 8px; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.04); transition: box-shadow .15s, filter .15s;
}
.res-hm-cell[data-sign="pos"] { background: rgba(214,179,109,var(--a)); color: #fff; }
.res-hm-cell[data-sign="neg"] { background: rgba(208,78,94,var(--a)); }
.res-hm-cell[data-sign="zero"] { background: rgba(191,196,206,.14); color: var(--muted); }
.res-hm-cell[data-sign="none"] { color: #4b515c; cursor: default; }
.res-hm-cell:not(:disabled):hover { box-shadow: inset 0 0 0 1.5px var(--gold-hi); filter: brightness(1.1); }
.res-hm-note { margin: 10px 0 0; font-size: 12.5px; color: #8b919c; }

/* trades table */
.res-trades-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.res-tcount { font-size: 13px; color: var(--muted); }
.res-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.res-table th { padding: 10px 8px; text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid rgba(214,179,109,.25); }
.res-table td { padding: 11px 8px; border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; }
.res-table th:last-child, .res-table td:last-child { text-align: right; }
.res-table td[data-sign="pos"] { color: var(--gold-hi); font-weight: 800; }
.res-table td[data-sign="neg"] { color: #ec8f97; font-weight: 800; }
.res-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.res-pager button { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.res-pager button:disabled { opacity: .35; cursor: default; }

.res-note { margin: 22px auto 0; max-width: 76ch; text-align: center; font-size: 13px; line-height: 1.6; color: #8b919c; }
.res-error { margin: 20px 0; text-align: center; color: var(--gold-hi); }

@media (max-width: 640px) {
  .res-dates { margin-left: 0; width: 100%; }
  .res-dates input { flex: 1; min-width: 0; }
  .res-panel { padding: 16px 12px; }
  .res-table { font-size: 13.5px; }
  .res-table th, .res-table td { padding: 10px 5px; }
}
@media (prefers-reduced-motion: reduce) { .res-live-dot { animation: none; } }
.res-hm-cell small { display: none; }
.res-hm-cell span { display: block; }
/* phones: each year is a 4 x 3 grid of named months, no sideways scrolling */
@media (max-width: 719px) {
  .res-hm { overflow: visible; }
  .res-hm-head { display: none; }
  .res-hm-row { grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; gap: 6px; margin-bottom: 18px; }
  .res-hm-year { grid-column: 1 / -1; font-size: 15px; color: #fff; }
  .res-hm-total { grid-column: 1 / -1; text-align: left; font-size: 13.5px; color: var(--muted); }
  .res-hm-total::before { content: attr(data-label); }
  .res-hm-cell { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
  .res-hm-cell small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
}
.res-verify { display: inline-block; margin-left: 12px; font-weight: 700; color: var(--gold); text-decoration: none; }
.res-verify:hover { color: var(--gold-hi); text-decoration: underline; }
@media (max-width: 640px) { .res-verify { display: block; margin: 6px 0 0; } .res-verify[hidden] { display: none; } }

/* note under the account title: gold for the live account, neutral for archived ones */
.res-acc-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; color: #dfe2e8; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-left: 3px solid #8b919c; }
.res-acc-note[data-kind="live"] { border-color: rgba(214,179,109,.3); border-left-color: var(--gold); background: rgba(214,179,109,.06); }

/* KPI/chart text placeholders keep their height before the data arrives (no layout shift) */
.res-chart-wrap { min-height: clamp(220px, 34vw, 340px); }
