/* 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-sol { container: sol / size; height: 100%; box-sizing: border-box; display: grid; align-content: start; gap: 10px; padding: 14px 16px; border-radius: var(--radius-device); color: var(--text-primary);
  font-family: var(--font); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--solar, #ffcb42) 14%, transparent), transparent 60%), var(--device-surface); box-shadow: var(--device-shadow); overflow: hidden; }
.iq-sol__head { display: flex; align-items: center; gap: 8px; }
.iq-sol__ic { width: 22px; height: 22px; color: var(--solar, #ffcb42); flex: none; }
.iq-sol[data-producing="true"] .iq-sol__ic { animation: iq-sol-spin 30s linear infinite; }
.iq-sol__name { margin: 0; font-size: 14px; font-weight: var(--iq-fw-title); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iq-sol__vs { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-tertiary); color: var(--text-secondary); }
.iq-sol__vs:empty { display: none; }
.iq-sol__vs[data-tone="up"] { color: var(--success); } .iq-sol__vs[data-tone="down"] { color: var(--warning); }
.iq-sol__now { display: flex; align-items: baseline; gap: 8px; }
.iq-sol__w { font-size: clamp(26px, 11cqmin, 44px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.iq-sol__cap { font-size: 12px; color: var(--text-muted); }
.iq-sol__day[hidden], .iq-sol__split[hidden] { display: none; }
.iq-sol__bar { position: relative; height: 10px; border-radius: 999px; background: var(--surface-tertiary); }
.iq-sol__made { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--solar, #ffcb42) 70%, #ff8f3d), var(--solar, #ffcb42)); }
.iq-sol__exp { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text-primary); opacity: .7; }
.iq-sol__exp[hidden] { display: none; }
.iq-sol__today { margin: 5px 0 0; font-size: 12px; color: var(--text-secondary); }
.iq-sol__split { display: flex; gap: 3px; height: 22px; }
.iq-sol__seg { min-width: 0; border-radius: 6px; padding: 0 6px; display: flex; align-items: center; font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--iq-sol-c) 30%, transparent); box-shadow: inset 0 -2px 0 var(--iq-sol-c); }
.iq-sol__tom { margin: 0; font-size: 12px; color: var(--text-muted); }
.iq-sol__tom:empty { display: none; }
@keyframes iq-sol-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .iq-sol__ic { animation: none !important; } }
