:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-soft: #dbeafe;
  --success: #10b981;
  --success-soft: #d1fae5;
  --warning-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #e2e8f0;
  --line-light: #eef2f7;
  --text: #1e293b;
  --text-regular: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --table-head: #eff6ff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 18px rgba(15, 23, 42, 0.08);
  font-size: 14px;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[hidden] {
  display: none !important;
}

.enterprise-register-page {
  min-width: 1180px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(14, 165, 233, 0.1), transparent 34%),
    linear-gradient(160deg, #f7fbff 0%, #eef4fb 52%, #f8fafc 100%);
  overflow: auto;
}

.enterprise-register-topbar {
  height: 68px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.enterprise-register-brand,
.enterprise-register-topbar nav {
  display: flex;
  align-items: center;
}

.enterprise-register-brand {
  gap: 12px;
}

.enterprise-register-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  font-weight: 900;
}

.enterprise-register-brand strong {
  font-size: 17px;
}

.enterprise-register-topbar nav {
  gap: 10px;
}

.enterprise-register-topbar nav a {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-regular);
  background: #fff;
  font-weight: 700;
}

.enterprise-register-topbar nav a:hover {
  color: var(--primary);
  border-color: #bfdbfe;
  background: #f8fbff;
}

.enterprise-register-shell {
  width: min(1280px, calc(100vw - 80px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 32px 0 44px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.enterprise-register-aside {
  position: sticky;
  top: 24px;
  min-height: 520px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(37, 99, 235, 0.68)),
    linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.enterprise-register-aside p,
.enterprise-register-aside h1,
.enterprise-register-aside span {
  margin: 0;
}

.enterprise-register-aside p {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.enterprise-register-aside h1 {
  margin-top: 12px;
  font-size: 38px;
  line-height: 1.16;
}

.enterprise-register-aside > span {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.enterprise-register-flow {
  margin: auto 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.enterprise-register-flow li {
  padding: 15px 0 15px 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.28);
}

.enterprise-register-flow strong,
.enterprise-register-flow em {
  display: block;
}

.enterprise-register-flow strong {
  color: #fff;
  font-size: 15px;
}

.enterprise-register-flow em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-style: normal;
}

.enterprise-register-panel {
  padding: 0 30px 28px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.enterprise-register-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-light);
}

.enterprise-register-head p,
.enterprise-register-head h2 {
  margin: 0;
}

.enterprise-register-head p {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.enterprise-register-head h2 {
  margin-top: 4px;
  font-size: 24px;
}

.enterprise-register-head > span {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #047857;
  background: var(--success-soft);
  font-size: 12px;
  font-weight: 800;
}

.enterprise-register-form {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.enterprise-form-section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}

.enterprise-section-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.enterprise-section-title > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 900;
}

.enterprise-section-title strong,
.enterprise-section-title em {
  display: block;
}

.enterprise-section-title strong {
  color: var(--text);
  font-size: 16px;
}

.enterprise-section-title em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

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

.enterprise-form-grid .field-wide {
  grid-column: 1 / -1;
}

.enterprise-register-form .field {
  gap: 8px;
}

.enterprise-register-form .field input,
.enterprise-register-form .field textarea,
.enterprise-register-form .field .ui-select-trigger {
  border-color: #d7e0eb;
  background: #fff;
}

.enterprise-register-form .field input,
.enterprise-register-form .field .ui-select-trigger {
  height: 42px;
}

.enterprise-register-form .field textarea {
  min-height: 96px;
}

.enterprise-register-actions {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.enterprise-register-actions .form-status {
  margin: 0;
}

.enterprise-register-actions .primary-button {
  min-width: 160px;
  height: 40px;
}

.enterprise-login-links {
  width: max-content;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.enterprise-login-links a {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 900px) {
  .enterprise-register-page {
    min-width: 0;
  }

  .enterprise-register-topbar {
    height: auto;
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .enterprise-register-brand strong {
    font-size: 15px;
    line-height: 1.5;
  }

  .enterprise-register-topbar nav {
    width: 100%;
  }

  .enterprise-register-topbar nav a {
    flex: 1;
    justify-content: center;
  }

  .enterprise-register-shell {
    width: 100%;
    min-height: 0;
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .enterprise-register-aside {
    position: static;
    min-height: 0;
    padding: 24px;
  }

  .enterprise-register-aside h1 {
    font-size: 30px;
  }

  .enterprise-register-flow {
    margin-top: 22px;
  }

  .enterprise-register-panel {
    padding: 0 18px 20px;
  }

  .enterprise-register-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .enterprise-form-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .enterprise-register-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .enterprise-register-actions .primary-button {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 1280px;
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.admin-page {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
}

.sub-nav {
  min-height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.system-name {
  height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.sub-link {
  width: calc(100% - 24px);
  height: 44px;
  margin: 8px 12px 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.sub-button {
  font: inherit;
}

.sub-link:hover,
.sub-link.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.sub-link.is-active {
  font-weight: 700;
}

.admin-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.breadcrumb,
.top-actions,
.account-trigger {
  display: flex;
  align-items: center;
}

.breadcrumb {
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}

.breadcrumb strong {
  color: var(--text);
  font-weight: 700;
}

.top-actions {
  gap: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
}

.icon-button:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.account-menu {
  position: relative;
}

.account-trigger {
  gap: 9px;
  min-height: 38px;
  max-width: 260px;
  padding: 3px 10px 3px 3px;
  border: 0;
  border-radius: 999px;
  color: var(--text-regular);
  background: #f1f5f9;
  font-weight: 600;
}

.account-trigger strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  color: var(--primary);
  background: var(--primary-soft);
}

.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  font-size: 12px;
  font-weight: 800;
}

.account-arrow {
  color: var(--muted);
  font-size: 14px;
  transform: translateY(-1px);
}

.account-dropdown {
  width: 124px;
  padding: 6px 0;
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 60;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.account-dropdown::before {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  top: -6px;
  right: 30px;
  border-left: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  background: #fff;
  transform: rotate(45deg);
}

.account-dropdown button {
  width: 100%;
  height: 38px;
  padding: 0 18px;
  border: 0;
  color: var(--text-regular);
  background: transparent;
  font-size: 14px;
  text-align: left;
}

.account-dropdown button:hover {
  color: var(--primary);
  background: #f8fbff;
}

.tabbar {
  height: 46px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.tab {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}

.tab-button {
  font: inherit;
}

.tab.is-active {
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.15);
  background: var(--primary-soft);
  font-weight: 700;
}

.tab:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.content-area {
  flex: 1;
  min-height: 0;
  padding: 14px 22px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.admin-view {
  min-height: 0;
  flex: 1;
  display: none;
  flex-direction: column;
}

.admin-view.is-active {
  display: flex;
}

.filter-panel,
.table-panel {
  background: var(--panel);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.filter-panel {
  flex: 0 0 auto;
  min-height: 58px;
  padding: 10px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.filter-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-field > span {
  color: var(--muted);
  white-space: nowrap;
}

.filter-panel select,
.filter-panel input {
  width: 220px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
}

.filter-panel input {
  width: 280px;
}

.filter-chain .ui-select {
  width: 240px;
}

.filter-district .ui-select,
.filter-price .ui-select {
  width: 170px;
}

.filter-status .ui-select,
.filter-audit .ui-select {
  width: 132px;
}

.filter-keyword input {
  width: 260px;
}

.ui-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.ui-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ui-select-trigger {
  width: 100%;
  height: 34px;
  padding: 0 38px 0 12px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.ui-select-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  right: 14px;
  top: 50%;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
}

.ui-select.is-open .ui-select-trigger,
.ui-select-trigger:focus {
  outline: 3px solid rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.58);
}

.ui-select-value {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select-menu {
  width: 100%;
  max-height: 280px;
  padding: 6px;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: none;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ui-select-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.ui-select.is-open .ui-select-menu {
  display: grid;
  gap: 2px;
}

.ui-select-option {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--text-regular);
  background: transparent;
  line-height: 1.45;
  text-align: left;
}

.ui-select-option:hover,
.ui-select-option.is-selected {
  color: var(--primary);
  background: var(--primary-soft);
}

.ui-select-option.is-selected {
  font-weight: 700;
}

.primary-button,
.success-button,
.danger-button,
.ghost-button {
  height: 34px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.primary-button {
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.16);
}

.primary-button:hover {
  border-color: var(--primary-light);
  background: var(--primary-light);
}

.primary-button:disabled,
.success-button:disabled,
.danger-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.success-button {
  border: 1px solid var(--success);
  color: #fff;
  background: var(--success);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.14);
}

.danger-button {
  border: 1px solid var(--danger);
  color: #fff;
  background: var(--danger);
  box-shadow: 0 6px 12px rgba(220, 38, 38, 0.14);
}

.danger-button:hover {
  border-color: #b91c1c;
  background: #b91c1c;
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--text-regular);
  background: #fff;
}

.ghost-button:hover {
  color: var(--primary);
  border-color: #bfdbfe;
  background: #f8fbff;
}

.button-icon {
  font-size: 15px;
  line-height: 1;
}

.table-panel {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-head {
  flex: 0 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-light);
}

.panel-head h1 {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
}

.head-actions,
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-tabs {
  flex: 0 0 auto;
  height: 46px;
  display: flex;
  align-items: end;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.status-tabs button {
  height: 34px;
  position: relative;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.status-tabs button.is-active {
  color: var(--primary);
}

.status-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
}

.toolbar {
  flex: 0 0 auto;
  min-height: 46px;
}

.table-status {
  margin-left: auto;
  color: var(--muted);
}

.product-list-head {
  min-height: 0;
  align-items: flex-end;
  padding: 10px 0;
}

.product-list-tools {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-list-head .status-tabs {
  height: 36px;
  gap: 28px;
}

.product-list-head .status-tabs button {
  height: 30px;
}

.product-list-head .toolbar {
  min-height: 38px;
  flex-wrap: wrap;
}

.product-list-head .head-actions {
  flex: 0 0 auto;
  padding-bottom: 6px;
}

.product-list-head .table-status {
  padding-left: 8px;
  white-space: nowrap;
}

.product-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid var(--line-light);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.product-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.product-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.product-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
}

.product-table th {
  height: 42px;
  padding: 0 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--text-regular);
  background: var(--table-head);
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.product-table td {
  min-height: 66px;
  padding: 10px;
  border-bottom: 1px solid var(--line-light);
  color: var(--text-regular);
  vertical-align: middle;
  background: #fff;
}

.product-table th:last-child,
.product-table td:last-child {
  width: 156px;
  min-width: 156px;
  position: sticky;
  right: 0;
  z-index: 3;
  box-shadow: -12px 0 18px -18px rgba(15, 23, 42, 0.35);
}

.product-table th:last-child {
  z-index: 5;
  background: var(--table-head);
}

.product-table td:last-child {
  background: #fff;
}

.product-summary {
  min-width: 330px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-thumb {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--faint);
  background: #f8fafc;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-summary-body {
  min-width: 0;
}

.product-title {
  max-width: 360px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 600;
}

.product-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-badges {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-badges span {
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 600;
}

.price-cell {
  white-space: nowrap;
}

.status-pill {
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-action {
  min-width: 54px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.status-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.status-pill.is-enabled {
  color: #047857;
  background: var(--success-soft);
}

.status-pill.is-disabled {
  color: #b45309;
  background: var(--warning-soft);
}

.product-state-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions {
  min-width: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions button {
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: var(--primary);
  background: transparent;
  font-weight: 600;
}

.row-actions button:hover {
  background: var(--primary-soft);
}

.empty-row {
  height: 160px;
  color: var(--muted);
  text-align: center;
}

.pagination-bar {
  min-height: 52px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
}

.pagination-info {
  color: var(--muted);
  white-space: nowrap;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.page-size-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.page-size-field .ui-select {
  width: 96px;
}

.page-size-field .ui-select-trigger {
  height: 34px;
}

.pager-button,
.page-buttons button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-regular);
  background: #fff;
  font-weight: 600;
}

.pager-button:hover,
.page-buttons button:hover {
  color: var(--primary);
  border-color: #bfdbfe;
  background: #f8fbff;
}

.pager-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.page-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.page-buttons button.is-active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.dictionary-panel {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 22px 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dictionary-grid {
  min-height: 0;
  flex: 1;
  display: block;
  overflow: hidden;
  padding-top: 12px;
}

.dictionary-tabs {
  flex: 0 0 auto;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-light);
}

.dictionary-tab {
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.dictionary-tab:hover {
  color: var(--primary);
  background: #f8fbff;
}

.dictionary-tab.is-active {
  color: var(--primary);
  border-color: #bfdbfe;
  background: var(--primary-soft);
}

.dictionary-card {
  min-height: 0;
  display: none;
  flex-direction: column;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.dictionary-card.is-active {
  display: flex;
  height: 100%;
}

.dictionary-head {
  min-height: 62px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-light);
}

.dictionary-head h2 {
  margin: 0 0 3px;
  font-size: 16px;
}

.dictionary-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dictionary-table-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.dictionary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.dictionary-table th,
.dictionary-table td {
  height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
  white-space: nowrap;
}

.dictionary-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text-regular);
  background: var(--table-head);
  font-weight: 700;
}

.dictionary-table td {
  color: var(--text-regular);
  background: #fff;
}

.admin-dialog {
  width: min(920px, calc(100vw - 80px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 24px 48px -12px rgba(15, 23, 42, 0.18);
}

.product-dialog {
  width: min(1100px, calc(100vw - 64px));
}

.product-detail-dialog {
  width: min(980px, calc(100vw - 64px));
}

.small-dialog {
  width: min(520px, calc(100vw - 80px));
}

.confirm-dialog {
  width: min(460px, calc(100vw - 80px));
}

.password-dialog {
  width: min(460px, calc(100vw - 80px));
}

.dictionary-dialog {
  width: min(520px, calc(100vw - 80px));
}

.user-dialog {
  width: min(760px, calc(100vw - 80px));
}

.admin-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.admin-dialog form {
  margin: 0;
  padding: 0 28px 24px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
}

.dialog-head {
  flex: 0 0 auto;
  height: 56px;
  margin: 0 -28px 22px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
  background: #fff;
}

.dialog-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.confirm-dialog form {
  padding-top: 24px;
}

.confirm-body {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.confirm-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

.confirm-icon.is-warning {
  color: #b45309;
  background: #fef3c7;
}

.confirm-icon.is-success {
  color: #047857;
  background: var(--success-soft);
}

.confirm-body h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
}

.confirm-body p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.audit-dialog-text {
  margin: 0 0 14px;
  color: var(--text-regular);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
}

.password-form-grid {
  display: grid;
  gap: 16px;
}

.product-dialog .form-grid {
  max-height: calc(100vh - 186px);
  padding: 2px 6px 8px 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.product-dialog .form-grid::-webkit-scrollbar {
  width: 6px;
}

.product-dialog .form-grid::-webkit-scrollbar-track {
  background: transparent;
}

.product-dialog .form-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.product-dialog .form-grid::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.product-detail-content {
  max-height: calc(100vh - 174px);
  padding: 2px 6px 8px 2px;
  display: grid;
  gap: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.product-detail-content::-webkit-scrollbar {
  width: 6px;
}

.product-detail-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.product-detail-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-detail-images img,
.product-detail-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #f8fafc;
}

.product-detail-images img {
  object-fit: cover;
}

.product-detail-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.product-detail-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.product-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-detail-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.product-detail-item {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.product-detail-item span {
  color: var(--muted);
  font-size: 12px;
}

.product-detail-item strong {
  min-width: 0;
  color: var(--text-regular);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-badges span {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 800;
}

.product-detail-section {
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}

.product-detail-section h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
}

.product-detail-section p {
  margin: 0;
  color: var(--text-regular);
  line-height: 1.8;
  white-space: pre-wrap;
}

.product-detail-reason p {
  color: var(--danger);
}

.field {
  display: grid;
  gap: 10px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label-row > span {
  color: var(--text-regular);
  font-size: 13px;
  font-weight: 500;
}

.field-label-row small {
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--text-regular);
  font-size: 13px;
  font-weight: 500;
}

.field:has(input[required]) > span::after,
.field:has(select[required]) > span::after,
.field:has(textarea[required]) > span::after,
.field:has(input[required]) .field-label-row > span::after,
.field:has(select[required]) .field-label-row > span::after,
.field:has(textarea[required]) .field-label-row > span::after {
  content: " *";
  color: var(--danger);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b9c6db;
  background: #fafbfc;
}

.field .ui-select-trigger {
  height: 42px;
}

.field input,
.field select {
  height: 42px;
  padding: 0 14px;
}

.field textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.65;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #fff;
}

.image-field {
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  background: #fbfdff;
}

.image-uploader {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.image-upload-box {
  height: 156px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed #aac3ef;
  border-radius: 8px;
  color: var(--primary);
  background: #f6f9ff;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.image-upload-box:hover {
  border-color: var(--primary);
  background: #eef5ff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.image-upload-box input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}

.image-upload-box strong {
  color: var(--text);
  font-size: 14px;
}

.image-upload-box em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.image-preview-list {
  min-height: 156px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 12px;
}

.image-preview-item {
  height: 116px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-preview-item button {
  width: 26px;
  height: 26px;
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 18px;
  line-height: 1;
}

.image-preview-item button:hover {
  background: var(--danger);
}

.image-empty {
  min-height: 116px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--faint);
  background: #fff;
}

.image-upload-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.image-upload-status.is-error {
  color: var(--danger);
}

.image-upload-status.is-success {
  color: var(--success);
}

.file-field {
  min-height: 112px;
  margin-top: 16px;
  display: grid;
  place-items: center;
  border: 1px dashed #bfd2ee;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbff;
  font-weight: 700;
}

.file-field input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.import-tip {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dialog-actions,
.import-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.product-dialog .dialog-actions {
  flex: 0 0 auto;
  margin: 16px -28px -24px;
  padding: 16px 28px 18px;
  border-top: 1px solid var(--line-light);
  background: #fff;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.04);
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--success);
}

.result-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  padding: 9px 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--danger);
  background: #fff5f5;
}

.result-list li + li {
  margin-top: 8px;
}

.enterprise-profile-panel {
  flex: 0 0 auto;
  min-height: 76px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.enterprise-profile-panel h1 {
  margin: 0 0 4px;
  font-size: 18px;
}

.enterprise-profile-panel p {
  margin: 0;
  color: var(--muted);
}

.enterprise-product-panel {
  margin-top: 12px;
}

.enterprise-product-toolbar {
  min-height: 48px;
  border-bottom: 1px solid var(--line-light);
}

.enterprise-product-toolbar input {
  width: 260px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
}

.enterprise-product-audit .ui-select {
  width: 132px;
}

.enterprise-product-table {
  min-width: 980px;
}

.reject-reason {
  margin-top: 4px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.enterprise-auth-tabs {
  height: 40px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.enterprise-auth-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 700;
}

.enterprise-auth-tabs button.is-active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.enterprise-auth-form {
  display: none;
}

.enterprise-auth-form.is-active {
  display: block;
}

.enterprise-login-shell {
  grid-template-columns: minmax(0, 0.96fr) 520px;
}

.enterprise-login-panel {
  padding-top: 46px;
  justify-content: flex-start;
  overflow-y: auto;
}

.enterprise-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.enterprise-register-grid .field-wide {
  grid-column: 1 / -1;
}

.enterprise-admin-link {
  margin-top: 10px;
  display: inline-flex;
  color: var(--primary);
  font-weight: 700;
}

.management-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.management-panel {
  min-height: 0;
  padding: 0 22px 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.management-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.management-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.management-filters input {
  width: 260px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#enterpriseView .management-toolbar {
  min-height: 58px;
  padding: 10px 0;
  align-items: center;
}

#enterpriseView .management-filters {
  flex: 1;
  min-width: 0;
}

#enterpriseView .management-filters input {
  width: 280px;
  flex: 0 1 280px;
}

#enterpriseView .management-filters .ui-select {
  width: 172px;
  flex: 0 0 172px;
}

#enterpriseView .management-filters .primary-button {
  flex: 0 0 auto;
  min-width: 76px;
}

#enterpriseView .table-status {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 12px;
  white-space: nowrap;
}

.management-table-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
  border-top: 1px solid var(--line-light);
}

.management-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
}

.management-table th,
.management-table td {
  min-height: 46px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
  vertical-align: middle;
  background: #fff;
}

.management-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text-regular);
  background: var(--table-head);
  font-weight: 700;
}

.management-table .empty-row {
  color: var(--muted);
  text-align: center;
  vertical-align: middle;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-item {
  min-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fbfdff;
}

.check-item input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.login-page {
  min-width: 1120px;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(140deg, #f8fbff 0%, #eef5ff 46%, #f7f9fc 100%);
}

.login-shell {
  width: min(1080px, calc(100vw - 96px));
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 420px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
  animation: loginEnter 0.42s ease-out both;
}

.login-visual {
  position: relative;
  padding: 58px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(15, 23, 42, 0.7), rgba(37, 99, 235, 0.58)),
    linear-gradient(135deg, #1e3a8a 0%, #2563eb 58%, #10b981 100%);
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  pointer-events: none;
}

.login-visual::after {
  content: "";
  width: 52%;
  height: 1px;
  position: absolute;
  left: 58px;
  bottom: 52px;
  background: rgba(255, 255, 255, 0.3);
}

.login-brand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}

.login-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  font-size: 28px;
  font-weight: 900;
}

.login-brand-copy {
  max-width: 430px;
}

.login-brand-copy p,
.login-brand-copy h1 {
  margin: 0;
  letter-spacing: 0;
}

.login-brand-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 700;
}

.login-brand-copy h1 {
  margin-top: 12px;
  color: #fff;
  font-size: 42px;
  line-height: 1.22;
  font-weight: 800;
}

.login-data-board {
  width: min(420px, 100%);
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
}

.board-head {
  display: flex;
  gap: 6px;
}

.board-head span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
}

.board-metric {
  margin-top: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.board-metric strong {
  font-size: 15px;
}

.board-metric span {
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
}

.board-line {
  width: 64%;
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.board-line.is-wide {
  width: 100%;
  background: rgba(255, 255, 255, 0.38);
}

.board-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.board-grid span {
  height: 54px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
}

.board-grid span:nth-child(2) {
  background: rgba(16, 185, 129, 0.32);
}

.board-grid span:nth-child(3) {
  background: rgba(251, 191, 36, 0.28);
}

.board-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-tags span {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.login-panel {
  padding: 72px 46px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 24%),
    #fff;
}

.login-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 700;
}

.login-panel h2 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}

.login-panel .field + .field {
  margin-top: 18px;
}

.login-panel .field span {
  color: var(--text-regular);
}

.login-panel .field input {
  height: 46px;
  border-color: #d7e0eb;
  background: #f8fafc;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.login-panel .field input:hover,
.login-panel .field input:focus {
  background: #fff;
}

.login-button {
  width: 100%;
  height: 48px;
  margin-top: 24px;
  font-size: 15px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.login-button:active {
  transform: translateY(0);
}

.login-page.enterprise-login-page {
  place-items: center;
  padding: 48px;
  background:
    linear-gradient(120deg, rgba(16, 185, 129, 0.08), transparent 30%),
    linear-gradient(150deg, #f6f9fd 0%, #eef5ff 44%, #f8fafc 100%);
}

.login-shell.enterprise-login-shell {
  width: min(1180px, calc(100vw - 56px));
  min-height: min(760px, calc(100vh - 56px));
  margin: auto;
  grid-template-columns: minmax(0, 0.96fr) 520px;
}

.enterprise-login-shell .login-visual {
  padding: 52px 48px;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.68)),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #059669 100%);
}

.enterprise-login-shell .login-brand-copy h1 {
  max-width: 330px;
  font-size: 38px;
}

.enterprise-login-panel {
  min-height: 0;
  padding: 72px 46px 44px;
  justify-content: center;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.enterprise-login-panel::-webkit-scrollbar {
  width: 6px;
}

.enterprise-login-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.enterprise-auth-head {
  flex: 0 0 auto;
  margin-bottom: 18px;
}

.enterprise-auth-head p,
.enterprise-auth-head h2,
.enterprise-auth-head span {
  margin: 0;
}

.enterprise-auth-head p {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.enterprise-auth-head h2 {
  margin-top: 6px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.enterprise-auth-head span {
  margin-top: 8px;
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

.enterprise-auth-tabs {
  height: 42px;
  margin-bottom: 18px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #f1f5f9;
}

.enterprise-auth-tabs button {
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.enterprise-auth-tabs button.is-active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.enterprise-auth-form {
  min-height: 0;
  display: none;
  animation: authPanelEnter 0.22s ease-out both;
}

.enterprise-auth-form.is-active {
  display: block;
}

#enterpriseLoginForm.is-active {
  max-width: 420px;
}

.enterprise-register-steps {
  max-width: 600px;
  display: grid;
  gap: 16px;
}

.register-step {
  padding: 20px;
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.step-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  font-size: 13px;
  font-weight: 900;
}

.step-title {
  display: grid;
  gap: 2px;
}

.step-title strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.step-title em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.step-body {
  display: grid;
  gap: 14px;
}

.enterprise-login-panel .field {
  gap: 8px;
}

.enterprise-login-panel .field input,
.enterprise-login-panel .field textarea,
.enterprise-login-panel .field .ui-select-trigger {
  border-color: #d7e0eb;
  background: #fff;
}

.enterprise-login-panel .field input,
.enterprise-login-panel .field .ui-select-trigger {
  height: 42px;
}

.enterprise-login-panel .field textarea {
  min-height: 84px;
}

.enterprise-auth-actions {
  padding-top: 16px;
}

.enterprise-admin-link {
  width: max-content;
  margin-top: 12px;
  display: inline-flex;
  color: var(--primary);
  font-weight: 800;
}

.enterprise-flow-board {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  display: grid;
  gap: 8px;
}

.enterprise-flow-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enterprise-flow-title span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.enterprise-flow-title strong {
  color: #fff;
  font-size: 18px;
}

.enterprise-flow-list {
  position: relative;
  display: grid;
  gap: 3px;
}

.enterprise-flow-list::before {
  display: none;
}

.enterprise-flow-list div {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.enterprise-flow-list span {
  width: auto;
  height: auto;
  display: inline;
  color: #fff;
  background: transparent;
  font-size: 17px;
  font-weight: 900;
}

.enterprise-flow-list strong {
  color: #fff;
  font-size: 17px;
}

.enterprise-flow-list em {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-style: normal;
}

@keyframes authPanelEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  html,
  body {
    min-width: 0;
  }

  .admin-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .sub-nav {
    display: none;
  }

  .content-area {
    padding: 14px;
  }

  .table-panel {
    margin-top: 14px;
    padding: 0 14px;
  }

  .dictionary-panel {
    padding: 0 14px 14px;
  }

  .dictionary-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-profile-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .enterprise-login-shell {
    grid-template-columns: 1fr;
  }

  .enterprise-register-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .panel-head,
  .toolbar,
  .status-tabs {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
  }

  .filter-panel label {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-panel input,
  .filter-panel select {
    width: 100%;
  }

  #enterpriseView .management-filters,
  #enterpriseView .management-filters input,
  #enterpriseView .management-filters .ui-select,
  #enterpriseView .management-filters .primary-button,
  #enterpriseView .table-status {
    width: 100%;
    flex: 0 0 auto;
  }

  #enterpriseView .table-status {
    padding-left: 0;
  }

  .enterprise-product-toolbar,
  .enterprise-product-toolbar .filter-field,
  .enterprise-product-toolbar input,
  .enterprise-product-toolbar .ui-select,
  .enterprise-product-toolbar .primary-button,
  .enterprise-product-toolbar .ghost-button,
  .enterprise-product-toolbar .table-status {
    width: 100%;
    flex: 0 0 auto;
  }

  .head-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .table-status {
    margin-left: 0;
  }

  .product-list-tools,
  .product-list-head .head-actions {
    width: 100%;
  }

  .product-list-head {
    align-items: flex-start;
  }

  .product-list-head .status-tabs,
  .product-list-head .toolbar {
    width: 100%;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .product-list-head .status-tabs {
    gap: 18px;
  }

  .product-list-head .head-actions {
    padding-bottom: 0;
  }

  .product-list-head .table-status {
    padding-left: 0;
  }

  .product-table-wrap {
    min-height: 260px;
  }

  .pagination-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }

  .pagination-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-dialog,
  .product-dialog,
  .small-dialog {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .admin-dialog form {
    max-height: calc(100vh - 28px);
  }

  .product-dialog .form-grid {
    max-height: calc(100vh - 172px);
  }

  .product-detail-hero,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail-title {
    flex-direction: column;
  }

  .field-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .image-uploader {
    grid-template-columns: 1fr;
  }

  .image-upload-box {
    height: 128px;
  }

  .image-preview-list {
    min-height: 116px;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }

  .login-page {
    min-width: 0;
    padding: 16px;
  }

  .login-shell {
    width: min(360px, calc(100vw - 48px));
    max-width: none;
    min-height: 0;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 220px;
    min-width: 0;
    padding: 30px;
  }

  .login-visual::before {
    inset: 18px;
  }

  .login-visual::after {
    display: none;
  }

  .login-logo {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }

  .login-brand-copy h1 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .login-data-board {
    display: none;
  }

  .login-panel {
    min-width: 0;
    padding: 34px 26px 26px;
  }

  .login-panel form,
  .login-panel .field,
  .login-panel .field input,
  .login-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .login-panel h2 {
    font-size: 26px;
  }

  .login-page.enterprise-login-page {
    display: block;
    min-height: 100vh;
    padding: 14px;
    overflow-y: auto;
  }

  .login-shell.enterprise-login-shell {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .enterprise-login-shell .login-visual {
    min-height: 188px;
    padding: 28px;
  }

  .enterprise-flow-board {
    display: none;
  }

  .enterprise-login-panel {
    padding: 28px 22px 24px;
    overflow: visible;
  }

  .enterprise-auth-head h2 {
    font-size: 24px;
  }

  .enterprise-register-steps {
    gap: 14px;
  }

  .register-step {
    padding: 16px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    font-size: 12px;
  }

  .step-title strong {
    font-size: 14px;
  }
}
