/* Minimal copy of the app's widget tokens/rules for the Studio preview.
   The runtime is shared; only the surrounding shelf chrome is omitted. */

:root {
  --surface: #ffffff;
  --surface-raised: #f7f8fa;
  --fg: #16181d;
  --fg-muted: #5f6572;
  --accent: #3b63e0;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #191c21;
    --surface-raised: #14171b;
    --fg: #e8eaee;
    --fg-muted: #8b9099;
    --accent: #7c9cff;
  }
}

.wg {
  display: grid;
  align-content: center;
  gap: 4px;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.25;
}

.wg-stat { align-content: center; }
.wg-stat__label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.wg-stat__value {
  font-size: clamp(18px, 26cqmin, 30px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wg small { font-size: 0.55em; color: var(--fg-muted); }

.wg-note__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wg-links { align-content: start; }
.wg-links__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.wg-links__list a { color: var(--fg); font-size: 12px; text-decoration: none; opacity: 0.85; }
.wg-links__list a:hover { color: var(--accent); opacity: 1; }

.wg-image { align-content: stretch; }
.wg-image__img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}
.wg-image__empty {
  align-self: center; justify-self: center; font-size: 11px; color: var(--fg-muted);
}

.wg-progress { align-content: center; gap: 6px; }
.wg-progress__label {
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted);
}
.wg-progress__value { font-size: 20px; font-weight: 600; }
.wg-progress__track {
  display: block; height: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 12%, transparent); overflow: hidden;
}
.wg-progress__bar { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.wg-clock__time {
  font-size: clamp(20px, 34cqmin, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.wg-clock__date { font-size: 11px; color: var(--fg-muted); }
