@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --avroniq-font-fa: "Vazirmatn", Tahoma, Arial, sans-serif;
  --avroniq-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html,
body,
button,
input,
textarea,
select,
option,
table,
th,
td,
label,
small,
span,
p,
a,
div,
section,
article,
aside,
main,
header,
footer,
nav {
  font-family: var(--avroniq-font-fa) !important;
}

code,
pre,
kbd,
samp,
.mono,
pre *,
code * {
  font-family: var(--avroniq-font-mono) !important;
}

/* Stage 7.4 UX guard: long assistant responses inside AI Chat should not push the whole workspace down. */
body:has(.app .messages) .msg.assistant .bubble {
  max-height: 420px;
  overflow: auto;
}

body:has(.app .messages) .msg.assistant .bubble::-webkit-scrollbar {
  width: 8px;
}

body:has(.app .messages) .msg.assistant .bubble::-webkit-scrollbar-thumb {
  background: #2b5a91;
  border-radius: 999px;
}
