/* HiA cards (step 6): the look of a card, in one place for every page that shows one (index.html, agent.html).
   Moved word for word from index.html on 19 Nov 2026. The colours are the page's own variables; a page without them
   (the dashboard) wraps its cards in .hia-cards, which gives the chat page's light colours. */
.hia-cards { --muted:#5B6270; --fieldBorder:#D9D6CE; --btn:#2F3E8F; --btnText:#FFFFFF; --error:#B8423A; --inText:#1F2430; --inMeta:#5B6270; --border:#E7E3DA; --chip:#FFFDF9; --chipBorder:#C9CFEA; --chipText:#2F3E8F; --card:#FFFDF9; --item:#F7F5F0; --selBg:#EEF0F8; --ring:#2F3E8F; --accent:#2F3E8F; --goldBg:#F6E9CF; --goldText:#7A5310; --inkBg:#E9EBF3; --inkText:#2F3E8F; --track:#E7E3DA; --selText:#FFFFFF; color: var(--inText); }
@keyframes search { 0% { transform: translateX(-100%) } 100% { transform: translateX(260%) } }
.card { width: 88%; max-width: 380px; padding: 12px; border-radius: 4px 16px 16px 16px; background: var(--card); color: var(--inText); box-shadow: inset 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: 10px; }
.card .lead { font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.ttl { font-size: 15px; font-weight: 800; line-height: 1.3; } .ttl small { display: block; font-size: 12px; font-weight: 600; color: var(--inMeta); margin-top: 2px; }
.card .note { font-size: 12px; color: var(--inMeta); line-height: 1.4; }
.card .note.c { text-align: center; }
.sec { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; } .sec b { font-size: 14px; font-weight: 800; } .sec span { font-size: 12px; color: var(--inMeta); }
.item .t small.via { color: var(--accent); font-weight: 600; }
.rows { display: flex; flex-direction: column; gap: 7px; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; } .row span:first-child { color: var(--inMeta); flex-shrink: 0; } .row span:last-child { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.rule { height: 1px; background: var(--border); }
.big { position: relative; overflow: hidden; min-height: 50px; padding: 8px 14px; border-radius: 14px; border: 0; background: var(--btn); color: var(--btnText); font-size: 16px; font-weight: 700; cursor: pointer; }
.big .sh { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.28), rgba(255,255,255,0)); animation: sheen 3.4s ease-in-out .8s infinite; }
.big:disabled { opacity: .55; cursor: default; } .big:disabled .sh { display: none; }
.ghost { min-height: 40px; border: 0; background: none; color: var(--inMeta); font-size: 14px; font-weight: 600; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 92%; }
.chip.skip { margin-left: auto; background: transparent; border-style: dashed; border-color: var(--fieldBorder); color: var(--muted); font-weight: 600; }
.chip { min-height: 44px; padding: 8px 16px; border-radius: 22px; border: 1.5px solid var(--chipBorder); background: var(--chip); color: var(--chipText); font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; line-height: 1.3; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { filter: brightness(.97); } .chip.on { background: var(--ring); color: var(--selText); border-color: var(--ring); }
.chip:disabled { cursor: default; opacity: .5; } .chip.on:disabled { opacity: 1; }
.smallbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.sb { flex: 1; min-width: 110px; min-height: 42px; padding: 6px 12px; border-radius: 12px; border: 0; background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--chipBorder); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.sb.sos { color: var(--error); box-shadow: inset 0 0 0 1.5px var(--error); } .sb.solid { background: var(--btn); color: var(--btnText); box-shadow: none; }
.sb:disabled { opacity: .5; cursor: default; }
.items { display: flex; flex-direction: column; gap: 8px; }
.item { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--item); color: var(--inText); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--border); }
.item:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--chipBorder); }
.item .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .item .t b { font-size: 15px; font-weight: 700; } .item .t small { font-size: 12px; color: var(--inMeta); line-height: 1.35; }
.item .r { font-size: 15px; font-weight: 800; flex-shrink: 0; }
.item.on { background: var(--selBg); box-shadow: inset 0 0 0 2px var(--ring); } .item:disabled { cursor: default; } .item.dim { opacity: .5; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: var(--goldBg); color: var(--goldText); display: inline-block; }
.tag.ink { background: var(--inkBg); color: var(--inkText); }
.tick { width: 40px; height: 40px; border-radius: 50%; background: #E8A33D; display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: pop .55s cubic-bezier(.2,.9,.3,1.2) .2s both; }
.head { display: flex; align-items: center; gap: 12px; }
.ava { width: 44px; height: 44px; border-radius: 50%; background: var(--btn); color: var(--btnText); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.ava.gold { background: #E8A33D; color: #1B2452; }
.plate { font-size: 12px; font-weight: 800; letter-spacing: .6px; padding: 4px 8px; border-radius: 6px; background: var(--goldBg); color: var(--goldText); white-space: nowrap; }
.live { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; position: relative; } .live i { position: absolute; top: 0; bottom: 0; left: 0; width: 55%; border-radius: 3px; background: #E8A33D; }
.live.search i { width: 40%; animation: search 1.6s ease-in-out infinite; }
.pinbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--selBg); }
.pinbox span:first-child { font-size: 12px; font-weight: 700; color: var(--inMeta); }
.digits { display: flex; gap: 6px; } .digits b { width: 34px; height: 42px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--chipBorder); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: var(--accent); }
.stars { display: flex; gap: 2px; } .stars button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.stars button:disabled { cursor: default; }
.sos-card { box-shadow: inset 0 0 0 1.5px var(--error); } .sos-card .lead:first-line { font-weight: 800; }

/* food cards (26 Nov): picture rows, a letter tile when there is no picture, the List view switch (display only) */
.food { display: flex; flex-direction: column; gap: 10px; }
.fhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.fv { flex-shrink: 0; border: 0; background: none; padding: 2px 0; font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; }
.fitems { display: flex; flex-direction: column; gap: 6px; }
.fi { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 6px; border-radius: 10px; background: var(--item); border: 0; color: inherit; font: inherit; }
button.fi { cursor: pointer; }
.fpic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px; object-fit: cover; background: var(--track); }
.fpic.wide { width: 72px; }
.fpic.ltr { display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: var(--inMeta); }
.ft { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; } .ft b { font-size: 14px; font-weight: 700; } .ft small { font-size: 12px; color: var(--inMeta); }
.fr { font-size: 14px; font-weight: 700; flex-shrink: 0; }
.veg { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border: 1.5px solid #2E7D32; border-radius: 2px; position: relative; vertical-align: 1px; } .veg::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #2E7D32; }
.veg.nv { border-color: #B8423A; } .veg.nv::after { background: #B8423A; }
.fmore { display: flex; flex-direction: column; gap: 6px; } .fmore[hidden] { display: none; }
.fmorebtn { align-self: flex-start; border: 0; background: none; padding: 2px 0; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.flist { display: none; flex-direction: column; gap: 4px; font-size: 14px; }
.food.listv .fitems { display: none; } .food.listv .flist { display: flex; }
.fbtns { justify-content: space-between; } .fbtns .main { background: var(--btn); color: var(--btnText); }
