:root {
  --sidebar-width: clamp(216px, 16vw, 256px);
  --sidebar-width-collapsed: 76px;
  --page-gap: clamp(16px, 2vw, 28px);
  --page-pad-x: clamp(16px, 2.4vw, 32px);
  --page-pad-y: clamp(16px, 2vw, 24px);
  --bg-page: #f6f7f6;
  --sidebar-bg: #314638;
  --sidebar-text: rgba(255, 255, 255, 0.96);
  --sidebar-muted: rgba(255, 255, 255, 0.72);
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(73, 97, 79, 0.14);
  --panel: #ffffff;
  --primary: #5f7a66;
  --primary-dark: #49614f;
  --success: #52745a;
  --danger: #c95555;
  --warning: #b98a12;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 16px 42px rgba(15, 23, 42, 0.08);
  --shadow-panel: 0 10px 24px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 13px;
  background:
    radial-gradient(circle at top left, rgba(133, 161, 142, 0.08), transparent 24%),
    linear-gradient(180deg, #f8f9f8 0%, #f3f5f3 100%);
}

body.has-open-modal {
  overflow: hidden;
}

a {
  color: inherit;
}

form {
  margin: 0;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-weight: 700;
}

.is-hidden {
  display: none !important;
}

.toast-region {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 320;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.toast {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(73, 97, 79, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  pointer-events: auto;
  animation: toast-in 0.18s ease;
}

.toast.is-success {
  border-color: rgba(82, 116, 90, 0.18);
  background: rgba(243, 248, 244, 0.98);
}

.toast.is-error {
  border-color: rgba(201, 85, 85, 0.18);
  background: rgba(253, 244, 244, 0.98);
}

.toast.is-warning {
  border-color: rgba(185, 138, 18, 0.2);
  background: rgba(255, 250, 235, 0.98);
}

.toast-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
}

.toast-message {
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.5;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-kicker,
.glass-kicker,
.workspace-kicker,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  appearance: none;
  border: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #5a7661 0%, #48614f 100%);
  box-shadow: 0 12px 24px rgba(73, 97, 79, 0.16);
}

.btn-secondary {
  color: var(--text-main);
  background: #fff;
  border: 1px solid rgba(73, 97, 79, 0.10);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(90deg, #d05d5d 0%, #b64242 100%);
  box-shadow: 0 10px 22px rgba(182, 66, 66, 0.14);
}

.btn-inline {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

button:disabled,
.btn-primary[disabled],
.btn-secondary[disabled],
.btn-danger[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
  font: inherit;
}

textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(95, 122, 102, 0.42);
  box-shadow: 0 0 0 4px rgba(95, 122, 102, 0.10);
}

label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

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

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

.submit-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(73, 97, 79, 0.10);
  background: rgba(255, 255, 255, 0.82);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
}

.data-table tbody tr:hover td {
  background: rgba(247, 248, 247, 0.9);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 280px;
}

.table-actions form {
  margin: 0;
}

.inline-password-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-password-form input {
  width: 128px;
  min-height: 32px;
  padding: 0 10px;
}

.panel-note {
  margin: 0;
  color: var(--success);
  font-size: 12px;
  line-height: 1.6;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-pill.pending {
  background: #eef3eb;
  color: #59734f;
}

.status-pill.processing,
.status-pill.partial_success {
  background: #fff7ed;
  color: var(--warning);
}

.status-pill.success {
  background: #eef6f0;
  color: var(--success);
}

.status-pill.failed {
  background: #fdecec;
  color: #b64242;
}

.glass-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(95, 122, 102, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.90)),
    rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-panel);
}

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

.glass-panel-head.compact {
  align-items: center;
}

.glass-panel-head h3 {
  margin: 0;
  font-size: 22px;
}

.glass-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(95, 122, 102, 0.12);
  background:
    linear-gradient(135deg, rgba(120, 145, 114, 0.14), rgba(255, 255, 255, 0.8)),
    rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-panel);
}

.glass-hero-copy h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
}

.glass-hero-copy p:last-child {
  margin: 10px 0 0;
  color: var(--text-sub);
}

.glass-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.glass-stat {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(95, 122, 102, 0.10);
  background: rgba(255, 255, 255, 0.68);
}

.glass-stat span {
  color: var(--text-sub);
  font-size: 11px;
}

.glass-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.login-body {
  padding: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(146, 226, 49, 0.22), transparent 18%),
    radial-gradient(circle at 80% 15%, rgba(124, 207, 26, 0.16), transparent 18%),
    radial-gradient(circle at 78% 80%, rgba(205, 235, 92, 0.14), transparent 22%),
    linear-gradient(140deg, #0f150d 0%, #16210f 38%, #1d2f11 62%, #8edb28 160%);
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(540px, 0.96fr) minmax(360px, 410px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.6vw, 40px);
  max-width: 1420px;
  margin: 0 auto;
  padding: 28px clamp(24px, 3.2vw, 48px);
}

.login-showcase {
  display: grid;
  gap: 20px;
  color: #eff8e8;
}

.login-brandline {
  display: flex;
  align-items: center;
  gap: 18px;
}

.iqiyi-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(12, 18, 10, 0.18);
  background: linear-gradient(180deg, #35d11f, #26b314);
}

.iqiyi-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: scale(0.9);
  filter: contrast(1.03) saturate(1.02);
}

.login-showcase h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.login-visual {
  position: relative;
  width: min(560px, 100%);
  min-height: 260px;
  border-radius: 28px;
  border: 1px solid rgba(173, 236, 88, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at center, rgba(125, 211, 42, 0.12), transparent 55%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.visual-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(201, 255, 136, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 255, 136, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent);
}

.visual-screen {
  position: absolute;
  left: 88px;
  bottom: 56px;
  width: 190px;
  height: 116px;
  border-radius: 18px;
  border: 1px solid rgba(169, 237, 81, 0.35);
  background: linear-gradient(180deg, rgba(17, 26, 16, 0.96), rgba(35, 54, 22, 0.92));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.visual-screen::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 72px;
  height: 8px;
  background: rgba(198, 255, 135, 0.18);
  border-radius: 999px;
  transform: translateX(-50%);
}

.visual-chart {
  position: absolute;
  inset: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(123, 211, 41, 0.10), rgba(123, 211, 41, 0.02));
}

.visual-bars {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 28px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.visual-bars span {
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #76cb39, #4fa31b);
  box-shadow: 0 0 18px rgba(79, 163, 27, 0.22);
}

.visual-bars span:nth-child(1) { height: 24px; }
.visual-bars span:nth-child(2) { height: 48px; }
.visual-bars span:nth-child(3) { height: 66px; }
.visual-bars span:nth-child(4) { height: 38px; }

.visual-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(206, 246, 146, 0.3);
  background: radial-gradient(circle at 30% 30%, rgba(222, 255, 184, 0.62), rgba(132, 214, 31, 0.08));
  box-shadow: 0 0 28px rgba(132, 214, 31, 0.12);
}

.orb-a { width: 54px; height: 54px; top: 38px; right: 120px; }
.orb-b { width: 26px; height: 26px; top: 112px; left: 64px; }
.orb-c { width: 16px; height: 16px; bottom: 54px; right: 72px; }

.login-card {
  width: 100%;
  padding: 34px 30px 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(146, 195, 76, 0.22);
  box-shadow: 0 28px 80px rgba(20, 33, 9, 0.24);
}

.login-card-head h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

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

.field-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(78, 102, 40, 0.12);
  background: linear-gradient(180deg, #f8fbe8, #f4f7ec);
}

.field-shell input {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  min-height: auto;
}

.field-shell:focus-within {
  border-color: rgba(106, 200, 15, 0.42);
  box-shadow: 0 0 0 4px rgba(124, 207, 26, 0.10);
}

.field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(124, 207, 26, 0.14);
  color: #5eab17;
  font-size: 11px;
  font-weight: 800;
}

.login-submit {
  min-height: 52px;
  margin-top: 6px;
  border-radius: 18px;
  background: linear-gradient(90deg, #4fa31b, #68bf2f);
  box-shadow: 0 16px 32px rgba(79, 163, 27, 0.18);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 12px 10px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  transition: width 0.2s ease, padding 0.2s ease;
}

.sidebar-edge-handle,
.sidebar-edge-expand {
  appearance: none;
  border: 1px solid rgba(73, 97, 79, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.sidebar-edge-handle:hover,
.sidebar-edge-expand:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 122, 102, 0.18);
  background: #fff;
}

.sidebar-edge-collapse {
  position: absolute;
  top: 50%;
  right: -14px;
  z-index: 4;
  width: 28px;
  height: 72px;
  opacity: 0;
  transform: translateY(-50%) translateX(4px);
}

.admin-sidebar:hover .sidebar-edge-collapse,
.admin-sidebar:focus-within .sidebar-edge-collapse {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sidebar-edge-expand {
  position: fixed;
  top: 50%;
  left: 8px;
  z-index: 40;
  width: 24px;
  height: 76px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-8px);
}

.brand-panel {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0;
}

.brand-logo img {
  width: 112%;
  height: 112%;
  display: block;
  object-fit: contain;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 12px;
  color: #fff;
  line-height: 1.35;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--sidebar-muted);
  font-size: 11px;
}

.sidebar-section {
  display: grid;
  gap: 6px;
}

.sidebar-label {
  padding: 0 6px;
  color: var(--sidebar-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.sidebar-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--sidebar-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.9);
}

.sidebar-link-title {
  font-size: 13px;
  font-weight: 700;
}

.sidebar-link small {
  opacity: 0.8;
  font-size: 11px;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-user-panel {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.sidebar-user-panel.is-static {
  cursor: default;
}

.sidebar-user-panel::-webkit-details-marker {
  display: none;
}

.sidebar-user-menu {
  display: grid;
  gap: 8px;
}

.sidebar-user-menu summary {
  list-style: none;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.sidebar-user-copy strong,
.sidebar-user-copy small {
  display: block;
}

.sidebar-user-copy strong {
  font-size: 12px;
  color: #fff;
}

.sidebar-user-copy small {
  margin-top: 2px;
  color: var(--sidebar-muted);
  font-size: 10px;
  line-height: 1.4;
}

.sidebar-user-caret {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  transition: transform 0.16s ease;
}

.sidebar-user-menu[open] .sidebar-user-caret {
  transform: rotate(180deg);
}

.sidebar-admin-menu {
  display: grid;
  gap: 6px;
  padding: 0 0 0 44px;
}

.sidebar-admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-admin-link:hover,
.sidebar-admin-link.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.14);
}

.sidebar-logout {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.14);
}

.admin-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  transition: margin 0.2s ease;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: var(--page-pad-y) var(--page-pad-x) 12px;
  background: rgba(247, 248, 247, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(73, 97, 79, 0.08);
}

.topbar-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.topbar-breadcrumb a {
  text-decoration: none;
  color: var(--text-sub);
}

.topbar-breadcrumb a:hover {
  color: var(--primary-dark);
}

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

.topbar-page-title strong {
  font-size: 18px;
  line-height: 1.2;
  color: var(--text-main);
}

.topbar-page-title span {
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.4;
}

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

.topbar-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(73, 97, 79, 0.10);
  color: var(--text-main);
  font-weight: 700;
}

.topbar-chip.warning {
  background: #fff8e7;
  border-color: rgba(185, 138, 18, 0.18);
  color: #8d6909;
}

.admin-content {
  display: grid;
  gap: var(--page-gap);
  width: 100%;
  padding: 0 var(--page-pad-x) var(--page-pad-y);
}

.users-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.7fr);
  gap: var(--page-gap);
  align-items: start;
}

.users-hero.users-hero-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
}

.users-hero-copy {
  display: grid;
  gap: 4px;
}

.users-hero.users-hero-compact .glass-kicker {
  margin-bottom: 2px;
}

.users-hero.users-hero-compact h2 {
  font-size: 18px;
  line-height: 1.15;
}

.users-hero.users-hero-compact .glass-hero-copy p:last-child {
  margin: 0;
  font-size: 12px;
}

.users-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.users-hero.users-hero-compact .glass-stat {
  min-width: 116px;
  padding: 12px 14px;
  border-radius: 16px;
}

.users-hero.users-hero-compact .glass-stat strong {
  margin-top: 6px;
  font-size: 20px;
}

.users-form-panel {
  position: sticky;
  top: 110px;
}

.users-table-panel {
  min-width: 0;
}

body.sidebar-collapsed .admin-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

body.sidebar-collapsed .admin-sidebar {
  width: 0;
  min-width: 0;
  padding: 0;
  border-right: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

body.sidebar-collapsed .sidebar-edge-expand {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1080px) {
  .glass-hero,
  .admin-shell,
  .users-grid {
    grid-template-columns: 1fr;
  }

  .glass-hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .users-form-panel {
    position: static;
  }

  .users-hero.users-hero-compact {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .users-hero-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px 32px;
    max-width: none;
  }

  .login-showcase {
    gap: 16px;
    order: 2;
  }

  .login-showcase h1 {
    font-size: 34px;
  }

  .form-grid,
  .glass-hero-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-topbar {
    padding: var(--page-pad-y) var(--page-pad-x) 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-copy {
    flex-wrap: wrap;
  }

  .admin-content {
    padding: 0 var(--page-pad-x) var(--page-pad-y);
  }

  .topbar-breadcrumb {
    font-size: 15px;
  }

  .topbar-page-title strong {
    font-size: 16px;
  }

  .users-hero.users-hero-compact {
    padding: 14px;
    gap: 14px;
  }

  .users-hero.users-hero-compact h2 {
    font-size: 17px;
  }

  .users-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .users-hero.users-hero-compact .glass-stat {
    min-width: 0;
    padding: 10px 12px;
  }

  .users-grid {
    gap: 14px;
  }

  .users-form-panel,
  .users-table-panel {
    position: static;
  }

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

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: grid;
    gap: 12px;
  }

  .data-table tr {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(73, 97, 79, 0.10);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  }

  .data-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  }

  .data-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--text-sub);
    font-size: 11px;
    font-weight: 700;
  }

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

  .table-actions form,
  .table-actions button,
  .inline-password-form {
    width: 100%;
  }

  .inline-password-form {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-password-form input {
    width: 100%;
  }

  .table-actions .btn-inline {
    width: 100%;
    justify-content: center;
  }
}
