/* Exercise Log -- only what Core's shared theme doesn't already cover.
   Zone colours live in PHP (lde_zones) so charts, chips and bars can never
   drift apart; this file only handles layout. */

.lde-zone-inputs-wrap {
    background: var(--ldc-cream);
    border: 1px dashed var(--ldc-orange);
    border-radius: var(--ldc-radius-sm);
    padding: 14px;
    margin-bottom: 14px;
}
.lde-zone-label {
    display: block;
    font-family: var(--ldc-font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--ldc-red);
    margin-bottom: 4px;
}
.lde-zone-inputs-wrap .ldc-hint { margin-bottom: 12px; }

.lde-zone-inputs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
@media (max-width: 520px) {
    .lde-zone-inputs { grid-template-columns: repeat(3, 1fr); }
}
.lde-zone-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.lde-zone-field input {
    width: 100%;
    text-align: center;
    padding: 9px 6px;
    border: 1px solid var(--ldc-border);
    border-radius: var(--ldc-radius-sm);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    background: #fff;
    color: var(--ldc-text);
}

.lde-zone-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-family: var(--ldc-font-display);
    font-size: 12px;
    font-weight: 700;
    color: #3a2a18;
    flex: none;
}

.lde-live-total {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--ldc-text-muted);
    text-align: center;
}
.lde-live-total strong {
    font-family: var(--ldc-font-display);
    font-size: 18px;
    color: var(--ldc-red);
}

/* ---- zone reference rows ---- */
.lde-zone-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid var(--ldc-border);
}
.lde-zone-row:last-child { border-bottom: none; }
.lde-zone-name {
    font-family: var(--ldc-font-display);
    font-weight: 600;
    font-size: 13px;
}
.lde-zone-desc {
    font-size: 12px;
    color: var(--ldc-text-muted);
    line-height: 1.45;
    margin-top: 2px;
}

/* ---- stacked zone bar ---- */
.lde-zonebar {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0 8px;
    background: var(--ldc-cream);
}
.lde-zonebar .lde-seg { display: block; height: 100%; }

.lde-zonelegend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ldc-text-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.lde-zonelegend.lde-legend-center { justify-content: center; padding: 4px 0 2px; }
.lde-zonelegend span.is-empty { opacity: .35; }
.lde-zonelegend strong { color: var(--ldc-text); margin-left: 3px; }

.lde-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
}

/* ---- day nav + session cards ---- */
.lde-daynav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--ldc-border);
    font-family: var(--ldc-font-display);
}

.lde-chart-axis {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #a9793f;
    padding: 2px 2px 4px;
}

.lde-session {
    border: 1px solid var(--ldc-border);
    border-radius: var(--ldc-radius-sm);
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
}
.lde-session-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.lde-session-name {
    font-family: var(--ldc-font-display);
    font-weight: 600;
    font-size: 14px;
}
.lde-session-name .ldw-muted { margin-left: 6px; }
.lde-session-total {
    font-family: var(--ldc-font-display);
    font-weight: 700;
    color: var(--ldc-red);
    white-space: nowrap;
}
.lde-session-detail { font-size: 13px; margin-top: 2px; }
.lde-session-note { margin-top: 6px; }
.lde-session-actions { margin-top: 8px; }
.lde-delete-form { display: inline; margin: 0; }

.lde-page .ldw-muted {
    color: var(--ldc-text-muted);
    font-size: 11px;
    font-weight: 400;
}
