/* Dotty Retro DS · account.css — loads last so it wins the cascade */

/* Same outer metrics as `.ds-breadcrumbs` (pages.css); logout shares the row. */
.ds-account-crumbbar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 28px 16px 8px;
}

.ds-account-crumbbar .ds-breadcrumbs {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.ds-account-logout {
  flex: 0 0 auto;
  margin: 0;
}

.site-section.ds-account-top {
  margin-top: 8px;
  margin-bottom: 48px;
}

/* Folder tabs — System Preferences / Finder era */
.ds-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 3px;
  margin: 0 0 0;
  padding: 10px 10px 0;
  border: 1px solid #5a5a5a;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #6e6e6e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ds-tabs .ds-tab {
  position: relative;
  z-index: 0;
  margin: 0 0 -1px;
  padding: 8px 22px 9px;
  border: 1px solid #4a4a4a;
  border-bottom-color: #5a5a5a;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(to bottom, #8a8a8a, #5e5e5e);
  color: #f2f2f2;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.ds-tabs .ds-tab:hover {
  background: linear-gradient(to bottom, #969696, #686868);
}

.ds-tabs .ds-tab.is-active {
  z-index: 1;
  border-color: #5a5a5a;
  border-bottom-color: #fff;
  background: #fff;
  color: #111;
  text-shadow: none;
  box-shadow: inset 0 1px 0 #fff;
}

.ds-tab-panel {
  display: none;
  margin: 0;
  padding: 16px;
  border: 1px solid #5a5a5a;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.06);
}

.ds-tab-panel.is-active {
  display: block;
}

.ds-tab-panel[hidden] {
  display: none !important;
}

/* Shared stack for panels inside every tab */
.ds-account-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tables — grid lines + roomier cells */
.ds-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 12px;
  line-height: 1.45;
}

.ds-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #1a3555;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  border-bottom: 1px solid #7a9ab8;
  border-right: 1px solid #8eacc8;
  background: #b8d0e8;
  box-shadow: none;
}

.ds-table thead th:last-child {
  border-right: 0;
}

.ds-table tbody td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #d8d8d8;
  border-right: 1px solid #ececec;
  background: #fff;
}

.ds-table tbody td:last-child {
  border-right: 0;
}

.ds-table tbody tr:nth-child(even) td {
  background: #f7f7f7;
}

.ds-table tbody tr:last-child td {
  border-bottom: 0;
}

.ds-table-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.ds-table-num {
  width: 2.5rem;
  color: var(--ds-ink-muted);
  font-variant-numeric: tabular-nums;
}

.ds-cell-primary {
  font-weight: 600;
  color: var(--ds-ink);
}

.ds-cell-secondary {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--ds-ink-muted);
}

.ds-code {
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  word-break: break-all;
  color: #222;
}

.ds-status {
  display: inline-block;
  font-weight: 700;
}

/* Empty states — replace the table */
.ds-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 168px;
  padding: 36px 24px;
  text-align: center;
  background: linear-gradient(to bottom, #fcfcfc, #f3f3f3);
}

.ds-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.18);
}

.ds-empty-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.ds-empty-icon-mac {
  background: linear-gradient(to bottom, #7ec8f5, #2f78d0);
  color: #fff;
}

.ds-empty-icon-users {
  background: linear-gradient(to bottom, #b070e0, #6828a0);
  color: #fff;
}

.ds-empty-icon-chat {
  background: linear-gradient(to bottom, #6ed24a, #2e9020);
  color: #fff;
}

.ds-empty-icon-key {
  background: linear-gradient(to bottom, #f0c040, #c07818);
  color: #fff;
}

.ds-empty-title {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-ink);
}

.ds-empty-copy {
  margin: 0;
  max-width: 28em;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ds-ink-muted);
}
