.text-edit-td {
  padding: 0 !important;
  height: 73px !important;
  max-height: 73px !important;
  overflow: hidden;
}

.orders-table tbody tr {
  height: 73px;
}

.control-cell {
  position: relative;
  transition: background .15s, box-shadow .15s;
}

.control-cell.selected {
  background: #f8f8ff !important;
  box-shadow: inset 0 0 0 2px #7778ef;
}

.control-cell.readonly {
  background: #fafafa;
}

.text-cell {
  position: relative;
  width: 100%;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  padding: 15px 12px;
  display: flex;
  align-items: center;
  color: #293149;
  outline: 0;
  overflow: hidden;
  transition: background .15s, box-shadow .15s;
}

.text-cell:hover {
  background: #fafaff;
}

.text-cell.selected {
  background: #f8f8ff;
  box-shadow: inset 0 0 0 2px #7778ef;
}

.text-cell.readonly {
  color: #8e96a8;
}

.cell-content {
  width: 100%;
  min-height: 20px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: default;
}

.cell-content:not([contenteditable="true"]) {
  display: -webkit-box;
  max-height: 38px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.cell-content.placeholder {
  color: #a6adbc;
}

.cell-content[contenteditable="true"] {
  display: block;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: text;
  border-radius: 0;
  outline: none !important;
  background: transparent;
  box-shadow: none;
  cursor: text;
  overflow-y: auto;
  white-space: pre-wrap;
  caret-color: #3033d8;
}

.expand-cell {
  display: none;
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #d9daf0;
  border-radius: 6px;
  background: #fff;
  color: #5658e5;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 4px 12px #3032691a;
  z-index: 5;
  pointer-events: auto;
}

.text-cell.selected .expand-cell {
  display: grid;
  place-items: center;
}

.expand-cell:hover {
  color: #fff;
  border-color: #595be6;
  background: #595be6;
}

.editor-modal {
  width: min(760px, calc(100% - 36px));
}

.editor-modal textarea {
  min-height: min(480px, 62vh);
  margin-top: 14px;
  margin-bottom: 14px;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  line-height: 1.85;
  outline: 0;
}

.editor-modal footer {
  align-items: center;
  border-top: 1px solid #e7e8ee;
  padding-top: 12px;
}

.autosave-note {
  margin-right: auto;
  color: #9aa1b2;
  font-size: 11px;
}

.grid-cell {
  user-select: none;
  -webkit-user-select: none;
}

.grid-cell.selected {
  position: relative;
  background: #eef0ff !important;
  box-shadow: inset 0 0 0 1px #8b8cf1;
}

.grid-cell.active-cell {
  z-index: 2;
  box-shadow: inset 0 0 0 2px #5558e8;
}

.text-cell.selected:not(.active-cell) .expand-cell {
  display: none;
}

.text-cell.active-cell .expand-cell {
  display: grid;
  place-items: center;
}

.cell-content[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}

.grid-cell.editing {
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text;
}

body.selecting-cells,
body.selecting-cells .grid-cell {
  cursor: cell !important;
}

.order-tool-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.batch-download {
  height: 39px;
  padding: 0 15px;
  border: 1px solid #cfd1f4;
  border-radius: 9px;
  background: #f4f4ff;
  color: #4f52df;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 5px 14px #5255d71a;
}

.batch-download:hover {
  border-color: #6668e8;
  background: #ededff;
}

.batch-download:disabled {
  opacity: .65;
  cursor: wait;
}

.batch-download-help {
  height: 39px;
  padding: 0 13px;
  border: 1px solid #f0c56b;
  border-radius: 9px;
  background: #fff8e8;
  color: #9b6500;
  font-size: 11px;
  font-weight: 700;
}

.batch-permission-modal,
.batch-result-modal {
  width: min(650px, calc(100% - 30px));
  padding: 34px;
  text-align: center;
}

.batch-permission-modal::backdrop,
.batch-result-modal::backdrop {
  background: #11172bcc;
  backdrop-filter: blur(4px);
}

.batch-permission-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0c8;
  color: #c87900;
  font-size: 38px;
  font-weight: 900;
}

.batch-permission-modal h2,
.batch-result-modal h2 { margin: 0 0 12px; font-size: 25px; }
.batch-permission-lead,
.batch-result-modal p { margin: 0 auto 20px; color: #687086; font-size: 14px; line-height: 1.7; }
.batch-permission-modal ol { margin: 0; padding: 18px 22px 18px 44px; border-radius: 12px; background: #f7f7fb; color: #343b50; text-align: left; font-size: 14px; line-height: 2; }
.batch-permission-warning { margin: 18px 0; padding: 13px; border: 1px solid #f2cc78; border-radius: 10px; background: #fff9e9; color: #9b6500; font-size: 13px; font-weight: 700; }
.batch-permission-confirm { width: 100%; height: 48px; font-size: 15px; }
.batch-result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }

.audio-grid-cell {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.order-action-cell {
  position: relative;
  text-align: center;
}

.orders-table th:nth-child(7) {
  text-align: center;
}

.order-action-cell > .confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.completed-action {
  position: relative;
  width: 100%;
  min-height: 40px;
  display: grid;
  place-items: center;
}

.completed-pill {
  min-width: 72px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e5f6ef;
  color: #139565;
  font-size: 12px;
  font-weight: 700;
  transition: opacity .15s;
}

.regenerate-order {
  position: absolute;
  inset: 0;
  min-width: 78px;
  height: 40px;
  margin: auto;
  padding: 0 10px;
  border: 1px solid #6668ee;
  border-radius: 8px;
  background: #fff;
  color: #5154e2;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity .15s, transform .15s, background .15s;
}

.completed-action:hover .completed-pill,
.completed-action:focus-within .completed-pill {
  opacity: 0;
}

.completed-action:hover .regenerate-order,
.completed-action:focus-within .regenerate-order {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.regenerate-order:hover {
  background: #f3f3ff;
}

.regenerate-order:disabled {
  opacity: .6 !important;
  cursor: wait;
}

.retry-action .regenerate-order {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  border-color: #ef536d;
  color: #d84259;
  background: #fff7f8;
}

.audio-upload.has-file {
  gap: 6px;
  padding: 4px 6px 4px 9px;
  overflow: visible;
}

.audio-upload.has-file.downloaded {
  padding-right: 27px;
  border-color: #b8e4d3;
  background: #fbfffd;
}

.downloaded-check {
  position: absolute;
  right: 5px;
  bottom: 3px;
  z-index: 3;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #22a876;
  color: #fff;
  box-shadow: 0 2px 6px #15926738;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.audio-file-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #4f51d9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-upload.is-saving {
  border-style: solid;
  border-color: #cfd1ff;
  background: #f7f7ff;
}

.audio-saving {
  flex: 0 0 auto;
  color: #7779de;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.times .time-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0;
}

.times .time-row > span,
.times .time-row > b {
  min-width: 0;
  margin-left: 0;
  white-space: nowrap;
}

.worker-health-panel {
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid #e4e5ec;
  border-radius: 11px;
  background: #fff;
}

.worker-health-panel > header,
.worker-machine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.worker-health-panel > header > div > b { display:block; font-size:15px; }
.worker-health-panel > header > div > span,
.worker-machine-row span { display:block; margin-top:4px; color:#8b93a8; font-size:11px; }

.worker-online-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.worker-online-state::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px currentColor; opacity:.85; }
.worker-online-state.ok { color:#12966b; background:#e7f7f0; }
.worker-online-state.error { color:#d94b5e; background:#fff0f2; }
.worker-machine-row { margin:17px 0 12px; padding-top:15px; border-top:1px solid #ececf2; }
.worker-machine-row b { font-size:12px; }

.worker-interface-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.worker-interface-card {
  position: relative;
  display: grid;
  grid-template-columns: 9px minmax(0,1fr) auto;
  gap: 10px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid #e6e7ee;
  border-radius: 9px;
  background: #fafafd;
}

.worker-interface-dot { width:9px; height:9px; margin-top:3px; border-radius:50%; background:#9da4b6; }
.worker-interface-card b { display:block; color:#252b3d; font-size:12px; }
.worker-interface-card p { min-height:30px; margin:5px 0 3px; color:#737c91; font-size:10px; line-height:1.45; }
.worker-interface-card small { color:#a0a6b6; font-size:9px; }
.worker-interface-card em { color:#8d94a6; font-size:10px; font-style:normal; font-weight:700; }
.worker-interface-card.ok { border-color:#ccebdd; background:#f7fcfa; }
.worker-interface-card.ok .worker-interface-dot { background:#19a875; box-shadow:0 0 0 4px #19a87518; }
.worker-interface-card.ok em { color:#149368; }
.worker-interface-card.error { border-color:#f1ccd2; background:#fff9fa; }
.worker-interface-card.error .worker-interface-dot { background:#e24f63; box-shadow:0 0 0 4px #e24f6318; }
.worker-interface-card.error em { color:#d74458; }

.admin-worker-actions { display:flex; align-items:center; gap:10px; }
.worker-repair-button { height:34px; padding:0 14px; border:1px solid #d7d9e7; border-radius:8px; background:#fff; color:#5558df; font-size:11px; font-weight:700; }
.worker-repair-button:hover { border-color:#7778ed; background:#f5f5ff; }
.worker-repair-button.recommended { border-color:#ef6679; background:#fff1f3; color:#d84259; box-shadow:0 0 0 4px #ef536d12; }
.worker-repair-button:disabled { opacity:.65; cursor:wait; }
.worker-queue-summary { display:grid; grid-template-columns:150px 150px minmax(0,1fr); gap:10px; margin:0 0 12px; }
.worker-queue-summary > span { min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 13px; border:1px solid #e6e7ee; border-radius:9px; background:#fafafd; color:#7f879b; font-size:11px; }
.worker-queue-summary b { color:#222a3e; font-size:15px; }
.worker-queue-summary > span:last-child b { font-size:11px; text-align:right; }
.worker-repair-note { margin:12px 0 0; padding:10px 12px; border-radius:8px; background:#f6f6fb; color:#767e92; font-size:11px; }
.admin-worker-health-panel { margin-bottom:16px; }

.studio-completion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 132px;
  margin-bottom: 16px;
  padding: 24px 28px;
  border: 1px solid #e4e5ec;
  border-radius: 11px;
  background: linear-gradient(135deg, #fff 55%, #f7f7ff);
}

.studio-completion-card > div:first-child > span,
.studio-completion-card small {
  display: block;
  color: #8a92a7;
  font-size: 11px;
}

.studio-completion-card b {
  display: inline-block;
  margin: 7px 9px 5px 0;
  font-size: 34px;
  line-height: 1;
}

.studio-today-stats {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.studio-today-stats article {
  min-width: 92px;
  padding: 12px 14px;
  border: 1px solid #e5e6ee;
  border-radius: 9px;
  background: #fff;
}

.studio-today-stats article > span {
  display: block;
  color: #81899d;
  font-size: 10px;
}

.studio-today-stats article > b {
  margin: 8px 4px 0 0;
  color: #20263a;
  font-size: 23px;
}

.studio-today-stats article.success > b {
  color: #15916a;
}

.studio-today-stats article.failed > b {
  color: #e14e62;
}

.studio-total-progress {
  width: min(520px, 50%);
  display: flex;
  align-items: center;
  gap: 13px;
}

.studio-total-progress > div {
  height: 9px;
  flex: 1;
  overflow: hidden;
  border-radius: 99px;
  background: #ececf4;
}

.studio-total-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5d5feb, #8889f7);
  transition: width .25s ease;
}

.studio-total-progress span {
  min-width: 38px;
  color: #5558df;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.studio-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(390px, .85fr);
  align-items: stretch;
  gap: 16px;
  margin-bottom: 16px;
}

.studio-overview-grid .worker-health-panel,
.studio-overview-grid .studio-completion-card {
  min-width: 0;
  height: 100%;
  margin-bottom: 0;
}

.studio-overview-grid .worker-interface-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-overview-grid .worker-interface-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.studio-overview-grid .studio-completion-card {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
}

.studio-overview-grid .studio-completion-card > div:first-child {
  padding-bottom: 18px;
  border-bottom: 1px solid #e9eaf1;
}

.studio-overview-grid .studio-today-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.studio-overview-grid .studio-today-stats article {
  min-width: 0;
  padding: 12px;
}

.studio-overview-grid .studio-total-progress {
  width: 100%;
  margin-top: auto;
  padding-top: 4px;
}

.studio-recent-panel {
  overflow: hidden;
  border: 1px solid #e4e5ec;
  border-radius: 11px;
  background: #fff;
}

@media (max-width: 1200px) {
  .studio-overview-grid { grid-template-columns: 1fr; }
  .studio-overview-grid .worker-interface-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-overview-grid .worker-interface-card:last-child:nth-child(odd) { grid-column: auto; }
}

.studio-recent-panel > header {
  padding: 17px 20px;
  border-bottom: 1px solid #e8e9ef;
}

.studio-recent-panel > header b,
.studio-recent-panel > header span {
  display: block;
}

.studio-recent-panel > header b {
  font-size: 14px;
}

.studio-recent-panel > header span {
  margin-top: 5px;
  color: #9299aa;
  font-size: 10px;
}

.studio-recent-head,
.studio-recent-row {
  display: grid;
  grid-template-columns: 1.4fr .8fr .7fr;
  align-items: center;
  column-gap: 18px;
  padding: 0 20px;
}

.studio-recent-head {
  height: 39px;
  color: #858da1;
  background: #f8f8fa;
  font-size: 11px;
}

.studio-recent-panel .studio-list {
  border: 0;
  border-radius: 0;
}

.studio-recent-row {
  min-height: 58px;
  border-bottom: 1px solid #ececf1;
  font-size: 12px;
}

.studio-recent-row:last-child {
  border-bottom: 0;
}

.studio-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef0ff;
  color: #5558df;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.studio-status.pending {
  background: #fff5df;
  color: #b47a15;
}

.studio-status.working {
  background: #e9f8f2;
  color: #15916a;
}

.small-modal input[readonly] {
  color: #6f7688;
  background: #f5f6f9;
  cursor: default;
}

.voice-column-heading { display:inline-flex; align-items:center; gap:7px; }
.voice-default-settings { width:25px; height:25px; display:grid; place-items:center; padding:0; border:1px solid #dfe1ea; border-radius:7px; background:#fff; color:#6668df; font-size:14px; line-height:1; }
.voice-default-settings:hover { border-color:#7778ed; background:#f1f1ff; }
#default-voice-dialog select { display:block; width:100%; height:41px; margin-top:7px; padding:0 34px 0 11px; border:1px solid #dfe1ea; border-radius:8px; background:#fff; color:#293149; outline:0; }
#default-voice-dialog select:focus { border-color:#7778ed; box-shadow:0 0 0 3px #5b5ceb12; }
.preference-note { margin:0 22px 20px; padding:11px 12px; border-radius:8px; background:#f6f6fb; color:#7d8497; font-size:11px; line-height:1.55; }

.small-modal .primary:disabled {
  opacity: .7;
  cursor: wait;
}

.voice-meta {
  margin: 0;
  color: #8d95a7;
  font-size: 11px;
}

.voice-grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.voice-toolbar-actions { display:flex; align-items:center; gap:10px; }

.compact-voice-card {
  position: relative;
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.voice-order-number {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #5b5ceb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.voice-order-control { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.voice-order-actions { min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.voice-order-control label { display:flex; align-items:center; gap:7px; color:#858ca0; font-size:11px; font-weight:600; }
.voice-order-control select { width:62px; height:30px; padding:0 24px 0 10px; border:1px solid #dfe1ea; border-radius:7px; background:#fff; color:#343b50; outline:0; cursor:pointer; }
.voice-order-control select:hover,.voice-order-control select:focus { border-color:#7778ed; box-shadow:0 0 0 3px #5b5ceb10; }

.compact-voice-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.compact-voice-card .voice-icon {
  margin-bottom: 16px;
}

.voice-playback-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.voice-playback-row .voice-meta {
  flex: 0 0 auto;
  min-width: 82px;
  white-space: nowrap;
}

.voice-inline-player {
  width: 0;
  max-width: none;
  min-width: 0;
  height: 34px;
  flex: 1 1 0;
}

.voice-delete-button {
  position: static;
  flex: 0 0 auto;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #ffabb5;
  color: #ec5267;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity .15s, background .15s;
}

.compact-voice-card:hover .voice-delete-button,
.compact-voice-card:focus-within .voice-delete-button {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.voice-delete-button:hover {
  background: #fff2f4;
}

.voice-delete-button .trash-icon {
  width: 10px;
  height: 12px;
}

@media (max-width: 1700px) {
  .voice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .voice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.audio-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.audio-action {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #cfd2f1;
  border-radius: 6px;
  background: #fff;
  color: #5053df;
  font-size: 10px;
  font-weight: 700;
}

.audio-action:hover {
  border-color: #6567e9;
  background: #f1f1ff;
}

.audio-actions .remove {
  height: 28px;
  padding: 0 7px;
}

.audio-hover-actions {
  position: absolute;
  top: 50%;
  right: 36px;
  z-index: 4;
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #e0e1f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 18px #26295a20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(5px);
  transition: opacity .15s, transform .15s;
}

.audio-upload.has-file:hover .audio-hover-actions,
.audio-upload.has-file:focus-within .audio-hover-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.audio-delete {
  position: absolute;
  top: 50%;
  right: 5px;
  z-index: 5;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid #ff9da9 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #f05266;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition: opacity .15s, transform .15s, background .15s;
}

.audio-upload.has-file:hover .audio-delete,
.audio-upload.has-file:focus-within .audio-delete,
.local-voice-empty:hover .audio-delete,
.local-voice-empty:focus-within .audio-delete {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.audio-delete:hover {
  background: #fff2f4 !important;
}

.trash-icon {
  position: relative;
  width: 9px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

.trash-icon::before {
  content: "";
  position: absolute;
  left: -2.5px;
  top: -3px;
  width: 11px;
  border-top: 1.5px solid currentColor;
}

.trash-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  top: -5.5px;
  width: 3px;
  height: 2px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.audio-modal {
  width: min(520px, calc(100% - 30px));
}

.audio-preview {
  padding: 27px 28px 20px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.audio-preview-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #5b5ceb;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 10px 25px #5557e638;
}

.audio-preview b {
  max-width: 100%;
  overflow: hidden;
  color: #6d7487;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#audio-player {
  width: 100%;
  margin-top: 5px;
}

.stop-audio {
  height: 40px;
  padding: 0 15px;
  border: 1px solid #f2b7bd;
  border-radius: 8px;
  background: #fff6f7;
  color: #d44957;
  font-weight: 700;
}

.order-number-cell {
  position: relative;
}

.order-number {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.order-delete {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 3;
  height: 31px;
  padding: 0 9px;
  border: 1px solid #f1aeb5;
  border-radius: 7px;
  background: #fff7f8;
  color: #db4757;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition: opacity .15s, transform .15s, background .15s;
}

.order-number-cell:hover .order-delete,
.order-number-cell:focus-within .order-delete {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.order-delete:hover {
  background: #ffecee;
}

.local-voice-empty {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.local-voice-empty .audio-upload {
  min-width: 0;
  flex: 1;
}

.local-voice-file {
  width: 100%;
}

.local-voice-waiting {
  display: block;
  color: #9aa1b2;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 720px) {
  .text-edit-td { height: 67px !important; max-height: 67px !important; }
  .orders-table tbody tr { height: 67px; }
  .text-cell { height: 66px; min-height: 66px; max-height: 66px; }
  .editor-modal textarea { min-height: 55vh; }
  .studio-completion-card { align-items: stretch; flex-direction: column; gap: 18px; }
  .studio-total-progress { width: 100%; }
  .worker-health-panel > header,
  .worker-machine-row { align-items:flex-start; flex-direction:column; }
  .worker-interface-grid { grid-template-columns:1fr; }
  .admin-worker-actions { width:100%; justify-content:space-between; }
  .worker-queue-summary { grid-template-columns:1fr; }
  .studio-overview-grid .worker-interface-grid { grid-template-columns:1fr; }
  .studio-overview-grid .worker-interface-card:last-child:nth-child(odd) { grid-column:auto; }
  .studio-overview-grid .studio-today-stats { grid-template-columns:1fr; }
  .studio-recent-head,
  .studio-recent-row { grid-template-columns: 1.25fr .75fr .75fr; column-gap: 8px; padding: 0 12px; }
  .order-tool-actions { align-items: stretch; flex-direction: column; }
  .batch-download { width: 100%; }
  .voice-toolbar-actions { width:100%; align-items:stretch; flex-direction:column; }
}
.auth-pending .topbar,
.auth-pending .workspace {
  display: none;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, #f7f7ff, #ffffff 52%, #f5f6ff);
}

.auth-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid #e2e3ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px #34365c1f;
}

.auth-brand { display:flex; align-items:center; gap:12px; margin-bottom:28px; }
.auth-brand b { display:block; font-size:20px; }
.auth-brand small { display:block; margin-top:4px; color:#9299ad; }
.auth-form h1 { margin:0 0 7px; font-size:25px; }
.auth-form > p { margin:0 0 22px; color:#858da0; font-size:12px; }
.auth-form label { display:block; margin:14px 0; color:#596174; font-size:12px; }
.auth-form input { display:block; width:100%; height:44px; margin-top:7px; border:1px solid #dfe1ea; border-radius:9px; padding:0 12px; outline:0; }
.auth-form input:focus { border-color:#6668ee; box-shadow:0 0 0 3px #5b5ceb12; }
.auth-form .primary { width:100%; margin-top:10px; }
.auth-switch { display:block; margin:16px auto 0; border:0; background:transparent; color:#5557e4; font-size:12px; }
.auth-message { min-height:20px; margin-top:15px; color:#d84259; text-align:center; font-size:12px; }
.auth-message.success { color:#139565; }
.auth-password-note { padding:10px 12px; border-radius:8px; background:#f5f5fa; color:#7d8497; font-size:11px; }
.account-menu { display:flex; align-items:center; gap:9px; color:#555d70; font-size:12px; font-weight:700; }
.account-menu button { height:32px; border:1px solid #e0e1e9; border-radius:7px; background:#fff; color:#747b90; }
.account-review-panel { margin-bottom:18px; }
.account-review-panel > header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.account-review-panel > header b { display:block; font-size:15px; }
.account-review-panel > header span { display:block; margin-top:4px; color:#9299ad; font-size:11px; }
.account-status { display:inline-flex; min-width:58px; height:27px; align-items:center; justify-content:center; border-radius:999px; background:#fff4df; color:#b87300; font-size:11px; }
.account-status.approved { background:#e5f6ef; color:#139565; }
.account-status.rejected { background:#fff0f2; color:#d8495d; }
.account-status.deletion_pending { background:#f1f2f6; color:#6f778b; }
.account-delete-time { margin-top:5px; color:#9a6470; font-size:9px; white-space:nowrap; }
.approve-account { height:31px; border:0; border-radius:7px; padding:0 12px; background:#5b5ceb; color:#fff; font-size:11px; font-weight:700; }
.account-actions { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.reset-password-account { height:31px; border:1px solid #cfd2e5; border-radius:7px; padding:0 12px; background:#fff; color:#4f5870; font-size:11px; font-weight:700; }
.reset-password-account:hover { border-color:#696aec; color:#5557df; background:#f8f8ff; }
.reject-account,.delete-account,.restore-account { height:31px; border-radius:7px; padding:0 12px; font-size:11px; font-weight:700; }
.reject-account { border:1px solid #efb7bf; background:#fff7f8; color:#d8495d; }
.delete-account { border:1px solid #e5a7b0; background:#fff; color:#d43f53; }
.restore-account { border:1px solid #a8d9c6; background:#f2fbf7; color:#148961; }


.auth-checking .auth-screen {
  visibility: hidden;
}

.auth-checking {
  min-height: 100vh;
  background: #f6f8fc;
}


[data-grid-cell][data-field="voice"].voice-drop-target {
  position: relative;
  background: #eef6ff;
  box-shadow: inset 0 0 0 2px #2f7bf4;
}

[data-grid-cell][data-field="voice"].voice-drop-target::after {
  content: "松开即可上传音频";
  position: absolute;
  inset: 6px;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 1px dashed #2f7bf4;
  border-radius: 8px;
  background: #eef6fff2;
  color: #1765d1;
  font-size: 12px;
  font-weight: 700;
}


/* Order status colors: working green, done light blue, error red. */
.completed-pill,
.order-action-cell > .confirm.status-done:disabled {
  border: 1px solid #cfe5fb;
  background: #eaf4ff;
  color: #2878c8;
}
.order-action-cell > .confirm.status-pending:disabled {
  border-color: #f2dfb8;
  background: #fff6e5;
  color: #ad7414;
}
.order-action-cell > .confirm.status-working:disabled {
  border-color: #c9eadb;
  background: #e8f7ef;
  color: #159565;
}
.order-action-cell > .confirm.status-error:disabled {
  border-color: #f4c8cf;
  background: #fff0f2;
  color: #d8495d;
}
