.account-window {
  grid-template-rows: minmax(0, 1fr) 58px;
}

body.account-page .dashboard-shell {
  min-height: 0;
}

.account-window .workspace-title {
  cursor: pointer;
}

.account-window .tab-account.is-active {
  color: var(--chip-black);
  background: rgb(255 185 0 / var(--glass-toolbar));
  border-color: rgb(255 185 0 / var(--glass-toolbar));
  box-shadow: inset 0 -2px 0 rgba(32, 32, 32, 0.38);
}

.account-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  container-type: inline-size;
  padding-top: 10px;
  overflow: hidden;
  box-sizing: border-box;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.account-hero,
.account-controls,
.account-list-panel {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin-inline: 0;
}

.account-hero {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.account-heading {
  min-width: 0;
}

.account-kicker {
  display: none;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 8px;
}

.account-heading h1 {
  margin: 0;
  color: #ffffff;
  font-family: var(--display-font);
  font-size: 26px;
  letter-spacing: 0;
}

.account-heading p {
  display: none;
}

.account-hero-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.account-stop-control {
  position: relative;
  width: 104px;
  flex: 0 0 104px;
}

.account-stop {
  display: inline-flex;
  width: 104px;
  height: 36px;
  flex: 0 0 104px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: #ffffff;
  background: #d94f3a;
  border: 1px solid #ec6a54;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  transition: background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.account-stop svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}

.account-stop:hover,
.account-stop:focus-visible {
  background: #ef6049;
  border-color: #ff806b;
  outline: none;
}

.account-stop:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.account-stop[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
}

.account-stop-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  width: 148px;
  padding: 4px;
  background: #171b20;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.account-stop-menu[hidden] {
  display: none;
}

.account-stop-menu button {
  display: flex;
  width: 100%;
  height: 34px;
  align-items: center;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
}

.account-stop-menu button:hover,
.account-stop-menu button:focus-visible {
  color: #ffffff;
  background: #d94f3a;
  outline: none;
}

.account-summary {
  display: flex;
  gap: 8px;
}

.account-stat {
  display: flex;
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  align-items: baseline;
  gap: 8px;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.account-stat strong {
  color: #ffffff;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.account-stat span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.account-controls {
  display: flex;
  min-width: 0;
  min-height: 50px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.account-filter-list {
  display: flex;
  min-width: 0;
  gap: 6px;
}

.account-filter {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.account-filter span {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  color: var(--muted);
  background: var(--glass-control-bg);
  border-radius: 3px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.account-filter:hover,
.account-filter.is-active {
  color: #ffffff;
  background: var(--glass-control-bg);
  border-color: var(--glass-control-border);
}

.account-filter.is-active span {
  color: #102820;
  background: #2ed6a1;
}

.account-search {
  display: flex;
  width: min(340px, 100%);
  min-width: 200px;
  flex: 1 1 260px;
  max-width: 380px;
  height: 36px;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.account-search svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.account-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
}

.account-search input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.account-add,
.account-family-add,
.account-export,
.process-button,
.dialog-primary,
.dialog-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.account-family-add {
  height: 36px;
  padding: 0 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(46, 214, 161, 0.58);
  border-radius: 4px;
  font-size: 11px;
}

.account-add {
  height: 36px;
  padding: 0 15px;
  color: #111110;
  background: var(--chip-yellow);
  border: 1px solid var(--chip-yellow);
  border-radius: 4px;
  font-size: 11px;
}

.account-add svg,
.account-family-add svg,
.account-export svg,
.dialog-primary svg {
  width: 15px;
  height: 15px;
}

.account-family-add:hover {
  background: rgba(46, 214, 161, 0.14);
  border-color: rgba(46, 214, 161, 0.88);
}

.process-button svg {
  width: 11px;
  height: 11px;
}

.account-list-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.account-list-header {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.account-list-header > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.account-list-main-action {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 15px;
}

.account-token-read {
  display: inline-flex;
  width: 112px;
  min-width: 112px;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: #111110;
  background: var(--chip-red);
  border: 1px solid var(--chip-red);
  border-radius: 999px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.account-token-read svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}

.account-token-read:hover,
.account-token-read:focus-visible {
  color: #111110;
  background: #ff6a50;
  border-color: #ff6a50;
  outline: none;
}

.account-token-read[aria-busy="true"],
.account-token-read:disabled {
  cursor: wait;
  opacity: 0.68;
}

.account-token-status,
.account-character-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.account-row-token-status {
  display: inline-flex;
  width: 48px;
  height: 24px;
  flex: 0 0 48px;
  margin-left: 11px;
  align-items: center;
  justify-content: center;
  color: rgba(226, 231, 237, 0.48);
  font: 700 12px/1 Consolas, monospace;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: color 120ms ease, text-shadow 120ms ease;
}

.account-row-token-status.is-loaded {
  color: #2ed6a1;
  text-shadow: 0 0 10px rgba(46, 214, 161, 0.24);
}

.account-row-token-status.is-expiring {
  color: #ad7b80;
  text-shadow: 0 0 10px rgba(173, 123, 128, 0.22);
}

.account-row-token-status.is-invalid {
  color: #ffbc13;
  text-shadow: 0 0 10px rgba(255, 188, 19, 0.24);
}

.account-row-token-status.is-unloaded {
  color: rgba(226, 231, 237, 0.48);
  text-shadow: none;
}

.account-row-activity-duration {
  display: inline-flex;
  width: 76px;
  height: 24px;
  flex: 0 0 76px;
  align-items: center;
  justify-content: center;
  color: rgba(226, 231, 237, 0.42);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: color 120ms ease, opacity 120ms ease;
}

.account-row-activity-duration[data-state="loaded"],
.account-row-activity-duration[data-state="refreshing"],
.account-row-activity-duration[data-state="stale"][data-loaded-value] {
  color: rgba(255, 255, 255, 0.88);
}

.account-row-activity-duration[data-state="stale"]:not([data-loaded-value]),
.account-row-activity-duration[data-state="unavailable"] {
  color: rgba(226, 231, 237, 0.32);
}

.account-row-activity-duration[data-completion="complete"] {
  color: #2ed6a1;
  text-shadow: 0 0 10px rgba(46, 214, 161, 0.24);
}

.account-row-loot-count {
  display: inline-flex;
  width: 64px;
  flex: 0 0 64px;
  height: 24px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(226, 231, 237, 0.42);
  font: 400 13.2px/1 var(--ui-font, sans-serif);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.account-row-loot-count[data-state="loaded"] { color: #2ed6a1; }

.account-row-upgrade-countdown {
  display: inline-flex;
  width: 76px;
  height: 24px;
  flex: 0 0 76px;
  align-items: center;
  justify-content: center;
  color: rgba(226, 231, 237, 0.42);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.account-row-upgrade-countdown[hidden] {
  display: none;
}

.account-row-evacuation-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 110px;
  gap: 8px;
  margin-left: 8px;
  color: #20cba5;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.account-row-evacuation-count[hidden] {
  display: none !important;
}

.account-row-evacuation-level { color: #d7e2e7; font-size: 14px; font-weight: 600; }

.account-row-upgrade-countdown[data-state="running"] {
  color: #ffbc13;
  text-shadow: 0 0 10px rgba(255, 188, 19, 0.2);
}

.account-row-upgrade-countdown[data-state="complete"] {
  color: #2ed6a1;
}

.account-selection-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.account-category-list {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  margin-left: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.account-category-list::-webkit-scrollbar {
  display: none;
}

.account-category-filter {
  display: inline-flex;
  min-width: 68px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
}

.account-category-filter:hover,
.account-category-filter.is-active {
  color: #ffffff;
  background: var(--glass-control-bg);
  border-color: var(--glass-control-border);
}

.account-category-filter.is-active {
  color: #102820;
  background: #2ed6a1;
  border-color: #2ed6a1;
  box-shadow: inset 0 -2px 0 rgba(16, 40, 32, 0.28);
}

.account-category-clear {
  color: #ff4d4f;
}

.account-category-clear:hover,
.account-category-clear:focus-visible {
  color: #ff4d4f;
  background: rgba(255, 87, 58, 0.1);
  border-color: rgba(255, 87, 58, 0.46);
}

.account-list-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0;
}

.account-list-header span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.account-token-read [data-account-token-label],
.account-token-read [data-account-character-label] {
  color: inherit;
  font-size: inherit;
}

.account-create-character[data-state="running"] {
  color: #111110;
  background: #ffbc13;
  border-color: #ffbc13;
}

.account-create-character[data-state="success"] {
  color: #102820;
  background: #2ed6a1;
  border-color: #2ed6a1;
}

.account-create-character[data-state="partial"] {
  color: #111110;
  background: #ffbc13;
  border-color: #ffbc13;
}

.account-create-character[data-state="failed"] {
  color: #ffffff;
  background: #bd4938;
  border-color: #bd4938;
}

.account-create-account,
.account-create-account span {
  color: #111110;
}

.account-list-actions,
.account-note-editor {
  display: flex;
  align-items: center;
  gap: 4px;
}

.account-export {
  height: 34px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  font-size: 11px;
}

.account-table-wrap {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.account-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
  table-layout: fixed;
}

.account-col-tools { width: 568px; }
.account-col-player { width: 132px; }
.account-col-name { width: 120px; }
.account-col-password { width: 120px; }
.account-col-email { width: 130px; }
.account-col-email-password { width: 140px; }
.account-col-status { width: 95px; }
.account-col-time { width: 85px; }
.account-col-execution { width: 160px; }
.account-col-note { width: 160px; }
.account-col-fill { width: auto; }

.account-table th,
.account-table td {
  height: 24px;
  padding: 0 7px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: #ffffff;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.account-table th {
  height: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  font-weight: 700;
}

.account-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgb(35 41 47);
}

.account-column-headings th.is-resizable {
  position: relative;
}

.account-column-resizer {
  position: absolute;
  z-index: 4;
  top: 2px;
  right: 0;
  display: block;
  width: 10px;
  height: calc(100% - 4px);
  cursor: col-resize;
  touch-action: none;
}

.account-column-resizer::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.72);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 100ms ease;
}

.account-column-headings th:hover > .account-column-resizer::before,
.account-column-resizer:hover::before,
.account-column-resizer:focus-visible::before,
.account-column-resizer.is-dragging::before {
  opacity: 1;
}

.account-column-resizer:focus-visible {
  outline: 0;
}

body.is-account-column-resizing,
body.is-account-column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.account-table th:nth-child(8) {
  font-size: 12.8px;
}

.account-table th:first-child,
.account-table td:first-child {
  padding-left: 26px;
}

.account-tools-heading {
  position: relative;
  z-index: 2;
  height: 34px !important;
  padding: 0 7px !important;
  overflow: visible !important;
  color: transparent;
}

.account-tools-cell {
  height: 34px !important;
  overflow: visible !important;
  padding: 0 7px !important;
  vertical-align: middle;
}

.account-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.account-tools .account-execute-button,
.account-selection-actions .account-execute-button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background-color: rgb(20, 20, 20);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  transform: none;
  transition: transform 120ms ease-out;
}

.account-tools .account-execute-button::before,
.account-selection-actions .account-execute-button::before {
  content: none;
}

.account-tools .account-execute-button:hover,
.account-tools .account-execute-button:focus-visible,
.account-tools .account-execute-button:active,
.account-tools .account-execute-button.is-triggered,
.account-selection-actions .account-execute-button:hover,
.account-selection-actions .account-execute-button:focus-visible,
.account-selection-actions .account-execute-button:active,
.account-selection-actions .account-execute-button.is-triggered {
  flex-basis: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  transform: scale(1.5);
}

.account-tools .account-execute-button:hover::before,
.account-tools .account-execute-button:focus-visible::before,
.account-tools .account-execute-button.is-triggered::before,
.account-selection-actions .account-execute-button:hover::before,
.account-selection-actions .account-execute-button:focus-visible::before,
.account-selection-actions .account-execute-button.is-triggered::before {
  content: none;
}

.account-tools .account-execute-button svg,
.account-selection-actions .account-execute-button svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.9;
  transition: none;
}

.account-tools .account-execute-button:hover svg,
.account-tools .account-execute-button:focus-visible svg,
.account-tools .account-execute-button.is-triggered svg,
.account-selection-actions .account-execute-button:hover svg,
.account-selection-actions .account-execute-button:focus-visible svg,
.account-selection-actions .account-execute-button.is-triggered svg {
  width: 12px;
  height: 12px;
  transform: none;
}

.account-tools .avg-speed-button,
.account-tools .home-square-button {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  transform: none;
}

.account-tools .avg-speed-button {
  flex: 0 0 132px;
  height: 32px;
  padding: 5px 8px;
}

.account-tools .account-preset-button {
  gap: 7px;
  padding: 4px 8px;
}

.account-tools .account-preset-button .avg-speed-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.account-tools .account-preset-button .avg-speed-icon.is-empty {
  color: transparent;
}

.account-tools .account-preset-button .avg-speed-icon.has-preset-item {
  background: var(--preset-rarity, #646c7d);
  background: color-mix(in srgb, var(--preset-rarity, #646c7d) 42%, #151a28);
  border: 2px solid var(--preset-rarity, #646c7d);
}

.account-tools .account-preset-button .avg-speed-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.account-tools .account-preset-button .avg-speed-label {
  font-size: 9px;
  text-align: center;
}

.account-selection-actions .avg-speed-button {
  position: static;
  top: auto;
  left: auto;
  flex: 0 0 132px;
  height: 32px;
  margin: 0;
  padding: 5px 8px;
  transform: none;
}

.account-selection-actions .account-bulk-preset {
  gap: 7px;
  padding: 4px 8px;
}

.account-selection-actions .avg-speed-button:hover,
.account-selection-actions .avg-speed-button:active {
  transform: none;
}

.account-selection-actions .avg-speed-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.account-selection-actions .account-bulk-preset .avg-speed-icon.is-empty {
  color: transparent;
}

.account-selection-actions .account-bulk-preset .avg-speed-icon.has-preset-item {
  background: var(--preset-rarity, #646c7d);
  background: color-mix(in srgb, var(--preset-rarity, #646c7d) 42%, #151a28);
  border: 2px solid var(--preset-rarity, #646c7d);
}

.account-selection-actions .account-bulk-preset .avg-speed-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.account-selection-actions .avg-speed-label {
  font-size: 9px;
}

.account-import-control {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.account-bulk-import {
  display: inline-flex;
  width: 66px;
  height: 32px;
  flex: 0 0 66px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  color: #ffffff;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 9px;
  white-space: nowrap;
}

.account-bulk-import:hover,
.account-bulk-import:focus-visible,
.account-bulk-import[aria-expanded="true"] {
  color: #102820;
  background: #2ed6a1;
  border-color: #2ed6a1;
  outline: 0;
}

.account-bulk-import svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.account-import-menu {
  position: fixed;
  z-index: 480;
  display: flex;
  min-height: 40px;
  max-width: calc(100vw - 24px);
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(17, 22, 30, 0.94);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.account-import-menu[hidden] {
  display: none;
}

.account-import-option {
  position: relative;
  min-width: 58px;
  height: 30px;
  padding: 0 10px;
}

.account-import-option.is-applied {
  color: #dffcf2;
  background: rgba(46, 214, 161, 0.14);
  border-color: rgba(46, 214, 161, 0.46);
}

.account-import-option[data-account-count]::after {
  content: attr(data-account-count);
  margin-left: 8px;
  color: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.account-import-option:disabled,
.account-import-option:disabled:hover,
.account-import-option.is-current,
.account-import-option.is-current:hover {
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.035);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
}

.account-bulk-note-input,
.account-note-input {
  box-sizing: border-box;
  min-width: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  font-family: Consolas, monospace;
  letter-spacing: 0;
}

.account-bulk-note-input {
  width: 132px;
  height: 28px;
  flex: 0 0 132px;
  padding: 0 7px;
  font-size: 14px;
}

.account-note-input {
  width: 100%;
  height: 28px;
  padding: 0;
  font-family: var(--ui-font);
  font-size: 13.2px;
  font-weight: 400;
  line-height: 1.4;
}

.account-bulk-note-input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.account-bulk-note-input:focus,
.account-note-input:focus {
  border-bottom-color: #2ed6a1;
}

.account-note-cell,
.account-note-heading {
  padding-left: 30px !important;
}

.account-note-cell {
  padding-right: 12px !important;
}

.account-note-editor {
  min-width: 0;
}

.account-note-editor .account-note-input {
  min-width: 0;
  flex: 1 1 auto;
}

.account-fill-cell,
.account-fill-heading {
  padding: 0 !important;
}

.account-tools .account-row-select {
  display: block;
  flex: 0 0 22.5px;
  width: 22.5px;
  height: 22.5px;
}

.account-tools-heading .account-checkbox-master {
  display: block;
  flex: 0 0 22.5px;
  width: 22.5px;
  height: 22.5px;
  margin-left: 0;
  color: rgba(255, 255, 255, 0.7);
}

.account-tools .account-row-select .label,
.account-tools .account-row-select .label svg,
.account-tools-heading .account-checkbox-master .label,
.account-tools-heading .account-checkbox-master .label svg,
.account-family-select .label,
.account-family-select .label svg {
  width: 22.5px;
  height: 22.5px;
}

.account-tools .home-square-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.account-tools .avg-speed-button:hover,
.account-tools .avg-speed-button:active {
  transform: none;
}

.account-table tbody tr {
  transition: background-color 160ms ease;
}

.account-tools .avg-speed-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.account-tools .avg-speed-icon svg {
  width: 12px;
  height: 12px;
}

.account-tools .avg-speed-label {
  font-size: 12px;
}

.account-tools .home-square-button svg {
  width: 15px;
  height: 15px;
}

.account-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.account-table tbody tr.account-family-row,
.account-table tbody tr.account-family-row:hover {
  background: rgba(9, 12, 15, 0.72);
}

.account-family-row td,
.account-family-row td:first-child {
  height: 32px;
  padding: 0 26px;
  overflow: visible;
  border-top: 1px solid rgba(46, 214, 161, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-family-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.account-family-select {
  width: 22.5px;
  height: 22.5px;
  flex: 0 0 22.5px;
}

.account-family-select:has(.check:disabled) {
  opacity: 0.42;
}

.account-family-name {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
}

.account-family-count {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.account-family-collapse {
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

.account-family-collapse:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.account-family-note {
  box-sizing: border-box;
  width: 220px;
  min-width: 100px;
  height: 30px;
  margin-left: 6px;
  padding: 3px 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
}

.account-family-note::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.account-family-note:focus,
.account-family-collapse:focus-visible {
  outline: 1px solid #2ed6a1;
  outline-offset: 1px;
}

.account-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
}

.account-cell strong {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #ffffff;
  font-family: Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secret-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
}

.secret-value {
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-family: Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secret-value.is-visible {
  color: #ffffff;
}

[data-inline-field] {
  cursor: text;
  outline: none;
}

[data-inline-field][hidden] {
  display: none !important;
}

[data-inline-field]:hover,
[data-inline-field]:focus-visible {
  text-decoration: underline;
  text-decoration-color: rgba(46, 214, 161, 0.72);
  text-underline-offset: 3px;
}

.account-inline-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 24px;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #2ed6a1;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  font-family: Consolas, monospace;
  letter-spacing: 0;
}

.account-inline-input:focus,
.account-inline-input:focus-visible {
  outline: 0;
  outline-offset: 0;
  box-shadow: none;
}

.account-player-cell .account-inline-input {
  font-size: 14px;
  font-weight: 700;
}

.account-cell .account-inline-input {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
}

.secret-cell .account-inline-input {
  max-width: none;
  flex: 1 1 72px;
  font-size: 12px;
}

.secret-action,
.row-icon-action {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}

.row-icon-action {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.secret-action:hover,
.row-icon-action:hover {
  color: #ffffff;
  background: var(--glass-control-bg);
  border-color: var(--glass-control-border);
}

.secret-action svg,
.row-icon-action svg {
  width: 11px;
  height: 11px;
}

.secret-action[data-secret-action="copy"],
.secret-action[data-secret-action="copy-account"] {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
}

.secret-action[data-secret-action="copy"] svg,
.secret-action[data-secret-action="copy-account"] svg {
  width: 22px;
  height: 22px;
  fill: transparent;
  transition: color 120ms ease, fill 120ms ease, filter 120ms ease;
}

.secret-action[data-secret-action="copy"]:hover,
.secret-action[data-secret-action="copy"]:focus-visible,
.secret-action[data-secret-action="copy-account"]:hover,
.secret-action[data-secret-action="copy-account"]:focus-visible {
  color: #ffffff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.secret-action[data-secret-action="copy"]:hover svg,
.secret-action[data-secret-action="copy"]:focus-visible svg,
.secret-action[data-secret-action="copy-account"]:hover svg,
.secret-action[data-secret-action="copy-account"]:focus-visible svg {
  fill: currentColor;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.24));
}

.row-icon-action svg {
  width: 9px;
  height: 9px;
}

.password-heading {
  white-space: nowrap;
}

.secrets-toggle {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  vertical-align: middle;
}

.secrets-toggle:hover {
  color: #ffffff;
  background: var(--glass-control-bg);
  border-color: var(--glass-control-border);
}

.secrets-toggle svg {
  width: 11px;
  height: 11px;
}

.status-pill {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 9.23px;
  font-weight: 700;
}

.account-status-select {
  min-width: 60px;
  max-width: 80px;
  padding-right: 14px;
  color-scheme: dark;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.account-status-select:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.account-status-select option {
  color: #ffffff;
  background: #252a31;
}

.account-player-cell {
  display: flex;
  min-width: 0;
  align-items: center;
}

.account-player-cell strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-family: Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-done {
  color: #102820;
  background: #2ed6a1;
  border-color: #2ed6a1;
}

.status-processing {
  color: #171717;
  background: var(--chip-yellow);
  border-color: var(--chip-yellow);
}

.status-pending {
  color: rgba(255, 255, 255, 0.72);
  background: var(--glass-control-bg);
  border-color: var(--glass-control-border);
}

.status-failed {
  color: #111110;
  background: var(--chip-red);
  border-color: var(--chip-red);
}

.status-kicked {
  color: #ffffff;
  background: #3b82f6;
  border-color: #3b82f6;
}

.status-cooldown {
  color: #14282e;
  background: #7e9fa9;
  border-color: #7e9fa9;
}

.status-banned {
  color: #2f1717;
  background: #e9a3a3;
  border-color: #e9a3a3;
}

.account-table td:nth-child(8) time {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.77px;
  font-variant-numeric: tabular-nums;
}

.account-execution-status {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 10.77px;
  line-height: 16px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-startup-status {
  display: inline-block;
  max-width: 58px;
  margin-left: 4px;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.account-startup-status[hidden] {
  display: none;
}

.account-startup-status.is-processing {
  color: #171717;
  background: var(--chip-yellow);
  border-color: var(--chip-yellow);
}

.account-startup-status.is-done {
  color: #102820;
  background: #2ed6a1;
  border-color: #2ed6a1;
}

.account-startup-status.is-failed {
  color: #111110;
  background: var(--chip-red);
  border-color: var(--chip-red);
}

.process-button {
  height: 16px;
  padding: 0 6px;
  color: #ffffff;
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  font-size: 7px;
}

.process-button:hover,
.account-export:hover {
  background: rgba(255, 255, 255, 0.16);
}

.account-empty-row td {
  height: 80px;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.account-footer-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 8px;
}

.account-sync-dot {
  width: 5px;
  height: 5px;
  background: #2ed6a1;
  border-radius: 50%;
}

.account-toast {
  position: fixed;
  z-index: 40;
  right: 28px;
  bottom: 28px;
  max-width: 300px;
  padding: 10px 13px;
  color: var(--text);
  background: rgb(var(--glass-tint) / 0.88);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 9px;
}

.account-dialog {
  width: min(460px, calc(100vw - 40px));
  padding: 0;
  color: var(--text);
  background: rgb(var(--glass-tint) / 0.88);
  border: 1px solid var(--glass-border);
  border-radius: 7px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(90%);
  -webkit-backdrop-filter: blur(24px) saturate(90%);
}

.account-dialog.is-import-mode {
  position: fixed;
  z-index: 80;
  width: min(720px, calc(100vw - 24px));
  margin: 0;
  background: rgba(18, 20, 24, 0.98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.account-dialog.is-import-mode::backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.account-dialog::backdrop {
  background: rgba(8, 9, 12, 0.56);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.account-dialog-form {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.account-dialog-form header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.account-dialog-form header span {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 8px;
}

.account-dialog-form h2 {
  margin: 3px 0 0;
  font-size: 16px;
}

.account-import-panel {
  min-width: 0;
}

.account-import-panel textarea {
  display: block;
  width: 100%;
  height: 110px;
  padding: 10px 12px;
  resize: none;
  color: var(--text);
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  outline: 0;
  font-family: Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
}

.account-import-panel textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.account-import-preview {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-edit-fields {
  display: grid;
  gap: 12px;
}

.account-edit-fields[hidden] {
  display: none;
}

.dialog-close {
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

.dialog-close:hover {
  background: var(--glass-control-bg);
}

.account-dialog-form label {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.account-dialog-form label span {
  color: var(--muted);
  font-size: 9px;
}

.account-dialog-form input:not([type="hidden"]) {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  color: var(--text);
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
  border-radius: 4px;
  outline: 0;
  font-size: 10px;
}

.account-dialog-form input:focus,
.account-import-panel textarea:focus {
  border-color: #2ed6a1;
}

.account-dialog-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 4px;
}

.account-dialog.is-import-mode .account-dialog-form footer {
  justify-content: stretch;
}

.account-dialog.is-import-mode #account-dialog-cancel {
  display: none;
}

.account-dialog.is-import-mode .dialog-primary {
  width: 100%;
}

.dialog-primary,
.dialog-secondary {
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 9px;
}

.dialog-primary {
  color: #102820;
  background: #2ed6a1;
}

.dialog-secondary {
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-control-border);
}

.account-clear-dialog {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.account-clear-dialog .dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
}

.account-clear-dialog .dialog-close svg {
  width: 18px;
  height: 18px;
}

.account-clear-actions {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 10px;
}

.account-clear-confirmation {
  min-width: 0;
}

.account-clear-dialog .dialog-primary,
.account-clear-dialog .dialog-secondary {
  width: 100%;
  min-height: 36px;
  font-size: 12px;
}

.account-clear-confirm {
  color: #fff;
  background: #cf3d29;
}

.account-clear-confirm:hover {
  background: #b63221;
}

.account-clear-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

@container (max-width: 1000px) {
  .account-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-top: 50px;
  }

  .account-summary {
    justify-content: flex-end;
  }

  .account-hero-actions {
    gap: 10px;
  }

  .account-filter-list {
    flex: 1 1 100%;
    overflow-x: auto;
  }

  .account-search {
    margin-left: 0;
    max-width: none;
    flex: 1 1 auto;
  }

  .account-add {
    margin-left: auto;
  }
}

@container (max-width: 1100px) {
  .account-list-header {
    flex-wrap: wrap;
    min-height: 52px;
    padding-block: 8px;
  }

  .account-list-main-action {
    order: 2;
    position: static;
    margin-left: auto;
    transform: none;
  }

  .account-list-actions {
    order: 2;
  }

  .account-category-list {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

@container (max-width: 760px) {
  .account-hero,
  .account-controls,
  .account-list-header {
    padding-inline: 16px;
  }

  .account-list-header {
    flex-wrap: wrap;
    min-height: 52px;
    padding-block: 8px;
  }

  .account-category-list {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .account-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .account-summary {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .account-hero-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .account-search {
    min-width: 0;
  }
}

@media (max-width: 1179px) {
  html.account-page-root,
  body.account-page,
  body.account-page .dashboard-shell {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .account-import-menu {
    width: min(240px, calc(100vw - 24px));
    flex-wrap: wrap;
  }

  .account-import-option {
    flex: 1 0 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-table tbody tr {
    transition: none;
  }
}

.account-tools .account-preset-button[data-preset-verification="verified"] {
  background: rgba(36, 151, 110, 0.16);
  border-color: rgba(85, 215, 164, 0.5);
}

.account-tools .account-preset-button[data-preset-verification="verified"] .avg-speed-label {
  color: #61d8ae;
}

.account-tools .account-preset-button[data-preset-verification="failed"] {
  background: rgba(205, 117, 117, 0.14);
  border-color: rgba(225, 151, 151, 0.45);
}

.account-tools .account-preset-button[data-preset-verification="failed"] .avg-speed-label {
  color: #edaaaa;
}


/* Account selection feedback is restricted to the account page. */
.account-page .account-table tbody tr[data-account].is-account-selected > td {
  background-color: rgba(32, 201, 160, 0.14);
}
.account-page .account-table tbody tr[data-account].is-account-selected > td:first-child {
  box-shadow: inset 3px 0 0 #20c9a0;
}
.account-page #account-selected-count {
  color: #63dfc1;
  font-size: 12px;
  white-space: nowrap;
}

/* Account restriction filters and explicit live check. */
.account-filter-list { flex-wrap: wrap; align-items: center; }
.account-check-button {
  height: 34px; padding: 0 14px; margin-left: 4px; border-radius: 5px;
  border: 1px solid #22cfa6; background: rgba(34, 207, 166, .12);
  color: var(--text, #fff); font: inherit; font-size: 12px; cursor: pointer;
  white-space: nowrap;
}
.account-check-button:hover { background: rgba(34, 207, 166, .25); }
.account-check-button:disabled { opacity: .65; cursor: wait; }
.account-check-summary { font-size: 11px; color: var(--text-muted, #a7b9b6); }

/* Manual mailbox status for the account list. */
.account-col-mail { width: 184px; }
.account-mail-heading { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; max-width: 100%; font-size: 12px; }
.account-mail-refresh {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 32px; height: 30px; padding: 0 5px; border: 1px solid transparent;
  flex: 0 0 auto;
  border-radius: 5px; background: transparent;
  color: inherit; cursor: pointer; font-size: 12px; font-weight: 700;
}
.account-mail-refresh svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.account-mail-refresh:hover:not(:disabled),
.account-mail-refresh:focus-visible:not(:disabled) {
  color: #f5cf57; background: rgb(255 255 255 / 0.07); border-color: rgb(255 255 255 / 0.16);
}
.account-mail-refresh:disabled { cursor: not-allowed; opacity: 0.55; }
.account-mail-refresh:focus-visible { outline: 2px solid #f5cf57; outline-offset: 2px; }
.account-mail-indicator { display: inline-flex; align-items: center; color: #7f8993; vertical-align: middle; }
.account-mail-indicator svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.account-mail-indicator.has-items { color: #ffcc24; }
.account-mail-indicator.is-reading { cursor: progress; }
.account-mail-indicator.read-failed { text-decoration: underline dotted; }
.account-mail-count {
  display: inline-block; min-width: 18px; margin-left: 4px; color: #aeb8bd;
  font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: middle;
}
.account-mail-count[hidden] { display: none; }
.account-mail-count[data-mail-state="items"] { color: #ffcc24; }
.account-mail-count[data-mail-state="claimed"] { color: #24cf94; }

/* Open the selected account's mailbox without loading the inventory. */
.account-mail-indicator[data-account-mail-open] {
  padding: 2px; border: 0; border-radius: 4px; background: transparent; cursor: pointer;
}
.account-mail-indicator[data-account-mail-open]:disabled { cursor: not-allowed; }
.account-mail-indicator[data-account-mail-open]:hover:not(:disabled) { background: rgb(255 255 255 / 0.08); }
.account-mail-indicator[data-account-mail-open]:focus-visible { outline: 2px solid #ffcc24; outline-offset: 2px; }
.account-mail-dialog {
  width: min(1320px, 96vw); height: min(860px, 94dvh); max-width: 96vw; max-height: 94dvh;
  padding: 0; border: 1px solid var(--line-strong, #45505c); border-radius: 8px;
  background: #101319; color: #f1f2f4; overflow: hidden;
}
.account-mail-dialog[open] { display: flex; flex-direction: column; }
.account-mail-dialog::backdrop { background: rgb(0 0 0 / 0.6); }
.account-mail-dialog-header { display: flex; flex: 0 0 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid #35404b; }
.account-mail-dialog-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-mail-dialog-header button { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 26px; }
.account-mail-dialog-header button:disabled { opacity: 0.5; cursor: wait; }
.account-mail-frame { display: block; flex: 1; width: 100%; min-height: 0; border: 0; background: #101319; }

.account-mail-read { min-width: 58px; height: 30px; padding-inline: 9px; font-size: 13px; white-space: nowrap; }
.account-mail-refresh [data-account-mail-progress] {
  min-width: 24px; color: #f5cf57; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}

/* Detail-only identity columns remain in the record for dialogs and export. */
.account-table .account-col-player,
.account-table .account-col-email,
.account-table .account-col-email-password,
.account-table .account-column-headings > th:nth-child(2),
.account-table .account-column-headings > th:nth-child(5),
.account-table .account-column-headings > th:nth-child(6),
.account-table tr[data-account] > td:nth-child(2),
.account-table tr[data-account] > td:nth-child(5),
.account-table tr[data-account] > td:nth-child(6) { display: none; }
.account-import-format { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* Creation businesses share the same administrative visibility. */
html:not([data-full-feature-access="true"]) [data-account-action="create-x-account"],
html:not([data-full-feature-access="true"]) [data-account-category="x-cycle"],
html:not([data-full-feature-access="true"]) [data-account-import-category="x-cycle"] {
  display: none !important;
}
.account-category-list { flex-wrap: wrap; }
.account-list-main-action .account-create-account { width: 88px; min-width: 88px; }
.account-list-main-action { flex-wrap: wrap; }

.token-account-import-dialog { width: min(640px, 90vw); color: #e9eeee; background: #252c33; border: 1px solid #647078; border-radius: 12px; padding: 24px; }
.token-account-import-dialog::backdrop { background: #0009; }
.token-account-import-dialog textarea { width: 100%; box-sizing: border-box; resize: vertical; background: #171c22; color: inherit; border: 1px solid #647078; padding: 12px; overflow-wrap: anywhere; }
.token-account-import-dialog form > div { display: flex; justify-content: flex-end; gap: 12px; }
.token-account-import-dialog button { padding: 10px 24px; border: 0; border-radius: 5px; background: #21cda7; color: #10231f; cursor: pointer; }
.token-account-import-dialog button:disabled { opacity: .5; cursor: wait; }
tr[data-token-only="true"] .account-cell strong::after { content: " TOKEN"; color: #21cda7; font-size: .7em; }

/* Retry is shown only when the selection contains failed mailbox reads. */
.account-mail-refresh[hidden] { display: none !important; }
:root .account-startup-button {
  min-width: 48px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  background: #f5f5f5;
  color: #202428;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
:root .account-startup-button:disabled { opacity: .55; cursor: wait; }
:root .account-startup-button:hover:not(:disabled) { background: #ffffff; }

/* Persistent account and family marks, independent of selection/status. */
.account-color-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex: 0 0 auto; height: 30px; padding: 0 10px; margin-left: 5px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 5px;
  background: rgba(255,255,255,.05); color: #eee; cursor: pointer; font: inherit;
}
.account-color-control > span {
  width: 13px; height: 13px; border-radius: 50%;
  background: conic-gradient(#ef6461,#f1ce54,#42c98b,#5999f0,#aa85ea,#ef6461);
}
.account-color-panel {
  position: fixed; z-index: 10020; width: 250px; padding: 12px; box-sizing: border-box;
  border: 1px solid #58616a; border-radius: 8px; background: #242b31; color: #eee;
  box-shadow: 0 8px 28px #0008; font-size: 12px;
}
.account-color-panel[hidden] { display: none; }
.account-color-panel label { display: grid; gap: 8px; }
.account-color-panel select { width: 100%; padding: 6px; color: #eee; background: #323b43; border: 1px solid #58616a; border-radius: 4px; }
.account-color-palette { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin: 12px 0; }
.account-color-palette button { height: 28px; border: 2px solid transparent; border-radius: 5px; cursor: pointer; }
.account-color-palette button:hover { border-color: white; }
.account-color-clear { width: 100%; padding: 6px; color: #ddd; background: transparent; border: 1px solid #58616a; border-radius: 4px; cursor: pointer; }
.account-color-panel button:focus-visible, .account-color-control:focus-visible { outline: 2px solid white; outline-offset: 2px; }
tr[data-mark-color]:not([data-mark-color=""]) .account-cell::before,
tr[data-mark-color]:not([data-mark-color=""]) .account-family-name::before {
  content: ""; display: inline-block; width: 9px; height: 9px; flex: 0 0 9px;
  margin-right: 6px; border-radius: 50%; background: var(--account-mark-color);
  box-shadow: 0 0 0 1px #ffffff30; vertical-align: middle;
}
tr[data-mark-color]:not([data-mark-color=""]) .account-cell strong,
tr[data-mark-color]:not([data-mark-color=""]) .account-family-name { color: var(--account-mark-color); }

/* User-defined account pages remain separate from the fixed business tabs. */
.account-custom-pages {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--glass-control-border);
  background: rgba(12, 20, 24, 0.25);
}
.account-custom-caption { flex: 0 0 auto; color: #aab7bc; font-size: 12px; }
.account-custom-tabs { display: flex; flex: 1 1 0; min-width: 0; gap: 8px; overflow-x: auto; }
.account-custom-tab { display: inline-flex; flex: 0 0 auto; align-items: center; border: 1px solid var(--glass-control-border); border-radius: 5px; }
.account-custom-tab .account-category-filter { max-width: 240px; min-width: 60px; overflow: hidden; text-overflow: ellipsis; display: block; }
.account-custom-remove, .account-custom-add { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; padding: 0; color: #b6c1c6; border: 0; background: transparent; cursor: pointer; font-size: 20px; border-radius: 4px; }
.account-custom-remove:hover { color: #ff7667; background: rgba(255, 84, 61, 0.14); }
.account-custom-add { width: 34px; height: 34px; border: 1px solid #26c99b; color: #26d5a5; font-size: 24px; }
.account-custom-add:hover { background: rgba(38, 201, 155, 0.15); }
.account-custom-pages button:focus-visible { outline: 2px solid #26d5a5; outline-offset: 2px; }
.account-custom-page-dialog { max-width: 460px; }
.account-custom-page-dialog [hidden] { display: none !important; }
.account-custom-summary { color: #c7d0d4; line-height: 1.7; overflow-wrap: anywhere; }


/* Expand the original family account rows with a neutral appearance. */
.account-family-related {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 2px 9px;
  color: #c1c6cb;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.account-family-related:hover,
.account-family-related[aria-expanded="true"] {
  color: #e0e3e6;
  background: rgba(255, 255, 255, 0.12);
}
.account-family-related:focus-visible {
  outline: 1px solid #aeb6bf;
  outline-offset: 2px;
}

.account-page .account-table tbody tr[data-account].is-family-related > td {
  background: rgba(112, 119, 127, 0.15);
}
/* Keep status and mailbox colors meaningful on related account rows. */
.account-page .account-table tbody tr[data-account].is-family-related > td:nth-child(-n + 6) {
  filter: grayscale(1);
}
.account-page .account-table tbody tr[data-account].is-family-related:hover > td {
  background: rgba(137, 144, 152, 0.22);
}
.account-page .account-table tbody tr[data-account].is-family-related.is-account-selected > td {
  background: rgba(157, 165, 175, 0.27);
}
.account-page .account-table tbody tr[data-account].is-family-related.is-account-selected > td:first-child {
  box-shadow: inset 3px 0 #a9b1ba;
}


#account-custom-page-dialog[data-delete-page]:not([data-delete-page=""]) {
  width: min(600px, calc(100vw - 32px));
  max-width: 600px;
}
#account-custom-page-dialog[data-delete-page]:not([data-delete-page=""]) h2 {
  font-size: 22px;
}
#account-custom-page-dialog .account-custom-summary {
  font-size: 18px;
  line-height: 1.8;
  color: #e2e6e9;
  white-space: pre-line;
}


.account-import-menu {
  align-items: stretch; overflow-x: auto; flex-wrap: nowrap;
  background: linear-gradient(to bottom, rgba(17, 22, 30, 0.96) 0 40px, transparent 40px);
  border: 0; box-shadow: none; backdrop-filter: none;
}
.account-import-column { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 6px; }
.account-import-column[hidden] { display: none; }
.account-import-page-clear {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: center; flex: 0 0 20px; width: 24px; height: 20px; padding: 0; border: 0;
  border-radius: 0; background: transparent; color: #ff665b;
  font: inherit; font-size: 19px; line-height: 1; cursor: pointer;
}
.account-import-page-clear:hover:not(:disabled) { color: #ff968e; background: transparent; }
.account-import-page-clear:disabled { color: #ff665b; opacity: 0.4; cursor: default; }
.account-import-page-clear:focus-visible { outline: 1px solid #ff665b; outline-offset: -1px; }
.account-page-clear-popover {
  position: fixed; z-index: 490; box-sizing: border-box;
  width: min(280px, calc(100vw - 16px)); padding: 12px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
  background: #242b32; color: #e2e6e9; box-shadow: 0 8px 24px #0006;
  overflow: auto;
}
.account-page-clear-popover[hidden] { display: none; }
.account-page-clear-popover form { margin: 0; }
.account-page-clear-summary { margin: 0 0 10px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.account-page-clear-popover footer { display: flex; justify-content: flex-end; gap: 8px; }
.account-page-clear-popover button { min-width: 58px; padding: 5px 12px; font-size: 13px; }

.account-family-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  margin-left: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #bfc7cc;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.account-family-sort:hover,
.account-family-sort:focus-visible { border-color: #61716f; color: #fff; }
.account-family-sort.is-active { color: #24cda5; }
.account-family-sort [data-account-family-sort-direction] { min-width: 10px; }

.account-import-menu.has-library-imports {
  flex-wrap: wrap; width: max-content; max-width: min(920px, calc(100vw - 24px));
  max-height: 65vh; overflow: auto; background: rgba(17,22,30,.98); padding: 10px;
  border: 1px solid var(--glass-control-border); box-shadow: 0 12px 32px #0006;
}
.account-library-import-group { flex: 1 0 100%; min-width: 0; border-top: 1px solid #ffffff25; margin-top: 4px; padding-top: 9px; }
.account-library-import-title { display: block; color: #22cca5; font-size: 13px; margin-bottom: 7px; }
.account-library-import-targets { display: flex; flex-wrap: wrap; gap: 5px; color: #b4bfc3; font-size: 13px; }
.account-library-import-targets .account-import-option { color: #dde4e6; }

/* Administrator-only category controls, hidden until authentication resolves. */
html:not([data-account-category-admin="true"]) [data-account-category="transfer-primary"],
html:not([data-account-category-admin="true"]) [data-account-category="transfer-secondary"],
html:not([data-account-category-admin="true"]) [data-account-category="idle"],
html:not([data-account-category-admin="true"]) [data-account-category="evacuation"],
html:not([data-account-category-admin="true"]) [data-account-category="cycle"],
html:not([data-account-category-admin="true"]) [data-account-category="x-cycle"],
html:not([data-account-category-admin="true"]) [data-account-import-category="transfer-primary"],
html:not([data-account-category-admin="true"]) [data-account-import-category="transfer-secondary"],
html:not([data-account-category-admin="true"]) [data-account-import-category="idle"],
html:not([data-account-category-admin="true"]) [data-account-import-category="evacuation"],
html:not([data-account-category-admin="true"]) [data-account-import-category="cycle"],
html:not([data-account-category-admin="true"]) [data-account-import-category="x-cycle"],
html:not([data-account-category-admin="true"]) [data-library-import-category="transfer-primary"],
html:not([data-account-category-admin="true"]) [data-library-import-category="transfer-secondary"],
html:not([data-account-category-admin="true"]) [data-library-import-category="idle"],
html:not([data-account-category-admin="true"]) [data-library-import-category="evacuation"],
html:not([data-account-category-admin="true"]) [data-library-import-category="cycle"],
html:not([data-account-category-admin="true"]) [data-library-import-category="x-cycle"] { display: none !important; }

.account-family-identity{font:12px/1.4 ui-monospace,monospace;color:#a3b2b4;user-select:text;overflow-wrap:anywhere;max-width:280px}

/* Date counts remain green without changing the existing selected tab. */
.account-date-pages .account-date-count { color: #26d5a5; font-weight: 700; }
.account-date-pages .is-active .account-date-count { color: #064e3b; }

[data-received-account-section][hidden] { display: none !important; }

.account-note-input { white-space: nowrap; }

.account-note-input { text-overflow: ellipsis; }
.account-table .account-note-cell.is-note-expanded { position: relative; z-index: 2; overflow: visible; }
.account-note-editor.is-note-expanded { overflow: visible; }
.account-note-editor.is-note-expanded .account-note-input {
  position: relative;
  flex: 0 0 var(--account-note-expanded-width);
  width: var(--account-note-expanded-width);
  max-width: none;
  background: var(--panel-bg, #20282c);
  text-overflow: clip;
}

/* Match account details and family text to the note typography. */
.account-table .account-cell strong,
.account-table .secret-value,
.account-table .account-cell .account-inline-input,
.account-table .secret-cell .account-inline-input,
.account-table .account-row-activity-duration,
.account-table .account-row-upgrade-countdown,
.account-table .account-family-name,
.account-table .account-family-count,
.account-table .account-family-identity,
.account-table .account-family-note,
.account-table .account-family-related {
  font-family: var(--ui-font);
  font-size: 13.2px;
  font-weight: 400;
}

.account-time-sort { margin-left: 4px; }
.account-time-sort [data-account-time-sort-direction] { min-width: 10px; }



.account-column-headings [data-account-status-heading] { vertical-align: bottom; }
.account-header-status-select { display: block; width: 90px; max-width: 100%; min-height: 28px; margin: 0; padding: 3px 7px; border: 1px solid #526368; border-radius: 6px; color: #e2ecea; background: #263238; font: inherit; cursor: pointer; }
.account-header-status-select:disabled { opacity: .5; cursor: wait; }

.account-table .account-family-remove {
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ff7777;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.account-table .account-family-remove:hover {
  background: rgba(255, 100, 100, 0.12);
  border-color: rgba(255, 100, 100, 0.3);
}

.account-table .account-family-remove:focus-visible {
  outline: 2px solid #ff7777;
  outline-offset: 2px;
}

/* Export is an anchored, non-modal panel. Other dialogs keep their backdrop. */
#account-export-dialog {
  position: fixed;
  inset: auto;
  margin: 0;
  z-index: 2000;
  box-sizing: border-box;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: rgb(var(--glass-tint));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#account-export-dialog::backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Spacer rows preserve full scroll height without mounting offscreen controls. */
.account-table .account-viewport-spacer,
.account-table .account-viewport-spacer td {
  padding: 0; border: 0; min-height: 0; background: transparent;
  line-height: 0; font-size: 0; pointer-events: none;
}
.account-table-wrap { overflow-anchor: none; }

.account-row-loot-count[data-state="loaded"][data-completion="pending"] { color: #fff; }

/* Explicit selected-account mail actions, aligned over the mail column. */
.account-mail-bulk-heading { position: relative; overflow: visible; }
.account-mail-bulk-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; position: relative; }
.account-mail-bulk-actions > button, .account-mail-delete-confirm button {
  min-width: 66px; height: 32px; padding: 0 10px; border: 1px solid transparent; flex: 0 0 auto;
  border-radius: 5px; font: inherit; font-size: 12px; font-weight: 800;
  letter-spacing: .02em; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.18); transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.account-mail-bulk-actions > button { min-width: 52px; height: 25px; padding: 0 8px; border-radius: 4px; font-size: 11px; }
.account-mail-claim-action { color: #102820; background: #2ed6a1; border-color: #54e0b6 !important; }
.account-mail-claim-action:hover:not(:disabled), .account-mail-claim-action:focus-visible:not(:disabled) { background: #55dfb7; }
.account-mail-delete-action { color: #fff; background: #cf3d29; border-color: #ed6a56 !important; }
.account-mail-delete-action:hover:not(:disabled), .account-mail-delete-action:focus-visible:not(:disabled) { background: #e0513c; }
.account-mail-stop-action { color: #e8eef0; background: #3b4850; border-color: #71818a !important; }
.account-mail-stop-action:hover:not(:disabled), .account-mail-stop-action:focus-visible:not(:disabled) { background: #53636c; }
.account-mail-bulk-actions > button:active:not(:disabled), .account-mail-delete-confirm button:active:not(:disabled) { transform: translateY(1px); }
.account-mail-bulk-actions > button:disabled { opacity: .45; cursor: default; box-shadow: none; }
.account-mail-bulk-actions [data-mail-batch-status] { position: absolute; left: 0; top: -18px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #b9cac7; }
.account-mail-delete-confirm { position: fixed; inset: auto; box-sizing: border-box; margin: 0; width: 280px; padding: 13px; color: #edf3f1; background: #202b32; border: 1px solid #ba5555; border-radius: 7px; box-shadow: 0 8px 28px #0008; z-index: 10000; }
.account-mail-delete-confirm[hidden] { display: none; }
.account-mail-delete-confirm p { margin: 0 0 7px; font-size: 13px; }
.account-mail-delete-confirm small { display: block; color: #b1bdbd; font-size: 12px; line-height: 1.5; }
.account-mail-delete-confirm > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.account-mail-delete-confirm [data-mail-confirm-cancel] { background: #34434a; color: #eef2f3; }
.account-mail-indicator[data-mail-state="claimed"] { color: #24cf94; }
.account-mail-indicator[data-mail-state="empty"] { color: #7f8993; }

/* Account creation and manual statistics controls belong to admin 123. */
html:not([data-account-admin-tools="true"]) [data-account-action="create-account"],
html:not([data-account-admin-tools="true"]) [data-account-action="create-x-account"],
html:not([data-account-admin-tools="true"]) [data-account-effective-sync],
html:not([data-account-admin-tools="true"]) [data-account-effective-sync-heading-status],
html:not([data-account-admin-tools="true"]) [data-account-effective-sync-status] {
  display: none !important;
}
