.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.document {
  padding: 24px;
  text-align: left;
}

.document .icon {
  color: var(--blue);
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
}

.document p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

/* Account profile */

.account-profile {
  padding: 28px;
}

.account-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.account-profile-head h2 {
  margin: 0;
}

.account-profile-body {
  display: grid;
  grid-template-columns: 170px 620px;
  gap: 42px;
  align-items: start;
}

.account-avatar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.account-avatar {
  width: 118px;
  height: 118px;
  flex: 0 0 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--nav-icon);
  color: var(--text-soft);
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -1px;
}

.account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar-button {
  width: 100%;
}

.account-profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 620px;
  min-width: 0;
}

.account-field {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0;
}

.account-field-label {
  padding-top: 11px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.account-field input {
  width: 100%;
}

.account-field input:disabled {
  color: var(--field-disabled-text);
  background: var(--field-disabled);
  border-color: var(--field-border);
  opacity: 1;
  -webkit-text-fill-color: var(--field-disabled-text);
}

.account-field-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.account-id-field {
  min-height: 40px;
  align-items: center;
}

.account-id-field .account-field-label {
  padding-top: 0;
}

.account-id-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--text-soft);
  font-size: 12px;
}

.account-copy {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.account-copy:hover {
  background: var(--surface-hover);
  color: var(--blue);
}

.account-copy .icon {
  width: 15px;
  height: 15px;
}

.account-password {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

@media (max-width: 800px) {
  .account-profile-form {
    width: 100%;
  }

  .account-profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-profile-head .btn {
    width: 100%;
  }

  .account-profile-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .account-avatar-column {
    align-items: flex-start;
  }

  .account-avatar-button {
    width: auto;
  }

  .account-field {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .account-field-label {
    padding-top: 0;
  }

  .account-password {
    grid-template-columns: 1fr;
  }

  .account-password .btn {
    width: 100%;
  }
}

/* Notice / help */

.notice {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--calendar-today-head);
  color: var(--shift-muted);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.help {
  max-width: 800px;
  padding: 30px;
}

.help h2 {
  margin: 24px 0 10px;
}

.help h2:first-child {
  margin-top: 0;
}

.help p {
  font-size: 12px;
  color: var(--text-secondary);
}

.mobile-menu {
  display: none;
}

.read {
  opacity: 0.6;
}

.document-content {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.footer-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

/* Account sessions */

.account-sessions {
  padding: 28px 32px;
}

.account-sessions-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.account-sessions-head h2 {
  margin: 0 0 6px;
}

.account-sessions-head p {
  margin: 0;
}

.account-session-list {
  border-top: 1px solid var(--line);
}

.account-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.account-session-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.account-session-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--nav-icon);
  color: var(--blue);
}

.account-session-icon svg {
  width: 20px;
  height: 20px;
}

.account-session-info {
  min-width: 0;
}

.account-session-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 7px;
}

.account-session-title strong {
  font-size: 14px;
}

.account-session-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
}

.account-session.current .account-session-icon {
  background: var(--interactive-highlight);
}

.account-sessions .badge.green {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--shift-done-bg);
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
}

.account-sessions .empty-inline {
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-sessions .empty-inline span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .account-sessions {
    padding: 22px 20px;
  }

  .account-sessions-head {
    flex-direction: column;
  }

  .account-sessions-head > .btn {
    width: 100%;
  }

  .account-session {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-session > .btn {
    width: 100%;
  }

  .account-session-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
.account-settings-list {
  padding: 0 24px 24px;
}

.account-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 8px;
}

.account-setting-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
}

.account-setting-row p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.account-switch {
  position: relative;
  width: 44px;
  height: 24px;
  padding: 0;
  flex: 0 0 44px;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.2s ease;
}

.account-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(31, 45, 61, 0.2);
  transition: transform 0.2s ease;
}

.account-switch[aria-checked='true'] {
  background: var(--blue);
}

.account-switch[aria-checked='true'] span {
  transform: translateX(20px);
}

.account-switch:disabled {
  cursor: default;
  opacity: 0.55;
}

/* Settings */

.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.settings-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  text-align: left;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.settings-nav-item .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.settings-nav-item:hover {
  color: var(--text);
  background: var(--interactive-highlight);
}

.settings-nav-item.active {
  color: var(--blue);
  background: var(--interactive-highlight);
}

.settings-content {
  min-width: 0;
  background: var(--surface);
}

.settings-panel {
  padding: 28px 32px 34px;
}

.settings-panel[hidden] {
  display: none;
}

.settings-panel-head {
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.settings-panel-head h2 {
  margin-bottom: 6px;
}

.settings-panel-head p {
  color: var(--muted);
  font-size: 12px;
}

.settings-section {
  width: 100%;
}

.settings-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

/* Profile */

.settings-panel .account-profile-body {
  padding: 0;
}

.settings-panel .account-avatar-column {
  padding-top: 2px;
}

/* Security */

.settings-panel .account-sessions-head {
  margin-bottom: 18px;
}

.settings-panel .account-sessions-head h3 {
  margin-bottom: 6px;
}

/* Appearance */

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.theme-option {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.theme-option:hover {
  background: var(--surface-soft);
  border-color: var(--muted);
}

.theme-option.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.theme-preview {
  position: relative;
  display: grid;
  grid-template-columns: 27% 1fr;
  width: 100%;
  height: 118px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.theme-preview-sidebar {
  display: block;
}

.theme-preview-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 12px;
}

.theme-preview-main::before {
  content: '';
  width: 55%;
  height: 7px;
  border-radius: 4px;
}

.theme-preview-main i {
  display: block;
  width: 100%;
  height: 17px;
  border-radius: 5px;
}

.theme-preview-light {
  background: #f6f8fa;
}

.theme-preview-light .theme-preview-sidebar {
  background: #ffffff;
  border-right: 1px solid #edf0f4;
}

.theme-preview-light .theme-preview-main::before {
  background: #243347;
}

.theme-preview-light .theme-preview-main i {
  background: #ffffff;
  border: 1px solid #e5eaf0;
}

.theme-preview-dark {
  background: #11161d;
  border-color: #28323e;
}

.theme-preview-dark .theme-preview-sidebar {
  background: #181f28;
  border-right: 1px solid #28323e;
}

.theme-preview-dark .theme-preview-main::before {
  background: #edf3f8;
}

.theme-preview-dark .theme-preview-main i {
  background: #181f28;
  border: 1px solid #323e4c;
}

.theme-preview-system {
  background: linear-gradient(90deg, #f6f8fa 0%, #f6f8fa 50%, #11161d 50%, #11161d 100%);
}

.theme-preview-system .theme-preview-sidebar {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #181f28 50%, #181f28 100%);
  border-right: 1px solid var(--line);
}

.theme-preview-system .theme-preview-main::before {
  background: linear-gradient(90deg, #243347 0%, #243347 50%, #edf3f8 50%, #edf3f8 100%);
}

.theme-preview-system .theme-preview-main i {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #181f28 50%, #181f28 100%);
  border: 1px solid var(--line-strong);
}

.theme-option-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 25px;
}

.theme-option-info strong {
  font-size: 12px;
  font-weight: 600;
}

.theme-option-info small {
  color: var(--muted);
  font-size: 10px;
}

.theme-option-check {
  position: absolute;
  right: 13px;
  bottom: 18px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.theme-option.active .theme-option-check {
  border: 4px solid var(--blue);
}

/* Settings mobile */

@media (max-width: 760px) {
  .settings-layout {
    display: block;
    min-height: 0;
    overflow: visible;
    border-radius: 16px;
  }

  .settings-nav {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    padding: 9px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .settings-nav::-webkit-scrollbar {
    display: none;
  }

  .settings-nav-item {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    padding: 10px 12px;
  }

  .settings-nav-item .icon {
    display: none;
  }

  .settings-panel {
    padding: 22px 16px 26px;
  }

  .settings-panel-head {
    padding-bottom: 18px;
    margin-bottom: 20px;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }

  .theme-preview {
    height: 105px;
  }
}

@media (max-width: 520px) {
  .settings-nav {
    margin: 0;
  }

  .settings-nav-item {
    font-size: 11px;
  }

  .settings-panel .account-profile-body {
    display: block;
  }

  .settings-panel .account-avatar-column {
    margin-bottom: 28px;
  }

  .settings-panel .account-setting-row {
    align-items: flex-start;
    gap: 16px;
  }
}
/* Avatar photo controls */
.account-avatar-wrap {
  position: relative;
  width: 118px;
  height: 118px;
}

.account-avatar-attach {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.account-avatar-delete {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.account-avatar-delete:hover {
  color: var(--text);
}

@media (max-width: 700px) {
  .settings-panel .account-avatar-column {
    width: 100%;
    align-items: center;
    margin-bottom: 28px;
  }

  .account-avatar-wrap {
    margin-inline: auto;
  }
}

/* Global page vertical rhythm */

#view > * + * {
  margin-top: 18px;
}

.page-heading {
  margin-bottom: 24px;
}

.page-heading + * {
  margin-top: 0;
}

.calendar-toolbar {
  margin-bottom: 16px;
}

.calendar-toolbar > .row + .muted,
.calendar-toolbar > .row + .small {
  display: block;
  margin-top: 8px;
}

.section-head {
  margin-bottom: 16px;
}

.stack {
  gap: 16px;
}

.settings-stack {
  gap: 16px;
}

.content-grid {
  gap: 18px;
}

.stats {
  gap: 16px;
}

@media (max-width: 760px) {
  #view > * + * {
    margin-top: 16px;
  }

  .page-heading {
    margin-bottom: 20px;
  }

  .calendar-toolbar {
    margin-bottom: 14px;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .stack,
  .settings-stack {
    gap: 14px;
  }

  .content-grid,
  .stats {
    gap: 12px;
  }
}

/* Shared disclosure chevron */

.disclosure-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
  transition:
    transform 0.18s ease,
    color 0.18s ease;
}

.disclosure-chevron .icon {
  width: 14px;
  height: 14px;
  display: block;
  transform: rotate(90deg);
}

details[open] > summary .disclosure-chevron {
  transform: rotate(180deg);
}

.document-file-card {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.document-open {
  display: block;
  width: 100%;
  padding: 24px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.document-open .icon {
  color: var(--color-blue-muted);
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
}

.document-open p {
  margin-top: 10px;
  color: var(--color-neutral-light);
  font-size: 11px;
}

.document-file-name {
  display: block;
  max-width: calc(100% - 36px);
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-delete {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.document-delete .icon {
  width: 16px;
  height: 16px;
  margin: 0;
}

.document-delete:hover {
  background: color-mix(in srgb, #d84b4b 8%, transparent);
  color: var(--color-danger-medium);
}

/* Documents upload action */
#new-document {
  margin-top: 52px;
}

@media (max-width: 768px) {
  #new-document {
    margin-top: 0;
  }
}

.document-category-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.document-category {
  min-width: 0;
}

.document-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.document-category-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.document-category-head span {
  color: var(--muted);
  font-size: 11px;
}

.document-category-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-category-settings {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}

.document-category-settings:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.document-category-settings .icon {
  width: 17px;
  height: 17px;
}

.document-category-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.document-category-employees {
  margin-top: 16px;
}

.document-category-employees-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

.document-category-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.document-category-modal-actions .danger {
  align-self: flex-start;
  color: var(--color-danger-medium);
}

@media (max-width: 768px) {
  .document-category-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-category-actions {
    width: 100%;
  }

  .document-category-actions .btn {
    flex: 1;
  }
}

/* Documents category action */
#new-document-category {
  margin-top: 52px;
}

@media (max-width: 768px) {
  #new-document-category {
    margin-top: 0;
  }
}

/* Document categories */
.document-category-head {
  margin-bottom: 14px;
}

.document-category-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.document-category-settings {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 0;
  background: transparent;
}

.document-category-settings .icon {
  width: 14px;
  height: 14px;
  margin: 0;
}

.document-category-body[hidden] {
  display: none;
}

.document-upload-card {
  display: flex;
  min-height: 152px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.document-upload-card:hover {
  border-color: #1689f8;
  background: color-mix(in srgb, #1689f8 4%, transparent);
  color: var(--color-link-bright);
}

.document-upload-card-plus {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.document-upload-card-plus .icon {
  width: 18px;
  height: 18px;
  margin: 0;
}

.document-upload-card > span:last-child {
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .document-category-title {
    width: 100%;
  }

  .document-upload-card {
    min-height: 110px;
  }
}

/* Document category header v2 */
.document-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.document-category-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.document-category-title h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.document-category-access {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.document-category-access .icon {
  width: 12px;
  height: 12px;
  margin: 0;
}

.document-category-settings {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.document-category-settings:hover {
  background: var(--surface);
  color: var(--text);
}

.document-category-settings .icon {
  width: 14px;
  height: 14px;
  margin: 0;
}

@media (max-width: 768px) {
  .document-category-head {
    align-items: flex-start;
  }

  .document-category-title {
    flex-wrap: wrap;
  }

  .document-category-access {
    order: 3;
    width: fit-content;
  }
}

/* Timesheet toolbar */
.calendar-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.calendar-toolbar > .btn {
  flex: 0 0 auto;
}

/* People */
.people-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.people-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--surface-hover);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.people-mobile-list {
  display: none;
}

@media (max-width: 800px) {
  .people-card {
    padding: 0;
    overflow: hidden;
  }

  .people-section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px 16px;
  }

  .people-section-head > .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .people-section-head .schedule-search {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .people-section-head #invite {
    width: 100%;
    justify-content: center;
  }

  .people-table-wrap {
    display: none;
  }

  .people-mobile-list {
    display: block;
    border-top: 1px solid var(--line);
  }

  .people-mobile-card {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .people-mobile-card:last-child {
    border-bottom: 0;
  }

  .people-mobile-main {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
  }

  .people-mobile-main .avatar {
    width: 42px;
    height: 42px;
  }

  .people-mobile-person {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .people-mobile-person strong {
    overflow: hidden;
    color: var(--text-strong);
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .people-mobile-person span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .people-mobile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 18px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .people-mobile-details > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .people-mobile-details > div:last-child {
    grid-column: 1 / -1;
  }

  .people-mobile-details span {
    color: var(--muted);
    font-size: 10px;
  }

  .people-mobile-details strong {
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .people-mobile-edit {
    width: 100%;
    margin-top: 15px;
    justify-content: center;
  }
}

/* Mobile employees: checkbox + avatar + person in one row */
@media (max-width: 800px) {
  .people-mobile-main {
    display: grid;
    grid-template-columns: 22px 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .people-mobile-main .people-mobile-select {
    width: 16px;
    height: 16px;
    margin: 0;
    justify-self: start;
  }

  .people-mobile-main .avatar {
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .people-mobile-person {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .people-mobile-person strong,
  .people-mobile-person span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Settings navigation: normal font weight */
.settings-nav .settings-nav-item,
.settings-nav .settings-nav-item.active,
.settings-nav .settings-nav-item[aria-selected='true'] {
  font-weight: 400;
}

/* notifications-bulk-actions-v1 */

.notifications-heading-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.notifications-bulk-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notifications-bulk-actions .btn {
  font-weight: 400;
}

@media (max-width: 600px) {
  .notifications-bulk-actions {
    width: 100%;
  }

  .notifications-bulk-actions .btn {
    flex: 1 1 auto;
  }
}

/* Notifications page typography */
#view .note-list .note-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

#view .note-list .note-item p:first-of-type {
  font-size: 12px;
  line-height: 1.6;
}

/* Notification title size */
#view .note-list .note-item h3 {
  font-size: 14px;
}

/* Animated avatar actions */
.account-avatar {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.account-avatar-menu {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(10, 19, 30, 0.72);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms;
}

.account-avatar-wrap.menu-open .account-avatar-menu {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.account-avatar-menu button {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 8px;
}

@media (prefers-reduced-motion: reduce) {
  .account-avatar-menu {
    transition: none;
  }
}
