/* ==============================================
   app.css — stili custom sopra Onsen UI
   ============================================== */

:root {
    --color-primary:  #1a1a1a;
    --color-bg:       #f2f3f5;
    --color-surface:  #ffffff;
    --color-text:     #1e1e1e;
    --color-muted:    #757575;
    --color-border:   #e0e0e0;
    --color-success:  #1e8a5e;
    --color-danger:   #d32f2f;
    --color-warning:  #e67e22;
    --color-info:     #1565c0;
    --color-coming:   #7b1fa2;
    --tabbar-h:       56px;
    --toolbar-h:      44px;
    --radius:         10px;
    --shadow:         0 2px 8px rgba(0,0,0,0.08);
}

/* ---- BASE ---- */
* { box-sizing: border-box; }
body {
    background: var(--color-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

/* ---- LOGIN ---- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-bg);
    padding: 32px 20px;
    box-sizing: border-box;
}
.login-logo {
    text-align: center;
    margin-bottom: 28px;
}
.login-logo img {
    max-height: 72px;
    display: inline-block;
}
.login-box {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 24px 20px 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    max-width:450px;
    margin:0 auto;
}
.login-field-wrap {
    margin-bottom: 16px;
}
.login-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.login-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-surface);
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    -webkit-appearance: none;
}
.login-input:focus {
    border-color: var(--color-primary);
}
.login-error {
    color: var(--color-danger);
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 4px;
}
.login-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .3px;
    margin-top: 8px;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s;
}
.login-btn:active { opacity: .85; }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.login-footer {
    padding: 14px 0 0;
    font-size: 12px;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.5;
}

/* ---- TOOLBAR ---- */
ons-toolbar { background: var(--color-primary) !important; }
.toolbar__title { color: #fff !important; font-weight: 600 !important; }
ons-toolbar-button { color: #fff !important; }
.btn-icon { font-size: 18px !important; vertical-align: middle; margin-right: 4px; }

/* ---- DRAWER ---- */
.drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 52px 16px 16px;
    background: var(--color-primary);
}
.drawer-header ons-icon { color: rgba(255,255,255,0.72) !important; }
.drawer-name  { font-weight: 600; color: #fff; font-size: 15px; line-height: 1.3; }
.drawer-email { font-size: 12px; color: rgba(255,255,255,0.58); }
.drawer-icon  { font-size: 22px !important; vertical-align: middle; color: var(--color-primary); }

/* ---- TABBAR BOTTOM ---- */
.tabbar-bottom {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--tabbar-h);
    display: flex;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--color-muted);
    cursor: pointer;
    text-decoration: none;
    gap: 2px;
    border: none;
    background: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s;
    font-family: inherit;
}
.tabbar-item .material-icons { font-size: 22px !important; line-height: 1; }
.tabbar-item.active { color: var(--color-primary); }

/* ---- TAB CONTENT ---- */
.tab-content {
    display: none;
    position: fixed;
    top: var(--toolbar-h);
    left: 0; right: 0;
    bottom: var(--tabbar-h);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--color-bg);
    padding: 20px 14px 14px; /* top, lati, bottom */
}
.tab-content.active-tab { display: block; }

/* ---- DRAWER PAGE OVERLAY (profilo, extra) ---- */
.drawer-page-overlay {
    position: fixed;
    top: var(--toolbar-h);
    left: 0; right: 0;
    bottom: var(--tabbar-h);
    background: var(--color-bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 8000;
    padding: 14px;
}
.drawer-page-back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}
.drawer-page-back .material-icons { font-size: 20px; }

/* ---- CARD ---- */
.app-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
}
.app-card-title    { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
.app-card-subtitle { font-size: 13px; color: var(--color-muted); margin: 0 0 10px; }

/* ---- SECTION TITLE ---- */
.section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--color-muted);
    margin: 18px 0 8px;
}
.section-title:first-child { margin-top: 2px; }

/* ---- INFO ROWS ---- */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 15px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    gap: 8px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--color-muted); font-size: 13px; flex-shrink: 0; }
.info-value { font-weight: 500; text-align: right; }

/* ---- BADGE ---- */
.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
}
.badge-success { background: #e6f4ef; color: var(--color-success); }
.badge-danger  { background: #fdecea; color: var(--color-danger); }
.badge-warning { background: #fef3e2; color: var(--color-warning); }
.badge-info    { background: #e3edf9; color: var(--color-info); }
.badge-coming  { background: #f3e5f5; color: var(--color-coming); }

/* ---- PAYMENT ALERT ---- */
.payment-alert {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid var(--color-warning);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 10px;
}
.payment-alert-title { font-weight: 600; font-size: 14px; color: var(--color-warning); margin-bottom: 6px; }

/* ---- SUMMARY GRID (home) ---- */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}
.summary-tile {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 10px;
    text-align: center;
    border: 1px solid var(--color-border);
}
.summary-number { font-size: 30px; font-weight: 700; color: var(--color-primary); line-height: 1; }
.summary-number.danger { color: var(--color-danger); }
.summary-label  { font-size: 11px; color: var(--color-muted); margin-top: 5px; }

/* ---- CALENDAR CUSTOM ---- */
.cal-wrap {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--color-primary);
}
.cal-header-title { color: #fff; font-size: 15px; font-weight: 600; }
.cal-nav-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 8px 4px 6px;
    gap: 2px;
}
.cal-day-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-muted);
    text-align: center;
    padding: 2px 0 4px;
}
.cal-day {
    text-align: center;
    padding: 5px 2px 2px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 13px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.cal-day.today { background: var(--color-primary); color: #fff; font-weight: 700; border-radius: 50%; }
.cal-day.no-events { cursor: default; }
.cal-day-dot { width: 5px; height: 5px; border-radius: 50%; margin: 2px auto 0; }

/* ---- RESERVATION CARD ---- */
.res-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px 14px;
    margin-bottom: 10px;
    border-left: 4px solid var(--color-primary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
}
.res-card.queue { border-left-color: var(--color-warning); }
.res-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.res-card-title  { font-weight: 600; font-size: 14px; }
.res-card-slot   { font-size: 13px; color: var(--color-muted); }

/* ---- RESERVATION FORM ---- */
.res-form-label {
    font-size: 11px; font-weight: 700; color: var(--color-muted);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.res-form-select {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--color-border); border-radius: 8px;
    font-size: 15px; background: var(--color-surface); color: var(--color-text);
    appearance: none; -webkit-appearance: none;
    font-family: inherit;
}
.res-form-select:focus { outline: 2px solid var(--color-primary); }
.res-form-error { color: var(--color-danger); font-size: 13px; margin-top: 8px; }

/* ---- ACCORDION ABBONAMENTI ---- */
.sub-accordion {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    margin-bottom: 12px;
    overflow: hidden;
}
.sub-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.sub-accordion-header > div:first-child {
    flex: 1;
}
.sub-accordion-title { font-weight: 600; font-size: 15px; }
.sub-accordion-body { display: none; padding: 0 14px 14px; border-top: 1px solid var(--color-border); }
.sub-accordion-body.open { display: block; }

/* ---- TRAINING SUBTAB ---- */
.subtab-bar {
    display: flex;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.subtab-btn {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-muted);
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.subtab-btn.active {
    background: var(--color-primary);
    color: #fff;
}
.subtab-btn .material-icons { font-size: 18px !important; }
.subtab-content { display: none; }
.subtab-content.active { display: block; }

/* ---- COMING SOON ---- */
.coming-soon {
    text-align: center;
    padding: 48px 24px 32px;
}
.coming-soon-icon {
    font-size: 56px !important;
    color: var(--color-coming);
    display: block;
    margin-bottom: 16px;
    opacity: .75;
}
.coming-soon-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}
.coming-soon-text {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ---- UTILITY ---- */
.text-muted   { color: var(--color-muted); }
.text-danger  { color: var(--color-danger) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.d-none       { display: none !important; }
.mt-8         { margin-top: 8px; }
.mt-12        { margin-top: 12px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap     { display: flex; gap: 8px; flex-wrap: wrap; }

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--color-muted);
}
.empty-state .material-icons {
    font-size: 48px !important;
    display: block;
    margin-bottom: 12px;
    opacity: .35;
}

.loading-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 56px 0;
}

.place-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
}

.profile-input { width: 100%; margin-bottom: 14px; display: block; }

/* ---- FIX BADGE NEL DRAWER ---- */
/* Il div.right di ons-list-item non è flex di default in tutti i temi */
ons-list-item .right {
    display: flex;
    align-items: center;
}

/* ---- RIMOZIONE STILI SUBTAB (non più usati con 3-tab) ---- */
/* .subtab-bar, .subtab-btn, .subtab-content rimangono nel CSS
   ma non vengono più usati — nessun impatto */

/* ================================================================
   AGGIUNTE: loading, drawer logo, tema chiaro/scuro, impostazioni
   ================================================================ */

/* ---- LOADING OVERLAY GLOBALE ---- */
#app-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 99999;
}
#app-loading-overlay ons-progress-circular {
    width: 52px;
    height: 52px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ---- DRAWER LOGO + USER INFO ---- */
.drawer-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 44px 0 14px !important;
}
.drawer-logo-wrap {
    text-align: center;
    padding: 0 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 12px;
}
.drawer-logo {
    max-height: 32px;
    display: inline-block;
}
.drawer-user-info {
    display: flex;
    align-items: center;
    padding: 0 16px;
}
.drawer-user-info ons-icon {
    color: rgba(255,255,255,0.72) !important;
}

/* Fix drawer list-item: meno spazio, icona vicina al testo */
ons-splitter-side ons-list-item {
    min-height: 40px !important;
    --list-item-padding-top: 6px !important;
    --list-item-padding-bottom: 6px !important;
}
ons-splitter-side ons-list-item .left {
    min-width: 32px !important;
    padding-right: 4px !important;
}
ons-splitter-side ons-list-item .center {
    font-size: 14px !important;
    white-space: normal;
}
/* Badge PRESTO: non stringe il testo del centro */
ons-splitter-side ons-list-item .right {
    flex-shrink: 0;
    padding-left: 8px;
}
/* Separatori di sezione più compatti */
ons-splitter-side ons-list-header {
    min-height: 28px !important;
    line-height: 28px !important;
    font-size: 11px !important;
}

/* ---- BOTTONI TEMA (pannello impostazioni) ---- */
.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s, border-color .15s;
    -webkit-tap-highlight-color: transparent;
}
.theme-btn .material-icons { font-size: 18px !important; }
.theme-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ---- TRANSIZIONI SMOOTH PER IL CAMBIO TEMA ---- */
body,
.app-card, .sub-accordion, .summary-tile, .res-card,
.place-card, .cal-wrap, .tabbar-bottom, .login-box,
.tab-content, .drawer-page-overlay {
    transition: background-color .2s, border-color .2s, color .2s;
}

.text-input--material__label--active {
    color: var(--color-muted) !important;
}

.text-input {
    color: var(--color-text) !important;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 16px;
}
 
.profile-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
}
 
.profile-avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow);
    display: block;
}
 
.profile-avatar-initials {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
    box-shadow: var(--shadow);
    user-select: none;
}
 
.profile-avatar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
 
.avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--shadow);
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s;
}
.avatar-btn .material-icons {
    font-size: 17px !important;
}
.avatar-btn:active {
    opacity: .75;
}
.avatar-btn-danger {
    color: var(--color-danger);
    border-color: #fcd0d0;
}
 
/* ---- AVATAR PICCOLO NEL DRAWER ---- */
.drawer-avatar-wrap {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    position: relative;
}
 
.drawer-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    display: block;
}
 
.drawer-avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    user-select: none;
}

#crop-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

#crop-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    height: 100vh;        /* aggiunge questo */
    height: 100dvh;       /* e questo per mobile (dynamic viewport) */
}

.crop-canvas-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 0;
    display: flex;             /* aggiunge questo */
    align-items: center;       /* centra verticalmente */
    justify-content: center;   /* centra orizzontalmente */
}

.cropper-view-box,
.cropper-face {
    border-radius: 50% !important;
}

/* ================================================================
   TRAINING SCHEDULES — aggiunte ad app.css
   ================================================================ */

/* ---- BOTTONI TRAINING ---- */
.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, color .15s;
}
.btn-primary-outline:active {
    background: var(--color-primary);
    color: #fff;
}

.btn-warning-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--color-warning);
    background: transparent;
    color: var(--color-warning);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, color .15s;
}
.btn-warning-outline:active {
    background: var(--color-warning);
    color: #fff;
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s;
}
.btn-primary-sm:active { opacity: .8; }

.btn-danger-full {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: var(--color-danger);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s;
}
.btn-danger-full:active { opacity: .85; }

.btn-muted {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }

.btn-text-muted {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* ---- BLOCCO ESERCIZI ---- */
.training-block {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.training-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ---- RIGA ESERCIZIO ---- */
.exercise-row {
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-border);
}
.exercise-row:last-child { border-bottom: none; }

/* ---- GRIGLIA SPEC ESERCIZIO ---- */
.spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.spec-row {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--color-bg);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
}
.spec-label {
    color: var(--color-muted);
    font-size: 11px;
}
.spec-value {
    font-weight: 600;
    color: var(--color-text);
}

/* ---- MODALE SCELTA LUOGO ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.modal-overlay[style*="display:block"],
.modal-overlay[style*="display: block"] {
    display: flex !important;
}
.modal-box {
    background: var(--color-surface);
    border-radius: 14px;
    padding: 20px 18px;
    margin: 20px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
.modal-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-text);
}

/* ---- PLACE PICKER ---- */
.place-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.place-picker-item {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--color-border);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
}
.place-picker-item.selected {
    border-color: var(--color-primary);
    background: rgba(26,26,26,0.06);
    font-weight: 700;
}

/* ---- KG EDITABLE ---- */
.spec-row-kg-editable {
    cursor: pointer;
    border: 1px dashed var(--color-border);
    border-radius: 6px;
    padding: 3px 8px;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
}
.spec-row-kg-editable:active {
    background: var(--color-bg);
}

/* ---- TELEMETRIA ---- */

.tl-session-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-success);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tl-session-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.tl-session-date { font-weight: 600; font-size: 14px; }
.tl-session-time { font-size: 12px; color: var(--color-muted); }
.tl-session-stats {
    display: flex;
    gap: 0;
    justify-content: space-around;
    margin-bottom: 8px;
}
.tl-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.tl-stat-icon { font-size: 18px !important; color: var(--color-muted); }
.tl-stat-value { font-weight: 700; font-size: 16px; color: var(--color-text); }
.tl-stat-label { font-size: 10px; color: var(--color-muted); text-transform: uppercase; letter-spacing: .4px; }
.tl-zona-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 2px;
}

/* -- Dettaglio sessione -- */
.tl-detail-wrap { padding: 0 0 32px; }
.tl-detail-header { margin-bottom: 12px; }
.tl-detail-title { font-size: 18px; font-weight: 700; margin: 4px 0 2px; }
.tl-detail-subtitle { font-size: 13px; color: var(--color-muted); }
.tl-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}
.tl-kpi-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow);
}
.tl-kpi-icon { font-size: 20px !important; display: block; margin-bottom: 4px; }
.tl-kpi-value { font-size: 20px; font-weight: 700; color: var(--color-text); line-height: 1.1; }
.tl-kpi-label { font-size: 10px; color: var(--color-muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }

/* -- Zone bar -- */
.tl-zone-row { margin-bottom: 12px; }
.tl-zone-label-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.tl-zone-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tl-zone-name { font-size: 13px; font-weight: 600; flex: 1; }
.tl-zone-meta { font-size: 12px; color: var(--color-muted); }
.tl-zone-bar-bg {
    height: 7px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}
.tl-zone-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .4s ease;
}

/* -- Live session banner -- */
.tl-live-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-success);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.tl-live-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tl-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: tl-pulse 1.2s ease-in-out infinite;
}
@keyframes tl-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}
.tl-live-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.tl-live-started {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
}
.tl-live-timer {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}
/* ============================================================
   FITCHECK & BIA
   ============================================================ */

/* -- Lista fitcheck -- */
.fc-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: opacity .15s;
}
.fc-card:active { opacity: .75; }
.fc-card-checkbox {
    padding-top: 2px;
    flex-shrink: 0;
}
.fc-card-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.fc-card-body { flex: 1; min-width: 0; }
.fc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.fc-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-card-meta {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 2px;
}
.fc-card-scores {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.fc-score-item { text-align: center; }
.fc-score-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}
.fc-score-delta-pos { color: var(--color-success); }
.fc-score-delta-neg { color: var(--color-danger); }
.fc-score-label {
    font-size: 10px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: 2px;
}

/* -- Paginazione -- */
.fc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 80px;
}
.fc-page-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
}
.fc-page-btn:disabled {
    opacity: .4;
    cursor: default;
}
.fc-page-info {
    font-size: 13px;
    color: var(--color-muted);
}

/* -- Barra confronto fissa in basso -- */
.fc-compare-bar {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 10px 16px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.18);
}
.fc-compare-bar-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.fc-compare-bar-btn {
    background: #fff;
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    cursor: pointer;
}

/* -- Dettaglio fitcheck -- */
.fc-detail-header {
    margin-bottom: 14px;
}
.fc-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 4px 0 2px;
}
.fc-detail-subtitle {
    font-size: 13px;
    color: var(--color-muted);
}
.fc-detail-scores {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.fc-kpi-card {
    flex: 1;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    text-align: center;
}
.fc-kpi-icon {
    font-size: 20px !important;
    display: block;
    margin-bottom: 4px;
}
.fc-kpi-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
}
.fc-kpi-label {
    font-size: 10px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: 3px;
}
.fc-section-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    overflow: hidden;
}
.fc-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

/* -- Thumbnails file -- */
.fc-thumbs-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
}
.fc-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid var(--color-border);
    transition: border-color .15s;
}
.fc-thumb:active { border-color: var(--color-primary); }
.fc-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 13px;
    color: var(--color-text);
    cursor: pointer;
    text-decoration: none;
}

/* -- Skeleton loader -- */
.fc-skeleton {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 12px;
}
.fc-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: var(--color-border);
    margin-bottom: 8px;
    animation: fc-shimmer 1.2s ease-in-out infinite;
}
.fc-skeleton-line.wide  { width: 70%; }
.fc-skeleton-line.short { width: 40%; }
.fc-skeleton-line.full  { width: 100%; }
@keyframes fc-shimmer {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* -- Confronto -- */
.fc-compare-header {
    margin-bottom: 14px;
}
.fc-compare-loading-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.fc-compare-loading-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fc-compare-loading-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fc-compare-loading-card-icon.done {
    background: var(--color-success);
}
.fc-compare-loading-card-icon.done .material-icons {
    color: #fff;
    font-size: 18px !important;
}
.fc-compare-loading-card-body { flex: 1; }
.fc-compare-loading-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}
.fc-compare-loading-card-sub {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 2px;
}
.fc-compare-table-wrap {
    overflow-x: auto;
    margin-bottom: 32px;
}
.fc-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.fc-compare-table th {
    background: var(--color-bg);
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 10px 10px;
    border-bottom: 2px solid var(--color-border);
    text-align: left;
    position: sticky;
    top: 0;
}
.fc-compare-table th:first-child { min-width: 120px; }
.fc-compare-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    color: var(--color-text);
}
.fc-compare-table td:first-child {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
}
.fc-compare-table tr:last-child td { border-bottom: none; }
.fc-compare-table tr:nth-child(even) td {
    background: var(--color-bg);
}
.fc-compare-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid var(--color-border);
}

/* ================================================================
   SCHEDE ALLENAMENTO — esercizio: check "ho fatto"
   ================================================================ */

.ex-done-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    line-height: 1;
    border-radius: 50%;
    transition: transform .15s;
}
.ex-done-btn:active { transform: scale(.88); }

.ex-done-icon {
    font-size: 22px;
    color: var(--color-border);
    transition: color .2s;
    display: block;
}
.ex-done-btn.done .ex-done-icon {
    color: var(--color-success);
}

/* ================================================================
   SCHEDE ALLENAMENTO — pulsanti info esercizio (muscoli/attrezzi/media)
   ================================================================ */

.ex-info-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ex-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.ex-info-btn .material-icons { font-size: 13px; }
.ex-info-btn:active {
    background: var(--color-border);
    color: var(--color-text);
}

/* ================================================================
   MODALE FULLSCREEN (muscoli / attrezzi)
   ================================================================ */

.ex-fullscreen-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: var(--color-surface);
    flex-direction: column;
    overflow: hidden;
}
.ex-fullscreen-modal.open { display: flex; }

.ex-fullscreen-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
    /* FIX: il titolo non scorre con il body */
    position: relative;
    z-index: 1;
}
.ex-fullscreen-title {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    color: var(--color-text);
    /* FIX: tronca titoli lunghi senza andare a capo */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ex-fullscreen-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--color-muted);
    line-height: 1;
    border-radius: 50%;
    flex-shrink: 0;
}
.ex-fullscreen-close .material-icons { font-size: 22px; display: block; }

.ex-fullscreen-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* ---- muscoli: doppia silhouette ---- */

.muscles-charts-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
.muscles-chart-wrap {
    flex: 1;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.muscles-chart-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.muscles-chart-container {
    width: 100%;
    flex: 1;
    min-height: 200px;
}
/* FIX: silhouette non interattiva */
.muscles-chart-container .body-chart-container,
.muscles-chart-container svg {
    pointer-events: none !important;
    cursor: default !important;
}

/* ---- muscoli: legenda gruppi ---- */

.muscles-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.muscles-legend-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.muscles-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}
.muscles-legend-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}
.muscles-legend-parts {
    font-size: 12px;
    color: var(--color-muted);
}

/* ---- attrezzi ---- */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.tool-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tool-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}
.tool-card-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-card-placeholder .material-icons {
    font-size: 36px;
    color: var(--color-muted);
}
.tool-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    padding: 8px 10px;
    text-align: center;
    line-height: 1.3;
}

/* ================================================================
   MEDIA — accordion inline + griglia thumbnail
   ================================================================ */

.ex-media-accordion {
    display: none;
    margin-top: 0;
    margin-bottom: 12px;
    background: var(--color-bg);
    border-radius: 8px;
    padding: 10px 12px 12px;
}
.ex-media-accordion.open { display: block; }

.ex-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}
.ex-media-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 1/1;
    background: var(--color-border);
}
.ex-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ex-media-thumb-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
}
.ex-media-thumb-video .material-icons {
    font-size: 32px;
    color: #fff;
    opacity: .85;
}
.ex-media-thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,.5);
    padding: 3px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* modale fullscreen media */
.ex-media-fullscreen-img {
    width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.ex-media-fullscreen-video {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}
.ex-media-fullscreen-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.ex-media-caption {
    font-size: 12px;
    color: var(--color-muted);
}
.ex-media-caption strong {
    display: block;
    font-size: 13px;
    color: var(--color-text);
    margin-bottom: 2px;
}



/* ================================================================
   EXERCISE-ROW — separatore tramite hr esplicito
   ================================================================ */

.exercise-row {
    border-bottom: none !important;
}
.exercise-row:last-child {
    border-bottom: none !important;
}
hr.exercise-separator {
    border: none;
    border-top: 1px dashed var(--color-border);
    margin: 0;
}

/* ================================================================
   TELEMETRIA — grafico BPM verticale
   ================================================================ */

.tl-chart-wrap {
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    margin-top: 8px;
    overflow: hidden;
}

.tl-chart-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--color-muted);
    padding: 10px 14px 0;
}

.tl-chart-inner {
    display: flex;
    flex-direction: row;
    padding: 10px 14px 10px 0;
    gap: 0;
}

.tl-chart-y-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 6px 0 10px;
    flex-shrink: 0;
    width: 48px;
}

.tl-chart-y-label {
    font-size: 10px;
    color: var(--color-muted);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.tl-chart-svg-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}

.tl-chart-svg-wrap svg {
    display: block;
    width: 100%;
}

.tl-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 8px 14px 12px;
    border-top: 1px solid var(--color-border);
}

.tl-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--color-muted);
}

.tl-chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ================================================================
   TRAINING — banner timer in-session
   ================================================================ */

.training-timer-banner {
    position: sticky;
    top: 0;
    z-index: 7900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-primary);
    padding: 10px 14px;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    margin-bottom: 20px;
}

.training-timer-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.training-timer-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
    animation: tl-pulse 1.2s ease-in-out infinite;
}

.training-timer-banner-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.training-timer-banner-time {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.training-timer-banner-end {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
}
.training-timer-banner-end:active {
    background: rgba(255,255,255,0.15);
}
.training-timer-banner-end .material-icons {
    font-size: 16px;
}