:root{
    --font-family:'Clash Display',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    --bg-body:#0f0e1b;
    --bg-subnav:#161528;
    --bg-elevated:#1c1a32;
    --yellow:#daf143;

    --panel:#1c1a32;
    --ink:#fffffe;
    --ink-dim:#d9d9d9;
    --accent:#daf143;
    --accent-ink:#252343;
    --ring:rgba(218,241,67,.46);
    --shadow: 0 10px 30px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.35);
    --radius-xl: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --gap: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #fffffe;
    background-color: var(--bg-body);
    min-height: 100vh;
}

body > header {
    background: var(--bg-body);
    height: 68px;
    color: #fffffe;
    padding: 18px 2rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body > header {
    max-width: 760px;
    margin: 0 auto;
}

/* ============ links ============ */

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}

/* ============ BUTTONS ============ */
.row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center }
.btn{
    --pad-x: 20px; --pad-y: 12px;
    appearance:none; border:0; cursor:pointer;
    padding: var(--pad-y) var(--pad-x);
    border-radius: 999px;
    font: 600 14px/1 var(--font-family);
    transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    outline: none;
}
.btn-primary{
    background: var(--accent);
    color: var(--accent-ink);
}
.btn-secondary{
    background: #fff;
    color: var(--accent-ink);
}
.btn-primary:hover{ transform: translateY(-1px) scale(1.01) }
.btn-primary:active{ transform: translateY(0) scale(.99) }
.btn-ghost{
    color: var(--ink);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover{ background: rgba(255,255,255,.10) }
.btn:focus-visible{
    box-shadow: 0 0 0 3px var(--ring);
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 120px;
}

main .title-bar {
    height:68px;
    padding: 8px 20px;
    background:var(--bg-body);
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}

#rutinas > h3,
#rutinas > p {
    margin: 18px 30px 8px;
}

#rutinas > ul {
    list-style: none;
    background: var(--bg-subnav);
    margin-bottom: 24px;
}

.routine-row {
    min-height: 62px;
    padding: 10px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,.05);
    color: #d9d9d9;
    font-size: 20px;
    font-weight: 500;
}

.routine-row small {
    color: #9a9a9a;
    font-size: 14px;
}

.screen {
    padding: 12px 20px 40px;
}

.screen h1 {
    font-family: var(--font-family);
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1.05;
    margin: 10px 0;
}

.workout-screen,
.workout-complete-screen {
    min-height: calc(100vh - 108px);
}

.workout-topbar {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    color: #9a9a9a;
    font-size: 14px;
}

.workout-position {
    font-variant-numeric: tabular-nums;
}

.workout-navigation-button {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: var(--font-family);
    cursor: pointer;
}

.workout-step[hidden],
.workout-inline-complete[hidden],
.workout-actions[hidden],
.workout-answer[hidden],
.workout-next[hidden],
.workout-rest[hidden],
.workout-metric[hidden],
.workout-current-rest[hidden],
.workout-actions .btn[hidden] {
    display: none;
}

.workout-session-progress {
    display: flex;
    gap: 4px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.workout-session-progress li {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: var(--bg-elevated);
}

.workout-session-progress li.is-completed {
    background: var(--accent);
}

.workout-session-progress li.is-skipped {
    background: rgba(255,255,255,.28);
}

.workout-session-progress li.is-current {
    background: var(--ring);
}

.workout-heading {
    margin: 28px 0 22px;
}

.workout-heading p {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.workout-heading h1 {
    margin: 6px 0 0;
}

.workout-section {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: var(--ink-dim);
    font-size: 13px;
    font-weight: 600;
}

.workout-current {
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--bg-elevated);
}

.workout-current-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #9a9a9a;
    font-size: 14px;
    font-weight: 600;
}

.workout-current-rest {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(218,241,67,.12);
    color: var(--accent);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.workout-current-values {
    display: flex;
    gap: 28px;
    margin-top: 18px;
}

.workout-metric {
    display: flex;
    flex-direction: column;
}

.workout-metric strong {
    color: var(--accent);
    font-size: clamp(44px, 14vw, 64px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.workout-metric span {
    margin-top: 6px;
    color: #9a9a9a;
    font-size: 14px;
}

.workout-set-track {
    display: flex;
    gap: 6px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.workout-set-track:empty {
    display: none;
}

.workout-set-track li {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    transition: background-color .25s ease;
}

.workout-set-track li.is-done {
    background: var(--accent);
}

.workout-set-track li.is-current {
    background: var(--ring);
    animation: workout-pulse 1.6s ease-in-out infinite;
}

.workout-prescription {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.workout-set {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bg-subnav);
    font-size: 14px;
}

.workout-set strong {
    font-weight: 600;
}

.workout-set span {
    color: #9a9a9a;
}

.workout-notes {
    margin-top: 14px;
    padding: 14px 16px;
    border-left: 3px solid var(--accent);
    border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
    background: var(--bg-subnav);
    color: var(--ink-dim);
    font-size: 15px;
    line-height: 1.45;
}

.workout-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.workout-actions .btn,
.workout-next {
    width: 100%;
    padding: 18px 20px;
    text-align: center;
    font-size: 16px;
}

.workout-actions .btn-text {
    padding: 8px 20px;
    background: transparent;
    color: var(--accent);
}

.workout-answer {
    margin-top: 28px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.workout-answer.is-completed {
    border-color: var(--accent);
    color: var(--accent);
}

.workout-answer.is-skipped {
    color: #9a9a9a;
}

.workout-next {
    display: block;
    margin-top: 12px;
}

.workout-up-next {
    display: grid;
    gap: 2px;
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-subnav);
}

.workout-up-next span {
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.workout-up-next strong {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 600;
}

.workout-up-next p {
    color: #9a9a9a;
    font-size: 14px;
}

.workout-rest {
    position: fixed;
    z-index: 900;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: rgba(0,0,0,.6);
    animation: workout-fade .2s ease;
}

.workout-rest-panel {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--bg-elevated);
    text-align: center;
    animation: workout-rise .3s cubic-bezier(.2,.7,.2,1);
}

.workout-rest-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.workout-rest-ring {
    position: relative;
    width: min(220px, 60vw);
    aspect-ratio: 1;
    margin: 18px auto 0;
}

.workout-rest-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.workout-rest-ring circle {
    fill: none;
    stroke-width: 10;
}

.workout-rest-track {
    stroke: rgba(255,255,255,.08);
}

.workout-rest-value {
    stroke: var(--accent);
    stroke-linecap: round;
    transition: stroke-dashoffset .25s linear;
}

.workout-rest-ring strong {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: clamp(44px, 14vw, 60px);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.workout-rest-next {
    min-height: 22px;
    margin-top: 16px;
    color: var(--ink-dim);
    font-size: 15px;
}

.workout-rest-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    margin-top: 22px;
}

.workout-rest-actions .btn {
    padding: 18px 16px;
    font-size: 16px;
}

@keyframes workout-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

@keyframes workout-fade {
    from { opacity: 0; }
}

@keyframes workout-rise {
    from { transform: translateY(40px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .workout-set-track li.is-current,
    .workout-rest,
    .workout-rest-panel {
        animation: none;
    }
}

.workout-complete-screen {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.workout-complete-mark {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 38px;
    font-weight: 700;
}

.workout-complete-screen > p {
    color: var(--ink-dim);
}

.workout-complete-screen .btn {
    margin-top: 28px;
}

.workout-inline-complete {
    min-height: calc(100vh - 148px);
}

.connectivity-notice {
    position: fixed;
    z-index: 1000;
    right: 16px;
    bottom: 92px;
    left: 16px;
    max-width: 520px;
    margin: 0 auto;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
    color: var(--ink-dim);
    font-size: 14px;
    text-align: center;
}

.screen-heading,
.plan-hero {
    margin-bottom: 28px;
}

.screen-heading p,
.plan-hero p {
    color: #d9d9d9;
    max-width: 580px;
}

.back-link {
    color: #9a9a9a;
    font-size: 14px;
}

.offline-screen {
    display: flex;
    min-height: calc(100vh - 188px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.offline-screen > p:first-child {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.offline-screen > p:not(:first-child) {
    max-width: 420px;
    margin-bottom: 24px;
    color: var(--ink-dim);
}

.offline-screen .btn {
    display: inline-block;
}

.form-card,
.session-editor,
.session-card {
    background: var(--bg-subnav);
    border-radius: 14px;
    padding: 20px;
}

.ai-plan-card {
    margin-top: 18px;
}

.ai-plan-card h2 {
    margin: 5px 0 6px;
    font-size: 25px;
}

.ai-plan-card > p:not(.form-error):not(.ai-plan-status) {
    color: var(--ink-dim);
}

.ai-plan-card .btn {
    width: 100%;
    margin-top: 16px;
    padding: 15px 20px;
}

.ai-plan-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 4px;
    color: #9a9a9a;
    font-size: 13px;
    text-transform: uppercase;
}

.ai-plan-divider::before,
.ai-plan-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.12);
}

.ai-plan-file-note {
    display: block;
    margin-top: 8px;
    color: #9a9a9a;
    font-size: 13px;
}

.ai-plan-card input[type="file"] {
    padding: 8px;
    color: var(--ink-dim);
    font-size: 14px;
}

.ai-plan-card input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    color: var(--ink);
    font: 600 14px/1 var(--font-family);
}

.ai-plan-status {
    margin-top: 14px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

label {
    display: block;
    color: #d9d9d9;
    font-size: 14px;
    margin: 16px 0 7px;
}

label:first-child {
    margin-top: 0;
}

label span,
.exercise-editor small {
    color: #9a9a9a;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: #fffffe;
    padding: 12px 14px;
    font: 500 16px/1.35 var(--font-family);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(218,241,67,.16);
}

.visibility-control {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    margin: 20px 0 0;
    cursor: pointer;
}

.visibility-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.visibility-copy strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}

.visibility-copy small {
    color: #9a9a9a;
    font-size: 14px;
    line-height: 22px;
}

.visibility-control input {
    position: absolute;
    right: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.visibility-indicator {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(218,241,67,.5);
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--accent);
}

.visibility-indicator svg {
    opacity: 0;
}

.visibility-control input:checked + .visibility-indicator {
    border-color: var(--accent);
}

.visibility-control input:checked + .visibility-indicator svg {
    opacity: 1;
}

.visibility-control input:focus-visible + .visibility-indicator {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

.editor-heading,
.session-editor-heading,
.exercise-editor-heading,
.session-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.editor-heading {
    margin: 30px 0 12px;
}

.editor-heading h2 {
    font-size: 25px;
}

.text-button,
.icon-button {
    border: 0;
    background: transparent;
    color: var(--yellow);
    cursor: pointer;
    font: 600 15px var(--font-family);
}

.icon-button {
    color: #d9d9d9;
    font-size: 28px;
    line-height: 1;
    padding: 4px 8px;
}

.sessions-editor {
    display: grid;
    gap: 16px;
}

.session-editor {
    border: 0;
}

.session-toggle {
    cursor: pointer;
    list-style: none;
    padding-right: 36px;
    position: relative;
}

.session-toggle::-webkit-details-marker {
    display: none;
}

.session-toggle::after {
    color: var(--yellow);
    content: "+";
    font-size: 28px;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

details[open] > .session-toggle::after {
    content: "−";
}

.session-editor-heading > span {
    display: grid;
    gap: 3px;
}

.session-summary-name {
    color: #fffffe;
    font-size: 19px;
    letter-spacing: 0;
    text-transform: none;
}

.session-editor-body {
    margin-top: 18px;
}

.session-editor-actions {
    display: flex;
    justify-content: flex-end;
}

.session-number,
.eyebrow {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.exercises-editor {
    display: grid;
    gap: 12px;
    margin: 18px 0 14px;
}

.exercise-editor {
    background: var(--bg-elevated);
    border-radius: 10px;
    padding: 14px;
}

.exercise-editor input,
.exercise-editor select {
    background: #0f0e1b;
}

.exercise-editor small {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 7px;
}

.logical-sets-heading,
.logical-set-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logical-sets-heading {
    margin-top: 18px;
}

.logical-sets-heading > strong {
    font-size: 14px;
}

.logical-sets-heading .text-button {
    font-size: 13px;
}

.logical-sets-editor {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.logical-set-editor {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 12px;
}

.logical-set-heading > strong {
    color: #d9d9d9;
    font-size: 13px;
}

.logical-set-heading .icon-button {
    font-size: 22px;
    padding: 0 4px;
}

.logical-set-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.logical-set-fields label {
    margin: 10px 0 0;
}

.logical-set-fields label > span {
    display: block;
    min-height: 34px;
}

.logical-set-fields label small {
    display: inline;
    margin: 0;
}

.field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-pair small {
    display: block;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 7px;
}

.form-error {
    color: #db6e6e;
    margin: 18px 0;
}

.submit-plan {
    width: 100%;
    margin-top: 24px;
}

.submit-plan[disabled] {
    cursor: wait;
    opacity: .55;
}

.danger-zone {
    border: 1px solid rgba(219,110,110,.42);
    border-radius: 14px;
    margin-top: 30px;
    padding: 20px;
}

.danger-zone h2 {
    color: #db6e6e;
    font-size: 22px;
}

.danger-zone p,
.confirmation-dialog p {
    color: #d9d9d9;
}

.danger-zone .btn {
    margin-top: 16px;
}

.btn-danger {
    background: #db6e6e;
    color: #0f0e1b;
}

.btn-danger[disabled] {
    cursor: not-allowed;
    opacity: .38;
}

.confirmation-dialog {
    background: var(--bg-subnav);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    color: #fffffe;
    margin: auto;
    max-width: 520px;
    padding: 22px;
    width: calc(100% - 32px);
}

.confirmation-dialog::backdrop {
    background: rgba(5,4,12,.82);
}

.dialog-heading,
.dialog-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.dialog-heading h2 {
    color: #db6e6e;
    font-size: 25px;
}

.dialog-actions {
    align-items: stretch;
    margin-top: 22px;
}

.dialog-actions .btn {
    flex: 1;
}

@media (max-width: 520px) {
    .dialog-actions {
        flex-direction: column-reverse;
    }
}

.plan-meta {
    color: #9a9a9a;
    font-size: 14px;
    margin-top: 16px;
}

.plan-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.plan-title-row h1 {
    min-width: 0;
}

.plan-title-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.plan-followers {
    color: #9a9a9a;
    font-size: 14px;
    margin: -4px 0 10px;
}

.edit-plan-icon {
    appearance: none;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 0;
    border-radius: 50%;
    color: #fffffe;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
}

.edit-plan-icon:hover {
    background: rgba(255,255,255,.14);
    color: var(--yellow);
}

.edit-plan-icon:focus-visible {
    box-shadow: 0 0 0 3px var(--ring);
    outline: none;
}

.edit-plan-icon svg {
    fill: none;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 19px;
}

.share-link-reveal {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.share-link-reveal[hidden] {
    display: none;
}

.share-link-reveal input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--ink);
    padding: 12px;
    font: 500 14px var(--font-family);
}

.share-dialog .dialog-heading h2 {
    color: var(--ink);
}

.share-dialog .dialog-actions form {
    display: flex;
    flex: 1;
}

.share-dialog .dialog-actions form .btn {
    width: 100%;
}

.invitation-screen {
    min-height: calc(100vh - 188px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.invitation-screen > p {
    color: var(--ink-dim);
    max-width: 580px;
}

.invitation-action {
    display: inline-block;
    margin-top: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stats-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 22px;
    padding: 4px;
    border-radius: 999px;
    background: var(--bg-subnav);
}

.stats-tabs a {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--ink-dim);
    font-size: 14px;
    text-align: center;
}

.stats-tabs a[aria-current="page"] {
    background: var(--accent);
    color: var(--accent-ink);
}

.stat-card {
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-subnav);
}

.stat-card strong {
    color: var(--accent);
    font-size: clamp(38px, 13vw, 58px);
    line-height: 1;
}

.stat-card span {
    color: var(--ink-dim);
    font-size: 14px;
    line-height: 1.25;
}

.stat-card-wide {
    grid-column: 1 / -1;
}

.stats-empty {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-subnav);
}

.stats-empty h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.stats-empty p {
    margin-bottom: 22px;
    color: var(--ink-dim);
}

.weight-progress-section {
    margin-top: 28px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-subnav);
}

.weight-progress-heading {
    display: grid;
    gap: 18px;
}

.weight-progress-heading h2 {
    font-size: 24px;
    line-height: 1.15;
}

.weight-progress-selector {
    display: grid;
    gap: 6px;
}

.weight-progress-selector span {
    color: #9a9a9a;
    font-size: 13px;
}

.weight-progress-selector select {
    width: 100%;
    padding: 11px 38px 11px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--ink);
    font: 500 15px var(--font-family);
}

.weight-chart {
    margin-top: 18px;
}

.weight-chart svg {
    display: block;
    width: 100%;
    overflow: visible;
}

.weight-chart-grid-line {
    stroke: rgba(255,255,255,.1);
    stroke-width: 1;
}

.weight-chart-axis-label,
.weight-chart-date-label {
    fill: #9a9a9a;
    font: 500 10px var(--font-family);
}

.weight-chart-line {
    fill: none;
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.weight-chart-point {
    fill: var(--accent);
    stroke: var(--accent-ink);
    stroke-width: 2;
}

.weight-chart-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.weight-chart-summary span,
.weight-progress-empty {
    color: var(--ink-dim);
    font-size: 14px;
}

.weight-chart-summary strong {
    color: var(--accent);
    font-size: 24px;
}

.weight-progress-empty {
    margin-top: 16px;
}

.trainee-list {
    display: grid;
    gap: 10px;
}

.trainee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--bg-subnav);
    color: var(--ink);
}

.trainee-row > span:first-child {
    display: grid;
}

.trainee-row small,
.trainee-row > span:last-child {
    color: #9a9a9a;
    font-size: 13px;
}

.trainee-row > span:last-child {
    flex: 0 0 auto;
}

.trainee-stats-heading {
    margin-top: 12px;
}

.trainee-management {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid rgba(219,110,110,.42);
    border-radius: var(--radius-md);
}

.trainee-management h2 {
    color: #db6e6e;
    font-size: 22px;
}

.trainee-management p {
    margin: 6px 0 16px;
    color: var(--ink-dim);
}

.coaching-link-control {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.coaching-access-notice,
.coaching-invitation-notice {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(218,241,67,.35);
    border-radius: var(--radius-md);
    background: rgba(218,241,67,.06);
}

.coaching-access-notice p,
.coaching-invitation-notice p {
    color: var(--ink-dim);
    font-size: 14px;
}

.coaching-access-notice .text-button {
    margin-top: 10px;
}

.unfollow-plan-form {
    margin-top: 18px;
}

[data-unfollow-dialog] .dialog-actions form,
[data-unfollow-dialog] .dialog-actions form .btn {
    width: 100%;
}

[data-unfollow-dialog] .dialog-actions form {
    display: flex;
    flex: 1;
}

.coaches-hero {
    padding: 42px 0 30px;
}

.coaches-hero h1 {
    max-width: 620px;
}

.coaches-hero p {
    max-width: 560px;
    margin-bottom: 0;
    color: var(--ink-dim);
    font-size: 18px;
}

.coaches-benefits {
    display: grid;
    gap: 12px;
}

.coaches-benefits section {
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--bg-subnav);
}

.billing-success {
    margin-bottom: 20px;
    border: 1px solid rgba(218, 241, 67, 0.45);
    border-radius: 18px;
    background: rgba(218, 241, 67, 0.08);
    color: #fffffe;
    padding: 16px;
}

.coaches-benefits section > strong {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
}

.coaches-benefits h2 {
    font-size: 23px;
}

.coaches-benefits p {
    color: var(--ink-dim);
}

.coaches-plans {
    margin-top: 44px;
}

.coaches-plans-heading {
    max-width: 560px;
    margin-bottom: 20px;
}

.coaches-plans-heading h2 {
    margin-top: 5px;
    font-size: 29px;
    line-height: 1.12;
}

.coaches-plans-heading p {
    margin-top: 8px;
    color: var(--ink-dim);
}

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

.pricing-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 254, 0.12);
    border-radius: var(--radius-xl);
    background: var(--bg-subnav);
}

.pricing-card-featured {
    border: 2px solid var(--accent);
    background: linear-gradient(155deg, rgba(218, 241, 67, 0.1), var(--bg-subnav) 42%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.pricing-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pricing-kicker {
    color: var(--ink-dim);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-card h3 {
    margin-top: 4px;
    font-size: 24px;
    line-height: 1.15;
}

.plan-badge {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 800;
}

.plan-badge-current {
    border: 1px solid rgba(255, 255, 254, 0.25);
    background: rgba(255, 255, 254, 0.08);
    color: var(--ink);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 28px;
}

.plan-price strong {
    color: var(--ink);
    font-size: 32px;
    line-height: 1;
}

.plan-price span,
.plan-summary {
    color: var(--ink-dim);
}

.plan-summary {
    margin-top: 12px;
}

.plan-features {
    display: grid;
    gap: 12px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.plan-features li {
    display: flex;
    gap: 10px;
    color: var(--ink);
    line-height: 1.4;
}

.plan-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 900;
}

.pricing-cta,
.plan-current-button {
    width: 100%;
    margin-top: auto;
    text-align: center;
}

.plan-current-button:disabled {
    border-color: rgba(255, 255, 254, 0.16);
    background: rgba(255, 255, 254, 0.07);
    color: var(--ink-dim);
    cursor: default;
    opacity: 1;
}

.session-list {
    display: grid;
    gap: 18px;
}

.session-card-heading {
    display: block;
    margin-bottom: 0;
}

.session-card[open] > .session-card-heading {
    margin-bottom: 20px;
}

.session-card-heading h2 {
    font-size: 26px;
    line-height: 1.1;
    margin: 0;
}

.progress-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.progress-check {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
}

.progress-check svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.exercise-section {
    margin-top: 18px;
}

.exercise-section h3 {
    color: #9a9a9a;
    font-size: 13px;
    letter-spacing: .06em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.exercise-row {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--bg-elevated);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: 9px 14px;
}

.exercise-row-button {
    width: 100%;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.exercise-row-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.exercise-dialog .dialog-heading h2 {
    color: var(--ink);
}

.dialog-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--ink);
    cursor: pointer;
    font: 400 26px/1 var(--font-family);
}

.exercise-dialog-actions,
.exercise-dialog-actions form {
    display: grid;
    width: 100%;
}

.exercise-dialog-actions .btn {
    width: 100%;
    line-height: 1.25;
    text-align: center;
}

.correction-form {
    display: grid;
    gap: 12px;
}

.correction-exercise {
    border: 0;
    border-radius: var(--radius-md);
    background: var(--bg-subnav);
    padding: 18px;
}

.correction-exercise legend {
    float: left;
    width: 100%;
    color: var(--ink);
    font-size: 19px;
    font-weight: 600;
}

.correction-exercise small {
    display: block;
    clear: both;
    color: #9a9a9a;
}

.segmented-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 14px;
    padding: 4px;
    border-radius: 999px;
    background: var(--bg-body);
}

.segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-control span {
    display: block;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--ink-dim);
    text-align: center;
    cursor: pointer;
}

.segmented-control input:checked + span {
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
}

.segmented-control input:focus-visible + span {
    box-shadow: 0 0 0 3px var(--ring);
}

.correction-submit {
    width: 100%;
    margin-top: 10px;
    padding: 16px 20px;
}

.exercise-row:first-of-type {
    border-radius: 10px 10px 0 0;
}

.exercise-row:last-child {
    border-radius: 0 0 10px 10px;
}

.exercise-row-button:last-of-type {
    border-radius: 0 0 10px 10px;
}

.exercise-row strong,
.exercise-row small {
    display: block;
}

.exercise-row .exercise-notes {
    color: #d9d9d9;
    margin-top: 3px;
}

.admin-login-card,
.admin-toolbar {
    background: var(--bg-subnav);
    border-radius: 14px;
    padding: 20px;
}

.admin-login-card {
    max-width: 420px;
}

.admin-login-card .btn {
    width: 100%;
    margin-top: 18px;
}

.admin-toolbar {
    display: grid;
    gap: 20px;
    margin-bottom: 18px;
}

.admin-form-row,
.exercise-type-admin-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-form-row input,
.exercise-type-admin-row input {
    flex: 1;
}

.exercise-type-list {
    display: grid;
    gap: 8px;
}

.exercise-type-admin-row {
    background: var(--bg-subnav);
    border-radius: 10px;
    padding: 10px;
}

.danger-button {
    border: 0;
    background: transparent;
    color: #db6e6e;
    cursor: pointer;
    font: 600 14px var(--font-family);
}

.integration-create-card .btn {
    margin-top: 18px;
}

.token-reveal,
.integration-help,
.integration-token-list {
    margin-top: 24px;
}

.token-reveal {
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 16px;
}

.token-reveal code,
.integration-help > code {
    display: block;
    overflow-wrap: anywhere;
    margin: 10px 0;
    color: var(--accent);
}

.integration-token-list {
    display: grid;
    gap: 10px;
}

.integration-token {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-subnav);
    border-radius: 10px;
    padding: 14px;
}

.integration-token small {
    display: block;
    color: #9a9a9a;
}

.integration-token.is-revoked {
    opacity: .58;
}

.token-status {
    color: #9a9a9a;
    font-size: 14px;
}

@media (max-width: 520px) {
    .exercise-type-admin-row {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .exercise-type-admin-row input {
        flex-basis: 100%;
    }
}

.exercise-row strong {
    color: #d9d9d9;
    font-size: 18px;
}

.exercise-row small {
    color: #9a9a9a;
    font-size: 13px;
}

@media (min-width: 700px) {
    .screen {
        padding-left: 30px;
        padding-right: 30px;
    }

    .coaches-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

}
main .title-bar h2 {
    font-family: var(--font-family);
    color:white;
    font-size:30px;
    height:57px;
    margin-left:11px;
}

/* ============ subnav ============ */

.subnav {
    height:70px;
    width:100%;
    position: fixed;
    bottom:0;
    background-color: var(--bg-subnav);
}
.subnav .aligned-icons {
    display:flex;
    justify-content:space-evenly;
    height:100%;
}
.subnav .aligned-icons > * {
    flex-grow: 1;
    height:100%;
}
.subnav .central-icon {
    position:absolute;
    height:70px;
    width:70px;
    background:var(--bg-subnav);
    left:50%;
    margin-left:-35px;
    bottom:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    border:2px solid var(--yellow);
    border-radius:50%;
}

.subnav .central-icon > img {
    display:block;
    height:50px;
    width:50px;
}

.subnav .aligned-icons .icon {
    display:flex;
    align-items:center;
    justify-content: center;
}

.subnav .aligned-icons .icon > img {
    display:block;
    height: 50px;
    width: 50px;
}
