/* Scoped account directory and native dialogs use the workspace palette. */
.acc-page { --acc-muted: #526877; --acc-line: #d7e0e7; color: var(--ink); }
.acc-page .lz-page-head { align-items: center; margin-bottom: 20px; }
.acc-page .lz-page-head p { color: var(--acc-muted); line-height: 1.7; }
.acc-directory { border: 1px solid var(--acc-line); border-radius: 12px; background: #fff; overflow: hidden; }
.acc-directory-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 20px; }
.acc-directory-head h3 { font-size: 15px; color: var(--brand-d); margin: 0; }
.acc-directory-head p { margin: 0; font-size: 12px; color: var(--acc-muted); }
.acc-directory-head button { margin-left: auto; }
.acc-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 20px; background: #f5f8fa; border-block: 1px solid var(--acc-line); }
.acc-filters > div { min-width: 130px; }
.acc-filters .acc-search { flex: 1; max-width: 380px; }
.acc-filters label, .acc-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; color: #354f5e; }
.acc-filters :is(input, select), .acc-field :is(input, select) { width: 100%; min-width: 0; height: 38px; padding: 0 10px; font: inherit; font-size: 13px; color: var(--ink); border: 1px solid #b9c9d3; border-radius: 7px; background: #fff; caret-color: var(--brand); }
.acc-filters input::placeholder { color: #617583; }
.acc-page :is(button, input, select):focus-visible, .acc-dialog :is(button, input, select):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.acc-page ::selection, .acc-dialog ::selection { background: #c9dfe5; color: #12303c; }
.acc-table-area { overflow-x: auto; scrollbar-color: #93aab6 #f5f8fa; }
.acc-table { font-variant-numeric: tabular-nums; }
table.acc-table :is(th, td) { padding: 15px 18px; }
table.acc-table th { color: #526877; font-size: 12px; background: #fff; }
table.acc-table td { font-size: 13px; vertical-align: middle; }
.acc-identity { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; max-width: 220px; }
.acc-identity b { font-weight: 600; overflow-wrap: anywhere; white-space: normal; }
.acc-username { display: block; font-size: 12px; color: var(--acc-muted); margin-top: 4px; overflow-wrap: anywhere; white-space: normal; }
.acc-self { font-size: 10px; color: #315c6b; background: #edf4f6; border-radius: 4px; padding: 2px 5px; white-space: nowrap; }
.acc-role { font-size: 12px; color: #526877; }
.acc-role.owner { color: #1d4e63; font-weight: 600; }
.acc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.acc-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acc-status.on { color: #246843; }
.acc-status.off { color: #73716b; }
.acc-date { color: var(--acc-muted); font-size: 12px !important; }
.acc-row-actions { display: flex; gap: 12px; }
.acc-text-btn { border: 0; background: transparent; padding: 6px 0; font: inherit; font-size: 12px; font-weight: 500; color: #1d4e63; cursor: pointer; text-underline-offset: 4px; }
.acc-text-btn:hover:not(:disabled) { text-decoration: underline; color: #12303c; }
.acc-text-btn.danger { color: #a33d32; }
.acc-page button:disabled, .acc-dialog button:disabled { cursor: not-allowed; opacity: .5; }
.acc-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--acc-line); padding: 14px 20px; font-size: 12px; color: var(--acc-muted); }
.acc-pagination > div { display: flex; align-items: center; gap: 12px; }
.acc-role-guide { font-size: 12px; line-height: 1.8; color: var(--acc-muted); padding: 16px 2px; margin: 0; }
.acc-role-guide b { color: #354f5e; margin-right: 12px; font-weight: 600; }
.acc-feedback { font-size: 13px; color: #246843; line-height: 1.7; margin: 0 0 14px; padding: 10px 14px; background: #edf6f0; border-radius: 7px; overflow-wrap: anywhere; }
.acc-feedback:empty { display: none; }
.acc-feedback.error { color: #9d352c; background: #fcf0ee; }
.acc-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 0; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 24px 72px -24px rgba(16,34,44,.48); overflow: auto; scrollbar-color: #93aab6 #f5f8fa; }
.acc-dialog::backdrop { background: rgba(16,34,44,.45); }
.acc-dialog form { margin: 0; }
.acc-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.acc-dialog h3 { font-size: 18px; line-height: 1.5; margin: 0; color: var(--brand-d); overflow-wrap: anywhere; }
.acc-close { background: transparent; color: #526877; border: 0; padding: 6px; cursor: pointer; font: inherit; font-size: 12px; }
.acc-dialog-intro { color: #526877; font-size: 13px; line-height: 1.8; margin: 0 0 18px; overflow-wrap: anywhere; }
.acc-field { margin-bottom: 16px; min-width: 0; }
.acc-field small { display: block; font-size: 12px; color: #526877; line-height: 1.7; margin-top: 6px; }
.acc-field select:disabled, .acc-field input:read-only { background: #f5f8fa; color: #526877; }
.acc-field input:read-only { user-select: all; }
.acc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acc-dialog-error { color: #9d352c; font-size: 13px; line-height: 1.7; margin: 12px 0; overflow-wrap: anywhere; }
.acc-dialog-error:empty { display: none; }
.acc-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.acc-danger-button { background: #a33d32; border-color: #a33d32; }
#accCopyResult { color: #526877; font-size: 12px; line-height: 1.7; }
.acc-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .acc-page .lz-page-head { flex-wrap: wrap; }
  .acc-page .lz-page-head p { font-size: 14px; }
  .acc-page .lz-page-actions { margin-left: 0; }
  .acc-filters { padding: 16px; gap: 12px; }
  .acc-filters .acc-search { flex: 1 1 100%; max-width: none; }
  .acc-filters > div { flex: 1; min-width: 110px; }
  .acc-filters :is(input, select), .acc-field :is(input, select) { height: 42px; font-size: 16px; }
  .acc-filters label, .acc-field label, .acc-field small { font-size: 14px; }
  .acc-directory-head { padding: 16px; }
  .acc-directory-head p { width: 100%; order: 2; font-size: 14px; }
  table.acc-table, .acc-table tbody { display: block; }
  .acc-table thead { display: none; }
  .acc-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.acc-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 6px 0; border: 0; font-size: 14px; white-space: normal; }
  .acc-table td[data-label]::before { content: attr(data-label); color: #526877; font-size: 14px; flex: 0 0 auto; }
  .acc-table td:first-child { display: block; padding-bottom: 10px; }
  .acc-table td:first-child::before { display: none; }
  .acc-identity { max-width: 100%; }
  .acc-username, .acc-self, .acc-role, .acc-status, .acc-date { font-size: 14px !important; }
  .acc-row-actions { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
  .acc-text-btn, .acc-close { font-size: 14px; min-height: 40px; }
  .acc-dialog { padding: 20px; }
  .acc-dialog-intro, .acc-dialog-error, .acc-role-guide { font-size: 14px; }
  .acc-form-grid { grid-template-columns: 1fr; gap: 0; }
  .acc-pagination { padding: 14px 16px; font-size: 14px; }
  .acc-pagination > div { width: 100%; justify-content: space-between; }
  .acc-page .lz-btn, .acc-dialog .lz-btn { min-height: 40px; }
}
