#employee-assistant { position: fixed; right: 22px; bottom: 22px; z-index: 80; font: inherit; color: #143343; }
#employee-assistant[hidden], #employee-assistant [hidden], #assistant-bug-dialog [hidden] { display: none !important; }
#employee-assistant .ea-launch { border: 0; border-radius: 24px; padding: 13px 20px; background: #006d91; color: #fff; box-shadow: 0 4px 20px #163a4926; cursor: pointer; }
#employee-assistant .ea-panel { width: 410px; max-width: calc(100vw - 44px); height: min(680px, calc(100vh - 90px)); display: flex; flex-direction: column; background: #fff; border: 1px solid #cadce4; border-radius: 14px; box-shadow: 0 10px 40px #163a4926; overflow: hidden; margin-bottom: 10px; }
#employee-assistant header { background: #075c79; color: #fff; padding: 14px; display: flex; justify-content: space-between; align-items: center; }
#employee-assistant header button { background: transparent; color: #fff; border: 0; cursor: pointer; padding: 6px; }
#employee-assistant .ea-head-actions { display: flex; align-items: center; gap: 8px; }
#employee-assistant .ea-menu { position: relative; }
#employee-assistant .ea-menu summary { cursor: pointer; padding: 6px; font-size: 13px; list-style: none; }
#employee-assistant .ea-menu summary::-webkit-details-marker { display: none; }
#employee-assistant .ea-menu-body { position: absolute; right: 0; top: 34px; z-index: 2; min-width: 160px; padding: 6px; background: #fff; border: 1px solid #dce6eb; border-radius: 10px; box-shadow: 0 8px 24px #163a4926; }
#employee-assistant .ea-menu-body button { display: block; width: 100%; color: #143343; text-align: left; padding: 10px; border-radius: 6px; font-size: 13px; }
#employee-assistant .ea-menu-body button:hover { background: #edf4f7; }
#employee-assistant .ea-personal { margin: 16px 0; border-top: 1px solid #e5edf0; padding-top: 12px; }
#employee-assistant .ea-personal summary { font-size: 12px; color: #516776; cursor: pointer; }
#employee-assistant .ea-personal > div { display: grid; gap: 6px; margin-top: 10px; }
#employee-assistant .ea-personal button { text-align: left; padding: 9px 12px; font-size: 13px; border-radius: 8px; background: #fff; }
#employee-assistant .ea-compose-actions { display: flex; align-items: center; justify-content: space-between; }
#employee-assistant .ea-compose-actions button { padding: 8px 16px; font-size: 13px; }
#employee-assistant .ea-compose-actions button:first-child { border: 0; padding-left: 0; background: transparent; color: #516776; }
#employee-assistant .ea-preference { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e5edf0; font-size: 13px; }
#employee-assistant .ea-preference select { max-width: 120px; padding: 6px; font: inherit; }
#employee-assistant .ea-history-label { font-size: 12px; color: #516776; }
#employee-assistant .ea-diagnostic-hint { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #fff7e8; font-size: 12px; }
#employee-assistant .ea-diagnostic-hint button { border: 0; background: transparent; color: #075c79; font-size: 12px; padding: 4px; }
#employee-assistant .ea-content { overflow: auto; flex: 1; min-height: 0; padding: 12px; }
#employee-assistant .ea-message { white-space: pre-wrap; overflow-wrap: anywhere; background: #edf4f7; padding: 12px; border-radius: 10px; margin: 0 0 10px; }
#employee-assistant .ea-user { background: #d8eef6; margin-left: 28px; }
#employee-assistant .ea-audit { display: block; color: #516776; font-size: 11px; margin-top: 7px; }
#employee-assistant .ea-compose { padding: 12px; border-top: 1px solid #dce6eb; display: grid; gap: 8px; }
#employee-assistant textarea { width: 100%; resize: vertical; min-height: 64px; box-sizing: border-box; }
#employee-assistant .ea-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
#employee-assistant button { font: inherit; }
#employee-assistant .ea-ticket { display: block; text-align: left; width: 100%; margin-bottom: 8px; }
#employee-assistant .ea-detail { white-space: pre-wrap; overflow-wrap: anywhere; }
#employee-assistant .ea-detail img { width: 100%; border: 1px solid #dce6eb; margin: 8px 0; }
#employee-assistant .ea-error { color: #9b3030; white-space: pre-wrap; }
#employee-assistant table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
#employee-assistant td, #employee-assistant th { overflow-wrap: anywhere; padding: 6px; border-bottom: 1px solid #dce6eb; text-align: left; }
#assistant-bug-dialog { width: min(960px, 92vw); max-height: 90vh; border: 1px solid #cadce4; border-radius: 14px; padding: 20px; color: #143343; }
#assistant-bug-dialog::backdrop { background: #12364670; }
#assistant-bug-dialog .ea-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
#assistant-bug-dialog canvas { display: block; max-width: 100%; max-height: 42vh; width: auto; height: auto; margin: 0 auto; border: 1px solid #cadce4; touch-action: none; cursor: crosshair; }
#assistant-bug-dialog .ea-fields { display: grid; gap: 12px; }
#assistant-bug-dialog .ea-fields label { display: grid; gap: 6px; }
#assistant-bug-dialog input, #assistant-bug-dialog textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid #cadce4; border-radius: 6px; }
#assistant-bug-dialog select { font: inherit; padding: 7px; }
#assistant-bug-dialog textarea { min-height: 70px; resize: vertical; }
#assistant-bug-dialog input[type=file] { width: auto; max-width: 100%; }
#assistant-bug-dialog .ea-status { white-space: pre-wrap; color: #8d3434; }
.agent-prefill-notice { margin: 12px 0; padding: 12px; border: 1px solid #d7b75a; background: #fff8dc; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
@media (max-width: 767px) { #employee-assistant { display: none; } }
#hbl-ticket-center { width: min(1180px, 94vw); height: 88vh; max-width: 94vw; max-height: 92vh; padding: 0; border: 1px solid #cadce4; border-radius: 14px; color: #143343; background: #f5f8fa; }
#hbl-ticket-center::backdrop { background: #12364670; }
#hbl-ticket-center > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid #dce6eb; padding: 16px 24px; }
#hbl-ticket-center h2 { margin: 0 auto 0 0; }
#hbl-ticket-center .ea-ticket-page { padding: 24px; }
#hbl-ticket-center .ea-ticket { display: block; width: 100%; padding: 18px; text-align: left; white-space: pre-line; margin: 12px 0; background: #fff; border: 1px solid #dce6eb; border-radius: 10px; line-height: 1.7; }
#hbl-ticket-center .ea-detail { margin-top: 20px; padding: 24px; background: #fff; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
#hbl-ticket-center .ea-detail img { display: block; max-width: 100%; max-height: 65vh; object-fit: contain; margin: 16px 0; border: 1px solid #dce6eb; }
#hbl-ticket-center .ea-triage { padding: 18px; border-left: 4px solid #08789b; background: #edf6fa; margin: 20px 0; }
#hbl-ticket-center .ea-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#hbl-ticket-center .ea-error { color: #9b3030; }
