/* Minimal light admin theme: neutral surfaces with a violet-blue action color. */
:root {
  color-scheme: light;
  --page: #f5f6fa;
  --card: #ffffff;
  --ink: #303133;
  --muted: #9297a3;
  --line: #ebeef3;
  --coral: #6572ee;
  --coral-hover: #5864dc;
  --coral-light: #f0f1ff;
  --green: #35b887;
  --ui-accent: #6572ee;
  --ui-accent-soft: #f0f1ff;
  --ui-accent-line: #dfe2ff;
  --ui-line: #ebeef3;
  --ui-secondary: #606266;
  --ui-surface-hover: #f7f7fc;
  --wb-tag-bg: #f2f3ff;
  --wb-tag-text: #6572ee;
  --wb-tag-border: #e2e5ff;
  --wb-tag-active: #6d70e8;
  --wb-tag-active-hover: #5c60d8;
}
body, .main, .login-screen { background: #f5f6fa; color: #303133; }
body { font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, sans-serif; }
.brand-mark { color: #fff; background: linear-gradient(135deg, #9182f4, #5b70ee); }
.login-card { border: 1px solid #ebeef3; }
.login-card .button.primary { min-height: 42px; }

.topbar {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #ebeef3;
  box-shadow: 0 2px 12px rgba(38, 43, 67, .025);
  backdrop-filter: blur(12px);
}
.topbar-label, .breadcrumb, .topbar .text-button { color: #7c8190; }
.topbar .material-code { color: #6572ee; border-color: #e2e5ff; background: #f5f5ff; }
.theme-trigger { border-color: #eceef4; background: #fff; color: #7c8190; border-radius: 8px; }
.theme-trigger-dot { background: #7378ec; }

#sidebar {
  --ui-surface: #ffffff;
  --ui-surface-soft: #f7f7fb;
  --ui-surface-hover: #f5f5fb;
  --ui-text: #303133;
  --ui-secondary: #606266;
  --ui-muted: #9a9fad;
  --ui-line: #ebeef3;
  --ui-border: #e4e7ef;
  --ui-accent: #6572ee;
  --ui-accent-soft: #f0f1ff;
  --ui-accent-line: transparent;
  color-scheme: light;
  background: #fff;
  color: #606266;
  border-right: 1px solid #ebeef3;
  padding: 0 13px;
}
#sidebar .sidebar-brand { min-height: 82px; margin: 0; padding: 20px 8px; gap: 11px; background: #fff; }
#sidebar .sidebar-brand .brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #9182f4, #5b70ee);
  box-shadow: 0 6px 15px rgba(103, 111, 235, .2);
  font-size: 16px;
}
#sidebar .sidebar-brand strong { color: #303133; font-size: 16px; font-weight: 650; }
#sidebar .sidebar-brand div > span { color: #a0a4af; font-size: 10px; }
#sidebar .sidebar-brand .icon-button, #sidebar .sidebar-bottom, #sidebar .text-button { color: #9297a3; }
#sidebar .space-nav { gap: 5px; margin: 0; padding: 4px 0 14px; scrollbar-color: #d8dbe5 #fff; scrollbar-gutter: auto; }
#sidebar .space-nav::-webkit-scrollbar-track { background: #fff; }
#sidebar .space-nav::-webkit-scrollbar-thumb { background: #d8dbe5; }
#sidebar .space-nav > button,
#sidebar .space-nav .sidebar-menu-heading > button:first-child {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #666b78;
  background: transparent;
  font-size: 13px;
  line-height: 22px;
  box-shadow: none;
}
#sidebar .sidebar-menu-heading:hover,
#sidebar .sidebar-menu-group.is-current > .sidebar-menu-heading,
#sidebar .space-nav > button:hover { color: #5d68df; background: #f7f7fc; }
#sidebar .space-nav > button[aria-current=page],
#sidebar .space-nav .sidebar-menu-heading > button[aria-current=page] {
  color: #5e69e5;
  border-color: #e5e7ff;
  background: #f0f1ff;
  box-shadow: none;
  font-weight: 600;
}
#sidebar .space-nav button[aria-current=page] .sidebar-section-icon { color: #6572ee; }
#sidebar .sidebar-section-icon { width: 17px; height: 17px; color: #9da2b1; }
#sidebar .space-nav .sidebar-menu-heading > .sidebar-menu-toggle { min-height: 44px; color: #a2a6b1; background: transparent; }
#sidebar .viral-submenu { margin: 3px 0 6px; padding: 4px; border-radius: 8px; background: #fafafd; }
#sidebar .space-nav :is(.viral-submenu, .library-track-submenu) button { min-height: 38px; padding: 8px 10px 8px 40px; border-radius: 6px; color: #858a98; background: transparent; font-size: 12px; line-height: 20px; }
#sidebar .space-nav :is(.viral-submenu, .library-track-submenu) button:hover { color: #5d68df; background: #f0f1ff; }
#sidebar .space-nav :is(.viral-submenu, .library-track-submenu) button[aria-pressed=true],
#sidebar .space-nav :is(.viral-submenu, .library-track-submenu) button[aria-pressed=true]:hover { color: #5d68df; background: #ebeeff; box-shadow: none; }
#sidebar .sidebar-auxiliary { margin-top: 4px; color: #777c89; }
#sidebar .sidebar-auxiliary > summary { padding: 12px 13px; border-radius: 8px; }
#sidebar .sidebar-bottom { margin: 0; padding: 16px 8px; border-color: #ebeef3; color: #9a9fad; }
#sidebar .session-dot { background: #55c9a2; }
#sidebar button:focus-visible { outline-color: #8a91f3; }
#sidebar > #new-project { margin: 2px 0 15px; }
#sidebar .search-box { background: #f7f7fa; border-color: #eceef3; border-radius: 8px; }
#sidebar .list-heading, #sidebar .project-item { color: #858a96; }
#sidebar .project-item.selected { color: #5d68df; background: #f0f1ff; border-color: #e2e5ff; }

.button, .el-button {
  border-radius: 7px;
  font-weight: 500;
  box-shadow: none;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s;
}
.button.primary,
.el-button--primary,
.note-type-save {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #8378f0, #5c70ee);
  box-shadow: 0 4px 11px rgba(100, 108, 232, .16);
}
.button.primary:hover:not(:disabled),
.el-button--primary:hover:not(.is-disabled),
.el-button--primary:focus:not(.is-disabled),
.note-type-save:hover {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #756bea, #5064e3);
  box-shadow: 0 5px 14px rgba(100, 108, 232, .22);
}
.button.primary:active:not(:disabled), .el-button--primary:active:not(.is-disabled) { transform: translateY(1px); }
.button.outline, .button.subtle, .el-button--default, .note-type-modify, .note-type-cancel {
  border-color: #e2e5ed;
  color: #666b78;
  background: #fff;
}
.button.outline:hover:not(:disabled), .button.subtle:hover:not(:disabled), .el-button--default:hover:not(.is-disabled) {
  border-color: #cfd4ff;
  color: #5e69df;
  background: #f6f6ff;
}
.el-button--primary.is-plain { color: #6572ee; border-color: #dfe2ff; background: #f3f4ff; box-shadow: none; }
.el-button--primary.is-plain:hover { color: #fff; background: #6b75e9; }
.el-button--danger.is-plain { color: #f06d78; border-color: #ffd9dd; background: #fff7f8; }

input, textarea, select, .el-input__inner, .el-textarea__inner { border-radius: 7px; }
input:focus, textarea:focus, select:focus, .el-input__inner:focus, .el-textarea__inner:focus {
  border-color: #9ca4f5 !important;
  box-shadow: 0 0 0 3px rgba(103, 114, 238, .09) !important;
}
.card, .modal, .login-card, .conversion-card, .series42-vue-day {
  border-color: #ebeef3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(40, 45, 66, .035);
}
.card-heading { border-color: #f0f1f5; }
.viral-table, .series42-table, .series42-vue-table { border-color: #ebeef3; }
.viral-table th, .series42-table th, .series42-vue-table th.el-table__cell { color: #9297a3; background: #fafbfc; font-weight: 500; }
.viral-table td, .series42-table td, .series42-vue-table .el-table__cell { border-color: #f0f1f5; }
.viral-table tbody tr:hover, .series42-vue-table .el-table__body tr:hover > td { background: #fafaff !important; }
.track-filter-chip[aria-pressed=true], .track-choice[aria-pressed=true], .library-categories .track-filter-chip[aria-pressed=true] { box-shadow: none; }

#series42-panel { max-width: 1680px; padding: 24px; }
.series42-vue-titlebar h1 { color: #303133; font-size: 23px; font-weight: 650; }
.series42-vue-round, .series42-vue-summary { color: #9297a3; }
.series42-vue-day { padding: 17px 18px; margin-bottom: 16px; }
.series42-vue-day-heading { margin-bottom: 12px; }
.series42-vue-day-heading h2 { color: #4b505d; font-size: 15px; }
.series42-vue-table { border-radius: 8px; }
.series42-vue-note-title { color: #404550 !important; }
.series42-vue-note-title:hover { color: #6572ee !important; }
.series42-vue-days .el-button--primary.is-plain { color: #fff; border-color: transparent; background: linear-gradient(135deg, #8378f0, #5c70ee); }
.series42-vue-batch { border-color: #d8f0e5; border-left-color: #55bd93; border-radius: 9px; background: #f5fcf8; }

.series42-dialog {
  box-sizing: border-box;
  width: min(860px, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border: 0;
  border-radius: 14px;
  color: #303133;
  background: #fff;
  box-shadow: 0 20px 60px rgba(30, 34, 55, .18);
}
.series42-dialog::backdrop { background: rgba(35, 39, 55, .36); backdrop-filter: blur(3px); }
.series42-dialog .series42-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.series42-dialog .series42-head h2 { font-size: 20px; font-weight: 650; }
.series42-dialog .series42-head > .button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #9297a3; background: #f5f6f9; font-size: 20px; }
.series42-collect-title { padding: 12px 14px; border-left: 3px solid #7780ee; border-radius: 6px; color: #5f6470; background: #f7f7fb; line-height: 1.7; overflow-wrap: anywhere; }
.series42-form-field { margin-top: 18px; }
.series42-form-field > label, .series42-field { display: block; margin-bottom: 8px; color: #565b68; font-size: 13px; font-weight: 600; }
.series42-account-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.series42-account-choices .button { min-height: 43px; border-color: #e6e8f0; color: #656a77; background: #fafafd; }
.series42-account-choices .button[aria-pressed=true] { border-color: #bfc5ff; color: #5965df; background: #eff1ff; box-shadow: inset 0 0 0 1px #dfe2ff; font-weight: 600; }
.series42-plan-controls { display: flex; align-items: center; gap: 9px; }
.series42-plan-controls select { width: 170px; height: 40px; padding: 0 10px; border: 1px solid #e0e3eb; background: #fff; }
.series42-plan-controls input { width: 110px; height: 40px; padding: 0 10px; border: 1px solid #e0e3eb; background: #fff; }
.series42-plan-controls > span { color: #858a96; }
.series42-form-hint, .series42-collect-message { margin-top: 10px; color: #9297a3; font-size: 12px; line-height: 1.7; }
.series42-pick-days { display: grid; gap: 8px; max-height: 330px; overflow-y: auto; margin-top: 16px; padding-right: 3px; }
.series42-day-pick { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #f0f1f5; border-radius: 8px; background: #fafbfc; }
.series42-day-pick > strong { color: #737986; font-size: 12px; font-weight: 600; }
.series42-day-pick-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.series42-day-pick-slots .button { min-width: 0; padding: 7px 4px; border-color: #e7e9f0; color: #7d828e; background: #fff; font-size: 11px; white-space: normal; }
.series42-day-pick-slots .button[aria-pressed=true] { border-color: #737eee; color: #fff; background: #6d78ea; }
.series42-day-pick-slots .button:disabled { color: #bdc0c9; background: #f2f3f6; opacity: 1; }
.series42-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 17px; border-top: 1px solid #ebeef3; }
.series42-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.series42-field { margin: 0; }
.series42-field select, .series42-field input { width: 100%; height: 40px; margin-top: 7px; padding: 0 10px; border: 1px solid #e0e3eb; }

@media (max-width: 700px) {
  #series42-panel { padding: 16px 12px; }
  .series42-vue-day { padding: 12px; }
  .series42-dialog { padding: 18px; }
  .series42-account-choices { grid-template-columns: 1fr; }
  .series42-day-pick { grid-template-columns: 1fr; }
  .series42-day-pick-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .series42-edit-grid { grid-template-columns: 1fr; }
  .series42-plan-controls { flex-wrap: wrap; }
}
