* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #f3f5f8; color: #1f2937; transition: background .3s; }
body.is-pause { background: #dff3e4; }
nav { display: flex; gap: 16px; align-items: center; padding: 12px 20px; background: #111827; color: #fff; }
nav a { color: #fff; text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav .brand { font-weight: 700; margin-right: 8px; }
nav .spacer { flex: 1; }
nav .user { opacity: .7; }
main { max-width: 720px; margin: 24px auto; padding: 0 16px; }
h1 { margin-top: 0; }
.card { background: #fff; border-radius: 10px; padding: 16px 20px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card.narrow { max-width: 420px; margin: 40px auto; }
.card.row, .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
label { display: block; margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
input, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
.btn { display: inline-block; padding: 9px 16px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.secondary { background: #e5e7eb; color: #111827; }
.btn.danger { background: #dc2626; }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn.big { padding: 14px 28px; font-size: 1.2rem; }
.muted { color: #6b7280; font-size: .9rem; }
.error { background: #fee2e2; color: #991b1b; padding: 10px 12px; border-radius: 6px; }

#trainer { text-align: center; padding-top: 10px; }
.t-program { color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.t-phase { font-size: 1.1rem; margin: 6px 0 18px; }
.t-text { font-size: 2rem; font-weight: 700; min-height: 3em; white-space: pre-wrap; }
.t-count { font-size: 9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; margin: 10px 0; }
.t-bar { height: 12px; background: #d1d5db; border-radius: 6px; overflow: hidden; margin: 0 auto 16px; max-width: 480px; }
#t-bar-fill { height: 100%; width: 0; background: #2563eb; transition: width .2s linear; }
.is-pause #t-bar-fill { background: #16a34a; }
.t-next { min-height: 1.5em; margin-bottom: 20px; }
.t-controls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e5e7eb; }
th { font-size: .85rem; color: #6b7280; }
