/* header */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; margin: 4px 0 18px; }
.dash-date { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.dash-hello { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 0.95; letter-spacing: 0.01em; margin-top: 6px; text-transform: uppercase; }
.dash-hello span { color: var(--volt); }
.avatar {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--volt);
}

.stack { display: grid; gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

/* hero: today's session */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(198,255,46,0.18), transparent 55%),
    linear-gradient(160deg, #161a1f, #0e1013);
  border: 1px solid var(--line-2);
}
.hero::after { /* pitch lines */
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 1.5px solid rgba(198,255,46,0.12); box-shadow: 0 0 0 36px rgba(198,255,46,0.03);
  pointer-events: none;
}
.hero-type { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 0.95; text-transform: uppercase; margin: 10px 0 6px; max-width: 80%; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hero-focus { font-size: 14px; color: var(--text-2); margin-bottom: 18px; max-width: 92%; }

/* stat tiles */
.tile { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.tile .num { font-size: 34px; }
.tile-foot { font-size: 12px; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tile-btn { width: 30px; height: 30px; border-radius: 9px; background: var(--volt-dim); color: var(--volt); display: grid; place-items: center; }
.tile-btn svg { width: 16px; height: 16px; }

/* recovery */
.recovery { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.recovery h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.recovery p { font-size: 13px; color: var(--text-2); }

/* next match */
.match { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.match-day { width: 54px; height: 58px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; place-items: center; text-align: center; }
.match-day b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 0.9; display: block; }
.match-day small { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--volt); text-transform: uppercase; }
.match h3 { font-size: 15px; font-weight: 700; }
.match p { font-size: 13px; color: var(--text-2); }

/* week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 4px; }
.week-day { text-align: center; }
.week-day small { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); margin-bottom: 6px; }
.week-pip {
  height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text-3);
}
.week-pip svg { width: 15px; height: 15px; }
.week-pip.done { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.week-pip.today { border-color: var(--volt); color: var(--volt); }
.week-pip.rest { opacity: 0.5; }
.week-sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.week-sum .num { font-size: 30px; }

/* goals */
.goal { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.goal:first-of-type { border-top: 0; }
.goal svg { width: 18px; height: 18px; color: var(--text-3); margin-top: 1px; }
.goal.done svg { color: var(--volt); }
.goal.done span { color: var(--text-3); text-decoration: line-through; }

/* dialog */
dialog {
  width: min(440px, calc(100vw - 24px)); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--card); color: var(--text); padding: 22px; margin: auto auto calc(var(--safe-bottom) + 12px);
}
dialog::backdrop { background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); }
dialog h2 { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; margin-bottom: 6px; }
dialog p.lead { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea, .field select {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; font-size: 16px; width: 100%;
}
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 14px; color: var(--text); }
.seg input { accent-color: var(--volt); width: auto; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 6px; }
