/* Global page shell */
* { box-sizing: border-box; }
body {
  font-family: system-ui, Arial;
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(255,255,255,.65), rgba(255,255,255,0)),
    linear-gradient(160deg, #f5efe7 0%, #ece1d2 42%, #ddd0c2 100%);
  color: #111;
}
.shell { max-width: 640px; margin: 0 auto; }
.panel {
  background: #fffdf9;
  border: 1px solid rgba(17,17,17,.06);
  border-radius: 18px;
  padding: 22px;
  box-shadow:
    0 10px 20px rgba(76, 58, 38, .12),
    0 24px 42px rgba(76, 58, 38, .16);
}

/* Header */
.big { font-size: 52px; font-weight: 800; line-height: 1; text-align: center; }
.sub { color: #555; margin-top: 8px; text-align: center; }

/* Controls */
.controls { margin-top: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.controls label { color: #555; font-size: 13px; }
.controls select { font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 8px; border: 1px solid #ddd; background: #fff; }

/* Progress bars */
.bar { position: relative; height: 18px; background: #eee; border-radius: 999px; overflow: hidden; margin: 12px 0 10px; }
.fill { position: relative; z-index: 1; height: 100%; width: 0%; background: #111; }
.bar-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  mix-blend-mode: difference;
}

/* Summary cards */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.card { border: 1px solid #eee; border-radius: 12px; padding: 12px; }
.label { color: #666; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.value { font-size: 18px; font-weight: 700; margin-top: 6px; }
.note { margin-top: 16px; color: #666; font-size: 13px; }

/* Narrow screens: stack cards and loosen edge padding. */
@media (max-width: 560px) {
  body { padding: 16px; }
  .panel { padding: 16px; }
  .controls { flex-wrap: wrap; }
  .grid { grid-template-columns: 1fr; }
}
