/* Legend icons. Each drawing in src/views/legendIcons.ts only names classes, so colours live here. */
.legend-icon {
  --legend-track: #232622;
  --battery: #f5a623;
  --graph: #ff6b6b;
  --baro: #4fc3ff;
  --cells: #9fd356;
  --zulu: #8e8a7c;
  --rain: #4fc3ff;

  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 18px;
  background: #050605;
}

.legend-icon .track {
  fill: none;
  stroke: var(--legend-track);
  stroke-width: 6;
}

/* Daylong: the 24-hour ring. */

.legend-icon .slice {
  fill: none;
  stroke-width: 6;
  transform: rotate(0deg);
  transform-origin: 24px 24px;
}

.legend-icon.daylight .slice {
  stroke: color-mix(in srgb, var(--accent) 34%, #050605);
}

.legend-icon.sleep .slice {
  stroke: #5b8cff;
}

.legend-icon.moved .slice {
  stroke: var(--accent);
}

.legend-icon.energy .slice {
  stroke: #4fc3ff;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.legend-icon.rain .dot {
  fill: #9db8ff;
}

.legend-icon .hand {
  stroke: #f2f2f2;
  stroke-width: 3.5;
  stroke-linecap: round;
}

/* Grid Ops: battery, cells, graph, barometer, Zulu time and rain. */

.legend-icon.battery .tick {
  fill: none;
  stroke: var(--battery);
  stroke-width: 3;
  stroke-linecap: round;
}

.legend-icon.cells .cell {
  fill: none;
  stroke: var(--cells);
  stroke-width: 3;
  stroke-linejoin: round;
}

.legend-icon.graph .axis {
  fill: none;
  stroke: var(--legend-track);
  stroke-width: 3;
  stroke-linecap: round;
}

.legend-icon.graph .line {
  fill: none;
  stroke: var(--graph);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legend-icon.baro .dial {
  fill: none;
  stroke: var(--baro);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.35;
}

.legend-icon.baro .needle {
  stroke: var(--baro);
  stroke-width: 3;
  stroke-linecap: round;
}

.legend-icon.baro .hub {
  fill: var(--baro);
}

.legend-icon.zulu .globe {
  fill: none;
  stroke: var(--zulu);
  stroke-width: 2.5;
}

.legend-icon.drop .drop {
  fill: var(--rain);
}

/* Meridian: hands and dial, subdials, moon, GMT, date and always-on. */

.legend-icon.hands .hand {
  stroke: #f1eee4;
  stroke-width: 3.5;
}

.legend-icon.hands .pivot {
  fill: #ffb547;
}

.legend-icon.subdials .gauge {
  fill: none;
  stroke: #ffb547;
  stroke-width: 2.5;
}

.legend-icon.moon .moon-dark {
  fill: #2c2e36;
}

.legend-icon.moon .moon-lit {
  fill: #e9e2cc;
}

.legend-icon.gmt .track {
  stroke: var(--legend-track);
}

.legend-icon.gmt .gmt {
  stroke: #4fc3ff;
  stroke-width: 3;
  stroke-linecap: round;
}

.legend-icon.date .window {
  fill: none;
  stroke: #ffb547;
  stroke-width: 2.5;
}

.legend-icon.date .window-bar {
  stroke: #f1eee4;
  stroke-width: 3;
  stroke-linecap: round;
}

.legend-icon.aod .dim {
  fill: none;
  stroke: #5e5e5e;
  stroke-width: 2.5;
}

.legend-icon.aod .dim-hand {
  stroke: #9a9a9a;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Tally: the three goal rings and the 7-day strip. */

.legend-icon.rings .ring {
  fill: none;
  stroke-width: 4.5;
  stroke-linecap: round;
}

.legend-icon.rings .outer {
  stroke: #ffc247;
}

.legend-icon.rings .middle {
  stroke: #4fd8c4;
}

.legend-icon.rings .inner {
  stroke: #b49cff;
}

.legend-icon.strip .met {
  fill: #ffc247;
}

.legend-icon.strip .miss {
  fill: none;
  stroke: #5a5a5a;
  stroke-width: 1.5;
}

/* Slab: the filling digit and the side column. */

.legend-icon.fill .digit {
  fill: #e6f5ef;
}

.legend-icon.fill .digit-fill {
  fill: #5ed8ae;
}

.legend-icon.column .value {
  stroke: #5ed8ae;
  stroke-width: 4;
  stroke-linecap: round;
}

.legend-icon.column .label {
  stroke: #8a8a90;
  stroke-width: 2.5;
  stroke-linecap: round;
}
