/* ========== Admin Shell Layout ========== */
.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 220px 1fr;
  background: #f0f2f5;
  transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-shell--collapsed {
  grid-template-columns: 64px 1fr;
}

/* ========== Sidebar ========== */
.admin-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #1a1f36 0%, #101428 100%);
  padding: 0;
  color: #a3aed0;
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f7cff, #6c5ce7);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.brand-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, width 0.3s;
  overflow: hidden;
  white-space: nowrap;
}

.admin-shell--collapsed .brand-text {
  opacity: 0;
  width: 0;
}

.collapse-btn {
  cursor: pointer;
  color: #a3aed0;
  font-size: 18px;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.collapse-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ========== Navigation ========== */
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.admin-nav::-webkit-scrollbar {
  width: 4px;
}

.admin-nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.admin-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  color: #a3aed0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.admin-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav-link.router-link-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.2), rgba(108, 92, 231, 0.15));
  font-weight: 600;
}

.admin-nav-link.router-link-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #4f7cff, #6c5ce7);
}

.admin-nav-link .el-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.admin-shell--collapsed .admin-nav-link {
  justify-content: center;
  padding: 0;
}

.admin-shell--collapsed .admin-nav-link::before {
  left: 0;
}

.nav-text {
  transition: opacity 0.2s, width 0.3s;
  overflow: hidden;
  white-space: nowrap;
}

.admin-shell--collapsed .nav-text {
  opacity: 0;
  width: 0;
}

/* ========== Workspace ========== */
.admin-workspace {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  background: #ffffff;
  padding: 0 32px;
  border-bottom: 1px solid #e8ecf1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-topbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.admin-topbar span {
  color: #8f9bba;
  font-size: 13px;
  font-weight: 500;
}

.admin-topbar strong {
  color: #1b2559;
  font-size: 15px;
  font-weight: 700;
}

.admin-topbar .el-button {
  border-radius: 8px;
  font-weight: 600;
}

.admin-main {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 40px);
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-main .page {
  max-width: none;
}

/* ========== Login Page ========== */
.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 50%, #24243e 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.admin-login-shell::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.1) 0%, transparent 50%);
  animation: loginPulse 15s ease-in-out infinite;
}

@keyframes loginPulse {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}

.admin-login-panel {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(26, 31, 54, 0.85);
  backdrop-filter: blur(20px);
  padding: 36px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.admin-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 700;
}

.admin-login-header {
  margin: 32px 0 28px;
}

.admin-login-header h1 {
  font-size: 28px;
  color: #ffffff;
  font-weight: 800;
}

.admin-login-header p:last-child {
  margin: 12px 0 0;
  color: #a3aed0;
  font-size: 14px;
}

.admin-captcha-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 12px;
  width: 100%;
}

.captcha-image-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
}

.captcha-image-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.captcha-image-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.captcha-image-button img {
  display: block;
  width: 132px;
  height: 44px;
}

/* ========== Page Components ========== */
.page-header {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #4f7cff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  margin: 0;
  color: #1b2559;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.page-header p:last-child {
  margin: 12px 0 0;
  color: #8f9bba;
  line-height: 1.7;
  font-size: 14px;
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
  margin-bottom: 28px;
}

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

/* ========== Metric Cards ========== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.metric-card {
  border: none;
  border-radius: 14px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.metric-card span {
  display: block;
  color: #8f9bba;
  font-size: 13px;
  font-weight: 500;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: #1b2559;
  font-size: 24px;
  font-weight: 800;
}

.dashboard-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-listings-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 128px);
}

.listing-control-panel {
  display: grid;
  grid-template-columns: minmax(340px, 0.65fr) minmax(520px, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.listing-metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-metric-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 34px;
  border-radius: 8px;
  background: #f8f9fe;
  padding: 8px 10px;
  color: #8f9bba;
  font-size: 12px;
  font-weight: 600;
}

.listing-metric-strip strong {
  color: #1b2559;
  font-size: 16px;
  font-weight: 800;
}

.listing-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) minmax(170px, 0.8fr);
  gap: 12px;
}

.listing-filter-bar .el-form-item {
  margin-bottom: 0;
}

.listing-filter-bar .el-form-item__label {
  color: #8f9bba;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.listing-action-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 1px;
  white-space: nowrap;
}

/* ========== Dashboard Panels ========== */
.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.dashboard-panel {
  max-width: none;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dashboard-panel h2 {
  margin: 0 0 18px;
  color: #1b2559;
  font-size: 17px;
  font-weight: 700;
}

.pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border-top: 1px solid #f0f2f5;
  color: #8f9bba;
  text-decoration: none;
  padding: 0 4px;
  transition: background 0.2s;
  border-radius: 8px;
}

.pending-row:first-of-type {
  border-top: 0;
}

.pending-row:hover {
  background: #f8f9fe;
}

.pending-row strong {
  color: #1b2559;
  font-weight: 700;
}

/* ========== Table Panel ========== */
.table-panel {
  margin-top: 0;
  width: 100%;
  overflow-x: hidden;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 4px;
}

.table-panel .el-table {
  --el-table-border-color: #f0f2f5;
  --el-table-header-bg-color: #f8f9fe;
  --el-table-header-text-color: #8f9bba;
  --el-table-text-color: #1b2559;
  font-size: 14px;
}

.table-panel .el-table th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-panel .el-table__inner-wrapper {
  min-width: 760px;
}

.admin-listings-table.el-table .el-table__inner-wrapper {
  min-width: 0;
}

.admin-listings-table.el-table .el-scrollbar__wrap {
  overflow-x: hidden !important;
}

.admin-listings-table.el-table .el-scrollbar__bar.is-horizontal {
  display: none;
}

.admin-listings-table.el-table {
  font-size: 12px;
}

.admin-listings-table.el-table th {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.admin-listings-table.el-table .cell {
  padding: 0 5px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.admin-listings-table.el-table th .cell {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  overflow: visible;
}

.admin-listings-table .listing-code {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

.admin-listings-table.el-table .el-table__cell {
  padding: 8px 0;
}

.admin-listings-table.el-table .el-button--small {
  padding: 4px 8px;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: #8f9bba;
  font-size: 12px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table-pagination {
  justify-content: flex-end;
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px 16px;
  box-sizing: border-box;
  width: 100%;
  color: #66728f;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pagination-summary,
.pagination-page,
.pagination-size-label {
  flex-shrink: 0;
  white-space: nowrap;
}

.page-size-select {
  width: 86px;
  flex: 0 0 86px;
}

.page-size-select .el-select__wrapper {
  min-height: 30px;
  padding: 4px 8px;
}

.page-size-select .el-select__selected-item {
  min-width: max-content;
}

.admin-listings-page .table-pagination {
  margin-top: auto;
}

.pagination-controls .el-button--small {
  min-width: 44px;
  padding: 5px 8px;
}

.pagination-controls .el-button + .el-button {
  margin-left: 0;
}

@media (max-width: 980px) {
  .listing-control-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .listing-filter-bar {
    grid-template-columns: 1fr;
  }

  .listing-action-strip {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ========== Filter Panel ========== */
.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-panel .el-form-item {
  margin-bottom: 0;
}

.filter-panel .el-form-item__label {
  color: #8f9bba;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== Order Panel ========== */
.order-panel {
  max-width: min(100%, 560px);
  border: none;
  border-radius: 14px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-panel p {
  margin: 0 0 14px;
  color: #8f9bba;
}

.order-panel h2 {
  margin: 0 0 18px;
  color: #1b2559;
  font-size: 18px;
  font-weight: 700;
}

/* ========== Status Panel ========== */
.status-panel {
  max-width: 520px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.status-panel span {
  color: #8f9bba;
  font-size: 13px;
}

.status-panel strong {
  display: block;
  margin-top: 8px;
  color: #4f7cff;
  font-size: 24px;
  font-weight: 800;
}

.status-panel p {
  margin: 10px 0 0;
  color: #8f9bba;
}

/* ========== Forms ========== */
.listing-form,
.login-form {
  max-width: 860px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.full-control {
  width: 100%;
}

/* ========== Dialogs ========== */
.dialog-body {
  display: grid;
  gap: 14px;
}

.dialog-body p {
  margin: 0;
  color: #8f9bba;
  line-height: 1.6;
}

/* ========== Pagination ========== */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  padding: 16px 0;
}

/* ========== Publish Config Panel ========== */
.publish-config-panel {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.publish-config-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.publish-config-main h2 {
  margin: 4px 0 8px;
  color: #1b2559;
  font-size: 20px;
  font-weight: 700;
}

.publish-config-main span {
  color: #8f9bba;
  font-size: 14px;
}

.publish-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-stat-grid .publish-stat strong {
  font-size: 18px;
}

.publish-stat {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  background: #f8f9fe;
}

.publish-stat strong {
  color: #4f7cff;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.publish-stat span,
.config-value {
  color: #8f9bba;
  font-size: 13px;
}

/* ========== Timeline ========== */
.timeline-item {
  border-top: 1px solid #f0f2f5;
  padding: 16px 0;
}

.timeline-item:first-of-type {
  border-top: 0;
}

.timeline-item strong {
  display: block;
  color: #1b2559;
}

.timeline-item span {
  color: #8f9bba;
  font-size: 13px;
}

.panel-action {
  margin-top: 16px;
}

/* ========== Upload Components ========== */
.upload-line input {
  width: 100%;
}

.upload-stack {
  display: grid;
  gap: 12px;
  width: 100%;
}

.upload-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
}

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

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

.evidence-row span {
  overflow-wrap: anywhere;
  color: #8f9bba;
}

/* ========== Code Panel ========== */
.code-panel {
  max-width: none;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.code-panel pre {
  overflow-x: auto;
  margin: 0;
  background: #1a1f36;
  color: #e2e8f0;
  padding: 20px;
  line-height: 1.7;
  font-size: 13px;
}

/* ========== Notification List ========== */
.notification-list {
  display: grid;
  gap: 14px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.notification-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.notification-item.unread {
  border-left: 3px solid #4f7cff;
}

.notification-item span {
  color: #4f7cff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notification-item h2 {
  margin: 8px 0;
  color: #1b2559;
  font-size: 16px;
  font-weight: 700;
}

.notification-item p {
  margin: 0 0 10px;
  color: #8f9bba;
  font-size: 14px;
}

.notification-item small {
  color: #a3aed0;
  font-size: 12px;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* ========== Listing Grid ========== */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.listing-card {
  display: block;
  min-height: 172px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.listing-card span {
  color: #4f7cff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.listing-card strong {
  display: block;
  margin-top: 12px;
  color: #1b2559;
  font-size: 18px;
  font-weight: 700;
}

.listing-card p {
  color: #8f9bba;
  line-height: 1.6;
  font-size: 14px;
}

.listing-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.listing-price b {
  color: #1b2559;
  font-weight: 700;
}

.listing-price em {
  color: #8f9bba;
  font-style: normal;
  font-size: 13px;
}

/* ========== Detail Grid ========== */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ========== Responsive ========== */
@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 200px 1fr;
  }

  .admin-shell--collapsed {
    grid-template-columns: 64px 1fr;
  }

  .admin-sidebar-header {
    padding: 0 14px;
  }

  .admin-nav {
    padding: 10px 8px;
  }

  .admin-nav-link {
    padding: 0 10px;
  }
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell--collapsed {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    align-items: center;
    height: auto;
    min-height: 60px;
    padding: 0 16px;
  }

  .admin-sidebar-header {
    min-height: auto;
    padding: 0;
    border-bottom: 0;
  }

  .admin-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    padding: 0;
    margin-left: auto;
    overflow-x: auto;
  }

  .admin-nav-link {
    min-height: 40px;
    white-space: nowrap;
    font-size: 13px;
  }

  .admin-nav-link::before {
    display: none;
  }

  .admin-shell--collapsed .admin-nav-link {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .admin-shell--collapsed .brand-text,
  .admin-shell--collapsed .nav-text {
    opacity: 1;
    width: auto;
  }

  .admin-topbar {
    min-height: 64px;
    padding: 0 20px;
  }

  .admin-main {
    padding: 20px 16px;
  }

  .metric-grid,
  .dashboard-metrics,
  .dashboard-panels {
    grid-template-columns: 1fr;
  }

  .publish-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px;
  }

  .admin-topbar .el-button {
    width: 100%;
  }

  .page-header-row {
    flex-direction: column;
    gap: 16px;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

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

  .captcha-image-button,
  .captcha-image-button img {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .admin-shell,
  .admin-nav-link,
  .metric-card,
  .notification-item,
  .listing-card {
    transition: none;
  }
}
