:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #6b778c;
  --line: #d9e0ea;
  --nav: #111827;
  --nav-soft: #1f2937;
  --nav-active: #2563eb;
  --nav-active-soft: rgba(37, 99, 235, .16);
  --accent: #2563eb;
  --sidebar-width: 248px;
  --sidebar-collapsed-width: 68px;
  --platform-height: 52px;
}

* { box-sizing: border-box; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--platform-height) 1fr;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.login-body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: #eef2f7;
}

.login-shell {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  padding: 34px 34px 30px;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-logo {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #526dff;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.login-brand h1 {
  margin: 0;
  font-size: 24px;
}

.login-brand p {
  margin: 4px 0 0;
  color: #6b778c;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field span {
  color: #334155;
  font-size: 14px;
}

.login-field input {
  width: 100%;
  height: 40px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  padding: 0 12px;
  font: inherit;
  color: #172033;
  background: #fff;
}

.login-field input:focus {
  border-color: #526dff;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(82, 109, 255, .16);
}

.login-error {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #ffccc7;
  border-radius: 2px;
  background: #fff2f0;
  color: #cf1322;
  font-size: 14px;
}

.login-submit {
  height: 40px;
  border: 1px solid #526dff;
  border-radius: 2px;
  background: #526dff;
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: default;
}

.sidebar-collapsed body {
  grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}

.sidebar {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  background: var(--nav);
  color: #fff;
  min-height: calc(100vh - var(--platform-height));
  height: calc(100vh - var(--platform-height));
  padding: 8px 10px 0;
  position: sticky;
  top: var(--platform-height);
  overflow-x: hidden;
  transition: width .18s ease;
}

.top-platform-bar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr auto;
  align-items: center;
  height: var(--platform-height);
  background: #12192b;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  z-index: 10;
}

.sidebar-collapsed .top-platform-bar {
  grid-template-columns: var(--sidebar-collapsed-width) 1fr auto;
}

.platform-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 20px;
  background: #0f1726;
  font-size: 18px;
  white-space: nowrap;
}

.platform-logo {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #4263ff;
  color: #fff;
  font-weight: 900;
}

.platform-tabs {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.platform-tab {
  min-width: 106px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,.05);
  font-size: 15px;
}

.platform-tab:hover,
.platform-tab.active {
  background: #1f2a44;
  color: #fff;
}

.platform-user {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 12px;
  color: #e5e7eb;
  white-space: nowrap;
}

.platform-icon-button {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: default;
  font: inherit;
}

.platform-icon-button:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.platform-avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: #eef2ff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.sidebar-tools {
  display: flex;
  justify-content: center;
  margin-top: auto;
  margin-right: -10px;
  margin-left: -10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(15, 23, 38, .95);
}

.icon-button {
  border: 0;
  color: #cbd5e1;
  background: transparent;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--nav-soft);
  color: #fff;
}

.toggle-closed { display: none; }

.menu {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 3px;
  padding-bottom: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar:hover .menu {
  scrollbar-color: rgba(203, 213, 225, .42) transparent;
}

.menu::-webkit-scrollbar {
  width: 6px;
}

.menu::-webkit-scrollbar-track {
  background: transparent;
}

.menu::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.sidebar:hover .menu::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, .42);
}

.sidebar:hover .menu::-webkit-scrollbar-thumb:hover {
  background: rgba(203, 213, 225, .58);
}

.menu-section {
  display: grid;
  gap: 2px;
}

.menu-parent,
.nav-link {
  width: 100%;
  border: 0;
  color: #d1d5db;
  background: transparent;
  text-decoration: none;
  display: grid;
  align-items: center;
  min-height: 38px;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
}

.menu-parent {
  grid-template-columns: 32px 1fr 22px;
  padding: 0 7px;
  text-align: left;
}

.menu-single {
  grid-template-columns: 32px 1fr;
}

.menu-parent:hover,
.nav-link:hover {
  background: var(--nav-soft);
  color: #fff;
}

.menu-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #aeb7c7;
}

.menu-icon-svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-title,
.nav-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-arrow {
  justify-self: center;
  color: #94a3b8;
  transition: transform .16s ease;
}

.menu-section.is-open .menu-arrow {
  transform: rotate(180deg);
}

.submenu {
  display: none;
  padding: 2px 0 4px 39px;
}

.menu-section.is-open .submenu {
  display: grid;
  gap: 2px;
}

.nav-link {
  grid-template-columns: 14px 1fr;
  padding: 0 8px;
  min-height: 34px;
  font-size: 14px;
}

.nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #64748b;
}

.nav-link.active,
.menu-single.active {
  color: #fff;
  background: var(--nav-active-soft);
}

.nav-link.active .nav-dot {
  background: var(--nav-active);
}

.menu-section.is-open .menu-icon,
.menu-single.active .menu-icon {
  color: #5b7cff;
}

.sidebar-collapsed .sidebar-tools {
  justify-content: center;
}

.sidebar-collapsed .menu-title,
.sidebar-collapsed .nav-title,
.sidebar-collapsed .menu-arrow,
.sidebar-collapsed .submenu {
  display: none;
}

.sidebar-collapsed .menu-parent,
.sidebar-collapsed .menu-single {
  grid-template-columns: 32px;
  justify-content: center;
  padding: 0 8px;
}

.sidebar-collapsed .menu-icon {
  justify-self: center;
}

.sidebar-collapsed .toggle-open { display: none; }
.sidebar-collapsed .toggle-closed { display: inline; }

.main {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: calc(100vh - var(--platform-height));
  overflow: hidden;
  padding: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

h1 { margin: 0; font-size: 26px; letter-spacing: 0; }
.topbar p { margin: 4px 0 0; color: var(--muted); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 34, 55, .06);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 34, 55, .06);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  border-bottom: 1px solid #e5eaf1;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

.empty-panel {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.empty-state {
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  margin: 10px 0 6px;
  color: var(--ink);
}

.empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: #94a3b8;
  font-size: 24px;
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e5e7eb;
  font-weight: 700;
}

.badge.success { background: #dcfce7; color: #166534; }
.badge.failed { background: #fee2e2; color: #991b1b; }
.badge.running { background: #dbeafe; color: #1d4ed8; }

@media (max-width: 980px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .top-platform-bar {
    grid-row: 1;
    grid-template-columns: 1fr;
    height: auto;
  }

  .platform-brand,
  .platform-user {
    min-height: var(--platform-height);
  }

  .platform-tabs {
    min-height: 44px;
  }

  .sidebar,
  .main {
    grid-row: auto;
  }

  .sidebar { position: static; min-height: auto; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.xy-query-panel {
  background: #fff;
  border: 1px solid #edf0f5;
  margin-bottom: 16px;
}

.xy-query-panel {
  flex: 0 0 auto;
  padding: 18px 14px 14px;
}

.xy-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 1fr;
  gap: 14px 20px;
  align-items: center;
}

.xy-field {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.xy-field span {
  color: #1f2937;
  font-size: 14px;
  white-space: nowrap;
}

.xy-field input,
.xy-field select,
.xy-pagination select,
.xy-pagination input {
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  padding: 0 11px;
  color: #374151;
  background: #fff;
  font: inherit;
  min-width: 0;
}

.xy-field input::placeholder {
  color: #b8bec8;
}

.xy-form-actions {
  grid-column: 3 / span 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.xy-button {
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  height: 32px;
  padding: 0 16px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.xy-link-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.xy-button.primary {
  border-color: #526dff;
  background: #526dff;
  color: #fff;
}

.xy-button.ghost {
  background: #fff;
}

.xy-button.text {
  border-color: transparent;
  background: transparent;
  color: #526dff;
  padding: 0 8px;
}

.xy-list-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #edf0f5;
  margin-bottom: 16px;
  padding: 14px;
}

.xy-list-toolbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.xy-tabs {
  display: flex;
  gap: 8px;
}

.xy-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 90px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fff;
  color: #334155;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.xy-tab.active {
  border-color: #526dff;
  background: #526dff;
  color: #fff;
}

.xy-toolbar-actions {
  display: flex;
  gap: 8px;
}

.xy-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e9edf3;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .28) rgba(241, 245, 249, .72);
}

.xy-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.xy-table-wrap::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, .72);
}

.xy-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .28);
  border-radius: 999px;
}

.xy-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, .42);
}

.xy-table {
  min-width: 1460px;
  font-size: 14px;
}

.xy-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 39px;
  background: #f5f7fb;
  color: #334155;
  text-align: center;
  font-weight: 500;
  border-right: 1px solid #e9edf3;
}

.xy-table td {
  height: 43px;
  text-align: center;
  border-right: 1px solid #edf0f5;
  max-width: none;
}

.xy-table .room-name {
  max-width: 210px;
  text-align: left;
}

.seq-col {
  width: 54px;
}

.action-col {
  width: 360px;
  white-space: nowrap;
}

.xy-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  color: #4b5563;
  background: #fff;
  font-size: 13px;
}

.xy-status.playback {
  border-color: #f6ad55;
  color: #d97706;
}

.xy-status.live {
  border-color: #22c55e;
  color: #15803d;
}

.xy-action {
  border: 0;
  background: transparent;
  color: #2f54eb;
  padding: 0 5px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.xy-action:hover {
  text-decoration: underline;
}

.xy-action.danger {
  color: #ff4d4f;
}

.xy-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 46px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
}

.xy-pagination {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 10px -14px -14px;
  border-top: 1px solid #e9edf3;
  background: #fff;
  font-size: 14px;
}

.xy-pagination .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border: 0;
  background: #f3f4f6;
  color: #374151;
  border-radius: 2px;
  text-decoration: none;
}

.xy-pagination .page.active {
  background: #526dff;
  color: #fff;
}

.xy-pagination select {
  width: 92px;
}

.xy-pagination input {
  width: 45px;
}

.page-size-form,
.jump-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

@media (max-width: 1200px) {
  .xy-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .xy-form-actions {
    grid-column: 1 / span 2;
    justify-content: flex-end;
  }

  .xy-list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.recording-query-grid {
  grid-template-columns: 1fr 1fr 1fr auto;
}

.recording-actions {
  grid-column: auto;
  justify-content: flex-start;
}

.usage-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #526dff;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(82, 109, 255, .24);
}

.usage-badge strong {
  color: #fff;
  font-size: 16px;
}

.recording-list {
  border-top: 1px solid #edf0f5;
}

.recording-table-wrap {
  border-top: 1px solid #e9edf3;
}

.recording-table {
  min-width: 1720px;
  table-layout: fixed;
}

.recording-col-seq { width: 54px; }
.recording-col-room { width: 96px; }
.recording-col-cover { width: 106px; }
.recording-col-code { width: 100px; }
.recording-col-name { width: 220px; }
.recording-col-time { width: 190px; }
.recording-col-state { width: 92px; }
.recording-col-resource { width: 190px; }
.recording-col-created { width: 170px; }
.recording-col-action { width: 340px; }

.recording-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.recording-table td {
  height: auto;
  min-height: 66px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  max-width: none;
  padding: 10px 10px;
  vertical-align: middle;
}

.recording-table tbody tr:nth-child(odd) {
  background: #fff;
}

.recording-table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.recording-cover,
.recording-cover-placeholder {
  width: 86px;
  height: 49px;
  border-radius: 4px;
}

.recording-cover {
  display: block;
  object-fit: cover;
  margin: 0 auto;
  background: #eef2f7;
}

.recording-cover-placeholder {
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid #e5eaf1;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 12px;
}

.recording-name-cell {
  min-width: 190px;
  max-width: 220px;
  white-space: normal;
  line-height: 1.55;
}

.recording-state-cell {
  min-width: 92px;
  white-space: nowrap !important;
  word-break: keep-all;
}

.recording-created-cell {
  min-width: 170px;
  white-space: nowrap !important;
  word-break: keep-all;
}

.recording-table th:nth-child(7),
.recording-table td:nth-child(7),
.recording-table th:nth-child(8),
.recording-table td:nth-child(8),
.recording-table th:nth-child(10),
.recording-table td:nth-child(10) {
  white-space: nowrap !important;
  word-break: keep-all;
}

.recording-time-cell,
.recording-resource-cell {
  display: grid;
  gap: 4px;
  line-height: 1.45;
  min-width: 190px;
  white-space: nowrap;
  text-align: left;
}

.recording-time-cell span,
.recording-resource-cell span {
  display: block;
  width: 170px;
  margin: 0 auto;
}

.recording-state-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #2dbb20;
  margin-right: 7px;
  vertical-align: middle;
}

.recording-action-col {
  width: 340px;
  min-width: 340px;
  white-space: nowrap;
}

.recording-table th.recording-action-col {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #f5f7fb;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .08);
}

.recording-table td.recording-action-col {
  position: sticky;
  right: 0;
  z-index: 2;
  background: inherit;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .08);
}

.xy-empty-table {
  padding: 28px;
  text-align: center;
  color: #94a3b8;
  border: 1px solid #e9edf3;
  border-top: 0;
}

.recording-row {
  display: grid;
  grid-template-columns: 54px 112px minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
}

.recording-row:hover {
  background: #fbfcff;
}

.recording-seq {
  text-align: center;
  color: #334155;
}

.recording-room {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #334155;
}

.preview-button {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #2f54eb;
  border-radius: 2px;
  height: 26px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}

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

.recording-title {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.recording-code {
  color: #334155;
  font-weight: 700;
  flex: 0 0 auto;
}

.recording-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172033;
}

.recording-time,
.recording-meta {
  color: #64748b;
  font-size: 13px;
}

.recording-time span {
  margin: 0 6px;
}

.recording-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recording-ops {
  justify-self: end;
  white-space: nowrap;
}

.order-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 28px;
  height: 36px;
  align-items: flex-start;
  border-bottom: 1px solid #dfe4ec;
  margin-bottom: 16px;
}

.order-tab {
  height: 36px;
  display: inline-flex;
  align-items: center;
  color: #172033;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.order-tab.active {
  color: #2f54eb;
  border-bottom-color: #526dff;
}

.order-query-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-actions {
  grid-column: 4;
  justify-content: flex-end;
}

.order-query-grid:not(.is-expanded) .order-advanced-field {
  display: none;
}

.order-date-end-field span {
  text-align: center;
  color: #6b7280;
}

.order-list-panel .xy-list-toolbar {
  min-height: 40px;
}

.order-summary {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  color: #172033;
  font-size: 14px;
}

.order-summary strong {
  color: #2f54eb;
  font-weight: 500;
}

.order-table {
  min-width: 2280px;
  table-layout: fixed;
}

.order-col-seq { width: 54px; }
.order-col-no { width: 180px; }
.order-col-avatar { width: 50px; }
.order-col-nick { width: 150px; }
.order-col-goods { width: 150px; }
.order-col-status { width: 120px; }
.order-col-pay-time { width: 150px; }
.order-col-money { width: 120px; }
.order-col-channel { width: 180px; }
.order-col-room { width: 150px; }
.order-col-name { width: 110px; }
.order-col-contact { width: 150px; }
.order-col-address { width: 150px; }
.order-col-remarks { width: 150px; }
.order-col-custom { width: 200px; }
.order-col-created { width: 170px; }
.order-col-action { width: 110px; }

.order-table td {
  height: auto;
  min-height: 42px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.order-avatar,
.order-avatar-placeholder {
  width: 24px;
  height: 24px;
  display: inline-block;
  border-radius: 4px;
  object-fit: cover;
  background: #e5e7eb;
  vertical-align: middle;
}

.order-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  font-size: 12px;
  line-height: 1;
}

.order-nick-cell,
.order-goods-cell {
  max-width: 150px;
}

.order-action-col {
  width: 110px;
  min-width: 110px;
  white-space: nowrap;
}

.order-table th.order-action-col {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #f5f7fb;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .08);
}

.order-table td.order-action-col {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .08);
}

.xy-button.danger {
  border-color: #f05b5b;
  background: #f05b5b;
  color: #fff;
}

.modal-open {
  overflow: hidden;
}

.stream-modal[hidden],
.room-goods-modal[hidden] {
  display: none;
}

.stream-modal,
.room-goods-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.stream-modal-backdrop,
.room-goods-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .52);
}

.stream-dialog {
  position: relative;
  width: min(820px, calc(100vw - 48px));
  max-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
}

.stream-dialog-head {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid #edf0f5;
}

.stream-dialog-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.stream-close {
  border: 0;
  background: transparent;
  color: #8c8c8c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.stream-help,
.stream-assistant-link a,
.xy-pagination .page,
.page-size-form select,
.jump-form input {
  cursor: pointer;
}

.xy-button.copy-ok {
  border-color: #22c55e;
  background: #22c55e;
  color: #fff;
}

.xy-button.copy-failed {
  border-color: #f05b5b;
  background: #f05b5b;
  color: #fff;
}

.stream-dialog-body {
  overflow-y: auto;
  padding: 20px 28px 26px;
}

.stream-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 8px;
  font-size: 14px;
}

.stream-help {
  color: #2f54eb;
  text-decoration: none;
}

.stream-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.stream-copy-row.stream-rts-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.stream-hint {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #334155;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.stream-copy-row.two-line {
  grid-template-columns: 82px minmax(0, 1fr) 64px;
}

.stream-copy-row label {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
}

.stream-copy-row input {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 3px;
  padding: 0 12px;
  color: #334155;
  background: #eef3ff;
  font: inherit;
}

.stream-warning {
  margin: 8px 0 12px;
  color: #ff4d4f;
  font-size: 13px;
}

.stream-compare {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  border: 1px solid #dfe5ee;
  margin: 10px 0 18px;
  font-size: 13px;
}

.stream-compare > div {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #dfe5ee;
  border-bottom: 1px solid #dfe5ee;
  padding: 5px 8px;
  text-align: center;
}

.stream-compare > div:nth-child(3n) {
  border-right: 0;
}

.stream-compare > div:nth-last-child(-n+3) {
  border-bottom: 0;
}

.stream-stop-wrap,
.stream-one-copy {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

.stream-code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 20px auto 12px;
  max-width: 520px;
  text-align: center;
}

.stream-code-grid span {
  display: block;
  color: #6b7280;
  margin-bottom: 12px;
}

.stream-code-grid strong {
  display: block;
  color: #111827;
  font-size: 22px;
}

.stream-assistant-link {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #475569;
}

.stream-assistant-link a {
  color: #2f54eb;
  text-decoration: none;
}

.stream-play-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #dfe5ee;
  color: #64748b;
  font-size: 13px;
}

.stream-play-preview code {
  display: block;
  color: #334155;
  line-height: 1.5;
  white-space: normal;
  word-break: break-all;
}

.channel-page {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 322px minmax(0, 1fr);
  gap: 16px;
}

.channel-groups-panel,
.channel-main {
  min-height: 0;
}

.channel-groups-panel {
  background: #fff;
  border: 1px solid #edf0f5;
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
}

.channel-group-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 12px;
  border-bottom: 1px solid #edf0f5;
}

.channel-group-toggle {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  color: #2f54eb;
  font-size: 14px;
}

.channel-group-list {
  display: grid;
  gap: 2px;
  overflow-y: auto;
}

.channel-group-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
}

.channel-group-item span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-group-item.active {
  background: #eef2ff;
  color: #334155;
}

.channel-group-more {
  color: #94a3b8;
  text-align: right;
}

.channel-main {
  display: flex;
  flex-direction: column;
}

.channel-query-panel {
  padding: 12px 14px;
}

.channel-query-grid {
  grid-template-columns: 1fr 1fr 1fr auto;
}

.channel-query-actions {
  grid-column: auto;
  justify-content: flex-end;
}

.channel-list-panel {
  margin-bottom: 0;
}

.channel-group-head {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  padding: 4px 0 14px;
  color: #172033;
}

.channel-current-group {
  font-size: 15px;
}

.channel-divider {
  color: #94a3b8;
  margin: 0 14px;
}

.channel-resource-link {
  height: auto;
  padding: 0;
}

.channel-leaders {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.channel-leader {
  color: #334155;
}

.channel-add-leader {
  height: 24px;
  border: 1px dashed #526dff;
  background: #fff;
  color: #526dff;
  border-radius: 2px;
  padding: 0 10px;
  font: inherit;
}

.channel-toolbar {
  margin-bottom: 8px;
}

.channel-toolbar .xy-toolbar-actions {
  flex-wrap: wrap;
}

.channel-table {
  min-width: 1300px;
  table-layout: fixed;
}

.channel-col-check { width: 64px; }
.channel-col-seq { width: 64px; }
.channel-col-group { width: 210px; }
.channel-col-resource { width: 128px; }
.channel-col-name { width: 190px; }
.channel-col-account { width: 154px; }
.channel-col-system { width: 154px; }
.channel-col-role { width: 102px; }
.channel-col-action { width: 290px; }

.xy-checkbox {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fff;
  vertical-align: middle;
}

.channel-group-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-count-link {
  color: #2f54eb;
  text-decoration: none;
}

.channel-role-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 40px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fff;
}

.channel-action-cell {
  white-space: nowrap;
}

.goods-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.goods-query-panel {
  padding: 12px 14px;
}

.goods-query-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr)) auto;
}

.goods-query-actions {
  grid-column: auto;
  justify-content: flex-end;
}

.goods-toolbar {
  margin-bottom: 8px;
}

.goods-list-panel {
  min-width: 0;
  margin-bottom: 0;
}

.goods-table-wrap {
  min-width: 0;
  overflow: auto;
}

.goods-table {
  min-width: 1580px;
  table-layout: fixed;
}

.goods-col-check { width: 56px; }
.goods-col-seq { width: 64px; }
.goods-col-no { width: 150px; }
.goods-col-cover { width: 110px; }
.goods-col-name { width: 260px; }
.goods-col-group { width: 150px; }
.goods-col-price { width: 100px; }
.goods-col-original { width: 100px; }
.goods-col-room { width: 150px; }
.goods-col-pay { width: 120px; }
.goods-col-state { width: 110px; }
.goods-col-time { width: 180px; }
.goods-col-action,
.goods-action-col {
  width: 170px;
}

.goods-cover {
  width: 56px;
  height: 56px;
  display: inline-block;
  object-fit: cover;
  border: 1px solid #edf0f5;
  background: #f7f8fb;
  vertical-align: middle;
}

.goods-cover.empty {
  border-style: dashed;
}

.goods-no-cell,
.goods-name-cell,
.goods-group-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.goods-count-link {
  color: #2f54eb;
  text-decoration: none;
}

.goods-state-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  color: #5f6b7a;
  background: #fff;
}

.goods-state-tag.active {
  border-color: #52c41a;
  color: #237804;
  background: #f6ffed;
}

.goods-table td.goods-action-cell {
  position: sticky;
  right: 0;
  z-index: 2;
  white-space: nowrap;
  background: #fff;
  box-shadow: -8px 0 12px rgba(15, 23, 42, 0.04);
}

.goods-table th.goods-action-col {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #fafafa;
  box-shadow: -8px 0 12px rgba(15, 23, 42, 0.04);
}

.xy-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
}

.xy-modal[hidden] {
  display: none;
}

.xy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.xy-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(70vw, 1100px);
  max-height: calc(100vh - 72px);
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
}

.xy-modal-head {
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid #edf0f5;
}

.xy-modal-head h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
}

.xy-modal-head button {
  width: 32px;
  height: 32px;
  border: 0;
  color: #8c93a1;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.xy-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 20px 24px;
}

.xy-modal-actions {
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.xy-modal-actions .xy-button {
  min-width: 64px;
}

.goods-edit-dialog {
  width: min(70vw, 1344px);
}

.goods-edit-body {
  display: block;
}

.xinyun-goods-form {
  padding: 18px 34px 22px;
}

.xinyun-goods-form .xy-field {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 52px;
}

.xinyun-goods-form .xy-field > span:first-child,
.goods-bind-body .xy-field > span:first-child {
  text-align: right;
}

.xinyun-goods-form .xy-field > span:first-child {
  padding-right: 14px;
  color: #111827;
  font-size: 14px;
}

.xinyun-goods-form .xy-field.required > span:first-child::before {
  content: "*";
  margin-right: 4px;
  color: #ff4d4f;
}

.xinyun-goods-form .xy-field input[type="text"],
.xinyun-goods-form .xy-field input[type="number"],
.xinyun-goods-form .xy-field select {
  width: 240px;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  padding: 0 11px;
  color: #374151;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.xinyun-goods-form .xy-field input::placeholder,
.xinyun-goods-form .xy-field textarea::placeholder {
  color: #b8bec8;
}

.goods-cover-field,
.goods-detail-field {
  grid-column: auto;
}

.goods-cover-edit {
  display: flex;
  align-items: center;
}

.goods-image-uploader {
  position: relative;
  width: 120px;
  height: 120px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.goods-image-uploader.has-image {
  background-position: center;
  background-size: cover;
}

.goods-image-uploader.has-image .goods-upload-cloud {
  display: none;
}

.goods-image-uploader img,
.goods-image-uploader [data-live-cover-preview] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.goods-upload-cloud {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 4px solid #c8c8c8;
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.goods-upload-cloud::before,
.goods-upload-cloud::after {
  content: "";
  position: absolute;
  border: 4px solid #c8c8c8;
  background: #fff;
}

.goods-upload-cloud::before {
  left: -3px;
  top: -13px;
  width: 17px;
  height: 17px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 18px 0 0 0;
}

.goods-upload-cloud::after {
  right: -5px;
  top: -18px;
  width: 23px;
  height: 23px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 22px 0 0;
}

.goods-radio-field {
  align-items: center;
}

.goods-radio-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.goods-radio-field label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #374151;
  font-size: 14px;
  white-space: nowrap;
}

.goods-radio-field input[type="radio"] {
  width: 14px;
  height: 14px;
  margin: 0 6px 0 0;
  accent-color: #526dff;
}

.goods-detail-field {
  align-items: start !important;
  min-height: 188px !important;
  margin-top: 8px;
}

.goods-detail-field > span:first-child {
  padding-top: 14px;
}

.goods-rich-editor {
  width: calc(100vw - 420px);
  max-width: 1156px;
  min-width: 680px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.goods-rich-editor-menubar {
  display: flex;
  align-items: center;
  height: 38px;
  border-bottom: 1px solid #d9d9d9;
  padding-left: 12px;
  color: #111827;
  font-size: 14px;
}

.goods-rich-editor-menubar span {
  margin-right: 18px;
}

.goods-rich-editor-menubar .xy-button {
  margin-left: auto;
  margin-right: 8px;
  height: 32px;
}

.goods-rich-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid #d9d9d9;
  color: #1f2937;
  font-size: 18px;
  line-height: 1;
}

.goods-rich-editor-toolbar span:first-child {
  font-size: 14px;
}

.goods-rich-editor-toolbar-secondary {
  height: 38px;
  font-size: 17px;
}

.goods-rich-editor-body {
  width: 100%;
  min-height: 118px;
  border: 0;
  padding: 8px 11px;
  color: #374151;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  overflow: auto;
}

.goods-rich-editor-body:empty::before {
  content: attr(data-placeholder);
  color: #b8bec8;
}

.goods-detail-source {
  display: none;
}

.goods-rich-editor img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.goods-bind-dialog {
  width: min(1000px, calc(100vw - 48px));
}

.goods-bind-body {
  display: grid;
  gap: 14px;
}

.goods-bind-search {
  grid-template-columns: 74px 220px;
  justify-content: start;
}

.goods-room-transfer {
  border: 1px solid #e5eaf1;
  background: #fff;
}

.goods-room-transfer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid #edf0f5;
  color: #667085;
  background: #fafbfc;
  font-size: 13px;
}

.goods-room-transfer header label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344054;
}

.goods-room-list {
  height: min(500px, calc(100vh - 260px));
  overflow: auto;
  padding: 6px 0;
}

.goods-room-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  color: #344054;
  font-size: 14px;
}

.goods-room-item:hover {
  background: #f5f7fb;
}

.goods-room-item input,
.goods-room-transfer header input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #526dff;
}

.goods-group-dialog {
  width: 520px;
}

.goods-group-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.goods-group-create input {
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  padding: 0 11px;
  font: inherit;
}

.goods-group-list {
  border: 1px solid #edf0f5;
}

.goods-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid #edf0f5;
}

.goods-group-row:last-child {
  border-bottom: 0;
}

.channel-resource-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.channel-resource-query-panel {
  padding: 12px 14px;
}

.channel-resource-query-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr)) auto;
}

.channel-resource-query-actions {
  grid-column: auto;
  justify-content: flex-end;
}

.channel-resource-list-panel {
  min-width: 0;
  margin-bottom: 0;
}

.channel-resource-toolbar {
  margin-bottom: 8px;
}

.channel-resource-table {
  min-width: 1640px;
  table-layout: fixed;
}

.channel-resource-col-check { width: 50px; }
.channel-resource-col-seq { width: 64px; }
.channel-resource-col-channel { width: 220px; }
.channel-resource-col-room { width: 120px; }
.channel-resource-col-name { width: 330px; }
.channel-resource-col-status { width: 110px; }
.channel-resource-col-time { width: 180px; }
.channel-resource-col-copy { width: 180px; }
.channel-resource-col-qrcode { width: 260px; }
.channel-resource-col-action,
.channel-resource-action-col { width: 160px; }

.channel-resource-channel-cell,
.channel-resource-room-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-resource-link-cell {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap;
}

.channel-resource-link-cell .xy-mini-button + .xy-mini-button {
  margin-left: 6px;
}

.channel-resource-table th.channel-resource-action-col {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #f5f7fb;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .08);
}

.channel-resource-table td.channel-resource-action-col {
  position: sticky;
  right: 0;
  z-index: 2;
  white-space: nowrap;
  background: #fff;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .08);
}

.employee-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 322px minmax(0, 1fr);
  gap: 16px;
}

.employee-org-panel {
  min-height: 0;
  padding: 12px 0;
  background: #fff;
  border: 1px solid #edf0f5;
}

.employee-org-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 8px 12px;
  border-bottom: 1px solid #edf0f5;
}

.employee-org-toggle {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  color: #315bff;
  font-size: 14px;
}

.employee-org-list {
  display: grid;
  gap: 4px;
  padding: 0 10px;
}

.employee-org-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: #334155;
  text-decoration: none;
}

.employee-org-item.active {
  color: #315bff;
}

.employee-org-more {
  color: #98a2b3;
}

.employee-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.employee-query-panel {
  padding: 12px 14px;
}

.employee-query-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr)) auto;
}

.employee-query-actions {
  grid-column: auto;
  justify-content: flex-end;
}

.employee-query-grid.is-collapsed .xy-field {
  display: none;
}

.employee-list-panel {
  min-width: 0;
  margin-bottom: 0;
}

.employee-table {
  min-width: 1290px;
  table-layout: fixed;
}

.employee-col-check { width: 50px; }
.employee-col-seq { width: 64px; }
.employee-col-name { width: 156px; }
.employee-col-phone { width: 120px; }
.employee-col-role { width: 156px; }
.employee-col-dept { width: 156px; }
.employee-col-status { width: 80px; }
.employee-col-channel-group { width: 120px; }
.employee-col-channel-role { width: 120px; }
.employee-col-action,
.employee-action-col { width: 286px; }

.employee-dept-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.employee-status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  color: #667085;
  background: #fff;
}

.employee-status-tag.active {
  border-color: #b7eb8f;
  color: #22a447;
  background: #f6ffed;
}

.employee-table th.employee-action-col {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #f5f7fb;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .08);
}

.employee-table td.employee-action-cell {
  position: sticky;
  right: 0;
  z-index: 2;
  white-space: nowrap;
  background: #fff;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .06);
}

.employee-inline-form {
  display: inline;
  margin: 0;
}

.xy-action.is-disabled,
.xy-action:disabled {
  color: #bfbfbf;
  cursor: not-allowed;
}

.employee-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding-top: 82px;
  background: rgba(0, 0, 0, .45);
}

.employee-dialog-backdrop[hidden] {
  display: none;
}

.employee-dialog,
.employee-password-dialog {
  position: relative;
  width: 520px;
  padding: 0 0 18px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12), 0 3px 6px rgba(0, 0, 0, .08);
}

.employee-dialog h2,
.employee-password-dialog h2 {
  height: 56px;
  margin: 0;
  padding: 0 24px;
  border-bottom: 1px solid #f0f0f0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 500;
  line-height: 56px;
}

.employee-dialog-close {
  position: absolute;
  top: 17px;
  right: 20px;
  width: 22px;
  height: 22px;
  border: 0;
  color: #8c8c8c;
  background: transparent;
  font-size: 20px;
  line-height: 22px;
  cursor: pointer;
}

.employee-dialog form {
  padding: 20px 24px 0;
}

.employee-dialog .xy-dialog-field {
  grid-template-columns: 86px minmax(0, 1fr);
  margin-bottom: 18px;
}

.employee-dialog .xy-dialog-field > span:first-child {
  justify-content: flex-end;
  padding-top: 7px;
  color: #344054;
  font-size: 14px;
}

.employee-dialog .xy-dialog-field p {
  grid-column: 2;
  margin: 4px 0 0;
  color: #8c8c8c;
  font-size: 12px;
}

.employee-radio-field {
  align-items: center;
}

.employee-radio-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 32px;
}

.employee-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344054;
}

.employee-radio-row input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  accent-color: #1677ff;
}

.employee-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 24px 0;
}

.employee-password-dialog {
  width: 360px;
}

.employee-password-body {
  display: grid;
  gap: 12px;
  padding: 24px;
  color: #344054;
}

.employee-password-body strong {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fafafa;
  color: #101828;
  font-size: 15px;
  font-weight: 500;
}

.employee-simple-dialog-form {
  display: grid;
  gap: 16px;
  padding: 20px 24px 0;
}

.employee-simple-dialog-form .xy-dialog-field {
  grid-template-columns: 86px minmax(0, 1fr);
  margin-bottom: 0;
}

.employee-simple-dialog-form .xy-dialog-field > span:first-child {
  text-align: right;
}

.employee-import-body {
  display: grid;
  gap: 14px;
  padding: 22px 24px 8px;
}

.employee-import-box {
  display: grid;
  place-items: center;
  height: 118px;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  color: #526dff;
  background: #fafafa;
  cursor: pointer;
}

.employee-import-box input {
  display: none;
}

.employee-import-body p {
  margin: 0;
  color: #8c93a1;
  font-size: 12px;
}

.role-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.role-query-panel {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.role-query-form {
  display: grid;
  grid-template-columns: 380px 380px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 0 24px;
  background: #fff;
}

.role-query-form label {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  color: #344054;
  font-size: 14px;
}

.role-query-form input,
.role-query-form select {
  width: 100%;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  padding: 0 11px;
  color: #344054;
  background: #fff;
  outline: none;
}

.role-query-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.role-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: 14px 14px 10px;
  border: 0;
  box-shadow: none;
}

.role-toolbar {
  margin-bottom: 8px;
}

.role-table-wrap {
  min-height: 0;
}

.role-table {
  min-width: 1280px;
  table-layout: fixed;
}

.role-col-check { width: 52px; }
.role-col-name { width: 360px; }
.role-col-desc { width: 420px; }
.role-col-count { width: 100px; }
.role-col-status { width: 120px; }
.role-col-action,
.role-action-col { width: 180px; }

.role-table th,
.role-table td {
  text-align: center;
}

.role-action-cell {
  white-space: nowrap;
}

.role-count-link {
  color: #315bff;
  text-decoration: none;
}

.role-pagination {
  justify-content: flex-end;
  padding-top: 10px;
}

.xy-native-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #526dff;
}

.role-toast {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 220;
  transform: translateX(-50%);
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 4px;
  color: #344054;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .16);
  text-align: center;
}

.role-toast[hidden] {
  display: none;
}

.role-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: start center;
  padding-top: 100px;
  background: rgba(0, 0, 0, .45);
}

.role-dialog-backdrop[hidden] {
  display: none;
}

.role-dialog {
  position: relative;
  width: min(1392px, calc(100vw - 180px));
  max-height: calc(100vh - 160px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12), 0 3px 6px rgba(0, 0, 0, .08);
}

.role-dialog h2 {
  height: 54px;
  margin: 0;
  padding: 0 24px;
  border-bottom: 1px solid #f0f0f0;
  color: #101828;
  font-size: 16px;
  font-weight: 500;
  line-height: 54px;
}

.role-dialog form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 54px;
  max-height: calc(100vh - 160px);
}

.role-dialog-layout {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 22px;
  min-height: 0;
  padding: 16px 24px 32px 12px;
}

.role-dialog-side {
  padding-top: 4px;
}

.role-dialog-side .xy-dialog-field {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.role-dialog-side .xy-dialog-field > span:first-child {
  text-align: right;
}

.role-dialog-side .employee-radio-field {
  align-items: start;
}

.role-radio-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 32px;
}

.role-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344054;
}

.role-radio-row input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  accent-color: #1677ff;
}

.role-count-field {
  position: relative;
}

.role-count-field input {
  padding-right: 64px;
}

.role-count-field em {
  position: absolute;
  top: 0;
  right: 12px;
  height: 32px;
  color: #98a2b3;
  font-size: 13px;
  font-style: normal;
  line-height: 32px;
}

.role-permission-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
}

.role-permission-card {
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #edf0f5;
  border-radius: 4px;
  background: #fff;
}

.role-permission-card header {
  padding: 14px 12px 8px;
  background: #fff;
}

.role-permission-card header label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #101828;
  font-weight: 600;
  font-size: 14px;
}

.role-permission-card header p {
  margin: 5px 0 0 26px;
  color: #475467;
  font-size: 13px;
}

.role-permission-tree {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px 16px;
  border-top: 1px solid #f2f4f7;
}

.role-tree-group {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
  color: #344054;
  font-size: 14px;
}

.role-tree-parent {
  display: grid;
  grid-template-columns: 14px auto 1fr;
  align-items: center;
  gap: 8px;
}

.role-tree-parent label,
.role-tree-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.role-tree-parent a {
  justify-self: start;
  color: #315bff;
  text-decoration: none;
}

.role-tree-child {
  margin-left: 42px;
}

.role-tree-parent input,
.role-tree-child input,
.role-permission-card header input {
  width: 16px;
  height: 16px;
  accent-color: #526dff;
}

.role-permission-group strong {
  color: #101828;
  font-weight: 500;
}

.role-dialog-actions {
  border-top: 1px solid #f0f0f0;
}

.channel-examine-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.channel-examine-list-panel {
  min-width: 0;
  margin-bottom: 0;
}

.channel-examine-toolbar {
  margin-bottom: 8px;
}

.channel-examine-table {
  min-width: 1280px;
  table-layout: fixed;
}

.channel-examine-col-check { width: 56px; }
.channel-examine-col-no { width: 130px; }
.channel-examine-col-channel { width: 160px; }
.channel-examine-col-employee { width: 160px; }
.channel-examine-col-room { width: 130px; }
.channel-examine-col-name { width: 430px; }
.channel-examine-col-state { width: 120px; }
.channel-examine-col-time { width: 190px; }

.channel-examine-room-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-promotion-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.channel-promotion-query-panel {
  padding: 12px 14px;
}

.channel-promotion-query-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr)) auto;
}

.channel-promotion-query-actions {
  grid-column: auto;
  justify-content: flex-end;
}

.channel-promotion-list-panel {
  min-width: 0;
  margin-bottom: 0;
}

.channel-promotion-table {
  min-width: 1280px;
  table-layout: fixed;
}

.channel-promotion-col-seq { width: 64px; }
.channel-promotion-col-room { width: 140px; }
.channel-promotion-col-name { width: 520px; }
.channel-promotion-col-type { width: 130px; }
.channel-promotion-col-status { width: 130px; }
.channel-promotion-col-time { width: 190px; }
.channel-promotion-col-action,
.channel-promotion-action-col { width: 140px; }

.channel-promotion-room-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-promotion-table th.channel-promotion-action-col {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #f5f7fb;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .08);
}

.channel-promotion-table td.channel-promotion-action-col {
  position: sticky;
  right: 0;
  z-index: 2;
  white-space: nowrap;
  background: #fff;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .08);
}

.member-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.member-query-panel {
  padding: 12px 14px;
}

.member-query-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr)) auto;
}

.member-query-actions {
  grid-column: auto;
  justify-content: flex-end;
}

.member-list-panel {
  min-width: 0;
  margin-bottom: 0;
}

.member-toolbar {
  margin-bottom: 8px;
}

.member-table {
  min-width: 1420px;
  table-layout: fixed;
}

.member-col-seq { width: 64px; }
.member-col-avatar { width: 72px; }
.member-col-nick { width: 280px; }
.member-col-contact { width: 136px; }
.member-col-province { width: 120px; }
.member-col-city { width: 120px; }
.member-col-source { width: 92px; }
.member-col-channel { width: 280px; }
.member-col-state { width: 100px; }
.member-col-time { width: 170px; }
.member-col-action,
.member-action-col { width: 86px; }

.member-avatar,
.member-avatar-placeholder {
  width: 32px;
  height: 32px;
  display: inline-block;
  border-radius: 4px;
  vertical-align: middle;
  background: #e5e7eb;
}

.member-avatar {
  object-fit: cover;
}

.member-nick-cell,
.member-channel-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-state-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  color: #5f6b7a;
  background: #fff;
}

.member-state-tag.active,
.member-state-tag.paid {
  border-color: #52c41a;
  color: #237804;
  background: #f6ffed;
}

.member-table td.member-action-col {
  position: sticky;
  right: 0;
  z-index: 2;
  white-space: nowrap;
  background: #fff;
  box-shadow: -8px 0 12px rgba(15, 23, 42, 0.04);
}

.member-table th.member-action-col {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #fafafa;
  box-shadow: -8px 0 12px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1200px) {
  .channel-page {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .channel-query-grid {
    grid-template-columns: 1fr 1fr;
  }

  .channel-query-actions {
    grid-column: 1 / span 2;
  }

  .goods-query-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .goods-query-actions {
    grid-column: 1 / span 2;
  }

  .channel-resource-query-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .channel-resource-query-actions {
    grid-column: 1 / span 2;
  }

  .channel-promotion-query-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .channel-promotion-query-actions {
    grid-column: 1 / span 2;
  }

  .member-query-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .member-query-actions {
    grid-column: 1 / span 2;
  }
}

@media (max-width: 1200px) {
  .recording-query-grid {
    grid-template-columns: 1fr 1fr;
  }

  .recording-row {
    grid-template-columns: 44px 90px minmax(0, 1fr);
  }

  .recording-ops {
    grid-column: 3;
    justify-self: start;
  }
}
.assistant-goods-page {
  display: grid;
  gap: 14px;
}

.assistant-room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 6px;
}

.assistant-room-head h1 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

.assistant-room-head p,
.assistant-room-stats {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
}

.assistant-room-stats {
  display: flex;
  gap: 14px;
  margin: 0;
  white-space: nowrap;
}

.assistant-main-tabs,
.assistant-sub-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
}

.assistant-main-tabs a,
.assistant-main-tabs button,
.assistant-sub-tabs button,
.assistant-goods-actions button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.assistant-main-tabs a,
.assistant-main-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 36px;
  color: #475467;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.assistant-main-tabs a.active,
.assistant-main-tabs button.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  font-weight: 600;
}

.assistant-goods-panel {
  padding: 16px;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 6px;
}

.assistant-sub-tabs {
  margin-bottom: 14px;
}

.assistant-sub-tabs button {
  min-width: 82px;
  height: 32px;
  color: #475467;
  border-radius: 4px;
}

.assistant-sub-tabs button.active {
  color: #1677ff;
  background: #eef6ff;
}

.assistant-shop-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #475467;
  font-size: 13px;
}

.xy-switch {
  position: relative;
  width: 38px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #d0d5dd;
  cursor: pointer;
}

.xy-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .16s ease;
}

.xy-switch.active {
  background: #1677ff;
}

.xy-switch.active::after {
  transform: translateX(18px);
}

.assistant-goods-list {
  display: grid;
  gap: 10px;
}

.assistant-goods-card {
  display: grid;
  grid-template-columns: 30px 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #edf0f5;
  border-radius: 5px;
  background: #fff;
}

.assistant-goods-card.recommended {
  border-color: #cfe5ff;
  background: #e8f2fd;
}

.assistant-goods-rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  border-radius: 4px;
  font-size: 12px;
}

.assistant-goods-cover-wrap {
  position: relative;
  width: 76px;
  height: 76px;
}

.assistant-goods-cover,
.assistant-goods-cover.empty {
  width: 76px;
  height: 76px;
  border-radius: 4px;
  object-fit: cover;
  background: #f2f4f7;
}

.assistant-soldout-stamp {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  background: rgba(0, 0, 0, .56);
  font-weight: 700;
}

.assistant-goods-info {
  min-width: 0;
}

.assistant-goods-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.assistant-goods-title-line h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.assistant-recommend-tag {
  flex: none;
  padding: 2px 7px;
  color: #fff;
  background: #1677ff;
  border-radius: 4px;
  font-size: 12px;
}

.assistant-goods-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 0;
}

.assistant-goods-price strong {
  color: #ff6b6b;
  font-size: 15px;
}

.assistant-goods-price del,
.assistant-goods-meta {
  color: #98a2b3;
  font-size: 12px;
}

.assistant-goods-meta {
  display: flex;
  gap: 10px;
  margin: 5px 0 0;
}

.assistant-goods-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 8px;
}

.assistant-goods-actions button {
  padding: 0;
  color: #1677ff;
  font-size: 12px;
  line-height: 22px;
}

.assistant-goods-actions button:hover {
  color: #0958d9;
}

.assistant-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: #98a2b3;
  border: 1px dashed #d0d5dd;
  border-radius: 6px;
}

@media (max-width: 760px) {
  .assistant-room-head,
  .assistant-room-stats {
    display: grid;
  }

  .assistant-goods-card {
    grid-template-columns: 24px 64px minmax(0, 1fr);
  }

  .assistant-goods-cover-wrap,
  .assistant-goods-cover,
  .assistant-goods-cover.empty {
    width: 64px;
    height: 64px;
  }
}

body.assistant-monitor-page {
  display: block;
  grid-template-columns: none;
  grid-template-rows: none;
  width: 100vw;
  height: 100vh;
  min-width: 1360px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #eef2f7;
  color: #1f2937;
}

.assistant-monitor-page button,
.assistant-monitor-page select,
.assistant-monitor-page input,
.assistant-monitor-page textarea {
  font-family: inherit;
}

.assistant-topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 248px;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid #e5eaf2;
}

.assistant-brand,
.assistant-account,
.assistant-room-title {
  display: flex;
  align-items: center;
}

.assistant-brand {
  gap: 9px;
  font-size: 20px;
}

.assistant-brand-mark {
  position: relative;
  width: 24px;
  height: 22px;
}

.assistant-brand-mark::before,
.assistant-brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 5px;
  border: 3px solid #2f6bff;
  transform: rotate(45deg);
}

.assistant-brand-mark::before {
  left: 4px;
  top: 2px;
  width: 13px;
  height: 13px;
}

.assistant-brand-mark::after {
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-width: 2px;
}

.assistant-room-title {
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.assistant-room-title span {
  color: #475467;
}

.assistant-account {
  justify-content: flex-end;
  gap: 8px;
}

.assistant-avatar,
.assistant-online-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  color: #fff;
  background: #cbd5e1;
  border-radius: 50%;
  font-size: 13px;
}

.assistant-account button {
  border: 0;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.assistant-workbench {
  display: grid;
  grid-template-columns: 380px minmax(560px, 1fr) 380px 458px;
  gap: 16px;
  padding: 12px 18px 16px;
  width: 100vw;
  height: calc(100vh - 48px);
  overflow: hidden;
}

.assistant-chat-column,
.assistant-center-column,
.assistant-review-column,
.assistant-user-column {
  min-height: 0;
}

.assistant-chat-column,
.assistant-review-column,
.assistant-user-column,
.assistant-control-panel {
  background: #fff;
  border: 1px solid #e5eaf2;
}

.assistant-chat-column,
.assistant-review-column,
.assistant-user-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.assistant-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid #e5eaf2;
}

.assistant-panel-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.assistant-panel-head button,
.assistant-panel-head label {
  border: 0;
  color: #98a2b3;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.assistant-chat-stream {
  min-height: 0;
  padding: 14px;
  overflow: auto;
}

.assistant-chat-message {
  margin-bottom: 14px;
  color: #475467;
  font-size: 13px;
}

.assistant-chat-message strong {
  margin-right: 8px;
  color: #1f2937;
}

.assistant-machine-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-right: 6px;
  border-radius: 3px;
  color: #fff;
  background: #ff8a00;
  font-size: 12px;
  font-weight: 700;
  vertical-align: text-bottom;
}

.assistant-chat-message time {
  color: #98a2b3;
}

.assistant-chat-message p {
  margin: 7px 0;
}

.assistant-chat-emoji-message p {
  font-size: 22px;
}

.assistant-chat-actions {
  display: flex;
  gap: 5px;
}

.assistant-chat-actions button {
  border: 0;
  padding: 0;
  color: #475467;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.assistant-chat-compose {
  position: relative;
  border-top: 1px solid #e5eaf2;
  padding: 12px;
}

.assistant-emoji-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 12px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}

.assistant-emoji-panel.is-hidden {
  display: none;
}

.assistant-emoji-panel button {
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 21px;
}

.assistant-emoji-panel button:hover {
  background: #f2f4f7;
}

.assistant-compose-icons {
  display: flex;
  gap: 10px;
  height: 24px;
}

.assistant-compose-icons button {
  border: 0;
  padding: 0;
  color: #0f172a;
  background: transparent;
  cursor: pointer;
}

.assistant-chat-compose textarea {
  display: block;
  width: 100%;
  height: 54px;
  resize: none;
  border: 0;
  outline: none;
  color: #475467;
}

.assistant-chat-compose .assistant-primary-button {
  float: right;
}

.assistant-primary-button {
  min-width: 56px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: #2f6bff;
  cursor: pointer;
}

.assistant-primary-button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.assistant-robot-page {
  min-height: 0;
}

.assistant-robot-table {
  min-width: 1180px;
}

.assistant-robot-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  background: #eef2ff;
  color: #526dff;
  font-weight: 700;
}

.assistant-center-column {
  display: grid;
  grid-template-rows: 242px minmax(0, 1fr);
  gap: 10px;
}

.assistant-live-summary {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 186px;
  overflow: hidden;
  border-radius: 4px;
}

.assistant-player-card {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 58%, rgba(24, 83, 226, .42), transparent 24%),
    radial-gradient(circle at 50% 72%, rgba(24, 83, 226, .26), transparent 44%),
    #030712;
}

.assistant-player-logo {
  width: 118px;
  height: 118px;
  border: 16px solid rgba(47, 107, 255, .46);
  border-radius: 26px;
  transform: rotate(45deg);
  box-shadow: 0 0 46px rgba(47, 107, 255, .6);
}

.assistant-player-logo.is-hidden {
  display: none;
}

.assistant-player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
}

.assistant-player-video.is-active {
  opacity: 1;
}

.assistant-enter-live {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  height: 38px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transform: translate(-50%, -50%);
  font-weight: 600;
}

.assistant-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 26px 22px;
  padding: 14px 10px;
  color: #fff;
  background: #1f232c;
}

.assistant-stat-grid div {
  display: grid;
  gap: 5px;
}

.assistant-stat-grid span {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.assistant-stat-grid strong {
  font-size: 16px;
}

.assistant-control-panel {
  min-height: 0;
  overflow: auto;
}

.assistant-monitor-page .assistant-main-tabs {
  height: 62px;
  gap: 42px;
  padding: 0 18px;
  border-bottom: 1px solid #e5eaf2;
}

.assistant-monitor-page .assistant-main-tabs a,
.assistant-monitor-page .assistant-main-tabs button {
  min-width: auto;
  height: 62px;
  color: #667085;
  border-bottom: 2px solid transparent;
  font-size: 15px;
}

.assistant-monitor-page .assistant-main-tabs a.active,
.assistant-monitor-page .assistant-main-tabs button.active {
  color: #2f6bff;
  border-bottom-color: #2f6bff;
}

.assistant-monitor-page .assistant-control-form {
  padding: 18px 22px 24px;
  color: #1f2937;
  font-size: 14px;
}

.assistant-monitor-page .assistant-control-subtabs {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 36px;
  margin-bottom: 20px;
}

.assistant-monitor-page .assistant-control-subtabs button {
  height: 32px;
  border: 0;
  color: #52637a;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.assistant-monitor-page .assistant-control-subtabs button.active {
  color: #2f6bff;
  font-weight: 600;
}

.assistant-monitor-page .assistant-form-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 12px;
}

.assistant-monitor-page .assistant-form-row > label:first-child {
  flex: 0 0 92px;
  color: #344054;
  line-height: 30px;
  text-align: right;
}

.assistant-monitor-page .assistant-radio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 24px;
  color: #475467;
  line-height: 30px;
}

.assistant-monitor-page .assistant-textarea-wrap {
  position: relative;
  width: min(100%, 560px);
}

.assistant-monitor-page .assistant-textarea-wrap textarea {
  display: block;
  width: 100%;
  height: 92px;
  padding: 8px 48px 22px 10px;
  resize: none;
  border: 1px solid #d8dee9;
  border-radius: 3px;
  outline: none;
  color: #1f2937;
  background: #fff;
  font-size: 14px;
}

.assistant-monitor-page .assistant-textarea-wrap textarea:focus,
.assistant-monitor-page .assistant-number-input:focus {
  border-color: #2f6bff;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, .12);
}

.assistant-monitor-page .assistant-textarea-wrap span {
  position: absolute;
  right: 9px;
  bottom: 7px;
  color: #98a2b3;
  font-size: 12px;
}

.assistant-monitor-page .assistant-form-tip {
  margin: -4px 0 12px 102px;
  color: #f04438;
  font-size: 13px;
}

.assistant-monitor-page .assistant-form-tip.indent {
  color: #98a2b3;
}

.assistant-monitor-page .assistant-number-input {
  width: 84px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #d8dee9;
  border-radius: 3px;
  outline: none;
}

.assistant-monitor-page .assistant-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px 102px;
}

.assistant-monitor-page .assistant-form-actions button {
  min-width: 68px;
  height: 30px;
  border: 1px solid #d8dee9;
  border-radius: 3px;
  color: #344054;
  background: #fff;
  cursor: pointer;
}

.assistant-monitor-page .assistant-form-actions .assistant-primary-button {
  border-color: #2f6bff;
  color: #fff;
  background: #2f6bff;
}

.assistant-monitor-page .assistant-goods-panel {
  border: 0;
  border-radius: 0;
  padding: 16px 18px;
}

.assistant-monitor-page .assistant-sub-tabs {
  gap: 44px;
  margin-bottom: 20px;
}

.assistant-monitor-page .assistant-sub-tabs button {
  width: auto;
  min-width: auto;
  color: #52637a;
  background: transparent;
}

.assistant-monitor-page .assistant-sub-tabs button.active {
  color: #2f6bff;
  background: transparent;
  font-weight: 600;
}

.assistant-monitor-page .assistant-shop-switch {
  margin-bottom: 14px;
}

.assistant-monitor-page .assistant-goods-card {
  grid-template-columns: 26px 58px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
}

.assistant-monitor-page .assistant-goods-card.recommended {
  background: #e8f2fd;
}

.assistant-monitor-page .assistant-goods-cover-wrap,
.assistant-monitor-page .assistant-goods-cover,
.assistant-monitor-page .assistant-goods-cover.empty {
  width: 58px;
  height: 58px;
}

.assistant-monitor-page .assistant-goods-title-line h2 {
  font-size: 13px;
}

.assistant-monitor-page .assistant-goods-meta {
  display: none;
}

.assistant-review-column {
  position: relative;
}

.assistant-review-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 18px;
  color: #667085;
  font-size: 13px;
}

.assistant-review-tools button {
  height: 26px;
  border: 1px solid #b7d1ff;
  border-radius: 4px;
  color: #2f6bff;
  background: #eef5ff;
  cursor: pointer;
}

.assistant-review-tools button.danger {
  border-color: #ffd1d1;
  color: #f05b5b;
  background: #fff1f1;
}

.assistant-empty-state {
  position: absolute;
  inset: 92px 0 0;
  display: grid;
  place-content: center;
  gap: 12px;
  color: #b0b8c4;
  text-align: center;
  font-size: 13px;
}

.assistant-empty-state div {
  width: 68px;
  height: 44px;
  border: 2px solid #d9dee8;
  border-radius: 8px 8px 14px 14px;
  background: #fafbfc;
}

.assistant-user-column {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.assistant-user-tabs,
.assistant-user-subtabs {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid #e5eaf2;
}

.assistant-user-tabs button,
.assistant-user-subtabs button {
  height: 100%;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #52637a;
  background: transparent;
  cursor: pointer;
}

.assistant-user-tabs button.active,
.assistant-user-subtabs button.active {
  color: #2f6bff;
  border-bottom-color: #2f6bff;
  font-weight: 600;
}

.assistant-user-subtabs {
  justify-content: center;
  height: 38px;
  border-bottom: 0;
}

.assistant-user-filter {
  display: grid;
  grid-template-columns: 1fr 1fr 44px;
  gap: 6px;
  padding: 0 20px 12px;
}

.assistant-user-filter select,
.assistant-user-filter input,
.assistant-user-filter button {
  height: 28px;
  border: 1px solid #d9dee8;
  border-radius: 3px;
  color: #667085;
  background: #fff;
}

.assistant-online-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px 10px;
  color: #667085;
  font-size: 13px;
}

.assistant-online-head strong {
  margin-right: auto;
  color: #1f2937;
}

.assistant-online-user {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}

.assistant-online-user button {
  border: 0;
  color: #b0b8c4;
  background: transparent;
  cursor: pointer;
}

.room-goods-page,
.room-basic-page {
  display: grid;
  gap: 16px;
}

.room-basic-page {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

.room-manage-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 66px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #edf0f5;
}

.room-manage-save {
  margin-left: auto;
  min-width: 64px;
}

.room-back-link {
  color: #315bff;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
}

.room-manage-head h1 {
  margin: 0;
  color: #111827;
  font-size: 18px;
}

.room-manage-head span {
  color: #475467;
}

.room-manage-layout {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 180px);
  background: #fff;
  border: 1px solid #edf0f5;
}

.room-manage-menu {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 4px 0;
  border-right: 1px solid #edf0f5;
  background: #fff;
}

.room-manage-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 12px;
  color: #344054;
  text-decoration: none;
  border-right: 2px solid transparent;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

.room-manage-menu a.active {
  color: #315bff;
  border-right-color: #315bff;
  font-weight: 600;
}

.room-goods-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  background: #fff;
}

.room-basic-main {
  width: 100%;
  min-width: 0;
  padding: 18px 24px 36px;
  background: #fff;
}

.room-manage-title {
  margin: 0 0 18px;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.room-basic-panel {
  max-width: 1128px;
  border: 0;
  box-shadow: none;
}

.room-basic-form {
  display: grid;
  gap: 20px;
  padding: 8px 0 4px;
}

.room-basic-form .xy-dialog-field {
  grid-template-columns: 140px minmax(0, 510px);
  margin: 0;
}

.room-basic-form .xy-dialog-field:first-child {
  grid-template-columns: 140px minmax(0, 1fr);
}

.room-basic-form .xy-dialog-field > p {
  grid-column: 2;
  margin-top: -10px;
}

.room-basic-actions {
  display: flex;
  gap: 12px;
  padding: 22px 0 8px 118px;
}

.room-basic-actions .xy-button {
  min-width: 90px;
}

.room-goods-query {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  box-shadow: none;
}

.room-bound-goods,
.room-available-goods {
  min-width: 0;
  border: 1px solid #edf0f5;
  box-shadow: none;
}

.room-bound-goods .goods-toolbar {
  margin-bottom: 8px;
}

.room-bound-goods .xy-toolbar-actions {
  gap: 8px;
}

.room-bound-goods .xy-button {
  min-width: 110px;
}

.room-bound-goods .goods-table-wrap {
  overflow: auto;
}

.room-goods-table {
  width: 100%;
  min-width: 0;
}

.room-goods-col-check { width: 54px; }
.room-goods-col-seq { width: 64px; }
.room-goods-col-no { width: 150px; }
.room-goods-col-cover { width: 112px; }
.room-goods-col-name { width: 240px; }
.room-goods-col-group { width: 134px; }
.room-goods-col-pay { width: 118px; }
.room-goods-col-state { width: 112px; }
.room-goods-col-price { width: 134px; }
.room-goods-col-original { width: 134px; }
.room-goods-col-action { width: 88px; }

.room-bound-goods .xy-table td {
  height: 67px;
  padding-top: 6px;
  padding-bottom: 6px;
  vertical-align: middle;
}

.room-goods-table th,
.room-goods-table td {
  text-align: center;
}

.room-goods-table .goods-name-cell {
  white-space: normal;
  word-break: break-word;
}

.room-goods-table td.goods-action-cell,
.room-goods-table th.goods-action-col {
  width: 88px;
}

.room-goods-table .goods-action-cell form {
  display: inline;
}

.room-goods-table .goods-state-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #98a2b3;
  vertical-align: middle;
}

.room-goods-table .goods-state-dot.active {
  background: #38b919;
}

.room-available-goods .xy-list-toolbar {
  justify-content: flex-start;
  gap: 12px;
}

.room-available-goods .xy-list-toolbar strong {
  color: #111827;
  font-size: 15px;
}

.room-available-goods .xy-list-toolbar span {
  color: #667085;
  font-size: 13px;
}

.xy-empty-cell {
  height: 92px;
  color: #98a2b3;
  text-align: center;
}

.room-goods-modal {
  z-index: 120;
  place-items: start center;
  padding-top: 100px;
}

.room-goods-modal-backdrop {
  background: rgba(0, 0, 0, .48);
}

.room-goods-dialog {
  position: relative;
  display: grid;
  grid-template-rows: 54px auto minmax(0, 1fr);
  width: min(1000px, calc(100vw - 96px));
  height: min(676px, calc(100vh - 124px));
  max-height: calc(100vh - 124px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
}

.room-goods-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f5;
}

.room-goods-dialog-head h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.room-goods-dialog-head button {
  width: 32px;
  height: 32px;
  border: 0;
  color: #8c93a1;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.room-goods-dialog-search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 18px;
}

.room-goods-dialog-search label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1f2937;
  font-size: 14px;
}

.room-goods-dialog-search input {
  width: 196px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d8dee9;
  border-radius: 2px;
  color: #1f2937;
  outline: none;
}

.room-goods-dialog-search input:focus {
  border-color: #315bff;
}

.room-goods-dialog-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 72px;
  min-height: 0;
}

.room-goods-dialog-table {
  min-height: 0;
  margin: 0 20px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #edf0f5;
}

.room-goods-pick-table {
  width: 100%;
  min-width: 0;
  border: 0;
  table-layout: fixed;
}

.room-goods-pick-col-check { width: 50px; }
.room-goods-pick-col-seq { width: 80px; }
.room-goods-pick-col-no { width: 150px; }
.room-goods-pick-col-cover { width: 150px; }
.room-goods-pick-col-name { width: 130px; }
.room-goods-pick-col-group { width: 130px; }
.room-goods-pick-col-pay { width: 130px; }
.room-goods-pick-col-price { width: 130px; }

.room-goods-pick-table th,
.room-goods-pick-table td {
  height: 94px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
}

.room-goods-pick-table thead th {
  height: 54px;
  background: #f5f7fb;
  white-space: nowrap;
}

.room-goods-pick-table .goods-cover {
  width: 52px;
  height: 52px;
}

.room-goods-pick-table .goods-name-cell,
.room-goods-pick-table .goods-no-cell {
  max-width: 150px;
  white-space: normal;
  word-break: break-word;
}

.room-goods-pick-table .goods-no-cell {
  max-width: 130px;
  line-height: 21px;
}

.room-goods-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.room-goods-dialog-actions .xy-button {
  min-width: 64px;
}

.live-room-create-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: start center;
  padding-top: 100px;
}

.live-room-create-modal[hidden] {
  display: none;
}

.live-room-create-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
}

.live-room-create-dialog {
  position: relative;
  width: 680px;
  max-height: calc(100vh - 120px);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
}

.live-room-create-dialog form {
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 54px;
  max-height: calc(100vh - 120px);
}

.live-room-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid #edf0f5;
}

.live-room-create-head h2 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.live-room-create-close {
  width: 32px;
  height: 32px;
  border: 0;
  color: #8c93a1;
  background: transparent;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.live-room-create-body {
  min-height: 0;
  padding: 16px 34px 22px;
  overflow-y: auto;
}

.xy-dialog-field {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 43px;
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 14px;
}

.xy-dialog-field > span:first-child {
  padding-top: 7px;
  text-align: right;
  white-space: nowrap;
}

.xy-dialog-field.required > span:first-child::before {
  content: "*";
  margin-right: 4px;
  color: #ff4d4f;
}

.xy-dialog-field input,
.xy-dialog-field select,
.xy-dialog-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  color: #374151;
  background: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.xy-dialog-field input,
.xy-dialog-field select {
  height: 32px;
  padding: 0 11px;
}

.xy-dialog-field textarea {
  height: 54px;
  padding: 7px 11px;
  resize: vertical;
}

.xy-dialog-field input:focus,
.xy-dialog-field select:focus,
.xy-dialog-field textarea:focus {
  border-color: #526dff;
  box-shadow: 0 0 0 2px rgba(82, 109, 255, .12);
}

.xy-dialog-field p {
  margin: 4px 0 0;
  color: #8c93a1;
  font-size: 12px;
  line-height: 1.45;
}

.xy-dialog-inline,
.xy-dialog-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.xy-dialog-inline {
  grid-template-columns: minmax(0, 1fr) auto;
}

.xy-dialog-link {
  color: #2f54eb;
  text-decoration: none;
  white-space: nowrap;
}

.xy-help-dot {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border: 1px solid #b8bec8;
  border-radius: 50%;
  color: #8c93a1;
  font-size: 10px;
  font-style: normal;
}

.xy-cover-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xy-cover-preview {
  width: 160px;
  height: 90px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #dce6ff;
  cursor: pointer;
}

.live-room-cover-landscape .xy-cover-preview {
  width: 160px;
  height: 90px;
}

.room-basic-cover-portrait .xy-cover-preview {
  width: 90px;
  height: 160px;
}

.room-template-selector {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  min-height: 266px;
}

.room-template-item {
  display: grid;
  align-content: start;
  gap: 10px;
  width: 120px;
  padding: 0;
  border: 0;
  color: #374151;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.room-template-item.is-disabled {
  cursor: default;
}

.template-card {
  display: grid;
  place-items: center;
  width: 120px;
  height: 236px;
  margin: 0 auto;
  border: 2px solid transparent;
  border-radius: 2px;
  background: #eef2fb;
  box-sizing: border-box;
}

.template-card-active {
  border-color: #315bff;
}

.template-phone {
  display: grid;
  grid-template-rows: 64px 1fr 34px;
  gap: 7px;
  width: 88px;
  height: 198px;
  padding: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8e0f7;
}

.template-phone span {
  display: block;
  background: #c9d7ff;
}

.template-phone span:nth-child(2) {
  background: #e6ebff;
}

.template-full .template-phone {
  grid-template-rows: 1fr 32px 28px;
}

.template-two .template-phone,
.template-three .template-phone,
.template-three-new .template-phone {
  grid-template-rows: 58px 1fr 34px;
}

.template-two .template-phone span:first-child,
.template-three .template-phone span:first-child,
.template-three-new .template-phone span:first-child {
  background: #d9e2ff;
}

.room-template-item strong {
  color: #374151;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.xy-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xy-cover-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #7d99e8;
  background:
    linear-gradient(28deg, rgba(82,109,255,.14) 0 18%, transparent 18% 100%),
    linear-gradient(205deg, rgba(82,109,255,.12) 0 20%, transparent 20% 100%),
    #dce6ff;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 13px;
}

.xy-cover-remove {
  width: 26px;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  color: #526dff;
  background: #fff;
  cursor: pointer;
}

.xy-cover-status {
  color: #8c93a1;
  font-size: 12px;
}

.xy-cover-status.is-error {
  color: #ff4d4f;
}

.live-cover-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
}

.live-cover-upload-modal[hidden] {
  display: none;
}

.live-cover-upload-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.live-cover-upload-dialog {
  position: relative;
  width: 800px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
}

.live-cover-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 22px;
  border-bottom: 1px solid #edf0f5;
}

.live-cover-upload-head h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
}

.live-cover-upload-head button {
  width: 32px;
  height: 32px;
  border: 0;
  color: #8c93a1;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.live-cover-upload-body {
  padding: 16px 22px 10px;
}

.live-cover-cropper-stage {
  display: grid;
  grid-template-columns: 426px 180px;
  gap: 82px;
  align-items: start;
}

.live-cover-checkerboard {
  display: grid;
  place-items: center;
  width: 426px;
  height: 300px;
  overflow: hidden;
  color: #8c93a1;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #c7c7c7 25%, transparent 25%),
    linear-gradient(-45deg, #c7c7c7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #c7c7c7 75%),
    linear-gradient(-45deg, transparent 75%, #c7c7c7 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.live-cover-checkerboard img,
.live-cover-upload-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.live-cover-upload-preview {
  display: grid;
  place-items: center;
  width: 180px;
  height: 320px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.live-cover-upload-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.live-cover-upload-tools .icon-only {
  min-width: 30px;
  width: 30px;
  height: 28px;
  padding: 0;
}

.live-cover-upload-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: #8c93a1;
  font-size: 12px;
}

.live-cover-upload-status.is-error {
  color: #ff4d4f;
}

.live-cover-upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #edf0f5;
}

.xy-circle-button {
  width: 32px;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  color: #4b5563;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.xy-radio-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 32px;
}

.xy-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
}

.xy-radio-row input {
  width: auto;
  height: auto;
}

.room-setting-panel {
  min-height: 620px;
}

.room-watch-form .xy-dialog-field {
  align-items: center;
}

.xy-inline-help {
  margin: 0 0 0 10px;
  color: #8c8c8c;
  font-size: 12px;
}

.watch-guide-card {
  position: relative;
  width: 90px;
  min-height: 160px;
}

.watch-guide-card img,
.watch-guide-placeholder {
  width: 90px;
  height: 160px;
  object-fit: cover;
  border: 1px solid #eef1f6;
  background: #f7f8fb;
}

.watch-guide-placeholder {
  display: grid;
  place-items: center;
  color: #9aa4b2;
  font-size: 12px;
  text-align: center;
}

.watch-guide-card .xy-cover-remove {
  position: absolute;
  left: 100px;
  bottom: 0;
}

.watch-marquee-box {
  padding: 8px 12px 2px;
}

[data-watch-marquee-options][hidden] {
  display: none;
}

.watch-marquee-box .xy-dialog-field {
  grid-template-columns: 108px minmax(0, 760px);
}

.watch-marquee-row {
  display: grid;
  grid-template-columns: 280px 280px 280px;
  gap: 20px;
  margin-top: 14px;
}

.watch-marquee-row .xy-dialog-field {
  grid-template-columns: auto minmax(0, 190px);
  gap: 10px;
}

.watch-marquee-row input[type="color"] {
  width: 52px;
  min-width: 52px;
  padding: 0;
  border: 0;
  background: transparent;
}

.room-interaction-form .xy-dialog-field {
  grid-template-columns: 154px minmax(0, 180px);
  align-items: center;
  gap: 24px;
  min-height: 32px;
  margin-bottom: 12px;
}

.room-interaction-form textarea {
  min-height: 96px;
  resize: vertical;
}

.room-interaction-form .room-interaction-wide-field {
  grid-template-columns: 154px minmax(0, 1080px);
  align-items: flex-start;
  margin-top: 8px;
}

.room-interaction-form .room-interaction-wide-field textarea {
  min-height: 54px;
}

.room-interaction-word-row {
  display: grid;
  grid-template-columns: 584px 584px;
  gap: 100px;
  margin-top: 8px;
}

.room-interaction-form .room-interaction-word-field {
  grid-template-columns: 154px 394px;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
}

.room-interaction-form .room-interaction-word-field textarea {
  min-height: 230px;
}

.room-interaction-nested {
  margin: -2px 0 12px 0;
}

.room-interaction-nested.is-hidden,
.room-interaction-form .xy-dialog-field.is-hidden {
  display: none;
}

.room-order-fields {
  gap: 18px;
}

.room-heat-form .xy-dialog-field {
  grid-template-columns: 154px 248px;
  align-items: center;
  gap: 18px;
  min-height: 32px;
  margin-bottom: 14px;
}

.room-heat-inline-row {
  display: flex;
  align-items: start;
  gap: 18px;
}

.room-heat-inline-row .xy-dialog-field {
  margin: 0;
}

.room-heat-inline-row .room-heat-base-field {
  grid-template-columns: 104px 248px;
}

.room-access-form .xy-dialog-field.is-hidden {
  display: none;
}

.live-room-create-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.live-room-create-actions .xy-button {
  min-width: 64px;
}
