/* A shared card structure with a distinct holiday palette for each preference. */
.balance-row{
  --balance-price-top:#d9f2e7;--balance-price-bottom:#f0faf2;--balance-price-accent:#176b56;--balance-price-edge:#aed4c2;
  --balance-fun-top:#ffe0d0;--balance-fun-bottom:#fff4e9;--balance-fun-accent:#a8432e;--balance-fun-edge:#edc0ad;
  --balance-warmth-top:#ffedb0;--balance-warmth-bottom:#fff8df;--balance-warmth-accent:#875511;--balance-warmth-edge:#e7cd89;
  --balance-ink:#243f3c;--balance-copy:#4c635d;--balance-badge:#ffffffb8;--balance-decoration:#ffffff68;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0 28px;align-items:stretch;
}
.balance-control[data-tone="price"]{--balance-top:var(--balance-price-top);--balance-bottom:var(--balance-price-bottom);--balance-accent:var(--balance-price-accent);--balance-edge:var(--balance-price-edge)}
.balance-control[data-tone="fun"]{--balance-top:var(--balance-fun-top);--balance-bottom:var(--balance-fun-bottom);--balance-accent:var(--balance-fun-accent);--balance-edge:var(--balance-fun-edge)}
.balance-control[data-tone="warmth"]{--balance-top:var(--balance-warmth-top);--balance-bottom:var(--balance-warmth-bottom);--balance-accent:var(--balance-warmth-accent);--balance-edge:var(--balance-warmth-edge)}
.balance-row>.balance-control{
  position:relative;display:flex;flex-direction:column;min-width:0;margin:0;padding:24px;
  border:1px solid var(--balance-edge);border-radius:22px;color:var(--balance-ink);
  background:radial-gradient(circle at 100% 0,var(--balance-decoration) 0 76px,transparent 77px),linear-gradient(145deg,var(--balance-top),var(--balance-bottom));
  box-shadow:0 6px 18px -12px #31594738,inset 0 1px 0 var(--balance-decoration);
}
.balance-heading{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:14px 12px;min-height:100px;align-content:start}
.balance-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:var(--balance-badge);color:var(--balance-accent);box-shadow:0 2px 5px #344b3e08}
.balance-icon svg{display:block;width:30px;height:30px}
.balance-heading label{font-size:1.15rem;line-height:1.25;font-weight:600;letter-spacing:-.025em;color:var(--balance-ink);margin:0;min-width:0;white-space:normal;overflow:visible;text-overflow:clip}
.balance-heading output{grid-column:1/-1;justify-self:start;max-width:100%;padding:7px 12px;border:1px solid var(--balance-edge);border-radius:30px;background:var(--balance-badge);color:var(--balance-accent);font-size:.9rem;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
/* Keep the touch target generous without turning the visible track into a 44px pill. */
#pane-trip .balance-control input[type=range]{appearance:none;display:block;width:100%;height:44px;min-height:44px;flex-shrink:0;margin:8px 0 8px;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;cursor:pointer;touch-action:pan-y}
.balance-control input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:20px;background:linear-gradient(90deg,var(--balance-accent) 0%,var(--balance-accent) var(--balance,50%),var(--balance-edge) var(--balance,50%),var(--balance-edge) 100%)}
.balance-control input[type=range]::-moz-range-track{height:8px;border-radius:20px;background:linear-gradient(90deg,var(--balance-accent) 0%,var(--balance-accent) var(--balance,50%),var(--balance-edge) var(--balance,50%),var(--balance-edge) 100%)}
.balance-control input[type=range]::-webkit-slider-thumb{appearance:none;width:26px;height:26px;margin-top:-9px;border-radius:50%;background:var(--balance-accent);border:4px solid var(--balance-bottom);box-shadow:0 0 0 1px var(--balance-accent),0 3px 6px #223e3928}
.balance-control input[type=range]::-moz-range-thumb{box-sizing:border-box;width:26px;height:26px;border-radius:50%;background:var(--balance-accent);border:4px solid var(--balance-bottom);box-shadow:0 0 0 1px var(--balance-accent),0 3px 6px #223e3928}
#pane-trip .balance-control input[type=range]:focus-visible{outline:3px solid var(--balance-accent);outline-offset:3px}
.balance-control input:disabled{cursor:progress;opacity:.55}
.balance-ends{display:flex;justify-content:space-between;align-items:start;gap:12px;color:var(--balance-accent);font-size:.8rem;line-height:1.5;font-weight:600}
.balance-ends span:last-child{text-align:right}
.balance-control p{font-size:.85rem;line-height:1.65;color:var(--balance-copy);margin:16px 0 0}
.balance-control p[role=status]{margin-top:auto;padding-top:14px;border-top:1px solid var(--balance-edge);color:var(--balance-accent);font-size:.8rem;font-weight:500;min-height:calc(3.3em + 15px)}
.balance-control p:has(+p[role=status]){margin-bottom:20px}
@media(max-width:900px){.balance-row{grid-template-columns:minmax(0,1fr);gap:14px}.balance-heading{min-height:0}.balance-control p:has(+p[role=status]){margin-bottom:16px}}
@media(max-width:600px){.balance-row>.balance-control{padding:20px}.balance-heading label{font-size:1.1rem}}
:root[data-theme="dark"] .balance-row{
  --balance-price-top:#1d4941;--balance-price-bottom:#173a36;--balance-price-accent:#8ce0ba;--balance-price-edge:#477a69;
  --balance-fun-top:#513a35;--balance-fun-bottom:#3b302e;--balance-fun-accent:#ffc2a4;--balance-fun-edge:#916554;
  --balance-warmth-top:#4c432a;--balance-warmth-bottom:#373424;--balance-warmth-accent:#f7d780;--balance-warmth-edge:#817447;
  --balance-ink:#f5f5e9;--balance-copy:#d1dacf;--balance-badge:#0b20243d;--balance-decoration:#ffffff09;
}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .balance-row{
  --balance-price-top:#1d4941;--balance-price-bottom:#173a36;--balance-price-accent:#8ce0ba;--balance-price-edge:#477a69;
  --balance-fun-top:#513a35;--balance-fun-bottom:#3b302e;--balance-fun-accent:#ffc2a4;--balance-fun-edge:#916554;
  --balance-warmth-top:#4c432a;--balance-warmth-bottom:#373424;--balance-warmth-accent:#f7d780;--balance-warmth-edge:#817447;
  --balance-ink:#f5f5e9;--balance-copy:#d1dacf;--balance-badge:#0b20243d;--balance-decoration:#ffffff09;
}}
