/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 * Copyright © 2026 Marcel Rymenhout and IniqDash contributors */
.iq-cd { container: cd / size; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 16px; border-radius: var(--radius-device);
  color: var(--text-primary); font-family: var(--font); background: var(--device-surface); box-shadow: var(--device-shadow); overflow: hidden; }
.iq-cd__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.iq-cd__name { margin: 0; font-size: 14px; font-weight: var(--iq-fw-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iq-cd__when { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.iq-cd__parts { display: flex; gap: clamp(8px, 4cqw, 18px); align-items: flex-end; }
.iq-cd__part { display: grid; justify-items: start; }
.iq-cd__part b { font-size: clamp(22px, 18cqmin, 52px); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.iq-cd__part i { font-style: normal; font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.iq-cd[data-state="soon"] .iq-cd__part b { color: var(--warning); }
.iq-cd[data-state="past"] .iq-cd__part b { color: var(--text-secondary); }
.iq-cd__done { font-size: clamp(20px, 14cqmin, 40px); font-weight: 700; color: var(--success); }
.iq-cd__note { margin: 0; font-size: 12px; color: var(--text-muted); }
.iq-cd__note:empty { display: none; }
