/* Optional AI explanations in IHUZE Studio (uses the Studio page's own colour variables) */
#aiStudioPanel { margin-top: 10px; }
.ais-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ais-go { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink,#fff); font-weight: 800; font-size: .9rem; flex: 1 1 200px; justify-content: center; }
.ais-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ais-go:disabled { opacity: .6; }
.ais-lang { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--chip); }
.ais-lang button { border: 0; background: transparent; font-weight: 700; font-size: .78rem; padding: 8px 12px; min-height: 36px; border-radius: 999px; }
.ais-lang button.is-on { background: var(--accent); color: var(--accent-ink,#fff); }
#aiStudioStatus { font-size: .78rem; color: var(--muted); margin: 8px 0 0; min-height: 1em; }
#aiStudioStatus.is-err { color: var(--bad); }
.ais-sum { margin: 12px 0 6px; font-size: .85rem; }
.ais-row { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow-wrap: anywhere; }
.ais-q { font-size: .85rem; line-height: 1.45; } .ais-a { margin-top: 4px; font-size: .8rem; color: var(--muted); }
.ais-a b { color: var(--ok); }
.ais-inc { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: .8rem; font-weight: 700; }
.ais-inc input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.ais-row textarea { width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--chip); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; min-height: 76px; }
.ais-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: .72rem; color: var(--muted); }
.ais-badge { padding: 4px 9px; border-radius: 999px; background: var(--chip); font-weight: 800; }
.ais-badge.on { background: color-mix(in srgb, var(--ok) 18%, var(--card)); color: var(--ok); }
.ais-count { margin-left: auto; }
.ais-mini { border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: .74rem; padding: 7px 10px; min-height: 34px; border-radius: 999px; color: var(--accent); }
.ais-warn { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #F59E0B 16%, var(--card)); font-size: .76rem; line-height: 1.4; }
.ais-pv { margin-top: 12px; text-align: center; } .ais-pv canvas { max-width: 100%; max-height: 420px; border-radius: 14px; border: 1px solid var(--line); height: auto; width: auto; }
#aiStudioNote { margin: 10px 0 0; font-size: .72rem; color: var(--muted); }
