:root{
  --bg:#111111;
  --surface-1:#171717;
  --surface-2:#1b1b1b;
  --surface-3:#141414;
  --text-primary:#f3f3f3;
  --text-secondary:#b9b9b9;
  --border-subtle:#2c2c2c;
  --accent:#d6d3c9;
  --accent-contrast:#111111;
  --success:#9fd3a8;
  --caution:#e7c27d;

  --atmo-top:rgba(214, 211, 201, 0.08);
  --atmo-mid:rgba(126, 145, 170, 0.05);
  --atmo-bottom:rgba(255, 255, 255, 0.02);
  --surface-glow:rgba(255, 255, 255, 0.025);
  --card-shadow:0 10px 30px rgba(0, 0, 0, 0.22);

  --space-1:6px;
  --space-2:10px;
  --space-3:16px;
  --space-4:24px;
  --space-5:32px;

  --radius-sm:10px;
  --radius-md:12px;
  --radius-lg:16px;
  --radius-pill:999px;

  --text-title:2rem;
  --text-section:1.1rem;
  --text-body:1rem;
  --text-meta:.95rem;
  --text-label:.85rem;

  --screen-max-width:1000px;
  --screen-padding-x:16px;
  --screen-padding-top:24px;
  --screen-padding-bottom:48px;
}

body{
  background-color:var(--bg);
  background-image:
    radial-gradient(circle at top left, var(--atmo-top), transparent 42%),
    radial-gradient(circle at 85% 18%, var(--atmo-mid), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 28%),
    linear-gradient(180deg, #161616 0%, var(--bg) 26%, #101010 100%);
  background-attachment:fixed;
  color:var(--text-primary);
}

body.workout-mode-active{
  background-image:
    radial-gradient(circle at top left, rgba(214, 211, 201, 0.035), transparent 30%),
    linear-gradient(180deg, #141414 0%, #101010 100%);
}

.wrap{
  max-width:var(--screen-max-width);
  padding:var(--screen-padding-top) var(--screen-padding-x) var(--screen-padding-bottom);
}

.card,
.entry-box,
li{
  border-color:var(--border-subtle);
}

.card{
  background:
    linear-gradient(180deg, var(--surface-glow), transparent 38%),
    var(--surface-2);
  border-radius:var(--radius-lg);
  padding:var(--space-3);
  box-shadow:var(--card-shadow);
}

.entry-box,
li{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent 34%),
    var(--surface-3);
  border-radius:var(--radius-md);
}

.metric{
  color:var(--accent);
  font-size:var(--text-title);
}

.small,
.overview-status .stat-line,
label{
  color:var(--text-secondary);
  font-size:var(--text-meta);
}

.overview-status .stat-line strong{
  color:var(--text-primary);
}

input,
select,
textarea,
button{
  border-color:var(--border-subtle);
  border-radius:var(--radius-sm);
}

input,
select,
textarea{
  background:var(--surface-1);
  color:var(--text-primary);
}

button{
  background:#242424;
  color:var(--text-primary);
}

.primary-cta{
  background:var(--accent);
  color:var(--accent-contrast);
  border-color:var(--accent);
  font-weight:700;
}

.pill{
  border-color:var(--border-subtle);
  border-radius:var(--radius-pill);
  color:var(--text-secondary);
  font-size:var(--text-label);
}

.btn-row,
.row,
.grid,
.two-col,
.overview-status{
  gap:var(--space-2);
}

.grid,
.two-col{
  margin-top:var(--space-4);
}

.wizard-nav button,
.utility-nav button{
  border-radius:var(--radius-pill);
}

.ok{ color:var(--success); }
.warn{ color:var(--caution); }

/* training options layout */
.training-option{
  display:flex;
  align-items:center;
  gap:12px;
  margin:8px 0;
}

.training-option input{
  width:18px;
  height:18px;
}

.training-option span{
  flex:1;
}

.overview-hero-card{
  padding:18px 16px;
}

.overview-hero-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
}

.overview-hero-copy{
  display:grid;
  gap:6px;
  min-width:0;
}

.overview-hero-eyebrow{
  letter-spacing:0.01em;
  text-transform:none;
}

.overview-hero-type{
  line-height:1.05;
  font-size:clamp(2rem, 8vw, 2.6rem);
}

.overview-hero-date{
  white-space:nowrap;
  padding-top:4px;
}

.overview-hero-summary{
  margin-top:10px;
  font-size:1rem;
  color:var(--text-primary);
  line-height:1.4;
}

.overview-hero-reason{
  margin-top:8px;
  line-height:1.45;
}

.overview-hero-actions{
  margin-top:14px;
}

.overview-hero-actions .primary-cta{
  min-width:min(100%, 280px);
  padding:12px 14px;
}

.overview-context-card .overview-status{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.overview-context-card .stat-line{
  padding:10px 12px;
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.014), transparent 36%),
    var(--surface-3);
}

@media (min-width: 700px){
  .overview-context-card .overview-status{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
