/* ---- AI accounting page additions (aix-*) ---- */
.aix-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.aix-lane { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, background .2s, transform .2s; }
.aix-lane b { display: block; color: var(--ink); }
.aix-lane small { color: #6a7480; font-size: .82rem; }
.aix-lane.on { border-top-color: var(--teal); background: var(--teal-tint, #e3efec); transform: translateY(-2px); }
.aix-tasks { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.aix-task { appearance: none; background: #fff; border: 1px solid #c8d6d2; color: #14554c; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.aix-task:hover { border-color: var(--teal); }
.aix-task[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.aix-task:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.aix-ans { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 14px 18px; }
.aix-ans b { color: var(--ink); }
.aix-ans p { margin: 4px 0 0; color: #44505c; }
.aix-run { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 18px; padding: 18px 20px 14px; margin-top: 18px; }
.aix-run .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.aix-run .top small { color: #6a7480; }
.aix-row { display: grid; grid-template-columns: 1.5fr .8fr 1.3fr; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid #efede6; cursor: pointer; font-size: .93rem; }
.aix-row:last-child { border-bottom: 0; }
.aix-row:hover { background: #faf9f5; }
.aix-row .amt { text-align: right; font-variant-numeric: tabular-nums; color: #44505c; }
.aix-row .st { text-align: right; }
.aix-pill { display: inline-block; border-radius: 999px; padding: 2px 11px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.aix-pill.idle { background: #ecebe6; color: #6a7480; }
.aix-pill.wait { background: #ecebe6; color: #44505c; }
.aix-pill.auto { background: #e3efec; color: #14554c; }
.aix-pill.rev { background: #f6e7bd; color: #7a5a0c; }
.aix-why { grid-column: 1 / -1; font-size: .88rem; color: #44505c; background: #f6f4ee; border-radius: 10px; padding: 8px 12px; }
.aix-tally { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #44505c; margin-top: 8px; }
.aix-tally b { color: var(--ink); font-variant-numeric: tabular-nums; }
.aix-limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
@media (max-width: 760px) { .aix-lanes, .aix-limits { grid-template-columns: 1fr; } .aix-row { grid-template-columns: 1fr auto; } .aix-row .st { grid-column: 1 / -1; text-align: left; } }
@media (prefers-reduced-motion: reduce) { .aix-lane { transition: none; } }

/* ---- products ---- */
.aix-prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; align-items: start; }
.aix-prod { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 18px; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.aix-prod.soon { border-top-color: #cfcdc4; background: #f6f4ee; }
.aix-prod .area { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.aix-prod.soon .area { color: #6a7480; }
.aix-prod h3 { margin: 0; }
.aix-prod .one { margin: 0; color: #33404c; }
.aix-prod .st { align-self: flex-start; font-size: .72rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--teal-tint, #e3efec); color: #14554c; }
.aix-prod.soon .st { background: #f6e7bd; color: #7a5a0c; }
.aix-more { appearance: none; background: none; border: 0; padding: 6px 0 2px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--teal); cursor: pointer; text-align: left; }
.aix-more:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.aix-det { margin-top: 4px; padding-top: 8px; border-top: 1px dashed #d5d3ca; font-size: .9rem; color: #44505c; }
.aix-det b { color: var(--ink); display: block; margin-top: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.aix-det p { margin: 2px 0 0; }
.aix-det a { font-weight: 600; }
@media (max-width: 900px) { .aix-prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .aix-prod-grid { grid-template-columns: 1fr; } }

/* ---- product videos ---- */
.aix-prod.open { grid-column: 1 / -1; }
.aix-prod.open .aix-det { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.aix-vid video { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); background: #16202a; }
.aix-vid .note { font-size: .8rem; margin: 8px 2px 0; color: #6a7480; }
@media (max-width: 760px) { .aix-prod.open .aix-det { grid-template-columns: 1fr; } }

/* ---- thumbnails and a clear button ---- */
.aix-more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; padding: 8px 16px; border: 1.5px solid var(--teal); border-radius: 999px; background: var(--teal-tint, #e3efec); color: #14554c; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.aix-more::before { content: ""; display: inline-block; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.aix-more[aria-expanded="true"]::before { display: none; }
.aix-more:hover { background: var(--teal); color: #fff; transform: translateY(-1px); }
.aix-thumb { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #16202a; cursor: pointer; margin-bottom: 8px; }
.aix-thumb img { display: block; width: 100%; height: auto; transition: transform .25s, opacity .25s; }
.aix-thumb:hover img { transform: scale(1.03); opacity: .92; }
.aix-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(22,32,42,.78); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.aix-play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.aix-thumb:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.aix-prod.open .aix-thumb { display: none; }
@media (prefers-reduced-motion: reduce) { .aix-thumb img, .aix-more { transition: none; } }
