/* AISI Assistant — brutalist chat widget. Bottom-start to avoid the dev FAB. */
#aisi-ast-btn { position: fixed; bottom: 12px; inset-inline-start: 12px; z-index: 99990;
	background: #1d4ed8; color: #fff; border: 2px solid #0a0a0a; cursor: pointer;
	font: 600 13px Zad, system-ui, sans-serif; min-block-size: 44px;
	padding: 8px 12px; display: flex; align-items: center; gap: 6px; }
#aisi-ast-btn:hover { background: #0a0a0a; }
#aisi-ast-btn:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
#aisi-ast-panel { position: fixed; bottom: 56px; inset-inline-start: 12px; z-index: 99991;
	width: 360px; max-width: calc(100vw - 24px); height: 460px; max-height: calc(100vh - 90px);
	background: #fafaf9; color: #0a0a0a; border: 2px solid #0a0a0a; display: none; flex-direction: column;
	font-family: Zad, system-ui, sans-serif; box-shadow: 6px 6px 0 #0a0a0a; }
#aisi-ast-panel.open { display: flex; }
#aisi-ast-head { background: #0a0a0a; color: #fafaf9; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between;
	font: 600 12px Zad, system-ui, sans-serif; }
#aisi-ast-head button { background: transparent; color: #fafaf9; border: 0; cursor: pointer; font-size: 14px; }
.aisi-ast-head-actions { display: flex; align-items: center; gap: 10px; }
#aisi-ast-clear { font: 500 12px Zad, system-ui, sans-serif; text-decoration: underline; padding: 0; }
#aisi-ast-clear:hover { color: #f87171; }
#aisi-ast-note { font: 500 11px Zad, system-ui, sans-serif; background: #fef3c7; color: #92400e; padding: 4px 10px; border-bottom: 1px solid #0a0a0a; }
#aisi-ast-log { flex: 1; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.aisi-ast-msg { border: 1px solid #1f2937; padding: 6px 8px; font-size: 13px; line-height: 1.5; max-width: 90%; white-space: pre-wrap; word-break: break-word; }
.aisi-ast-msg.user { background: #1d4ed8; color: #fff; align-self: flex-end; border-color: #1d4ed8; }
.aisi-ast-msg.bot { background: #fff; align-self: flex-start; }
.aisi-ast-msg a { color: #1d4ed8; text-decoration: underline; }
.aisi-ast-msg.user a { color: #fff; }
.aisi-ast-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.aisi-ast-chip { display: inline-block; background: #0a0a0a; color: #fafaf9; padding: 5px 8px; font: 500 12px Zad, system-ui, sans-serif; text-decoration: none; }
.aisi-ast-chip:hover { background: #1d4ed8; }
#aisi-ast-form { display: flex; border-top: 2px solid #0a0a0a; }
#aisi-ast-input { flex: 1; border: 0; padding: 8px 10px; font-size: 13px; background: #fff; outline: none; }
#aisi-ast-form button { background: #0a0a0a; color: #fafaf9; border: 0; min-block-size: 44px; padding: 0 14px; cursor: pointer; font: 600 12px Zad, system-ui, sans-serif; }
#aisi-ast-form button:hover { background: #1d4ed8; }
@media (max-width: 639px) {
	#aisi-ast-btn { bottom: calc(12px + env(safe-area-inset-bottom)); }
	#aisi-ast-panel { inset-inline: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); width: auto; max-width: none; height: min(70vh, 480px); box-shadow: none; }
}
@media print { #aisi-ast-btn, #aisi-ast-panel { display: none !important; } }
