:root { --accent: #ac2c61; --accent-hover: #89234e; --accent-light: #faedf3; --ring: #ac2c61; }
.brand-mark { background: var(--accent); }
.account-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid #e9edf2; }
.account-entry:last-child { border-bottom: 0; }
.account-entry h3 { margin: 0 0 6px; }
.account-entry p { margin: 5px 0; overflow-wrap: anywhere; }
.account-entry .row { flex-wrap: wrap; }
.status-expired { color: #b42318; }
.status-healthy { color: #0c6d43; }
.account-entry p span + span { margin-left: 10px; }
.account-entry p span::before { content: "·"; margin-right: 10px; color: #b6c2d2; }
.account-entry p span:first-child::before { content: ""; margin: 0; }
.empty-accounts { padding: 56px 20px; text-align: center; color: var(--muted); }
.geetest_panel, .geetest_holder, .geetest_box, .geetest_popup_wrap { z-index: 2147483647 !important; }

.directory-toolbar.account-filters { grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)); }
.account-toolbar-actions { justify-content: flex-end; }
.allocation-mode-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.allocation-mode-control { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.allocation-mode-control label, .allocation-mode-control select, .allocation-mode-bar .form-status { margin: 0; }
.allocation-mode-control select { width: auto; max-width: 100%; }
.allocation-mode-badge {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text);
  background: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
}
.allocation-mode-warning { margin: 0 0 16px; border: 1px solid var(--warning); }
.allocation-mode-warning strong { display: block; }
.allocation-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.allocation-grid .allocation-controls label { margin-top: 0; }
.allocation-drop {
  margin-top: 18px;
  padding: 24px 18px;
  border: 2px dashed #b97995;
  border-radius: 12px;
  background: var(--accent-light);
  text-align: center;
}
.allocation-drop.dragging { border-color: var(--accent); background: #f4dbe8; }
.allocation-drop .muted { color: #53464e; }
.allocation-drop .secondary { margin-top: 6px; }
.allocation-stock-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.allocation-stock-group h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.allocation-stock-total { color: var(--accent); font-variant-numeric: tabular-nums; }
.allocation-stock-details { margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.allocation-records { margin-top: 24px; }
.allocation-record-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.allocation-records td { overflow-wrap: anywhere; }
.allocation-job-state { font-weight: 600; }
.allocation-job-state small { font-weight: 400; }
[data-kind="failed"] { color: var(--danger); }
[data-kind="succeeded"] { color: #0c6d43; }
[data-kind="unknown"], .form-warning { color: var(--warning); }
.form-warning { padding: 10px 12px; border-radius: 8px; background: var(--warning-light); }
.add-account-dialog textarea {
  width: 100%;
  padding: 10px 13px;
  margin-top: 7px;
  border: 1px solid #adbdb5;
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  resize: vertical;
}
.add-account-dialog textarea:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.add-account-dialog textarea::placeholder { color: var(--muted); }

@media (max-width: 920px) {
  .directory-toolbar.account-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) { .account-entry { align-items: flex-start; flex-direction: column; } }
@media (max-width: 560px) {
  .account-toolbar-actions { justify-content: flex-start; }
  .allocation-grid .allocation-controls, .allocation-record-filters { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
}
