/* Melody license admin — the same editorial grid, without changing admin behavior. */
:root {
  --page: #f5f5f5;
  --surface: rgba(255,255,255,.94);
  --surface-solid: #ffffff;
  --surface-blue: #f5f5f5;
  --line: #d3d3d3;
  --line-strong: #141413;
  --text: #141413;
  --muted: #555552;
  --blue: #98b8fe;
  --blue-deep: #141413;
  --blue-pale: #98b8fe;
  --pink: #fb44ee;
  --pink-deep: #9c1958;
  --green: #e4f0eb;
  --green-deep: #286a58;
  --yellow: #f5f5f5;
  --yellow-deep: #76520d;
  --shadow: none;
  --shadow-soft: none;
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 4px;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

html { background: #f5f5f5; }
body {
  color: #141413;
  background: #f5f5f5;
  font-size: 16px;
}
::selection { color: #ffffff; background: #141413; }
:focus-visible { outline-color: #98b8fe; }
.cloud-background::after { background: linear-gradient(115deg, rgba(245,245,245,.9), rgba(245,245,245,.64), rgba(245,245,245,.86)); }
.cloud-background video { opacity: .58; }
.eyebrow, .section-kicker {
  color: #141413;
  font-family: "Menlo", "SFMono-Regular", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: .17em;
}

.button, .icon-button, .day-option {
  min-height: 44px;
  color: #141413;
  background: #ffffff;
  border: 1px solid #141413;
  border-radius: 4px;
  box-shadow: none;
  transition: color .2s ease, background-color .2s ease, border-radius .2s ease, transform .2s ease;
}
.button:hover:not(:disabled), .day-option:hover:not(:disabled), .icon-button:hover:not(:disabled) {
  color: #ffffff;
  background: #141413;
  border-radius: 100px;
  transform: none;
}
.button.primary {
  color: #141413;
  background: #fb44ee;
  border-color: #141413;
  box-shadow: none;
}
.button.primary:hover:not(:disabled) { color: #ffffff; background: #141413; }
.button.secondary { color: #141413; background: #ffffff; border-color: #141413; }
.button.secondary:hover:not(:disabled) { color: #ffffff; background: #141413; border-color: #141413; }
.button.danger { color: #9c1958; background: #ffffff; border-color: #9c1958; }
.button.danger:hover:not(:disabled) { color: #ffffff; background: #9c1958; }
.field { color: #141413; }
.field input {
  min-height: 48px;
  color: #141413;
  background: #ffffff;
  border: 1px solid #8b8b88;
  border-radius: 0;
  font-size: 16px;
}
.field input:focus { border-color: #141413; outline: 2px solid #98b8fe; outline-offset: 1px; box-shadow: none; }
.field input::placeholder { color: #6b6b68; }
.password-control .icon-button { color: #141413; }
.form-message { color: #9c1958; }
.field-help, .muted { color: #555552; }

.login-card {
  width: min(1060px, 100%);
  overflow: hidden;
  background: rgba(255,255,255,.96);
  border: 1px solid #141413;
  border-radius: 0;
  box-shadow: 10px 10px 0 rgba(152,184,254,.72);
}
.login-art {
  background: #98b8fe;
  border-right: 1px solid #141413;
}
.login-art::after { border-color: rgba(20,20,19,.3); border-radius: 0; transform: rotate(18deg); }
.brand-lockup, .sidebar-brand strong, .mobile-brand {
  color: #141413;
  font-family: "Copperplate", "Copperplate Gothic Light", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.brand-lockup img, .sidebar-brand img, .mobile-brand img { padding: 3px; object-fit: contain; background: #ffffff; border: 1px solid #141413; }
.brand-lockup small { color: #141413; font-family: "Menlo", "Consolas", monospace; }
.login-art-copy h2 { color: #141413; font-family: "Copperplate", "Copperplate Gothic Light", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(30px, 3.5vw, 46px); }
.login-art-copy p, .art-note { color: #141413; }
.login-mascot { filter: none; }
.art-note { background: rgba(255,255,255,.62); border: 1px solid #141413; border-radius: 0; }
.security-note { color: #555552; }

.admin-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; padding: 20px; }
.sidebar {
  background: rgba(255,255,255,.95);
  border: 1px solid #141413;
  border-radius: 0;
  box-shadow: none;
}
.sidebar-brand { border-bottom-color: #141413; }
.side-nav { gap: 7px; }
.nav-link {
  color: #141413;
  border: 1px solid #141413;
  border-radius: 0;
  font-size: 14px;
}
.nav-link:hover { color: #141413; background: #98b8fe; border-color: #141413; }
.nav-link.active { color: #ffffff; background: #141413; border-color: #141413; }
.sidebar-bottom p { color: #555552; font-family: "Menlo", "Consolas", monospace; }
.workspace-header { border-bottom: 1px solid #141413; }
.workspace-header h1 { color: #141413; font-family: "Copperplate", "Copperplate Gothic Light", "PingFang SC", "Microsoft YaHei", sans-serif; }
.session-chip, .soft-badge {
  color: #141413;
  background: #98b8fe;
  border: 1px solid #141413;
  border-radius: 0;
  font-family: "Menlo", "Consolas", "PingFang SC", monospace;
}
.online-dot { background: #141413; box-shadow: none; }

.stats-grid { gap: 0; border-top: 1px solid #141413; border-left: 1px solid #141413; }
.stat-card, .stat-total, .stat-active, .stat-unused, .stat-revoked {
  min-height: 120px;
  background: rgba(255,255,255,.92);
  border: 0;
  border-right: 1px solid #141413;
  border-bottom: 1px solid #141413;
  border-radius: 0;
  box-shadow: none;
}
.stat-card:nth-child(even) { background: rgba(245,245,245,.94); }
.stat-card strong { color: #141413; font-family: "Menlo", "Consolas", monospace; }
.stat-card span:not(.stat-icon) { color: #555552; }
.stat-icon, .stat-total .stat-icon, .stat-active .stat-icon, .stat-unused .stat-icon, .stat-revoked .stat-icon {
  color: #141413;
  background: #98b8fe;
  border: 1px solid #141413;
  border-radius: 0;
}
.stat-active .stat-icon, .stat-revoked .stat-icon { background: #fb44ee; }

.dashboard-grid { gap: 20px; margin-top: 20px; }
.panel {
  background: rgba(255,255,255,.94);
  border: 1px solid #141413;
  border-radius: 0;
  box-shadow: none;
}
.flow-panel { background: rgba(245,245,245,.95); }
.day-option { color: #141413; background: #ffffff; border-color: #8b8b88; border-radius: 0; }
.day-option.selected { color: #ffffff; background: #141413; border-color: #141413; box-shadow: none; }
.flow-list li:not(:last-child)::after { background: #141413; }
.flow-list li > span { color: #141413; background: #98b8fe; border: 1px solid #141413; border-radius: 0; }
.flow-list p { color: #555552; }

.cards-panel, .password-panel { margin-top: 20px; }
.license-card { background: #ffffff; border: 1px solid #8b8b88; border-radius: 0; }
.license-card:hover { border-color: #141413; box-shadow: none; }
.license-hint { color: #141413; font-family: "Menlo", "Consolas", monospace; }
.status-badge { border: 1px solid currentColor; border-radius: 0; }
.status-active { color: #286a58; background: #e4f0eb; }
.status-unused { color: #141413; background: #98b8fe; }
.status-revoked { color: #9c1958; background: #ffffff; }
.status-expired { color: #555552; background: #f5f5f5; }
.license-meta dt { color: #555552; }
.license-meta dd { color: #141413; }
.license-actions { border-top-color: #141413; }
.loading-dot { border-color: #d3d3d3; border-top-color: #141413; border-radius: 0; }
.empty-state img { filter: none; }

.dialog {
  color: #141413;
  background: #ffffff;
  border: 1px solid #141413;
  border-radius: 0;
  box-shadow: 10px 10px 0 rgba(152,184,254,.72);
}
.dialog::backdrop { background: rgba(20,20,19,.42); }
.dialog-decoration, .confirm-symbol { color: #141413; background: #98b8fe; border: 1px solid #141413; border-radius: 0; }
.confirm-symbol { background: #fb44ee; }
.generated-card { color: #141413; background: #f5f5f5; border: 1px dashed #141413; border-radius: 0; }
.toast { color: #141413; background: #ffffff; border: 1px solid #141413; border-radius: 0; box-shadow: 5px 5px 0 rgba(152,184,254,.65); }
.toast.success { color: #286a58; }
.toast.error { color: #9c1958; }
.workspace-footer { color: #555552; font-family: "Menlo", "Consolas", "PingFang SC", monospace; letter-spacing: .04em; }
.workspace-footer [data-brand-watermark] { color: #141413; font-weight: 700; }

@media (max-width: 1180px) {
  .admin-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .login-art { display: none; }
  .login-card { box-shadow: 7px 7px 0 rgba(152,184,254,.72); }
  .admin-layout { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .sidebar { border-radius: 0; }
  .workspace-header { padding: 18px 6px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .admin-layout { padding: 8px; }
  .stats-grid { gap: 0; }
  .stat-card { min-height: 105px; padding: 15px; border-radius: 0; }
  .panel { padding: 18px; border-radius: 0; }
  .dialog { border-radius: 0; box-shadow: 5px 5px 0 rgba(152,184,254,.72); }
}
@media (prefers-reduced-motion: reduce) {
  .cloud-background video { display: none; }
  .button, .day-option, .icon-button { transition: none; }
}
