.saved-work-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: calc(100vh - 82px);
  padding: 10px 14px 18px;
  overflow-y: auto;
}

.saved-work-controls {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 2px;
  background: #ffffff;
}

.saved-work-controls .panel-search {
  align-items: center;
  margin-bottom: 0;
}

.saved-work-controls .panel-search__field,
.saved-work-controls .panel-search__filter {
  display: flex;
  align-items: center;
  height: 36px;
  margin: 0;
}

.saved-work-controls .panel-search__filter {
  flex: 0 0 176px;
  width: 176px;
  min-width: 176px;
  max-width: 176px;
}

.saved-work-controls .panel-search__filter select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 36px;
  margin: 0;
  field-sizing: fixed;
}

.saved-work-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 10px;
  background: #ffffff;
}

.saved-work-tabs {
  display: flex;
  gap: 8px;
}

.saved-work-tab,
.saved-work-more,
.saved-work-action {
  appearance: none;
  border: 1px solid #237cc8;
  border-radius: 6px;
  background: #fff;
  color: #155f9f;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.saved-work-tab {
  box-sizing: border-box;
  width: auto;
  min-width: 120px;
  margin: 0;
  padding: 8px 14px;
}

.saved-work-tab.is-active {
  background: #218cf0;
  color: #fff;
}

.saved-work-status {
  min-height: 20px;
  color: #415468;
  font-size: 13px;
}

.saved-work-status[data-state="error"],
.saved-work-status[data-state="conflict"] {
  color: #a12222;
}

.saved-work-status[data-state="saved"] {
  color: #166b3b;
}

/* Saved Work fills the panel and scrolls inside the list. The panel itself does not scroll. */
.auth-modal.auth-modal--manage-users:has(#authSavedWorkPanel:not(.hidden)) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-modal.auth-modal--manage-users:has(#authSavedWorkPanel:not(.hidden)) #authSavedWorkPanel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

/* Saved Work: drop the empty account-message row and pull the tabs, search, and lists together. */
.auth-modal.auth-modal--manage-users:has(#authSavedWorkPanel:not(.hidden)):has(.auth-modal-message:empty) .auth-modal-header,
.auth-modal.auth-modal--manage-users:has(#authManageUsersPanel:not(.hidden)):has(.auth-modal-message:empty) .auth-modal-header,
.auth-modal.auth-modal--manage-users:has(#authUserLogsPanel:not(.hidden)):has(.auth-modal-message:empty) .auth-modal-header,
.auth-modal.auth-modal--manage-users:has(#authAppFeedbackPanel:not(.hidden)):has(.auth-modal-message:empty) .auth-modal-header {
  margin-bottom: 8px;
}

.auth-modal.auth-modal--manage-users:has(#authSavedWorkPanel:not(.hidden)) .auth-modal-message:empty,
.auth-modal.auth-modal--manage-users:has(#authManageUsersPanel:not(.hidden)) .auth-modal-message:empty,
.auth-modal.auth-modal--manage-users:has(#authUserLogsPanel:not(.hidden)) .auth-modal-message:empty,
.auth-modal.auth-modal--manage-users:has(#authAppFeedbackPanel:not(.hidden)) .auth-modal-message:empty {
  min-height: 0;
  margin-bottom: 0;
}

/* User Logs: search sits under the title, sessions stay a short card, and history fills the rest. */
.auth-modal.auth-modal--manage-users:has(#authUserLogsPanel:not(.hidden)) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-modal.auth-modal--manage-users:has(#authUserLogsPanel:not(.hidden)) #authUserLogsPanel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

#authUserLogsPanel > .auth-users-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  gap: 9px;
}

#authUserLogsPanel .panel-search {
  margin: 0;
  flex-wrap: nowrap;
}

#authUserLogsPanel .auth-user-logs-section:last-child {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

#authUserLogsPanel .auth-user-logs-list {
  box-sizing: border-box;
  padding-right: 10px;
}

#authActiveSessionsList {
  flex: 0 1 auto;
}

#authUserLogsList {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

/* App Feedback: tabs and search sit under the title. The open list fills the panel. */
.auth-modal.auth-modal--manage-users:has(#authAppFeedbackPanel:not(.hidden)) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-modal.auth-modal--manage-users:has(#authAppFeedbackPanel:not(.hidden)) #authAppFeedbackPanel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

#authAppFeedbackPanel > .auth-users-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  gap: 9px;
  overflow: hidden;
}

#authAppFeedbackPanel .saved-work-toolbar {
  flex: 0 0 auto;
  gap: 12px;
  padding-bottom: 0;
}

#authAppFeedbackPanel .saved-work-tabs {
  flex: 0 0 auto;
}

#authFeedbackCalcTab,
#authFeedbackChatTab {
  white-space: nowrap;
}

#authAppFeedbackPanel .panel-search {
  margin: 0;
  flex-wrap: nowrap;
}

#authAppFeedbackPanel .auth-user-logs-section {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#authAppFeedbackPanel .auth-users-list-title,
#authAppFeedbackPanel .auth-app-feedback-subtitle,
#authAppFeedbackPanel .auth-chat-feedback-summary,
#authAppFeedbackPanel .panel-search-more {
  flex: 0 0 auto;
}

#authAppFeedbackPanel .auth-user-logs-list {
  box-sizing: border-box;
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  padding-right: 10px;
}

/* Written comments are taller than thumb rows, so they get a larger share of the chat card.
   The 17px basis adds about 10px after the 2:3 split, enough to show the second thumb card's bottom edge. */
#authAppFeedbackPanel #authChatFeedbackComments {
  flex: 3 1 0;
}

#authAppFeedbackPanel #authChatFeedbackVotes {
  flex: 2 1 17px;
}

#authAppFeedbackPanel #authFeedbackCalcSection > .auth-users-list-title,
#authAppFeedbackPanel .auth-feedback-written-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#authAppFeedbackPanel .panel-search:has(#authFeedbackSourceField:not(.hidden)) #authFeedbackStatusFilter {
  flex-basis: 168px;
  width: 168px;
  min-width: 168px;
  max-width: 168px;
}

.auth-feedback-unresolved-count {
  flex: 0 0 auto;
  color: #646C83;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.auth-feedback-unresolved-count:empty {
  display: none;
}

#authAppFeedbackPanel .auth-feedback-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#authAppFeedbackPanel .auth-feedback-card-head .auth-user-log-title {
  min-width: 0;
}

#authAppFeedbackPanel .auth-feedback-chat-ticket {
  position: relative;
}

#authAppFeedbackPanel .auth-feedback-chat-ticket > .auth-feedback-ticket {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1;
}

#authAppFeedbackPanel .auth-chat-feedback-opener {
  padding-right: 148px;
  cursor: pointer;
}

#authAppFeedbackPanel .auth-chat-feedback-opener:focus-visible {
  outline: 2px solid #218cf0;
  outline-offset: 2px;
  border-radius: 4px;
}

.auth-feedback-ticket {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0;
  max-width: 100%;
  color: #646C83;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.auth-feedback-ticket-label {
  font-weight: 400;
}

.auth-feedback-ticket-code {
  position: relative;
  display: inline-block;
  width: auto;
  min-width: 8.4ch;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  margin-left: 0.28em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  user-select: text;
}

.auth-feedback-ticket-code.is-copied {
  color: transparent;
}

.auth-feedback-ticket-code.is-copied::after {
  content: "Copied";
  position: absolute;
  left: 0;
  top: 0;
  color: #646C83;
  font-weight: 600;
}

.auth-feedback-ticket-code:focus-visible {
  outline: 2px solid #218cf0;
  outline-offset: 2px;
  border-radius: 3px;
}

#authAppFeedbackPanel .auth-feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

#authAppFeedbackPanel .auth-feedback-actions-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

#authAppFeedbackPanel .auth-feedback-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: 28px;
  margin: 0;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

#authAppFeedbackPanel .auth-feedback-status {
  gap: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

#authAppFeedbackPanel .auth-feedback-status--unresolved {
  background: #f1f3f6;
  border-color: #e1e5ec;
  color: #3e4654;
}

#authAppFeedbackPanel .auth-feedback-status--resolved {
  background: #e7f6ec;
  border-color: #c6e8d2;
  color: #1c7a45;
}

#authAppFeedbackPanel .auth-feedback-status--cannot_reproduce {
  background: #faf4dc;
  border-color: #ead9a0;
  color: #8a6b16;
}

#authAppFeedbackPanel .auth-feedback-status--insufficient_information {
  background: #eeeefb;
  border-color: #d6d7f3;
  color: #5c56a6;
}

#authAppFeedbackPanel .auth-feedback-status--pending_review {
  background: #f1f3f6;
  border-color: #e1e5ec;
  color: #3e4654;
}

#authAppFeedbackPanel .auth-feedback-status--implemented,
#authAppFeedbackPanel .auth-feedback-status--reviewed {
  background: #e7f6ec;
  border-color: #c6e8d2;
  color: #1c7a45;
}

#authAppFeedbackPanel .auth-feedback-status--planned {
  background: #e7f2ff;
  border-color: #c5ddf8;
  color: #1d5fa8;
}

#authAppFeedbackPanel .auth-feedback-status--not_planned {
  background: #f5f0fb;
  border-color: #e3d6f4;
  color: #6d4ea3;
}

#authAppFeedbackPanel .auth-feedback-status:hover {
  filter: brightness(0.98);
}

#authAppFeedbackPanel .auth-feedback-status:disabled {
  cursor: default;
  opacity: 0.7;
}

#authAppFeedbackPanel .auth-feedback-status:focus-visible,
#authAppFeedbackPanel .auth-feedback-note:focus-visible,
#authAppFeedbackPanel .auth-feedback-replay-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 140, 240, 0.18);
}

.auth-feedback-status-glyph,
.auth-feedback-status-caret,
.auth-feedback-status-option-check {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.auth-feedback-status-glyph {
  width: 16px;
  height: 16px;
}

.auth-feedback-status-glyph svg,
.auth-feedback-status-option-check svg {
  display: block;
  width: 16px;
  height: 16px;
}

.auth-feedback-status-caret {
  width: 10px;
  height: 6px;
  margin-left: 2px;
}

.auth-feedback-status-caret svg {
  display: block;
  width: 10px;
  height: 6px;
}

.auth-feedback-status-glyph--unresolved,
.auth-feedback-status-glyph--pending_review { color: #5c6570; }
.auth-feedback-status-glyph--resolved,
.auth-feedback-status-glyph--implemented,
.auth-feedback-status-glyph--reviewed { color: #1f8a4c; }
.auth-feedback-status-glyph--cannot_reproduce { color: #a8841a; }
.auth-feedback-status-glyph--insufficient_information { color: #6a63c2; }
.auth-feedback-status-glyph--planned { color: #1d6fbf; }
.auth-feedback-status-glyph--not_planned { color: #7a4ea3; }

#authAppFeedbackPanel .auth-feedback-note {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  background: #ffffff;
  color: #646C83;
  cursor: pointer;
}

#authAppFeedbackPanel .auth-feedback-note svg {
  display: block;
  width: 16px;
  height: 16px;
}

#authAppFeedbackPanel .auth-feedback-note.has-note {
  border-color: #c9cff5;
  background: #f4f6ff;
  color: #3b4fbf;
}

#authAppFeedbackPanel .auth-feedback-note:hover {
  background: #f8fafc;
}

#authAppFeedbackPanel .auth-feedback-note.has-note:hover {
  background: #eef1ff;
}

.auth-feedback-action-error,
.auth-feedback-note-error {
  color: #9a3412;
  font-size: 12px;
  line-height: 1.35;
}

.auth-feedback-action-error {
  flex: 1 0 100%;
  margin-top: 6px;
}

.auth-feedback-note-error:empty {
  display: none;
}

.auth-feedback-status-menu,
.auth-feedback-status-filter-menu,
.auth-feedback-note-popover {
  position: fixed;
  z-index: 2600;
  box-sizing: border-box;
  background: #ffffff;
}

.auth-feedback-status-menu {
  min-width: 232px;
  margin: 0;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.auth-feedback-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.auth-feedback-status-option:hover,
.auth-feedback-status-option:focus {
  background: #f3f4f6;
  outline: none;
}

.auth-feedback-status-option-label {
  flex: 1 1 auto;
  min-width: 0;
}

.auth-feedback-status-option-check {
  width: 16px;
  height: 16px;
  color: #111827;
}

.auth-feedback-status-option-all {
  font-weight: 700;
  color: #111827;
}

.auth-feedback-status-filter-menu {
  width: 280px;
  min-width: 280px;
  margin: 0;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  max-height: min(480px, calc(100vh - 16px));
  overflow: auto;
}

.auth-feedback-status-filter-group {
  padding: 6px 8px 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.auth-feedback-status-filter-rule {
  height: 1px;
  margin: 4px 8px;
  background: #e5e7eb;
}

button#authFeedbackStatusFilter.auth-feedback-status-filter {
  appearance: none;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 36px;
  margin: 0;
  padding: 0 28px 0 10px;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1.2 5 4.8 9 1.2' stroke='%233e4852' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 8px 5px;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

button#authFeedbackStatusFilter.auth-feedback-status-filter:hover,
button#authFeedbackStatusFilter.auth-feedback-status-filter:focus-visible {
  background-color: #ffffff;
  border-color: #218cf0;
  box-shadow: 0 0 0 3px rgba(33, 140, 240, 0.18);
  outline: none;
}

.auth-feedback-status-filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-feedback-note-popover {
  width: min(528px, calc(100vw - 16px));
  max-height: min(560px, calc(100vh - 16px));
  overflow: auto;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.auth-feedback-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-feedback-note-title {
  min-width: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  user-select: text;
}

.auth-feedback-note-close {
  flex: 0 0 auto;
  width: 24px;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-feedback-note-close svg {
  width: 16px;
  height: 16px;
  display: block;
}

.auth-feedback-note-close:hover,
.auth-feedback-note-close:focus-visible {
  background: #eef2f7;
  color: #1e293b;
}

.auth-feedback-note-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  margin-top: 10px;
  overflow: auto;
}

.auth-feedback-note-log:empty {
  display: none;
}

.auth-feedback-note-entry {
  padding: 8px 10px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #f8fafc;
}

.auth-feedback-note-entry-meta {
  color: #646C83;
  font-size: 12px;
  line-height: 1.35;
}

.auth-feedback-note-entry-body {
  margin-top: 4px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.auth-feedback-note-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 132px;
  margin: 10px 0 0;
  padding: 8px;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.auth-feedback-note-text:focus {
  outline: none;
  border-color: #218cf0;
  box-shadow: 0 0 0 3px rgba(33, 140, 240, 0.18);
}

.auth-feedback-note-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.auth-feedback-note-save {
  box-sizing: border-box;
  width: 100px;
  min-width: 100px;
  height: 28px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #218cf0;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.auth-feedback-note-save:hover {
  background: #1873cc;
}

.auth-feedback-note-save:disabled,
.auth-feedback-note-save:disabled:hover {
  background: #218cf0;
  cursor: default;
  opacity: 0.45;
}

.auth-feedback-note-error {
  margin-top: 6px;
}

#authAppFeedbackPanel .auth-chat-feedback-count-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

#authAppFeedbackPanel .auth-chat-feedback-count-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

#authAppFeedbackPanel .auth-chat-feedback-count-values {
  flex: 0 0 auto;
  margin-top: 0;
}

button.auth-chat-feedback-badge {
  appearance: none;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  margin: 0;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

button.auth-chat-feedback-badge-up:hover,
button.auth-chat-feedback-badge-up.is-selected {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
}

button.auth-chat-feedback-badge-down:hover,
button.auth-chat-feedback-badge-down.is-selected {
  background: #e8eef6;
  border-color: #64748b;
  color: #334155;
}

button.auth-chat-feedback-badge:focus-visible {
  outline: 2px solid #218cf0;
  outline-offset: 2px;
}

#authAppFeedbackPanel .auth-chat-feedback-entry {
  cursor: pointer;
}

#authAppFeedbackPanel .auth-chat-feedback-entry:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

#authAppFeedbackPanel .auth-chat-feedback-entry:focus-visible {
  outline: 2px solid #218cf0;
  outline-offset: 2px;
}

/* Same outer size as the normal replay pop-out. Short notes stay content-height;
   long question and answer text scrolls inside the card. */
.auth-chat-feedback-reader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  background: rgba(3, 8, 24, 0.62);
}

.auth-chat-feedback-reader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(960px, 100%);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px 16px;
}

.auth-chat-feedback-reader-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding-right: 40px;
}

.auth-chat-feedback-reader-title {
  min-width: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

button.auth-chat-feedback-reader-close {
  appearance: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

button.auth-chat-feedback-reader-close:hover {
  background: #1873cc;
  color: #fff;
}

button.auth-chat-feedback-reader-close:focus,
button.auth-chat-feedback-reader-close:focus-visible {
  outline: none;
  box-shadow: none;
}

.auth-chat-feedback-reader-body {
  overflow: auto;
  min-height: 0;
  max-height: calc(100vh - 102px);
  overscroll-behavior: contain;
}

.auth-chat-feedback-reader-meta {
  margin-top: 8px;
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.auth-chat-feedback-reader-block {
  margin: 12px 0 0;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.auth-chat-feedback-reader-label {
  font-weight: 700;
  color: #334155;
}

/* Match Manage Users on the left and top. The right padding is the gap between
   the search row, the cards, and the scrollbar. */
.auth-modal.auth-modal--manage-users:has(#authSavedWorkPanel:not(.hidden)) .saved-work-shell {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  gap: 0;
  margin-top: 0;
  padding: 0 10px 12px 0;
}

/* Same gap inside Manage Users, only while a list scrollbar is showing.
   The header and Add User row use the same inset so the action buttons stay aligned. */
.auth-users-section--scrolling .auth-users-list {
  box-sizing: border-box;
  padding-right: 10px;
}

.auth-users-section--scrolling .auth-users-grid-head,
.auth-users-section--scrolling .auth-users-create-row {
  margin-right: calc(var(--auth-users-bar, 0px) + 10px);
}

#savedWorkActiveView > .saved-work-section:first-child {
  margin-bottom: 9px;
}

.auth-modal.auth-modal--manage-users:has(#authSavedWorkPanel:not(.hidden)) .saved-work-controls {
  gap: 6px;
  padding-top: 0;
  padding-bottom: 9px;
  background: #ffffff;
}

.auth-modal.auth-modal--manage-users:has(#authSavedWorkPanel:not(.hidden)) .saved-work-toolbar {
  align-items: center;
  gap: 12px;
  padding-bottom: 0;
}

.auth-modal-header-actions .saved-work-status {
  display: none;
  min-width: 0;
  max-width: min(420px, 42vw);
  margin: 0 5px 0 0;
  min-height: 0;
  line-height: 18px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-modal.auth-modal--manage-users:has(#authSavedWorkPanel:not(.hidden)) .auth-modal-header-actions .saved-work-status:not(:empty),
.auth-modal.auth-modal--manage-users:has(#authManageUsersPanel:not(.hidden)) .auth-modal-header-actions #authUsersStatus:not(:empty) {
  display: block;
}

#authManageUsersPanel > .auth-users-list-wrap {
  margin-top: 8px;
  border-top: 0;
  padding-top: 0;
  gap: 9px;
}

#authManageUsersPanel .saved-work-toolbar {
  gap: 12px;
  padding-bottom: 0;
}

.saved-work-toolbar .panel-search {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.saved-work-toolbar .panel-search__field {
  flex: 1 1 auto;
  min-width: 0;
}

.saved-work-toolbar .panel-search__count:empty {
  display: none;
}

.saved-work-section__head .saved-work-help {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.panel-search {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.panel-search__field {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
  margin: 0;
}

.panel-search__field input {
  width: 100%;
  max-width: none;
  height: 36px;
  margin: 0;
  box-sizing: border-box;
  padding: 0 12px 0 34px;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5 14 14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px 50%;
  background-size: 16px 16px;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
}

.panel-search__field input::placeholder {
  color: #64748b;
}

.panel-search__field input:focus {
  outline: none;
  border-color: #218cf0;
  box-shadow: 0 0 0 3px rgba(33, 140, 240, 0.18);
}

.panel-search__field input::-webkit-search-cancel-button,
.panel-search__field input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.panel-search__filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.panel-search__filter select {
  display: block;
  box-sizing: border-box;
  height: 36px;
  margin: 0;
  max-width: min(340px, 100%);
  padding: 0 28px 0 10px;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1.2 5 4.8 9 1.2' stroke='%233e4852' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 8px 5px;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

#authUsersRoleFilter {
  flex: 0 0 163px;
  width: 163px;
  min-width: 163px;
  max-width: 163px;
  field-sizing: fixed;
}

#authFeedbackSourceFilter {
  flex: 0 0 136px;
  width: 136px;
  min-width: 136px;
  max-width: 136px;
  field-sizing: fixed;
}

#authFeedbackRatingFilter {
  flex: 0 0 133px;
  width: 133px;
  min-width: 133px;
  max-width: 133px;
  field-sizing: fixed;
}

#authFeedbackStatusFilter {
  flex: 0 0 214px;
  width: 214px;
  min-width: 214px;
  max-width: 214px;
  field-sizing: fixed;
}

.panel-search__filter select:focus {
  outline: none;
  border-color: #218cf0;
  box-shadow: 0 0 0 3px rgba(33, 140, 240, 0.18);
}

.panel-search__count {
  min-height: 1.2em;
  color: #475569;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.panel-search__count:empty {
  display: none;
}

.panel-search__clear,
.panel-search-more {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  margin: 0;
  border: 1px solid #237cc8;
  border-radius: 6px;
  background: #ffffff;
  color: #155f9f;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
}

.panel-search__clear:hover,
.panel-search-more:hover,
.panel-search__clear:focus-visible,
.panel-search-more:focus-visible {
  background: #f3f8fd;
}

.panel-search-more {
  margin-top: 8px;
}

.panel-search__clear[hidden],
.panel-search-more[hidden],
.auth-users-row[hidden],
.auth-deleted-users-row[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .panel-search__filter {
    flex: 1 1 140px;
  }

  .panel-search__filter select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }
}

.saved-work-global-status {
  position: fixed;
  z-index: 9500;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 10px 14px;
  border: 1px solid #d88989;
  border-radius: 8px;
  background: #fff1f1;
  box-shadow: 0 5px 18px rgb(84 23 23 / 20%);
  color: #8e2323;
  font-size: 13px;
  font-weight: 700;
}

.saved-work-section {
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid #d8e4ef;
  border-radius: 8px;
  background: #f7faff;
}

.saved-work-section h3 {
  margin: 0 0 10px;
  color: #152840;
  font-size: 15px;
  text-align: left;
}

.saved-work-section.is-dismissed {
  display: none;
}

.saved-work-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 10px;
}

.saved-work-section__head h3 {
  margin: 0;
}

.saved-work-quick-dismiss,
.saved-work-expand-exit__button {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  cursor: pointer;
}

.saved-work-quick-dismiss[hidden] {
  display: none;
}

.saved-work-quick-dismiss svg,
.saved-work-expand-exit__button svg {
  width: 16px;
  height: 16px;
  display: block;
}

.saved-work-quick-dismiss svg {
  width: 12px;
  height: 12px;
}

.saved-work-quick-dismiss:hover,
.saved-work-quick-dismiss:focus-visible {
  background: #eef2f7;
  color: #1e293b;
}

.auth-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.saved-work-expand {
  width: 36px;
  min-width: 36px;
  height: 28px;
  padding: 0;
}

.saved-work-expand::before {
  content: none;
}

.saved-work-expand svg {
  width: 15px;
  height: 15px;
  display: block;
}

.auth-modal-overlay--saved-work-expanded {
  background: #ffffff;
}

.auth-modal-overlay--saved-work-expanded .auth-modal.auth-modal--manage-users {
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-modal-overlay--saved-work-expanded .auth-modal-close,
.auth-modal-overlay--saved-work-expanded .saved-work-expand {
  visibility: hidden;
}

.saved-work-expand-exit {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9600;
  display: flex;
  justify-content: center;
  height: 64px;
}

.saved-work-expand-exit[hidden] {
  display: none;
}

.saved-work-expand-exit__button {
  width: 32px;
  height: 32px;
  margin-top: 10px;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 4px 14px rgb(15 23 42 / 16%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.saved-work-expand-exit:hover .saved-work-expand-exit__button,
.saved-work-expand-exit__button:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.saved-work-help {
  margin: -4px 0 10px;
  color: #607286;
  font-size: 12px;
}

.saved-work-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  container-type: inline-size;
}

.saved-work-empty {
  padding: 18px;
  border: 1px dashed #bdccdb;
  border-radius: 7px;
  background: #fff;
  color: #607286;
  text-align: center;
}

#savedWorkQuickList .saved-work-empty,
#savedWorkRecentList .saved-work-empty {
  padding-top: 9px;
  padding-bottom: 9px;
}

.saved-work-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: grid;
  /* Name, claim, and physician keep the slide-out balance at every width: 27 / 20 / 53.
     Star, Trash, and Open stay on the auto track at their own size. */
  grid-template-columns:
    minmax(0, 27fr)
    minmax(0, 20fr)
    minmax(0, 53fr)
    auto;
  grid-template-areas:
    "name claim listing actions"
    "meta meta meta meta";
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
  padding: 10px 12px 8px;
  border: 1px solid #cbd9e7;
  border-left: 4px solid #238ce7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(28 52 77 / 8%);
  color: #1d2c3b;
}

.saved-work-card--trash {
  grid-template-areas:
    "name claim listing actions"
    "meta meta meta meta";
}

.saved-work-card:hover {
  border-color: #7eb6e8;
  box-shadow: 0 3px 10px rgb(28 84 132 / 12%);
}

.saved-work-card:focus-visible,
.saved-work-tab:focus-visible,
.saved-work-action:focus-visible,
.saved-work-star:focus-visible,
.saved-work-field input:focus-visible {
  outline: 3px solid rgb(33 140 240 / 32%);
  outline-offset: 2px;
}

.saved-work-card__file,
.saved-work-card__time,
.saved-work-purge-note,
.saved-work-card__dois,
.saved-work-card__dob {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-work-card__file {
  flex: 0 0 auto;
  min-width: max-content;
  margin-left: auto;
  overflow: visible;
  color: #123457;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: right;
}

.saved-work-card__mark {
  grid-area: mark;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.saved-work-card .saved-work-star {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid #cad6e2;
  border-radius: 6px;
  background: #fff;
  color: #8291a0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.saved-work-star.is-active {
  border-color: #e0ae2c;
  background: #fff9df;
  color: #f3b700;
}

.saved-work-star:hover {
  background-color: #fff9df;
  border-color: #e0ae2c;
  color: #f3b700;
}

.saved-work-star.is-active:hover {
  background-color: #ffe08a;
  border-color: #c48a10;
  color: #a86e00;
}

.saved-work-star.is-pending,
.saved-work-star.is-pending:hover,
.saved-work-star.is-active.is-pending,
.saved-work-star.is-active.is-pending:hover {
  color: transparent;
  cursor: progress;
  pointer-events: none;
}

.saved-work-star.is-pending:disabled {
  opacity: 1;
}

@keyframes saved-work-star-spin {
  to {
    transform: rotate(360deg);
  }
}

.saved-work-star.is-pending::after {
  content: "";
  position: absolute;
  left: calc(50% - 8px);
  top: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(30, 144, 255, 0.28);
  border-top-color: #1e90ff;
  border-radius: 50%;
  animation: saved-work-star-spin 0.7s linear infinite;
  box-sizing: border-box;
}

.saved-work-field {
  display: block;
  min-width: 0;
  height: 32px;
  margin: 0;
}

.saved-work-field--name {
  grid-area: name;
}

.saved-work-field--claim {
  grid-area: claim;
}

.saved-work-listing {
  grid-area: listing;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 0 4px 0 10px;
  border: 1px solid #c9d5e1;
  border-radius: 5px;
  background: #f3f6f9;
  color: #1d2c3b;
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
  overflow: hidden;
}

.saved-work-listing__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-work-listing__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.saved-work-listing__edit svg {
  display: block;
}

.saved-work-listing__edit:hover,
.saved-work-listing__edit:focus-visible {
  color: #2563eb;
  background: #e7f3ff;
}

.saved-work-physician-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9800;
}

.saved-work-physician-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9801;
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 16px 18px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.saved-work-physician-head,
.saved-work-physician-block-head,
.saved-work-physician-actions,
.saved-work-physician-date-row {
  display: flex;
  align-items: center;
}

.saved-work-physician-head,
.saved-work-physician-block-head,
.saved-work-physician-actions {
  justify-content: space-between;
  gap: 0.75rem;
}

.saved-work-physician-head {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.saved-work-physician-head h2,
.saved-work-physician-block-title {
  margin: 0;
  color: #0f172a;
}

.saved-work-physician-head h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.saved-work-physician-head h2 svg {
  display: block;
  flex: 0 0 auto;
  color: #2563eb;
}

.saved-work-physician-close,
.saved-work-physician-remove,
.saved-work-physician-add,
.saved-work-physician-add-date,
.saved-work-physician-cancel,
.saved-work-physician-save,
.saved-work-physician-date-remove {
  width: auto;
  margin: 0;
}

.saved-work-physician-close,
.saved-work-physician-date-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.saved-work-physician-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}

.saved-work-physician-body {
  min-height: 0;
  overflow: auto;
}

.saved-work-physician-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saved-work-physician-block {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.saved-work-physician-block-head {
  margin-bottom: 10px;
}

.saved-work-physician-block-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.saved-work-physician-remove,
.saved-work-physician-add,
.saved-work-physician-add-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: 600 0.8125rem/1.2 inherit;
  cursor: pointer;
}

.saved-work-physician-mini-icon {
  display: block;
  flex: 0 0 auto;
}

.saved-work-physician-remove {
  color: #a14a4a;
}

.saved-work-physician-remove:hover {
  color: #962f2f;
}

.saved-work-physician-add {
  margin-top: 10px;
}

.saved-work-physician-add:disabled {
  color: #94a3b8;
  cursor: default;
}

.saved-work-physician-grid {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 10px;
}

.saved-work-physician-grid label,
.saved-work-physician-dates {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
}

.saved-work-physician-dates {
  margin-top: 10px;
}

.saved-work-physician-grid input,
.saved-work-physician-grid select,
.saved-work-physician-date {
  display: block;
  width: 100%;
  max-width: none;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: 400 0.875rem/1 inherit;
}

.saved-work-physician-type-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.saved-work-physician-grid select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: none;
}

.saved-work-physician-type-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(14px + 1px);
  width: 9px;
  height: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8' fill='none' stroke='%230a0a0a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 1 7 7 13 1'/%3E%3C/svg%3E") center / 9px 5px no-repeat;
  transform: translateY(-50%);
  transition: transform 0.16s ease;
  pointer-events: none;
}

.saved-work-physician-type-wrap:has(select:open)::after {
  transform: translateY(-50%) rotate(180deg);
}

.saved-work-physician-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.saved-work-physician-date-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.saved-work-physician-date-row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) auto;
  justify-content: start;
  gap: 10px;
}

.saved-work-physician-date {
  width: 100%;
  min-width: 0;
  flex: none;
}

.saved-work-physician-date-remove {
  justify-self: start;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff;
  color: #dc2626;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.saved-work-physician-date-remove:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.saved-work-physician-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.saved-work-physician-cancel,
.saved-work-physician-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font: 600 0.875rem/1 inherit;
  cursor: pointer;
}

.saved-work-physician-cancel {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.saved-work-physician-save {
  padding: 0 20px;
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
}

.saved-work-physician-save:disabled {
  opacity: 0.6;
  cursor: progress;
}

.saved-work-listing.is-empty {
  color: #8b99a8;
}

.saved-work-listing:focus-visible {
  outline: 3px solid rgb(33 140 240 / 32%);
  outline-offset: 2px;
}

.saved-work-hover-tip {
  position: fixed;
  z-index: 10000;
  max-width: min(420px, 90vw);
  padding: 0.35rem 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #1e293b;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  pointer-events: none;
}

.saved-work-hover-tip[hidden] {
  display: none;
}

.saved-work-field input,
.saved-work-field select {
  width: 100%;
  max-width: none;
  height: 32px;
  min-height: 0;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #c9d5e1;
  border-radius: 5px;
  padding: 0 10px;
  background: #fff;
  color: #1d2c3b;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.saved-work-field select {
  padding-right: 1.4rem;
}

.saved-work-field input::placeholder {
  color: #8b99a8;
  font-weight: 500;
}

.saved-work-field input[readonly],
.saved-work-field select:disabled {
  background: #f3f6f9;
}

@media (max-width: 980px) {
  .saved-work-card,
  .saved-work-card--trash {
    grid-template-columns: minmax(6.5rem, 1fr) minmax(6.5rem, 0.9fr);
    grid-template-areas:
      "name claim"
      "listing listing"
      "actions actions"
      "meta meta";
  }
}

@container (max-width: 860px) {
  .saved-work-card,
  .saved-work-card--trash {
    grid-template-columns: minmax(6.5rem, 1fr) minmax(6.5rem, 0.9fr);
    grid-template-areas:
      "name claim"
      "listing listing"
      "actions actions"
      "meta meta";
  }
}

.saved-work-card__meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.saved-work-card__dois,
.saved-work-card__dob {
  display: block;
  flex: 0 1 auto;
  width: auto;
  max-width: min(46%, 280px);
  height: 24px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: #e7f3ff;
  color: #155f9f;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
}

.saved-work-card__dois--empty,
.saved-work-card__dob--empty {
  background: #eef2f5;
  color: #687786;
  font-weight: 600;
}

.saved-work-card__dois.saved-work-card__hit,
.saved-work-card__dob.saved-work-card__hit,
.saved-work-card__time.saved-work-card__hit {
  background: #fff4cc;
  color: #7a5600;
  box-shadow: inset 0 0 0 1px #e6c15a;
}

.saved-work-card__time.saved-work-card__hit {
  border-radius: 999px;
  padding: 0 8px;
  line-height: 24px;
}

.saved-work-card__time,
.saved-work-purge-note {
  flex: 0 0 auto;
  color: #617284;
  font-size: 12px;
  font-weight: 600;
}

.saved-work-card__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.saved-work-card .saved-work-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.08s ease, color 0.12s ease;
}

.saved-work-action--primary {
  background: #1e90ff;
  border-color: #1e90ff;
  color: #fff;
}

.saved-work-action--primary:hover {
  background: #1873cc;
  border-color: #1873cc;
}

.saved-work-action--primary:active {
  background: #125a98;
  border-color: #125a98;
  box-shadow: inset 0 2px 10px rgba(0, 24, 48, 0.35);
}

.saved-work-action--danger {
  border-color: #c97a7a;
  color: #962f2f;
}

.saved-work-action--danger:hover {
  background: #fff1f1;
  border-color: #b45454;
  color: #7d2424;
}

.saved-work-action--danger:active {
  background: #f8d6d6;
  border-color: #962f2f;
  color: #7d2424;
  box-shadow: inset 0 2px 8px rgba(120, 24, 24, 0.18);
}

.saved-work-action.is-pending {
  position: relative;
  color: transparent !important;
  cursor: progress;
  pointer-events: none;
}

.saved-work-action.is-pending::before {
  visibility: hidden;
}

.saved-work-action.is-pending:disabled {
  opacity: 1;
}

.saved-work-action.is-pending::after {
  content: "";
  position: absolute;
  left: calc(50% - 8px);
  top: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: saved-work-star-spin 0.7s linear infinite;
}

.saved-work-action--primary.is-pending::after {
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
}

.saved-work-action.is-pending:not(.saved-work-action--primary)::after {
  border: 2px solid rgba(30, 144, 255, 0.28);
  border-top-color: #1e90ff;
}

.saved-work-tab:hover,
.saved-work-more:hover,
.saved-work-action:not(.saved-work-action--primary):not(.saved-work-action--danger):hover {
  background: #1873cc;
  border-color: #1873cc;
  color: #ffffff;
}

.saved-work-action--primary:hover {
  color: #ffffff;
}

#savedWorkActiveTab::before,
#savedWorkTrashTab::before,
#authUsersActiveTab::before,
#authUsersDeletedTab::before,
#authFeedbackCalcTab::before,
#authFeedbackChatTab::before,
.saved-work-action--primary::before,
.saved-work-action--danger::before,
.saved-work-action:not(.saved-work-action--primary):not(.saved-work-action--danger)::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

#savedWorkActiveTab::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z'/%3E%3C/svg%3E");
}

#authFeedbackCalcTab::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 7h8'/%3E%3Cpath d='M8 11h.01M12 11h.01M16 11h.01M8 15h.01M12 15h.01M16 15h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 7h8'/%3E%3Cpath d='M8 11h.01M12 11h.01M16 11h.01M8 15h.01M12 15h.01M16 15h.01'/%3E%3C/svg%3E");
}

#authFeedbackChatTab::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

#authUsersActiveTab::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3C/svg%3E");
}

#savedWorkTrashTab::before,
#authUsersDeletedTab::before,
.saved-work-action--danger::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
}

.saved-work-action--primary::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
}

.saved-work-action:not(.saved-work-action--primary):not(.saved-work-action--danger)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");
}

.saved-work-more {
  display: block;
  margin: 12px auto 0;
  padding: 7px 18px;
}

.saved-work-more[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .saved-work-shell {
    height: calc(100vh - 72px);
    padding: 8px 10px 16px;
  }
}

.auth-mfa-enrollment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.auth-mfa-form {
  width: min(450px, 100%);
  margin: 0 auto;
}

.auth-mfa-form--enrollment > .auth-field {
  margin-top: 18px;
}

.auth-mfa-form--enrollment:has(#authMfaManualPanel:not(.hidden)) > .auth-field {
  margin-top: 10px;
}


.auth-mfa-enrollment p {
  margin: 2px 0;
}

.auth-mfa-scan-tail {
  display: block;
}

.auth-mfa-qr {
  width: calc(198px * 1.04);
  max-width: 100%;
  height: auto;
  border: 1px solid #d5e0ea;
  border-radius: 8px;
  background: #fff;
}

.auth-mfa-form .auth-mfa-manual-toggle {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin: 2px auto 0;
  padding: 2px 4px;
  border: none;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #afc4ff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  gap: 8px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.auth-mfa-form .auth-mfa-manual-toggle:hover,
.auth-mfa-form .auth-mfa-manual-toggle:focus-visible {
  background: transparent;
  color: #ffffff;
}

.auth-mfa-manual-copy__icon,
.auth-mfa-manual-copy__check,
.auth-mfa-manual-help svg,
.auth-mfa-manual-close svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-mfa-manual-panel {
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
  padding: 12px 12px 12px 14px;
  border: 1px solid #44558a;
  border-radius: 10px;
  background: #0c1736;
  text-align: left;
}

.auth-mfa-manual-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.auth-mfa-manual-panel__title {
  display: flex;
  align-items: center;
  min-width: 0;
}

.auth-mfa-form .auth-mfa-manual-panel__title .auth-mfa-manual-help {
  margin: -6px 0 -6px calc(8px - 4px / 0.9);
}

.auth-mfa-form .auth-mfa-manual-help svg {
  width: 20px;
  height: 20px;
}

.auth-mfa-manual-panel__label {
  color: #d7e0f7;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.auth-mfa-manual-panel__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: -6px -6px -6px 0;
}

.auth-mfa-form .auth-mfa-manual-copy,
.auth-mfa-form .auth-mfa-manual-help,
.auth-mfa-form .auth-mfa-manual-close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  flex: 0 0 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #8eabff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.auth-mfa-form .auth-mfa-manual-copy:hover,
.auth-mfa-form .auth-mfa-manual-copy:focus-visible,
.auth-mfa-form .auth-mfa-manual-help:hover,
.auth-mfa-form .auth-mfa-manual-help:focus-visible,
.auth-mfa-form .auth-mfa-manual-close:hover,
.auth-mfa-form .auth-mfa-manual-close:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #d5e2ff;
}

.auth-mfa-form .auth-mfa-manual-help {
  position: relative;
  z-index: 1;
}

.auth-mfa-form .auth-mfa-manual-help::before,
.auth-mfa-form .auth-mfa-manual-help::after {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
}

.auth-mfa-form .auth-mfa-manual-help::before {
  content: "";
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #e7edff;
}

.auth-mfa-form .auth-mfa-manual-help::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 5;
  width: 268px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e7edff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  color: #10183a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.auth-mfa-form .auth-mfa-manual-help:hover,
.auth-mfa-form .auth-mfa-manual-help:focus-visible {
  z-index: 4;
}

.auth-mfa-form .auth-mfa-manual-help:hover::before,
.auth-mfa-form .auth-mfa-manual-help:hover::after,
.auth-mfa-form .auth-mfa-manual-help:focus-visible::before,
.auth-mfa-form .auth-mfa-manual-help:focus-visible::after {
  opacity: 1;
}

.auth-mfa-form .auth-mfa-manual-copy.is-copied {
  color: #9ef4c1;
}

.auth-mfa-manual-copy__check {
  display: none;
}

.auth-mfa-form .auth-mfa-manual-copy.is-copied .auth-mfa-manual-copy__icon {
  display: none;
}

.auth-mfa-form .auth-mfa-manual-copy.is-copied .auth-mfa-manual-copy__check {
  display: block;
}

.auth-mfa-secret {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #f4f7ff;
  font: 600 15px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  user-select: all;
  text-align: left;
}

#authMfaBack {
  position: static !important;
  left: auto !important;
  display: flex !important;
  width: fit-content !important;
  min-height: 28px;
  margin: 7px auto 0 !important;
  padding: 4px 10px !important;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
}

.auth-required-password-form .auth-setup-copy {
  max-width: 430px;
  margin-right: auto;
  margin-bottom: 18px;
  margin-left: auto;
  line-height: 1.4;
}

.auth-required-password-form .auth-field {
  margin-bottom: 14px;
}

.auth-required-password-back {
  position: static !important;
  left: auto !important;
  display: flex !important;
  width: fit-content !important;
  min-height: 28px;
  margin: 8px auto 0 !important;
  padding: 4px 10px !important;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
}

.auth-mfa-lockout-help {
  position: relative;
  width: fit-content;
  margin: 7px auto 0;
  text-align: center;
}

.auth-mfa-form .auth-mfa-lockout-toggle {
  position: relative !important;
  left: auto !important;
  display: flex !important;
  width: fit-content !important;
  min-height: 0;
  margin: 0 auto !important;
  padding: 0 8px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #8ea0cf;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.auth-mfa-form .auth-mfa-lockout-toggle::before {
  content: "";
  position: absolute;
  inset: -5px -8px;
}

.auth-mfa-form .auth-mfa-lockout-toggle:hover,
.auth-mfa-form .auth-mfa-lockout-toggle:focus-visible {
  background: transparent !important;
  color: #afc4ff;
  text-decoration: underline;
}

.auth-mfa-form .auth-mfa-lockout-toggle:focus-visible {
  outline: 2px solid #52a7ff;
  outline-offset: 1px;
}

.auth-mfa-lockout-popover {
  position: absolute;
  top: calc(50% - 2px);
  left: calc(100% + 14px);
  z-index: 20;
  width: 220px;
  max-width: min(220px, calc(100vw - 48px));
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid #c8d6f0;
  border-radius: 8px;
  background: #e7edff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  color: #10183a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(3px, -50%);
  transition: opacity 0.1s ease, transform 0.1s ease, visibility 0.1s;
}

.auth-mfa-lockout-popover::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  border: 6px solid transparent;
  border-right-color: #e7edff;
  transform: translateY(-50%);
}

.auth-mfa-lockout-help.is-open .auth-mfa-lockout-popover {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.auth-delete-confirm-code {
  margin: 12px 0 0;
}

.auth-delete-confirm-code .auth-field {
  margin-bottom: 4px;
}

.auth-delete-confirm-code small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.auth-delete-confirm-error {
  margin-top: 7px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.35;
}

/* PD's general input rule caps these fields at 16rem and adds space under them.
   The show-password control is positioned against the field, not the page. */
.auth-modal .auth-password-wrap {
  position: relative;
  display: block;
  max-width: none;
}

.auth-modal .auth-field input,
.auth-modal .auth-password-wrap input,
.auth-users-row-input {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.auth-modal .auth-password-wrap input {
  padding-right: 42px;
}

.auth-users-password-wrap {
  position: relative;
  display: block;
  min-width: 0;
  max-width: none;
}

.auth-users-password-wrap .auth-users-row-input {
  padding-right: 42px;
}

.auth-users-password-wrap input::-ms-reveal,
.auth-users-password-wrap input::-ms-clear {
  display: none;
}

.auth-modal .auth-password-toggle svg,
.auth-users-password-wrap .auth-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-modal .auth-password-toggle .auth-eye-off,
.auth-users-password-wrap .auth-password-toggle .auth-eye-off {
  display: none;
}

.auth-modal .auth-password-toggle[aria-pressed="true"] .auth-eye,
.auth-users-password-wrap .auth-password-toggle[aria-pressed="true"] .auth-eye {
  display: none;
}

.auth-modal .auth-password-toggle[aria-pressed="true"] .auth-eye-off,
.auth-users-password-wrap .auth-password-toggle[aria-pressed="true"] .auth-eye-off {
  display: block;
}

.auth-modal .auth-form .auth-password-toggle,
.auth-users-password-wrap .auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  background-color: transparent;
  color: #5b6e95;
  font-size: 0;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2;
}

.auth-users-password-wrap .auth-password-toggle {
  width: 26px;
  min-width: 26px;
  height: 26px;
}

.auth-users-password-wrap .auth-password-toggle:focus-visible {
  outline-offset: 0;
}

.auth-modal .auth-form .auth-password-toggle:hover,
.auth-modal .auth-form .auth-password-toggle:focus-visible,
.auth-users-password-wrap .auth-password-toggle:hover,
.auth-users-password-wrap .auth-password-toggle:focus-visible {
  background: #eef3fb;
  background-color: #eef3fb;
  color: #1e3a5f;
  box-shadow: none;
}

.auth-modal .auth-form .auth-password-toggle:active,
.auth-users-password-wrap .auth-password-toggle:active {
  background: #e2eaf6;
  background-color: #e2eaf6;
  color: #1e3a5f;
  box-shadow: none;
}

.auth-modal .auth-form .auth-password-toggle:focus-visible,
.auth-users-password-wrap .auth-password-toggle:focus-visible {
  outline: 2px solid #52a7ff;
  outline-offset: 1px;
}

.auth-modal .auth-field input {
  color-scheme: light;
}

.auth-modal .auth-field input:-webkit-autofill,
.auth-modal .auth-field input:-webkit-autofill:hover,
.auth-modal .auth-field input:-webkit-autofill:focus,
.auth-modal .auth-field input:-webkit-autofill:active,
.auth-modal .auth-field input:-internal-autofill-selected,
.auth-modal .auth-field input:-internal-autofill-previewed {
  -webkit-text-fill-color: #111827 !important;
  caret-color: #111827;
  border: 1px solid #bfcee9;
  background-color: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 99999s ease-out 0s;
}

.auth-modal .auth-field input:autofill {
  background-color: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.auth-modal .auth-password-wrap:has(input:-webkit-autofill) .auth-password-toggle,
.auth-modal .auth-password-wrap:has(input:-internal-autofill-selected) .auth-password-toggle,
.auth-modal .auth-password-wrap:has(input:-internal-autofill-previewed) .auth-password-toggle,
.auth-modal .auth-password-wrap:has(input:autofill) .auth-password-toggle {
  background: #ffffff;
  background-color: #ffffff;
  color: #5b6e95;
  box-shadow: none;
}

.auth-modal .auth-password-wrap:has(input:-webkit-autofill) .auth-password-toggle:hover,
.auth-modal .auth-password-wrap:has(input:-webkit-autofill) .auth-password-toggle:focus-visible,
.auth-modal .auth-password-wrap:has(input:-internal-autofill-selected) .auth-password-toggle:hover,
.auth-modal .auth-password-wrap:has(input:-internal-autofill-previewed) .auth-password-toggle:hover,
.auth-modal .auth-password-wrap:has(input:autofill) .auth-password-toggle:hover,
.auth-modal .auth-password-wrap:has(input:autofill) .auth-password-toggle:focus-visible {
  background: #eef3fb;
  background-color: #eef3fb;
  color: #1e3a5f;
}

.auth-modal .auth-password-wrap:has(input:-webkit-autofill) .auth-password-toggle:active,
.auth-modal .auth-password-wrap:has(input:-internal-autofill-selected) .auth-password-toggle:active,
.auth-modal .auth-password-wrap:has(input:-internal-autofill-previewed) .auth-password-toggle:active,
.auth-modal .auth-password-wrap:has(input:autofill) .auth-password-toggle:active {
  background: #e2eaf6;
  background-color: #e2eaf6;
  color: #1e3a5f;
}

.auth-forgot-password-complete .auth-field,
.auth-reset-password-complete .auth-field {
  display: none;
}

.auth-forgot-password-complete #authForgotPasswordRequestSubmit,
.auth-reset-password-complete #authResetPasswordSubmit {
  margin-top: 0;
}

.auth-modal--reset-complete .auth-modal-header {
  margin-bottom: 4px;
}

.auth-modal-message.auth-modal-message--reset-complete {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 0;
}

.auth-modal-message.auth-modal-message--reset-complete::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23027a48'/%3E%3Cpath d='M7.2 12.4l3.1 3.1 6.5-6.8' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-modal--forgot-complete .auth-modal-header {
  margin-bottom: 16px;
}

.auth-modal--forgot-complete .auth-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.auth-modal-message.auth-modal-message--forgot-complete {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
  min-height: 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.5;
}

.auth-modal-message.auth-modal-message--forgot-complete p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.auth-modal-message.auth-modal-message--forgot-complete p:first-child {
  font-weight: 500;
}

/* Change Password: close the empty message slot and leave 17px under the heading (19px less than before). */
.auth-modal:has(#authChangePasswordForm:not(.hidden)):has(.auth-modal-message:empty) .auth-modal-header {
  margin-bottom: 17px;
}

.auth-modal:has(#authChangePasswordForm:not(.hidden)) .auth-modal-message:empty {
  min-height: 0;
  margin-bottom: 0;
}

#authChangePasswordForm > .auth-field:last-of-type {
  margin-bottom: 0;
}

#authChangePasswordForm > #authChangePasswordSubmit {
  margin-top: 16px;
}

/* Reset Password: close the empty message slot and leave 14px under the heading (22px less than before). */
.auth-modal:has(#authResetPasswordForm:not(.hidden)):has(.auth-modal-message:empty) .auth-modal-header {
  margin-bottom: 14px;
}

.auth-modal:has(#authResetPasswordForm:not(.hidden)) .auth-modal-message:empty {
  min-height: 0;
  margin-bottom: 0;
}

/* Forgot Password: close the empty message slot and leave 14px under the heading. */
.auth-modal:has(#authForgotPasswordRequestForm:not(.hidden)):has(.auth-modal-message:empty) .auth-modal-header {
  margin-bottom: 14px;
}

.auth-modal:has(#authForgotPasswordRequestForm:not(.hidden)) .auth-modal-message:empty {
  min-height: 0;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .auth-mfa-lockout-help.is-open {
    margin-bottom: 58px;
  }

  .auth-mfa-lockout-popover {
    top: calc(100% + 4px);
    bottom: auto;
    left: 50%;
    width: max-content;
    max-width: min(280px, calc(100vw - 32px));
    transform: translate(-50%, -3px);
  }

  .auth-mfa-lockout-popover::after {
    top: auto;
    bottom: 100%;
    right: auto;
    left: 50%;
    border-right-color: transparent;
    border-bottom-color: #e7edff;
    transform: translateX(-50%);
  }

  .auth-mfa-lockout-help.is-open .auth-mfa-lockout-popover {
    transform: translate(-50%, 0);
  }
}

body.auth-active .container {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  /* The 15px gutter is only on the right, so centered content sits 7.5px
     left of the card. Keep the same horizontal padding total and move that
     7.5px to the left side. */
  padding-left: calc(22px + 7.5px);
  padding-right: calc(22px - 7.5px);
}

@media (max-height: 720px) {
  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .container {
    padding-bottom: 8px;
  }
}

@media (max-height: 820px) {
  body.auth-active .container {
    padding-left: calc(16px + 7.5px);
    padding-right: calc(16px - 7.5px);
  }
}

body.auth-mfa-active:has(#authMfaForm:not(.hidden)) .auth-status-message,
body.auth-active:has(#authMfaForm:not(.hidden)) .auth-status-message {
  min-height: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  line-height: 0;
}

body.auth-mfa-active .container,
body.auth-active:has(#authMfaForm:not(.hidden)) .container {
  transform: scale(0.9) !important;
  transform-origin: center;
}

body.auth-mfa-active .auth-logo,
body.auth-active:has(#authMfaForm:not(.hidden)) .auth-logo {
  margin-bottom: 4px;
}

body.auth-mfa-active .auth-mfa-form .auth-setup-copy,
body.auth-active:has(#authMfaForm:not(.hidden)) .auth-mfa-form .auth-setup-copy {
  margin-bottom: 6px;
}

body.auth-mfa-active .auth-mfa-enrollment,
body.auth-active:has(#authMfaForm:not(.hidden)) .auth-mfa-enrollment {
  gap: 4px;
  margin-bottom: 6px;
}

#authStatusMessage.auth-status-message--with-check {
  white-space: nowrap;
}

#authStatusMessage.auth-status-message--with-check::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ef4c1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-recovery-codes {
  margin: 8px 0 14px;
  padding: 12px;
  border: 1px solid #cbd9e7;
  border-radius: 7px;
  background: #f5f8fb;
  color: #18344f;
  font: 600 14px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: center;
  user-select: all;
}

.auth-recovery-panel button + button {
  margin-top: 8px;
}

#authRecoveryCodesCopy,
#authRecoveryCodesDownload,
#authRecoveryCodesContinue {
  gap: 8px;
}

.auth-recovery-btn__icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

#authRecoveryCodesContinue::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5.5L15.5 12 8 18.5'/%3E%3C/svg%3E");
}

/* The loading spinner uses this same ::after. Drop the chevron so the ring stays empty. */
#authRecoveryCodesContinue.auth-btn-loading::after {
  width: 1.25rem;
  height: 1.25rem;
  background-image: none;
}

.auth-modal.auth-modal--manage-users.auth-modal--backup-codes {
  width: min(460px, calc(100vw - 360px));
  position: relative;
  z-index: 2;
}

.auth-backup-codes-copy {
  margin: 0 0 14px;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.auth-backup-codes-list {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #cbd9e7;
  border-radius: 7px;
  background: #f5f8fb;
  color: #18344f;
  font: 600 14px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: center;
  user-select: all;
  white-space: pre-wrap;
}

#authBackupCodesCopy,
#authBackupCodesDownload {
  gap: 8px;
}

#authBackupCodesDownload {
  margin-top: 8px;
}

.auth-modal-title-group {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.auth-backup-codes-help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 2px solid #1677ff;
  border-radius: 50%;
  background: #ffffff;
  color: #126ee8;
  font: 800 14px/1 "Segoe UI", system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.auth-backup-codes-help-trigger:hover {
  background: #eaf4ff;
  color: #075cc9;
}

.auth-backup-codes-help-trigger:active {
  background: #d8ebff;
}

.auth-backup-codes-help-trigger:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.3);
  outline-offset: 2px;
}

.auth-modal-overlay--backup-codes {
  --auth-profile-drawer-width: min(340px, calc(100vw - 18px));
  --auth-backup-drawer-width: min(460px, calc(100vw - 360px));
}

.auth-backup-codes-help {
  container-name: auth-backup-help;
  container-type: inline-size;
  position: fixed;
  top: 0;
  right: calc(var(--auth-profile-drawer-width) + var(--auth-backup-drawer-width));
  z-index: 3;
  width: min(
    920px,
    calc(100vw - var(--auth-profile-drawer-width) - var(--auth-backup-drawer-width))
  );
  height: 100vh;
  height: 100dvh;
  padding: 24px 26px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  border-left: 1px solid #d6deed;
  border-right: 1px solid #d6deed;
  background: #fbfdff;
  color: #172554;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.2);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  animation: authBackupHelpSlideIn 0.2s ease-out;
}

@keyframes authBackupHelpSlideIn {
  from {
    transform: translateX(30px);
    opacity: 0.65;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.auth-backup-help-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.auth-backup-help-header h2 {
  margin: 0;
  color: #0b1739;
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.auth-backup-codes-help .auth-backup-help-close {
  flex: 0 0 auto;
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #667085;
}

.auth-backup-codes-help .auth-backup-help-close:hover {
  background: #eaf4ff;
  color: #1d4ed8;
}

.auth-backup-codes-help .auth-backup-help-close:focus,
.auth-backup-codes-help .auth-backup-help-close:focus-visible {
  outline: none;
  box-shadow: none;
}

.auth-backup-codes-help .auth-backup-help-close::before {
  top: -2px;
  font-size: 28px;
  font-weight: 300;
}

.auth-backup-help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, 1fr);
  gap: 26px;
}

.auth-backup-help-column {
  min-width: 0;
}

.auth-backup-help-column--uses {
  padding-left: 22px;
  border-left: 1px solid #d8e1ee;
}

.auth-backup-help-section {
  margin-top: 18px;
}

.auth-backup-help-section:first-child {
  margin-top: 0;
}

.auth-backup-help-section h3,
.auth-backup-help-safe h3,
.auth-backup-help-warning h3 {
  margin: 0;
  color: #101d47;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
}

.auth-backup-help-section > p,
.auth-backup-help-safe p,
.auth-backup-help-intro {
  margin: 5px 0 0;
  color: #52617f;
  font-size: 14px;
  line-height: 1.48;
}

.auth-backup-help-intro strong {
  color: #111f4d;
}

.auth-backup-help-safe {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f5ff 0%, #dff1ff 100%);
}

.auth-backup-help-safe h3 {
  color: #12256b;
  font-size: 16px;
}

.auth-backup-help-safe p {
  margin-top: 4px;
  color: #50658b;
  font-size: 12px;
  line-height: 1.45;
}

.auth-backup-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dff1ff;
  color: #075dcc;
}

.auth-backup-help-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-backup-help-icon--shield {
  width: 46px;
  height: 46px;
  background: #cceaff;
  color: #0794f5;
}

.auth-backup-help-icon--battery {
  color: #e11d2e;
}

.auth-backup-help-use-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.auth-backup-help-use {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 12px;
  box-sizing: border-box;
  border-radius: 9px;
  background: linear-gradient(135deg, #eef8ff 0%, #e5f3ff 100%);
}

.auth-backup-help-use .auth-backup-help-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.58);
}

.auth-backup-help-use .auth-backup-help-icon svg {
  width: 22px;
  height: 22px;
}

.auth-backup-help-use h4 {
  margin: 0;
  color: #12256b;
  font-size: 13px;
  line-height: 1.25;
}

.auth-backup-help-use p {
  margin: 2px 0 0;
  color: #647494;
  font-size: 11px;
  line-height: 1.35;
}

.auth-backup-help-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.auth-backup-help-step {
  min-width: 0;
}

.auth-backup-help-screen {
  display: flex;
  flex-direction: column;
  min-height: 224px;
  padding: 14px 13px 11px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #243963;
  border-radius: 6px;
  background: #010515;
  color: #f8fbff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.auth-backup-help-screen-logo {
  width: 76%;
  height: 48px;
  margin: 0 auto 8px;
  background: url("../Logo1.5.png") center / contain no-repeat;
}

.auth-backup-help-screen-title {
  margin: 0 0 3px;
  text-align: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.auth-backup-help-screen-copy {
  margin: 0 0 8px;
  text-align: center;
  color: #a9b8d8;
  font-size: 6px;
  line-height: 1.35;
}

.auth-backup-help-screen-field {
  margin-top: 6px;
}

.auth-backup-help-screen-field span {
  display: block;
  margin-bottom: 3px;
  color: #f4f7ff;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.2;
}

.auth-backup-help-screen-field b {
  display: block;
  min-height: 23px;
  padding: 6px 7px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #1d4f9d;
  border-radius: 3px;
  background: #0a1737;
  color: #8ea1cd;
  font-size: 7px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.auth-backup-help-screen-link {
  margin-top: 7px;
  color: #23a7ff;
  font-size: 7px;
  font-weight: 650;
  line-height: 1.2;
}

.auth-backup-help-screen-link--center {
  margin-top: auto;
  text-align: center;
}

.auth-backup-help-screen-lockout {
  margin-top: 6px;
  margin-bottom: 8px;
  color: #8ea0cf;
  text-align: center;
  font-size: 6px;
  font-weight: 400;
  line-height: 1.2;
}

.auth-backup-help-screen-button {
  margin-top: 7px;
  padding: 6px;
  border-radius: 3px;
  background: #0798f8;
  color: #ffffff;
  text-align: center;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.2;
}

.auth-backup-help-screen-button--outline {
  border: 1px solid #6d7e9e;
  background: transparent;
}

.auth-backup-help-screen-footer {
  margin-top: auto;
  padding-top: 7px;
  color: #8190ad;
  text-align: center;
  font-size: 7px;
  font-weight: 650;
}

.auth-backup-help-arrow {
  width: 34px;
  color: #147de8;
}

.auth-backup-help-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-backup-help-step-caption {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 9px;
}

.auth-backup-help-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1677ed;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.auth-backup-help-step-caption p {
  margin: 2px 0 0;
  color: #506182;
  font-size: 12px;
  line-height: 1.35;
}

.auth-backup-help-warning {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #f2bcc4;
  border-radius: 8px;
  background: #fff0f2;
}

.auth-backup-help-warning-icon {
  color: #e11d2e;
}

.auth-backup-help-warning-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-backup-help-warning h3 {
  color: #c51f30;
  font-size: 16px;
}

.auth-backup-help-warning ul {
  margin: 6px 0 0;
  padding-left: 19px;
  color: #46577d;
  font-size: 12px;
  line-height: 1.45;
}

.auth-backup-help-warning li + li {
  margin-top: 5px;
}

@container auth-backup-help (max-width: 740px) {
  .auth-backup-help-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .auth-backup-help-column--uses {
    padding: 20px 0 0;
    border-top: 1px solid #d8e1ee;
    border-left: 0;
  }
}

@container auth-backup-help (max-width: 470px) {
  .auth-backup-help-flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
  }

  .auth-backup-help-step {
    width: 100%;
  }

  .auth-backup-help-arrow {
    transform: rotate(90deg);
  }

  .auth-backup-help-warning {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1120px) {
  .auth-modal.auth-modal--manage-users.auth-modal--backup-codes {
    width: min(480px, 100vw);
    margin-right: 0;
  }

  .auth-modal-overlay--backup-codes .auth-backup-codes-help {
    right: 0;
    width: 100vw;
  }
}

@media (max-width: 740px) {
  .auth-backup-help-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .auth-backup-help-column--uses {
    padding: 20px 0 0;
    border-top: 1px solid #d8e1ee;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .auth-backup-codes-help {
    padding: 18px 16px;
  }

  .auth-backup-help-header h2 {
    font-size: 24px;
  }

  .auth-backup-help-flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
  }

  .auth-backup-help-step {
    width: 100%;
  }

  .auth-backup-help-arrow {
    transform: rotate(90deg);
  }

  .auth-backup-help-warning {
    grid-template-columns: minmax(0, 1fr);
  }
}

#authRecoveryCodesDownload {
  margin-top: calc(8px / 0.9);
}

#authRecoveryCodesContinue {
  margin-top: calc(16px / 0.9);
}

body.auth-active:has(#authRecoveryCodesPanel:not(.hidden)) .container {
  padding-bottom: calc(16px / 0.9 - 1px);
}

.auth-mfa-error-dialog {
  width: min(340px, calc(100vw - 32px));
  border-color: #f1b7b7;
  padding: 16px;
}

.auth-mfa-error-dialog h4 {
  color: #991b1b;
  font-size: 17px;
}

.auth-mfa-error-dialog p {
  font-size: 13px;
}

.auth-mfa-error-dialog .auth-users-row-btn {
  min-width: 84px;
}

@media (max-height: 720px) {
  body.auth-active {
    padding: 8px;
  }

  body.auth-active .container {
    max-height: calc(100vh - 16px);
    padding: 10px calc(14px - 7.5px) 10px calc(14px + 7.5px);
    transform: none;
  }

  .auth-logo {
    width: min(380px, 82vw);
    max-height: 112px;
    margin-bottom: 4px;
    object-fit: contain;
  }

  .auth-logo.auth-logo-other {
    width: min(304px, 65.6vw);
    max-height: 89.6px;
  }

  .auth-logo.auth-logo-signin {
    width: min(307px, 66.2vw);
    max-height: 90px;
    margin-bottom: 0;
  }

  .auth-mfa-form .auth-setup-title {
    margin: 0 0 3px;
    font-size: 17px;
  }

  .auth-mfa-form .auth-setup-copy {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .auth-mfa-enrollment {
    gap: 4px;
    margin-bottom: 5px;
    font-size: 12px;
  }

  .auth-mfa-qr {
    width: calc(148.5px * 1.04);
  }

  .auth-mfa-manual-panel {
    padding: 8px 10px;
  }

  .auth-mfa-secret {
    font-size: 13px;
  }

  .auth-mfa-form .auth-field {
    margin-bottom: 4px;
  }

  .auth-mfa-form .auth-field span {
    font-size: 11px;
  }

  .auth-mfa-form .auth-field input {
    padding: 6px 8px;
    font-size: 13px;
  }

  .auth-mfa-form button {
    padding: 7px 10px;
    font-size: 13px;
  }
}

/* 110%+ browser zoom lowers the CSS viewport into the rules above and would
   shrink the initial sign-in logo. Put that logo back to its 100% size
   (75.9% of the card content box at 22px side padding). The subtracted
   amounts are 75.9% of the extra content width from the tighter 16px and
   14px side padding. Short windows at 100% zoom are unchanged. */
@media (max-height: 820px) and (min-resolution: 1.09dppx) {
  .auth-logo.auth-logo-signin {
    width: min(420px, calc(75.9% - 9.108px));
    max-height: none;
    margin-bottom: 6px;
  }
}

@media (max-height: 720px) and (min-resolution: 1.09dppx) {
  .auth-logo.auth-logo-signin {
    width: min(420px, calc(75.9% - 12.144px));
    max-height: none;
    margin-bottom: 6px;
  }
}

@media (max-height: 580px) {
  body.auth-mfa-active,
  body.auth-active:has(#authMfaForm:not(.hidden)) {
    padding: 6px;
  }

  body.auth-mfa-active .container,
  body.auth-active:has(#authMfaForm:not(.hidden)) .container {
    max-height: calc(100vh - 12px);
    padding: 8px 12px;
    overflow-y: hidden;
    scrollbar-gutter: auto;
  }

  body.auth-mfa-active .auth-logo,
  body.auth-active:has(#authMfaForm:not(.hidden)) .auth-logo {
    width: min(232px, 57.6vw);
    max-height: 64px;
    margin-bottom: 0;
  }

  .auth-mfa-form .auth-setup-title {
    margin-bottom: 2px;
    font-size: 16px;
  }

  .auth-mfa-form .auth-setup-copy {
    margin-bottom: 3px;
    font-size: 11px;
    line-height: 1.2;
  }

  .auth-mfa-qr {
    width: calc(115.2px * 1.04);
    border-radius: 5px;
  }

  .auth-mfa-enrollment {
    gap: 2px;
    margin-bottom: 3px;
    font-size: 11px;
  }

  .auth-mfa-enrollment p {
    margin: 0;
    line-height: 1.2;
  }

  .auth-mfa-manual-panel {
    padding: 6px 8px;
  }

  .auth-mfa-manual-panel__label {
    font-size: 12px;
  }

  .auth-mfa-secret {
    font-size: 12px;
  }

  .auth-mfa-form .auth-field {
    gap: 2px;
    margin-bottom: 2px;
  }

  .auth-mfa-form .auth-field span {
    font-size: 10px;
  }

  .auth-mfa-form .auth-field input {
    padding: 5px 7px;
    font-size: 12px;
  }

  .auth-mfa-form button {
    padding: 6px 9px;
    font-size: 12px;
  }

  #authMfaBack {
    min-height: 22px;
    margin-top: 3px !important;
    padding: 2px 8px !important;
    font-size: 12px;
  }

  .auth-mfa-lockout-help {
    margin-top: 2px;
  }

  .auth-mfa-form .auth-mfa-lockout-toggle {
    min-height: 0;
    padding: 0 8px !important;
    font-size: 10.5px;
    line-height: 1.2;
  }

  .auth-mfa-lockout-popover {
    max-width: min(280px, calc(100vw - 32px));
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.25;
  }
}

@media (max-height: 470px) {
  body.auth-mfa-active .container,
  body.auth-active:has(#authMfaForm:not(.hidden)) .container {
    overflow-y: auto;
  }
}

.auth-idle-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(18 31 45 / 58%);
}

.auth-session-lock {
  position: fixed;
  z-index: 11000;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #526579;
  font: 600 15px/1.5 "Segoe UI", system-ui, sans-serif;
}

.auth-idle-dialog {
  width: min(440px, 100%);
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 60px rgb(0 0 0 / 30%);
  color: #172b40;
}

.auth-idle-dialog h2 {
  margin: 0 0 8px;
}

.auth-idle-dialog p {
  margin: 0;
  line-height: 1.45;
}

.auth-idle-dialog p + p {
  margin-top: 2px;
}

.auth-idle-countdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 10px;
  margin-top: 16px;
  padding: 16px 24px 14px;
  border: 1px solid #d6e3f0;
  border-radius: 10px;
  background: #f4f8fc;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-idle-countdown__label {
  grid-column: 1;
  grid-row: 1;
  color: #3a5370;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.auth-idle-countdown__track {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1eaf3;
}

.auth-idle-countdown__track > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1677df, #42a5ff);
  transition: width 0.25s linear, background 0.2s ease;
}

.auth-idle-countdown__value {
  grid-column: 2;
  grid-row: 1;
  color: #164e86;
  font: 600 22px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: right;
  transition: color 0.2s ease;
}

.auth-idle-countdown--urgent {
  border-color: #f2cf92;
  background: linear-gradient(135deg, #fffdf8 0%, #fff5df 100%);
}

.auth-idle-countdown--urgent .auth-idle-countdown__track > span {
  background: linear-gradient(90deg, #d97706, #f3ad3d);
}

.auth-idle-countdown--urgent .auth-idle-countdown__value {
  color: #9a4e05;
}

.auth-idle-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.auth-idle-actions button {
  flex: 1;
  margin: 0;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: #218cf0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.auth-idle-actions button:last-child {
  background: #34547d;
}

.auth-idle-actions button:focus,
.auth-idle-actions button:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Authenticator setup only. Logo is 5% smaller and the QR is 4% larger.
   On a normal window the visible gaps are 24, 24, 16, 16, 16, 12, 20, 8, 16, 12, 24. */
body.auth-active:has(.auth-mfa-form--enrollment:not(.hidden)) .auth-logo.auth-logo-other {
  width: min(calc(416px * 0.95), calc(75.2% * 0.95));
}

@media (max-height: 820px) {
  body.auth-active:has(.auth-mfa-form--enrollment:not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(368px * 0.95), calc(72% * 0.95));
  }
}

@media (max-height: 720px) {
  body.auth-active:has(.auth-mfa-form--enrollment:not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(304px * 0.95), calc(65.6vw * 0.95));
    max-height: calc(89.6px * 0.95);
  }
}

@media (max-height: 580px) {
  body.auth-active:has(.auth-mfa-form--enrollment:not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(232px * 0.95), calc(57.6vw * 0.95));
    max-height: calc(64px * 0.95);
  }
}

@media (min-height: 721px) {
  /* Values are on-screen pixels divided by the card's 0.9 scale, then
     reduced by the logo's dark matte and by padding inside the text controls
     so the visible gap is the listed target. The card is scaled, so its
     layout box is taller than the card you see; let that box extend into
     the margin the scale already hides instead of scrolling. */
  body.auth-active:has(#authMfaForm.auth-mfa-form--enrollment:not(.hidden)) {
    height: 100vh;
    max-height: 100vh;
  }

  body.auth-active:has(#authMfaForm.auth-mfa-form--enrollment:not(.hidden)) .container {
    max-height: calc((100vh - 24px) / 0.9 + 32px);
    padding-top: calc(17px / 0.9);
    padding-bottom: calc(16.4px / 0.9);
  }

  body.auth-active:has(#authMfaForm.auth-mfa-form--enrollment:not(.hidden)) .auth-logo.auth-logo-other {
    margin-bottom: calc(17.9px / 0.9);
  }

  body.auth-active:has(.auth-mfa-form--enrollment:not(.hidden)) #authMfaTitle {
    margin: 0 0 calc(15.3px / 0.9);
  }

  body.auth-active:has(#authMfaForm.auth-mfa-form--enrollment:not(.hidden)) .auth-mfa-enrollment {
    gap: 0;
    margin-bottom: 0;
  }

  body.auth-active:has(.auth-mfa-form--enrollment:not(.hidden)) .auth-mfa-enrollment p {
    margin: calc(16px / 0.9) 0 0;
  }

  body.auth-active:has(.auth-mfa-form--enrollment:not(.hidden)) .auth-mfa-form .auth-mfa-manual-toggle {
    margin: calc(13.5px / 0.9) auto 0;
  }

  body.auth-active:has(.auth-mfa-form--enrollment:not(.hidden)) #authMfaManualPanel {
    margin-top: calc(8.5px / 0.9);
  }

  .auth-mfa-form--enrollment:has(#authMfaManualPanel:not(.hidden)) > .auth-field {
    margin-top: calc(20px / 0.9);
  }

  .auth-mfa-form--enrollment > .auth-field {
    gap: calc(7.3px / 0.9);
    margin-bottom: calc(16px / 0.9);
  }

  .auth-mfa-form--enrollment > #authMfaSubmit {
    margin-top: 0;
  }

  body.auth-active:has(.auth-mfa-form--enrollment:not(.hidden)) #authMfaBack {
    margin-top: calc(6.4px / 0.9) !important;
  }
}

/* 110%+ browser zoom lowers the CSS viewport and would shrink the
   authenticator logo. Keep the normal-window size, 95% of 75.2% of the
   card content box at 22px side padding. The subtracted amounts are that
   same percentage of the extra content width from the tighter side
   padding (and, below 580px, from dropping the scrollbar gutter). Short
   windows at 100% zoom are unchanged. */
@media (max-height: 820px) and (min-resolution: 1.09dppx) {
  body.auth-active:has(#authMfaForm.auth-mfa-form--enrollment:not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(416px * 0.95), calc(75.2% * 0.95 - 8.573px));
    max-height: none;
  }
}

@media (max-height: 720px) and (min-resolution: 1.09dppx) {
  body.auth-active:has(#authMfaForm.auth-mfa-form--enrollment:not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(416px * 0.95), calc(75.2% * 0.95 - 11.43px));
    max-height: none;
  }
}

@media (max-height: 580px) and (min-resolution: 1.09dppx) {
  body.auth-active:has(#authMfaForm.auth-mfa-form--enrollment:not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(416px * 0.95), calc(75.2% * 0.95 - 25.004px));
    max-height: none;
  }
}

/* Verification Code only. Authenticator Setup keeps the enrollment rules
   above, and Sign In keeps its own logo. Visible gaps are measured after
   the 0.9 scale, so the CSS values are those targets divided by 0.9 with
   the logo matte and text-line insets removed. The logo is 6% smaller
   than the shared other-logo size. 110%+ zoom keeps that size. */
@media (min-height: 721px) {
  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .container {
    padding-top: 19.2px;
    padding-bottom: 16.5px;
  }

  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(416px * 0.94), calc(75.2% * 0.94));
    margin-bottom: 20px;
  }

  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .auth-setup-title {
    margin: 0 0 10.3px;
  }

  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) #authMfaCopy {
    margin: 0 0 25.9px;
  }

  #authMfaForm:not(.auth-mfa-form--enrollment) > .auth-field {
    gap: 8.1px;
    margin-bottom: 17.8px;
  }

  #authMfaForm:not(.auth-mfa-form--enrollment) #authMfaSubmit {
    margin-top: 0;
  }

  #authMfaForm:not(.auth-mfa-form--enrollment) #authMfaBack {
    margin-top: 11.6px !important;
  }
}

@media (max-height: 820px) and (min-height: 721px) {
  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(368px * 0.94), calc(72% * 0.94));
  }
}

@media (max-height: 820px) and (min-resolution: 1.09dppx) {
  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(416px * 0.94), calc(75.2% * 0.94 - 8.483px));
    max-height: none;
  }
}

@media (max-height: 720px) and (min-resolution: 1.09dppx) {
  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(416px * 0.94), calc(75.2% * 0.94 - 11.31px));
    max-height: none;
  }
}

@media (max-height: 580px) and (min-resolution: 1.09dppx) {
  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .auth-logo.auth-logo-other {
    width: min(calc(416px * 0.94), calc(75.2% * 0.94 - 24.741px));
    max-height: none;
  }
}

/* 110%+ zoom can drop the CSS height below 721px, where the compact rules
   close the Verification Code gaps. Keep this screen's spacing and control
   size. A short window at 100% zoom still uses the compact layout. */
@media (max-height: 720px) and (min-resolution: 1.09dppx) {
  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .container {
    padding-top: 19.2px;
    padding-bottom: 16.5px;
  }

  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .auth-logo.auth-logo-other {
    margin-bottom: 20px;
  }

  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) .auth-setup-title {
    margin: 0 0 10.3px;
    font-size: 20px;
  }

  body.auth-active:has(#authMfaForm:not(.auth-mfa-form--enrollment):not(.hidden)) #authMfaCopy {
    margin: 0 0 25.9px;
    font-size: 14px;
    line-height: normal;
  }

  #authMfaForm:not(.auth-mfa-form--enrollment) > .auth-field {
    gap: 8.1px;
    margin-bottom: 17.8px;
  }

  #authMfaForm:not(.auth-mfa-form--enrollment) > .auth-field span {
    font-size: 13px;
  }

  #authMfaForm:not(.auth-mfa-form--enrollment) #authMfaCode {
    padding: 9px 11px;
    font-size: 14px;
  }

  #authMfaForm:not(.auth-mfa-form--enrollment) #authMfaSubmit {
    margin-top: 0;
    padding: 10px 12px;
    font-size: 14px;
  }

  #authMfaForm:not(.auth-mfa-form--enrollment) #authMfaBack {
    margin-top: 11.6px !important;
    min-height: 28px;
    padding: 4px 10px !important;
    font-size: 13px;
  }
}
