Files
Live_RC/src/public_training.css
T
larssandandClaude Opus 5.5 627179b95a feat(layouts): switch track layout mid-practice and view stats per layout
A club can run one Open Practice all season and re-lay the track now and then.
Previously a session's layout was frozen at start and every training lap inherited
it, so a season-long practice stayed on its first layout forever, and changing layout
was hidden under Settings -> Appearance.

- Each practice lap now counts toward the layout active when it was driven; a running
  practice session moves onto a new layout when one is added
- "New layout" strip on Training stats, Race Day and the Dashboard, offered only around
  practice; a running race session blocks layout changes everywhere
- "Stats for" selector (current / older layout / before layouts / all layouts) on
  Training stats and in the driver's mobile profile (?layout= on the public API)
- A layout that has practice laps on it can no longer be deleted
- Fix: the buildDriverTrainingStats wrapper in app.js dropped extra arguments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 21:24:44 +02:00

1508 lines
27 KiB
CSS

:root {
color-scheme: dark;
--bg: #080d15;
--surface: #101925;
--surface-2: #151f2d;
--line: #27364a;
--text: #f4f7fb;
--muted: #91a1b8;
--accent: #f12a24;
--gold: #f5c84c;
--green: #43d58b;
--shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}
* {
box-sizing: border-box;
}
body {
min-width: 280px;
margin: 0;
background:
radial-gradient(circle at 12% -4%, rgba(241, 42, 36, 0.24), transparent 30rem),
radial-gradient(circle at 100% 28%, rgba(44, 114, 170, 0.14), transparent 28rem),
var(--bg);
color: var(--text);
font-family: Barlow, sans-serif;
}
button {
font: inherit;
}
.public-training-root {
width: min(980px, 100%);
min-height: 100vh;
margin: 0 auto;
padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.public-training-loading,
.public-training-error {
display: grid;
min-height: 70vh;
place-content: center;
justify-items: center;
color: var(--muted);
text-align: center;
}
.public-training-pulse {
width: 42px;
height: 42px;
border: 3px solid var(--line);
border-top-color: var(--accent);
border-radius: 50%;
animation: profile-spin 0.8s linear infinite;
}
@keyframes profile-spin {
to { transform: rotate(360deg); }
}
.profile-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 18px 2px 28px;
}
.profile-brand {
display: flex;
align-items: center;
gap: 13px;
}
.profile-brand img,
.profile-brand-mark {
width: 52px;
height: 52px;
border-radius: 14px;
object-fit: contain;
}
.profile-brand-mark {
display: grid;
place-items: center;
background: linear-gradient(145deg, #ff443c, #b40b08);
box-shadow: 0 8px 28px rgba(241, 42, 36, 0.32);
font-family: Orbitron, sans-serif;
font-weight: 800;
}
.profile-brand strong,
.profile-brand span {
display: block;
}
.profile-brand strong {
font-family: Orbitron, sans-serif;
font-size: 0.95rem;
}
.profile-brand span,
.profile-updated {
margin-top: 3px;
color: var(--muted);
font-size: 0.78rem;
}
.profile-hero {
position: relative;
overflow: hidden;
padding: clamp(22px, 5vw, 42px);
border: 1px solid color-mix(in srgb, var(--line) 60%, var(--accent) 40%);
border-radius: 24px;
background:
linear-gradient(120deg, rgba(241, 42, 36, 0.2), transparent 52%),
linear-gradient(145deg, var(--surface-2), var(--surface));
box-shadow: var(--shadow);
}
.profile-hero::after {
content: "RC";
position: absolute;
right: -18px;
bottom: -54px;
color: rgba(255, 255, 255, 0.035);
font-family: Orbitron, sans-serif;
font-size: clamp(8rem, 30vw, 16rem);
font-weight: 800;
pointer-events: none;
}
.profile-eyebrow {
color: #ff8f89;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.profile-hero h1 {
position: relative;
z-index: 1;
margin: 8px 0 6px;
font-family: Orbitron, sans-serif;
font-size: clamp(2rem, 8vw, 4.6rem);
line-height: 1.02;
}
.profile-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
color: var(--muted);
}
.profile-pill {
padding: 5px 10px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(7, 12, 20, 0.38);
font-size: 0.8rem;
}
.profile-class-select {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 4px 6px 4px 10px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(7, 12, 20, 0.5);
font-size: 0.78rem;
}
.profile-class-select select {
width: auto;
min-width: 110px;
padding: 4px 28px 4px 8px;
border-radius: 999px;
}
.profile-stat-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
margin-top: 14px;
}
.profile-card {
border: 1px solid var(--line);
border-radius: 18px;
background: color-mix(in srgb, var(--surface) 94%, transparent);
box-shadow: var(--shadow);
}
.profile-stat {
padding: 17px;
}
.profile-stat span,
.profile-mini-label {
color: var(--muted);
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.profile-stat strong {
display: block;
margin-top: 7px;
font-family: Orbitron, sans-serif;
font-size: clamp(1.15rem, 4vw, 1.65rem);
}
.profile-motivation-grid {
display: grid;
grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
gap: 12px;
margin-top: 14px;
}
.profile-credit-card,
.profile-challenge-card {
padding: 17px;
}
.profile-credit-card {
background:
radial-gradient(circle at 92% 8%, rgba(67, 213, 139, 0.2), transparent 42%),
color-mix(in srgb, var(--surface) 94%, transparent);
}
.profile-credit-card > p,
.profile-challenge-card > p {
margin: 7px 0 13px;
color: var(--muted);
}
.profile-credit-card ul {
display: grid;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.profile-credit-card li {
display: flex;
align-items: center;
gap: 8px;
}
.profile-credit-card li > span {
display: grid;
flex: 0 0 auto;
place-items: center;
width: 25px;
height: 25px;
border-radius: 50%;
background: rgba(67, 213, 139, 0.16);
color: var(--green);
font-family: Orbitron, sans-serif;
font-size: 0.7rem;
}
.profile-challenges {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 7px;
}
.profile-challenge {
display: flex;
min-width: 0;
gap: 8px;
padding: 9px;
border: 1px solid var(--line);
border-radius: 10px;
background: rgba(255, 255, 255, 0.025);
}
.profile-challenge > span {
display: grid;
flex: 0 0 auto;
place-items: center;
width: 30px;
height: 30px;
border-radius: 8px;
background: rgba(241, 42, 36, 0.16);
color: #ff8f89;
font-family: Orbitron, sans-serif;
font-size: 0.58rem;
font-weight: 700;
}
.profile-challenge > div {
min-width: 0;
flex: 1;
}
.profile-challenge strong,
.profile-challenge small {
display: block;
}
.profile-challenge small {
margin: 2px 0 7px;
color: var(--muted);
font-size: 0.68rem;
}
.profile-challenge .profile-progress {
height: 4px;
}
.profile-challenge.is-complete {
border-color: color-mix(in srgb, var(--green) 48%, var(--line) 52%);
}
.profile-challenge.is-complete > span {
background: rgba(67, 213, 139, 0.16);
color: var(--green);
}
.profile-grid {
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
gap: 14px;
margin-top: 14px;
}
.profile-growth-grid {
display: grid;
grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
gap: 12px;
margin-top: 14px;
}
.profile-growth-card {
padding: 17px;
}
.profile-growth-card > strong {
display: block;
margin-top: 8px;
font-family: Orbitron, sans-serif;
}
.profile-growth-card > p {
margin: 6px 0 0;
color: var(--muted);
}
.profile-growth-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 10px;
}
.profile-achievements {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 7px;
}
.profile-achievement {
display: flex;
align-items: center;
min-width: 0;
gap: 8px;
padding: 9px;
border: 1px solid var(--line);
border-radius: 10px;
background: rgba(255, 255, 255, 0.025);
}
.profile-achievement.is-next {
opacity: 0.64;
}
.profile-achievement > span {
display: grid;
flex: 0 0 auto;
place-items: center;
width: 32px;
height: 32px;
border-radius: 9px;
background: rgba(241, 42, 36, 0.16);
color: #ff8f89;
font-family: Orbitron, sans-serif;
font-size: 0.65rem;
font-weight: 700;
}
.profile-achievement.is-unlocked > span {
background: rgba(67, 213, 139, 0.16);
color: var(--green);
}
.profile-achievement strong,
.profile-achievement small {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
.profile-achievement small {
margin-top: 2px;
color: var(--muted);
font-size: 0.7rem;
}
.profile-exercise-history {
display: grid;
gap: 8px;
margin: 12px 0 0;
padding: 0;
list-style: none;
}
.profile-exercise-history-row {
display: flex;
align-items: center;
min-width: 0;
gap: 10px;
padding: 9px;
border: 1px solid var(--line);
border-radius: 10px;
background: rgba(255, 255, 255, 0.025);
}
.profile-exercise-history-row > div {
min-width: 0;
}
.profile-exercise-history-emoji {
flex: 0 0 auto;
font-size: 1.3rem;
line-height: 1;
}
.profile-exercise-history-row strong,
.profile-exercise-history-row small {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
.profile-exercise-history-row small {
margin-top: 2px;
color: var(--muted);
font-size: 0.72rem;
}
.profile-card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 15px 17px;
border-bottom: 1px solid var(--line);
}
.profile-card-head h2 {
margin: 0;
font-family: Orbitron, sans-serif;
font-size: 1rem;
}
.profile-card-body {
padding: 18px;
}
.is-positive {
color: var(--green);
}
.is-negative {
color: #ff8f89;
}
.profile-step-pills {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 10px 0 12px;
}
.profile-step-pill {
padding: 4px 10px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(255, 255, 255, 0.025);
color: var(--muted);
font-size: 0.72rem;
}
.profile-step-pill.is-current {
border-color: var(--accent);
color: var(--accent);
font-weight: 700;
}
.profile-step-pill.is-done {
border-color: color-mix(in srgb, var(--green) 55%, var(--line) 45%);
color: var(--green);
}
.profile-steptraining-form {
display: grid;
gap: 8px;
margin: 4px 0;
}
.profile-steptraining-row {
display: grid;
grid-template-columns: minmax(120px, 1fr) 90px;
gap: 8px;
}
.profile-steptraining-row select,
.profile-steptraining-row input {
width: 100%;
padding: 9px 10px;
border: 1px solid var(--line);
border-radius: 9px;
background: rgba(255, 255, 255, 0.035);
color: var(--text);
font: inherit;
}
.profile-progress {
height: 8px;
overflow: hidden;
border-radius: 99px;
background: #222d3c;
}
.profile-progress span {
display: block;
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, var(--accent), var(--gold));
}
.profile-level-row {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
margin-bottom: 14px;
}
.profile-level-row h3 {
margin: 5px 0 0;
font-family: Orbitron, sans-serif;
font-size: 1.35rem;
}
.profile-level-row strong {
white-space: nowrap;
}
.profile-plan-copy {
color: var(--muted);
line-height: 1.55;
}
.profile-summary-card {
border-color: color-mix(in srgb, var(--gold) 45%, var(--line) 55%);
background:
radial-gradient(circle at 92% 8%, rgba(245, 200, 76, 0.16), transparent 42%),
color-mix(in srgb, var(--surface) 94%, transparent);
}
.profile-summary-card p {
margin: 8px 0;
line-height: 1.5;
}
.profile-summary-highlight {
color: var(--gold);
font-weight: 700;
}
.profile-summary-reward {
padding: 9px 11px;
border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line) 55%);
border-radius: 10px;
background: rgba(245, 200, 76, 0.08);
}
.profile-summary-next-goal {
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid var(--line);
}
.profile-summary-next-goal h3 {
margin: 5px 0 0;
font-family: Orbitron, sans-serif;
font-size: 1.1rem;
}
.profile-timer-setup {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 9px;
margin: 18px 0 4px;
padding: 12px;
border: 1px solid var(--line);
border-radius: 12px;
}
.profile-timer-setup legend {
padding: 0 6px;
color: var(--muted);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.profile-timer-setup label {
display: grid;
gap: 5px;
color: var(--muted);
font-size: 0.75rem;
font-weight: 700;
}
.profile-timer-setup input {
width: 100%;
padding: 9px 10px;
border: 1px solid var(--line);
border-radius: 9px;
background: rgba(255, 255, 255, 0.035);
color: var(--text);
font: inherit;
}
.profile-timer-setup small {
grid-column: 1 / -1;
color: var(--muted);
line-height: 1.35;
}
.profile-timer-setup:disabled {
opacity: 0.62;
}
.profile-timer {
margin: 14px 0;
font-family: Orbitron, sans-serif;
font-size: clamp(2.5rem, 12vw, 5.2rem);
line-height: 1;
text-align: center;
}
.profile-timer-phase {
margin-bottom: 14px;
color: var(--gold);
font-weight: 700;
text-align: center;
}
.profile-session-heading {
margin: 16px 0 8px;
color: var(--muted);
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.08em;
text-align: center;
text-transform: uppercase;
}
.profile-session-stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 7px;
margin-bottom: 14px;
}
.profile-session-stats > div {
min-width: 0;
padding: 10px 7px;
border: 1px solid var(--line);
border-radius: 10px;
background: rgba(255, 255, 255, 0.025);
text-align: center;
}
.profile-session-stats span,
.profile-session-stats strong {
display: block;
}
.profile-session-stats span {
color: var(--muted);
font-size: 0.66rem;
font-weight: 700;
text-transform: uppercase;
}
.profile-session-stats strong {
overflow: hidden;
margin-top: 4px;
font-family: Orbitron, sans-serif;
font-size: clamp(0.8rem, 3vw, 1rem);
text-overflow: ellipsis;
}
.profile-performance-stats {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.profile-performance-stats > div {
display: grid;
gap: 6px;
padding: 16px;
border-right: 1px solid var(--line);
}
.profile-performance-stats > div:last-child {
border-right: 0;
}
.profile-performance-stats span {
color: var(--muted);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
}
.profile-performance-stats strong {
font-family: Orbitron, sans-serif;
overflow-wrap: anywhere;
}
.profile-actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
}
.profile-button {
min-height: 42px;
padding: 9px 15px;
border: 1px solid var(--line);
border-radius: 11px;
background: var(--surface-2);
color: var(--text);
cursor: pointer;
font-weight: 700;
}
.profile-button-primary {
border-color: #ff4a43;
background: linear-gradient(135deg, #ef2b25, #b80d09);
}
.profile-button:disabled {
opacity: 0.55;
cursor: default;
}
.profile-goals {
display: grid;
gap: 10px;
}
.profile-goal {
padding: 14px;
border: 1px solid var(--line);
border-radius: 13px;
background: rgba(255, 255, 255, 0.025);
}
.profile-goal.reached {
border-color: color-mix(in srgb, var(--green) 55%, var(--line) 45%);
}
.profile-goal h3,
.profile-goal p {
margin: 0 0 9px;
}
.profile-goal p {
color: var(--muted);
}
.profile-goal-row {
display: flex;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.profile-history {
width: 100%;
border-collapse: collapse;
}
.profile-history th,
.profile-history td {
padding: 11px 12px;
border-bottom: 1px solid var(--line);
text-align: left;
white-space: nowrap;
}
.profile-history th {
color: var(--muted);
font-size: 0.7rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.profile-history-wrap {
overflow-x: auto;
}
.profile-disclosure > summary {
cursor: pointer;
list-style: none;
}
.profile-disclosure > summary::-webkit-details-marker {
display: none;
}
.profile-disclosure > summary > span {
color: var(--muted);
font-family: Orbitron, sans-serif;
font-size: 1.1rem;
transition: transform 160ms ease, color 160ms ease;
}
.profile-disclosure[open] > summary > span {
color: var(--accent);
transform: rotate(45deg);
}
.profile-empty {
margin: 0;
color: var(--muted);
}
@media (max-width: 760px) {
.profile-header {
align-items: flex-start;
flex-direction: column;
}
.profile-updated {
margin-left: 65px;
margin-top: -18px;
}
.profile-stat-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-grid {
grid-template-columns: 1fr;
}
.profile-growth-grid {
grid-template-columns: 1fr;
}
.profile-motivation-grid {
grid-template-columns: 1fr;
}
.profile-challenges {
grid-template-columns: 1fr;
}
.profile-performance-stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-performance-stats > div {
border-bottom: 1px solid var(--line);
}
.profile-performance-stats > div:nth-child(2n) {
border-right: 0;
}
.profile-performance-stats > div:nth-last-child(-n + 2) {
border-bottom: 0;
}
}
@media (max-width: 420px) {
.public-training-root {
padding-left: 10px;
padding-right: 10px;
}
.profile-stat {
padding: 14px 12px;
}
.profile-level-row {
align-items: flex-start;
flex-direction: column;
}
.profile-achievements {
grid-template-columns: 1fr;
}
}
.is-hidden {
display: none !important;
}
.profile-chart-card {
margin-top: 14px;
}
.profile-chart-card .profile-card-head p {
margin: 5px 0 0;
color: var(--muted);
font-size: 0.78rem;
}
.profile-pace-chart {
padding: 10px 16px 16px;
}
.profile-pace-chart svg {
display: block;
width: 100%;
max-height: 190px;
overflow: visible;
border-radius: 12px;
background:
linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 25%,
linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 20% 100%;
}
.profile-pace-line {
fill: none;
stroke: var(--accent);
stroke-width: 5;
stroke-linecap: round;
stroke-linejoin: round;
}
.profile-pace-chart circle {
fill: var(--gold);
stroke: var(--surface);
stroke-width: 3;
}
.profile-chart-labels {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-top: 8px;
color: var(--muted);
font-size: 0.7rem;
}
.profile-chart-labels strong {
color: var(--text);
font-family: Orbitron, sans-serif;
}
.profile-stint-table-wrap {
padding: 4px 16px 16px;
border-top: 1px solid var(--line);
}
.profile-stint-table-wrap h3 {
margin: 14px 0 8px;
font-family: Orbitron, sans-serif;
font-size: 0.86rem;
}
@media (max-width: 620px) {
.profile-chart-card .profile-card-head {
align-items: flex-start;
}
.profile-pace-chart {
padding: 8px 10px 14px;
}
}
.profile-marker-form {
display: grid;
grid-template-columns: minmax(130px, 0.55fr) minmax(190px, 1.45fr) auto;
gap: 10px;
align-items: end;
padding: 16px;
border-bottom: 1px solid var(--line);
}
.profile-marker-form > div,
.profile-marker-form > small {
grid-column: 1 / -1;
}
.profile-marker-form h3,
.profile-pace-blocks h3 {
margin: 0;
font-family: Orbitron, sans-serif;
font-size: 0.9rem;
}
.profile-marker-form p,
.profile-pace-blocks > p {
margin: 5px 0 0;
color: var(--muted);
font-size: 0.76rem;
}
.profile-marker-form label {
display: grid;
gap: 5px;
color: var(--muted);
font-size: 0.7rem;
font-weight: 700;
}
.profile-marker-form input,
.profile-marker-form select {
width: 100%;
min-height: 42px;
padding: 9px 10px;
border: 1px solid var(--line);
border-radius: 10px;
background: var(--surface-2);
color: var(--text);
font: inherit;
}
.profile-marker-form > small {
min-height: 1em;
color: var(--green);
}
.profile-pace-blocks {
padding: 16px;
border-top: 1px solid var(--line);
}
.profile-pace-blocks > div {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
gap: 8px;
margin-top: 10px;
}
.profile-pace-blocks article {
display: grid;
gap: 4px;
padding: 11px;
border: 1px solid var(--line);
border-radius: 11px;
background: rgba(255, 255, 255, 0.025);
}
.profile-pace-blocks article span,
.profile-pace-blocks article small {
color: var(--muted);
font-size: 0.68rem;
}
.profile-pace-blocks article strong {
font-family: Orbitron, sans-serif;
}
@media (max-width: 620px) {
.profile-marker-form {
grid-template-columns: 1fr;
}
.profile-marker-form > div,
.profile-marker-form > small {
grid-column: auto;
}
}
@media (max-width: 620px) {
body {
font-size: 13px;
}
.public-training-root {
padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}
.profile-header {
align-items: center;
flex-direction: row;
gap: 8px;
padding: 4px 2px 8px;
}
.profile-brand {
min-width: 0;
gap: 8px;
}
.profile-brand img,
.profile-brand-mark {
width: 32px;
height: 32px;
border-radius: 10px;
}
.profile-brand strong {
font-size: 0.76rem;
}
.profile-brand span,
.profile-updated {
font-size: 0.62rem;
}
.profile-updated {
margin: 0 0 0 auto;
text-align: right;
}
.profile-hero {
padding: 10px;
border-radius: 14px;
}
.profile-hero::after {
right: -8px;
bottom: -28px;
font-size: 7rem;
}
.profile-eyebrow {
font-size: 0.62rem;
}
.profile-hero h1 {
margin: 5px 0;
font-size: clamp(1.25rem, 5.6vw, 1.65rem);
overflow-wrap: anywhere;
}
.profile-meta {
gap: 5px;
}
.profile-pill,
.profile-class-select {
padding-top: 3px;
padding-bottom: 3px;
font-size: 0.68rem;
}
.profile-class-select select {
min-width: 92px;
padding-top: 3px;
padding-bottom: 3px;
}
.profile-stat-grid,
.profile-motivation-grid,
.profile-growth-grid,
.profile-grid {
gap: 6px;
margin-top: 6px;
}
.profile-card {
border-radius: 12px;
}
.profile-stat {
padding: 7px 9px;
}
.profile-stat span,
.profile-mini-label {
font-size: 0.61rem;
letter-spacing: 0.05em;
}
.profile-stat strong {
margin-top: 4px;
font-size: clamp(0.9rem, 4.4vw, 1.1rem);
}
.profile-credit-card,
.profile-challenge-card,
.profile-growth-card {
padding: 9px;
}
.profile-credit-card > p,
.profile-challenge-card > p {
margin: 4px 0 8px;
line-height: 1.3;
}
.profile-credit-card ul {
gap: 5px;
}
.profile-credit-card li {
gap: 6px;
}
.profile-credit-card li > span {
width: 21px;
height: 21px;
font-size: 0.58rem;
}
.profile-challenges,
.profile-achievements {
gap: 5px;
}
.profile-challenge,
.profile-achievement {
padding: 7px;
}
.profile-challenge > span,
.profile-achievement > span {
width: 27px;
height: 27px;
}
.profile-growth-head {
margin-bottom: 6px;
}
.profile-growth-card > strong {
margin-top: 5px;
}
.profile-growth-card > p {
margin-top: 3px;
}
.profile-card-head {
gap: 8px;
padding: 8px 9px;
}
.profile-card-head h2 {
font-size: 0.78rem;
}
.profile-card-body {
padding: 9px;
}
.profile-level-row {
flex-direction: row;
align-items: end;
gap: 8px;
margin-bottom: 8px;
}
.profile-level-row h3 {
margin-top: 3px;
font-size: 1rem;
}
.profile-plan-copy {
margin: 6px 0;
line-height: 1.35;
}
.profile-timer-setup {
gap: 6px;
margin: 10px 0 2px;
padding: 8px;
}
.profile-timer-setup input {
padding: 7px 8px;
}
.profile-steptraining-row select,
.profile-steptraining-row input {
padding: 7px 8px;
}
.profile-step-pill {
font-size: 0.66rem;
}
.profile-timer {
margin: 8px 0;
font-size: clamp(1.8rem, 8vw, 2.4rem);
}
.profile-timer-phase,
.profile-session-stats {
margin-bottom: 8px;
}
.profile-session-heading {
margin: 10px 0 5px;
}
.profile-session-stats > div {
padding: 7px 4px;
}
.profile-button {
min-height: 40px;
padding: 7px 11px;
}
.profile-chart-card,
.profile-performance,
.profile-goals,
.profile-disclosure {
margin-top: 6px !important;
}
.profile-chart-card .profile-card-head p {
margin-top: 3px;
font-size: 0.67rem;
}
.profile-pace-chart {
padding: 5px 8px 9px;
}
.profile-pace-chart svg {
max-height: 100px;
}
.profile-chart-labels {
margin-top: 4px;
font-size: 0.61rem;
}
.profile-performance-stats > div {
gap: 3px;
padding: 9px;
}
.profile-performance-stats span {
font-size: 0.59rem;
letter-spacing: 0.04em;
}
.profile-performance-stats strong {
font-size: 0.78rem;
}
.profile-marker-form {
grid-template-columns: minmax(95px, 0.65fr) minmax(0, 1.35fr);
gap: 7px;
padding: 10px;
}
.profile-marker-form > div,
.profile-marker-form > small,
.profile-marker-form > button {
grid-column: 1 / -1;
}
.profile-marker-form h3,
.profile-pace-blocks h3 {
font-size: 0.78rem;
}
.profile-marker-form p,
.profile-pace-blocks > p {
margin-top: 3px;
font-size: 0.66rem;
}
.profile-marker-form input,
.profile-marker-form select {
min-height: 40px;
padding: 7px 8px;
}
.profile-pace-blocks,
.profile-stint-table-wrap {
padding: 10px;
}
.profile-pace-blocks > div {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
margin-top: 7px;
}
.profile-pace-blocks article {
gap: 2px;
padding: 8px;
}
.profile-history th,
.profile-history td {
padding: 7px 8px;
font-size: 0.65rem;
}
.profile-goals {
gap: 6px;
}
.profile-goal {
padding: 9px;
}
.profile-goal h3 {
font-size: 0.85rem;
}
.profile-goal h3,
.profile-goal p,
.profile-goal-row {
margin-bottom: 6px;
}
.profile-progress {
height: 5px;
}
.profile-disclosure > summary {
min-height: 44px;
}
.profile-timer-setup input,
.profile-marker-form input,
.profile-marker-form select {
min-height: 40px;
font-size: 1rem;
}
.profile-class-select select {
min-height: 40px;
font-family: inherit;
font-size: inherit;
}
}
@media (max-width: 360px) {
.profile-brand span {
display: none;
}
.profile-level-row {
align-items: flex-start;
flex-direction: column;
}
.profile-marker-form,
.profile-pace-blocks > div {
grid-template-columns: 1fr;
}
}
@media (min-width: 380px) and (max-width: 620px) {
.profile-achievements {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-achievement {
align-items: flex-start;
gap: 5px;
padding: 6px;
}
.profile-achievement > span {
width: 23px;
height: 23px;
}
.profile-achievement > div {
min-width: 0;
overflow-wrap: anywhere;
}
}
.public-training-connection { width: min(980px, 100%); margin: 0 auto; padding: 8px 16px 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.public-training-connection[data-state="failed"], .public-training-connection[data-state="stale"] { color: var(--gold); }
.public-training-connection button { flex-shrink: 0; padding: 6px 10px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.public-training-connection button[hidden] { display: none; }