/* ═══════════════════════════════════════════════════════════
   WKT — Workout Session Tracker Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Hero stats row ── */
.wkt-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.wkt-hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: left;
}
.wkt-hero-label {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.wkt-hero-val {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}
.wkt-hero-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}
.wkt-streak-green { color: #4ade80; }
.wkt-hero-streak .wkt-hero-sub { color: #4ade80; }

/* ── Flat tab bar ── */
.wkt-icon-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1.5px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}
.wkt-icon-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 4px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1.5px;
    letter-spacing: 0.2px;
    font-family: inherit;
    text-align: center;
}
.wkt-icon-tab:hover {
    color: rgba(255,255,255,0.8);
}
.wkt-icon-tab-active {
    color: #fff;
    border-bottom-color: #86efac;
}
/* First tab: coach dropdown wrapper */
.wkt-ctx-tab {
    position: relative;
    padding: 0;
}
.wkt-tab-label {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 10px 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    box-sizing: border-box;
    color: inherit;
    text-align: center;
    margin-bottom: -1.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wkt-ctx-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    z-index: 9200;
    background: #1e2040;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    padding: 6px;
}

/* ── Section label ── */
.wkt-section-label {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wkt-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.wkt-add-lib-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1.5px dashed rgba(255,255,255,0.15);
    border-radius: 10px;
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    font-family: inherit;
    transition: border-color .15s, color .15s;
}
.wkt-add-lib-btn:hover { border-color: rgba(255,255,255,0.28); color: rgba(255,255,255,0.65); }

/* ══════════════════════════════════════════════════════════
   TODAY TAB
   ══════════════════════════════════════════════════════════ */

.wkt-today-empty-msg {
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    padding: 12px 0 14px;
}
.wkt-today-cta-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.wkt-cta-primary {
    flex: 1;
    padding: 13px 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.wkt-cta-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.wkt-cta-secondary {
    flex: 1;
    padding: 13px 10px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
}
.wkt-cta-secondary:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ── Session list (Today) ── */
.wkt-today-sessions-list { margin-bottom: 12px; }
.wkt-session-card {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.wkt-session-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.wkt-session-info { flex: 1; min-width: 0; }
.wkt-session-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wkt-session-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    margin-top: 3px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.wkt-int-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: capitalize;
}
.wkt-int-light    { background: rgba(144,238,144,0.15); color: #86efac; }
.wkt-int-moderate { background: rgba(100,149,237,0.15); color: #93c5fd; }
.wkt-int-hard     { background: rgba(255,140,0,0.18);   color: #fdba74; }
.wkt-int-intense  { background: rgba(255,80,80,0.18);   color: #fca5a5; }
.wkt-session-stars { color: #fbbf24; font-size: 11px; letter-spacing: 1px; }
.wkt-session-del {
    background: none;
    border: none;
    color: rgba(255,80,80,0.5);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.15s;
}
.wkt-session-del:hover { color: #ef4444; background: rgba(239,68,68,0.12); }

/* ── This Week list ── */
.wkt-week-section { margin-top: 18px; }
.wkt-week-list { display: flex; flex-direction: column; gap: 6px; }
.wkt-week-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}
.wkt-week-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.wkt-week-item-info { flex: 1; min-width: 0; }
.wkt-week-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.wkt-week-item-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 1px;
}
.wkt-planned-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 7px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.wkt-badge-done    { background: rgba(74,222,128,0.2); color: #4ade80; border: 1px solid rgba(74,222,128,0.4); }
.wkt-badge-rest    { background: transparent; color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.2); }

/* Log FAB */
.wkt-log-fab {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 14px;
}
.wkt-log-fab:hover { opacity: 0.88; transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════
   MUSCLE MAP TAB
   ══════════════════════════════════════════════════════════ */

.wkt-muscle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.wkt-muscle-tile {
    border-radius: 14px;
    padding: 14px 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s;
}
.wkt-muscle-icon { font-size: 22px; line-height: 1; }
.wkt-muscle-name {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}
.wkt-muscle-count {
    font-size: 13px;
    font-weight: 900;
    color: rgba(255,255,255,0.3);
}
/* intensity tiers */
.wkt-muscle-none  { background: rgba(255,255,255,0.04); }
.wkt-muscle-none .wkt-muscle-count { color: rgba(255,255,255,0.2); }
.wkt-muscle-light { background: rgba(20,83,45,0.35); border-color: rgba(74,222,128,0.2); }
.wkt-muscle-light .wkt-muscle-name { color: #86efac; }
.wkt-muscle-light .wkt-muscle-count { color: #86efac; }
.wkt-muscle-moderate { background: rgba(20,83,45,0.6); border-color: rgba(74,222,128,0.4); }
.wkt-muscle-moderate .wkt-muscle-name { color: #4ade80; }
.wkt-muscle-moderate .wkt-muscle-count { color: #4ade80; }
.wkt-muscle-heavy { background: rgba(22,163,74,0.55); border-color: rgba(74,222,128,0.7); }
.wkt-muscle-heavy .wkt-muscle-name { color: #fff; }
.wkt-muscle-heavy .wkt-muscle-count { color: #fff; }

/* Legend */
.wkt-muscle-legend {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}
.wkt-legend-item {
    font-size: 11px;
    font-weight: 600;
    padding-left: 14px;
    position: relative;
}
.wkt-legend-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 3px;
}
.wkt-leg-none     { color: rgba(255,255,255,0.3); }
.wkt-leg-none::before     { background: rgba(255,255,255,0.08); }
.wkt-leg-light    { color: #86efac; }
.wkt-leg-light::before    { background: rgba(20,83,45,0.6); border: 1px solid rgba(74,222,128,0.3); }
.wkt-leg-moderate { color: #4ade80; }
.wkt-leg-moderate::before { background: rgba(20,83,45,0.85); border: 1px solid rgba(74,222,128,0.5); }
.wkt-leg-heavy    { color: #fff; }
.wkt-leg-heavy::before    { background: rgba(22,163,74,0.7); border: 1px solid rgba(74,222,128,0.8); }

/* ══════════════════════════════════════════════════════════
   STATS TAB
   ══════════════════════════════════════════════════════════ */

/* Volume bar chart */
.wkt-volume-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 80px;
    margin-bottom: 6px;
}
.wkt-vol-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 3px;
}
.wkt-vol-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, #16a34a, #4ade80);
    min-height: 3px;
    transition: height 0.3s ease;
}
.wkt-vol-lbl {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    text-align: center;
}
.wkt-vol-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

/* Exercise selector */
.wkt-exercise-select {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
    cursor: pointer;
    margin-bottom: 12px;
    font-family: inherit;
    appearance: auto;
}
.wkt-exercise-select option { background: #1a2535; color: #fff; }

/* Exercise progress chart */
.wkt-exercise-chart { display: flex; flex-direction: column; gap: 6px; }
.wkt-ex-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 9px;
}
.wkt-ex-date { font-size: 11px; color: rgba(255,255,255,0.4); width: 60px; flex-shrink: 0; }
.wkt-ex-bar-wrap { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.wkt-ex-bar { height: 100%; border-radius: 3px; background: linear-gradient(to right, #16a34a, #4ade80); transition: width 0.3s; }
.wkt-ex-val { font-size: 12px; font-weight: 700; color: #4ade80; width: 70px; text-align: right; flex-shrink: 0; }
.wkt-ex-empty { text-align: center; color: rgba(255,255,255,0.3); font-size: 13px; padding: 20px 0; }

/* ══════════════════════════════════════════════════════════
   CALENDAR TAB
   ══════════════════════════════════════════════════════════ */

.wkt-cal-week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}
.wkt-cal-week-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 160px;
    text-align: center;
}
.wkt-date-arrow {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.18s;
}
.wkt-date-arrow:hover { background: rgba(255,255,255,0.18); }

/* 7-day strip */
.wkt-day-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 14px;
}
.wkt-day-tile {
    border-radius: 12px;
    padding: 8px 4px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 72px;
}
.wkt-day-tile:hover { background: rgba(255,255,255,0.1); }
.wkt-day-tile-active {
    border-color: #4ade80;
    background: rgba(74,222,128,0.1);
}
.wkt-day-abbr {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wkt-day-tile-active .wkt-day-abbr { color: #4ade80; }
.wkt-day-emoji { font-size: 18px; line-height: 1; }
.wkt-day-name-mini {
    font-size: 8px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.wkt-day-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4ade80;
    margin-top: 1px;
}

/* Weekly schedule list */
.wkt-week-schedule { display: flex; flex-direction: column; gap: 5px; margin-bottom: 6px; }
.wkt-schedule-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}
.wkt-schedule-row:hover { background: rgba(255,255,255,0.08); }
.wkt-sched-day {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    width: 30px;
    flex-shrink: 0;
}
.wkt-sched-date {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    width: 38px;
    flex-shrink: 0;
}
.wkt-sched-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.wkt-sched-done { background: rgba(74,222,128,0.2); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.wkt-sched-rest { background: transparent; color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.15); }
.wkt-sched-none { background: transparent; color: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.08); }
.wkt-sched-name { flex: 1; font-size: 13px; font-weight: 600; color: #fff; }
.wkt-sched-dur  { font-size: 11px; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.wkt-sched-dash { color: rgba(255,255,255,0.2); font-size: 14px; }

/* ══════════════════════════════════════════════════════════
   TEMPLATES TAB
   ══════════════════════════════════════════════════════════ */

.wkt-templates-list { display: flex; flex-direction: column; gap: 10px; }
.wkt-tmpl-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px;
}
.wkt-tmpl-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.wkt-tmpl-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.wkt-tmpl-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}
.wkt-tmpl-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 1px;
}
.wkt-tmpl-exercises {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
    padding: 0 2px;
}
.wkt-tmpl-ex-item {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    padding: 1px 0;
}
.wkt-tmpl-actions {
    display: flex;
    gap: 8px;
}
.wkt-tmpl-use-btn {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.wkt-tmpl-use-btn:hover { opacity: 0.85; }

/* ══════════════════════════════════════════════════════════
   LOG MODAL
   ══════════════════════════════════════════════════════════ */

.wkt-modal-overlay {
    position: fixed;
    /* stay below profile orb; env() accounts for notch/status bar on mobile */
    top: calc(env(safe-area-inset-top, 0px) + 74px);
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}
.wkt-modal-sheet {
    background: #0f1f35;
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 540px;
    /* fill the overlay — which already starts below the header */
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: wktSlideUp 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
/* Scrollable body — everything except header and save btn */
.wkt-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 0 20px 8px;
}
/* Fixed header inside the sheet */
.wkt-modal-header {
    flex-shrink: 0;
    padding: 20px 20px 12px;
}
/* Fixed save footer */
.wkt-modal-footer {
    flex-shrink: 0;
    padding: 10px 20px calc(env(safe-area-inset-bottom, 0px) + 16px);
    background: #0f1f35;
}
@keyframes wktSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.wkt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}
.wkt-modal-title { font-size: 17px; font-weight: 800; color: #fff; }
.wkt-modal-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.wkt-modal-close:hover { background: rgba(239,68,68,0.2); color: #ef4444; }

/* Template chips in modal */
.wkt-tmpl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.wkt-tmpl-chip {
    padding: 5px 11px;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.wkt-tmpl-chip:hover { border-color: rgba(74,222,128,0.5); color: #4ade80; }
.wkt-tmpl-chip-active { border-color: #4ade80; background: rgba(74,222,128,0.12); color: #4ade80; }

/* Form fields */
.wkt-modal-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
    margin-top: 12px;
}
.wkt-modal-input {
    width: 100%;
    min-width: 0;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.wkt-modal-input:focus { border-color: rgba(74,222,128,0.5); }
.wkt-modal-input::placeholder { color: rgba(255,255,255,0.2); }
input[type="date"].wkt-modal-input::-webkit-calendar-picker-indicator { filter: invert(0.5); }

.wkt-modal-textarea {
    width: 100%;
    min-width: 0;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.18s;
    overflow-x: hidden;
}
.wkt-modal-textarea:focus { border-color: rgba(74,222,128,0.5); }
.wkt-modal-textarea::placeholder { color: rgba(255,255,255,0.2); }

/* Intensity chips */
.wkt-intensity-row { display: flex; gap: 6px; flex-wrap: wrap; }
.wkt-int-chip {
    padding: 7px 10px;
    border-radius: 9px;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
    text-align: center;
    min-width: 60px;
}
.wkt-int-chip:hover { background: rgba(255,255,255,0.1); }
.wkt-int-chip-active { border-color: #4ade80; background: rgba(74,222,128,0.12); color: #4ade80; }

/* Stars */
.wkt-stars-row { display: flex; gap: 4px; }
.wkt-star {
    background: none;
    border: none;
    font-size: 26px;
    color: rgba(255,255,255,0.15);
    cursor: pointer;
    padding: 0;
    transition: color 0.12s, transform 0.1s;
    line-height: 1;
}
.wkt-star:hover { transform: scale(1.15); }
.wkt-star-active { color: #fbbf24; }

/* Save button */
.wkt-modal-save-btn {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.wkt-modal-save-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.wkt-modal-save-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ── Log Workout Photo Picker ── */
.wkt-log-img-area {
    width: 100%;
    height: 130px;
    border-radius: 12px;
    border: 1.5px dashed rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 5px;
}
.wkt-log-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.32);
    font-size: 12px;
    pointer-events: none;
}
.wkt-log-img-icon { font-size: 26px; }
.wkt-log-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.wkt-log-img-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Workout Day Detail Sheet ── */
.wkt-day-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9995;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.wkt-day-sheet-overlay.wkt-day-sheet-open { display: flex; }
.wkt-day-sheet {
    background: #0f1f35;
    border-radius: 22px 22px 0 0;
    padding: 20px 20px calc(max(env(safe-area-inset-bottom, 0px), 8px) + 24px);
    width: 100%;
    max-width: 540px;
    max-height: 75vh;
    overflow-y: auto;
    animation: wktSlideUp 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.wkt-day-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.wkt-day-sheet-title { font-size: 16px; font-weight: 800; color: #fff; }
.wkt-day-sheet-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wkt-day-sheet-sessions { display: flex; flex-direction: column; gap: 10px; }
.wkt-day-sheet-empty {
    color: rgba(255,255,255,0.38);
    text-align: center;
    padding: 28px 0;
    font-size: 14px;
}
.wkt-day-sheet-notes {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    line-height: 1.4;
}
.wkt-session-img {
    width: 100%;
    border-radius: 10px;
    margin-top: 8px;
    max-height: 160px;
    object-fit: cover;
}
