/* Rush alerts (rush-ui.js) and the Intel Center money tools (cih-tools.js).
   Loaded by cih.html and index.html. Colours are the app's tokens, so light
   and dark follow the phone; every control is at least 44 px to tap. */

/* ---------- rush alerts ---------- */
.rush-card { padding: 1rem; min-width: 0; border-left: 4px solid rgb(var(--warn)); }
.rush-card.rush-note { border-left-color: rgb(var(--line-strong)); }
.rush-card.rush-locked { border-left-color: rgb(var(--accent)); }
.rush-head { display: flex; align-items: flex-start; gap: 0.75rem; }
.rush-head-text { flex: 1 1 auto; min-width: 0; }
.rush-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: rgb(var(--warn) / 0.14); color: rgb(var(--ink)); }
.rush-locked .rush-icon, .rush-note .rush-icon { background: rgb(var(--accent-soft)); color: rgb(var(--accent-strong)); }
.rush-icon svg { width: 22px; height: 22px; }
.rush-kind { font-size: 0.8125rem; font-weight: 600; color: rgb(var(--ink-soft)); }
.rush-title { font-size: 1.0625rem; font-weight: 700; color: rgb(var(--ink)); line-height: 1.35; overflow-wrap: anywhere; }
.rush-compact .rush-title { font-size: 1rem; }
.rush-body { font-size: 0.9375rem; color: rgb(var(--ink-soft)); line-height: 1.5; overflow-wrap: anywhere; }
.rush-sub { font-size: 0.8125rem; color: rgb(var(--ink-faint)); line-height: 1.45; margin-top: 0.375rem; overflow-wrap: anywhere; }
.rush-sub:empty { display: none; }
.rush-lines { margin-top: 0.625rem; display: grid; gap: 0.25rem; padding-left: 1.125rem; list-style: disc; color: rgb(var(--ink)); font-size: 0.9375rem; line-height: 1.45; }
.rush-lines li { overflow-wrap: anywhere; }
.rush-zones { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.rush-zones li { max-width: 100%; }
.rush-chip { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px; max-width: 100%; padding: 0.375rem 0.875rem; border-radius: 999px; border: 1px solid rgb(var(--line-strong)); background: rgb(var(--surface)); color: rgb(var(--ink)); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.rush-chip span { min-width: 0; overflow-wrap: anywhere; }
.rush-chip svg { width: 18px; height: 18px; flex: none; color: rgb(var(--accent)); }
.rush-chip:hover { background: rgb(var(--surface-sunken)); }
.rush-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.875rem; }
.rush-actions .gm-btn { max-width: 100%; }
.rush-actions .gm-btn svg { width: 18px; height: 18px; }

/* ---------- money tools ---------- */
.tools-wrap { display: grid; gap: 0.75rem; }
.tools-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.tool-card { padding: 1rem; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
@media (min-width: 1024px) { .tool-card { padding: 1.25rem; } }
.tool-card[hidden], .tools-wrap[hidden] { display: none; }
.tool-head { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.25rem; }
.tool-head h3 { font-size: 1rem; font-weight: 700; color: rgb(var(--ink)); line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.tool-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: rgb(var(--accent-softest)); color: rgb(var(--accent)); border: 1px solid rgb(var(--accent-soft)); }
.tool-icon svg { width: 20px; height: 20px; }
.tool-main { font-size: 0.9375rem; color: rgb(var(--ink)); line-height: 1.5; overflow-wrap: anywhere; }
.tool-main b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tool-src { font-size: 0.8125rem; color: rgb(var(--ink-faint)); line-height: 1.45; margin-top: 0.375rem; overflow-wrap: anywhere; }
.tool-empty { font-size: 0.9375rem; color: rgb(var(--ink-soft)); line-height: 1.5; overflow-wrap: anywhere; }
.tool-rows > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem; padding: 0.5rem 0; min-width: 0; }
.tool-rows > li + li { border-top: 1px solid rgb(var(--line)); }
.tool-rows .tool-name { font-weight: 600; color: rgb(var(--ink)); overflow-wrap: anywhere; min-width: 0; }
.tool-rows .tool-val { font-weight: 700; color: rgb(var(--ink)); font-variant-numeric: tabular-nums; text-align: right; }
.tool-rows .tool-val small { display: block; font-weight: 500; font-size: 0.8125rem; color: rgb(var(--ink-faint)); }
.tool-bar { height: 12px; border-radius: 999px; background: rgb(var(--surface-sunken)); border: 1px solid rgb(var(--line)); overflow: hidden; margin: 0.5rem 0 0.25rem; }
.tool-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: rgb(var(--accent)); transition: width 400ms ease; }
@media (prefers-reduced-motion: reduce) { .tool-bar > span { transition: none; } }
.tool-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; margin-top: 0.625rem; }
.tool-form > div { flex: 1 1 8rem; min-width: 0; }
.tool-form label { display: block; font-size: 0.8125rem; font-weight: 600; color: rgb(var(--ink-soft)); margin-bottom: 0.25rem; }
.tool-form .gm-input { width: 100%; min-height: 44px; }
.tool-form .gm-btn { min-height: 44px; flex: 0 0 auto; max-width: 100%; }
.tool-link { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 44px; font-weight: 600; color: rgb(var(--accent-strong)); text-decoration: underline; text-underline-offset: 2px; }
:root.dark .tool-link { color: rgb(var(--accent)); }
.tool-link svg { width: 16px; height: 16px; }
.tool-status { font-size: 0.8125rem; color: rgb(var(--ink-soft)); min-height: 1px; }
.tool-ai { font-size: 0.8125rem; color: rgb(var(--ink-faint)); }

/* ---------- Your area (cih-area.js, build:intel) ---------- */
.cih-area-card { display: flex; flex-direction: column; gap: 0.5rem; scroll-margin-top: calc(9rem + env(safe-area-inset-top)); }
/* Beside Demand near you and the weather on a wide screen (cih.html's first grid). */
@media (min-width: 1024px) { .cih-area-card { grid-row: span 2; } }
.cih-area-card .cih-card-head { margin-bottom: 0.25rem; }
.cih-area-card h2:focus { outline: none; }
.cih-area-card h2:focus-visible { outline: 3px solid rgb(var(--focus)); outline-offset: 2px; border-radius: 4px; }
.cih-area-name { display: grid; gap: 0.125rem; min-width: 0; }
.cih-area-place { font-size: 1.25rem; font-weight: 700; color: rgb(var(--ink)); line-height: 1.3; overflow-wrap: anywhere; }
.cih-area-kind { font-size: 0.875rem; font-weight: 600; color: rgb(var(--ink-soft)); overflow-wrap: anywhere; }
.cih-area-time { font-size: 0.875rem; color: rgb(var(--ink-soft)); line-height: 1.45; overflow-wrap: anywhere; }
.cih-area-time[hidden] { display: none; }
.cih-area-note { font-size: 0.9375rem; color: rgb(var(--ink)); line-height: 1.5; padding: 0.625rem 0.75rem; border-radius: 12px; background: rgb(var(--accent-softest)); border: 1px solid rgb(var(--accent-soft)); overflow-wrap: anywhere; }
.cih-area-note:empty { display: none; }
.cih-area-card[data-network="ready"] .cih-area-note { background: rgb(var(--surface-sunken)); border-color: rgb(var(--line)); }
.cih-area-facts { display: grid; gap: 0; margin-top: 0.25rem; }
.cih-area-fact { display: grid; gap: 0.125rem; padding: 0.5rem 0; min-width: 0; }
.cih-area-fact + .cih-area-fact { border-top: 1px solid rgb(var(--line)); }
.cih-area-label { font-size: 0.8125rem; font-weight: 600; color: rgb(var(--ink-soft)); }
.cih-area-value { font-size: 0.9375rem; font-weight: 600; color: rgb(var(--ink)); min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cih-area-line { display: block; }
.cih-area-source { font-size: 0.8125rem; color: rgb(var(--ink-faint)); line-height: 1.45; margin-top: auto; padding-top: 0.25rem; overflow-wrap: anywhere; }
.cih-area-skel { display: grid; gap: 0.5rem; }
/* The link from Where to wait now (wait-now.js) to this card. */
.cih-area-link { margin-top: 0.25rem; }
