.hr-assistant-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 31;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border: 1px solid var(--primary);
  border-radius: 10px; color: #fff; background: var(--primary);
  font: inherit; font-weight: 650; box-shadow: 0 6px 20px rgba(21, 94, 239, .2);
}
.hr-assistant-launcher:hover { background: var(--primary-dark); }
.hr-assistant-launcher:focus-visible,
.hr-assistant-sidebar button:focus-visible { outline: 3px solid #b8cffd; outline-offset: 3px; }
.hr-assistant-mark { font-size: 21px; line-height: 1; }
.hr-assistant-sidebar {
  position: fixed; top: 80px; right: 16px; bottom: 16px; z-index: 30;
  width: 424px; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  box-shadow: var(--shadow);
}
.hr-assistant-heading {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
}
.hr-assistant-title { display: flex; align-items: center; gap: 11px; }
.hr-assistant-title > .hr-assistant-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 9px; color: var(--primary); background: var(--primary-soft);
}
.hr-assistant-title h2 { margin: 0; font-size: 16px; font-weight: 700; }
.hr-assistant-title p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.hr-assistant-heading-actions { display: flex; align-items: center; gap: 8px; }
.hr-assistant-sidebar button { font: inherit; cursor: pointer; }
.hr-assistant-collapse {
  display: grid; place-items: center; width: 34px; height: 34px;
  padding: 0; border: 1px solid var(--line); border-radius: 7px;
  color: var(--muted); background: var(--surface); font-size: 19px !important;
}
.hr-assistant-collapse:hover { color: var(--primary); background: var(--surface-soft); }
.hr-assistant-notice {
  padding: 12px 16px; border-bottom: 1px solid #fedf89;
  background: var(--amber-soft); color: var(--amber); font-size: 13px;
}
.hr-assistant-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.hr-assistant-suggestions button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 12px !important; }
.hr-assistant-suggestions button:hover { color: var(--primary); background: var(--primary-soft); }
.hr-assistant-body { flex: 1; min-height: 0; display: flex; }
.hr-assistant-frame { width: 100%; height: 100%; border: 0; flex: 1; background: var(--surface); }
.hr-assistant-connection {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 32px; text-align: center;
}
.hr-assistant-connection-mark {
  display: grid; place-items: center; width: 52px; height: 52px;
  margin-bottom: 16px; border-radius: 13px; color: var(--muted);
  background: var(--surface-soft); font-size: 30px;
}
.hr-assistant-connection h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; }
.hr-assistant-connection p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; }
.hr-assistant-retry,
.hr-assistant-controls button {
  min-height: 32px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 7px; color: #344054; background: var(--surface); font-size: 12px !important;
}
.hr-assistant-retry { margin-top: 20px; }
.hr-assistant-retry:hover,
.hr-assistant-controls button:hover { color: var(--primary); border-color: #b8cffd; background: var(--primary-soft); }
.hr-assistant-sidebar button:disabled { opacity: .55; cursor: default; }
.hr-assistant-status { margin: 0; padding: 6px 16px; color: var(--muted); font-size: 12px; }
.hr-assistant-capabilities { padding: 8px 16px; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.hr-assistant-capabilities summary, .hr-assistant-actions summary { cursor: pointer; }
.hr-assistant-capabilities p { margin: 8px 0 0; line-height: 1.6; }
.hr-assistant-actions { flex: 0 0 auto; max-height: 38%; overflow: auto; padding: 9px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.hr-assistant-actions:has(> [data-feedback][hidden]):has(> [data-handoff][hidden]):has(> [data-scope][hidden]):has(> [data-message][hidden]) { display: none; }
.hr-assistant-actions form, .hr-assistant-actions label { display: grid; gap: 5px; margin: 7px 0; }
.hr-assistant-actions pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; padding: 8px; background: var(--surface-soft); border-radius: 6px; }
.hr-assistant-actions textarea, .hr-assistant-actions input, .hr-assistant-actions select { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; padding: 6px; font: inherit; }
.hr-assistant-actions button { padding: 6px 9px; margin: 3px 4px 3px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--primary); font-size: 12px !important; }
.hr-assistant-controls { display: flex; gap: 6px; }
.hr-assistant-attachments { width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 16px; color: var(--ink); background: var(--surface); font-size: 13px; }
.hr-assistant-attachments::backdrop { background: rgb(16 24 40 / .2); }
.hr-attachments-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hr-assistant-attachments form:not(.hr-attachments-heading), .hr-assistant-attachments label { display: grid; gap: 6px; }
.hr-assistant-attachments input { width: 100%; min-width: 0; box-sizing: border-box; }
.hr-assistant-attachments button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--primary); cursor: pointer; }
.hr-assistant-attachments summary { display: none; }
.hr-payroll-download { margin: 8px 0; color: var(--primary); }
@media (min-width: 1180px) {
  body.hr-assistant-open main { margin-right: 456px; }
  body.hr-assistant-open .hr-assistant-launcher { display: none; }
}
@media (max-width: 1179px) {
  body.hr-assistant-open .hr-assistant-launcher { display: none; }
  .hr-assistant-sidebar { box-shadow: 0 14px 40px rgba(16, 24, 40, .16); }
}
@media (max-width: 600px) {
  .hr-assistant-sidebar { top: 8px; right: 8px; bottom: 8px; width: calc(100% - 16px); z-index: 40; }
  .hr-assistant-launcher { right: 16px; bottom: 16px; }
  .hr-assistant-heading { padding: 14px 16px; }
}
