/* plugins/AI 額度監控/frontend/aiQuota.css */
.aiQuota-header-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.aiQuota-header-wrap .aiQuota-bar {
  flex: 1;
  min-width: 0;
}
.aiQuota-gear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
  flex-shrink: 0;
  margin-top: 4px;
}
.aiQuota-gear:hover {
  background: var(--accent);
  color: var(--foreground);
}
.aiQuota-gear svg {
  width: 14px;
  height: 14px;
}
.aiQuota-bar {
  padding: 6px 0 8px;
  cursor: pointer;
  user-select: none;
}
.aiQuota-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.aiQuota-label {
  font-size: 11px;
  color: var(--muted-foreground);
}
.aiQuota-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}
.aiQuota-dot {
  font-size: 12px;
  color: var(--muted-foreground);
  animation: aiQuota-pulse 1.5s ease-in-out infinite;
}
@keyframes aiQuota-pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
.aiQuota-sub {
  font-size: 10px;
  color: var(--muted-foreground);
  font-style: italic;
}
.aiQuota-noset {
  opacity: 0.7;
}
.aiQuota-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.aiQuota-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.aiQuota-fill-low {
  background: var(--destructive);
}
.aiQuota-warn {
  font-size: 10px;
  color: var(--destructive);
  margin-top: 3px;
  font-weight: 500;
}
.aiQuota-low .aiQuota-value {
  color: var(--destructive);
}
.aiQuota-dialog {
  max-width: 380px;
}
.aiQuota-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0 0 16px;
  line-height: 1.5;
}
.aiQuota-current-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 16px;
  background: var(--background);
  border-radius: 8px;
  margin-bottom: 16px;
}
.aiQuota-current-label {
  font-size: 13px;
  color: var(--muted-foreground);
  flex: 1;
}
.aiQuota-current-big {
  font-size: 28px;
  font-weight: 700;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.aiQuota-current-unit {
  font-size: 13px;
  color: var(--muted-foreground);
}
.aiQuota-field {
  margin-bottom: 16px;
}
.aiQuota-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--foreground);
}
.aiQuota-field input[type=number] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}
.aiQuota-field input[type=number]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--ring);
}
.aiQuota-threshold-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aiQuota-threshold-row input[type=range] {
  flex: 1;
  accent-color: var(--primary);
}
.aiQuota-threshold-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.aiQuota-hint {
  display: block;
  font-size: 11px;
  color: var(--muted-foreground);
  margin-top: 4px;
}
.aiQuota-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.aiQuota-daily-wrap {
  padding: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.aiQuota-summary-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.aiQuota-summary-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.aiQuota-summary-label {
  font-size: 12px;
  color: var(--muted-foreground);
}
.aiQuota-summary-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.aiQuota-summary-sub {
  font-size: 11px;
  color: var(--muted-foreground);
}
.aiQuota-toggle-row {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.aiQuota-chart-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
.aiQuota-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.aiQuota-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.aiQuota-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.aiQuota-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.aiQuota-legend-label {
  font-size: 11px;
  color: var(--muted-foreground);
}
.aiQuota-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted-foreground);
}
.aiQuota-empty p {
  margin: 0 0 4px;
  font-size: 14px;
}
.aiQuota-empty-sub {
  font-size: 12px !important;
}
.aiQuota-ranking-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.aiQuota-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 12px;
}
.aiQuota-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aiQuota-ranking-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aiQuota-ranking-idx {
  width: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-align: center;
  flex-shrink: 0;
}
.aiQuota-ranking-name {
  width: 90px;
  font-size: 12px;
  color: var(--foreground);
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aiQuota-ranking-bar-wrap {
  flex: 1;
  min-width: 0;
  height: 10px;
  background: var(--background);
  border-radius: 5px;
  overflow: hidden;
}
.aiQuota-ranking-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease;
}
.aiQuota-ranking-count {
  width: 32px;
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
