:root {
  color-scheme: dark;
  --bg: #090d19;
  --panel: #101521;
  --panel2: #141a28;
  --field: #0b101b;
  --line: #242d3b;
  --muted: #8390a6;
  --text: #e5ecf6;
  --blue: #74b8ff;
  --cyan: #72d2e6;
  --green: #78d7ac;
  --amber: #e5bd65;
  --red: #f1909f;
  --shadow: 0 24px 100px #0008;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -280px, #18263b 0, transparent 65%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: #b7d9ff;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small {
  font-size: 12px;
}
.text-blue {
  color: var(--blue);
}
.muted-text {
  color: var(--muted);
  line-height: 1.7;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.text-right {
  text-align: right;
}
.text-good {
  color: var(--green);
}
.text-warn {
  color: var(--amber);
}
.text-bad {
  color: var(--red);
}
.nowrap {
  white-space: nowrap;
}
.full {
  width: 100%;
}
.hidden {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -50px;
  z-index: 100;
  padding: 10px;
  background: var(--panel);
}
.skip-link:focus {
  top: 10px;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: #0b1019e8;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand:hover {
  color: var(--text);
}
.brand-mark {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #75cbec, #8c91ed);
  color: #0b1625;
  font-size: 23px;
  font-weight: 850;
  border-radius: 10px;
  box-shadow: 0 0 20px #71baff12;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}
.workspace-label {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  color: #b3bed0;
  font-size: 13px;
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.identity {
  font-size: 12px;
  color: #c7d1df;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px #78d7ac44;
}
.tabbar {
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  min-height: 58px;
  overflow-x: auto;
}
.tab {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.selected {
  color: var(--blue);
  border-color: var(--blue);
}
.tab > span {
  font-size: 17px;
}
.refresh-status {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.refresh-status.stale {
  color: var(--amber);
}
.main-container {
  max-width: 1600px;
  padding: 28px 32px 60px;
  margin: 0 auto;
  min-height: calc(100vh - 192px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 12px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--blue);
  margin-bottom: 9px;
}
.button {
  border: 1px solid var(--line);
  background: #151c2a;
  color: #d4deed;
  border-radius: 8px;
  min-height: 38px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover:not(:disabled) {
  background: #1b2536;
  border-color: #44546c;
  color: #edf5ff;
}
.button.primary {
  background: linear-gradient(110deg, #74b9e1, #9990db);
  color: #091829;
  border-color: transparent;
  font-weight: 650;
}
.button.primary:hover:not(:disabled) {
  background: linear-gradient(110deg, #8cccec, #b2a5ed);
}
.button.danger {
  color: var(--red);
  background: #291a26;
  border-color: #633746;
}
.button.compact {
  padding: 6px 10px;
  min-height: 30px;
  font-size: 11px;
}
.button.subtle {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.icon-button:hover {
  background: #202a3b;
  color: var(--text);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.metrics.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #141b29, #101520);
  border-radius: 10px;
  padding: 17px 18px;
  min-width: 0;
}
.metric-label {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 12px;
}
.metric strong {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.metric small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.metric.blue strong {
  color: #9dccff;
}
.metric.green strong {
  color: var(--green);
}
.metric.amber strong {
  color: var(--amber);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.toolbar .section-label {
  margin-right: auto;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.section-label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #202c40;
  color: var(--blue);
  font-size: 11px;
}
.search {
  width: 240px;
}
.toolbar input,
.toolbar select {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 14px;
}
.account-card {
  background: linear-gradient(150deg, #151c2b, #111723 60%);
  border: 1px solid #2b3549;
  border-radius: 12px;
  padding: 17px;
  transition:
    border-color 0.15s,
    background 0.15s;
  min-width: 0;
  cursor: pointer;
}
.account-card:hover {
  border-color: #516a92;
  background: #171f2e;
}
.account-card.attention {
  border-color: #6c5730;
  background: linear-gradient(150deg, #211f21, #141822 70%);
}
.account-card.attention:hover {
  border-color: #a58546;
}
.account-card.supplying {
  border-color: #375265;
}
.account-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}
.account-avatar {
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  background: #233248;
  color: #95b9e8;
  display: grid;
  place-items: center;
  border: 1px solid #34435d;
  border-radius: 9px;
  font-size: 13px;
}
.account-title-text {
  flex: 1;
  min-width: 0;
}
.account-title h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.5;
}
.account-title small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-status {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border: 1px solid #3c485c;
  background: #1b2637;
  color: #abb9cf;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 500;
}
.badge i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.good {
  color: var(--green);
  background: #162c28;
  border-color: #2a4a41;
}
.badge.warn {
  color: var(--amber);
  background: #302b1f;
  border-color: #594a2c;
}
.badge.bad {
  color: var(--red);
  background: #301e2a;
  border-color: #5e3444;
}
.badge.muted {
  color: #94a1b6;
  background: #1b2230;
  border-color: #333c4e;
}
.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid #273142;
  padding-top: 13px;
  margin-top: 9px;
}
.card-stats div span {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-bottom: 7px;
}
.card-stats div strong {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.2px;
}
.quota-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.quota-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
}
.quota-row > span:first-child {
  width: 28px;
}
.quota-track {
  flex: 1;
  background: #252e3d;
  border-radius: 2px;
  height: 4px;
  overflow: hidden;
}
.quota-track i {
  display: block;
  background: var(--blue);
  height: 100%;
  border-radius: 2px;
}
.quota-row.warn .quota-track i {
  background: var(--amber);
}
.quota-row > span:last-child {
  width: 34px;
  text-align: right;
}
.account-error {
  font-size: 11px;
  line-height: 1.7;
  color: var(--amber);
  background: #30281777;
  border: 1px solid #514224;
  border-radius: 7px;
  padding: 8px 10px;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #273142;
  font-size: 10px;
  color: var(--muted);
}
.card-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.card-actions .button {
  font-size: 10px;
  padding: 5px 7px;
  min-height: 26px;
}
.card-menu {
  position: relative;
}
.card-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  padding: 0 7px;
}
.card-menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  right: 0;
  top: 26px;
  min-width: 140px;
  padding: 5px;
  background: #192132;
  border: 1px solid #37465d;
  border-radius: 8px;
  z-index: 8;
  box-shadow: 0 12px 36px #0008;
}
.menu-panel button {
  display: block;
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 9px 11px;
  color: var(--text);
  font-size: 12px;
  border-radius: 4px;
}
.menu-panel button:hover {
  background: #2a3850;
}
.menu-panel button.danger-text {
  color: var(--red);
}
.section-block {
  margin-top: 30px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.split-panels {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.panel {
  border: 1px solid var(--line);
  background: #101620;
  border-radius: 11px;
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  font-size: 13px;
}
.panel-heading span {
  font-size: 10px;
  color: var(--muted);
}
.panel-body {
  padding: 18px;
}
.timeline {
  padding: 4px 19px;
  max-height: 310px;
  overflow: auto;
}
.timeline-row {
  display: flex;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid #202a38;
  font-size: 11px;
  line-height: 1.6;
}
.timeline-row:last-child {
  border-bottom: 0;
}
.timeline-marker {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--blue);
  border-radius: 50%;
  margin-top: 6px;
  box-shadow: 0 0 0 3px #253951;
}
.timeline-row .content {
  flex: 1;
}
.timeline-row time {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.timeline-row p {
  color: var(--muted);
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  background: #141c2a;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid #222b3a;
  vertical-align: middle;
  line-height: 1.6;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #17213177;
}
td .muted-text {
  font-size: 10px;
  display: block;
}
td .button + .button {
  margin-left: 5px;
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.table-primary {
  font-weight: 550;
  white-space: nowrap;
}
.table-secondary {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 45px 24px;
  min-height: 140px;
  gap: 12px;
  color: #b6c4d8;
}
.empty strong {
  font-size: 13px;
  font-weight: 500;
}
.empty p {
  max-width: 460px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.empty-icon {
  color: #5c7292;
  font-size: 30px;
  margin-bottom: 3px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #b3bed0;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
}
label .optional {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  min-height: 40px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #3f506c;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6f9bcb;
}
input::placeholder,
textarea::placeholder {
  color: #57667d;
}
input[readonly] {
  background: #151b28;
  color: #9eb1ca;
}
input[type="checkbox"] {
  min-height: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.check-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
}
.input-action {
  display: flex;
  gap: 8px;
}
.input-action input {
  min-width: 0;
  flex: 1;
}
.help {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 17px;
}
.notice {
  display: flex;
  gap: 10px;
  border: 1px solid #294452;
  background: #132b344d;
  color: #a1c8dd;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.notice::before {
  content: "ⓘ";
  color: var(--blue);
}
.notice.warning {
  color: #d2ba85;
  border-color: #594b30;
  background: #342c1c55;
}
.notice.error {
  color: var(--red);
  border-color: #623747;
  background: #321e2988;
}
.notice.success {
  color: #9bdec3;
  border-color: #2b5445;
  background: #162f2855;
}
.modal {
  width: min(680px, calc(100vw - 30px));
  max-height: calc(100dvh - 44px);
  padding: 0;
  border: 1px solid #354052;
  border-radius: 17px;
  background: #101620;
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: auto;
}
.modal.wide {
  width: min(1040px, calc(100vw - 30px));
}
.modal::backdrop {
  background: #020715b8;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #111722;
  z-index: 3;
}
.modal-head h2 {
  font-size: 15px;
  font-weight: 550;
}
.modal-body {
  padding: 20px;
}
.modal-actions {
  border-top: 1px solid var(--line);
  margin: 22px -20px -20px;
  padding: 16px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #101721;
}
.modal-actions .stretch {
  flex: 1;
}
.dialog-description {
  line-height: 1.9;
  font-size: 13px;
  color: #b8c5d7;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.form-error:empty {
  display: none;
}
.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.step {
  flex: 1;
  padding: 9px 10px;
  border-radius: 7px;
  background: #182130;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.step.current {
  background: #203549;
  color: #a5d2f3;
}
.step.done {
  color: var(--green);
}
.auth-link {
  padding: 12px;
  border: 1px solid #334961;
  background: #102031;
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.job-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #15212d;
  border: 1px solid #30475d;
  border-radius: 10px;
  margin: 15px 0;
}
.job-status strong {
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
}
.job-status p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.detail-item {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.detail-item dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.detail-item dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.detail-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.filter-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 20px 0;
}
.filter-form label {
  margin: 0;
  min-width: 160px;
  flex: 1;
}
.filter-form .button {
  min-height: 40px;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 32px;
  color: #53627a;
  border-top: 1px solid #1d2636;
  font-size: 10px;
}
.notifications {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(430px, calc(100vw - 32px));
}
.toast {
  padding: 14px 18px;
  border: 1px solid #3f5e59;
  background: #142c2a;
  color: #bce9db;
  border-radius: 10px;
  box-shadow: 0 10px 35px #0005;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.toast.error {
  background: #33212d;
  border-color: #704357;
  color: #f7c5d2;
}
.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid #355071;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}
.initial-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 90vh;
  color: var(--muted);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 35px 20px;
  position: relative;
  isolation: isolate;
}
.login-card {
  background: #111826e8;
  border: 1px solid #2a384c;
  border-radius: 17px;
  padding: 34px 38px 26px;
  width: 100%;
  max-width: 430px;
  box-shadow: var(--shadow);
}
.login-card > .brand {
  margin-bottom: 39px;
}
.login-card h1 {
  font-size: 28px;
  margin-bottom: 10px;
}
.login-card > p {
  font-size: 12px;
}
.login-card form {
  margin-top: 30px;
}
.login-card .button {
  margin-top: 7px;
  font-size: 13px;
}
.login-card .login-foot {
  font-size: 10px;
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
}
.quiet-link {
  font-size: 10px;
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #8299b9;
}
.login-glow {
  position: absolute;
  z-index: -1;
  top: 10%;
  left: 25%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse, #30476840, transparent 70%);
  filter: blur(70px);
}
.subtabs {
  display: flex;
  gap: 8px;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}
.subtabs .button.active {
  border-color: #527ca7;
  color: var(--blue);
  background: #1c3046;
}
.tabs-content {
  margin-top: 18px;
}
.alert-strip {
  margin-top: -6px;
  margin-bottom: 22px;
}
.inline-code {
  background: #1d2a40;
  border: 1px solid #344761;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  gap: 12px;
  margin: 12px 0;
}
.account-section-empty {
  border: 1px dashed #29364b;
  border-radius: 11px;
}
.stack {
  display: grid;
  gap: 16px;
}
.amount-large {
  font-size: 26px;
  color: var(--green);
  letter-spacing: -0.8px;
}
.danger-zone {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.result-link {
  display: block;
  padding: 12px;
  background: #142a36;
  border: 1px solid #2a4b62;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
}
.mini-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.realtime-panel {
  background: #10151e;
  border: 1px solid #29313d;
  box-shadow: inset 0 0 0 3px #1d263026;
  border-radius: 16px;
  padding: 22px 23px 17px;
  margin-bottom: 25px;
}
.realtime-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8c5d9;
  font-size: 12px;
  flex-wrap: wrap;
}
.realtime-heading small {
  color: var(--muted);
  font-size: 10px;
}
.realtime-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) 1.5fr 1.5fr;
  gap: 14px;
  margin: 21px 0;
}
.realtime-stats .metric {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
}
.realtime-stats .metric strong {
  font-size: 23px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.realtime-stats .metric-label {
  font-size: 10px;
  margin-bottom: 9px;
}
.realtime-stats .metric small {
  margin-top: 6px;
  font-size: 9px;
}
.realtime-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #7d8ea8;
  border-top: 1px solid #28303e;
  padding-top: 13px;
  font-size: 10px;
  flex-wrap: wrap;
}
.card-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.3fr;
}
.account-title h3 {
  color: #9bc4ff;
}
.account-card.attention {
  border: 1px solid #c5b65a;
  box-shadow: inset 0 0 0 2px #6b603b44;
}
.account-card {
  background: #10151e;
}
.account-avatar {
  height: 9px;
  width: 9px;
  margin-top: 5px;
  border-radius: 50%;
  font-size: 0;
  background: #7eb6ec;
  border: 0;
  box-shadow: 0 0 7px #89c5ff55;
}
.account-card.attention .account-avatar {
  background: #f5df6e;
  box-shadow: 0 0 8px #f5df6e88;
}
.account-card.attention .account-error {
  font-size: 10px;
}
.card-stats strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.card-footer {
  font-size: 10px;
}
.account-grid .card-stats div strong {
  font-size: 13px;
}
@media (min-width: 1700px) {
  .account-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metrics.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-label {
    display: none;
  }
  .split-panels {
    grid-template-columns: 1fr;
  }
  .main-container {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .tabbar {
    padding: 0 24px;
    gap: 24px;
  }
  .identity {
    max-width: 180px;
  }
  .realtime-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 22px;
  }
}
@media (max-width: 640px) {
  .topbar {
    height: 66px;
    padding: 0 16px;
    gap: 12px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
    font-size: 19px;
  }
  .brand small {
    font-size: 6px;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar-right .identity {
    max-width: 100px;
    font-size: 10px;
  }
  .topbar-right .live-dot {
    display: none;
  }
  .topbar-right a.button {
    display: none;
  }
  .tabbar {
    padding: 0 16px;
    gap: 23px;
    min-height: 51px;
  }
  .tab {
    font-size: 12px;
    gap: 5px;
  }
  .refresh-status {
    display: none;
  }
  .main-container {
    padding: 22px 16px 40px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading p {
    max-width: 230px;
    line-height: 1.7;
  }
  .heading-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .heading-actions .button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 22px;
  }
  .metric {
    padding: 13px;
  }
  .metric strong {
    font-size: 20px;
  }
  .metric-label {
    margin-bottom: 9px;
    font-size: 10px;
  }
  .metric small {
    font-size: 9px;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .toolbar .section-label {
    width: 100%;
    margin-bottom: 4px;
  }
  .toolbar .search {
    flex: 1;
    width: auto;
    min-width: 120px;
  }
  .toolbar select {
    max-width: 150px;
  }
  .card-stats div strong {
    font-size: 15px;
  }
  .split-panels {
    gap: 16px;
  }
  .panel-heading {
    padding: 15px;
  }
  .page-footer {
    padding: 17px 16px;
    font-size: 9px;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }
  .modal-head {
    padding: 14px 16px;
  }
  .modal-body {
    padding: 17px;
  }
  .modal-actions {
    margin: 20px -17px -17px;
    padding: 14px 17px;
    flex-wrap: wrap;
  }
  .step {
    font-size: 10px;
    padding: 8px 5px;
  }
  .filter-form label {
    min-width: 135px;
  }
  .login-card {
    padding: 28px 25px;
  }
  .notifications {
    right: 16px;
    bottom: 16px;
  }
  .table-scroll th,
  .table-scroll td {
    padding: 12px;
  }
  .detail-toolbar .button {
    flex: 1;
  }
  .input-action {
    flex-wrap: wrap;
  }
  .input-action input {
    flex-basis: 100%;
  }
  .input-action .button {
    flex: 1;
  }
  .mini-summary {
    gap: 9px;
    font-size: 11px;
  }
  .realtime-panel {
    padding: 17px 16px;
  }
  .realtime-heading .mono {
    font-size: 10px;
  }
  .realtime-stats {
    gap: 19px 12px;
  }
  .realtime-stats .metric strong {
    font-size: 19px;
  }
  .realtime-stats .metric-label {
    font-size: 9px;
  }
  .realtime-footer span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .spinner {
    animation-duration: 2s;
  }
}
.aggregate-quota {
  padding: 3px 0 15px;
  gap: 11px;
}
.aggregate-quota .quota-row > span.quota-summary {
  width: 100px;
}
.aggregate-quota .quota-track {
  height: 5px;
}
.realtime-panel + .toolbar {
  margin-top: 4px;
}
.realtime-panel + .toolbar .section-label {
  flex-basis: 100%;
  margin-bottom: 1px;
}
.realtime-panel + .toolbar .search {
  flex: 1;
  min-width: 220px;
}
.realtime-panel + .toolbar select {
  width: 150px;
}
.realtime-panel + .toolbar .button {
  min-height: 34px;
}
.realtime-panel .realtime-footer {
  font-size: 9px;
}
@media (min-width: 600px) and (max-width: 1100px) {
  .realtime-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr)) 1.4fr 1.4fr;
    gap: 8px;
  }
  .realtime-stats .metric strong {
    font-size: 17px;
  }
  .realtime-stats .metric-label {
    font-size: 9px;
  }
  .realtime-stats .metric small {
    font-size: 8px;
  }
}
.header-actions {
  margin-left: auto;
  flex-shrink: 0;
  gap: 4px;
}
.header-actions .button {
  padding: 3px 5px;
  min-height: 22px;
  font-size: 9px;
  background: #1b2d3e;
  color: #8fbedf;
}
.header-actions .relogin {
  background: #28223e;
  color: #c3aceb;
}
.header-actions .card-menu summary {
  padding: 0 5px;
  background: #222b3c;
  border-radius: 5px;
  line-height: 22px;
}
.account-title .account-title-text {
  padding-right: 3px;
}
.account-title h3 {
  font-size: 11px;
}
.account-title small {
  font-size: 9px;
}
.account-card {
  padding: 15px;
}
.account-status {
  margin-bottom: 10px;
}
.card-stats {
  padding-top: 11px;
}
.card-footer {
  margin-top: 12px;
  padding-top: 10px;
}
