.account-menu a.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.account-menu a.menu-item:hover { background: var(--muted); }
.desk-mail .cc-list { margin: 4px 0; }
dialog.role-confirm {
  border: 1px solid var(--line, #d7d2c8);
  border-radius: 12px;
  padding: 20px;
  max-width: 28rem;
}
dialog.role-confirm::backdrop { background: rgba(20, 16, 12, 0.45); }
.role-confirm-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.home-block { margin: 20px 0 8px; font-size: 16px; }
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.home-split h3 { margin: 0 0 8px; font-size: 14px; }
.home-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.home-list a { color: inherit; }
.home-list .mut { display: block; }
.companies-board .pill.ok { background: #e7f6ee; color: #146c36; }
.companies-board .pill.off { background: #f3f4f6; color: #3f3f46; }
.companies-board .pill.warn { background: #fff4e5; color: #8a4b08; }
@media (max-width: 800px) {
  .home-split { grid-template-columns: 1fr; }
}
.people-add {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-end;
  margin-top: 0;
}
.people-add label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  flex: none;
}
.people-add input:not([type="checkbox"]) { width: min(16rem, 100%); }
.people-add label.people-cc {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  height: 40px;
  width: max-content;
  color: var(--foreground, #0c0a09);
  white-space: nowrap;
}
.people-add label.people-cc input { width: 16px; height: 16px; padding: 0; flex: none; }
.people-add .ts-wrapper { width: auto; min-width: 18rem; max-width: 100%; }
.people-add .ts-wrapper .ts-control { width: 100%; box-sizing: border-box; }
.people-add button { width: auto; }

/* Same box for <button class="btn"> and <a class="btn"> so action rows stay aligned. */
button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  padding: 0 16px;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  margin: 0;
}
a.btn:hover { text-decoration: none; }

button.btn-danger, a.btn-danger, .btn-danger {
  background: var(--destructive);
  color: var(--destructive-foreground);
  border: 0;
}
button.btn-danger:hover, a.btn-danger:hover, .btn-danger:hover {
  background: color-mix(in srgb, var(--destructive) 86%, #111);
}

.atlas-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
}
.atlas-actions form {
  display: flex;
  align-items: center;
  margin: 0;
}

.settings-account {
  margin: 16px 0 72px;
  font-size: 13px;
}

.timezone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.timezone-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 650;
}
.timezone-row select {
  min-width: 240px;
  height: 40px;

/* Roles: one real table. Fixed columns, one padding (16px) for header, rows and the add row, every row
   centred, actions right-aligned and flush with the table's right padding. The add row is the table footer,
   so Name/Email/Role/Add person sit exactly under their columns. */
.ac-table-scroll[data-plain="1"] > table.roles-table {
  width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px;
}
.roles-table col.c-name { width: 24%; }
.roles-table col.c-email { width: 32%; }
.roles-table col.c-act { width: 156px; }
.roles-table th, .roles-table td {
  padding: 0 16px; height: 52px; vertical-align: middle; text-align: left;
  border: 0; border-bottom: 1px solid var(--border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.roles-table th { height: 44px; font-size: 12px; font-weight: 500; color: var(--muted-foreground); background: #fff; }
.roles-table thead th:first-child { border-top-left-radius: var(--radius); }
.roles-table thead th:last-child { border-top-right-radius: var(--radius); }
.roles-table .c-act { text-align: right; }
.roles-table tfoot td { height: 64px; border-bottom: 0; background: var(--muted, #f5f5f4); }
.roles-table tfoot td:first-child { border-bottom-left-radius: var(--radius); }
.roles-table tfoot td:last-child { border-bottom-right-radius: var(--radius); }
.roles-table form { margin: 0; }
.roles-table .role-resend { display: flex; justify-content: flex-end; }
.roles-table tfoot input {
  display: block; width: 100%; height: 36px; box-sizing: border-box; margin: 0;
  padding: 0 10px; font: inherit; background: #fff;
}
.roles-table button.role-resend-btn, .roles-table #add-person-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 124px; height: 36px; padding: 0 12px; margin: 0; line-height: 1; white-space: nowrap; box-sizing: border-box;
}
.roles-table .role-inline { display: block; }
input.role-inline-input {
  display: block; font: inherit; color: inherit; background: transparent;
  border: 1px solid transparent; border-radius: 6px; box-sizing: border-box;
  height: 32px; padding: 0 7px; margin: 0 0 0 -8px; width: calc(100% + 8px); max-width: 18rem;
}
input.role-inline-input:hover { border-color: var(--input, #e7e5e4); cursor: text; }
input.role-inline-input:focus { border-color: var(--primary, #1aa1e6); background: #fff; outline: none; }
form#add-person { display: none; }
.roles-table td.roles-empty-cell { color: var(--muted-foreground); font-size: 13px; }

@media (max-width: 639px) {
  .ac-table-scroll[data-plain="1"] > table.roles-table { border: 0; background: transparent; table-layout: auto; }
  .roles-table colgroup { display: none; }
  .ac-table-scroll[data-plain="1"] > table.roles-table tfoot { display: block; }
  .ac-table-scroll[data-plain="1"] > table.roles-table td {
    height: auto; min-height: 36px; align-items: center; white-space: normal; overflow: visible;
    overflow-wrap: anywhere; text-align: left; border-radius: 0; background: transparent;
  }
  .ac-table-scroll[data-plain="1"] > table.roles-table td.c-act { display: block; padding-top: 8px; }
  .ac-table-scroll[data-plain="1"] > table.roles-table td.c-act::before { content: none; }
  .ac-table-scroll[data-plain="1"] > table.roles-table td.roles-empty-cell { display: block; padding: 8px 0; }
  .ac-table-scroll[data-plain="1"] > table.roles-table td.roles-empty-cell::before { content: none; }
  .roles-table .role-resend { justify-content: stretch; }
  .roles-table button.role-resend-btn, .roles-table #add-person-btn { width: 100%; }
  .ac-table-scroll[data-plain="1"] > table.roles-table tr.roles-add { background: var(--muted, #f5f5f4); }
  input.role-inline-input { margin-left: -8px; width: calc(100% + 8px); max-width: none; }

}
