.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 10px/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: 11px;
  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-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: 11px;
  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-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: rgba(255, 255, 255, 0.5);
}

.account-category-clear:hover,
.account-category-clear:focus-visible {
  color: #ff573a;
  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: 500px; }
.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: width 0.3s, flex-basis 0.3s, border-radius 0.3s, background-color 0.3s;
}

.account-tools .account-execute-button::before,
.account-selection-actions .account-execute-button::before {
  position: absolute;
  top: -20px;
  content: attr(data-hover-label);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s, font-size 0.3s;
  font-size: 2px;
  white-space: nowrap;
}

.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: 70px;
  width: 70px;
  border-radius: 50px;
  background-color: rgb(255, 69, 69);
  transform: none;
}

.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 {
  font-size: 11px;
  opacity: 1;
  transform: translateY(30px);
}

.account-tools .account-execute-button svg,
.account-selection-actions .account-execute-button svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.9;
  transition: width 0.3s, height 0.3s, transform 0.3s;
}

.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: 14px;
  height: 14px;
  transform: translateY(60%);
}

.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 {
  padding-right: 24px;
  color: #dffcf2;
  background: rgba(46, 214, 161, 0.14);
  border-color: rgba(46, 214, 161, 0.46);
}

.account-import-option.is-applied::after {
  position: absolute;
  right: 8px;
  content: "\2713";
  color: #2ed6a1;
  font-size: 11px;
}

.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: 9px;
}

.account-note-input {
  width: 100%;
  height: 20px;
  padding: 0;
  font-size: 9px;
}

.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: 9px;
}

.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: 11px;
  font-weight: 700;
}

.account-family-count {
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.account-family-add-member,
.account-family-remove {
  display: inline-grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  color: #102820;
  background: #2ed6a1;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.account-family-add-member svg,
.account-family-remove svg {
  width: 14px;
  height: 14px;
}

.account-family-add-member:hover {
  background: #58dfb4;
}

.account-family-remove {
  color: #ff7565;
  background: rgba(255, 83, 67, 0.08);
  border: 1px solid rgba(255, 83, 67, 0.48);
}

.account-family-remove:hover {
  color: #ffffff;
  background: #ff5343;
  border-color: #ff5343;
}

.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: 13px;
  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: 8px;
  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: 18px;
  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: 10px;
  font-weight: 700;
}

.account-cell .account-inline-input {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 700;
}

.secret-cell .account-inline-input {
  max-width: none;
  flex: 1 1 72px;
  font-size: 8px;
}

.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: 17px;
  align-items: center;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 700;
}

.account-status-select {
  min-width: 44px;
  max-width: 64px;
  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: 10px;
  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: 11.2px;
  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: 10px;
  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: 9px;
  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;
  }
}
