:root {
  --bg: #f3f1ec;
  --card: #fbfaf7;
  --ink: #1d2128;
  --mute: #7b808a;
  --line: rgba(29, 33, 40, 0.09);
  --track: #e6e7ea;
  --wait: #6d7685;
  --sync: #3d6df2;
  --pause: #8a6fd9;
  --error: #e0573f;
  --done: #2f9a64;
  --accent: var(--wait);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background:
    radial-gradient(120% 80% at 50% 0%, #fbfaf6 0%, var(--bg) 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vh, 32px) 12px;
}

.card {
  position: relative;
  width: min(392px, 92vw);
  padding: clamp(14px, 3.4vh, 24px) clamp(16px, 4vw, 24px);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, var(--card) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 1px rgba(29, 33, 40, 0.04),
    0 8px 18px -8px rgba(29, 33, 40, 0.14),
    0 28px 60px -24px rgba(29, 33, 40, 0.22);
  overflow: hidden;
  isolation: isolate;
}

.card__sheen {
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  mix-blend-mode: soft-light;
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 640; font-size: 14px; letter-spacing: -0.01em; }
.brand__mark { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }

.device { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
.device svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }

.hero {
  display: flex;
  align-items: center;
  gap: clamp(12px, 4vw, 20px);
  margin: clamp(10px, 3vh, 22px) 0 clamp(10px, 2.6vh, 18px);
}

.dial {
  flex: none;
  width: clamp(76px, min(28vw, 19vh), 112px);
  aspect-ratio: 1;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  position: relative;
}

.dial::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 55%, transparent);
  z-index: -1;
  transition: box-shadow 0.4s;
}

.dial:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.dial__svg { width: 100%; height: 100%; overflow: visible; display: block; }

.dial__face { stroke: rgba(29, 33, 40, 0.06); stroke-width: 1; }
.dial__track { fill: none; stroke: var(--track); stroke-width: 4; }
.dial__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}
.dial__tip { fill: #fff; stroke: var(--accent); stroke-width: 2; opacity: 0; }

.stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status { flex: 1; min-width: 0; }

.status__title {
  font-size: clamp(17px, min(5vw, 3.4vh), 21px);
  font-weight: 640;
  font-stretch: 96%;
  letter-spacing: -0.02em;
  line-height: 1.25;
  height: 1.25em;
  overflow: hidden;
  position: relative;
}

.roll { display: block; white-space: nowrap; }

.status__line {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--mute);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "zero" 0;
}

.folders {
  list-style: none;
  display: grid;
  gap: clamp(6px, 1.5vh, 10px);
  padding: clamp(10px, 2.2vh, 14px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.folder {
  display: grid;
  grid-template-columns: 86px 1fr 52px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.folder__name { font-weight: 560; }
.folder__size { text-align: right; color: var(--mute); }

.folder__bar {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--track);
  overflow: hidden;
}

.folder__bar span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(10px, 2.6vh, 18px);
}

.speed { font-size: 12px; color: var(--mute); white-space: nowrap; }

.pill {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  height: 40px;
  min-width: 128px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 620;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 16px -8px rgba(29, 33, 40, 0.5);
}

.pill__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  transform: translateY(101%);
}

.pill__text { position: relative; display: inline-block; }

.pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (hover: hover) {
  .pill:hover .pill__fill { transform: translateY(0); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); }
}

.pointer {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
  z-index: 5;
}

@media (max-height: 460px) {
  .folders .folder:nth-child(3) { display: none; }
}

@media (max-width: 360px) {
  .speed { display: none; }
  .folder { grid-template-columns: 74px 1fr 46px; }
}
