/* ai-kw-generator 深色主题 — Dashboard */

[data-dashboard-section] .dashboard-section__hidden,
[data-dashboard-panel-root] .dashboard-section__hidden {
  display: none !important;
}

body.dashboard-modal-open {
  overflow: hidden;
}

[data-dashboard-section] .dashboard-section__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  [data-dashboard-section] .dashboard-section__layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }
}

[data-dashboard-section] .dashboard-section__mobile-bar {
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  [data-dashboard-section] .dashboard-section__mobile-bar {
    display: none;
  }
}

[data-dashboard-section] .dashboard-section__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-ibm-plex-mono, inherit);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

[data-dashboard-section] .dashboard-section__menu-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

[data-dashboard-section] .dashboard-sidebar {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(52.78% 57.9% at 3.87% 7.86%, var(--color-background-3, #1a1a2e), var(--color-background-5, #0f0f1a));
}

@media (max-width: 1023px) {
  [data-dashboard-section] .dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: min(320px, 88vw);
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }

  [data-dashboard-section] .dashboard-sidebar.dashboard-sidebar--open {
    transform: translateX(0);
  }
}

[data-dashboard-section] .dashboard-sidebar__close {
  display: block;
  margin-bottom: 0.75rem;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

[data-dashboard-section] .dashboard-sidebar__close:hover {
  color: #fff;
}

@media (min-width: 1024px) {
  [data-dashboard-section] .dashboard-sidebar__close {
    display: none;
  }
}

[data-dashboard-section] .dashboard-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

[data-dashboard-section] .dashboard-profile__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  background-position: center;
  background-size: cover;
  color: #fff;
  font-family: var(--font-sora, inherit);
  font-size: 1.75rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

[data-dashboard-section] .dashboard-profile__avatar:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

[data-dashboard-section] .dashboard-profile__avatar--image {
  color: transparent;
}

[data-dashboard-section] .dashboard-profile__name {
  margin: 0;
  color: #fff;
  font-family: var(--font-sora, inherit);
  font-size: 1.0625rem;
  font-weight: 400;
}

[data-dashboard-section] .dashboard-profile__email {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-inter-tight, inherit);
  font-size: 0.875rem;
}

[data-dashboard-section] .dashboard-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

[data-dashboard-section] .dashboard-nav__link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-inter-tight, inherit);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

[data-dashboard-section] .dashboard-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

[data-dashboard-section] .dashboard-nav__link--active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 500;
}

[data-dashboard-section] .dashboard-nav__link--logout {
  margin-top: 0.5rem;
  color: rgba(248, 113, 113, 0.85);
}

[data-dashboard-section] .dashboard-nav__link--logout:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

[data-dashboard-section] .dashboard-panel,
[data-dashboard-panel-root] .dashboard-panel {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(52.78% 57.9% at 3.87% 7.86%, var(--color-background-3, #1a1a2e), var(--color-background-5, #0f0f1a));
  color: rgba(255, 255, 255, 0.85);
}

[data-dashboard-section] .dashboard-panel__header,
[data-dashboard-panel-root] .dashboard-panel__header {
  margin-bottom: 1.25rem;
}

[data-dashboard-section] .dashboard-panel__header--standalone,
[data-dashboard-panel-root] .dashboard-panel__header--standalone {
  margin-bottom: 1.5rem;
}

[data-dashboard-section] .dashboard-panel__title,
[data-dashboard-panel-root] .dashboard-panel__title {
  margin: 0 0 0.35rem;
  color: #fff;
  font-family: var(--font-sora, inherit);
  font-size: 1.25rem;
  font-weight: 400;
}

[data-dashboard-section] .dashboard-panel__desc,
[data-dashboard-panel-root] .dashboard-panel__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-inter-tight, inherit);
  font-size: 0.9375rem;
}

[data-dashboard-section] .dashboard-panel__loading p,
[data-dashboard-panel-root] .dashboard-panel__loading p,
[data-dashboard-section] .dashboard-panel__empty p,
[data-dashboard-panel-root] .dashboard-panel__empty p {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-inter-tight, inherit);
}

[data-dashboard-section] .dashboard-panel__table-wrap,
[data-dashboard-panel-root] .dashboard-panel__table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-dashboard-section] .dashboard-table,
[data-dashboard-panel-root] .dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-inter-tight, inherit);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

[data-dashboard-section] .dashboard-table th,
[data-dashboard-section] .dashboard-table td,
[data-dashboard-panel-root] .dashboard-table th,
[data-dashboard-panel-root] .dashboard-table td {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

[data-dashboard-section] .dashboard-table th,
[data-dashboard-panel-root] .dashboard-table th {
  font-family: var(--font-ibm-plex-mono, inherit);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

[data-dashboard-section] .dashboard-table tbody tr:last-child td,
[data-dashboard-panel-root] .dashboard-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 1023px) {
  [data-dashboard-section] .dashboard-panel__table-wrap,
  [data-dashboard-panel-root] .dashboard-panel__table-wrap {
    display: none;
  }
}

@media (min-width: 1024px) {
  [data-dashboard-section] .dashboard-panel__cards,
  [data-dashboard-panel-root] .dashboard-panel__cards {
    display: none !important;
  }
}

[data-dashboard-section] .dashboard-panel__cards,
[data-dashboard-panel-root] .dashboard-panel__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

[data-dashboard-section] .dashboard-list-card,
[data-dashboard-panel-root] .dashboard-list-card {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
}

[data-dashboard-section] .dashboard-list-card strong,
[data-dashboard-panel-root] .dashboard-list-card strong {
  color: #fff;
}

[data-dashboard-section] .dashboard-list-card__header,
[data-dashboard-panel-root] .dashboard-list-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

[data-dashboard-section] .dashboard-list-card__meta,
[data-dashboard-panel-root] .dashboard-list-card__meta {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

[data-dashboard-section] .dashboard-list-card__body,
[data-dashboard-panel-root] .dashboard-list-card__body {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

[data-dashboard-section] .dashboard-panel__pagination,
[data-dashboard-panel-root] .dashboard-panel__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-inter-tight, inherit);
  font-size: 0.875rem;
}

[data-dashboard-section] .dashboard-status,
[data-dashboard-panel-root] .dashboard-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

[data-dashboard-section] .dashboard-status--success,
[data-dashboard-panel-root] .dashboard-status--success {
  background: rgba(74, 222, 128, 0.18);
  color: #bbf7d0;
}

[data-dashboard-section] .dashboard-status--warning,
[data-dashboard-panel-root] .dashboard-status--warning {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
}

[data-dashboard-section] .dashboard-status--danger,
[data-dashboard-panel-root] .dashboard-status--danger {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

[data-dashboard-section] .dashboard-status--info,
[data-dashboard-panel-root] .dashboard-status--info {
  background: rgba(34, 211, 238, 0.18);
  color: #a5f3fc;
}

[data-dashboard-section] .dashboard-address-list,
[data-dashboard-panel-root] .dashboard-address-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

[data-dashboard-section] .dashboard-address-card,
[data-dashboard-panel-root] .dashboard-address-card {
  position: relative;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
}

[data-dashboard-section] .dashboard-address-card--default,
[data-dashboard-panel-root] .dashboard-address-card--default {
  border-color: rgba(255, 255, 255, 0.28);
}

[data-dashboard-section] .dashboard-address-card__title,
[data-dashboard-panel-root] .dashboard-address-card__title {
  margin: 0 0 0.5rem;
  color: #fff;
  font-family: var(--font-sora, inherit);
  font-size: 1rem;
  font-weight: 400;
}

[data-dashboard-section] .dashboard-address-card__body,
[data-dashboard-panel-root] .dashboard-address-card__body {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  line-height: 1.5;
}

[data-dashboard-section] .dashboard-address-card__badge,
[data-dashboard-panel-root] .dashboard-address-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: var(--color-opai-lemon, #d4ff5c);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

[data-dashboard-section] .dashboard-address-card__actions,
[data-dashboard-panel-root] .dashboard-address-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

[data-dashboard-section] .dashboard-form,
[data-dashboard-panel-root] .dashboard-form,
[data-dashboard-section] .dashboard-form-grid,
[data-dashboard-panel-root] .dashboard-form-grid {
  display: grid;
  gap: 0.85rem;
}

[data-dashboard-section] .dashboard-form label,
[data-dashboard-panel-root] .dashboard-form label,
[data-dashboard-section] .dashboard-form-grid label,
[data-dashboard-panel-root] .dashboard-form-grid label {
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-inter-tight, inherit);
  font-size: 0.875rem;
}

[data-dashboard-section] .dashboard-form-check,
[data-dashboard-panel-root] .dashboard-form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

[data-dashboard-section] .dashboard-form-check input,
[data-dashboard-panel-root] .dashboard-form-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #fff;
}

[data-dashboard-section] .form-input,
[data-dashboard-panel-root] .form-input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--font-inter-tight, inherit);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-dashboard-section] .form-input::placeholder,
[data-dashboard-panel-root] .form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

[data-dashboard-section] .form-input:focus,
[data-dashboard-panel-root] .form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

[data-dashboard-section] select.form-input,
[data-dashboard-panel-root] select.form-input {
  cursor: pointer;
}

[data-dashboard-section] select.form-input option,
[data-dashboard-panel-root] select.form-input option {
  background: var(--color-background-5, #0f0f1a);
  color: #fff;
}

[data-dashboard-section] .btn,
[data-dashboard-panel-root] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  font-family: var(--font-ibm-plex-mono, inherit);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

[data-dashboard-section] .btn.btn-primary,
[data-dashboard-panel-root] .btn.btn-primary {
  border-radius: 999px;
  background: var(--color-background-7, #fcfcfc);
  color: var(--color-background-14, #0a0a0a);
}

[data-dashboard-section] .btn.btn-primary:hover,
[data-dashboard-panel-root] .btn.btn-primary:hover {
  opacity: 0.9;
}

[data-dashboard-section] .btn.btn-secondary,
[data-dashboard-panel-root] .btn.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

[data-dashboard-section] .btn.btn-secondary:hover,
[data-dashboard-panel-root] .btn.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

[data-dashboard-section] .btn.btn-sm,
[data-dashboard-panel-root] .btn.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
}

[data-dashboard-section] .btn.btn-md,
[data-dashboard-panel-root] .btn.btn-md {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}

[data-dashboard-section] .btn:disabled,
[data-dashboard-panel-root] .btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

[data-dashboard-section] .dashboard-alert,
[data-dashboard-panel-root] .dashboard-alert {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

[data-dashboard-section] .dashboard-alert--error,
[data-dashboard-panel-root] .dashboard-alert--error {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

[data-dashboard-section] .dashboard-alert--success,
[data-dashboard-panel-root] .dashboard-alert--success {
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
  color: #bbf7d0;
}

[data-dashboard-section] .dashboard-modal,
[data-dashboard-panel-root] .dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

[data-dashboard-section] .dashboard-modal__backdrop,
[data-dashboard-panel-root] .dashboard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

[data-dashboard-section] .dashboard-modal__dialog,
[data-dashboard-panel-root] .dashboard-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 800px);
  overflow: auto;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(52.78% 57.9% at 3.87% 7.86%, var(--color-background-3, #1a1a2e), var(--color-background-5, #0f0f1a));
  color: rgba(255, 255, 255, 0.85);
}

[data-dashboard-section] .dashboard-modal__dialog--lg,
[data-dashboard-panel-root] .dashboard-modal__dialog--lg {
  width: min(760px, 100%);
}

[data-dashboard-section] .dashboard-modal__header,
[data-dashboard-panel-root] .dashboard-modal__header,
[data-dashboard-section] .dashboard-modal__footer,
[data-dashboard-panel-root] .dashboard-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

[data-dashboard-section] .dashboard-modal__body,
[data-dashboard-panel-root] .dashboard-modal__body {
  margin: 1rem 0;
}

[data-dashboard-section] .dashboard-modal__footer,
[data-dashboard-panel-root] .dashboard-modal__footer {
  justify-content: flex-end;
  margin-top: 0.5rem;
}

[data-dashboard-section] .dashboard-modal__header h3,
[data-dashboard-panel-root] .dashboard-modal__header h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-sora, inherit);
  font-size: 1.125rem;
  font-weight: 400;
}

[data-dashboard-section] .dashboard-modal__close,
[data-dashboard-panel-root] .dashboard-modal__close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

[data-dashboard-section] .dashboard-modal__close:hover,
[data-dashboard-panel-root] .dashboard-modal__close:hover {
  color: #fff;
}

[data-dashboard-section] .dashboard-detail-row,
[data-dashboard-panel-root] .dashboard-detail-row {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-dashboard-section] .dashboard-detail-label,
[data-dashboard-panel-root] .dashboard-detail-label {
  flex-shrink: 0;
  width: 140px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

[data-dashboard-section] .dashboard-detail-value,
[data-dashboard-panel-root] .dashboard-detail-value {
  color: #fff;
}

[data-dashboard-section] .dashboard-profile-form__avatar-row,
[data-dashboard-panel-root] .dashboard-profile-form__avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

[data-dashboard-section] .dashboard-profile-form__preview,
[data-dashboard-panel-root] .dashboard-profile-form__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  background-position: center;
  background-size: cover;
  color: #fff;
  font-weight: 600;
}

[data-dashboard-section] .dashboard-profile-form__avatar-actions,
[data-dashboard-panel-root] .dashboard-profile-form__avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
