﻿:root {
  color-scheme: light;
  --bs-body-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --bg: oklch(0.972 0.006 215);
  --surface: oklch(1 0 0);
  --surface-soft: oklch(0.985 0.004 215);
  --sidebar: oklch(0.205 0.035 220);
  --sidebar-2: oklch(0.255 0.042 218);
  --sidebar-muted: oklch(0.77 0.025 220);
  --ink: oklch(0.205 0.025 230);
  --muted: oklch(0.47 0.02 230);
  --line: oklch(0.9 0.008 230);
  --line-strong: oklch(0.82 0.014 225);
  --accent: oklch(0.57 0.13 180);
  --accent-strong: oklch(0.49 0.125 180);
  --accent-soft: oklch(0.94 0.045 180);
  --danger: oklch(0.55 0.18 29);
  --ok: oklch(0.55 0.14 150);
  --warn: oklch(0.67 0.15 70);
  --shadow-sm: 0 1px 2px oklch(0.22 0.025 230 / 0.05);
  --shadow-md: 0 10px 24px oklch(0.22 0.025 230 / 0.08);
  --radius: 12px;
  --radius-sm: 9px;
  --el-color-primary: #078f7c;
  --el-color-primary-light-3: #43b7a8;
  --el-color-primary-light-5: #7dd0c5;
  --el-color-primary-light-7: #b7e6df;
  --el-color-primary-light-9: #e6f7f4;
  --el-color-primary-dark-2: #047466;
  --el-font-family: var(--bs-body-font-family);
  --el-border-radius-base: 9px;
  --el-border-color: #cbd8df;
  --el-text-color-primary: #071c2f;
  --el-text-color-regular: #405569;
  --el-fill-color-blank: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, oklch(0.93 0.045 180 / 0.72) 0, transparent 28rem),
    linear-gradient(180deg, var(--bg), oklch(0.955 0.006 225));
  color: var(--ink);
  font-family: var(--bs-body-font-family);
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid oklch(0.76 0.1 190);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 800;
}

h2 {
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 850;
}

h3 {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  min-height: 100vh;
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  display: grid;
  gap: 24px;
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid oklch(0.94 0.01 220);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.ep-card.el-card {
  border: 1px solid oklch(0.9 0.008 230);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ep-card > .el-card__header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

.ep-card > .el-card__body {
  padding: 24px 26px;
}

.login-card.el-card {
  border-radius: 18px;
}

.login-card.el-card > .el-card__body {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.brand-row,
.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-row p,
.muted,
.help-text {
  color: var(--muted);
  line-height: 1.6;
}

.el-table {
  --el-table-header-bg-color: var(--surface-soft);
  --el-table-header-text-color: var(--muted);
  --el-table-text-color: var(--ink);
  --el-table-border-color: var(--line);
  border-radius: 0;
  overflow: hidden;
}

.el-table th.el-table__cell {
  font-weight: 850;
}

.el-table .cell {
  line-height: 1.55;
}

.el-table.el-table--border {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.el-table.el-table--border::after,
.el-table.el-table--border::before,
.el-table__inner-wrapper::after,
.el-table__inner-wrapper::before {
  display: none;
}

.el-table__inner-wrapper,
.el-table__body-wrapper,
.el-table__header-wrapper {
  border-radius: inherit;
  background: var(--surface);
}

.el-table__inner-wrapper {
  overflow: hidden;
}

.el-table th.el-table__cell,
.el-table tr,
.el-table td.el-table__cell {
  background-clip: padding-box;
}

.el-table th.el-table__cell:first-child {
  border-top-left-radius: 0;
}

.el-table th.el-table__cell:last-child {
  border-top-right-radius: 0;
}

.el-table__body tr:last-child td.el-table__cell:first-child {
  border-bottom-left-radius: 0;
}

.el-table__body tr:last-child td.el-table__cell:last-child {
  border-bottom-right-radius: 0;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.table-actions .el-button.is-link {
  padding: 0;
  height: auto;
}

.el-select-dropdown,
.el-picker__popper,
.el-popper {
  border-radius: 12px;
}

.el-select-dropdown__item {
  font-weight: 750;
}

.el-select-dropdown__item.is-selected {
  color: var(--accent-strong);
}

.el-dialog {
  border-radius: 14px;
}

.el-dialog__header {
  padding: 22px 24px 10px;
}

.el-dialog__body {
  padding: 14px 24px;
}

.el-dialog__footer {
  padding: 10px 24px 22px;
}

.upload-dialog-icon {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 2rem;
}

.asset-upload-dialog.el-dialog,
.asset-upload-dialog .el-dialog {
  width: min(560px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px);
}

.asset-upload-dialog .el-form,
.asset-upload-dialog .el-form-item,
.asset-upload-dialog .el-form-item__content,
.asset-upload-dialog .el-input,
.asset-upload-dialog .el-upload,
.asset-upload-dialog .el-upload-dragger,
.asset-upload-dialog .el-upload-list,
.asset-upload-dialog .el-upload-list__item {
  min-width: 0;
  max-width: 100%;
}

.asset-upload-dialog .el-form-item__content,
.asset-upload-dialog .el-upload,
.asset-upload-dialog .el-upload-dragger {
  width: 100%;
}

.asset-upload-dialog .el-upload-dragger {
  display: grid;
  min-height: 148px;
  place-items: center;
  padding: 28px 18px;
}

.asset-upload-dialog .el-upload__text,
.asset-upload-dialog .el-upload__tip {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-upload-dialog .el-upload-list__item {
  display: flex;
  align-items: center;
}

.asset-upload-dialog .el-upload-list__item-info {
  min-width: 0;
  flex: 1 1 auto;
}

.asset-upload-dialog .el-upload-list__item-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), oklch(0.48 0.13 195));
  color: white;
  box-shadow: 0 8px 18px oklch(0.5 0.13 185 / 0.22);
  font-size: 1.15rem;
  font-weight: 900;
}

.form-stack,
.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  align-items: end;
  justify-content: start;
}

.form-grid .el-form-item,
.form-stack .el-form-item {
  margin-bottom: 0;
}

.form-grid .el-button,
.form-stack .el-button {
  min-height: 32px;
  font-weight: 700;
}

.form-grid .el-input,
.form-grid .el-select,
.form-grid .el-input-number,
.form-grid .el-date-editor,
.form-stack .el-input {
  width: 100%;
}

.el-input__wrapper,
.el-select__wrapper {
  min-height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #e4e4e7 inset;
}

.el-input__wrapper:hover,
.el-select__wrapper:hover {
  box-shadow: 0 0 0 1px #d4d4d8 inset;
}

.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused,
.el-select__wrapper.is-hovering:not(.is-focused) {
  box-shadow: 0 0 0 3px oklch(0.86 0.06 185 / 0.55);
}

.el-form-item__label {
  color: var(--muted);
  font-weight: 800;
}

.el-button {
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background-color: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

input[type="date"] {
  padding-right: 10px;
}

input[type="number"] {
  font-variant-numeric: tabular-nums;
}

input::placeholder {
  color: oklch(0.62 0.016 230);
}

input:hover,
select:hover {
  border-color: var(--line-strong);
  background-color: var(--surface);
}

input:focus,
select:focus {
  border-color: var(--line-strong);
  background-color: var(--surface);
  box-shadow: none;
  outline: 0;
}

input:disabled,
select:disabled {
  background: oklch(0.95 0.005 220);
  color: oklch(0.58 0.015 230);
  cursor: not-allowed;
}


.file-picker {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border: 1.5px dashed oklch(0.7 0.08 185);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, oklch(0.94 0.045 180), oklch(0.985 0.016 190)),
    var(--accent-soft);
  cursor: pointer;
  overflow: hidden;
}

.file-picker:hover,
.file-picker.is-dragging {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, oklch(0.91 0.06 180), oklch(0.975 0.02 190)),
    var(--accent-soft);
  box-shadow: 0 8px 18px oklch(0.5 0.13 185 / 0.12);
}

.file-picker.has-file {
  border-style: solid;
  border-color: oklch(0.62 0.105 180);
}

.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: white;
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
  font-size: 1.45rem;
}

.file-picker-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.file-picker-copy strong {
  color: var(--ink);
  font-size: 1rem;
}

.file-picker-copy em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.icon-button,
.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  min-width: 140px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 8px 16px oklch(0.5 0.13 185 / 0.18);
}

.primary-button:hover {
  filter: brightness(0.98);
  box-shadow: 0 10px 20px oklch(0.5 0.13 185 / 0.24);
}

.secondary-button {
  padding: 0 14px;
  border: 1px solid oklch(0.77 0.055 185);
  background: var(--accent-soft);
  color: oklch(0.33 0.095 185);
}

.secondary-button:hover,
.text-button:hover {
  background: oklch(0.91 0.06 185);
}

.ghost-button {
  width: 100%;
  padding: 0 14px;
  border: 1px solid oklch(0.38 0.035 220);
  background: oklch(0.245 0.036 220);
  color: white;
}

.ghost-button:hover {
  background: oklch(0.31 0.04 220);
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.sidebar-credit {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid oklch(0.36 0.035 220);
  border-radius: var(--radius-sm);
  background: oklch(0.235 0.034 220);
  box-sizing: border-box;
}

.sidebar-credit span {
  color: var(--sidebar-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.sidebar-credit strong {
  color: white;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.sidebar-footer .publish-assistant-button.el-button {
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-left: 0;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  box-shadow: none;
  box-sizing: border-box;
}

.sidebar-footer .publish-assistant-button.el-button > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.sidebar-footer .publish-assistant-button.el-button:hover,
.sidebar-footer .publish-assistant-button.el-button:focus,
.sidebar-footer .publish-assistant-button.el-button:active {
  background: oklch(0.58 0.13 184);
  color: white;
}

.sidebar-footer .ghost-button.el-button,
.sidebar-footer .ghost-button.el-button.is-text,
.sidebar-footer .ghost-button.el-button + .ghost-button.el-button {
  justify-content: center;
  width: 100%;
  margin-left: 0;
  padding: 0 14px;
  border: 1px solid oklch(0.38 0.035 220);
  background: oklch(0.245 0.036 220);
  color: white;
  box-sizing: border-box;
}

.sidebar-footer .ghost-button.el-button > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.sidebar-footer .ghost-button.el-button:hover,
.sidebar-footer .ghost-button.el-button:focus,
.sidebar-footer .ghost-button.el-button:active {
  border-color: oklch(0.43 0.04 220);
  background: oklch(0.31 0.04 220);
  color: white;
}

.text-button {
  min-height: 32px;
  padding: 0 10px;
  background: transparent;
  color: var(--accent-strong);
}

.icon-button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

.icon-button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.error-text {
  color: var(--danger);
  font-weight: 700;
}

.main-view {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  padding: 20px 16px;
  background:
    linear-gradient(180deg, var(--sidebar), oklch(0.17 0.03 220)),
    var(--sidebar);
  color: white;
}

.side-brand {
  padding: 2px 4px 18px;
  border-bottom: 1px solid oklch(0.34 0.03 220);
}

.side-brand strong {
  display: block;
  line-height: 1.2;
}

.side-brand span {
  display: block;
  margin-top: 4px;
  color: var(--sidebar-muted);
  font-size: 0.82rem;
}

.nav-list {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 22px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  background: transparent;
  color: var(--sidebar-muted);
  text-align: left;
}

.nav-item.el-button {
  margin-left: 0;
  color: var(--sidebar-muted);
}

.nav-item.el-button > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-item i {
  width: 18px;
  font-size: 1rem;
  text-align: center;
}

.nav-item:hover {
  background: oklch(0.28 0.04 220);
  color: white;
}

.nav-item.el-button:hover,
.nav-item.el-button:focus {
  color: white;
}

.nav-item.active {
  background: oklch(0.31 0.045 220);
  color: white;
  box-shadow: inset 3px 0 0 var(--accent);
}

.content-shell {
  min-width: 0;
  padding: 26px 30px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1280px, 100%);
  margin: 0 auto 18px;
  padding: 18px 0 4px;
}

.topbar .muted:first-child {
  margin-bottom: 2px;
  font-weight: 700;
}

.view-panel {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card,
.panel {
  border: 1px solid oklch(0.92 0.008 230);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.metric-card strong {
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
}

.panel-grid,
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.jobs-stack {
  display: grid;
  gap: 16px;
}

.job-create-form {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.job-create-form .el-button {
  min-width: 150px;
  width: auto;
}

.job-create-form .el-form-item {
  min-width: 0;
}

.assignment-bulk-form {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.record-picker-button {
  width: 100%;
}

.store-multi-select .el-select__wrapper {
  min-height: var(--admin-control-height, 32px);
  overflow: hidden;
}

.store-multi-select .el-select__selection {
  display: flex;
  width: calc(100% - 28px);
  min-height: 100%;
  align-items: center;
  overflow: hidden;
}

.store-multi-select .el-select__selected-item {
  max-width: 100%;
}

.store-multi-select .el-tag {
  max-width: min(190px, 100%);
  margin: 0;
}

.store-multi-select .el-select__tags-text,
.store-multi-select .el-tag__content {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-preview {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
}

.assignment-preview strong {
  margin: 0 4px;
  color: var(--accent-strong);
  font-size: 1.08rem;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.view-panel > .panel + .panel,
.view-panel > .two-column + .panel,
.view-panel > .two-column + .two-column,
.view-panel > .panel + .two-column {
  margin-top: 16px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head-with-search {
  align-items: center;
}

.panel-search-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: min(620px, 100%);
}

.panel-search-input {
  width: min(300px, 100%);
}

.panel-status-select {
  width: 132px;
}

/* 紧凑搜索/筛选工具栏：只收紧搜索区域，不影响普通表单输入框。 */
.panel-search-actions,
.asset-toolbar,
.mix-category-toolbar,
.template-picker-toolbar,
.record-picker-toolbar {
  --search-control-height: 32px;
  --search-control-radius: 8px;
  --search-font-size: 14px;
}

.panel-search-actions .el-input__wrapper,
.panel-search-actions .el-select__wrapper,
.asset-toolbar .panel-search-input .el-input__wrapper,
.mix-category-toolbar .panel-search-input .el-input__wrapper,
.template-picker-toolbar .panel-search-input .el-input__wrapper,
.record-picker-toolbar .el-input__wrapper {
  min-height: var(--search-control-height);
  height: var(--search-control-height);
  padding: 0 10px;
  border-radius: var(--search-control-radius);
}

.panel-search-actions .el-input__inner,
.panel-search-actions .el-select__placeholder,
.panel-search-actions .el-select__selected-item,
.panel-search-actions .el-select__input,
.asset-toolbar .panel-search-input .el-input__inner,
.mix-category-toolbar .panel-search-input .el-input__inner,
.template-picker-toolbar .panel-search-input .el-input__inner,
.record-picker-toolbar .el-input__inner {
  height: calc(var(--search-control-height) - 2px);
  min-height: calc(var(--search-control-height) - 2px);
  line-height: calc(var(--search-control-height) - 2px);
  font-size: var(--search-font-size);
}

.panel-search-actions .el-input__inner::placeholder,
.asset-toolbar .panel-search-input .el-input__inner::placeholder,
.mix-category-toolbar .panel-search-input .el-input__inner::placeholder,
.template-picker-toolbar .panel-search-input .el-input__inner::placeholder,
.record-picker-toolbar .el-input__inner::placeholder {
  color: #7b8a97;
  font-size: var(--search-font-size);
}

.panel-search-actions .el-input__prefix,
.panel-search-actions .el-input__suffix,
.asset-toolbar .panel-search-input .el-input__suffix,
.mix-category-toolbar .panel-search-input .el-input__suffix,
.template-picker-toolbar .panel-search-input .el-input__suffix,
.record-picker-toolbar .el-input__suffix {
  font-size: 12px;
}

.panel-search-actions .el-button,
.asset-toolbar .el-button,
.mix-category-toolbar .el-button,
.template-picker-toolbar .el-button,
.record-picker-toolbar .el-button {
  min-height: var(--search-control-height);
  padding: 0 15px;
  border-radius: var(--search-control-radius);
  font-size: var(--search-font-size);
  font-weight: 700;
}

.panel-actions,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.assignment-form {
  grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1.1fr) minmax(160px, 0.8fr) minmax(180px, 1fr) auto;
}

.employee-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.employee-credit-form {
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
}

.modal-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
}

.modal-dialog::backdrop {
  background: oklch(0.16 0.025 225 / 0.5);
  backdrop-filter: blur(4px);
}

.modal-card {
  margin: 0;
  padding: 20px;
  border: 1px solid oklch(0.92 0.008 230);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

#view-stores table {
  min-width: 900px;
}

#view-employees table,
#view-credits table {
  min-width: 720px;
}

th,
td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: oklch(0.978 0.005 220);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

tr:last-child td {
  border-bottom: 0;
}

.compact-list,
.schedule-list,
.job-list {
  display: grid;
  gap: 10px;
}

.job-record-card .job-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pagination-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  min-height: 48px;
  padding-top: 16px;
  color: var(--muted);
  font-weight: 800;
}

.pagination-bar .el-pagination {
  --el-pagination-button-bg-color: var(--surface);
  --el-pagination-button-color: var(--muted);
  --el-pagination-hover-color: var(--accent-strong);
  font-weight: 800;
}

.asset-tabs .el-tabs__header {
  margin-bottom: 18px;
}

.asset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.asset-toolbar .panel-search-input {
  max-width: 420px;
}

.asset-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.asset-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.auto-split-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.auto-split-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfc;
}

.auto-split-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.auto-split-main strong,
.auto-split-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-split-main strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.auto-split-main span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.auto-split-progress {
  min-width: 0;
}

.auto-split-close.el-button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin-left: 0;
  padding: 0;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.auto-split-close.el-button:hover,
.auto-split-close.el-button:focus {
  background: #eaf3f2;
  color: var(--accent-strong);
}

.auto-split-item .error-text {
  grid-column: 1 / -1;
}

.asset-video-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.asset-video-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, oklch(0.965 0.02 185), oklch(0.94 0.018 225)),
    var(--surface-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, transform 160ms ease;
}

.asset-video-card:hover .asset-video-media {
  border-color: oklch(0.73 0.07 185);
  transform: translateY(-1px);
}

.asset-video-preview {
  display: block;
  width: 100%;
  height: 100%;
  background: #101820;
  object-fit: contain;
}

.asset-video-badge,
.asset-video-open {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: oklch(0.22 0.025 230 / 0.62);
  backdrop-filter: blur(6px);
}

.asset-video-badge {
  top: 10px;
  left: 10px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.asset-video-open {
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.asset-video-open:hover {
  color: #fff;
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.asset-video-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.asset-video-info strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-video-info span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.asset-video-category .el-select {
  width: 100%;
}

.asset-video-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-video-actions .el-button {
  justify-content: center;
  width: auto;
  min-height: 36px;
  margin-left: 0 !important;
  padding: 0 12px;
}

.asset-video-actions .asset-open-button,
.asset-video-actions .asset-delete-button {
  width: 64px;
  flex: 0 0 64px;
}

.asset-video-actions .asset-split-button {
  flex: 1 1 auto;
  min-width: 116px;
}

.asset-video-actions .asset-move-button {
  flex: 1 1 auto;
  min-width: 72px;
}

.asset-video-actions .el-button + .el-button {
  margin-left: 0 !important;
}

.asset-video-actions .asset-open-button.el-button,
.asset-video-actions .asset-open-button.el-button:hover,
.asset-video-actions .asset-open-button.el-button:focus,
.asset-video-actions .asset-open-button.el-button:active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.asset-video-actions .asset-open-button.el-button:hover,
.asset-video-actions .asset-open-button.el-button:focus {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.asset-video-actions .asset-delete-button.el-button {
  border-color: #f0b8b8;
}

.mix-category-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mix-category-toolbar .panel-search-input {
  max-width: 420px;
}

.mix-category-dialog .el-dialog__body {
  padding-top: 6px;
}

.mix-category-grid,
.mix-category-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.mix-category-card,
.mix-category-select-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 10px rgb(15 23 42 / 0.05);
}

.mix-category-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.mix-category-card.is-expanded {
  grid-column: span 2;
}

.mix-category-card:hover,
.mix-category-select-card:hover {
  border-color: #bde2dc;
  box-shadow: 0 10px 18px rgb(15 23 42 / 0.08);
}

.mix-category-card-head,
.mix-category-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mix-category-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1rem;
}

.mix-category-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-category-card p {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.mix-category-card-foot span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.mix-category-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mix-category-actions .el-button + .el-button {
  margin-left: 0;
}

.mix-category-expand {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mix-category-expand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.mix-category-expand-head em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 750;
}

.mix-category-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.mix-category-preview-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.mix-category-preview-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #101827;
  object-fit: cover;
}

.mix-category-preview-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-category-preview-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-category-page {
  display: grid;
  gap: 18px;
}

.mix-category-page-tabs {
  min-width: 0;
}

.mix-category-pane {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.mix-category-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.mix-category-pane-head h4 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.mix-category-pane-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.mix-category-pane-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mix-category-video-grid {
  margin-top: 0;
}

.video-move-current {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.video-move-current span,
.video-move-current small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.video-move-current strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-move-dialog .el-select {
  width: 100%;
}

.mix-workbench {
  display: grid;
  gap: 18px;
}

.mix-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 148px;
  padding: 24px;
  border: 1px solid #cae7e2;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 18%, rgb(16 169 153 / 0.12), transparent 28%),
    linear-gradient(135deg, #f8fffd, #eef9f7);
  box-shadow: var(--shadow-sm);
}

.mix-entry-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mix-entry-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgb(16 169 153 / 0.1);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

.mix-entry-main h3 {
  color: var(--ink);
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: 0;
}

.mix-entry-main p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.mix-entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.mix-entry-meta span {
  display: grid;
  min-width: 82px;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgb(16 169 153 / 0.16);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.78);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.mix-entry-meta strong {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
}

.mix-entry-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.mix-entry-actions .el-button {
  margin-left: 0 !important;
}

.mix-entry-actions .el-button i {
  margin-right: 6px;
}

.mix-entry-primary.el-button {
  min-width: 138px;
}

.mix-template-panel {
  min-height: 0;
}

.mix-template-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.mix-template-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 12px;
  height: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mix-template-card:hover {
  border-color: #bde2dc;
  box-shadow: 0 8px 18px rgb(15 23 42 / 0.07);
  transform: translateY(-1px);
}

.mix-template-card.disabled {
  background: #fbfcfd;
  opacity: 0.76;
}

.mix-template-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1.05rem;
}

.mix-template-body {
  display: grid;
  grid-template-rows: auto minmax(42px, auto) auto minmax(62px, auto);
  gap: 8px;
  align-self: stretch;
  min-width: 0;
}

.mix-template-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.mix-template-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-template-body p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mix-template-stats,
.mix-template-categories {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.mix-template-stats span,
.mix-template-categories span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.mix-template-stats span {
  background: #f2f6f8;
  color: var(--muted);
}

.mix-template-categories span {
  max-width: 140px;
  overflow: hidden;
  background: #f0fbf8;
  color: var(--accent-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-template-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  align-self: end;
}

.mix-template-action.el-button {
  justify-content: center;
  width: 100%;
  min-height: 36px;
  margin-left: 0 !important;
}

.mix-template-delete.el-button {
  min-height: 36px;
  margin-left: 0 !important;
  padding: 0 12px;
}

.mix-template-edit.el-button {
  min-height: 36px;
  margin-left: 0 !important;
  padding: 0 12px;
}

.mix-template-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mix-template-sequence-builder {
  display: grid;
  gap: 12px;
  width: 100%;
}

.mix-template-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.mix-template-add-row .el-button {
  min-height: 38px;
  margin-left: 0 !important;
}

.mix-template-sequence-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.mix-template-sequence-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid #e5edf0;
  background: #f8fbfb;
}

.mix-template-sequence-index {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0ea58d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mix-template-sequence-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mix-template-sequence-main strong,
.mix-template-sequence-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-template-sequence-main strong {
  color: #17313a;
  font-size: 14px;
  font-weight: 700;
}

.mix-template-sequence-main small {
  color: #6e7f87;
  font-size: 12px;
}

.mix-template-sequence-actions {
  display: flex;
  gap: 2px;
  align-items: center;
  white-space: nowrap;
}

.mix-template-sequence-actions .el-button {
  margin-left: 0 !important;
}

.mix-template-duration-display {
  display: grid;
  gap: 2px;
  min-height: 38px;
  align-content: center;
  padding: 0 12px;
  border: 1px solid #dfe8eb;
  background: #f8fbfb;
}

.mix-template-duration-display strong {
  color: #17313a;
  font-size: 15px;
  line-height: 1.2;
}

.mix-template-duration-display span {
  color: #6e7f87;
  font-size: 12px;
  line-height: 1.2;
}

.mix-library-panel {
  min-height: 0;
}

.mix-library-tab-panel {
  display: grid;
  gap: 14px;
}

.mix-library-tabs {
  margin-bottom: 0;
}

.mix-library-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.mix-library-card {
  cursor: default;
}

.mix-library-card:hover {
  transform: translateY(-1px);
}

.mix-library-card video {
  cursor: default;
}

.mix-job-card {
  border-color: #d7ece8;
}

.mix-job-dialog .el-dialog__body {
  max-height: min(72vh, 760px);
  overflow: auto;
}

.mix-record-page .panel-head-with-search {
  align-items: center;
}

.mix-record-page .panel-search-actions {
  justify-content: flex-end;
}

.mix-record-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mix-record-page-list > .el-empty {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
}

.mix-job-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  justify-content: stretch;
}

.mix-category-picker-item {
  grid-column: 1 / -1;
}

.mix-category-picker-item .el-form-item__content {
  display: block;
  width: 100%;
}

.mix-mode-item {
  grid-column: 1 / -1;
}

.mix-store-item {
  grid-column: span 3;
}

.mix-count-item {
  grid-column: span 2;
}

.mix-duration-item {
  grid-column: span 2;
}

.mix-transition-item {
  grid-column: span 2;
}

.mix-bgm-item {
  grid-column: span 3;
}

.mix-bgm-volume-item {
  grid-column: span 2;
}

.mix-voiceover-item {
  grid-column: span 2;
}

.mix-voiceover-text-item {
  grid-column: span 5;
}

.mix-voiceover-voice-item {
  grid-column: span 5;
}

.mix-base-video-item {
  grid-column: 1 / -1;
}

.mix-mode-item .el-radio-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 420px;
  max-width: 100%;
}

.mix-mode-item .el-radio-button {
  display: block;
  min-width: 0;
}

.mix-mode-item .el-radio-button__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  padding: 0 16px;
  border-color: #e4e4e7;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.mix-category-select-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mix-category-select-card:hover {
  transform: translateY(-1px);
}

.mix-category-select-card.selected {
  border-color: var(--accent);
  background: #f4fffd;
  box-shadow: 0 0 0 3px rgb(16 169 153 / 0.13);
}

.insert-point-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.insert-point-head,
.insert-point-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 12px;
}

.insert-point-head span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.insert-point-head em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 750;
  text-align: right;
}

.insert-point-row {
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.insert-point-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.insert-point-row strong,
.insert-point-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insert-point-row strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.insert-point-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.insert-point-row .el-input-number {
  width: 100%;
}

.mix-category-select-card.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.mix-category-select-card strong {
  overflow: hidden;
  padding-right: 34px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-category-select-card small {
  color: var(--muted);
  font-weight: 760;
}

.mix-select-check {
  position: absolute;
  top: 11px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #cfe1df;
  border-radius: 999px;
  background: #fff;
  color: #8aa0ae;
  font-size: 0.78rem;
  line-height: 1;
}

.mix-select-check i {
  display: block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-align: center;
}

.mix-category-select-card.selected .mix-select-check {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.mix-video-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
}

.mix-video-tab-panel {
  width: 100%;
}

.mix-video-tabs {
  margin-bottom: 16px;
}

.mix-video-tabs .el-tabs__header {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.mix-video-tabs .el-tabs__nav-wrap::after {
  display: none;
}

.mix-video-tabs .el-tabs__nav-scroll {
  overflow-x: auto;
}

.mix-video-tabs .el-tabs__nav {
  gap: 34px;
}

.mix-video-tabs .el-tabs__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: color 160ms ease;
}

.mix-video-tabs.el-tabs--top .el-tabs__item.is-top,
.mix-video-tabs.el-tabs--top .el-tabs__item.is-top:nth-child(2),
.mix-video-tabs.el-tabs--top .el-tabs__item.is-top:last-child {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.mix-video-tabs .el-tabs__item + .el-tabs__item {
  margin-left: 0;
}

.mix-video-tabs .el-tabs__item:hover {
  color: var(--accent-strong);
}

.mix-video-tabs .el-tabs__item.is-active {
  color: var(--accent-strong);
}

.mix-video-tabs .el-tabs__item.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--accent-strong);
  content: "";
}

.mix-video-tabs .el-tabs__active-bar {
  display: none;
}

.mix-video-tabs .el-tabs__item span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.mix-video-tabs .el-tabs__item em {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #eef6f8;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.mix-video-tabs .el-tabs__item.is-active em {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.mix-video-select-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mix-video-select-card:hover {
  border-color: #bde2dc;
  transform: translateY(-1px);
}

.mix-video-select-card.selected {
  border-color: var(--accent);
  background: #f4fffd;
  box-shadow: 0 0 0 3px rgb(16 169 153 / 0.13);
}

.mix-video-select-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #0b1116;
  object-fit: cover;
}

.mix-video-select-card strong,
.mix-video-select-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-video-select-card strong {
  font-size: 0.86rem;
  font-weight: 850;
}

.mix-video-select-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.mix-video-order {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgb(16 169 153 / 0.24);
}

.mix-job-summary {
  grid-column: span 10;
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.mix-job-summary strong {
  margin: 0 4px;
  color: var(--accent-strong);
}

.mix-job-form > .el-button {
  grid-column: span 2;
  width: 100%;
  min-width: 0;
}

.template-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
}

.template-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid #dce8ee;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.template-select-button:hover,
.template-select-button:focus-visible {
  border-color: #9eddd5;
  background: #f7fcfb;
  box-shadow: 0 0 0 3px rgb(16 169 153 / 0.08);
}

.template-select-button.empty strong {
  color: #8794a1;
}

.template-select-button span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.template-select-button strong,
.template-select-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-select-button strong {
  font-size: 0.92rem;
  font-weight: 850;
}

.template-select-button small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.template-select-button i {
  flex: 0 0 auto;
  color: #8aa0ae;
}

.template-clear-button.el-button {
  min-height: 42px;
  margin-left: 0 !important;
  padding: 0 12px;
}

.bgm-card-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.bgm-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #222a31;
  border-radius: 14px;
  background: #2d3137;
  color: #fff;
  box-shadow: 0 8px 18px rgb(15 23 42 / 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.bgm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgb(15 23 42 / 0.16);
}

.bgm-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #111923;
  background-position: center;
  background-size: cover;
}

.bgm-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.22), transparent 42%, rgb(0 0 0 / 0.26)),
    radial-gradient(circle at 75% 18%, rgb(255 255 255 / 0.18), transparent 24%);
}

.bgm-cover-badge,
.bgm-cover-meta {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.bgm-cover-badge {
  top: 10px;
  left: 10px;
  padding: 0 9px;
  background: rgb(12 18 26 / 0.58);
  color: #fff;
  backdrop-filter: blur(6px);
}

.bgm-cover-meta {
  right: 10px;
  bottom: 10px;
  padding: 0 8px;
  background: rgb(255 255 255 / 0.86);
  color: #1d2934;
}

.bgm-card-body {
  display: grid;
  gap: 10px;
  padding: 13px 14px 14px;
}

.bgm-card-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bgm-card-title strong,
.bgm-card-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bgm-card-title strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.bgm-card-title span,
.bgm-card-footer > span {
  color: rgb(231 238 245 / 0.68);
  font-size: 0.78rem;
  font-weight: 760;
}

.bgm-audio {
  display: block;
  width: 100%;
  height: 32px;
}

.bgm-card-audio {
  height: 34px;
  border-radius: 8px;
}

.bgm-card-footer {
  display: grid;
  gap: 9px;
}

.bgm-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bgm-card-actions .el-button {
  justify-content: center;
  width: 100%;
  min-height: 34px;
  margin-left: 0 !important;
}

.bgm-card-actions .bgm-open-button.el-button,
.bgm-card-actions .bgm-open-button.el-button:hover,
.bgm-card-actions .bgm-open-button.el-button:focus {
  color: #fff;
}

.bgm-card-actions .bgm-delete-button.el-button {
  background: rgb(255 255 255 / 0.04);
  color: #ffd5d5;
}

.sticker-card-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.sticker-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgb(15 23 42 / 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sticker-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgb(15 23 42 / 0.12);
}

.sticker-preview {
  position: relative;
  display: grid;
  min-height: 154px;
  place-items: center;
  background:
    linear-gradient(45deg, #f3f6fa 25%, transparent 25%),
    linear-gradient(-45deg, #f3f6fa 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f3f6fa 75%),
    linear-gradient(-45deg, transparent 75%, #f3f6fa 75%),
    #fff;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  background-size: 18px 18px;
}

.sticker-preview img {
  display: block;
  width: min(82%, 128px);
  height: min(82%, 128px);
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgb(15 23 42 / 0.16));
}

.sticker-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgb(12 18 26 / 0.58);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  backdrop-filter: blur(6px);
}

.sticker-card-body {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.sticker-card-body strong,
.sticker-card-body span,
.sticker-card-body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticker-card-body strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.sticker-card-body span,
.sticker-card-body small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.sticker-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.sticker-card-actions .el-button {
  justify-content: center;
  width: 100%;
  min-height: 32px;
  margin-left: 0 !important;
}

.voice-text-grid,
.voice-card-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.voice-text-card,
.voice-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgb(15 23 42 / 0.06);
}

.voice-text-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.voice-text-card-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.voice-text-card-main strong,
.voice-card-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-text-card-main p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.voice-text-card-footer,
.voice-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.voice-text-card-footer > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.voice-text-card-footer > div,
.voice-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.voice-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.voice-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1.15rem;
}

.voice-card-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.voice-card-main span,
.voice-card-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-card-actions {
  grid-column: 1 / -1;
}

.voice-asset-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.voice-asset-form .el-form-item:nth-child(1),
.voice-asset-form .el-form-item:nth-child(2) {
  grid-column: 1 / -1;
}

.filter-library-note {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.filter-card {
  display: grid;
  gap: 6px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 10px rgb(15 23 42 / 0.06);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.filter-card:hover {
  border-color: #bde2dc;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgb(15 23 42 / 0.1);
}

.filter-card strong {
  overflow: hidden;
  padding: 8px 13px 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-card span {
  display: block;
  padding: 0 13px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

.filter-card p {
  min-height: 34px;
  margin: 0;
  padding: 0 13px 13px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.filter-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  background: #d9eef4;
  box-shadow: none;
}

.filter-photo {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  transition: transform 180ms ease;
}

.filter-card:hover .filter-photo {
  transform: scale(1.07);
}

.filter-photo::after {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background:
    linear-gradient(180deg, oklch(1 0 0 / 0.06), transparent 48%),
    radial-gradient(circle at 70% 26%, oklch(1 0 0 / 0.24), transparent 20%);
  mix-blend-mode: soft-light;
}

.filter-photo--coast {
  background-image:
    radial-gradient(circle at 22% 23%, #fff 0 8%, transparent 9%),
    radial-gradient(ellipse at 18% 30%, rgba(255,255,255,0.86) 0 9%, transparent 10%),
    radial-gradient(ellipse at 34% 24%, rgba(255,255,255,0.74) 0 7%, transparent 8%),
    linear-gradient(170deg, transparent 0 53%, #f0d9a8 54% 100%),
    linear-gradient(180deg, #69c7f5 0 50%, #0aa0c5 51% 74%, #f5dca6 75% 100%);
}

.filter-photo--field {
  background-image:
    radial-gradient(ellipse at 76% 20%, rgba(255,255,255,0.88) 0 13%, transparent 14%),
    radial-gradient(ellipse at 55% 23%, rgba(255,255,255,0.72) 0 10%, transparent 11%),
    linear-gradient(165deg, transparent 0 47%, #5aae4f 48% 75%, #87c953 76% 100%),
    linear-gradient(180deg, #8ed6ff 0 48%, #4aa547 49% 100%);
}

.filter-photo--sunset {
  background-image:
    radial-gradient(circle at 76% 38%, #ffd177 0 10%, transparent 11%),
    linear-gradient(172deg, transparent 0 57%, rgba(37, 58, 82, 0.88) 58% 100%),
    linear-gradient(180deg, #514889 0 12%, #f48c56 48%, #f6c069 62%, #244d76 63% 100%);
}

.filter-photo--harbor {
  background-image:
    linear-gradient(90deg, transparent 0 30%, rgba(39, 45, 52, 0.58) 31% 36%, transparent 37% 100%),
    linear-gradient(150deg, transparent 0 55%, #d2a768 56% 62%, transparent 63%),
    linear-gradient(180deg, #6fb7db 0 46%, #377fa2 47% 72%, #183b52 73% 100%);
}

.filter-photo--garden {
  background-image:
    radial-gradient(circle at 28% 72%, #f45d87 0 4%, transparent 5%),
    radial-gradient(circle at 46% 69%, #ffdf5d 0 4%, transparent 5%),
    radial-gradient(circle at 62% 75%, #ff7aa8 0 4%, transparent 5%),
    radial-gradient(ellipse at 50% 23%, rgba(255,255,255,0.82) 0 16%, transparent 17%),
    linear-gradient(172deg, transparent 0 55%, #49a854 56% 100%),
    linear-gradient(180deg, #7ed5ff 0 54%, #64b94f 55% 100%);
}

.filter-photo--forest {
  background-image:
    radial-gradient(circle at 18% 24%, #fff9c7 0 8%, transparent 9%),
    linear-gradient(145deg, transparent 0 48%, #325d3b 49% 100%),
    linear-gradient(110deg, transparent 0 36%, #4a8f4a 37% 62%, transparent 63% 100%),
    linear-gradient(180deg, #8dd6f5 0 46%, #225d3f 47% 100%);
}

.filter-photo--lake {
  background-image:
    radial-gradient(ellipse at 26% 20%, rgba(255,255,255,0.85) 0 12%, transparent 13%),
    linear-gradient(146deg, transparent 0 43%, #8b8f78 44% 60%, transparent 61%),
    linear-gradient(210deg, transparent 0 45%, #506b83 46% 63%, transparent 64%),
    linear-gradient(180deg, #76c9f0 0 45%, #4b9fc2 46% 69%, #237fa1 70% 100%);
}

.filter-photo--meadow {
  background-image:
    radial-gradient(ellipse at 62% 23%, rgba(255,255,255,0.88) 0 14%, transparent 15%),
    linear-gradient(168deg, transparent 0 48%, #55ae4c 49% 78%, #78c75d 79% 100%),
    linear-gradient(180deg, #93d6fb 0 49%, #83c75a 50% 100%);
}

.filter-photo--road {
  background-image:
    linear-gradient(102deg, transparent 0 42%, #2d3338 43% 58%, transparent 59% 100%),
    linear-gradient(145deg, transparent 0 51%, #809153 52% 100%),
    linear-gradient(180deg, #d5c89b 0 42%, #718a60 43% 100%);
}

.filter-photo--island {
  background-image:
    radial-gradient(ellipse at 26% 26%, rgba(255,255,255,0.9) 0 13%, transparent 14%),
    radial-gradient(ellipse at 68% 68%, #1b754c 0 17%, transparent 18%),
    linear-gradient(170deg, transparent 0 62%, #e8d199 63% 72%, #1598c7 73% 100%),
    linear-gradient(180deg, #76d5fb 0 56%, #119bc4 57% 100%);
}

.filter-gem {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: rgb(12 18 26 / 0.58);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px oklch(0.24 0.04 220 / 0.18);
  font-size: 0.78rem;
}

.template-picker-dialog .el-dialog__body {
  padding-top: 4px;
}

.template-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.template-picker-toolbar .panel-search-input {
  max-width: 460px;
}

.template-picker-content {
  max-height: min(64vh, 660px);
  overflow: auto;
  padding: 2px 3px 4px;
}

.template-video-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.template-bgm-grid,
.template-filter-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.template-pick-card {
  position: relative;
}

.template-pick-card.selected {
  border-color: #10a999 !important;
  box-shadow: 0 0 0 3px rgb(16 169 153 / 0.16), 0 10px 22px rgb(15 23 42 / 0.12);
}

.template-pick-card.selected::before {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #10a999;
  color: #fff;
  content: "✓";
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgb(16 169 153 / 0.26);
}

.template-card-actions {
  display: grid;
  padding-top: 2px;
}

.template-card-actions .el-button {
  justify-content: center;
  width: 100%;
  min-height: 34px;
  margin-left: 0 !important;
}

.filter-card .template-card-actions {
  padding: 0 13px 13px;
}

.template-picker-pagination {
  padding-top: 12px;
}

.output-dialog .el-dialog__body {
  overflow-x: auto;
}

.output-dialog .el-table {
  min-width: 760px;
}

.output-preview-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.output-preview-video {
  width: 100%;
  max-height: min(46vh, 420px);
  border-radius: 10px;
  background: #000;
  object-fit: contain;
}

.output-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.output-preview-meta strong,
.output-preview-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.output-preview-meta strong {
  color: var(--ink);
}

.record-picker-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.record-picker-toolbar .el-input {
  max-width: 460px;
}

.record-picker-dialog .el-dialog__body {
  overflow-x: hidden;
}

.record-picker-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  max-height: min(62vh, 660px);
  overflow: auto;
  padding: 2px 2px 4px;
}

.record-picker-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.record-picker-card:hover {
  border-color: oklch(0.72 0.07 185);
  background: #fbfefd;
  transform: translateY(-1px);
}

.record-picker-card.is-selected {
  border-color: var(--accent);
  background: oklch(0.985 0.02 185);
  box-shadow: inset 0 0 0 1px oklch(0.68 0.105 185 / 0.35);
}

.record-picker-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #101820;
}

.record-picker-card-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #101820;
  object-fit: contain;
}

.record-picker-card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: oklch(0.22 0.025 230 / 0.66);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  backdrop-filter: blur(6px);
}

.record-picker-card-check.el-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 2px 8px rgb(12 32 44 / 0.14);
}

.record-picker-card-check .el-checkbox__input,
.record-picker-card-check .el-checkbox__inner {
  width: 14px;
  height: 14px;
}

.record-picker-card-check .el-checkbox__inner::after {
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
}

.record-picker-card-body {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px 13px 10px;
}

.record-picker-card-body strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-picker-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.35;
}

.record-picker-card-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.record-picker-card-meta span:not(:last-child)::after {
  padding-left: 6px;
  color: #b8c5c8;
  content: "/";
}

.record-picker-card-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.record-picker-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 13px 13px;
}

.record-picker-card-actions .el-button {
  justify-content: center;
  min-height: 32px;
  margin-left: 0 !important;
}

.record-picker-card-actions .el-button.is-success {
  --el-button-hover-bg-color: var(--el-color-success);
  --el-button-active-bg-color: var(--el-color-success);
  --el-button-hover-border-color: var(--el-color-success);
  --el-button-active-border-color: var(--el-color-success);
  color: #fff;
}

.output-dialog .el-table .el-table-column--selection .cell {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
}

.output-dialog .el-table .el-checkbox {
  display: inline-flex;
  height: 14px;
  align-items: center;
}

.output-dialog .el-table .el-checkbox__input,
.output-dialog .el-table .el-checkbox__inner {
  width: 14px;
  height: 14px;
}

.output-dialog .el-table .el-checkbox__inner::after {
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
}

.list-item,
.schedule-item,
.job-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.schedule-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.job-progress {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.job-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.job-progress-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.job-progress-head strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.9rem;
}

.job-progress .el-progress-bar__outer {
  background-color: oklch(0.94 0.012 215);
}

.job-progress .el-progress__text {
  display: none;
}

.job-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.job-actions .el-button {
  margin-left: 0 !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

.badge.failed {
  background: oklch(0.94 0.05 29);
  color: var(--danger);
}

.badge.completed {
  background: oklch(0.93 0.05 150);
  color: var(--ok);
}

.app-toast {
  position: fixed;
  left: 50%;
  top: 36px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: min(520px, calc(100vw - 32px));
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid oklch(0.92 0.012 160);
  border-radius: 12px;
  background: white;
  color: oklch(0.67 0.16 150);
  box-shadow: 0 12px 30px oklch(0.22 0.025 230 / 0.16);
  font-size: 1.06rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
}

.app-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-toast i {
  color: oklch(0.7 0.16 150);
  font-size: 1.22rem;
}

.app-toast.error {
  border-color: oklch(0.91 0.035 28);
  color: var(--danger);
}

.app-toast.error i {
  color: var(--danger);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  body {
    background: var(--bg);
  }

  .main-view {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto auto;
    gap: 14px;
    padding: 14px;
  }

  .side-brand {
    padding-bottom: 12px;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .nav-item {
    justify-content: center;
    min-height: 40px;
    padding: 0 10px;
  }

  .nav-item.active {
    box-shadow: inset 0 -3px 0 var(--accent);
  }

  .content-shell {
    padding: 18px 14px 28px;
  }

  .topbar,
  .panel-head,
  .modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-search-actions {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
  }

  .panel-search-input {
    width: 100%;
  }

  .panel-status-select {
    width: 100%;
  }

  .metric-grid,
  .panel-grid,
  .two-column,
  .job-create-form,
  .assignment-bulk-form,
  .form-grid,
  .assignment-form,
  .employee-form,
  .employee-credit-form {
    grid-template-columns: 1fr;
  }

  .job-record-card .job-list {
    grid-template-columns: 1fr;
  }

  .mix-entry-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 18px;
  }

  .mix-entry-meta,
  .mix-entry-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .mix-entry-actions {
    flex-wrap: wrap;
  }

  .mix-record-page-list {
    grid-template-columns: 1fr;
  }

  .pagination-bar {
    justify-content: center;
  }

  .panel-actions,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 13px;
  }

  .login-card,
  .panel,
  .metric-card {
    border-radius: 12px;
    padding: 16px;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-item span,
  .ghost-button span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .mix-entry-meta,
  .mix-entry-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mix-entry-actions .el-button {
    width: 100%;
  }

  .mix-template-actions {
    grid-template-columns: 1fr;
  }

  .mix-template-edit.el-button,
  .mix-template-delete.el-button {
    width: 100%;
  }

  .mix-template-grid {
    grid-template-columns: 1fr;
  }

  .mix-template-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  .mix-template-icon {
    width: 38px;
    height: 38px;
  }

  .mix-library-grid {
    grid-template-columns: 1fr;
  }

  .mix-template-form-grid,
  .mix-template-add-row,
  .mix-template-sequence-item {
    grid-template-columns: 1fr;
  }

  .mix-template-add-row .el-button {
    width: 100%;
  }

  .mix-template-sequence-index {
    justify-self: flex-start;
  }

  .mix-template-sequence-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .mix-video-tabs .el-tabs__nav {
    gap: 22px;
  }

  .mix-video-tabs .el-tabs__item {
    height: 40px;
    font-size: 14px;
  }

  .content-shell {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-button,
  .secondary-button,
  .ghost-button,
  .nav-item,
  .file-picker,
  .app-toast,
  input,
  select {
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  }

  .primary-button:active,
  .secondary-button:active,
  .nav-item:active {
    transform: translateY(1px);
  }
}

/* Element Plus component normalization for the admin console. */
.el-form-item__label {
  height: 22px;
  margin-bottom: 5px;
  padding: 0;
  color: #323639;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.el-input,
.el-select,
.el-input-number,
.el-date-editor.el-input,
.el-date-editor.el-input__wrapper {
  width: 100%;
}

.el-input__wrapper,
.el-select__wrapper,
.el-input-number .el-input__wrapper,
.el-date-editor .el-input__wrapper {
  width: 100%;
  min-height: 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e4e4e7 inset;
}

.el-input__inner,
.el-select__placeholder,
.el-select__selected-item,
.el-input-number .el-input__inner {
  height: 30px;
  color: #323639;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
}

.el-input-number {
  width: 100%;
  line-height: 32px;
}

.el-input-number__decrease,
.el-input-number__increase {
  height: 15px;
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

.el-input-number__decrease:hover,
.el-input-number__increase:hover {
  color: var(--accent-strong);
}

.el-button {
  min-height: 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.el-button--primary {
  background: var(--accent);
  border-color: var(--accent);
}

.el-button--primary:hover,
.el-button--primary:focus {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.el-button.is-link,
.el-button.is-link:hover,
.el-button.is-link:focus,
.el-button.is-link:active {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.el-button.is-link:focus-visible {
  outline: 0;
}

.form-grid .el-button {
  width: auto;
  min-width: 150px;
  align-self: end;
}

.el-select-dropdown__item {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 760;
}

.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.el-select-dropdown__item.is-selected {
  background: #fff;
  color: var(--accent-strong);
  font-weight: 900;
}

.nav-list {
  gap: 8px;
}

.nav-item.el-button {
  display: flex;
  justify-content: flex-start;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent !important;
  color: #b9cad8 !important;
}

.nav-item.el-button > span {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
}

.nav-item i {
  flex: 0 0 20px;
  width: 20px;
  color: currentColor;
}

.nav-item.el-button:hover,
.nav-item.el-button:focus {
  background: rgb(255 255 255 / 0.08) !important;
  color: #f3fbff !important;
}

.nav-item.el-button.active,
.nav-item.el-button.active:hover,
.nav-item.el-button.active:focus {
  background: rgb(7 143 124 / 0.28) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-item.el-button:hover i,
.nav-item.el-button:hover span,
.nav-item.el-button:focus i,
.nav-item.el-button:focus span,
.nav-item.el-button.active i,
.nav-item.el-button.active span {
  color: inherit !important;
}

/* Keep Element Plus form controls visually consistent in dense admin forms. */
.form-grid {
  --admin-control-height: 32px;
  --admin-stepper-width: 34px;
}

.form-grid .el-input,
.form-grid .el-select,
.form-grid .el-input-number,
.form-grid .el-date-editor {
  min-width: 0;
  height: var(--admin-control-height);
  line-height: var(--admin-control-height);
}

.form-grid .el-input__wrapper,
.form-grid .el-select__wrapper,
.form-grid .el-input-number .el-input__wrapper,
.form-grid .el-date-editor .el-input__wrapper {
  box-sizing: border-box;
  height: var(--admin-control-height);
  min-height: var(--admin-control-height);
  padding-top: 0;
  padding-bottom: 0;
  line-height: var(--admin-control-height);
}

.form-grid .el-select__wrapper {
  align-items: center;
}

.form-grid .el-input__inner,
.form-grid .el-select__placeholder,
.form-grid .el-select__selected-item,
.form-grid .el-input-number .el-input__inner {
  height: calc(var(--admin-control-height) - 2px);
  line-height: calc(var(--admin-control-height) - 2px);
}

.form-grid .el-input-number.is-controls-right .el-input__wrapper {
  padding-right: calc(var(--admin-stepper-width) + 8px);
}

.form-grid .el-input-number.is-controls-right .el-input-number__increase,
.form-grid .el-input-number.is-controls-right .el-input-number__decrease {
  right: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--admin-stepper-width);
  height: calc((var(--admin-control-height) - 2px) / 2);
  border-left: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1;
}

.form-grid .el-input-number.is-controls-right .el-input-number__increase {
  top: 1px;
  border-bottom: 1px solid var(--line);
  border-radius: 0 7px 0 0;
}

.form-grid .el-input-number.is-controls-right .el-input-number__decrease {
  bottom: 1px;
  border-radius: 0 0 7px 0;
}

.form-grid .el-input-number.is-controls-right .el-input-number__increase:hover,
.form-grid .el-input-number.is-controls-right .el-input-number__decrease:hover {
  background: #fff;
  color: var(--accent-strong);
}

/* Input focus states stay flat; the admin UI should not draw extra focus rings on fields. */
.form-grid .el-input__wrapper.is-focus,
.form-stack .el-input__wrapper.is-focus,
.form-grid .el-select__wrapper.is-focused,
.form-stack .el-select__wrapper.is-focused,
.form-grid .el-input-number .el-input__wrapper.is-focus,
.form-grid .el-date-editor .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}

input:focus,
select:focus,
textarea:focus,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--line-strong);
  box-shadow: none !important;
  outline: 0 !important;
}

.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused,
.el-select__wrapper.is-hovering:not(.is-focused),
.el-input-number .el-input__wrapper.is-focus,
.el-date-editor .el-input__wrapper.is-focus,
.el-textarea__inner:focus {
  box-shadow: 0 0 0 1px var(--line-strong) inset !important;
  outline: 0 !important;
}

.el-input__inner,
.el-input__inner:hover,
.el-input__inner:focus,
.el-input__inner:focus-visible,
.el-select__input,
.el-select__input:hover,
.el-select__input:focus,
.el-select__input:focus-visible {
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.el-select__selection,
.el-select__selection .el-select__input-wrapper {
  display: flex;
  min-height: 100%;
  align-items: center;
}

.el-select__input,
.el-select__input:hover,
.el-select__input:focus,
.el-select__input:focus-visible {
  height: 30px !important;
  line-height: 30px !important;
  vertical-align: middle;
}

.form-grid .el-select__input,
.form-grid .el-select__input:hover,
.form-grid .el-select__input:focus,
.form-grid .el-select__input:focus-visible,
.form-stack .el-select__input,
.form-stack .el-select__input:hover,
.form-stack .el-select__input:focus,
.form-stack .el-select__input:focus-visible {
  height: calc(var(--admin-control-height, 32px) - 2px) !important;
  line-height: calc(var(--admin-control-height, 32px) - 2px) !important;
}

.el-input__inner:focus,
.el-textarea__inner:focus {
  box-shadow: none !important;
  outline: 0 !important;
}

/* Reference-inspired light console theme: white sidebar, mint workspace, clean cards. */
:root {
  --bg: oklch(0.975 0.012 195);
  --surface: oklch(1 0 0);
  --surface-soft: oklch(0.982 0.01 205);
  --surface-tint: oklch(0.956 0.038 185);
  --sidebar: oklch(1 0 0);
  --sidebar-2: oklch(0.982 0.01 205);
  --sidebar-muted: oklch(0.48 0.025 225);
  --ink: oklch(0.22 0.035 230);
  --muted: oklch(0.52 0.022 230);
  --line: oklch(0.91 0.012 215);
  --line-strong: oklch(0.84 0.02 215);
  --accent: oklch(0.66 0.14 180);
  --accent-strong: oklch(0.5 0.12 178);
  --accent-soft: oklch(0.95 0.05 178);
  --shadow-sm: 0 2px 8px oklch(0.24 0.035 230 / 0.055);
  --shadow-md: 0 10px 26px oklch(0.24 0.035 230 / 0.075);
  --radius: 14px;
  --radius-sm: 10px;
  --el-color-primary: #10a999;
  --el-color-primary-dark-2: #078879;
  --el-color-primary-light-3: #49c6bb;
  --el-color-primary-light-5: #8bded6;
  --el-color-primary-light-7: #c2eee9;
  --el-color-primary-light-9: #e9fbf8;
  --el-border-color: #d7e4ea;
  --el-border-color-light: #e5edf2;
  --el-fill-color-light: #f5fafb;
}

body {
  background:
    radial-gradient(circle at 18% 0%, oklch(0.92 0.07 185 / 0.8), transparent 34rem),
    linear-gradient(180deg, oklch(0.985 0.006 220) 0, oklch(0.965 0.018 192) 18rem, oklch(0.975 0.006 225) 100%);
  color: var(--ink);
}

.login-view {
  background:
    radial-gradient(circle at 50% 8%, oklch(0.9 0.08 184 / 0.72), transparent 30rem),
    linear-gradient(180deg, #f8fdff, #eef9f8);
}

.login-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 48px oklch(0.22 0.04 220 / 0.11);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16c7b3, #2f7df6);
  box-shadow: 0 8px 18px rgb(16 169 153 / 0.22);
}

.main-view {
  grid-template-columns: 252px minmax(0, 1fr);
  background: transparent;
}

.sidebar {
  padding: 18px 12px 18px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 1px 0 0 rgb(15 23 42 / 0.02);
}

.side-brand {
  min-height: 58px;
  padding: 0 8px 14px;
  border-bottom: 1px solid var(--line);
}

.side-brand strong {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
}

.side-brand span {
  color: var(--muted);
}

.nav-list {
  gap: 8px;
  margin-top: 18px;
}

.nav-item.el-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  background: transparent !important;
  color: #5f7182 !important;
  font-weight: 800;
}

.nav-item.el-button:hover,
.nav-item.el-button:focus {
  background: #f1faf8 !important;
  color: #0b8f82 !important;
}

.nav-item.el-button.active,
.nav-item.el-button.active:hover,
.nav-item.el-button.active:focus {
  background: #e8f9f5 !important;
  color: #089483 !important;
  box-shadow: none;
}

.nav-item.el-button.active i {
  color: #0aa996 !important;
}

.sidebar-footer {
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sidebar-credit {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d7eee9;
  border-radius: 12px;
  background: #ecfbf8;
}

.sidebar-credit span {
  color: #55736f;
}

.sidebar-credit strong {
  color: #07917f;
  font-size: 1rem;
}

.sidebar-footer .publish-assistant-button.el-button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: #11ad9b;
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}

.sidebar-footer .publish-assistant-button.el-button:hover,
.sidebar-footer .publish-assistant-button.el-button:focus,
.sidebar-footer .publish-assistant-button.el-button:active {
  background: #0b9888;
  color: #fff;
}

.sidebar-footer .ghost-button.el-button,
.sidebar-footer .ghost-button.el-button.is-text,
.sidebar-footer .ghost-button.el-button + .ghost-button.el-button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #607486;
}

.sidebar-footer .ghost-button.el-button:hover,
.sidebar-footer .ghost-button.el-button:focus,
.sidebar-footer .ghost-button.el-button:active {
  background: #f1faf8;
  color: #0b8f82;
}

.content-shell {
  padding: 0 30px 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  width: auto;
  max-width: none;
  margin: 0 -30px 28px;
  padding: 16px 30px 14px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: blur(12px);
}

.topbar-title {
  display: grid;
  gap: 2px;
}

.topbar h2 {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 900;
}

.topbar .muted:first-child {
  margin: 0;
  color: #647789;
  font-size: 0.82rem;
  font-weight: 750;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.topbar-credit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e9fbf8;
  color: #078879;
  font-weight: 900;
}

.topbar-user {
  display: grid;
  justify-items: end;
  line-height: 1.2;
}

.topbar-user span {
  color: var(--ink);
  font-weight: 850;
}

.topbar-user small {
  color: var(--muted);
  font-weight: 700;
}

.mobile-menu-button,
.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-button {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e8e5;
  border-radius: 12px;
  background: #fff;
  color: #0b8f82;
  box-shadow: 0 4px 12px rgb(16 169 153 / 0.12);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mobile-menu-button:hover,
.mobile-menu-button:focus-visible {
  border-color: #9eddd5;
  background: #e9fbf8;
  color: #05786d;
  transform: translateY(-1px);
}

.mobile-menu-button i {
  font-size: 1.28rem;
  line-height: 1;
}

.view-panel {
  width: 100%;
  max-width: none;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.ep-card.el-card,
.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ep-card > .el-card__header {
  padding: 17px 20px;
  border-bottom: 1px solid #edf3f6;
}

.ep-card > .el-card__body {
  padding: 20px;
}

.metric-card.el-card > .el-card__body {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px 20px;
}

.metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  font-size: 1.1rem;
}

.metric-card-teal .metric-icon {
  background: #e6fbf7;
  color: #0ca996;
}

.metric-card-blue .metric-icon {
  background: #eaf2ff;
  color: #377cf6;
}

.metric-card-amber .metric-icon {
  background: #fff4db;
  color: #d88900;
}

.metric-card-purple .metric-icon {
  background: #f3eaff;
  color: #7c4dff;
}

.metric-card-green .metric-icon {
  background: #e9fbe9;
  color: #20a85a;
}

.metric-card-red .metric-icon {
  background: #ffecef;
  color: #ef5870;
}

.metric-card span {
  color: #667789;
  font-size: 0.84rem;
  font-weight: 780;
}

.metric-card strong {
  display: block;
  margin-top: 3px;
  color: #17243a;
  font-size: 1.55rem;
  font-weight: 920;
  line-height: 1;
}

.metric-card em {
  display: block;
  margin-top: 5px;
  color: #0aa28f;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 760;
}

.panel {
  padding: 0;
}

.panel-grid,
.two-column {
  gap: 18px;
}

.panel-head {
  margin-bottom: 0;
}

.compact-list {
  gap: 8px;
}

.list-item {
  border: 1px solid #edf3f6;
  border-radius: 12px;
  background: #fbfdfe;
}

.el-table {
  --el-table-header-bg-color: #f7fbfc;
  --el-table-row-hover-bg-color: #f1faf8;
}

.el-table.el-table--border {
  border-color: #e5edf2;
}

.el-table th.el-table__cell {
  color: #65778a;
  font-weight: 850;
}

.el-button--primary {
  border-color: #10a999;
  background: linear-gradient(135deg, #13b7a7, #0b8f82);
  box-shadow: 0 8px 16px rgb(16 169 153 / 0.18);
}

.el-button--primary:hover,
.el-button--primary:focus {
  border-color: #078879;
  background: linear-gradient(135deg, #16c2b0, #078879);
}

.el-tag {
  border-radius: 999px;
  font-weight: 800;
}

.el-input__wrapper,
.el-select__wrapper {
  min-height: 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e4e4e7 inset;
}

.el-input__wrapper:hover,
.el-select__wrapper:hover,
.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused {
  box-shadow: 0 0 0 1px #d4d4d8 inset !important;
}

.pagination-bar {
  padding-top: 14px;
}

@media (max-width: 980px) {
  .main-view {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 70px;
    right: 12px;
    left: auto;
    z-index: 70;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100vh - 82px);
    height: auto;
    overflow: auto;
    padding: 14px;
    border: 1px solid #dce8ee;
    border-radius: 16px;
    background: rgb(255 255 255 / 0.98);
    box-shadow: 0 18px 38px rgb(15 23 42 / 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    visibility: hidden;
  }

  .sidebar.mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    background: rgb(15 23 42 / 0.16);
    backdrop-filter: blur(2px);
  }

  .side-brand {
    padding: 0 6px 12px;
  }

  .nav-list {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    overflow: auto;
    max-height: min(48vh, 420px);
    margin-top: 12px;
    padding-bottom: 2px;
  }

  .nav-item.el-button {
    width: 100%;
    justify-content: flex-start;
    padding: 0 12px;
  }

  .nav-item.el-button > span {
    justify-content: flex-start;
  }

  .sidebar-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin-top: 12px;
  }

  .sidebar-credit {
    min-width: 0;
  }

  .asset-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-toolbar .panel-search-input {
    max-width: none;
  }

  .template-select-row {
    grid-template-columns: 1fr;
  }

  .template-clear-button.el-button {
    width: 100%;
  }

  .template-picker-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .template-picker-toolbar .panel-search-input {
    max-width: none;
  }

  .template-picker-content {
    max-height: 62vh;
  }

  .template-video-grid,
  .template-bgm-grid,
  .template-filter-grid {
    grid-template-columns: 1fr;
  }

  .asset-video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auto-split-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .auto-split-progress {
    grid-column: 1 / -1;
  }

  .asset-video-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-video-actions .el-button {
    width: 100%;
    flex-basis: auto;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-asset-form {
    grid-template-columns: 1fr;
  }

  .mix-job-form,
  .mix-category-grid {
    grid-template-columns: 1fr;
  }

  .mix-category-card.is-expanded {
    grid-column: auto;
  }

  .mix-category-pane-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mix-category-pane-actions {
    justify-content: space-between;
  }

  .mix-category-select-grid,
  .mix-video-select-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }

  .mix-store-item,
  .mix-count-item,
  .mix-duration-item,
  .mix-transition-item,
  .mix-base-video-item,
  .mix-bgm-item,
  .mix-bgm-volume-item,
  .mix-voiceover-item,
  .mix-voiceover-text-item,
  .mix-voiceover-voice-item,
  .mix-job-summary,
  .mix-job-form > .el-button {
    grid-column: 1 / -1;
  }

  .insert-point-head,
  .insert-point-row {
    grid-template-columns: 1fr;
  }

  .insert-point-head em {
    text-align: left;
  }

  .content-shell {
    padding: 0 16px 28px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    margin: 0 -16px 18px;
    padding: 14px 16px;
  }

  .topbar-actions {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .metric-grid,
  .panel-grid,
  .two-column,
  .form-grid,
  .mix-job-form {
    grid-template-columns: 1fr;
  }

  .metric-card.el-card > .el-card__body {
    min-height: 84px;
  }
  .sidebar-footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .mobile-menu-button {
    transition: none;
  }
}


