/* 用量管理员看板（暗色工具面板）— 金标指环 v1.14.54 */

.usage-admin-root,
#usage-admin-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.usage-admin-root[hidden],
#usage-admin-root[hidden] {
  display: none !important;
}
.usage-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.usage-panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 24px));
  max-height: min(86vh, 900px);
  overflow: auto;
  background: #161616;
  border: 1px solid #444;
  border-radius: 6px;
  color: #ddd;
  padding: 14px 16px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.usage-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.usage-close {
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.usage-login-form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.usage-login-form input,
.usage-password {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid #555;
  border-radius: 3px;
  background: #0e0e0e;
  color: #eee;
  padding: 0 10px;
}
.usage-err {
  color: #e74c3c;
  font-size: 12px;
  margin: 0;
}
.usage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.usage-toolbar select,
.usage-days {
  margin: 0 4px;
  background: #0e0e0e;
  color: #eee;
  border: 1px solid #555;
  border-radius: 3px;
  height: 28px;
}
.usage-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.usage-card {
  background: #101010;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 8px 6px;
  text-align: center;
}
.usage-card b {
  display: block;
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 2px;
}
.usage-card span {
  font-size: 11px;
  color: #888;
}
.usage-dash h3 {
  margin: 14px 0 6px;
  font-size: 13px;
  color: #bbb;
  font-weight: 600;
}
.usage-table-wrap {
  overflow: auto;
  border: 1px solid #333;
  border-radius: 4px;
}
.usage-recent-wrap {
  max-height: 180px;
}
.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.usage-table th,
.usage-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #2a2a2a;
  text-align: left;
  white-space: nowrap;
}
.usage-table th {
  background: #1c1c1c;
  color: #aaa;
  font-weight: 500;
  position: sticky;
  top: 0;
}
.usage-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #777;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .usage-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
