/* AMANAH AI — site assistant (v47.14). Colours from css/tokens.css (with fallbacks for pages without it). */
.amx, .amx * { box-sizing: border-box; }
.amx { position: fixed; inset-inline-end: 20px; bottom: calc(20px + var(--amx-lift, 0px)); z-index: 900; font-family: inherit; }
.amx-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: var(--teal, #0E7C66); color: #fff; box-shadow: 0 8px 24px rgba(10, 92, 78, .28); transition: transform .15s ease, background .15s ease; }
.amx-btn:hover { background: var(--teal-d, #0A5C4E); transform: translateY(-1px); }
.amx-btn:focus-visible, .amx-icon:focus-visible, .amx-chip:focus-visible, .amx-act:focus-visible, .amx-send:focus-visible { outline: 3px solid var(--gold, #C9A84C); outline-offset: 2px; }
.amx--open .amx-btn { display: none; }
.amx-panel { position: absolute; inset-inline-end: 0; bottom: 0; width: 330px; max-width: calc(100vw - 24px); height: min(460px, calc(100vh - 40px - var(--amx-lift, 0px)));
  background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: 14px; box-shadow: 0 12px 36px rgba(13, 17, 23, .22);
  display: flex; flex-direction: column; overflow: hidden; color: var(--txt, #1A202C); }
.amx-panel[hidden] { display: none; }
.amx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 10px 10px 9px 14px; background: linear-gradient(135deg, var(--teal-d, #0A5C4E), var(--teal, #0E7C66)); color: #fff; }
.amx-title { font-weight: 700; font-size: 14px; }
.amx-sub { font-size: 11.5px; opacity: .85; margin-top: 1px; }
.amx-head-btns { display: flex; gap: 4px; flex-shrink: 0; }
.amx .amx-icon { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.amx-icon:hover { background: rgba(255, 255, 255, .24); }
.amx-log { position: relative; flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bg, #F7FAFA); }
.amx-msg { max-width: 94%; font-size: 13px; line-height: 1.45; border-radius: 10px; padding: 8px 10px; overflow-wrap: anywhere; }
.amx-msg p { margin: 0 0 6px; } .amx-msg p:last-child { margin-bottom: 0; }
.amx-msg--bot { background: #fff; border: 1px solid var(--border, #E2E8F0); align-self: flex-start; }
.amx-msg--me { background: var(--teal, #0E7C66); color: #fff; align-self: flex-end; }
.amx-here { color: var(--txt-m, #4A5568); font-size: 12px; }
.amx-also { font-size: 12px; color: var(--txt-m, #4A5568); margin-top: 8px !important; }
.amx-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.amx .amx-act { border: 1px solid var(--teal, #0E7C66); color: var(--teal, #0E7C66); background: #fff; border-radius: 7px; padding: 4px 9px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.amx-act:hover { background: var(--teal-pale, #E8F5F2); }
.amx-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px 0; background: #fff; border-top: 1px solid var(--border, #E2E8F0); }
.amx .amx-chip { border: 1px solid var(--border, #E2E8F0); background: var(--teal-pale, #E8F5F2); color: var(--teal-d, #0A5C4E); border-radius: 100px; padding: 3px 9px; font: inherit; font-size: 11.5px; cursor: pointer; }
.amx-chip:hover { border-color: var(--teal, #0E7C66); }
.amx-form { display: flex; gap: 6px; padding: 8px 10px; background: #fff; }
.amx .amx-input { flex: 1; min-width: 0; border: 1px solid var(--border, #CBD5E0); border-radius: 9px; padding: 7px 10px; font: inherit; font-size: 13px; }
.amx-input:focus { outline: none; border-color: var(--teal, #0E7C66); box-shadow: 0 0 0 3px var(--teal-bg, rgba(14, 124, 102, .12)); }
.amx .amx-send { border: 0; border-radius: 10px; background: var(--gold, #C9A84C); color: #1A202C; font: inherit; font-weight: 700; font-size: 12.5px; padding: 0 12px; cursor: pointer; }
.amx-send:hover { background: var(--gold-l, #E8C96A); }
.amx-note { margin: 0; padding: 0 10px 8px; font-size: 10.5px; line-height: 1.35; color: var(--txt-l, #718096); background: #fff; }
.amx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .amx { inset-inline-end: 14px; bottom: calc(14px + var(--amx-lift, 0px)); }
  .amx-btn { width: 48px; height: 48px; }
  .amx--open .amx-panel { position: fixed; inset: auto 0 var(--amx-lift, 0px) 0; width: 100%; max-width: 100%; height: min(calc(62vh - var(--amx-lift, 0px)), 480px); border-radius: 16px 16px 0 0; }
}
@media print { .amx { display: none !important; } }
.amx .amx-chip--all { background: #fff; border-style: dashed; color: var(--txt-m, #4A5568); }
.amx-list { margin: 2px 0 6px; padding-inline-start: 18px; } .amx-list li { margin: 1px 0; }
