
:root{
  --bg:#070a0f;
  --card:#0b0f14;
  --card2:#0d131b;
  --text:#e7eef7;
  --muted:#a6b3c2;
  --accent:#7aa7ff;
  --good:#6ee7b7;
  --warn:#fbbf24;
  --bad:#fb7185;
  --shadow: 0 10px 35px rgba(0,0,0,.55);
  --radius: 18px;
  --pad: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% 0%, rgba(122,167,255,.12), transparent 55%),
              radial-gradient(900px 500px at 80% 10%, rgba(110,231,183,.10), transparent 50%),
              var(--bg);
  color:var(--text);
}

.top{
  padding: 18px 16px 8px 16px;
  position: sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(7,10,15,.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 5;
}

.brand .title{
  font-size: 16px;
  font-weight: 800;
  letter-spacing:.2px;
}
.brand .subtitle{
  margin-top:2px;
  font-size: 12px;
  color: var(--muted);
}

.wrap{
  padding: 14px 14px 32px 14px;
  display:grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
}

.card.small{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

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

.btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled{
  opacity: .45;
  cursor: not-allowed;
}
.btn.primary{
  background: rgba(122,167,255,.18);
  border-color: rgba(122,167,255,.35);
}
.btn.ghost{
  background: transparent;
}

.meter{
  margin-top: 14px;
  height: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.meterFill{
  height: 100%;
  width: 0%;
  background: rgba(110,231,183,.85);
  transition: width .08s linear;
}

.big{
  margin-top: 14px;
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.note{
  font-size: 70px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}
.cents{
  font-size: 28px;
  font-weight: 900;
  color: var(--muted);
}

.hzline{
  margin-top: 8px;
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.label{ color: rgba(231,238,247,.85); }

.dial{
  margin-top: 14px;
  padding: 12px 10px 10px 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}
.dialInner{
  position: relative;
  height: 120px;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
}
.ticks{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to right, transparent 0%, transparent 49.6%, rgba(255,255,255,.18) 49.6%, rgba(255,255,255,.18) 50.4%, transparent 50.4%, transparent 100%),
    repeating-linear-gradient(to right, rgba(255,255,255,.09), rgba(255,255,255,.09) 1px, transparent 1px, transparent 10%);
  opacity:.75;
}
.needle{
  position:absolute;
  bottom:0;
  left:50%;
  width: 4px;
  height: 100%;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 100%;
  background: rgba(122,167,255,.95);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.zero,.left,.right{
  position:absolute;
  bottom: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.zero{ left:50%; transform: translateX(-50%); }
.left{ left:10px; }
.right{ right:10px; }

.settings{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.setting{
  display:grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items:center;
}
.setting label{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.setting input[type="number"]{
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
}
.setting input[type="range"]{
  width:100%;
}
.pill{
  font-size: 12px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  padding: 6px 8px;
  border-radius: 999px;
  min-width: 62px;
  text-align:center;
  font-weight: 800;
}

.hint{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.smallTitle{
  font-weight: 900;
  margin-bottom: 8px;
}
.status{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.smallNote{
  margin-top: 10px;
  color: rgba(166,179,194,.9);
  font-size: 12px;
  line-height: 1.35;
}

.dialog{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(11,15,20,.98);
  color: var(--text);
  max-width: min(680px, calc(100vw - 28px));
}
.dialog::backdrop{
  background: rgba(0,0,0,.65);
}
.dialogTitle{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}
.dialogList{
  margin: 0 0 14px 18px;
  color: var(--muted);
  line-height: 1.45;
}
.dialogRow{
  display:flex;
  justify-content: flex-end;
}


.warning{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(251,191,36,.35);
  background: rgba(251,191,36,.10);
  color: rgba(231,238,247,.95);
  font-size: 13px;
  line-height: 1.35;
}
.hidden{ display:none; }

.select{
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
}
.pill.tiny{
  min-width: 70px;
  opacity: .85;
  font-weight: 800;
}
