/* Shared by every variant. Values come from the app (NotchView, GaugeRing, CardShape)
   and ~/.claude/reference/UI-NUMBERS.md. Type is the system face, same as the app,
   until a type round picks something else. */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --black: #000;
  --ink-2: rgb(255 255 255 / 0.62); /* 9.6:1 on #000 */
  --focus: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
:focus-visible { outline: none; transition: none; box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--focus); }

/* ---- the strip ---- */
.g-strip {
  position: fixed; right: 0; top: 50%; z-index: 10;
  width: 56px;
  transform: translateY(-50%) scale(var(--g-scale, 1));
  transform-origin: right center;
  font-family: var(--rounded);
  color: #fff;
}
.g-slab { position: absolute; inset: 0; overflow: visible; }
.g-slab path { fill: #000; }
.g-col {
  position: relative; display: flex; flex-direction: column; align-items: center;
  /* NotchView: padding 41 top, 38 bottom, centred in a frame 30 taller, so 56 above the first
     ring and 53 below the last. Measured off the running app at 2x: 56.5. */
  gap: 18px; padding-top: 56px;
}
.g-ring {
  all: unset; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: default; border-radius: 50%;
}
/* 48px hit area round a 36px ring */
.g-ring::before { content: ""; position: absolute; left: 50%; top: 18px; width: 48px; height: 48px; translate: -50% -50%; border-radius: 50%; background: rgb(255 255 255 / 0); }
.g-ring.is-on::before { background: rgb(255 255 255 / 0.06); }
.g-ring:focus-visible { box-shadow: none; }
.g-ring:focus-visible::before { box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #fff; }
.g-dial { position: relative; width: 36px; height: 36px; display: grid; place-items: center; }
.g-ring.is-on .g-dial { transform: scale(1.06); }
.g-dial > svg { position: absolute; inset: 0; overflow: visible; }
.g-dial > svg path { fill: none; stroke-linecap: round; } /* the ring only, not the glyph inside it */
.g-track { stroke: rgb(255 255 255 / 0.16); stroke-dasharray: 0 4.4; }
.g-glyph { display: block; position: relative; }
.g-glyph svg { display: block; }
.g-label { font-size: 11px; font-weight: 600; line-height: 13px; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.85); }

.g-card {
  --y: 0px;
  position: absolute; right: 56px; top: 0; width: 296px;
  opacity: 0; pointer-events: none;
  transform: translate(14px, var(--y));
}
.g-strip.is-open .g-card { opacity: 1; pointer-events: auto; transform: translate(0, var(--y)); }
.g-card-bg { position: absolute; inset: 0; overflow: visible; }
.g-card-bg path { fill: #000; stroke: rgb(255 255 255 / 0.08); stroke-width: 1; }

/* Glass, the app's other strip style. NotchGlass is NSVisualEffectView .hudWindow sampling the
   desktop behind it, with black on top: 0.34 on the strip, 0.48 on the card, which carries small
   text. A browser has no hudWindow, so blur plus a dark tint stands in for the material. */
.g-slab-glass, .g-card-glass {
  position: absolute; inset: 0; display: none; pointer-events: none;
  -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
}
.g-slab-glass { background: rgb(18 18 20 / 0.52); }
.g-card-glass { background: rgb(14 14 16 / 0.66); }
.g-strip.is-glass .g-slab-glass, .g-strip.is-glass .g-card-glass { display: block; }
.g-strip.is-glass .g-slab path { fill: transparent; }
.g-strip.is-glass .g-card-bg path { fill: transparent; }
.g-strip.is-collapsed { translate: 100% 0; }
.g-strip.is-collapsed.is-peek { translate: 0 0; }
/* The edge band a collapsed strip comes back from: the last 24px of the screen, the strip's height. */
.g-edge { display: none; position: absolute; top: 0; bottom: 0; left: -24px; width: 24px; }
.g-strip.is-collapsed .g-edge { display: block; }
.g-card-in { position: relative; padding: 16px; padding-right: 24px; display: grid; gap: 14px; font-family: var(--sans); }
.g-card-head { display: flex; align-items: center; gap: 7px; }
.g-name { font-size: 13px; font-weight: 600; line-height: 16px; }
.g-sub { font-size: 10px; line-height: 13px; color: rgb(255 255 255 / 0.45); }
.g-win { display: grid; gap: 6px; }
.g-win-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; color: rgb(255 255 255 / 0.85); }
.g-num { font-family: var(--rounded); font-variant-numeric: tabular-nums; }
.g-bar { height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.1); overflow: hidden; }
.g-bar i { display: block; height: 100%; border-radius: inherit; transform-origin: left; }
.g-win-sub { font-size: 10px; color: rgb(255 255 255 / 0.45); }

@media (prefers-reduced-motion: no-preference) {
  .g-card { transition: opacity 200ms var(--ease-out), transform 320ms var(--ease-drawer); }
  .g-strip { transition: translate 320ms var(--ease-drawer); }
  .g-dial { transition: transform 180ms var(--ease-out); }
  .g-ring::before { transition: background-color 180ms var(--ease-out); }
}
@media (max-width: 640px) {
  .g-card { width: min(296px, calc(100vw - 56px - 16px)); }
}
