/* 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-upd { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; 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-upd__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.iq-upd__name { margin: 0; font-size: 14px; font-weight: var(--iq-fw-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iq-upd__sum { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.iq-upd[data-pending="true"] .iq-upd__sum { color: var(--warning); }
.iq-upd__list, .iq-upd__ok { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; overflow-y: auto; min-height: 0; }
.iq-upd__list[hidden], .iq-upd__ok[hidden], .iq-upd__fold[hidden] { display: none; }
.iq-upd__item { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-tertiary); }
.iq-upd__item[data-state="ok"] { background: transparent; padding: 4px 2px; }
.iq-upd__item[data-state="off"] { opacity: .55; }
.iq-upd__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.iq-upd__info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iq-upd__info span { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iq-upd__item[data-state="pending"] .iq-upd__info span { color: var(--text-secondary); }
.iq-upd__bar { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--iq-upd-p), var(--border-primary) var(--iq-upd-p)); }
.iq-upd__notes { font-size: 12px; color: var(--accent); text-decoration: none; }
.iq-upd__act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.iq-upd__btn { border: 0; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 600; background: var(--surface-secondary, var(--border-primary)); color: var(--text-primary); cursor: pointer; }
.iq-upd__btn--go { background: var(--warning); color: #111; }
.iq-upd__bk { display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; color: var(--text-secondary); }
.iq-upd__fold { align-self: flex-start; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; font-weight: 600; padding: 2px 0; cursor: pointer; }
