/* Assistant picker, staff/student tools, composer chips. */
[data-role="student"] .tool[data-tool="draft"], [data-role="guest"] .tool[data-tool="draft"] { display: none; }
[data-role="staff"] .tool .tool-badge { display: none; }
[data-bot-custom] .sug-topic, [data-bot-custom] .lede-q { display: none; }
[data-bot-custom] .sugs li[hidden] { display: none; }
.asst { position: relative; flex: none; margin-left: 4px; }
.asst[hidden] { display: none; }
.asst-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; max-width: 280px; padding: 0 10px 0 7px; border-radius: var(--radius-md); color: var(--v-ink); font-size: 14px; font-weight: 700; transition: background var(--duration-fast); }
.asst-btn:hover, .asst-btn[aria-expanded="true"] { background: var(--v-yellow); }
.asst-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-mark { display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin: 0 2px 2px 0; box-sizing: border-box; border: 2px solid var(--v-ink); border-radius: var(--radius-sm); background: var(--paper); color: var(--tdtu-blue-800); box-shadow: 1.5px 1.5px 0 var(--v-ink); }
.asst-mark .ic { width: 16px; height: 16px; }
.asst-back { position: fixed; inset: 0; z-index: var(--z-toast); display: grid; place-items: center; padding: 24px; background: var(--overlay); }
.asst-back[hidden] { display: none; }
.asst-pop { display: flex; flex-direction: column; width: min(700px, 100%); max-height: 100%; padding: 18px 18px 14px; border: 2px solid var(--v-ink); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 6px 6px 0 var(--primary); }
.asst-head { display: flex; align-items: center; flex: none; gap: 12px; margin-bottom: 14px; }
.asst-title { display: flex; align-items: center; flex: 1; gap: 10px; font-family: var(--font-heading); font-size: 22px; line-height: 30px; font-weight: 800; color: var(--heading); }
.asst-title::before { content: ''; flex: none; width: 6px; height: 20px; border-radius: 2px; background: var(--tdtu-red-500); }
.asst-x { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--radius-md); color: var(--v-ink); transition: background var(--duration-fast); }
.asst-x:hover { background: var(--v-yellow); }
.asst-x .ic { width: 20px; height: 20px; }
.asst-list { display: grid; flex: 1; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 1px 4px 4px 1px; overflow-y: auto; }
.asst-opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--tdtu-blue-200); border-radius: var(--radius-md); background: var(--primary-soft); cursor: pointer; transition: transform var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast), border-color var(--duration-fast); }
.asst-opt:hover { border-color: var(--v-ink); background: var(--v-cream); box-shadow: 2px 2px 0 var(--v-ink); transform: translate(-1px, -1px); }
.asst-opt:focus-visible { outline-offset: -2px; }
.asst-opt[aria-selected="true"], .asst-opt[aria-selected="true"]:hover { padding: 10.5px 11.5px; border: 2px solid var(--v-ink); background: var(--v-yellow); box-shadow: 3px 3px 0 var(--primary); transform: none; }
.asst-opt[aria-selected="true"] .asst-desc { color: var(--tdtu-blue-800); }
.asst-body { flex: 1; min-width: 0; }
.asst-opt-name { display: block; font-family: var(--font-heading); font-size: 13.5px; line-height: 19px; font-weight: 700; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-desc { display: block; margin-top: 1px; font-size: 12.5px; line-height: 18px; color: var(--gray-600); }
.asst-sub { flex: none; margin-top: 10px; padding: 0 4px; font-size: 12px; line-height: 17px; color: var(--gray-700); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 4px; }
.chips[hidden] { display: none; }
.chip-tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 1.5px solid var(--tdtu-blue-200); border-radius: var(--radius-full); background: var(--primary-soft); color: var(--v-ink); font-size: 13px; font-weight: 600; transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast); }
.chip-tool:hover { border-color: var(--v-ink); background: var(--v-cream); box-shadow: 2px 2px 0 var(--v-ink); transform: translate(-1px, -1px); }
.chip-tool .ic { width: 15px; height: 15px; }
.chip-tool .tool-badge { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; box-sizing: border-box; border-radius: var(--radius-xs); background: var(--tdtu-red-600); color: var(--text-inverse); font-size: 11px; font-weight: 700; }

/* Suggestions without a topic line: keep the number tile inside the card. */
[data-bot-custom] .sug { justify-content: center; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
[data-bot-custom] .sug::before { top: 50%; margin-top: -18px; }
[data-bot-custom] .sug-q { margin-top: 0; }
/* The headline always breaks before "điều gì?", never leaving one word alone. */
.lead h2 span:last-child { display: block; }

.asst-emoji { font-size: 16px; line-height: 1; }

/* Single-line fields use the page font too. */
input, select { font-family: inherit; }

[data-role="staff"] .lang-opt { display: none !important; }
