@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root{
  color-scheme: light;

  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);

  --bg: #f8fafc;
  --card: rgba(255,255,255,0.88);
  --border: rgba(148,163,184,0.22);

  --text: #0f172a;
  --muted: #64748b;
  --muted2: #94a3b8;

  --pos: #16a34a;
  --neg: #dc2626;

  --shadow-sm: 0 4px 14px rgba(2, 8, 23, 0.06);
  --shadow-md: 0 16px 40px rgba(2, 8, 23, 0.08);
  --shadow-lg: 0 28px 70px rgba(2, 8, 23, 0.10);

  --radius: 18px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

body{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1100px 520px at 15% 5%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(900px 420px at 86% 10%, rgba(124, 58, 237, 0.10), transparent 58%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 45%, #f8fbff 100%);
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.container{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted{ color: var(--muted); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.positive{ color: var(--pos); }
.negative{ color: var(--neg); }

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand:focus-visible{
  outline: 2px solid rgba(37,99,235,0.35);
  outline-offset: 4px;
  border-radius: 16px;
}

.brand-mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: 0 16px 40px rgba(37,99,235,0.18);
}

.brand-title{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-subtitle{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-right{
  display:flex;
  align-items:center;
  gap: 16px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,0.25);
  background: rgba(34,197,94,0.08);
  color: #166534;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34,197,94,0.12);
}

.header-meta{
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.meta-line{ white-space: nowrap; }

/* Main */
.main{
  padding: 28px 0 64px;
}

.dashboard-header{
  text-align: center;
  margin: 18px 0 26px;
  position: relative;
}

.dashboard-header h1{
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-header .subtitle{
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.error-banner{
  margin: 0 auto 20px;
  max-width: 980px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.18);
  color: #7f1d1d;
  font-weight: 750;
}

/* Cards */
.summary-cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.card{
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  overflow: hidden;
  /* tone system (set by JS): 0=red, 120=green */
  --tone-h: 215;
  --tone-a: 0;
}

.card.toned{
  background:
    linear-gradient(135deg,
      hsla(var(--tone-h), 78%, 56%, calc(0.10 * var(--tone-a))),
      hsla(var(--tone-h), 78%, 56%, calc(0.06 * var(--tone-a)))
    ),
    rgba(255,255,255,0.86);
}

.card.toned h3{
  color: rgba(15, 23, 42, 0.55);
}
.card.toned .subtitle{
  color: rgba(15, 23, 42, 0.50);
}
.card.toned .value{
  color: rgba(15, 23, 42, 0.96);
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.24);
}

.card.primary{
  background:
    linear-gradient(135deg, rgba(37,99,235,0.10), rgba(124,58,237,0.08)),
    rgba(255,255,255,0.86);
  border-color: rgba(37,99,235,0.25);
  position: relative;
  overflow: hidden;
}

/* Basis-like glow, but keep text readable */
.card.primary::after{
  content:'';
  position:absolute;
  inset: -60px -60px auto auto;
  width: 520px;
  height: 320px;
  background:
    radial-gradient(260px 180px at 35% 45%, rgba(37,99,235,0.18), transparent 70%),
    radial-gradient(220px 160px at 65% 55%, rgba(124,58,237,0.14), transparent 72%);
  transform: rotate(-10deg);
  pointer-events:none;
}

.card.primary h3{
  color: rgba(15, 23, 42, 0.55);
}

.card.primary .value{
  color: rgba(15, 23, 42, 0.96);
  font-size: clamp(34px, 3.0vw, 46px);
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255,255,255,0.65);
}

.card.primary .subtitle{
  color: rgba(15, 23, 42, 0.55);
  font-weight: 800;
}

@media (max-width: 768px){
  .card.primary .value{ font-size: 34px; }
}

.metrics-window-row{
  display:flex;
  align-items:center;
  justify-content: flex-end;
  gap: 12px;
  margin: 6px 0 22px;
  flex-wrap: wrap;
}
.metrics-window-label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.metrics-window-controls{ margin: 0; }

.card h3{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.value{
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.percentage{
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.subtitle{
  font-size: 12px;
  color: var(--muted2);
}

/* Layout */
.two-col{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

@media (max-width: 1100px){
  .two-col{ grid-template-columns: 1fr; }
}

/* Charts */
.chart-section{
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
  border: 1px solid rgba(226,232,240,0.85);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.chart-section:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.25);
}

.chart-header{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.chart-header h2{
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.small{ font-size: 12px; font-weight: 750; }

.chart-controls{
  display:flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}

.time-button{
  border: 1px solid transparent;
  background: transparent;
  cursor:pointer;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  min-height: 38px;
}

.time-button:hover{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.20);
  color: var(--text);
  transform: translateY(-1px);
}

.time-button.active{
  background: var(--gradient);
  border-color: rgba(37,99,235,0.35);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37,99,235,0.22);
}

.chart-container{
  position: relative;
  height: 420px;
  width: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 14px;
  border: 1px solid rgba(226,232,240,0.80);
}

/* Hit rate table */
.mini-table{
  overflow:auto;
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,0.85);
  background: rgba(255,255,255,0.85);
  box-shadow: var(--shadow-sm);
}

.mini-table table{
  width:100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(226,232,240,0.85);
  white-space: nowrap;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.mini-table tr:last-child td{ border-bottom: 0; }

/* Download panel */
.download-panel{
  border-radius: 24px;
  border: 1px solid rgba(37,99,235,0.16);
  background:
    radial-gradient(900px 240px at 10% 10%, rgba(37,99,235,0.10), transparent 60%),
    radial-gradient(700px 200px at 90% 25%, rgba(124,58,237,0.10), transparent 55%),
    rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  padding: 16px;
}

.download-panel-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dw-presets{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dw-presets button{
  border:1px solid rgba(37,99,235,0.16);
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 9px 12px;
  cursor:pointer;
  font-size: 12px;
  font-weight: 900;
  color: #1e293b;
  box-shadow: 0 10px 24px rgba(2,8,23,0.06);
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}

.dw-presets button:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(2,8,23,0.10);
  border-color: rgba(37,99,235,0.25);
}

.dw-presets button.active{
  border-color: rgba(37,99,235,0.35);
  background: rgba(37,99,235,0.08);
  color: #1d4ed8;
}

.dw-note{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.14);
  background: rgba(37,99,235,0.07);
  color: #1d4ed8;
  font-weight: 900;
  font-size: 12px;
}

.download-panel-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 12px;
}

@media (max-width: 900px){
  .download-panel-grid{ grid-template-columns: 1fr; }
}

.dw-label{
  display:block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dw-range{
  display:flex;
  align-items:center;
  gap: 8px;
}

.dw-sep{
  color: var(--muted2);
  font-size: 12px;
  font-weight: 800;
}

input[type="date"], select{
  appearance: none;
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  width: 100%;
}

.dw-cta{
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
}

.primary{
  background: var(--gradient);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 950;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(37,99,235,0.22);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  min-width: 160px;
}

.primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 26px 60px rgba(37,99,235,0.30);
  filter: brightness(1.02);
}

.primary:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Monthly tiles */
.heatmap{
  display:grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 14px;
}

@media (max-width: 1100px){
  .heatmap{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 650px){
  .heatmap{ grid-template-columns: 1fr; }
}

.month-card{
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,0.9);
  background: #ffffff;
  box-shadow: 0 14px 44px rgba(2,8,23,0.08);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
}

.month-card.pos{
  background:
    radial-gradient(420px 140px at 10% 10%, rgba(22, 163, 74, 0.16), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, rgba(22, 163, 74, 0.05) 100%);
  border-color: rgba(22, 163, 74, 0.22);
}

.month-card.neg{
  background:
    radial-gradient(420px 140px at 10% 10%, rgba(220, 38, 38, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, rgba(220, 38, 38, 0.04) 100%);
  border-color: rgba(220, 38, 38, 0.20);
}

.month-name{
  font-weight: 950;
  letter-spacing: -0.01em;
  color: #0f172a;
  font-size: 14px;
}

.month-val{
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Ghost button (header / info CTA) */
.ghost-btn{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.75);
  color: var(--text);
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.ghost-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.24);
  background: rgba(255,255,255,0.92);
}
.ghost-btn:active{ transform: translateY(0); box-shadow: var(--shadow-sm); }
.ghost-btn:focus{ outline: none; }
.ghost-btn:focus-visible{
  outline: 2px solid rgba(37,99,235,0.35);
  outline-offset: 3px;
}

/* Password lock screen */
html.locked .app-shell{ display: none !important; }
html:not(.locked) .lock-screen{ display: none !important; }

.lock-screen{
  min-height: 100vh;
  display:flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.lock-card{
  width: min(520px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(226,232,240,0.90);
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 90px rgba(2, 8, 23, 0.12);
  padding: 18px;
}

.lock-title{
  font-weight: 950;
  letter-spacing: -0.03em;
  font-size: 18px;
}
.lock-subtitle{ margin-top: 6px; font-weight: 650; }

.lock-form{ margin-top: 14px; display:flex; flex-direction: column; gap: 10px; }
.lock-label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lock-input{
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,0.95);
  font-weight: 800;
  font-size: 16px;
}
.lock-input:focus{ outline: none; }
.lock-input:focus-visible{
  outline: 2px solid rgba(37,99,235,0.35);
  outline-offset: 3px;
}
.lock-submit{ width: 100%; }
.lock-error{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(220,38,38,0.18);
  background: rgba(220,38,38,0.08);
  color: #7f1d1d;
  font-weight: 850;
}
.lock-foot{ margin-top: 10px; }

/* Strategy overview section */
.info-section{
  position: relative;
  overflow: hidden;
}
.info-section::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(800px 240px at 10% 10%, rgba(37,99,235,0.10), transparent 60%),
    radial-gradient(700px 220px at 90% 15%, rgba(124,58,237,0.08), transparent 55%);
  opacity: 0.9;
}
.info-section > *{ position: relative; }

.eyebrow{
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.info-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.info-left h2{
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.info-subtitle{
  max-width: 80ch;
  font-weight: 650;
}

.pill-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.16);
  background: rgba(255,255,255,0.78);
  color: rgba(15, 23, 42, 0.86);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.highlight-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 1100px){
  .highlight-grid{ grid-template-columns: 1fr; }
}

.info-card{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(226,232,240,0.85);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-sm);
}

.info-card-title{
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: 14px;
  margin-bottom: 10px;
}

.bullets{
  list-style: none;
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.bullets li{
  position: relative;
  padding-left: 16px;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
}
.bullets li::before{
  content:'';
  position:absolute;
  left:0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(37,99,235,0.9);
  box-shadow: 0 0 0 5px rgba(37,99,235,0.12);
}

.sleeve-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sleeve-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,0.85);
  background: rgba(255,255,255,0.76);
  font-weight: 900;
  color: rgba(15, 23, 42, 0.84);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.sleeve-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(124,58,237,0.9);
  box-shadow: 0 0 0 6px rgba(124,58,237,0.14);
}

.team-mini{
  margin-top: 14px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,0.85);
  background: rgba(255,255,255,0.80);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.team-photo{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(226,232,240,0.85);
  box-shadow: 0 18px 44px rgba(2,8,23,0.10);
  flex: 0 0 auto;
}

.team-avatar{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 44px rgba(37,99,235,0.18);
  flex: 0 0 auto;
}

.team-name{
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: 14px;
}

.team-desc{
  margin-top: 6px;
  font-weight: 650;
}

.tag-row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.14);
  background: rgba(255,255,255,0.78);
  color: rgba(15, 23, 42, 0.82);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.info-footnote{ margin-top: 12px; }

/* Factsheet button (placed next to Download) */
.factsheet-btn{
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.20);
  background: rgba(255,255,255,0.92);
  color: rgba(15,23,42,0.85);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(2,8,23,0.08);
  font-weight: 950;
  letter-spacing: 0.02em;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.factsheet-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(2,8,23,0.12);
  border-color: rgba(37,99,235,0.28);
  background: rgba(255,255,255,0.98);
}
.factsheet-btn:active{ transform: translateY(0); box-shadow: 0 12px 28px rgba(2,8,23,0.08); }
.factsheet-btn[disabled]{ cursor:not-allowed; opacity: 0.6; transform:none !important; box-shadow:none !important; }

/* Hide legacy team/profile styling if unused */
.team-mini, .team-photo, .team-avatar { display: none; }

/* Footer */
.footer{
  margin: 18px 0 40px;
}

.disclaimer{
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,0.9);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  color: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-right{ width: 100%; justify-content: space-between; }
  .chart-header{ flex-direction: column; align-items: flex-start; }
  .chart-container{ height: 320px; }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

