/* Client need cards (CRM-01): the "Add interest" button in the Log drawer, its pop-up, and the cards on the lead page.
   Interests are blue (feedback is purple, so the two never read as one block); soft surfaces, line icons; Arabic reads right to left. */
.ic-pop, .la-addrow, .ia-card {
  --ic-a: var(--la-int); --ic-a-dk: var(--la-int-ink); --ic-a-sf: var(--la-int-soft); --ic-a-ln: var(--la-int-line-2);
  --ic-bg: var(--c-tile); --ic-hair: var(--c-line); --ic-mut: var(--c-muted);
}

/* ===== the button in the drawer ===== */
.la-addrow { display: block; }
.ic-add { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px 10px 10px; border: 1.5px dashed var(--ic-a-ln); border-radius: var(--r-lg); background: var(--la-int-tint); font: inherit; text-align: start; color: var(--c-ink); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.ic-add.has { border-style: solid; border-color: var(--la-int-line); }
.ic-add:hover { border-color: var(--ic-a); background: var(--la-int-tint); box-shadow: 0 4px 14px -8px rgba(37, 95, 238, .45); }
.ic-add:focus-visible { outline: 2px solid var(--ic-a); outline-offset: 2px; }
.ic-add:disabled { opacity: .6; cursor: progress; }
.ic-add-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--ic-a-sf); color: var(--ic-a); }
.ic-add-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ic-add-t > b { font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--c-ink); }
.ic-add:not(.has) .ic-add-t > b { color: var(--ic-a-dk); }
.ic-add-sum { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 5px; }
.ic-add-chip, .ic-add-more { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); background: var(--ic-bg); font-family: var(--la-font-ar); font-size: var(--fs-hint); font-weight: var(--fw-semibold); color: var(--c-text); white-space: nowrap; }
.ic-add-more { background: var(--ic-a-sf); color: var(--ic-a-dk); }
.ic-add > em { min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--ic-a); font-style: normal; font-size: var(--fs-hint); font-weight: var(--fw-semibold); color: var(--c-card); font-variant-numeric: tabular-nums; }
.ic-add-go { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); color: var(--ic-a); transition: background .15s, transform .2s; }
.ic-add:hover .ic-add-go { background: var(--ic-a-sf); transform: translateX(2px); }
.la-said > .la-addrow + .la-noteblock { margin-top: 2px; }

/* ===== the pop-up ===== */
.ic-pop { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(28, 27, 37, .32); backdrop-filter: blur(6px); animation: laFade .2s ease-out; }
.ic-box { width: 940px; max-width: 100%; height: min(86vh, 760px); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--c-card); box-shadow: 0 32px 90px -24px rgba(28, 27, 37, .45); animation: laFpIn .26s var(--la-spring); }

.ic-hd { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 18px 12px 20px; border-bottom: 1px solid var(--ic-hair); }
.ic-hd-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--ic-a-sf); color: var(--ic-a); }
.ic-hd h3 { margin: 0; font-size: var(--fs-section); font-weight: var(--fw-semibold); letter-spacing: -.01em; color: var(--c-ink); }
.ic-srch { margin-inline-start: auto; width: 240px; max-width: 34%; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--ic-hair); border-radius: var(--r-lg); background: var(--ic-bg); color: var(--ic-mut); transition: border-color .15s, background .15s, box-shadow .15s; }
.ic-srch:focus-within { border-color: var(--ic-a); background: var(--c-card); box-shadow: 0 0 0 3px var(--ic-a-sf); }
.ic-srch input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; font-family: var(--la-font-ar); font-size: var(--fs-table); color: var(--c-ink); box-shadow: none; }
.ic-srch input:focus { outline: 0; box-shadow: none; }
.ic-x { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: var(--r-lg); background: transparent; color: var(--ic-mut); cursor: pointer; }
.ic-x:hover { background: var(--ic-bg); color: var(--c-ink); }

/* the client's needs */
.ic-cards { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding-inline-start: 14px; margin-inline-start: 2px; border-inline-start: 1px solid var(--ic-hair); overflow-x: auto; scrollbar-width: none; }
.ic-cards::-webkit-scrollbar { display: none; }
.ic-tabw { flex: none; display: inline-flex; align-items: stretch; border: 1.5px solid var(--ic-hair); border-radius: 13px; background: var(--c-card); transition: border-color .15s, background .15s, box-shadow .15s; }
.ic-tabw:hover { border-color: var(--ic-a-ln); }
.ic-tabw.on { border-color: var(--c-ink); background: var(--c-ink); }
.ic-tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border: 0; background: transparent; font: inherit; font-size: var(--fs-table); font-weight: var(--fw-semibold); color: var(--c-ink); cursor: pointer; white-space: nowrap; /* hover: on .ic-tabw:hover */ }
.ic-tab-ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--ic-bg); color: var(--ic-mut); }
.ic-tabw.on .ic-tab, .ic-tabw.on .ic-tab-x { color: var(--c-card); }
.ic-tabw.on .ic-tab-ic { background: rgba(255, 255, 255, .14); color: var(--c-card); }
.ic-tab-c { font-family: var(--la-font-ar); font-weight: var(--fw-semibold); color: var(--ic-mut); }
.ic-tabw.on .ic-tab-c { color: var(--c-card); opacity: .8; }
.ic-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ic-a); }
.ic-tab-x { width: 32px; display: grid; place-items: center; border: 0; border-inline-start: 1px solid var(--ic-hair); border-radius: 0 12px 12px 0; background: transparent; color: var(--ic-mut); cursor: pointer; }
.ic-tab-x:hover { color: var(--la-red); }
.ic-new { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 43px; padding: 0 15px; border: 1.5px dashed var(--ic-a-ln); border-radius: 13px; background: transparent; font: inherit; font-size: var(--fs-table); font-weight: var(--fw-semibold); color: var(--ic-a-dk); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.ic-new:hover { border-color: var(--ic-a); background: var(--la-int-tint); }

/* the live bar */
.ic-sumbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 52px; max-height: 96px; overflow-y: auto; padding: 10px 22px; border-top: 1px solid var(--ic-hair); border-bottom: 1px solid var(--ic-hair); background: var(--ic-bg); font-family: var(--la-font-ar); }
.ic-sum-k { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; margin-inline-start: 4px; border-radius: var(--r-pill); background: var(--c-ink); font-size: var(--fs-hint); font-weight: var(--fw-semibold); color: var(--c-card); }
.ic-pill { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 11px; border: 1px solid var(--ic-hair); border-radius: var(--r-pill); background: var(--c-card); font-size: var(--fs-hint); font-weight: var(--fw-semibold); color: var(--c-ink); animation: icPop .18s ease-out; }
.ic-pill button { width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ic-mut); cursor: pointer; }
.ic-pill button:hover { background: var(--la-red-soft); color: var(--la-red); }
.ic-sum-empty { font-size: var(--fs-table); color: var(--ic-mut); }
@keyframes icPop { from { transform: scale(.92); opacity: 0; } }

/* ===== look A (Sami 2026-11-11, docs/prototypes/interests-popup): sections in coloured boxes, picked = black (DECISIONS #192) ===== */
/* section colours: the system's section-box tints, one per section */
.ic-pop .k-blue { --k: var(--tint-blue); --ks: var(--tint-blue-soft); --kl: var(--tint-blue-line); }
.ic-pop .k-amber { --k: color-mix(in srgb, var(--tint-amber) 88%, #000); --ks: var(--tint-amber-soft); --kl: var(--tint-amber-line); }
.ic-pop .k-orange { --k: var(--tint-orange); --ks: var(--tint-orange-soft); --kl: var(--tint-orange-line); }
.ic-pop .k-green { --k: var(--tint-green); --ks: var(--tint-green-soft); --kl: var(--tint-green-line); }
.ic-pop .k-pink { --k: var(--tint-pink); --ks: var(--tint-pink-soft); --kl: var(--tint-pink-line); }
.ic-pop .k-ink { --k: var(--c-text); --ks: var(--c-tile); --kl: var(--c-line); }
.ic-pd { width: 8px; height: 8px; flex: none; margin-inline-end: 2px; border-radius: 50%; background: var(--k, var(--ic-a)); }

/* rail: always on the right, a tap jumps to the section, the one you are in is lit */
.ic-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.ic-pop.no-cat .ic-main { grid-template-columns: minmax(0, 1fr); }
.ic-pop.no-cat .ic-rail { display: none; }
.ic-rail { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-inline-start: 1px solid var(--ic-hair); background: var(--c-tile); overflow-y: auto; }
.ic-rl { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; font-family: var(--la-font-ar); font-size: var(--fs-table); font-weight: var(--fw-semibold); text-align: start; color: var(--c-text); cursor: pointer; transition: background .12s, border-color .12s; }
.ic-rl:hover { background: var(--c-card); border-color: var(--ic-hair); }
.ic-rl.on { background: var(--c-card); border-color: var(--kl); color: var(--c-ink); box-shadow: var(--card-shadow); }
.ic-rl-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--c-card); color: var(--k); box-shadow: inset 0 0 0 1px var(--kl); transition: background .12s, color .12s; }
.ic-rl.on .ic-rl-ic { background: var(--k); color: var(--c-card); box-shadow: 0 4px 10px -5px color-mix(in srgb, var(--k) 70%, transparent); }
.ic-rl-t { flex: 1; min-width: 0; line-height: 1.35; }
.ic-rl em { padding: 1px 8px; border-radius: var(--r-pill); background: var(--c-card); box-shadow: inset 0 0 0 1px var(--kl); font-family: var(--font); font-style: normal; font-size: var(--fs-hint); font-weight: var(--fw-semibold); color: var(--k); }

/* the list: every section a box with its colour, all open, each one folds */
.ic-body { overflow-y: auto; padding: 16px 18px 28px; background: var(--c-page); overscroll-behavior: contain; scroll-padding-top: 12px; font-family: var(--la-font-ar); }
.ic-sec { border-radius: 16px; background: var(--c-card); border: 1px solid var(--c-card-line); box-shadow: var(--card-shadow); overflow: clip; }
.ic-sec + .ic-sec { margin-top: 12px; }
.ic-sh { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border: 0; background: var(--c-card); font: inherit; text-align: start; cursor: pointer; }
.ic-sh:hover { background: var(--c-select); } /* hover (said-once #4, 2026-11-14) */
.ic-sec.open > .ic-sh { border-bottom: 1px solid var(--c-line); }
.ic-sh-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--c-card); color: var(--k); box-shadow: inset 0 0 0 1px var(--kl); } /* like the rail's icons: a coloured line, no fill (Sami 2026-11-11) */
.ic-sh-t { font-size: var(--fs-section); font-weight: 700; color: var(--c-ink); }
.ic-shn { padding: 1px 9px; border-radius: var(--r-pill); font-style: normal; font-family: var(--font); font-size: var(--fs-hint); font-weight: var(--fw-semibold); color: var(--c-ink); background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.ic-shn.zero { color: var(--c-faint); box-shadow: inset 0 0 0 1px var(--c-line); }
.ic-shf { margin-inline-start: auto; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-card); color: var(--c-text); transition: rotate .2s; }
.ic-sec.open .ic-shf { rotate: 180deg; }
.ic-sh:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }
.ic-fs { display: grid; gap: 20px; padding: 18px; }
.ic-f { min-width: 0; }
.ic-fl { display: flex; align-items: center; gap: 12px; min-height: 28px; margin-bottom: 10px; }
.ic-lb { font-size: var(--fs-table); font-weight: 700; color: var(--c-ink); }
.ic-chg { width: 7px; height: 7px; border-radius: 50%; background: var(--ic-a); }

/* category: big tiles while choosing; compact pills once chosen */
.ic-catsec { margin-bottom: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, var(--c-tile), var(--c-card)); border: 1px solid var(--c-card-line); }
.ic-cath { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; font-size: var(--fs-body); font-weight: 700; color: var(--c-ink); }
.ic-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ic-cat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 108px; padding: 14px 8px; border: 1.5px solid var(--c-line); border-radius: 16px; background: var(--c-card); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.ic-cat:hover { transform: translateY(-2px); border-color: var(--c-line-strong); box-shadow: 0 10px 22px -16px rgba(16, 24, 40, .6); }
.ic-cat-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--c-select); color: var(--c-ink); transition: background .15s, color .15s; }
.ic-cat-t { font-family: var(--la-font-ar); font-size: var(--fs-body); font-weight: 700; color: var(--c-ink); }
.ic-cat-ck { position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--c-card); color: var(--c-ink); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--la-spring); }
.ic-cat.on { border-color: var(--c-ink); background: var(--c-ink); box-shadow: 0 14px 26px -16px rgba(16, 24, 40, .9); }
.ic-cat.on .ic-cat-ic { background: rgba(255, 255, 255, .14); color: var(--c-card); }
.ic-cat.on .ic-cat-t { color: var(--c-card); }
.ic-cat.on .ic-cat-ck { opacity: 1; transform: none; }
.ic-cats.mini { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-cats.mini .ic-cat { flex-direction: row; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: var(--r-pill); }
.ic-cats.mini .ic-cat:hover { transform: none; }
.ic-cats.mini .ic-cat-ic { width: 28px; height: 28px; border-radius: 50%; }
.ic-cats.mini .ic-cat-ic svg { width: 16px; height: 16px; }
.ic-cats.mini .ic-cat-t { font-size: var(--fs-table); }
.ic-cats.mini .ic-cat-ck { display: none; }

/* picks: white chips with a border, picked = black */
.ic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-chip { display: inline-flex; align-items: center; gap: 0; min-height: 40px; padding: 0 16px; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); background: var(--c-card); font: inherit; font-family: var(--la-font-ar); font-size: var(--fs-table); font-weight: var(--fw-semibold); color: var(--c-text); cursor: pointer; transition: background .12s, border-color .12s, transform .12s; }
.ic-chip:hover { border-color: var(--c-ink); }
.ic-chip:active { transform: scale(.97); }
.ic-ck { width: 0; height: 18px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--c-card); color: var(--c-ink); transition: width .18s var(--la-spring); }
.ic-chip.on { gap: 7px; padding-inline-start: 9px; border-color: var(--c-ink); background: var(--c-ink); color: var(--c-card); }
.ic-chip.on .ic-ck { width: 18px; }
.ic-chip.ic-n { min-width: 46px; justify-content: center; font-family: var(--font); font-variant-numeric: tabular-nums; }
.ic-chip.ic-n.on { padding-inline-start: 16px; }
/* the main questions: tiles with an icon */
.ic-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ic-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 6px; border: 1px solid var(--c-line-strong); border-radius: 14px; background: var(--c-card); font: inherit; font-family: var(--la-font-ar); font-size: var(--fs-table); font-weight: 700; color: var(--c-ink); cursor: pointer; transition: background .12s, border-color .12s, transform .12s; }
.ic-tile svg { color: var(--c-muted); }
.ic-tile:hover { border-color: var(--c-ink); transform: translateY(-1px); }
.ic-tile.on { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-card); }
.ic-tile.on svg { color: var(--c-card); }
/* the project the lead came with (its ad) */
.ic-ad { padding: 1px 8px; border-radius: var(--r-pill); background: var(--c-success-soft); color: var(--c-success); font-family: var(--la-font-ar); font-style: normal; font-size: var(--fs-hint); font-weight: 700; }
.ic-tile.on .ic-ad { background: rgba(255, 255, 255, .16); color: var(--c-card); }
/* how they pay: two real buttons, Installments first; its details hang right under it */
.ic-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 10px; }
.ic-payb { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-lg); background: var(--c-card); font: inherit; font-family: var(--la-font-ar); font-size: var(--fs-body); font-weight: 700; color: var(--c-ink); cursor: pointer; box-shadow: var(--card-shadow); transition: border-color .12s, transform .12s, background .12s; }
.ic-payb svg { color: var(--c-muted); }
.ic-payb:hover { border-color: var(--c-ink); transform: translateY(-1px); }
.ic-payb:active { transform: scale(.98); }
.ic-payr { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--c-line-strong); background: var(--c-card); }
.ic-payb.on { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-card); }
.ic-payb.on svg { color: var(--c-card); }
.ic-payb.on .ic-payr { border-color: var(--c-card); box-shadow: inset 0 0 0 4px var(--c-ink); }
.ic-sub { position: relative; margin-top: -4px; padding: 14px; border-radius: 14px; background: var(--c-tile); border: 1px dashed var(--c-line-strong); display: grid; gap: 18px; }
.ic-sub::before { content: ""; position: absolute; top: -8px; inset-inline-start: 104px; width: 14px; height: 14px; background: var(--c-tile); border-top: 1px dashed var(--c-line-strong); border-inline-start: 1px dashed var(--c-line-strong); transform: rotate(45deg); }
[dir="rtl"] .ic-sub::before { transform: rotate(-45deg); }
.ic-subh { font-size: var(--fs-hint); font-weight: var(--fw-semibold); color: var(--c-muted); margin-bottom: -8px; }
.ic-chip:focus-visible, .ic-tile:focus-visible, .ic-payb:focus-visible, .ic-cat:focus-visible, .ic-rl:focus-visible, .ic-tab:focus-visible, .ic-new:focus-visible, .ic-x:focus-visible, .ic-pill button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ic-note { margin-top: 7px; font-size: var(--fs-hint); color: var(--ic-mut); }

/* numbers: exact or a range as two real buttons by the title; a box per number with من / إلى and the unit inside */
.ic-mode { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; border: 1.5px solid var(--c-line-strong); background: var(--c-card); box-shadow: var(--card-shadow); }
.ic-mode button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-family: var(--la-font-ar); font-size: var(--fs-hint); font-weight: 700; color: var(--c-text); cursor: pointer; transition: background .12s, color .12s; }
.ic-mode button svg { color: var(--c-muted); }
.ic-mode button:not(.on):hover { background: var(--c-select); color: var(--c-ink); }
.ic-mode button.on { background: var(--c-ink); color: var(--c-card); box-shadow: 0 4px 10px -6px rgba(16, 24, 40, .9); }
.ic-mode button.on svg { color: var(--c-card); }
.ic-mode button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ic-num { display: flex; flex-wrap: wrap; gap: 10px; }
.ic-nb { display: flex; align-items: center; width: 250px; max-width: 100%; height: 50px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-lg); background: var(--c-card); overflow: hidden; cursor: text; transition: border-color .12s, box-shadow .12s; }
.ic-nb:focus-within { border-color: var(--c-ink); box-shadow: var(--focus-ring); }
.ic-nb:not(.bad):not(:focus-within):hover { border-color: var(--c-ink); }
.ic-nb.bad { border-color: var(--la-red); box-shadow: 0 0 0 3px var(--la-red-soft); }
.ic-nbt { flex: none; align-self: stretch; display: grid; place-items: center; min-width: 44px; padding: 0 12px; background: var(--c-tile); border-inline-end: 1px solid var(--c-line); font-size: var(--fs-hint); font-weight: 700; color: var(--c-muted); }
.ic-in, .ic-sel { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; background: transparent; font-family: var(--font); font-size: 17px; font-weight: var(--fw-semibold); text-align: center; color: var(--c-ink); font-variant-numeric: tabular-nums; box-shadow: none; }
.ic-in:focus, .ic-sel:focus { outline: 0; box-shadow: none; }
.ic-in::placeholder { color: var(--c-faint); font-weight: var(--fw-medium); font-size: var(--fs-body); }
.ic-sel { appearance: none; -webkit-appearance: none; cursor: pointer; /* hover: on .ic-nb:hover */ }
.ic-sel.empty { color: var(--c-faint); }
.ic-sel option { color: var(--c-ink); font-size: var(--fs-body); }
.ic-nbu { flex: none; padding-inline: 4px 12px; font-size: var(--fs-hint); font-weight: var(--fw-semibold); color: var(--c-muted); white-space: nowrap; }
.ic-nbc { flex: none; display: grid; place-items: center; width: 30px; margin-inline-start: -8px; color: var(--c-muted); pointer-events: none; }
.ic-in-text { width: 100%; max-width: 560px; height: 46px; padding: 0 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-lg); background: var(--c-card); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--c-ink); }
.ic-in-text:focus { outline: 0; border-color: var(--c-ink); box-shadow: var(--focus-ring); }
/* the amount read back (money in words), or a warning when a zero looks missing or extra */
.ic-money { min-height: 20px; margin-top: 7px; padding-inline: 4px; display: flex; align-items: center; gap: 6px; font-size: var(--fs-hint); color: var(--c-muted); }
.ic-money b { font-weight: 700; color: var(--c-ink); }
.ic-money.warn { color: var(--c-warning); font-weight: var(--fw-semibold); }
.ic-money.warn b { color: var(--c-warning); font-family: var(--font); }
.ic-err { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: var(--fs-hint); font-weight: var(--fw-semibold); color: var(--la-red); }
.ic-none { padding: 40px 0; text-align: center; font-size: var(--fs-body); color: var(--ic-mut); }

/* footer */
.ic-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 14px 22px; border-top: 1px solid var(--ic-hair); }
.ic-count { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-table); font-weight: var(--fw-semibold); color: var(--ic-mut); }
.ic-count.bad { color: var(--la-red); }
.ic-count b { color: var(--c-ink); }
.ic-count.shake { animation: icShake .3s; }
@keyframes icShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ic-warn { font-size: var(--fs-table); font-weight: var(--fw-semibold); color: var(--la-red); }
.ic-foot-b { display: inline-flex; gap: 8px; }
.ic-ghost, .ic-danger, .ic-done { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: var(--r-lg); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-semibold); cursor: pointer; }
.ic-ghost { border: 1.5px solid var(--ic-hair); background: var(--c-card); color: var(--c-ink); }
.ic-ghost:hover { background: var(--ic-bg); }
.ic-done { padding: 0 22px 0 18px; border: 0; background: var(--ic-a); color: var(--c-card); box-shadow: 0 6px 16px -8px rgba(37, 95, 238, .8); }
.ic-done:hover { background: var(--ic-a-dk); }
.ic-danger { border: 0; background: var(--la-red); color: var(--c-card); }
.ic-danger:hover { filter: brightness(.94); }
.ic-ghost:focus-visible, .ic-danger:focus-visible, .ic-done:focus-visible { outline: 2px solid var(--ic-a); outline-offset: 2px; }

/* tablet: the rail stays on the right, narrower (sales work on tablets) */
@media (max-width: 900px) {
  .ic-main { grid-template-columns: 172px minmax(0, 1fr); }
  .ic-rl { gap: 8px; padding: 6px 8px; font-size: var(--fs-hint); }
  .ic-rl-ic { width: 26px; height: 26px; }
  .ic-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ic-srch { order: 3; width: 100%; max-width: none; margin-inline-start: 0; }
  .ic-x { margin-inline-start: auto; }
  .ic-body { padding: 14px 14px 24px; }
  .ic-nb { width: 230px; }
}
/* phone: full-screen sheet */
@media (max-width: 640px) {
  .ic-pop { padding: 0; align-items: flex-end; }
  .ic-box { width: 100%; height: 94vh; border-radius: 22px 22px 0 0; }
  .ic-hd { padding: 14px 14px 10px; }
  .ic-cards, .ic-sumbar { padding-inline-start: 14px; padding-inline-end: 14px; }
  .ic-body { padding: 4px 16px 24px; }
  .ic-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ic-cat { min-height: 88px; }
  .ic-main { grid-template-columns: minmax(0, 1fr); }
  .ic-rail { display: none; }
  .ic-nb { width: 100%; }
  .ic-pay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ic-foot { padding: 12px 14px; }
  .ic-add-chip:nth-child(n + 4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ic-pop, .ic-pop *, .ic-add, .ic-add * { animation: none !important; transition: none !important; }
}

/* Interests step in the Log drawer (look C, Sami 2026-11-11, DECISIONS #190): a question with answers, never a quiet optional link.
   No needs yet: the unit category as tiles + "Didn't say" (same size: a real answer, not an escape). Has needs: summary + Update / No change. */
.ia-card { padding: 16px; border: 1px solid var(--la-int-line-2); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--la-int-tint), var(--c-card) 64px); transition: border-color .15s, box-shadow .15s; }
.ia-card.done { border-color: var(--la-int-line); }
.ia-card.bad { border-color: var(--c-warning); box-shadow: 0 0 0 3px var(--c-warning-soft); animation: laShake .32s; }
.ia-h { display: flex; align-items: center; gap: 10px; }
.ia-h h4 { margin: 0; font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--c-ink); }
.ia-h .la-ok { margin-inline-start: auto; }
.ia-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); background: var(--la-int-soft); color: var(--la-int); }
.ia-q { margin: 4px 0 12px; padding-inline-start: 36px; font-size: var(--fs-hint); color: var(--c-muted); }
.ia-card.done .ia-h { margin-bottom: 10px; }
.ia-sum { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.ia-row { display: flex; gap: 8px; }
.ia-add { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--r-lg); background: var(--la-int); color: var(--c-card); font: inherit; font-weight: var(--fw-semibold); cursor: pointer; transition: transform .12s, background .12s; }
.ia-add:hover { background: var(--la-int-ink); transform: translateY(-1px); }
.ia-add:active { transform: scale(.98); }
.ia-none { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-lg); background: var(--c-card); color: var(--c-text); font: inherit; font-weight: var(--fw-semibold); cursor: pointer; transition: border-color .12s, background .12s; }
.ia-none:hover { border-color: var(--c-ink); background: var(--c-select); }
.ia-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ia-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 74px; padding: 10px 6px; border: 1.5px solid var(--la-int-line-2); border-radius: var(--r-lg); background: var(--c-card); color: var(--la-int-ink); font-family: var(--la-font-ar); font-size: var(--fs-table); font-weight: var(--fw-semibold); cursor: pointer; transition: transform .12s, border-color .12s, background .12s; }
.ia-tile svg { color: var(--la-int); }
.ia-tile:hover { border-color: var(--la-int); background: var(--la-int-soft); transform: translateY(-1px); }
.ia-tile:active { transform: scale(.97); }
.ia-tile.nil { border-color: var(--c-line-strong); background: var(--c-tile); color: var(--c-text); font-family: inherit; }
.ia-tile.nil svg { color: var(--c-muted); }
.ia-tile.nil:hover { border-color: var(--c-ink); background: var(--c-select); }
.ia-add:focus-visible, .ia-none:focus-visible, .ia-tile:focus-visible, .ia-chg:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ia-done { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 6px 6px 12px; border-radius: var(--r-lg); background: var(--c-tile); color: var(--c-success); }
.ia-done span { flex: 1; min-width: 0; font-size: var(--fs-table); color: var(--c-text); }
.ia-done b { color: var(--c-ink); }
.ia-chg { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: var(--c-card); color: var(--c-text); font: inherit; font-size: var(--fs-hint); font-weight: var(--fw-semibold); cursor: pointer; }
.ia-chg:hover { border-color: var(--c-ink); }
.ia-card .la-ferr { margin-top: 10px; }
.ia-skip { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--c-tile); color: var(--c-muted); font-size: var(--fs-hint); }
@media (prefers-reduced-motion: reduce) { .ia-card, .ia-card *, .ia-tile { animation: none !important; transition: none !important; } }
