:root {
  --blue-950: #06214a;
  --blue-800: #0b55c5;
  --blue-700: #126ce2;
  --blue-500: #3b94ff;
  --blue-100: #e8f3ff;
  --blue-50: #f5faff;
  --white: #ffffff;
  --slate: #59708d;
  --line: rgba(26, 103, 203, 0.14);
  --shadow: 0 24px 60px rgba(18, 74, 140, 0.16);

  /* ===== 设计 Token 体系 ===== */
  /* 间距（4px 基准） */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  /* 字号 */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  /* 字重（降级，最高 600） */
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  /* 圆角（按层级递减） */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  /* 语义色 */
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-info: #2563eb;
  --color-info-bg: #eff6ff;
  /* 响应式断点 */
  --bp-sm: 640px;
  --bp-md: 1024px;
  --bp-lg: 1280px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--blue-950);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(59, 148, 255, 0.2), transparent 28rem),
    linear-gradient(135deg, #eef7ff 0%, #ffffff 48%, #dbeeff 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
  opacity: 0;
  transform: translateX(-100%);
}

body.is-pjax-loading::before {
  opacity: 1;
  animation: pjax-progress 0.9s ease-in-out infinite;
}

body.is-pjax-loading main.content {
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
  opacity: 0.94;
  transform: translateY(4px);
  filter: saturate(0.98);
}

body.is-inline-loading main.content {
  opacity: 0.9;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
  filter: saturate(0.98);
}

body.is-inline-loading .data-panel,
body.is-inline-loading .modal-card,
body.is-inline-loading .topbar {
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

body.is-inline-loading .data-panel,
body.is-inline-loading .modal-card {
  opacity: 0.78;
  transform: translateY(4px) scale(0.996);
}

body.has-active-overlay.is-inline-loading main.content,
body.has-active-overlay.is-inline-loading .data-panel,
body.has-active-overlay.is-inline-loading .modal-card,
body.has-active-overlay.is-inline-loading .topbar {
  opacity: 1;
  transform: none;
  filter: none;
}

body.is-pjax-loading .data-panel,
body.is-pjax-loading .work-card,
body.is-pjax-loading .hero-card,
body.is-pjax-loading .topbar,
body.is-pjax-loading .stat-card {
  position: relative;
  overflow: hidden;
}

body.is-pjax-loading .data-panel::after,
body.is-pjax-loading .work-card::after,
body.is-pjax-loading .hero-card::after,
body.is-pjax-loading .topbar::after,
body.is-pjax-loading .stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 40%, rgba(255, 255, 255, 0.52) 50%, rgba(255, 255, 255, 0.18) 60%, transparent 100%);
  transform: translateX(-120%);
  animation: panel-shimmer 1.15s ease-in-out infinite;
  pointer-events: none;
}

body.is-inline-loading .content {
  position: relative;
}

body.is-pjax-loading .sidebar {
  position: relative;
  overflow: hidden;
}

body.is-pjax-loading .sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 24%, transparent 76%, rgba(59, 148, 255, 0.05));
  pointer-events: none;
}

body.is-inline-loading .content::after {
  content: "";
  position: fixed;
  top: 20px;
  right: 26px;
  z-index: 60;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(30, 140, 255, 0.14);
  border-top-color: #1e8cff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(30, 140, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
  animation: inline-loading-spin 0.72s linear infinite;
}

body.is-inline-loading .content::before {
  content: "加载中...";
  position: fixed;
  top: 18px;
  right: 58px;
  z-index: 60;
  padding: 7px 12px;
  color: #2d6fcf;
  border: 1px solid rgba(30, 140, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(30, 140, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: inline-loading-pulse 0.9s ease-in-out infinite;
}

body.is-pagination-loading .data-panel {
  position: relative;
}

body.is-pagination-loading .data-panel .table-wrap,
body.is-pagination-loading .data-panel .data-table,
body.is-pagination-loading .data-panel .pagination {
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

body.is-pagination-loading .data-panel .table-wrap,
body.is-pagination-loading .data-panel .data-table {
  opacity: 0.48;
  transform: translateY(3px) scale(0.997);
  filter: saturate(0.9);
}

body.is-pagination-loading .data-panel .pagination {
  opacity: 0.72;
}

body.is-pagination-loading .data-panel .pagination,
body.is-pagination-loading .data-panel .table-wrap {
  pointer-events: none;
}

body.is-pagination-loading .data-panel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(30, 140, 255, 0.12);
  border-top-color: #1e8cff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 40px rgba(30, 140, 255, 0.18);
  animation: inline-loading-spin 0.68s linear infinite;
}

body.is-pagination-loading .data-panel::after {
  content: "分页加载中...";
  position: absolute;
  top: calc(50% + 36px);
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
  padding: 8px 14px;
  color: #2d6fcf;
  border: 1px solid rgba(30, 140, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(30, 140, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  animation: inline-loading-pulse 0.9s ease-in-out infinite;
}

@keyframes pjax-progress {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes inline-loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes inline-loading-pulse {
  0%,
  100% {
    opacity: 0.74;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes panel-shimmer {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-body {
  display: grid;
  place-items: center;
  padding: 30px;
  overflow: hidden;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 420px;
  gap: 38px;
  width: min(1080px, 100%);
  align-items: center;
}

.login-brand {
  position: relative;
  padding: 46px;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(232, 243, 255, 0.78)),
    radial-gradient(circle at 84% 22%, rgba(59, 148, 255, 0.35), transparent 16rem);
  box-shadow: var(--shadow);
}

.login-brand::after {
  content: "";
  position: absolute;
  right: -82px;
  bottom: -92px;
  width: 300px;
  height: 300px;
  border: 44px solid rgba(18, 108, 226, 0.12);
  border-radius: 999px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 80px;
  color: var(--white);
  font-size: 32px;
  font-weight: 600;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  box-shadow: 0 20px 35px rgba(11, 85, 197, 0.25);
}

.brand-mark.small {
  width: 46px;
  height: 46px;
  margin: 0;
  font-size: 22px;
  border-radius: 16px;
}

.login-brand h1 {
  max-width: 560px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.login-brand > p:not(.eyebrow) {
  max-width: 460px;
  margin: 0;
  color: var(--slate);
  font-size: 18px;
  line-height: 1.8;
}

.brand-panel {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-panel span {
  padding: 12px 16px;
  color: var(--blue-800);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
}

.login-card,
.work-card,
.hero-card,
.stat-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.login-card {
  padding: 36px;
  border-radius: 30px;
}

.card-heading h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.card-heading p:last-child,
.login-tip {
  margin: 0;
  color: var(--slate);
}

.alert {
  margin: 24px 0 0;
  padding: 13px 15px;
  color: #b42318;
  border: 1px solid rgba(244, 67, 54, 0.2);
  border-radius: 14px;
  background: #fff1f0;
}

.login-alert-mask {
  z-index: 10020;
}

.login-alert-card {
  width: min(460px, calc(100vw - 32px));
}

.login-alert-message {
  margin: 0;
  color: #5c6c7d;
  font-size: 15px;
  line-height: 1.8;
}

.login-alert-close {
  padding: 0;
  color: #6c7f97;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-950);
  font-weight: 500;
}

.login-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--blue-950);
  outline: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--blue-50);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input:focus {
  border-color: rgba(18, 108, 226, 0.55);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(18, 108, 226, 0.12);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
}

.captcha-button {
  height: 52px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.captcha-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.primary-button,
.section-title button {
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  box-shadow: 0 16px 26px rgba(11, 85, 197, 0.2);
}

.primary-button {
  height: 54px;
  margin-top: 6px;
  border-radius: 17px;
}

.login-tip {
  margin-top: 20px;
  font-size: 13px;
}

.app-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  zoom: 0.9;
  background:
    linear-gradient(90deg, #ffffff 0 280px, transparent 280px),
    radial-gradient(circle at 90% 8%, rgba(59, 148, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, #f6fbff, #e8f3ff);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100%;
  min-height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.sidebar-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span {
  margin-top: 3px;
  color: var(--slate);
  font-size: 12px;
}

.menu {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.menu p {
  margin: 22px 8px 6px;
  color: #8aa4c3;
  font-size: 12px;
  font-weight: 600;
}

.menu a {
  padding: 13px 14px;
  color: var(--slate);
  border-radius: 16px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--blue-800);
  background: var(--blue-100);
  transform: translateX(3px);
}

.submenu-title {
  margin: 8px 8px 0;
  color: #526984;
  font-size: 13px;
  font-weight: 600;
}

.menu a.menu-child {
  margin-left: 12px;
  padding-left: 18px;
  color: #6d829b;
  border-left: 2px solid #d8e8fb;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.content {
  min-width: 0;
  padding: 28px;
}

.topbar,
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.topbar h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.topbar-summary {
  margin: 10px 0 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

.user-chip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.user-chip a {
  padding: 9px 14px;
  color: var(--white);
  border-radius: 999px;
  background: var(--blue-800);
}

.hero-card {
  position: relative;
  margin-top: 26px;
  padding: 34px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(223, 239, 255, 0.82)),
    radial-gradient(circle at 82% 30%, rgba(59, 148, 255, 0.35), transparent 20rem);
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.08em;
}

.hero-card p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--slate);
  line-height: 1.8;
}

.hero-orb {
  position: absolute;
  right: 44px;
  top: 38px;
  width: 140px;
  height: 140px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(18, 108, 226, 0.92), rgba(59, 148, 255, 0.75)),
    linear-gradient(45deg, transparent 47%, rgba(255, 255, 255, 0.4) 48% 52%, transparent 53%);
  transform: rotate(12deg);
  box-shadow: 0 30px 60px rgba(18, 108, 226, 0.25);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.stat-card {
  padding: 22px;
  border-radius: 16px;
}

.stat-card span {
  display: block;
  color: var(--slate);
  font-weight: 500;
}

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

.work-card {
  margin-top: 20px;
  padding: 26px;
  border-radius: 28px;
}

.section-title h3 {
  margin: 0;
  font-size: 24px;
}

.section-title button {
  padding: 12px 18px;
  border-radius: 14px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin-top: 20px;
  text-align: center;
  border: 1px dashed rgba(18, 108, 226, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 250, 255, 0.9), rgba(255, 255, 255, 0.9));
}

.empty-state h4 {
  margin: 14px 0 8px;
  font-size: 22px;
}

.empty-state p {
  max-width: 480px;
  margin: 0;
  color: var(--slate);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--blue-800);
  font-size: 32px;
  border-radius: 20px;
  background: var(--blue-100);
}

.data-panel {
  margin-top: 24px;
  padding: 22px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(18, 74, 140, 0.08);
}

.panel-head-copy {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}

.panel-head-copy strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-950);
}

.panel-head-copy span {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

.db-banner {
  margin-top: 18px;
  padding: 12px 16px;
  color: #27649c;
  border: 1px solid #cfe6ff;
  border-radius: 10px;
  background: #edf7ff;
  font-weight: 500;
}

.form-error {
  margin-top: 12px;
  padding: 12px 16px;
  color: #b42318;
  border: 1px solid rgba(244, 67, 54, 0.2);
  border-radius: 10px;
  background: #fff1f0;
  font-weight: 500;
}

.page-tabs {
  display: flex;
  gap: 8px;
  margin: -8px -10px 26px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dfe7f2;
}

.page-tabs a {
  padding: 10px 18px;
  border: 1px solid #d9e2ef;
  border-radius: 4px 4px 0 0;
  background: #fff;
  color: #3e5065;
  font-weight: 500;
}

.page-tabs a.active {
  color: #fff;
  border-color: var(--blue-500);
  background: var(--blue-500);
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px 28px;
  align-items: center;
}

.filter-form.account-filter {
  grid-template-columns: minmax(260px, 360px) minmax(260px, 360px) auto;
  justify-content: start;
}

.filter-form label,
.date-filter div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-form label > span {
  flex: 0 0 auto;
  color: #394b61;
  font-size: 18px;
  font-weight: 600;
}

.filter-form input,
.filter-form select,
.pagination select,
.pagination input {
  height: 48px;
  min-width: 0;
  padding: 0 16px;
  color: #3e5065;
  outline: none;
  border: 1px solid #d8e1ed;
  border-radius: 6px;
  background: #fff;
}

.filter-form input,
.filter-form select {
  width: 100%;
}

.filter-form input::placeholder {
  color: #b8c1cf;
}

.filter-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #b8c1cf 50%) calc(100% - 24px) 50% / 8px 8px no-repeat,
    linear-gradient(135deg, #b8c1cf 50%, transparent 50%) calc(100% - 18px) 50% / 8px 8px no-repeat,
    #fff;
  padding-right: 36px;
}

.date-filter {
  grid-column: 1 / span 2;
}

.date-filter input {
  max-width: 160px;
}

.date-filter b {
  color: #222;
}

.filter-actions,
.left-actions,
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 88px;
  padding: 0 16px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 600;
  background: #fff;
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(30, 140, 255, 0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn:hover:not(.disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(30, 140, 255, 0.12);
  filter: saturate(1.02);
}

.btn:active:not(.disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(30, 140, 255, 0.1);
}

.btn.primary {
  color: #fff;
  border-color: #1e8cff;
  background: #1e8cff;
}

.btn.ghost {
  color: #3e5065;
  border-color: #d8e1ed;
}

.btn.soft-blue {
  color: #1685ff;
  border-color: #b9dcff;
  background: #eaf5ff;
}

.btn.soft-green {
  color: #36c878;
  border-color: #c9f1dc;
  background: #eafaf2;
}

.btn.soft-red {
  color: #ff6b6b;
  border-color: #ffd6d6;
  background: #fff0f0;
}

.btn.soft-gray {
  color: #68778a;
  border-color: #d4dbe5;
  background: #f7f8fa;
}

.btn.soft-yellow {
  color: #f6a000;
  border-color: #ffd88a;
  background: #fff7e5;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 28px 0 12px;
}

.import-form {
  display: inline-flex;
  margin: 0;
}

.import-form input[type="file"] {
  display: none;
}

.table-scroll {
  overflow-x: auto;
  border-bottom: 1px solid #dfe7f2;
}

.data-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
  color: #405268;
  font-size: 18px;
}

.account-table {
  min-width: 1260px;
}

.data-table thead tr {
  background: #f7f8fa;
}

.data-table th,
.data-table td {
  padding: 20px 16px;
  border-bottom: 1px solid #dfe7f2;
  text-align: center;
  white-space: nowrap;
}

.data-table th {
  color: #344961;
  font-weight: 600;
}

.data-table tbody tr:hover {
  background: #f3f8ff;
}

.data-table tbody tr {
  transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.data-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #1e8cff;
}

.switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 30px;
  border-radius: 999px;
  background: #c7d2df;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(34, 54, 78, 0.18);
  transition: transform 0.2s ease;
}

.switch.on {
  background: #1e94ff;
}

.switch.on::after {
  transform: translateX(26px);
}

.switch:hover {
  box-shadow: 0 8px 16px rgba(34, 54, 78, 0.12);
}

.switch:active {
  transform: scale(0.98);
}

.op-links {
  text-align: center;
}

.op-links a,
.op-links button {
  display: inline-block;
  margin: 0 7px;
  padding: 0;
  color: #1685ff;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-weight: 500;
  font-size: inherit;
  transition: color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.op-links a:hover,
.op-links button:hover {
  color: #0f6fe0;
  transform: translateY(-1px);
}

.op-links a:active,
.op-links button:active {
  transform: translateY(0);
}

.op-links form {
  display: inline;
  margin: 0;
}

.modal-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 24px;
  width: 100%;
  height: 100%;
  background: rgba(6, 33, 74, 0.38);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, backdrop-filter 0.24s ease;
}

.modal-mask[hidden] {
  display: none !important;
}

.modal-mask.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(6, 33, 74, 0.24);
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, box-shadow 0.22s ease;
}

.modal-mask.is-visible .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.user-modal-mask,
.user-permission-modal-mask,
.user-reset-password-modal-mask {
  z-index: 10070;
}

.account-modal-mask {
  z-index: 10055;
}

.profile-modal-mask {
  z-index: 10050;
}

.user-password-field {
  grid-column: 1 / -1;
}

.user-password-field.is-editing {
  opacity: 0.92;
}

.modal-title,
.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-title h3 {
  margin: 0;
  font-size: 24px;
}

.modal-title a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--blue-800);
  border-radius: 999px;
  background: var(--blue-100);
  font-size: 22px;
  font-weight: 600;
}

.modal-card label {
  display: grid;
  gap: 8px;
  color: #394b61;
  font-weight: 600;
}

.modal-card input,
.modal-card select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  outline: none;
  border: 1px solid #d8e1ed;
  border-radius: 8px;
  background: #fff;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 8px;
}

.user-permission-modal-card {
  width: min(820px, calc(100vw - 24px));
  height: min(82vh, 680px);
  max-height: calc(100vh - 24px);
  grid-template-columns: 1fr;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px 16px 12px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(58, 152, 255, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.98));
  box-shadow: 0 30px 72px rgba(9, 38, 76, 0.2);
  overflow: hidden;
  min-height: 0;
}

.user-permission-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.user-permission-hero-copy {
  min-width: 0;
}

.user-permission-hero-copy span {
  display: inline-block;
  color: #6c84a0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.user-permission-hero-copy h3 {
  margin: 3px 0 5px;
  color: #152746;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.user-permission-hero-copy p {
  margin: 0;
  max-width: 560px;
  color: #6b819d;
  font-size: 12px;
  line-height: 1.5;
}

.user-permission-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(194, 217, 243, 0.9);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(240, 247, 255, 0.98));
}

.user-permission-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.user-permission-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: #1f4f8a;
  border: 1px solid rgba(143, 194, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
}

.user-permission-badge.muted {
  color: #6b7f97;
  border-color: rgba(208, 221, 237, 0.95);
}

.user-permission-badge.soft {
  color: #165ebf;
  border-color: rgba(180, 215, 255, 0.92);
  background: rgba(235, 245, 255, 0.98);
}

.user-permission-tip {
  color: #7990ad;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
  max-width: 160px;
}

.user-permission-scroll {
  min-height: 0;
  height: 100%;
  overflow: auto;
  overflow-x: hidden;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.user-permission-scroll::-webkit-scrollbar {
  width: 6px;
}

.user-permission-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(130, 161, 200, 0.42);
}

.user-permission-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.user-permission-groups {
  display: grid;
  gap: 10px;
  padding: 1px 1px 0 0;
  min-height: 0;
}

.user-permission-section {
  padding: 11px 11px 10px;
  border: 1px solid rgba(211, 227, 245, 0.96);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(90, 164, 255, 0.08), transparent 14rem),
    linear-gradient(180deg, #fbfdff, #f4f8fd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.user-permission-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.user-permission-section-copy {
  min-width: 0;
}

.user-permission-section-head h4 {
  margin: 0;
  color: #193357;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.user-permission-section-head p {
  margin: 3px 0 0;
  color: #7d92ac;
  font-size: 11px;
  line-height: 1.45;
}

.user-permission-section-meta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: #6b86a6;
  border-radius: 999px;
  background: rgba(229, 240, 252, 0.88);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.user-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.user-permission-item {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: #39506e;
  border: 1px solid #d3e2f3;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.user-permission-item:hover {
  border-color: #a9cdff;
  box-shadow: 0 10px 20px rgba(30, 140, 255, 0.07);
  transform: translateY(-1px);
}

.user-permission-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.user-permission-item-mark {
  position: relative;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #bdd3ec;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.user-permission-item-mark::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg) scale(0.8);
  opacity: 0;
  transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.user-permission-item-label {
  color: #2f4a6d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.user-permission-item:has(input:checked) {
  border-color: #8dbfff;
  background:
    radial-gradient(circle at 100% 0, rgba(53, 145, 255, 0.14), transparent 10rem),
    linear-gradient(180deg, #ffffff, #edf6ff);
  box-shadow: 0 8px 16px rgba(30, 140, 255, 0.09);
}

.user-permission-item:has(input:checked) .user-permission-item-mark {
  border-color: #2f8cff;
  background: linear-gradient(180deg, #46a0ff, #2f8cff);
  box-shadow: 0 6px 12px rgba(47, 140, 255, 0.2);
}

.user-permission-item:has(input:checked) .user-permission-item-mark::after {
  opacity: 1;
  border-right-color: #fff;
  border-bottom-color: #fff;
  transform: rotate(45deg) scale(1);
}

.user-permission-item:has(input:checked) .user-permission-item-label {
  color: #173e70;
}

.user-permission-item.is-disabled {
  color: #96a7bb;
  cursor: not-allowed;
  border-color: #d8e2ee;
  background: linear-gradient(180deg, #f8fafc, #f2f6fa);
  box-shadow: none;
  opacity: 0.72;
}

.user-permission-item.is-disabled:hover {
  border-color: #d8e2ee;
  box-shadow: none;
  transform: none;
}

.user-permission-item.is-disabled .user-permission-item-mark {
  border-color: #d2dbe6;
  background: #f5f7fa;
}

.user-permission-item.is-disabled .user-permission-item-label {
  color: #93a6bc;
}

.user-permission-actions {
  margin-top: 2px;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(218, 231, 245, 0.94);
}

.user-permission-actions .btn {
  min-width: 92px;
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
}

.user-permission-modal-card .modal-close-btn {
  width: 34px;
  height: 34px;
  color: #1b63d2;
  background: linear-gradient(180deg, #eef6ff, #dcecff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.user-permission-modal-card .modal-close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(30, 140, 255, 0.16);
}

.modal-close-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--blue-800);
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--blue-100);
  font-size: 22px;
  font-weight: 600;
}

.export-modal-mask {
  z-index: 32;
}

.export-modal-card {
  width: min(520px, 100%);
  grid-template-columns: 1fr 1fr;
}

.export-modal-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: #5f6f82;
  line-height: 1.7;
}

.pagination {
  justify-content: flex-end;
  margin-top: 28px;
  color: #3e5065;
  font-size: 18px;
}

.pagination button {
  min-width: 44px;
  height: 42px;
  cursor: pointer;
  color: #3e5065;
  border: 0;
  border-radius: 4px;
  background: #f2f4f7;
  font-weight: 600;
}

.pagination button.active {
  color: #fff;
  background: #1e8cff;
}

.pagination button:disabled {
  color: #c6ced9;
  cursor: not-allowed;
}

.pagination select {
  min-width: 150px;
}

.pagination input {
  width: 68px;
  text-align: center;
}

@media (max-width: 1024px) {
  .login-shell,
  .app-body {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 420px;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .menu p {
    grid-column: 1 / -1;
  }

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

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

  .date-filter {
    grid-column: auto;
  }

  .table-toolbar,
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .left-actions,
  .pagination {
    flex-wrap: wrap;
  }

  .modal-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-body,
  .content,
  .sidebar {
    padding: 18px;
  }

  .login-brand,
  .login-card,
  .hero-card,
  .work-card {
    padding: 24px;
    border-radius: 16px;
  }

  .captcha-row,
  .topbar,
  .section-title {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-orb {
    display: none;
  }

  .filter-form label,
  .date-filter div {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .date-filter input {
    max-width: none;
  }

  body.is-inline-loading .content::before {
    top: 16px;
    right: 48px;
    padding: 6px 10px;
    font-size: 11px;
  }

  body.is-inline-loading .content::after {
    top: 18px;
    right: 18px;
    width: 20px;
    height: 20px;
  }

  body.is-pagination-loading .data-panel::before {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
  }

  body.is-pagination-loading .data-panel::after {
    top: calc(50% + 32px);
    font-size: 11px;
    padding: 7px 12px;
  }
}

/* Compact management pages */
.app-body {
  grid-template-columns: 236px 1fr;
  background:
    linear-gradient(90deg, #ffffff 0 236px, transparent 236px),
    radial-gradient(circle at 90% 8%, rgba(59, 148, 255, 0.12), transparent 24rem),
    linear-gradient(135deg, #f8fbff, #eef6ff);
}

.sidebar {
  padding: 18px;
}

.sidebar-brand {
  padding-bottom: 18px;
}

.menu {
  gap: 6px;
  margin-top: 16px;
}

.menu p {
  margin: 16px 8px 4px;
}

.menu a {
  padding: 10px 12px;
  border-radius: 10px;
}

.content {
  padding: 18px;
}

.topbar h1 {
  font-size: 24px;
}

.user-chip {
  padding: 6px 6px 6px 12px;
}

.user-chip a {
  padding: 7px 12px;
}

.data-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(18, 74, 140, 0.07);
}

.db-banner {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 13px;
}

.page-tabs {
  margin: -6px -6px 16px;
  padding-bottom: 8px;
}

.page-tabs a {
  padding: 7px 12px;
}

.filter-form {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px 16px;
}

.filter-form.account-filter {
  grid-template-columns: minmax(220px, 300px) minmax(220px, 300px) auto;
}

.filter-form label,
.date-filter div {
  gap: 10px;
}

.filter-form label > span {
  font-size: 14px;
}

.filter-form input,
.filter-form select,
.pagination select,
.pagination input {
  height: 36px;
  padding: 0 12px;
}

.date-filter {
  grid-column: span 2;
}

/* 模型编辑弹窗：单输入框占满整行 */
/* 模型编辑弹窗：单列布局，输入框占满宽度 */
[data-model-modal] .modal-card,
[data-agnes-model-modal] .modal-card {
  grid-template-columns: 1fr;
  width: min(440px, 100%);
}
[data-model-modal] .filter-form-label,
[data-agnes-model-modal] .filter-form-label {
  grid-column: 1 / -1;
}
[data-model-modal] .filter-form-label input,
[data-agnes-model-modal] .filter-form-label input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
}

.filter-actions,
.left-actions,
.pagination {
  gap: 8px;
}

.btn {
  height: 34px;
  min-width: 74px;
  padding: 0 12px;
  font-size: 14px;
}

.table-toolbar {
  gap: 12px;
  margin: 16px 0 10px;
}

.data-table {
  min-width: 1040px;
  font-size: 14px;
}

.account-table {
  min-width: 820px;
}

.account-table .remark-cell {
  max-width: 360px;
  overflow: hidden;
  color: #5d6b7c;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table {
  min-width: 760px;
}

.prompt-table {
  min-width: 1260px;
}

.prompt-filter {
  grid-template-columns: minmax(230px, 300px) minmax(260px, 360px) auto;
  justify-content: start;
}

.prompt-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    radial-gradient(circle at 100% 0, rgba(30, 140, 255, 0.08), transparent 18rem);
}

.prompt-variable-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #dcecff;
  border-radius: 14px;
  background: #f4f9ff;
}

.prompt-variable-bar span,
.prompt-board-head span {
  display: block;
  color: #6b7d92;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-variable-bar strong {
  display: inline-flex;
  margin-top: 6px;
  padding: 7px 12px;
  color: #0d58c6;
  border: 1px solid #b9dcff;
  border-radius: 999px;
  background: #fff;
}

.prompt-variable-bar p {
  max-width: 620px;
  margin: 0;
  color: #52677f;
  line-height: 1.7;
}

.prompt-toolbar {
  margin: 16px 0 14px;
}

.prompt-board-grid {
  display: grid;
  gap: 16px;
}

.prompt-board {
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: #fff;
}

.prompt-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eef2f7;
  background:
    linear-gradient(90deg, #f8fbff, #fff),
    radial-gradient(circle at 0 0, rgba(30, 140, 255, 0.12), transparent 14rem);
}

.prompt-board-head h3 {
  margin: 5px 0 0;
  color: #132f4d;
  font-size: 18px;
}

.prompt-board-head .btn {
  min-width: 60px;
}

.prompt-board-scroll {
  border-bottom: 0;
}

.prompt-var-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  color: #0d58c6;
  border: 1px solid #cbe5ff;
  border-radius: 999px;
  background: #f0f8ff;
  font-weight: 600;
}

.template-cell {
  max-width: 320px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
}

.data-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.switch {
  width: 42px;
  height: 22px;
  cursor: pointer;
  border: 0;
}

.switch::after {
  top: 2px;
  left: 3px;
  width: 18px;
  height: 18px;
}

.switch.on::after {
  transform: translateX(18px);
}

.op-links a,
.op-links button {
  margin: 0 4px;
}

.data-table td > form {
  margin: 0;
}

.batch-form {
  display: none;
}

.product-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.product-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.product-head p:last-child {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}

.product-tools {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto auto auto;
  gap: 14px;
  align-items: end;
  margin: 16px 0;
}

.product-summary-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 2px 0 18px;
  display: none;
}

.product-summary-card {
  padding: 16px 18px;
  border: 1px solid #dbe8f6;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98)),
    radial-gradient(circle at right top, rgba(30, 140, 255, 0.08), transparent 10rem);
  box-shadow: 0 14px 34px rgba(13, 35, 69, 0.06);
}

.product-summary-card span {
  display: block;
  color: #6b7a8e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-summary-card strong {
  display: block;
  margin-top: 8px;
  color: #16324f;
  font-size: 24px;
  line-height: 1.2;
}

.product-summary-card small {
  display: block;
  margin-top: 8px;
  color: #7f8da1;
  font-size: 12px;
  line-height: 1.6;
}

.product-summary-card.accent {
  border-color: #bfd9ff;
  background:
    linear-gradient(180deg, rgba(242, 248, 255, 0.98), rgba(232, 243, 255, 0.98)),
    radial-gradient(circle at right top, rgba(20, 115, 230, 0.12), transparent 12rem);
}

.product-generate-actions,
.product-batch-actions {
  display: flex;
  justify-content: flex-end;
}

.product-toast {
  position: fixed;
  top: 76px;
  right: 26px;
  z-index: 10120;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(15, 35, 62, 0.16);
  font-size: 14px;
  font-weight: 600;
  animation: product-toast-hide 3.6s ease forwards;
  pointer-events: none;
}

.product-toast.success {
  color: #0c7a43;
  border: 1px solid #bfe8d2;
  background: rgba(237, 249, 242, 0.96);
}

.product-toast.error {
  color: #b42318;
  border: 1px solid rgba(244, 67, 54, 0.2);
  background: rgba(255, 241, 240, 0.96);
}

.confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 10110;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 33, 74, 0.34);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.22s ease, backdrop-filter 0.22s ease;
}

.confirm-mask[hidden] {
  display: none;
}

.confirm-mask.is-visible {
  opacity: 1;
}

.confirm-card {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(203, 224, 245, 0.92);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 43, 77, 0.24);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.confirm-mask.is-visible .confirm-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.confirm-card h3 {
  margin: 0 0 10px;
  color: var(--blue-950);
  font-size: 20px;
}

.confirm-card p {
  margin: 0;
  color: #536173;
  line-height: 1.7;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

@keyframes product-toast-hide {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  12%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
  }
}

.filter-form.product-filter {
  grid-template-columns: minmax(200px, 280px) minmax(260px, 1fr) auto;
  align-items: end;
  margin: 0;
}

.product-import {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

.product-table-shell {
  overflow: hidden;
  border: 1px solid #dfe8f3;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  box-shadow: 0 22px 48px rgba(15, 42, 76, 0.08);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-table {
  min-width: 980px;
  table-layout: fixed;
}

.product-table col.product-col-check {
  width: 46px;
}

.product-table col.product-col-id {
  width: 68px;
}

.product-table col.product-col-shop {
  width: 170px;
}

.product-table col.product-col-title {
  width: auto;
}

.product-table col.product-col-image {
  width: 130px;
}

.product-table col.product-col-time {
  width: 190px;
}

.product-table col.product-col-actions {
  width: 150px;
}

.product-table thead tr {
  background:
    linear-gradient(180deg, #f7fbff, #eef5fd);
}

.product-table th {
  height: 54px;
  color: #4c6177;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #dbe6f1;
}

.product-table td {
  padding: 16px 14px;
  border-bottom: 1px solid #edf3f9;
  vertical-align: middle;
  overflow: hidden;
}

.product-table th:first-child,
.product-table td:first-child,
.product-table th:nth-child(2),
.product-table td:nth-child(2) {
  padding-left: 8px;
  padding-right: 8px;
}

.product-shop-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title-text {
  text-align: left;
}

.product-title-text span {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-row {
  transition: background 0.18s ease, transform 0.18s ease;
}

.product-row:hover {
  background: #f7fbff;
  background: transparent;
}

.product-id-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  color: #215c96;
  border-radius: 999px;
  background: #e9f3ff;
  font-size: 12px;
  font-weight: 600;
  display: none;
}

.product-shop-cell,
.product-title-cell,
.product-time-cell {
  display: grid;
  gap: 4px;
  display: contents;
}

.product-shop-cell strong,
.product-title-cell strong,
.product-time-cell strong {
  color: #1b3148;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.product-shop-cell span,
.product-title-cell span,
.product-time-cell span {
  color: #7d8da1;
  font-size: 12px;
  line-height: 1.5;
  display: none;
}

.product-title-cell strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.6;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: inline;
  overflow: visible;
  line-height: inherit;
  word-break: normal;
}

.product-table .image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 32px;
  padding: 0 12px;
  color: #166bd8;
  border: 1px solid #d4e5fb;
  border-radius: 999px;
  background: #f7fbff;
  font-size: 12px;
  font-weight: 600;
}

.product-op-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.product-op-links a,
.product-op-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 30px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.product-op-links a {
  color: #0f75e6;
  background: #edf5ff;
}

.product-op-links form button {
  color: #d83535;
  background: #fff1f1;
}

.generate-product-row {
  transition: background 0.18s ease;
}

.generate-product-row:hover {
  background: #f7fbff;
}

.generate-product-title-cell {
  display: grid;
  gap: 4px;
}

.generate-product-title-cell strong {
  color: #1c3248;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.generate-product-title-cell span {
  color: #7f8ea2;
  font-size: 11px;
  font-weight: 700;
}

.product-import input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
}

.product-generate-actions .btn,
.import-excel-btn,
.product-batch-actions .btn {
  width: auto;
  height: 34px;
  min-width: 128px;
  padding: 0 16px;
  border-radius: 5px;
  box-shadow: none;
  white-space: nowrap;
}

.product-generate-modal {
  width: min(1120px, calc(100vw - 40px));
  max-height: 90vh;
  grid-template-columns: 170px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.product-generate-modal label {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
}

.product-generate-modal label > span {
  color: #606875;
  text-align: right;
}

.generate-count-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 0 16px;
}

.generate-count-label {
  color: #606875;
  text-align: right;
  font-weight: 600;
}

.generate-count-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 144px;
  max-width: 100%;
  min-width: 0;
}

.generate-product-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.generate-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #606875;
  font-weight: 600;
}

.generate-list-head strong {
  color: #334a62;
  font-size: 15px;
}

.generate-list-scroll {
  max-height: 168px;
  overflow: auto;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
}

.generate-product-table {
  min-width: 760px;
  font-size: 13px;
}

.generate-product-table th,
.generate-product-table td {
  padding: 9px 12px;
}

.generate-product-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fc;
}

.product-import {
  gap: 8px;
}

.product-modal {
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
}

.product-modal label {
  width: 100%;
  grid-column: 1 / -1;
}

.product-modal input[name="title"] {
  width: 100%;
  min-width: 0;
}

.account-modal {
  width: min(560px, 100%);
}

.account-publish-settings-mask {
  z-index: 10056;
}

.modal-card.account-publish-settings-modal {
  width: min(900px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 48px));
  max-height: min(88vh, 860px);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.account-publish-settings-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e4eaf1;
}

.account-publish-settings-header > div {
  min-width: 0;
}

.account-publish-settings-header h3 {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-publish-settings-header p {
  margin: 4px 0 0;
  color: #718297;
  font-size: 12px;
}

.publish-settings-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px 0;
  border-bottom: 1px solid #e4eaf1;
  background: #f8fafc;
}

.publish-settings-tabs button {
  min-width: 96px;
  height: 38px;
  padding: 0 15px;
  color: #5d7085;
  cursor: pointer;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.publish-settings-tabs button[aria-selected="true"] {
  color: #1769aa;
  border-bottom-color: #2387d9;
  background: #fff;
}

.account-publish-settings-body {
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.publish-settings-panel {
  display: grid;
  gap: 22px;
}

.publish-settings-panel[hidden] {
  display: none;
}

.publish-settings-section {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e7edf3;
}

.publish-settings-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.publish-settings-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.publish-settings-section-title h4 {
  margin: 0;
  color: #253b50;
  font-size: 14px;
}

.publish-settings-section-title span {
  color: #8292a3;
  font-size: 11px;
}

.publish-settings-toggle-list {
  border-top: 1px solid #e2e9f0;
}

.publish-setting-toggle {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px !important;
  min-height: 62px;
  padding: 10px 2px;
  cursor: pointer;
  border-bottom: 1px solid #e2e9f0;
}

.publish-setting-toggle > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.publish-setting-toggle strong {
  color: #30465b;
  font-size: 13px;
  font-weight: 600;
}

.publish-setting-toggle small,
.publish-settings-grid small {
  color: #7d8d9e;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.publish-setting-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.publish-setting-toggle i {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #c8d2dc;
  transition: background 0.18s ease;
}

.publish-setting-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(34, 56, 78, 0.24);
  transition: transform 0.18s ease;
}

.publish-setting-toggle input:checked + i {
  background: #2387d9;
}

.publish-setting-toggle input:checked + i::after {
  transform: translateX(18px);
}

.publish-setting-toggle input:focus-visible + i {
  outline: 3px solid rgba(35, 135, 217, 0.2);
}

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

.publish-settings-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.publish-settings-grid [hidden] {
  display: none !important;
}

.publish-settings-grid label > span {
  color: #52687d;
  font-size: 12px;
}

.publish-settings-grid input,
.publish-settings-grid select,
.publish-settings-json-grid textarea {
  width: 100%;
  min-width: 0;
}

.publish-settings-grid .wide-field {
  grid-column: 1 / -1;
}

.publish-settings-advanced-group {
  border-bottom: 1px solid #e4eaf1;
}

.publish-settings-advanced-group:first-of-type {
  border-top: 1px solid #e4eaf1;
}

.publish-settings-advanced-group summary {
  padding: 14px 2px;
  color: #30465b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.publish-settings-json-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 2px 2px 18px;
}

.publish-settings-json-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.publish-settings-json-grid label > span {
  color: #52687d;
  font-size: 12px;
}

.publish-settings-json-grid code {
  color: #7b8998;
  font-size: 11px;
  font-weight: 400;
}

.publish-settings-json-grid textarea {
  min-height: 92px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.publish-settings-json-grid .wide-field {
  grid-column: 1 / -1;
}

.account-publish-settings-modal > .modal-actions {
  min-height: 62px;
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid #e4eaf1;
  background: #fff;
}

.publish-settings-managed-status {
  margin-right: auto;
  color: #4d718e;
  font-size: 12px;
}

.account-modal-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-qr-login-button {
  height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.account-qr-login-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px solid #d9e4ef;
  border-radius: 8px;
  background: #f8fafc;
}

.account-qr-login-panel[hidden] {
  display: none;
}

.account-qr-image-wrap {
  width: 168px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid #d7e0ea;
  border-radius: 6px;
  background: #fff;
}

.account-qr-image-wrap img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-qr-loading {
  grid-area: 1 / 1;
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #1769aa;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.account-qr-image-wrap.is-loading .account-qr-loading {
  display: grid;
}

.account-qr-image-wrap.is-loading img {
  visibility: hidden;
}

.account-qr-login-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.account-qr-login-copy strong {
  color: #172b3f;
  font-size: 15px;
}

.account-qr-login-copy p,
.account-qr-login-copy span {
  margin: 0;
  color: #607286;
  font-size: 13px;
  line-height: 1.65;
}

.account-qr-login-copy b {
  color: #1769aa;
  font-variant-numeric: tabular-nums;
}

.approved-batch-publish-button,
.approved-publish-confirm {
  color: #147a43;
  border: 1px solid #b9e5cb;
  background: #edf9f2;
}

.approved-batch-publish-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.approved-batch-publish-button svg,
.approved-row-publish svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.approved-row-publish {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px;
  color: #16824a !important;
  border: 1px solid #bce6cd !important;
  background: #f0faf4 !important;
}

.approved-row-publish:disabled,
.approved-row-publish.is-disabled {
  position: relative;
  color: #8a96a3 !important;
  border-color: #d9e0e7 !important;
  background: #f2f4f6 !important;
  cursor: not-allowed !important;
  opacity: 0.72;
}

.approved-row-publish.is-disabled:hover::after {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 50%;
  padding: 5px 8px;
  color: #fff;
  background: #293746;
  border-radius: 4px;
  content: attr(title);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.tag-published,
.tag-product-missing,
.tag-publish-failed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-published {
  color: #147a43;
  background: #e9f8ef;
}

.tag-product-missing {
  color: #9b650e;
  background: #fff5d8;
}

.tag-publish-failed {
  color: #b33b3b;
  background: #fff0f0;
}

.approved-publish-modal {
  width: min(520px, 100%);
}

.approved-publish-modal [data-approved-publish-settings] {
  grid-column: 1 / -1;
}

.approved-publish-interval-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}

.approved-publish-interval-control > span {
  color: #607286;
  text-align: center;
}

/* Freeze the approved-note action column to match the pending-note table. */
.note-table-approved col.col-actions {
  width: 360px !important;
}

.note-table-approved th:last-child,
.note-table-approved td:last-child {
  position: sticky !important;
  right: 0 !important;
  z-index: 2 !important;
  background: #fff !important;
  box-shadow: -1px 0 0 #e6edf5, -10px 0 18px rgba(33, 55, 78, 0.06) !important;
}

.note-table-approved th:last-child {
  z-index: 3 !important;
  background: #f7f9fc !important;
}

.note-table-approved td.note-op-links {
  width: 360px !important;
  max-width: 360px !important;
  overflow: visible !important;
}

@media (max-width: 640px) {
  .publish-settings-grid,
  .publish-settings-json-grid {
    grid-template-columns: 1fr;
  }

  .publish-settings-grid .wide-field,
  .publish-settings-json-grid .wide-field {
    grid-column: auto;
  }

  .modal-card.account-publish-settings-modal {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

  .account-publish-settings-header,
  .account-publish-settings-body,
  .account-publish-settings-modal > .modal-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .publish-settings-tabs {
    padding-right: 8px;
    padding-left: 8px;
  }

  .publish-settings-tabs button {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
  }

  .publish-settings-managed-status {
    display: none;
  }

  .account-modal .modal-title {
    align-items: flex-start;
  }

  .account-modal-title-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .account-qr-login-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.note-title-modal {
  width: min(560px, calc(100vw - 24px));
}

.user-reset-password-modal {
  width: min(460px, 100%);
}

.profile-modal-card {
  width: min(860px, 100%);
  display: block;
  grid-template-columns: none;
  gap: 0;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, #ffffff, #f6faff),
    radial-gradient(circle at top right, rgba(63, 155, 255, 0.08), transparent 18rem);
}

.profile-modal-mask .modal-card {
  box-shadow: 0 26px 80px rgba(15, 43, 77, 0.24);
}

.profile-modal-pane form {
  display: block;
}

.profile-modal-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 10px 4px 0;
}

.profile-modal-hero span {
  display: block;
  color: #6f8297;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-modal-hero h3 {
  margin: 8px 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.profile-modal-hero p {
  margin: 0;
  color: #617389;
  line-height: 1.8;
}

.profile-modal-close {
  color: #8ea1b6;
  font-size: 26px;
  line-height: 1;
}

.profile-modal-close-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #1f67c7;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: #e8f2ff;
  font-size: 28px;
  font-weight: 600;
}

.profile-modal-status {
  margin: 16px 4px 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
}

.profile-modal-status.success {
  color: #0c7a43;
  border: 1px solid #bfe8d2;
  background: rgba(237, 249, 242, 0.96);
}

.profile-modal-status.error {
  color: #b42318;
  border: 1px solid rgba(244, 67, 54, 0.2);
  background: rgba(255, 241, 240, 0.96);
}

.profile-modal-card.is-busy {
  pointer-events: none;
}

.profile-modal-card.is-switching .profile-main-card,
.profile-modal-card.is-switching .profile-modal-pane {
  opacity: 0.45;
  transform: translateY(4px);
}

.profile-modal-card.is-busy .profile-main-card {
  opacity: 0.76;
}

.profile-modal-tabs {
  display: flex;
  gap: 10px;
  margin: 22px 0 20px;
}

.profile-tab-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -6px 0 16px;
  padding: 10px 14px;
  color: #2d6fcf;
  border: 1px solid rgba(30, 140, 255, 0.12);
  border-radius: 999px;
  background: rgba(240, 248, 255, 0.94);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(30, 140, 255, 0.08);
}

.profile-tab-loading[hidden] {
  display: none !important;
}

.profile-tab-loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(30, 140, 255, 0.16);
  border-top-color: #1e8cff;
  border-radius: 999px;
  animation: inline-loading-spin 0.7s linear infinite;
}

.profile-modal-tabs button {
  height: 42px;
  padding: 0 18px;
  color: #52708f;
  cursor: pointer;
  border: 1px solid #d8e8fb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(21, 76, 150, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.profile-modal-tabs button.active {
  color: #fff;
  border-color: #1e8cff;
  background: linear-gradient(135deg, #0f73e8, #3f9bff);
}

.profile-modal-tabs button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(21, 76, 150, 0.1);
}

.profile-modal-pane[hidden] {
  display: none !important;
}

.profile-modal-pane {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-modal-pane.active {
  opacity: 1;
  transform: translateY(0);
}

.profile-stack {
  display: grid;
  gap: 18px;
}

.profile-info-banner,
.profile-main-card {
  border: 1px solid #dceafe;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(18, 74, 140, 0.07);
}

.profile-info-banner {
  padding: 22px 20px;
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(240, 247, 255, 0.92)),
    radial-gradient(circle at top right, rgba(63, 155, 255, 0.12), transparent 14rem);
}

.profile-info-banner span {
  display: block;
  color: #6b7f97;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-info-banner strong {
  display: block;
  margin-top: 10px;
  color: #0f2d57;
  font-size: 24px;
  line-height: 1.3;
}

.profile-info-banner p {
  margin: 12px 0 0;
  color: #627489;
  line-height: 1.8;
}

.profile-side-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.profile-side-meta b {
  display: block;
  padding: 12px 14px;
  color: #36506d;
  border: 1px solid #d7e8fb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.profile-main-card {
  padding: 22px 22px 20px;
}

.profile-section-head {
  margin-bottom: 18px;
}

.profile-section-head span {
  display: block;
  color: #6c7f97;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-section-head h4 {
  margin: 8px 0 0;
  color: #14355f;
  font-size: 22px;
  letter-spacing: -0.03em;
}

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

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

.profile-form-grid label,
.profile-api-main-card label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-form-grid label > span,
.profile-api-main-card label > span {
  color: #4d627a;
  font-size: 13px;
  font-weight: 600;
}

.profile-modal-actions {
  justify-content: flex-end;
  margin-top: 22px;
}

.profile-api-card {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.profile-api-main-card {
  padding-top: 20px;
}

.profile-api-tip {
  margin-top: 14px;
  color: #617389;
  line-height: 1.8;
}

.profile-api-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-api-main-card .password-field input {
  background: #fbfdff;
}

.profile-membership-card {
  padding-top: 20px;
}

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

.profile-membership-head span,
.profile-membership-grid span {
  display: block;
  color: #617389;
  font-size: 13px;
  font-weight: 500;
}

.profile-membership-head strong {
  display: block;
  margin-top: 8px;
  color: #17324d;
  font-size: 24px;
  font-weight: 600;
}

.profile-membership-head b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 8px 14px;
  color: #0c7a43;
  border-radius: 999px;
  background: rgba(12, 122, 67, 0.12);
  font-size: 12px;
  font-weight: 600;
}

.profile-membership-card.is-expired .profile-membership-head b {
  color: #b42318;
  background: rgba(180, 35, 24, 0.12);
}

.profile-membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.profile-membership-grid div {
  padding: 14px 16px;
  border: 1px solid #dceafe;
  border-radius: 18px;
  background: #fbfdff;
}

.profile-membership-grid strong {
  display: block;
  margin-top: 8px;
  color: #17324d;
  font-size: 18px;
  font-weight: 600;
}

.profile-membership-tip {
  margin: 16px 0 0;
  color: #617389;
  line-height: 1.8;
}

.sync-product-modal {
  width: min(520px, 100%);
}

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

  .profile-membership-grid {
    grid-template-columns: 1fr;
  }

  .profile-modal-card {
    width: min(860px, calc(100vw - 20px));
    padding: 18px;
  }

  .profile-modal-hero {
    flex-direction: column;
  }

  .user-permission-modal-card {
    width: min(100%, calc(100vw - 16px));
    height: min(86vh, 660px);
    max-height: calc(100vh - 16px);
    padding: 14px 12px 12px;
  }

  .user-permission-hero,
  .user-permission-toolbar,
  .user-permission-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-permission-hero-copy h3 {
    font-size: 18px;
  }

  .user-permission-toolbar {
    gap: 10px;
  }

  .user-permission-tip {
    text-align: left;
  }

  .user-permission-section {
    padding: 10px;
  }

  .user-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

.modal-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.7;
}

.deepseek-panel {
  max-width: 860px;
}

.deepseek-panel > .section-title {
  display: none;
}

.deepseek-summary {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.deepseek-summary div {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff, #f3f8ff);
  overflow: hidden;
  white-space: nowrap;
}

.deepseek-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 500;
}

.deepseek-summary strong {
  color: var(--blue-950);
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-edit {
  margin-top: 10px;
  align-self: flex-start;
  padding: 4px 10px;
  color: var(--blue-800);
  cursor: pointer;
  border: 1px solid #b9dcff;
  border-radius: 999px;
  background: #eaf5ff;
  font-size: 12px;
  font-weight: 600;
}

.model-inline-input {
  width: 100%;
  height: 36px;
  margin-top: 4px;
  padding: 0 10px;
  color: var(--blue-950);
  outline: none;
  border: 1px solid #9cc9ff;
  border-radius: 9px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
}

.model-inline-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(30, 140, 255, 0.13);
}

.deepseek-form {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.deepseek-form label {
  display: grid;
  gap: 8px;
  color: #394b61;
  font-size: 14px;
  font-weight: 600;
}

.deepseek-form input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  outline: none;
  border: 1px solid #d8e1ed;
  border-radius: 9px;
}

.deepseek-form select {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 12px;
  color: #394b61;
  outline: none;
  border: 1px solid #d8e1ed;
  border-radius: 9px;
  background:
    linear-gradient(45deg, transparent 50%, #7f8ea2 50%) calc(100% - 20px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, #7f8ea2 50%, transparent 50%) calc(100% - 14px) 50% / 7px 7px no-repeat,
    linear-gradient(180deg, #ffffff, #f8fbff);
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.deepseek-form input:focus,
.deepseek-form select:focus {
  border-color: rgba(30, 140, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(30, 140, 255, 0.12);
}

.agnes-config-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 18px;
}

.agnes-field-full {
  grid-column: 1 / -1;
}

.agnes-inline-fields {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(180px, 220px);
  gap: 14px;
  align-items: end;
}

.agnes-inline-fields label {
  min-width: 0;
}

.agnes-select {
  font-weight: 500;
  background-color: #fff;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 46px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #68778a;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 16px;
  line-height: 1;
}

.password-field button.visible {
  color: var(--blue-800);
  background: var(--blue-100);
}

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

.deepseek-test-result {
  position: fixed;
  top: 76px;
  right: 26px;
  z-index: 45;
  min-width: 240px;
  max-width: min(380px, calc(100vw - 36px));
  padding: 13px 16px;
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(15, 35, 62, 0.16);
  font-size: 14px;
  font-weight: 600;
  animation: product-toast-hide 3.8s ease forwards;
  pointer-events: none;
}

.deepseek-test-result.loading {
  color: #27649c;
  border: 1px solid #cfe6ff;
  background: #edf7ff;
}

.deepseek-test-result.success {
  color: #0c7a43;
  border: 1px solid #bcebd1;
  background: #ecfdf3;
}

.deepseek-test-result.error {
  color: #b42318;
  border: 1px solid rgba(244, 67, 54, 0.2);
  background: #fff1f0;
}

[data-test-deepseek].is-loading {
  position: relative;
  gap: 8px;
  opacity: 0.86;
}

[data-test-agnes].is-loading {
  position: relative;
  gap: 8px;
  opacity: 0.86;
}

[data-test-deepseek].is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(30, 140, 255, 0.22);
  border-top-color: #1e8cff;
  border-radius: 999px;
  animation: deepseek-spin 0.8s linear infinite;
}

[data-test-agnes].is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(30, 140, 255, 0.22);
  border-top-color: #1e8cff;
  border-radius: 999px;
  animation: deepseek-spin 0.8s linear infinite;
}

@keyframes deepseek-spin {
  to {
    transform: rotate(360deg);
  }
}

.deepseek-note {
  margin: 12px 0 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

.tag-ok {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  color: #0c7a43;
  border-radius: 999px;
  background: #e7f8ef;
  font-weight: 600;
}

.empty-cell {
  height: 120px;
  color: #8aa4c3;
}

.modal-card {
  width: min(560px, 100%);
  gap: 12px 14px;
  padding: 20px;
}

.modal-title h3 {
  font-size: 20px;
}

.modal-title a {
  width: 30px;
  height: 30px;
}

.modal-card label {
  font-size: 14px;
}

.modal-card input,
.modal-card select {
  height: 36px;
}

.modal-card textarea {
  width: 100%;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  border: 1px solid #d8e1ed;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

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

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

.pagination {
  margin-top: 14px;
  font-size: 14px;
}

.pagination button {
  min-width: 34px;
  height: 32px;
}

.pagination select {
  min-width: 110px;
}

.pagination input {
  width: 54px;
}

@media (max-width: 1024px) {
  .app-body {
    grid-template-columns: 1fr;
  }

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

  .product-head {
    flex-direction: column;
  }

  .product-tools {
    grid-template-columns: 1fr;
  }

  .agnes-inline-fields {
    grid-template-columns: 1fr;
  }

  .product-import {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .product-generate-actions,
  .product-batch-actions {
    justify-content: flex-start;
  }

  .product-generate-modal,
  .product-generate-modal label,
  .generate-product-list {
    grid-template-columns: 1fr;
  }

  .generate-count-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .generate-count-label {
    text-align: left;
  }

  .generate-count-control {
    width: 100%;
  }

  .product-generate-modal label > span {
    justify-items: start;
    text-align: left;
  }

  .deepseek-summary {
    grid-template-columns: 1fr;
  }

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

.user-chip .plain-link {
  color: var(--blue-800);
  background: var(--blue-100);
}

.filter-form {
  grid-template-columns: minmax(165px, 1fr) minmax(165px, 1fr) minmax(145px, 170px) minmax(300px, 1.25fr) auto;
  align-items: center;
}

.filter-form.user-filter {
  grid-template-columns: minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(135px, 150px) minmax(560px, 1.6fr) auto;
}

.filter-form.account-filter {
  grid-template-columns: minmax(220px, 300px) minmax(220px, 300px) auto;
}

.date-filter {
  grid-column: auto;
}

.filter-actions {
  white-space: nowrap;
}

.filter-form label > span {
  font-size: 13px;
}

.date-filter input {
  width: 205px;
  max-width: none;
}

.approved-notes-panel {
  padding: 16px;
  overflow: hidden;
}

.note-filter {
  grid-template-columns: minmax(250px, 1.1fr) minmax(210px, 0.9fr) minmax(250px, 1fr) minmax(250px, 1fr) auto;
  gap: 16px 28px;
}

.note-filter label > span {
  min-width: 68px;
  color: #4b5563;
  font-size: 14px;
}

.note-filter input,
.note-filter select {
  height: 38px;
  border-color: #d6dde8;
  border-radius: 4px;
}

.note-toolbar {
  margin: 18px 0 8px;
}

.note-toolbar .left-actions {
  gap: 10px;
}

.note-toolbar .btn {
  min-width: auto;
  height: 30px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 13px;
}

.note-table-scroll {
  border-top: 1px solid #edf1f6;
}

.note-table {
  min-width: 1820px;
  color: #606b7a;
  font-size: 13px;
}

.note-table thead tr {
  background: #f7f8fa;
}

.note-table th,
.note-table td {
  padding: 14px 12px;
  vertical-align: middle;
}

.note-table th {
  color: #4a5568;
  font-size: 13px;
}

.note-table tbody tr {
  height: 160px;
}

.note-table input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.note-name {
  color: #5f6876;
  line-height: 1.8;
}

.note-title {
  width: 170px;
  white-space: normal;
}

.note-title a,
.image-link {
  color: #2f95ff;
  font-weight: 500;
}

.note-clip {
  max-width: 250px;
  line-height: 1.8;
  overflow: hidden;
  white-space: normal;
}

.note-topics {
  width: 210px;
  line-height: 1.65;
  white-space: normal;
}

.th-help {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  color: #fff;
  border-radius: 999px;
  background: #697386;
  font-size: 10px;
  line-height: 1;
}

.product-generate-modal input[name="generate_count"] {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 72px 0 14px;
  text-align: left;
  border: 1px solid #d7e1ef;
  border-radius: 16px;
  box-sizing: border-box;
}

.generate-count-suffix {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  color: #4d627a;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

.tooltip-help {
  position: relative;
  cursor: help;
}

.generate-count-help {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.tooltip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  min-width: 168px;
  max-width: 220px;
  padding: 8px 10px;
  color: #fff;
  border-radius: 10px;
  background: rgba(21, 33, 54, 0.96);
  box-shadow: 0 12px 26px rgba(14, 31, 61, 0.18);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 8;
}

.tooltip-help:hover .tooltip-bubble,
.tooltip-help:focus-visible .tooltip-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.status-cross {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  border-radius: 999px;
  background: #ff4d4f;
  font-size: 22px;
  line-height: 1;
}

.note-table .tag-ok {
  color: #52c41a;
  background: transparent;
}

.approved-notes-panel .note-table-scroll {
  overflow-x: visible;
}

.approved-notes-panel .note-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 14px;
}

.approved-notes-panel .note-table th,
.approved-notes-panel .note-table td {
  white-space: normal;
}

.approved-notes-panel .note-table tbody tr {
  height: auto;
  min-height: 150px;
}

.approved-notes-panel .note-table th:nth-child(1),
.approved-notes-panel .note-table td:nth-child(1) {
  width: 24%;
}

.approved-notes-panel .note-table th:nth-child(2),
.approved-notes-panel .note-table td:nth-child(2) {
  width: 11%;
}

.approved-notes-panel .note-table th:nth-child(3),
.approved-notes-panel .note-table td:nth-child(3),
.approved-notes-panel .note-table th:nth-child(4),
.approved-notes-panel .note-table td:nth-child(4) {
  width: 9%;
}

.approved-notes-panel .note-table th:nth-child(5),
.approved-notes-panel .note-table td:nth-child(5),
.approved-notes-panel .note-table th:nth-child(6),
.approved-notes-panel .note-table td:nth-child(6) {
  width: 16%;
}

.approved-notes-panel .note-table th:nth-child(7),
.approved-notes-panel .note-table td:nth-child(7) {
  width: 15%;
}

.approved-notes-panel .note-topics {
  width: auto;
  max-width: none;
  line-height: 1.8;
  text-align: center;
  word-break: break-all;
}

.note-op-links {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.note-op-links a,
.note-op-links button {
  margin: 0;
}

.mini-primary {
  height: 32px;
  padding: 0 10px !important;
  color: #fff !important;
  border-radius: 4px;
  background: #1e8cff !important;
  line-height: 32px;
}

.note-hidden-check {
  width: 14px !important;
  height: 14px !important;
}

.pending-notes-panel {
  padding: 18px 16px 0;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}

.pending-note-filter {
  grid-template-columns: minmax(250px, 320px) minmax(320px, 1fr) minmax(150px, 180px) auto;
  justify-content: start;
  gap: 18px 28px;
  align-items: center;
}

.pending-note-filter label > span {
  min-width: 62px;
  color: #3f4b5f;
  font-size: 14px;
}

.pending-note-filter input,
.pending-note-filter select {
  height: 38px;
  border-color: #dcdfe6;
  border-radius: 4px;
}

.pending-toolbar {
  margin: 22px 0 8px;
}

.pending-toolbar .left-actions {
  flex-wrap: wrap;
}

.pending-table-scroll {
  border-top: 0;
}

.pending-note-table {
  min-width: 1960px;
  font-size: 13px;
}

.pending-note-table th,
.pending-note-table td {
  padding: 12px 14px;
}

.pending-note-table tbody tr {
  height: 110px;
}

.pending-note-table .note-name {
  width: 110px;
  color: #606b7a;
  white-space: normal;
}

.pending-note-table .note-title {
  width: 170px;
}

.dream-clip {
  width: 285px;
}

.content-clip {
  width: 300px;
}

.copy-icon {
  margin-left: 8px;
  color: #1e8cff;
  font-size: 13px;
}

.violation-text {
  font-weight: 500;
}

.violation-text.danger {
  color: #ff4d4f;
}

.violation-text.safe {
  color: #52c41a;
}

.status-check {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  border-radius: 999px;
  background: #18c96e;
  font-size: 18px;
  font-weight: 600;
}

.image-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.image-status.generated {
  color: #13a35d;
  background: #e9fbf2;
}

.image-status.not-generated {
  color: #8a5a00;
  background: #fff7df;
}

.image-modal-mask {
  z-index: 30;
  align-items: center;
}

.image-modal-mask[hidden] {
  display: none !important;
}

.image-modal {
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  width: min(1220px, 96vw);
  max-height: 88vh;
  padding: 28px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 44, 84, 0.22);
}

.image-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.image-modal-head h3 {
  margin: 0;
  color: #3a3f47;
  font-size: 28px;
  font-weight: 500;
}

.image-modal-head a {
  color: #9aa1ad;
  font-size: 32px;
  line-height: 1;
}

.image-upload-form {
  margin: 58px 0 22px;
}

.image-upload-btn {
  min-width: 150px;
  height: 42px;
  border-radius: 5px;
}

.image-upload-btn input[type="file"] {
  display: none;
}

.image-gallery-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 0 22px;
  border-bottom: 8px solid #c9c9c9;
}

.image-card {
  flex: 0 0 294px;
  min-height: 412px;
  padding: 32px 30px;
  border: 1px solid #e1e8f2;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 74, 140, 0.08);
}

.image-card-title {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
  color: #3a3f47;
  font-size: 18px;
}

.image-card-title form {
  margin: 0;
}

.image-card-title button {
  color: #1685ff;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-weight: 500;
}

.image-card img {
  display: block;
  width: 100%;
  height: 304px;
  object-fit: cover;
  background: #f5f7fb;
}

.image-empty {
  width: 100%;
  padding: 48px 20px;
}

.image-modal-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 60px;
}

.image-modal-actions .btn {
  height: 52px;
  min-width: 110px;
  font-size: 18px;
  font-weight: 500;
}

.image-modal-actions .btn[hidden] {
  display: none !important;
}

.image-modal-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.text-button {
  padding: 0;
  color: #2f95ff;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-weight: 500;
}

.pending-ops {
  width: 300px;
  white-space: nowrap;
}

.pending-ops .markdown-btn {
  padding: 5px 9px;
  color: #fff;
  border-radius: 3px;
  background: #1e8cff;
}

.pending-pagination {
  padding: 12px 0 0;
  border-top: 0;
}

.profile-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.profile-shell {
  width: min(720px, 100%);
}

.profile-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(18, 74, 140, 0.12);
}

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

.profile-head h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.profile-head p:last-child {
  margin: 0;
  color: var(--slate);
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.profile-form label {
  display: grid;
  gap: 8px;
  color: #394b61;
  font-size: 14px;
  font-weight: 600;
}

.profile-form input {
  height: 40px;
  padding: 0 12px;
  outline: none;
  border: 1px solid #d8e1ed;
  border-radius: 9px;
  background: #fff;
}

.profile-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.form-success {
  margin-top: 12px;
  padding: 12px 16px;
  color: #0c7a43;
  border: 1px solid #bfe8d2;
  border-radius: 10px;
  background: #edf9f2;
  font-weight: 500;
}

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

  .filter-form.user-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-filter .date-filter {
    grid-column: 1 / -1;
  }

  .filter-form.account-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .profile-head,
  .profile-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .profile-actions {
    justify-content: stretch;
  }
}

/* Global floating feedback: keep existing message nodes out of page flow. */
.form-success,
.form-error {
  position: fixed;
  top: 76px;
  right: 26px;
  z-index: 10120;
  min-width: 240px;
  max-width: min(380px, calc(100vw - 36px));
  margin: 0;
  padding: 13px 16px;
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(15, 35, 62, 0.16);
  font-size: 14px;
  font-weight: 600;
  animation: product-toast-hide 3.8s ease forwards;
  pointer-events: none;
}

.form-success {
  color: #0c7a43;
  border: 1px solid #bfe8d2;
  background: rgba(237, 249, 242, 0.96);
}

.form-error {
  color: #b42318;
  border: 1px solid rgba(244, 67, 54, 0.2);
  background: rgba(255, 241, 240, 0.96);
}

.login-toast {
  z-index: 60;
}

/* Approved notes: keep all fields, but wrap instead of stretching horizontally. */
.approved-notes-panel .note-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 12px;
}

.approved-notes-panel .note-table th,
.approved-notes-panel .note-table td {
  padding: 12px 8px;
  white-space: normal;
  word-break: break-word;
}

.approved-notes-panel .note-table tbody tr {
  height: auto;
}

.approved-notes-panel .note-table th:nth-child(1),
.approved-notes-panel .note-table td:nth-child(1) {
  width: 30px;
}

.approved-notes-panel .note-table th:nth-child(2),
.approved-notes-panel .note-table td:nth-child(2),
.approved-notes-panel .note-table th:nth-child(3),
.approved-notes-panel .note-table td:nth-child(3) {
  width: 78px;
}

.approved-notes-panel .note-table th:nth-child(4),
.approved-notes-panel .note-table td:nth-child(4) {
  width: 110px;
}

.approved-notes-panel .note-table th:nth-child(5),
.approved-notes-panel .note-table td:nth-child(5),
.approved-notes-panel .note-table th:nth-child(6),
.approved-notes-panel .note-table td:nth-child(6),
.approved-notes-panel .note-table th:nth-child(7),
.approved-notes-panel .note-table td:nth-child(7) {
  width: 120px;
}

.approved-notes-panel .note-table th:nth-child(8),
.approved-notes-panel .note-table td:nth-child(8) {
  width: 190px;
}

.approved-notes-panel .note-table th:nth-child(9),
.approved-notes-panel .note-table td:nth-child(9),
.approved-notes-panel .note-table th:nth-child(10),
.approved-notes-panel .note-table td:nth-child(10),
.approved-notes-panel .note-table th:nth-child(11),
.approved-notes-panel .note-table td:nth-child(11) {
  width: 72px;
}

.approved-notes-panel .note-table th:nth-child(12),
.approved-notes-panel .note-table td:nth-child(12),
.approved-notes-panel .note-table th:nth-child(13),
.approved-notes-panel .note-table td:nth-child(13) {
  width: 118px;
}

.approved-notes-panel .note-table th:nth-child(14),
.approved-notes-panel .note-table td:nth-child(14) {
  width: 118px;
}

.approved-notes-panel .note-table-scroll {
  overflow-x: auto;
}

.approved-notes-panel .note-clip,
.approved-notes-panel .note-topics {
  width: auto;
  max-width: none;
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.75;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.approved-notes-panel .note-title {
  width: auto;
}

.tag-used,
.tag-unused {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-weight: 600;
}

.tag-used {
  color: #0c7a43;
  background: #e7f8ef;
}

.tag-unused {
  color: #6b7280;
  background: #eef2f7;
}

.markdown-modal-mask {
  align-items: center;
  padding: 20px;
  overflow: auto;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.markdown-modal-mask.is-visible {
  opacity: 1;
}

.markdown-modal {
  width: min(1500px, calc(100vw - 40px));
  height: min(88dvh, 980px);
  min-height: min(720px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.markdown-modal-mask.is-visible .markdown-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.markdown-head,
.markdown-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.markdown-head h3 {
  margin: 0;
  color: #3f4652;
  font-size: 18px;
  font-weight: 700;
}

.markdown-head a,
.markdown-head button {
  padding: 0;
  color: #9aa3af;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-size: 24px;
}

.markdown-toolbar {
  flex: 0 0 auto;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  padding: 10px 14px;
  color: #71717a;
  border: 1px solid #edf1f6;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #fff;
  font-weight: 600;
}

.markdown-toolbar button {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 28px;
  padding: 0 4px;
  color: #71717a;
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
}

.markdown-toolbar button:hover {
  color: #1e8cff;
  background: #edf7ff;
}

.markdown-editor-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  height: 100%;
  border: 1px solid #edf1f6;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.markdown-editor-grid textarea,
.markdown-preview {
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 18px 22px;
  border: 0;
  outline: none;
  color: #485363;
  font: 15px/1.85 "Microsoft YaHei", "PingFang SC", sans-serif;
}

.markdown-editor-grid textarea {
  resize: none;
  border-right: 5px solid #f2f4f7;
  overflow-y: auto;
}

.markdown-preview {
  overflow-y: auto;
  background: #fff;
}

body.markdown-modal-open {
  overflow: hidden !important;
}

body.markdown-modal-open .approved-notes-panel .note-table-scroll,
body.markdown-modal-open .pending-notes-panel .note-table-scroll {
  overflow: hidden !important;
  touch-action: none;
  overscroll-behavior: contain;
}

.markdown-actions {
  flex: 0 0 auto;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf1f6;
  background: #fff;
}

.markdown-length-tip {
  margin-right: auto;
  color: #111111;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.markdown-length-tip.is-over-limit {
  color: #d92d20;
}

.markdown-preview h1 {
  margin: 0 0 14px;
  font-size: 24px;
}

.markdown-preview h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.markdown-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .markdown-modal {
    width: min(100%, calc(100vw - 24px));
    height: min(92dvh, 920px);
    min-height: min(660px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
  }

  .markdown-editor-grid {
    grid-template-columns: 1fr;
  }

  .markdown-editor-grid textarea {
    border-right: 0;
    border-bottom: 5px solid #f2f4f7;
  }
}

@media (max-width: 640px) {
  .markdown-modal-mask {
    padding: 12px;
    align-items: stretch;
  }

  .markdown-modal {
    width: 100%;
    height: calc(100dvh - 24px);
    min-height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px 14px;
  }

  .markdown-toolbar {
    gap: 10px;
    margin-top: 16px;
    padding: 10px;
    overflow-x: auto;
  }

  .markdown-actions {
    justify-content: stretch;
  }

  .markdown-length-tip {
    width: 100%;
    margin-right: 0;
  }
}

/* Final note table polish: same operation buttons, readable columns, less horizontal drag. */
.approved-notes-panel,
.pending-notes-panel {
  padding: 14px;
  border-radius: 10px;
  background: #fff;
}

.approved-notes-panel .note-table-scroll,
.pending-notes-panel .note-table-scroll {
  overflow-x: auto;
  border: 1px solid #edf1f6;
  border-radius: 8px;
}

.approved-notes-panel .note-table,
.pending-notes-panel .note-table {
  width: 100%;
  min-width: 1320px;
  table-layout: fixed;
  color: #566273;
  font-size: 12px;
}

.pending-notes-panel .note-table {
  min-width: 1180px;
}

.approved-notes-panel .note-table th,
.approved-notes-panel .note-table td,
.pending-notes-panel .note-table th,
.pending-notes-panel .note-table td {
  padding: 10px 8px;
  white-space: normal;
  word-break: break-word;
  vertical-align: middle;
}

.approved-notes-panel .note-table tbody tr,
.pending-notes-panel .note-table tbody tr {
  height: auto;
  min-height: 118px;
}

.approved-notes-panel .note-table th:nth-child(1),
.approved-notes-panel .note-table td:nth-child(1),
.pending-notes-panel .note-table th:nth-child(1),
.pending-notes-panel .note-table td:nth-child(1) {
  width: 34px;
}

.approved-notes-panel .note-table th:nth-child(2),
.approved-notes-panel .note-table td:nth-child(2),
.approved-notes-panel .note-table th:nth-child(3),
.approved-notes-panel .note-table td:nth-child(3) {
  width: 76px;
}

.approved-notes-panel .note-table th:nth-child(4),
.approved-notes-panel .note-table td:nth-child(4) {
  width: 96px;
}

.approved-notes-panel .note-table th:nth-child(5),
.approved-notes-panel .note-table td:nth-child(5),
.approved-notes-panel .note-table th:nth-child(6),
.approved-notes-panel .note-table td:nth-child(6),
.approved-notes-panel .note-table th:nth-child(7),
.approved-notes-panel .note-table td:nth-child(7) {
  width: 115px;
}

.approved-notes-panel .note-table th:nth-child(8),
.approved-notes-panel .note-table td:nth-child(8) {
  width: 170px;
}

.approved-notes-panel .note-table th:nth-child(9),
.approved-notes-panel .note-table td:nth-child(9),
.approved-notes-panel .note-table th:nth-child(10),
.approved-notes-panel .note-table td:nth-child(10),
.approved-notes-panel .note-table th:nth-child(11),
.approved-notes-panel .note-table td:nth-child(11) {
  width: 72px;
}

.approved-notes-panel .note-table th:nth-child(12),
.approved-notes-panel .note-table td:nth-child(12),
.approved-notes-panel .note-table th:nth-child(13),
.approved-notes-panel .note-table td:nth-child(13) {
  width: 112px;
}

.approved-notes-panel .note-table th:nth-child(14),
.approved-notes-panel .note-table td:nth-child(14),
.pending-notes-panel .note-table th:last-child,
.pending-notes-panel .note-table td:last-child {
  width: 116px;
}

.pending-notes-panel .note-table th:nth-child(2),
.pending-notes-panel .note-table td:nth-child(2) {
  width: 100px;
}

.pending-notes-panel .note-table th:nth-child(3),
.pending-notes-panel .note-table td:nth-child(3) {
  width: 130px;
}

.pending-notes-panel .note-table th:nth-child(4),
.pending-notes-panel .note-table td:nth-child(4),
.pending-notes-panel .note-table th:nth-child(5),
.pending-notes-panel .note-table td:nth-child(5) {
  width: 190px;
}

.pending-notes-panel .note-table th:nth-child(6),
.pending-notes-panel .note-table td:nth-child(6),
.pending-notes-panel .note-table th:nth-child(7),
.pending-notes-panel .note-table td:nth-child(7),
.pending-notes-panel .note-table th:nth-child(10),
.pending-notes-panel .note-table td:nth-child(10) {
  width: 86px;
}

.pending-notes-panel .note-table th:nth-child(8),
.pending-notes-panel .note-table td:nth-child(8),
.pending-notes-panel .note-table th:nth-child(9),
.pending-notes-panel .note-table td:nth-child(9) {
  width: 118px;
}

.approved-notes-panel .note-clip,
.approved-notes-panel .note-topics,
.pending-notes-panel .note-clip {
  display: -webkit-box;
  width: auto;
  max-width: none;
  overflow: hidden;
  line-height: 1.7;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.approved-notes-panel .note-title,
.pending-notes-panel .note-title {
  width: auto;
  line-height: 1.6;
}

.note-op-links,
.pending-ops {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.note-op-links form,
.pending-ops form {
  margin: 0;
}

.note-op-links a,
.note-op-links button,
.pending-ops a,
.pending-ops button {
  margin: 0;
  font-size: 12px;
}

/* Final normalized note-table layout */
.approved-notes-panel,
.pending-notes-panel {
  overflow: hidden;
}

.approved-notes-panel .note-table-scroll,
.pending-notes-panel .note-table-scroll {
  overflow-x: auto;
  border: 1px solid #e6edf5;
  border-radius: 10px;
  background: #fff;
}

.note-table-approved,
.note-table-pending {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #536173;
  font-size: 13px;
}

.note-table-approved {
  min-width: 1560px;
}

.note-table-pending {
  min-width: 1320px;
}

.note-table-approved col.col-check,
.note-table-pending col.col-check {
  width: 44px;
}

.note-table-approved col.col-account,
.note-table-pending col.col-account {
  width: 104px;
}

.note-table-approved col.col-command-name {
  width: 120px;
}

.note-table-approved col.col-title,
.note-table-pending col.col-title {
  width: 150px;
}

.note-table-approved col.col-command,
.note-table-approved col.col-assist,
.note-table-approved col.col-content {
  width: 150px;
}

.note-table-approved col.col-topics {
  width: 220px;
}

.note-table-pending col.col-command-wide,
.note-table-pending col.col-content-wide {
  width: 230px;
}

.note-table-approved col.col-image,
.note-table-pending col.col-image,
.note-table-approved col.col-status,
.note-table-pending col.col-status,
.note-table-approved col.col-violation,
.note-table-pending col.col-violation {
  width: 92px;
}

.note-table-approved col.col-date,
.note-table-pending col.col-date {
  width: 134px;
}

.note-table-approved col.col-actions,
.note-table-pending col.col-actions {
  width: 136px;
}

.note-table-approved thead tr,
.note-table-pending thead tr {
  height: 52px;
  background: #f7f9fc;
}

.note-table-approved th,
.note-table-pending th {
  padding: 12px 10px;
  color: #3f4b5f;
  border-bottom: 1px solid #dce5ef;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.note-table-approved td,
.note-table-pending td {
  padding: 12px 10px;
  border-bottom: 1px solid #e6edf5;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
  line-height: 1.65;
}

.note-table-approved tbody tr,
.note-table-pending tbody tr {
  min-height: 116px;
  background: #fff;
}

.note-table-approved tbody tr:hover,
.note-table-pending tbody tr:hover {
  background: #f7fbff;
}

.note-table-approved .note-name,
.note-table-pending .note-name {
  color: #46576c;
  text-align: center;
  line-height: 1.7;
}

.note-table-approved .note-title,
.note-table-pending .note-title {
  width: auto;
  text-align: left;
}

.note-table-approved .note-title a,
.note-table-pending .note-title a,
.note-table-approved .image-link,
.note-table-pending .image-link {
  color: #1e8cff;
  font-weight: 600;
}

.note-table-approved .note-clip,
.note-table-approved .note-topics,
.note-table-pending .note-clip {
  display: -webkit-box;
  width: auto;
  max-width: none;
  overflow: hidden;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.note-table-approved .note-topics {
  -webkit-line-clamp: 6;
}

.note-table-approved .tag-ok,
.note-table-pending .tag-ok {
  justify-content: center;
  color: #35a852;
  background: #eefbf3;
}

.note-table-approved .tag-used,
.note-table-approved .tag-unused {
  justify-content: center;
  min-width: 64px;
}

.note-table-pending .violation-text,
.note-table-pending .image-status {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.note-table-pending .violation-text.danger {
  color: #d92d20;
  background: #fff1f0;
}

.note-table-pending .violation-text.safe,
.note-table-pending .image-status.generated {
  color: #0c7a43;
  background: #e7f8ef;
}

.note-table-pending .image-status.not-generated {
  color: #6b7280;
  background: #eef2f7;
}

.note-table-approved .note-op-links,
.note-table-pending .pending-ops {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
}

.note-table-approved .note-op-links form,
.note-table-pending .pending-ops form {
  margin: 0;
}

.note-table-approved .note-op-links a,
.note-table-approved .note-op-links button,
.note-table-pending .pending-ops a,
.note-table-pending .pending-ops button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 86px;
  height: 28px;
  margin: 0;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.note-table-approved .mini-primary,
.note-table-pending .mini-primary {
  color: #fff !important;
  background: #1e8cff !important;
}

/* Last override: approved notes must keep every td as a real table cell. */
.approved-notes-panel .note-table-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.note-table-approved {
  width: max-content !important;
  min-width: 1900px !important;
  table-layout: fixed !important;
}

.note-table-approved col.col-check { width: 48px !important; }
.note-table-approved col.col-account { width: 112px !important; }
.note-table-approved col.col-title { width: 220px !important; }
.note-table-approved col.col-content { width: 360px !important; }
.note-table-approved col.col-topics { width: 320px !important; }
.note-table-approved col.col-image,
.note-table-approved col.col-status,
.note-table-approved col.col-violation { width: 110px !important; }
.note-table-approved col.col-date { width: 150px !important; }
.note-table-approved col.col-actions { width: 360px !important; }

.note-table-approved th,
.note-table-approved td,
.note-table-approved .note-title,
.note-table-approved .note-clip,
.note-table-approved .note-topics {
  display: table-cell !important;
  vertical-align: middle !important;
}

.note-table-approved .note-title,
.note-table-approved .note-clip,
.note-table-approved .note-topics {
  overflow: visible !important;
  text-align: left !important;
}

.note-table-approved .cell-clamp {
  display: -webkit-box !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.7 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.note-table-approved .topics-clamp {
  -webkit-line-clamp: 6 !important;
}

.note-table-approved .note-op-links {
  display: flex !important;
  min-height: 128px !important;
}

/* Final note-table alignment: keep every td as a real table cell. */
.note-table-approved,
.note-table-pending {
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.note-table-approved {
  width: 1834px !important;
  min-width: 1834px !important;
}

.note-table-pending {
  width: 1504px !important;
  min-width: 1504px !important;
}

.note-table-approved col.col-check,
.note-table-pending col.col-check {
  width: 44px !important;
}

.note-table-approved col.col-account,
.note-table-pending col.col-account {
  width: 110px !important;
}

.note-table-approved col.col-command-name {
  width: 110px !important;
}

.note-table-approved col.col-title,
.note-table-pending col.col-title {
  width: 170px !important;
}

.note-table-approved col.col-command {
  width: 180px !important;
}

.note-table-approved col.col-assist {
  width: 150px !important;
}

.note-table-approved col.col-content {
  width: 210px !important;
}

.note-table-approved col.col-topics {
  width: 200px !important;
}

.note-table-pending col.col-command-wide,
.note-table-pending col.col-content-wide {
  width: 240px !important;
}

.note-table-approved col.col-image,
.note-table-approved col.col-status,
.note-table-approved col.col-violation,
.note-table-pending col.col-image,
.note-table-pending col.col-violation,
.note-table-pending col.col-status {
  width: 90px !important;
}

.note-table-approved col.col-date,
.note-table-pending col.col-date {
  width: 140px !important;
}

.note-table-approved col.col-actions,
.note-table-pending col.col-actions {
  width: 150px !important;
}

.note-table-approved th,
.note-table-pending th,
.note-table-approved td,
.note-table-pending td,
.note-table-approved .note-title,
.note-table-approved .note-clip,
.note-table-approved .note-topics,
.note-table-approved .note-op-links,
.note-table-pending .note-title,
.note-table-pending .note-clip,
.note-table-pending .pending-ops {
  display: table-cell !important;
}

.note-table-approved th,
.note-table-pending th {
  height: 48px !important;
  padding: 10px 8px !important;
  background: #f7f9fc !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.note-table-approved td,
.note-table-pending td {
  height: 116px !important;
  padding: 12px 8px !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.note-table-approved .cell-clamp,
.note-table-pending .cell-clamp {
  display: -webkit-box !important;
  overflow: hidden !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.65 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.note-table-approved .topics-clamp {
  -webkit-line-clamp: 6 !important;
}

.note-table-approved .note-name,
.note-table-pending .note-name,
.note-table-approved td:nth-last-child(-n+5),
.note-table-pending td:nth-last-child(-n+6) {
  text-align: center !important;
  vertical-align: middle !important;
}

.note-table-approved .note-op-links > a,
.note-table-approved .note-op-links > form,
.note-table-pending .pending-ops > a,
.note-table-pending .pending-ops > form {
  display: block !important;
  margin: 7px auto !important;
}

.note-table-approved .note-op-links a,
.note-table-approved .note-op-links button,
.note-table-pending .pending-ops a,
.note-table-pending .pending-ops button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 96px !important;
  min-width: 96px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  line-height: 1 !important;
}

/* Approved notes final fix: keep td as table-cells so columns cannot drift. */
.approved-notes-panel .note-table-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.note-table-approved {
  width: max-content !important;
  min-width: 2480px !important;
  table-layout: fixed !important;
}

.note-table-approved col.col-check {
  width: 48px !important;
}

.note-table-approved col.col-account {
  width: 140px !important;
}

.note-table-approved col.col-command-name {
  width: 150px !important;
}

.note-table-approved col.col-title {
  width: 260px !important;
}

.note-table-approved col.col-command,
.note-table-approved col.col-assist {
  width: 230px !important;
}

.note-table-approved col.col-content {
  width: 280px !important;
}

.note-table-approved col.col-topics {
  width: 300px !important;
}

.note-table-approved col.col-image,
.note-table-approved col.col-status,
.note-table-approved col.col-violation {
  width: 110px !important;
}

.note-table-approved col.col-date {
  width: 150px !important;
}

.note-table-approved col.col-actions {
  width: 150px !important;
}

.note-table-approved th,
.note-table-approved td {
  display: table-cell !important;
  vertical-align: middle !important;
}

.note-table-approved .note-title,
.note-table-approved .note-clip,
.note-table-approved .note-topics {
  display: table-cell !important;
  overflow: visible !important;
  text-align: left !important;
}

.note-table-approved .cell-clamp {
  display: -webkit-box !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.7 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.note-table-approved .topics-clamp {
  -webkit-line-clamp: 6 !important;
}

.note-table-approved .note-op-links {
  display: flex !important;
  min-height: 128px !important;
}

.note-table-approved .note-op-links button,
.note-table-pending .pending-ops button {
  color: #1e8cff;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.note-table-approved .note-op-links form:last-child button,
.note-table-pending .pending-ops form:last-child button {
  color: #ff5b5b;
}

/* Keep note operations aligned with the rightmost 操作 column. */
.note-table-approved,
.note-table-pending {
  min-width: max-content;
}

.note-table-approved col.col-actions,
.note-table-pending col.col-actions {
  width: 152px;
}

.note-table-approved th:last-child,
.note-table-approved td:last-child,
.note-table-pending th:last-child,
.note-table-pending td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -1px 0 0 #e6edf5;
}

.note-table-approved th:last-child,
.note-table-pending th:last-child {
  z-index: 3;
  background: #f7f9fc;
}

.note-table-approved .note-op-links,
.note-table-pending .pending-ops {
  min-height: 116px;
  align-content: center;
  background: inherit;
}

.note-table-approved .note-op-links a,
.note-table-approved .note-op-links button,
.note-table-pending .pending-ops a,
.note-table-pending .pending-ops button {
  width: 104px;
}

/* Premium login redesign */
.login-body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 54px);
  overflow: hidden;
  color: #102033;
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94) 0 34%, rgba(239, 247, 255, 0.9) 34% 62%, rgba(9, 32, 68, 0.96) 62% 100%),
    radial-gradient(circle at 18% 16%, rgba(47, 149, 255, 0.2), transparent 28rem);
}

.login-body::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(14, 44, 82, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 44, 82, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}

.login-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-ambient span {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(6px);
}

.login-ambient span:nth-child(1) {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 8%;
  background: radial-gradient(circle, rgba(30, 140, 255, 0.24), transparent 66%);
}

.login-ambient span:nth-child(2) {
  width: 520px;
  height: 520px;
  right: -170px;
  top: 4%;
  background: radial-gradient(circle, rgba(102, 179, 255, 0.3), transparent 68%);
}

.login-ambient span:nth-child(3) {
  width: 260px;
  height: 260px;
  right: 19%;
  bottom: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(460px, 1.2fr) minmax(380px, 440px);
  gap: clamp(28px, 5vw, 76px);
  width: min(1180px, 100%);
  align-items: center;
}

.login-brand {
  position: relative;
  min-height: 650px;
  padding: clamp(36px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 247, 255, 0.58)),
    radial-gradient(circle at 74% 20%, rgba(64, 153, 255, 0.28), transparent 20rem);
  box-shadow: 0 40px 100px rgba(16, 55, 101, 0.18);
  backdrop-filter: blur(24px);
}

.login-brand::before {
  content: "";
  position: absolute;
  right: -84px;
  top: -92px;
  width: 280px;
  height: 280px;
  border: 44px solid rgba(30, 140, 255, 0.12);
  border-radius: 72px;
  transform: rotate(24deg);
}

.login-brand::after {
  right: 46px;
  bottom: 118px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(30, 140, 255, 0.24);
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.1)),
    repeating-linear-gradient(135deg, rgba(30, 140, 255, 0.13) 0 2px, transparent 2px 13px);
  transform: rotate(-10deg);
}

.brand-topline {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 76px;
}

.brand-topline span {
  color: #4e647e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-brand .brand-mark {
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #102033, #0d58c6 55%, #2f95ff),
    linear-gradient(45deg, transparent 47%, rgba(255, 255, 255, 0.5) 48% 52%, transparent 53%);
  box-shadow: 0 20px 46px rgba(13, 88, 198, 0.28);
  font-size: 25px;
}

.login-brand .eyebrow,
.login-card .eyebrow {
  position: relative;
  z-index: 1;
  color: #1e8cff;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.login-brand h1 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 0 24px;
  color: #0b1f36;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.09em;
}

.login-brand > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin: 0;
  color: #52677f;
  font-size: 17px;
  line-height: 1.9;
}

.login-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
  max-width: 560px;
}

.login-metrics div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(30, 140, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.login-metrics strong,
.login-metrics span {
  display: block;
}

.login-metrics strong {
  color: #102033;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.login-metrics span {
  margin-top: 8px;
  color: #6c7f96;
  font-size: 13px;
  font-weight: 500;
}

.brand-panel {
  left: clamp(36px, 5vw, 68px);
  right: clamp(36px, 5vw, 68px);
  bottom: clamp(30px, 4vw, 48px);
  z-index: 1;
}

.brand-panel span {
  color: #173452;
  border-color: rgba(30, 140, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 34px rgba(31, 94, 157, 0.08);
  font-size: 13px;
  font-weight: 600;
}

.login-card {
  position: relative;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 255, 0.9)),
    radial-gradient(circle at 100% 0, rgba(30, 140, 255, 0.18), transparent 16rem);
  box-shadow: 0 36px 90px rgba(2, 18, 40, 0.36);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0f2b4d, #1e8cff, #bde0ff);
}

.card-heading h2 {
  margin: 0 0 10px;
  color: #0d1f33;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.card-heading p:last-child {
  color: #64758a;
  line-height: 1.7;
}

.login-form {
  gap: 18px;
  margin-top: 34px;
}

.login-form label {
  gap: 10px;
  color: #1c2f45;
  font-size: 14px;
  font-weight: 600;
}

.login-form label > span {
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.02em;
}

.login-form input {
  height: 54px;
  padding: 0 17px;
  color: #12263d;
  border: 1px solid #d8e3ef;
  border-radius: 16px;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-form input:focus {
  border-color: #1e8cff;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(30, 140, 255, 0.13), 0 14px 32px rgba(15, 62, 118, 0.08);
}

.login-form input::placeholder {
  color: #a9b7c6;
}

.captcha-row {
  grid-template-columns: 1fr 144px;
  gap: 10px;
}

.captcha-button {
  height: 54px;
  border-color: #d8e3ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 62, 118, 0.08);
}

.captcha-button:hover {
  border-color: rgba(30, 140, 255, 0.58);
}

.captcha-button img {
  border-radius: 14px;
}

.primary-button {
  position: relative;
  height: 56px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #0f2b4d, #0d58c6 55%, #2f95ff),
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.48), transparent 35%);
  box-shadow: 0 22px 42px rgba(13, 88, 198, 0.28);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: translateX(-110%);
  transition: transform 0.7s ease;
}

.primary-button:hover::after {
  transform: translateX(110%);
}

.alert {
  border-radius: 16px;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  color: #718196;
  font-size: 12px;
}

.login-tip {
  margin: 0;
  font-size: 12px;
}

.login-footer > span {
  padding: 6px 10px;
  color: #1e6fd2;
  border: 1px solid rgba(30, 140, 255, 0.18);
  border-radius: 999px;
  background: #edf7ff;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .login-body {
    overflow-y: auto;
    background:
      radial-gradient(circle at 10% 8%, rgba(47, 149, 255, 0.24), transparent 22rem),
      linear-gradient(145deg, #f8fbff, #eaf4ff);
  }

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

  .login-brand {
    min-height: auto;
    padding-bottom: 150px;
  }
}

@media (max-width: 640px) {
  .login-body {
    padding: 16px;
  }

  .login-brand,
  .login-card {
    padding: 26px;
    border-radius: 26px;
  }

  .login-brand {
    padding-bottom: 140px;
  }

  .brand-topline {
    margin-bottom: 48px;
  }

  .login-brand h1 {
    font-size: 42px;
  }

  .login-metrics {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    left: 26px;
    right: 26px;
  }

  .captcha-row,
  .login-footer {
    grid-template-columns: 1fr;
    display: grid;
  }
}

/* Clean login redesign */
body.login-body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 54px);
  overflow: hidden;
  color: #102033;
  background:
    linear-gradient(90deg, rgba(221, 239, 255, 0.42) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(221, 239, 255, 0.38) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 16% 48%, rgba(47, 149, 255, 0.18), transparent 34rem),
    linear-gradient(115deg, #fbfdff 0 58%, #0f2b4d 58% 100%);
}

body.login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 38%, rgba(219, 237, 255, 0.82) 38% 43%, transparent 43% 61%, rgba(255, 255, 255, 0.12) 61% 66%, transparent 66%),
    radial-gradient(circle at 82% 76%, rgba(47, 149, 255, 0.22), transparent 18rem);
}

.login-stage {
  position: fixed;
  inset: auto -8vw -12vh auto;
  width: 44vw;
  height: 44vw;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 149, 255, 0.24), transparent 64%);
  filter: blur(8px);
}

body.login-body .login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(380px, 440px);
  justify-content: center;
  width: min(480px, 100%);
  align-items: center;
}

body.login-body .login-brand,
body.login-body .login-card {
  border: 1px solid rgba(203, 224, 245, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 32px 90px rgba(15, 43, 77, 0.14);
  backdrop-filter: blur(22px);
}

body.login-body .login-brand {
  position: relative;
  min-height: 680px;
  padding: clamp(44px, 5vw, 68px);
  overflow: hidden;
  border-radius: 32px;
}

body.login-body .login-brand::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 430px;
  height: 430px;
  border-radius: 90px;
  background: rgba(47, 149, 255, 0.10);
  transform: rotate(25deg);
}

body.login-body .login-brand::after {
  content: "";
  position: absolute;
  right: 70px;
  bottom: 110px;
  width: 170px;
  height: 170px;
  border: 2px solid rgba(47, 149, 255, 0.20);
  border-radius: 34px;
  background: repeating-linear-gradient(135deg, rgba(47, 149, 255, 0.10) 0 4px, transparent 4px 12px);
  transform: rotate(-12deg);
}

body.login-body .brand-topline {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 90px;
}

body.login-body .brand-topline span,
body.login-body .eyebrow {
  color: #526b86;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

body.login-body .login-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0;
  color: #fff;
  border-radius: 17px;
  background: linear-gradient(135deg, #0f2b4d, #0b69df 60%, #2f95ff);
  box-shadow: 0 18px 36px rgba(13, 88, 198, 0.24);
  font-size: 26px;
  font-weight: 600;
}

body.login-body .login-brand .eyebrow,
body.login-body .login-card .eyebrow {
  color: #1e8cff;
}

body.login-body .login-brand h1 {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0;
  color: #102033;
  font-size: clamp(52px, 5.8vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.09em;
}

body.login-body .brand-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 26px 0 0;
  color: #5a718c;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
}

body.login-body .login-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin-top: 58px;
}

body.login-body .login-metrics div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(30, 140, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

body.login-body .login-metrics strong {
  display: block;
  color: #102033;
  font-size: 30px;
  line-height: 1;
}

body.login-body .login-metrics span {
  display: block;
  margin-top: 10px;
  color: #6d7f95;
  font-size: 13px;
  font-weight: 600;
}

body.login-body .brand-panel {
  position: absolute;
  left: clamp(44px, 5vw, 68px);
  right: clamp(44px, 5vw, 68px);
  bottom: 44px;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.login-body .brand-panel span {
  padding: 10px 16px;
  color: #173452;
  border: 1px solid rgba(30, 140, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  font-size: 13px;
  font-weight: 600;
}

body.login-body .login-card {
  position: relative;
  min-height: auto;
  padding: 46px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.96) 0 40%, rgba(247, 251, 255, 0.78) 40% 100%),
    radial-gradient(circle at 100% 0, rgba(47, 149, 255, 0.14), transparent 18rem);
}

body.login-body .login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0f2b4d, #1e8cff, #9bd2ff);
}

body.login-body .card-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

body.login-body .login-logo {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f2b4d, #0d63d8 56%, #2f95ff);
  box-shadow: 0 18px 36px rgba(13, 88, 198, 0.22);
  font-size: 28px;
  font-weight: 600;
}

body.login-body .card-heading h2 {
  margin: 0;
  color: #102033;
  font-size: 28px;
  letter-spacing: -0.04em;
}

body.login-body .login-form {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

body.login-body .login-form label {
  display: grid;
  gap: 9px;
  color: #1f3248;
  font-size: 14px;
  font-weight: 600;
}

body.login-body .login-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: #102033;
  border: 1px solid #d8e4f0;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.login-body .login-form input:focus {
  border-color: #1e8cff;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(30, 140, 255, 0.13);
}

body.login-body .captcha-row {
  display: grid;
  grid-template-columns: 1fr 142px;
  gap: 10px;
}

body.login-body .captcha-button {
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e4f0;
  border-radius: 16px;
  background: #fff;
}

body.login-body .captcha-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.login-body .primary-button {
  height: 56px;
  margin-top: 10px;
  color: #fff;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f2b4d, #0d63d8 56%, #2f95ff);
  box-shadow: 0 22px 42px rgba(13, 88, 198, 0.28);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body.login-body .login-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  color: #718196;
  font-size: 12px;
}

body.login-body .login-tip {
  margin: 0;
  font-size: 12px;
}

body.login-body .login-footer > span {
  padding: 7px 12px;
  color: #1e6fd2;
  border: 1px solid rgba(30, 140, 255, 0.18);
  border-radius: 999px;
  background: #edf7ff;
  font-weight: 600;
  white-space: nowrap;
}

body.login-body .alert {
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 14px;
}

@media (max-width: 1024px) {
  body.login-body {
    overflow-y: auto;
    background:
      linear-gradient(90deg, rgba(221, 239, 255, 0.42) 1px, transparent 1px) 0 0 / 42px 42px,
      linear-gradient(rgba(221, 239, 255, 0.38) 1px, transparent 1px) 0 0 / 42px 42px,
      linear-gradient(145deg, #fbfdff, #eaf4ff);
  }

  body.login-body .login-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(480px, 100%);
  }

  body.login-body .login-brand {
    display: none;
  }

  body.login-body .login-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  body.login-body {
    padding: 16px;
  }

  body.login-body .login-brand,
  body.login-body .login-card {
    padding: 26px;
    border-radius: 16px;
  }

  body.login-body .login-brand {
    display: none;
  }

  body.login-body .captcha-row,
  body.login-body .login-footer {
    grid-template-columns: 1fr;
    display: grid;
  }
}

/* Hard reset for notes tables: prevents column drift and messy horizontal layout. */
.approved-notes-panel .note-table-scroll,
.pending-notes-panel .note-table-scroll {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid #e3ebf5 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.pending-notes-panel .note-table-scroll {
  overflow-x: hidden !important;
}

.note-table-approved,
.note-table-pending {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  color: #4c5d73 !important;
  font-size: 13px !important;
}

.note-table-approved {
  min-width: 1420px !important;
}

.note-table-pending {
  min-width: 0 !important;
}

.note-table-approved th,
.note-table-pending th {
  height: 52px !important;
  padding: 10px 8px !important;
  color: #334155 !important;
  border-bottom: 1px solid #dce6f2 !important;
  background: #f7f9fc !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  font-weight: 600 !important;
}

.note-table-approved td,
.note-table-pending td {
  padding: 12px 8px !important;
  border-bottom: 1px solid #e6edf5 !important;
  text-align: center !important;
  vertical-align: top !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.65 !important;
}

.note-table-approved tr,
.note-table-pending tr {
  height: auto !important;
}

.note-table-pending col.col-check {
  width: 3% !important;
}

.note-table-pending col.col-account {
  width: 8% !important;
}

.note-table-pending col.col-title {
  width: 11% !important;
}

.note-table-pending col.col-command-wide {
  width: 16% !important;
}

.note-table-pending col.col-content-wide {
  width: 18% !important;
}

.note-table-pending col.col-image {
  width: 7% !important;
}

.note-table-pending col.col-violation {
  width: 7% !important;
}

.note-table-pending col.col-date {
  width: 8% !important;
}

.note-table-pending col.col-status {
  width: 7% !important;
}

.note-table-pending col.col-actions {
  width: 14% !important;
}

.note-table-approved col.col-check {
  width: 42px !important;
}

.note-table-approved col.col-account,
.note-table-approved col.col-command-name {
  width: 86px !important;
}

.note-table-approved col.col-title {
  width: 120px !important;
}

.note-table-approved col.col-command,
.note-table-approved col.col-assist,
.note-table-approved col.col-content {
  width: 135px !important;
}

.note-table-approved col.col-topics {
  width: 190px !important;
}

.note-table-approved col.col-image,
.note-table-approved col.col-status,
.note-table-approved col.col-violation {
  width: 78px !important;
}

.note-table-approved col.col-date {
  width: 112px !important;
}

.note-table-approved col.col-actions {
  width: 126px !important;
}

.note-table-approved .note-title,
.note-table-approved .note-clip,
.note-table-approved .note-topics,
.note-table-pending .note-title,
.note-table-pending .note-clip {
  display: -webkit-box !important;
  width: auto !important;
  max-width: none !important;
  overflow: hidden !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.note-table-approved .note-topics {
  -webkit-line-clamp: 6 !important;
}

.note-table-pending .note-name,
.note-table-approved .note-name {
  text-align: center !important;
}

.note-table-approved td:nth-last-child(-n+5),
.note-table-pending td:nth-last-child(-n+6) {
  vertical-align: middle !important;
}

.note-table-approved .note-op-links,
.note-table-pending .pending-ops {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 4px 0 !important;
}

.note-table-approved .note-op-links form,
.note-table-pending .pending-ops form {
  display: block !important;
  margin: 0 !important;
}

.note-table-approved .note-op-links a,
.note-table-approved .note-op-links button,
.note-table-pending .pending-ops a,
.note-table-pending .pending-ops button {
  width: 100px !important;
  min-width: 100px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  line-height: 36px !important;
  text-align: center !important;
}

.note-table-approved .mini-primary,
.note-table-pending .mini-primary {
  color: #fff !important;
  background: #1e8cff !important;
}

/* Ultimate approved notes table fix: this block must stay after the legacy hard reset. */
.approved-notes-panel .note-table-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.note-table-approved {
  width: max-content !important;
  min-width: 2480px !important;
  table-layout: fixed !important;
}

.note-table-approved col.col-check { width: 48px !important; }
.note-table-approved col.col-account { width: 112px !important; }
.note-table-approved col.col-command-name { width: 150px !important; }
.note-table-approved col.col-title { width: 260px !important; }
.note-table-approved col.col-command,
.note-table-approved col.col-assist { width: 230px !important; }
.note-table-approved col.col-content { width: 240px !important; }
.note-table-approved col.col-topics { width: 220px !important; }
.note-table-approved col.col-image,
.note-table-approved col.col-status,
.note-table-approved col.col-violation { width: 92px !important; }
.note-table-approved col.col-date { width: 122px !important; }
.note-table-approved col.col-actions { width: 150px !important; }

.note-table-approved th,
.note-table-approved td,
.note-table-approved .note-title,
.note-table-approved .note-clip,
.note-table-approved .note-topics {
  display: table-cell !important;
  vertical-align: middle !important;
}

.note-table-approved .note-title,
.note-table-approved .note-clip,
.note-table-approved .note-topics {
  overflow: visible !important;
  text-align: left !important;
}

.note-table-approved .cell-clamp {
  display: -webkit-box !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.7 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.note-table-approved .topics-clamp {
  -webkit-line-clamp: 6 !important;
}

.note-table-approved .note-op-links {
  display: flex !important;
  min-height: 128px !important;
}

/* Approved notes action buttons should stay in one row. */
.note-table-approved col.col-actions {
  width: 272px !important;
}

.note-table-approved .note-op-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 72px !important;
  white-space: nowrap !important;
}

.note-table-approved .note-op-links form {
  display: inline-flex !important;
  margin: 0 !important;
}

.note-table-approved .note-op-links a,
.note-table-approved .note-op-links button {
  width: auto !important;
  min-width: 64px !important;
  height: 36px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
  line-height: 36px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  text-align: center !important;
}

/* Pending notes final alignment override. Keep cells under their exact headers. */
.note-table-pending {
  width: 1680px !important;
  min-width: 1680px !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.note-table-pending col.col-check { width: 48px !important; }
.note-table-pending col.col-account { width: 112px !important; }
.note-table-pending col.col-title { width: 200px !important; }
.note-table-pending col.col-command-wide { width: 250px !important; }
.note-table-pending col.col-content-wide { width: 250px !important; }
.note-table-pending col.col-image { width: 96px !important; }
.note-table-pending col.col-violation { width: 92px !important; }
.note-table-pending col.col-date { width: 122px !important; }
.note-table-pending col.col-status { width: 96px !important; }
.note-table-pending col.col-actions { width: 168px !important; }

.note-table-pending th,
.note-table-pending td,
.note-table-pending .note-title,
.note-table-pending .note-clip,
.note-table-pending .pending-ops {
  display: table-cell !important;
  vertical-align: middle !important;
}

.note-table-pending th,
.note-table-pending td {
  box-sizing: border-box !important;
  padding: 12px 8px !important;
  text-align: center !important;
  border-bottom: 1px solid #e6edf5 !important;
}

.note-table-pending .note-title,
.note-table-pending .note-clip {
  overflow: visible !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.note-table-pending .cell-clamp {
  display: -webkit-box !important;
  overflow: hidden !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.7 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.note-table-pending .note-name,
.note-table-pending .image-link,
.note-table-pending .violation-text,
.note-table-pending .image-status {
  text-align: center !important;
}

.note-table-pending .pending-ops {
  white-space: normal !important;
}

.note-table-pending .pending-ops > a,
.note-table-pending .pending-ops > form {
  display: block !important;
  margin: 7px auto !important;
}

.note-table-pending .pending-ops a,
.note-table-pending .pending-ops button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 104px !important;
  min-width: 104px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  line-height: 30px !important;
  white-space: nowrap !important;
}

/* Keep approved-note action buttons inside the 操作 column (no overlap with 更新时间). */
.note-table-approved th:last-child,
.note-table-approved td:last-child {
  position: static !important;
  right: auto !important;
  z-index: auto !important;
  box-shadow: none !important;
}

.note-table-approved col.col-actions {
  width: 272px !important;
}

.note-table-approved td.note-op-links {
  box-sizing: border-box !important;
  width: 272px !important;
  max-width: 272px !important;
  overflow: hidden !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.note-table-approved .note-op-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 72px !important;
  white-space: nowrap !important;
}

.note-table-approved .note-op-links a,
.note-table-approved .note-op-links button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 72px !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.note-table-approved .note-op-links .mini-primary {
  min-width: 92px !important;
}

/* 未审核笔记表格：参考已审核笔记，使用横向表格和稳定列宽。 */
.pending-notes-panel .note-table-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid #e3ebf5 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.note-table-pending {
  width: max-content !important;
  min-width: 1512px !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.note-table-pending col.col-check { width: 48px !important; }
.note-table-pending col.col-account { width: 112px !important; }
.note-table-pending col.col-title { width: 200px !important; }
.note-table-pending col.col-command-wide { width: 250px !important; }
.note-table-pending col.col-content-wide { width: 250px !important; }
.note-table-pending col.col-topics { width: 200px !important; }
.note-table-pending col.col-image { width: 96px !important; }
.note-table-pending col.col-violation { width: 92px !important; }
.note-table-pending col.col-date { width: 122px !important; }
.note-table-pending col.col-status { width: 96px !important; }
.note-table-pending col.col-actions { width: 168px !important; }

.note-table-pending th,
.note-table-pending td,
.note-table-pending .note-title,
.note-table-pending .note-clip,
.note-table-pending .pending-ops {
  display: table-cell !important;
  vertical-align: middle !important;
}

.note-table-pending th,
.note-table-pending td {
  box-sizing: border-box !important;
  padding: 12px 10px !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: break-word !important;
  border-bottom: 1px solid #e6edf5 !important;
}

.note-table-pending .note-title,
.note-table-pending .note-clip {
  overflow: visible !important;
  text-align: left !important;
}

.note-table-pending .cell-clamp {
  display: -webkit-box !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.7 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.note-table-pending .note-name,
.note-table-pending .image-link,
.note-table-pending .violation-text,
.note-table-pending .image-status {
  text-align: center !important;
}

.note-table-pending .pending-ops {
  box-sizing: border-box !important;
  width: 230px !important;
  min-width: 230px !important;
  max-width: none !important;
  overflow: visible !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  white-space: nowrap !important;
}

.note-table-pending .pending-ops {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-height: 72px !important;
  flex-wrap: nowrap !important;
}

.note-table-pending .pending-ops form {
  display: inline-flex !important;
  margin: 0 !important;
}

.note-table-pending .pending-ops a,
.note-table-pending .pending-ops button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 56px !important;
  max-width: none !important;
  height: 34px !important;
  padding: 0 8px !important;
  line-height: 34px !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  border-radius: 6px !important;
  text-align: center !important;
}

.note-table-pending .pending-ops .mini-primary {
  min-width: 0 !important;
}

/* Hot topics should stay compact in both note tables. */
.note-table-approved .topics-clamp,
.note-table-pending .topics-clamp {
  display: -webkit-box !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

.note-table-approved col.col-topics {
  width: 220px !important;
}

.note-table-pending col.col-topics {
  width: 220px !important;
}

/* Sidebar hierarchy: make all second-level entries match 笔记管理 indentation/border. */
.menu > a:not(.menu-child),
.menu .submenu-title {
  display: block !important;
  margin-left: 12px !important;
  padding-left: 18px !important;
  border-left: 2px solid #d8e8fb !important;
  border-radius: 0 12px 12px 0 !important;
}

.menu .submenu-title {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  color: #526984 !important;
  font-weight: 600 !important;
}

.menu > a:not(.menu-child).active,
.menu > a:not(.menu-child):hover,
.menu a.menu-child.active,
.menu a.menu-child:hover {
  border-left-color: #1e8cff !important;
}

.menu a.menu-child {
  margin-left: 26px !important;
}

/* Unified sidebar second-level style. */
.menu > a,
.menu .submenu-title {
  display: flex !important;
  align-items: center !important;
  min-height: 38px !important;
  margin: 0 0 0 14px !important;
  padding: 9px 12px 9px 16px !important;
  color: #6d829b !important;
  border-left: 2px solid #d8e8fb !important;
  border-radius: 0 12px 12px 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.menu > a:hover,
.menu > a.active,
.menu .submenu-title:hover {
  color: var(--blue-800) !important;
  border-left-color: #1e8cff !important;
  background: var(--blue-100) !important;
  transform: translateX(3px) !important;
}

.menu .submenu-title {
  cursor: default !important;
}

/* Sidebar correction: 笔记管理 is a first-level group title; links are second-level items. */
.menu p {
  margin: 16px 8px 4px !important;
  padding: 0 !important;
  color: #8aa4c3 !important;
  border-left: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transform: none !important;
}

.menu > a,
.menu a.menu-child {
  display: flex !important;
  align-items: center !important;
  min-height: 38px !important;
  margin: 0 0 0 14px !important;
  padding: 9px 12px 9px 16px !important;
  color: #6d829b !important;
  border-left: 2px solid #d8e8fb !important;
  border-radius: 0 12px 12px 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* Note image modal: cleaner gallery-style preview for approved/pending notes. */
.image-modal-mask {
  z-index: 60 !important;
  padding: 18px !important;
  align-items: center !important;
  background: rgba(9, 31, 58, 0.42) !important;
  backdrop-filter: blur(10px);
}

.image-modal {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  width: min(1080px, calc(100vw - 36px)) !important;
  max-height: min(86vh, 820px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(198, 222, 252, 0.92) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 96% 0%, rgba(59, 148, 255, 0.14), transparent 22rem),
    #ffffff !important;
  box-shadow: 0 32px 90px rgba(8, 31, 64, 0.28) !important;
}

.image-modal-head {
  padding: 22px 24px 18px !important;
  border-bottom: 1px solid #e1edfb;
}

.image-modal-head .eyebrow {
  margin-bottom: 5px;
  letter-spacing: 0.12em;
}

.image-modal-head h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 !important;
  color: var(--blue-950) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
}

.image-modal-head h3 span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  color: var(--blue-800);
  border-radius: 999px;
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 600;
}

.image-modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #7a8aa0 !important;
  border: 1px solid #d9e8f9;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 26px !important;
  font-weight: 300;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.image-modal-close:hover {
  color: var(--blue-800) !important;
  background: var(--blue-100);
  transform: rotate(90deg);
}

.image-modal-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(255, 255, 255, 0.94));
}

.image-upload-form {
  margin: 0 !important;
}

.image-upload-btn {
  height: 38px !important;
  min-width: 124px !important;
  border-radius: 10px !important;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(30, 140, 255, 0.16);
}

.image-upload-btn.is-uploading {
  position: relative;
  gap: 8px;
  opacity: 0.9;
  pointer-events: none;
}

.image-upload-btn.is-uploading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: deepseek-spin 0.8s linear infinite;
}

.image-modal-toolbar p {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
}

.image-zoom-tip {
  color: var(--blue-800) !important;
  padding: 8px 12px;
  border: 1px solid #cfe4ff;
  border-radius: 999px;
  background: #eef7ff;
}

.image-gallery-scroll {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px !important;
  min-height: 280px;
  padding: 20px 24px 22px !important;
  overflow: auto !important;
  border: 0 !important;
  background: #f7fbff;
}

.image-card {
  display: grid;
  grid-template-rows: auto auto auto;
  min-height: 0 !important;
  padding: 10px !important;
  overflow: hidden;
  border: 1px solid #dfeaf7 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 30px rgba(18, 74, 140, 0.08) !important;
}

.image-preview {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  border: 0;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(45deg, rgba(232, 243, 255, 0.9) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(232, 243, 255, 0.9) 25%, transparent 25%),
    #ffffff;
  background-size: 18px 18px;
}

.image-preview img,
.image-card img {
  display: block !important;
  width: 100% !important;
  height: 320px !important;
  object-fit: contain !important;
  border-radius: 14px;
  background: #eef5ff !important;
  transition: transform 0.22s ease;
}

.image-preview:hover img {
  transform: scale(1.035);
}

.image-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  padding: 10px 4px 2px;
  border-top: 1px solid #edf3fb;
}

.image-card-actions a,
.image-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 600;
}

.image-card-actions form {
  margin: 0;
}

.image-card-actions button {
  color: #c0352b;
  background: #fff0ef;
}

.image-zoom-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(5, 19, 38, 0.78);
  backdrop-filter: blur(12px);
}

.image-zoom-mask[hidden] {
  display: none;
}

.image-zoom-mask img {
  max-width: min(92vw, 1180px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.image-zoom-close {
  position: fixed;
  top: 24px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 30px;
  line-height: 1;
}

.image-empty-panel {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 300px;
  padding: 36px;
  color: var(--slate);
  border: 1px dashed #bfd8f6;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.image-empty-panel div {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: var(--blue-100);
  font-size: 30px;
}

.image-empty-panel strong {
  color: var(--blue-950);
  font-size: 18px;
}

.image-empty-panel p {
  margin: 8px 0 0;
}

.image-modal-actions {
  padding: 14px 24px !important;
  border-top: 1px solid #e1edfb;
  background: #ffffff;
}

.image-modal-actions .btn {
  height: 38px !important;
  min-width: 92px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

@media (max-width: 640px) {
  .image-modal-mask {
    padding: 10px !important;
  }

  .image-modal {
    width: calc(100vw - 20px) !important;
    max-height: 90vh !important;
  }

  .image-modal-head,
  .image-modal-toolbar,
  .image-modal-actions {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .image-modal-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .image-upload-btn {
    width: 100%;
  }

  .image-gallery-scroll {
    grid-template-columns: 1fr;
    padding: 16px !important;
  }
}

/* DeepSeek config: use the full workspace width instead of a narrow centered card. */
.deepseek-panel {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100% - 112px);
  min-height: calc(100dvh - 112px);
  padding: 22px 24px 26px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 0%, rgba(59, 148, 255, 0.14), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
}

.deepseek-panel > .section-title {
  display: flex !important;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid #dceafe;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(234, 246, 255, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(18, 108, 226, 0.14), transparent 18rem);
}

.deepseek-panel > .section-title h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.deepseek-summary {
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  width: 100%;
  margin-top: 0 !important;
}

.deepseek-summary div {
  min-height: 104px !important;
  padding: 18px 20px !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(18, 74, 140, 0.07);
}

.deepseek-summary strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.deepseek-form {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 16px !important;
  width: 100%;
  margin-top: 18px !important;
  padding: 18px 20px;
  border: 1px solid #dceafe;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(18, 74, 140, 0.06);
}

.deepseek-form input {
  height: 46px !important;
  border-radius: 10px !important;
  background: #f8fbff;
}

.deepseek-actions {
  justify-content: flex-end;
  min-width: 184px;
}

.deepseek-actions .btn {
  min-width: 84px;
  height: 46px;
}

.site-settings-panel {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 112px);
  padding: 22px 24px 26px !important;
  background:
    radial-gradient(circle at 96% 0%, rgba(41, 132, 255, 0.14), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
}

.site-settings-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid #dceafe;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 244, 255, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(18, 108, 226, 0.12), transparent 18rem);
  box-shadow: 0 18px 36px rgba(18, 74, 140, 0.08);
}

.site-settings-hero h3 {
  margin: 6px 0 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.site-settings-hero p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--slate);
  line-height: 1.8;
}

.site-settings-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-settings-badges span,
.site-settings-note-list span {
  padding: 10px 14px;
  color: var(--blue-800);
  border: 1px solid #cfe3ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
}

.site-settings-tabs {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.site-settings-tabs button {
  height: 42px;
  padding: 0 18px;
  color: #52708f;
  cursor: pointer;
  border: 1px solid #d8e8fb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-settings-tabs button.active {
  color: #fff;
  border-color: #1e8cff;
  background: linear-gradient(135deg, #0f73e8, #3f9bff);
  box-shadow: 0 16px 26px rgba(11, 85, 197, 0.18);
}

.site-settings-tabs button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(18, 74, 140, 0.12);
}

.site-settings-layout {
  display: block;
  margin-top: 18px;
}

.site-settings-main,
.site-settings-preview,
.site-settings-pane {
  min-width: 0;
}

.site-settings-pane {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.site-settings-pane.active {
  opacity: 1;
  transform: translateY(0);
}

.site-settings-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #dfe9f5;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.site-settings-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-settings-switch-copy strong {
  color: #173452;
  font-size: 16px;
}

.site-settings-switch-copy span {
  color: #7a8ea8;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.site-settings-inline-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 2px;
}

.site-settings-inline-switch.compact {
  padding-top: 0;
}

.site-settings-inline-switch strong {
  color: #173452;
  font-size: 15px;
  font-weight: 600;
}

.switch-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-toggle-slider {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 30px;
  border-radius: 999px;
  background: #c7d2df;
  box-shadow: inset 0 0 0 1px rgba(38, 61, 91, 0.04);
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}

.switch-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(34, 54, 78, 0.18);
  transition: transform 0.2s ease;
}

.switch-toggle input:checked + .switch-toggle-slider {
  background: #1e94ff;
}

.switch-toggle input:checked + .switch-toggle-slider::after {
  transform: translateX(26px);
}

.switch-toggle:hover .switch-toggle-slider {
  box-shadow: 0 8px 16px rgba(34, 54, 78, 0.12);
}

.site-settings-stacked-field {
  display: grid !important;
  gap: 10px;
  align-items: start !important;
}

.site-settings-stacked-field > span {
  min-width: 0 !important;
}

.site-settings-stacked-field input,
.site-settings-stacked-field textarea {
  width: 100%;
}

.site-settings-stacked-field input {
  height: auto;
}

.site-announcement-mask {
  z-index: 70;
  background:
    radial-gradient(circle at 20% 18%, rgba(71, 160, 255, 0.16), transparent 20rem),
    rgba(8, 25, 49, 0.34);
  backdrop-filter: blur(14px);
}

.site-announcement-card {
  width: min(680px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 0;
  grid-template-columns: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(135, 192, 255, 0.26);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96)),
    linear-gradient(135deg, rgba(60, 147, 255, 0.08), rgba(18, 108, 226, 0.03));
  box-shadow: 0 30px 90px rgba(8, 34, 72, 0.2);
}

.site-announcement-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 0;
}

.site-announcement-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 34px;
  padding: 0 14px;
  color: #0f73e8;
  border: 1px solid rgba(30, 140, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #edf7ff, #f8fbff);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.site-announcement-close-btn {
  background: rgba(237, 246, 255, 0.9);
  color: #0f73e8;
}

.site-announcement-head {
  padding: 18px 24px 0;
}

.site-announcement-head span {
  display: block;
  color: #6d86a3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-announcement-head h3 {
  margin: 10px 0 0;
  color: #0c2648;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.site-announcement-divider {
  height: 1px;
  margin: 20px 24px 0;
  background: linear-gradient(90deg, rgba(30, 140, 255, 0.16), rgba(30, 140, 255, 0.04));
}

.site-announcement-body {
  padding: 22px 24px 0;
  color: #4d637d;
  font-size: 16px;
  line-height: 2;
}

.site-announcement-body p {
  margin: 0;
  white-space: normal;
  word-break: break-word;
}

.site-announcement-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 24px;
}

@media (max-width: 640px) {
  .site-settings-switch-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-settings-inline-switch {
    gap: 12px;
  }

  .switch-toggle {
    align-self: flex-end;
  }

  .site-announcement-card {
    width: min(100vw - 20px, 680px);
    border-radius: 22px;
  }

  .site-announcement-head h3 {
    font-size: 26px;
  }

  .site-announcement-footer {
    justify-content: stretch;
  }

  .site-announcement-footer .btn {
    width: 100%;
  }
}

.site-settings-card {
  width: 100%;
  padding: 20px 22px;
  border: 1px solid #dceafe;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(18, 74, 140, 0.07);
}

.site-settings-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.site-settings-card-head span {
  display: block;
  color: #6c7f97;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-settings-card-head h4 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.site-settings-card-head b {
  padding: 9px 12px;
  color: #0f73e8;
  border-radius: 999px;
  background: #edf6ff;
  font-size: 12px;
}

.site-settings-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.site-settings-summary div {
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid #dceafe;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.92));
  box-shadow: 0 12px 32px rgba(24, 72, 132, 0.08);
}

.site-settings-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--slate);
  font-size: 13px;
}

.site-settings-summary strong {
  color: var(--blue-900);
  font-size: 18px;
  line-height: 1.45;
}

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

.site-settings-form input,
.site-settings-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  outline: none;
  border: 1px solid #d7e4f4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #f4f9ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #445467;
  font: 15px/1.8 "Microsoft YaHei", "PingFang SC", sans-serif;
}

.site-settings-form textarea {
  min-height: 152px;
  resize: vertical;
}

.site-settings-form input:focus,
.site-settings-form textarea:focus {
  border-color: #79b7ff;
  box-shadow: 0 0 0 4px rgba(30, 140, 255, 0.12);
}

.site-settings-stacked-field input {
  min-height: 56px;
}

.site-settings-note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.site-settings-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.site-settings-actions .modal-hint {
  max-width: 520px;
}

.site-music-player {
  position: fixed;
  left: 12px;
  bottom: 72px;
  z-index: 10060;
  width: min(332px, calc(100vw - 24px));
  padding: 10px 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.92), rgba(39, 39, 39, 0.84)),
    radial-gradient(circle at 70% 100%, rgba(255, 92, 92, 0.16), transparent 11rem);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  color: #fff;
  isolation: isolate;
}

.site-music-player.collapsed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18px);
}

.site-music-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-music-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-music-player-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 26px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-music-toggle {
  min-width: 56px;
  height: 28px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.site-music-player-body {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.site-music-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.site-music-cover {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #1e1e1e;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  animation: site-music-cover-spin 16s linear infinite;
  animation-play-state: paused;
  transform-origin: center;
  will-change: transform;
}

.site-music-cover.is-spinning {
  animation-play-state: running;
}

.site-music-main-copy,
.site-music-meta {
  display: grid;
  gap: 6px;
}

.site-music-meta strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-music-meta span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-music-timeline {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 500;
}

.site-music-progress-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 20px;
}

.site-music-progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 210, 145, 0.92));
  transform: translateY(-50%);
  pointer-events: none;
}

.site-music-progress-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  padding: 4px 8px;
  color: #fff;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.88);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.site-music-progress-bubble.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-music-progress {
  width: 100%;
  height: 16px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  accent-color: #f2f2f2;
  -webkit-appearance: none;
  appearance: none;
}

.site-music-progress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.site-music-progress::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  -webkit-appearance: none;
}

.site-music-progress::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.site-music-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.site-music-progress:active::-webkit-slider-thumb,
.site-music-progress:focus-visible::-webkit-slider-thumb {
  transform: scale(1.08);
}

.site-music-progress:active::-moz-range-thumb,
.site-music-progress:focus-visible::-moz-range-thumb {
  transform: scale(1.08);
}

@keyframes site-music-cover-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.site-music-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-music-control-btn {
  min-width: 40px;
  height: 36px;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 500;
  font-size: 17px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.site-music-control-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.site-music-inline-toggle {
  min-width: 72px;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 12px;
  white-space: nowrap;
}

.site-music-inline-toggle.danger {
  color: #ffd4d4;
  border-color: rgba(255, 140, 140, 0.2);
  background: rgba(255, 108, 108, 0.12);
}

.site-music-control-btn:hover,
.site-music-toggle:hover,
.site-music-dock:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.site-music-dock {
  position: fixed;
  left: 12px;
  bottom: 72px;
  z-index: 10059;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  height: 42px;
  padding: 0 14px;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.88);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.site-music-player.is-loading + .site-music-dock .site-music-dock-wave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  animation: site-music-loading-spin 0.72s linear infinite;
}

.site-music-dock-wave {
  font-size: 16px;
}

.site-music-dock-text {
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}

.site-music-lyric-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10061;
  padding: 12px 18px 14px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0), rgba(20, 20, 20, 0.58) 28%, rgba(20, 20, 20, 0.82));
  pointer-events: none;
}

.site-music-lyric-window {
  position: relative;
  max-width: min(1080px, calc(100vw - 36px));
  height: 54px;
  margin: 0 auto;
  overflow: hidden;
}

.site-music-lyric-track {
  display: grid;
  gap: 6px;
  justify-items: center;
  transform: translateY(0);
}

.site-music-lyric-track.is-rolling {
  animation: lyric-roll 0.45s ease;
}

.site-music-current-lyric,
.site-music-next-lyric,
.site-music-lyric-track p {
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.site-music-lyric-track .current {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.site-music-lyric-track .next {
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

@keyframes lyric-roll {
  from {
    opacity: 0.18;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes site-music-loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.site-settings-rule-grid {
  display: grid;
  gap: 14px;
}

.site-settings-rule-grid article {
  padding: 18px 18px 16px;
  border: 1px solid #e3edf8;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
}

.site-settings-rule-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-900);
  font-size: 16px;
}

.site-settings-rule-grid p,
.site-preview-footer p {
  margin: 0;
  color: #617389;
  line-height: 1.8;
}

.api-doc-grid code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #edf4ff;
  color: #0f4c9c;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.api-doc-code {
  margin: 12px 0 0;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid #dceafe;
  border-radius: 16px;
  background: #0f1726;
}

.api-doc-code code {
  padding: 0;
  background: transparent;
  color: #d9e7ff;
  font-size: 12px;
  line-height: 1.7;
}

/* API 文档卡片 */
.api-doc-container .api-doc-grid {
  gap: 16px;
}

.api-doc-card {
  padding: 20px 22px 18px;
  border: 1px solid #e3edf8;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
  transition: box-shadow 0.2s, border-color 0.2s;
}

.api-doc-card:hover {
  border-color: #c5d9f5;
  box-shadow: 0 4px 20px rgba(15, 76, 156, 0.08);
}

.api-doc-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.api-doc-card-head strong {
  margin: 0;
  font-size: 15px;
  color: var(--blue-900, #0a2540);
}

/* HTTP 方法标签 */
.api-doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  flex-shrink: 0;
}

.api-doc-badge-get {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.api-doc-badge-post {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
}

.api-doc-badge-info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

.api-doc-badge-flow {
  background: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #e1bee7;
}

/* 接口路径 */
.api-doc-endpoint {
  margin: 0 0 10px;
  padding: 8px 12px;
  background: #f0f4f8;
  border-radius: 8px;
  border-left: 3px solid var(--blue-500, #3b94ff);
}

.api-doc-endpoint code {
  background: transparent;
  padding: 0;
  color: #0f4c9c;
  font-size: 13px;
  word-break: break-all;
}

/* 小节标签 */
.api-doc-section-label {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #617389;
  letter-spacing: 0.3px;
}

.api-doc-table {
  width: 100%;
  margin: 8px 0 0;
  border-collapse: collapse;
  font-size: 13px;
}
.api-doc-table th,
.api-doc-table td {
  padding: 6px 10px;
  border: 1px solid var(--border, #e3e8ef);
  text-align: left;
}
.api-doc-table th {
  background: #f5f7fa;
  font-weight: 600;
  color: #475569;
}
.api-doc-table td code {
  font-size: 12px;
}

/* 流程步骤 */
.api-doc-steps {
  margin: 0;
  padding-left: 20px;
  list-style: none;
  counter-reset: step;
}

.api-doc-steps li {
  position: relative;
  padding: 6px 0 6px 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #3d4e63;
  counter-increment: step;
}

.api-doc-steps li::before {
  content: counter(step);
  position: absolute;
  left: -20px;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-500, #3b94ff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.api-doc-card.api-doc-intro,
.api-doc-card.api-doc-notes {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
}

.api-doc-card.api-doc-flow {
  background: linear-gradient(180deg, rgba(252, 247, 255, 0.98), rgba(248, 250, 255, 0.96));
}

.preview-card {
  position: sticky;
  top: 22px;
}

.site-preview-login {
  padding: 22px;
  border: 1px solid #e0ebf8;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(203, 168, 106, 0.12), transparent 16rem),
    radial-gradient(circle at 85% 18%, rgba(95, 139, 255, 0.14), transparent 18rem),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-preview-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-preview-brand i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #0f73e8;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecf6ff, #ddecff);
  font-style: normal;
  font-size: 26px;
  font-weight: 600;
}

.site-preview-brand strong,
.site-preview-footer strong {
  display: block;
  color: var(--blue-900);
}

.site-preview-brand span {
  display: block;
  margin-top: 4px;
  color: #6b7f97;
  font-size: 13px;
}

.site-preview-alert {
  margin-top: 18px;
  padding: 14px 16px;
  color: #b42318;
  border: 1px solid rgba(244, 67, 54, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 244, 243, 0.98), rgba(255, 238, 236, 0.96));
  font-weight: 500;
  line-height: 1.7;
}

.site-preview-fields {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.site-preview-fields span {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  color: #95a3b5;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.site-preview-login .btn {
  width: 100%;
  margin-top: 16px;
  opacity: 1;
}

.site-preview-footer {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f5f9ff;
}

.site-settings-pane[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .deepseek-panel {
    min-height: auto;
    padding: 16px !important;
  }

  .deepseek-panel > .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-settings-hero,
  .site-settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-music-player {
    left: 10px;
    bottom: 12px;
    width: min(316px, calc(100vw - 20px));
  }

  .site-music-dock {
    left: 10px;
    bottom: 12px;
  }

  .site-music-main {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .site-music-controls {
    justify-content: flex-start;
    gap: 7px;
  }

  .site-music-inline-toggle {
    min-width: 68px;
    padding: 0 10px;
    font-size: 11px;
  }

  .site-music-cover {
    width: 70px;
    height: 70px;
  }

  .site-music-timeline {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 6px;
    font-size: 10px;
  }

  .site-music-progress-bubble {
    padding: 4px 7px;
    font-size: 9px;
  }

  .site-music-lyric-track .current {
    font-size: clamp(18px, 5vw, 24px);
  }

  .deepseek-summary,
  .deepseek-form,
  .site-settings-summary {
    grid-template-columns: 1fr !important;
  }

  .site-settings-badges {
    justify-content: flex-start;
  }

  .deepseek-actions {
    justify-content: stretch;
    min-width: 0;
  }

  .site-settings-panel,
  .preview-card {
    min-height: auto;
    position: static;
  }

  .deepseek-actions .btn {
    flex: 1;
  }
}

/* Product pagination links reuse button pagination look. */
.pagination .page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  color: #3e5065;
  border-radius: 4px;
  background: #f2f4f7;
  font-weight: 600;
}

.pagination .page-button.disabled {
  color: #c6ced9;
  pointer-events: none;
  cursor: not-allowed;
}

body.login-body {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(203, 168, 106, 0.16), transparent 26rem),
    radial-gradient(circle at 85% 18%, rgba(95, 139, 255, 0.18), transparent 22rem),
    linear-gradient(135deg, #07111f 0%, #0d1b31 48%, #142742 100%);
}

body.login-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 34%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.07), transparent 20%);
  opacity: 0.8;
}

/* Batch-generate modal list should use the same compact admin rhythm as the rest of the page. */
.generate-list-head em {
  display: inline-block;
  color: #1570ef;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.generate-list-panel {
  display: grid;
  gap: 8px;
}

.generate-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
}

.generate-check-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #53657a;
  font-size: 13px;
  font-weight: 500;
}

.generate-check-all input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.generate-clear-btn {
  padding: 0;
  color: #8a95a5;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

.generate-list-scroll {
  max-height: 360px;
  overflow: auto;
  padding: 0;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: #fff;
}

.generate-product-cards {
  display: grid;
  gap: 0;
}

.generate-product-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 0 4px;
  min-height: 68px;
  padding: 12px 14px 12px 10px;
  cursor: pointer;
  border-bottom: 1px solid #e8eef6;
  background: #fff;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.product-generate-modal label.generate-product-card {
  grid-column: auto;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
}

.generate-product-card:hover {
  background: #f7fbff;
}

.generate-product-card > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
}

.generate-product-card:last-child {
  border-bottom: 0;
}

.generate-card-main {
  display: grid;
  min-width: 0;
  justify-items: start;
  align-content: start;
  margin-left: 0;
  padding-left: 0;
}

.generate-card-title {
  display: block;
  width: 100%;
  color: #1c3248;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  word-break: break-word;
}

.product-generate-modal .generate-product-list {
  min-height: 0;
}

.product-generate-modal .generate-list-toolbar {
  align-items: center;
}

.product-generate-modal .generate-check-all {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  width: 100%;
  gap: 0 8px;
  color: #334a62;
  font-size: 15px;
  font-weight: 600;
}

.product-generate-modal .generate-check-all input[type="checkbox"] {
  margin: 0;
}

.product-generate-modal .generate-check-all span {
  line-height: 1.2;
  text-align: left;
}

.product-generate-modal .generate-list-scroll {
  min-height: 0;
  max-height: min(42vh, 420px);
}

.product-generate-modal .generate-product-card,
.product-generate-modal label.generate-product-card {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: flex-start;
}

.product-generate-modal .generate-product-card > input[type="checkbox"] {
  margin: 4px 0 0 0;
}

.generate-empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 18px;
  color: #8a95a5;
  border: 1px dashed #cfdbeb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .generate-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

}

.login-stage {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 219, 154, 0.12), transparent 0 18rem),
    radial-gradient(circle at 84% 76%, rgba(92, 130, 255, 0.18), transparent 0 22rem);
  filter: blur(8px);
  pointer-events: none;
}

body.login-body .login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 440px);
  gap: 28px;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
  align-items: stretch;
}

body.login-body .login-brand,
body.login-body .login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  backdrop-filter: blur(20px);
}

body.login-body .login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 720px;
  padding: 42px;
  color: #f4f7fb;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 80% 24%, rgba(114, 156, 255, 0.28), transparent 18rem),
    linear-gradient(145deg, rgba(9, 20, 37, 0.88), rgba(20, 35, 58, 0.76));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

body.login-body .login-brand::before {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

body.login-body .brand-topline {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.login-body .login-brand .brand-mark,
body.login-body .login-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff9ed;
  font-weight: 600;
  background:
    linear-gradient(135deg, #d9b56c 0%, #f7e0ab 45%, #9c6e2e 100%);
  box-shadow: 0 16px 36px rgba(178, 133, 62, 0.32);
}

body.login-body .login-brand .brand-mark {
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 20px;
  font-size: 28px;
}

body.login-body .eyebrow,
body.login-body .login-overline {
  color: rgba(236, 240, 247, 0.72);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.login-body .login-overline {
  margin: 38px 0 16px;
  font-size: 12px;
  font-weight: 700;
}

body.login-body .login-brand h1 {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.08em;
}

body.login-body .brand-copy {
  max-width: 600px;
  margin: 18px 0 0;
  color: rgba(230, 236, 244, 0.82);
  font-size: 17px;
  line-height: 1.9;
}

body.login-body .login-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

body.login-body .login-metrics div,
body.landing-body .landing-hero {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.login-body .login-metrics div {
  padding: 18px 20px;
  border-radius: 22px;
}

body.login-body .login-metrics strong {
  display: block;
  color: #f3d79b;
  font-size: 28px;
  font-weight: 500;
}

body.login-body .login-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(234, 239, 246, 0.76);
  font-size: 13px;
}

body.login-body .brand-panel {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

body.login-body .brand-panel span {
  color: #f6e5bc;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

body.login-body .login-card {
  align-self: center;
  padding: 34px 32px 28px;
  color: #10213b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 253, 0.92));
  box-shadow: 0 30px 80px rgba(4, 12, 24, 0.32);
}

body.login-body .card-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

body.login-body .login-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 24px;
}

body.login-body .card-heading h2 {
  margin: 4px 0 6px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

body.login-body .card-heading p:last-child {
  margin: 0;
  color: #6b7b92;
}

body.login-body .alert {
  border-color: rgba(190, 61, 48, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 241, 239, 0.96), rgba(255, 247, 246, 0.96));
}

body.login-body .login-form {
  gap: 16px;
  margin-top: 28px;
}

body.login-body .login-form label {
  gap: 10px;
  color: #1b2a46;
  font-size: 14px;
}

body.login-body .login-form input {
  height: 54px;
  border: 1px solid rgba(17, 35, 65, 0.08);
  border-radius: 18px;
  background: #f6f8fc;
}

body.login-body .login-form input::placeholder {
  color: #a0aec2;
}

body.login-body .login-form input:focus {
  border-color: rgba(40, 88, 196, 0.35);
  box-shadow: 0 0 0 4px rgba(51, 93, 199, 0.08);
}

body.login-body .captcha-row {
  grid-template-columns: minmax(0, 1fr) 148px;
}

body.login-body .captcha-button {
  border-radius: 18px;
  background: #ffffff;
}

body.login-body .primary-button {
  height: 56px;
  margin-top: 10px;
  border-radius: 18px;
  font-size: 16px;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #142e63 0%, #2c57c5 52%, #7d9dff 100%);
  box-shadow: 0 20px 34px rgba(36, 64, 138, 0.24);
}

body.login-body .login-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 2px;
  color: #72819a;
  font-size: 13px;
}

body.login-body .login-footer a {
  color: #2247a7;
  font-weight: 500;
}

body.landing-body {
  position: relative;
  min-height: 100vh;
  color: #f4f7fb;
  background:
    radial-gradient(circle at 0% 0%, rgba(227, 172, 72, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(65, 122, 255, 0.22), transparent 22rem),
    radial-gradient(circle at 50% 100%, rgba(0, 206, 184, 0.1), transparent 28rem),
    linear-gradient(135deg, #06101f, #0d1930 42%, #132846);
  overflow-x: hidden;
}

body.landing-body .landing-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 16rem);
}

body.landing-body .landing-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(140, 170, 220, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 220, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 78%);
}

body.landing-body .landing-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  width: min(1220px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

body.landing-body .landing-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

body.landing-body .landing-brand span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body.landing-body .landing-brand strong {
  color: #f7fbff;
  font-size: 15px;
}

body.landing-body .landing-brand b {
  color: rgba(196, 210, 228, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.landing-body .landing-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #0f2149;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7dfa8, #d6a550);
  box-shadow: 0 18px 32px rgba(214, 165, 80, 0.28);
  font-size: 22px;
  font-weight: 600;
}

body.landing-body .landing-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

body.landing-body .landing-nav a {
  color: rgba(228, 235, 247, 0.78);
  font-size: 14px;
  font-weight: 700;
}

body.landing-body .landing-top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

body.landing-body .landing-page {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto 72px;
}

body.landing-body .landing-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  gap: 26px;
  align-items: center;
  min-height: calc(100vh - 150px);
}

body.landing-body .landing-hero-copy,
body.landing-body .landing-hero-visual,
body.landing-body .landing-feature-card,
body.landing-body .landing-advantage-panel,
body.landing-body .landing-advantage-list article,
body.landing-body .landing-workflow article,
body.landing-body .landing-why-card,
body.landing-body .landing-closing,
body.landing-body .landing-marquee,
body.landing-body .landing-section-head {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.landing-body .is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.landing-body .landing-hero-copy {
  padding: 18px 0;
}

body.landing-body .landing-kicker {
  margin: 0 0 14px;
  color: rgba(242, 227, 191, 0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.landing-body .landing-hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

body.landing-body .landing-copy {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(232, 237, 244, 0.8);
  font-size: 17px;
  line-height: 1.9;
}

body.landing-body .landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

body.landing-body .landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.landing-body .landing-btn:hover {
  transform: translateY(-2px);
}

body.landing-body .landing-btn.primary {
  color: #11234a;
  background: linear-gradient(135deg, #f6dfaa, #d1a85c);
  box-shadow: 0 18px 34px rgba(209, 168, 92, 0.28);
}

body.landing-body .landing-btn.secondary {
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.06);
}

body.landing-body .landing-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body.landing-body .landing-proof-strip span {
  padding: 10px 14px;
  color: #dfeaff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
}

body.landing-body .landing-hero-visual {
  position: relative;
  min-height: 640px;
}

body.landing-body .landing-dashboard-mockup {
  position: relative;
  z-index: 2;
  margin: 72px 22px 0 30px;
  overflow: hidden;
  border: 1px solid rgba(212, 229, 255, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 17, 34, 0.86);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

body.landing-body .landing-screen-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.landing-body .landing-screen-bar i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

body.landing-body .landing-screen-bar span {
  margin-left: 8px;
  color: rgba(220, 229, 241, 0.74);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.landing-body .landing-screen-body {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 420px;
}

body.landing-body .landing-mock-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

body.landing-body .landing-mock-sidebar b {
  padding: 12px 12px;
  color: rgba(208, 220, 238, 0.78);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
}

body.landing-body .landing-mock-sidebar b.active {
  color: #08152c;
  background: linear-gradient(135deg, #f6dfaa, #d9b06a);
}

body.landing-body .landing-mock-main {
  padding: 20px;
}

body.landing-body .landing-mock-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.landing-body .landing-mock-metrics article,
body.landing-body .mock-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

body.landing-body .landing-mock-metrics article {
  padding: 16px 18px;
}

body.landing-body .landing-mock-metrics span {
  display: block;
  color: rgba(199, 214, 234, 0.72);
  font-size: 12px;
  font-weight: 500;
}

body.landing-body .landing-mock-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

body.landing-body .landing-mock-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

body.landing-body .mock-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
  color: #eaf2ff;
  font-size: 13px;
}

body.landing-body .mock-row.head {
  color: rgba(183, 203, 232, 0.76);
  font-size: 12px;
  font-weight: 600;
}

body.landing-body .landing-command-card,
body.landing-body .landing-signal-card {
  position: absolute;
  z-index: 3;
  width: 260px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.2);
}

body.landing-body .landing-command-card {
  top: 20px;
  left: 0;
}

body.landing-body .landing-signal-card {
  right: 0;
  bottom: 34px;
}

body.landing-body .landing-command-card span,
body.landing-body .landing-signal-card span,
body.landing-body .advantage-panel-head span,
body.landing-body .landing-section-head p,
body.landing-body .landing-closing p {
  display: block;
  color: rgba(243, 223, 180, 0.86);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.landing-body .landing-command-card strong,
body.landing-body .landing-signal-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.4;
}

body.landing-body .landing-command-card p {
  margin: 10px 0 0;
  color: rgba(222, 232, 245, 0.8);
  font-size: 13px;
  line-height: 1.7;
}

body.landing-body .landing-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.72;
}

body.landing-body .landing-glow-a {
  top: 92px;
  right: 58px;
  width: 180px;
  height: 180px;
  background: rgba(56, 121, 255, 0.38);
}

body.landing-body .landing-glow-b {
  left: 40px;
  bottom: 56px;
  width: 150px;
  height: 150px;
  background: rgba(226, 180, 84, 0.28);
}

body.landing-body .floating-card {
  animation: landing-float 5.8s ease-in-out infinite;
}

body.landing-body .floating-card.fast {
  animation-duration: 4.8s;
}

body.landing-body .floating-card.slow {
  animation-duration: 6.8s;
}

@keyframes landing-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

body.landing-body .landing-marquee {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

body.landing-body .landing-marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 14px 20px;
  animation: landing-marquee 18s linear infinite;
}

body.landing-body .landing-marquee-track span {
  color: rgba(220, 231, 247, 0.82);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes landing-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-25%);
  }
}

body.landing-body .landing-section {
  margin-top: 94px;
}

body.landing-body .landing-section-head {
  max-width: 760px;
}

body.landing-body .landing-section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

body.landing-body .landing-feature-grid,
body.landing-body .landing-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

body.landing-body .landing-feature-card,
body.landing-body .landing-why-card,
body.landing-body .landing-advantage-list article,
body.landing-body .landing-advantage-panel,
body.landing-body .landing-workflow article,
body.landing-body .landing-closing {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04)),
    rgba(10, 18, 35, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

body.landing-body .landing-feature-card,
body.landing-body .landing-why-card {
  padding: 24px;
}

body.landing-body .landing-feature-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #0a1732;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2d694, #d2a353);
  font-weight: 600;
}

body.landing-body .landing-feature-card h3,
body.landing-body .landing-why-card strong,
body.landing-body .landing-workflow article strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.35;
}

body.landing-body .landing-feature-card p,
body.landing-body .landing-why-card p,
body.landing-body .landing-advantage-list p,
body.landing-body .landing-workflow article p,
body.landing-body .landing-closing h2 {
  margin: 12px 0 0;
  color: rgba(216, 227, 242, 0.78);
  line-height: 1.9;
}

body.landing-body .landing-section-split .landing-advantage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  margin-top: 28px;
}

body.landing-body .landing-advantage-list {
  display: grid;
  gap: 18px;
}

body.landing-body .landing-advantage-list article,
body.landing-body .landing-advantage-panel {
  padding: 24px;
}

body.landing-body .landing-advantage-list strong,
body.landing-body .advantage-panel-head strong {
  display: block;
  font-size: 22px;
  line-height: 1.4;
}

body.landing-body .advantage-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  height: 250px;
  margin-top: 26px;
}

body.landing-body .advantage-chart div {
  display: grid;
  justify-items: center;
  gap: 12px;
}

body.landing-body .advantage-chart b {
  display: block;
  width: 100%;
  max-width: 54px;
  min-height: 56px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #f5dfa6, #3d8fff);
  box-shadow: 0 14px 28px rgba(61, 143, 255, 0.18);
}

body.landing-body .advantage-chart span {
  color: rgba(214, 228, 246, 0.78);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

body.landing-body .landing-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

body.landing-body .landing-workflow article {
  position: relative;
  padding: 24px;
}

body.landing-body .landing-workflow article span {
  display: inline-block;
  padding: 8px 12px;
  color: #10214a;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4dfa8, #d2a557);
  font-size: 12px;
  font-weight: 600;
}

body.landing-body .landing-closing {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 92px;
  padding: 30px;
}

body.landing-body .landing-closing h2 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

@media (max-width: 1024px) {
  body.landing-body .landing-nav {
    display: none;
  }

  body.landing-body .landing-hero-panel,
  body.landing-body .landing-section-split .landing-advantage-layout,
  body.landing-body .landing-workflow {
    grid-template-columns: 1fr;
  }

  body.landing-body .landing-hero-visual {
    min-height: auto;
  }

  body.landing-body .landing-command-card,
  body.landing-body .landing-signal-card {
    position: relative;
    width: auto;
    inset: auto;
    margin-top: 18px;
  }

  body.landing-body .landing-dashboard-mockup {
    margin: 20px 0 0;
  }
}

@media (max-width: 1024px) {
  body.login-body .login-shell {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 28px));
    padding: 18px 0 28px;
  }

  body.login-body .login-brand {
    min-height: auto;
  }

  body.login-body .login-metrics {
    grid-template-columns: 1fr;
  }

  body.landing-body .landing-topbar,
  body.landing-body .landing-page {
    width: calc(100% - 24px);
  }

  body.landing-body .landing-topbar,
  body.landing-body .landing-closing {
    flex-direction: column;
    align-items: stretch;
  }

  body.landing-body .landing-top-actions {
    width: 100%;
  }

  body.landing-body .landing-top-actions .landing-btn {
    flex: 1;
  }

  body.landing-body .landing-feature-grid,
  body.landing-body .landing-why-grid,
  body.landing-body .landing-mock-metrics {
    grid-template-columns: 1fr;
  }

  body.landing-body .landing-screen-body,
  body.landing-body .mock-row {
    grid-template-columns: 1fr;
  }

  body.landing-body .landing-mock-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 640px) {
  body.login-body .login-shell,
  body.landing-body .landing-shell {
    width: calc(100% - 24px);
    padding: 12px 0 20px;
  }

  body.login-body .login-brand,
  body.login-body .login-card,
  body.login-body .card-heading,
  body.login-body .login-footer,
  body.login-body .captcha-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  body.login-body .login-brand h1,
  body.landing-body .landing-hero-copy h1,
  body.landing-body .landing-section-head h2,
  body.landing-body .landing-closing h2 {
    font-size: 36px;
  }

  body.landing-body .landing-topbar,
  body.landing-body .landing-feature-card,
  body.landing-body .landing-why-card,
  body.landing-body .landing-advantage-list article,
  body.landing-body .landing-advantage-panel,
  body.landing-body .landing-workflow article,
  body.landing-body .landing-closing {
    padding: 22px 18px;
    border-radius: 22px;
  }

  body.landing-body .landing-page {
    margin-top: 18px;
  }

  body.landing-body .landing-hero-panel {
    min-height: auto;
  }

  body.landing-body .landing-workflow,
  body.landing-body .landing-feature-grid,
  body.landing-body .landing-why-grid {
    gap: 14px;
  }
}
/* login-interface.pen rebuild */
body.login-pen-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #06214a;
  background: linear-gradient(140deg, #eef7ff 0%, #ffffff 48%, #dbeeff 100%);
}

.login-pen-screen {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  overflow: hidden;
}

.login-pen-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.login-pen-glow-left {
  top: -70px;
  left: -90px;
  width: 520px;
  height: 520px;
  background: rgba(59, 148, 255, 0.18);
}

.login-pen-glow-right {
  right: -10px;
  bottom: -10px;
  width: 420px;
  height: 420px;
  background: rgba(18, 108, 226, 0.13);
}

.login-pen-stage {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  padding: 38px;
}

.login-pen-shell {
  display: grid;
  grid-template-columns: minmax(0, 808px) 448px;
  gap: 40px;
  align-items: center;
  min-height: 100%;
}

.login-pen-brand {
  min-height: 816px;
  padding: 46px;
  border: 1px solid rgba(26, 103, 203, 0.14);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0%, rgba(232, 243, 255, 0.78) 100%);
  box-sizing: border-box;
}

.login-pen-brand-top {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.login-pen-brand-mark,
.login-pen-card-logo {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #0b55c5 0%, #3b94ff 100%);
  box-shadow: 0 18px 38px rgba(18, 108, 226, 0.16);
}

.login-pen-brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 30px;
}

.login-pen-brand-headings p,
.login-pen-card-titles p {
  margin: 0 0 8px;
  color: #126ce2;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
}

.login-pen-brand-headings h1,
.login-pen-card-titles h2,
.login-pen-metric-card h2,
.login-pen-field > span {
  margin: 0;
}

.login-pen-brand-headings h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
}

.login-pen-overline {
  margin: 26px 0 0;
  color: #126ce2;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.2px;
}

.login-pen-copy {
  width: min(760px, 100%);
  margin: 26px 0 0;
  color: #59708d;
  font-size: 18px;
  line-height: 1.8;
}

.login-pen-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 285px));
  gap: 14px;
  margin-top: 26px;
}

.login-pen-metric-card {
  min-height: 135px;
  padding: 18px;
  border: 1px solid rgba(26, 103, 203, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-sizing: border-box;
}

.login-pen-metric-card h2 {
  color: #06214a;
  font-size: 17px;
  font-weight: 500;
}

.login-pen-metric-card p {
  margin: 10px 0 0;
  color: #59708d;
  font-size: 13px;
  line-height: 1.6;
}

.login-pen-card {
  min-height: 642px;
  padding: 36px 36px 32px;
  border: 1px solid rgba(26, 103, 203, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 248, 253, 0.93) 100%);
  box-shadow: 0 24px 60px rgba(18, 74, 140, 0.16);
  box-sizing: border-box;
}

.login-pen-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-pen-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 24px;
}

.login-pen-card-titles h2 {
  color: #06214a;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
}

.login-pen-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.login-pen-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-pen-field > span {
  color: #1b2a46;
  font-size: 14px;
  font-weight: 500;
}

.login-pen-field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(17, 35, 65, 0.08);
  border-radius: 18px;
  background: #f6f8fc;
  color: #06214a;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-pen-field input::placeholder {
  color: #a0aec2;
}

.login-pen-field input:focus {
  border-color: rgba(18, 108, 226, 0.28);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 148, 255, 0.09);
}

.login-pen-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 12px;
}

.login-pen-captcha-button {
  height: 54px;
  padding: 0;
  border: 1px solid rgba(17, 35, 65, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #f6f8fc;
  cursor: pointer;
}

.login-pen-captcha-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-pen-field small {
  color: #72819a;
  font-size: 12px;
}

.login-pen-submit {
  height: 56px;
  margin-top: 4px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #142e63 0%, #2c57c5 52%, #7d9dff 100%);
  box-shadow: 0 20px 42px rgba(44, 87, 197, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-pen-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 48px rgba(44, 87, 197, 0.28);
  filter: saturate(1.03);
}

.login-pen-submit:active {
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .login-pen-shell {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .login-pen-brand {
    min-height: auto;
  }

  .login-pen-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .login-pen-screen {
    padding: 18px;
  }

  .login-pen-stage {
    min-height: auto;
    padding: 20px;
  }

  .login-pen-shell {
    grid-template-columns: 1fr;
  }

  .login-pen-brand,
  .login-pen-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .login-pen-screen {
    padding: 0;
  }

  .login-pen-stage {
    min-height: 100vh;
    padding: 18px;
    border-radius: 0;
  }

  .login-pen-brand,
  .login-pen-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .login-pen-brand-top,
  .login-pen-card-head {
    align-items: flex-start;
  }

  .login-pen-metrics {
    grid-template-columns: 1fr;
  }

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

/* pen replica pages */
body.login-replica-page,
body.home-replica-page {
  min-height: 100vh;
  margin: 0;
  color: #06214a;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background: linear-gradient(140deg, #eef7ff 0%, #ffffff 48%, #dbeeff 100%);
}

body.login-replica-page {
  overflow-x: hidden;
  overflow-y: auto;
}

.login-replica-screen {
  position: relative;
  min-height: 100dvh;
  padding: 24px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-replica-glow,
.home-replica-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.login-replica-glow-left {
  top: -90px;
  left: -110px;
  width: 430px;
  height: 430px;
  background: rgba(59, 148, 255, 0.12);
}

.login-replica-glow-right {
  right: 20px;
  bottom: -40px;
  width: 300px;
  height: 300px;
  background: rgba(18, 108, 226, 0.12);
}

.login-replica-stage {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  min-height: auto;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.login-replica-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 426px;
  gap: 32px;
  align-items: stretch;
  min-height: auto;
}

.login-replica-brand,
.login-replica-card,
.home-replica-topbar,
.home-replica-hero,
.home-replica-capability-card,
.home-replica-workflow,
.home-replica-flow-card,
.home-replica-workflow-entry,
.home-replica-console-header,
.home-replica-console-sidebar,
.home-replica-console-metrics article,
.home-replica-console-list {
  border: 1px solid rgba(26, 103, 203, 0.12);
  box-shadow: 0 24px 60px rgba(18, 74, 140, 0.1);
}

.login-replica-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding: 28px;
  overflow: visible;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 255, 0.92));
}

.login-replica-brand-orbit {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 102px;
  height: 102px;
  border: 2px solid rgba(30, 140, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.login-replica-status,
.home-replica-status {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(30, 140, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #1e6fd2;
  font-size: 12px;
  font-weight: 600;
}

.login-replica-status-dot,
.home-replica-status-dot,
.login-replica-security-dot,
.home-replica-console-chip i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2f95ff;
  flex: 0 0 auto;
}

.login-replica-eyebrow {
  margin: 48px 0 0;
  color: #5e7792;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.login-replica-brand h1 {
  margin: 14px 0 0;
  color: #102033;
  font-size: 30px;
  font-weight: 600;
}

.login-replica-headline {
  margin: 30px 0 0;
  color: #102033;
  font-size: clamp(28px, 2.5vw, 33px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  white-space: normal;
}

.login-replica-copy {
  max-width: 560px;
  margin: 14px 0 0;
  color: #5a718c;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.login-replica-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: auto;
  padding-top: 40px;
}

.login-replica-video {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 140, 255, 0.14);
  box-shadow: 0 12px 32px rgba(18, 74, 140, 0.12);
}

.hero-video-section {
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 140, 255, 0.12);
  box-shadow: 0 12px 32px rgba(18, 74, 140, 0.1);
}

.minimal-hero-video {
  margin-top: 20px;
  max-width: 720px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 140, 255, 0.14);
  box-shadow: 0 12px 32px rgba(18, 74, 140, 0.12);
}

.minimal-hero-video video {
  width: 100%;
  display: block;
}

.m-hero-video {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(30, 140, 255, 0.14);
  box-shadow: 0 8px 24px rgba(18, 74, 140, 0.1);
}

.m-hero-video video {
  width: 100%;
  display: block;
}

/* 视频弹窗 */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.video-modal[hidden] {
  display: none !important;
}
.video-modal.is-open {
  opacity: 1;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.video-modal-box {
  position: relative;
  z-index: 1;
  width: min(1200px, 95vw);
  max-height: 92vh;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.video-modal.is-open .video-modal-box {
  transform: scale(1);
}
.video-modal-wrap {
  position: relative;
  z-index: 1;
  width: min(1200px, 95vw);
}
.video-modal-box video {
  width: 100%;
  height: auto;
  max-height: 88vh;
  display: block;
  object-fit: contain;
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(12, 18, 26, 0.68);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.video-modal-close:hover {
  background: rgba(12, 18, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.48);
  transform: scale(1.06);
}
.video-modal-close:active {
  transform: scale(0.96);
}
.video-modal-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.video-modal-close span {
  display: block;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .video-modal-wrap,
  .video-modal-box {
    width: calc(100vw - 24px);
  }

  .video-modal-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
}

.login-replica-video video {
  width: 100%;
  display: block;
}

.login-replica-metric-card {
  min-height: 0;
  padding: 24px 22px 20px;
  border: 1px solid rgba(30, 140, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.login-replica-metric-card > span {
  color: #1e8cff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.login-replica-metric-card h2 {
  margin: 10px 0 0;
  color: #102033;
  font-size: 18px;
  font-weight: 600;
}

.login-replica-metric-card p {
  margin: 10px 0 0;
  color: #6d7f95;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.login-replica-card {
  position: relative;
  min-height: auto;
  padding: 48px 34px 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.94));
}

.login-replica-card-topline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(90deg, #0f2b4d, #1e8cff 55%, #9bd2ff);
}

.login-replica-security {
  position: absolute;
  top: 14px;
  right: 18px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(30, 140, 255, 0.14);
  border-radius: 999px;
  background: #edf7ff;
  color: #1e6fd2;
  font-size: 12px;
  font-weight: 600;
}

.login-replica-card-head p {
  margin: 0;
  color: #1e8cff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.login-replica-card-head h2 {
  margin: 16px 0 0;
  color: #102033;
  font-size: 30px;
  font-weight: 600;
}

.login-replica-card-head small {
  display: block;
  max-width: 302px;
  margin-top: 12px;
  color: #6d7f95;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.login-replica-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

@media (max-height: 900px) {
  .login-replica-screen {
    padding: 16px;
  }

  .login-replica-stage {
    padding: 20px;
  }

  .login-replica-shell {
    gap: 22px;
  }

  .login-replica-brand,
  .login-replica-card {
    padding: 24px;
  }

  .login-replica-headline {
    margin-top: 22px;
  }

  .login-replica-metrics {
    padding-top: 28px;
  }

  .login-replica-form {
    margin-top: 26px;
    gap: 16px;
  }
}

.login-replica-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-replica-field > span {
  color: #1f3248;
  font-size: 14px;
  font-weight: 600;
}

.login-replica-field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  color: #06214a;
  outline: none;
  border: 1px solid #d8e4f0;
  border-radius: 18px;
  background: #f8fbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-replica-field input:focus {
  border-color: rgba(30, 140, 255, 0.32);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 148, 255, 0.08);
}

.login-replica-field input::placeholder {
  color: #a0aec2;
}

.login-replica-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

.login-replica-captcha-button {
  height: 54px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid #d8e4f0;
  border-radius: 18px;
  background: #f8fbff;
}

.login-replica-captcha-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-replica-helper {
  margin: 2px 0 0;
  color: #8a99ac;
  font-size: 12px;
  font-weight: 500;
}

.login-replica-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 4px;
  cursor: pointer;
  user-select: none;
}

.login-replica-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0d63d8;
  cursor: pointer;
}

.login-replica-remember span {
  font-size: 13px;
  color: #5a6a7d;
}

.login-replica-submit,
.home-replica-btn.primary {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #0f2b4d 0%, #0d63d8 56%, #2f95ff 100%);
  box-shadow: 0 18px 40px rgba(44, 87, 197, 0.22);
}

.login-replica-submit {
  height: 56px;
  margin-top: 4px;
  cursor: pointer;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-replica-submit:hover,
.home-replica-btn:hover {
  transform: translateY(-1px);
}

@keyframes homeReplicaFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes homeReplicaOrbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes homeReplicaPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.88;
    transform: scale(1.06);
  }
}

@keyframes homeReplicaScan {
  0% {
    transform: translateY(-115%);
  }

  100% {
    transform: translateY(125%);
  }
}

@keyframes homeReplicaDrift {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-22px);
  }
}

@keyframes homeReplicaDriftReverse {
  0% {
    transform: translateX(-16px);
  }

  100% {
    transform: translateX(12px);
  }
}

@keyframes homeReplicaBeltFlow {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 160px 0;
  }
}

@keyframes homeReplicaCardAdvance {
  0% {
    transform: translateX(-18px) perspective(1000px) rotateY(20deg);
  }

  100% {
    transform: translateX(18px) perspective(1000px) rotateY(20deg);
  }
}

@keyframes homeReplicaCardAdvanceMain {
  0% {
    transform: translateX(-12px) perspective(1000px) rotateY(-12deg);
  }

  100% {
    transform: translateX(14px) perspective(1000px) rotateY(-12deg);
  }
}

@keyframes homeReplicaCardAdvanceReverse {
  0% {
    transform: translateX(16px) perspective(1000px) rotateY(-24deg);
  }

  100% {
    transform: translateX(-18px) perspective(1000px) rotateY(-24deg);
  }
}

@keyframes homeReplicaRevealUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes homeReplicaShine {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(160%);
  }
}

@keyframes homeReplicaBlink {
  0%,
  100% {
    opacity: 0.45;
    box-shadow: 0 0 0 0 rgba(91, 222, 255, 0.26);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(91, 222, 255, 0);
  }
}

@keyframes homeReplicaRowSweep {
  0% {
    transform: translateX(-118%);
  }

  100% {
    transform: translateX(138%);
  }
}

@keyframes homeReplicaGridShift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 0 0, 80px 80px, 160px 160px;
  }
}

@keyframes homeReplicaAura {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

@keyframes homeReplicaWaterfall {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.home-replica-page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(66, 168, 255, 0.2), transparent 26rem),
    radial-gradient(circle at 86% 14%, rgba(42, 107, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, #edf5ff 0%, #e4effd 44%, #eff6ff 100%);
}

.home-replica-glow-left {
  top: -40px;
  left: -120px;
  width: 480px;
  height: 480px;
  background: rgba(59, 148, 255, 0.16);
}

.home-replica-glow-right {
  top: 90px;
  right: 20px;
  width: 300px;
  height: 300px;
  background: rgba(18, 108, 226, 0.14);
}

.home-replica-stage {
  position: relative;
  z-index: 1;
  width: min(1356px, calc(100% - 32px));
  margin: 42px auto;
  padding: 42px 42px 88px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(235, 244, 255, 0.84));
  box-shadow: 0 28px 80px rgba(26, 72, 146, 0.12);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.home-replica-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(transparent 95%, rgba(120, 179, 255, 0.06) 100%);
}

.home-replica-stage::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  pointer-events: none;
}

.home-replica-reveal {
  opacity: 0;
  animation: homeReplicaRevealUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.home-replica-delay-1 {
  animation-delay: 0.08s;
}

.home-replica-delay-2 {
  animation-delay: 0.16s;
}

.home-replica-delay-3 {
  animation-delay: 0.24s;
}

.home-replica-delay-4 {
  animation-delay: 0.32s;
}

.home-replica-delay-5 {
  animation-delay: 0.4s;
}

.home-replica-delay-6 {
  animation-delay: 0.48s;
}

.home-replica-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.home-replica-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.home-replica-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #07152c 0%, #0d63d8 58%, #53d6ff 100%);
  box-shadow: 0 12px 28px rgba(12, 72, 156, 0.28);
  font-size: 22px;
  font-weight: 600;
  flex: 0 0 auto;
}

.home-replica-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.home-replica-brand-copy strong {
  color: #102033;
  font-size: 15px;
}

.home-replica-brand-copy b {
  color: #6e84a0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-replica-nav,
.home-replica-actions,
.home-replica-hero-actions,
.home-replica-proof-strip {
  display: flex;
  gap: 12px;
  align-items: center;
}

.home-replica-actions {
  gap: 14px;
}

.home-replica-topbar-meta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.home-replica-topbar-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(84, 156, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #41607f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.home-replica-nav {
  gap: 22px;
}

.home-replica-nav a {
  position: relative;
  color: #44617f;
  font-size: 14px;
  font-weight: 500;
}

.home-replica-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #43dfff, #1f7cff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.home-replica-nav a:hover::after {
  transform: scaleX(1);
}

.home-replica-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(30, 140, 255, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-replica-btn.secondary {
  color: #1b6ad0;
  background: rgba(237, 247, 255, 0.78);
  backdrop-filter: blur(10px);
}

.home-replica-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
  gap: 34px;
  align-items: start;
  margin-top: 32px;
  padding: 42px 40px;
  border: 1px solid rgba(146, 194, 255, 0.3);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(234, 243, 255, 0.88) 48%, rgba(212, 230, 255, 0.84) 100%);
  box-shadow: 0 28px 68px rgba(27, 72, 146, 0.12);
  overflow: hidden;
}

.home-replica-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 26%, rgba(90, 188, 255, 0.18), transparent 20rem),
    linear-gradient(90deg, transparent 0 56%, rgba(9, 31, 72, 0.08) 100%);
}

.home-replica-hero-copy,
.home-replica-console {
  position: relative;
  z-index: 1;
}

.home-replica-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  padding-top: 6px;
}

.home-replica-hero-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.home-replica-hero-support {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.home-replica-hero-copy h1,
.home-replica-section-head h2 {
  margin: 0;
  color: #102033;
  letter-spacing: -0.04em;
}

.home-replica-hero-copy h1 {
  max-width: 700px;
  margin-top: 0;
  font-size: 56px;
  line-height: 1.02;
  text-wrap: balance;
}

.home-replica-hero-copy h1 span {
  display: block;
}

.home-replica-hero-copy h1 span + span {
  margin-top: 10px;
}

.home-replica-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: #516c89;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
}

.home-replica-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 700px;
  margin-top: 0;
}

.home-replica-hero-stats article {
  padding: 18px 18px 20px;
  border: 1px solid rgba(112, 179, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 34px rgba(25, 71, 144, 0.08);
}

.home-replica-hero-stats small {
  display: block;
  color: #6793bd;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.home-replica-hero-stats strong {
  display: block;
  margin-top: 8px;
  color: #122743;
  font-size: 20px;
  line-height: 1.2;
}

.home-replica-hero-actions {
  margin-top: 0;
}

.home-replica-hero-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.home-replica-hero-rail span {
  position: relative;
  padding-left: 18px;
  color: #92d7f8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.home-replica-hero-rail span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #56e1ff, #2a76ff);
  box-shadow: 0 0 0 5px rgba(71, 182, 255, 0.12);
}

.home-replica-proof-strip {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-replica-proof-strip span {
  padding: 8px 12px;
  color: #12324f;
  border: 1px solid rgba(65, 145, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.home-replica-signal-list {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-top: 20px;
}

.home-replica-signal-list span {
  position: relative;
  padding-left: 22px;
  color: #3d6183;
  font-size: 13px;
  font-weight: 500;
}

.home-replica-signal-list span::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3ed8ff, #1f7cff);
  box-shadow: 0 0 0 5px rgba(63, 166, 255, 0.12);
  animation: homeReplicaBlink 2.8s ease-in-out infinite;
}

.home-replica-console {
  padding: 22px;
  border: 1px solid rgba(110, 199, 255, 0.24);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(6, 17, 35, 0.95), rgba(10, 31, 61, 0.96));
  box-shadow: 0 30px 80px rgba(7, 22, 49, 0.32);
  transform: perspective(1600px) rotateY(-9deg) rotateX(4deg);
  transform-style: preserve-3d;
  overflow: hidden;
}

.home-replica-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    radial-gradient(circle at 50% -10%, rgba(83, 214, 255, 0.18), transparent 26rem);
}

.home-replica-console-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(122, 186, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.home-replica-console-header strong {
  color: #eef8ff;
  font-size: 14px;
}

.home-replica-console-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(83, 214, 255, 0.12);
  color: #9eeeff;
  font-size: 12px;
  font-weight: 600;
}

.home-replica-console-chip i {
  animation: homeReplicaBlink 2.4s ease-in-out infinite;
}

.home-replica-holo-stage {
  position: relative;
  min-height: 236px;
  margin-top: 18px;
  border: 1px solid rgba(121, 186, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(10, 26, 51, 0.92), rgba(8, 18, 37, 0.98));
  overflow: hidden;
}

.home-replica-holo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 196, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 196, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92) 22%, rgba(0, 0, 0, 0.92));
}

.home-replica-holo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(121, 220, 255, 0.26);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.home-replica-holo-ring.ring-a {
  width: 196px;
  height: 196px;
}

.home-replica-holo-ring.ring-b {
  width: 128px;
  height: 128px;
  border-style: dashed;
}

.home-replica-holo-beam {
  position: absolute;
  right: 18%;
  bottom: -14%;
  width: 210px;
  height: 210px;
  background: linear-gradient(180deg, rgba(80, 225, 255, 0), rgba(80, 225, 255, 0.22));
  clip-path: polygon(46% 0, 100% 100%, 0 100%);
  filter: blur(6px);
  opacity: 0.9;
}

.home-replica-holo-card {
  position: absolute;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(122, 196, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.home-replica-holo-card span,
.home-replica-engine-card-head > span {
  color: #8fdfff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.home-replica-holo-card strong {
  color: #f4fbff;
  font-size: 18px;
  line-height: 1.3;
}

.home-replica-holo-card b {
  color: rgba(235, 248, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.home-replica-holo-card.primary {
  top: 28px;
  left: 26px;
  width: min(280px, calc(100% - 52px));
}

.home-replica-holo-card.secondary {
  right: 22px;
  bottom: 34px;
  width: 226px;
}

.home-replica-holo-card.tertiary {
  top: 50px;
  right: 38px;
  width: 162px;
}

.home-replica-console-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  margin-top: 24px;
}

.home-replica-console-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid rgba(122, 186, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.home-replica-console-sidebar span {
  padding: 10px 12px;
  color: rgba(228, 241, 255, 0.74);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.home-replica-console-sidebar span.active {
  color: #0f223f;
  background: linear-gradient(135deg, #7ddcff, #d5f6ff);
}

.home-replica-console-main {
  min-width: 0;
}

.home-replica-console-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-replica-console-metrics article {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(118, 184, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.home-replica-metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(127, 223, 255, 0.18), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  opacity: 0.34;
}

.home-replica-console-metrics small {
  display: block;
  color: rgba(227, 240, 255, 0.68);
  font-size: 12px;
  font-weight: 500;
}

.home-replica-console-metrics strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 30px;
}

.home-replica-console-list {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(118, 184, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.home-replica-console-list p {
  margin: 0 0 18px;
  color: rgba(227, 240, 255, 0.68);
  font-size: 12px;
  font-weight: 500;
}

.home-replica-console-list-window {
  position: relative;
  height: 270px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.96) 8%, rgba(0, 0, 0, 0.96) 92%, transparent 100%);
  overflow-anchor: none;
}

.home-replica-console-list-track {
  display: grid;
  align-content: start;
  will-change: transform;
  animation: homeReplicaWaterfall 22s linear infinite;
}

.home-replica-console-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.38fr 1fr 0.82fr;
  gap: 10px;
  min-height: 54px;
  align-items: center;
  padding: 14px 0;
  color: #f0f8ff;
  border-top: 1px solid rgba(181, 213, 255, 0.12);
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
}

.home-replica-console-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-replica-console-list span {
  color: rgba(214, 232, 255, 0.66);
}

.home-replica-console-row::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -16%;
  width: 24%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(109, 216, 255, 0.18), rgba(255, 255, 255, 0));
}

.home-replica-console-row:nth-child(2)::after {
  animation-delay: 0.6s;
}

.home-replica-console-row:nth-child(3)::after {
  animation-delay: 1.2s;
}

.home-replica-console-row:nth-child(4)::after {
  animation-delay: 1.8s;
}

.home-replica-console-row:nth-child(5)::after {
  animation-delay: 2.4s;
}

.home-replica-console-row:nth-child(6)::after {
  animation-delay: 3s;
}

.home-replica-console-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-replica-console-ticker span {
  padding: 9px 12px;
  border: 1px solid rgba(124, 200, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 241, 255, 0.76);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-replica-section,
.home-replica-workflow,
.home-replica-system-band,
.home-replica-engine-band {
  margin-top: 88px;
}

.home-replica-system-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-replica-system-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(118, 187, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 42px rgba(24, 67, 136, 0.08);
  overflow: hidden;
}

.home-replica-system-card,
.home-replica-engine-card,
.home-replica-capability-card,
.home-replica-flow-card,
.home-replica-workflow-entry,
.home-replica-footer-band {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-replica-system-card:hover,
.home-replica-engine-card:hover,
.home-replica-capability-card:hover,
.home-replica-flow-card:hover,
.home-replica-workflow-entry:hover,
.home-replica-footer-band:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 174, 255, 0.26);
  box-shadow: 0 22px 48px rgba(24, 67, 136, 0.12);
}

.home-replica-system-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #4ce0ff, #1f7cff);
}

.home-replica-system-card::after,
.home-replica-capability-card::after,
.home-replica-flow-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12%;
  width: 34%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(127, 207, 255, 0.16), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.home-replica-system-card:hover::after,
.home-replica-capability-card:hover::after,
.home-replica-flow-card:hover::after {
  opacity: 1;
}

.home-replica-system-card span {
  color: #5d8db8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.home-replica-system-card strong {
  display: block;
  margin-top: 16px;
  color: #112640;
  font-size: 21px;
  line-height: 1.34;
  text-wrap: balance;
}

.home-replica-system-card p {
  margin: 12px 0 0;
  color: #5a718c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.home-replica-section-head p {
  margin: 0 0 18px;
  color: #1e8cff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.home-replica-section-head {
  position: relative;
}

.home-replica-section-head::after {
  content: "";
  display: block;
  width: 92px;
  height: 1px;
  margin-top: 22px;
  background: linear-gradient(90deg, rgba(44, 152, 255, 0.8), rgba(44, 152, 255, 0));
}

.home-replica-section-head h2 {
  max-width: 900px;
  font-size: 34px;
  line-height: 1.28;
}

.home-replica-single-line {
  max-width: none;
  font-size: 28px;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.home-replica-engine-band {
  position: relative;
  padding: 42px 40px;
  border: 1px solid rgba(109, 175, 255, 0.18);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(5, 16, 34, 0.97), rgba(11, 35, 66, 0.96));
  box-shadow: 0 28px 78px rgba(7, 24, 53, 0.28);
  overflow: hidden;
}

.home-replica-engine-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(83, 214, 255, 0.14), transparent 18rem),
    linear-gradient(transparent 94%, rgba(102, 190, 255, 0.08));
}

.home-replica-engine-band .home-replica-section-head {
  position: relative;
  z-index: 1;
}

.home-replica-engine-band .home-replica-section-head p {
  color: #8fdfff;
}

.home-replica-engine-band .home-replica-section-head::after {
  background: linear-gradient(90deg, rgba(143, 223, 255, 0.94), rgba(143, 223, 255, 0));
}

.home-replica-engine-band .home-replica-section-head h2 {
  color: #f0f8ff;
}

.home-replica-engine-grid,
.home-replica-capability-grid,
.home-replica-workflow-grid {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.home-replica-engine-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-replica-capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-replica-engine-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(119, 191, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  overflow: hidden;
}

.home-replica-engine-card-head {
  position: relative;
  z-index: 1;
}

.home-replica-engine-card h3 {
  margin: 18px 0 0;
  color: #f5fbff;
  font-size: 24px;
  line-height: 1.28;
  text-wrap: balance;
}

.home-replica-engine-card p {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(225, 241, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.76;
}

.home-replica-engine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home-replica-engine-tags span {
  padding: 9px 12px;
  border: 1px solid rgba(121, 198, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #b8ebff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.home-replica-speed-hud {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.home-replica-speed-hud::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(82, 197, 255, 0), rgba(82, 197, 255, 0.42), rgba(82, 197, 255, 0));
  z-index: 0;
}

.home-replica-speed-stage,
.home-replica-copy-stream {
  position: relative;
  margin-top: 26px;
  min-height: 270px;
  border: 1px solid rgba(121, 198, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(6, 18, 35, 0.84), rgba(11, 27, 48, 0.92));
  overflow: hidden;
}

.home-replica-speed-track {
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(84, 226, 255, 0.08), transparent 42%),
    repeating-linear-gradient(90deg, rgba(118, 194, 255, 0.12) 0 2px, transparent 2px 44px);
}

.home-replica-speed-belt {
  position: absolute;
  left: 28px;
  right: 28px;
  height: 16px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(84, 226, 255, 0.08), rgba(84, 226, 255, 0.22), rgba(84, 226, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(201, 242, 255, 0.36) 0 18px, transparent 18px 44px);
  box-shadow: inset 0 0 0 1px rgba(122, 204, 255, 0.12);
  animation: homeReplicaBeltFlow 6.8s linear infinite;
}

.home-replica-speed-belt.belt-a {
  top: 86px;
}

.home-replica-speed-belt.belt-b {
  bottom: 62px;
  animation-direction: reverse;
}

.home-replica-speed-track::after {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 50%;
  background: linear-gradient(180deg, rgba(89, 224, 255, 0), rgba(89, 224, 255, 0.18), rgba(89, 224, 255, 0));
  animation: homeReplicaScan 8s linear infinite;
}

.home-replica-speed-station {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(124, 210, 255, 0.18);
  border-radius: 14px;
  background: rgba(10, 28, 53, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  text-align: center;
  backdrop-filter: blur(10px);
}

.home-replica-speed-station span {
  color: #8fdfff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.home-replica-speed-station strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.08;
}

.home-replica-speed-station.station-a {
  justify-self: start;
}

.home-replica-speed-station.station-b {
  justify-self: center;
}

.home-replica-speed-station.station-c {
  justify-self: end;
}

.home-replica-speed-card {
  position: absolute;
  width: 148px;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(133, 215, 255, 0.26);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 50% 20%, rgba(126, 219, 255, 0.46), transparent 46%),
    linear-gradient(145deg, #143865, #081629);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

.home-replica-speed-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  height: 8px;
  border-radius: 999px;
  background: rgba(190, 239, 255, 0.78);
  box-shadow: 0 -18px 0 0 rgba(190, 239, 255, 0.42), 0 -36px 0 0 rgba(190, 239, 255, 0.24);
}

.home-replica-speed-card.card-a {
  top: 58px;
  left: 50%;
  transform: translateX(-50%) perspective(1000px) rotateY(-12deg);
  animation: homeReplicaCardAdvanceMain 8s ease-in-out infinite alternate;
}

.home-replica-speed-card.card-b {
  top: 78px;
  left: 66px;
  transform: perspective(1000px) rotateY(20deg);
  opacity: 0.72;
  animation: homeReplicaCardAdvance 9s ease-in-out infinite alternate;
}

.home-replica-speed-card.card-c {
  top: 32px;
  right: 68px;
  transform: perspective(1000px) rotateY(-24deg);
  opacity: 0.88;
  animation: homeReplicaCardAdvanceReverse 9.4s ease-in-out infinite alternate;
}

.home-replica-speed-pulse {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 244px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 214, 255, 0.28), rgba(83, 214, 255, 0));
  transform: translateX(-50%);
}

.home-replica-copy-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.home-replica-copy-track {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 22px;
  bottom: 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(84, 226, 255, 0.08), transparent 30%),
    repeating-linear-gradient(90deg, rgba(120, 203, 255, 0.08) 0 2px, transparent 2px 50px);
  opacity: 0.9;
}

.home-replica-copy-track::before,
.home-replica-copy-track::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(84, 226, 255, 0.08), rgba(84, 226, 255, 0.24), rgba(84, 226, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(202, 243, 255, 0.32) 0 16px, transparent 16px 38px);
  animation: homeReplicaBeltFlow 8.2s linear infinite;
}

.home-replica-copy-track::before {
  top: 48px;
}

.home-replica-copy-track::after {
  top: 110px;
  animation-direction: reverse;
}

.home-replica-copy-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  width: max-content;
}

.home-replica-copy-row span {
  padding: 10px 14px;
  border: 1px solid rgba(127, 199, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9f6ff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.home-replica-copy-row.row-a {
  animation: homeReplicaDrift 14s ease-in-out infinite alternate;
}

.home-replica-copy-row.row-b {
  margin-left: auto;
  animation: homeReplicaDriftReverse 15s ease-in-out infinite alternate;
}

.home-replica-copy-output {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 22px;
  border: 1px solid rgba(128, 202, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.home-replica-copy-output small {
  color: #8fdfff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.home-replica-copy-output strong {
  display: block;
  margin-top: 12px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.35;
}

.home-replica-copy-output p {
  margin-top: 14px;
}

.home-replica-capability-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(117, 183, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(26, 72, 146, 0.08);
  overflow: hidden;
}

.home-replica-capability-card > span {
  color: #1e8cff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.home-replica-capability-card h3,
.home-replica-flow-card h3,
.home-replica-workflow-entry h3 {
  margin: 18px 0 0;
  color: #102033;
  font-size: 22px;
  line-height: 1.3;
  text-wrap: balance;
}

.home-replica-capability-card p,
.home-replica-flow-card p,
.home-replica-workflow-entry p {
  margin: 14px 0 0;
  color: #5a718c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.74;
}

.home-replica-capability-card b {
  display: inline-flex;
  margin-top: 20px;
  padding: 7px 11px;
  color: #186dd2;
  border: 1px solid rgba(58, 143, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.home-replica-workflow {
  padding: 42px 40px;
  border: 1px solid rgba(117, 183, 255, 0.16);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(233, 243, 255, 0.92));
}

.home-replica-workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-replica-flow-card,
.home-replica-workflow-entry {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(117, 183, 255, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.home-replica-flow-card b {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: #1e6fd2;
  border: 1px solid rgba(30, 140, 255, 0.14);
  border-radius: 999px;
  background: #edf7ff;
  font-size: 12px;
}

.home-replica-flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.home-replica-flow-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(80, 154, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: #2d5f95;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.home-replica-workflow-entry {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-replica-workflow-entry-copy {
  max-width: 540px;
}

.home-replica-workflow-entry-panel {
  display: grid;
  gap: 10px;
  min-width: 260px;
  padding: 18px;
  border: 1px solid rgba(105, 177, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.96), rgba(234, 245, 255, 0.92));
}

.home-replica-workflow-entry-panel span {
  position: relative;
  padding-left: 18px;
  color: #365e86;
  font-size: 12px;
  font-weight: 600;
}

.home-replica-workflow-entry-panel span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ce0ff, #1f7cff);
}

.home-replica-workflow-entry .home-replica-btn {
  align-self: flex-start;
  margin-top: 0;
  flex: 0 0 auto;
}

.home-replica-workflow-entry p {
  max-width: 720px;
}

.home-replica-footer-band {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-top: 88px;
  padding: 26px 30px;
  border: 1px solid rgba(118, 187, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
}

.home-replica-footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.home-replica-footer-brand strong {
  color: #102033;
  font-size: 18px;
}

.home-replica-footer-brand p {
  margin: 8px 0 0;
  color: #5a718c;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.home-replica-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.home-replica-footer-links a {
  color: #2e5d8d;
  font-size: 13px;
  font-weight: 600;
}

/* Homepage dark theme overrides */
body.home-replica-page,
.home-replica-page {
  color: #e8f6ff;
  background:
    radial-gradient(circle at 12% 8%, rgba(44, 172, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 14%, rgba(16, 95, 255, 0.18), transparent 22rem),
    radial-gradient(circle at 50% 120%, rgba(0, 198, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, #02050b 0%, #030711 24%, #050b14 54%, #02050b 100%);
}

.home-replica-page::before,
.home-replica-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.home-replica-page::before {
  background:
    linear-gradient(rgba(91, 211, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 211, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.92), transparent 92%);
  opacity: 0.48;
}

.home-replica-page::after {
  background:
    radial-gradient(circle at 24% 22%, rgba(73, 219, 255, 0.08), transparent 16rem),
    radial-gradient(circle at 74% 14%, rgba(47, 119, 255, 0.08), transparent 18rem);
  opacity: 0.72;
}

.home-replica-glow-left {
  background: rgba(41, 169, 255, 0.18);
  filter: blur(20px);
}

.home-replica-glow-right {
  background: rgba(26, 98, 255, 0.16);
  filter: blur(20px);
}

.home-replica-stage {
  border: 1px solid rgba(101, 181, 255, 0.12);
  background: linear-gradient(180deg, rgba(3, 9, 16, 0.88), rgba(4, 12, 22, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.home-replica-stage::before {
  background:
    linear-gradient(120deg, rgba(120, 192, 255, 0.06), transparent 22%),
    linear-gradient(transparent 95%, rgba(80, 172, 255, 0.08) 100%);
}

.home-replica-stage::after {
  border-color: rgba(88, 160, 255, 0.12);
}

.home-replica-topbar {
  border: 1px solid rgba(96, 171, 255, 0.12);
  background: rgba(7, 18, 31, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-replica-brand-copy strong,
.home-replica-hero-copy h1,
.home-replica-section-head h2,
.home-replica-system-card strong,
.home-replica-capability-card h3,
.home-replica-flow-card h3,
.home-replica-workflow-entry h3,
.home-replica-footer-brand strong {
  color: #f3fbff;
}

.home-replica-brand-copy b,
.home-replica-nav a,
.home-replica-topbar-meta span,
.home-replica-hero-copy p,
.home-replica-signal-list span,
.home-replica-system-card p,
.home-replica-capability-card p,
.home-replica-flow-card p,
.home-replica-workflow-entry p,
.home-replica-footer-brand p,
.home-replica-footer-links a {
  color: #8ca8c8;
}

.home-replica-topbar-meta span {
  border-color: rgba(82, 156, 255, 0.16);
  background: rgba(6, 18, 31, 0.78);
}

.home-replica-btn.secondary {
  color: #c9f4ff;
  border-color: rgba(78, 180, 255, 0.18);
  background: rgba(6, 18, 31, 0.7);
}

.home-replica-hero {
  border: 1px solid rgba(74, 144, 255, 0.16);
  background: linear-gradient(135deg, rgba(7, 18, 31, 0.92) 0%, rgba(6, 20, 36, 0.96) 48%, rgba(7, 26, 46, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.home-replica-hero::before {
  background:
    radial-gradient(circle at 72% 26%, rgba(58, 188, 255, 0.12), transparent 18rem),
    linear-gradient(90deg, transparent 0 56%, rgba(22, 99, 255, 0.08) 100%);
}

.home-replica-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(101, 225, 255, 0.08), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  animation: homeReplicaShine 7.2s ease-in-out infinite;
}

.home-replica-status {
  border-color: rgba(94, 171, 255, 0.16);
  background: rgba(7, 21, 35, 0.88);
  color: #a7e7ff;
}

.home-replica-hero-stats article,
.home-replica-system-card,
.home-replica-capability-card,
.home-replica-flow-card,
.home-replica-workflow-entry,
.home-replica-footer-band {
  border-color: rgba(88, 160, 255, 0.14);
  background: linear-gradient(180deg, rgba(6, 16, 29, 0.88), rgba(5, 13, 23, 0.92));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.home-replica-hero-stats small,
.home-replica-system-card span,
.home-replica-capability-card > span,
.home-replica-section-head p,
.home-replica-flow-card b,
.home-replica-copy-output small {
  color: #7fdfff;
}

.home-replica-hero-stats strong,
.home-replica-system-card strong,
.home-replica-capability-card h3,
.home-replica-flow-card h3,
.home-replica-copy-output strong {
  color: #f3fbff;
}

.home-replica-capability-card b,
.home-replica-flow-tags span,
.home-replica-workflow-entry-panel span {
  color: #c7f3ff;
}

.home-replica-console {
  border-color: rgba(94, 176, 255, 0.18);
  background: linear-gradient(180deg, rgba(3, 10, 19, 0.98), rgba(4, 15, 29, 0.98));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
  transform: none;
}

.home-replica-console-header,
.home-replica-holo-stage,
.home-replica-console-sidebar,
.home-replica-console-metrics article,
.home-replica-console-list,
.home-replica-engine-card,
.home-replica-speed-stage,
.home-replica-copy-stream,
.home-replica-workflow-entry-panel {
  border-color: rgba(94, 176, 255, 0.14);
  background: linear-gradient(180deg, rgba(6, 18, 31, 0.9), rgba(5, 14, 24, 0.94));
}

.home-replica-console-chip {
  background: rgba(65, 212, 255, 0.12);
  color: #a8f0ff;
}

.home-replica-console-sidebar span.active {
  color: #061321;
  background: linear-gradient(135deg, #59ddff, #6ca6ff);
}

.home-replica-console-list p,
.home-replica-console-metrics small,
.home-replica-console-list span {
  color: rgba(216, 238, 255, 0.68);
}

.home-replica-console-ticker span,
.home-replica-engine-tags span,
.home-replica-flow-tags span {
  border-color: rgba(80, 154, 255, 0.16);
  background: rgba(7, 18, 31, 0.4);
}

.home-replica-system-card::before {
  background: linear-gradient(180deg, #59ddff, #2467ff);
}

.home-replica-system-card::after,
.home-replica-capability-card::after,
.home-replica-flow-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(87, 213, 255, 0.14), rgba(255, 255, 255, 0));
}

.home-replica-engine-band,
.home-replica-workflow {
  border-color: rgba(88, 160, 255, 0.14);
  background: linear-gradient(145deg, rgba(4, 12, 22, 0.97), rgba(5, 18, 31, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
}

.home-replica-engine-band::before {
  background:
    radial-gradient(circle at 14% 16%, rgba(83, 214, 255, 0.12), transparent 18rem),
    linear-gradient(transparent 94%, rgba(102, 190, 255, 0.08));
}

.home-replica-workflow-entry-panel {
  background: linear-gradient(180deg, rgba(5, 17, 29, 0.82), rgba(4, 13, 23, 0.88));
}

.home-replica-workflow-entry-panel span {
  color: #a9d4ef;
}

.home-replica-footer-band {
  position: relative;
  overflow: hidden;
}

.home-replica-footer-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(87, 213, 255, 0.1), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  animation: homeReplicaShine 6s ease-in-out infinite;
  pointer-events: none;
}

.home-replica-system-card:hover,
.home-replica-engine-card:hover,
.home-replica-capability-card:hover,
.home-replica-flow-card:hover,
.home-replica-workflow-entry:hover,
.home-replica-footer-band:hover {
  border-color: rgba(100, 192, 255, 0.24);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
}

@media (max-width: 1280px) {
  .login-replica-shell,
  .home-replica-hero,
  .home-replica-system-band,
  .home-replica-engine-grid,
  .home-replica-capability-grid,
  .home-replica-workflow-grid {
    grid-template-columns: 1fr;
  }

  .login-replica-headline {
    white-space: normal;
  }

  .home-replica-console-body {
    grid-template-columns: 1fr;
  }

  .home-replica-console {
    transform: none;
  }

  .home-replica-workflow-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-replica-footer-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-replica-workflow-entry .home-replica-btn {
    margin-top: 28px;
  }
}

@media (max-width: 1024px) {
  .login-replica-screen,
  .home-replica-stage {
    padding: 18px;
  }

  .login-replica-stage,
  .home-replica-stage {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .home-replica-topbar,
  .home-replica-actions,
  .home-replica-nav,
  .home-replica-hero-actions,
  .home-replica-hero-rail,
  .home-replica-engine-tags {
    flex-wrap: wrap;
  }

  .home-replica-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-replica-hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-replica-screen {
    padding: 0;
  }

  .login-replica-stage,
  .home-replica-stage {
    width: 100%;
    margin: 0;
    padding: 18px;
    border-radius: 0;
  }

  .login-replica-brand,
  .login-replica-card,
  .home-replica-topbar,
  .home-replica-hero,
  .home-replica-system-card,
  .home-replica-engine-band,
  .home-replica-workflow,
  .home-replica-capability-card,
  .home-replica-engine-card,
  .home-replica-flow-card,
  .home-replica-workflow-entry,
  .home-replica-console {
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 16px;
  }

  .login-replica-captcha-row,
  .home-replica-console-metrics,
  .home-replica-console-row {
    grid-template-columns: 1fr;
  }

  .home-replica-holo-card.primary,
  .home-replica-holo-card.secondary,
  .home-replica-holo-card.tertiary {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    animation: none;
  }

  .home-replica-holo-stage {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 18px;
  }

  .home-replica-speed-card.card-b {
    left: 24px;
  }

  .home-replica-speed-card.card-c {
    right: 24px;
  }

  .home-replica-speed-station.station-b {
    justify-self: center;
  }

  .home-replica-speed-station {
    min-width: 92px;
    padding: 10px 12px;
  }

  .user-permission-grid {
    grid-template-columns: 1fr;
  }

  .user-permission-item {
    min-height: 38px;
    padding: 0 10px;
  }

  .user-permission-item-label {
    font-size: 12px;
  }

  .login-replica-headline,
  .home-replica-hero-copy h1,
  .home-replica-section-head h2 {
    font-size: 32px;
  }

  .home-replica-single-line {
    white-space: normal;
    font-size: 28px;
  }

  .home-replica-engine-card h3,
  .home-replica-copy-output strong {
    font-size: 22px;
  }

  .home-replica-hero-copy h1 span + span {
    margin-top: 6px;
  }

  .home-replica-single-line {
    white-space: normal;
  }

  .home-replica-footer-band,
  .home-replica-footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-replica-reveal,
  .home-replica-console,
  .home-replica-holo-ring,
  .home-replica-holo-beam,
  .home-replica-holo-card,
  .home-replica-console-ticker span,
  .home-replica-console-chip i,
  .home-replica-signal-list span::before,
  .home-replica-metric-card::before,
  .home-replica-console-list-track,
  .home-replica-console-row::after,
  .home-replica-engine-tags span,
  .home-replica-speed-belt,
  .home-replica-speed-track::after,
  .home-replica-speed-card.card-a,
  .home-replica-speed-card.card-b,
  .home-replica-speed-card.card-c,
  .home-replica-speed-card,
  .home-replica-speed-pulse,
  .home-replica-copy-row span,
  .home-replica-flow-tags span,
  .home-replica-workflow-entry-panel span::before,
  .home-replica-copy-track::before,
  .home-replica-copy-track::after,
  .home-replica-copy-row {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Unified responsive layout overrides */
@media (max-width: 1220px) {
  .app-body {
    grid-template-columns: 1fr;
    background:
      radial-gradient(circle at 90% 8%, rgba(59, 148, 255, 0.12), transparent 24rem),
      linear-gradient(135deg, #f8fbff, #eef6ff);
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-brand {
    padding-bottom: 14px;
  }

  .menu {
    gap: 8px;
    margin-top: 14px;
  }

  .content {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .user-chip {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px 8px 12px;
    border-radius: 18px;
  }

  .panel-head-copy {
    margin-bottom: 14px;
  }

  .data-panel,
  .compact-panel,
  .approved-notes-panel,
  .pending-notes-panel {
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
  }

  .filter-form,
  .filter-form.user-filter,
  .filter-form.account-filter,
  .filter-form.product-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .filter-form label,
  .date-filter div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .filter-form label > span {
    font-size: 13px;
  }

  .date-filter {
    grid-column: 1 / -1;
  }

  .date-filter input {
    width: 100%;
    max-width: none;
  }

  .filter-actions,
  .left-actions,
  .table-toolbar,
  .pagination {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .product-tools {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .product-import {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .product-summary-bar,
  .stat-grid,
  .deepseek-summary,
  .site-settings-grid,
  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .table-scroll,
  .note-table-scroll,
  .pending-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 960px;
    font-size: 13px;
  }

  .account-table {
    min-width: 860px;
  }

  .note-table {
    min-width: 1480px;
  }

  .modal-mask {
    padding: 16px;
  }

  .modal-card,
  .profile-modal-card,
  .prompt-modal,
  .account-modal,
  .product-modal,
  .user-reset-password-modal,
  .export-modal-card,
  .note-title-modal {
    width: min(100%, calc(100vw - 32px));
  }

  .product-generate-modal {
    width: min(100%, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }

  .site-music-player {
    left: 10px;
    bottom: 12px;
    width: min(316px, calc(100vw - 20px));
  }

  .site-music-dock {
    left: 10px;
    bottom: 12px;
  }

  .site-music-lyric-bar {
    padding: 10px 14px 12px;
  }

  .login-replica-screen {
    padding: 18px;
  }

  .login-replica-stage {
    width: min(560px, calc(100% - 24px));
    min-height: auto;
    margin: 18px auto;
    padding: 22px;
  }

  .login-replica-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .login-replica-brand {
    display: none;
  }

  .login-replica-card {
    min-height: auto;
    padding: 44px 28px 28px;
  }

  .login-replica-card-head small {
    max-width: none;
  }
}

@media (max-width: 760px) {
  body.login-replica-page {
    overflow-y: auto;
  }

  .login-replica-screen {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
  }

  .login-replica-stage {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 12px;
    border-radius: 22px;
  }

  .login-replica-shell {
    min-height: auto;
  }

  .login-replica-card {
    min-height: auto;
    padding: 40px 18px 22px;
    border-radius: 22px;
  }

  .login-replica-card-head h2 {
    font-size: 24px;
  }

  .login-replica-card-head small {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
  }

  .login-replica-form {
    gap: 14px;
    margin-top: 28px;
  }

  .login-replica-field {
    gap: 8px;
  }

  .login-replica-field input,
  .login-replica-captcha-button,
  .login-replica-submit {
    height: 50px;
  }

  .login-replica-helper {
    margin-top: 0;
  }

  .content {
    padding: 12px;
  }

  .sidebar {
    padding: 14px 12px 10px;
  }

  .menu a,
  .menu a.menu-child {
    margin-left: 0;
    padding: 10px 12px;
  }

  .filter-form,
  .filter-form.user-filter,
  .filter-form.account-filter,
  .filter-form.product-filter {
    grid-template-columns: 1fr;
  }

  .user-chip {
    align-items: stretch;
  }

  .user-chip span {
    width: 100%;
  }

  .user-chip a {
    flex: 1 1 auto;
    text-align: center;
  }

  .panel-head-copy strong {
    font-size: 16px;
  }

  .pagination {
    font-size: 13px;
  }

  .pagination select {
    min-width: 96px;
  }

  .pagination input {
    width: 52px;
  }

  .modal-mask {
    padding: 12px;
    align-items: stretch;
  }

  .modal-card,
  .profile-modal-card,
  .product-generate-modal,
  .prompt-modal,
  .account-modal,
  .product-modal,
  .user-reset-password-modal,
  .export-modal-card,
  .note-title-modal {
    width: 100%;
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  .site-music-player {
    width: min(280px, calc(100vw - 20px));
  }

  .site-music-lyric-track .current {
    font-size: clamp(16px, 4.8vw, 22px);
  }
}

/* ===== 全局 Toast 通知系统 ===== */
.global-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.global-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.global-toast.success {
  background: #16a34a;
}

.global-toast.error {
  background: #dc2626;
}

.global-toast.loading {
  background: #2563eb;
}

.global-toast.loading .global-toast-icon {
  animation: toast-spin 1s linear infinite;
}

@keyframes toast-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.global-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  flex-shrink: 0;
}

.global-toast-text {
  line-height: 1.4;
}

/* ===== 表格行悬浮高亮 ===== */
.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
  background-color: var(--blue-50, #f5faff);
}

/* ===== 分页跳转输入框 ===== */
.page-jump {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: 13px;
  color: #64748b;
}

.page-jump-input {
  width: 56px;
  height: 32px;
  padding: 0 6px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
  border: 1px solid #d8e1ed;
  border-radius: 6px;
  font-size: 13px;
  color: #3e5065;
  outline: none;
}

.page-jump-input::-webkit-outer-spin-button,
.page-jump-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.page-jump-input:focus {
  border-color: var(--blue-500, #3b94ff);
  box-shadow: 0 0 0 2px rgba(59, 148, 255, 0.15);
}

.page-jump-btn {
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: var(--blue-500, #3b94ff);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.page-jump-btn:hover {
  background: var(--blue-600, #2b7de9);
}
.page-jump-btn:active {
  transform: scale(0.97);
}

.page-jump[data-loading="1"] .page-jump-input,
.page-jump-input:disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: wait;
}

.page-jump[data-loading="1"] .page-jump-btn,
.page-jump-btn:disabled {
  background: #93c5fd;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* ================================================================
   首页简约风样式
   ================================================================ */

/* ===== 启动加载动画 ===== */
.minimal-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #ffffff;
  transition: opacity 0.4s ease;
}

.minimal-loader.is-hidden {
  opacity: 0;
}

.minimal-loader-ring {
  width: 36px;
  height: 36px;
  border: 2px solid #e8f3ff;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: minimal-loader-spin 0.8s linear infinite;
}

@keyframes minimal-loader-spin {
  to { transform: rotate(360deg); }
}

.minimal-loader-brand {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
  letter-spacing: 0.5px;
  animation: minimal-loader-fade 0.6s ease 0.2s both;
}

@keyframes minimal-loader-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 整体页面 ===== */
.minimal-home-page {
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.minimal-stage {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.minimal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid #f1f5f9;
}

.minimal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a1a1a;
}

.minimal-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2b4d 0%, #0d63d8 56%, #2f95ff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.minimal-brand-name {
  font-size: 15px;
  font-weight: 600;
}

.minimal-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.minimal-nav a {
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.minimal-nav a:hover {
  color: #2563eb;
}

.minimal-nav-cta {
  padding: 8px 18px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff !important;
  transition: background-color 0.2s ease;
}

.minimal-nav-cta:hover {
  background: #1d4ed8;
}

/* ===== 首屏 Hero ===== */
.minimal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 0 80px;
}

.minimal-hero-eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  color: #2563eb;
  letter-spacing: 0.5px;
}

.minimal-hero-title {
  margin: 0 0 24px;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.minimal-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.minimal-hero-icon {
  width: 36px;
  height: 36px;
  color: #2563eb;
  flex-shrink: 0;
}

.minimal-hero-subtitle {
  margin: 0 0 36px;
  max-width: 100%;
  font-size: 17px;
  color: #64748b;
  line-height: 1.7;
  white-space: nowrap;
}

.minimal-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}

/* ===== 按钮 ===== */
.minimal-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.minimal-btn.primary {
  background: #2563eb;
  color: #fff;
}

.minimal-btn.primary:hover {
  background: #1d4ed8;
}

.minimal-btn.ghost {
  border: 1px solid #e2e8f0;
  color: #475569;
  background: transparent;
}

.minimal-btn.ghost:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* ===== Hero 数据点 ===== */
.minimal-hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
}

.minimal-hero-meta > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 28px;
  border-right: 1px solid #e2e8f0;
}

.minimal-hero-meta > div:last-child {
  border-right: none;
}

.minimal-hero-meta strong {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.minimal-hero-meta span {
  font-size: 13px;
  color: #94a3b8;
}

/* ===== 通用区块 ===== */
.minimal-section {
  padding: 64px 0;
}

.minimal-section-head {
  text-align: center;
  margin-bottom: 48px;
}

.minimal-section-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 1px;
}

.minimal-section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

/* ===== 核心能力卡片 ===== */
.minimal-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.minimal-card {
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fafbfc;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.minimal-card:hover {
  border-color: #2563eb;
  background: #f8faff;
}

.minimal-card-num {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.minimal-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef4ff, #e8f0ff);
  color: #2563eb;
}

.minimal-card-icon svg {
  width: 24px;
  height: 24px;
}

.minimal-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
}

.minimal-card p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

/* ===== 协同流程时间线 ===== */
.minimal-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.minimal-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #e2e8f0;
}

.minimal-timeline-item {
  position: relative;
  padding: 0 0 40px 36px;
}

.minimal-timeline-item:last-child {
  padding-bottom: 0;
}

.minimal-timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2563eb;
}

.minimal-timeline-body b {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.minimal-timeline-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.minimal-timeline-body p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

/* ===== 底部入口 ===== */
.minimal-footer-cta {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid #f1f5f9;
}

.minimal-footer-cta h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
}

.minimal-footer-cta p {
  margin: 0 0 28px;
  font-size: 15px;
  color: #64748b;
}

/* ===== 页脚 ===== */
.minimal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 0;
  border-top: 1px solid #f1f5f9;
}

.minimal-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

.minimal-footer-copy {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

/* ===== 滚动淡入动画 ===== */
.minimal-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.minimal-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .minimal-topbar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .minimal-nav {
    gap: 16px;
  }

  .minimal-hero {
    padding: 56px 0 48px;
  }

  .minimal-hero-meta {
    flex-direction: column;
    gap: 16px;
  }

  .minimal-hero-meta > div {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 0 16px;
  }

  .minimal-hero-meta > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .minimal-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .minimal-btn {
    width: 100%;
    justify-content: center;
  }

  .minimal-capability-grid {
    grid-template-columns: 1fr;
  }

  .minimal-hero-icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .minimal-stage {
    padding: 0 16px;
  }

  .minimal-section {
    padding: 40px 0;
  }

  .minimal-card {
    padding: 24px;
  }
}

/* Final approved-note action-column contract. */
.note-table-approved {
  width: 100% !important;
  min-width: 1460px !important;
}

.note-table-approved col.col-actions {
  width: 304px !important;
}

.note-table-approved th:last-child,
.note-table-approved td:last-child {
  position: sticky !important;
  right: 0 !important;
  z-index: 2 !important;
  background: #fff !important;
  box-shadow: -1px 0 0 #e6edf5, -10px 0 18px rgba(33, 55, 78, 0.06) !important;
}

.note-table-approved th:last-child {
  z-index: 3 !important;
  background: #f7f9fc !important;
}

.note-table-approved td.note-op-links {
  width: 304px !important;
  max-width: 304px !important;
  overflow: hidden !important;
  gap: 6px !important;
  padding-right: 8px !important;
  padding-left: 8px !important;
}

.note-table-approved .note-op-links a,
.note-table-approved .note-op-links button,
.note-table-approved .note-op-links .mini-primary {
  min-width: 64px !important;
  padding-right: 8px !important;
  padding-left: 8px !important;
}

/* Collapsible desktop sidebar and shared SVG navigation icons. */
.sidebar-brand-copy {
  min-width: 0;
}

.sidebar-toggle {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  flex: 0 0 34px;
  place-items: center;
  color: #5e7897;
  cursor: pointer;
  border: 1px solid #d9e6f4;
  border-radius: 8px;
  background: #f7fbff;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sidebar-toggle:hover {
  color: var(--blue-800);
  border-color: #b9d8fb;
  background: var(--blue-100);
}

.sidebar-toggle:focus-visible {
  outline: 2px solid rgba(30, 140, 255, 0.3);
  outline-offset: 2px;
}

.sidebar-toggle svg,
.sidebar-nav-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-toggle svg {
  transition: transform 0.22s ease;
}

.sidebar-nav-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 20px;
}

.menu > a:not(.menu-child),
.menu a.menu-child {
  display: flex !important;
  min-height: 38px !important;
  margin: 0 0 0 14px !important;
  padding: 9px 12px 9px 16px !important;
  align-items: center !important;
  gap: 10px !important;
  border-left: 2px solid #d8e8fb !important;
  border-radius: 0 12px 12px 0 !important;
  line-height: 20px !important;
}

.menu > a:hover,
.menu > a.active,
.menu a.menu-child:hover,
.menu a.menu-child.active {
  transform: none !important;
}

@media (min-width: 1221px) {
  .app-body {
    --sidebar-width: 236px;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr) !important;
    background:
      linear-gradient(90deg, #ffffff 0 var(--sidebar-width), transparent var(--sidebar-width)),
      radial-gradient(circle at 90% 8%, rgba(59, 148, 255, 0.12), transparent 24rem),
      linear-gradient(135deg, #f8fbff, #eef6ff) !important;
    transition: grid-template-columns 0.22s ease;
  }

  .app-body.sidebar-collapsed {
    --sidebar-width: 76px;
  }

  .sidebar {
    width: var(--sidebar-width);
    box-sizing: border-box;
    overflow-x: hidden;
    transition: width 0.22s ease, padding 0.22s ease;
  }

  .sidebar-collapsed .sidebar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .sidebar-collapsed .sidebar-brand {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .sidebar-collapsed .sidebar-brand-copy,
  .sidebar-collapsed .menu p,
  .sidebar-collapsed .sidebar-nav-label {
    display: none !important;
  }

  .sidebar-collapsed .sidebar-toggle {
    margin-left: 0;
  }

  .sidebar-collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
  }

  .sidebar-collapsed .menu {
    gap: 8px;
    margin-top: 14px;
  }

  .sidebar-collapsed .menu > a,
  .sidebar-collapsed .menu a.menu-child {
    width: 42px;
    min-height: 42px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-content: center !important;
    border-left: 0 !important;
    border-radius: 8px !important;
  }

  .sidebar-collapsed .menu > a:hover,
  .sidebar-collapsed .menu > a.active,
  .sidebar-collapsed .menu a.menu-child:hover,
  .sidebar-collapsed .menu a.menu-child.active {
    transform: none !important;
  }
}

@media (max-width: 1220px) {
  .sidebar-toggle {
    display: none;
  }
}

/* Account login method, cookie status and avatar presentation. */
.account-table {
  min-width: 1320px !important;
}

.account-proxy-status {
  display: inline-flex;
  min-height: 28px;
  padding: 4px 10px;
  align-items: center;
  color: #667085;
  border: 1px solid #d9e1ea;
  border-radius: 999px;
  background: #f7f9fc;
  white-space: nowrap;
}

.account-proxy-status.is-proxy {
  color: #087443;
  border-color: #a7dfc3;
  background: #edf9f3;
}

.account-proxy-modal {
  width: min(860px, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1fr);
}

.account-proxy-modal .modal-title p {
  margin: 4px 0 0;
  color: #7a8798;
  font-size: 13px;
}

.account-proxy-toggle {
  display: inline-flex !important;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  flex-direction: row !important;
  margin-right: auto;
  padding: 0;
  align-items: center;
  gap: 7px;
  color: #526174;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.account-proxy-toggle span {
  display: inline-block;
  width: auto;
}

.account-proxy-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.account-proxy-grid {
  width: 100%;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
}

.account-proxy-modal > .modal-actions {
  grid-column: 1 / -1;
}

.account-proxy-grid > label,
.account-proxy-grid > label > input,
.account-proxy-grid > label > select,
[data-m-account-proxy-fields],
[data-m-account-proxy-fields] .m-field,
[data-m-account-proxy-fields] .m-input,
[data-m-account-proxy-fields] .m-select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.account-proxy-result {
  width: 100%;
  margin-top: 0;
  padding: 10px 12px;
  color: #425466;
  border-left: 3px solid #2789e8;
  background: #f3f8fd;
  font-weight: 600;
}

.tag-publishing {
  color: #1769aa;
  background: #e9f4ff;
}

.account-avatar-cell {
  width: 72px;
}

.account-avatar {
  display: inline-flex;
  width: 44px;
  height: 44px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f1fb;
  box-shadow: 0 0 0 1px #d5e2ef;
}

.account-avatar-fallback {
  color: #356b9f;
  font-size: 16px;
  font-weight: 700;
}

.account-avatar-empty {
  display: inline-block;
  background: #eef1f5;
  border: 1px solid #d8dee8;
}

.account-method-tag,
.account-login-status {
  display: inline-flex;
  min-width: 72px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

.account-method-tag.is-qr,
.account-login-status.is-valid {
  color: #147a43;
  background: #e9f8ef;
}

.account-method-tag.is-manual,
.account-login-status.is-manual {
  color: #52687e;
  background: #eef2f6;
}

.account-login-status.is-invalid {
  color: #b33b3b;
  background: #fff0f0;
}

.account-login-status.is-checking {
  color: #8a5a00;
  background: #fff4d6;
}

.account-add-fields,
.account-qr-section {
  grid-column: 1 / -1;
}

.account-add-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-add-fields[hidden],
.account-qr-section[hidden],
.account-manual-fields[hidden],
.account-modal [hidden] {
  display: none !important;
}

.account-method-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 3px;
  border: 1px solid #d9e4ef;
  border-radius: 7px;
  background: #f2f6fa;
}

.account-method-picker button {
  height: 36px;
  color: #5b6d80;
  cursor: pointer;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-weight: 600;
}

.account-method-picker button.active {
  color: #1769aa;
  background: #fff;
  box-shadow: 0 1px 4px rgba(34, 63, 92, 0.12);
}

.account-manual-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-qr-section {
  display: grid;
  gap: 12px;
}

@media (max-width: 640px) {
  .account-add-fields,
  .account-manual-fields {
    grid-template-columns: 1fr;
  }
}

/* Account isolation settings: proxy and fixed browser fingerprint. */
.modal-card.account-proxy-modal {
  width: min(860px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.account-isolation-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e4eaf1;
}

.account-isolation-tabs {
  margin: 12px 20px 0;
}

.account-isolation-tabs button[aria-selected="true"] {
  color: #1769aa;
  background: #fff;
  box-shadow: 0 1px 4px rgba(34, 63, 92, 0.12);
}

.account-isolation-body {
  min-height: 0;
  padding: 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.account-isolation-panel[hidden],
.account-proxy-actions[hidden],
.account-fingerprint-grid [hidden] {
  display: none !important;
}

.account-proxy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

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

.account-proxy-grid > .wide-field,
.account-fingerprint-grid > .wide-field {
  grid-column: 1 / -1;
}

.account-fingerprint-grid label,
.fingerprint-device-field {
  min-width: 0;
}

.fingerprint-device-field {
  display: grid;
  gap: 8px;
  color: #394b61;
  font-size: 14px;
  font-weight: 600;
}

.fingerprint-ip-timezone {
  display: grid;
  gap: 8px;
  color: #394b61;
  font-size: 14px;
  font-weight: 600;
}

.fingerprint-ip-timezone output {
  display: flex;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  align-items: center;
  color: #52687d;
  border: 1px solid #d8e1ed;
  border-radius: 8px;
  background: #f7f9fc;
  font-weight: 500;
}

.fingerprint-device-field > input[type="hidden"] {
  display: none;
}

.fingerprint-device-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 3px;
  border: 1px solid #d9e4ef;
  border-radius: 7px;
  background: #f2f6fa;
}

.fingerprint-device-picker button {
  height: 36px;
  color: #5b6d80;
  cursor: pointer;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-weight: 600;
}

.fingerprint-device-picker button.active {
  color: #1769aa;
  background: #fff;
  box-shadow: 0 1px 4px rgba(34, 63, 92, 0.12);
}

.fingerprint-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.fingerprint-input-action .btn {
  width: 76px;
  min-width: 76px;
  height: 36px;
  padding: 0 10px;
}

.fingerprint-browser-field {
  position: relative;
  display: grid;
  gap: 8px;
  color: #394b61;
  font-size: 14px;
  font-weight: 600;
}

.fingerprint-browser-select {
  position: relative;
  width: 100%;
}

.fingerprint-browser-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.fingerprint-browser-trigger {
  display: flex;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  color: #26384b;
  cursor: pointer;
  border: 1px solid #d8e1ed;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  text-align: left;
}

.fingerprint-browser-trigger:focus-visible {
  outline: 2px solid rgba(28, 114, 189, 0.28);
  outline-offset: 1px;
  border-color: #6da6d8;
}

.fingerprint-browser-chevron {
  color: #61758a;
  font-size: 16px;
  transition: transform 160ms ease;
}

.fingerprint-browser-select.is-open .fingerprint-browser-chevron {
  transform: rotate(180deg);
}

.fingerprint-browser-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 40;
  max-height: 220px;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid #d5dfeb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 54, 78, 0.16);
}

.fingerprint-browser-menu[hidden] {
  display: none !important;
}

.fingerprint-browser-option {
  display: flex;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  align-items: center;
  color: #31465b;
  cursor: pointer;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font: inherit;
  text-align: left;
}

.fingerprint-browser-option:hover,
.fingerprint-browser-option:focus-visible {
  color: #155f9c;
  outline: 0;
  background: #eef6fc;
}

.fingerprint-browser-option[aria-selected="true"] {
  color: #155f9c;
  background: #e4f1fb;
  font-weight: 700;
}

.account-proxy-modal label.fingerprint-timezone-toggle {
  display: inline-flex;
  width: fit-content;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.account-proxy-modal label.fingerprint-timezone-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.account-proxy-modal > .modal-actions {
  min-height: 64px;
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid #e4eaf1;
}

.account-proxy-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

@media (max-width: 640px) {
  .modal-card.account-proxy-modal {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

  .account-isolation-header,
  .account-isolation-body,
  .account-proxy-modal > .modal-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .account-isolation-tabs {
    margin-right: 14px;
    margin-left: 14px;
  }

  .account-fingerprint-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-proxy-grid > .wide-field,
  .account-fingerprint-grid > .wide-field {
    grid-column: auto;
  }

  .account-proxy-modal > .modal-actions,
  .account-proxy-actions {
    flex-wrap: wrap;
  }

  .account-proxy-modal > .modal-actions > .btn.primary {
    margin-left: auto;
  }
}
