:root {
  font-size: 19px;
  --bg: #0d0d0f;
  --surface: #15161b;
  --surface-2: #1b1d24;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f8fb;
  --muted: #c7cad4;
  --accent: #e63946;
  --accent-soft: #ff7a86;
  --success: #6ee7b7;
  --warning: #ffd166;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  font-size: 19px !important;
  line-height: 1.8;
  padding-bottom: 92px;
  background:
    radial-gradient(circle at top, rgba(230, 57, 70, 0.12), transparent 28%),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

#training-dashboard {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 120px;
}

.dashboard-header {
  margin-bottom: 20px;
}

.dashboard-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.dashboard-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.65rem, 2vw, 2.1rem);
  letter-spacing: 0.08rem;
  margin-bottom: 10px;
}

.dashboard-copy {
  color: var(--muted);
  max-width: 760px;
  font-size: 1.02rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.dashboard-card {
  background: rgba(21, 22, 27, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.dashboard-card h2,
.dashboard-card h3 {
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08rem;
  margin-bottom: 12px;
}

.dashboard-card h2 {
  font-size: 1.15rem;
}

.dashboard-card h3 {
  font-size: 1rem;
  color: var(--accent-soft);
}

.timer-card {
  position: relative;
}

.timer-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.timer-display {
  font-size: clamp(4rem, 13vw, 5.3rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.timer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.timer-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff5b66);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.status-banner {
  margin-top: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.status-banner.pr-celebration {
  animation: pr-celebrate 1.6s ease-in-out infinite alternate;
  border-color: rgba(255, 209, 102, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.18), 0 12px 30px rgba(255, 209, 102, 0.2);
  transform: translateY(-1px);
}

@keyframes pr-celebrate {
  from {
    transform: translateY(-1px) scale(1);
  }

  to {
    transform: translateY(-4px) scale(1.01);
  }
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field-row {
  display: grid;
  gap: 8px;
}

.field-row label {
  font-weight: 700;
  color: var(--text);
}

.field-row input,
.field-row textarea,
.field-row select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0f1016;
  color: var(--text);
  padding: 12px 14px;
}

.field-row textarea {
  min-height: 100px;
  resize: vertical;
}

.field-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.check-item input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.check-item strong {
  display: block;
  margin-bottom: 4px;
}

.check-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.summary-box {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 14px 16px;
}

.summary-box strong {
  color: var(--success);
}

.history-card {
  display: grid;
  gap: 12px;
}

.history-empty {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}

.history-list {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
}

.history-item {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.history-date {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04rem;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 6px;
}

.history-meta {
  color: var(--muted);
  font-size: 0.96rem;
}

.history-memo {
  margin-top: 8px;
  color: var(--text);
}

.ad-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 10px 16px 14px;
  background: rgba(10, 10, 14, 0.96);
  border-top: 1px solid var(--border);
}

.ad-banner-inner {
  width: min(100%, 760px);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
  color: var(--muted);
}

.ad-banner-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ad-banner-copy {
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .timer-display {
    font-size: clamp(3.6rem, 16vw, 4.8rem);
  }
}

@media (max-width: 640px) {
  #training-dashboard {
    padding: 28px 16px 110px;
  }

  .dashboard-card {
    padding: 20px;
  }

  .timer-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
