:root {
  --paper: #ffffff;
  --ink: #16171a;
  --soft: #74757b;
  --line: rgba(22, 23, 26, .11);
  --track: rgba(22, 23, 26, .17);
  --accent: #f2541b;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}
.prio {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 16px;
  max-width: 100%;
}
.prio:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* the surface: GSAP scales this element; edge and wash are CSS variables GSAP tweens */
.prio__body {
  --edge: var(--line);
  --wash: rgba(242, 84, 27, 0);
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vmin, 13px);
  height: clamp(52px, 9vmin, 60px);
  padding: 0 clamp(12px, 2vmin, 15px) 0 clamp(15px, 2.4vmin, 18px);
  border-radius: 16px;
  background: linear-gradient(var(--wash), var(--wash)), var(--paper);
  box-shadow:
    0 0 0 1px var(--edge),
    0 1px 0 rgba(255,255,255,.9) inset,
    0 12px 26px -16px rgba(22,23,26,.3),
    0 2px 5px -3px rgba(22,23,26,.16);
  will-change: transform;
}
.prio__mark {
  display: block;
  width: clamp(22px, 3.8vmin, 26px);
  height: clamp(22px, 3.8vmin, 26px);
  flex: none;
}
.prio__icon { display: block; width: 100%; height: 100%; overflow: visible; }
.prio__track { fill: var(--track); }
.prio__fill { fill: var(--ink); }
.prio__urgent { fill: var(--accent); }
.prio__bang {
  fill: none;
  stroke: #fff;
  stroke-width: 2.3;
  stroke-linecap: round;
}
.prio__dot { fill: #fff; }
.prio__label {
  position: relative;
  display: grid;
  height: 1.25em;
  /* clipped only above and below: a word may open a hair wider than its slot while it settles */
  clip-path: inset(0 -24px);
  font-size: clamp(16px, 2.7vmin, 18px);
  line-height: 1.25;
}
.prio__word {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  width: max-content;
  font-variation-settings: 'wght' 560, 'wdth' 100;
  will-change: transform;
}
.prio__rule {
  width: 1px;
  height: 22px;
  background: var(--line);
  flex: none;
}
.prio__key {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-variation-settings: 'wght' 600, 'wdth' 90;
  color: var(--soft);
  background: #f6f6f7;
  box-shadow: 0 0 0 1px var(--line), 0 1px 0 rgba(22,23,26,.08);
  flex: none;
}
