/* Pomodoro count */
.pomodoro-count {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c9512b;
    margin-bottom: 1rem;
    min-height: 1rem;
}
.pomodoro-count .pc-num { font-size: 1.05rem; font-weight: 700; }
.pomodoro-count .pc-tomatoes {
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin-right: 0.35rem;
    vertical-align: -0.05em;
}
.pomodoro-count.hidden { display: none; }

/* Phase label */
.phase-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
    margin-bottom: 0.5rem;
}
.phase-label.work { color: #c9512b; }
.phase-label.short-break { color: #4a8db8; }
.phase-label.long-break { color: #2e7d32; }

/* Timer display */
.timer-display {
    font-size: clamp(3.5rem, 18vw, 6rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* Session blocks */
.blocks-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.block {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid #d8d8d4;
    min-width: 0;
}
.block-seg {
    position: relative;
    overflow: hidden;
}
.block-seg .fill {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transition: transform 0.25s linear;
}
/* Distinct empty backgrounds so work and break segments are clearly separable. */
.block-seg.work { background: #fdf2ed; }
.block-seg.break { background: #edf4f8; }
.block.work-block .block-seg.work { width: 60px; height: 22px; }
.block.work-block .block-seg.break { width: 22px; height: 22px; border-left: 1.5px solid #c9bfb8; }
.block.long-break-block { width: 88px; height: 22px; border-color: #b9d6b9; }
.block.long-break-block .block-seg.long-break { width: 100%; height: 100%; background: #ebf4eb; }
.block.long-break-block .block-seg.long-break .fill { background: #5db389; }
.block-seg.work .fill { background: #e88a66; }
.block-seg.break .fill { background: #7eb6d6; }

@media (max-width: 480px) {
    .block.work-block .block-seg.work { width: 44px; }
    .block.work-block .block-seg.break { width: 16px; }
    .block.long-break-block { width: 60px; }
}

/* Settings */
.settings-card {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 0.85rem;
}
@media (max-width: 480px) {
    .settings-grid { grid-template-columns: 1fr; }
}
.setting-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.setting-field label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
}
.setting-field input {
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}
.setting-field input::-webkit-outer-spin-button,
.setting-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.setting-field input:focus { border-color: #999; }
.setting-field input:disabled { background: #fafaf8; color: #999; }

/* Controls */
.controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.ctrl-btn {
    border: none;
    border-radius: 8px;
    padding: 0.85rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.12s, opacity 0.12s;
}
.ctrl-btn.primary { background: #c9512b; color: #fff; }
.ctrl-btn.primary:hover { background: #a8421f; }
.ctrl-btn.secondary { background: #f0f0ee; color: #555; }
.ctrl-btn.secondary:hover { background: #e5e5e3; }

/* Notify */
.notify-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1.5rem;
}
.toggle-switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track { position: absolute; inset: 0; background: #e0e0e0; border-radius: 999px; cursor: pointer; transition: background 0.2s; }
.toggle-track::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.toggle-switch input:checked + .toggle-track { background: #c9512b; }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(16px); }
