/* Fasting timer -- only what Core's shared theme doesn't already cover. */

.ldf-timer-card {
    text-align: center;
    padding: 24px 18px 20px;
}
.ldf-timer-card.is-fasting { border-color: var(--ldc-teal); }
.ldf-timer-card.is-reached { border-color: var(--ldc-teal); background: #f3fdff; }

.ldf-state-label {
    font-family: var(--ldc-font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--ldc-text-muted);
    letter-spacing: .02em;
}

.ldf-clock {
    font-family: var(--ldc-font-display);
    font-variant-numeric: tabular-nums;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ldc-red);
    margin: 6px 0 4px;
}
@media (max-width: 380px) {
    .ldf-clock { font-size: 38px; }
}
.ldf-timer-card.is-fasting .ldf-clock { color: var(--ldc-teal); }

.ldf-sub {
    font-size: 13px;
    color: var(--ldc-text-muted);
    margin-bottom: 14px;
}

.ldf-progress {
    height: 10px;
    border-radius: 999px;
    background: var(--ldc-cream);
    overflow: hidden;
    margin: 0 0 18px;
}
.ldf-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--ldc-teal), var(--ldc-orange));
    transition: width .4s ease;
}

.ldf-big-btn {
    font-size: 16px;
    padding: 16px 20px;
}
.ldf-protocol-field { text-align: left; margin-bottom: 14px; }
.ldf-protocol-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ldc-border);
    border-radius: var(--ldc-radius-sm);
    font-size: 15px;
    background: #fff;
    color: var(--ldc-text);
}
.ldf-action-form .ldc-hint { text-align: left; }

/* ---- chart ---- */
.ldf-chart-axis {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #a9793f;
    padding: 2px 2px 4px;
}
.ldf-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ldc-text-muted);
    padding-bottom: 2px;
}
.ldf-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
}

/* ---- history ---- */
.ldf-row {
    border: 1px solid var(--ldc-border);
    border-radius: var(--ldc-radius-sm);
    padding: 11px 13px;
    margin-bottom: 10px;
    background: #fff;
}
.ldf-row.is-open { border-color: var(--ldc-teal); background: #f7feff; }
.ldf-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.ldf-row-when {
    font-family: var(--ldc-font-display);
    font-weight: 600;
    font-size: 13px;
}
.ldf-row-hours {
    font-family: var(--ldc-font-display);
    font-weight: 700;
    color: var(--ldc-text-muted);
    white-space: nowrap;
}
.ldf-row-hours.is-hit { color: var(--ldc-teal); }
.ldf-row-actions { margin-top: 8px; }
.ldf-delete-form { display: inline; margin: 0; }
.ldf-edit-form { margin-top: 12px; }

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

/* the timer reused inside a dashboard card: no card chrome of its own */
.ldf-dash-timer {
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.ldf-dash-timer .ldf-clock { font-size: 34px; }
.ldf-dash-timer .ldf-progress { margin-bottom: 14px; }
.ldf-dash-streak {
    font-size: 13px;
    color: var(--ldc-text-muted);
    margin: 6px 0 14px;
}
