:root {
      --bg: #090d14;
      --panel: #121925;
      --panel-2: #0b111b;
      --text: #f5f7fb;
      --muted: #8f9bad;
      --accent: #49e6b1;
      --accent-2: #4ea3ff;
      --danger: #ff6262;
      --shadow: rgba(0, 0, 0, .48);
    }

    * { box-sizing: border-box; }

    body {
      min-height: 100vh;
      margin: 0;
      display: grid;
      place-items: center;
      padding: 24px;
      overflow-x: hidden;
      color: var(--text);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at 50% 25%, rgba(78, 163, 255, .13), transparent 36%),
        radial-gradient(circle at 25% 85%, rgba(73, 230, 177, .08), transparent 30%),
        var(--bg);
    }

    .app {
      width: min(500px, 100%);
      padding: 10px;
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 30px;
      background: linear-gradient(145deg, rgba(22, 31, 45, .96), rgba(8, 13, 21, .98));
      box-shadow:
        0 35px 90px var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    }

    header {
      text-align: center;
      margin-bottom: 16px;
    }

    h1 {
      margin: 0;
      font-size: clamp(1.35rem, 4vw, 2rem);
      letter-spacing: -.03em;
    }
    a {
      color: var(--accent);
      text-decoration: none;
    }

    .subtitle {
      margin: 7px 0 0;
      color: var(--muted);
      font-size: .95rem;
    }

    .gauge-wrap {
      position: relative;
      width: min(400px, 100%);
      overflow: hidden;
      height: auto;
      margin: 0 auto;
      
    }

    .gauge {
      display: block;
      width: 100%;
      height: auto;
      max-height: 490px;
    }

    .rim {
      fill: url(#dialGradient);
      stroke: rgb(209, 255, 166);
      stroke-width: 4;
    }

    .inner-ring {
      fill: none;
      stroke: rgba(255,255,255,.055);
      stroke-width: 4;
    }

    .arc-bg {
      fill: none;
      stroke: rgb(136 163 111);
      stroke-width: 16;
      stroke-linecap: round;
    }

    .arc-live {
      fill: none;
      stroke: url(#arcGradient);
      stroke-width: 16;
      stroke-linecap: round;
      stroke-dasharray: 1;
      stroke-dashoffset: 1;
      transition: stroke-dashoffset .18s linear;
    }

    .tick {
      stroke: rgba(255,255,255,.55);
      stroke-width: 2;
      stroke-linecap: round;
    }

    .tick.major {
      stroke: rgba(255,255,255,.95);
      stroke-width: 3.4;
    }

    .label {
      fill: #ffffff;
      font-size: 15px;
      font-weight: 700;
      text-anchor: middle;
      dominant-baseline: middle;
    }

    .needle {
      transform-origin: 300px 300px;
      transform: rotate(-130deg);
      transition: transform .18s cubic-bezier(.22,.9,.25,1);
      filter: drop-shadow(0 0 7px rgba(255, 98, 98, .5));
    }

    .needle-line {
      fill: var(--danger);
    }

    .hub-outer {
      fill: #222d3b;
      stroke: rgba(255,255,255,.25);
      stroke-width: 3;
    }

    .hub-inner {
      fill: #ecf2f8;
    }

    .readout {
      position: absolute;
      left: 50%;
      bottom: 0;
      width: 52%;
      transform: translateX(-50%);
      text-align: center;
      pointer-events: none;
      /*border: 1px solid #000;
      background: rgba(0, 0, 0, 0.5);
      box-shadow: inset 0 0 15px #555;
      padding: 5px;*/
    }

    .speed-row {
      display: flex;
      justify-content: center;
      align-items: baseline;
      gap: 8px;
    }

    #speed {
      min-width: 3ch;
      font-size: 3em;
      font-weight: 800;
      line-height: .95;
      letter-spacing: -.065em;
      font-variant-numeric: tabular-nums;
      text-shadow: 1px 1px 2px rgb(0 0 0);
      color: #4dff6d;
      font-family: monospace;
    }

    .unit {
      color: var(--muted);
      font-size: clamp(.8rem, 2vw, 1rem);
      font-weight: 800;
      letter-spacing: .12em;
    }

    #status {
      min-height: 1.35em;
      margin-top: 10px;
      color: var(--muted);
      font-size: .71rem;
      text-align: center;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 5px;
    }

    .stat {
      min-width: 0;
      padding: 7px 5px;
      text-align: center;
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 16px;
      background: rgba(255,255,255,.035);
    }

    .stat-label {
      display: block;
      margin-bottom: 5px;
      color: var(--muted);
      font-size: .72rem;
      letter-spacing: .09em;
      text-transform: uppercase;
    }

    .stat-value {
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }

    .actions {
      display: flex;
      justify-content: center;
      margin-top: 22px;
    }

    .language-picker {
      display: flex;
      justify-content: flex-end;
      margin: 2px 2px 8px;
    }

    .language-picker select {
      padding: 7px 30px 7px 10px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 999px;
      color: var(--text);
      background: var(--panel-2);
      font: inherit;
      font-size: .78rem;
      cursor: pointer;
    }

    button {
      min-width: 190px;
      padding: 14px 24px;
      border: 0;
      border-radius: 999px;
      color: #04120e;
      font: inherit;
      font-weight: 900;
      cursor: pointer;
      background: linear-gradient(135deg, var(--accent), #73f6cb);
      box-shadow: 0 12px 30px rgba(73, 230, 177, .2);
      transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
    }

    button:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 16px 36px rgba(73, 230, 177, .28);
    }

    button:active:not(:disabled) { transform: translateY(0); }

    button:disabled {
      cursor: wait;
      opacity: .58;
    }

    .note {
      max-width: 570px;
      margin: 18px auto 0;
      color: #748196;
      text-align: center;
      font-size: .78rem;
      line-height: 1.5;
    }

    @media (max-width: 520px) {
      body { padding: 12px; }
      .app { padding: 20px 14px 24px; border-radius: 23px; }
      .stats { gap: 7px; }
      .stat { padding: 11px 5px; }
      .stat-value { font-size: .9rem; }
      .readout { bottom: 7%; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
      }
    }
    .col-2{
      width: 50%;
      display: block;
      float: left;
    }
    .mt20 { 
      margin-top: 20px; 
    }
    .text-right {
      text-align: right;
    }
    .d-block {
      display: block;
    }
    .text-center {
      text-align: center;
    }