:root {
    --max-width: 980px;
    --pad: 18px;
    --border: rgba(0, 0, 0, 0.12);
    --text: #111;
    --muted: rgba(0, 0, 0, 0.65);
    --bg: #ffffff;
  }
  
  * { box-sizing: border-box; }
  
  body {
    margin: 0;
    font-family: 'Utopia Std', serif;
    color: var(--text);
    background: var(--bg);
    font-family: 'Utopia Std', serif;
  }
  
  .page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad) calc(var(--pad) * 1.5);
  }
  
  .header {
    margin-bottom: 14px;
    font-weight: 900;
    font-family: 'Utopia Std Bold', serif;
  }
  
  .title {
    font-size: clamp(22px, 3vw, 34px);
    margin: 0 0 8px 0;
    line-height: 1.15;
    font-family: 'Utopia Std', serif;
  }
  
  .subtitle {
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.45;
    max-width: 70ch;
    font-family: 'Utopia Std', serif;
  }
  
  .controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
    flex-wrap: wrap;
  }
  
  .label {
    font-weight: 600;
    font-size: 16px;
  }
  
  .select {
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    min-width: 240px;
  }
  
  .chart-wrap {
    /* ✅ border removed per your request */
    border: none;
    border-radius: 16px;
    padding: 12px 12px 6px;
  }
  
  .chart {
    width: 100%;
  }
  
  /* Footer row under the chart: left text + right logo */
  .note-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px 2px;
  }
  
  .note {
    color: var(--muted);
    font-size: 12px;
  }
  
  .logo {
    height: 42px;       /* adjust if you want bigger/smaller */
    width: auto;
    display: block;
    opacity: 0.95;
  }
  
  .mono {
    font-family: 'Utopia Std', serif;
  }
  
  /* Axis + chart text */
  .axis text {
    font-size: 12px;
    fill: rgba(0, 0, 0, 0.7);
  }
  
  .axis path,
  .axis line {
    stroke: rgba(0, 0, 0, 0.25);
  }
  
  .grid line {
    stroke: rgba(0, 0, 0, 0.10);
  }
  
  .grid path {
    stroke: none;
  }
  
  /* Tooltip */
  .tooltip {
    position: absolute;
    pointer-events: none;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    color: var(--text);
    transform: translate(-50%, -120%);
    white-space: nowrap;
    opacity: 0;
  }
  
  /* Small-screen polish */
  @media (max-width: 520px) {
    .select {
      min-width: 100%;
    }
    .logo {
      height: 20px;
    }
  }